(()=>{var nwe=Object.create;var IV=Object.defineProperty,awe=Object.defineProperties,owe=Object.getOwnPropertyDescriptor,rwe=Object.getOwnPropertyDescriptors,swe=Object.getOwnPropertyNames,lz=Object.getOwnPropertySymbols,lwe=Object.getPrototypeOf,TV=Object.prototype.hasOwnProperty,iX=Object.prototype.propertyIsEnumerable;var tX=(re,oe,he)=>oe in re?IV(re,oe,{enumerable:!0,configurable:!0,writable:!0,value:he}):re[oe]=he,ge=(re,oe)=>{for(var he in oe||(oe={}))TV.call(oe,he)&&tX(re,he,oe[he]);if(lz)for(var he of lz(oe))iX.call(oe,he)&&tX(re,he,oe[he]);return re},He=(re,oe)=>awe(re,rwe(oe));var wi=(re,oe)=>{var he={};for(var ae in re)TV.call(re,ae)&&oe.indexOf(ae)<0&&(he[ae]=re[ae]);if(re!=null&&lz)for(var ae of lz(re))oe.indexOf(ae)<0&&iX.call(re,ae)&&(he[ae]=re[ae]);return he};var uO=(re,oe)=>()=>(oe||re((oe={exports:{}}).exports,oe),oe.exports);var cwe=(re,oe,he,ae)=>{if(oe&&typeof oe=="object"||typeof oe=="function")for(let x of swe(oe))!TV.call(re,x)&&x!==he&&IV(re,x,{get:()=>oe[x],enumerable:!(ae=owe(oe,x))||ae.enumerable});return re};var hO=(re,oe,he)=>(he=re!=null?nwe(lwe(re)):{},cwe(oe||!re||!re.__esModule?IV(he,"default",{value:re,enumerable:!0}):he,re));var UX=uO((WX,Mz)=>{(function(re,oe){"use strict";(function(){for(var s=0,c=["ms","moz","webkit","o"],h=0;h<c.length&&!re.requestAnimationFrame;++h)re.requestAnimationFrame=re[c[h]+"RequestAnimationFrame"],re.cancelAnimationFrame=re[c[h]+"CancelAnimationFrame"]||re[c[h]+"CancelRequestAnimationFrame"];re.requestAnimationFrame||(re.requestAnimationFrame=function(g,f){var S=new Date().getTime(),w=Math.max(0,16-(S-s)),M=re.setTimeout(function(){g(S+w)},w);return s=S+w,M}),re.cancelAnimationFrame||(re.cancelAnimationFrame=function(g){clearTimeout(g)})})();var he,ae,x,p=null,A=null,E=null,z=function(s,c,h){s.addEventListener?s.addEventListener(c,h,!1):s.attachEvent?s.attachEvent("on"+c,h):s["on"+c]=h},T={autoRun:!0,barThickness:3,barColors:{0:"rgba(26,  188, 156, .9)",".25":"rgba(52,  152, 219, .9)",".50":"rgba(241, 196, 15,  .9)",".75":"rgba(230, 126, 34,  .9)","1.0":"rgba(211, 84,  0,   .9)"},shadowBlur:10,shadowColor:"rgba(0,   0,   0,   .6)",className:null},b=function(){he.width=re.innerWidth,he.height=T.barThickness*5;var s=he.getContext("2d");s.shadowBlur=T.shadowBlur,s.shadowColor=T.shadowColor;var c=s.createLinearGradient(0,0,he.width,0);for(var h in T.barColors)c.addColorStop(h,T.barColors[h]);s.lineWidth=T.barThickness,s.beginPath(),s.moveTo(0,T.barThickness/2),s.lineTo(Math.ceil(ae*he.width),T.barThickness/2),s.strokeStyle=c,s.stroke()},C=function(){he=oe.createElement("canvas");var s=he.style;s.position="fixed",s.top=s.left=s.right=s.margin=s.padding=0,s.zIndex=100001,s.display="none",T.className&&he.classList.add(T.className),oe.body.appendChild(he),z(re,"resize",b)},d={config:function(s){for(var c in s)T.hasOwnProperty(c)&&(T[c]=s[c])},show:function(s){if(!x)if(s){if(E)return;E=setTimeout(()=>d.show(),s)}else x=!0,A!==null&&re.cancelAnimationFrame(A),he||C(),he.style.opacity=1,he.style.display="block",d.progress(0),T.autoRun&&function c(){p=re.requestAnimationFrame(c),d.progress("+"+.05*Math.pow(1-Math.sqrt(ae),2))}()},progress:function(s){return typeof s=="undefined"||(typeof s=="string"&&(s=(s.indexOf("+")>=0||s.indexOf("-")>=0?ae:0)+parseFloat(s)),ae=s>1?1:s,b()),ae},hide:function(){clearTimeout(E),E=null,x&&(x=!1,p!=null&&(re.cancelAnimationFrame(p),p=null),function s(){if(d.progress("+.1")>=1&&(he.style.opacity-=.05,he.style.opacity<=.05)){he.style.display="none",A=null;return}A=re.requestAnimationFrame(s)}())}};typeof Mz=="object"&&typeof Mz.exports=="object"?Mz.exports=d:typeof define=="function"&&define.amd?define(function(){return d}):this.topbar=d}).call(WX,window,document)});var KX=uO((kz,XV)=>{(function(re,oe){typeof kz=="object"&&typeof XV=="object"?XV.exports=oe():typeof define=="function"&&define.amd?define([],oe):typeof kz=="object"?kz.agGrid=oe():re.agGrid=oe()})(self,function(){return function(){"use strict";var re={8956:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z),b=p(62),C=p.n(b),d=new URL(p(2487),p.b),s=new URL(p(6080),p.b),c=T()(E()),h=C()(d),g=C()(s);c.push([ae.id,`.ag-measurement-container {
  --ag-legacy-styles-loaded: "true";
}

.ag-icon {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-feature-settings: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  position: relative;
}
.ag-icon::before {
  content: "";
  font-family: inherit;
}
.ag-icon::after {
  background: transparent none center/contain no-repeat;
  background: transparent var(--ag-icon-image, none) center/contain no-repeat;
  display: var(--ag-icon-image-display);
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity, 0.9);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
}

.ag-icon-aggregation {
  font-family: var(--ag-icon-font-family-aggregation, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-aggregation, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-aggregation, var(--ag-icon-font-color));
}

.ag-icon-aggregation::before {
  content: "\\f101";
  content: var(--ag-icon-font-code-aggregation, "\\f101");
  display: var(--ag-icon-font-display-aggregation, var(--ag-icon-font-display));
}

.ag-icon-aggregation::after {
  background-image: var(--ag-icon-image-aggregation, var(--ag-icon-image));
  display: var(--ag-icon-image-display-aggregation, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-aggregation, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-arrows {
  font-family: var(--ag-icon-font-family-arrows, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-arrows, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-arrows, var(--ag-icon-font-color));
}

.ag-icon-arrows::before {
  content: "\\f102";
  content: var(--ag-icon-font-code-arrows, "\\f102");
  display: var(--ag-icon-font-display-arrows, var(--ag-icon-font-display));
}

.ag-icon-arrows::after {
  background-image: var(--ag-icon-image-arrows, var(--ag-icon-image));
  display: var(--ag-icon-image-display-arrows, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-arrows, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-asc {
  font-family: var(--ag-icon-font-family-asc, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-asc, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-asc, var(--ag-icon-font-color));
}

.ag-icon-asc::before {
  content: "\\f103";
  content: var(--ag-icon-font-code-asc, "\\f103");
  display: var(--ag-icon-font-display-asc, var(--ag-icon-font-display));
}

.ag-icon-asc::after {
  background-image: var(--ag-icon-image-asc, var(--ag-icon-image));
  display: var(--ag-icon-image-display-asc, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-asc, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cancel {
  font-family: var(--ag-icon-font-family-cancel, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cancel, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cancel, var(--ag-icon-font-color));
}

.ag-icon-cancel::before {
  content: "\\f104";
  content: var(--ag-icon-font-code-cancel, "\\f104");
  display: var(--ag-icon-font-display-cancel, var(--ag-icon-font-display));
}

.ag-icon-cancel::after {
  background-image: var(--ag-icon-image-cancel, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cancel, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-cancel, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-chart {
  font-family: var(--ag-icon-font-family-chart, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-chart, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-chart, var(--ag-icon-font-color));
}

.ag-icon-chart::before {
  content: "\\f105";
  content: var(--ag-icon-font-code-chart, "\\f105");
  display: var(--ag-icon-font-display-chart, var(--ag-icon-font-display));
}

.ag-icon-chart::after {
  background-image: var(--ag-icon-image-chart, var(--ag-icon-image));
  display: var(--ag-icon-image-display-chart, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-chart, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-checked {
  font-family: var(--ag-icon-font-family-checkbox-checked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-checked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-checked, var(--ag-icon-font-color));
}

.ag-icon-checkbox-checked::before {
  content: "\\f106";
  content: var(--ag-icon-font-code-checkbox-checked, "\\f106");
  display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));
}

.ag-icon-checkbox-checked::after {
  background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-indeterminate {
  font-family: var(--ag-icon-font-family-checkbox-indeterminate, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-indeterminate, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-indeterminate, var(--ag-icon-font-color));
}

.ag-icon-checkbox-indeterminate::before {
  content: "\\f107";
  content: var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");
  display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));
}

.ag-icon-checkbox-indeterminate::after {
  background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-unchecked {
  font-family: var(--ag-icon-font-family-checkbox-unchecked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-unchecked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-unchecked, var(--ag-icon-font-color));
}

.ag-icon-checkbox-unchecked::before {
  content: "\\f108";
  content: var(--ag-icon-font-code-checkbox-unchecked, "\\f108");
  display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));
}

.ag-icon-checkbox-unchecked::after {
  background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-color-picker {
  font-family: var(--ag-icon-font-family-color-picker, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-color-picker, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-color-picker, var(--ag-icon-font-color));
}

.ag-icon-color-picker::before {
  content: "\\f109";
  content: var(--ag-icon-font-code-color-picker, "\\f109");
  display: var(--ag-icon-font-display-color-picker, var(--ag-icon-font-display));
}

.ag-icon-color-picker::after {
  background-image: var(--ag-icon-image-color-picker, var(--ag-icon-image));
  display: var(--ag-icon-image-display-color-picker, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-color-picker, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-columns {
  font-family: var(--ag-icon-font-family-columns, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-columns, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-columns, var(--ag-icon-font-color));
}

.ag-icon-columns::before {
  content: "\\f10a";
  content: var(--ag-icon-font-code-columns, "\\f10a");
  display: var(--ag-icon-font-display-columns, var(--ag-icon-font-display));
}

.ag-icon-columns::after {
  background-image: var(--ag-icon-image-columns, var(--ag-icon-image));
  display: var(--ag-icon-image-display-columns, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-columns, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-contracted {
  font-family: var(--ag-icon-font-family-contracted, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-contracted, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-contracted, var(--ag-icon-font-color));
}

.ag-icon-contracted::before {
  content: "\\f10b";
  content: var(--ag-icon-font-code-contracted, "\\f10b");
  display: var(--ag-icon-font-display-contracted, var(--ag-icon-font-display));
}

.ag-icon-contracted::after {
  background-image: var(--ag-icon-image-contracted, var(--ag-icon-image));
  display: var(--ag-icon-image-display-contracted, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-contracted, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-copy {
  font-family: var(--ag-icon-font-family-copy, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-copy, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-copy, var(--ag-icon-font-color));
}

.ag-icon-copy::before {
  content: "\\f10c";
  content: var(--ag-icon-font-code-copy, "\\f10c");
  display: var(--ag-icon-font-display-copy, var(--ag-icon-font-display));
}

.ag-icon-copy::after {
  background-image: var(--ag-icon-image-copy, var(--ag-icon-image));
  display: var(--ag-icon-image-display-copy, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-copy, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cross {
  font-family: var(--ag-icon-font-family-cross, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cross, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cross, var(--ag-icon-font-color));
}

.ag-icon-cross::before {
  content: "\\f10d";
  content: var(--ag-icon-font-code-cross, "\\f10d");
  display: var(--ag-icon-font-display-cross, var(--ag-icon-font-display));
}

.ag-icon-cross::after {
  background-image: var(--ag-icon-image-cross, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cross, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-cross, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-csv {
  font-family: var(--ag-icon-font-family-csv, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-csv, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-csv, var(--ag-icon-font-color));
}

.ag-icon-csv::before {
  content: "\\f10e";
  content: var(--ag-icon-font-code-csv, "\\f10e");
  display: var(--ag-icon-font-display-csv, var(--ag-icon-font-display));
}

.ag-icon-csv::after {
  background-image: var(--ag-icon-image-csv, var(--ag-icon-image));
  display: var(--ag-icon-image-display-csv, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-csv, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cut {
  font-family: var(--ag-icon-font-family-cut, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cut, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cut, var(--ag-icon-font-color));
}

.ag-icon-cut::before {
  content: "\\f10f";
  content: var(--ag-icon-font-code-cut, "\\f10f");
  display: var(--ag-icon-font-display-cut, var(--ag-icon-font-display));
}

.ag-icon-cut::after {
  background-image: var(--ag-icon-image-cut, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cut, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-cut, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-desc {
  font-family: var(--ag-icon-font-family-desc, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-desc, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-desc, var(--ag-icon-font-color));
}

.ag-icon-desc::before {
  content: "\\f110";
  content: var(--ag-icon-font-code-desc, "\\f110");
  display: var(--ag-icon-font-display-desc, var(--ag-icon-font-display));
}

.ag-icon-desc::after {
  background-image: var(--ag-icon-image-desc, var(--ag-icon-image));
  display: var(--ag-icon-image-display-desc, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-desc, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-excel {
  font-family: var(--ag-icon-font-family-excel, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-excel, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-excel, var(--ag-icon-font-color));
}

.ag-icon-excel::before {
  content: "\\f111";
  content: var(--ag-icon-font-code-excel, "\\f111");
  display: var(--ag-icon-font-display-excel, var(--ag-icon-font-display));
}

.ag-icon-excel::after {
  background-image: var(--ag-icon-image-excel, var(--ag-icon-image));
  display: var(--ag-icon-image-display-excel, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-excel, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-expanded {
  font-family: var(--ag-icon-font-family-expanded, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-expanded, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-expanded, var(--ag-icon-font-color));
}

.ag-icon-expanded::before {
  content: "\\f112";
  content: var(--ag-icon-font-code-expanded, "\\f112");
  display: var(--ag-icon-font-display-expanded, var(--ag-icon-font-display));
}

.ag-icon-expanded::after {
  background-image: var(--ag-icon-image-expanded, var(--ag-icon-image));
  display: var(--ag-icon-image-display-expanded, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-expanded, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-eye-slash {
  font-family: var(--ag-icon-font-family-eye-slash, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-eye-slash, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-eye-slash, var(--ag-icon-font-color));
}

.ag-icon-eye-slash::before {
  content: "\\f113";
  content: var(--ag-icon-font-code-eye-slash, "\\f113");
  display: var(--ag-icon-font-display-eye-slash, var(--ag-icon-font-display));
}

.ag-icon-eye-slash::after {
  background-image: var(--ag-icon-image-eye-slash, var(--ag-icon-image));
  display: var(--ag-icon-image-display-eye-slash, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-eye-slash, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-eye {
  font-family: var(--ag-icon-font-family-eye, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-eye, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-eye, var(--ag-icon-font-color));
}

.ag-icon-eye::before {
  content: "\\f114";
  content: var(--ag-icon-font-code-eye, "\\f114");
  display: var(--ag-icon-font-display-eye, var(--ag-icon-font-display));
}

.ag-icon-eye::after {
  background-image: var(--ag-icon-image-eye, var(--ag-icon-image));
  display: var(--ag-icon-image-display-eye, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-eye, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-filter {
  font-family: var(--ag-icon-font-family-filter, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-filter, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-filter, var(--ag-icon-font-color));
}

.ag-icon-filter::before {
  content: "\\f115";
  content: var(--ag-icon-font-code-filter, "\\f115");
  display: var(--ag-icon-font-display-filter, var(--ag-icon-font-display));
}

.ag-icon-filter::after {
  background-image: var(--ag-icon-image-filter, var(--ag-icon-image));
  display: var(--ag-icon-image-display-filter, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-filter, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-first {
  font-family: var(--ag-icon-font-family-first, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-first, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-first, var(--ag-icon-font-color));
}

.ag-icon-first::before {
  content: "\\f116";
  content: var(--ag-icon-font-code-first, "\\f116");
  display: var(--ag-icon-font-display-first, var(--ag-icon-font-display));
}

.ag-icon-first::after {
  background-image: var(--ag-icon-image-first, var(--ag-icon-image));
  display: var(--ag-icon-image-display-first, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-first, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-grip {
  font-family: var(--ag-icon-font-family-grip, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-grip, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-grip, var(--ag-icon-font-color));
}

.ag-icon-grip::before {
  content: "\\f117";
  content: var(--ag-icon-font-code-grip, "\\f117");
  display: var(--ag-icon-font-display-grip, var(--ag-icon-font-display));
}

.ag-icon-grip::after {
  background-image: var(--ag-icon-image-grip, var(--ag-icon-image));
  display: var(--ag-icon-image-display-grip, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-grip, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-group {
  font-family: var(--ag-icon-font-family-group, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-group, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-group, var(--ag-icon-font-color));
}

.ag-icon-group::before {
  content: "\\f118";
  content: var(--ag-icon-font-code-group, "\\f118");
  display: var(--ag-icon-font-display-group, var(--ag-icon-font-display));
}

.ag-icon-group::after {
  background-image: var(--ag-icon-image-group, var(--ag-icon-image));
  display: var(--ag-icon-image-display-group, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-group, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-last {
  font-family: var(--ag-icon-font-family-last, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-last, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-last, var(--ag-icon-font-color));
}

.ag-icon-last::before {
  content: "\\f119";
  content: var(--ag-icon-font-code-last, "\\f119");
  display: var(--ag-icon-font-display-last, var(--ag-icon-font-display));
}

.ag-icon-last::after {
  background-image: var(--ag-icon-image-last, var(--ag-icon-image));
  display: var(--ag-icon-image-display-last, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-last, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-left {
  font-family: var(--ag-icon-font-family-left, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-left, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-left, var(--ag-icon-font-color));
}

.ag-icon-left::before {
  content: "\\f11a";
  content: var(--ag-icon-font-code-left, "\\f11a");
  display: var(--ag-icon-font-display-left, var(--ag-icon-font-display));
}

.ag-icon-left::after {
  background-image: var(--ag-icon-image-left, var(--ag-icon-image));
  display: var(--ag-icon-image-display-left, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-left, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-linked {
  font-family: var(--ag-icon-font-family-linked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-linked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-linked, var(--ag-icon-font-color));
}

.ag-icon-linked::before {
  content: "\\f11b";
  content: var(--ag-icon-font-code-linked, "\\f11b");
  display: var(--ag-icon-font-display-linked, var(--ag-icon-font-display));
}

.ag-icon-linked::after {
  background-image: var(--ag-icon-image-linked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-linked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-linked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-loading {
  font-family: var(--ag-icon-font-family-loading, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-loading, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-loading, var(--ag-icon-font-color));
}

.ag-icon-loading::before {
  content: "\\f11c";
  content: var(--ag-icon-font-code-loading, "\\f11c");
  display: var(--ag-icon-font-display-loading, var(--ag-icon-font-display));
}

.ag-icon-loading::after {
  background-image: var(--ag-icon-image-loading, var(--ag-icon-image));
  display: var(--ag-icon-image-display-loading, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-loading, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-maximize {
  font-family: var(--ag-icon-font-family-maximize, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-maximize, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-maximize, var(--ag-icon-font-color));
}

.ag-icon-maximize::before {
  content: "\\f11d";
  content: var(--ag-icon-font-code-maximize, "\\f11d");
  display: var(--ag-icon-font-display-maximize, var(--ag-icon-font-display));
}

.ag-icon-maximize::after {
  background-image: var(--ag-icon-image-maximize, var(--ag-icon-image));
  display: var(--ag-icon-image-display-maximize, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-maximize, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-menu {
  font-family: var(--ag-icon-font-family-menu, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-menu, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-menu, var(--ag-icon-font-color));
}

.ag-icon-menu::before {
  content: "\\f11e";
  content: var(--ag-icon-font-code-menu, "\\f11e");
  display: var(--ag-icon-font-display-menu, var(--ag-icon-font-display));
}

.ag-icon-menu::after {
  background-image: var(--ag-icon-image-menu, var(--ag-icon-image));
  display: var(--ag-icon-image-display-menu, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-menu, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-minimize {
  font-family: var(--ag-icon-font-family-minimize, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-minimize, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-minimize, var(--ag-icon-font-color));
}

.ag-icon-minimize::before {
  content: "\\f11f";
  content: var(--ag-icon-font-code-minimize, "\\f11f");
  display: var(--ag-icon-font-display-minimize, var(--ag-icon-font-display));
}

.ag-icon-minimize::after {
  background-image: var(--ag-icon-image-minimize, var(--ag-icon-image));
  display: var(--ag-icon-image-display-minimize, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-minimize, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-next {
  font-family: var(--ag-icon-font-family-next, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-next, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-next, var(--ag-icon-font-color));
}

.ag-icon-next::before {
  content: "\\f120";
  content: var(--ag-icon-font-code-next, "\\f120");
  display: var(--ag-icon-font-display-next, var(--ag-icon-font-display));
}

.ag-icon-next::after {
  background-image: var(--ag-icon-image-next, var(--ag-icon-image));
  display: var(--ag-icon-image-display-next, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-next, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-none {
  font-family: var(--ag-icon-font-family-none, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-none, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-none, var(--ag-icon-font-color));
}

.ag-icon-none::before {
  content: "\\f121";
  content: var(--ag-icon-font-code-none, "\\f121");
  display: var(--ag-icon-font-display-none, var(--ag-icon-font-display));
}

.ag-icon-none::after {
  background-image: var(--ag-icon-image-none, var(--ag-icon-image));
  display: var(--ag-icon-image-display-none, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-none, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-not-allowed {
  font-family: var(--ag-icon-font-family-not-allowed, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-not-allowed, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-not-allowed, var(--ag-icon-font-color));
}

.ag-icon-not-allowed::before {
  content: "\\f122";
  content: var(--ag-icon-font-code-not-allowed, "\\f122");
  display: var(--ag-icon-font-display-not-allowed, var(--ag-icon-font-display));
}

.ag-icon-not-allowed::after {
  background-image: var(--ag-icon-image-not-allowed, var(--ag-icon-image));
  display: var(--ag-icon-image-display-not-allowed, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-not-allowed, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-paste {
  font-family: var(--ag-icon-font-family-paste, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-paste, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-paste, var(--ag-icon-font-color));
}

.ag-icon-paste::before {
  content: "\\f123";
  content: var(--ag-icon-font-code-paste, "\\f123");
  display: var(--ag-icon-font-display-paste, var(--ag-icon-font-display));
}

.ag-icon-paste::after {
  background-image: var(--ag-icon-image-paste, var(--ag-icon-image));
  display: var(--ag-icon-image-display-paste, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-paste, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-pin {
  font-family: var(--ag-icon-font-family-pin, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-pin, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-pin, var(--ag-icon-font-color));
}

.ag-icon-pin::before {
  content: "\\f124";
  content: var(--ag-icon-font-code-pin, "\\f124");
  display: var(--ag-icon-font-display-pin, var(--ag-icon-font-display));
}

.ag-icon-pin::after {
  background-image: var(--ag-icon-image-pin, var(--ag-icon-image));
  display: var(--ag-icon-image-display-pin, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-pin, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-pivot {
  font-family: var(--ag-icon-font-family-pivot, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-pivot, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-pivot, var(--ag-icon-font-color));
}

.ag-icon-pivot::before {
  content: "\\f125";
  content: var(--ag-icon-font-code-pivot, "\\f125");
  display: var(--ag-icon-font-display-pivot, var(--ag-icon-font-display));
}

.ag-icon-pivot::after {
  background-image: var(--ag-icon-image-pivot, var(--ag-icon-image));
  display: var(--ag-icon-image-display-pivot, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-pivot, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-previous {
  font-family: var(--ag-icon-font-family-previous, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-previous, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-previous, var(--ag-icon-font-color));
}

.ag-icon-previous::before {
  content: "\\f126";
  content: var(--ag-icon-font-code-previous, "\\f126");
  display: var(--ag-icon-font-display-previous, var(--ag-icon-font-display));
}

.ag-icon-previous::after {
  background-image: var(--ag-icon-image-previous, var(--ag-icon-image));
  display: var(--ag-icon-image-display-previous, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-previous, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-radio-button-off {
  font-family: var(--ag-icon-font-family-radio-button-off, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-radio-button-off, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-radio-button-off, var(--ag-icon-font-color));
}

.ag-icon-radio-button-off::before {
  content: "\\f127";
  content: var(--ag-icon-font-code-radio-button-off, "\\f127");
  display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));
}

.ag-icon-radio-button-off::after {
  background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-radio-button-on {
  font-family: var(--ag-icon-font-family-radio-button-on, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-radio-button-on, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-radio-button-on, var(--ag-icon-font-color));
}

.ag-icon-radio-button-on::before {
  content: "\\f128";
  content: var(--ag-icon-font-code-radio-button-on, "\\f128");
  display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));
}

.ag-icon-radio-button-on::after {
  background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-right {
  font-family: var(--ag-icon-font-family-right, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-right, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-right, var(--ag-icon-font-color));
}

.ag-icon-right::before {
  content: "\\f129";
  content: var(--ag-icon-font-code-right, "\\f129");
  display: var(--ag-icon-font-display-right, var(--ag-icon-font-display));
}

.ag-icon-right::after {
  background-image: var(--ag-icon-image-right, var(--ag-icon-image));
  display: var(--ag-icon-image-display-right, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-right, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-save {
  font-family: var(--ag-icon-font-family-save, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-save, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-save, var(--ag-icon-font-color));
}

.ag-icon-save::before {
  content: "\\f12a";
  content: var(--ag-icon-font-code-save, "\\f12a");
  display: var(--ag-icon-font-display-save, var(--ag-icon-font-display));
}

.ag-icon-save::after {
  background-image: var(--ag-icon-image-save, var(--ag-icon-image));
  display: var(--ag-icon-image-display-save, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-save, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-down {
  font-family: var(--ag-icon-font-family-small-down, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-down, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-down, var(--ag-icon-font-color));
}

.ag-icon-small-down::before {
  content: "\\f12b";
  content: var(--ag-icon-font-code-small-down, "\\f12b");
  display: var(--ag-icon-font-display-small-down, var(--ag-icon-font-display));
}

.ag-icon-small-down::after {
  background-image: var(--ag-icon-image-small-down, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-down, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-small-down, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-left {
  font-family: var(--ag-icon-font-family-small-left, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-left, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-left, var(--ag-icon-font-color));
}

.ag-icon-small-left::before {
  content: "\\f12c";
  content: var(--ag-icon-font-code-small-left, "\\f12c");
  display: var(--ag-icon-font-display-small-left, var(--ag-icon-font-display));
}

.ag-icon-small-left::after {
  background-image: var(--ag-icon-image-small-left, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-left, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-small-left, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-right {
  font-family: var(--ag-icon-font-family-small-right, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-right, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-right, var(--ag-icon-font-color));
}

.ag-icon-small-right::before {
  content: "\\f12d";
  content: var(--ag-icon-font-code-small-right, "\\f12d");
  display: var(--ag-icon-font-display-small-right, var(--ag-icon-font-display));
}

.ag-icon-small-right::after {
  background-image: var(--ag-icon-image-small-right, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-right, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-small-right, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-up {
  font-family: var(--ag-icon-font-family-small-up, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-up, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-up, var(--ag-icon-font-color));
}

.ag-icon-small-up::before {
  content: "\\f12e";
  content: var(--ag-icon-font-code-small-up, "\\f12e");
  display: var(--ag-icon-font-display-small-up, var(--ag-icon-font-display));
}

.ag-icon-small-up::after {
  background-image: var(--ag-icon-image-small-up, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-up, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-small-up, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tick {
  font-family: var(--ag-icon-font-family-tick, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tick, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tick, var(--ag-icon-font-color));
}

.ag-icon-tick::before {
  content: "\\f12f";
  content: var(--ag-icon-font-code-tick, "\\f12f");
  display: var(--ag-icon-font-display-tick, var(--ag-icon-font-display));
}

.ag-icon-tick::after {
  background-image: var(--ag-icon-image-tick, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tick, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-tick, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-closed {
  font-family: var(--ag-icon-font-family-tree-closed, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-closed, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-closed, var(--ag-icon-font-color));
}

.ag-icon-tree-closed::before {
  content: "\\f130";
  content: var(--ag-icon-font-code-tree-closed, "\\f130");
  display: var(--ag-icon-font-display-tree-closed, var(--ag-icon-font-display));
}

.ag-icon-tree-closed::after {
  background-image: var(--ag-icon-image-tree-closed, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-closed, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-tree-closed, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-indeterminate {
  font-family: var(--ag-icon-font-family-tree-indeterminate, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-indeterminate, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-indeterminate, var(--ag-icon-font-color));
}

.ag-icon-tree-indeterminate::before {
  content: "\\f131";
  content: var(--ag-icon-font-code-tree-indeterminate, "\\f131");
  display: var(--ag-icon-font-display-tree-indeterminate, var(--ag-icon-font-display));
}

.ag-icon-tree-indeterminate::after {
  background-image: var(--ag-icon-image-tree-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-indeterminate, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-tree-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-open {
  font-family: var(--ag-icon-font-family-tree-open, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-open, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-open, var(--ag-icon-font-color));
}

.ag-icon-tree-open::before {
  content: "\\f132";
  content: var(--ag-icon-font-code-tree-open, "\\f132");
  display: var(--ag-icon-font-display-tree-open, var(--ag-icon-font-display));
}

.ag-icon-tree-open::after {
  background-image: var(--ag-icon-image-tree-open, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-open, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-tree-open, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-unlinked {
  font-family: var(--ag-icon-font-family-unlinked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-unlinked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-unlinked, var(--ag-icon-font-color));
}

.ag-icon-unlinked::before {
  content: "\\f133";
  content: var(--ag-icon-font-code-unlinked, "\\f133");
  display: var(--ag-icon-font-display-unlinked, var(--ag-icon-font-display));
}

.ag-icon-unlinked::after {
  background-image: var(--ag-icon-image-unlinked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-unlinked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-unlinked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-up {
  font-family: var(--ag-icon-font-family-up, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-up, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-up, var(--ag-icon-font-color));
}

.ag-icon-up::before {
  content: "\\f134";
  content: var(--ag-icon-font-code-up, "\\f134");
  display: var(--ag-icon-font-display-up, var(--ag-icon-font-display));
}

.ag-icon-up::after {
  background-image: var(--ag-icon-image-up, var(--ag-icon-image));
  display: var(--ag-icon-image-display-up, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-up, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-down {
  font-family: var(--ag-icon-font-family-down, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-down, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-down, var(--ag-icon-font-color));
}

.ag-icon-down::before {
  content: "\\f135";
  content: var(--ag-icon-font-code-down, "\\f135");
  display: var(--ag-icon-font-display-down, var(--ag-icon-font-display));
}

.ag-icon-down::after {
  background-image: var(--ag-icon-image-down, var(--ag-icon-image));
  display: var(--ag-icon-image-display-down, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-down, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-plus {
  font-family: var(--ag-icon-font-family-plus, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-plus, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-plus, var(--ag-icon-font-color));
}

.ag-icon-plus::before {
  content: "\\f136";
  content: var(--ag-icon-font-code-plus, "\\f136");
  display: var(--ag-icon-font-display-plus, var(--ag-icon-font-display));
}

.ag-icon-plus::after {
  background-image: var(--ag-icon-image-plus, var(--ag-icon-image));
  display: var(--ag-icon-image-display-plus, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-plus, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-minus {
  font-family: var(--ag-icon-font-family-minus, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-minus, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-minus, var(--ag-icon-font-color));
}

.ag-icon-minus::before {
  content: "\\f137";
  content: var(--ag-icon-font-code-minus, "\\f137");
  display: var(--ag-icon-font-display-minus, var(--ag-icon-font-display));
}

.ag-icon-minus::after {
  background-image: var(--ag-icon-image-minus, var(--ag-icon-image));
  display: var(--ag-icon-image-display-minus, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-minus, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-menu-alt {
  font-family: var(--ag-icon-font-family-menu-alt, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-menu-alt, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-menu-alt, var(--ag-icon-font-color));
}

.ag-icon-menu-alt::before {
  content: "\\f138";
  content: var(--ag-icon-font-code-menu-alt, "\\f138");
  display: var(--ag-icon-font-display-menu-alt, var(--ag-icon-font-display));
}

.ag-icon-menu-alt::after {
  background-image: var(--ag-icon-image-menu-alt, var(--ag-icon-image));
  display: var(--ag-icon-image-display-menu-alt, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-menu-alt, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-settings {
  font-family: var(--ag-icon-font-family-settings, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-settings, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-settings, var(--ag-icon-font-color));
}

.ag-icon-settings::before {
  content: "\\f139";
  content: var(--ag-icon-font-code-settings, "\\f139");
  display: var(--ag-icon-font-display-settings, var(--ag-icon-font-display));
}

.ag-icon-settings::after {
  background-image: var(--ag-icon-image-settings, var(--ag-icon-image));
  display: var(--ag-icon-image-display-settings, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-settings, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-row-drag::before {
  content: var(--ag-icon-font-code-grip);
}

.ag-left-arrow::before {
  content: var(--ag-icon-font-code-left);
}

.ag-right-arrow::before {
  content: var(--ag-icon-font-code-right);
}

[class*=ag-theme-] {
  --ag-foreground-color: #000;
  --ag-data-color: var(--ag-foreground-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-header-foreground-color: var(--ag-secondary-foreground-color);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.5);
  --ag-background-color: #fff;
  --ag-header-background-color: transparent;
  --ag-tooltip-background-color: transparent;
  --ag-subheader-background-color: transparent;
  --ag-subheader-toolbar-background-color: transparent;
  --ag-control-panel-background-color: transparent;
  --ag-side-button-selected-background-color: var(--ag-control-panel-background-color);
  --ag-selected-row-background-color: #bbb;
  --ag-odd-row-background-color: var(--ag-background-color);
  --ag-modal-overlay-background-color: rgba(255, 255, 255, 0.66);
  --ag-menu-background-color: var(--ag-background-color);
  --ag-menu-border-color: var(--ag-border-color);
  --ag-panel-background-color: var(--ag-background-color);
  --ag-panel-border-color: var(--ag-border-color);
  --ag-row-hover-color: transparent;
  --ag-column-hover-color: transparent;
  --ag-range-selection-border-color: var(--ag-foreground-color);
  --ag-range-selection-border-style: solid;
  --ag-range-selection-background-color: rgba(0, 0, 0, 0.2);
  --ag-range-selection-background-color-2: var(--ag-range-selection-background-color);
  --ag-range-selection-background-color-3: var(--ag-range-selection-background-color);
  --ag-range-selection-background-color-4: var(--ag-range-selection-background-color);
  --ag-range-selection-highlight-color: var(--ag-range-selection-border-color);
  --ag-selected-tab-underline-color: var(--ag-range-selection-border-color);
  --ag-selected-tab-underline-width: 0;
  --ag-selected-tab-underline-transition-speed: 0s;
  --ag-range-selection-chart-category-background-color: rgba(0, 255, 132, 0.1);
  --ag-range-selection-chart-background-color: rgba(0, 88, 255, 0.1);
  --ag-header-cell-hover-background-color: transparent;
  --ag-header-cell-moving-background-color: var(--ag-background-color);
  --ag-value-change-value-highlight-background-color: rgba(22, 160, 133, 0.5);
  --ag-value-change-delta-up-color: #43a047;
  --ag-value-change-delta-down-color: #e53935;
  --ag-row-loading-skeleton-effect-color: rgba(66, 66, 66, 0.2);
  --ag-chip-background-color: transparent;
  --ag-chip-border-color: var(--ag-chip-background-color);
  --ag-borders: solid 1px;
  --ag-border-color: rgba(0, 0, 0, 0.25);
  --ag-borders-critical: var(--ag-borders);
  --ag-borders-secondary: var(--ag-borders);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-row-border-style: solid;
  --ag-row-border-color: var(--ag-secondary-border-color);
  --ag-row-border-width: 1px;
  --ag-cell-horizontal-border: solid transparent;
  --ag-borders-input: var(--ag-borders-secondary);
  --ag-input-border-color: var(--ag-secondary-border-color);
  --ag-borders-input-invalid: solid 2px;
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-borders-side-button: var(--ag-borders);
  --ag-border-radius: 0px;
  --ag-wrapper-border-radius: var(--ag-border-radius);
  --ag-row-border-color: var(--ag-secondary-border-color);
  --ag-header-column-separator-display: none;
  --ag-header-column-separator-height: 100%;
  --ag-header-column-separator-width: 1px;
  --ag-header-column-separator-color: var(--ag-secondary-border-color);
  --ag-header-column-resize-handle-display: none;
  --ag-header-column-resize-handle-height: 50%;
  --ag-header-column-resize-handle-width: 1px;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-invalid-color: red;
  --ag-input-disabled-border-color: var(--ag-input-border-color);
  --ag-input-disabled-background-color: transparent;
  --ag-checkbox-background-color: transparent;
  --ag-checkbox-border-radius: var(--ag-border-radius);
  --ag-checkbox-checked-color: var(--ag-foreground-color);
  --ag-checkbox-unchecked-color: var(--ag-foreground-color);
  --ag-checkbox-indeterminate-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-off-border-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-off-background-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-on-border-color: var(--ag-checkbox-checked-color);
  --ag-toggle-button-on-background-color: var(--ag-checkbox-checked-color);
  --ag-toggle-button-switch-background-color: var(--ag-background-color);
  --ag-toggle-button-switch-border-color: var(--ag-toggle-button-off-border-color);
  --ag-toggle-button-border-width: 1px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-toggle-button-width: calc(var(--ag-toggle-button-height) * 2);
  --ag-input-focus-box-shadow: none;
  --ag-input-focus-border-color: none;
  --ag-minichart-selected-chart-color: var(--ag-checkbox-checked-color);
  --ag-minichart-selected-page-color: var(--ag-checkbox-checked-color);
  --ag-grid-size: 4px;
  --ag-icon-size: 12px;
  --ag-icon-font-weight: normal;
  --ag-icon-font-color: var(--ag-foreground-color);
  --ag-icon-image-display: block;
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: var(--ag-grid-size);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: var(--ag-cell-horizontal-padding);
  --ag-row-height: calc(var(--ag-grid-size) * 6 + 1px);
  --ag-header-height: var(--ag-row-height);
  --ag-list-item-height: calc(var(--ag-grid-size) * 5);
  --ag-column-select-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));
  --ag-set-filter-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-grid-size) * 2 + var(--ag-icon-size));
  --ag-row-group-indent-size: calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size));
  --ag-filter-tool-panel-group-indent: 16px;
  --ag-tab-min-width: 220px;
  --ag-chart-menu-panel-width: var(--ag-tab-min-width);
  --ag-menu-min-width: 181px;
  --ag-side-bar-panel-width: 200px;
  --ag-font-family: "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-card-radius: var(--ag-border-radius);
  --ag-card-shadow: none;
  --ag-popup-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
}

.ag-root-wrapper,
.ag-sticky-top,
.ag-sticky-bottom,
.ag-dnd-ghost {
  background-color: var(--ag-background-color);
}

.ag-sticky-bottom {
  border-top: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);
}

.ag-root-wrapper,
.ag-popup {
  --ag-indentation-level: 0;
}

[class*=ag-theme-] {
  -webkit-font-smoothing: antialiased;
  font-family: var(--ag-font-family);
  font-size: var(--ag-font-size);
  line-height: normal;
  color: var(--ag-foreground-color);
}

ag-grid,
ag-grid-angular,
ag-grid-ng2,
ag-grid-polymer,
ag-grid-aurelia {
  display: block;
}

.ag-aria-description-container {
  z-index: 9999;
  border: 0px;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  position: absolute;
  overflow: hidden;
  padding: 0px;
  white-space: nowrap;
}

.ag-hidden {
  display: none !important;
}

.ag-invisible {
  visibility: hidden !important;
}

.ag-drag-handle {
  cursor: grab;
}

.ag-column-drop-wrapper {
  display: flex;
}

.ag-column-drop-horizontal-half-width {
  display: inline-block;
  width: 50% !important;
}

.ag-unselectable {
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-selectable {
  -moz-user-select: text;
  -webkit-user-select: text;
  user-select: text;
}

.ag-tab {
  position: relative;
}

.ag-tab-guard {
  position: absolute;
  width: 0;
  height: 0;
  display: block;
}

.ag-virtual-list-viewport .ag-tab-guard {
  position: sticky;
}

.ag-tab-guard-top {
  top: 1px;
}

.ag-tab-guard-bottom {
  bottom: 1px;
}

.ag-select-agg-func-popup {
  position: absolute;
}

.ag-input-wrapper,
.ag-picker-field-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  line-height: normal;
  position: relative;
}

.ag-shake-left-to-right {
  animation-direction: alternate;
  animation-duration: 0.2s;
  animation-iteration-count: infinite;
  animation-name: ag-shake-left-to-right;
}

@keyframes ag-shake-left-to-right {
  from {
    padding-left: 6px;
    padding-right: 2px;
  }
  to {
    padding-left: 2px;
    padding-right: 6px;
  }
}
.ag-root-wrapper {
  cursor: default;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: normal;
}
.ag-root-wrapper.ag-layout-normal {
  height: 100%;
}

.ag-watermark {
  position: absolute;
  bottom: 20px;
  right: 25px;
  opacity: 0.7;
  transition: opacity 1s ease-out 3s;
  color: #9b9b9b;
}
.ag-watermark::before {
  content: "";
  background-image: url(`+h+`);
  background-repeat: no-repeat;
  background-size: 170px 40px;
  display: block;
  height: 40px;
  width: 170px;
}

.ag-watermark-text {
  opacity: 0.5;
  font-weight: bold;
  font-family: Impact, sans-serif;
  font-size: 19px;
  padding-left: 0.7rem;
}

.ag-root-wrapper-body {
  display: flex;
  flex-direction: row;
}
.ag-root-wrapper-body.ag-layout-normal {
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
}

.ag-root {
  position: relative;
  display: flex;
  flex-direction: column;
}
.ag-root.ag-layout-normal, .ag-root.ag-layout-auto-height {
  overflow: hidden;
  flex: 1 1 auto;
  width: 0;
}
.ag-root.ag-layout-normal {
  height: 100%;
}

.ag-header-viewport,
.ag-floating-top-viewport,
.ag-body-viewport,
.ag-center-cols-viewport,
.ag-floating-bottom-viewport,
.ag-body-horizontal-scroll-viewport,
.ag-body-vertical-scroll-viewport,
.ag-virtual-list-viewport,
.ag-sticky-top-viewport,
.ag-sticky-bottom-viewport {
  position: relative;
  height: 100%;
  min-width: 0px;
  overflow: hidden;
  flex: 1 1 auto;
}

.ag-body-viewport,
.ag-center-cols-viewport,
.ag-header-viewport,
.ag-floating-top-viewport,
.ag-floating-bottom-viewport,
.ag-sticky-top-viewport,
.ag-sticky-bottom-viewport {
  overflow-x: auto;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
.ag-body-viewport::-webkit-scrollbar,
.ag-center-cols-viewport::-webkit-scrollbar,
.ag-header-viewport::-webkit-scrollbar,
.ag-floating-top-viewport::-webkit-scrollbar,
.ag-floating-bottom-viewport::-webkit-scrollbar,
.ag-sticky-top-viewport::-webkit-scrollbar,
.ag-sticky-bottom-viewport::-webkit-scrollbar {
  display: none !important;
}

.ag-body-viewport {
  display: flex;
  overflow-x: hidden;
}
.ag-body-viewport.ag-layout-normal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ag-sticky-top-container,
.ag-sticky-bottom-container {
  min-height: 1px;
}

.ag-center-cols-viewport {
  min-height: 100%;
  width: 100%;
}

.ag-body-horizontal-scroll-viewport {
  overflow-x: scroll;
}

.ag-body-vertical-scroll-viewport {
  overflow-y: scroll;
}

.ag-virtual-list-viewport {
  overflow: auto;
  width: 100%;
}

.ag-header-container,
.ag-floating-top-container,
.ag-body-container,
.ag-pinned-right-cols-container,
.ag-center-cols-container,
.ag-pinned-left-cols-container,
.ag-floating-bottom-container,
.ag-body-horizontal-scroll-container,
.ag-body-vertical-scroll-container,
.ag-full-width-container,
.ag-floating-bottom-full-width-container,
.ag-virtual-list-container,
.ag-sticky-top-container,
.ag-sticky-bottom-container {
  position: relative;
}

.ag-header-container,
.ag-floating-top-container,
.ag-floating-bottom-container,
.ag-sticky-top-container,
.ag-sticky-bottom-container {
  height: 100%;
  white-space: nowrap;
}

.ag-center-cols-container {
  display: block;
}

.ag-pinned-right-cols-container {
  display: block;
}

.ag-body-horizontal-scroll-container {
  height: 100%;
}

.ag-body-vertical-scroll-container {
  width: 100%;
}

.ag-full-width-container,
.ag-floating-top-full-width-container,
.ag-floating-bottom-full-width-container,
.ag-sticky-top-full-width-container,
.ag-sticky-bottom-full-width-container {
  position: absolute;
  top: 0px;
  pointer-events: none;
}
.ag-ltr .ag-full-width-container,
.ag-ltr .ag-floating-top-full-width-container,
.ag-ltr .ag-floating-bottom-full-width-container,
.ag-ltr .ag-sticky-top-full-width-container,
.ag-ltr .ag-sticky-bottom-full-width-container {
  left: 0;
}
.ag-rtl .ag-full-width-container,
.ag-rtl .ag-floating-top-full-width-container,
.ag-rtl .ag-floating-bottom-full-width-container,
.ag-rtl .ag-sticky-top-full-width-container,
.ag-rtl .ag-sticky-bottom-full-width-container {
  right: 0;
}

.ag-full-width-container {
  width: 100%;
}

.ag-floating-bottom-full-width-container,
.ag-floating-top-full-width-container {
  display: inline-block;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.ag-virtual-list-container {
  overflow: hidden;
}

.ag-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: row !important;
  min-height: 0;
}

.ag-body-horizontal-scroll,
.ag-body-vertical-scroll {
  min-height: 0;
  min-width: 0;
  display: flex;
  position: relative;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible,
.ag-body-vertical-scroll.ag-scrollbar-invisible {
  position: absolute;
  bottom: 0;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar {
  opacity: 0;
  transition: opacity 400ms;
  visibility: hidden;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling, .ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active {
  visibility: visible;
  opacity: 1;
}

.ag-body-horizontal-scroll {
  width: 100%;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible {
  left: 0;
  right: 0;
}

.ag-body-vertical-scroll {
  height: 100%;
}
.ag-body-vertical-scroll.ag-scrollbar-invisible {
  top: 0;
  z-index: 10;
}
.ag-ltr .ag-body-vertical-scroll.ag-scrollbar-invisible {
  right: 0;
}
.ag-rtl .ag-body-vertical-scroll.ag-scrollbar-invisible {
  left: 0;
}

.ag-force-vertical-scroll {
  overflow-y: scroll !important;
}

.ag-horizontal-left-spacer,
.ag-horizontal-right-spacer {
  height: 100%;
  min-width: 0;
  overflow-x: scroll;
}
.ag-horizontal-left-spacer.ag-scroller-corner,
.ag-horizontal-right-spacer.ag-scroller-corner {
  overflow-x: hidden;
}

.ag-header,
.ag-pinned-left-header,
.ag-pinned-right-header {
  display: inline-block;
  overflow: hidden;
  position: relative;
}

.ag-header-cell-sortable .ag-header-cell-label {
  cursor: pointer;
}

.ag-header {
  display: flex;
  width: 100%;
  white-space: nowrap;
}

.ag-pinned-left-header {
  height: 100%;
}

.ag-pinned-right-header {
  height: 100%;
}

.ag-header-row {
  position: absolute;
}

.ag-header-row:not(.ag-header-row-column-group) {
  overflow: hidden;
}

.ag-header.ag-header-allow-overflow .ag-header-row {
  overflow: visible;
}

.ag-header-cell {
  display: inline-flex;
  align-items: center;
  position: absolute;
  height: 100%;
  overflow: hidden;
}

.ag-header-cell.ag-header-active .ag-header-cell-menu-button,
.ag-header-cell-filter-button {
  opacity: 1;
}

.ag-header-cell-menu-button:not(.ag-header-menu-always-show) {
  transition: opacity 0.2s;
  opacity: 0;
}

.ag-header-group-cell-label,
.ag-header-cell-label {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  align-items: center;
  overflow: hidden;
}

.ag-header-cell-label {
  text-overflow: ellipsis;
}

.ag-header-group-cell-label.ag-sticky-label {
  position: sticky;
  flex: none;
  max-width: 100%;
  overflow: visible;
}

.ag-header-group-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-header-cell-text {
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.ag-header-group-cell .ag-header-cell-comp-wrapper {
  display: flex;
}

.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
}

.ag-header-cell-comp-wrapper {
  width: 100%;
}

.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper {
  white-space: normal;
}

.ag-header-cell-comp-wrapper-limited-height > div {
  overflow: hidden;
}

.ag-right-aligned-header .ag-header-cell-label {
  flex-direction: row-reverse;
}

.ag-header-cell-resize {
  position: absolute;
  z-index: 2;
  height: 100%;
  width: 8px;
  top: 0;
  cursor: ew-resize;
}
.ag-ltr .ag-header-cell-resize {
  right: -3px;
}
.ag-rtl .ag-header-cell-resize {
  left: -3px;
}

.ag-pinned-left-header .ag-header-cell-resize {
  right: -3px;
}

.ag-pinned-right-header .ag-header-cell-resize {
  left: -3px;
}

.ag-header-select-all {
  display: flex;
}

.ag-header-cell-menu-button,
.ag-header-cell-filter-button,
.ag-side-button-button,
.ag-panel-title-bar-button,
.ag-floating-filter-button-button {
  cursor: pointer;
}

.ag-column-moving .ag-cell {
  transition: left 0.2s;
}
.ag-column-moving .ag-header-cell {
  transition: left 0.2s;
}
.ag-column-moving .ag-header-group-cell {
  transition: left 0.2s, width 0.2s;
}

.ag-column-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1 1 auto;
}

.ag-column-select {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 3 1 0px;
}

.ag-column-select-header {
  position: relative;
  display: flex;
  flex: none;
}

.ag-column-select-header-icon {
  position: relative;
}

.ag-column-select-header-filter-wrapper {
  flex: 1 1 auto;
}

.ag-column-select-header-filter {
  width: 100%;
}

.ag-column-select-list {
  flex: 1 1 0px;
  overflow: hidden;
}

.ag-column-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: auto;
  width: 100%;
}

.ag-column-drop-list {
  display: flex;
  align-items: center;
}

.ag-column-drop-cell {
  position: relative;
  display: flex;
  align-items: center;
}

.ag-column-drop-cell-text {
  overflow: hidden;
  flex: 1 1 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-column-drop-vertical {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: stretch;
  flex: 1 1 0px;
}

.ag-column-drop-vertical-title-bar {
  display: flex;
  align-items: center;
  flex: none;
}

.ag-column-drop-vertical-list {
  position: relative;
  align-items: stretch;
  flex-grow: 1;
  flex-direction: column;
  overflow-x: auto;
}
.ag-column-drop-vertical-list > * {
  flex: none;
}

.ag-column-drop-empty .ag-column-drop-vertical-list {
  overflow: hidden;
}

.ag-column-drop-vertical-empty-message {
  display: block;
}

.ag-column-drop.ag-column-drop-horizontal {
  white-space: nowrap;
  overflow: hidden;
}

.ag-column-drop-cell-button {
  cursor: pointer;
}

.ag-filter-toolpanel {
  flex: 1 1 0px;
  min-width: 0;
}

.ag-filter-toolpanel-header {
  position: relative;
}

.ag-filter-toolpanel-header,
.ag-filter-toolpanel-search {
  display: flex;
  align-items: center;
}
.ag-filter-toolpanel-header > *,
.ag-filter-toolpanel-search > * {
  display: flex;
  align-items: center;
}

.ag-filter-apply-panel {
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}

.ag-row-animation .ag-row {
  transition: transform 0.4s, top 0.4s, opacity 0.2s;
}

.ag-row-animation .ag-row.ag-after-created {
  transition: transform 0.4s, top 0.4s, height 0.4s, opacity 0.2s;
}

.ag-row-no-animation .ag-row {
  transition: none;
}

.ag-row {
  white-space: nowrap;
  width: 100%;
}

.ag-row-loading {
  display: flex;
  align-items: center;
}

.ag-row-position-absolute {
  position: absolute;
}

.ag-row-position-relative {
  position: relative;
}

.ag-full-width-row {
  overflow: hidden;
  pointer-events: all;
}

.ag-row-inline-editing {
  z-index: 1;
}

.ag-row-dragging {
  z-index: 2;
}

.ag-stub-cell {
  display: flex;
  align-items: center;
}

.ag-cell {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  height: 100%;
}

.ag-cell-value {
  flex: 1 1 auto;
}

.ag-cell-value,
.ag-group-value {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-cell-wrap-text {
  white-space: normal;
  word-break: break-word;
}

.ag-cell-wrapper {
  display: flex;
  align-items: center;
}
.ag-cell-wrapper.ag-row-group {
  align-items: flex-start;
}

.ag-sparkline-wrapper {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

.ag-sparkline-wrapper :where(canvas) {
  position: absolute;
}

.ag-full-width-row .ag-cell-wrapper.ag-row-group {
  height: 100%;
  align-items: center;
}

.ag-cell-inline-editing {
  z-index: 1;
}
.ag-cell-inline-editing .ag-cell-wrapper,
.ag-cell-inline-editing .ag-cell-edit-wrapper,
.ag-cell-inline-editing .ag-cell-editor,
.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,
.ag-cell-inline-editing .ag-cell-editor input {
  height: 100%;
  width: 100%;
  line-height: normal;
}

.ag-cell .ag-icon {
  display: inline-block;
  vertical-align: middle;
}

.ag-set-filter-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.ag-set-filter-item-checkbox {
  display: flex;
  width: 100%;
  height: 100%;
}

.ag-set-filter-group-icons {
  display: block;
}
.ag-set-filter-group-icons > * {
  cursor: pointer;
}

.ag-filter-body-wrapper {
  display: flex;
  flex-direction: column;
}

.ag-filter-filter {
  flex: 1 1 0px;
}

.ag-filter-condition {
  display: flex;
  justify-content: center;
}

.ag-floating-filter-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  height: 100%;
}

.ag-floating-filter-full-body {
  display: flex;
  flex: 1 1 auto;
  height: 100%;
  width: 100%;
  align-items: center;
  overflow: hidden;
}

.ag-floating-filter-full-body > div {
  flex: 1 1 auto;
}

.ag-floating-filter-input {
  align-items: center;
  display: flex;
  width: 100%;
}
.ag-floating-filter-input > * {
  flex: 1 1 auto;
}

.ag-floating-filter-button {
  display: flex;
  flex: none;
}

.ag-set-floating-filter-input input[disabled] {
  pointer-events: none;
}

.ag-dnd-ghost {
  display: inline-flex;
  align-items: center;
  cursor: move;
  white-space: nowrap;
}

.ag-overlay {
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}

.ag-overlay-panel {
  display: flex;
  height: 100%;
  width: 100%;
}

.ag-overlay-wrapper {
  display: flex;
  flex: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ag-overlay-loading-wrapper {
  pointer-events: all;
}

.ag-popup-child {
  z-index: 5;
  top: 0;
}

.ag-popup-editor {
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-large-text-input {
  display: block;
}

.ag-virtual-list-item {
  position: absolute;
  width: 100%;
}

.ag-floating-top {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
}

.ag-pinned-left-floating-top {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-pinned-right-floating-top {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-floating-bottom {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
}

.ag-pinned-left-floating-bottom {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-pinned-right-floating-bottom {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-sticky-top,
.ag-sticky-bottom {
  position: absolute;
  display: flex;
  width: 100%;
  overflow: hidden;
  height: 0px;
}

.ag-sticky-bottom {
  box-sizing: content-box !important;
}

.ag-pinned-left-sticky-top,
.ag-pinned-right-sticky-top {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.ag-sticky-top-full-width-container,
.ag-sticky-bottom-full-width-container {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.ag-dialog,
.ag-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ag-panel-title-bar {
  display: flex;
  flex: none;
  align-items: center;
  cursor: default;
}

.ag-panel-title-bar-title {
  flex: 1 1 auto;
}

.ag-panel-title-bar-buttons {
  display: flex;
}

.ag-panel-title-bar-button {
  cursor: pointer;
}

.ag-panel-content-wrapper {
  display: flex;
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.ag-dialog {
  position: absolute;
}

.ag-resizer {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
.ag-resizer.ag-resizer-topLeft {
  top: 0;
  left: 0;
  height: 5px;
  width: 5px;
  cursor: nwse-resize;
}
.ag-resizer.ag-resizer-top {
  top: 0;
  left: 5px;
  right: 5px;
  height: 5px;
  cursor: ns-resize;
}
.ag-resizer.ag-resizer-topRight {
  top: 0;
  right: 0;
  height: 5px;
  width: 5px;
  cursor: nesw-resize;
}
.ag-resizer.ag-resizer-right {
  top: 5px;
  right: 0;
  bottom: 5px;
  width: 5px;
  cursor: ew-resize;
}
.ag-resizer.ag-resizer-bottomRight {
  bottom: 0;
  right: 0;
  height: 5px;
  width: 5px;
  cursor: nwse-resize;
}
.ag-resizer.ag-resizer-bottom {
  bottom: 0;
  left: 5px;
  right: 5px;
  height: 5px;
  cursor: ns-resize;
}
.ag-resizer.ag-resizer-bottomLeft {
  bottom: 0;
  left: 0;
  height: 5px;
  width: 5px;
  cursor: nesw-resize;
}
.ag-resizer.ag-resizer-left {
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 5px;
  cursor: ew-resize;
}

.ag-tooltip {
  position: absolute;
  z-index: 99999;
}

.ag-tooltip-custom {
  position: absolute;
  z-index: 99999;
}

.ag-tooltip:not(.ag-tooltip-interactive),
.ag-tooltip-custom:not(.ag-tooltip-interactive) {
  pointer-events: none;
}

.ag-value-slide-out {
  margin-right: 5px;
  opacity: 1;
  transition: opacity 3s, margin-right 3s;
  transition-timing-function: linear;
}

.ag-value-slide-out-end {
  margin-right: 10px;
  opacity: 0;
}

.ag-opacity-zero {
  opacity: 0 !important;
}

.ag-menu {
  max-height: 100%;
  overflow-y: auto;
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-menu-column-select-wrapper {
  height: 265px;
  overflow: auto;
}
.ag-menu-column-select-wrapper .ag-column-select {
  height: 100%;
}

.ag-dialog .ag-panel-content-wrapper .ag-column-select {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.ag-menu-list {
  display: table;
  width: 100%;
}

.ag-menu-option,
.ag-menu-separator {
  display: table-row;
}

.ag-menu-option-part,
.ag-menu-separator-part {
  display: table-cell;
  vertical-align: middle;
}

.ag-menu-option-text {
  white-space: nowrap;
}

.ag-menu-option-custom {
  display: contents;
}

.ag-compact-menu-option {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
}

.ag-compact-menu-option-text {
  white-space: nowrap;
  flex: 1 1 auto;
}

.ag-context-menu-loading-icon {
  position: absolute;
  pointer-events: none;
}

.ag-pill-container {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.ag-pill {
  display: flex;
  white-space: nowrap;
  padding: 0 0.25rem;
  align-items: center;
}

.ag-pill .ag-pill-button {
  border: none;
  padding: 0;
}

.ag-rich-select {
  cursor: default;
  outline: none;
  height: 100%;
}

.ag-rich-select-value {
  display: flex;
  align-items: center;
  height: 100%;
}
.ag-rich-select-value .ag-picker-field-display {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-rich-select-value .ag-picker-field-display.ag-display-as-placeholder {
  opacity: 0.5;
}

.ag-rich-select-list {
  position: relative;
}
.ag-rich-select-list .ag-loading-text {
  min-height: 2rem;
}

.ag-rich-select-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  height: 100%;
}

.ag-rich-select-field-input {
  flex: 1 1 auto;
}
.ag-rich-select-field-input .ag-input-field-input {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  text-overflow: ellipsis;
}
.ag-rich-select-field-input .ag-input-field-input::-moz-placeholder {
  opacity: 0.8;
}
.ag-rich-select-field-input .ag-input-field-input::placeholder {
  opacity: 0.8;
}

.ag-autocomplete {
  align-items: center;
  display: flex;
}
.ag-autocomplete > * {
  flex: 1 1 auto;
}

.ag-autocomplete-list-popup {
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-autocomplete-list {
  position: relative;
}

.ag-autocomplete-virtual-list-item {
  display: flex;
}

.ag-autocomplete-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  overflow: hidden;
}

.ag-autocomplete-row-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-paging-panel {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.ag-paging-page-summary-panel {
  display: flex;
  align-items: center;
}

.ag-paging-button {
  position: relative;
}

.ag-disabled .ag-paging-page-summary-panel {
  pointer-events: none;
}

.ag-tool-panel-wrapper {
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: default;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-column-select-column,
.ag-column-select-column-group,
.ag-select-agg-func-item {
  position: relative;
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
}
.ag-column-select-column > *,
.ag-column-select-column-group > *,
.ag-select-agg-func-item > * {
  flex: none;
}

.ag-select-agg-func-item,
.ag-column-select-column-label {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-column-select-checkbox {
  display: flex;
}

.ag-tool-panel-horizontal-resize {
  cursor: ew-resize;
  height: 100%;
  position: absolute;
  top: 0;
  width: 5px;
  z-index: 1;
}

.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize {
  right: -3px;
}
.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize {
  left: -3px;
}

.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize {
  left: -3px;
}
.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize {
  right: -3px;
}

.ag-details-row {
  width: 100%;
}

.ag-details-row-fixed-height {
  height: 100%;
}

.ag-details-grid {
  width: 100%;
}

.ag-details-grid-fixed-height {
  height: 100%;
}

.ag-header-group-cell {
  display: flex;
  align-items: center;
  height: 100%;
  position: absolute;
}

.ag-header-group-cell-no-group.ag-header-span-height {
  display: none;
}

.ag-cell-label-container {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: center;
  height: 100%;
  width: 100%;
}

.ag-header-group-cell-label,
.ag-cell-label-container {
  padding: 5px 0px;
}

.ag-right-aligned-header .ag-cell-label-container {
  flex-direction: row;
}
.ag-right-aligned-header .ag-header-cell-text {
  text-align: right;
}

.ag-side-bar {
  display: flex;
  flex-direction: row-reverse;
}

.ag-side-bar-left {
  order: -1;
  flex-direction: row;
}

.ag-side-button-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  outline: none;
  cursor: pointer;
}

.ag-side-button-label {
  writing-mode: vertical-lr;
}

.ag-status-bar {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.ag-status-panel {
  display: inline-flex;
}

.ag-status-name-value {
  white-space: nowrap;
}

.ag-status-bar-left {
  display: inline-flex;
}

.ag-status-bar-center {
  display: inline-flex;
}

.ag-status-bar-right {
  display: inline-flex;
}

.ag-icon {
  display: block;
  speak: none;
}

.ag-group {
  position: relative;
  width: 100%;
}

.ag-group-title-bar {
  display: flex;
  align-items: center;
}

.ag-group-title {
  display: inline;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ag-group-title-bar .ag-group-title {
  cursor: default;
}

.ag-group-toolbar {
  display: flex;
  align-items: center;
}

.ag-group-container {
  display: flex;
}

.ag-disabled .ag-group-container {
  pointer-events: none;
}

.ag-group-container-horizontal {
  flex-direction: row;
  flex-wrap: wrap;
}

.ag-group-container-vertical {
  flex-direction: column;
}

.ag-column-group-icons {
  display: block;
}
.ag-column-group-icons > * {
  cursor: pointer;
}

.ag-group-item-alignment-stretch .ag-group-item {
  align-items: stretch;
}

.ag-group-item-alignment-start .ag-group-item {
  align-items: flex-start;
}

.ag-group-item-alignment-end .ag-group-item {
  align-items: flex-end;
}

.ag-toggle-button-icon {
  transition: right 0.3s;
  position: absolute;
  top: -1px;
}

.ag-input-field,
.ag-select {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.ag-input-field-input {
  flex: 1 1 auto;
}

.ag-floating-filter-input .ag-input-field-input[type=date] {
  width: 1px;
}

.ag-range-field {
  display: flex;
  align-items: center;
}

.ag-angle-select {
  display: flex;
  align-items: center;
}

.ag-angle-select-wrapper {
  display: flex;
}

.ag-angle-select-parent-circle {
  display: block;
  position: relative;
}

.ag-angle-select-child-circle {
  position: absolute;
}

.ag-slider-wrapper {
  display: flex;
}
.ag-slider-wrapper .ag-input-field {
  flex: 1 1 auto;
}

.ag-picker-field-display {
  flex: 1 1 auto;
}

.ag-picker-field {
  display: flex;
  align-items: center;
}

.ag-picker-field-icon {
  display: flex;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.ag-picker-field-wrapper {
  overflow: hidden;
}

.ag-label-align-right .ag-label {
  order: 1;
}
.ag-label-align-right > * {
  flex: none;
}

.ag-label-align-top {
  flex-direction: column;
  align-items: flex-start;
}
.ag-label-align-top > * {
  align-self: stretch;
}

.ag-label-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.ag-color-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.ag-spectrum-color {
  flex: 1 1 auto;
  position: relative;
  overflow: visible;
  cursor: default;
}

.ag-spectrum-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ag-spectrum-val {
  cursor: pointer;
}

.ag-spectrum-dragger {
  position: absolute;
  pointer-events: none;
  cursor: pointer;
}

.ag-spectrum-hue,
.ag-spectrum-alpha {
  cursor: default;
}

.ag-spectrum-hue-background {
  background: linear-gradient(to left, #ff0000 3%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  width: 100%;
  height: 100%;
}

.ag-spectrum-alpha {
  --ag-spectrum-alpha-background-checked: url(`+g+`);
}

.ag-spectrum-alpha-background {
  background: linear-gradient(to right, var(--ag-internal-spectrum-alpha-color-from), var(--ag-internal-spectrum-alpha-color-to)), var(--ag-spectrum-alpha-background-checked) top left/4px 4px;
  width: 100%;
  height: 100%;
}

.ag-spectrum-tool {
  cursor: pointer;
  position: relative;
}

.ag-spectrum-slider {
  position: absolute;
  pointer-events: none;
}

.ag-spectrum-alpha .ag-spectrum-slider {
  background: linear-gradient(to bottom, var(--ag-internal-spectrum-alpha-color), var(--ag-internal-spectrum-alpha-color)) white;
}

.ag-recent-colors {
  display: flex;
}

.ag-recent-color {
  cursor: pointer;
}

.ag-pill-select {
  display: flex;
  flex-direction: column;
}
.ag-pill-select .ag-column-drop {
  flex: initial;
}

.ag-ltr {
  direction: ltr;
}
.ag-ltr .ag-body,
.ag-ltr .ag-floating-top,
.ag-ltr .ag-floating-bottom,
.ag-ltr .ag-header,
.ag-ltr .ag-sticky-top,
.ag-ltr .ag-sticky-bottom,
.ag-ltr .ag-body-viewport,
.ag-ltr .ag-body-horizontal-scroll {
  flex-direction: row;
}

.ag-rtl {
  direction: rtl;
}
.ag-rtl .ag-body,
.ag-rtl .ag-floating-top,
.ag-rtl .ag-floating-bottom,
.ag-rtl .ag-header,
.ag-rtl .ag-sticky-top,
.ag-rtl .ag-sticky-bottom,
.ag-rtl .ag-body-viewport,
.ag-rtl .ag-body-horizontal-scroll {
  flex-direction: row-reverse;
}
.ag-rtl .ag-icon-contracted,
.ag-rtl .ag-icon-expanded,
.ag-rtl .ag-icon-tree-closed {
  display: block;
  transform: rotate(180deg);
}

.ag-body .ag-body-viewport {
  -webkit-overflow-scrolling: touch;
}

.ag-measurement-container {
  width: 0;
  overflow: hidden;
  visibility: hidden;
}
.ag-measurement-container div {
  position: absolute;
}

.ag-layout-print.ag-body {
  display: block;
  height: auto;
  height: initial;
}
.ag-layout-print.ag-root-wrapper {
  display: inline-block;
}
.ag-layout-print .ag-body-vertical-scroll {
  display: none;
}
.ag-layout-print .ag-body-horizontal-scroll {
  display: none;
}
.ag-layout-print.ag-force-vertical-scroll {
  overflow-y: visible !important;
}

@media print {
  .ag-root-wrapper.ag-layout-print {
    display: table;
  }
  .ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,
  .ag-root-wrapper.ag-layout-print .ag-root,
  .ag-root-wrapper.ag-layout-print .ag-body-viewport,
  .ag-root-wrapper.ag-layout-print .ag-center-cols-container,
  .ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,
  .ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,
  .ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport {
    height: auto !important;
    overflow: hidden !important;
    display: block !important;
  }
  .ag-root-wrapper.ag-layout-print .ag-row,
  .ag-root-wrapper.ag-layout-print .ag-cell {
    page-break-inside: avoid;
    -moz-column-break-inside: avoid;
         break-inside: avoid;
  }
}
[class^=ag-],
[class^=ag-]:focus,
[class^=ag-]:after,
[class^=ag-]:before {
  box-sizing: border-box;
  outline: none;
}

[class^=ag-]::-ms-clear {
  display: none;
}

.ag-checkbox .ag-input-wrapper,
.ag-radio-button .ag-input-wrapper {
  overflow: visible;
}

.ag-range-field .ag-input-wrapper {
  height: 100%;
}

.ag-toggle-button {
  flex: none;
  width: auto;
  width: initial;
  min-width: 0;
  min-width: initial;
}

.ag-button {
  border-radius: 0px;
  color: var(--ag-foreground-color);
}

.ag-button:hover {
  background-color: transparent;
}

.ag-ltr .ag-label-align-right .ag-label {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-label-align-right .ag-label {
  margin-right: var(--ag-grid-size);
}

input[class^=ag-] {
  margin: 0;
  background-color: var(--ag-background-color);
}

textarea[class^=ag-],
select[class^=ag-] {
  background-color: var(--ag-background-color);
}

input[class^=ag-]:not([type]),
input[class^=ag-][type=text],
input[class^=ag-][type=number],
input[class^=ag-][type=tel],
input[class^=ag-][type=date],
input[class^=ag-][type=datetime-local],
textarea[class^=ag-] {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-family: inherit;
  border: var(--ag-borders-input) var(--ag-input-border-color);
}
input[class^=ag-]:not([type]):disabled,
input[class^=ag-][type=text]:disabled,
input[class^=ag-][type=number]:disabled,
input[class^=ag-][type=tel]:disabled,
input[class^=ag-][type=date]:disabled,
input[class^=ag-][type=datetime-local]:disabled,
textarea[class^=ag-]:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
input[class^=ag-]:not([type]):focus,
input[class^=ag-][type=text]:focus,
input[class^=ag-][type=number]:focus,
input[class^=ag-][type=tel]:focus,
input[class^=ag-][type=date]:focus,
input[class^=ag-][type=datetime-local]:focus,
textarea[class^=ag-]:focus {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-input-focus-border-color);
}
input[class^=ag-]:not([type]):invalid,
input[class^=ag-][type=text]:invalid,
input[class^=ag-][type=number]:invalid,
input[class^=ag-][type=tel]:invalid,
input[class^=ag-][type=date]:invalid,
input[class^=ag-][type=datetime-local]:invalid,
textarea[class^=ag-]:invalid {
  border: var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid);
}

input[class^=ag-][type=number]:not(.ag-number-field-input-stepper) {
  -moz-appearance: textfield;
}
input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-outer-spin-button, input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[class^=ag-][type=range] {
  padding: 0;
}

input[class^=ag-][type=button]:focus,
button[class^=ag-]:focus {
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-drag-handle {
  color: var(--ag-secondary-foreground-color);
}

.ag-list-item,
.ag-virtual-list-item {
  height: var(--ag-list-item-height);
}

.ag-virtual-list-item:focus-visible {
  outline: none;
}
.ag-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-select-list {
  background-color: var(--ag-background-color);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}

.ag-list-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-list-item.ag-active-item {
  background-color: var(--ag-row-hover-color);
}

.ag-select-list-item {
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}
.ag-ltr .ag-select-list-item {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-select-list-item {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-select-list-item span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ag-row-drag,
.ag-selection-checkbox,
.ag-group-expanded,
.ag-group-contracted {
  color: var(--ag-secondary-foreground-color);
}
.ag-ltr .ag-row-drag,
.ag-ltr .ag-selection-checkbox,
.ag-ltr .ag-group-expanded,
.ag-ltr .ag-group-contracted {
  margin-right: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-row-drag,
.ag-rtl .ag-selection-checkbox,
.ag-rtl .ag-group-expanded,
.ag-rtl .ag-group-contracted {
  margin-left: var(--ag-cell-widget-spacing);
}

.ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {
  --ag-internal-calculated-line-height: var(
      --ag-line-height,
      calc(var(--ag-row-height) - var(--ag-row-border-width))
  );
  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));
  height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));
  display: flex;
  align-items: center;
  flex: none;
}

.ag-group-expanded,
.ag-group-contracted {
  cursor: pointer;
}

.ag-group-title-bar-icon {
  cursor: pointer;
  flex: none;
  color: var(--ag-secondary-foreground-color);
}

.ag-ltr .ag-group-child-count {
  margin-left: 2px;
}
.ag-rtl .ag-group-child-count {
  margin-right: 2px;
}

.ag-group-title-bar {
  background-color: var(--ag-subheader-background-color);
  padding: var(--ag-grid-size);
}

.ag-group-toolbar {
  padding: var(--ag-grid-size);
  background-color: var(--ag-subheader-toolbar-background-color);
}

.ag-disabled-group-title-bar,
.ag-disabled-group-container {
  opacity: 0.5;
}

.group-item {
  margin: calc(var(--ag-grid-size) * 0.5) 0;
}

.ag-label {
  white-space: nowrap;
}
.ag-ltr .ag-label {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-label {
  margin-left: var(--ag-grid-size);
}

.ag-label-align-top .ag-label {
  margin-bottom: calc(var(--ag-grid-size) * 0.5);
}

.ag-angle-select[disabled] {
  color: var(--ag-disabled-foreground-color);
  pointer-events: none;
}
.ag-angle-select[disabled] .ag-angle-select-field {
  opacity: 0.4;
}

.ag-ltr .ag-slider-field,
.ag-ltr .ag-angle-select-field {
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-slider-field,
.ag-rtl .ag-angle-select-field {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-angle-select-parent-circle {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  border: solid 1px;
  border-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}

.ag-angle-select-child-circle {
  top: 4px;
  left: 12px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -4px;
  border-radius: 3px;
  background-color: var(--ag-secondary-foreground-color);
}

.ag-picker-field-wrapper {
  border: var(--ag-borders);
  border-color: var(--ag-border-color);
  border-radius: 5px;
  background-color: var(--ag-background-color);
}
.ag-picker-field-wrapper:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-picker-field-wrapper.ag-picker-has-focus, .ag-picker-field-wrapper:focus-within {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-input-focus-border-color);
}

.ag-picker-field-button {
  background-color: var(--ag-background-color);
  color: var(--ag-secondary-foreground-color);
}

.ag-dialog.ag-color-dialog {
  border-radius: 5px;
}

.ag-color-picker .ag-picker-field-wrapper {
  padding-left: var(--ag-grid-size);
  padding-right: var(--ag-grid-size);
}
.ag-color-picker .ag-picker-field-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: var(--ag-list-item-height);
}

.ag-ltr .ag-color-picker-color,
.ag-ltr .ag-color-picker-value {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-color-picker-color,
.ag-rtl .ag-color-picker-value {
  margin-left: var(--ag-grid-size);
}

.ag-color-panel {
  padding: var(--ag-grid-size);
}

.ag-spectrum-color {
  background-color: rgb(255, 0, 0);
  border-radius: 2px;
}

.ag-spectrum-tools {
  padding: 10px;
}

.ag-spectrum-sat {
  background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));
}

.ag-spectrum-val {
  background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));
}

.ag-spectrum-dragger {
  border-radius: 12px;
  height: 12px;
  width: 12px;
  border: 2px solid white;
  background: black;
  box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);
}

.ag-spectrum-hue-background {
  border-radius: 2px;
}

.ag-spectrum-alpha-background {
  border-radius: 2px;
}

.ag-spectrum-tool {
  margin-bottom: 10px;
  height: 11px;
  border-radius: 2px;
}

.ag-spectrum-slider {
  margin-top: -12px;
  width: 13px;
  height: 13px;
  border-radius: 13px;
  border: 2px solid white;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}

.ag-recent-colors {
  margin-top: 10px;
}

.ag-recent-color {
  margin: 0 3px;
}
.ag-recent-color:first-child {
  margin-left: 0;
}
.ag-recent-color:last-child {
  margin-right: 0;
}

.ag-spectrum-color:focus-visible:not(:disabled):not([readonly]),
.ag-spectrum-slider:focus-visible:not(:disabled):not([readonly]),
.ag-recent-color:focus-visible:not(:disabled):not([readonly]) {
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-ltr .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-rtl .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-color-input .ag-color-input-color {
  position: absolute;
}
.ag-ltr .ag-color-input .ag-color-input-color {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-color-input .ag-color-input-color {
  margin-right: var(--ag-grid-size);
}

.ag-color-picker-color,
.ag-color-input-color {
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  border-radius: 2px;
}

.ag-dnd-ghost {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  overflow: hidden;
  text-overflow: ellipsis;
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
  line-height: var(--ag-header-height);
  margin: 0;
  padding: 0 calc(var(--ag-grid-size) * 2);
  transform: translateY(calc(var(--ag-grid-size) * 2));
}

.ag-dnd-ghost-icon {
  margin-right: var(--ag-grid-size);
  color: var(--ag-foreground-color);
}

.ag-popup-child:not(.ag-tooltip-custom) {
  box-shadow: var(--ag-popup-shadow);
}

.ag-select .ag-picker-field-wrapper {
  min-height: var(--ag-list-item-height);
  cursor: default;
}
.ag-ltr .ag-select .ag-picker-field-wrapper {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-select .ag-picker-field-wrapper {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-ltr .ag-select .ag-picker-field-wrapper {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-select .ag-picker-field-wrapper {
  padding-left: var(--ag-grid-size);
}
.ag-select.ag-disabled .ag-picker-field-wrapper:focus {
  box-shadow: none;
}
.ag-select:not(.ag-cell-editor):not(.ag-label-align-top) {
  min-height: var(--ag-list-item-height);
}
.ag-select .ag-picker-field-display {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-select .ag-picker-field-icon {
  display: flex;
  align-items: center;
}
.ag-select.ag-disabled {
  opacity: 0.5;
}

.ag-rich-select-value,
.ag-rich-select-list {
  background-color: var(--ag-background-color);
}

.ag-rich-select-list {
  width: 100%;
  height: auto;
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}
.ag-rich-select-list .ag-loading-text {
  padding: var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing);
}

.ag-rich-select-value {
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  padding-top: 0;
  padding-bottom: 0;
}
.ag-ltr .ag-rich-select-value {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-rich-select-value {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-ltr .ag-rich-select-value {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-rich-select-value {
  padding-left: var(--ag-grid-size);
}

.ag-ltr .ag-rich-select-field-input {
  left: calc(var(--ag-cell-horizontal-padding));
}
.ag-rtl .ag-rich-select-field-input {
  right: calc(var(--ag-cell-horizontal-padding));
}

.ag-popup-editor .ag-rich-select-value {
  height: var(--ag-row-height);
  min-width: 200px;
}

.ag-rich-select-virtual-list-item {
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-rich-select-virtual-list-item:focus-visible::after {
  content: none;
}

.ag-ltr .ag-rich-select-row {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-rich-select-row {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}

.ag-rich-select-row-selected {
  background-color: var(--ag-selected-row-background-color);
}

.ag-rich-select-row:hover,
.ag-rich-select-row-highlighted {
  background-image: linear-gradient(var(--ag-row-hover-color), var(--ag-row-hover-color));
}

.ag-rich-select-row-text-highlight {
  font-weight: bold;
}

.ag-autocomplete {
  width: 100%;
}

.ag-autocomplete-list {
  width: 100%;
  min-width: 200px;
  height: calc(var(--ag-row-height) * 6.5);
}

.ag-autocomplete-virtual-list-item {
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-autocomplete-virtual-list-item:focus-visible::after {
  content: none;
}
.ag-autocomplete-virtual-list-item:hover {
  background-color: var(--ag-row-hover-color);
}

.ag-autocomplete-row-label {
  margin: 0px var(--ag-widget-container-horizontal-padding);
}

.ag-autocomplete-row-selected {
  background-color: var(--ag-selected-row-background-color);
}

.ag-pill {
  border: 1px solid var(--ag-chip-border-color);
  border-radius: var(--ag-border-radius);
  background-color: var(--ag-chip-background-color);
}

.ag-ltr .ag-pill .ag-pill-button {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-pill .ag-pill-button {
  margin-right: var(--ag-grid-size);
}

.ag-pill:focus-visible {
  border-color: var(--ag-input-focus-border-color);
}

.ag-pill .ag-pill-button:hover {
  cursor: pointer;
}

.ag-dragging-range-handle .ag-dialog,
.ag-dragging-fill-handle .ag-dialog {
  opacity: 0.7;
  pointer-events: none;
}

.ag-dialog {
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
  box-shadow: var(--ag-popup-shadow);
}

.ag-panel {
  background-color: var(--ag-panel-background-color);
  border-color: var(--ag-panel-border-color);
}

.ag-panel-title-bar {
  color: var(--ag-header-foreground-color);
  height: var(--ag-header-height);
  padding: var(--ag-grid-size) var(--ag-cell-horizontal-padding);
  border-bottom: var(--ag-borders) var(--ag-border-color);
}

.ag-ltr .ag-panel-title-bar-button {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-panel-title-bar-button {
  margin-right: var(--ag-grid-size);
}

.ag-tooltip {
  background-color: var(--ag-tooltip-background-color);
  color: var(--ag-foreground-color);
  padding: var(--ag-grid-size);
  border: var(--ag-borders) var(--ag-border-color);
  border-radius: var(--ag-card-radius);
  white-space: normal;
}

.ag-tooltip.ag-tooltip-animate,
.ag-tooltip-custom.ag-tooltip-animate {
  transition: opacity 1s;
}
.ag-tooltip.ag-tooltip-animate.ag-tooltip-hiding,
.ag-tooltip-custom.ag-tooltip-animate.ag-tooltip-hiding {
  opacity: 0;
}

.ag-ltr .ag-column-select-column,
.ag-ltr .ag-column-select-column-group {
  padding-left: calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size));
}
.ag-rtl .ag-column-select-column,
.ag-rtl .ag-column-select-column-group {
  padding-right: calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size));
}

.ag-column-select-header-icon {
  cursor: pointer;
}

.ag-column-select-header-icon:focus-visible {
  outline: none;
}
.ag-column-select-header-icon:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 0px;
  left: 0px;
  display: block;
  width: calc(100% - 0px);
  height: calc(100% - 0px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-ltr .ag-column-group-icons:not(:last-child),
.ag-ltr .ag-column-select-header-icon:not(:last-child),
.ag-ltr .ag-column-select-header-checkbox:not(:last-child),
.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),
.ag-ltr .ag-column-select-checkbox:not(:last-child),
.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),
.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),
.ag-ltr .ag-column-select-column-label:not(:last-child) {
  margin-right: var(--ag-widget-horizontal-spacing);
}
.ag-rtl .ag-column-group-icons:not(:last-child),
.ag-rtl .ag-column-select-header-icon:not(:last-child),
.ag-rtl .ag-column-select-header-checkbox:not(:last-child),
.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),
.ag-rtl .ag-column-select-checkbox:not(:last-child),
.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),
.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),
.ag-rtl .ag-column-select-column-label:not(:last-child) {
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-column-select-virtual-list-item:focus-visible {
  outline: none;
}
.ag-column-select-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-select-column-group:not(:last-child),
.ag-column-select-column:not(:last-child) {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-column-select-column-readonly,
.ag-column-select-column-group-readonly {
  color: var(--ag-disabled-foreground-color);
  pointer-events: none;
}

.ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}

.ag-column-select-virtual-list-viewport {
  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) 0px;
}

.ag-column-select-virtual-list-item {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}

.ag-checkbox-edit {
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-pill-select .ag-column-drop {
  border-bottom: 0;
  min-height: 0;
  min-height: initial;
}
.ag-pill-select .ag-column-drop-list {
  padding: 0;
}
.ag-pill-select .ag-select {
  padding-top: var(--ag-grid-size);
}
.ag-pill-select .ag-picker-field-wrapper {
  background-color: transparent;
  border: 0;
}
.ag-pill-select .ag-picker-field-display {
  cursor: pointer;
}

.ag-rtl {
  text-align: right;
}

.ag-root-wrapper {
  border-radius: var(--ag-wrapper-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}

.ag-row > .ag-cell-wrapper.ag-row-group {
  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * var(--ag-indentation-level));
}

.ag-cell-wrapper.ag-row-group,
.ag-cell-wrapper.ag-row-group-leaf-indent,
.ag-cell-wrapper.ag-pivot-leaf-group {
  padding-left: calc(var(--ag-indentation-level) * var(--ag-row-group-indent-size));
}

.ag-ltr .ag-row-group-leaf-indent {
  margin-left: var(--ag-row-group-indent-size);
}
.ag-rtl .ag-row-group-leaf-indent {
  margin-right: var(--ag-row-group-indent-size);
}

.ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group {
  margin-left: var(--ag-row-group-indent-size);
}

.ag-value-change-delta {
  padding-right: 2px;
}

.ag-value-change-delta-up {
  color: var(--ag-value-change-delta-up-color);
}

.ag-value-change-delta-down {
  color: var(--ag-value-change-delta-down-color);
}

.ag-value-change-value {
  background-color: transparent;
  border-radius: 1px;
  padding-left: 1px;
  padding-right: 1px;
  transition: background-color 1s;
}

.ag-value-change-value-highlight {
  background-color: var(--ag-value-change-value-highlight-background-color);
  transition: background-color 0.1s;
}

.ag-cell-data-changed {
  background-color: var(--ag-value-change-value-highlight-background-color) !important;
}

.ag-cell-data-changed-animation {
  background-color: transparent;
}

.ag-cell-highlight {
  background-color: var(--ag-range-selection-highlight-color) !important;
}

.ag-row {
  height: var(--ag-row-height);
  background-color: var(--ag-background-color);
  color: var(--ag-data-color);
  border-bottom: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);
}

.ag-row-highlight-above::after,
.ag-row-highlight-below::after {
  content: "";
  position: absolute;
  width: calc(100% - 1px);
  height: 1px;
  background-color: var(--ag-range-selection-border-color);
  left: 1px;
}

.ag-row-highlight-above::after {
  top: 0px;
}

.ag-row-highlight-below::after {
  bottom: 0px;
}

.ag-row-odd {
  background-color: var(--ag-odd-row-background-color);
}

.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}
.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-row-selected::before {
  content: "";
  background-color: var(--ag-selected-row-background-color);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ag-row-hover:not(.ag-full-width-row)::before,
.ag-row-hover.ag-full-width-row.ag-row-group::before {
  content: "";
  background-color: var(--ag-row-hover-color);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.ag-row-hover.ag-full-width-row.ag-row-group > * {
  position: relative;
}

.ag-row-hover.ag-row-selected::before {
  background-color: var(--ag-row-hover-color);
  background-image: linear-gradient(var(--ag-selected-row-background-color), var(--ag-selected-row-background-color));
}

.ag-column-hover {
  background-color: var(--ag-column-hover-color);
}

.ag-ltr .ag-right-aligned-cell {
  text-align: right;
}
.ag-rtl .ag-right-aligned-cell {
  text-align: left;
}

.ag-ltr .ag-right-aligned-cell .ag-cell-value,
.ag-ltr .ag-right-aligned-cell .ag-group-value {
  margin-left: auto;
}
.ag-rtl .ag-right-aligned-cell .ag-cell-value,
.ag-rtl .ag-right-aligned-cell .ag-group-value {
  margin-right: auto;
}

.ag-ltr .ag-right-aligned-cell .ag-skeleton-effect {
  margin-left: auto;
}
.ag-rtl .ag-right-aligned-cell .ag-skeleton-effect {
  margin-right: auto;
}

.ag-cell,
.ag-full-width-row .ag-cell-wrapper.ag-row-group {
  --ag-internal-calculated-line-height: var(
      --ag-line-height,
      calc(var(--ag-row-height) - var(--ag-row-border-width))
  );
  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));
  border: 1px solid transparent;
  line-height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));
  padding-left: calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size) * var(--ag-indentation-level));
  padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);
  -webkit-font-smoothing: subpixel-antialiased;
}

.ag-row > .ag-cell-wrapper {
  padding-left: calc(var(--ag-cell-horizontal-padding) - 1px);
  padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);
}

.ag-row-dragging {
  cursor: move;
  opacity: 0.5;
}

.ag-cell-inline-editing {
  border: 1px solid var(--ag-border-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: 0;
  background-color: var(--ag-control-panel-background-color);
}

.ag-popup-editor .ag-large-text,
.ag-autocomplete-list-popup {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background-color: var(--ag-control-panel-background-color);
  padding: 0;
}

.ag-large-text-input {
  height: auto;
  padding: var(--ag-cell-horizontal-padding);
}

.ag-rtl .ag-large-text-input textarea {
  resize: none;
}

.ag-details-row {
  padding: calc(var(--ag-grid-size) * 5);
  background-color: var(--ag-background-color);
}

.ag-layout-auto-height .ag-center-cols-viewport,
.ag-layout-auto-height .ag-center-cols-container,
.ag-layout-print .ag-center-cols-viewport,
.ag-layout-print .ag-center-cols-container {
  min-height: 50px;
}

.ag-overlay-loading-wrapper {
  background-color: var(--ag-modal-overlay-background-color);
}

.ag-overlay-loading-center {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
}

.ag-skeleton-container {
  width: 100%;
  height: 100%;
  align-content: center;
}

.ag-skeleton-effect {
  background-color: var(--ag-row-loading-skeleton-effect-color);
  width: 100%;
  height: 1em;
  border-radius: 0.25rem;
  animation: ag-skeleton-loading 1.5s ease-in-out 0.5s infinite;
}

@keyframes ag-skeleton-loading {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}
.ag-loading {
  display: flex;
  height: 100%;
  align-items: center;
}
.ag-ltr .ag-loading {
  padding-left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-loading {
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-loading-icon {
  padding-right: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-loading-icon {
  padding-left: var(--ag-cell-widget-spacing);
}

.ag-icon-loading {
  animation-name: spin;
  animation-duration: 1000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.ag-floating-top {
  border-bottom: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-floating-bottom {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-ltr .ag-cell {
  border-right: var(--ag-cell-horizontal-border);
}
.ag-rtl .ag-cell {
  border-left: var(--ag-cell-horizontal-border);
}
.ag-ltr .ag-cell {
  border-right-width: 1px;
}
.ag-rtl .ag-cell {
  border-left-width: 1px;
}

.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-cell-range-selected:not(.ag-cell-focus),
.ag-cell-range-selected.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {
  background-color: var(--ag-range-selection-background-color);
}
.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,
.ag-cell-range-selected.ag-cell-range-chart.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {
  background-color: var(--ag-range-selection-chart-background-color) !important;
}
.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,
.ag-cell-range-selected.ag-cell-range-chart.ag-cell-range-chart.ag-cell-range-chart-category,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {
  background-color: var(--ag-range-selection-chart-category-background-color) !important;
}

.ag-cell-range-selected-1:not(.ag-cell-focus),
.ag-cell-range-selected-1.ag-cell-range-chart,
.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {
  background-color: var(--ag-range-selection-background-color);
}

.ag-cell-range-selected-2:not(.ag-cell-focus),
.ag-cell-range-selected-2.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {
  background-color: var(--ag-range-selection-background-color-2);
}

.ag-cell-range-selected-3:not(.ag-cell-focus),
.ag-cell-range-selected-3.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {
  background-color: var(--ag-range-selection-background-color-3);
}

.ag-cell-range-selected-4:not(.ag-cell-focus),
.ag-cell-range-selected-4.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {
  background-color: var(--ag-range-selection-background-color-4);
}

.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {
  border-top-color: var(--ag-range-selection-border-color);
  border-top-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {
  border-right-color: var(--ag-range-selection-border-color);
  border-right-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {
  border-bottom-color: var(--ag-range-selection-border-color);
  border-bottom-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {
  border-left-color: var(--ag-range-selection-border-color);
  border-left-style: var(--ag-range-selection-border-style);
}

.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,
.ag-ltr .ag-cell-range-single-cell,
.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle,
.ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,
.ag-rtl .ag-cell-range-single-cell,
.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {
  border: 1px solid;
  border-color: var(--ag-range-selection-border-color);
  border-style: var(--ag-range-selection-border-style);
  outline: medium none currentcolor;
  outline: initial;
}

.ag-cell.ag-selection-fill-top,
.ag-cell.ag-selection-fill-top.ag-cell-range-selected {
  border-top: 1px dashed;
  border-top-color: var(--ag-range-selection-border-color);
}

.ag-ltr .ag-cell.ag-selection-fill-right,
.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {
  border-right: 1px dashed var(--ag-range-selection-border-color) !important;
}
.ag-rtl .ag-cell.ag-selection-fill-right,
.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {
  border-left: 1px dashed var(--ag-range-selection-border-color) !important;
}

.ag-cell.ag-selection-fill-bottom,
.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {
  border-bottom: 1px dashed;
  border-bottom-color: var(--ag-range-selection-border-color);
}

.ag-ltr .ag-cell.ag-selection-fill-left,
.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {
  border-left: 1px dashed var(--ag-range-selection-border-color) !important;
}
.ag-rtl .ag-cell.ag-selection-fill-left,
.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {
  border-right: 1px dashed var(--ag-range-selection-border-color) !important;
}

.ag-fill-handle,
.ag-range-handle {
  position: absolute;
  width: 6px;
  height: 6px;
  bottom: -1px;
  background-color: var(--ag-range-selection-border-color);
}
.ag-ltr .ag-fill-handle,
.ag-ltr .ag-range-handle {
  right: -1px;
}
.ag-rtl .ag-fill-handle,
.ag-rtl .ag-range-handle {
  left: -1px;
}

.ag-fill-handle {
  cursor: cell;
}

.ag-range-handle {
  cursor: nwse-resize;
}

.ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}

.ag-menu {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background-color: var(--ag-menu-background-color);
  border-color: var(--ag-menu-border-color);
  padding: 0;
}

.ag-menu.ag-tabs {
  min-width: var(--ag-tab-min-width);
}

.ag-menu-list {
  cursor: default;
  padding: var(--ag-grid-size) 0;
}

.ag-menu-separator {
  height: calc(var(--ag-grid-size) * 2 + 1px);
}

.ag-menu-separator-part::after {
  content: "";
  display: block;
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-menu-option-active,
.ag-compact-menu-option-active {
  background-color: var(--ag-row-hover-color);
}

.ag-menu-option-part,
.ag-compact-menu-option-part {
  line-height: var(--ag-icon-size);
  padding: calc(var(--ag-grid-size) + 2px) 0;
}

.ag-menu-option-disabled,
.ag-compact-menu-option-disabled {
  opacity: 0.5;
}

.ag-menu-option-icon,
.ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
}
.ag-ltr .ag-menu-option-icon,
.ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-menu-option-icon,
.ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 2);
}

.ag-menu-option-text,
.ag-compact-menu-option-text {
  padding-left: calc(var(--ag-grid-size) * 2);
  padding-right: calc(var(--ag-grid-size) * 2);
}

.ag-ltr .ag-menu-option-shortcut,
.ag-ltr .ag-compact-menu-option-shortcut {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-menu-option-shortcut,
.ag-rtl .ag-compact-menu-option-shortcut {
  padding-left: var(--ag-grid-size);
}

.ag-ltr .ag-menu-option-popup-pointer,
.ag-ltr .ag-compact-menu-option-popup-pointer {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-menu-option-popup-pointer,
.ag-rtl .ag-compact-menu-option-popup-pointer {
  padding-left: var(--ag-grid-size);
}

.ag-tabs-header {
  display: flex;
}

.ag-tabs-header-wrapper {
  display: flex;
}
.ag-tabs-header-wrapper .ag-tabs-header {
  flex: 1;
}

.ag-tabs-close-button-wrapper {
  border: 0;
  border-right: var(--ag-borders) var(--ag-border-color);
  padding: var(--ag-grid-size);
}

.ag-tabs-close-button {
  border: 0;
  background-color: transparent;
  background-color: initial;
  cursor: pointer;
  padding: 0;
}

.ag-tab {
  border-bottom: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-bottom var(--ag-selected-tab-underline-transition-speed);
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ag-tab:focus-visible {
  outline: none;
}
.ag-tab:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-tab-selected {
  border-bottom-color: var(--ag-selected-tab-underline-color);
}

.ag-menu-header {
  color: var(--ag-secondary-foreground-color);
}

.ag-filter-separator {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-filter-select .ag-picker-field-wrapper {
  width: 0;
}

.ag-filter-condition-operator {
  height: 17px;
}

.ag-ltr .ag-filter-condition-operator-or {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-filter-condition-operator-or {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-set-filter-select-all {
  padding-top: var(--ag-widget-container-vertical-padding);
}

.ag-set-filter-list,
.ag-filter-no-matches {
  height: calc(var(--ag-list-item-height) * 6);
}

.ag-set-filter-tree-list {
  height: calc(var(--ag-list-item-height) * 10);
}

.ag-set-filter-filter {
  margin-top: var(--ag-widget-container-vertical-padding);
  margin-left: var(--ag-widget-container-horizontal-padding);
  margin-right: var(--ag-widget-container-horizontal-padding);
}

.ag-filter-to {
  margin-top: var(--ag-widget-vertical-spacing);
}

.ag-mini-filter {
  margin: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}

.ag-set-filter {
  --ag-indentation-level: 0;
}

.ag-ltr .ag-set-filter-item {
  padding-left: calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level) * var(--ag-set-filter-indent-size));
}
.ag-rtl .ag-set-filter-item {
  padding-right: calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level) * var(--ag-set-filter-indent-size));
}

.ag-ltr .ag-set-filter-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));
}
.ag-rtl .ag-set-filter-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));
}

.ag-ltr .ag-set-filter-group-icons {
  margin-right: var(--ag-widget-container-horizontal-padding);
}
.ag-rtl .ag-set-filter-group-icons {
  margin-left: var(--ag-widget-container-horizontal-padding);
}

.ag-filter-menu .ag-set-filter-list {
  min-width: 200px;
}

.ag-filter-virtual-list-item:focus-visible {
  outline: none;
}
.ag-filter-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-filter-apply-panel {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-filter-apply-panel-button {
  line-height: 1.5;
}
.ag-ltr .ag-filter-apply-panel-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-filter-apply-panel-button {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-simple-filter-body-wrapper {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));
  overflow-y: auto;
  min-height: calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));
}
.ag-simple-filter-body-wrapper > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-simple-filter-body-wrapper .ag-resizer-wrapper {
  margin: 0;
}

.ag-menu:not(.ag-tabs) .ag-filter .ag-filter-body-wrapper,
.ag-menu:not(.ag-tabs) .ag-filter > *:not(.ag-filter-wrapper) {
  min-width: calc(var(--ag-menu-min-width) - 2px);
}

.ag-filter-no-matches {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}

.ag-multi-filter-menu-item {
  margin: var(--ag-grid-size) 0;
}

.ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 2) var(--ag-grid-size);
  background-color: transparent;
}

.ag-group-filter-field-select-wrapper {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));
}
.ag-group-filter-field-select-wrapper > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-multi-filter-group-title-bar:focus-visible {
  outline: none;
}
.ag-multi-filter-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-side-bar {
  position: relative;
}

.ag-tool-panel-wrapper {
  width: var(--ag-side-bar-panel-width);
  background-color: var(--ag-control-panel-background-color);
}

.ag-side-buttons {
  padding-top: calc(var(--ag-grid-size) * 4);
  width: calc(var(--ag-icon-size) + 4px);
  position: relative;
  overflow: hidden;
}

button.ag-side-button-button {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  background: transparent;
  padding: calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;
  width: 100%;
  margin: 0;
  min-height: calc(var(--ag-grid-size) * 18);
  background-position-y: center;
  background-position-x: center;
  background-repeat: no-repeat;
  border: none;
  border-top: var(--ag-borders-side-button) var(--ag-border-color);
  border-bottom: var(--ag-borders-side-button) var(--ag-border-color);
}
button.ag-side-button-button:focus {
  box-shadow: none;
}

.ag-side-button-button:focus-visible {
  outline: none;
}
.ag-side-button-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-selected button.ag-side-button-button {
  background-color: var(--ag-side-button-selected-background-color);
}

.ag-side-button-icon-wrapper {
  margin-bottom: 3px;
}

.ag-ltr .ag-side-bar-left,
.ag-rtl .ag-side-bar-right {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,
.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {
  border-left: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-side-bar-left .ag-side-button-button,
.ag-rtl .ag-side-bar-right .ag-side-button-button {
  border-right: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-right var(--ag-selected-tab-underline-transition-speed);
}
.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,
.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {
  border-right-color: var(--ag-selected-tab-underline-color);
}

.ag-rtl .ag-side-bar-left,
.ag-ltr .ag-side-bar-right {
  border-left: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,
.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-side-bar-left .ag-side-button-button,
.ag-ltr .ag-side-bar-right .ag-side-button-button {
  border-left: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-left var(--ag-selected-tab-underline-transition-speed);
}
.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,
.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {
  border-left-color: var(--ag-selected-tab-underline-color);
}

.ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 6);
}

.ag-filter-toolpanel-header,
.ag-filter-toolpanel-search {
  padding: 0 var(--ag-grid-size);
}

.ag-filter-toolpanel-header:focus-visible {
  outline: none;
}
.ag-filter-toolpanel-header:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-filter-toolpanel-group:not(.ag-has-filter) > .ag-group-title-bar .ag-filter-toolpanel-group-instance-header-icon {
  display: none;
}

.ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 8);
}

.ag-filter-toolpanel-group-item {
  margin-top: calc(var(--ag-grid-size) * 0.5);
  margin-bottom: calc(var(--ag-grid-size) * 0.5);
}

.ag-filter-toolpanel-search {
  height: var(--ag-header-height);
}

.ag-filter-toolpanel-search-input {
  flex-grow: 1;
  height: calc(var(--ag-grid-size) * 4);
}
.ag-ltr .ag-filter-toolpanel-search-input {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-search-input {
  margin-left: var(--ag-grid-size);
}

.ag-filter-toolpanel-group-level-0 {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-ltr .ag-filter-toolpanel-expand,
.ag-ltr .ag-filter-toolpanel-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-expand,
.ag-rtl .ag-filter-toolpanel-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-filter-toolpanel-group-title-bar {
  background-color: transparent;
}

.ag-ltr .ag-filter-toolpanel-header {
  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * 0 + var(--ag-grid-size));
  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size));
}
.ag-rtl .ag-filter-toolpanel-header {
  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * 0 + var(--ag-grid-size));
  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size));
}

.ag-filter-toolpanel-instance-filter {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  border-top: var(--ag-borders) var(--ag-border-color);
  margin-top: var(--ag-grid-size);
}

.ag-ltr .ag-filter-toolpanel-group-instance-header-icon,
.ag-ltr .ag-filter-toolpanel-instance-header-icon {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-group-instance-header-icon,
.ag-rtl .ag-filter-toolpanel-instance-header-icon {
  margin-right: var(--ag-grid-size);
}

.ag-set-filter-group-icons {
  color: var(--ag-secondary-foreground-color);
}

.ag-pivot-mode-panel {
  min-height: var(--ag-header-height);
  height: var(--ag-header-height);
  display: flex;
}

.ag-pivot-mode-select {
  display: flex;
  align-items: center;
}
.ag-ltr .ag-pivot-mode-select {
  margin-left: var(--ag-widget-container-horizontal-padding);
}
.ag-rtl .ag-pivot-mode-select {
  margin-right: var(--ag-widget-container-horizontal-padding);
}

.ag-column-select-header:focus-visible {
  outline: none;
}
.ag-column-select-header:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-select-header {
  height: var(--ag-header-height);
  align-items: center;
  padding: 0 var(--ag-widget-container-horizontal-padding);
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-column-panel-column-select {
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-column-group-icons,
.ag-column-select-header-icon {
  color: var(--ag-secondary-foreground-color);
}

.ag-column-select-list .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-column-select-list .ag-item-highlight-top::after {
  top: 0;
}
.ag-column-select-list .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-header,
.ag-advanced-filter-header {
  background-color: var(--ag-header-background-color);
  border-bottom: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-header-row {
  color: var(--ag-header-foreground-color);
  height: var(--ag-header-height);
}

.ag-pinned-right-header {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-pinned-left-header {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,
.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,
.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {
  margin-right: var(--ag-grid-size);
}

.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,
.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,
.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {
  margin-left: var(--ag-grid-size);
}

.ag-header-cell,
.ag-header-group-cell {
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}
.ag-header-cell.ag-header-cell-moving,
.ag-header-group-cell.ag-header-cell-moving {
  background-color: var(--ag-header-cell-moving-background-color);
}

.ag-ltr .ag-header-group-cell-label.ag-sticky-label {
  left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-header-group-cell-label.ag-sticky-label {
  right: var(--ag-cell-horizontal-padding);
}

.ag-header-cell:focus-visible {
  outline: none;
}
.ag-header-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-header-group-cell:focus-visible {
  outline: none;
}
.ag-header-group-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-header-cell:focus-visible {
  outline: none;
}
.ag-advanced-filter-header-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-header-icon {
  color: var(--ag-secondary-foreground-color);
}

.ag-header-expand-icon {
  cursor: pointer;
}
.ag-ltr .ag-header-expand-icon {
  margin-left: 4px;
}
.ag-rtl .ag-header-expand-icon {
  margin-right: 4px;
}

.ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total):not(.ag-header-parent-hidden),
.ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover, .ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,
.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,
.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover).ag-column-resizing,
.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,
.ag-header-group-cell:first-of-type.ag-column-resizing,
.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,
.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing {
  background-color: var(--ag-header-cell-hover-background-color);
}

.ag-header-cell::before,
.ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  content: "";
  position: absolute;
  z-index: 1;
  display: var(--ag-header-column-separator-display);
  width: var(--ag-header-column-separator-width);
  height: var(--ag-header-column-separator-height);
  top: calc(50% - var(--ag-header-column-separator-height) * 0.5);
  background-color: var(--ag-header-column-separator-color);
}
.ag-ltr .ag-header-cell::before,
.ag-ltr .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  right: 0;
}
.ag-rtl .ag-header-cell::before,
.ag-rtl .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  left: 0;
}

.ag-header-highlight-before::after,
.ag-header-highlight-after::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 1px;
}

.ag-header-highlight-before::after {
  left: 0px;
}

.ag-header-highlight-after::after {
  right: 0px;
}

.ag-pinned-left-header .ag-header-highlight-after::after {
  right: 1px;
}

.ag-header-cell-resize {
  display: flex;
  align-items: center;
}

.ag-header-cell-resize::after {
  content: "";
  position: absolute;
  z-index: 1;
  display: var(--ag-header-column-resize-handle-display);
  width: var(--ag-header-column-resize-handle-width);
  height: var(--ag-header-column-resize-handle-height);
  top: calc(50% - var(--ag-header-column-resize-handle-height) * 0.5);
  background-color: var(--ag-header-column-resize-handle-color);
}
.ag-header-cell.ag-header-span-height .ag-header-cell-resize::after {
  height: calc(100% - var(--ag-grid-size) * 4);
  top: calc(var(--ag-grid-size) * 2);
}

.ag-ltr .ag-header-viewport .ag-header-cell-resize::after {
  left: calc(50% - var(--ag-header-column-resize-handle-width));
}
.ag-rtl .ag-header-viewport .ag-header-cell-resize::after {
  right: calc(50% - var(--ag-header-column-resize-handle-width));
}

.ag-pinned-left-header .ag-header-cell-resize::after {
  left: calc(50% - var(--ag-header-column-resize-handle-width));
}

.ag-pinned-right-header .ag-header-cell-resize::after {
  left: 50%;
}

.ag-ltr .ag-header-select-all {
  margin-right: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-header-select-all {
  margin-left: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-floating-filter-button {
  margin-left: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-floating-filter-button {
  margin-right: var(--ag-cell-widget-spacing);
}

.ag-floating-filter-button-button {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  border: none;
  height: var(--ag-icon-size);
  padding: 0;
  width: var(--ag-icon-size);
}

.ag-filter-loading {
  background-color: var(--ag-control-panel-background-color);
  height: 100%;
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  position: absolute;
  width: 100%;
  z-index: 1;
}

.ag-paging-panel {
  border-top: 1px solid;
  border-top-color: var(--ag-border-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
}
.ag-paging-panel > * {
  margin: 0 var(--ag-cell-horizontal-padding);
}
.ag-paging-panel > .ag-paging-page-size .ag-wrapper {
  min-width: calc(var(--ag-grid-size) * 10);
}

.ag-paging-button {
  cursor: pointer;
}

.ag-paging-button.ag-disabled {
  cursor: default;
  color: var(--ag-disabled-foreground-color);
}

.ag-paging-button:focus-visible {
  outline: none;
}
.ag-paging-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 0px;
  left: 0px;
  display: block;
  width: calc(100% - 0px);
  height: calc(100% - 0px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-paging-button,
.ag-paging-description {
  margin: 0 var(--ag-grid-size);
}

.ag-status-bar {
  border-top: var(--ag-borders) var(--ag-border-color);
  color: var(--ag-disabled-foreground-color);
  padding-right: calc(var(--ag-grid-size) * 4);
  padding-left: calc(var(--ag-grid-size) * 4);
  line-height: 1.5;
}

.ag-status-name-value-value {
  color: var(--ag-foreground-color);
}

.ag-status-bar-center {
  text-align: center;
}

.ag-status-name-value {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  padding-top: calc(var(--ag-grid-size) * 2);
  padding-bottom: calc(var(--ag-grid-size) * 2);
}

.ag-column-drop-cell {
  background: var(--ag-chip-background-color);
  border-radius: calc(var(--ag-grid-size) * 4);
  height: calc(var(--ag-grid-size) * 4);
  padding: 0 calc(var(--ag-grid-size) * 0.5);
  border: 1px solid var(--ag-chip-border-color);
}

.ag-column-drop-cell:focus-visible {
  outline: none;
}
.ag-column-drop-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 2px;
  left: 2px;
  display: block;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-drop-cell-text {
  margin: 0 var(--ag-grid-size);
}

.ag-column-drop-cell-button {
  min-width: calc(var(--ag-grid-size) * 4);
  margin: 0 calc(var(--ag-grid-size) * 0.5);
  color: var(--ag-secondary-foreground-color);
}

.ag-column-drop-cell-drag-handle {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-column-drop-cell-ghost {
  opacity: 0.5;
}

.ag-column-drop-horizontal {
  background-color: var(--ag-header-background-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-column-drop-horizontal {
  padding-left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-column-drop-horizontal {
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {
  border-left: var(--ag-borders) var(--ag-border-color);
}

.ag-column-drop-horizontal-cell-separator {
  margin: 0 var(--ag-grid-size);
  color: var(--ag-secondary-foreground-color);
}

.ag-column-drop-horizontal-empty-message {
  color: var(--ag-disabled-foreground-color);
}

.ag-ltr .ag-column-drop-horizontal-icon {
  margin-right: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-column-drop-horizontal-icon {
  margin-left: var(--ag-cell-horizontal-padding);
}

.ag-column-drop-vertical-list {
  padding-bottom: var(--ag-grid-size);
  padding-right: var(--ag-grid-size);
  padding-left: var(--ag-grid-size);
}

.ag-column-drop-vertical-cell {
  margin-top: var(--ag-grid-size);
}

.ag-column-drop-vertical {
  min-height: 50px;
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}

.ag-column-drop-vertical-icon {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
}

.ag-column-drop-vertical-empty-message {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  color: var(--ag-disabled-foreground-color);
  margin-top: var(--ag-grid-size);
}

.ag-select-agg-func-popup {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background: var(--ag-background-color);
  height: calc(var(--ag-grid-size) * 5 * 3.5);
  padding: 0;
}

.ag-select-agg-func-virtual-list-item {
  cursor: default;
}
.ag-ltr .ag-select-agg-func-virtual-list-item {
  padding-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-select-agg-func-virtual-list-item {
  padding-right: calc(var(--ag-grid-size) * 2);
}
.ag-select-agg-func-virtual-list-item:hover {
  background-color: var(--ag-selected-row-background-color);
}

.ag-select-agg-func-virtual-list-item:focus-visible {
  outline: none;
}
.ag-select-agg-func-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-sort-indicator-container {
  display: flex;
}

.ag-ltr .ag-sort-indicator-icon {
  padding-left: var(--ag-grid-size);
}
.ag-rtl .ag-sort-indicator-icon {
  padding-right: var(--ag-grid-size);
}

.ag-chart {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}

.ag-chart-components-wrapper {
  position: relative;
  display: flex;
  flex: 1 1 auto;
}

.ag-chart-canvas-wrapper {
  position: relative;
  flex: 1 1 auto;
}

.ag-chart-menu {
  position: absolute;
  top: 16px;
  display: flex;
  flex-direction: column;
}
.ag-ltr .ag-chart-menu {
  right: 20px;
}
.ag-rtl .ag-chart-menu {
  left: 20px;
}

.ag-chart-docked-container {
  position: relative;
  min-width: var(--ag-chart-menu-panel-width);
}

.ag-chart-menu-hidden ~ .ag-chart-docked-container {
  display: none;
}

.ag-chart-tabbed-menu {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ag-chart-tabbed-menu-header {
  flex: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

.ag-chart-tabbed-menu-body {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  overflow: hidden;
}

.ag-chart-tab {
  width: 100%;
  overflow: hidden;
  overflow-y: auto;
}

.ag-chart-settings {
  overflow-x: hidden;
}

.ag-chart-settings-wrapper {
  position: relative;
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.ag-chart-settings-nav-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.ag-chart-settings-card-selector {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 10px;
}

.ag-chart-settings-card-item {
  cursor: pointer;
  width: 10px;
  height: 10px;
  background-color: #000;
  position: relative;
}
.ag-chart-settings-card-item.ag-not-selected {
  opacity: 0.2;
}
.ag-chart-settings-card-item::before {
  content: " ";
  display: block;
  position: absolute;
  background-color: transparent;
  left: 50%;
  top: 50%;
  margin-left: -10px;
  margin-top: -10px;
  width: 20px;
  height: 20px;
}

.ag-chart-settings-prev,
.ag-chart-settings-next {
  position: relative;
  flex: none;
}
.ag-chart-settings-prev:focus-within,
.ag-chart-settings-next:focus-within {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-radius: 1px;
}

.ag-chart-settings-prev-button,
.ag-chart-settings-next-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.ag-chart-settings-mini-charts-container {
  position: relative;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.ag-chart-settings-mini-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
}
.ag-chart-settings-mini-wrapper.ag-animating {
  transition: left 0.3s;
  transition-timing-function: ease-in-out;
}

.ag-chart-mini-thumbnail {
  cursor: pointer;
}

.ag-chart-mini-thumbnail-canvas {
  display: block;
}

.ag-chart-data-wrapper,
.ag-chart-format-wrapper,
.ag-chart-advanced-settings-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  padding-bottom: 16px;
}

.ag-chart-data-wrapper,
.ag-chart-advanced-settings-wrapper {
  height: 100%;
  overflow-y: auto;
}

.ag-chart-advanced-settings {
  background-color: var(--ag-control-panel-background-color);
}

.ag-chart-advanced-settings-wrapper,
.ag-chart-advanced-settings {
  width: 100%;
}

.ag-chart-advanced-settings-wrapper {
  padding-bottom: 0;
}

.ag-chart-data-section,
.ag-chart-format-section,
.ag-chart-advanced-settings-section {
  display: flex;
  margin: 0;
}

.ag-chart-advanced-settings-section {
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-chart-advanced-settings-section:not(:last-child) {
  border-bottom: 1px solid var(--ag-secondary-border-color);
}

.ag-chart-empty-text {
  display: flex;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: var(--ag-background-color);
}

.ag-chart .ag-chart-menu {
  display: none;
}

.ag-chart-menu-hidden:hover .ag-chart-menu {
  display: block;
}

.ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  display: flex;
  flex-direction: row;
  top: 8px;
  gap: 20px;
  width: auto;
}
.ag-ltr .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  right: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);
  justify-content: right;
}
.ag-rtl .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  left: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);
  justify-content: left;
}

.ag-charts-font-size-color {
  display: flex;
  align-self: stretch;
  justify-content: space-between;
}

.ag-charts-data-group-item {
  position: relative;
}

.ag-charts-data-group-item:not(:last-child) {
  margin-bottom: var(--ag-grid-size);
}

.ag-chart-menu {
  border-radius: var(--ag-card-radius);
  background: var(--ag-background-color);
}

.ag-chart-menu-icon {
  opacity: 0.5;
  margin: 2px 0;
  cursor: pointer;
  border-radius: var(--ag-card-radius);
  color: var(--ag-secondary-foreground-color);
}
.ag-chart-menu-icon:hover {
  opacity: 1;
}

.ag-chart-menu-toolbar-button {
  border: 0;
  background-color: transparent;
  background-color: initial;
  padding: 0 2px;
  border-radius: 1px;
}

.ag-chart-mini-thumbnail {
  border: 1px solid var(--ag-secondary-border-color);
  border-radius: 5px;
}
.ag-chart-mini-thumbnail.ag-selected {
  border-color: var(--ag-minichart-selected-chart-color);
  border-width: 2px;
}
.ag-chart-mini-thumbnail:focus-visible {
  outline: none;
  border-color: var(--ag-minichart-selected-chart-color);
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-chart-settings-card-item {
  background: var(--ag-foreground-color);
  width: 8px;
  height: 8px;
  border-radius: 4px;
}
.ag-chart-settings-card-item.ag-selected {
  background-color: var(--ag-minichart-selected-page-color);
}

.ag-chart-data-column-drag-handle {
  margin-left: var(--ag-grid-size);
}

.ag-charts-settings-group-title-bar,
.ag-charts-data-group-title-bar,
.ag-charts-format-top-level-group-title-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  position: relative;
}

.ag-charts-advanced-settings-top-level-group-title-bar {
  position: relative;
  background-color: transparent;
  background-color: initial;
}

.ag-charts-data-group-title-bar:focus-visible {
  outline: none;
}
.ag-charts-data-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-charts-format-top-level-group-title-bar:focus-visible {
  outline: none;
}
.ag-charts-format-top-level-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-charts-data-group-title-bar .ag-charts-data-group-title,
.ag-charts-format-top-level-group-title-bar .ag-charts-format-top-level-group-title {
  cursor: pointer;
}

.ag-charts-data-group-container {
  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) var(--ag-widget-container-horizontal-padding);
}
.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group):not(.ag-pill-select):not(.ag-select) {
  height: var(--ag-list-item-height);
}
.ag-charts-data-group-container .ag-charts-data-group-item.ag-picker-field {
  margin-top: var(--ag-grid-size);
}
.ag-charts-data-group-container .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-charts-data-group-container .ag-item-highlight-top::after {
  top: 0;
}
.ag-charts-data-group-container .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-charts-format-top-level-group-container,
.ag-charts-advanced-settings-top-level-group-container {
  padding: var(--ag-grid-size);
}
.ag-ltr .ag-charts-format-top-level-group-container,
.ag-ltr .ag-charts-advanced-settings-top-level-group-container {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-charts-format-top-level-group-container,
.ag-rtl .ag-charts-advanced-settings-top-level-group-container {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-charts-format-top-level-group-item,
.ag-charts-advanced-settings-top-level-group-item {
  margin: var(--ag-grid-size) 0;
}

.ag-charts-format-sub-level-group-container {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));
}
.ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-charts-format-sub-level-no-header-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-charts-format-sub-level-group-container .ag-charts-format-sub-level-group-item.ag-font-panel-no-header {
  margin: 0;
}

.ag-charts-settings-group-container {
  padding: var(--ag-grid-size);
  grid-row-gap: 8px;
  row-gap: 8px;
  display: grid;
  grid-template-columns: 60px 1fr 60px 1fr 60px;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+1) {
  grid-column: 1;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+2) {
  grid-column: 3;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+3) {
  grid-column: 5;
}

.ag-chart-menu-panel {
  background-color: var(--ag-control-panel-background-color);
}
.ag-ltr .ag-chart-menu-panel {
  border-left: solid 1px var(--ag-border-color);
}
.ag-rtl .ag-chart-menu-panel {
  border-right: solid 1px var(--ag-border-color);
}

.ag-charts-theme-default {
  --ag-charts-align: none !important;
  --ag-charts-justify: none !important;
}

.ag-date-time-list-page-title-bar {
  display: flex;
}

.ag-date-time-list-page-title {
  flex-grow: 1;
  text-align: center;
}

.ag-date-time-list-page-column-labels-row,
.ag-date-time-list-page-entries-row {
  display: flex;
}

.ag-date-time-list-page-column-label,
.ag-date-time-list-page-entry {
  flex-basis: 0;
  flex-grow: 1;
}

.ag-date-time-list-page-entry {
  cursor: pointer;
  text-align: center;
}

.ag-date-time-list-page-column-label {
  text-align: center;
}

.ag-advanced-filter-header {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-advanced-filter {
  display: flex;
  align-items: center;
  width: 100%;
}

.ag-advanced-filter-apply-button,
.ag-advanced-filter-builder-button {
  line-height: normal;
  white-space: nowrap;
}
.ag-ltr .ag-advanced-filter-apply-button,
.ag-ltr .ag-advanced-filter-builder-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-advanced-filter-apply-button,
.ag-rtl .ag-advanced-filter-builder-button {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-advanced-filter-builder-button {
  display: flex;
  align-items: center;
  border: 0;
  background-color: transparent;
  background-color: initial;
  color: var(--ag-foreground-color);
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-advanced-filter-builder-button:hover:not(:disabled) {
  background-color: var(--ag-row-hover-color);
}
.ag-advanced-filter-builder-button:not(:disabled) {
  cursor: pointer;
}

.ag-advanced-filter-builder-button-label {
  margin-left: var(--ag-grid-size);
}

.ag-advanced-filter-builder {
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  background-color: var(--ag-control-panel-background-color);
  display: flex;
  flex-direction: column;
}

.ag-advanced-filter-builder-list {
  flex: 1;
  overflow: auto;
}
.ag-advanced-filter-builder-list .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-advanced-filter-builder-list .ag-item-highlight-top::after {
  top: 0;
}
.ag-advanced-filter-builder-list .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-advanced-filter-builder-button-panel {
  display: flex;
  justify-content: flex-end;
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-apply-button,
.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-cancel-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-advanced-filter-builder-item-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding-left: calc(var(--ag-icon-size) / 2);
  padding-right: var(--ag-icon-size);
}

.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper .ag-tab-guard {
  position: absolute;
}

.ag-advanced-filter-builder-item-tree-lines > * {
  width: var(--ag-advanced-filter-builder-indent-size);
}

.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root {
  width: var(--ag-icon-size);
}
.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root::before {
  top: 50%;
  height: 50%;
}

.ag-advanced-filter-builder-item-tree-line-horizontal,
.ag-advanced-filter-builder-item-tree-line-vertical,
.ag-advanced-filter-builder-item-tree-line-vertical-top,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.ag-advanced-filter-builder-item-tree-line-horizontal::before, .ag-advanced-filter-builder-item-tree-line-horizontal::after,
.ag-advanced-filter-builder-item-tree-line-vertical::before,
.ag-advanced-filter-builder-item-tree-line-vertical::after,
.ag-advanced-filter-builder-item-tree-line-vertical-top::before,
.ag-advanced-filter-builder-item-tree-line-vertical-top::after,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom::after {
  content: "";
  position: absolute;
  height: 100%;
}

.ag-advanced-filter-builder-item-tree-line-horizontal::after {
  height: 50%;
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size));
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-bottom: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical::before {
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical-top::before {
  height: 50%;
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before {
  height: calc((100% - 1.5 * var(--ag-icon-size)) / 2);
  width: calc(var(--ag-icon-size) / 2);
  top: calc((100% + 1.5 * var(--ag-icon-size)) / 2);
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-condition {
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}

.ag-advanced-filter-builder-item,
.ag-advanced-filter-builder-item-condition,
.ag-advanced-filter-builder-pill-wrapper,
.ag-advanced-filter-builder-pill,
.ag-advanced-filter-builder-item-buttons,
.ag-advanced-filter-builder-item-tree-lines {
  display: flex;
  align-items: center;
  height: 100%;
}

.ag-advanced-filter-builder-pill-wrapper {
  margin: 0px var(--ag-grid-size);
}

.ag-advanced-filter-builder-pill {
  position: relative;
  border-radius: var(--ag-border-radius);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  min-height: calc(100% - var(--ag-grid-size) * 3);
  min-width: calc(var(--ag-grid-size) * 2);
}
.ag-advanced-filter-builder-pill .ag-picker-field-display {
  margin-right: var(--ag-grid-size);
}
.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-number {
  font-family: monospace;
  font-weight: 700;
}
.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-empty {
  color: var(--ag-disabled-foreground-color);
}

.ag-advanced-filter-builder-pill:focus-visible {
  outline: none;
}
.ag-advanced-filter-builder-pill:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: -4px;
  left: -4px;
  display: block;
  width: calc(100% - -8px);
  height: calc(100% - -8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-builder-item-button:focus-visible {
  outline: none;
}
.ag-advanced-filter-builder-item-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: -4px;
  left: -4px;
  display: block;
  width: calc(100% - -8px);
  height: calc(100% - -8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-builder-pill-display {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.ag-advanced-filter-builder-join-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-join-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-column-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-column-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-option-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-option-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-value-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-value-pill-color);
  cursor: text;
  max-width: 140px;
}
.ag-advanced-filter-builder-value-pill .ag-advanced-filter-builder-pill-display {
  display: block;
}

.ag-advanced-filter-builder-item-buttons > * {
  margin: 0 calc(var(--ag-grid-size) * 0.5);
}

.ag-advanced-filter-builder-item-button {
  position: relative;
  cursor: pointer;
  color: var(--ag-secondary-foreground-color);
  opacity: 0.5;
}

.ag-advanced-filter-builder-item-button-disabled {
  color: var(--ag-disabled-foreground-color);
  cursor: default;
}

.ag-advanced-filter-builder-virtual-list-container {
  top: var(--ag-grid-size);
}

.ag-advanced-filter-builder-virtual-list-item {
  display: flex;
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-advanced-filter-builder-virtual-list-item:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-advanced-filter-builder-virtual-list-item:hover .ag-advanced-filter-builder-item-button {
  opacity: 1;
}

.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible,
.ag-advanced-filter-builder-validation .ag-advanced-filter-builder-invalid {
  opacity: 1;
}

.ag-advanced-filter-builder-invalid {
  margin: 0 var(--ag-grid-size);
  color: var(--ag-invalid-color);
  cursor: default;
}

.ag-input-field-input {
  width: 100%;
  min-width: 0;
}

.ag-checkbox-input-wrapper {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-feature-settings: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-checkbox-background-color);
  border-radius: var(--ag-checkbox-border-radius);
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
.ag-checkbox-input-wrapper input,
.ag-checkbox-input-wrapper input {
  -webkit-appearance: none;
  opacity: 0;
  width: 100%;
  height: 100%;
}
.ag-checkbox-input-wrapper:focus-within, .ag-checkbox-input-wrapper:active {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-checkbox-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-checkbox-input-wrapper::after {
  content: "\\f108";
  content: var(--ag-icon-font-code-checkbox-unchecked, "\\f108");
  font-family: inherit;
  color: var(--ag-checkbox-unchecked-color);
  display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper.ag-checked::after {
  content: "\\f106";
  content: var(--ag-icon-font-code-checkbox-checked, "\\f106");
  color: var(--ag-checkbox-checked-color);
  display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper.ag-indeterminate::after {
  content: "\\f107";
  content: var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");
  color: var(--ag-checkbox-indeterminate-color);
  display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper::before {
  content: "";
  background: transparent center/contain no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));
}
.ag-checkbox-input-wrapper.ag-checked::before {
  background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));
}
.ag-checkbox-input-wrapper.ag-indeterminate::before {
  background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-toggle-button-input-wrapper {
  box-sizing: border-box;
  width: var(--ag-toggle-button-width);
  min-width: var(--ag-toggle-button-width);
  max-width: var(--ag-toggle-button-width);
  height: var(--ag-toggle-button-height);
  background-color: var(--ag-toggle-button-off-background-color);
  border-radius: calc(var(--ag-toggle-button-height) * 0.5);
  position: relative;
  flex: none;
  border: var(--ag-toggle-button-border-width) solid;
  border-color: var(--ag-toggle-button-off-border-color);
}
.ag-toggle-button-input-wrapper input {
  opacity: 0;
  height: 100%;
  width: 100%;
}
.ag-toggle-button-input-wrapper:focus-within {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-toggle-button-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-toggle-button-input-wrapper.ag-checked {
  background-color: var(--ag-toggle-button-on-background-color);
  border-color: var(--ag-toggle-button-on-border-color);
}
.ag-toggle-button-input-wrapper::before {
  content: " ";
  position: absolute;
  top: calc(0px - var(--ag-toggle-button-border-width));
  left: calc(0px - var(--ag-toggle-button-border-width));
  display: block;
  box-sizing: border-box;
  height: var(--ag-toggle-button-height);
  width: var(--ag-toggle-button-height);
  background-color: var(--ag-toggle-button-switch-background-color);
  border-radius: 100%;
  transition: left 100ms;
  border: var(--ag-toggle-button-border-width) solid;
  border-color: var(--ag-toggle-button-switch-border-color);
}
.ag-toggle-button-input-wrapper.ag-checked::before {
  left: calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width));
  border-color: var(--ag-toggle-button-on-border-color);
}

.ag-radio-button-input-wrapper {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-feature-settings: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-checkbox-background-color);
  border-radius: var(--ag-checkbox-border-radius);
  display: inline-block;
  vertical-align: middle;
  flex: none;
  border-radius: var(--ag-icon-size);
}
.ag-radio-button-input-wrapper input,
.ag-radio-button-input-wrapper input {
  -webkit-appearance: none;
  opacity: 0;
  width: 100%;
  height: 100%;
}
.ag-radio-button-input-wrapper:focus-within, .ag-radio-button-input-wrapper:active {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-radio-button-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-radio-button-input-wrapper::after {
  content: "\\f127";
  content: var(--ag-icon-font-code-radio-button-off, "\\f127");
  color: var(--ag-checkbox-unchecked-color);
  display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-radio-button-input-wrapper.ag-checked::after {
  content: "\\f128";
  content: var(--ag-icon-font-code-radio-button-on, "\\f128");
  color: var(--ag-checkbox-checked-color);
  display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-radio-button-input-wrapper::before {
  content: "";
  background: transparent center/contain no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));
}
.ag-radio-button-input-wrapper.ag-checked::before {
  background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));
  opacity: 0.9;
  opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));
}

input[class^=ag-][type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  background: none;
  overflow: visible;
}
input[class^=ag-][type=range]::-webkit-slider-runnable-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
}
input[class^=ag-][type=range]::-moz-range-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
}
input[class^=ag-][type=range]::-ms-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
  color: transparent;
  width: calc(100% - 2px);
}
input[class^=ag-][type=range]::-webkit-slider-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
  transform: translateY(calc(var(--ag-icon-size) * -0.5 + 1.5px));
}
input[class^=ag-][type=range]::-ms-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
}
input[class^=ag-][type=range]::-moz-ag-range-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
}
input[class^=ag-][type=range]:focus {
  outline: none;
}
input[class^=ag-][type=range]:focus::-webkit-slider-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:focus::-ms-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:focus::-moz-ag-range-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:active::-webkit-slider-runnable-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:active::-moz-ag-range-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:active::-ms-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:disabled {
  opacity: 0.5;
}
`,""]),x.A=c},8483:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z)()(E());T.push([ae.id,`.ag-theme-alpine,
.ag-theme-alpine-dark,
.ag-theme-alpine-auto-dark {
  --ag-alpine-active-color: #2196f3;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-row-hover-color: rgba(33, 150, 243, 0.1);
  --ag-column-hover-color: rgba(33, 150, 243, 0.1);
  --ag-input-focus-border-color: rgba(33, 150, 243, 0.4);
  --ag-range-selection-background-color: rgba(33, 150, 243, 0.2);
  --ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);
  --ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);
  --ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: #babfc7;
  --ag-secondary-border-color: #dde2eb;
  --ag-header-background-color: #f8f8f8;
  --ag-tooltip-background-color: #f8f8f8;
  --ag-odd-row-background-color: #fcfcfc;
  --ag-control-panel-background-color: #f8f8f8;
  --ag-subheader-background-color: #fff;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: #999;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-alpine-active-color);
  --ag-range-selection-border-color: var(--ag-alpine-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-menu-background-color: var(--ag-header-background-color);
  --ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);
  --ag-chip-background-color: rgba(24, 29, 31, 0.07);
  --ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);
  --ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);
  --ag-borders: solid 1px;
  --ag-border-radius: 3px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 6px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridAlpine;
  --ag-selected-tab-underline-color: var(--ag-alpine-active-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-selected-tab-underline-transition-speed: 0.3s;
  --ag-tab-min-width: 240px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: var(--ag-card-shadow);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-alpine-dark {
  --ag-background-color: #181d1f;
  --ag-foreground-color: #fff;
  --ag-border-color: #68686e;
  --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
  --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
  --ag-header-background-color: #222628;
  --ag-tooltip-background-color: #222628;
  --ag-odd-row-background-color: #222628;
  --ag-control-panel-background-color: #222628;
  --ag-subheader-background-color: #000;
  --ag-input-disabled-background-color: #282c2f;
  --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
  --ag-chip-background-color: rgba(255, 255, 255, 0.07);
  --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
  --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-alpine-auto-dark {
    --ag-background-color: #181d1f;
    --ag-foreground-color: #fff;
    --ag-border-color: #68686e;
    --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
    --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
    --ag-header-background-color: #222628;
    --ag-tooltip-background-color: #222628;
    --ag-odd-row-background-color: #222628;
    --ag-control-panel-background-color: #222628;
    --ag-subheader-background-color: #000;
    --ag-input-disabled-background-color: #282c2f;
    --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
    --ag-chip-background-color: rgba(255, 255, 255, 0.07);
    --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
    --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-alpine .ag-filter-toolpanel-header,
.ag-theme-alpine .ag-filter-toolpanel-search,
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine .ag-header-row,
.ag-theme-alpine .ag-panel-title-bar-title,
.ag-theme-alpine .ag-multi-filter-group-title-bar,
.ag-theme-alpine-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-dark .ag-header-row,
.ag-theme-alpine-dark .ag-panel-title-bar-title,
.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-auto-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-header-row,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,
.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 700;
  color: var(--ag-header-foreground-color);
}
.ag-theme-alpine .ag-row,
.ag-theme-alpine-dark .ag-row,
.ag-theme-alpine-auto-dark .ag-row {
  font-size: calc(var(--ag-font-size) + 1px);
}
.ag-theme-alpine input[class^=ag-]:not([type]),
.ag-theme-alpine input[class^=ag-][type=text],
.ag-theme-alpine input[class^=ag-][type=number],
.ag-theme-alpine input[class^=ag-][type=tel],
.ag-theme-alpine input[class^=ag-][type=date],
.ag-theme-alpine input[class^=ag-][type=datetime-local],
.ag-theme-alpine textarea[class^=ag-],
.ag-theme-alpine-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-dark input[class^=ag-][type=text],
.ag-theme-alpine-dark input[class^=ag-][type=number],
.ag-theme-alpine-dark input[class^=ag-][type=tel],
.ag-theme-alpine-dark input[class^=ag-][type=date],
.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-dark textarea[class^=ag-],
.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-auto-dark input[class^=ag-][type=text],
.ag-theme-alpine-auto-dark input[class^=ag-][type=number],
.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],
.ag-theme-alpine-auto-dark input[class^=ag-][type=date],
.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-tab,
.ag-theme-alpine-dark .ag-tab,
.ag-theme-alpine-auto-dark .ag-tab {
  padding: calc(var(--ag-grid-size) * 1.5);
  transition: color 0.4s;
  flex: 1 1 auto;
}
.ag-theme-alpine .ag-tab-selected,
.ag-theme-alpine-dark .ag-tab-selected,
.ag-theme-alpine-auto-dark .ag-tab-selected {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-menu,
.ag-theme-alpine-dark .ag-menu,
.ag-theme-alpine-auto-dark .ag-menu {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-menu-header,
.ag-theme-alpine-dark .ag-menu-header,
.ag-theme-alpine-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
  padding-top: 1px;
}
.ag-theme-alpine .ag-tabs-header,
.ag-theme-alpine-dark .ag-tabs-header,
.ag-theme-alpine-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-theme-alpine .ag-charts-settings-group-title-bar,
.ag-theme-alpine .ag-charts-data-group-title-bar,
.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar {
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);
}
.ag-theme-alpine .ag-chart-mini-thumbnail,
.ag-theme-alpine-dark .ag-chart-mini-thumbnail,
.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
}
.ag-theme-alpine .ag-chart-settings-nav-bar,
.ag-theme-alpine-dark .ag-chart-settings-nav-bar,
.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-toolbar {
  margin-top: var(--ag-grid-size);
}
.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-charts-format-sub-level-group,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  padding-left: var(--ag-grid-size);
  margin-bottom: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding-top: 0;
  padding-bottom: 0;
  background: none;
  font-weight: 700;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container {
  padding-bottom: 0;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child {
  margin-bottom: 0;
}
.ag-theme-alpine.ag-dnd-ghost,
.ag-theme-alpine-dark.ag-dnd-ghost,
.ag-theme-alpine-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 700;
}
.ag-theme-alpine .ag-side-buttons,
.ag-theme-alpine-dark .ag-side-buttons,
.ag-theme-alpine-auto-dark .ag-side-buttons {
  width: calc(var(--ag-grid-size) * 5);
}
.ag-theme-alpine .ag-standard-button,
.ag-theme-alpine-dark .ag-standard-button,
.ag-theme-alpine-auto-dark .ag-standard-button {
  font-family: inherit;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: 1px solid;
  border-color: var(--ag-alpine-active-color);
  color: var(--ag-alpine-active-color);
  background-color: var(--ag-background-color);
  font-weight: 600;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-standard-button:hover,
.ag-theme-alpine-dark .ag-standard-button:hover,
.ag-theme-alpine-auto-dark .ag-standard-button:hover {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-row-hover-color);
}
.ag-theme-alpine .ag-standard-button:active,
.ag-theme-alpine-dark .ag-standard-button:active,
.ag-theme-alpine-auto-dark .ag-standard-button:active {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-alpine-active-color);
  color: var(--ag-background-color);
}
.ag-theme-alpine .ag-standard-button:disabled,
.ag-theme-alpine-dark .ag-standard-button:disabled,
.ag-theme-alpine-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-alpine .ag-column-drop-vertical,
.ag-theme-alpine-dark .ag-column-drop-vertical,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-alpine .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar {
  padding: calc(var(--ag-grid-size) * 2);
  padding-bottom: 0px;
}
.ag-theme-alpine .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-column-drop-empty-message,
.ag-theme-alpine-dark .ag-column-drop-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
  opacity: 0.75;
}
.ag-theme-alpine .ag-pill-select .ag-column-drop,
.ag-theme-alpine-dark .ag-pill-select .ag-column-drop,
.ag-theme-alpine-auto-dark .ag-pill-select .ag-column-drop {
  min-height: 0;
  min-height: initial;
}
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-alpine .ag-status-name-value-value,
.ag-theme-alpine-dark .ag-status-name-value-value,
.ag-theme-alpine-auto-dark .ag-status-name-value-value {
  font-weight: 700;
}
.ag-theme-alpine .ag-paging-number,
.ag-theme-alpine .ag-paging-row-summary-panel-number,
.ag-theme-alpine-dark .ag-paging-number,
.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,
.ag-theme-alpine-auto-dark .ag-paging-number,
.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 700;
}
.ag-theme-alpine .ag-column-drop-cell-button,
.ag-theme-alpine-dark .ag-column-drop-cell-button,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button {
  opacity: 0.5;
}
.ag-theme-alpine .ag-column-drop-cell-button:hover,
.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 0.75;
}
.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-alpine .ag-header-cell-menu-button:hover,
.ag-theme-alpine .ag-header-cell-filter-button:hover,
.ag-theme-alpine .ag-side-button-button:hover,
.ag-theme-alpine .ag-tab:hover,
.ag-theme-alpine .ag-panel-title-bar-button:hover,
.ag-theme-alpine .ag-header-expand-icon:hover,
.ag-theme-alpine .ag-column-group-icons:hover,
.ag-theme-alpine .ag-set-filter-group-icons:hover,
.ag-theme-alpine .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine .ag-chart-settings-prev:hover,
.ag-theme-alpine .ag-chart-settings-next:hover,
.ag-theme-alpine .ag-group-title-bar-icon:hover,
.ag-theme-alpine .ag-column-select-header-icon:hover,
.ag-theme-alpine .ag-floating-filter-button-button:hover,
.ag-theme-alpine .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine .ag-chart-menu-icon:hover,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-dark .ag-side-button-button:hover,
.ag-theme-alpine-dark .ag-tab:hover,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-dark .ag-column-group-icons:hover,
.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-dark .ag-chart-menu-icon:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover,
.ag-theme-alpine-auto-dark .ag-tab:hover,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon {
  color: inherit;
}
.ag-theme-alpine .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  border-right: dashed 1px;
  border-right-color: var(--ag-border-color);
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-set-filter-list,
.ag-theme-alpine-dark .ag-set-filter-list,
.ag-theme-alpine-auto-dark .ag-set-filter-list {
  padding-top: calc(var(--ag-grid-size) * 0.5);
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-alpine .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-advanced-filter-builder-button,
.ag-theme-alpine-dark .ag-advanced-filter-builder-button,
.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-alpine .ag-list-item-hovered::after,
.ag-theme-alpine-dark .ag-list-item-hovered::after,
.ag-theme-alpine-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-dark .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-highlight-before::after,
.ag-theme-alpine .ag-header-highlight-after::after,
.ag-theme-alpine-dark .ag-header-highlight-before::after,
.ag-theme-alpine-dark .ag-header-highlight-after::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-before::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-alpine-active-color);
}
`,""]),x.A=T},7521:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z),b=p(62),C=p.n(b),d=new URL(p(8430),p.b),s=T()(E()),c=C()(d);s.push([ae.id,`@font-face {
  font-family: "agGridAlpine";
  src: url(`+c+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-alpine,
.ag-theme-alpine-dark,
.ag-theme-alpine-auto-dark {
  --ag-alpine-active-color: #2196f3;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-row-hover-color: rgba(33, 150, 243, 0.1);
  --ag-column-hover-color: rgba(33, 150, 243, 0.1);
  --ag-input-focus-border-color: rgba(33, 150, 243, 0.4);
  --ag-range-selection-background-color: rgba(33, 150, 243, 0.2);
  --ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);
  --ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);
  --ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: #babfc7;
  --ag-secondary-border-color: #dde2eb;
  --ag-header-background-color: #f8f8f8;
  --ag-tooltip-background-color: #f8f8f8;
  --ag-odd-row-background-color: #fcfcfc;
  --ag-control-panel-background-color: #f8f8f8;
  --ag-subheader-background-color: #fff;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: #999;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-alpine-active-color);
  --ag-range-selection-border-color: var(--ag-alpine-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-menu-background-color: var(--ag-header-background-color);
  --ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);
  --ag-chip-background-color: rgba(24, 29, 31, 0.07);
  --ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);
  --ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);
  --ag-borders: solid 1px;
  --ag-border-radius: 3px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 6px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridAlpine;
  --ag-selected-tab-underline-color: var(--ag-alpine-active-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-selected-tab-underline-transition-speed: 0.3s;
  --ag-tab-min-width: 240px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: var(--ag-card-shadow);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-alpine-dark {
  --ag-background-color: #181d1f;
  --ag-foreground-color: #fff;
  --ag-border-color: #68686e;
  --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
  --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
  --ag-header-background-color: #222628;
  --ag-tooltip-background-color: #222628;
  --ag-odd-row-background-color: #222628;
  --ag-control-panel-background-color: #222628;
  --ag-subheader-background-color: #000;
  --ag-input-disabled-background-color: #282c2f;
  --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
  --ag-chip-background-color: rgba(255, 255, 255, 0.07);
  --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
  --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-alpine-auto-dark {
    --ag-background-color: #181d1f;
    --ag-foreground-color: #fff;
    --ag-border-color: #68686e;
    --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
    --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
    --ag-header-background-color: #222628;
    --ag-tooltip-background-color: #222628;
    --ag-odd-row-background-color: #222628;
    --ag-control-panel-background-color: #222628;
    --ag-subheader-background-color: #000;
    --ag-input-disabled-background-color: #282c2f;
    --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
    --ag-chip-background-color: rgba(255, 255, 255, 0.07);
    --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
    --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-alpine .ag-filter-toolpanel-header,
.ag-theme-alpine .ag-filter-toolpanel-search,
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine .ag-header-row,
.ag-theme-alpine .ag-panel-title-bar-title,
.ag-theme-alpine .ag-multi-filter-group-title-bar,
.ag-theme-alpine-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-dark .ag-header-row,
.ag-theme-alpine-dark .ag-panel-title-bar-title,
.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-auto-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-header-row,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,
.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 700;
  color: var(--ag-header-foreground-color);
}
.ag-theme-alpine .ag-row,
.ag-theme-alpine-dark .ag-row,
.ag-theme-alpine-auto-dark .ag-row {
  font-size: calc(var(--ag-font-size) + 1px);
}
.ag-theme-alpine input[class^=ag-]:not([type]),
.ag-theme-alpine input[class^=ag-][type=text],
.ag-theme-alpine input[class^=ag-][type=number],
.ag-theme-alpine input[class^=ag-][type=tel],
.ag-theme-alpine input[class^=ag-][type=date],
.ag-theme-alpine input[class^=ag-][type=datetime-local],
.ag-theme-alpine textarea[class^=ag-],
.ag-theme-alpine-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-dark input[class^=ag-][type=text],
.ag-theme-alpine-dark input[class^=ag-][type=number],
.ag-theme-alpine-dark input[class^=ag-][type=tel],
.ag-theme-alpine-dark input[class^=ag-][type=date],
.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-dark textarea[class^=ag-],
.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-auto-dark input[class^=ag-][type=text],
.ag-theme-alpine-auto-dark input[class^=ag-][type=number],
.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],
.ag-theme-alpine-auto-dark input[class^=ag-][type=date],
.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-tab,
.ag-theme-alpine-dark .ag-tab,
.ag-theme-alpine-auto-dark .ag-tab {
  padding: calc(var(--ag-grid-size) * 1.5);
  transition: color 0.4s;
  flex: 1 1 auto;
}
.ag-theme-alpine .ag-tab-selected,
.ag-theme-alpine-dark .ag-tab-selected,
.ag-theme-alpine-auto-dark .ag-tab-selected {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-menu,
.ag-theme-alpine-dark .ag-menu,
.ag-theme-alpine-auto-dark .ag-menu {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-menu-header,
.ag-theme-alpine-dark .ag-menu-header,
.ag-theme-alpine-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
  padding-top: 1px;
}
.ag-theme-alpine .ag-tabs-header,
.ag-theme-alpine-dark .ag-tabs-header,
.ag-theme-alpine-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-theme-alpine .ag-charts-settings-group-title-bar,
.ag-theme-alpine .ag-charts-data-group-title-bar,
.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar {
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);
}
.ag-theme-alpine .ag-chart-mini-thumbnail,
.ag-theme-alpine-dark .ag-chart-mini-thumbnail,
.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
}
.ag-theme-alpine .ag-chart-settings-nav-bar,
.ag-theme-alpine-dark .ag-chart-settings-nav-bar,
.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-toolbar {
  margin-top: var(--ag-grid-size);
}
.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-charts-format-sub-level-group,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  padding-left: var(--ag-grid-size);
  margin-bottom: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding-top: 0;
  padding-bottom: 0;
  background: none;
  font-weight: 700;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container {
  padding-bottom: 0;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child {
  margin-bottom: 0;
}
.ag-theme-alpine.ag-dnd-ghost,
.ag-theme-alpine-dark.ag-dnd-ghost,
.ag-theme-alpine-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 700;
}
.ag-theme-alpine .ag-side-buttons,
.ag-theme-alpine-dark .ag-side-buttons,
.ag-theme-alpine-auto-dark .ag-side-buttons {
  width: calc(var(--ag-grid-size) * 5);
}
.ag-theme-alpine .ag-standard-button,
.ag-theme-alpine-dark .ag-standard-button,
.ag-theme-alpine-auto-dark .ag-standard-button {
  font-family: inherit;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: 1px solid;
  border-color: var(--ag-alpine-active-color);
  color: var(--ag-alpine-active-color);
  background-color: var(--ag-background-color);
  font-weight: 600;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-standard-button:hover,
.ag-theme-alpine-dark .ag-standard-button:hover,
.ag-theme-alpine-auto-dark .ag-standard-button:hover {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-row-hover-color);
}
.ag-theme-alpine .ag-standard-button:active,
.ag-theme-alpine-dark .ag-standard-button:active,
.ag-theme-alpine-auto-dark .ag-standard-button:active {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-alpine-active-color);
  color: var(--ag-background-color);
}
.ag-theme-alpine .ag-standard-button:disabled,
.ag-theme-alpine-dark .ag-standard-button:disabled,
.ag-theme-alpine-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-alpine .ag-column-drop-vertical,
.ag-theme-alpine-dark .ag-column-drop-vertical,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-alpine .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar {
  padding: calc(var(--ag-grid-size) * 2);
  padding-bottom: 0px;
}
.ag-theme-alpine .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-column-drop-empty-message,
.ag-theme-alpine-dark .ag-column-drop-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
  opacity: 0.75;
}
.ag-theme-alpine .ag-pill-select .ag-column-drop,
.ag-theme-alpine-dark .ag-pill-select .ag-column-drop,
.ag-theme-alpine-auto-dark .ag-pill-select .ag-column-drop {
  min-height: 0;
  min-height: initial;
}
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-alpine .ag-status-name-value-value,
.ag-theme-alpine-dark .ag-status-name-value-value,
.ag-theme-alpine-auto-dark .ag-status-name-value-value {
  font-weight: 700;
}
.ag-theme-alpine .ag-paging-number,
.ag-theme-alpine .ag-paging-row-summary-panel-number,
.ag-theme-alpine-dark .ag-paging-number,
.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,
.ag-theme-alpine-auto-dark .ag-paging-number,
.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 700;
}
.ag-theme-alpine .ag-column-drop-cell-button,
.ag-theme-alpine-dark .ag-column-drop-cell-button,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button {
  opacity: 0.5;
}
.ag-theme-alpine .ag-column-drop-cell-button:hover,
.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 0.75;
}
.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-alpine .ag-header-cell-menu-button:hover,
.ag-theme-alpine .ag-header-cell-filter-button:hover,
.ag-theme-alpine .ag-side-button-button:hover,
.ag-theme-alpine .ag-tab:hover,
.ag-theme-alpine .ag-panel-title-bar-button:hover,
.ag-theme-alpine .ag-header-expand-icon:hover,
.ag-theme-alpine .ag-column-group-icons:hover,
.ag-theme-alpine .ag-set-filter-group-icons:hover,
.ag-theme-alpine .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine .ag-chart-settings-prev:hover,
.ag-theme-alpine .ag-chart-settings-next:hover,
.ag-theme-alpine .ag-group-title-bar-icon:hover,
.ag-theme-alpine .ag-column-select-header-icon:hover,
.ag-theme-alpine .ag-floating-filter-button-button:hover,
.ag-theme-alpine .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine .ag-chart-menu-icon:hover,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-dark .ag-side-button-button:hover,
.ag-theme-alpine-dark .ag-tab:hover,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-dark .ag-column-group-icons:hover,
.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-dark .ag-chart-menu-icon:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover,
.ag-theme-alpine-auto-dark .ag-tab:hover,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon {
  color: inherit;
}
.ag-theme-alpine .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  border-right: dashed 1px;
  border-right-color: var(--ag-border-color);
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-set-filter-list,
.ag-theme-alpine-dark .ag-set-filter-list,
.ag-theme-alpine-auto-dark .ag-set-filter-list {
  padding-top: calc(var(--ag-grid-size) * 0.5);
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-alpine .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-advanced-filter-builder-button,
.ag-theme-alpine-dark .ag-advanced-filter-builder-button,
.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-alpine .ag-list-item-hovered::after,
.ag-theme-alpine-dark .ag-list-item-hovered::after,
.ag-theme-alpine-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-dark .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-highlight-before::after,
.ag-theme-alpine .ag-header-highlight-after::after,
.ag-theme-alpine-dark .ag-header-highlight-before::after,
.ag-theme-alpine-dark .ag-header-highlight-after::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-before::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-alpine-active-color);
}
`,""]),x.A=s},4991:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z)()(E());T.push([ae.id,`.ag-theme-balham,
.ag-theme-balham-dark,
.ag-theme-balham-auto-dark {
  --ag-balham-active-color: #0091ea;
  --ag-foreground-color: #000;
  --ag-background-color: #fff;
  --ag-header-background-color: #f5f7f7;
  --ag-tooltip-background-color: #cbd0d3;
  --ag-subheader-background-color: #e2e9eb;
  --ag-control-panel-background-color: #f5f7f7;
  --ag-border-color: #bdc3c7;
  --ag-odd-row-background-color: #fcfdfe;
  --ag-row-hover-color: #ecf0f1;
  --ag-column-hover-color: #ecf0f1;
  --ag-input-border-color: #95a5a6;
  --ag-invalid-color: #e02525;
  --ag-input-disabled-background-color: #ebebeb;
  --ag-checkbox-unchecked-color: #7f8c8d;
  --ag-input-focus-border-color: #719ece;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);
  --ag-range-selection-border-color: var(--ag-balham-active-color);
  --ag-checkbox-checked-color: var(--ag-balham-active-color);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);
  --ag-row-border-color: rgba(189, 195, 199, 0.58);
  --ag-chip-background-color: rgba(0, 0, 0, 0.1);
  --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);
  --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);
  --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);
  --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);
  --ag-header-column-separator-display: block;
  --ag-header-column-separator-height: 50%;
  --ag-grid-size: 4px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 6);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-input-height: calc(var(--ag-grid-size) * 4);
  --ag-chart-menu-panel-width: 240px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 12px;
  --ag-icon-font-family: agGridBalham;
  --ag-border-radius: 2px;
  --ag-checkbox-border-radius: 3px;
  --ag-card-shadow: none;
}

.ag-theme-balham-dark {
  --ag-balham-active-color: #00b0ff;
  --ag-foreground-color: #f5f5f5;
  --ag-background-color: #2d3436;
  --ag-header-background-color: #1c1c1c;
  --ag-tooltip-background-color: #1c1f20;
  --ag-subheader-background-color: #111;
  --ag-control-panel-background-color: #202020;
  --ag-border-color: #424242;
  --ag-odd-row-background-color: #262c2e;
  --ag-row-hover-color: #3d4749;
  --ag-column-hover-color: #3d4749;
  --ag-input-border-color: #f0f0f0;
  --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
  --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
  --ag-checkbox-unchecked-color: #ecf0f1;
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
  --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
  --ag-row-border-color: #5c5c5c;
  --ag-chip-background-color: rgba(245, 245, 245, 0.08);
  --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
  --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
  --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
  --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
  --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
  --ag-toggle-button-off-background-color: transparent;
  --ag-toggle-button-off-border-color: var(--ag-foreground-color);
  --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
  --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
  --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-balham-auto-dark {
    --ag-balham-active-color: #00b0ff;
    --ag-foreground-color: #f5f5f5;
    --ag-background-color: #2d3436;
    --ag-header-background-color: #1c1c1c;
    --ag-tooltip-background-color: #1c1f20;
    --ag-subheader-background-color: #111;
    --ag-control-panel-background-color: #202020;
    --ag-border-color: #424242;
    --ag-odd-row-background-color: #262c2e;
    --ag-row-hover-color: #3d4749;
    --ag-column-hover-color: #3d4749;
    --ag-input-border-color: #f0f0f0;
    --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
    --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
    --ag-checkbox-unchecked-color: #ecf0f1;
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-secondary-foreground-color: var(--ag-foreground-color);
    --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
    --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
    --ag-row-border-color: #5c5c5c;
    --ag-chip-background-color: rgba(245, 245, 245, 0.08);
    --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
    --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
    --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
    --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
    --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
    --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
    --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
    --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
    --ag-toggle-button-off-background-color: transparent;
    --ag-toggle-button-off-border-color: var(--ag-foreground-color);
    --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
    --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
    --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-balham .ag-filter-toolpanel-header,
.ag-theme-balham .ag-filter-toolpanel-search,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham .ag-header-row,
.ag-theme-balham .ag-multi-filter-group-title-bar,
.ag-theme-balham-dark .ag-filter-toolpanel-header,
.ag-theme-balham-dark .ag-filter-toolpanel-search,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-dark .ag-header-row,
.ag-theme-balham-dark .ag-multi-filter-group-title-bar,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-header,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-search,
.ag-theme-balham-auto-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-header-row,
.ag-theme-balham-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-vertical-empty-message,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-auto-dark .ag-status-bar {
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham.ag-dnd-ghost,
.ag-theme-balham-dark.ag-dnd-ghost,
.ag-theme-balham-auto-dark.ag-dnd-ghost {
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-theme-balham .ag-tab,
.ag-theme-balham-dark .ag-tab,
.ag-theme-balham-auto-dark .ag-tab {
  border: 1px solid transparent;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  margin: var(--ag-grid-size);
  margin-bottom: -1px;
}
.ag-theme-balham .ag-tab-selected,
.ag-theme-balham-dark .ag-tab-selected,
.ag-theme-balham-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
  border-color: var(--ag-border-color);
  border-bottom-color: transparent;
}
.ag-theme-balham .ag-tabs-header,
.ag-theme-balham-dark .ag-tabs-header,
.ag-theme-balham-auto-dark .ag-tabs-header {
  border-bottom: 1px solid var(--ag-border-color);
}
.ag-theme-balham .ag-column-drop-cell,
.ag-theme-balham-dark .ag-column-drop-cell,
.ag-theme-balham-auto-dark .ag-column-drop-cell {
  height: calc(var(--ag-grid-size) * 6);
}
.ag-theme-balham .ag-column-drop-vertical-title,
.ag-theme-balham-dark .ag-column-drop-vertical-title,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-title {
  color: var(--ag-foreground-color);
}
.ag-theme-balham .ag-column-drop-vertical-cell,
.ag-theme-balham-dark .ag-column-drop-vertical-cell,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-cell-text,
.ag-theme-balham-dark .ag-column-drop-vertical-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-icon,
.ag-theme-balham-dark .ag-column-drop-vertical-icon,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-icon {
  color: var(--ag-secondary-foreground-color);
}
.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-horizontal,
.ag-theme-balham-dark .ag-column-drop-horizontal,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal {
  height: var(--ag-header-height);
}
.ag-theme-balham .ag-column-drop-empty,
.ag-theme-balham-dark .ag-column-drop-empty,
.ag-theme-balham-auto-dark .ag-column-drop-empty {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-dark .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical,
.ag-theme-balham-dark .ag-column-drop-vertical,
.ag-theme-balham-auto-dark .ag-column-drop-vertical {
  padding-top: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-balham .ag-menu-header,
.ag-theme-balham-dark .ag-menu-header,
.ag-theme-balham-auto-dark .ag-menu-header {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-overlay-loading-center,
.ag-theme-balham-dark .ag-overlay-loading-center,
.ag-theme-balham-auto-dark .ag-overlay-loading-center {
  background-color: var(--ag-background-color);
  border: 1px solid var(--ag-border-color);
  color: var(--ag-foreground-color);
  padding: calc(var(--ag-grid-size) * 4);
}
.ag-theme-balham .ag-tooltip,
.ag-theme-balham-dark .ag-tooltip,
.ag-theme-balham-auto-dark .ag-tooltip {
  border: none;
}
.ag-theme-balham .ag-panel-title-bar-button-icon,
.ag-theme-balham-dark .ag-panel-title-bar-button-icon,
.ag-theme-balham-auto-dark .ag-panel-title-bar-button-icon {
  font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));
}
.ag-theme-balham .ag-panel,
.ag-theme-balham-dark .ag-panel,
.ag-theme-balham-auto-dark .ag-panel {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-chart-data-section,
.ag-theme-balham .ag-chart-format-section,
.ag-theme-balham .ag-chart-advanced-settings-section,
.ag-theme-balham-dark .ag-chart-data-section,
.ag-theme-balham-dark .ag-chart-format-section,
.ag-theme-balham-dark .ag-chart-advanced-settings-section,
.ag-theme-balham-auto-dark .ag-chart-data-section,
.ag-theme-balham-auto-dark .ag-chart-format-section,
.ag-theme-balham-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-group-toolbar,
.ag-theme-balham-dark .ag-group-toolbar,
.ag-theme-balham-auto-dark .ag-group-toolbar {
  background-color: var(--ag-subheader-toolbar-background-color);
}
.ag-theme-balham .ag-chart-tab,
.ag-theme-balham-dark .ag-chart-tab,
.ag-theme-balham-auto-dark .ag-chart-tab {
  padding-top: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-charts-format-sub-level-group-item,
.ag-theme-balham-dark .ag-charts-format-sub-level-group-item,
.ag-theme-balham-auto-dark .ag-charts-format-sub-level-group-item {
  margin-bottom: calc(var(--ag-grid-size) * 1.5);
}
.ag-theme-balham .ag-filter-active .ag-icon-filter,
.ag-theme-balham-dark .ag-filter-active .ag-icon-filter,
.ag-theme-balham-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-auto-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  min-height: calc(var(--ag-icon-size) + 4px);
}
.ag-theme-balham .ag-list-item-hovered::after,
.ag-theme-balham-dark .ag-list-item-hovered::after,
.ag-theme-balham-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-pill .ag-pill-button:hover,
.ag-theme-balham-dark .ag-pill .ag-pill-button:hover,
.ag-theme-balham-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-header-highlight-before::after,
.ag-theme-balham .ag-header-highlight-after::after,
.ag-theme-balham-dark .ag-header-highlight-before::after,
.ag-theme-balham-dark .ag-header-highlight-after::after,
.ag-theme-balham-auto-dark .ag-header-highlight-before::after,
.ag-theme-balham-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-balham-active-color);
}
`,""]),x.A=T},2621:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z),b=p(62),C=p.n(b),d=new URL(p(9377),p.b),s=T()(E()),c=C()(d);s.push([ae.id,`@font-face {
  font-family: "agGridBalham";
  src: url(`+c+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-balham,
.ag-theme-balham-dark,
.ag-theme-balham-auto-dark {
  --ag-balham-active-color: #0091ea;
  --ag-foreground-color: #000;
  --ag-background-color: #fff;
  --ag-header-background-color: #f5f7f7;
  --ag-tooltip-background-color: #cbd0d3;
  --ag-subheader-background-color: #e2e9eb;
  --ag-control-panel-background-color: #f5f7f7;
  --ag-border-color: #bdc3c7;
  --ag-odd-row-background-color: #fcfdfe;
  --ag-row-hover-color: #ecf0f1;
  --ag-column-hover-color: #ecf0f1;
  --ag-input-border-color: #95a5a6;
  --ag-invalid-color: #e02525;
  --ag-input-disabled-background-color: #ebebeb;
  --ag-checkbox-unchecked-color: #7f8c8d;
  --ag-input-focus-border-color: #719ece;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);
  --ag-range-selection-border-color: var(--ag-balham-active-color);
  --ag-checkbox-checked-color: var(--ag-balham-active-color);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);
  --ag-row-border-color: rgba(189, 195, 199, 0.58);
  --ag-chip-background-color: rgba(0, 0, 0, 0.1);
  --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);
  --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);
  --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);
  --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);
  --ag-header-column-separator-display: block;
  --ag-header-column-separator-height: 50%;
  --ag-grid-size: 4px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 6);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-input-height: calc(var(--ag-grid-size) * 4);
  --ag-chart-menu-panel-width: 240px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 12px;
  --ag-icon-font-family: agGridBalham;
  --ag-border-radius: 2px;
  --ag-checkbox-border-radius: 3px;
  --ag-card-shadow: none;
}

.ag-theme-balham-dark {
  --ag-balham-active-color: #00b0ff;
  --ag-foreground-color: #f5f5f5;
  --ag-background-color: #2d3436;
  --ag-header-background-color: #1c1c1c;
  --ag-tooltip-background-color: #1c1f20;
  --ag-subheader-background-color: #111;
  --ag-control-panel-background-color: #202020;
  --ag-border-color: #424242;
  --ag-odd-row-background-color: #262c2e;
  --ag-row-hover-color: #3d4749;
  --ag-column-hover-color: #3d4749;
  --ag-input-border-color: #f0f0f0;
  --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
  --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
  --ag-checkbox-unchecked-color: #ecf0f1;
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
  --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
  --ag-row-border-color: #5c5c5c;
  --ag-chip-background-color: rgba(245, 245, 245, 0.08);
  --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
  --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
  --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
  --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
  --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
  --ag-toggle-button-off-background-color: transparent;
  --ag-toggle-button-off-border-color: var(--ag-foreground-color);
  --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
  --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
  --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-balham-auto-dark {
    --ag-balham-active-color: #00b0ff;
    --ag-foreground-color: #f5f5f5;
    --ag-background-color: #2d3436;
    --ag-header-background-color: #1c1c1c;
    --ag-tooltip-background-color: #1c1f20;
    --ag-subheader-background-color: #111;
    --ag-control-panel-background-color: #202020;
    --ag-border-color: #424242;
    --ag-odd-row-background-color: #262c2e;
    --ag-row-hover-color: #3d4749;
    --ag-column-hover-color: #3d4749;
    --ag-input-border-color: #f0f0f0;
    --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
    --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
    --ag-checkbox-unchecked-color: #ecf0f1;
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-secondary-foreground-color: var(--ag-foreground-color);
    --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
    --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
    --ag-row-border-color: #5c5c5c;
    --ag-chip-background-color: rgba(245, 245, 245, 0.08);
    --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
    --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
    --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
    --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
    --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
    --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
    --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
    --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
    --ag-toggle-button-off-background-color: transparent;
    --ag-toggle-button-off-border-color: var(--ag-foreground-color);
    --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
    --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
    --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-balham .ag-filter-toolpanel-header,
.ag-theme-balham .ag-filter-toolpanel-search,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham .ag-header-row,
.ag-theme-balham .ag-multi-filter-group-title-bar,
.ag-theme-balham-dark .ag-filter-toolpanel-header,
.ag-theme-balham-dark .ag-filter-toolpanel-search,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-dark .ag-header-row,
.ag-theme-balham-dark .ag-multi-filter-group-title-bar,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-header,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-search,
.ag-theme-balham-auto-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-header-row,
.ag-theme-balham-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-vertical-empty-message,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-auto-dark .ag-status-bar {
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham.ag-dnd-ghost,
.ag-theme-balham-dark.ag-dnd-ghost,
.ag-theme-balham-auto-dark.ag-dnd-ghost {
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-theme-balham .ag-tab,
.ag-theme-balham-dark .ag-tab,
.ag-theme-balham-auto-dark .ag-tab {
  border: 1px solid transparent;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  margin: var(--ag-grid-size);
  margin-bottom: -1px;
}
.ag-theme-balham .ag-tab-selected,
.ag-theme-balham-dark .ag-tab-selected,
.ag-theme-balham-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
  border-color: var(--ag-border-color);
  border-bottom-color: transparent;
}
.ag-theme-balham .ag-tabs-header,
.ag-theme-balham-dark .ag-tabs-header,
.ag-theme-balham-auto-dark .ag-tabs-header {
  border-bottom: 1px solid var(--ag-border-color);
}
.ag-theme-balham .ag-column-drop-cell,
.ag-theme-balham-dark .ag-column-drop-cell,
.ag-theme-balham-auto-dark .ag-column-drop-cell {
  height: calc(var(--ag-grid-size) * 6);
}
.ag-theme-balham .ag-column-drop-vertical-title,
.ag-theme-balham-dark .ag-column-drop-vertical-title,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-title {
  color: var(--ag-foreground-color);
}
.ag-theme-balham .ag-column-drop-vertical-cell,
.ag-theme-balham-dark .ag-column-drop-vertical-cell,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-cell-text,
.ag-theme-balham-dark .ag-column-drop-vertical-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-icon,
.ag-theme-balham-dark .ag-column-drop-vertical-icon,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-icon {
  color: var(--ag-secondary-foreground-color);
}
.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-horizontal,
.ag-theme-balham-dark .ag-column-drop-horizontal,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal {
  height: var(--ag-header-height);
}
.ag-theme-balham .ag-column-drop-empty,
.ag-theme-balham-dark .ag-column-drop-empty,
.ag-theme-balham-auto-dark .ag-column-drop-empty {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-dark .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical,
.ag-theme-balham-dark .ag-column-drop-vertical,
.ag-theme-balham-auto-dark .ag-column-drop-vertical {
  padding-top: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-balham .ag-menu-header,
.ag-theme-balham-dark .ag-menu-header,
.ag-theme-balham-auto-dark .ag-menu-header {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-overlay-loading-center,
.ag-theme-balham-dark .ag-overlay-loading-center,
.ag-theme-balham-auto-dark .ag-overlay-loading-center {
  background-color: var(--ag-background-color);
  border: 1px solid var(--ag-border-color);
  color: var(--ag-foreground-color);
  padding: calc(var(--ag-grid-size) * 4);
}
.ag-theme-balham .ag-tooltip,
.ag-theme-balham-dark .ag-tooltip,
.ag-theme-balham-auto-dark .ag-tooltip {
  border: none;
}
.ag-theme-balham .ag-panel-title-bar-button-icon,
.ag-theme-balham-dark .ag-panel-title-bar-button-icon,
.ag-theme-balham-auto-dark .ag-panel-title-bar-button-icon {
  font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));
}
.ag-theme-balham .ag-panel,
.ag-theme-balham-dark .ag-panel,
.ag-theme-balham-auto-dark .ag-panel {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-chart-data-section,
.ag-theme-balham .ag-chart-format-section,
.ag-theme-balham .ag-chart-advanced-settings-section,
.ag-theme-balham-dark .ag-chart-data-section,
.ag-theme-balham-dark .ag-chart-format-section,
.ag-theme-balham-dark .ag-chart-advanced-settings-section,
.ag-theme-balham-auto-dark .ag-chart-data-section,
.ag-theme-balham-auto-dark .ag-chart-format-section,
.ag-theme-balham-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-group-toolbar,
.ag-theme-balham-dark .ag-group-toolbar,
.ag-theme-balham-auto-dark .ag-group-toolbar {
  background-color: var(--ag-subheader-toolbar-background-color);
}
.ag-theme-balham .ag-chart-tab,
.ag-theme-balham-dark .ag-chart-tab,
.ag-theme-balham-auto-dark .ag-chart-tab {
  padding-top: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-charts-format-sub-level-group-item,
.ag-theme-balham-dark .ag-charts-format-sub-level-group-item,
.ag-theme-balham-auto-dark .ag-charts-format-sub-level-group-item {
  margin-bottom: calc(var(--ag-grid-size) * 1.5);
}
.ag-theme-balham .ag-filter-active .ag-icon-filter,
.ag-theme-balham-dark .ag-filter-active .ag-icon-filter,
.ag-theme-balham-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-auto-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  min-height: calc(var(--ag-icon-size) + 4px);
}
.ag-theme-balham .ag-list-item-hovered::after,
.ag-theme-balham-dark .ag-list-item-hovered::after,
.ag-theme-balham-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-pill .ag-pill-button:hover,
.ag-theme-balham-dark .ag-pill .ag-pill-button:hover,
.ag-theme-balham-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-header-highlight-before::after,
.ag-theme-balham .ag-header-highlight-after::after,
.ag-theme-balham-dark .ag-header-highlight-before::after,
.ag-theme-balham-dark .ag-header-highlight-after::after,
.ag-theme-balham-auto-dark .ag-header-highlight-before::after,
.ag-theme-balham-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-balham-active-color);
}
`,""]),x.A=s},8981:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z)()(E());T.push([ae.id,`.ag-theme-material,
.ag-theme-material-dark,
.ag-theme-material-auto-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #ff4081;
  --ag-foreground-color: rgba(0, 0, 0, 0.87);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-background-color: #fff;
  --ag-header-background-color: #fff;
  --ag-tooltip-background-color: #fff;
  --ag-subheader-background-color: #eee;
  --ag-subheader-toolbar-background-color: rgba(238, 238, 238, 0.5);
  --ag-header-cell-hover-background-color: #f2f2f2;
  --ag-chip-background-color: #e2e2e2;
  --ag-range-selection-background-color: rgba(122, 134, 203, 0.1);
  --ag-range-selection-background-color-2: rgba(122, 134, 203, 0.19);
  --ag-range-selection-background-color-3: rgba(122, 134, 203, 0.27);
  --ag-range-selection-background-color-4: rgba(122, 134, 203, 0.34);
  --ag-range-selection-highlight-color: #fce4ec;
  --ag-row-hover-color: #fafafa;
  --ag-column-hover-color: #fafafa;
  --ag-control-panel-background-color: #fafafa;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-checkbox-unchecked-color: #333;
  --ag-value-change-value-highlight-background-color: #00acc1;
  --ag-side-button-selected-background-color: transparent;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-range-selection-border-color: var(--ag-material-primary-color);
  --ag-checkbox-checked-color: var(--ag-material-accent-color);
  --ag-borders: none;
  --ag-borders-critical: solid 1px;
  --ag-border-color: #e2e2e2;
  --ag-grid-size: 8px;
  --ag-icon-size: 18px;
  --ag-header-height: calc(var(--ag-grid-size) * 7);
  --ag-row-height: calc(var(--ag-grid-size) * 6);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-filter-tool-panel-sub-level-row-height: calc(var(--ag-grid-size) * 4);
  --ag-checkbox-border-radius: 2px;
  --ag-toggle-button-switch-border-width: 2px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.75);
  --ag-font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridMaterial;
  --ag-selected-tab-underline-color: var(--ag-material-primary-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-input-focus-border-color: var(--ag-material-primary-color);
  --ag-input-focus-box-shadow: 0 0 0 5px rgba(32, 33, 36, 0.122);
  --ag-card-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
      0 1px 5px 0 rgba(0, 0, 0, 0.12);
  --ag-card-radius: 2px;
  --ag-invalid-color: #e02525;
}

.ag-theme-material-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: rgba(187,134,252,1);
  --ag-range-selection-border-color: var(--ag-material-accent-color);
  --ag-background-color: rgba(18,18,18,1);
  --ag-foreground-color: rgba(255,255,255,1);
  --ag-data-color: rgba(245,245,245,1);
  --ag-header-cell-hover-background-color: rgba(0,0,0,1);
  --ag-advanced-filter-join-pill-color: rgba(122,58,55,1);
  --ag-advanced-filter-column-pill-color: rgba(53,95,45,1);
  --ag-advanced-filter-option-pill-color: rgba(90,49,104,1);
  --ag-advanced-filter-value-pill-color: rgba(55,76,134,1);
  --ag-input-disabled-border-color: rgba(58,67,78,1);
  --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
  --ag-selected-row-background-color: rgba(187,134,252,0.2);
  --ag-row-hover-color: rgba(187,134,252,0.2);
  --ag-column-hover-color: rgba(245,245,245,0.05098);
  --ag-range-selection-background-color: rgba(187,134,252,0.10196);
  --ag-range-selection-background-color-2: rgba(187,134,252,0.18824);
  --ag-range-selection-background-color-3: rgba(187,134,252,0.27059);
  --ag-range-selection-background-color-4: rgba(187,134,252,0.34118);
  --ag-border-color: rgba(56,56,56,1);
  --ag-secondary-border-color: rgba(56,56,56,1);
  --ag-header-background-color: rgba(18,18,18,1);
  --ag-tooltip-background-color: rgba(33,43,56,1);
  --ag-odd-row-background-color: rgba(18,18,18,1);
  --ag-control-panel-background-color: rgba(44,44,44,1);
  --ag-subheader-background-color: rgba(255,255,255,0.05098);
  --ag-subheader-toolbar-background-color: rgba(44,44,44,1);
  --ag-invalid-color: rgba(224,37,37,1);
  --ag-checkbox-unchecked-color: rgba(121,126,135,1);
  --ag-checkbox-background-color: rgba(18,18,18,1);
  --ag-secondary-foreground-color: rgba(245,245,245,1);
  --ag-input-border-color: rgba(56,56,56,1);
  --ag-input-border-color-invalid: rgba(224,37,37,1);
  --ag-disabled-foreground-color: rgba(245,245,245,0.50196);
  --ag-chip-background-color: rgba(34,38,40,0.07059);
  --ag-side-button-selected-background-color: rgba(44,44,44,1);
  --ag-selected-tab-underline-color: rgba(63,81,181,1);
  --ag-modal-overlay-background-color: rgba(18,18,18,0.65882);
  --ag-value-change-delta-up-color: rgba(67,160,71,0.65882);
  --ag-value-change-delta-down-color: rgba(229,57,53,1);
  --ag-menu-background-color: rgba(44,44,44,1);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-material-auto-dark {
    --ag-material-primary-color: #3f51b5;
    --ag-material-accent-color: rgba(187,134,252,1);
    --ag-range-selection-border-color: var(--ag-material-accent-color);
    --ag-background-color: rgba(18,18,18,1);
    --ag-foreground-color: rgba(255,255,255,1);
    --ag-data-color: rgba(245,245,245,1);
    --ag-header-cell-hover-background-color: rgba(0,0,0,1);
    --ag-advanced-filter-join-pill-color: rgba(122,58,55,1);
    --ag-advanced-filter-column-pill-color: rgba(53,95,45,1);
    --ag-advanced-filter-option-pill-color: rgba(90,49,104,1);
    --ag-advanced-filter-value-pill-color: rgba(55,76,134,1);
    --ag-input-disabled-border-color: rgba(58,67,78,1);
    --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
    --ag-selected-row-background-color: rgba(187,134,252,0.2);
    --ag-row-hover-color: rgba(187,134,252,0.2);
    --ag-column-hover-color: rgba(245,245,245,0.05098);
    --ag-range-selection-background-color: rgba(187,134,252,0.10196);
    --ag-range-selection-background-color-2: rgba(187,134,252,0.18824);
    --ag-range-selection-background-color-3: rgba(187,134,252,0.27059);
    --ag-range-selection-background-color-4: rgba(187,134,252,0.34118);
    --ag-border-color: rgba(56,56,56,1);
    --ag-secondary-border-color: rgba(56,56,56,1);
    --ag-header-background-color: rgba(18,18,18,1);
    --ag-tooltip-background-color: rgba(33,43,56,1);
    --ag-odd-row-background-color: rgba(18,18,18,1);
    --ag-control-panel-background-color: rgba(44,44,44,1);
    --ag-subheader-background-color: rgba(255,255,255,0.05098);
    --ag-subheader-toolbar-background-color: rgba(44,44,44,1);
    --ag-invalid-color: rgba(224,37,37,1);
    --ag-checkbox-unchecked-color: rgba(121,126,135,1);
    --ag-checkbox-background-color: rgba(18,18,18,1);
    --ag-secondary-foreground-color: rgba(245,245,245,1);
    --ag-input-border-color: rgba(56,56,56,1);
    --ag-input-border-color-invalid: rgba(224,37,37,1);
    --ag-disabled-foreground-color: rgba(245,245,245,0.50196);
    --ag-chip-background-color: rgba(34,38,40,0.07059);
    --ag-side-button-selected-background-color: rgba(44,44,44,1);
    --ag-selected-tab-underline-color: rgba(63,81,181,1);
    --ag-modal-overlay-background-color: rgba(18,18,18,0.65882);
    --ag-value-change-delta-up-color: rgba(67,160,71,0.65882);
    --ag-value-change-delta-down-color: rgba(229,57,53,1);
    --ag-menu-background-color: rgba(44,44,44,1);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material .ag-filter-toolpanel-search,
.ag-theme-material .ag-status-bar,
.ag-theme-material .ag-header-row,
.ag-theme-material .ag-panel-title-bar-title,
.ag-theme-material .ag-multi-filter-group-title-bar,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-search,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-dark .ag-header-row,
.ag-theme-material-dark .ag-panel-title-bar-title,
.ag-theme-material-dark .ag-multi-filter-group-title-bar,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-search,
.ag-theme-material-auto-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-header-row,
.ag-theme-material-auto-dark .ag-panel-title-bar-title,
.ag-theme-material-auto-dark .ag-multi-filter-group-title-bar {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-material .ag-tab,
.ag-theme-material-dark .ag-tab,
.ag-theme-material-auto-dark .ag-tab {
  height: calc(var(--ag-grid-size) * 4.5);
  flex: 1 1 auto;
}
.ag-theme-material .ag-tabs-header,
.ag-theme-material .ag-column-drop-horizontal,
.ag-theme-material-dark .ag-tabs-header,
.ag-theme-material-dark .ag-column-drop-horizontal,
.ag-theme-material-auto-dark .ag-tabs-header,
.ag-theme-material-auto-dark .ag-column-drop-horizontal {
  background-color: var(--ag-subheader-background-color);
}
.ag-theme-material .ag-tabs-body,
.ag-theme-material-dark .ag-tabs-body,
.ag-theme-material-auto-dark .ag-tabs-body {
  padding: calc(var(--ag-grid-size) * 0.5) 0;
}
.ag-theme-material .ag-tabs-body .ag-menu-list,
.ag-theme-material-dark .ag-tabs-body .ag-menu-list,
.ag-theme-material-auto-dark .ag-tabs-body .ag-menu-list {
  padding-top: 0;
  padding-bottom: 0;
}
.ag-theme-material .ag-header-cell,
.ag-theme-material .ag-header-group-cell,
.ag-theme-material-dark .ag-header-cell,
.ag-theme-material-dark .ag-header-group-cell,
.ag-theme-material-auto-dark .ag-header-cell,
.ag-theme-material-auto-dark .ag-header-group-cell {
  transition: background-color 0.5s;
}
.ag-theme-material .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing {
  bottom: 0;
}
.ag-theme-material .ag-cell-inline-editing,
.ag-theme-material-dark .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-cell-inline-editing {
  padding: var(--ag-grid-size);
  height: calc(var(--ag-row-height) + var(--ag-grid-size) * 3);
  border-color: var(--ag-border-color) !important;
}
.ag-theme-material .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-dark .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-has-focus .ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}
.ag-theme-material .ag-column-drop-vertical,
.ag-theme-material-dark .ag-column-drop-vertical,
.ag-theme-material-auto-dark .ag-column-drop-vertical {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
  padding-top: var(--ag-grid-size);
}
.ag-theme-material .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-dark .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-auto-dark .ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}
.ag-theme-material .ag-column-drop-vertical-cell,
.ag-theme-material-dark .ag-column-drop-vertical-cell,
.ag-theme-material-auto-dark .ag-column-drop-vertical-cell {
  margin-left: 0;
}
.ag-theme-material .ag-column-drop-vertical-empty-message,
.ag-theme-material-dark .ag-column-drop-vertical-empty-message,
.ag-theme-material-auto-dark .ag-column-drop-vertical-empty-message {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-material .ag-status-bar,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-status-bar {
  border: solid 1px;
  border-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-panel-column-select,
.ag-theme-material-dark .ag-column-panel-column-select,
.ag-theme-material-auto-dark .ag-column-panel-column-select {
  border-top: solid 1px;
  border-top-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select,
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select,
.ag-theme-material-auto-dark .ag-column-select-header {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select-header {
  height: var(--ag-header-height);
}
.ag-theme-material .ag-group-title-bar,
.ag-theme-material-dark .ag-group-title-bar,
.ag-theme-material-auto-dark .ag-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.75) var(--ag-grid-size);
}
.ag-theme-material .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.5) var(--ag-grid-size);
}
.ag-theme-material .ag-chart-data-section,
.ag-theme-material .ag-chart-format-section,
.ag-theme-material .ag-chart-advanced-settings-section,
.ag-theme-material-dark .ag-chart-data-section,
.ag-theme-material-dark .ag-chart-format-section,
.ag-theme-material-dark .ag-chart-advanced-settings-section,
.ag-theme-material-auto-dark .ag-chart-data-section,
.ag-theme-material-auto-dark .ag-chart-format-section,
.ag-theme-material-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-material input[class^=ag-]:not([type]),
.ag-theme-material input[class^=ag-][type=text],
.ag-theme-material input[class^=ag-][type=number],
.ag-theme-material input[class^=ag-][type=tel],
.ag-theme-material input[class^=ag-][type=date],
.ag-theme-material input[class^=ag-][type=datetime-local],
.ag-theme-material textarea[class^=ag-],
.ag-theme-material-dark input[class^=ag-]:not([type]),
.ag-theme-material-dark input[class^=ag-][type=text],
.ag-theme-material-dark input[class^=ag-][type=number],
.ag-theme-material-dark input[class^=ag-][type=tel],
.ag-theme-material-dark input[class^=ag-][type=date],
.ag-theme-material-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-dark textarea[class^=ag-],
.ag-theme-material-auto-dark input[class^=ag-]:not([type]),
.ag-theme-material-auto-dark input[class^=ag-][type=text],
.ag-theme-material-auto-dark input[class^=ag-][type=number],
.ag-theme-material-auto-dark input[class^=ag-][type=tel],
.ag-theme-material-auto-dark input[class^=ag-][type=date],
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-auto-dark textarea[class^=ag-] {
  background: transparent;
  color: var(--ag-foreground-color);
  font-family: inherit;
  font-size: inherit;
  padding-bottom: var(--ag-grid-size);
  border-width: 0;
  border-radius: 0;
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material input[class^=ag-][type=text]:not(textarea),
.ag-theme-material input[class^=ag-][type=number]:not(textarea),
.ag-theme-material input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material input[class^=ag-][type=date]:not(textarea),
.ag-theme-material input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material textarea[class^=ag-]:not(textarea),
.ag-theme-material-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-dark textarea[class^=ag-]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-auto-dark textarea[class^=ag-]:not(textarea) {
  height: calc(var(--ag-grid-size) * 5);
}
.ag-theme-material input[class^=ag-]:not([type]):focus,
.ag-theme-material input[class^=ag-][type=text]:focus,
.ag-theme-material input[class^=ag-][type=number]:focus,
.ag-theme-material input[class^=ag-][type=tel]:focus,
.ag-theme-material input[class^=ag-][type=date]:focus,
.ag-theme-material input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material textarea[class^=ag-]:focus,
.ag-theme-material-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-dark textarea[class^=ag-]:focus,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-auto-dark textarea[class^=ag-]:focus {
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-material-primary-color);
  outline: none;
  box-shadow: none;
}
.ag-theme-material input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material textarea[class^=ag-]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material-dark textarea[class^=ag-]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material-auto-dark textarea[class^=ag-]::-moz-placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type])::placeholder,
.ag-theme-material input[class^=ag-][type=text]::placeholder,
.ag-theme-material input[class^=ag-][type=number]::placeholder,
.ag-theme-material input[class^=ag-][type=tel]::placeholder,
.ag-theme-material input[class^=ag-][type=date]::placeholder,
.ag-theme-material input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material textarea[class^=ag-]::placeholder,
.ag-theme-material-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-dark textarea[class^=ag-]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-auto-dark textarea[class^=ag-]::placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type]):disabled,
.ag-theme-material input[class^=ag-][type=text]:disabled,
.ag-theme-material input[class^=ag-][type=number]:disabled,
.ag-theme-material input[class^=ag-][type=tel]:disabled,
.ag-theme-material input[class^=ag-][type=date]:disabled,
.ag-theme-material input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material textarea[class^=ag-]:disabled,
.ag-theme-material-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-dark textarea[class^=ag-]:disabled,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-auto-dark textarea[class^=ag-]:disabled {
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):invalid,
.ag-theme-material input[class^=ag-][type=text]:invalid,
.ag-theme-material input[class^=ag-][type=number]:invalid,
.ag-theme-material input[class^=ag-][type=tel]:invalid,
.ag-theme-material input[class^=ag-][type=date]:invalid,
.ag-theme-material input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material textarea[class^=ag-]:invalid,
.ag-theme-material-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-dark textarea[class^=ag-]:invalid,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-auto-dark textarea[class^=ag-]:invalid {
  border-width: 0;
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-invalid-color);
  color: var(--ag-invalid-color);
}
.ag-theme-material .ag-standard-button,
.ag-theme-material-dark .ag-standard-button,
.ag-theme-material-auto-dark .ag-standard-button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: transparent;
  border: 0;
  color: var(--ag-material-primary-color);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}
.ag-theme-material .ag-standard-button:disabled,
.ag-theme-material-dark .ag-standard-button:disabled,
.ag-theme-material-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-material.ag-dnd-ghost,
.ag-theme-material-dark.ag-dnd-ghost,
.ag-theme-material-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-material .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-dark .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 7);
}
.ag-theme-material .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-builder-button {
  margin-left: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-builder-button {
  margin-right: var(--ag-grid-size);
}

.ag-theme-material .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material .ag-layout-print .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-material .ag-picker-field-wrapper:focus-within,
.ag-theme-material-dark .ag-picker-field-wrapper:focus-within,
.ag-theme-material-auto-dark .ag-picker-field-wrapper:focus-within {
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
}
.ag-theme-material .ag-rich-select-list,
.ag-theme-material-dark .ag-rich-select-list,
.ag-theme-material-auto-dark .ag-rich-select-list {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
}
.ag-theme-material .ag-advanced-filter-builder-button-label,
.ag-theme-material-dark .ag-advanced-filter-builder-button-label,
.ag-theme-material-auto-dark .ag-advanced-filter-builder-button-label {
  text-transform: uppercase;
}
.ag-theme-material .ag-filter-active .ag-icon-filter,
.ag-theme-material-dark .ag-filter-active .ag-icon-filter,
.ag-theme-material-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-material-accent-color);
}
.ag-theme-material .ag-list-item-hovered::after,
.ag-theme-material-dark .ag-list-item-hovered::after,
.ag-theme-material-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-pill .ag-pill-button:hover,
.ag-theme-material-dark .ag-pill .ag-pill-button:hover,
.ag-theme-material-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-header-highlight-before::after,
.ag-theme-material .ag-header-highlight-after::after,
.ag-theme-material-dark .ag-header-highlight-before::after,
.ag-theme-material-dark .ag-header-highlight-after::after,
.ag-theme-material-auto-dark .ag-header-highlight-before::after,
.ag-theme-material-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-material-primary-color);
}
`,""]),x.A=T},2935:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z),b=p(62),C=p.n(b),d=new URL(p(6055),p.b),s=T()(E()),c=C()(d);s.push([ae.id,`@font-face {
  font-family: "agGridMaterial";
  src: url(`+c+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-material,
.ag-theme-material-dark,
.ag-theme-material-auto-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #ff4081;
  --ag-foreground-color: rgba(0, 0, 0, 0.87);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-background-color: #fff;
  --ag-header-background-color: #fff;
  --ag-tooltip-background-color: #fff;
  --ag-subheader-background-color: #eee;
  --ag-subheader-toolbar-background-color: rgba(238, 238, 238, 0.5);
  --ag-header-cell-hover-background-color: #f2f2f2;
  --ag-chip-background-color: #e2e2e2;
  --ag-range-selection-background-color: rgba(122, 134, 203, 0.1);
  --ag-range-selection-background-color-2: rgba(122, 134, 203, 0.19);
  --ag-range-selection-background-color-3: rgba(122, 134, 203, 0.27);
  --ag-range-selection-background-color-4: rgba(122, 134, 203, 0.34);
  --ag-range-selection-highlight-color: #fce4ec;
  --ag-row-hover-color: #fafafa;
  --ag-column-hover-color: #fafafa;
  --ag-control-panel-background-color: #fafafa;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-checkbox-unchecked-color: #333;
  --ag-value-change-value-highlight-background-color: #00acc1;
  --ag-side-button-selected-background-color: transparent;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-range-selection-border-color: var(--ag-material-primary-color);
  --ag-checkbox-checked-color: var(--ag-material-accent-color);
  --ag-borders: none;
  --ag-borders-critical: solid 1px;
  --ag-border-color: #e2e2e2;
  --ag-grid-size: 8px;
  --ag-icon-size: 18px;
  --ag-header-height: calc(var(--ag-grid-size) * 7);
  --ag-row-height: calc(var(--ag-grid-size) * 6);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-filter-tool-panel-sub-level-row-height: calc(var(--ag-grid-size) * 4);
  --ag-checkbox-border-radius: 2px;
  --ag-toggle-button-switch-border-width: 2px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.75);
  --ag-font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridMaterial;
  --ag-selected-tab-underline-color: var(--ag-material-primary-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-input-focus-border-color: var(--ag-material-primary-color);
  --ag-input-focus-box-shadow: 0 0 0 5px rgba(32, 33, 36, 0.122);
  --ag-card-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
      0 1px 5px 0 rgba(0, 0, 0, 0.12);
  --ag-card-radius: 2px;
  --ag-invalid-color: #e02525;
}

.ag-theme-material-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: rgba(187,134,252,1);
  --ag-range-selection-border-color: var(--ag-material-accent-color);
  --ag-background-color: rgba(18,18,18,1);
  --ag-foreground-color: rgba(255,255,255,1);
  --ag-data-color: rgba(245,245,245,1);
  --ag-header-cell-hover-background-color: rgba(0,0,0,1);
  --ag-advanced-filter-join-pill-color: rgba(122,58,55,1);
  --ag-advanced-filter-column-pill-color: rgba(53,95,45,1);
  --ag-advanced-filter-option-pill-color: rgba(90,49,104,1);
  --ag-advanced-filter-value-pill-color: rgba(55,76,134,1);
  --ag-input-disabled-border-color: rgba(58,67,78,1);
  --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
  --ag-selected-row-background-color: rgba(187,134,252,0.2);
  --ag-row-hover-color: rgba(187,134,252,0.2);
  --ag-column-hover-color: rgba(245,245,245,0.05098);
  --ag-range-selection-background-color: rgba(187,134,252,0.10196);
  --ag-range-selection-background-color-2: rgba(187,134,252,0.18824);
  --ag-range-selection-background-color-3: rgba(187,134,252,0.27059);
  --ag-range-selection-background-color-4: rgba(187,134,252,0.34118);
  --ag-border-color: rgba(56,56,56,1);
  --ag-secondary-border-color: rgba(56,56,56,1);
  --ag-header-background-color: rgba(18,18,18,1);
  --ag-tooltip-background-color: rgba(33,43,56,1);
  --ag-odd-row-background-color: rgba(18,18,18,1);
  --ag-control-panel-background-color: rgba(44,44,44,1);
  --ag-subheader-background-color: rgba(255,255,255,0.05098);
  --ag-subheader-toolbar-background-color: rgba(44,44,44,1);
  --ag-invalid-color: rgba(224,37,37,1);
  --ag-checkbox-unchecked-color: rgba(121,126,135,1);
  --ag-checkbox-background-color: rgba(18,18,18,1);
  --ag-secondary-foreground-color: rgba(245,245,245,1);
  --ag-input-border-color: rgba(56,56,56,1);
  --ag-input-border-color-invalid: rgba(224,37,37,1);
  --ag-disabled-foreground-color: rgba(245,245,245,0.50196);
  --ag-chip-background-color: rgba(34,38,40,0.07059);
  --ag-side-button-selected-background-color: rgba(44,44,44,1);
  --ag-selected-tab-underline-color: rgba(63,81,181,1);
  --ag-modal-overlay-background-color: rgba(18,18,18,0.65882);
  --ag-value-change-delta-up-color: rgba(67,160,71,0.65882);
  --ag-value-change-delta-down-color: rgba(229,57,53,1);
  --ag-menu-background-color: rgba(44,44,44,1);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-material-auto-dark {
    --ag-material-primary-color: #3f51b5;
    --ag-material-accent-color: rgba(187,134,252,1);
    --ag-range-selection-border-color: var(--ag-material-accent-color);
    --ag-background-color: rgba(18,18,18,1);
    --ag-foreground-color: rgba(255,255,255,1);
    --ag-data-color: rgba(245,245,245,1);
    --ag-header-cell-hover-background-color: rgba(0,0,0,1);
    --ag-advanced-filter-join-pill-color: rgba(122,58,55,1);
    --ag-advanced-filter-column-pill-color: rgba(53,95,45,1);
    --ag-advanced-filter-option-pill-color: rgba(90,49,104,1);
    --ag-advanced-filter-value-pill-color: rgba(55,76,134,1);
    --ag-input-disabled-border-color: rgba(58,67,78,1);
    --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
    --ag-selected-row-background-color: rgba(187,134,252,0.2);
    --ag-row-hover-color: rgba(187,134,252,0.2);
    --ag-column-hover-color: rgba(245,245,245,0.05098);
    --ag-range-selection-background-color: rgba(187,134,252,0.10196);
    --ag-range-selection-background-color-2: rgba(187,134,252,0.18824);
    --ag-range-selection-background-color-3: rgba(187,134,252,0.27059);
    --ag-range-selection-background-color-4: rgba(187,134,252,0.34118);
    --ag-border-color: rgba(56,56,56,1);
    --ag-secondary-border-color: rgba(56,56,56,1);
    --ag-header-background-color: rgba(18,18,18,1);
    --ag-tooltip-background-color: rgba(33,43,56,1);
    --ag-odd-row-background-color: rgba(18,18,18,1);
    --ag-control-panel-background-color: rgba(44,44,44,1);
    --ag-subheader-background-color: rgba(255,255,255,0.05098);
    --ag-subheader-toolbar-background-color: rgba(44,44,44,1);
    --ag-invalid-color: rgba(224,37,37,1);
    --ag-checkbox-unchecked-color: rgba(121,126,135,1);
    --ag-checkbox-background-color: rgba(18,18,18,1);
    --ag-secondary-foreground-color: rgba(245,245,245,1);
    --ag-input-border-color: rgba(56,56,56,1);
    --ag-input-border-color-invalid: rgba(224,37,37,1);
    --ag-disabled-foreground-color: rgba(245,245,245,0.50196);
    --ag-chip-background-color: rgba(34,38,40,0.07059);
    --ag-side-button-selected-background-color: rgba(44,44,44,1);
    --ag-selected-tab-underline-color: rgba(63,81,181,1);
    --ag-modal-overlay-background-color: rgba(18,18,18,0.65882);
    --ag-value-change-delta-up-color: rgba(67,160,71,0.65882);
    --ag-value-change-delta-down-color: rgba(229,57,53,1);
    --ag-menu-background-color: rgba(44,44,44,1);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material .ag-filter-toolpanel-search,
.ag-theme-material .ag-status-bar,
.ag-theme-material .ag-header-row,
.ag-theme-material .ag-panel-title-bar-title,
.ag-theme-material .ag-multi-filter-group-title-bar,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-search,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-dark .ag-header-row,
.ag-theme-material-dark .ag-panel-title-bar-title,
.ag-theme-material-dark .ag-multi-filter-group-title-bar,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-search,
.ag-theme-material-auto-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-header-row,
.ag-theme-material-auto-dark .ag-panel-title-bar-title,
.ag-theme-material-auto-dark .ag-multi-filter-group-title-bar {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-material .ag-tab,
.ag-theme-material-dark .ag-tab,
.ag-theme-material-auto-dark .ag-tab {
  height: calc(var(--ag-grid-size) * 4.5);
  flex: 1 1 auto;
}
.ag-theme-material .ag-tabs-header,
.ag-theme-material .ag-column-drop-horizontal,
.ag-theme-material-dark .ag-tabs-header,
.ag-theme-material-dark .ag-column-drop-horizontal,
.ag-theme-material-auto-dark .ag-tabs-header,
.ag-theme-material-auto-dark .ag-column-drop-horizontal {
  background-color: var(--ag-subheader-background-color);
}
.ag-theme-material .ag-tabs-body,
.ag-theme-material-dark .ag-tabs-body,
.ag-theme-material-auto-dark .ag-tabs-body {
  padding: calc(var(--ag-grid-size) * 0.5) 0;
}
.ag-theme-material .ag-tabs-body .ag-menu-list,
.ag-theme-material-dark .ag-tabs-body .ag-menu-list,
.ag-theme-material-auto-dark .ag-tabs-body .ag-menu-list {
  padding-top: 0;
  padding-bottom: 0;
}
.ag-theme-material .ag-header-cell,
.ag-theme-material .ag-header-group-cell,
.ag-theme-material-dark .ag-header-cell,
.ag-theme-material-dark .ag-header-group-cell,
.ag-theme-material-auto-dark .ag-header-cell,
.ag-theme-material-auto-dark .ag-header-group-cell {
  transition: background-color 0.5s;
}
.ag-theme-material .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing {
  bottom: 0;
}
.ag-theme-material .ag-cell-inline-editing,
.ag-theme-material-dark .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-cell-inline-editing {
  padding: var(--ag-grid-size);
  height: calc(var(--ag-row-height) + var(--ag-grid-size) * 3);
  border-color: var(--ag-border-color) !important;
}
.ag-theme-material .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-dark .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-has-focus .ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}
.ag-theme-material .ag-column-drop-vertical,
.ag-theme-material-dark .ag-column-drop-vertical,
.ag-theme-material-auto-dark .ag-column-drop-vertical {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
  padding-top: var(--ag-grid-size);
}
.ag-theme-material .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-dark .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-auto-dark .ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}
.ag-theme-material .ag-column-drop-vertical-cell,
.ag-theme-material-dark .ag-column-drop-vertical-cell,
.ag-theme-material-auto-dark .ag-column-drop-vertical-cell {
  margin-left: 0;
}
.ag-theme-material .ag-column-drop-vertical-empty-message,
.ag-theme-material-dark .ag-column-drop-vertical-empty-message,
.ag-theme-material-auto-dark .ag-column-drop-vertical-empty-message {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-material .ag-status-bar,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-status-bar {
  border: solid 1px;
  border-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-panel-column-select,
.ag-theme-material-dark .ag-column-panel-column-select,
.ag-theme-material-auto-dark .ag-column-panel-column-select {
  border-top: solid 1px;
  border-top-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select,
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select,
.ag-theme-material-auto-dark .ag-column-select-header {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select-header {
  height: var(--ag-header-height);
}
.ag-theme-material .ag-group-title-bar,
.ag-theme-material-dark .ag-group-title-bar,
.ag-theme-material-auto-dark .ag-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.75) var(--ag-grid-size);
}
.ag-theme-material .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.5) var(--ag-grid-size);
}
.ag-theme-material .ag-chart-data-section,
.ag-theme-material .ag-chart-format-section,
.ag-theme-material .ag-chart-advanced-settings-section,
.ag-theme-material-dark .ag-chart-data-section,
.ag-theme-material-dark .ag-chart-format-section,
.ag-theme-material-dark .ag-chart-advanced-settings-section,
.ag-theme-material-auto-dark .ag-chart-data-section,
.ag-theme-material-auto-dark .ag-chart-format-section,
.ag-theme-material-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-material input[class^=ag-]:not([type]),
.ag-theme-material input[class^=ag-][type=text],
.ag-theme-material input[class^=ag-][type=number],
.ag-theme-material input[class^=ag-][type=tel],
.ag-theme-material input[class^=ag-][type=date],
.ag-theme-material input[class^=ag-][type=datetime-local],
.ag-theme-material textarea[class^=ag-],
.ag-theme-material-dark input[class^=ag-]:not([type]),
.ag-theme-material-dark input[class^=ag-][type=text],
.ag-theme-material-dark input[class^=ag-][type=number],
.ag-theme-material-dark input[class^=ag-][type=tel],
.ag-theme-material-dark input[class^=ag-][type=date],
.ag-theme-material-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-dark textarea[class^=ag-],
.ag-theme-material-auto-dark input[class^=ag-]:not([type]),
.ag-theme-material-auto-dark input[class^=ag-][type=text],
.ag-theme-material-auto-dark input[class^=ag-][type=number],
.ag-theme-material-auto-dark input[class^=ag-][type=tel],
.ag-theme-material-auto-dark input[class^=ag-][type=date],
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-auto-dark textarea[class^=ag-] {
  background: transparent;
  color: var(--ag-foreground-color);
  font-family: inherit;
  font-size: inherit;
  padding-bottom: var(--ag-grid-size);
  border-width: 0;
  border-radius: 0;
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material input[class^=ag-][type=text]:not(textarea),
.ag-theme-material input[class^=ag-][type=number]:not(textarea),
.ag-theme-material input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material input[class^=ag-][type=date]:not(textarea),
.ag-theme-material input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material textarea[class^=ag-]:not(textarea),
.ag-theme-material-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-dark textarea[class^=ag-]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-auto-dark textarea[class^=ag-]:not(textarea) {
  height: calc(var(--ag-grid-size) * 5);
}
.ag-theme-material input[class^=ag-]:not([type]):focus,
.ag-theme-material input[class^=ag-][type=text]:focus,
.ag-theme-material input[class^=ag-][type=number]:focus,
.ag-theme-material input[class^=ag-][type=tel]:focus,
.ag-theme-material input[class^=ag-][type=date]:focus,
.ag-theme-material input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material textarea[class^=ag-]:focus,
.ag-theme-material-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-dark textarea[class^=ag-]:focus,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-auto-dark textarea[class^=ag-]:focus {
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-material-primary-color);
  outline: none;
  box-shadow: none;
}
.ag-theme-material input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material textarea[class^=ag-]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material-dark input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material-dark textarea[class^=ag-]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-]:not([type])::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=text]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=number]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=tel]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=date]::-moz-placeholder, .ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::-moz-placeholder, .ag-theme-material-auto-dark textarea[class^=ag-]::-moz-placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type])::placeholder,
.ag-theme-material input[class^=ag-][type=text]::placeholder,
.ag-theme-material input[class^=ag-][type=number]::placeholder,
.ag-theme-material input[class^=ag-][type=tel]::placeholder,
.ag-theme-material input[class^=ag-][type=date]::placeholder,
.ag-theme-material input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material textarea[class^=ag-]::placeholder,
.ag-theme-material-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-dark textarea[class^=ag-]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-auto-dark textarea[class^=ag-]::placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type]):disabled,
.ag-theme-material input[class^=ag-][type=text]:disabled,
.ag-theme-material input[class^=ag-][type=number]:disabled,
.ag-theme-material input[class^=ag-][type=tel]:disabled,
.ag-theme-material input[class^=ag-][type=date]:disabled,
.ag-theme-material input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material textarea[class^=ag-]:disabled,
.ag-theme-material-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-dark textarea[class^=ag-]:disabled,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-auto-dark textarea[class^=ag-]:disabled {
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):invalid,
.ag-theme-material input[class^=ag-][type=text]:invalid,
.ag-theme-material input[class^=ag-][type=number]:invalid,
.ag-theme-material input[class^=ag-][type=tel]:invalid,
.ag-theme-material input[class^=ag-][type=date]:invalid,
.ag-theme-material input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material textarea[class^=ag-]:invalid,
.ag-theme-material-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-dark textarea[class^=ag-]:invalid,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-auto-dark textarea[class^=ag-]:invalid {
  border-width: 0;
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-invalid-color);
  color: var(--ag-invalid-color);
}
.ag-theme-material .ag-standard-button,
.ag-theme-material-dark .ag-standard-button,
.ag-theme-material-auto-dark .ag-standard-button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: transparent;
  border: 0;
  color: var(--ag-material-primary-color);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}
.ag-theme-material .ag-standard-button:disabled,
.ag-theme-material-dark .ag-standard-button:disabled,
.ag-theme-material-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-material.ag-dnd-ghost,
.ag-theme-material-dark.ag-dnd-ghost,
.ag-theme-material-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-material .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-dark .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 7);
}
.ag-theme-material .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-builder-button {
  margin-left: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-builder-button {
  margin-right: var(--ag-grid-size);
}

.ag-theme-material .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material .ag-layout-print .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-material .ag-picker-field-wrapper:focus-within,
.ag-theme-material-dark .ag-picker-field-wrapper:focus-within,
.ag-theme-material-auto-dark .ag-picker-field-wrapper:focus-within {
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
}
.ag-theme-material .ag-rich-select-list,
.ag-theme-material-dark .ag-rich-select-list,
.ag-theme-material-auto-dark .ag-rich-select-list {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
}
.ag-theme-material .ag-advanced-filter-builder-button-label,
.ag-theme-material-dark .ag-advanced-filter-builder-button-label,
.ag-theme-material-auto-dark .ag-advanced-filter-builder-button-label {
  text-transform: uppercase;
}
.ag-theme-material .ag-filter-active .ag-icon-filter,
.ag-theme-material-dark .ag-filter-active .ag-icon-filter,
.ag-theme-material-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-material-accent-color);
}
.ag-theme-material .ag-list-item-hovered::after,
.ag-theme-material-dark .ag-list-item-hovered::after,
.ag-theme-material-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-pill .ag-pill-button:hover,
.ag-theme-material-dark .ag-pill .ag-pill-button:hover,
.ag-theme-material-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-header-highlight-before::after,
.ag-theme-material .ag-header-highlight-after::after,
.ag-theme-material-dark .ag-header-highlight-before::after,
.ag-theme-material-dark .ag-header-highlight-after::after,
.ag-theme-material-auto-dark .ag-header-highlight-before::after,
.ag-theme-material-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-material-primary-color);
}
`,""]),x.A=s},7899:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z),b=p(62),C=p.n(b),d=new URL(p(7249),p.b),s=T()(E()),c=C()(d);s.push([ae.id,`.ag-theme-quartz,
.ag-theme-quartz-dark,
.ag-theme-quartz-auto-dark {
  --ag-active-color: #2196f3;
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 15%);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-header-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 2%);
  --ag-tooltip-background-color: var(--ag-header-background-color);
  --ag-control-panel-background-color: var(--ag-header-background-color);
  --ag-subheader-background-color: transparent;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 30%);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-icon-font-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 90%);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-selected-row-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 8%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 12%);
  --ag-column-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
  --ag-input-focus-border-color: var(--ag-active-color);
  --ag-input-focus-box-shadow: 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color) 47%);
  --ag-range-selection-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-range-selection-background-color-2: color-mix(in srgb, transparent, var(--ag-active-color) 36%);
  --ag-range-selection-background-color-3: color-mix(in srgb, transparent, var(--ag-active-color) 49%);
  --ag-range-selection-background-color-4: color-mix(in srgb, transparent, var(--ag-active-color) 59%);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-active-color);
  --ag-range-selection-border-color: var(--ag-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-disabled-foreground-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 50%);
  --ag-chip-background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 7%);
  --ag-chip-border-color: color-mix(in srgb, var(--ag-header-background-color), var(--ag-foreground-color) 13%);
  --ag-input-disabled-border-color: var(--ag-border-color);
  --ag-input-disabled-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 6%);
  --ag-modal-overlay-background-color: color-mix(in srgb, transparent, var(--ag-background-color) 66%);
  --ag-chart-menu-label-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 80%);
  --ag-chart-menu-pill-select-button-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 70%);
  --ag-borders: solid 1px;
  --ag-border-radius: 4px;
  --ag-wrapper-border-radius: 8px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 8px;
  --ag-icon-size: 16px;
  --ag-header-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 4.25);
  --ag-row-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 3.5);
  --ag-list-item-height: calc(
      var(--ag-icon-size) + var(--ag-widget-vertical-spacing)
  );
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-filter-tool-panel-group-indent: var(--ag-grid-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-toggle-button-border-width: 2px;
  --ag-font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
      Cantarell, "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-icon-font-family: agGridQuartz;
  --ag-tab-min-width: 290px;
  --ag-chart-menu-panel-width: 260px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.15);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-quartz-dark {
  --ag-background-color: rgb(31, 41, 54);
  --ag-foreground-color: #fff;
  --ag-border-color: rgba(255, 255, 255, 0.16);
  --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-header-background-color: rgb(40, 49, 62);
  --ag-tooltip-background-color: rgb(33, 43, 56);
  --ag-control-panel-background-color: rgb(40, 49, 62);
  --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-selected-row-background-color: var(--ag-row-hover-color);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-quartz-auto-dark {
    --ag-background-color: rgb(31, 41, 54);
    --ag-foreground-color: #fff;
    --ag-border-color: rgba(255, 255, 255, 0.16);
    --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-header-background-color: rgb(40, 49, 62);
    --ag-tooltip-background-color: rgb(33, 43, 56);
    --ag-control-panel-background-color: rgb(40, 49, 62);
    --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-input-border-color: var(--ag-border-color);
    --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
    --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
    --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
    --ag-selected-row-background-color: var(--ag-row-hover-color);
    --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz .ag-header-row,
.ag-theme-quartz .ag-panel-title-bar-title,
.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-dark .ag-header-row,
.ag-theme-quartz-dark .ag-panel-title-bar-title,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-header-row,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-title,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 500;
  color: var(--ag-header-foreground-color);
}
.ag-theme-quartz input[class^=ag-]:not([type]),
.ag-theme-quartz input[class^=ag-][type=text],
.ag-theme-quartz input[class^=ag-][type=number],
.ag-theme-quartz input[class^=ag-][type=tel],
.ag-theme-quartz input[class^=ag-][type=date],
.ag-theme-quartz input[class^=ag-][type=datetime-local],
.ag-theme-quartz textarea[class^=ag-],
.ag-theme-quartz-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-dark input[class^=ag-][type=text],
.ag-theme-quartz-dark input[class^=ag-][type=number],
.ag-theme-quartz-dark input[class^=ag-][type=tel],
.ag-theme-quartz-dark input[class^=ag-][type=date],
.ag-theme-quartz-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-dark textarea[class^=ag-],
.ag-theme-quartz-auto-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-auto-dark input[class^=ag-][type=text],
.ag-theme-quartz-auto-dark input[class^=ag-][type=number],
.ag-theme-quartz-auto-dark input[class^=ag-][type=tel],
.ag-theme-quartz-auto-dark input[class^=ag-][type=date],
.ag-theme-quartz-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-ltr textarea[class^=ag-], .ag-theme-quartz-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-ltr textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-rtl textarea[class^=ag-], .ag-theme-quartz-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-rtl textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-picker-field-wrapper,
.ag-theme-quartz-dark .ag-picker-field-wrapper,
.ag-theme-quartz-auto-dark .ag-picker-field-wrapper {
  min-height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-quartz .ag-tab,
.ag-theme-quartz-dark .ag-tab,
.ag-theme-quartz-auto-dark .ag-tab {
  padding: var(--ag-grid-size);
  border-left: var(--ag-borders) transparent;
  border-right: var(--ag-borders) transparent;
  flex: 1 1 auto;
}
.ag-theme-quartz .ag-tab-selected,
.ag-theme-quartz-dark .ag-tab-selected,
.ag-theme-quartz-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:first-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:first-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:last-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:last-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected) {
  opacity: 0.7;
}
.ag-theme-quartz .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected):hover {
  opacity: 1;
}
.ag-theme-quartz .ag-menu,
.ag-theme-quartz-dark .ag-menu,
.ag-theme-quartz-auto-dark .ag-menu {
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-menu-header,
.ag-theme-quartz-dark .ag-menu-header,
.ag-theme-quartz-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-menu-option,
.ag-theme-quartz-dark .ag-menu-option,
.ag-theme-quartz-auto-dark .ag-menu-option {
  font-weight: 500;
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon {
  text-align: right;
}

.ag-theme-quartz .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon {
  text-align: left;
}

.ag-theme-quartz .ag-tabs-header,
.ag-theme-quartz-dark .ag-tabs-header,
.ag-theme-quartz-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  display: flex;
  background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
}
.ag-theme-quartz .ag-side-bar,
.ag-theme-quartz-dark .ag-side-bar,
.ag-theme-quartz-auto-dark .ag-side-bar {
  background-color: var(--ag-control-panel-background-color);
  min-width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-side-buttons,
.ag-theme-quartz-dark .ag-side-buttons,
.ag-theme-quartz-auto-dark .ag-side-buttons {
  padding: 0;
  align-self: stretch;
  width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  background: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-side-button,
.ag-theme-quartz-dark .ag-side-button,
.ag-theme-quartz-auto-dark .ag-side-button {
  border-top: var(--ag-borders) transparent;
  border-bottom: var(--ag-borders) transparent;
}
@media (-webkit-max-device-pixel-ratio: 1.5), (max-resolution: 1.5x) {
  .ag-theme-quartz .ag-side-button-label,
  .ag-theme-quartz-dark .ag-side-button-label,
  .ag-theme-quartz-auto-dark .ag-side-button-label {
    font-family: "Segoe UI", var(--ag-font-family);
    transform: rotate(0.05deg);
  }
}
.ag-theme-quartz .ag-side-button.ag-selected,
.ag-theme-quartz-dark .ag-side-button.ag-selected,
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected {
  border-bottom-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-dark .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected:not(:first-of-type) {
  border-top-color: var(--ag-border-color);
}
.ag-theme-quartz .ag-column-panel-column-select,
.ag-theme-quartz-dark .ag-column-panel-column-select,
.ag-theme-quartz-auto-dark .ag-column-panel-column-select {
  border-top: none;
  border-bottom: 1px solid var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search {
  height: auto;
  height: initial;
  margin-top: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-filter-toolpanel-search-input,
.ag-theme-quartz-dark .ag-filter-toolpanel-search-input,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search-input {
  margin: 0;
}
.ag-theme-quartz .ag-filter-apply-panel,
.ag-theme-quartz-dark .ag-filter-apply-panel,
.ag-theme-quartz-auto-dark .ag-filter-apply-panel {
  border: none;
  padding-top: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-tabbed-menu-body,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body {
  position: relative;
}
.ag-theme-quartz .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body::after {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(var(--ag-control-panel-background-color), transparent);
}
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  border-top: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-mini-thumbnail,
.ag-theme-quartz-dark .ag-chart-mini-thumbnail,
.ag-theme-quartz-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
  margin-top: 0;
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-settings-nav-bar,
.ag-theme-quartz-dark .ag-chart-settings-nav-bar,
.ag-theme-quartz-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  background: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar) {
  color: var(--ag-chart-menu-label-color);
}
.ag-theme-quartz .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label-align-top .ag-label {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 0.5);
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label {
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-data-section label,
.ag-theme-quartz .ag-chart-format-section label,
.ag-theme-quartz-dark .ag-chart-data-section label,
.ag-theme-quartz-dark .ag-chart-format-section label,
.ag-theme-quartz-auto-dark .ag-chart-data-section label,
.ag-theme-quartz-auto-dark .ag-chart-format-section label {
  display: inline-block;
}
.ag-theme-quartz .ag-chart-format-wrapper,
.ag-theme-quartz .ag-chart-data-wrapper,
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-format-top-level-group-item,
.ag-theme-quartz .ag-charts-format-sub-level-group,
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-chart-format-wrapper,
.ag-theme-quartz-dark .ag-chart-data-wrapper,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-chart-format-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-data-wrapper,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  padding: 0;
  margin: 0;
}
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-data-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-data-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-data-group {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group .ag-charts-settings-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: var(--ag-widget-vertical-spacing) 0;
}
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container {
  padding-top: var(--ag-widget-vertical-spacing);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-charts-data-group-item,
.ag-theme-quartz-dark .ag-charts-data-group-item,
.ag-theme-quartz-auto-dark .ag-charts-data-group-item {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-dark .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-settings-mini-wrapper {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-advanced-settings-section,
.ag-theme-quartz-dark .ag-chart-advanced-settings-section,
.ag-theme-quartz-auto-dark .ag-chart-advanced-settings-section {
  padding-top: var(--ag-widget-container-vertical-padding);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-container {
  margin: 0;
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-item {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 2);
  margin-bottom: 0;
}
.ag-theme-quartz .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-spectrum-color,
.ag-theme-quartz .ag-spectrum-fill,
.ag-theme-quartz-dark .ag-spectrum-color,
.ag-theme-quartz-dark .ag-spectrum-fill,
.ag-theme-quartz-auto-dark .ag-spectrum-color,
.ag-theme-quartz-auto-dark .ag-spectrum-fill {
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-spectrum-dragger,
.ag-theme-quartz-dark .ag-spectrum-dragger,
.ag-theme-quartz-auto-dark .ag-spectrum-dragger {
  border-radius: 18px;
  height: 18px;
  width: 18px;
  border: 3px solid white;
}
.ag-theme-quartz .ag-spectrum-tools,
.ag-theme-quartz-dark .ag-spectrum-tools,
.ag-theme-quartz-auto-dark .ag-spectrum-tools {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.ag-theme-quartz .ag-spectrum-tool,
.ag-theme-quartz-dark .ag-spectrum-tool,
.ag-theme-quartz-auto-dark .ag-spectrum-tool {
  height: 12px;
}
.ag-theme-quartz .ag-spectrum-hue-background,
.ag-theme-quartz .ag-spectrum-alpha-background,
.ag-theme-quartz-dark .ag-spectrum-hue-background,
.ag-theme-quartz-dark .ag-spectrum-alpha-background,
.ag-theme-quartz-auto-dark .ag-spectrum-hue-background,
.ag-theme-quartz-auto-dark .ag-spectrum-alpha-background {
  border-radius: 12px;
}
.ag-theme-quartz .ag-spectrum-slider,
.ag-theme-quartz-dark .ag-spectrum-slider,
.ag-theme-quartz-auto-dark .ag-spectrum-slider {
  margin-top: -15px;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  border: 3px solid rgb(248, 248, 248);
}
.ag-theme-quartz .ag-recent-colors,
.ag-theme-quartz-dark .ag-recent-colors,
.ag-theme-quartz-auto-dark .ag-recent-colors {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  margin-bottom: 2px;
}
.ag-theme-quartz .ag-color-input-color,
.ag-theme-quartz .ag-color-picker-color,
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-color-input-color,
.ag-theme-quartz-dark .ag-color-picker-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-color-input-color,
.ag-theme-quartz-auto-dark .ag-color-picker-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border-radius: 4px;
}
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz.ag-dnd-ghost,
.ag-theme-quartz-dark.ag-dnd-ghost,
.ag-theme-quartz-auto-dark.ag-dnd-ghost {
  font-weight: 500;
}
.ag-theme-quartz .ag-standard-button,
.ag-theme-quartz-dark .ag-standard-button,
.ag-theme-quartz-auto-dark .ag-standard-button {
  font-family: inherit;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: solid 1px var(--ag-input-border-color);
  background-color: var(--ag-background-color);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  cursor: pointer;
}
.ag-theme-quartz .ag-standard-button:hover,
.ag-theme-quartz-dark .ag-standard-button:hover,
.ag-theme-quartz-auto-dark .ag-standard-button:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-theme-quartz .ag-standard-button:active,
.ag-theme-quartz-dark .ag-standard-button:active,
.ag-theme-quartz-auto-dark .ag-standard-button:active {
  border-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-standard-button:disabled,
.ag-theme-quartz-dark .ag-standard-button:disabled,
.ag-theme-quartz-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-quartz .ag-column-drop-cell,
.ag-theme-quartz-dark .ag-column-drop-cell,
.ag-theme-quartz-auto-dark .ag-column-drop-cell {
  border-radius: calc(var(--ag-grid-size) * 3);
  height: calc(var(--ag-grid-size) * 3);
  padding: 0 var(--ag-grid-size);
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  min-width: 0;
  margin: 0;
}
.ag-theme-quartz .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-dark .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-drag-handle {
  margin-left: 0;
}
.ag-theme-quartz .ag-column-drop-vertical,
.ag-theme-quartz-dark .ag-column-drop-vertical,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-quartz .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-dark .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-title-bar {
  padding: var(--ag-widget-container-vertical-padding) calc(var(--ag-grid-size) * 2) 0;
}
.ag-theme-quartz .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-drop-vertical-icon {
  margin-left: 0;
  margin-right: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-drop-vertical-icon {
  margin-right: 0;
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-dark .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  justify-content: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 1.5) calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-column-drop-empty-message,
.ag-theme-quartz-dark .ag-column-drop-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
}
.ag-theme-quartz .ag-pill-select .ag-column-drop,
.ag-theme-quartz-dark .ag-pill-select .ag-column-drop,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-column-drop {
  min-height: 0;
  min-height: initial;
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-display {
  font-weight: 500;
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-icon .ag-icon {
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-quartz .ag-status-name-value,
.ag-theme-quartz-dark .ag-status-name-value,
.ag-theme-quartz-auto-dark .ag-status-name-value {
  padding: var(--ag-widget-container-vertical-padding) 0;
}
.ag-theme-quartz .ag-status-name-value-value,
.ag-theme-quartz .ag-paging-number,
.ag-theme-quartz .ag-paging-row-summary-panel-number,
.ag-theme-quartz-dark .ag-status-name-value-value,
.ag-theme-quartz-dark .ag-paging-number,
.ag-theme-quartz-dark .ag-paging-row-summary-panel-number,
.ag-theme-quartz-auto-dark .ag-status-name-value-value,
.ag-theme-quartz-auto-dark .ag-paging-number,
.ag-theme-quartz-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 500;
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  opacity: 0.75;
}
.ag-theme-quartz .ag-column-drop-cell-button:hover,
.ag-theme-quartz-dark .ag-column-drop-cell-button:hover,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 1;
}
.ag-theme-quartz .ag-header-cell-menu-button,
.ag-theme-quartz .ag-header-cell-filter-button,
.ag-theme-quartz .ag-panel-title-bar-button,
.ag-theme-quartz .ag-header-expand-icon,
.ag-theme-quartz .ag-column-group-icons,
.ag-theme-quartz .ag-set-filter-group-icons,
.ag-theme-quartz .ag-group-expanded .ag-icon,
.ag-theme-quartz .ag-group-contracted .ag-icon,
.ag-theme-quartz .ag-chart-settings-prev,
.ag-theme-quartz .ag-chart-settings-next,
.ag-theme-quartz .ag-group-title-bar-icon,
.ag-theme-quartz .ag-column-select-header-icon,
.ag-theme-quartz .ag-floating-filter-button-button,
.ag-theme-quartz .ag-filter-toolpanel-expand,
.ag-theme-quartz .ag-panel-title-bar-button-icon,
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-header-cell-menu-button,
.ag-theme-quartz-dark .ag-header-cell-filter-button,
.ag-theme-quartz-dark .ag-panel-title-bar-button,
.ag-theme-quartz-dark .ag-header-expand-icon,
.ag-theme-quartz-dark .ag-column-group-icons,
.ag-theme-quartz-dark .ag-set-filter-group-icons,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-dark .ag-chart-settings-prev,
.ag-theme-quartz-dark .ag-chart-settings-next,
.ag-theme-quartz-dark .ag-group-title-bar-icon,
.ag-theme-quartz-dark .ag-column-select-header-icon,
.ag-theme-quartz-dark .ag-floating-filter-button-button,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button,
.ag-theme-quartz-auto-dark .ag-header-expand-icon,
.ag-theme-quartz-auto-dark .ag-column-group-icons,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev,
.ag-theme-quartz-auto-dark .ag-chart-settings-next,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
}
.ag-theme-quartz .ag-header-cell-menu-button:hover,
.ag-theme-quartz .ag-header-cell-filter-button:hover,
.ag-theme-quartz .ag-panel-title-bar-button:hover,
.ag-theme-quartz .ag-header-expand-icon:hover,
.ag-theme-quartz .ag-column-group-icons:hover,
.ag-theme-quartz .ag-set-filter-group-icons:hover,
.ag-theme-quartz .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz .ag-chart-settings-prev:hover,
.ag-theme-quartz .ag-chart-settings-next:hover,
.ag-theme-quartz .ag-group-title-bar-icon:hover,
.ag-theme-quartz .ag-column-select-header-icon:hover,
.ag-theme-quartz .ag-floating-filter-button-button:hover,
.ag-theme-quartz .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz .ag-chart-menu-icon:hover,
.ag-theme-quartz-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-dark .ag-column-group-icons:hover,
.ag-theme-quartz-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-dark .ag-chart-menu-icon:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-auto-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon:hover {
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-hover-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-hover-color);
}
.ag-theme-quartz .ag-filter-active,
.ag-theme-quartz-dark .ag-filter-active,
.ag-theme-quartz-auto-dark .ag-filter-active {
  --ag-quartz-icon-active-color: color-mix(in srgb, transparent, var(--ag-active-color) 14%);
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 28%);
  position: relative;
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-active-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-active-color);
}
.ag-theme-quartz .ag-filter-active::after,
.ag-theme-quartz-dark .ag-filter-active::after,
.ag-theme-quartz-auto-dark .ag-filter-active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: -1px;
  right: -1px;
  border-radius: 50%;
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-dark .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-auto-dark .ag-filter-active .ag-icon-filter {
  clip-path: path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");
}
.ag-theme-quartz .ag-chart-menu,
.ag-theme-quartz-dark .ag-chart-menu,
.ag-theme-quartz-auto-dark .ag-chart-menu {
  --ag-icon-size: 20px;
  background-color: color-mix(in srgb, transparent, var(--ag-background-color) 30%);
  padding: 4px 2px;
}
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  opacity: 0.8;
}
.ag-theme-quartz .ag-drag-handle,
.ag-theme-quartz-dark .ag-drag-handle,
.ag-theme-quartz-auto-dark .ag-drag-handle {
  color: var(--ag-icon-font-color);
}
.ag-theme-quartz .ag-menu-option-icon,
.ag-theme-quartz .ag-compact-menu-option-icon,
.ag-theme-quartz-dark .ag-menu-option-icon,
.ag-theme-quartz-dark .ag-compact-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-icon, .ag-theme-quartz .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-menu-option-icon, .ag-theme-quartz .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-quartz .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 1.5) var(--ag-grid-size);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-body {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-body {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-level-0 {
  border-top: none;
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header {
  height: auto;
  height: initial;
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-theme-quartz .ag-filter-toolpanel-group-item,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-item,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-item {
  margin: 0;
}
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-quartz .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-advanced-filter-builder-button,
.ag-theme-quartz-dark .ag-advanced-filter-builder-button,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-quartz .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz .ag-disabled .ag-icon,
.ag-theme-quartz .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz [disabled] .ag-icon,
.ag-theme-quartz-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-dark .ag-disabled .ag-icon,
.ag-theme-quartz-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-dark [disabled] .ag-icon,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-auto-dark [disabled] .ag-icon {
  opacity: 0.6;
}
.ag-theme-quartz .ag-icon-grip,
.ag-theme-quartz-dark .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-icon-grip {
  opacity: 0.7;
}
.ag-theme-quartz .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-quartz .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-filter .ag-input-wrapper::before {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(`+c+`);
  background-position: 50% 50%;
  background-size: contain;
  opacity: 0.4;
  content: "";
  filter: var(--ag-icon-filter);
}
.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-number-field-input {
  padding-left: 26px;
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-number-field-input {
  padding-right: 26px;
}

.ag-theme-quartz .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-text-field-input[disabled],
.ag-theme-quartz .ag-menu-option-disabled,
.ag-theme-quartz-dark .ag-text-field-input[disabled],
.ag-theme-quartz-dark .ag-menu-option-disabled,
.ag-theme-quartz-auto-dark .ag-text-field-input[disabled],
.ag-theme-quartz-auto-dark .ag-menu-option-disabled {
  cursor: not-allowed;
}
.ag-theme-quartz .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-auto-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled {
  --ag-checkbox-checked-color: var(--ag-checkbox-unchecked-color);
}
.ag-theme-quartz .ag-checkbox-input,
.ag-theme-quartz .ag-toggle-button-input,
.ag-theme-quartz .ag-radio-button-input,
.ag-theme-quartz input[class^=ag-][type=range],
.ag-theme-quartz-dark .ag-checkbox-input,
.ag-theme-quartz-dark .ag-toggle-button-input,
.ag-theme-quartz-dark .ag-radio-button-input,
.ag-theme-quartz-dark input[class^=ag-][type=range],
.ag-theme-quartz-auto-dark .ag-checkbox-input,
.ag-theme-quartz-auto-dark .ag-toggle-button-input,
.ag-theme-quartz-auto-dark .ag-radio-button-input,
.ag-theme-quartz-auto-dark input[class^=ag-][type=range] {
  cursor: pointer;
}
.ag-theme-quartz .ag-details-row,
.ag-theme-quartz-dark .ag-details-row,
.ag-theme-quartz-auto-dark .ag-details-row {
  padding: calc(var(--ag-grid-size) * 3.75);
}
.ag-theme-quartz .ag-list-item-hovered::after,
.ag-theme-quartz-dark .ag-list-item-hovered::after,
.ag-theme-quartz-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-dark .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-active-color);
}
.ag-theme-quartz .ag-header-highlight-before::after,
.ag-theme-quartz .ag-header-highlight-after::after,
.ag-theme-quartz-dark .ag-header-highlight-before::after,
.ag-theme-quartz-dark .ag-header-highlight-after::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-before::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-active-color);
}

.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before {
  opacity: 0.66;
  filter: invert(100%);
}
.ag-theme-quartz-dark .ag-chart-menu {
  background-color: color-mix(in srgb, rgba(24, 39, 50, 0.3), var(--ag-background-color) 30%);
}
.ag-theme-quartz-dark .ag-text-field-input::-moz-placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
.ag-theme-quartz-dark .ag-text-field-input::placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
`,""]),x.A=s},9561:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z),b=p(62),C=p.n(b),d=new URL(p(2006),p.b),s=new URL(p(7249),p.b),c=T()(E()),h=C()(d),g=C()(s);c.push([ae.id,`@font-face {
  font-family: "agGridQuartz";
  src: url(`+h+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-quartz,
.ag-theme-quartz-dark,
.ag-theme-quartz-auto-dark {
  --ag-active-color: #2196f3;
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 15%);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-header-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 2%);
  --ag-tooltip-background-color: var(--ag-header-background-color);
  --ag-control-panel-background-color: var(--ag-header-background-color);
  --ag-subheader-background-color: transparent;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 30%);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-icon-font-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 90%);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-selected-row-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 8%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 12%);
  --ag-column-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
  --ag-input-focus-border-color: var(--ag-active-color);
  --ag-input-focus-box-shadow: 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color) 47%);
  --ag-range-selection-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-range-selection-background-color-2: color-mix(in srgb, transparent, var(--ag-active-color) 36%);
  --ag-range-selection-background-color-3: color-mix(in srgb, transparent, var(--ag-active-color) 49%);
  --ag-range-selection-background-color-4: color-mix(in srgb, transparent, var(--ag-active-color) 59%);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-active-color);
  --ag-range-selection-border-color: var(--ag-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-disabled-foreground-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 50%);
  --ag-chip-background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 7%);
  --ag-chip-border-color: color-mix(in srgb, var(--ag-header-background-color), var(--ag-foreground-color) 13%);
  --ag-input-disabled-border-color: var(--ag-border-color);
  --ag-input-disabled-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 6%);
  --ag-modal-overlay-background-color: color-mix(in srgb, transparent, var(--ag-background-color) 66%);
  --ag-chart-menu-label-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 80%);
  --ag-chart-menu-pill-select-button-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 70%);
  --ag-borders: solid 1px;
  --ag-border-radius: 4px;
  --ag-wrapper-border-radius: 8px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 8px;
  --ag-icon-size: 16px;
  --ag-header-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 4.25);
  --ag-row-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 3.5);
  --ag-list-item-height: calc(
      var(--ag-icon-size) + var(--ag-widget-vertical-spacing)
  );
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-filter-tool-panel-group-indent: var(--ag-grid-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-toggle-button-border-width: 2px;
  --ag-font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
      Cantarell, "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-icon-font-family: agGridQuartz;
  --ag-tab-min-width: 290px;
  --ag-chart-menu-panel-width: 260px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.15);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-quartz-dark {
  --ag-background-color: rgb(31, 41, 54);
  --ag-foreground-color: #fff;
  --ag-border-color: rgba(255, 255, 255, 0.16);
  --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-header-background-color: rgb(40, 49, 62);
  --ag-tooltip-background-color: rgb(33, 43, 56);
  --ag-control-panel-background-color: rgb(40, 49, 62);
  --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-selected-row-background-color: var(--ag-row-hover-color);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  --csstools-color-scheme--dark: initial;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-quartz-auto-dark {
    --ag-background-color: rgb(31, 41, 54);
    --ag-foreground-color: #fff;
    --ag-border-color: rgba(255, 255, 255, 0.16);
    --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-header-background-color: rgb(40, 49, 62);
    --ag-tooltip-background-color: rgb(33, 43, 56);
    --ag-control-panel-background-color: rgb(40, 49, 62);
    --ag-input-disabled-background-color: rgba(104,104,110,0.07059);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-input-border-color: var(--ag-border-color);
    --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
    --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
    --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
    --ag-selected-row-background-color: var(--ag-row-hover-color);
    --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    --csstools-color-scheme--dark: initial;
    color-scheme: dark;
  }
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz .ag-header-row,
.ag-theme-quartz .ag-panel-title-bar-title,
.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-dark .ag-header-row,
.ag-theme-quartz-dark .ag-panel-title-bar-title,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-header-row,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-title,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 500;
  color: var(--ag-header-foreground-color);
}
.ag-theme-quartz input[class^=ag-]:not([type]),
.ag-theme-quartz input[class^=ag-][type=text],
.ag-theme-quartz input[class^=ag-][type=number],
.ag-theme-quartz input[class^=ag-][type=tel],
.ag-theme-quartz input[class^=ag-][type=date],
.ag-theme-quartz input[class^=ag-][type=datetime-local],
.ag-theme-quartz textarea[class^=ag-],
.ag-theme-quartz-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-dark input[class^=ag-][type=text],
.ag-theme-quartz-dark input[class^=ag-][type=number],
.ag-theme-quartz-dark input[class^=ag-][type=tel],
.ag-theme-quartz-dark input[class^=ag-][type=date],
.ag-theme-quartz-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-dark textarea[class^=ag-],
.ag-theme-quartz-auto-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-auto-dark input[class^=ag-][type=text],
.ag-theme-quartz-auto-dark input[class^=ag-][type=number],
.ag-theme-quartz-auto-dark input[class^=ag-][type=tel],
.ag-theme-quartz-auto-dark input[class^=ag-][type=date],
.ag-theme-quartz-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-ltr textarea[class^=ag-], .ag-theme-quartz-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-ltr textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-rtl textarea[class^=ag-], .ag-theme-quartz-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-rtl textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-picker-field-wrapper,
.ag-theme-quartz-dark .ag-picker-field-wrapper,
.ag-theme-quartz-auto-dark .ag-picker-field-wrapper {
  min-height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-quartz .ag-tab,
.ag-theme-quartz-dark .ag-tab,
.ag-theme-quartz-auto-dark .ag-tab {
  padding: var(--ag-grid-size);
  border-left: var(--ag-borders) transparent;
  border-right: var(--ag-borders) transparent;
  flex: 1 1 auto;
}
.ag-theme-quartz .ag-tab-selected,
.ag-theme-quartz-dark .ag-tab-selected,
.ag-theme-quartz-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:first-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:first-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:last-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:last-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected) {
  opacity: 0.7;
}
.ag-theme-quartz .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected):hover {
  opacity: 1;
}
.ag-theme-quartz .ag-menu,
.ag-theme-quartz-dark .ag-menu,
.ag-theme-quartz-auto-dark .ag-menu {
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-menu-header,
.ag-theme-quartz-dark .ag-menu-header,
.ag-theme-quartz-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-menu-option,
.ag-theme-quartz-dark .ag-menu-option,
.ag-theme-quartz-auto-dark .ag-menu-option {
  font-weight: 500;
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon {
  text-align: right;
}

.ag-theme-quartz .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon {
  text-align: left;
}

.ag-theme-quartz .ag-tabs-header,
.ag-theme-quartz-dark .ag-tabs-header,
.ag-theme-quartz-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  display: flex;
  background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
}
.ag-theme-quartz .ag-side-bar,
.ag-theme-quartz-dark .ag-side-bar,
.ag-theme-quartz-auto-dark .ag-side-bar {
  background-color: var(--ag-control-panel-background-color);
  min-width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-side-buttons,
.ag-theme-quartz-dark .ag-side-buttons,
.ag-theme-quartz-auto-dark .ag-side-buttons {
  padding: 0;
  align-self: stretch;
  width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  background: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-side-button,
.ag-theme-quartz-dark .ag-side-button,
.ag-theme-quartz-auto-dark .ag-side-button {
  border-top: var(--ag-borders) transparent;
  border-bottom: var(--ag-borders) transparent;
}
@media (-webkit-max-device-pixel-ratio: 1.5), (max-resolution: 1.5x) {
  .ag-theme-quartz .ag-side-button-label,
  .ag-theme-quartz-dark .ag-side-button-label,
  .ag-theme-quartz-auto-dark .ag-side-button-label {
    font-family: "Segoe UI", var(--ag-font-family);
    transform: rotate(0.05deg);
  }
}
.ag-theme-quartz .ag-side-button.ag-selected,
.ag-theme-quartz-dark .ag-side-button.ag-selected,
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected {
  border-bottom-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-dark .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected:not(:first-of-type) {
  border-top-color: var(--ag-border-color);
}
.ag-theme-quartz .ag-column-panel-column-select,
.ag-theme-quartz-dark .ag-column-panel-column-select,
.ag-theme-quartz-auto-dark .ag-column-panel-column-select {
  border-top: none;
  border-bottom: 1px solid var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search {
  height: auto;
  height: initial;
  margin-top: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-filter-toolpanel-search-input,
.ag-theme-quartz-dark .ag-filter-toolpanel-search-input,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search-input {
  margin: 0;
}
.ag-theme-quartz .ag-filter-apply-panel,
.ag-theme-quartz-dark .ag-filter-apply-panel,
.ag-theme-quartz-auto-dark .ag-filter-apply-panel {
  border: none;
  padding-top: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-tabbed-menu-body,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body {
  position: relative;
}
.ag-theme-quartz .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body::after {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(var(--ag-control-panel-background-color), transparent);
}
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  border-top: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-mini-thumbnail,
.ag-theme-quartz-dark .ag-chart-mini-thumbnail,
.ag-theme-quartz-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
  margin-top: 0;
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-settings-nav-bar,
.ag-theme-quartz-dark .ag-chart-settings-nav-bar,
.ag-theme-quartz-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  background: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar) {
  color: var(--ag-chart-menu-label-color);
}
.ag-theme-quartz .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label-align-top .ag-label {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 0.5);
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label {
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-data-section label,
.ag-theme-quartz .ag-chart-format-section label,
.ag-theme-quartz-dark .ag-chart-data-section label,
.ag-theme-quartz-dark .ag-chart-format-section label,
.ag-theme-quartz-auto-dark .ag-chart-data-section label,
.ag-theme-quartz-auto-dark .ag-chart-format-section label {
  display: inline-block;
}
.ag-theme-quartz .ag-chart-format-wrapper,
.ag-theme-quartz .ag-chart-data-wrapper,
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-format-top-level-group-item,
.ag-theme-quartz .ag-charts-format-sub-level-group,
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-chart-format-wrapper,
.ag-theme-quartz-dark .ag-chart-data-wrapper,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-chart-format-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-data-wrapper,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  padding: 0;
  margin: 0;
}
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-data-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-data-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-data-group {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group .ag-charts-settings-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: var(--ag-widget-vertical-spacing) 0;
}
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container {
  padding-top: var(--ag-widget-vertical-spacing);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-charts-data-group-item,
.ag-theme-quartz-dark .ag-charts-data-group-item,
.ag-theme-quartz-auto-dark .ag-charts-data-group-item {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-dark .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-settings-mini-wrapper {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-advanced-settings-section,
.ag-theme-quartz-dark .ag-chart-advanced-settings-section,
.ag-theme-quartz-auto-dark .ag-chart-advanced-settings-section {
  padding-top: var(--ag-widget-container-vertical-padding);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-container {
  margin: 0;
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-item {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 2);
  margin-bottom: 0;
}
.ag-theme-quartz .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-spectrum-color,
.ag-theme-quartz .ag-spectrum-fill,
.ag-theme-quartz-dark .ag-spectrum-color,
.ag-theme-quartz-dark .ag-spectrum-fill,
.ag-theme-quartz-auto-dark .ag-spectrum-color,
.ag-theme-quartz-auto-dark .ag-spectrum-fill {
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-spectrum-dragger,
.ag-theme-quartz-dark .ag-spectrum-dragger,
.ag-theme-quartz-auto-dark .ag-spectrum-dragger {
  border-radius: 18px;
  height: 18px;
  width: 18px;
  border: 3px solid white;
}
.ag-theme-quartz .ag-spectrum-tools,
.ag-theme-quartz-dark .ag-spectrum-tools,
.ag-theme-quartz-auto-dark .ag-spectrum-tools {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.ag-theme-quartz .ag-spectrum-tool,
.ag-theme-quartz-dark .ag-spectrum-tool,
.ag-theme-quartz-auto-dark .ag-spectrum-tool {
  height: 12px;
}
.ag-theme-quartz .ag-spectrum-hue-background,
.ag-theme-quartz .ag-spectrum-alpha-background,
.ag-theme-quartz-dark .ag-spectrum-hue-background,
.ag-theme-quartz-dark .ag-spectrum-alpha-background,
.ag-theme-quartz-auto-dark .ag-spectrum-hue-background,
.ag-theme-quartz-auto-dark .ag-spectrum-alpha-background {
  border-radius: 12px;
}
.ag-theme-quartz .ag-spectrum-slider,
.ag-theme-quartz-dark .ag-spectrum-slider,
.ag-theme-quartz-auto-dark .ag-spectrum-slider {
  margin-top: -15px;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  border: 3px solid rgb(248, 248, 248);
}
.ag-theme-quartz .ag-recent-colors,
.ag-theme-quartz-dark .ag-recent-colors,
.ag-theme-quartz-auto-dark .ag-recent-colors {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  margin-bottom: 2px;
}
.ag-theme-quartz .ag-color-input-color,
.ag-theme-quartz .ag-color-picker-color,
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-color-input-color,
.ag-theme-quartz-dark .ag-color-picker-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-color-input-color,
.ag-theme-quartz-auto-dark .ag-color-picker-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border-radius: 4px;
}
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz.ag-dnd-ghost,
.ag-theme-quartz-dark.ag-dnd-ghost,
.ag-theme-quartz-auto-dark.ag-dnd-ghost {
  font-weight: 500;
}
.ag-theme-quartz .ag-standard-button,
.ag-theme-quartz-dark .ag-standard-button,
.ag-theme-quartz-auto-dark .ag-standard-button {
  font-family: inherit;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: solid 1px var(--ag-input-border-color);
  background-color: var(--ag-background-color);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  cursor: pointer;
}
.ag-theme-quartz .ag-standard-button:hover,
.ag-theme-quartz-dark .ag-standard-button:hover,
.ag-theme-quartz-auto-dark .ag-standard-button:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-theme-quartz .ag-standard-button:active,
.ag-theme-quartz-dark .ag-standard-button:active,
.ag-theme-quartz-auto-dark .ag-standard-button:active {
  border-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-standard-button:disabled,
.ag-theme-quartz-dark .ag-standard-button:disabled,
.ag-theme-quartz-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-quartz .ag-column-drop-cell,
.ag-theme-quartz-dark .ag-column-drop-cell,
.ag-theme-quartz-auto-dark .ag-column-drop-cell {
  border-radius: calc(var(--ag-grid-size) * 3);
  height: calc(var(--ag-grid-size) * 3);
  padding: 0 var(--ag-grid-size);
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  min-width: 0;
  margin: 0;
}
.ag-theme-quartz .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-dark .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-drag-handle {
  margin-left: 0;
}
.ag-theme-quartz .ag-column-drop-vertical,
.ag-theme-quartz-dark .ag-column-drop-vertical,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-quartz .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-dark .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-title-bar {
  padding: var(--ag-widget-container-vertical-padding) calc(var(--ag-grid-size) * 2) 0;
}
.ag-theme-quartz .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-drop-vertical-icon {
  margin-left: 0;
  margin-right: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-drop-vertical-icon {
  margin-right: 0;
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-dark .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  justify-content: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 1.5) calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-column-drop-empty-message,
.ag-theme-quartz-dark .ag-column-drop-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
}
.ag-theme-quartz .ag-pill-select .ag-column-drop,
.ag-theme-quartz-dark .ag-pill-select .ag-column-drop,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-column-drop {
  min-height: 0;
  min-height: initial;
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-display {
  font-weight: 500;
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-icon .ag-icon {
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-quartz .ag-status-name-value,
.ag-theme-quartz-dark .ag-status-name-value,
.ag-theme-quartz-auto-dark .ag-status-name-value {
  padding: var(--ag-widget-container-vertical-padding) 0;
}
.ag-theme-quartz .ag-status-name-value-value,
.ag-theme-quartz .ag-paging-number,
.ag-theme-quartz .ag-paging-row-summary-panel-number,
.ag-theme-quartz-dark .ag-status-name-value-value,
.ag-theme-quartz-dark .ag-paging-number,
.ag-theme-quartz-dark .ag-paging-row-summary-panel-number,
.ag-theme-quartz-auto-dark .ag-status-name-value-value,
.ag-theme-quartz-auto-dark .ag-paging-number,
.ag-theme-quartz-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 500;
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  opacity: 0.75;
}
.ag-theme-quartz .ag-column-drop-cell-button:hover,
.ag-theme-quartz-dark .ag-column-drop-cell-button:hover,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 1;
}
.ag-theme-quartz .ag-header-cell-menu-button,
.ag-theme-quartz .ag-header-cell-filter-button,
.ag-theme-quartz .ag-panel-title-bar-button,
.ag-theme-quartz .ag-header-expand-icon,
.ag-theme-quartz .ag-column-group-icons,
.ag-theme-quartz .ag-set-filter-group-icons,
.ag-theme-quartz .ag-group-expanded .ag-icon,
.ag-theme-quartz .ag-group-contracted .ag-icon,
.ag-theme-quartz .ag-chart-settings-prev,
.ag-theme-quartz .ag-chart-settings-next,
.ag-theme-quartz .ag-group-title-bar-icon,
.ag-theme-quartz .ag-column-select-header-icon,
.ag-theme-quartz .ag-floating-filter-button-button,
.ag-theme-quartz .ag-filter-toolpanel-expand,
.ag-theme-quartz .ag-panel-title-bar-button-icon,
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-header-cell-menu-button,
.ag-theme-quartz-dark .ag-header-cell-filter-button,
.ag-theme-quartz-dark .ag-panel-title-bar-button,
.ag-theme-quartz-dark .ag-header-expand-icon,
.ag-theme-quartz-dark .ag-column-group-icons,
.ag-theme-quartz-dark .ag-set-filter-group-icons,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-dark .ag-chart-settings-prev,
.ag-theme-quartz-dark .ag-chart-settings-next,
.ag-theme-quartz-dark .ag-group-title-bar-icon,
.ag-theme-quartz-dark .ag-column-select-header-icon,
.ag-theme-quartz-dark .ag-floating-filter-button-button,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button,
.ag-theme-quartz-auto-dark .ag-header-expand-icon,
.ag-theme-quartz-auto-dark .ag-column-group-icons,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev,
.ag-theme-quartz-auto-dark .ag-chart-settings-next,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
}
.ag-theme-quartz .ag-header-cell-menu-button:hover,
.ag-theme-quartz .ag-header-cell-filter-button:hover,
.ag-theme-quartz .ag-panel-title-bar-button:hover,
.ag-theme-quartz .ag-header-expand-icon:hover,
.ag-theme-quartz .ag-column-group-icons:hover,
.ag-theme-quartz .ag-set-filter-group-icons:hover,
.ag-theme-quartz .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz .ag-chart-settings-prev:hover,
.ag-theme-quartz .ag-chart-settings-next:hover,
.ag-theme-quartz .ag-group-title-bar-icon:hover,
.ag-theme-quartz .ag-column-select-header-icon:hover,
.ag-theme-quartz .ag-floating-filter-button-button:hover,
.ag-theme-quartz .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz .ag-chart-menu-icon:hover,
.ag-theme-quartz-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-dark .ag-column-group-icons:hover,
.ag-theme-quartz-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-dark .ag-chart-menu-icon:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-auto-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon:hover {
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-hover-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-hover-color);
}
.ag-theme-quartz .ag-filter-active,
.ag-theme-quartz-dark .ag-filter-active,
.ag-theme-quartz-auto-dark .ag-filter-active {
  --ag-quartz-icon-active-color: color-mix(in srgb, transparent, var(--ag-active-color) 14%);
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 28%);
  position: relative;
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-active-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-active-color);
}
.ag-theme-quartz .ag-filter-active::after,
.ag-theme-quartz-dark .ag-filter-active::after,
.ag-theme-quartz-auto-dark .ag-filter-active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: -1px;
  right: -1px;
  border-radius: 50%;
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-dark .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-auto-dark .ag-filter-active .ag-icon-filter {
  clip-path: path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");
}
.ag-theme-quartz .ag-chart-menu,
.ag-theme-quartz-dark .ag-chart-menu,
.ag-theme-quartz-auto-dark .ag-chart-menu {
  --ag-icon-size: 20px;
  background-color: color-mix(in srgb, transparent, var(--ag-background-color) 30%);
  padding: 4px 2px;
}
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  opacity: 0.8;
}
.ag-theme-quartz .ag-drag-handle,
.ag-theme-quartz-dark .ag-drag-handle,
.ag-theme-quartz-auto-dark .ag-drag-handle {
  color: var(--ag-icon-font-color);
}
.ag-theme-quartz .ag-menu-option-icon,
.ag-theme-quartz .ag-compact-menu-option-icon,
.ag-theme-quartz-dark .ag-menu-option-icon,
.ag-theme-quartz-dark .ag-compact-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-icon, .ag-theme-quartz .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-menu-option-icon, .ag-theme-quartz .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-quartz .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 1.5) var(--ag-grid-size);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-body {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-body {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-level-0 {
  border-top: none;
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header {
  height: auto;
  height: initial;
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-theme-quartz .ag-filter-toolpanel-group-item,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-item,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-item {
  margin: 0;
}
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-quartz .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-advanced-filter-builder-button,
.ag-theme-quartz-dark .ag-advanced-filter-builder-button,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-quartz .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz .ag-disabled .ag-icon,
.ag-theme-quartz .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz [disabled] .ag-icon,
.ag-theme-quartz-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-dark .ag-disabled .ag-icon,
.ag-theme-quartz-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-dark [disabled] .ag-icon,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-auto-dark [disabled] .ag-icon {
  opacity: 0.6;
}
.ag-theme-quartz .ag-icon-grip,
.ag-theme-quartz-dark .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-icon-grip {
  opacity: 0.7;
}
.ag-theme-quartz .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-quartz .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-filter .ag-input-wrapper::before {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(`+g+`);
  background-position: 50% 50%;
  background-size: contain;
  opacity: 0.4;
  content: "";
  filter: var(--ag-icon-filter);
}
.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-number-field-input {
  padding-left: 26px;
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-number-field-input {
  padding-right: 26px;
}

.ag-theme-quartz .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-text-field-input[disabled],
.ag-theme-quartz .ag-menu-option-disabled,
.ag-theme-quartz-dark .ag-text-field-input[disabled],
.ag-theme-quartz-dark .ag-menu-option-disabled,
.ag-theme-quartz-auto-dark .ag-text-field-input[disabled],
.ag-theme-quartz-auto-dark .ag-menu-option-disabled {
  cursor: not-allowed;
}
.ag-theme-quartz .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-auto-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled {
  --ag-checkbox-checked-color: var(--ag-checkbox-unchecked-color);
}
.ag-theme-quartz .ag-checkbox-input,
.ag-theme-quartz .ag-toggle-button-input,
.ag-theme-quartz .ag-radio-button-input,
.ag-theme-quartz input[class^=ag-][type=range],
.ag-theme-quartz-dark .ag-checkbox-input,
.ag-theme-quartz-dark .ag-toggle-button-input,
.ag-theme-quartz-dark .ag-radio-button-input,
.ag-theme-quartz-dark input[class^=ag-][type=range],
.ag-theme-quartz-auto-dark .ag-checkbox-input,
.ag-theme-quartz-auto-dark .ag-toggle-button-input,
.ag-theme-quartz-auto-dark .ag-radio-button-input,
.ag-theme-quartz-auto-dark input[class^=ag-][type=range] {
  cursor: pointer;
}
.ag-theme-quartz .ag-details-row,
.ag-theme-quartz-dark .ag-details-row,
.ag-theme-quartz-auto-dark .ag-details-row {
  padding: calc(var(--ag-grid-size) * 3.75);
}
.ag-theme-quartz .ag-list-item-hovered::after,
.ag-theme-quartz-dark .ag-list-item-hovered::after,
.ag-theme-quartz-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-dark .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-active-color);
}
.ag-theme-quartz .ag-header-highlight-before::after,
.ag-theme-quartz .ag-header-highlight-after::after,
.ag-theme-quartz-dark .ag-header-highlight-before::after,
.ag-theme-quartz-dark .ag-header-highlight-after::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-before::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-active-color);
}

.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before {
  opacity: 0.66;
  filter: invert(100%);
}
.ag-theme-quartz-dark .ag-chart-menu {
  background-color: color-mix(in srgb, rgba(24, 39, 50, 0.3), var(--ag-background-color) 30%);
}
.ag-theme-quartz-dark .ag-text-field-input::-moz-placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
.ag-theme-quartz-dark .ag-text-field-input::placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
`,""]),x.A=c},4131:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z),b=p(62),C=p.n(b),d=new URL(p(8430),p.b),s=T()(E()),c=C()(d);s.push([ae.id,`@font-face {
  font-family: "agGridAlpine";
  src: url(`+c+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),x.A=s},679:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z),b=p(62),C=p.n(b),d=new URL(p(9377),p.b),s=T()(E()),c=C()(d);s.push([ae.id,`@font-face {
  font-family: "agGridBalham";
  src: url(`+c+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),x.A=s},4086:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z),b=p(62),C=p.n(b),d=new URL(p(7738),p.b),s=T()(E()),c=C()(d);s.push([ae.id,`@font-face {
  font-family: "agGridClassic";
  src: url(`+c+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),x.A=s},2249:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z),b=p(62),C=p.n(b),d=new URL(p(6055),p.b),s=T()(E()),c=C()(d);s.push([ae.id,`@font-face {
  font-family: "agGridMaterial";
  src: url(`+c+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),x.A=s},4011:function(ae,x,p){var A=p(6758),E=p.n(A),z=p(935),T=p.n(z),b=p(62),C=p.n(b),d=new URL(p(2006),p.b),s=T()(E()),c=C()(d);s.push([ae.id,`@font-face {
  font-family: "agGridQuartz";
  src: url(`+c+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),x.A=s},935:function(ae){ae.exports=function(x){var p=[];return p.toString=function(){return this.map(function(A){var E="",z=A[5]!==void 0;return A[4]&&(E+="@supports (".concat(A[4],") {")),A[2]&&(E+="@media ".concat(A[2]," {")),z&&(E+="@layer".concat(A[5].length>0?" ".concat(A[5]):""," {")),E+=x(A),z&&(E+="}"),A[2]&&(E+="}"),A[4]&&(E+="}"),E}).join("")},p.i=function(A,E,z,T,b){typeof A=="string"&&(A=[[null,A,void 0]]);var C={};if(z)for(var d=0;d<this.length;d++){var s=this[d][0];s!=null&&(C[s]=!0)}for(var c=0;c<A.length;c++){var h=[].concat(A[c]);z&&C[h[0]]||(b!==void 0&&(h[5]===void 0||(h[1]="@layer".concat(h[5].length>0?" ".concat(h[5]):""," {").concat(h[1],"}")),h[5]=b),E&&(h[2]&&(h[1]="@media ".concat(h[2]," {").concat(h[1],"}")),h[2]=E),T&&(h[4]?(h[1]="@supports (".concat(h[4],") {").concat(h[1],"}"),h[4]=T):h[4]="".concat(T)),p.push(h))}},p}},62:function(ae){ae.exports=function(x,p){return p||(p={}),x&&(x=String(x.__esModule?x.default:x),/^['"].*['"]$/.test(x)&&(x=x.slice(1,-1)),p.hash&&(x+=p.hash),/["'() \t\n]|(%20)/.test(x)||p.needQuotes?'"'.concat(x.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):x)}},6758:function(ae){ae.exports=function(x){return x[1]}},140:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(8956),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},3795:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(8483),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},8481:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(7521),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},6655:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(4991),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},7229:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(2621),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},2885:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(8981),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},391:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(2935),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},9563:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(7899),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},4169:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(9561),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},8931:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(4131),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},5479:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(679),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},7894:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(4086),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},4665:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(2249),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},8811:function(ae,x,p){p.r(x);var A=p(2591),E=p.n(A),z=p(1740),T=p.n(z),b=p(8128),C=p.n(b),d=p(8021),s=p.n(d),c=p(3051),h=p.n(c),g=p(3656),f=p.n(g),S=p(4011),w={attributes:{"data-ag-scope":"legacy"}};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=C().bind(null,"head"),w.domAPI=T(),w.insertStyleElement=h(),E()(S.A,w),x.default=S.A&&S.A.locals?S.A.locals:void 0},2591:function(ae){var x=[];function p(z){for(var T=-1,b=0;b<x.length;b++)if(x[b].identifier===z){T=b;break}return T}function A(z,T){for(var b={},C=[],d=0;d<z.length;d++){var s=z[d],c=T.base?s[0]+T.base:s[0],h=b[c]||0,g="".concat(c," ").concat(h);b[c]=h+1;var f=p(g),S={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(f!==-1)x[f].references++,x[f].updater(S);else{var w=E(S,T);T.byIndex=d,x.splice(d,0,{identifier:g,updater:w,references:1})}C.push(g)}return C}function E(z,T){var b=T.domAPI(T);return b.update(z),function(C){if(C){if(C.css===z.css&&C.media===z.media&&C.sourceMap===z.sourceMap&&C.supports===z.supports&&C.layer===z.layer)return;b.update(z=C)}else b.remove()}}ae.exports=function(z,T){var b=A(z=z||[],T=T||{});return function(C){C=C||[];for(var d=0;d<b.length;d++){var s=p(b[d]);x[s].references--}for(var c=A(C,T),h=0;h<b.length;h++){var g=p(b[h]);x[g].references===0&&(x[g].updater(),x.splice(g,1))}b=c}}},8128:function(ae){var x={};ae.exports=function(p,A){var E=function(z){if(x[z]===void 0){var T=document.querySelector(z);if(window.HTMLIFrameElement&&T instanceof window.HTMLIFrameElement)try{T=T.contentDocument.head}catch(b){T=null}x[z]=T}return x[z]}(p);if(!E)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");E.appendChild(A)}},3051:function(ae){ae.exports=function(x){var p=document.createElement("style");return x.setAttributes(p,x.attributes),x.insert(p,x.options),p}},8021:function(ae){ae.exports=function(x,p){Object.keys(p).forEach(function(A){x.setAttribute(A,p[A])})}},1740:function(ae){ae.exports=function(x){if(typeof document=="undefined")return{update:function(){},remove:function(){}};var p=x.insertStyleElement(x);return{update:function(A){(function(E,z,T){var b="";T.supports&&(b+="@supports (".concat(T.supports,") {")),T.media&&(b+="@media ".concat(T.media," {"));var C=T.layer!==void 0;C&&(b+="@layer".concat(T.layer.length>0?" ".concat(T.layer):""," {")),b+=T.css,C&&(b+="}"),T.media&&(b+="}"),T.supports&&(b+="}");var d=T.sourceMap;d&&typeof btoa!="undefined"&&(b+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(d))))," */")),z.styleTagTransform(b,E,z.options)})(p,x,A)},remove:function(){(function(A){if(A.parentNode===null)return!1;A.parentNode.removeChild(A)})(p)}}}},3656:function(ae){ae.exports=function(x,p){if(p.styleSheet)p.styleSheet.cssText=x;else{for(;p.firstChild;)p.removeChild(p.firstChild);p.appendChild(document.createTextNode(x))}}},2074:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AlignedGridsModule=void 0;let A=p(7205),E=p(8963);x.AlignedGridsModule={moduleName:"AlignedGrids",version:A.VERSION,beans:[E.AlignedGridsService]}},8963:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AlignedGridsService=void 0;let A=p(5266),E=p(8731),z=p(7764);class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){var s;let C=(s=this.gos.get("alignedGrids"))!=null?s:[],d=typeof C=="function";return typeof C=="function"&&(C=C()),C.map(c=>{var g;if(!c)return(0,z._error)(18),void(d||(0,z._error)(20));if(this.isGridApi(c))return c;let h=c;return"current"in h?(g=h.current)==null?void 0:g.api:(h.api||(0,z._error)(19),h.api)}).filter(c=>!!c&&!c.isDestroyed())}isGridApi(C){return!!C&&!!C.dispatchEvent}postConstruct(){let C=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:C,columnVisible:C,columnPinned:C,columnGroupOpened:C,columnResized:C,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:d})=>this.onColumnEvent(d),alignedGridScroll:({event:d})=>this.onScrollEvent(d)})}fireEvent(C){this.consuming||this.getAlignedGridApis().forEach(d=>{d.isDestroyed()||d.dispatchEvent(C)})}onEvent(C){this.consuming=!0,C(),this.consuming=!1}fireColumnEvent(C){this.fireEvent({type:"alignedGridColumn",event:C})}fireScrollEvent(C){C.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:C})}onScrollEvent(C){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(C.left,!0)})}extractDataFromEvent(C,d){let s=[];return C.columns?C.columns.forEach(c=>{s.push(d(c))}):C.column&&s.push(d(C.column)),s}getMasterColumns(C){return this.extractDataFromEvent(C,d=>d)}getColumnIds(C){return this.extractDataFromEvent(C,d=>d.getColId())}onColumnEvent(C){this.onEvent(()=>{switch(C.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":this.processColumnEvent(C);break;case"columnGroupOpened":this.processGroupOpenedEvent(C);break;case"columnPivotChanged":(0,z._warn)(21)}})}processGroupOpenedEvent(C){let{colGroupSvc:d}=this.beans;d&&C.columnGroups.forEach(s=>{let c=null;s&&(c=d.getProvidedColGroup(s.getGroupId())),s&&!c||d.setColumnGroupOpened(c,s.isExpanded(),"alignedGridChanged")})}processColumnEvent(C){var M;let d=C.column,s=null,c=this.beans,{colResize:h,ctrlsSvc:g,colModel:f}=c;if(d&&(s=f.getColDefCol(d.getColId())),d&&!s)return;let S=this.getMasterColumns(C);switch(C.type){case"columnMoved":{let P=C.api.getColumnState().map(O=>({colId:O.colId}));(0,A._applyColumnState)(c,{state:P,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{let P=C.api.getColumnState().map(O=>({colId:O.colId,hide:O.hide}));(0,A._applyColumnState)(c,{state:P},"alignedGridChanged")}break;case"columnPinned":{let P=C.api.getColumnState().map(O=>({colId:O.colId,pinned:O.pinned}));(0,A._applyColumnState)(c,{state:P},"alignedGridChanged")}break;case"columnResized":{let P=C,O={};S.forEach(G=>{O[G.getId()]={key:G.getColId(),newWidth:G.getActualWidth()}}),(M=P.flexColumns)==null||M.forEach(G=>{O[G.getId()]&&delete O[G.getId()]}),h==null||h.setColumnWidths(Object.values(O),!1,P.finished,"alignedGridChanged");break}}let w=g.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach(P=>{P.setGridOption("alwaysShowVerticalScroll",w)})}}x.AlignedGridsService=T},1621:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AllCommunityModule=void 0;let A=p(2074),E=p(9642),z=p(9722),T=p(9722),b=p(3856),C=p(1690),d=p(2027),s=p(9734),c=p(4388),h=p(4652),g=p(5432),f=p(4002),S=p(9410),w=p(9519),M=p(6989),P=p(1824),O=p(5423),G=p(3498),j=p(6964),Y=p(4577),J=p(3352),ne=p(8594),ce=p(4658),fe=p(5010),xe=p(6431),Le=p(7205);x.AllCommunityModule={moduleName:"AllCommunity",version:Le.VERSION,dependsOn:[z.ClientSideRowModelModule,s.CsvExportModule,f.InfiniteRowModelModule,fe.ValidationModule,h.TextEditorModule,h.NumberEditorModule,h.DateEditorModule,h.CheckboxEditorModule,h.SelectEditorModule,h.LargeTextEditorModule,h.CustomEditorModule,h.UndoRedoEditModule,g.TextFilterModule,g.NumberFilterModule,g.DateFilterModule,g.CustomFilterModule,g.QuickFilterModule,g.ExternalFilterModule,M.GridStateModule,A.AlignedGridsModule,P.PaginationModule,d.ColumnApiModule,E.RowApiModule,E.ScrollApiModule,j.RenderApiModule,b.ColumnAutoSizeModule,c.RowDragModule,O.PinnedRowModule,J.RowSelectionModule,xe.ValueCacheModule,ne.CellStyleModule,C.ColumnHoverModule,ne.RowStyleModule,S.EventApiModule,xe.CellApiModule,G.HighlightChangesModule,ce.TooltipModule,w.LocaleModule,Y.RowAutoHeightModule,c.DragAndDropModule,T.ClientSideRowModelApiModule]}},3907:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ApiFunctionService=void 0;let A=p(8731),E=p(7764),z=p(7689),T={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},b=(s,c)=>s.eventSvc.dispatchEvent(c);class C{}Reflect.defineProperty(C,"name",{value:"GridApi"});class d extends A.BeanStub{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new C,this.fns=He(ge({},T),{dispatchEvent:b}),this.preDestroyLink="";let{api:c}=this;for(let h of Object.keys(z.gridApiFunctionsMap))c[h]=this.makeApi(h)[h]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(c,h){var S,w;let{fns:g,beans:f}=this;g!==T&&(g[c]=(w=(S=f==null?void 0:f.validation)==null?void 0:S.validateApiFunction(c,h))!=null?w:h)}makeApi(c){return{[c]:(...h)=>{let{beans:g,fns:{[c]:f}}=this;return f?f(g,...h):this.apiNotFound(c)}}}apiNotFound(c){let{beans:h,gos:g,preDestroyLink:f}=this;if(h){let S=z.gridApiFunctionsMap[c];g.assertModuleRegistered(S,`api.${c}`)&&(0,E._warn)(27,{fnName:c,module:S})}else(0,E._warn)(26,{fnName:c,preDestroyLink:f})}destroy(){super.destroy(),this.fns=T,this.beans=null}}x.ApiFunctionService=d},9642:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ScrollApiModule=x.RowApiModule=void 0;let A=p(7205),E=p(8192),z=p(1765);x.RowApiModule={moduleName:"RowApi",version:A.VERSION,apiFunctions:{redrawRows:E.redrawRows,setRowNodeExpanded:E.setRowNodeExpanded,getRowNode:E.getRowNode,addRenderedRowListener:E.addRenderedRowListener,getRenderedNodes:E.getRenderedNodes,forEachNode:E.forEachNode,getFirstDisplayedRowIndex:E.getFirstDisplayedRowIndex,getLastDisplayedRowIndex:E.getLastDisplayedRowIndex,getDisplayedRowAtIndex:E.getDisplayedRowAtIndex,getDisplayedRowCount:E.getDisplayedRowCount}},x.ScrollApiModule={moduleName:"ScrollApi",version:A.VERSION,apiFunctions:{getVerticalPixelRange:z.getVerticalPixelRange,getHorizontalPixelRange:z.getHorizontalPixelRange,ensureColumnVisible:z.ensureColumnVisible,ensureIndexVisible:z.ensureIndexVisible,ensureNodeVisible:z.ensureNodeVisible}}},6433:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.createGridApi=void 0,x.createGridApi=function(p){return{beanName:"gridApi",bean:p.getBean("apiFunctionSvc").api}}},9875:function(ae,x){function p(A,E){A.gos.updateGridOptions({options:E})}Object.defineProperty(x,"__esModule",{value:!0}),x.updateGridOptions=x.setGridOption=x.getGridOption=x.isDestroyed=x.destroy=x.getGridId=void 0,x.getGridId=function(A){return A.context.getGridId()},x.destroy=function(A){A.gridDestroySvc.destroy()},x.isDestroyed=function(A){return A.gridDestroySvc.destroyCalled},x.getGridOption=function(A,E){return A.gos.get(E)},x.setGridOption=function(A,E,z){p(A,{[E]:z})},x.updateGridOptions=p},9513:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.onRowHeightChanged=x.collapseAll=x.expandAll=void 0;let A=p(6876);x.expandAll=function(E){var z;(z=E.expansionSvc)==null||z.expandAll(!0)},x.collapseAll=function(E){var z;(z=E.expansionSvc)==null||z.expandAll(!1)},x.onRowHeightChanged=function(E){let z=(0,A._getClientSideRowModel)(E),T=(0,A._getServerSideRowModel)(E);z?z.onRowHeightChanged():T&&T.onRowHeightChanged()}},7689:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.gridApiFunctionsMap=void 0;let p=(A,E)=>{for(let z of Object.keys(E))E[z]=A;return E};x.gridApiFunctionsMap=ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge({dispatchEvent:"CommunityCore"},p("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0})),p("GridState",{getState:0})),p("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0})),p("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0})),p("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0})),p("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0})),p("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0})),p("ValueCache",{expireValueCache:0})),p("CellApi",{getCellValue:0})),p("SharedMenu",{showColumnMenu:0,hidePopupMenu:0})),p("Sort",{onSortChanged:0})),p("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0})),p("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0})),p("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0})),p("HighlightChanges",{flashCells:0})),p("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0})),p("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0})),p("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0})),p("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0})),p("ColumnMove",{moveColumnByIndex:0,moveColumns:0})),p("ColumnResize",{setColumnWidths:0})),p("ColumnHover",{isColumnHovered:0})),p("EditCore",{getCellEditorInstances:0,getEditingCells:0,stopEditing:0,startEditingCell:0})),p("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0})),p("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0})),p("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0})),p("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0})),p("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0})),p("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,onRowHeightChanged:0})),p("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0})),p("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,resetRowHeights:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0})),p("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0})),p("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0})),p("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0})),p("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0})),p("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0})),p("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0})),p("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0})),p("ContextMenu",{showContextMenu:0})),p("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0})),p("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0})),p("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0})),p("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0})),p("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0})),p("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0})),p("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0})),p("StatusBar",{getStatusPanel:0}))},8192:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getDisplayedRowCount=x.getDisplayedRowAtIndex=x.getLastDisplayedRowIndex=x.getFirstDisplayedRowIndex=x.forEachNode=x.getRenderedNodes=x.addRenderedRowListener=x.getRowNode=x.setRowNodeExpanded=x.redrawRows=void 0,x.redrawRows=function(p,A={}){let E=A?A.rowNodes:void 0;p.frameworkOverrides.wrapIncoming(()=>p.rowRenderer.redrawRows(E))},x.setRowNodeExpanded=function p(A,E,z,T,b){E&&(T&&E.parent&&E.parent.level!==-1&&p(A,E.parent,z,T,b),E.setExpanded(z,void 0,b))},x.getRowNode=function(p,A){return p.rowModel.getRowNode(A)},x.addRenderedRowListener=function(p,A,E,z){p.rowRenderer.addRenderedRowListener(A,E,z)},x.getRenderedNodes=function(p){return p.rowRenderer.getRenderedNodes()},x.forEachNode=function(p,A,E){p.rowModel.forEachNode(A,E)},x.getFirstDisplayedRowIndex=function(p){return p.rowRenderer.firstRenderedRow},x.getLastDisplayedRowIndex=function(p){return p.rowRenderer.lastRenderedRow},x.getDisplayedRowAtIndex=function(p,A){return p.rowModel.getRow(A)},x.getDisplayedRowCount=function(p){return p.rowModel.getRowCount()}},6876:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x._getServerSideRowModel=x._getInfiniteRowModel=x._getClientSideRowModel=void 0,x._getClientSideRowModel=function(p){let A=p.rowModel;return A.getType()==="clientSide"?A:void 0},x._getInfiniteRowModel=function(p){let A=p.rowModel;return A.getType()==="infinite"?A:void 0},x._getServerSideRowModel=function(p){let A=p.rowModel;return A.getType()==="serverSide"?A:void 0}},1765:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.ensureNodeVisible=x.ensureIndexVisible=x.ensureColumnVisible=x.getHorizontalPixelRange=x.getVerticalPixelRange=void 0,x.getVerticalPixelRange=function(p){return p.ctrlsSvc.getScrollFeature().getVScrollPosition()},x.getHorizontalPixelRange=function(p){return p.ctrlsSvc.getScrollFeature().getHScrollPosition()},x.ensureColumnVisible=function(p,A,E="auto"){p.frameworkOverrides.wrapIncoming(()=>p.ctrlsSvc.getScrollFeature().ensureColumnVisible(A,E),"ensureVisible")},x.ensureIndexVisible=function(p,A,E){p.frameworkOverrides.wrapIncoming(()=>p.ctrlsSvc.getScrollFeature().ensureIndexVisible(A,E),"ensureVisible")},x.ensureNodeVisible=function(p,A,E=null){p.frameworkOverrides.wrapIncoming(()=>p.ctrlsSvc.getScrollFeature().ensureNodeVisible(A,E),"ensureVisible")}},6437:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SsrmInfiniteSharedApiModule=x.CsrmSsrmSharedApiModule=void 0;let A=p(7205),E=p(9513),z=p(8496);x.CsrmSsrmSharedApiModule={moduleName:"CsrmSsrmSharedApi",version:A.VERSION,apiFunctions:{expandAll:E.expandAll,collapseAll:E.collapseAll,onRowHeightChanged:E.onRowHeightChanged}},x.SsrmInfiniteSharedApiModule={moduleName:"SsrmInfiniteSharedApi",version:A.VERSION,apiFunctions:{setRowCount:z.setRowCount,getCacheBlockState:z.getCacheBlockState,isLastRowIndexKnown:z.isLastRowIndexKnown}}},8496:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.isLastRowIndexKnown=x.getCacheBlockState=x.setRowCount=void 0;let A=p(7274),E=p(7764),z=p(6876);x.setRowCount=function(T,b,C){var c;let d=(0,z._getServerSideRowModel)(T);if(d)return((c=T.rowGroupColsSvc)==null?void 0:c.columns.length)===0?b<0?void(0,E._error)(238):void d.setRowCount(b,C):void(0,E._error)(28);let s=(0,z._getInfiniteRowModel)(T);s&&s.setRowCount(b,C)},x.getCacheBlockState=function(T){var b,C;return(0,A._isServerSideRowModel)(T.gos)?T.rowModel.getBlockStates():(C=(b=T.rowNodeBlockLoader)==null?void 0:b.getBlockState())!=null?C:{}},x.isLastRowIndexKnown=function(T){return T.rowModel.isLastRowIndexKnown()}},5628:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.AutoScrollService=void 0,x.AutoScrollService=class{constructor(p){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=p.scrollContainer,this.scrollHorizontally=p.scrollAxis.indexOf("x")!==-1,this.scrollVertically=p.scrollAxis.indexOf("y")!==-1,this.scrollByTick=p.scrollByTick!=null?p.scrollByTick:20,p.onScrollCallback&&(this.onScrollCallback=p.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=p.getVerticalPosition,this.setVerticalPosition=p.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=p.getHorizontalPosition,this.setHorizontalPosition=p.setHorizontalPosition),this.shouldSkipVerticalScroll=p.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=p.shouldSkipHorizontalScroll||(()=>!1)}check(p,A=!1){let E=A||this.shouldSkipVerticalScroll();if(E&&this.shouldSkipHorizontalScroll())return;let z=this.scrollContainer.getBoundingClientRect(),T=this.scrollByTick;this.tickLeft=p.clientX<z.left+T,this.tickRight=p.clientX>z.right-T,this.tickUp=p.clientY<z.top+T&&!E,this.tickDown=p.clientY>z.bottom-T&&!E,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;let p=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){let A=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(A-p),this.tickDown&&this.setVerticalPosition(A+p)}if(this.scrollHorizontally){let A=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(A-p),this.tickRight&&this.setHorizontalPosition(A+p)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}}},3263:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.BASE_URL=void 0,x.BASE_URL="https://www.ag-grid.com"},1954:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AbstractClientSideNodeManager=void 0;let A=p(8731),E=p(3373),z=p(7274),T=p(4422),b=p(7764);class C extends A.BeanStub{constructor(){super(...arguments),this.nextId=0,this.allNodesMap={},this.rootNode=null}get treeData(){return!1}getRowNode(s){return this.allNodesMap[s]}extractRowData(){var s,c;return(c=(s=this.rootNode)==null?void 0:s.allLeafChildren)==null?void 0:c.map(h=>h.data)}activate(s){this.rootNode=s,s.group=!0,s.level=-1,s.id="ROOT_NODE_ID",s.allLeafChildren=[],s.childrenAfterGroup=[],s.childrenAfterSort=[],s.childrenAfterAggFilter=[],s.childrenAfterFilter=[],this.updateRootSiblingArrays(s)}deactivate(){this.rootNode&&(this.allNodesMap={},this.rootNode=null)}destroy(){super.destroy(),this.allNodesMap={},this.rootNode=null}setNewRowData(s){let c=this.rootNode;c&&(this.dispatchRowDataUpdateStartedEvent(s),c.childrenAfterFilter=null,c.childrenAfterGroup=null,c.childrenAfterAggFilter=null,c.childrenAfterSort=null,c.childrenMapped=null,c.updateHasChildren(),this.allNodesMap={},this.nextId=0,this.loadNewRowData(s),this.updateRootSiblingArrays(c))}updateRootSiblingArrays(s){let c=s.sibling;c&&(c.childrenAfterFilter=s.childrenAfterFilter,c.childrenAfterGroup=s.childrenAfterGroup,c.childrenAfterAggFilter=s.childrenAfterAggFilter,c.childrenAfterSort=s.childrenAfterSort,c.childrenMapped=s.childrenMapped,c.allLeafChildren=s.allLeafChildren)}loadNewRowData(s){var c;this.rootNode.allLeafChildren=(c=s==null?void 0:s.map((h,g)=>this.createRowNode(h,g)))!=null?c:[]}setImmutableRowData(s,c){let h=this.createTransactionForRowData(c),g=this.updateRowData(h,s.changedRowNodes),f=!1;this.gos.get("suppressMaintainUnsortedOrder")||(f=this.updateRowOrderFromRowData(c));let{rowNodeTransaction:S,rowsInserted:w}=g,{add:M,remove:P,update:O}=S;(w||f||M.length||P.length||O.length)&&(s.step="group",s.rowDataUpdated=!0,s.rowNodeTransactions=[S],s.rowNodesOrderChanged=w||f)}updateRowData(s,c){this.dispatchRowDataUpdateStartedEvent(s.add);let h={changedRowNodes:c,rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},g=[],f=(0,z._getRowIdCallback)(this.gos);return this.executeRemove(f,s,h,g),this.executeUpdate(f,s,h,g),this.executeAdd(s,h),this.deselectNodes(g),h}createTransactionForRowData(s){let c=(0,z._getRowIdCallback)(this.gos),h=ge({},this.allNodesMap),g=[],f=[],S=[];(0,T._exists)(s)&&s.forEach(w=>{let M=c({data:w,level:0}),P=h[M];P?(P.data!==w&&f.push(w),h[M]=void 0):S.push(w)});for(let w of Object.values(h))w&&g.push(w.data);return{remove:g,update:f,add:S}}updateRowOrderFromRowData(s){var w,M;let c=(w=this.rootNode)==null?void 0:w.allLeafChildren,h=(M=c==null?void 0:c.length)!=null?M:0,g=new Map,f=-1,S=-1;for(let P=0;P<h;++P){let O=c[P],G=O.data;G!==s[P]&&(S<0&&(f=P),S=P,g.set(G,O))}if(f<0)return!1;for(let P=f;P<=S;++P){let O=g.get(s[P]);O!==void 0&&(c[P]=O,O.sourceRowIndex=P)}return!0}executeAdd(s,c){let h=s.add;if(!(h!=null&&h.length))return;let g=this.rootNode.allLeafChildren,f=g.length;if(typeof s.addIndex=="number"&&(f=this.sanitizeAddIndex(s.addIndex),f>0)&&this.gos.get("treeData")&&this.gos.get("getDataPath"))for(let G=0;G<g.length;G++){let j=g[G];if((j==null?void 0:j.rowIndex)==f-1){f=G+1;break}}let S=h.length,w=c.changedRowNodes,M=new Array(S);for(let G=0;G<S;G++){let j=this.createRowNode(h[G],f+G);w.add(j),M[G]=j}let P=this.rootNode;if(f<g.length){let G=g.slice(0,f),j=g.slice(f,g.length),Y=G.length+M.length;for(let J=0,ne=j.length;J<ne;++J)j[J].sourceRowIndex=Y+J;g=[...G,...M,...j],c.rowsInserted=!0}else g=g.concat(M);P.allLeafChildren=g;let O=P.sibling;O&&(O.allLeafChildren=g),c.rowNodeTransaction.add=M}executeRemove(s,c,{changedRowNodes:h,rowNodeTransaction:g},f){var O,G,j;let{remove:S}=c;if(!(S!=null&&S.length))return;let w={};S.forEach(Y=>{let J=this.lookupRowNode(s,Y);J&&(J.isSelected()&&f.push(J),J.clearRowTopAndRowIndex(),w[J.id]=!0,delete this.allNodesMap[J.id],g.remove.push(J),h.remove(J))});let M=this.rootNode;M.allLeafChildren=(G=(O=M.allLeafChildren)==null?void 0:O.filter(Y=>!w[Y.id]))!=null?G:null,(j=M.allLeafChildren)==null||j.forEach((Y,J)=>{Y.sourceRowIndex=J});let P=M.sibling;P&&(P.allLeafChildren=M.allLeafChildren)}executeUpdate(s,c,{changedRowNodes:h,rowNodeTransaction:g},f){let{update:S}=c;S!=null&&S.length&&S.forEach(w=>{let M=this.lookupRowNode(s,w);M&&(M.updateData(w),!M.selectable&&M.isSelected()&&f.push(M),g.update.push(M),h.update(M))})}dispatchRowDataUpdateStartedEvent(s){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:s!=null&&s.length?s[0]:null})}deselectNodes(s){var f;let c="rowDataChanged",h=this.beans.selectionSvc,g=s.length>0;g&&(h==null||h.setNodesSelected({newValue:!1,nodes:s,suppressFinishActions:!0,source:c})),(f=h==null?void 0:h.updateGroupsFromChildrenSelections)==null||f.call(h,c),g&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:c})}sanitizeAddIndex(s){var h,g;let c=(g=(h=this.rootNode.allLeafChildren)==null?void 0:h.length)!=null?g:0;return s<0||s>=c||Number.isNaN(s)?c:Math.ceil(s)}createRowNode(s,c){let h=new E.RowNode(this.beans);return h.parent=this.rootNode,h.level=0,h.group=!1,h.expanded=!1,h.sourceRowIndex=c,h.setDataAndId(s,String(this.nextId)),this.allNodesMap[h.id]&&(0,b._warn)(2,{nodeId:h.id}),this.allNodesMap[h.id]=h,this.nextId++,h}lookupRowNode(s,c){var g,f;let h;if(s){let S=s({data:c,level:0});if(h=this.allNodesMap[S],!h)return(0,b._error)(4,{id:S}),null}else if(h=(f=(g=this.rootNode)==null?void 0:g.allLeafChildren)==null?void 0:f.find(S=>S.data===c),!h)return(0,b._error)(5,{data:c}),null;return h||null}}x.AbstractClientSideNodeManager=C},2106:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.ChangedRowNodes=void 0,x.ChangedRowNodes=class{constructor(){this.removals=new Set,this.updates=new Map}remove(p){this.removals.add(p),this.updates.delete(p)}update(p){this.updates.has(p)||(this.removals.delete(p),this.updates.set(p,!1))}add(p){this.removals.delete(p),this.updates.set(p,!0)}}},5747:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ClientSideNodeManager=void 0;let A=p(1954);class E extends A.AbstractClientSideNodeManager{constructor(){super(...arguments),this.beanName="csrmNodeSvc"}}x.ClientSideNodeManager=E},3278:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ClientSideRowModel=void 0;let A=p(8731),E=p(3373),z=p(7274),T=p(1502),b=p(6800),C=p(2043),d=p(7764),s=p(2106),c=p(8287),h=p(9849);var g;(function(S){S[S.Normal=0]="Normal",S[S.AfterFilter=1]="AfterFilter",S[S.AfterFilterAndSort=2]="AfterFilterAndSort",S[S.PivotNodes=3]="PivotNodes"})(g||(g={}));class f extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowModel",this.onRowHeightChanged_debounced=(0,C._debounce)(this,this.onRowHeightChanged.bind(this),100),this.rootNode=null,this.rowsToDisplay=[],this.started=!1,this.shouldSkipSettingDataOnStart=!1,this.isRefreshingModel=!1,this.rowNodesCountReady=!1,this.rowCountReady=!1}wireBeans(w){this.colModel=w.colModel,this.valueCache=w.valueCache,this.filterStage=w.filterStage,this.sortStage=w.sortStage,this.flattenStage=w.flattenStage,this.groupStage=w.groupStage,this.aggStage=w.aggStage,this.pivotStage=w.pivotStage,this.filterAggStage=w.filterAggStage}postConstruct(){this.orderedStages=[this.groupStage,this.filterStage,this.pivotStage,this.aggStage,this.sortStage,this.filterAggStage,this.flattenStage].filter(P=>!!P);let w=this.refreshModel.bind(this,{step:"group"}),M=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")});this.addManagedEventListeners({newColumnsLoaded:M,columnRowGroupChanged:w,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:w,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this)}),this.addPropertyListeners(),this.rootNode=new E.RowNode(this.beans),this.initRowManager()}initRowManager(){let{gos:w,beans:M,nodeManager:P}=this,O=w.get("treeData"),G=w.get("treeDataChildrenField"),j;(G||O)&&(j=G?M.csrmChildrenTreeNodeSvc:M.csrmPathTreeNodeSvc),j||(j=M.csrmNodeSvc),P!==j&&(P==null||P.deactivate(),this.nodeManager=j),j.activate(this.rootNode)}addPropertyListeners(){let w=["treeData","treeDataChildrenField",...this.orderedStages.flatMap(({refreshProps:M})=>[...M])];this.addManagedPropertyListeners(w,M=>{var O;let P=(O=M.changeSet)==null?void 0:O.properties;P&&this.onPropChange(P)}),this.addManagedPropertyListener("rowData",()=>this.onPropChange(["rowData"])),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.shouldSkipSettingDataOnStart?this.refreshModel({step:"group",newData:!0,rowDataUpdated:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&(this.shouldSkipSettingDataOnStart=!0,this.onPropChange(["rowData"]))}ensureRowHeightsValid(w,M,P,O){let G,j=!1;do{G=!1;let Y=this.getRowIndexAtPixel(w),J=this.getRowIndexAtPixel(M),ne=Math.max(Y,P),ce=Math.min(J,O);for(let fe=ne;fe<=ce;fe++){let xe=this.getRow(fe);if(xe.rowHeightEstimated){let Le=(0,z._getRowHeightForNode)(this.beans,xe);xe.setRowHeight(Le.height),G=!0,j=!0}}G&&this.setRowTopAndRowIndex()}while(G);return j}onPropChange(w){var ne,ce,fe;if(!this.rootNode)return;let M=this.gos,P=new Set(w),O={step:"nothing",changedProps:P},G=P.has("rowData"),j=P.has("treeData"),Y=P.has("treeDataChildrenField")||j&&!M.get("treeDataChildrenField"),J;if(j&&(O.step="group"),(Y||G)&&(J=M.get("rowData"),J==null||Array.isArray(J)||(J=null,(0,d._warn)(1))),Y&&(G||(J=(ce=(ne=this.nodeManager)==null?void 0:ne.extractRowData())!=null?ce:J),this.initRowManager()),J&&(!Y&&this.started&&!this.isEmpty()&&J.length>0&&M.exists("getRowId")&&!M.get("resetRowDataOnUpdate")?(O.keepRenderedRows=!0,O.animate=!this.gos.get("suppressAnimationFrame"),O.changedRowNodes=new s.ChangedRowNodes,this.nodeManager.setImmutableRowData(O,J)):(O.step="group",O.rowDataUpdated=!0,O.newData=!0,(fe=this.beans.selectionSvc)==null||fe.reset("rowDataChanged"),this.rowNodesCountReady=!0,this.nodeManager.setNewRowData(J))),O.step==="nothing"){for(let{refreshProps:xe,step:Le}of this.orderedStages)if(w.some(_e=>xe.has(_e))){O.step=Le;break}}O.step!=="nothing"&&this.refreshModel(O)}setRowTopAndRowIndex(){let{beans:w}=this,M=w.environment.getDefaultRowHeight(),P=0,O=new Set,G=(0,z._isDomLayout)(this.gos,"normal"),j=this.rowsToDisplay;for(let Y=0,J=j.length;Y<J;++Y){let ne=j[Y];if(ne.id!=null&&O.add(ne.id),ne.rowHeight==null){let ce=(0,z._getRowHeightForNode)(w,ne,G,M);ne.setRowHeight(ce.height,ce.estimated)}ne.setRowTop(P),ne.setRowIndex(Y),P+=ne.rowHeight}return O}clearRowTopAndRowIndex(w,M){let P=w.active,O=j=>{j&&j.id!=null&&!M.has(j.id)&&j.clearRowTopAndRowIndex()},G=j=>{if(j!==null&&(O(j),O(j.detailNode),O(j.sibling),j.hasChildren()&&j.childrenAfterGroup)){let Y=j.level==-1;P&&!Y&&!j.expanded||j.childrenAfterGroup.forEach(G)}};G(this.rootNode)}ensureRowsAtPixel(w,M,P=0){var J;let O=this.getRowIndexAtPixel(M),G=this.getRow(O),j=!this.gos.get("suppressAnimationFrame");if(G===w[0])return!1;let Y=(J=this.rootNode)==null?void 0:J.allLeafChildren;return!!Y&&(w.forEach(ne=>{(0,T._removeFromArray)(Y,ne)}),w.forEach((ne,ce)=>{Y.splice(Math.max(O+P,0)+ce,0,ne)}),w.forEach((ne,ce)=>{ne.sourceRowIndex=ce}),this.refreshModel({step:"group",keepRenderedRows:!0,animate:j,rowNodesOrderChanged:!0}),!0)}highlightRowAtPixel(w,M){let P=M!=null?this.getRowIndexAtPixel(M):null,O=P!=null?this.getRow(P):null;if(!O||!w||M==null)return void this.clearHighlightedRow();let G=this.getHighlightPosition(M,O),j=this.isHighlightingCurrentPosition(w,O,G),Y=this.lastHighlightedRow!=null&&this.lastHighlightedRow!==O;(j||Y)&&(this.clearHighlightedRow(),j)||(this.setRowNodeHighlighted(O,G),this.lastHighlightedRow=O)}setRowNodeHighlighted(w,M){w.highlighted!==M&&(w.highlighted=M,w.dispatchRowEvent("rowHighlightChanged"))}getHighlightPosition(w,M){if(!M){let G=this.getRowIndexAtPixel(w);if(!(M=this.getRow(G||0)))return"Below"}let{rowTop:P,rowHeight:O}=M;return w-P<O/2?"Above":"Below"}getLastHighlightedRowNode(){return this.lastHighlightedRow}isHighlightingCurrentPosition(w,M,P){if(w===M)return!0;let O=P==="Above"?-1:1;return this.getRow(M.rowIndex+O)===w}clearHighlightedRow(){this.lastHighlightedRow&&(this.setRowNodeHighlighted(this.lastHighlightedRow,null),this.lastHighlightedRow=null)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){let w=this.rootNode;if(!w||this.rowsToDisplay.length===0)return 0;if(this.rowsToDisplay&&this.rowsToDisplay[0]===w)return 1;let M=w.childrenAfterAggFilter,P=w.sibling?1:0;return(M?M.length:0)+P}getTopLevelRowDisplayedIndex(w){let{rootNode:M,rowsToDisplay:P}=this;if(!M||!P.length||P[0]===M)return w;let{childrenAfterSort:O}=M,G=Y=>{let J=O[Y];if(this.gos.get("groupHideOpenParents"))for(;J.expanded&&J.childrenAfterSort&&J.childrenAfterSort.length>0;)J=J.childrenAfterSort[0];return J.rowIndex},{footerSvc:j}=this.beans;return j?j.getTopDisplayIndex(P,w,O,G):G(w)}getRowBounds(w){let M=this.rowsToDisplay[w];return M?{rowTop:M.rowTop,rowHeight:M.rowHeight}:null}onRowGroupOpened(){let w=(0,z._isAnimateRows)(this.gos);this.refreshModel({step:"map",keepRenderedRows:!0,animate:w})}onFilterChanged(w){if(w.afterDataChange)return;let M=(0,z._isAnimateRows)(this.gos),P=w.columns.length===0||w.columns.some(O=>O.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:P,keepRenderedRows:!0,animate:M})}onSortChanged(){let w=(0,z._isAnimateRows)(this.gos);this.refreshModel({step:"sort",keepRenderedRows:!0,animate:w})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(w){let M=!(w!=null&&w.length),P=new b.ChangedPath(!1,this.rootNode);return M&&(P.active=!1),P}isSuppressModelUpdateAfterUpdateTransaction(w){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;let M=w.rowNodeTransactions;return M?!M.some(P=>P.add!=null&&P.add.length>0||P.remove!=null&&P.remove.length>0):!1}refreshModel(w){var G,j,Y;if(!this.rootNode)return;let M=w.rowNodeTransactions,P=(G=w.changedPath)!=null?G:w.changedPath=this.createChangePath(M);if((Y=(j=this.nodeManager).refreshModel)==null||Y.call(j,w),this.eventSvc.dispatchEvent({type:"beforeRefreshModel",params:w}),!this.started||(w.rowDataUpdated&&this.eventSvc.dispatchEvent({type:"rowDataUpdated"}),this.isRefreshingModel||this.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(w)))return;switch(this.isRefreshingModel=!0,w.step){case"group":this.doRowGrouping(w.rowNodeTransactions,w.changedRowNodes,P,!!w.rowNodesOrderChanged,!!w.afterColumnsChanged);case"filter":this.doFilter(P);case"pivot":this.doPivot(P);case"aggregate":this.doAggregate(P);case"filter_aggregates":this.doFilterAggregates(P);case"sort":this.doSort(w.changedRowNodes,P);case"map":this.doRowsToDisplay()}let O=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(P,O),this.isRefreshingModel=!1,this.eventSvc.dispatchEvent({type:"modelUpdated",animate:w.animate,keepRenderedRows:w.keepRenderedRows,newData:w.newData,newPage:!1,keepUndoRedoStack:w.keepUndoRedoStack})}isEmpty(){var w,M,P;return!((M=(w=this.rootNode)==null?void 0:w.allLeafChildren)!=null&&M.length)||!((P=this.colModel)!=null&&P.ready)}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(w,M){let P=!1,O=!1,G=[],j=(0,z._getGroupSelectsDescendants)(this.gos);return this.forEachNodeAfterFilterAndSort(Y=>{if(!O){if(P&&(Y===M||Y===w)&&(O=!0,Y.group&&j))return void G.push(...Y.allLeafChildren);if(!P){if(Y!==M&&Y!==w)return;P=!0}(!Y.group||!j)&&G.push(Y)}}),G}getTopLevelNodes(){var w,M;return(M=(w=this.rootNode)==null?void 0:w.childrenAfterGroup)!=null?M:null}getRow(w){return this.rowsToDisplay[w]}isRowPresent(w){return this.rowsToDisplay.indexOf(w)>=0}getRowIndexAtPixel(w){let M=this.rowsToDisplay;if(this.isEmpty()||M.length===0)return-1;let P=0,O=M.length-1;if(w<=0)return 0;if((0,T._last)(M).rowTop<=w)return M.length-1;let G=-1,j=-1;for(;;){let Y=Math.floor((P+O)/2),J=M[Y];if(this.isRowInPixel(J,w)||(J.rowTop<w?P=Y+1:J.rowTop>w&&(O=Y-1),G===P&&j===O))return Y;G=P,j=O}}isRowInPixel(w,M){let P=w.rowTop,O=w.rowTop+w.rowHeight;return P<=M&&O>M}forEachLeafNode(w){var M,P;(P=(M=this.rootNode)==null?void 0:M.allLeafChildren)==null||P.forEach((O,G)=>w(O,G))}forEachNode(w,M=!1){var P;this.recursivelyWalkNodesAndCallback({nodes:[...((P=this.rootNode)==null?void 0:P.childrenAfterGroup)||[]],callback:w,recursionType:g.Normal,index:0,includeFooterNodes:M})}forEachNodeAfterFilter(w,M=!1){var P;this.recursivelyWalkNodesAndCallback({nodes:[...((P=this.rootNode)==null?void 0:P.childrenAfterAggFilter)||[]],callback:w,recursionType:g.AfterFilter,index:0,includeFooterNodes:M})}forEachNodeAfterFilterAndSort(w,M=!1){var P;this.recursivelyWalkNodesAndCallback({nodes:[...((P=this.rootNode)==null?void 0:P.childrenAfterSort)||[]],callback:w,recursionType:g.AfterFilterAndSort,index:0,includeFooterNodes:M})}forEachPivotNode(w,M=!1){let P=this.rootNode;P&&this.recursivelyWalkNodesAndCallback({nodes:[P],callback:w,recursionType:g.PivotNodes,index:0,includeFooterNodes:M})}recursivelyWalkNodesAndCallback(w){let{nodes:M,callback:P,recursionType:O,includeFooterNodes:G}=w,{index:j}=w,{footerSvc:Y}=this.beans;Y==null||Y.addNodes(w,M,P,G,this.rootNode,"top");for(let J=0;J<M.length;J++){let ne=M[J];if(P(ne,j++),ne.hasChildren()&&!ne.footer){let ce=null;switch(O){case g.Normal:ce=ne.childrenAfterGroup;break;case g.AfterFilter:ce=ne.childrenAfterAggFilter;break;case g.AfterFilterAndSort:ce=ne.childrenAfterSort;break;case g.PivotNodes:ce=ne.leafGroup?null:ne.childrenAfterSort}ce&&(j=this.recursivelyWalkNodesAndCallback({nodes:[...ce],callback:P,recursionType:O,index:j,includeFooterNodes:G}))}}return Y==null||Y.addNodes(w,M,P,G,this.rootNode,"bottom"),j}doAggregate(w){var P;let M=this.rootNode;M&&((P=this.aggStage)==null||P.execute({rowNode:M,changedPath:w}))}doFilterAggregates(w){let M=this.rootNode;this.filterAggStage?this.filterAggStage.execute({rowNode:M,changedPath:w}):M.childrenAfterAggFilter=M.childrenAfterFilter}doSort(w,M){let{groupHideOpenParentsSvc:P}=this.beans;this.sortStage?this.sortStage.execute({rowNode:this.rootNode,changedRowNodes:w,changedPath:M}):M.forEachChangedNodeDepthFirst(O=>{P==null||P.pullDownGroupDataForHideOpenParents(O.childrenAfterAggFilter,!0),O.childrenAfterSort=O.childrenAfterAggFilter.slice(0),(0,h.updateRowNodeAfterSort)(O)}),P==null||P.updateGroupDataForHideOpenParents(M)}doRowGrouping(w,M,P,O,G){let j=this.nodeManager.treeData,Y=this.rootNode;if(!j){let J=this.groupStage;if(J)J.execute({rowNode:Y,changedPath:P,changedRowNodes:M,rowNodeTransactions:w,rowNodesOrderChanged:O,afterColumnsChanged:G});else{let ne=Y.sibling;Y.childrenAfterGroup=Y.allLeafChildren,ne&&(ne.childrenAfterGroup=Y.childrenAfterGroup),Y.updateHasChildren()}}this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(w){this.filterStage?this.filterStage.execute({rowNode:this.rootNode,changedPath:w}):w.forEachChangedNodeDepthFirst(M=>{M.childrenAfterFilter=M.childrenAfterGroup,(0,c.updateRowNodeAfterFilter)(M)},!0)}doPivot(w){var M;(M=this.pivotStage)==null||M.execute({rowNode:this.rootNode,changedPath:w})}getRowNode(w){if(typeof w=="string"&&w.indexOf(E.ROW_ID_PREFIX_ROW_GROUP)==0){let M;return this.forEachNode(P=>{P.id===w&&(M=P)}),M}return this.nodeManager.getRowNode(w)}batchUpdateRowData(w,M){if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];let P=this.gos.get("asyncTransactionWaitMillis");this.applyAsyncTransactionsTimeout=window.setTimeout(()=>{this.isAlive()&&this.executeBatchUpdateRowData()},P)}this.rowDataTransactionBatch.push({rowDataTransaction:w,callback:M})}flushAsyncTransactions(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){var G,j;(G=this.valueCache)==null||G.onDataChanged();let w=[],M=[],P=new s.ChangedRowNodes,O=!1;(j=this.rowDataTransactionBatch)==null||j.forEach(Y=>{this.rowNodesCountReady=!0;let{rowNodeTransaction:J,rowsInserted:ne}=this.nodeManager.updateRowData(Y.rowDataTransaction,P);ne&&(O=!0),M.push(J),Y.callback&&w.push(Y.callback.bind(null,J))}),this.commitTransactions(M,O,P),w.length>0&&window.setTimeout(()=>{w.forEach(Y=>Y())},0),M.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:M}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(w){var G;(G=this.valueCache)==null||G.onDataChanged(),this.rowNodesCountReady=!0;let M=new s.ChangedRowNodes,{rowNodeTransaction:P,rowsInserted:O}=this.nodeManager.updateRowData(w,M);return this.commitTransactions([P],O,M),P}commitTransactions(w,M,P){this.refreshModel({step:"group",rowDataUpdated:!0,rowNodeTransactions:w,rowNodesOrderChanged:M,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:P,changedPath:this.createChangePath(w)})}doRowsToDisplay(){var O;let{flattenStage:w,rootNode:M}=this,P;if(w)P=w.execute({rowNode:M});else{P=(O=M==null?void 0:M.childrenAfterSort)!=null?O:[];for(let G of P)G.setUiLevel(0)}this.rowsToDisplay=P}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}resetRowHeights(){let w=this.rootNode;if(!w)return;let M=this.resetRowHeightsForAllRowNodes();w.setRowHeight(w.rowHeight,!0),w.sibling&&w.sibling.setRowHeight(w.sibling.rowHeight,!0),M&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let w=!1;return this.forEachNode(M=>{M.setRowHeight(M.rowHeight,!0);let P=M.detailNode;P&&P.setRowHeight(P.rowHeight,!0),M.sibling&&M.sibling.setRowHeight(M.sibling.rowHeight,!0),w=!0}),w}onGridStylesChanges(w){var M;if(w.rowHeightChanged){if((M=this.beans.rowAutoHeight)!=null&&M.active)return;this.resetRowHeights()}}onGridReady(){this.started||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}destroy(){super.destroy(),this.clearHighlightedRow(),this.started=!1,this.rootNode=null,this.nodeManager=null,this.rowDataTransactionBatch=null,this.lastHighlightedRow=null,this.orderedStages=T._EmptyArray,this.rowsToDisplay=T._EmptyArray}}x.ClientSideRowModel=f},4452:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getBestCostNodeSelection=x.flushAsyncTransactions=x.applyTransactionAsync=x.applyTransaction=x.resetRowHeights=x.forEachNodeAfterFilterAndSort=x.forEachNodeAfterFilter=x.forEachLeafNode=x.isRowDataEmpty=x.refreshClientSideRowModel=x.onGroupExpandedOrCollapsed=void 0;let A=p(6876),E=p(7764);x.onGroupExpandedOrCollapsed=function(z){var T;(T=z.expansionSvc)==null||T.onGroupExpandedOrCollapsed()},x.refreshClientSideRowModel=function(z,T){let b=(0,A._getClientSideRowModel)(z);b&&(T&&T!=="everything"||(T="group"),b.refreshModel({step:T,keepRenderedRows:!0,animate:!z.gos.get("suppressAnimationFrame")}))},x.isRowDataEmpty=function(z){var T,b;return(b=(T=(0,A._getClientSideRowModel)(z))==null?void 0:T.isEmpty())!=null?b:!0},x.forEachLeafNode=function(z,T){var b;(b=(0,A._getClientSideRowModel)(z))==null||b.forEachLeafNode(T)},x.forEachNodeAfterFilter=function(z,T){var b;(b=(0,A._getClientSideRowModel)(z))==null||b.forEachNodeAfterFilter(T)},x.forEachNodeAfterFilterAndSort=function(z,T){var b;(b=(0,A._getClientSideRowModel)(z))==null||b.forEachNodeAfterFilterAndSort(T)},x.resetRowHeights=function(z){var T,b;(T=z.rowAutoHeight)!=null&&T.active?(0,E._warn)(3):(b=(0,A._getClientSideRowModel)(z))==null||b.resetRowHeights()},x.applyTransaction=function(z,T){return z.frameworkOverrides.wrapIncoming(()=>{var b;return(b=(0,A._getClientSideRowModel)(z))==null?void 0:b.updateRowData(T)})},x.applyTransactionAsync=function(z,T,b){z.frameworkOverrides.wrapIncoming(()=>{var C;return(C=(0,A._getClientSideRowModel)(z))==null?void 0:C.batchUpdateRowData(T,b)})},x.flushAsyncTransactions=function(z){z.frameworkOverrides.wrapIncoming(()=>{var T;return(T=(0,A._getClientSideRowModel)(z))==null?void 0:T.flushAsyncTransactions()})},x.getBestCostNodeSelection=function(z){var T;return(T=z.selectionSvc)==null?void 0:T.getBestCostNodeSelection()}},9722:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ClientSideRowModelApiModule=x.ClientSideRowModelModule=void 0;let A=p(6437),E=p(6620),z=p(7205),T=p(5747),b=p(3278),C=p(4452),d=p(9849);x.ClientSideRowModelModule={moduleName:"ClientSideRowModel",version:z.VERSION,rowModels:["clientSide"],beans:[T.ClientSideNodeManager,b.ClientSideRowModel,d.SortStage],dependsOn:[E.SortModule]},x.ClientSideRowModelApiModule={moduleName:"ClientSideRowModelApi",version:z.VERSION,rowModels:["clientSide"],apiFunctions:{onGroupExpandedOrCollapsed:C.onGroupExpandedOrCollapsed,refreshClientSideRowModel:C.refreshClientSideRowModel,isRowDataEmpty:C.isRowDataEmpty,forEachLeafNode:C.forEachLeafNode,forEachNodeAfterFilter:C.forEachNodeAfterFilter,forEachNodeAfterFilterAndSort:C.forEachNodeAfterFilterAndSort,resetRowHeights:C.resetRowHeights,applyTransaction:C.applyTransaction,applyTransactionAsync:C.applyTransactionAsync,flushAsyncTransactions:C.flushAsyncTransactions,getBestCostNodeSelection:C.getBestCostNodeSelection},dependsOn:[A.CsrmSsrmSharedApiModule]}},8287:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FilterStage=x.updateRowNodeAfterFilter=void 0;let A=p(8731);function E(T){T.sibling&&(T.sibling.childrenAfterFilter=T.childrenAfterFilter)}x.updateRowNodeAfterFilter=E;class z extends A.BeanStub{constructor(){super(...arguments),this.beanName="filterStage",this.refreshProps=new Set(["excludeChildrenWhenTreeDataFiltering"]),this.step="filter"}wireBeans(b){this.filterManager=b.filterManager}execute(b){let{changedPath:C}=b;this.filter(C)}filter(b){var d;let C=!!((d=this.filterManager)!=null&&d.isChildFilterPresent());this.filterNodes(C,b)}filterNodes(b,C){let d=(s,c)=>{s.hasChildren()?s.childrenAfterFilter=b&&!c?s.childrenAfterGroup.filter(h=>{let g=h.childrenAfterFilter&&h.childrenAfterFilter.length>0,f=h.data&&this.filterManager.doesRowPassFilter({rowNode:h});return g||f}):s.childrenAfterGroup:s.childrenAfterFilter=s.childrenAfterGroup,E(s)};if(this.doingTreeDataFiltering()){let s=(h,g)=>{if(h.childrenAfterGroup)for(let f=0;f<h.childrenAfterGroup.length;f++){let S=h.childrenAfterGroup[f],w=g||this.filterManager.doesRowPassFilter({rowNode:S});S.childrenAfterGroup?s(h.childrenAfterGroup[f],w):d(S,w)}d(h,g)},c=h=>s(h,!1);C.executeFromRootNode(c)}else{let s=c=>d(c,!1);C.forEachChangedNodeDepthFirst(s,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}}x.FilterStage=z},9849:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SortStage=x.updateRowNodeAfterSort=void 0;let A=p(8731),E=p(7274),z=p(4422);function T(C){C.sibling&&(C.sibling.childrenAfterSort=C.childrenAfterSort),function(d){if((0,z._missing)(d.childrenAfterSort))return;let s=d.childrenAfterSort;for(let c=0;c<s.length;c++){let h=s[c],g=c===0,f=c===d.childrenAfterSort.length-1;h.setFirstChild(g),h.lastChild!==f&&(h.lastChild=f,h.dispatchRowEvent("lastChildChanged")),h.childIndex!==c&&(h.childIndex=c,h.dispatchRowEvent("childIndexChanged"))}}(C)}x.updateRowNodeAfterSort=T;class b extends A.BeanStub{constructor(){super(...arguments),this.beanName="sortStage",this.refreshProps=new Set(["postSortRows","groupDisplayType","accentedSort"]),this.step="sort"}execute(d){let s=this.beans,c=s.sortSvc.getSortOptions(),h=(0,z._exists)(c)&&c.length>0,g=h&&!!d.changedRowNodes&&this.gos.get("deltaSort"),f=c.some(({column:S})=>(0,E._isColumnsSortingCoupledToGroup)(s.gos)?S.isPrimary()&&S.isRowGroupActive():!!S.getColDef().showRowGroup);this.sort(s,c,h,g,d.changedRowNodes,d.changedPath,f)}sort(d,s,c,h,g,f,S){let{gos:w,colModel:M,rowGroupColsSvc:P,groupHideOpenParentsSvc:O,rowNodeSorter:G}=d,j=w.get("groupMaintainOrder"),Y=M.getCols().some(ce=>ce.isRowGroupActive()),J=M.isPivotMode(),ne=w.getCallback("postSortRows");f==null||f.forEachChangedNodeDepthFirst(ce=>{var Le;O==null||O.pullDownGroupDataForHideOpenParents(ce.childrenAfterAggFilter,!0);let fe=J&&ce.leafGroup,xe;if(j&&Y&&!ce.leafGroup&&!S){let _e=(Le=P==null?void 0:P.columns)==null?void 0:Le[ce.level+1],Fe=(_e==null?void 0:_e.getSort())===null,We=ce.childrenAfterAggFilter.slice(0);if(ce.childrenAfterSort&&!Fe){let it={};ce.childrenAfterSort.forEach((tt,ot)=>{it[tt.id]=ot}),We.sort((tt,ot)=>{var st,St;return((st=it[tt.id])!=null?st:0)-((St=it[ot.id])!=null?St:0)})}xe=We}else xe=!c||fe?ce.childrenAfterAggFilter.slice(0):h&&g?function(_e,Fe,We,it,tt){let ot=Fe.childrenAfterAggFilter,st=Fe.childrenAfterSort;if(!st)return _e.doFullSort(ot,tt);let St=new Set,Xe=[],Ke=We.updates;for(let Ze=0,Pe=ot.length;Ze<Pe;++Ze){let ct=ot[Ze];Ke.has(ct)||it&&!it.canSkip(ct)?Xe.push({currentPos:Xe.length,rowNode:ct}):St.add(ct.id)}let Ye=st.filter(Ze=>St.has(Ze.id)).map((Ze,Pe)=>({currentPos:Pe,rowNode:Ze}));return Xe.sort((Ze,Pe)=>_e.compareRowNodes(tt,Ze,Pe)),function(Ze,Pe,ct,dt){let bt=[],Pt=0,Nt=0,ft=ct.length,Lt=dt.length;for(;Pt<ft&&Nt<Lt;){let Vt=ct[Pt],Jt=dt[Nt],$t;Ze.compareRowNodes(Pe,Vt,Jt)<0?($t=Vt,++Pt):($t=Jt,++Nt),bt.push($t.rowNode)}for(;Pt<ft;)bt.push(ct[Pt++].rowNode);for(;Nt<Lt;)bt.push(dt[Nt++].rowNode);return bt}(_e,tt,Xe,Ye)}(G,ce,g,f,s):G.doFullSort(ce.childrenAfterAggFilter,s);if(ce.childrenAfterSort=xe,T(ce),ne){let _e={nodes:ce.childrenAfterSort};ne(_e)}})}}x.SortStage=b},3218:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.autoSizeAllColumns=x.autoSizeColumns=x.sizeColumnsToFit=void 0,x.sizeColumnsToFit=function(p,A){var E,z;typeof A=="number"?(E=p.colAutosize)==null||E.sizeColumnsToFit(A,"api"):(z=p.colAutosize)==null||z.sizeColumnsToFitGridBody(A)},x.autoSizeColumns=function(p,A,E){var z;(z=p.colAutosize)==null||z.autoSizeCols({colKeys:A,skipHeader:E,source:"api"})},x.autoSizeAllColumns=function(p,A){var E;(E=p.colAutosize)==null||E.autoSizeAllColumns("api",A)}},3856:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnAutoSizeModule=void 0;let A=p(447),E=p(7205),z=p(3218),T=p(4817);x.ColumnAutoSizeModule={moduleName:"ColumnAutoSize",version:E.VERSION,beans:[T.ColumnAutosizeService],apiFunctions:{sizeColumnsToFit:z.sizeColumnsToFit,autoSizeColumns:z.autoSizeColumns,autoSizeAllColumns:z.autoSizeAllColumns},dependsOn:[A.AutoWidthModule]}},4817:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnAutosizeService=void 0;let A=p(2934),E=p(3146),z=p(8731),T=p(1502),b=p(3507),C=p(7764),d=p(9644);class s extends z.BeanStub{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered()})}autoSizeCols(g){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation(()=>this.autoSizeCols(g));let{colKeys:f,skipHeader:S,skipHeaderGroups:w,stopAtGroup:M,source:P="api"}=g,{animationFrameSvc:O,renderStatus:G,colModel:j,autoWidthCalc:Y,visibleCols:J}=this.beans;if(O==null||O.flushAllFrames(),this.timesDelayed<5&&G&&!G.areHeaderCellsRendered())return this.timesDelayed++,void setTimeout(()=>{this.isAlive()&&this.autoSizeCols(g)});this.timesDelayed=0;let ne=[],ce=-1,fe=S!=null?S:this.gos.get("skipHeaderOnAutoSize"),xe=w!=null?w:fe;for(;ce!==0;){ce=0;let Le=[];f.forEach(_e=>{if(!_e)return;let Fe=j.getCol(_e);if(!Fe||ne.indexOf(Fe)>=0)return;let We=Y.getPreferredWidthForColumn(Fe,fe);if(We>0){let it=c(Fe,We);Fe.setActualWidth(it,P),ne.push(Fe),ce++}Le.push(Fe)}),Le.length&&J.refresh(P)}xe||this.autoSizeColumnGroupsByColumns(f,P,M),(0,A.dispatchColumnResizedEvent)(this.eventSvc,ne,!0,"autosizeColumns")}autoSizeColumn(g,f,S){g&&this.autoSizeCols({colKeys:[g],skipHeader:S,skipHeaderGroups:!0,source:f})}autoSizeColumnGroupsByColumns(g,f,S){let{colModel:w,ctrlsSvc:M}=this.beans,P=new Set,O;w.getColsForKeys(g).forEach(G=>{let j=G.getParent();for(;j&&j!=S;)j.isPadding()||P.add(j),j=j.getParent()});for(let G of P){for(let j of M.getHeaderRowContainerCtrls())if(O=j.getHeaderCtrlForColumn(G),O)break;O&&O.resizeLeafColumnsToFit(f)}return[]}autoSizeAllColumns(g,f){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation(()=>this.autoSizeAllColumns(g,f));let S=this.beans.visibleCols.allCols;this.autoSizeCols({colKeys:S,skipHeader:f,source:g})}addColumnAutosize(g,f){let S=this.gos.get("skipHeaderOnAutoSize"),w=()=>{this.autoSizeColumn(f,"uiColumnResized",S)};g.addEventListener("dblclick",w);let M=new d.TouchListener(g);return M.addEventListener("doubleTap",w),()=>{g.removeEventListener("dblclick",w),M.removeEventListener("doubleTap",w),M.destroy()}}addColumnGroupResize(g,f,S){let w=this.gos.get("skipHeaderOnAutoSize"),M=()=>{let P=[];f.getDisplayedLeafColumns().forEach(O=>{O.getColDef().suppressAutoSize||P.push(O.getColId())}),P.length>0&&this.autoSizeCols({colKeys:P,skipHeader:w,stopAtGroup:f,source:"uiColumnResized"}),S()};return g.addEventListener("dblclick",M),()=>g.removeEventListener("dblclick",M)}sizeColumnsToFitGridBody(g,f){if(!this.isAlive())return;let{ctrlsSvc:S,scrollVisibleSvc:w}=this.beans,M=S.getGridBodyCtrl(),P=M.isVerticalScrollShowing()?w.getScrollbarWidth():0,O=(0,b._getInnerWidth)(M.eGridBody)-P;O>0?this.sizeColumnsToFit(O,"sizeColumnsToFit",!1,g):f===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(g,100)},0):f===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(g,500)},100):f===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(g,-1)},500):(0,C._warn)(29)}sizeColumnsToFit(g,f="sizeColumnsToFit",S,w){var fe,xe,Le;if(this.shouldQueueResizeOperations)return void this.pushResizeOperation(()=>this.sizeColumnsToFit(g,f,S,w));let M={};w&&((fe=w==null?void 0:w.columnLimits)==null||fe.forEach(We=>{var it=We,{key:_e}=it,Fe=wi(it,["key"]);M[typeof _e=="string"?_e:_e.getColId()]=Fe}));let P=this.beans.visibleCols.allCols,O=g===(0,E.getWidthOfColsInList)(P);if(g<=0||!P.length||O)return;let G=[],j=[];P.forEach(_e=>{_e.getColDef().suppressSizeToFit===!0?j.push(_e):G.push(_e)});let Y=G.slice(0),J=!1,ne=_e=>{(0,T._removeFromArray)(G,_e),j.push(_e)};for(G.forEach(_e=>{var ot,st;_e.resetActualWidth(f);let Fe=M==null?void 0:M[_e.getId()],We=(ot=Fe==null?void 0:Fe.minWidth)!=null?ot:w==null?void 0:w.defaultMinWidth,it=(st=Fe==null?void 0:Fe.maxWidth)!=null?st:w==null?void 0:w.defaultMaxWidth,tt=_e.getActualWidth();typeof We=="number"&&tt<We?_e.setActualWidth(We,f,!0):typeof it=="number"&&tt>it&&_e.setActualWidth(it,f,!0)});!J;){J=!0;let _e=g-(0,E.getWidthOfColsInList)(j);if(_e<=0)G.forEach(Fe=>{var it,tt;let We=(tt=(it=M==null?void 0:M[Fe.getId()])==null?void 0:it.minWidth)!=null?tt:w==null?void 0:w.defaultMinWidth;typeof We!="number"?Fe.setActualWidth(Fe.minWidth,f):Fe.setActualWidth(We,f,!0)});else{let Fe=_e/(0,E.getWidthOfColsInList)(G),We=_e;for(let it=G.length-1;it>=0;it--){let tt=G[it],ot=M==null?void 0:M[tt.getId()],st=(xe=ot==null?void 0:ot.minWidth)!=null?xe:w==null?void 0:w.defaultMinWidth,St=(Le=ot==null?void 0:ot.maxWidth)!=null?Le:w==null?void 0:w.defaultMaxWidth,Xe=tt.getMinWidth(),Ke=tt.getMaxWidth(),Ye=typeof st=="number"&&st>Xe?st:Xe,Ze=typeof St=="number"&&St<Ke?St:Ke,Pe=Math.round(tt.getActualWidth()*Fe);Pe<Ye?(Pe=Ye,ne(tt),J=!1):Pe>Ze?(Pe=Ze,ne(tt),J=!1):it===0&&(Pe=We),tt.setActualWidth(Pe,f,!0),We-=Pe}}}Y.forEach(_e=>{_e.fireColumnWidthChangedEvent(f)});let ce=this.beans.visibleCols;ce.setLeftValues(f),ce.updateBodyWidths(),S||(0,A.dispatchColumnResizedEvent)(this.eventSvc,Y,!0,f)}applyAutosizeStrategy(){let g=this.gos.get("autoSizeStrategy");if(!g)return;let{type:f}=g;setTimeout(()=>{if(f==="fitGridWidth"){let{columnLimits:S,defaultMinWidth:w,defaultMaxWidth:M}=g,P=S==null?void 0:S.map(({colId:O,minWidth:G,maxWidth:j})=>({key:O,minWidth:G,maxWidth:j}));this.sizeColumnsToFitGridBody({defaultMinWidth:w,defaultMaxWidth:M,columnLimits:P})}else f==="fitProvidedWidth"&&this.sizeColumnsToFit(g.width,"sizeColumnsToFit")})}onFirstDataRendered(){let g=this.gos.get("autoSizeStrategy");if((g==null?void 0:g.type)!=="fitCellContents")return;let{colIds:f,skipHeader:S}=g;setTimeout(()=>{f?this.autoSizeCols({colKeys:f,skipHeader:S,source:"autosizeColumns"}):this.autoSizeAllColumns("autosizeColumns",S)})}processResizeOperations(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach(g=>g()),this.resizeOperationQueue=[]}pushResizeOperation(g){this.resizeOperationQueue.push(g)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}}function c(h,g){let f=h.getMinWidth();g<f&&(g=f);let S=h.getMaxWidth();return h.isGreaterThanMax(g)&&(g=S),g}x.ColumnAutosizeService=s},9607:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.columnMovingCSS=void 0,x.columnMovingCSS=":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}"},9122:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnAnimationService=void 0;let A=p(8731);class E extends A.BeanStub{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,T=>this.gridBodyCtrl=T.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(T){this.suppressAnimation=T}start(){if(this.active)return;let{gos:T}=this;T.get("suppressColumnMoveAnimation")||T.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(T){this.activeNext?this.executeNextFuncs.push(T):T()}executeLaterVMTurn(T){this.active?this.executeLaterFuncs.push(T):T()}ensureAnimationCssClassPresent(){this.animationThreadCount++;let T=this.animationThreadCount,{gridBodyCtrl:b}=this;b.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===T&&b.setColumnMovingCss(!1)})}flush(T,b){let{executeNextFuncs:C,executeLaterFuncs:d}=this;if(C.length===0&&d.length===0)return T(),void b();let s=c=>{for(;c.length;){let h=c.pop();h&&h()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{T(),s(C)},0),window.setTimeout(()=>{b(),s(d)},200)})}}x.ColumnAnimationService=E},3052:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BodyDropPivotTarget=void 0;let A=p(8731);class E extends A.BeanStub{constructor(T){super(),this.pinned=T,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(T){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;let b=T.dragItem.columns;b&&b.forEach(C=>{C.isPrimary()&&(C.isAnyFunctionActive()||(C.isAllowValue()?this.columnsToAggregate.push(C):C.isAllowRowGroup()?this.columnsToGroup.push(C):C.isAllowPivot()&&this.columnsToPivot.push(C)))})}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(T){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(T){}onDragStop(T){let{valueColsSvc:b,rowGroupColsSvc:C,pivotColsSvc:d}=this.beans;this.columnsToAggregate.length>0&&(b==null||b.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop")),this.columnsToGroup.length>0&&(C==null||C.addColumns(this.columnsToGroup,"toolPanelDragAndDrop")),this.columnsToPivot.length>0&&(d==null||d.addColumns(this.columnsToPivot,"toolPanelDragAndDrop"))}onDragCancel(){this.clearColumnsList()}}x.BodyDropPivotTarget=E},7912:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BodyDropTarget=void 0;let A=p(8731),E=p(2903),z=p(3052),T=p(2909);class b extends A.BeanStub{constructor(d,s){super(),this.pinned=d,this.eContainer=s}postConstruct(){let{ctrlsSvc:d,dragAndDrop:s}=this.beans,c=this.pinned;d.whenReady(this,h=>{let g,f=h.gridBodyCtrl.eBodyViewport;switch(c){case"left":g=[[f,h.left.eContainer],[h.bottomLeft.eContainer],[h.topLeft.eContainer]];break;case"right":g=[[f,h.right.eContainer],[h.bottomRight.eContainer],[h.topRight.eContainer]];break;default:g=[[f,h.center.eViewport],[h.bottomCenter.eViewport],[h.topCenter.eViewport]]}this.eSecondaryContainers=g}),this.moveColumnFeature=this.createManagedBean(new T.MoveColumnFeature(c)),this.bodyDropPivotTarget=this.createManagedBean(new z.BodyDropPivotTarget(c)),s.addDropTarget(this),this.addDestroyFunc(()=>s.removeDropTarget(this))}isInterestedIn(d){return d===E.DragSourceType.HeaderCell||d===E.DragSourceType.ToolPanel&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(d){return this.beans.colModel.isPivotMode()&&d.dragSource.type===E.DragSourceType.ToolPanel}onDragEnter(d){this.currentDropListener=this.isDropColumnInPivotMode(d)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(d)}onDragLeave(d){this.currentDropListener.onDragLeave(d)}onDragging(d){this.currentDropListener.onDragging(d)}onDragStop(d){this.currentDropListener.onDragStop(d)}onDragCancel(){this.currentDropListener.onDragCancel()}}x.BodyDropTarget=b},2909:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.MoveColumnFeature=void 0;let A=p(8731),E=p(2903),z=p(2783),T=p(1502),b=p(4422),C=p(5446);class d extends A.BeanStub{constructor(h){super(),this.pinned=h,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!(0,b._exists)(h)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,h=>{this.gridBodyCon=h.gridBodyCtrl})}getIconName(){var S;let{pinned:h,lastDraggingEvent:g}=this,f=(S=g==null?void 0:g.dragItem.columns)!=null?S:[];for(let w of f){let M=w.getPinned();if(w.getColDef().lockPinned){if(M==h)return"move"}else{if(M===h||!h)return"move";if(!M&&h)return"pinned"}}return"notAllowed"}onDragEnter(h){let g=h.dragItem,f=g.columns;if(h.dragSource.type===E.DragSourceType.ToolPanel)this.setColumnsVisible(f,!0,"uiColumnDragged");else{let S=g.visibleState,w=(f||[]).filter(M=>S[M.getId()]);this.setColumnsVisible(w,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(f,this.pinned),this.onDragging(h,!0,!0)}onDragging(h=this.lastDraggingEvent,g=!1,f=!1,S=!1){let{gos:w,ctrlsSvc:M}=this.beans,P=w.get("suppressMoveWhenColumnDragging");if(S&&!P)return void this.finishColumnMoving();if(this.lastDraggingEvent=h,!h||!S&&(0,b._missing)(h.hDirection))return;let O=(0,C.normaliseX)({x:h.x,pinned:this.pinned,gos:w,ctrlsSvc:M});g||this.checkCenterForScrolling(O),P?this.handleColumnDragWhileSuppressingMovement(h,g,f,O,S):this.handleColumnDragWhileAllowingMovement(h,g,f,O,S)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(h,g,f){if(!h)return;let S=h.filter(w=>!w.getColDef().lockVisible);this.beans.colModel.setColsVisible(S,g,f)}finishColumnMoving(){this.clearHighlighted();let h=this.lastMovedInfo;if(!h)return;let{columns:g,toIndex:f}=h;this.beans.colMoves.moveColumns(g,f,"uiColumnMoved",!0)}handleColumnDragWhileSuppressingMovement(h,g,f,S,w){let M=this.getAllMovingColumns(h,!0);if(w){let P=this.isAttemptingToPin(M);P&&this.attemptToPinColumns(M,void 0,!0);let{fromLeft:O,xPosition:G}=this.getNormalisedXPositionInfo(M,P)||{};if(O==null||G==null)return void this.finishColumnMoving();this.moveColumnsAfterHighlight({allMovingColumns:M,xPosition:G,fromEnter:g,fakeEvent:f,fromLeft:O})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(h))return;this.highlightHoveredColumn(M,S)}}handleColumnDragWhileAllowingMovement(h,g,f,S,w){let M=this.getAllMovingColumns(h),P=this.normaliseDirection(h.hDirection)==="right",O=h.dragSource.type===E.DragSourceType.HeaderCell,G=this.getMoveColumnParams({allMovingColumns:M,isFromHeader:O,xPosition:S,fromLeft:P,fromEnter:g,fakeEvent:f}),j=(0,C.attemptMoveColumns)(He(ge({},G),{finished:w}));j&&(this.lastMovedInfo=j)}getAllMovingColumns(h,g=!1){let f=h.dragSource.getDragItem(),S=null;return g?(S=f.columnsInSplit,S||(S=f.columns)):S=f.columns,S?S.filter(w=>!w.getColDef().lockPinned||w.getPinned()==this.pinned):[]}getMoveColumnParams(h){let{allMovingColumns:g,isFromHeader:f,xPosition:S,fromLeft:w,fromEnter:M,fakeEvent:P}=h,{gos:O,colModel:G,colMoves:j,visibleCols:Y}=this.beans;return{allMovingColumns:g,isFromHeader:f,fromLeft:w,xPosition:S,pinned:this.pinned,fromEnter:M,fakeEvent:P,gos:O,colModel:G,colMoves:j,visibleCols:Y}}highlightHoveredColumn(h,g){var Y;let{gos:f,colModel:S}=this.beans,w=f.get("enableRtl"),M=S.getCols().filter(J=>J.isVisible()&&J.getPinned()===this.pinned),P,O=null,G=null,j=null;for(let J of M){if(G=J.getActualWidth(),O=this.getNormalisedColumnLeft(J,0,w),O!=null&&O<=g&&O+G>=g){j=J;break}O=null,G=null}if(j)h.indexOf(j)!==-1&&(j=null);else{for(let J=M.length-1;J>=0;J--){let ne=M[J],ce=M[J].getParent();if(!ce){j=ne;break}let fe=ce==null?void 0:ce.getDisplayedLeafColumns();if(fe.length){j=(0,T._last)(fe);break}}if(!j)return;O=this.getNormalisedColumnLeft(j,0,w),G=j.getActualWidth()}((Y=this.lastHighlightedColumn)==null?void 0:Y.column)!==j&&this.clearHighlighted(),j!=null&&O!=null&&G!=null&&(P=g-O<G/2!==w?z.ColumnHighlightPosition.Before:z.ColumnHighlightPosition.After,s(j,P),this.lastHighlightedColumn={column:j,position:P})}getNormalisedXPositionInfo(h,g){let{gos:f,visibleCols:S}=this.beans,w=f.get("enableRtl"),{firstMovingCol:M,column:P,position:O}=this.getColumnMoveAndTargetInfo(h,g,w);if(!M||!P||O==null)return;let G=S.allCols,j=G.indexOf(M),Y=G.indexOf(P),J=O===z.ColumnHighlightPosition.Before!==w,ne=j<Y||j===Y&&!J,ce=0;if(J?ne&&(ce-=1):ne||(ce+=1),Y+ce===j)return;let fe=G[Y+ce];if(fe)return{fromLeft:ne,xPosition:this.getNormalisedColumnLeft(fe,20,w)}}getColumnMoveAndTargetInfo(h,g,f){let S=this.lastHighlightedColumn||{},{firstMovingCol:w,lastMovingCol:M}=function(O){let G=O.length,j,Y;for(let J=0;J<=G;J++){if(!j){let ne=O[J];ne.getLeft()!=null&&(j=ne)}if(!Y){let ne=O[G-1-J];ne.getLeft()!=null&&(Y=ne)}if(j&&Y)break}return{firstMovingCol:j,lastMovingCol:Y}}(h);if(!w||!M||S.column||!g)return ge({firstMovingCol:w},S);let P=this.getPinDirection()==="left";return{firstMovingCol:w,position:P?z.ColumnHighlightPosition.After:z.ColumnHighlightPosition.Before,column:P!==f?w:M}}normaliseDirection(h){if(this.gos.get("enableRtl"))switch(h){case"left":return"right";case"right":return"left"}return h}getNormalisedColumnLeft(h,g,f){let{gos:S,ctrlsSvc:w}=this.beans,M=h.getLeft();if(M==null)return null;let P=h.getActualWidth();return(0,C.normaliseX)({x:f?M+P-g:M+g,pinned:h.getPinned(),useHeaderRow:f,skipScrollPadding:!0,gos:S,ctrlsSvc:w})}isAttemptingToPin(h){let g=this.needToMoveLeft||this.needToMoveRight,f=this.failedMoveAttempts>7;return g&&f||h.some(S=>S.getPinned()!==this.pinned)}moveColumnsAfterHighlight(h){let{allMovingColumns:g,xPosition:f,fromEnter:S,fakeEvent:w,fromLeft:M}=h,P=this.getMoveColumnParams({allMovingColumns:g,isFromHeader:!0,xPosition:f,fromLeft:M,fromEnter:S,fakeEvent:w}),{columns:O,toIndex:G}=(0,C.getBestColumnMoveIndexFromXPosition)(P)||{};O&&G!=null&&(this.lastMovedInfo={columns:O,toIndex:G}),this.finishColumnMoving()}clearHighlighted(){let{lastHighlightedColumn:h}=this;h&&(s(h.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(h){if(!this.isCenterContainer)return;let g=this.beans.ctrlsSvc.get("center"),f=g.getCenterViewportScrollLeft(),S=f+g.getCenterWidth(),w,M;this.gos.get("enableRtl")?(w=h<f+50,M=h>S-50):(M=h<f+50,w=h>S-50),this.needToMoveRight=w,this.needToMoveLeft=M,M||w?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){var h;this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),(h=this.beans.dragAndDrop.getDragAndDropImageComponent())==null||h.setIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){var h;this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,(h=this.beans.dragAndDrop.getDragAndDropImageComponent())==null||h.setIcon(this.getIconName(),!1))}moveInterval(){var S,w;let h;this.intervalCount++,h=10+5*this.intervalCount,h>100&&(h=100);let g=null,f=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?g=f.scrollHorizontally(-h):this.needToMoveRight&&(g=f.scrollHorizontally(h)),g!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;let{pinnedCols:M,dragAndDrop:P,gos:O}=this.beans;if(this.failedMoveAttempts<=8||!M)return;if((S=P.getDragAndDropImageComponent())==null||S.setIcon("pinned",!1),!O.get("suppressMoveWhenColumnDragging")){let G=(w=this.lastDraggingEvent)==null?void 0:w.dragItem.columns;this.attemptToPinColumns(G,void 0,!0)}}}getPinDirection(){return this.needToMoveLeft||this.pinned==="left"?"left":this.needToMoveRight||this.pinned==="right"?"right":void 0}attemptToPinColumns(h,g,f=!1){let S=(h||[]).filter(P=>!P.getColDef().lockPinned);if(!S.length)return 0;f&&(g=this.getPinDirection());let{pinnedCols:w,dragAndDrop:M}=this.beans;return w==null||w.setColsPinned(S,g,"uiColumnDragged"),f&&M.nudge(),S.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}}function s(c,h){c.highlighted!==h&&(c.highlighted=h,c.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}x.MoveColumnFeature=d},852:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.moveColumns=x.moveColumnByIndex=void 0,x.moveColumnByIndex=function(p,A,E){var z;(z=p.colMoves)==null||z.moveColumnByIndex(A,E,"api")},x.moveColumns=function(p,A,E){var z;(z=p.colMoves)==null||z.moveColumns(A,E,"api")}},4074:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnMoveModule=void 0;let A=p(4388),E=p(7205),z=p(9607),T=p(9122),b=p(852),C=p(4067);x.ColumnMoveModule={moduleName:"ColumnMove",version:E.VERSION,beans:[C.ColumnMoveService,T.ColumnAnimationService],apiFunctions:{moveColumnByIndex:b.moveColumnByIndex,moveColumns:b.moveColumns},dependsOn:[A.SharedDragAndDropModule],css:[z.columnMovingCSS]}},4067:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnMoveService=void 0;let A=p(8731),E=p(2903),z=p(6908),T=p(1502),b=p(7764),C=p(7912),d=p(3505),s=p(5446);var c;(function(g){g[g.LEFT=-1]="LEFT",g[g.NONE=0]="NONE",g[g.RIGHT=1]="RIGHT"})(c||(c={}));class h extends A.BeanStub{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(f,S,w){let M=this.beans.colModel.getCols();if(!M)return;let P=M[f];this.moveColumns([P],S,w)}moveColumns(f,S,w,M=!0){let{colModel:P,colAnimation:O,visibleCols:G,eventSvc:j}=this.beans,Y=P.getCols();if(!Y)return;if(S>Y.length-f.length)return void(0,b._warn)(30,{toIndex:S});O==null||O.start();let J=P.getColsForKeys(f);this.doesMovePassRules(J,S)&&((0,T._moveInArray)(P.getCols(),J,S),G.refresh(w),j.dispatchEvent({type:"columnMoved",columns:J,column:J.length===1?J[0]:null,toIndex:S,finished:M,source:w})),O==null||O.finish()}doesMovePassRules(f,S){let w=this.getProposedColumnOrder(f,S);return this.doesOrderPassRules(w)}doesOrderPassRules(f){let{colModel:S,gos:w}=this.beans;return(0,d.doesMovePassMarryChildren)(f,S.getColTree())?!!(M=>{let P=w.get("enableRtl"),O=P?c.RIGHT:c.LEFT,G=!0;return M.forEach(j=>{let Y=(J=j.getColDef().lockPosition)?J==="left"||J===!0?c.LEFT:c.RIGHT:c.NONE;var J;P?Y>O&&(G=!1):Y<O&&(G=!1),O=Y}),G})(f):!1}getProposedColumnOrder(f,S){let w=this.beans.colModel.getCols().slice();return(0,T._moveInArray)(w,f,S),w}createBodyDropTarget(f,S){return new C.BodyDropTarget(f,S)}moveHeader(f,S,w,M,P){let{ctrlsSvc:O,gos:G,colModel:j,visibleCols:Y,focusSvc:J}=this.beans,ne=S.getBoundingClientRect(),ce=ne.left,fe=(0,z.isColumnGroup)(w),xe=fe?ne.width:w.getActualWidth(),Le=f==="left"!==G.get("enableRtl"),_e=(0,s.normaliseX)({x:Le?ce-20:ce+xe+20,pinned:M,fromKeyboard:!0,gos:G,ctrlsSvc:O}),Fe=J.focusedHeader,We;if((0,s.attemptMoveColumns)({allMovingColumns:fe?w.getLeafColumns():[w],isFromHeader:!0,fromLeft:f==="right",xPosition:_e,pinned:M,fromEnter:!1,fakeEvent:!1,gos:G,colModel:j,colMoves:this,visibleCols:Y,finished:!0}),fe){let it=w.getDisplayedLeafColumns();We=Le?it[0]:(0,T._last)(it)}else We=w;if(O.getScrollFeature().ensureColumnVisible(We,"auto"),(!P.isAlive()||G.get("ensureDomOrder"))&&Fe){let it;if(fe){let tt=w.getGroupId(),ot=w.getLeafColumns();if(!ot.length)return;let st=ot[0].getParent();if(!st)return;it=function(St,Xe){for(;St;){if(St.getGroupId()===Xe)return St;St=St.getParent()}}(st,tt)}else it=w;it&&J.focusHeaderPosition({headerPosition:He(ge({},Fe),{column:it})})}}setDragSourceForHeader(f,S,w){let{gos:M,colModel:P,dragAndDrop:O,visibleCols:G}=this.beans,j=!M.get("suppressDragLeaveHidesColumns"),Y=(0,z.isColumnGroup)(S),J=Y?S.getProvidedColumnGroup().getLeafColumns():[S],ne=Y?()=>function(fe,xe){let Le=fe.getProvidedColumnGroup().getLeafColumns(),_e={};Le.forEach(tt=>_e[tt.getId()]=tt.isVisible());let Fe=[];xe.forEach(tt=>{Le.indexOf(tt)>=0&&(Fe.push(tt),(0,T._removeFromArray)(Le,tt))}),Le.forEach(tt=>Fe.push(tt));let We=[],it=fe.getLeafColumns();for(let tt of Fe)it.indexOf(tt)!==-1&&We.push(tt);return{columns:Fe,columnsInSplit:We,visibleState:_e}}(S,G.allCols):()=>function(fe){let xe={};return xe[fe.getId()]=fe.isVisible(),{columns:[fe],visibleState:xe}}(S),ce={type:E.DragSourceType.HeaderCell,eElement:f,getDefaultIconName:()=>j?"hide":"notAllowed",getDragItem:ne,dragItemName:w,onDragStarted:()=>{j=!M.get("suppressDragLeaveHidesColumns"),(0,s.setColumnsMoving)(J,!0)},onDragStopped:()=>(0,s.setColumnsMoving)(J,!1),onDragCancelled:()=>(0,s.setColumnsMoving)(J,!1),onGridEnter:fe=>{if(j){let{columns:xe=[],visibleState:Le}=fe!=null?fe:{},_e=Y?We=>!Le||Le[We.getColId()]:()=>!0,Fe=xe.filter(We=>!We.getColDef().lockVisible&&_e(We));P.setColsVisible(Fe,!0,"uiColumnMoved")}},onGridExit:fe=>{var xe;if(j){let Le=((xe=fe==null?void 0:fe.columns)==null?void 0:xe.filter(_e=>!_e.getColDef().lockVisible))||[];P.setColsVisible(Le,!1,"uiColumnMoved")}}};return O.addDragSource(ce,!0),ce}}x.ColumnMoveService=h},3505:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.doesMovePassMarryChildren=x.placeLockedColumns=void 0;let A=p(2716),E=p(9409);x.placeLockedColumns=function(z,T){let b=[],C=[],d=[];return z.forEach(s=>{let c=s.getColDef().lockPosition;c==="right"?d.push(s):c==="left"||c===!0?b.push(s):C.push(s)}),T.get("enableRtl")?[...d,...C,...b]:[...b,...C,...d]},x.doesMovePassMarryChildren=function(z,T){let b=!0;return(0,A.depthFirstOriginalTreeSearch)(null,T,C=>{if(!(0,E.isProvidedColumnGroup)(C))return;let d=C,s=d.getColGroupDef();if(!(s&&s.marryChildren))return;let c=[];d.getLeafColumns().forEach(h=>{let g=z.indexOf(h);c.push(g)}),Math.max.apply(Math,c)-Math.min.apply(Math,c)>d.getLeafColumns().length-1&&(b=!1)}),b}},5446:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.setColumnsMoving=x.normaliseX=x.attemptMoveColumns=x.getBestColumnMoveIndexFromXPosition=void 0;let A=p(1502);function E(T){let{isFromHeader:b,fromLeft:C,xPosition:d,fromEnter:s,fakeEvent:c,pinned:h,gos:g,colModel:f,colMoves:S,visibleCols:w}=T,{allMovingColumns:M}=T;if(b){let xe=[];M.forEach(Le=>{var We;let _e=null,Fe=Le.getParent();for(;Fe!=null&&Fe.getDisplayedLeafColumns().length===1;)_e=Fe,Fe=Fe.getParent();_e!=null?((We=_e.getColGroupDef())!=null&&We.marryChildren?_e.getProvidedColumnGroup().getLeafColumns():_e.getLeafColumns()).forEach(it=>{xe.includes(it)||xe.push(it)}):xe.includes(Le)||xe.push(Le)}),M=xe}let P=M.slice();(function(xe,Le){!Le||Le.length<=1||Le.filter(_e=>xe.indexOf(_e)<0).length>0||Le.sort((_e,Fe)=>xe.indexOf(_e)-xe.indexOf(Fe))})(f.getCols(),P);let O=function(xe){let{movingCols:Le,draggingRight:_e,xPosition:Fe,pinned:We,gos:it,colModel:tt,visibleCols:ot}=xe;if(it.get("suppressMovableColumns")||Le.some(Nt=>Nt.getColDef().suppressMovable))return[];let St=function(Nt,ft){switch(ft){case"left":return Nt.leftCols;case"right":return Nt.rightCols;default:return Nt.centerCols}}(ot,We),Xe=tt.getCols(),Ke=St.filter(Nt=>Le.includes(Nt)),Ye=St.filter(Nt=>!Le.includes(Nt)),Ze=Xe.filter(Nt=>!Le.includes(Nt)),Pe,ct=0,dt=Fe;if(_e){let Nt=0;Ke.forEach(ft=>Nt+=ft.getActualWidth()),dt-=Nt}if(dt>0){for(let Nt=0;Nt<Ye.length&&(dt-=Ye[Nt].getActualWidth(),!(dt<0));Nt++)ct++;_e&&ct++}if(ct>0){let Nt=Ye[ct-1];Pe=Ze.indexOf(Nt)+1}else Pe=Ze.indexOf(Ye[0]),Pe===-1&&(Pe=0);let bt=[Pe],Pt=(Nt,ft)=>Nt-ft;if(_e){let Nt=Pe+1,ft=Xe.length-1;for(;Nt<=ft;)bt.push(Nt),Nt++;bt.sort(Pt)}else{let Nt=Pe,ft=Xe.length-1,Lt=Xe[Nt];for(;Nt<=ft&&St.indexOf(Lt)<0;)Nt++,bt.push(Nt),Lt=Xe[Nt];Nt=Pe-1;let Vt=0;for(;Nt>=Vt;)bt.push(Nt),Nt--;bt.sort(Pt).reverse()}return bt}({movingCols:P,draggingRight:C,xPosition:d,pinned:h,gos:g,colModel:f,visibleCols:w}),G=function(xe,Le){let _e=Le.getCols(),Fe=(0,A._sortNumerically)(xe.map(tt=>_e.indexOf(tt))),We=Fe[0];return(0,A._last)(Fe)-We!=Fe.length-1?null:We}(P,f);if(O.length===0)return;let j=O[0],Y=G!==null&&!s;if(b&&(Y=G!==null),Y&&!c&&(!C&&j>=G||C&&j<=G))return;let J=w.allCols,ne=[],ce=null;for(let xe=0;xe<O.length;xe++){let Le=O[xe],_e=S.getProposedColumnOrder(P,Le);if(!S.doesOrderPassRules(_e))continue;let Fe=_e.filter(it=>J.includes(it));if(ce===null)ce=Fe;else if(!(0,A._areEqual)(Fe,ce))break;let We=z(_e);ne.push({move:Le,fragCount:We})}if(ne.length===0)return;ne.sort((xe,Le)=>xe.fragCount-Le.fragCount);let fe=ne[0].move;return fe>f.getCols().length-M.length?void 0:{columns:M,toIndex:fe}}function z(T){function b(d){let s=[],c=d.getOriginalParent();for(;c!=null;)s.push(c),c=c.getOriginalParent();return s}let C=0;for(let d=0;d<T.length-1;d++){let s=b(T[d]),c=b(T[d+1]);[s,c]=s.length>c.length?[s,c]:[c,s],s.forEach(h=>{c.indexOf(h)===-1&&C++})}return C}x.getBestColumnMoveIndexFromXPosition=E,x.attemptMoveColumns=function(T){let{columns:b,toIndex:C}=E(T)||{},{finished:d,colMoves:s}=T;return b&&C!=null?(s.moveColumns(b,C,"uiColumnMoved",d),d?null:{columns:b,toIndex:C}):null},x.normaliseX=function(T){var S;let{pinned:b,fromKeyboard:C,gos:d,ctrlsSvc:s,useHeaderRow:c,skipScrollPadding:h}=T,g=(S=s.getHeaderRowContainerCtrl(b))==null?void 0:S.eViewport,{x:f}=T;return g?(C&&(f-=g.getBoundingClientRect().left),d.get("enableRtl")&&(c&&(g=g.querySelector(".ag-header-row")),f=g.clientWidth-f),b!=null||h||(f+=s.get("center").getCenterViewportScrollLeft()),f):0},x.setColumnsMoving=function(T,b){for(let C of T)C.moving=b,C.dispatchColEvent("movingChanged","uiColumnMoved")}},9686:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.setColumnWidths=void 0,x.setColumnWidths=function(p,A,E=!0,z="api"){var T;(T=p.colResize)==null||T.setColumnWidths(A,!1,E,z)}},6924:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnResizeModule=void 0;let A=p(4388),E=p(447),z=p(7205),T=p(9686),b=p(9677);x.ColumnResizeModule={moduleName:"ColumnResize",version:z.VERSION,beans:[b.ColumnResizeService],apiFunctions:{setColumnWidths:T.setColumnWidths},dependsOn:[A.HorizontalResizeModule,E.AutoWidthModule]}},9677:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnResizeService=void 0;let A=p(2934),E=p(8731),z=p(7764),T=p(9033),b=p(7438);class C extends E.BeanStub{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(s,c,h,g){let f=[],{colModel:S,gos:w,visibleCols:M}=this.beans;s.forEach(P=>{let O=S.getColDefCol(P.key)||S.getCol(P.key);if(O&&(f.push({width:P.newWidth,ratios:[1],columns:[O]}),w.get("colResizeDefault")==="shift"&&(c=!c),c)){let G=M.getColAfter(O);if(!G)return;let j=O.getActualWidth()-P.newWidth,Y=G.getActualWidth()+j;f.push({width:Y,ratios:[1],columns:[G]})}}),f.length!==0&&this.resizeColumnSets({resizeSets:f,finished:h,source:g})}resizeColumnSets(s){var O;let{resizeSets:c,finished:h,source:g}=s;if(!(!c||c.every(G=>function(j){let{columns:Y,width:J}=j,ne=0,ce=0,fe=!0;Y.forEach(Le=>{let _e=Le.getMinWidth();ne+=_e||0;let Fe=Le.getMaxWidth();Fe>0?ce+=Fe:fe=!1});let xe=!fe||J<=ce;return J>=ne&&xe}(G)))){if(h){let G=c&&c.length>0?c[0].columns:null;(0,A.dispatchColumnResizedEvent)(this.eventSvc,G,h,g)}return}let f=[],S=[];c.forEach(G=>{let{width:j,columns:Y,ratios:J}=G,ne={},ce={};Y.forEach(Le=>S.push(Le));let fe=!0,xe=0;for(;fe;){if(xe++,xe>1e3){(0,z._error)(31);break}fe=!1;let Le=[],_e=0,Fe=j;Y.forEach((it,tt)=>{if(ce[it.getId()])Fe-=ne[it.getId()];else{Le.push(it);let ot=J[tt];_e+=ot}});let We=1/_e;Le.forEach((it,tt)=>{let ot;tt===Le.length-1?ot=Fe:(ot=Math.round(J[tt]*j*We),Fe-=ot);let st=it.getMinWidth(),St=it.getMaxWidth();ot<st?(ot=st,ce[it.getId()]=!0,fe=!0):St>0&&ot>St&&(ot=St,ce[it.getId()]=!0,fe=!0),ne[it.getId()]=ot})}Y.forEach(Le=>{let _e=ne[Le.getId()];Le.getActualWidth()!==_e&&(Le.setActualWidth(_e,g),f.push(Le))})});let w=f.length>0,M=[];if(w){let{colFlex:G,visibleCols:j,colViewport:Y}=this.beans;M=(O=G==null?void 0:G.refreshFlexedColumns({resizingCols:S,skipSetLeft:!0}))!=null?O:[],j.setLeftValues(g),j.updateBodyWidths(),Y.checkViewportColumns()}let P=S.concat(M);(w||h)&&(0,A.dispatchColumnResizedEvent)(this.eventSvc,P,h,g,M)}resizeHeader(s,c,h){if(!s.isResizable())return;let g=s.getActualWidth(),f=s.getMinWidth(),S=s.getMaxWidth(),w=Math.min(Math.max(g+c,f),S);this.setColumnWidths([{key:s,newWidth:w}],h,!0,"uiColumnResized")}createResizeFeature(s,c,h,g,f){return new b.ResizeFeature(s,c,h,g,f)}createGroupResizeFeature(s,c,h,g){return new T.GroupResizeFeature(s,c,h,g)}}x.ColumnResizeService=C},9033:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GroupResizeFeature=void 0;let A=p(8731);class E extends A.BeanStub{constructor(T,b,C,d){super(),this.comp=T,this.eResize=b,this.pinned=C,this.columnGroup=d}postConstruct(){if(!this.columnGroup.isResizable())return void this.comp.setResizableDisplayed(!1);let{horizontalResizeSvc:T,gos:b,colAutosize:C}=this.beans,d=T.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(d),!b.get("suppressAutoSize")&&C&&this.addDestroyFunc(C.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(T){let{columnsToResize:b,resizeStartWidth:C,resizeRatios:d,groupAfterColumns:s,groupAfterStartWidth:c,groupAfterRatios:h}=this.getInitialValues(T);this.resizeCols=b,this.resizeStartWidth=C,this.resizeRatios=d,this.resizeTakeFromCols=s,this.resizeTakeFromStartWidth=c,this.resizeTakeFromRatios=h,this.toggleColumnResizing(!0)}onResizing(T,b,C="uiColumnResized"){let d=this.normaliseDragChange(b),s=this.resizeStartWidth+d;this.resizeColumnsFromLocalValues(s,C,T)}getInitialValues(T){var g,f;let b=S=>S.reduce((w,M)=>w+M.getActualWidth(),0),C=(S,w)=>S.map(M=>M.getActualWidth()/w),d=this.getColumnsToResize(),s=b(d),c={columnsToResize:d,resizeStartWidth:s,resizeRatios:C(d,s)},h=null;if(T&&(h=(f=(g=this.beans.colGroupSvc)==null?void 0:g.getGroupAtDirection(this.columnGroup,"After"))!=null?f:null),h){let S=h.getDisplayedLeafColumns(),w=c.groupAfterColumns=S.filter(P=>P.isResizable()),M=c.groupAfterStartWidth=b(w);c.groupAfterRatios=C(w,M)}else c.groupAfterColumns=void 0,c.groupAfterStartWidth=void 0,c.groupAfterRatios=void 0;return c}resizeLeafColumnsToFit(T){let b=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),C=this.getInitialValues();b>C.resizeStartWidth&&this.resizeColumns(C,b,T,!0)}resizeColumnsFromLocalValues(T,b,C=!0){if(!this.resizeCols||!this.resizeRatios)return;let d={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(d,T,b,C)}resizeColumns(T,b,C,d=!0){var M;let{columnsToResize:s,resizeStartWidth:c,resizeRatios:h,groupAfterColumns:g,groupAfterStartWidth:f,groupAfterRatios:S}=T,w=[];if(w.push({columns:s,ratios:h,width:b}),g){let P=b-c;w.push({columns:g,ratios:S,width:f-P})}(M=this.beans.colResize)==null||M.resizeColumnSets({resizeSets:w,finished:d,source:C}),d&&this.toggleColumnResizing(!1)}toggleColumnResizing(T){this.comp.addOrRemoveCssClass("ag-column-resizing",T)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(T=>T.isResizable())}normaliseDragChange(T){let b=T;return this.gos.get("enableRtl")?this.pinned!=="left"&&(b*=-1):this.pinned==="right"&&(b*=-1),b}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}}x.GroupResizeFeature=E},7438:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ResizeFeature=void 0;let A=p(8731),E=p(3507);class z extends A.BeanStub{constructor(b,C,d,s,c){super(),this.pinned=b,this.column=C,this.eResize=d,this.comp=s,this.ctrl=c}postConstruct(){let b=[],C,d,s=()=>{if((0,E._setDisplayed)(this.eResize,C),!C)return;let{horizontalResizeSvc:g,colAutosize:f}=this.beans,S=g.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});b.push(S),d&&f&&b.push(f.addColumnAutosize(this.eResize,this.column))},c=()=>{b.forEach(g=>g()),b.length=0},h=()=>{let g=this.column.isResizable(),f=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(g!==C||f!==d)&&(C=g,d=f,c(),s())};h(),this.addDestroyFunc(c),this.ctrl.setRefreshFunction("resize",h)}onResizing(b,C){var P,O;let{column:d,lastResizeAmount:s,resizeStartWidth:c,beans:h}=this,g=this.normaliseResizeAmount(C),f=[{key:d,newWidth:c+g}],{pinnedCols:S,ctrlsSvc:w,colResize:M}=h;this.column.getPinned()&&((P=S==null?void 0:S.leftWidth)!=null?P:0)+((O=S==null?void 0:S.rightWidth)!=null?O:0)+(g-s)>(0,E._getInnerWidth)(w.getGridBodyCtrl().eBodyViewport)-50||(this.lastResizeAmount=g,M==null||M.setColumnWidths(f,this.resizeWithShiftKey,b,"uiColumnResized"),b&&this.toggleColumnResizing(!1))}onResizeStart(b){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=b,this.toggleColumnResizing(!0)}toggleColumnResizing(b){this.comp.addOrRemoveCssClass("ag-column-resizing",b)}normaliseResizeAmount(b){let C=b,d=this.pinned!=="left",s=this.pinned==="right";return this.gos.get("enableRtl")?d&&(C*=-1):s&&(C*=-1),C}}x.ResizeFeature=z},3600:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BaseColsService=void 0;let A=p(8731),E=p(1502),z=p(4422),T=p(2934);class b extends A.BeanStub{constructor(){super(...arguments),this.dispatchColumnChangedEvent=T.dispatchColumnChangedEvent,this.columns=[]}wireBeans(d){this.colModel=d.colModel,this.aggFuncSvc=d.aggFuncSvc,this.visibleCols=d.visibleCols}sortColumns(d){this.columns.sort(d)}setColumns(d,s){this.setColList(d,this.columns,this.eventName,!0,!0,this.columnProcessors.set,s)}addColumns(d,s){this.updateColList(d,this.columns,!0,!0,this.columnProcessors.add,this.eventName,s)}removeColumns(d,s){this.updateColList(d,this.columns,!1,!0,this.columnProcessors.remove,this.eventName,s)}setColList(d=[],s,c,h,g,f,S){let w=this.colModel.getCols();if(!w||w.length===0)return;let M=new Map;s.forEach((P,O)=>M.set(P,O)),s.length=0,(0,z._exists)(d)&&d.forEach(P=>{let O=this.colModel.getColDefCol(P);O&&s.push(O)}),s.forEach((P,O)=>{let G=M.get(P);G!==void 0?h&&G!==O||M.delete(P):M.set(P,0)}),(this.colModel.getColDefCols()||[]).forEach(P=>{let O=s.indexOf(P)>=0;f(P,O,S)}),g&&this.colModel.refreshCols(!1),this.visibleCols.refresh(S),this.dispatchColumnChangedEvent(this.eventSvc,c,[...M.keys()],S)}updateColList(d=[],s,c,h,g,f,S){if(!d||d.length===0)return;let w=!1,M=new Set;if(d.forEach(O=>{if(!O)return;let G=this.colModel.getColDefCol(O);if(G){if(M.add(G),c){if(s.indexOf(G)>=0)return;s.push(G)}else{let j=s.indexOf(G);if(j<0)return;for(let Y=j+1;Y<s.length;Y++)M.add(s[Y]);(0,E._removeFromArray)(s,G)}g(G,c,S),w=!0}}),!w)return;h&&this.colModel.refreshCols(!1),this.visibleCols.refresh(S);let P=Array.from(M);this.eventSvc.dispatchEvent({type:f,columns:P,column:P.length===1?P[0]:null,source:S})}extractCols(d,s=[]){let c=this.columns,h=[],g=[],{setFlagFunc:f,getIndexFunc:S,getInitialIndexFunc:w,getValueFunc:M,getInitialValueFunc:P}=this.columnExtractors;(this.colModel.getColDefCols()||[]).forEach(j=>{let Y=s.indexOf(j)<0,J=j.getColDef(),ne=M(J),ce=P(J),fe=S(J),xe=w(J),Le;Le=ne!==void 0?ne:fe!==void 0?fe!==null&&fe>=0:Y?ce!==void 0?ce:xe!==void 0&&xe!=null&&xe>=0:c.indexOf(j)>=0,Le&&((Y?fe!=null||xe!=null:fe!=null)?h.push(j):g.push(j))});let O=j=>{let Y=S(j.getColDef()),J=w(j.getColDef());return Y!=null?Y:J};h.sort((j,Y)=>{let J=O(j),ne=O(Y);return J===ne?0:J<ne?-1:1});let G=[].concat(h);return c.forEach(j=>{g.indexOf(j)>=0&&G.push(j)}),g.forEach(j=>{G.indexOf(j)<0&&G.push(j)}),c.forEach(j=>{G.indexOf(j)<0&&f(j,!1,d)}),G.forEach(j=>{c.indexOf(j)<0&&f(j,!0,d)}),this.columns=G}restoreColumnOrder(d,s){let c=this.columns,h=this.colModel.getColDefCols();if(!c.length||!h)return d;let g=Object.keys(s),f=new Set(g),S=new Set(g),w=new Set(c.map(Le=>{let _e=Le.getColId();return S.delete(_e),_e}).concat(g)),M=[],P={},O=0;for(let Le=0;Le<h.length;Le++){let _e=h[Le].getColId();w.has(_e)&&(M.push(_e),P[_e]=O++)}let G=1e3,j=!1,Y=0,J=this.columnOrdering.enableProp,ne=this.columnOrdering.initialEnableProp,ce=this.columnOrdering.indexProp,fe=this.columnOrdering.initialIndexProp,xe=Le=>{let _e=P[Le];for(let Fe=Y;Fe<_e;Fe++){let We=M[Fe];S.has(We)&&(s[We][ce]=G++,S.delete(We))}Y=_e};return c.forEach(Le=>{let _e=Le.getColId();if(f.has(_e))xe(_e),s[_e][ce]=G++;else{let Fe=Le.getColDef();(Fe[ce]===null||Fe[ce]===void 0&&Fe[fe]==null)&&(j||(Fe[J]||Fe[J]===void 0&&Fe[ne]?xe(_e):(S.forEach(We=>{s[We][ce]=G+P[We]}),G+=M.length,j=!0)),d[_e]||(d[_e]={colId:_e}),d[_e][ce]=G++)}}),d}}x.BaseColsService=b},1144:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getAllDisplayedVirtualColumns=x.getAllDisplayedColumns=x.getDisplayedRightColumns=x.getDisplayedCenterColumns=x.getDisplayedLeftColumns=x.getAllGridColumns=x.setColumnsPinned=x.setColumnsVisible=x.getDisplayedColBefore=x.getDisplayedColAfter=x.isPinningRight=x.isPinningLeft=x.isPinning=x.resetColumnState=x.getColumnState=x.applyColumnState=x.getColumns=x.getColumn=x.getDisplayNameForColumn=x.getColumnDefs=x.getColumnDef=void 0;let A=p(5266);x.getColumnDef=function(E,z){let T=E.colModel.getColDefCol(z);return T?T.getColDef():null},x.getColumnDefs=function(E){return E.colModel.getColumnDefs()},x.getDisplayNameForColumn=function(E,z,T){return E.colNames.getDisplayNameForColumn(z,T)||""},x.getColumn=function(E,z){return E.colModel.getColDefCol(z)},x.getColumns=function(E){return E.colModel.getColDefCols()},x.applyColumnState=function(E,z){return(0,A._applyColumnState)(E,z,"api")},x.getColumnState=function(E){return(0,A._getColumnState)(E)},x.resetColumnState=function(E){(0,A._resetColumnState)(E,"api")},x.isPinning=function(E){return E.visibleCols.isPinningLeft()||E.visibleCols.isPinningRight()},x.isPinningLeft=function(E){return E.visibleCols.isPinningLeft()},x.isPinningRight=function(E){return E.visibleCols.isPinningRight()},x.getDisplayedColAfter=function(E,z){return E.visibleCols.getColAfter(z)},x.getDisplayedColBefore=function(E,z){return E.visibleCols.getColBefore(z)},x.setColumnsVisible=function(E,z,T){E.colModel.setColsVisible(z,T,"api")},x.setColumnsPinned=function(E,z,T){var b;(b=E.pinnedCols)==null||b.setColsPinned(z,T,"api")},x.getAllGridColumns=function(E){return E.colModel.getCols()},x.getDisplayedLeftColumns=function(E){return E.visibleCols.leftCols},x.getDisplayedCenterColumns=function(E){return E.visibleCols.centerCols},x.getDisplayedRightColumns=function(E){return E.visibleCols.rightCols},x.getAllDisplayedColumns=function(E){return E.visibleCols.allCols},x.getAllDisplayedVirtualColumns=function(E){return E.colViewport.getViewportColumns()}},4604:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnDefFactory=x._deepCloneDefinition=void 0;let A=p(8731),E=p(6996);function z(b,C){if(!b)return;let d=b,s={};return Object.keys(d).forEach(c=>{if(C&&C.indexOf(c)>=0||E.SKIP_JS_BUILTINS.has(c))return;let h=d[c],g=typeof h=="object"&&h!==null&&h.constructor===Object;s[c]=g?z(h):h}),s}x._deepCloneDefinition=z;class T extends A.BeanStub{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(C){this.rowGroupColsSvc=C.rowGroupColsSvc,this.pivotColsSvc=C.pivotColsSvc}getColumnDefs(C,d,s,c){var S,w;let h=C.slice();d?h.sort((M,P)=>s.indexOf(M)-s.indexOf(P)):s&&h.sort((M,P)=>c.indexOf(M)-c.indexOf(P));let g=(S=this.rowGroupColsSvc)==null?void 0:S.columns,f=(w=this.pivotColsSvc)==null?void 0:w.columns;return this.buildColumnDefs(h,g,f)}buildColumnDefs(C,d=[],s=[]){let c=[],h={};return C.forEach(g=>{let f=!0,S=this.createDefFromColumn(g,d,s),w=g.getOriginalParent(),M=null;for(;w;){let P=null;if(w.isPadding()){w=w.getOriginalParent();continue}let O=h[w.getGroupId()];if(O){O.children.push(S),f=!1;break}if(P=this.createDefFromGroup(w),P&&(P.children=[S],h[P.groupId]=P,S=P,w=w.getOriginalParent()),w!=null&&M===w){f=!1;break}M=w}f&&c.push(S)}),c}createDefFromGroup(C){let d=z(C.getColGroupDef(),["children"]);return d&&(d.groupId=C.getGroupId()),d}createDefFromColumn(C,d,s){let c=z(C.getColDef());return c.colId=C.getColId(),c.width=C.getActualWidth(),c.rowGroup=C.isRowGroupActive(),c.rowGroupIndex=C.isRowGroupActive()?d.indexOf(C):null,c.pivot=C.isPivotActive(),c.pivotIndex=C.isPivotActive()?s.indexOf(C):null,c.aggFunc=C.isValueActive()?C.getAggFunc():null,c.hide=!C.isVisible()||void 0,c.pinned=C.isPinned()?C.getPinned():null,c.sort=C.getSort()?C.getSort():null,c.sortIndex=C.getSortIndex()!=null?C.getSortIndex():null,c}}x.ColumnDefFactory=T},2934:function(ae,x){function p(A,E){if(!A||A.length==0)return;let z=E(A[0]);for(let T=1;T<A.length;T++)if(z!==E(A[T]))return;return z}Object.defineProperty(x,"__esModule",{value:!0}),x.dispatchColumnResizedEvent=x.dispatchColumnChangedEvent=x.dispatchColumnVisibleEvent=x.dispatchColumnPinnedEvent=void 0,x.dispatchColumnPinnedEvent=function(A,E,z){if(!E.length)return;let T=E.length===1?E[0]:null,b=p(E,C=>C.getPinned());A.dispatchEvent({type:"columnPinned",pinned:b!=null?b:null,columns:E,column:T,source:z})},x.dispatchColumnVisibleEvent=function(A,E,z){if(!E.length)return;let T=E.length===1?E[0]:null,b=p(E,C=>C.isVisible());A.dispatchEvent({type:"columnVisible",visible:b,columns:E,column:T,source:z})},x.dispatchColumnChangedEvent=function(A,E,z,T){A.dispatchEvent({type:E,columns:z,column:z&&z.length==1?z[0]:null,source:T})},x.dispatchColumnResizedEvent=function(A,E,z,T,b=null){E!=null&&E.length&&A.dispatchEvent({type:"columnResized",columns:E,column:E.length===1?E[0]:null,flexColumns:b,finished:z,source:T})}},2716:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.depthFirstOriginalTreeSearch=x._addColumnDefaultAndTypes=x._updateColumnState=x.updateSomeColumnState=x._recursivelyCreateColumns=x._createColumnTree=void 0;let A=p(3355),E=p(9409),z=p(5449),T=p(7274),b=p(6996),C=p(7764),d=p(2294),s=p(3146);function c(M,P,O,G,j,Y,J,ne){if(!P)return[];let{colGroupSvc:ce}=M,fe=new Array(P.length);for(let xe=0;xe<fe.length;xe++){let Le=P[xe];ce&&Le.children!==void 0?fe[xe]=ce.createProvidedColumnGroup(G,Le,O,j,Y,J,ne):fe[xe]=h(M,G,Le,j,Y,ne)}return fe}function h(M,P,O,G,j,Y){var ce;let J=function(fe,xe){if(xe)for(let Le=0;Le<xe.length;Le++){let _e=xe[Le].getUserProvidedColDef();if(_e){if(fe.colId!=null){if(xe[Le].getId()===fe.colId)return{idx:Le,column:xe[Le]};continue}if(fe.field!=null){if(_e.field===fe.field)return{idx:Le,column:xe[Le]}}else if(_e===fe)return{idx:Le,column:xe[Le]}}}}(O,G);J&&(G==null||G.splice(J.idx,1));let ne=J==null?void 0:J.column;if(ne){let fe=S(M,O,ne.getColId());ne.setColDef(fe,O,Y),f(M,ne,fe,Y)}else{let fe=j.getUniqueKey(O.colId,O.field),xe=S(M,O,fe);ne=new A.AgColumn(xe,O,fe,P),M.context.createBean(ne)}return(ce=M.dataTypeSvc)==null||ce.addColumnListeners(ne),ne}function g(M,P,O,G,j,Y,J,ne){let{sortSvc:ce,pinnedCols:fe,colFlex:xe}=M;O!==void 0&&P.setVisible(!O,ne),ce&&(ce.updateColSort(P,G,ne),j!==void 0&&ce.setColSortIndex(P,j)),Y!==void 0&&(fe==null||fe.setColPinned(P,Y)),J!==void 0&&(xe==null||xe.setColFlex(P,J))}function f(M,P,O,G){g(M,P,O.hide,O.sort,O.sortIndex,O.pinned,O.flex,G);let j=P.getFlex();if(!(j!=null&&j>0))if(O.width!=null)P.setActualWidth(O.width,G);else{let Y=P.getActualWidth();P.setActualWidth(Y,G)}}function S(M,P,O,G){let{gos:j,dataTypeSvc:Y,validation:J}=M,ne={},ce=j.get("defaultColDef");(0,b._mergeDeep)(ne,ce,!1,!0);let fe=function(_e,Fe,We,it){var st,St,Xe;let tt=(st=_e.dataTypeSvc)==null?void 0:st.updateColDefAndGetColumnType(Fe,We,it),ot=(Xe=(St=We.type)!=null?St:tt)!=null?Xe:Fe.type;return Fe.type=ot,ot?(0,s.convertColumnTypes)(ot):void 0}(M,ne,P,O);fe&&function(_e,Fe,We){if(!Fe.length)return;let it=Object.assign({},z.DefaultColumnTypes),tt=_e.gos.get("columnTypes")||{};for(let[ot,st]of Object.entries(tt))ot in it?(0,C._warn)(34,{key:ot}):(st.type&&(0,C._warn)(35),it[ot]=st);Fe.forEach(ot=>{let st=it[ot.trim()];st?(0,b._mergeDeep)(We,st,!1,!0):(0,C._warn)(36,{t:ot})})}(M,fe,ne),(0,b._mergeDeep)(ne,P,!1,!0);let xe=j.get("autoGroupColumnDef"),Le=(0,T._isColumnsSortingCoupledToGroup)(j);return P.rowGroup&&xe&&Le&&(0,b._mergeDeep)(ne,{sort:xe.sort,initialSort:xe.initialSort},!1,!0),Y==null||Y.validateColDef(ne),J==null||J.validateColDef(ne,O,G),ne}function w(M,P,O){if(P)for(let G=0;G<P.length;G++){let j=P[G];(0,E.isProvidedColumnGroup)(j)&&w(j,j.getChildren(),O),O(j,M)}}x._createColumnTree=function(M,P=null,O,G,j){var Fe;let Y=new d.ColumnKeyCreator,{existingCols:J,existingGroups:ne,existingColKeys:ce}=function(We){let it=[],tt=[],ot=[];return We&&w(null,We,st=>{if((0,E.isProvidedColumnGroup)(st)){let St=st;tt.push(St)}else{let St=st;ot.push(St.getId()),it.push(St)}}),{existingCols:it,existingGroups:tt,existingColKeys:ot}}(G);Y.addExistingKeys(ce);let fe=c(M,P,0,O,J,Y,ne,j),{colGroupSvc:xe}=M,Le=(Fe=xe==null?void 0:xe.findMaxDepth(fe,0))!=null?Fe:0,_e=xe?xe.balanceColumnTree(fe,0,Le,Y):fe;return w(null,_e,(We,it)=>{(0,E.isProvidedColumnGroup)(We)&&We.setupExpandable(),We.originalParent=it}),{columnTree:_e,treeDept:Le}},x._recursivelyCreateColumns=c,x.updateSomeColumnState=g,x._updateColumnState=f,x._addColumnDefaultAndTypes=S,x.depthFirstOriginalTreeSearch=w},2849:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnFlexService=void 0;let A=p(8731),E=p(2934);class z extends A.BeanStub{constructor(){super(...arguments),this.beanName="colFlex"}refreshFlexedColumns(b={}){let C=b.source?b.source:"flex";b.viewportWidth!=null&&(this.flexViewportWidth=b.viewportWidth);let d=this.flexViewportWidth;if(!d)return[];let{visibleCols:s}=this.beans,c=s.centerCols,h=-1;if(b.resizingCols){let j=new Set(b.resizingCols);for(let Y=c.length-1;Y>=0;Y--)if(j.has(c[Y])){h=Y;break}}let g=!1,f=c.map((j,Y)=>{let J=j.getFlex(),ne=J!=null&&J>0&&Y>h;return g||(g=ne),{col:j,isFlex:ne,flex:Math.max(0,J!=null?J:0),initialSize:j.getActualWidth(),min:j.getMinWidth(),max:j.getMaxWidth(),targetSize:0}});if(!g)return[];let S=f.length,w=f.reduce((j,Y)=>j+Y.flex,0),M=d,P=(j,Y)=>{j.frozenSize=Y,j.col.setActualWidth(Y,C),M-=Y,w-=j.flex,S-=1},O=j=>j.frozenSize!=null;for(let j of f)j.isFlex||P(j,j.initialSize);for(;S>0;){let j=Math.round(w<1?M*w:M),Y,J=0,ne=0;for(let xe of f){if(O(xe))continue;Y=xe,ne+=j*(xe.flex/w);let Le=ne-J,_e=Math.round(Le);xe.targetSize=_e,J+=_e}Y&&(Y.targetSize+=j-J);let ce=0;for(let xe of f){if(O(xe))continue;let Le=xe.targetSize,_e=Math.min(Math.max(Le,xe.min),xe.max);ce+=_e-Le,xe.violationType=_e===Le?void 0:_e<Le?"max":"min",xe.targetSize=_e}let fe=ce===0?"all":ce>0?"min":"max";for(let xe of f)O(xe)||fe!=="all"&&xe.violationType!==fe||P(xe,xe.targetSize)}b.skipSetLeft||s.setLeftValues(C),b.updateBodyWidths&&s.updateBodyWidths();let G=f.filter(j=>j.isFlex&&!j.violationType).map(j=>j.col);if(b.fireResizedEvent){let j=f.filter(J=>J.initialSize!==J.frozenSize).map(J=>J.col),Y=f.filter(J=>J.flex).map(J=>J.col);(0,E.dispatchColumnResizedEvent)(this.eventSvc,j,!0,C,Y)}return G}initCol(b){let{flex:C,initialFlex:d}=b.colDef;C!==void 0?b.flex=C:d!==void 0&&(b.flex=d)}setColFlex(b,C){b.flex=C!=null?C:null,b.dispatchStateUpdatedEvent("flex")}}x.ColumnFlexService=z},6641:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getAllDisplayedColumnGroups=x.getRightDisplayedColumnGroups=x.getCenterDisplayedColumnGroups=x.getLeftDisplayedColumnGroups=x.resetColumnGroupState=x.setColumnGroupState=x.getColumnGroupState=x.getDisplayNameForColumnGroup=x.getProvidedColumnGroup=x.getColumnGroup=x.setColumnGroupOpened=void 0,x.setColumnGroupOpened=function(p,A,E){var z;(z=p.colGroupSvc)==null||z.setColumnGroupOpened(A,E,"api")},x.getColumnGroup=function(p,A,E){var z,T;return(T=(z=p.colGroupSvc)==null?void 0:z.getColumnGroup(A,E))!=null?T:null},x.getProvidedColumnGroup=function(p,A){var E,z;return(z=(E=p.colGroupSvc)==null?void 0:E.getProvidedColGroup(A))!=null?z:null},x.getDisplayNameForColumnGroup=function(p,A,E){return p.colNames.getDisplayNameForColumnGroup(A,E)||""},x.getColumnGroupState=function(p){var A,E;return(E=(A=p.colGroupSvc)==null?void 0:A.getColumnGroupState())!=null?E:[]},x.setColumnGroupState=function(p,A){var E;(E=p.colGroupSvc)==null||E.setColumnGroupState(A,"api")},x.resetColumnGroupState=function(p){var A;(A=p.colGroupSvc)==null||A.resetColumnGroupState("api")},x.getLeftDisplayedColumnGroups=function(p){return p.visibleCols.treeLeft},x.getCenterDisplayedColumnGroups=function(p){return p.visibleCols.treeCenter},x.getRightDisplayedColumnGroups=function(p){return p.visibleCols.treeRight},x.getAllDisplayedColumnGroups=function(p){return p.visibleCols.getAllTrees()}},6041:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnGroupModule=void 0;let A=p(84),E=p(7205),z=p(6641),T=p(6266);x.ColumnGroupModule={moduleName:"ColumnGroup",version:E.VERSION,dynamicBeans:{headerGroupCellCtrl:A.HeaderGroupCellCtrl},beans:[T.ColumnGroupService],apiFunctions:{getAllDisplayedColumnGroups:z.getAllDisplayedColumnGroups,getCenterDisplayedColumnGroups:z.getCenterDisplayedColumnGroups,getColumnGroup:z.getColumnGroup,getColumnGroupState:z.getColumnGroupState,getDisplayNameForColumnGroup:z.getDisplayNameForColumnGroup,getLeftDisplayedColumnGroups:z.getLeftDisplayedColumnGroups,getProvidedColumnGroup:z.getProvidedColumnGroup,getRightDisplayedColumnGroups:z.getRightDisplayedColumnGroups,resetColumnGroupState:z.resetColumnGroupState,setColumnGroupOpened:z.setColumnGroupOpened,setColumnGroupState:z.setColumnGroupState}}},6266:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnGroupService=void 0;let A=p(8731),E=p(6908),z=p(6908),T=p(9409),b=p(9409),C=p(1502),d=p(4422),s=p(2716),c=p(6869);class h extends A.BeanStub{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){let f=[],S=this.beans.colModel.getColTree();return(0,s.depthFirstOriginalTreeSearch)(null,S,w=>{(0,b.isProvidedColumnGroup)(w)&&f.push({groupId:w.getGroupId(),open:w.isExpanded()})}),f}resetColumnGroupState(f){let S=this.beans.colModel.getColDefColTree();if(!S)return;let w=[];(0,s.depthFirstOriginalTreeSearch)(null,S,M=>{if((0,b.isProvidedColumnGroup)(M)){let P=M.getColGroupDef(),O={groupId:M.getGroupId(),open:P?P.openByDefault:void 0};w.push(O)}}),this.setColumnGroupState(w,f)}setColumnGroupState(f,S){let{colModel:w,colAnimation:M,visibleCols:P,eventSvc:O}=this.beans;if(!w.getColTree())return;M==null||M.start();let G=[];f.forEach(j=>{let Y=j.groupId,J=j.open,ne=this.getProvidedColGroup(Y);ne&&ne.isExpanded()!==J&&(ne.setExpanded(J),G.push(ne))}),P.refresh(S,!0),G.length&&O.dispatchEvent({type:"columnGroupOpened",columnGroup:G.length===1?G[0]:void 0,columnGroups:G}),M==null||M.finish()}setColumnGroupOpened(f,S,w){let M;M=(0,b.isProvidedColumnGroup)(f)?f.getId():f||"",this.setColumnGroupState([{groupId:M,open:S}],w)}getProvidedColGroup(f){let S=null;return(0,s.depthFirstOriginalTreeSearch)(null,this.beans.colModel.getColTree(),w=>{(0,b.isProvidedColumnGroup)(w)&&w.getId()===f&&(S=w)}),S}getGroupAtDirection(f,S){let w=f.getProvidedColumnGroup().getLevel()+f.getPaddingLevel(),M=f.getDisplayedLeafColumns(),P=S==="After"?(0,C._last)(M):M[0],O=`getCol${S}`;for(;;){let G=this.beans.visibleCols[O](P);if(!G)return null;let j=this.getColGroupAtLevel(G,w);if(j!==f)return j}}getColGroupAtLevel(f,S){let w,M,P=f.getParent();for(;w=P.getProvidedColumnGroup().getLevel(),M=P.getPaddingLevel(),!(w+M<=S);)P=P.getParent();return P}updateOpenClosedVisibility(){let f=this.beans.visibleCols.getAllTrees();(0,c.depthFirstAllColumnTreeSearch)(f,!1,S=>{(0,E.isColumnGroup)(S)&&S.calculateDisplayedColumns()})}getColumnGroup(f,S){if(!f)return null;if((0,E.isColumnGroup)(f))return f;let w=this.beans.visibleCols.getAllTrees(),M=typeof S=="number",P=null;return(0,c.depthFirstAllColumnTreeSearch)(w,!1,O=>{if((0,E.isColumnGroup)(O)){let G=O,j;j=M?f===G.getGroupId()&&S===G.getPartId():f===G.getGroupId(),j&&(P=G)}}),P}createColumnGroups(f){let{columns:S,idCreator:w,pinned:M,oldDisplayedGroups:P,isStandaloneStructure:O}=f,G=this.mapOldGroupsById(P),j=[],Y=S;for(;Y.length;){let J=Y;Y=[];let ne=0,ce=fe=>{let xe=ne;ne=fe;let Le=J[xe],_e=((0,E.isColumnGroup)(Le)?Le.getProvidedColumnGroup():Le).getOriginalParent();if(_e==null){for(let We=xe;We<fe;We++)j.push(J[We]);return}let Fe=this.createColumnGroup(_e,w,G,M,O);for(let We=xe;We<fe;We++)Fe.addChild(J[We]);Y.push(Fe)};for(let fe=1;fe<J.length;fe++){let xe=J[fe],Le=((0,E.isColumnGroup)(xe)?xe.getProvidedColumnGroup():xe).getOriginalParent(),_e=J[ne];Le!==((0,E.isColumnGroup)(_e)?_e.getProvidedColumnGroup():_e).getOriginalParent()&&ce(fe)}ne<J.length&&ce(J.length)}return O||this.setupParentsIntoCols(j,null),j}createProvidedColumnGroup(f,S,w,M,P,O,G){let j=P.getUniqueKey(S.groupId||null,null),Y=this.createMergedColGroupDef(S,j),J=new T.AgProvidedColumnGroup(Y,j,!1,w);this.createBean(J);let ne=this.findExistingGroup(S,O);ne&&O.splice(ne.idx,1);let ce=ne==null?void 0:ne.group;ce&&J.setExpanded(ce.isExpanded());let fe=(0,s._recursivelyCreateColumns)(this.beans,Y.children,w+1,f,M,P,O,G);return J.setChildren(fe),J}balanceColumnTree(f,S,w,M){let P=[];for(let O=0;O<f.length;O++){let G=f[O];if((0,b.isProvidedColumnGroup)(G)){let j=G,Y=this.balanceColumnTree(j.getChildren(),S+1,w,M);j.setChildren(Y),P.push(j)}else{let j,Y;for(let J=w-1;J>=S;J--){let ne=M.getUniqueKey(null,null),ce=this.createMergedColGroupDef(null,ne),fe=new T.AgProvidedColumnGroup(ce,ne,!0,S);this.createBean(fe),Y&&Y.setChildren([fe]),Y=fe,j||(j=Y)}if(j&&Y){if(P.push(j),f.some(J=>(0,b.isProvidedColumnGroup)(J))){Y.setChildren([G]);continue}Y.setChildren(f);break}P.push(G)}}return P}findDepth(f){let S=0,w=f;for(;w&&w[0]&&(0,b.isProvidedColumnGroup)(w[0]);)S++,w=w[0].getChildren();return S}findMaxDepth(f,S){let w=S;for(let M=0;M<f.length;M++){let P=f[M];if((0,b.isProvidedColumnGroup)(P)){let O=P,G=this.findMaxDepth(O.getChildren(),S+1);w<G&&(w=G)}}return w}balanceTreeForAutoCols(f,S){let w=[];return f.forEach(M=>{let P=M;for(let O=S-1;O>=0;O--){let G=new T.AgProvidedColumnGroup(null,`FAKE_PATH_${M.getId()}}_${O}`,!0,O);this.createBean(G),G.setChildren([P]),P.originalParent=G,P=G}S===0&&(M.originalParent=null),w.push(P)}),w}createMergedColGroupDef(f,S){let w={},{gos:M,validation:P}=this.beans;return Object.assign(w,M.get("defaultColGroupDef")),Object.assign(w,f),P==null||P.validateColDef(w,S),w}findExistingGroup(f,S){if(f.groupId!=null)for(let w=0;w<S.length;w++){let M=S[w];if(M.getColGroupDef()&&M.getId()===f.groupId)return{idx:w,group:M}}}createColumnGroup(f,S,w,M,P){let O=f.getGroupId(),G=S.getInstanceIdForKey(O),j=w[(0,E.createUniqueColumnGroupId)(O,G)];return j&&j.getProvidedColumnGroup()!==f&&(j=null),(0,d._exists)(j)?j.reset():(j=new z.AgColumnGroup(f,O,G,M),P||this.createBean(j)),j}mapOldGroupsById(f){let S={},w=M=>{M.forEach(P=>{if((0,E.isColumnGroup)(P)){let O=P;S[P.getUniqueId()]=O,w(O.getChildren())}})};return f&&w(f),S}setupParentsIntoCols(f,S){f.forEach(w=>{if(w.parent=S,(0,E.isColumnGroup)(w)){let M=w;this.setupParentsIntoCols(M.getChildren(),M)}})}}x.ColumnGroupService=h},3156:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.isColumnHovered=void 0,x.isColumnHovered=function(p,A){var E;return!!((E=p.colHover)!=null&&E.isHovered(A))}},1690:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnHoverModule=void 0;let A=p(7205),E=p(3156),z=p(7683);x.ColumnHoverModule={moduleName:"ColumnHover",version:A.VERSION,beans:[z.ColumnHoverService],apiFunctions:{isColumnHovered:E.isColumnHovered}}},7683:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnHoverService=void 0;let A=p(8731),E=p(5788);class z extends A.BeanStub{constructor(){super(...arguments),this.beanName="colHover"}setMouseOver(b){this.updateState(b)}clearMouseOver(){this.updateState(null)}isHovered(b){let C=this.selectedColumns;return!!C&&C.indexOf(b)>=0}addHeaderColumnHoverListener(b,C,d){let s=()=>{if(!this.gos.get("columnHoverHighlight"))return;let c=this.isHovered(d);C.addOrRemoveCssClass("ag-column-hover",c)};b.addManagedEventListeners({columnHoverChanged:s}),s()}onCellColumnHover(b,C){if(!C||!this.gos.get("columnHoverHighlight"))return;let d=this.isHovered(b);C.addOrRemoveCssClass("ag-column-hover",d)}addHeaderFilterColumnHoverListener(b,C,d,s){this.createHoverFeature(b,[d],s);let c=()=>{if(!this.gos.get("columnHoverHighlight"))return;let h=this.isHovered(d);C.addOrRemoveCssClass("ag-column-hover",h)};b.addManagedEventListeners({columnHoverChanged:c}),c()}createHoverFeature(b,C,d){b.createManagedBean(new E.HoverFeature(C,d))}updateState(b){this.selectedColumns=b,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}}x.ColumnHoverService=z},5788:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HoverFeature=void 0;let A=p(8731);class E extends A.BeanStub{constructor(T,b){super(),this.columns=T,this.element=b}postConstruct(){if(this.gos.get("columnHoverHighlight")){let T=this.beans.colHover;this.addManagedListeners(this.element,{mouseout:T.clearMouseOver.bind(T),mouseover:T.setMouseOver.bind(T,this.columns)})}}}x.HoverFeature=E},2294:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnKeyCreator=void 0;let A=p(4422);x.ColumnKeyCreator=class{constructor(){this.existingKeys={}}addExistingKeys(E){for(let z=0;z<E.length;z++)this.existingKeys[E[z]]=!0}getUniqueKey(E,z){E=(0,A._toStringOrNull)(E);let T=0;for(;;){let b=E!=null?E:z;if(b?T!==0&&(b+="_"+T):b=T,!this.existingKeys[b])return this.existingKeys[b]=!0,String(b);T++}}}},2986:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnModel=void 0;let A=p(3505),E=p(8731),z=p(7274),T=p(1502),b=p(2716),C=p(5266),d=p(3146);class s extends E.BeanStub{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],h=>this.refreshAll((0,d._convertColumnEventSourceType)(h.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],h=>this.recreateColumnDefs((0,d._convertColumnEventSourceType)(h.source))),this.addManagedPropertyListener("pivotMode",h=>this.setPivotMode(this.gos.get("pivotMode"),(0,d._convertColumnEventSourceType)(h.source)))}createColsFromColDefs(h){var Fe,We,it;let{beans:g}=this,{valueCache:f,colAutosize:S,rowGroupColsSvc:w,pivotColsSvc:M,valueColsSvc:P,visibleCols:O,colViewport:G,eventSvc:j}=g,Y=this.colDefs?(0,C._compareColumnStatesAndDispatchEvents)(g,h):void 0;f==null||f.expire();let J=(Fe=this.colDefCols)==null?void 0:Fe.list,ne=(We=this.colDefCols)==null?void 0:We.tree,ce=(0,b._createColumnTree)(g,this.colDefs,!0,ne,h);(0,d._destroyColumnTree)(g,(it=this.colDefCols)==null?void 0:it.tree,ce.columnTree);let fe=ce.columnTree,xe=ce.treeDept,Le=(0,d._getColumnsFromTree)(fe),_e={};Le.forEach(tt=>_e[tt.getId()]=tt),this.colDefCols={tree:fe,treeDepth:xe,list:Le,map:_e},w==null||w.extractCols(h,J),M==null||M.extractCols(h,J),P==null||P.extractCols(h,J),this.ready=!0,this.refreshCols(!0),O.refresh(h),G.checkViewportColumns(),j.dispatchEvent({type:"columnEverythingChanged",source:h}),Y&&(this.changeEventsDispatching=!0,Y(),this.changeEventsDispatching=!1),j.dispatchEvent({type:"newColumnsLoaded",source:h}),h==="gridInitializing"&&(S==null||S.applyAutosizeStrategy())}refreshCols(h){var ce;if(!this.colDefCols)return;let g=(ce=this.cols)==null?void 0:ce.tree;this.saveColOrder();let{autoColSvc:f,selectionColSvc:S,quickFilter:w,pivotResultCols:M,showRowGroupCols:P,rowAutoHeight:O,visibleCols:G,colViewport:j,eventSvc:Y}=this.beans,J=this.selectCols(M,this.colDefCols);f==null||f.createAutoCols(J,fe=>{this.lastOrder=fe(this.lastOrder),this.lastPivotOrder=fe(this.lastPivotOrder)}),f==null||f.addAutoCols(J),S==null||S.createSelectionCols(J,fe=>{var xe,Le;this.lastOrder=(xe=fe(this.lastOrder))!=null?xe:null,this.lastPivotOrder=(Le=fe(this.lastPivotOrder))!=null?Le:null}),S==null||S.addSelectionCols(J);let ne=(0,z._shouldMaintainColumnOrder)(this.gos,this.showingPivotResult);h&&!ne||this.restoreColOrder(J),this.positionLockedCols(J),P==null||P.refresh(),w==null||w.refreshCols(),this.setColSpanActive(),O==null||O.setAutoHeightActive(J),G.clear(),j.clear(),!(0,T._areEqual)(g,this.cols.tree)&&Y.dispatchEvent({type:"gridColumnsChanged"})}selectCols(h,g){var O;let f=(O=h==null?void 0:h.getPivotResultCols())!=null?O:null;this.showingPivotResult=f!=null;let{map:S,list:w,tree:M,treeDepth:P}=f!=null?f:g;return this.cols={list:w.slice(),map:ge({},S),tree:M.slice(),treeDepth:P},f&&(f.list.some(G=>{var j;return((j=this.cols)==null?void 0:j.map[G.getColId()])!==void 0})||(this.lastPivotOrder=null)),this.cols}getColsToShow(){var f;if(!this.cols)return[];let h=this.isPivotMode()&&!this.showingPivotResult,g=(f=this.beans.valueColsSvc)==null?void 0:f.columns;return this.cols.list.filter(S=>{let w=(0,d.isColumnGroupAutoCol)(S);if(h){let M=g==null?void 0:g.includes(S);return w||M}return w||S.isVisible()})}refreshAll(h){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(h))}setColsVisible(h,g=!1,f){(0,C._applyColumnState)(this.beans,{state:h.map(S=>({colId:typeof S=="string"?S:S.getColId(),hide:!g}))},f)}restoreColOrder(h){let g=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!g)return;let f=new Map(g.map((G,j)=>[G,j]));if(!h.list.some(G=>f.has(G)))return;let S=new Map(h.list.map(G=>[G,!0])),w=g.filter(G=>S.has(G)),M=new Map(w.map(G=>[G,!0])),P=h.list.filter(G=>!M.has(G)),O=w.slice();P.forEach(G=>{let j=G.getOriginalParent();if(!j)return void O.push(G);let Y=[];for(;!Y.length&&j;)j.getLeafColumns().forEach(ce=>{let fe=O.indexOf(ce)>=0,xe=Y.indexOf(ce)<0;fe&&xe&&Y.push(ce)}),j=j.getOriginalParent();if(!Y.length)return void O.push(G);let J=Y.map(ce=>O.indexOf(ce)),ne=Math.max(...J);O.splice(ne+1,0,G)}),h.list=O}positionLockedCols(h){h.list=(0,A.placeLockedColumns)(h.list,this.gos)}saveColOrder(){var h,g,f,S;this.showingPivotResult?this.lastPivotOrder=(g=(h=this.cols)==null?void 0:h.list)!=null?g:null:this.lastOrder=(S=(f=this.cols)==null?void 0:f.list)!=null?S:null}getColumnDefs(){var h,g,f;return this.colDefCols?(f=this.beans.colDefFactory)==null?void 0:f.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,(g=(h=this.cols)==null?void 0:h.list)!=null?g:[]):void 0}setColSpanActive(){var h;this.colSpanActive=!!((h=this.cols)!=null&&h.list.some(g=>g.getColDef().colSpan!=null))}isPivotMode(){return this.pivotMode}setPivotMode(h,g){if(h===this.pivotMode||(this.pivotMode=h,!this.ready))return;this.refreshCols(!1);let{visibleCols:f,eventSvc:S}=this.beans;f.refresh(g),S.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){var g;let h=(g=this.beans.pivotColsSvc)==null?void 0:g.columns;return this.pivotMode&&!!(h!=null&&h.length)}recreateColumnDefs(h){var g;this.cols&&((g=this.beans.autoColSvc)==null||g.updateAutoCols(h),this.createColsFromColDefs(h))}setColumnDefs(h,g){this.colDefs=h,this.createColsFromColDefs(g)}destroy(){var h;(0,d._destroyColumnTree)(this.beans,(h=this.colDefCols)==null?void 0:h.tree),super.destroy()}getColTree(){var h,g;return(g=(h=this.cols)==null?void 0:h.tree)!=null?g:[]}getColDefColTree(){var h,g;return(g=(h=this.colDefCols)==null?void 0:h.tree)!=null?g:[]}getColDefCols(){var h,g;return(g=(h=this.colDefCols)==null?void 0:h.list)!=null?g:null}getCols(){var h,g;return(g=(h=this.cols)==null?void 0:h.list)!=null?g:[]}getAllCols(){var w,M,P,O,G,j,Y;let{pivotResultCols:h,autoColSvc:g,selectionColSvc:f}=this.beans,S=(w=h==null?void 0:h.getPivotResultCols())==null?void 0:w.list;return[(P=(M=this.colDefCols)==null?void 0:M.list)!=null?P:[],(G=(O=g==null?void 0:g.autoCols)==null?void 0:O.list)!=null?G:[],(Y=(j=f==null?void 0:f.selectionCols)==null?void 0:j.list)!=null?Y:[],S!=null?S:[]].flat()}getColsForKeys(h){return h?h.map(g=>this.getCol(g)).filter(g=>g!=null):[]}getColDefCol(h){var g;return(g=this.colDefCols)!=null&&g.list?this.getColFromCollection(h,this.colDefCols):null}getCol(h){return h==null?null:this.getColFromCollection(h,this.cols)}getColFromCollection(h,g){var w,M;if(g==null)return null;let{map:f,list:S}=g;if(typeof h=="string"&&f[h])return f[h];for(let P=0;P<S.length;P++)if((0,d._columnsMatch)(S[P],h))return S[P];return(M=(w=this.beans.autoColSvc)==null?void 0:w.getAutoCol(h))!=null?M:null}}x.ColumnModel=s},2027:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnApiModule=x.ColumnFlexModule=x.DataTypeModule=void 0;let A=p(7358),E=p(7205),z=p(1144),T=p(4604),b=p(2849),C=p(6350);x.DataTypeModule={moduleName:"DataType",version:E.VERSION,beans:[C.DataTypeService],dependsOn:[A.CheckboxCellRendererModule]},x.ColumnFlexModule={moduleName:"ColumnFlex",version:E.VERSION,beans:[b.ColumnFlexService]},x.ColumnApiModule={moduleName:"ColumnApi",version:E.VERSION,beans:[T.ColumnDefFactory],apiFunctions:{getColumnDef:z.getColumnDef,getDisplayNameForColumn:z.getDisplayNameForColumn,getColumn:z.getColumn,getColumns:z.getColumns,applyColumnState:z.applyColumnState,getColumnState:z.getColumnState,resetColumnState:z.resetColumnState,isPinning:z.isPinning,isPinningLeft:z.isPinningLeft,isPinningRight:z.isPinningRight,getDisplayedColAfter:z.getDisplayedColAfter,getDisplayedColBefore:z.getDisplayedColBefore,setColumnsVisible:z.setColumnsVisible,setColumnsPinned:z.setColumnsPinned,getAllGridColumns:z.getAllGridColumns,getDisplayedLeftColumns:z.getDisplayedLeftColumns,getDisplayedCenterColumns:z.getDisplayedCenterColumns,getDisplayedRightColumns:z.getDisplayedRightColumns,getAllDisplayedColumns:z.getAllDisplayedColumns,getAllDisplayedVirtualColumns:z.getAllDisplayedVirtualColumns,getColumnDefs:z.getColumnDefs}}},8997:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnNameService=x._camelCaseToHumanText=void 0;let A=p(8731);function E(T){return!T||T==null?null:T.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map(b=>b.substring(0,1).toUpperCase()+(b.length>1?b.substring(1,b.length):"")).join(" ")}x._camelCaseToHumanText=E;class z extends A.BeanStub{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(b,C,d=!1){if(!b)return null;let s=this.getHeaderName(b.getColDef(),b,null,null,C),{aggColNameSvc:c}=this.beans;return d&&c?c.getHeaderName(b,s):s}getDisplayNameForProvidedColumnGroup(b,C,d){let s=C==null?void 0:C.getColGroupDef();return s?this.getHeaderName(s,null,b,C,d):null}getDisplayNameForColumnGroup(b,C){return this.getDisplayNameForProvidedColumnGroup(b,b.getProvidedColumnGroup(),C)}getHeaderName(b,C,d,s,c){var g,f;let h=b.headerValueGetter;if(h){let S=this.gos.addGridCommonParams({colDef:b,column:C,columnGroup:d,providedColumnGroup:s,location:c});return typeof h=="function"?h(S):typeof h=="string"?(f=(g=this.beans.expressionSvc)==null?void 0:g.evaluate(h,S))!=null?f:null:""}return b.headerName!=null?b.headerName:b.field?E(b.field):""}}x.ColumnNameService=z},5266:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getColumnStateFromColDef=x._getColumnState=x._compareColumnStatesAndDispatchEvents=x._resetColumnState=x._applyColumnState=void 0;let A=p(3505),E=p(1502),z=p(4422),T=p(7764),b=p(2934),C=p(2716),d=p(3146);function s(S,w,M){var st,St;let{colModel:P,rowGroupColsSvc:O,pivotColsSvc:G,autoColSvc:j,selectionColSvc:Y,colAnimation:J,visibleCols:ne,pivotResultCols:ce,environment:fe,valueColsSvc:xe,eventSvc:Le,gos:_e}=S,Fe=P.getColDefCols()||[];if(!(Fe!=null&&Fe.length))return!1;if(w!=null&&w.state&&!w.state.forEach)return(0,T._warn)(32),!1;let We=(Xe,Ke,Ye,Ze,Pe)=>{var bt;if(!Xe)return;let ct=(0,d.getValueFactory)(Ke,w.defaultState),dt=ct("flex").value1;if((0,C.updateSomeColumnState)(S,Xe,ct("hide").value1,ct("sort").value1,ct("sortIndex").value1,ct("pinned").value1,dt,M),dt==null){let Pt=ct("width").value1;if(Pt!=null){let Nt=(bt=Xe.getColDef().minWidth)!=null?bt:fe.getDefaultColumnMinWidth();Nt!=null&&Pt>=Nt&&Xe.setActualWidth(Pt,M)}}!Pe&&Xe.isPrimary()&&(xe==null||xe.syncColumnWithState(Xe,M,ct),O==null||O.syncColumnWithState(Xe,M,ct,Ye),G==null||G.syncColumnWithState(Xe,M,ct,Ze))},it=(Xe,Ke,Ye)=>{var Ii,zi,ln,ha;let Ze=c(S,M),Pe=Ke.slice(),ct={},dt={},bt=[],Pt=[],Nt=[],ft=0,Lt=(Ii=O==null?void 0:O.columns.slice())!=null?Ii:[],Vt=(zi=G==null?void 0:G.columns.slice())!=null?zi:[];Xe.forEach(Gn=>{let qn=Gn.colId;if(qn.startsWith(d.GROUP_AUTO_COLUMN_ID))return bt.push(Gn),void Nt.push(Gn);if((0,d.isColumnSelectionCol)(qn))return Pt.push(Gn),void Nt.push(Gn);let Qn=Ye(qn);Qn?(We(Qn,Gn,ct,dt,!1),(0,E._removeFromArray)(Pe,Qn)):(Nt.push(Gn),ft+=1)});let Jt=Gn=>We(Gn,null,ct,dt,!1);Pe.forEach(Jt),O==null||O.sortColumns(f.bind(O,ct,Lt)),G==null||G.sortColumns(f.bind(G,dt,Vt)),P.refreshCols(!1);let $t=(Gn,qn,Qn=[])=>{qn.forEach(na=>{let fo=Gn(na.colId);(0,E._removeFromArray)(Qn,fo),We(fo,na,null,null,!0)}),Qn.forEach(Jt)};return $t(Gn=>{var qn;return(qn=j==null?void 0:j.getAutoCol(Gn))!=null?qn:null},bt,(ln=j==null?void 0:j.getAutoCols())==null?void 0:ln.slice()),$t(Gn=>{var qn;return(qn=Y==null?void 0:Y.getSelectionCol(Gn))!=null?qn:null},Pt,(ha=Y==null?void 0:Y.getSelectionCols())==null?void 0:ha.slice()),function(Gn,qn,Qn){if(!Gn.applyOrder||!Gn.state)return;let na=[];Gn.state.forEach(fo=>{fo.colId!=null&&na.push(fo.colId)}),function(fo,Yl,Wu,Kd){if(fo==null)return;let To=[],nd={};Yl.forEach(Nr=>{if(nd[Nr])return;let Rs=fo.map[Nr];Rs&&(To.push(Rs),nd[Nr]=!0)});let Qi=0;if(fo.list.forEach(Nr=>{let Rs=Nr.getColId();nd[Rs]==null&&(Rs.startsWith(d.GROUP_AUTO_COLUMN_ID)?To.splice(Qi++,0,Nr):To.push(Nr))}),To=(0,A.placeLockedColumns)(To,Kd),!(0,A.doesMovePassMarryChildren)(To,Wu.getColTree()))return void(0,T._warn)(39);fo.list=To}(qn.cols,na,qn,Qn)}(w,P,_e),ne.refresh(M),Le.dispatchEvent({type:"columnEverythingChanged",source:M}),Ze(),{unmatchedAndAutoStates:Nt,unmatchedCount:ft}};J==null||J.start();let{unmatchedAndAutoStates:tt,unmatchedCount:ot}=it(w.state||[],Fe,Xe=>P.getColDefCol(Xe));return(tt.length>0||(0,z._exists)(w.defaultState))&&(ot=it(tt,(St=(st=ce==null?void 0:ce.getPivotResultCols())==null?void 0:st.list)!=null?St:[],Xe=>{var Ke;return(Ke=ce==null?void 0:ce.getPivotResultCol(Xe))!=null?Ke:null}).unmatchedCount),J==null||J.finish(),ot===0}function c(S,w){var fe,xe,Le;let{rowGroupColsSvc:M,pivotColsSvc:P,valueColsSvc:O,colModel:G,sortSvc:j,eventSvc:Y}=S,J={rowGroupColumns:(fe=M==null?void 0:M.columns.slice())!=null?fe:[],pivotColumns:(xe=P==null?void 0:P.columns.slice())!=null?xe:[],valueColumns:(Le=O==null?void 0:O.columns.slice())!=null?Le:[]},ne=h(S),ce={};return ne.forEach(_e=>{ce[_e.colId]=_e}),()=>{var St,Xe;let _e=G.getAllCols(),Fe=(Ke,Ye,Ze,Pe)=>{let ct=Ye.map(Pe),dt=Ze.map(Pe);if((0,E._areEqual)(ct,dt))return;let bt=new Set(Ye);Ze.forEach(Nt=>{bt.delete(Nt)||bt.add(Nt)});let Pt=[...bt];Y.dispatchEvent({type:Ke,columns:Pt,column:Pt.length===1?Pt[0]:null,source:w})},We=Ke=>{let Ye=[];return _e.forEach(Ze=>{let Pe=ce[Ze.getColId()];Pe&&Ke(Pe,Ze)&&Ye.push(Ze)}),Ye},it=Ke=>Ke.getColId();Fe("columnRowGroupChanged",J.rowGroupColumns,(St=M==null?void 0:M.columns)!=null?St:[],it),Fe("columnPivotChanged",J.pivotColumns,(Xe=P==null?void 0:P.columns)!=null?Xe:[],it);let tt=We((Ke,Ye)=>{let Ze=Ke.aggFunc!=null,Pe=Ze!=Ye.isValueActive(),ct=Ze&&Ke.aggFunc!=Ye.getAggFunc();return Pe||ct});tt.length>0&&(0,b.dispatchColumnChangedEvent)(Y,"columnValueChanged",tt,w),(0,b.dispatchColumnResizedEvent)(Y,We((Ke,Ye)=>Ke.width!=Ye.getActualWidth()),!0,w),(0,b.dispatchColumnPinnedEvent)(Y,We((Ke,Ye)=>Ke.pinned!=Ye.getPinned()),w),(0,b.dispatchColumnVisibleEvent)(Y,We((Ke,Ye)=>Ke.hide==Ye.isVisible()),w);let ot=We((Ke,Ye)=>Ke.sort!=Ye.getSort()||Ke.sortIndex!=Ye.getSortIndex());ot.length>0&&(j==null||j.dispatchSortChangedEvents(w,ot));let st=h(S);(function(Ke,Ye,Ze,Pe,ct){let dt={};Ye.forEach(Lt=>dt[Lt.colId]=Lt);let bt={};Ke.forEach(Lt=>{dt[Lt.colId]&&(bt[Lt.colId]=!0)});let Pt=Ke.filter(Lt=>bt[Lt.colId]),Nt=Ye.filter(Lt=>bt[Lt.colId]),ft=[];Nt.forEach((Lt,Vt)=>{let Jt=Pt&&Pt[Vt];if(Jt&&Jt.colId!==Lt.colId){let $t=Pe.getCol(Jt.colId);$t&&ft.push($t)}}),ft.length&&ct.dispatchEvent({type:"columnMoved",columns:ft,column:ft.length===1?ft[0]:null,finished:!0,source:Ze})})(ne,st,w,G,Y)}}function h(S){let{colModel:w,rowGroupColsSvc:M,pivotColsSvc:P}=S,O=w.getColDefCols();if((0,z._missing)(O)||!w.isAlive())return[];let G=w.getAllCols(),j=M==null?void 0:M.columns,Y=P==null?void 0:P.columns,J=G.map(ce=>(fe=>{var it;let xe=fe.isRowGroupActive()&&j?j.indexOf(fe):null,Le=fe.isPivotActive()&&Y?Y.indexOf(fe):null,_e=fe.isValueActive()?fe.getAggFunc():null,Fe=fe.getSort()!=null?fe.getSort():null,We=fe.getSortIndex()!=null?fe.getSortIndex():null;return{colId:fe.getColId(),width:fe.getActualWidth(),hide:!fe.isVisible(),pinned:fe.getPinned(),sort:Fe,sortIndex:We,aggFunc:_e,rowGroup:fe.isRowGroupActive(),rowGroupIndex:xe,pivot:fe.isPivotActive(),pivotIndex:Le,flex:(it=fe.getFlex())!=null?it:null}})(ce)),ne=new Map(w.getCols().map((ce,fe)=>[ce.getColId(),fe]));return J.sort((ce,fe)=>(ne.has(ce.colId)?ne.get(ce.colId):-1)-(ne.has(fe.colId)?ne.get(fe.colId):-1)),J}function g(S){let w=(_e,Fe)=>_e!=null?_e:Fe!=null?Fe:null,M=S.getColDef(),P=w(M.sort,M.initialSort),O=w(M.sortIndex,M.initialSortIndex),G=w(M.hide,M.initialHide),j=w(M.pinned,M.initialPinned),Y=w(M.width,M.initialWidth),J=w(M.flex,M.initialFlex),ne=w(M.rowGroupIndex,M.initialRowGroupIndex),ce=w(M.rowGroup,M.initialRowGroup);ne!=null||ce!=null&&ce!=0||(ne=null,ce=null);let fe=w(M.pivotIndex,M.initialPivotIndex),xe=w(M.pivot,M.initialPivot);fe!=null||xe!=null&&xe!=0||(fe=null,xe=null);let Le=w(M.aggFunc,M.initialAggFunc);return{colId:S.getColId(),sort:P,sortIndex:O,hide:G,pinned:j,width:Y,flex:J,rowGroup:ce,rowGroupIndex:ne,pivot:xe,pivotIndex:fe,aggFunc:Le}}x._applyColumnState=s,x._resetColumnState=function(S,w){let{colModel:M,autoColSvc:P}=S,O=M.getColDefCols();if(!(O!=null&&O.length))return;let G=M.getColDefColTree(),j=(0,d._getColumnsFromTree)(G),Y=[],J=1e3,ne=1e3,ce=[],fe=P==null?void 0:P.getAutoCols();fe&&(ce=ce.concat(fe)),j&&(ce=ce.concat(j)),ce.forEach(xe=>{let Le=g(xe);(0,z._missing)(Le.rowGroupIndex)&&Le.rowGroup&&(Le.rowGroupIndex=J++),(0,z._missing)(Le.pivotIndex)&&Le.pivot&&(Le.pivotIndex=ne++),Y.push(Le)}),s(S,{state:Y,applyOrder:!0},w)},x._compareColumnStatesAndDispatchEvents=c,x._getColumnState=h,x.getColumnStateFromColDef=g;let f=(S,w,M,P)=>{let O=S[M.getId()],G=S[P.getId()],j=O!=null,Y=G!=null;if(j&&Y)return O-G;if(j)return-1;if(Y)return 1;let J=w.indexOf(M),ne=w.indexOf(P),ce=J>=0;return ce&&ne>=0?J-ne:ce?-1:1}},3146:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getValueFactory=x._columnsMatch=x._convertColumnEventSourceType=x._updateColsMap=x._areColIdsEqual=x.convertColumnTypes=x.isColumnSelectionCol=x.isColumnGroupAutoCol=x._destroyColumnTree=x.getWidthOfColsInList=x._getColumnsFromTree=x.GROUP_AUTO_COLUMN_ID=void 0;let A=p(3355),E=p(9409),z=p(1502),T=p(4422),b=p(2716),C=p(5626);x.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",x._getColumnsFromTree=function(d){let s=[],c=h=>{for(let g=0;g<h.length;g++){let f=h[g];(0,A.isColumn)(f)?s.push(f):(0,E.isProvidedColumnGroup)(f)&&c(f.getChildren())}};return c(d),s},x.getWidthOfColsInList=function(d){return d.reduce((s,c)=>s+c.getActualWidth(),0)},x._destroyColumnTree=function(d,s,c){let h={};if(!s)return;(0,b.depthFirstOriginalTreeSearch)(null,s,f=>{h[f.getInstanceId()]=f}),c&&(0,b.depthFirstOriginalTreeSearch)(null,c,f=>{h[f.getInstanceId()]=null});let g=Object.values(h).filter(f=>f!=null);d.context.destroyBeans(g)},x.isColumnGroupAutoCol=function(d){return d.getId().startsWith(x.GROUP_AUTO_COLUMN_ID)},x.isColumnSelectionCol=function(d){var c;let s=typeof d=="string"?d:"getColId"in d?d.getColId():d.colId;return(c=s==null?void 0:s.startsWith(C.CONTROLS_COLUMN_ID_PREFIX))!=null?c:!1},x.convertColumnTypes=function(d){let s=[];return d instanceof Array?s=d:typeof d=="string"&&(s=d.split(",")),s},x._areColIdsEqual=function(d,s){return(0,z._areEqual)(d,s,(c,h)=>c.getColId()===h.getColId())},x._updateColsMap=function(d){d.map={},d.list.forEach(s=>d.map[s.getId()]=s)},x._convertColumnEventSourceType=function(d){return d==="gridOptionsUpdated"?"gridOptionsChanged":d},x._columnsMatch=function(d,s){let c=d===s,h=d.getColDef()===s,g=d.getColId()==s;return c||h||g},x.getValueFactory=(d,s)=>(c,h)=>{let g={value1:void 0,value2:void 0},f=!1;return d&&(d[c]!==void 0&&(g.value1=d[c],f=!0),(0,T._exists)(h)&&d[h]!==void 0&&(g.value2=d[h],f=!0)),!f&&s&&(s[c]!==void 0&&(g.value1=s[c]),(0,T._exists)(h)&&s[h]!==void 0&&(g.value2=s[h])),g}},5034:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnViewportService=void 0;let A=p(8731),E=p(3355),z=p(4422);class T extends A.BeanStub{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={}}wireBeans(C){this.visibleCols=C.visibleCols,this.colModel=C.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(C,d,s=!1){let{visibleCols:c}=this,h=c.isBodyWidthDirty;if(!(C===this.scrollWidth&&d===this.scrollPosition&&!h)){if(this.scrollWidth=C,this.scrollPosition=d,c.isBodyWidthDirty=!0,this.gos.get("enableRtl")){let g=c.bodyWidth;this.viewportLeft=g-d-C,this.viewportRight=g-d}else this.viewportLeft=d,this.viewportRight=C+d;this.colModel.ready&&this.checkViewportColumns(s)}}getHeadersToRender(C,d){let s;switch(C){case"left":s=this.rowsOfHeadersToRenderLeft[d];break;case"right":s=this.rowsOfHeadersToRenderRight[d];break;default:s=this.rowsOfHeadersToRenderCenter[d]}return s||[]}extractViewportColumns(){let C=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=C,this.headerColsWithinViewport=C):(this.colsWithinViewport=C.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=C.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(C){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},C||(this.colsWithinViewportHash="")}isColumnInHeaderViewport(C){return!(!C.isAutoHeaderHeight()&&!function(d){for(;d;){if(d.isAutoHeaderHeight())return!0;d=d.getParent()}return!1}(C))||this.isColumnInRowViewport(C)}isColumnInRowViewport(C){if(C.isAutoHeight())return!0;let d=C.getLeft()||0,s=d+C.getActualWidth(),c=this.viewportLeft-200,h=this.viewportRight+200;return!(d<c&&s<c)&&!(d>h&&s>h)}getViewportColumns(){let{leftCols:C,rightCols:d}=this.visibleCols;return this.colsWithinViewport.concat(C).concat(d)}getColsWithinViewport(C){if(!this.colModel.colSpanActive)return this.colsWithinViewport;let d=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:s}=this,c=s.centerCols;return s.getColsForRow(C,c,d,h=>{let g=h.getLeft();return(0,z._exists)(g)&&g>this.viewportLeft})}checkViewportColumns(C=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:C})}calculateHeaderRows(){this.clear(!0);let C={},{leftCols:d,rightCols:s,treeLeft:c,treeRight:h,treeCenter:g}=this.visibleCols;this.headerColsWithinViewport.concat(d).concat(s).forEach(S=>C[S.getId()]=!0);let f=(S,w,M)=>{let P=!1;for(let O=0;O<S.length;O++){let G=S[O],j=!1;if((0,E.isColumn)(G))j=C[G.getId()]===!0;else{let Y=G.getDisplayedChildren();Y&&(j=f(Y,w,M+1))}j&&(P=!0,w[M]||(w[M]=[]),w[M].push(G))}return P};f(c,this.rowsOfHeadersToRenderLeft,0),f(h,this.rowsOfHeadersToRenderRight,0),f(g,this.rowsOfHeadersToRenderCenter,0)}extractViewport(){this.extractViewportColumns();let C=this.getViewportColumns().map(s=>`${s.getId()}-${s.getPinned()||"normal"}`).join("#"),d=this.colsWithinViewportHash!==C;return d&&(this.colsWithinViewportHash=C,this.calculateHeaderRows()),d}}x.ColumnViewportService=T},6350:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DataTypeService=void 0;let A=p(9853),E=p(8731),z=p(7274),T=p(9827),b=p(4422),C=p(6996),d=p(7764),s=p(2716),c=p(5266),h=p(3146);class g extends E.BeanStub{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[]}wireBeans(O){this.colModel=O.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",O=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs((0,h._convertColumnEventSourceType)(O.source))})}processDataTypeDefinitions(){var ce;let O=this.getDefaultDataTypes(),G={};this.dataTypeDefinitions=G;let j={};this.formatValueFuncs=j;let Y=fe=>xe=>{let{column:Le,node:_e,value:Fe}=xe,We=Le.getColDef().valueFormatter;return We===fe.groupSafeValueFormatter&&(We=fe.valueFormatter),this.beans.valueSvc.formatValue(Le,_e,Fe,We)};Object.entries(O).forEach(([fe,xe])=>{let Le=He(ge({},xe),{groupSafeValueFormatter:w(xe,this.gos)});G[fe]=Le,j[fe]=Y(Le)});let J=(ce=this.gos.get("dataTypeDefinitions"))!=null?ce:{},ne={};this.dataTypeMatchers=ne,Object.entries(J).forEach(([fe,xe])=>{let Le=this.processDataTypeDefinition(xe,J,[fe],O);Le&&(G[fe]=Le,xe.dataTypeMatcher&&(ne[fe]=xe.dataTypeMatcher),j[fe]=Y(Le))}),this.checkObjectValueHandlers(O),["dateString","text","number","boolean","date"].forEach(fe=>{let xe=ne[fe];xe&&delete ne[fe],ne[fe]=xe!=null?xe:O[fe].dataTypeMatcher})}processDataTypeDefinition(O,G,j,Y){let J,ne=O.extendsDataType;if(O.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),O.extendsDataType===O.baseDataType){let ce=Y[ne],fe=G[ne];if(ce&&fe&&(ce=fe),!S(O,ce,ne))return;J=f(ce,O)}else{if(j.includes(ne))return void(0,d._warn)(44);let ce=G[ne];if(!S(O,ce,ne))return;let fe=this.processDataTypeDefinition(ce,G,[...j,ne],Y);if(!fe)return;J=f(fe,O)}return He(ge({},J),{groupSafeValueFormatter:w(J,this.gos)})}updateColDefAndGetColumnType(O,G,j){let{cellDataType:Y}=G,{field:J}=G;if(Y===void 0&&(Y=O.cellDataType),Y!=null&&Y!==!0||(Y=!!this.canInferCellDataType(O,G)&&this.inferCellDataType(J,j)),!Y)return void(O.cellDataType=!1);let ne=this.dataTypeDefinitions[Y];if(ne)return O.cellDataType=Y,ne.groupSafeValueFormatter&&(O.valueFormatter=ne.groupSafeValueFormatter),ne.valueParser&&(O.valueParser=ne.valueParser),ne.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(O,Y,ne,j),ne.columnTypes;(0,d._warn)(47,{cellDataType:Y})}addColumnListeners(O){if(!this.isPendingInference)return;let G=this.columnStateUpdatesPendingInference[O.getColId()];if(!G)return;let j=Y=>{G.add(Y.key)};O.addEventListener("columnStateUpdated",j),this.columnStateUpdateListenerDestroyFuncs.push(()=>O.removeEventListener("columnStateUpdated",j))}canInferCellDataType(O,G){var ne;let{gos:j}=this;if(!(0,z._isClientSideRowModel)(j))return!1;let Y={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(M(G,Y))return!1;let J=G.type===null?O.type:G.type;if(J){let ce=(ne=j.get("columnTypes"))!=null?ne:{};if((0,h.convertColumnTypes)(J).some(fe=>{let xe=ce[fe.trim()];return xe&&M(xe,Y)}))return!1}return!M(O,Y)}inferCellDataType(O,G){var ne;if(!O)return;let j,Y=this.getInitialData();if(Y){let ce=O.indexOf(".")>=0&&!this.gos.get("suppressFieldDotNotation");j=(0,C._getValueUsingField)(Y,O,ce)}else this.initWaitForRowData(G);if(j==null)return;let[J]=(ne=Object.entries(this.dataTypeMatchers).find(([ce,fe])=>fe(j)))!=null?ne:["object"];return J}getInitialData(){var G;let O=this.gos.get("rowData");if(O!=null&&O.length)return O[0];if(this.initialData)return this.initialData;{let j=(G=this.beans.rowModel.rootNode)==null?void 0:G.allLeafChildren;if(j!=null&&j.length)return j[0].data}return null}initWaitForRowData(O){if(this.columnStateUpdatesPendingInference[O]=new Set,this.isPendingInference)return;this.isPendingInference=!0;let G=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:j,eventSvc:Y}=this.beans;G&&j&&(j.shouldQueueResizeOperations=!0);let[J]=this.addManagedEventListeners({rowDataUpdateStarted:ne=>{let{firstRowData:ce}=ne;ce&&(J==null||J(),this.isPendingInference=!1,this.processColumnsPendingInference(ce,G),this.columnStateUpdatesPendingInference={},G&&(j==null||j.processResizeOperations()),Y.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(O,G){this.initialData=O;let j=[];this.destroyColumnStateUpdateListeners();let Y={},J={};Object.entries(this.columnStateUpdatesPendingInference).forEach(([ne,ce])=>{let fe=this.colModel.getCol(ne);if(!fe)return;let xe=fe.getColDef();if(!this.resetColDefIntoCol(fe,"cellDataTypeInferred"))return;let Le=fe.getColDef();if(G&&Le.type&&Le.type!==xe.type){let _e=function(Fe,We){let it=(0,c.getColumnStateFromColDef)(Fe);return We.forEach(tt=>{delete it[tt],tt==="rowGroup"?delete it.rowGroupIndex:tt==="pivot"&&delete it.pivotIndex}),it}(fe,ce);_e.rowGroup&&_e.rowGroupIndex==null&&(Y[ne]=_e),_e.pivot&&_e.pivotIndex==null&&(J[ne]=_e),j.push(_e)}}),G&&j.push(...this.generateColumnStateForRowGroupAndPivotIndexes(Y,J)),j.length&&(0,c._applyColumnState)(this.beans,{state:j},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(O,G){let j={},{rowGroupColsSvc:Y,pivotColsSvc:J}=this.beans;return Y==null||Y.restoreColumnOrder(j,O),J==null||J.restoreColumnOrder(j,G),Object.values(j)}resetColDefIntoCol(O,G){let j=O.getUserProvidedColDef();if(!j)return!1;let Y=(0,s._addColumnDefaultAndTypes)(this.beans,j,O.getColId());return O.setColDef(Y,j,G),!0}checkObjectValueHandlers(O){let G=this.dataTypeDefinitions.object,j=O.object;this.hasObjectValueParser=G.valueParser!==j.valueParser,this.hasObjectValueFormatter=G.valueFormatter!==j.valueFormatter}getDateStringTypeDefinition(O){var j;let{dateString:G}=this.dataTypeDefinitions;return O&&(j=this.getDataTypeDefinition(O))!=null?j:G}getDateParserFunction(O){return this.getDateStringTypeDefinition(O).dateParser}getDateFormatterFunction(O){return this.getDateStringTypeDefinition(O).dateFormatter}getDataTypeDefinition(O){let G=O.getColDef();if(G.cellDataType)return this.dataTypeDefinitions[G.cellDataType]}getBaseDataType(O){var G;return(G=this.getDataTypeDefinition(O))==null?void 0:G.baseDataType}checkType(O,G){var Y;if(G==null)return!0;let j=(Y=this.getDataTypeDefinition(O))==null?void 0:Y.dataTypeMatcher;return!j||j(G)}validateColDef(O){let G=j=>(0,d._warn)(48,{property:j});if(O.cellDataType==="object"){let{object:j}=this.dataTypeDefinitions;O.valueFormatter!==j.groupSafeValueFormatter||this.hasObjectValueFormatter||G("Formatter"),O.editable&&O.valueParser===j.valueParser&&!this.hasObjectValueParser&&G("Parser")}}getFormatValue(O){return this.formatValueFuncs[O]}isColPendingInference(O){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[O]}setColDefPropertiesForBaseDataType(O,G,j,Y){var ne;let J=this.formatValueFuncs[G];switch(j.baseDataType){case"number":O.cellEditor="agNumberCellEditor";break;case"boolean":O.cellEditor="agCheckboxCellEditor",O.cellRenderer="agCheckboxCellRenderer",O.suppressKeyboardEvent=ce=>!!ce.colDef.editable&&ce.event.key===A.KeyCode.SPACE;break;case"date":O.cellEditor="agDateCellEditor",O.keyCreator=J;break;case"dateString":O.cellEditor="agDateStringCellEditor",O.keyCreator=J;break;case"object":O.cellEditorParams={useFormatter:!0},O.comparator=(ce,fe)=>{let xe=this.colModel.getColDefCol(Y),Le=xe==null?void 0:xe.getColDef();if(!xe||!Le)return 0;let _e=ce==null?"":J({column:xe,node:null,value:ce}),Fe=fe==null?"":J({column:xe,node:null,value:fe});return _e===Fe?0:_e>Fe?1:-1},O.keyCreator=J}(ne=this.beans.filterManager)==null||ne.setColDefPropertiesForDataType(O,j,J)}getDefaultDataTypes(){let O=j=>!!j.match("^\\d{4}-\\d{2}-\\d{2}$"),G=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:j=>{var Y,J;return((J=(Y=j.newValue)==null?void 0:Y.trim)==null?void 0:J.call(Y))===""?null:Number(j.newValue)},valueFormatter:j=>j.value==null?"":typeof j.value!="number"||isNaN(j.value)?G("invalidNumber","Invalid Number"):String(j.value),dataTypeMatcher:j=>typeof j=="number"},text:{baseDataType:"text",valueParser:j=>j.newValue===""?null:(0,b._toStringOrNull)(j.newValue),dataTypeMatcher:j=>typeof j=="string"},boolean:{baseDataType:"boolean",valueParser:j=>{var Y,J;return j.newValue==null?j.newValue:((J=(Y=j.newValue)==null?void 0:Y.trim)==null?void 0:J.call(Y))===""?null:String(j.newValue).toLowerCase()==="true"},valueFormatter:j=>j.value==null?"":String(j.value),dataTypeMatcher:j=>typeof j=="boolean"},date:{baseDataType:"date",valueParser:j=>(0,T._parseDateTimeFromString)(j.newValue==null?null:String(j.newValue)),valueFormatter:j=>{var Y;return j.value==null?"":j.value instanceof Date&&!isNaN(j.value.getTime())?(Y=(0,T._serialiseDate)(j.value,!1))!=null?Y:"":G("invalidDate","Invalid Date")},dataTypeMatcher:j=>j instanceof Date},dateString:{baseDataType:"dateString",dateParser:j=>{var Y;return(Y=(0,T._parseDateTimeFromString)(j))!=null?Y:void 0},dateFormatter:j=>{var Y;return(Y=(0,T._serialiseDate)(j!=null?j:null,!1))!=null?Y:void 0},valueParser:j=>O(String(j.newValue))?j.newValue:null,valueFormatter:j=>O(String(j.value))?j.value:"",dataTypeMatcher:j=>typeof j=="string"&&O(j)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:j=>{var Y;return(Y=(0,b._toStringOrNull)(j.value))!=null?Y:""}}}}destroyColumnStateUpdateListeners(){this.columnStateUpdateListenerDestroyFuncs.forEach(O=>O()),this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}}function f(P,O){let G=ge(ge({},P),O);return P.columnTypes&&O.columnTypes&&O.appendColumnTypes&&(G.columnTypes=[...(0,h.convertColumnTypes)(P.columnTypes),...(0,h.convertColumnTypes)(O.columnTypes)]),G}function S(P,O,G){return O?O.baseDataType===P.baseDataType||((0,d._warn)(46),!1):((0,d._warn)(45,{parentCellDataType:G}),!1)}function w(P,O){if(P.valueFormatter)return G=>{var j,Y,J;if((j=G.node)!=null&&j.group){let ne=((Y=G.colDef.pivotValueColumn)!=null?Y:G.column).getAggFunc();if(ne){if(ne==="first"||ne==="last")return P.valueFormatter(G);if(P.baseDataType==="number"&&ne!=="count"){if(typeof G.value=="number")return P.valueFormatter(G);if(typeof G.value=="object"){if(!G.value)return;if("toNumber"in G.value)return P.valueFormatter(He(ge({},G),{value:G.value.toNumber()}));if("value"in G.value)return P.valueFormatter(He(ge({},G),{value:G.value.value}))}}return}if(O.get("groupDisplayType")==="groupRows"&&!O.get("treeData"))return}else if(O.get("groupHideOpenParents")&&G.column.isRowGroupActive()&&typeof G.value=="string"&&!((J=P.dataTypeMatcher)!=null&&J.call(P,G.value)))return;return P.valueFormatter(G)}}function M(P,O){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([G,j])=>function(Y,J,ne,ce){if(!J[ne])return!1;let fe=Y[ne];return fe===null?(J[ne]=!1,!1):ce===void 0?!!fe:fe===ce}(P,O,G,j))}x.DataTypeService=g},6034:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.GroupInstanceIdCreator=void 0,x.GroupInstanceIdCreator=class{constructor(){this.existingIds={}}getInstanceIdForKey(p){let A=this.existingIds[p],E;return E=typeof A!="number"?0:A+1,this.existingIds[p]=E,E}}},5626:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionColService=x.CONTROLS_COLUMN_ID_PREFIX=void 0;let A=p(8731),E=p(3355),z=p(7274),T=p(5266),b=p(3146);x.CONTROLS_COLUMN_ID_PREFIX="ag-Grid-SelectionColumn";class C extends A.BeanStub{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",h=>{this.onSelectionOptionsChanged(h.currentValue,h.previousValue,(0,b._convertColumnEventSourceType)(h.source))})}addSelectionCols(h){let g=this.selectionCols;g!=null&&(h.list=g.list.concat(h.list),h.tree=g.tree.concat(h.tree),(0,b._updateColsMap)(h))}createSelectionCols(h,g){var G,j,Y,J,ne,ce;let f=h.treeDepth,S=((j=(G=this.selectionCols)==null?void 0:G.treeDepth)!=null?j:-1)==f,w=this.generateSelectionCols();if((0,b._areColIdsEqual)(w,(J=(Y=this.selectionCols)==null?void 0:Y.list)!=null?J:[])&&S)return;(()=>{var fe;(0,b._destroyColumnTree)(this.beans,(fe=this.selectionCols)==null?void 0:fe.tree),this.selectionCols=null})();let{colGroupSvc:M}=this.beans,P=(ne=M==null?void 0:M.findDepth(h.tree))!=null?ne:0,O=(ce=M==null?void 0:M.balanceTreeForAutoCols(w,P))!=null?ce:[];this.selectionCols={list:w,tree:O,treeDepth:P,map:{}},g(fe=>{if(!fe)return null;let xe=fe.filter(Le=>!(0,b.isColumnSelectionCol)(Le));return[...w,...xe]})}isSelectionColumnEnabled(){var P,O,G;let{gos:h,beans:g}=this,f=h.get("rowSelection");if(typeof f!="object"||!(0,z._isRowSelection)(h))return!1;let S=((G=(O=(P=g.autoColSvc)==null?void 0:P.getAutoCols())==null?void 0:O.length)!=null?G:0)>0;if(f.checkboxLocation==="autoGroupColumn"&&S)return!1;let w=!!(0,z._getCheckboxes)(f),M=(0,z._getHeaderCheckbox)(f);return w||M}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];let{gos:h,validation:g}=this.beans,f=h.get("selectionColumnDef"),S=He(ge({width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:h.get("enableRtl")?"right":"left",comparator(P,O,G,j){let Y=G.isSelected();return Y===j.isSelected()?0:Y?1:-1},editable:!1,suppressFillHandle:!0},f),{colId:x.CONTROLS_COLUMN_ID_PREFIX}),w=S.colId;g==null||g.validateColDef(S,w,!0);let M=new E.AgColumn(S,null,w,!1);return this.createBean(M),[M]}putSelectionColsFirstInList(h,g){return g?[...h,...g.filter(f=>!(0,b.isColumnSelectionCol)(f))]:null}getSelectionCol(h){var g,f;return(f=(g=this.selectionCols)==null?void 0:g.list.find(S=>(0,b._columnsMatch)(S,h)))!=null?f:null}getSelectionCols(){var h,g;return(g=(h=this.selectionCols)==null?void 0:h.list)!=null?g:null}onSelectionOptionsChanged(h,g,f){let S=(g&&typeof g!="string"?(0,z._getCheckboxes)(g):void 0)!==(h&&typeof h!="string"?(0,z._getCheckboxes)(h):void 0),w=(g&&typeof g!="string"?(0,z._getHeaderCheckbox)(g):void 0)!==(h&&typeof h!="string"?(0,z._getHeaderCheckbox)(h):void 0),M=(0,z._getCheckboxLocation)(h),P=(0,z._getCheckboxLocation)(g);(S||w||M!==P)&&this.beans.colModel.refreshAll(f)}destroy(){var h;(0,b._destroyColumnTree)(this.beans,(h=this.selectionCols)==null?void 0:h.tree),super.destroy()}refreshVisibility(h){var S;if(!this.isSelectionColumnEnabled())return;let g=this.beans,f=(S=g.visibleCols.getAllTrees())!=null?S:[];if(f.length!==0){if(!f.some(d)){let w=(0,T._getColumnState)(g).find(M=>(0,b.isColumnSelectionCol)(M.colId));w&&(0,T._applyColumnState)(g,{state:[{colId:w.colId,hide:!w.hide}]},h)}if(f.length===1){let w=s(f[0]);if(!w)return;(0,T._applyColumnState)(g,{state:[{colId:w.getColId(),hide:!0}]},h)}}}}x.SelectionColService=C;let d=c=>{var h,g;return c.isColumn?(0,b.isColumnSelectionCol)(c):(g=(h=c.getChildren())==null?void 0:h.some(d))!=null?g:!1};function s(c){var g;if(c.isColumn)return(0,b.isColumnSelectionCol)(c)?c:null;let h=(g=c.getChildren())!=null?g:[];for(let f of h){let S=s(f);if(S)return S}return null}},6869:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.depthFirstAllColumnTreeSearch=x.VisibleColsService=void 0;let A=p(8731),E=p(3355),z=p(6908),T=p(1502),b=p(3146),C=p(6034);class d extends A.BeanStub{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(g,f=!1){var G;let{colModel:S,colGroupSvc:w,colViewport:M}=this.beans;f||this.buildTrees(S,w),w==null||w.updateOpenClosedVisibility();let P=c(this.treeLeft);this.leftCols=P,this.centerCols=c(this.treeCenter);let O=c(this.treeRight);this.rightCols=O,this.joinColsAriaOrder(S),this.joinCols(),this.setLeftValues(g),this.autoHeightCols=this.allCols.filter(j=>j.isAutoHeight()),(G=this.beans.colFlex)==null||G.refreshFlexedColumns(),this.updateBodyWidths(),M.checkViewportColumns(!1),this.setFirstRightAndLastLeftPinned(S,P,O,g),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:g})}updateBodyWidths(){let g=(0,b.getWidthOfColsInList)(this.centerCols),f=(0,b.getWidthOfColsInList)(this.leftCols),S=(0,b.getWidthOfColsInList)(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==g,(this.bodyWidth!==g||this.leftWidth!==f||this.rightWidth!==S)&&(this.bodyWidth=g,this.leftWidth=f,this.rightWidth=S,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(g){this.setLeftValuesOfCols(g),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(g,f,S,w){let M,P;this.gos.get("enableRtl")?(M=f?f[0]:null,P=S?(0,T._last)(S):null):(M=f?(0,T._last)(f):null,P=S?S[0]:null),g.getCols().forEach(O=>{O.setLastLeftPinned(O===M,w),O.setFirstRightPinned(O===P,w)})}buildTrees(g,f){let S=g.getColsToShow(),w=S.filter(j=>j.getPinned()=="left"),M=S.filter(j=>j.getPinned()=="right"),P=S.filter(j=>j.getPinned()!="left"&&j.getPinned()!="right"),O=new C.GroupInstanceIdCreator,G=j=>f?f.createColumnGroups(j):j.columns;this.treeLeft=G({columns:w,idCreator:O,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=G({columns:M,idCreator:O,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=G({columns:P,idCreator:O,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(g){let f=g.getCols(),S=[],w=[],M=[];for(let P of f){let O=P.getPinned();O?O===!0||O==="left"?S.push(P):M.push(P):w.push(P)}this.ariaOrderColumns=S.concat(w).concat(M)}getAriaColIndex(g){let f;return f=(0,z.isColumnGroup)(g)?g.getLeafColumns()[0]:g,this.ariaOrderColumns.indexOf(f)+1}setLeftValuesOfGroups(){[this.treeLeft,this.treeRight,this.treeCenter].forEach(g=>{g.forEach(f=>{(0,z.isColumnGroup)(f)&&f.checkLeft()})})}setLeftValuesOfCols(g){let{colModel:f}=this.beans;if(!f.getColDefCols())return;let S=f.getCols().slice(0),w=this.gos.get("enableRtl");[this.leftCols,this.rightCols,this.centerCols].forEach(M=>{if(w){let P=(0,b.getWidthOfColsInList)(M);M.forEach(O=>{P-=O.getActualWidth(),O.setLeft(P,g)})}else{let P=0;M.forEach(O=>{O.setLeft(P,g),P+=O.getActualWidth()})}(function(P,O){for(let G=0;G<O.length;G++){let j=P.indexOf(O[G]);j>=0&&(P[j]=P[P.length-1],P.pop())}})(S,M)}),S.forEach(M=>{M.setLeft(null,g)})}joinCols(){this.gos.get("enableRtl")?this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols):this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(g){return this.allCols.indexOf(g)>=0}getLeftColsForRow(g){let{leftCols:f,beans:{colModel:S}}=this;return S.colSpanActive?this.getColsForRow(g,f):f}getRightColsForRow(g){let{rightCols:f,beans:{colModel:S}}=this;return S.colSpanActive?this.getColsForRow(g,f):f}getColsForRow(g,f,S,w){let M=[],P=null;for(let O=0;O<f.length;O++){let G=f[O],j=f.length-O,Y=Math.min(G.getColSpan(g),j),J=[G];if(Y>1){let ce=Y-1;for(let fe=1;fe<=ce;fe++)J.push(f[O+fe]);O+=ce}let ne;S?(ne=!1,J.forEach(ce=>{S(ce)&&(ne=!0)})):ne=!0,ne&&(M.length===0&&P&&w&&w(G)&&M.push(P),M.push(G)),P=G}return M}getContainerWidth(g){switch(g){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(g){let f=this.allCols,S=f.indexOf(g);return S>0?f[S-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};let g=f=>{this.colsAndGroupsMap[f.getUniqueId()]=f};s(this.treeCenter,!1,g),s(this.treeLeft,!1,g),s(this.treeRight,!1,g)}isVisible(g){return this.colsAndGroupsMap[g.getUniqueId()]===g}getFirstColumn(){let g=this.gos.get("enableRtl"),f=["leftCols","centerCols","rightCols"];g&&f.reverse();for(let S=0;S<f.length;S++){let w=this[f[S]];if(w.length)return g?(0,T._last)(w):w[0]}return null}getColAfter(g){let f=this.allCols,S=f.indexOf(g);return S<f.length-1?f[S+1]:null}getColsLeftWidth(){return(0,b.getWidthOfColsInList)(this.leftCols)}getDisplayedColumnsRightWidth(){return(0,b.getWidthOfColsInList)(this.rightCols)}isColAtEdge(g,f){let S=this.allCols;if(!S.length)return!1;let w=f==="first",M;if((0,z.isColumnGroup)(g)){let P=g.getDisplayedLeafColumns();if(!P.length)return!1;M=w?P[0]:(0,T._last)(P)}else M=g;return(w?S[0]:(0,T._last)(S))===M}}function s(h,g,f){if(h)for(let S=0;S<h.length;S++){let w=h[S];(0,z.isColumnGroup)(w)&&s(g?w.getDisplayedChildren():w.getChildren(),g,f),f(w)}}function c(h){let g=[];return s(h,!0,f=>{(0,E.isColumn)(f)&&g.push(f)}),g}x.VisibleColsService=d,x.depthFirstAllColumnTreeSearch=s},3789:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.setupCompBean=x.EmptyBean=void 0;let A=p(8731);class E extends A.BeanStub{}x.EmptyBean=E,x.setupCompBean=function(z,T,b){return b&&z.addDestroyFunc(()=>T.destroyBean(b)),b!=null?b:z}},4309:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgComponentUtils=void 0;let A=p(8731),E=p(3507);class z extends A.BeanStub{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(b,C){return b.cellRenderer?class{refresh(){return!1}getGui(){return this.eGui}init(d){let s=C(d),c=typeof s;this.eGui=c!=="string"&&c!=="number"&&c!=="boolean"?s!=null?s:(0,E._loadTemplate)("<span></span>"):(0,E._loadTemplate)("<span>"+s+"</span>")}}:null}}x.AgComponentUtils=z},8414:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellRendererFunctionModule=void 0;let A=p(7205),E=p(4309);x.CellRendererFunctionModule={moduleName:"CellRendererFunction",version:A.VERSION,beans:[E.AgComponentUtils]}},8759:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BaseComponentWrapper=void 0;let A=p(7764);x.BaseComponentWrapper=class{wrap(E,z,T,b){let C=this.createWrapper(E,b);return z==null||z.forEach(d=>{this.createMethod(C,d,!0)}),T==null||T.forEach(d=>{this.createMethod(C,d,!1)}),C}createMethod(E,z,T){E.addMethod(z,this.createMethodProxy(E,z,T))}createMethodProxy(E,z,T){return function(){return E.hasMethod(z)?E.callMethod(z,arguments):(T&&(0,A._warn)(49,{methodName:z}),null)}}}},4110:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.Registry=void 0;let A=p(8731),E=p(7764);class z extends A.BeanStub{constructor(){super(...arguments),this.beanName="registry",this.agGridDefaults={},this.agGridDefaultParams={},this.jsComps={},this.dynamicBeans={},this.selectors={},this.icons={}}postConstruct(){let b=this.gos.get("components");b!=null&&Object.entries(b).forEach(([C,d])=>{this.jsComps[C]=d})}registerModule(b){let{icons:C,userComponents:d,dynamicBeans:s,selectors:c}=b;if(d){let h=(g,f,S)=>{this.agGridDefaults[g]=f,S&&(this.agGridDefaultParams[g]=S)};for(let g of Object.keys(d)){let f=d[g];typeof f=="object"?h(g,f.classImp,f.params):h(g,f)}}if(s)for(let h of Object.keys(s))this.dynamicBeans[h]=s[h];if(c==null||c.forEach(h=>{this.selectors[h.selector]=h}),C)for(let h of Object.keys(C))this.icons[h]=C[h]}getUserComponent(b,C){var f;let d=(S,w,M)=>({componentFromFramework:w,component:S,params:M}),{frameworkOverrides:s}=this.beans,c=s.frameworkComponent(C,this.gos.get("components"));if(c!=null)return d(c,!0);let h=this.jsComps[C];if(h)return d(h,s.isFrameworkComponent(h));let g=this.agGridDefaults[C];return g?d(g,!1,this.agGridDefaultParams[C]):((f=this.beans.validation)==null||f.missingUserComponent(b,C,this.agGridDefaults,this.jsComps),null)}createDynamicBean(b,C,...d){let s=this.dynamicBeans[b];if(s!=null)return new s(...d);if(C)throw new Error((0,E._errMsg)(256))}getSelector(b){return this.selectors[b]}getIcon(b){return this.icons[b]}}x.Registry=z},4126:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x._unwrapUserComp=void 0,x._unwrapUserComp=function(p){let A=p;return A!=null&&A.getFrameworkComponentInstance!=null?A.getFrameworkComponentInstance():p}},2036:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._mergeFilterParamsWithApplicationProvidedParams=x._getFilterCompKeys=x._getFloatingFilterCompDetails=x._getTooltipCompDetails=x._getNoRowsOverlayCompDetails=x._getLoadingOverlayCompDetails=x._getDateCompDetails=x._getFilterDetails=x._getCellEditorDetails=x._getLoadingCellRendererDetails=x._getEditorRendererDetails=x._getCellRendererDetails=x._getFullWidthDetailCellRendererDetails=x._getFullWidthGroupCellRendererDetails=x._getFullWidthLoadingCellRendererDetails=x._getFullWidthCellRendererDetails=x._getInnerHeaderGroupCompDetails=x._getHeaderGroupCompDetails=x._getInnerHeaderCompDetails=x._getHeaderCompDetails=x._getInnerCellRendererDetails=x._getDragAndDropImageCompDetails=void 0;let A=p(1585),E={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},z={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},T={name:"headerComponent",optionalMethods:["refresh"]},b={name:"innerHeaderComponent"},C={name:"innerHeaderGroupComponent"},d={name:"headerGroupComponent"},s={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},c={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},h={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"]},g={name:"loadingCellRenderer",cellRenderer:!0},f={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},S={name:"loadingOverlayComponent",optionalMethods:["refresh"]},w={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},M={name:"tooltipComponent"},P={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},O={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},G={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},j={name:"loadingCellRenderer",cellRenderer:!0},Y={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},J={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};x._getDragAndDropImageCompDetails=function(ne,ce){return ne.getCompDetailsFromGridOptions(z,"agDragAndDropImage",ce,!0)},x._getInnerCellRendererDetails=function(ne,ce,fe){return ne.getCompDetails(ce,s,void 0,fe)},x._getHeaderCompDetails=function(ne,ce,fe){return ne.getCompDetails(ce,T,"agColumnHeader",fe)},x._getInnerHeaderCompDetails=function(ne,ce,fe){return ne.getCompDetails(ce,b,void 0,fe)},x._getHeaderGroupCompDetails=function(ne,ce){let fe=ce.columnGroup.getColGroupDef();return ne.getCompDetails(fe,d,"agColumnGroupHeader",ce)},x._getInnerHeaderGroupCompDetails=function(ne,ce,fe){return ne.getCompDetails(ce,C,void 0,fe)},x._getFullWidthCellRendererDetails=function(ne,ce){return ne.getCompDetailsFromGridOptions(G,void 0,ce,!0)},x._getFullWidthLoadingCellRendererDetails=function(ne,ce){return ne.getCompDetailsFromGridOptions(j,"agLoadingCellRenderer",ce,!0)},x._getFullWidthGroupCellRendererDetails=function(ne,ce){return ne.getCompDetailsFromGridOptions(Y,"agGroupRowRenderer",ce,!0)},x._getFullWidthDetailCellRendererDetails=function(ne,ce){return ne.getCompDetailsFromGridOptions(J,"agDetailCellRenderer",ce,!0)},x._getCellRendererDetails=function(ne,ce,fe){return ne.getCompDetails(ce,c,void 0,fe)},x._getEditorRendererDetails=function(ne,ce,fe){return ne.getCompDetails(ce,h,void 0,fe)},x._getLoadingCellRendererDetails=function(ne,ce,fe){return ne.getCompDetails(ce,g,"agSkeletonCellRenderer",fe,!0)},x._getCellEditorDetails=function(ne,ce,fe){return ne.getCompDetails(ce,f,"agCellEditor",fe,!0)},x._getFilterDetails=function(ne,ce,fe,xe){return ne.getCompDetails(ce,P,xe,fe,!0)},x._getDateCompDetails=function(ne,ce){return ne.getCompDetailsFromGridOptions(E,"agDateInput",ce,!0)},x._getLoadingOverlayCompDetails=function(ne,ce){return ne.getCompDetailsFromGridOptions(S,"agLoadingOverlay",ce,!0)},x._getNoRowsOverlayCompDetails=function(ne,ce){return ne.getCompDetailsFromGridOptions(w,"agNoRowsOverlay",ce,!0)},x._getTooltipCompDetails=function(ne,ce){return ne.getCompDetails(ce.colDef,M,"agTooltipComponent",ce,!0)},x._getFloatingFilterCompDetails=function(ne,ce,fe,xe){return ne.getCompDetails(ce,O,xe,fe)},x._getFilterCompKeys=function(ne,ce){return(0,A._getUserCompKeys)(ne,ce,P)},x._mergeFilterParamsWithApplicationProvidedParams=function(ne,ce,fe){return ne.mergeParams(ce,P,fe)}},1585:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.UserComponentFactory=x._getUserCompKeys=void 0;let A=p(8731),E=p(6996),z=p(7990),T=p(7764);function b(d,s,c,h){let{name:g}=c,f,S,w,M,P,O;if(s){let G=s,j=G[g+"Selector"],Y=j?j(h):null,J=ne=>{typeof ne=="string"?f=ne:ne!=null&&ne!==!0&&(d.isFrameworkComponent(ne)?w=ne:S=ne)};Y?(J(Y.component),M=Y.params,P=Y.popup,O=Y.popupPosition):J(G[g])}return{compName:f,jsComp:S,fwComp:w,paramsFromSelector:M,popupFromSelector:P,popupPositionFromSelector:O}}x._getUserCompKeys=b;class C extends A.BeanStub{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(s){this.agCompUtils=s.agCompUtils,this.registry=s.registry,this.frameworkCompWrapper=s.frameworkCompWrapper,this.gridOptions=s.gridOptions}getCompDetailsFromGridOptions(s,c,h,g=!1){return this.getCompDetails(this.gridOptions,s,c,h,g)}getCompDetails(s,c,h,g,f=!1){var _e;let{name:S,cellRenderer:w}=c,M,{compName:P,jsComp:O,fwComp:G,paramsFromSelector:j,popupFromSelector:Y,popupPositionFromSelector:J}=b(this.beans.frameworkOverrides,s,c,g),ne=Fe=>{let We=this.registry.getUserComponent(S,Fe);We&&(O=We.componentFromFramework?void 0:We.component,G=We.componentFromFramework?We.component:void 0,M=We.params)};var ce;if(P!=null&&ne(P),O==null&&G==null&&h!=null&&ne(h),!O||!w||(ce=O)&&ce.prototype&&"getGui"in ce.prototype||(O=(_e=this.agCompUtils)==null?void 0:_e.adaptFunction(c,O)),!O&&!G){let{validation:Fe}=this.beans;return void(!f||P===h&&h?h&&!Fe&&(0,T._error)(146,{comp:h}):P?(Fe==null?void 0:Fe.isProvidedUserComp(P))||(0,T._error)(50,{compName:P}):h?Fe||(0,T._error)(260,He(ge({},this.gos.getModuleErrorParams()),{propName:S,compName:h})):(0,T._error)(216,{name:S}))}let fe=this.mergeParams(s,c,g,j,M),xe=O==null,Le=O!=null?O:G;return{componentFromFramework:xe,componentClass:Le,params:fe,type:c,popupFromSelector:Y,popupPositionFromSelector:J,newAgStackInstance:()=>this.newAgStackInstance(Le,xe,fe,c)}}newAgStackInstance(s,c,h,g){var w;let f;f=c?this.frameworkCompWrapper.wrap(s,g.mandatoryMethods,g.optionalMethods,g):new s,this.createBean(f);let S=(w=f.init)==null?void 0:w.call(f,h);return S==null?z.AgPromise.resolve(f):S.then(()=>f)}mergeParams(s,c,h,g=null,f){let S=this.gos.getGridCommonParams();(0,E._mergeDeep)(S,h),f&&(0,E._mergeDeep)(S,f);let w=s&&s[c.name+"Params"];if(typeof w=="function"){let M=w(h);(0,E._mergeDeep)(S,M)}else typeof w=="object"&&(0,E._mergeDeep)(S,w);return(0,E._mergeDeep)(S,g),S}}x.UserComponentFactory=C},9853:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.KeyCode=void 0,x.KeyCode={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"}},8731:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BeanStub=void 0;let A=p(5889),E=p(7230),z=p(2979);x.BeanStub=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(T){this.beans=T,this.stubContext=T.context,this.eventSvc=T.eventSvc,this.gos=T.gos}destroy(){let{destroyFunctions:T}=this;for(let b=0;b<T.length;b++)T[b]();T.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(T,b,C){this.localEventService||(this.localEventService=new A.LocalEventService),this.localEventService.addEventListener(T,b,C)}removeEventListener(T,b,C){var d;(d=this.localEventService)==null||d.removeEventListener(T,b,C)}dispatchLocalEvent(T){var b;(b=this.localEventService)==null||b.dispatchEvent(T)}addManagedElementListeners(T,b){return this._setupListeners(T,b)}addManagedEventListeners(T){return this._setupListeners(this.eventSvc,T)}addManagedListeners(T,b){return this._setupListeners(T,b)}_setupListeners(T,b){let C=[];for(let d of Object.keys(b)){let s=b[d];s&&C.push(this._setupListener(T,d,s))}return C}_setupListener(T,b,C){if(this.destroyed)return()=>null;T instanceof HTMLElement?(0,z._addSafePassiveEventListener)(this.beans.frameworkOverrides,T,b,C):T.addEventListener(b,C);let d=()=>(T.removeEventListener(b,C),null);return this.destroyFunctions.push(d),()=>(d(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==d),null)}setupGridOptionListener(T,b){let{gos:C}=this;C.addPropertyEventListener(T,b);let d=()=>(C.removePropertyEventListener(T,b),null);return this.destroyFunctions.push(d),()=>(d(),this.destroyFunctions=this.destroyFunctions.filter(s=>s!==d),null)}addManagedPropertyListener(T,b){return this.destroyed?()=>null:this.setupGridOptionListener(T,b)}addManagedPropertyListeners(T,b){if(this.destroyed)return;let C=T.join("-")+this.propertyListenerId++,d=s=>{if(s.changeSet){if(s.changeSet&&s.changeSet.id===this.lastChangeSetIdLookup[C])return;this.lastChangeSetIdLookup[C]=s.changeSet.id}let c={type:"gridPropertyChanged",changeSet:s.changeSet,source:s.source};b(c)};T.forEach(s=>this.setupGridOptionListener(s,d))}getLocaleTextFunc(){return(0,E._getLocaleTextFunc)(this.beans.localeSvc)}addDestroyFunc(T){this.isAlive()?this.destroyFunctions.push(T):T()}createOptionalManagedBean(T,b){return T?this.createManagedBean(T,b):void 0}createManagedBean(T,b){let C=this.createBean(T,b);return this.addDestroyFunc(this.destroyBean.bind(this,T,b)),C}createBean(T,b,C){return(b||this.stubContext).createBean(T,C)}destroyBean(T,b){return(b||this.stubContext).destroyBean(T)}destroyBeans(T,b){return(b||this.stubContext).destroyBeans(T)}}},2342:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.Context=void 0;let A=p(2132),E=p(569);class z extends E.GenericContext{init(b){this.gridId=b.gridId,this.beans.context=this,this.destroyCallback=b.destroyCallback,super.init(b)}destroy(){var b;super.destroy(),(0,A._unRegisterGridModules)(this.gridId),(b=this.destroyCallback)==null||b.call(this)}getGridId(){return this.gridId}}x.Context=z},569:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.GenericContext=void 0,x.GenericContext=class{constructor(p){this.beans={},this.createdBeans=[],this.destroyed=!1,p&&p.beanClasses&&(this.beanDestroyComparator=p.beanDestroyComparator,this.init(p))}init(p){var A;Object.entries(p.providedBeanInstances).forEach(([E,z])=>{this.beans[E]=z}),p.beanClasses.forEach(E=>{let z=new E;z.beanName?this.beans[z.beanName]=z:console.error(`Bean ${E.name} is missing beanName`),this.createdBeans.push(z)}),(A=p.derivedBeans)==null||A.forEach(E=>{let{beanName:z,bean:T}=E(this);this.beans[z]=T,this.createdBeans.push(T)}),p.beanInitComparator&&this.createdBeans.sort(p.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(p,A){if(!p)throw Error("null bean");return this.initBeans([p],A),p}initBeans(p,A){p.forEach(E=>{var z,T;(z=E.preWireBeans)==null||z.call(E,this.beans),(T=E.wireBeans)==null||T.call(E,this.beans)}),p.forEach(E=>{var z;return(z=E.preConstruct)==null?void 0:z.call(E)}),A&&p.forEach(A),p.forEach(E=>{var z;return(z=E.postConstruct)==null?void 0:z.call(E)})}getBeans(){return this.beans}getBean(p){return this.beans[p]}destroy(){if(this.destroyed)return;this.destroyed=!0;let p=this.getBeanInstances();this.beanDestroyComparator&&p.sort(this.beanDestroyComparator),this.destroyBeans(p),this.beans={},this.createdBeans=[]}destroyBean(p){var A;(A=p==null?void 0:p.destroy)==null||A.call(p)}destroyBeans(p){if(p)for(let A=0;A<p.length;A++)this.destroyBean(p[A]);return[]}isDestroyed(){return this.destroyed}}},3943:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.gridBeanDestroyComparator=x.gridBeanInitComparator=void 0;let p=Object.fromEntries(["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","funcColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"].map((A,E)=>[A,E]));x.gridBeanInitComparator=function(A,E){var z,T;return((z=A.beanName?p[A.beanName]:void 0)!=null?z:Number.MAX_SAFE_INTEGER)-((T=E.beanName?p[E.beanName]:void 0)!=null?T:Number.MAX_SAFE_INTEGER)},x.gridBeanDestroyComparator=function(A,E){return(A==null?void 0:A.beanName)==="gridDestroySvc"?-1:0}},1310:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CsvCreator=void 0;let A=p(7331),E=p(3885),z=p(7764),T=p(2927);class b extends A.BaseCreator{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(d){this.colModel=d.colModel,this.colNames=d.colNames,this.rowGroupColsSvc=d.rowGroupColsSvc,this.valueSvc=d.valueSvc}getMergedParams(d){let s=this.gos.get("defaultCsvExportParams");return Object.assign({},s,d)}export(d){if(this.isExportSuppressed())return void(0,z._warn)(51);let s=this.getMergedParams(d),c=this.getData(s),h=new Blob(["\uFEFF",c],{type:"text/plain"}),g=typeof s.fileName=="function"?s.fileName(this.gos.getGridCommonParams()):s.fileName;(0,E._downloadFile)(this.getFileName(g),h)}exportDataAsCsv(d){this.export(d)}getDataAsCsv(d,s=!1){let c=s?Object.assign({},d):this.getMergedParams(d);return this.getData(c)}getDefaultFileExtension(){return"csv"}createSerializingSession(d){let{colModel:s,colNames:c,rowGroupColsSvc:h,valueSvc:g,gos:f}=this,{processCellCallback:S,processHeaderCallback:w,processGroupHeaderCallback:M,processRowGroupCallback:P,suppressQuotes:O,columnSeparator:G}=d;return new T.CsvSerializingSession({colModel:s,colNames:c,valueSvc:g,gos:f,processCellCallback:S||void 0,processHeaderCallback:w||void 0,processGroupHeaderCallback:M||void 0,processRowGroupCallback:P||void 0,suppressQuotes:O||!1,columnSeparator:G||",",rowGroupColsSvc:h})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}}x.CsvCreator=b},2984:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.exportDataAsCsv=x.getDataAsCsv=void 0,x.getDataAsCsv=function(p,A){var E;return(E=p.csvCreator)==null?void 0:E.getDataAsCsv(A)},x.exportDataAsCsv=function(p,A){var E;(E=p.csvCreator)==null||E.exportDataAsCsv(A)}},9734:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CsvExportModule=void 0;let A=p(2728),E=p(7205),z=p(1310),T=p(2984);x.CsvExportModule={moduleName:"CsvExport",version:E.VERSION,beans:[z.CsvCreator],apiFunctions:{getDataAsCsv:T.getDataAsCsv,exportDataAsCsv:T.exportDataAsCsv},dependsOn:[A.SharedExportModule]}},2927:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CsvSerializingSession=void 0;let A=p(8376),E=p(7764);class z extends A.BaseGridSerializingSession{constructor(b){super(b),this.isFirstLine=!0,this.result="";let{suppressQuotes:C,columnSeparator:d}=b;this.suppressQuotes=C,this.columnSeparator=d}addCustomContent(b){b&&(typeof b=="string"?(/^\s*\n/.test(b)||this.beginNewLine(),b=b.replace(/\r?\n/g,`\r
`),this.result+=b):b.forEach(C=>{this.beginNewLine(),C.forEach((d,s)=>{s!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(d.data.value||""),d.mergeAcross&&this.appendEmptyCells(d.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(b,C,d,s){d!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(C),this.appendEmptyCells(s)}appendEmptyCells(b){for(let C=1;C<=b;C++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(b,C){C!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(b))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(b,C,d){var c;C!=0&&(this.result+=this.columnSeparator);let s=this.extractRowCellValue(b,C,C,"csv",d);this.result+=this.putInQuotes((c=s.valueFormatted)!=null?c:s.value)}putInQuotes(b){if(this.suppressQuotes)return b;if(b==null)return'""';let C;return typeof b=="string"?C=b:typeof b.toString=="function"?C=b.toString():((0,E._warn)(53),C=""),'"'+C.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=`\r
`),this.isFirstLine=!1}}x.CsvSerializingSession=z},20:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CtrlsService=void 0;let A=p(8731);class E extends A.BeanStub{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){var T,b,C;this.addEventListener("ready",()=>{this.updateReady(),this.ready&&(this.readyCallbacks.forEach(d=>d(this.params)),this.readyCallbacks.length=0)},(C=(b=(T=this.beans.frameworkOverrides).runWhenReadyAsync)==null?void 0:b.call(T))!=null?C:!1)}updateReady(){let T=Object.values(this.params);this.ready=T.length===23&&T.every(b=>{var C;return(C=b==null?void 0:b.isAlive())!=null?C:!1})}whenReady(T,b){this.ready?b(this.params):this.readyCallbacks.push(b),T.addDestroyFunc(()=>{let C=this.readyCallbacks.indexOf(b);C>=0&&this.readyCallbacks.splice(C,1)})}register(T,b){this.params[T]=b,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),b.addDestroyFunc(()=>{this.updateReady()})}get(T){return this.params[T]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){let{leftHeader:T,centerHeader:b,rightHeader:C}=this.params;return[T,C,b]}getHeaderRowContainerCtrl(T){let b=this.params;switch(T){case"left":return b.leftHeader;case"right":return b.rightHeader;default:return b.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}}x.CtrlsService=E},2671:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.dragAndDropImageComponentCSS=void 0,x.dragAndDropImageComponentCSS=".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}"},3814:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DragAndDropImageComponent=void 0;let A=p(3507),E=p(9970),z=p(7766),T=p(8020),b=p(2671);class C extends T.Component{constructor(){super(),this.dragSource=null,this.eIcon=T.RefPlaceholder,this.eLabel=T.RefPlaceholder,this.registerCSS(b.dragAndDropImageComponentCSS)}postConstruct(){let s=c=>(0,E._createIcon)(c,this.beans,null);this.dropIconMap={pinned:s("columnMovePin"),hide:s("columnMoveHide"),move:s("columnMoveMove"),left:s("columnMoveLeft"),right:s("columnMoveRight"),group:s("columnMoveGroup"),aggregate:s("columnMoveValue"),pivot:s("columnMovePivot"),notAllowed:s("dropNotAllowed")}}init(s){this.dragSource=s.dragSource,this.setTemplate(`<div class="ag-dnd-ghost ag-unselectable">
                <span data-ref="eIcon" class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>
                <div data-ref="eLabel" class="ag-dnd-ghost-label"></div>
            </div>`)}destroy(){this.dragSource=null,super.destroy()}setIcon(s,c){let{eIcon:h,dragSource:g,dropIconMap:f,gos:S}=this;(0,A._clearElement)(h);let w=null;s||(s=g!=null&&g.getDefaultIconName?g.getDefaultIconName():"notAllowed"),w=f[s],h.classList.toggle("ag-shake-left-to-right",c),w===f.hide&&S.get("suppressDragLeaveHidesColumns")||w&&h.appendChild(w)}setLabel(s){this.eLabel.textContent=(0,z._escapeString)(s)}}x.DragAndDropImageComponent=C},2903:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DragAndDropService=x.DragSourceType=void 0;let A=p(2036),E=p(8731),z=p(8399),T=p(7274),b=p(1502),C=p(7764);var d;(function(c){c[c.ToolPanel=0]="ToolPanel",c[c.HeaderCell=1]="HeaderCell",c[c.RowDrag=2]="RowDrag",c[c.ChartPanel=3]="ChartPanel",c[c.AdvancedFilterBuilder=4]="AdvancedFilterBuilder"})(d||(x.DragSourceType=d={}));class s extends E.BeanStub{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(h){this.ctrlsSvc=h.ctrlsSvc,this.dragSvc=h.dragSvc,this.environment=h.environment,this.userCompFactory=h.userCompFactory}addDragSource(h,g=!1){let f={eElement:h.eElement,dragStartPixels:h.dragStartPixels,onDragStart:this.onDragStart.bind(this,h),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:g};this.dragSourceAndParamsList.push({params:f,dragSource:h}),this.dragSvc.addDragSource(f)}getDragAndDropImageComponent(){let{dragAndDropImageComp:h}=this;return h&&h.comp?h.comp:null}removeDragSource(h){let{dragSourceAndParamsList:g,dragSvc:f}=this,S=g.find(w=>w.dragSource===h);S&&(f.removeDragSource(S.params),(0,b._removeFromArray)(g,S))}destroy(){let{dragSourceAndParamsList:h,dragSvc:g,dropTargets:f}=this;h.forEach(S=>g.removeDragSource(S.params)),h.length=0,f.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(h,g){var f;this.dragging=!0,this.dragSource=h,this.eventLastTime=g,this.dragItem=h.getDragItem(),(f=h.onDragStarted)==null||f.call(h),this.createDragAndDropImageComponent()}onDragStop(h){var f,S;(S=(f=this.dragSource)==null?void 0:f.onDragStopped)==null||S.call(f);let{lastDropTarget:g}=this;if(g!=null&&g.onDragStop){let w=this.createDropTargetEvent(g,h,null,null,!1);g.onDragStop(w)}this.clearDragAndDropProperties()}onDragCancel(){var f;let{dragSource:h,lastDropTarget:g}=this;(f=h==null?void 0:h.onDragCancelled)==null||f.call(h),g!=null&&g.onDragCancel&&g.onDragCancel(this.createDropTargetEvent(g,this.eventLastTime,null,null,!1)),this.clearDragAndDropProperties()}clearDragAndDropProperties(){this.eventLastTime=null,this.dragging=!1,this.lastDropTarget=void 0,this.dragItem=null,this.dragSource=null,this.removeDragAndDropImageComponent()}onDragging(h,g=!1){var Y,J;let f=this.getHorizontalDirection(h),S=this.getVerticalDirection(h);this.eventLastTime=h,this.positionDragAndDropImageComp(h);let w=this.dropTargets.filter(ne=>this.isMouseOnDropTarget(h,ne)),M=this.findCurrentDropTarget(h,w),{lastDropTarget:P,dragSource:O,dragAndDropImageComp:G,dragItem:j}=this;if(M!==P){if(this.leaveLastTargetIfExists(h,f,S,g),P!==null&&M===null&&((Y=O==null?void 0:O.onGridExit)==null||Y.call(O,j)),P===null&&M!==null&&((J=O==null?void 0:O.onGridEnter)==null||J.call(O,j)),this.enterDragTargetIfExists(M,h,f,S,g),M&&G){let{comp:ne,promise:ce}=G;ne?ne.setIcon(M.getIconName?M.getIconName():null,!1):ce.then(fe=>{fe&&fe.setIcon(M.getIconName?M.getIconName():null,!1)})}this.lastDropTarget=M}else if(M&&M.onDragging){let ne=this.createDropTargetEvent(M,h,f,S,g);M.onDragging(ne)}}getAllContainersFromDropTarget(h){let g=h.getSecondaryContainers?h.getSecondaryContainers():null,f=[[h.getContainer()]];return g?f.concat(g):f}isMouseOnDropTarget(h,g){let f=this.getAllContainersFromDropTarget(g),S=!1,w=(O,G)=>{for(let j of G){let{width:Y,height:J,left:ne,right:ce,top:fe,bottom:xe}=j.getBoundingClientRect();if(Y===0||J===0)return!1;let Le=O.clientX>=ne&&O.clientX<ce,_e=O.clientY>=fe&&O.clientY<xe;if(!Le||!_e)return!1}return!0};for(let O of f)if(w(h,O)){S=!0;break}let{eElement:M,type:P}=this.dragSource;return!(g.targetContainsSource&&!g.getContainer().contains(M))&&S&&g.isInterestedIn(P,M)}findCurrentDropTarget(h,g){let f=g.length;if(f===0)return null;if(f===1)return g[0];let S=(0,T._getRootNode)(this.beans).elementsFromPoint(h.clientX,h.clientY);for(let w of S)for(let M of g)if(this.getAllContainersFromDropTarget(M).flatMap(P=>P).indexOf(w)!==-1)return M;return null}enterDragTargetIfExists(h,g,f,S,w){if(h&&h.onDragEnter){let M=this.createDropTargetEvent(h,g,f,S,w);h.onDragEnter(M)}}leaveLastTargetIfExists(h,g,f,S){let{lastDropTarget:w}=this;if(!w)return;if(w.onDragLeave){let P=this.createDropTargetEvent(w,h,g,f,S);w.onDragLeave(P)}let M=this.getDragAndDropImageComponent();M&&M.setIcon(null,!1)}addDropTarget(h){this.dropTargets.push(h)}removeDropTarget(h){this.dropTargets=this.dropTargets.filter(g=>g.getContainer()!==h.getContainer())}hasExternalDropZones(){return this.dropTargets.some(h=>h.external)}findExternalZone(h){return this.dropTargets.filter(g=>g.external).find(g=>g.getContainer()===h.getContainer())||null}isDropZoneWithinThisGrid(h){let g=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:f}=h;return g.contains(f)}getHorizontalDirection(h){var S;let g=(S=this.eventLastTime)==null?void 0:S.clientX,f=h.clientX;return g===f?null:g>f?"left":"right"}getVerticalDirection(h){var S;let g=(S=this.eventLastTime)==null?void 0:S.clientY,f=h.clientY;return g===f?null:g>f?"up":"down"}createDropTargetEvent(h,g,f,S,w){let M=h.getContainer(),P=M.getBoundingClientRect(),{dragItem:O,dragSource:G,gos:j}=this,Y=g.clientX-P.left,J=g.clientY-P.top;return j.addGridCommonParams({event:g,x:Y,y:J,vDirection:S,hDirection:f,dragSource:G,fromNudge:w,dragItem:O,dropZoneTarget:M})}positionDragAndDropImageComp(h){let g=this.getDragAndDropImageComponent();g&&(0,T._anchorElementToMouseMoveEvent)(g.getGui(),h,this.beans)}removeDragAndDropImageComponent(){var g;let{dragAndDropImageComp:h}=this;if(h){let{comp:f}=h;if(f){let S=f.getGui();(g=this.dragAndDropImageParent)==null||g.removeChild(S),this.destroyBean(f)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){let{dragSource:h}=this;if(!h)return;let g=(0,A._getDragAndDropImageCompDetails)(this.userCompFactory,{dragSource:h});if(!g)return;let f=g.newAgStackInstance();this.dragAndDropImageComp={promise:f},f.then(S=>{S&&this.isAlive()&&(this.processDragAndDropImageComponent(S),this.dragAndDropImageComp.comp=S)})}processDragAndDropImageComponent(h){let{dragSource:g,environment:f}=this;if(!g)return;let S=h.getGui();S.style.setProperty("position","absolute"),S.style.setProperty("z-index","9999"),(0,z._stampTopLevelGridCompWithGridInstance)(this.gos,S),f.applyThemeClasses(S),h.setIcon(null,!1);let{dragItemName:w}=g;typeof w=="function"&&(w=w()),h.setLabel(w||""),S.style.top="20px",S.style.left="20px";let M=(0,T._getPageBody)(this.beans);this.dragAndDropImageParent=M,M?M.appendChild(S):(0,C._warn)(54)}registerGridDropTarget(h,g){let f={getContainer:h,isInterestedIn:S=>S===d.HeaderCell||S===d.ToolPanel,getIconName:()=>"notAllowed"};this.addDropTarget(f),g.addDestroyFunc(()=>this.removeDropTarget(f))}}x.DragAndDropService=s},2830:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getRowDropZoneParams=x.removeRowDropZone=x.addRowDropZone=void 0,x.addRowDropZone=function(p,A){var E,z;(z=(E=p.rowDragSvc)==null?void 0:E.rowDragFeature)==null||z.addRowDropZone(A)},x.removeRowDropZone=function(p,A){var z,T;let E=(z=p.dragAndDrop)==null?void 0:z.findExternalZone(A);E&&((T=p.dragAndDrop)==null||T.removeDropTarget(E))},x.getRowDropZoneParams=function(p,A){var E,z;return(z=(E=p.rowDragSvc)==null?void 0:E.rowDragFeature)==null?void 0:z.getRowDropZone(A)}},4388:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HorizontalResizeModule=x.RowDragModule=x.SharedDragAndDropModule=x.DragAndDropModule=x.DragModule=void 0;let A=p(714),E=p(7205),z=p(3814),T=p(2903),b=p(2830),C=p(2165),d=p(6843),s=p(2895);x.DragModule={moduleName:"Drag",version:E.VERSION,beans:[C.DragService]},x.DragAndDropModule={moduleName:"DragAndDrop",version:E.VERSION,dynamicBeans:{dndSourceComp:A.DndSourceComp},icons:{rowDrag:"grip"}},x.SharedDragAndDropModule={moduleName:"SharedDragAndDrop",version:E.VERSION,beans:[T.DragAndDropService],dependsOn:[x.DragModule],userComponents:{agDragAndDropImage:z.DragAndDropImageComponent},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},x.RowDragModule={moduleName:"RowDrag",version:E.VERSION,beans:[s.RowDragService],apiFunctions:{addRowDropZone:b.addRowDropZone,removeRowDropZone:b.removeRowDropZone,getRowDropZoneParams:b.getRowDropZoneParams},dependsOn:[x.SharedDragAndDropModule]},x.HorizontalResizeModule={moduleName:"HorizontalResize",version:E.VERSION,beans:[d.HorizontalResizeService],dependsOn:[x.DragModule]}},2165:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DragService=void 0;let A=p(9853),E=p(8731),z=p(8399),T=p(7274),b=p(1502),C=p(8667),d=p(3507),s=p(4422),c=p(3276);class h extends E.BeanStub{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){let{dragSources:f}=this;f.forEach(this.removeListener.bind(this)),f.length=0,super.destroy()}removeListener(f){let S=f.dragSource.eElement,w=f.mouseDownListener;if(S.removeEventListener("mousedown",w),f.touchEnabled){let M=f.touchStartListener;S.removeEventListener("touchstart",M,{passive:!0})}}removeDragSource(f){let{dragSources:S}=this,w=S.find(M=>M.dragSource===f);w&&(this.removeListener(w),(0,b._removeFromArray)(S,w))}addDragSource(f){let S=this.onMouseDown.bind(this,f),{eElement:w,includeTouch:M,stopPropagationForTouch:P}=f;w.addEventListener("mousedown",S);let O=null,G=this.gos.get("suppressTouch");M&&!G&&(O=j=>{(0,d._isFocusableFormField)(j.target)||(P&&j.stopPropagation(),this.onTouchStart(f,j))},w.addEventListener("touchstart",O,{passive:!1})),this.dragSources.push({dragSource:f,mouseDownListener:S,touchStartListener:O,touchEnabled:!!M})}onTouchStart(f,S){this.currentDragParams=f,this.dragging=!1;let w=S.touches[0];this.touchLastTime=w,this.touchStart=w;let M=G=>this.onTouchUp(G,f.eElement),P=S.target,O=[{target:(0,T._getRootNode)(this.beans),type:"touchmove",listener:G=>{G.cancelable&&G.preventDefault()},options:{passive:!1}},{target:P,type:"touchmove",listener:G=>this.onTouchMove(G,f.eElement),options:{passive:!0}},{target:P,type:"touchend",listener:M,options:{passive:!0}},{target:P,type:"touchcancel",listener:M,options:{passive:!0}}];this.addTemporaryEvents(O),f.dragStartPixels===0&&this.onCommonMove(w,this.touchStart,f.eElement)}onMouseDown(f,S){let w=S;if(f.skipMouseEvent&&f.skipMouseEvent(S)||w._alreadyProcessedByDragService||(w._alreadyProcessedByDragService=!0,S.button!==0))return;this.shouldPreventMouseEvent(S)&&S.preventDefault(),this.currentDragParams=f,this.dragging=!1,this.mouseStartEvent=S,this.startTarget=S.target;let M=(0,T._getRootNode)(this.beans),P=[{target:M,type:"mousemove",listener:O=>this.onMouseMove(O,f.eElement)},{target:M,type:"mouseup",listener:O=>this.onMouseUp(O,f.eElement)},{target:M,type:"contextmenu",listener:O=>O.preventDefault()},{target:M,type:"keydown",listener:O=>{O.key===A.KeyCode.ESCAPE&&this.cancelDrag(f.eElement)}}];this.addTemporaryEvents(P),f.dragStartPixels===0&&this.onMouseMove(S,f.eElement)}addTemporaryEvents(f){f.forEach(S=>{let{target:w,type:M,listener:P,options:O}=S;w.addEventListener(M,P,O)}),this.dragEndFunctions.push(()=>{f.forEach(S=>{let{target:w,type:M,listener:P,options:O}=S;w.removeEventListener(M,P,O)})})}isEventNearStartEvent(f,S){let{dragStartPixels:w}=this.currentDragParams,M=(0,s._exists)(w)?w:4;return(0,c._areEventsNear)(f,S,M)}getFirstActiveTouch(f){for(let S=0;S<f.length;S++)if(f[S].identifier===this.touchStart.identifier)return f[S];return null}onCommonMove(f,S,w){var M;if(!this.dragging){if(this.isEventNearStartEvent(f,S))return;if(this.dragging=!0,this.eventSvc.dispatchEvent({type:"dragStarted",target:w}),this.currentDragParams.onDragStart(S),!this.currentDragParams)return void(this.dragging=!1);this.currentDragParams.onDragging(S)}(M=this.currentDragParams)==null||M.onDragging(f)}onTouchMove(f,S){let w=this.getFirstActiveTouch(f.touches);w&&this.onCommonMove(w,this.touchStart,S)}onMouseMove(f,S){var w;(0,C._isBrowserSafari)()&&((w=(0,T._getDocument)(this.beans).getSelection())==null||w.removeAllRanges()),this.shouldPreventMouseEvent(f)&&f.preventDefault(),this.onCommonMove(f,this.mouseStartEvent,S)}shouldPreventMouseEvent(f){let{gos:S}=this,w=S.get("enableCellTextSelection"),M=f.type==="mousemove";return w&&M&&f.cancelable&&(0,z._isEventFromThisGrid)(S,f)&&!(P=>{let O=P.target,G=O==null?void 0:O.tagName.toLocaleLowerCase();return!!(G!=null&&G.match("^a$|textarea|input|select|button"))})(f)}onTouchUp(f,S){let w=this.getFirstActiveTouch(f.changedTouches);w||(w=this.touchLastTime),this.onUpCommon(w,S)}onMouseUp(f,S){this.onUpCommon(f,S)}onUpCommon(f,S){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(f),this.eventSvc.dispatchEvent({type:"dragStopped",target:S})),this.resetDragProperties()}cancelDrag(f){var S,w;this.eventSvc.dispatchEvent({type:"dragCancelled",target:f}),(w=(S=this.currentDragParams)==null?void 0:S.onDragCancel)==null||w.call(S),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;let{dragEndFunctions:f}=this;f.forEach(S=>S()),f.length=0}}x.DragService=h},6843:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HorizontalResizeService=void 0;let A=p(8731);class E extends A.BeanStub{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(T){let b={dragStartPixels:T.dragStartPixels||0,eElement:T.eResizeBar,onDragStart:this.onDragStart.bind(this,T),onDragStop:this.onDragStop.bind(this,T),onDragging:this.onDragging.bind(this,T),onDragCancel:this.onDragStop.bind(this,T),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:C}=this.beans;return C.addDragSource(b),()=>C.removeDragSource(b)}onDragStart(T,b){this.dragStartX=b.clientX,this.setResizeIcons();let C=b instanceof MouseEvent&&b.shiftKey===!0;T.onResizeStart(C)}setResizeIcons(){let T=this.beans.ctrlsSvc.get("gridCtrl");T.setResizeCursor(!0),T.disableUserSelect(!0)}onDragStop(T){T.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){let T=this.beans.ctrlsSvc.get("gridCtrl");T.setResizeCursor(!1),T.disableUserSelect(!1)}onDragging(T,b){this.resizeAmount=b.clientX-this.dragStartX,T.onResizing(this.resizeAmount)}}x.HorizontalResizeService=E},1633:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowDragComp=void 0;let A=p(8731),E=p(9970),z=p(8020),T=p(2903);class b extends z.Component{constructor(h,g,f,S,w,M){super(),this.cellValueFn=h,this.rowNode=g,this.column=f,this.customGui=S,this.dragStartPixels=w,this.suppressVisibilityChange=M,this.dragSource=null}isCustomGui(){return this.customGui!=null}postConstruct(){let{beans:h,rowNode:g,column:f,gos:S}=this;if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild((0,E._createIconNoSpan)("rowDrag",h,null)),this.addDragSource()),!this.suppressVisibilityChange){let w=S.get("rowDragManaged")?new s(this,g,f):new d(this,g,f);this.createManagedBean(w,this.beans.context)}}setDragElement(h,g){this.setTemplateFromElement(h,void 0,void 0,!0),this.addDragSource(g)}getSelectedNodes(){var f,S;let h=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[h];let g=(S=(f=this.beans.selectionSvc)==null?void 0:f.getSelectedNodes())!=null?S:[];return g.indexOf(h)!==-1?g:[h]}getDragItem(){let{column:h,rowNode:g}=this;return{rowNode:g,rowNodes:this.getSelectedNodes(),columns:h?[h]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(h){if(h){let g=h.getColDef();if(g.rowDragText)return g.rowDragText}return this.gos.get("rowDragText")}addDragSource(h=4){this.dragSource&&this.removeDragSource();let g=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(g,{mousedown:S=>{S==null||S.preventDefault()}})[0]);let f=this.getLocaleTextFunc();this.dragSource={type:T.DragSourceType.RowDrag,eElement:g,dragItemName:()=>{var P;let S=this.getDragItem(),w=((P=S.rowNodes)==null?void 0:P.length)||1,M=this.getRowDragText(this.column);return M?M(S,w):w===1?this.cellValueFn():`${w} ${f("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:h,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}}x.RowDragComp=b;class C extends A.BeanStub{constructor(h,g,f){super(),this.parent=h,this.rowNode=g,this.column=f}setDisplayedOrVisible(h){let g={skipAriaHidden:!0};if(h)this.parent.setDisplayed(!1,g);else{let f=!0,S=!1,{column:w,rowNode:M,parent:P}=this;w&&(f=w.isRowDrag(M)||P.isCustomGui(),S=typeof w.getColDef().rowDrag=="function"),S?(P.setDisplayed(!0,g),P.setVisible(f,g)):(P.setDisplayed(f,g),P.setVisible(!0,g))}}}class d extends C{postConstruct(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this));let h=this.workOutVisibility.bind(this);this.addManagedListeners(this.rowNode,{dataChanged:h,cellChanged:h}),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:h}),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let h=this.gos.get("suppressRowDrag");this.setDisplayedOrVisible(h)}}class s extends C{postConstruct(){let h=this.workOutVisibility.bind(this);this.addManagedListeners(this.beans.eventSvc,{sortChanged:h,filterChanged:h,columnRowGroupChanged:h,newColumnsLoaded:h}),this.addManagedListeners(this.rowNode,{dataChanged:h,cellChanged:h}),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let{rowDragSvc:h,dragAndDrop:g,gos:f}=this.beans,S=h.rowDragFeature,w=S&&S.shouldPreventRowMove(),M=f.get("suppressRowDrag"),P=g.hasExternalDropZones(),O=w&&!P||M;this.setDisplayedOrVisible(O)}}},2254:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowDragFeature=void 0;let A=p(5628),E=p(8731),z=p(6257),T=p(8399),b=p(7274),C=p(1502),d=p(7764),s=p(2903);class c extends E.BeanStub{constructor(g){super(),this.eContainer=g}postConstruct(){let{rowModel:g,gos:f,ctrlsSvc:S}=this.beans;(0,b._isClientSideRowModel)(f,g)&&(this.clientSideRowModel=g),S.whenReady(this,w=>{let M=w.gridBodyCtrl;this.autoScrollService=new A.AutoScrollService({scrollContainer:M.eBodyViewport,scrollAxis:"y",getVerticalPosition:()=>M.scrollFeature.getVScrollPosition().top,setVerticalPosition:P=>M.scrollFeature.setVerticalScrollPosition(P),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})})}getContainer(){return this.eContainer}isInterestedIn(g){return g===s.DragSourceType.RowDrag}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){var P;let{rowGroupColsSvc:g,filterManager:f,sortSvc:S}=this.beans;return((P=g==null?void 0:g.columns)!=null?P:[]).length||(f==null?void 0:f.isAnyFilterPresent())?!0:!!(S==null?void 0:S.isSortActive())}getRowNodes(g){var S,w;if(!this.isFromThisGrid(g))return g.dragItem.rowNodes||[];let f=g.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){let M=[...(w=(S=this.beans.selectionSvc)==null?void 0:S.getSelectedNodes())!=null?w:[]].sort((P,O)=>P.rowIndex==null||O.rowIndex==null?0:this.getRowIndexNumber(P)-this.getRowIndexNumber(O));if(M.indexOf(f)!==-1)return M}return[f]}onDragEnter(g){g.dragItem.rowNodes=this.getRowNodes(g),this.dispatchGridEvent("rowDragEnter",g),this.getRowNodes(g).forEach(f=>{this.setRowNodeDragging(f,!0)}),this.onEnterOrDragging(g)}onDragging(g){this.onEnterOrDragging(g)}isFromThisGrid(g){let{dragSourceDomDataKey:f}=g.dragSource;return f===this.gos.getDomDataKey()}onEnterOrDragging(g){this.dispatchGridEvent("rowDragMove",g),this.lastDraggingEvent=g;let f=(0,T._getNormalisedMousePosition)(this.beans,g).y;this.gos.get("rowDragManaged")&&this.doManagedDrag(g,f),this.autoScrollService.check(g.event)}doManagedDrag(g,f){let{dragAndDrop:S,gos:w}=this.beans,M=this.isFromThisGrid(g),P=w.get("rowDragManaged"),O=g.dragItem.rowNodes;P&&this.shouldPreventRowMove()||(w.get("suppressMoveWhenRowDragging")||!M?S.isDropZoneWithinThisGrid(g)&&this.clientSideRowModel.highlightRowAtPixel(O[0],f):this.moveRows(O,f))}getRowIndexNumber(g){let f=g.getRowIndexString();return parseInt((0,C._last)(f.split("-")),10)}moveRowAndClearHighlight(g){let f=this.clientSideRowModel,S=f.getLastHighlightedRowNode(),w=S&&S.highlighted==="Below",M=(0,T._getNormalisedMousePosition)(this.beans,g).y,P=g.dragItem.rowNodes,O=w?1:0;if(this.isFromThisGrid(g))P.forEach(G=>{G.rowTop<M&&(O-=1)}),this.moveRows(P,M,O);else{let G=(0,b._getRowIdCallback)(this.gos),j=f.getRowIndexAtPixel(M)+1;f.getHighlightPosition(M)==="Above"&&j--,f.updateRowData({add:P.filter(Y=>{var J;return!f.getRowNode((J=G==null?void 0:G({data:Y.data,level:0,rowPinned:Y.rowPinned}))!=null?J:Y.data.id)}).map(Y=>Y.data),addIndex:j})}this.clearRowHighlight()}clearRowHighlight(){this.clientSideRowModel.highlightRowAtPixel(null)}moveRows(g,f,S=0){let w=this.beans.focusSvc,M=w.getFocusedCell(),P=M&&(0,z._getCellByPosition)(this.beans,M);this.clientSideRowModel.ensureRowsAtPixel(g,f,S)&&(P?P.focusCell():w.clearFocusedCell())}addRowDropZone(g){if(!g.getContainer())return void(0,d._warn)(55);let f=this.beans.dragAndDrop;if(f.findExternalZone(g))return void(0,d._warn)(56);let S={getContainer:g.getContainer};g.fromGrid?S=g:(g.onDragEnter&&(S.onDragEnter=M=>{g.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",M))}),g.onDragLeave&&(S.onDragLeave=M=>{g.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",M))}),g.onDragging&&(S.onDragging=M=>{g.onDragging(this.draggingToRowDragEvent("rowDragMove",M))}),g.onDragStop&&(S.onDragStop=M=>{g.onDragStop(this.draggingToRowDragEvent("rowDragEnd",M))}),g.onDragCancel&&(S.onDragCancel=M=>{g.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",M))}));let w=ge({isInterestedIn:M=>M===s.DragSourceType.RowDrag,getIconName:()=>"move",external:!0},S);f.addDropTarget(w),this.addDestroyFunc(()=>f.removeDropTarget(w))}getRowDropZone(g){let f=this.getContainer.bind(this),S=this.onDragEnter.bind(this),w=this.onDragLeave.bind(this),M=this.onDragging.bind(this),P=this.onDragStop.bind(this),O=this.onDragCancel.bind(this),G;return G=g?{getContainer:f,onDragEnter:g.onDragEnter?j=>{S(j),g.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",j))}:S,onDragLeave:g.onDragLeave?j=>{w(j),g.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",j))}:w,onDragging:g.onDragging?j=>{M(j),g.onDragging(this.draggingToRowDragEvent("rowDragMove",j))}:M,onDragStop:g.onDragStop?j=>{P(j),g.onDragStop(this.draggingToRowDragEvent("rowDragEnd",j))}:P,onDragCancel:g.onDragCancel?j=>{O(j),g.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",j))}:O,fromGrid:!0}:{getContainer:f,onDragEnter:S,onDragLeave:w,onDragging:M,onDragStop:P,onDragCancel:O,fromGrid:!0},G}draggingToRowDragEvent(g,f){let S=this.beans,{pageBounds:w,rowModel:M,gos:P}=S,O=(0,T._getNormalisedMousePosition)(S,f).y,G,j=-1;return O>w.getCurrentPageHeight()||(j=M.getRowIndexAtPixel(O),G=M.getRow(j)),P.addGridCommonParams({type:g,event:f.event,node:f.dragItem.rowNode,nodes:f.dragItem.rowNodes,overIndex:j,overNode:G,y:O,vDirection:f.vDirection})}dispatchGridEvent(g,f){let S=this.draggingToRowDragEvent(g,f);this.eventSvc.dispatchEvent(S)}onDragLeave(g){this.dispatchGridEvent("rowDragLeave",g),this.stopDragging(g),this.gos.get("rowDragManaged")&&this.clearRowHighlight()}onDragStop(g){this.dispatchGridEvent("rowDragEnd",g),this.stopDragging(g);let{dragAndDrop:f,gos:S}=this.beans;S.get("rowDragManaged")&&(S.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(g))&&f.isDropZoneWithinThisGrid(g)&&this.moveRowAndClearHighlight(g)}onDragCancel(g){this.dispatchGridEvent("rowDragCancel",g),this.stopDragging(g);let{dragAndDrop:f,gos:S}=this.beans;S.get("rowDragManaged")&&(S.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(g))&&f.isDropZoneWithinThisGrid(g)&&this.clearRowHighlight()}stopDragging(g){this.autoScrollService.ensureCleared(),this.getRowNodes(g).forEach(f=>{this.setRowNodeDragging(f,!1)})}setRowNodeDragging(g,f){g.dragging!==f&&(g.dragging=f,g.dispatchRowEvent("draggingChanged"))}}x.RowDragFeature=c},2895:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowDragService=void 0;let A=p(8731),E=p(7274),z=p(1633),T=p(2254);class b extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowDragSvc"}setupRowDrag(d,s){let c=s.createManagedBean(new T.RowDragFeature(d)),h=this.beans.dragAndDrop;h.addDropTarget(c),s.addDestroyFunc(()=>h.removeDropTarget(c)),this.rowDragFeature=c}createRowDragComp(d,s,c,h,g,f){return new z.RowDragComp(d,s,c,h,g,f)}createRowDragCompForRow(d,s){if((0,E._isCellSelectionEnabled)(this.gos))return;let c=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${c("rowDragRow","row")}`,d,void 0,s,void 0,!0)}createRowDragCompForCell(d,s,c,h,g,f){let S=this.gos;if(!(S.get("rowDragManaged")&&(!(0,E._isClientSideRowModel)(S)||S.get("pagination"))))return this.createRowDragComp(c,d,s,h,g,f)}}x.RowDragService=b},6564:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.cellEditingCSS=void 0,x.cellEditingCSS=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;width:100%}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}"},227:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CheckboxCellEditor=void 0;let A=p(5230),E=p(66),z=p(8020),T=p(3598);class b extends T.PopupComponent{constructor(){super(`
            <div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[E.AgCheckboxSelector]),this.eCheckbox=z.RefPlaceholder}init(d){var h;this.params=d;let s=(h=d.value)!=null?h:void 0,c=this.eCheckbox;c.setValue(s),c.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(s),this.addManagedListeners(c,{fieldValueChanged:g=>this.setAriaLabel(g.selected)})}getValue(){return this.eCheckbox.getValue()}focusIn(){this.eCheckbox.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(d){let s=this.getLocaleTextFunc(),c=(0,A._getAriaCheckboxStateName)(s,d),h=s("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(`${h} (${c})`)}}x.CheckboxCellEditor=b},5314:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateCellEditor=void 0;let A=p(9827),E=p(4422),z=p(3611),T=p(5336);class b{getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[z.AgInputDateFieldSelector]}init(s,c){this.eInput=s,this.params=c;let{min:h,max:g,step:f}=c;h!=null&&s.setMin(h),g!=null&&s.setMax(g),f!=null&&s.setStep(f)}getValue(){let{eInput:s,params:c}=this,h=s.getDate();return(0,E._exists)(h)||(0,E._exists)(c.value)?h!=null?h:null:c.value}getStartValue(){let{value:s}=this.params;if(s instanceof Date)return(0,A._serialiseDate)(s,!1)}}class C extends T.SimpleCellEditor{constructor(){super(new b)}}x.DateCellEditor=C},2059:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateStringCellEditor=void 0;let A=p(9827),E=p(4422),z=p(3611),T=p(5336);class b{constructor(s){this.getDataTypeService=s}getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[z.AgInputDateFieldSelector]}init(s,c){this.eInput=s,this.params=c;let{min:h,max:g,step:f}=c;h!=null&&s.setMin(h),g!=null&&s.setMax(g),f!=null&&s.setStep(f)}getValue(){let{params:s,eInput:c}=this,h=this.formatDate(c.getDate());return(0,E._exists)(h)||(0,E._exists)(s.value)?s.parseValue(h!=null?h:""):s.value}getStartValue(){var s,c;return(0,A._serialiseDate)((c=this.parseDate((s=this.params.value)!=null?s:void 0))!=null?c:null,!1)}parseDate(s){var h;let c=this.getDataTypeService();return c?c.getDateParserFunction(this.params.column)(s):(h=(0,A._parseDateTimeFromString)(s))!=null?h:void 0}formatDate(s){var h;let c=this.getDataTypeService();return c?c.getDateFormatterFunction(this.params.column)(s):(h=(0,A._serialiseDate)(s!=null?s:null,!1))!=null?h:void 0}}class C extends T.SimpleCellEditor{constructor(){super(new b(()=>this.beans.dataTypeSvc))}}x.DateStringCellEditor=C},4578:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.LargeTextCellEditor=void 0;let A=p(9853),E=p(4422),z=p(6209),T=p(8020),b=p(3598);class C extends b.PopupComponent{constructor(){super(`<div class="ag-large-text">
        <ag-input-text-area data-ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
        </div>`,[z.AgInputTextAreaSelector]),this.eTextArea=T.RefPlaceholder}init(s){this.params=s,this.focusAfterAttached=s.cellStartedEdit,this.eTextArea.setMaxLength(s.maxLength||200).setCols(s.cols||60).setRows(s.rows||10),s.value!=null&&this.eTextArea.setValue(s.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(s){let c=s.key;(c===A.KeyCode.LEFT||c===A.KeyCode.UP||c===A.KeyCode.RIGHT||c===A.KeyCode.DOWN||s.shiftKey&&c===A.KeyCode.ENTER)&&s.stopPropagation()}afterGuiAttached(){let s=this.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(s("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()}getValue(){let s=this.eTextArea.getValue(),c=this.params;return(0,E._exists)(s)||(0,E._exists)(c.value)?c.parseValue(s):c.value}}x.LargeTextCellEditor=C},4371:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NumberCellEditor=void 0;let A=p(9853),E=p(8667),z=p(4422),T=p(8792),b=p(5336);class C{getTemplate(){return'<ag-input-number-field class="ag-cell-editor" data-ref="eInput"></ag-input-number-field>'}getAgComponents(){return[T.AgInputNumberFieldSelector]}init(c,h){this.eInput=c,this.params=h;let{max:g,min:f,precision:S,step:w}=h;g!=null&&c.setMax(g),f!=null&&c.setMin(f),S!=null&&c.setPrecision(S),w!=null&&c.setStep(w);let M=c.getInputElement();h.preventStepping?c.addManagedElementListeners(M,{keydown:this.preventStepping}):h.showStepperButtons&&M.classList.add("ag-number-field-input-stepper")}preventStepping(c){c.key!==A.KeyCode.UP&&c.key!==A.KeyCode.DOWN||c.preventDefault()}getValue(){let{eInput:c,params:h}=this,g=c.getValue();if(!(0,z._exists)(g)&&!(0,z._exists)(h.value))return h.value;let f=h.parseValue(g);if(f==null)return f;if(typeof f=="string"){if(f==="")return null;f=Number(f)}return isNaN(f)?null:f}getStartValue(){return this.params.value}setCaret(){(0,E._isBrowserSafari)()&&this.eInput.getInputElement().focus({preventScroll:!0})}}class d extends b.SimpleCellEditor{constructor(){super(new C)}}x.NumberCellEditor=d},5609:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PopupEditorWrapper=void 0;let A=p(7274),E=p(6466),z=p(3598);class T extends z.PopupComponent{constructor(C){super('<div class="ag-popup-editor" tabindex="-1"/>'),this.params=C}postConstruct(){(0,A._setDomData)(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){let C=this.getGui(),d=this.params;this.addManagedElementListeners(C,{keydown:s=>{(0,E._isUserSuppressingKeyboardEvent)(this.gos,s,d.node,d.column,!0)||d.onKeyDown(s)}})}}x.PopupEditorWrapper=T},8774:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SelectCellEditor=void 0;let A=p(9853),E=p(4422),z=p(7764),T=p(159),b=p(8020),C=p(3598);class d extends C.PopupComponent{wireBeans(c){this.valueSvc=c.valueSvc}constructor(){super(`<div class="ag-cell-edit-wrapper">
                <ag-select class="ag-cell-editor" data-ref="eSelect"></ag-select>
            </div>`,[T.AgSelectSelector]),this.eSelect=b.RefPlaceholder,this.startedByEnter=!1}init(c){this.focusAfterAttached=c.cellStartedEdit;let{eSelect:h,valueSvc:g,gos:f}=this,{values:S,value:w,eventKey:M}=c;if((0,E._missing)(S))return void(0,z._warn)(58);this.startedByEnter=M!=null&&M===A.KeyCode.ENTER;let P=!1;S.forEach(Y=>{let J={value:Y},ne=g.formatValue(c.column,null,Y),ce=ne!=null;J.text=ce?ne:Y,h.addOption(J),P=P||w===Y}),P?h.setValue(c.value,!0):c.values.length&&h.setValue(c.values[0],!0);let{valueListGap:O,valueListMaxWidth:G,valueListMaxHeight:j}=c;O!=null&&h.setPickerGap(O),j!=null&&h.setPickerMaxHeight(j),G!=null&&h.setPickerMaxWidth(G),f.get("editType")!=="fullRow"&&this.addManagedListeners(this.eSelect,{selectedItem:()=>c.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eSelect.showPicker()})}focusIn(){this.eSelect.getFocusableElement().focus()}getValue(){return this.eSelect.getValue()}isPopup(){return!1}}x.SelectCellEditor=d},5336:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SimpleCellEditor=void 0;let A=p(9853),E=p(8667),z=p(8020),T=p(3598);class b extends T.PopupComponent{constructor(d){super(`
            <div class="ag-cell-edit-wrapper">
                ${d.getTemplate()}
            </div>`,d.getAgComponents()),this.cellEditorInput=d,this.eInput=z.RefPlaceholder}init(d){this.params=d;let{cellStartedEdit:s,eventKey:c,suppressPreventDefault:h}=d,g=this.eInput,f;this.cellEditorInput.init(g,d);let S=!0;s?(this.focusAfterAttached=!0,c===A.KeyCode.BACKSPACE||c===A.KeyCode.DELETE?f="":c&&c.length===1?h?S=!1:f=c:(f=this.cellEditorInput.getStartValue(),c!==A.KeyCode.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,f=this.cellEditorInput.getStartValue()),S&&f!=null&&g.setStartValue(f),this.addManagedElementListeners(g.getGui(),{keydown:w=>{let{key:M}=w;M!==A.KeyCode.PAGE_UP&&M!==A.KeyCode.PAGE_DOWN||w.preventDefault()}})}afterGuiAttached(){var h,g;let d=this.getLocaleTextFunc(),s=this.eInput;if(s.setInputAriaLabel(d("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;(0,E._isBrowserSafari)()||s.getFocusableElement().focus();let c=s.getInputElement();this.highlightAllOnFocus?c.select():(g=(h=this.cellEditorInput).setCaret)==null||g.call(h)}focusIn(){let d=this.eInput,s=d.getFocusableElement(),c=d.getInputElement();s.focus(),c.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}}x.SimpleCellEditor=b},5457:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TextCellEditor=void 0;let A=p(4422),E=p(5946),z=p(5336);class T{getTemplate(){return'<ag-input-text-field class="ag-cell-editor" data-ref="eInput"></ag-input-text-field>'}getAgComponents(){return[E.AgInputTextFieldSelector]}init(d,s){this.eInput=d,this.params=s;let c=s.maxLength;c!=null&&d.setMaxLength(c)}getValue(){let{eInput:d,params:s}=this,c=d.getValue();return(0,A._exists)(c)||(0,A._exists)(s.value)?s.parseValue(c):s.value}getStartValue(){let d=this.params;return d.useFormatter||d.column.getColDef().refData?d.formatValue(d.value):d.value}setCaret(){let d=this.eInput,s=d.getValue(),c=(0,A._exists)(s)&&s.length||0;c&&d.getInputElement().setSelectionRange(c,c)}}class b extends z.SimpleCellEditor{constructor(){super(new T)}}x.TextCellEditor=b},89:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getCurrentRedoSize=x.getCurrentUndoSize=x.startEditingCell=x.stopEditing=x.getEditingCells=x.getCellEditorInstances=x.redoCellEditing=x.undoCellEditing=void 0;let A=p(1765),E=p(4126),z=p(6257),T=p(7274),b=p(7764);x.undoCellEditing=function(C){var d;(d=C.undoRedo)==null||d.undo("api")},x.redoCellEditing=function(C){var d;(d=C.undoRedo)==null||d.redo("api")},x.getCellEditorInstances=function(C,d={}){let s=[];return C.rowRenderer.getCellCtrls(d.rowNodes,d.columns).forEach(c=>{var g;let h=(g=c.comp)==null?void 0:g.getCellEditor();h&&s.push((0,E._unwrapUserComp)(h))}),s},x.getEditingCells=function(C){let d=[];return C.rowRenderer.getAllCellCtrls().forEach(s=>{if(s.editing){let{cellPosition:c}=s;d.push(c)}}),d},x.stopEditing=function(C,d=!1){var s;(s=C.editSvc)==null||s.stopAllEditing(d)},x.startEditingCell=function(C,d){let s=C.colModel.getCol(d.colKey);if(!s)return void(0,b._warn)(12,{colKey:d.colKey});let c={rowIndex:d.rowIndex,rowPinned:d.rowPinned||null,column:s};d.rowPinned==null&&(0,A.ensureIndexVisible)(C,d.rowIndex),(0,A.ensureColumnVisible)(C,d.colKey);let h=(0,z._getCellByPosition)(C,c);if(!h)return;let{focusSvc:g,gos:f,editSvc:S}=C,w=f.get("stopEditingWhenCellsLoseFocus")&&(()=>{let M=(0,T._getActiveDomElement)(C),P=h.eGui;return M!==P&&!!(P!=null&&P.contains(M))})();!w&&g.isCellFocused(c)||g.setFocusedCell(He(ge({},c),{forceBrowserFocus:w,preventScrollOnBrowserFocus:!0})),S==null||S.startRowOrCellEdit(h,d.key)},x.getCurrentUndoSize=function(C){var d,s;return(s=(d=C.undoRedo)==null?void 0:d.getCurrentUndoStackSize())!=null?s:0},x.getCurrentRedoSize=function(C){var d,s;return(s=(d=C.undoRedo)==null?void 0:d.getCurrentRedoStackSize())!=null?s:0}},4652:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CustomEditorModule=x.LargeTextEditorModule=x.SelectEditorModule=x.CheckboxEditorModule=x.DateEditorModule=x.NumberEditorModule=x.TextEditorModule=x.UndoRedoEditModule=x.EditCoreModule=void 0;let A=p(7113),E=p(7205),z=p(3137),T=p(6564),b=p(227),C=p(5314),d=p(2059),s=p(4578),c=p(4371),h=p(8774),g=p(5457),f=p(89),S=p(1277),w=p(6359);x.EditCoreModule={moduleName:"EditCore",version:E.VERSION,beans:[S.EditService,w.RowEditService],apiFunctions:{getCellEditorInstances:f.getCellEditorInstances,getEditingCells:f.getEditingCells,stopEditing:f.stopEditing,startEditingCell:f.startEditingCell},dependsOn:[z.PopupModule],css:[T.cellEditingCSS]},x.UndoRedoEditModule={moduleName:"UndoRedoEdit",version:E.VERSION,beans:[A.UndoRedoService],apiFunctions:{undoCellEditing:f.undoCellEditing,redoCellEditing:f.redoCellEditing,getCurrentUndoSize:f.getCurrentUndoSize,getCurrentRedoSize:f.getCurrentRedoSize},dependsOn:[x.EditCoreModule]},x.TextEditorModule={moduleName:"TextEditor",version:E.VERSION,userComponents:{agCellEditor:g.TextCellEditor,agTextCellEditor:g.TextCellEditor},dependsOn:[x.EditCoreModule]},x.NumberEditorModule={moduleName:"NumberEditor",version:E.VERSION,userComponents:{agNumberCellEditor:{classImp:c.NumberCellEditor,params:{suppressPreventDefault:!0}}},dependsOn:[x.EditCoreModule]},x.DateEditorModule={moduleName:"DateEditor",version:E.VERSION,userComponents:{agDateCellEditor:C.DateCellEditor,agDateStringCellEditor:d.DateStringCellEditor},dependsOn:[x.EditCoreModule]},x.CheckboxEditorModule={moduleName:"CheckboxEditor",version:E.VERSION,userComponents:{agCheckboxCellEditor:b.CheckboxCellEditor},dependsOn:[x.EditCoreModule]},x.SelectEditorModule={moduleName:"SelectEditor",version:E.VERSION,userComponents:{agSelectCellEditor:h.SelectCellEditor},dependsOn:[x.EditCoreModule]},x.LargeTextEditorModule={moduleName:"LargeTextEditor",version:E.VERSION,userComponents:{agLargeTextCellEditor:s.LargeTextCellEditor},dependsOn:[x.EditCoreModule]},x.CustomEditorModule={moduleName:"CustomEditor",version:E.VERSION,dependsOn:[x.EditCoreModule]}},1277:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.EditService=void 0;let A=p(2036),E=p(9853),z=p(8731),T=p(8399),b=p(8667),C=p(5609);class d extends z.BeanStub{constructor(){super(...arguments),this.beanName="editSvc"}startEditing(h,g=null,f=!1,S=null){var j;if(!h.isCellEditable()||h.editing)return!0;if(!h.comp)return h.onCompAttachedFuncs.push(()=>{this.startEditing(h,g,f,S)}),!0;let w=this.createCellEditorParams(h,g,f),M=h.column.getColDef(),P=(0,A._getCellEditorDetails)(this.beans.userCompFactory,M,w),O=(P==null?void 0:P.popupFromSelector)!=null?P.popupFromSelector:!!M.cellEditorPopup,G=(P==null?void 0:P.popupPositionFromSelector)!=null?P.popupPositionFromSelector:M.cellEditorPopupPosition;return s(h,!0,P),h.comp.setEditDetails(P,O,G,this.gos.get("reactiveCustomComponents")),this.eventSvc.dispatchEvent(h.createEvent(S,"cellEditingStarted")),!((j=P==null?void 0:P.params)!=null&&j.suppressPreventDefault)}stopEditing(h,g=!1){if(h.onEditorAttachedFuncs=[],!h.editing)return!1;let{comp:f,column:S,rowNode:w}=h,{newValue:M,newValueExists:P}=function(j,Y){let J={newValueExists:!1};if(j)return J;let ne=Y.getCellEditor();return!ne||ne.isCancelAfterEnd&&ne.isCancelAfterEnd()?J:{newValue:ne.getValue(),newValueExists:!0}}(g,f),O=this.beans.valueSvc.getValueForDisplay(S,w),G=!1;return P&&(G=function(j,Y,J,ne,ce){if(J===Y)return!1;j.suppressRefreshCell=!0;let fe=ne.setDataValue(ce,J,"edit");return j.suppressRefreshCell=!1,fe}(h,O,M,w,S)),s(h,!1,void 0),f.setEditDetails(),h.updateAndFormatValue(!1),h.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.eventSvc.dispatchEvent(He(ge({},h.createEvent(null,"cellEditingStopped")),{oldValue:O,newValue:M,valueChanged:G})),G}handleColDefChanged(h){var f;let g=(f=h.comp)==null?void 0:f.getCellEditor();if(g!=null&&g.refresh){let{eventKey:S,cellStartedEdit:w}=h.editCompDetails.params,M=this.createCellEditorParams(h,S,w),P=h.column.getColDef(),O=(0,A._getCellEditorDetails)(this.beans.userCompFactory,P,M);g.refresh(O.params)}}setFocusOutOnEditor(h){if(!h.editing)return;let g=h.comp.getCellEditor();g&&g.focusOut&&g.focusOut()}setFocusInOnEditor(h){if(!h.editing)return;let g=h.comp,f=g.getCellEditor();f!=null&&f.focusIn?f.focusIn():(h.focusCell(!0),h.onEditorAttachedFuncs.push(()=>{var S,w;return(w=(S=g.getCellEditor())==null?void 0:S.focusIn)==null?void 0:w.call(S)}))}stopEditingAndFocus(h,g=!1,f=!1){this.stopRowOrCellEdit(h),h.focusCell(!0),g||this.navigateAfterEdit(f,h.cellPosition)}createPopupEditorWrapper(h){return new C.PopupEditorWrapper(h)}stopAllEditing(h=!1){this.beans.rowRenderer.getAllRowCtrls().forEach(g=>this.stopRowEditing(g,h))}stopRowEditing(h,g=!1){var M;if(h.stoppingRowEdit)return;let f=h.getAllCellCtrls(),S=h.editing;h.stoppingRowEdit=!0;let w=!1;for(let P of f){let O=P.stopEditing(g);S&&!g&&!w&&O&&(w=!0)}w&&this.eventSvc.dispatchEvent(h.createRowEvent("rowValueChanged")),S&&((M=this.beans.rowEditSvc)==null||M.setEditing(h,!1)),h.stoppingRowEdit=!1}addStopEditingWhenGridLosesFocus(h){if(!this.gos.get("stopEditingWhenCellsLoseFocus"))return;let g=f=>{let S=f.relatedTarget;if((0,b._getTabIndex)(S)===null)return void this.stopAllEditing();let w=h.some(M=>M.contains(S))&&(0,T._isElementInThisGrid)(this.gos,S);if(!w){let M=this.beans.popupSvc;w=!!M&&(M.getActivePopups().some(P=>P.contains(S))||M.isElementWithinCustomPopup(S))}w||this.stopAllEditing()};h.forEach(f=>this.addManagedElementListeners(f,{focusout:g}))}setInlineEditingCss(h){let g=h.editing||h.getAllCellCtrls().some(f=>f.editing);h.forEachGui(void 0,f=>{f.rowComp.addOrRemoveCssClass("ag-row-inline-editing",g),f.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!g)})}isCellEditable(h,g){if(g.group){if(this.gos.get("treeData")){if(!g.data&&!this.gos.get("enableGroupEdit"))return!1}else if(!this.gos.get("enableGroupEdit"))return!1}return h.isColumnFunc(g,h.colDef.editable)}startRowOrCellEdit(h,g,f=null){var S,w;return h.comp?this.gos.get("editType")==="fullRow"?(w=(S=this.beans.rowEditSvc)==null?void 0:S.startEditing(h.rowCtrl,g,h))!=null?w:!0:this.startEditing(h,g,!0,f):(h.onCompAttachedFuncs.push(()=>{this.startRowOrCellEdit(h,g,f)}),!0)}stopRowOrCellEdit(h,g=!1){this.gos.get("editType")==="fullRow"?this.stopRowEditing(h.rowCtrl,g):this.stopEditing(h,g)}createCellEditorParams(h,g,f){let{column:S,rowNode:w,eGui:M,cellPosition:{rowIndex:P}}=h,{valueSvc:O,gos:G}=this.beans;return G.addGridCommonParams({value:O.getValueForDisplay(S,w),eventKey:g,column:S,colDef:S.getColDef(),rowIndex:P,node:w,data:w.data,cellStartedEdit:f,onKeyDown:h.onKeyDown.bind(h),stopEditing:h.stopEditingAndFocus.bind(h),eGridCell:M,parseValue:j=>O.parseValue(S,w,j,h.value),formatValue:h.formatValue.bind(h)})}navigateAfterEdit(h,g){var f;if(this.gos.get("enterNavigatesVerticallyAfterEdit")){let S=h?E.KeyCode.UP:E.KeyCode.DOWN;(f=this.beans.navigation)==null||f.navigateToNextCell(null,S,g,!1)}}}function s(c,h,g){c.editCompDetails=g,c.editing!==h&&(c.editing=h)}x.EditService=d},6359:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowEditService=void 0;let A=p(8731);class E extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowEditSvc"}startEditing(T,b=null,C=null,d=null){if(T.editing)return!0;let s=!0,c=!1,{editSvc:h}=this.beans;return T.getAllCellCtrls().forEach(g=>{var S;let f=g===C;f?s=(S=h==null?void 0:h.startEditing(g,b,f,d))!=null?S:!0:h==null||h.startEditing(g,null,f,d),c||(c=g.editing)}),c&&this.setEditing(T,!0),s}setEditing(T,b){T.editing=b,T.forEachGui(void 0,d=>d.rowComp.addOrRemoveCssClass("ag-row-editing",b));let C=b?T.createRowEvent("rowEditingStarted"):T.createRowEvent("rowEditingStopped");this.eventSvc.dispatchEvent(C)}}x.RowEditService=E},3355:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgColumn=x.isColumn=x.getNextColInstanceId=void 0;let A=p(8731),E=p(5889),z=p(4422),T=p(6996),b=p(7764),C={resizable:!0,sortable:!0},d=0;function s(){return d++}x.getNextColInstanceId=s,x.isColumn=function(h){return h instanceof c};class c extends A.BeanStub{constructor(g,f,S,w){super(),this.colDef=g,this.userProvidedColDef=f,this.colId=S,this.primary=w,this.isColumn=!0,this.instanceId=s(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new E.LocalEventService,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null}getInstanceId(){return this.instanceId}setState(){let{colDef:g,beans:{sortSvc:f,pinnedCols:S,colFlex:w}}=this;f==null||f.initCol(this);let M=g.hide;this.visible=M!==void 0?!M:!g.initialHide,S==null||S.initCol(this),w==null||w.initCol(this)}setColDef(g,f,S){this.colDef=g,this.userProvidedColDef=f,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.dispatchColEvent("colDefChanged",S)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()}initDotNotation(){let{gos:g,colDef:{field:f,tooltipField:S}}=this,w=g.get("suppressFieldDotNotation");this.fieldContainsDots=(0,z._exists)(f)&&f.indexOf(".")>=0&&!w,this.tooltipFieldContainsDots=(0,z._exists)(S)&&S.indexOf(".")>=0&&!w}initMinAndMaxWidths(){var f,S;let g=this.colDef;this.minWidth=(f=g.minWidth)!=null?f:this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=(S=g.maxWidth)!=null?S:Number.MAX_SAFE_INTEGER}initTooltip(){var g;(g=this.beans.tooltipSvc)==null||g.initCol(this)}resetActualWidth(g){let f=this.calculateColInitialWidth(this.colDef);this.setActualWidth(f,g,!0)}calculateColInitialWidth(g){let f,S=g.width,w=g.initialWidth;return f=S!=null?S:w!=null?w:200,Math.max(Math.min(f,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(g){var f,S;return(S=(f=this.beans.showRowGroupCols)==null?void 0:f.isRowGroupDisplayed(this,g))!=null?S:!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(g,f){var w,M,P,O;this.frameworkEventListenerService=(M=(w=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:M.call(w,this.frameworkEventListenerService,this.colEventSvc);let S=(O=(P=this.frameworkEventListenerService)==null?void 0:P.wrap(f))!=null?O:f;this.colEventSvc.addEventListener(g,S)}removeEventListener(g,f){var w,M;let S=(M=(w=this.frameworkEventListenerService)==null?void 0:w.unwrap(f))!=null?M:f;this.colEventSvc.removeEventListener(g,S)}createColumnFunctionCallbackParams(g){return this.gos.addGridCommonParams({node:g,data:g.data,column:this,colDef:this.colDef})}isSuppressNavigable(g){var f,S;return(S=(f=this.beans.cellNavigation)==null?void 0:f.isSuppressNavigable(this,g))!=null?S:!1}isCellEditable(g){var f,S;return(S=(f=this.beans.editSvc)==null?void 0:f.isCellEditable(this,g))!=null?S:!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(g){return this.isColumnFunc(g,this.colDef.rowDrag)}isDndSource(g){return this.isColumnFunc(g,this.colDef.dndSource)}isCellCheckboxSelection(g){var f,S;return(S=(f=this.beans.selectionSvc)==null?void 0:f.isCellCheckboxSelection(this,g))!=null?S:!1}isSuppressPaste(g){var f,S;return this.isColumnFunc(g,(S=(f=this.colDef)==null?void 0:f.suppressPaste)!=null?S:null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(g){var f;return(f=this.colDef[g])!=null?f:C[g]}isColumnFunc(g,f){return typeof f=="boolean"?f:typeof f=="function"?f(this.createColumnFunctionCallbackParams(g)):!1}createColumnEvent(g,f){return this.gos.addGridCommonParams({type:g,column:this,columns:[this],source:f})}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(0,z._missing)(this.sort)}isSorting(){return(0,z._exists)(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(g,f){this.oldLeft=this.left,this.left!==g&&(this.left=g,this.dispatchColEvent("leftChanged",f))}isFilterActive(){return this.filterActive}isHovered(){var g;return(0,b._warn)(261),!!((g=this.beans.colHover)!=null&&g.isHovered(this))}setFirstRightPinned(g,f){this.firstRightPinned!==g&&(this.firstRightPinned=g,this.dispatchColEvent("firstRightPinnedChanged",f))}setLastLeftPinned(g,f){this.lastLeftPinned!==g&&(this.lastLeftPinned=g,this.dispatchColEvent("lastLeftPinnedChanged",f))}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(g,f){let S=g===!0;this.visible!==S&&(this.visible=S,this.dispatchColEvent("visibleChanged",f)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let g=this.getParent();if(!g||!g.isPadding())return{numberOfParents:0,isSpanningTotal:!1};let f=g.getPaddingLevel()+1,S=!0;for(;g;){if(!g.isPadding()){S=!1;break}g=g.getParent()}return{numberOfParents:f,isSpanningTotal:S}}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(g){let f=g!==this.autoHeaderHeight;return this.autoHeaderHeight=g,f}createBaseColDefParams(g){return this.gos.addGridCommonParams({node:g,data:g.data,colDef:this.colDef,column:this})}getColSpan(g){if((0,z._missing)(this.colDef.colSpan))return 1;let f=this.createBaseColDefParams(g),S=this.colDef.colSpan(f);return Math.max(S,1)}getRowSpan(g){if((0,z._missing)(this.colDef.rowSpan))return 1;let f=this.createBaseColDefParams(g),S=this.colDef.rowSpan(f);return Math.max(S,1)}setActualWidth(g,f,S=!1){g=Math.max(g,this.minWidth),g=Math.min(g,this.maxWidth),this.actualWidth!==g&&(this.actualWidth=g,this.flex&&f!=="flex"&&f!=="gridInitializing"&&(this.flex=null),S||this.fireColumnWidthChangedEvent(f)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(g){this.dispatchColEvent("widthChanged",g)}isGreaterThanMax(g){return g>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(g,f,S){let w=this.createColumnEvent(g,f);S&&(0,T._mergeDeep)(w,S),this.colEventSvc.dispatchEvent(w)}dispatchStateUpdatedEvent(g){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:g})}}x.AgColumn=c},6908:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgColumnGroup=x.isColumnGroup=x.createUniqueColumnGroupId=void 0;let A=p(8731),E=p(1502),z=p(3355);function T(d,s){return d+"_"+s}function b(d){return d instanceof C}x.createUniqueColumnGroupId=T,x.isColumnGroup=b;class C extends A.BeanStub{constructor(s,c,h,g){super(),this.providedColumnGroup=s,this.groupId=c,this.partId=h,this.pinned=g,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return T(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){let s=this.getProvidedColumnGroup().getLeafColumns();return!(!s||s.length===0)&&s.every(c=>c.isMoving())}checkLeft(){if(this.displayedChildren.forEach(s=>{b(s)&&s.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){let s=(0,E._last)(this.displayedChildren).getLeft();this.setLeft(s)}else{let s=this.displayedChildren[0].getLeft();this.setLeft(s)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(s){this.oldLeft=this.left,this.left!==s&&(this.left=s,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){var c;let s=0;return(c=this.displayedChildren)==null||c.forEach(h=>{s+=h.getActualWidth()}),s}isResizable(){if(!this.displayedChildren)return!1;let s=!1;return this.displayedChildren.forEach(c=>{c.isResizable()&&(s=!0)}),s}getMinWidth(){let s=0;return this.displayedChildren.forEach(c=>{s+=c.getMinWidth()}),s}addChild(s){this.children||(this.children=[]),this.children.push(s)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){let s=[];return this.addLeafColumns(s),s}getDisplayedLeafColumns(){let s=[];return this.addDisplayedLeafColumns(s),s}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(s){this.providedColumnGroup.setExpanded(s)}isAutoHeaderHeight(){var s;return!!((s=this.getColGroupDef())!=null&&s.autoHeaderHeight)}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(s){let c=s!==this.autoHeaderHeight;return this.autoHeaderHeight=s,c}addDisplayedLeafColumns(s){this.displayedChildren.forEach(c=>{(0,z.isColumn)(c)?s.push(c):b(c)&&c.addDisplayedLeafColumns(s)})}addLeafColumns(s){this.children.forEach(c=>{(0,z.isColumn)(c)?s.push(c):b(c)&&c.addLeafColumns(s)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){let s=this.getParent();return this.isPadding()&&s&&s.isPadding()?1+s.getPaddingLevel():0}calculateDisplayedColumns(){this.displayedChildren=[];let s=this;for(;s!=null&&s.isPadding();)s=s.getParent();if(!(s&&s.getProvidedColumnGroup().isExpandable()))return this.displayedChildren=this.children,void this.dispatchLocalEvent({type:"displayedChildrenChanged"});this.children.forEach(c=>{if(!(b(c)&&(!c.displayedChildren||!c.displayedChildren.length)))switch(c.getColumnGroupShow()){case"open":s.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(c);break;case"closed":s.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(c);break;default:this.displayedChildren.push(c)}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}}x.AgColumnGroup=C},9409:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgProvidedColumnGroup=x.isProvidedColumnGroup=void 0;let A=p(8731),E=p(3355);function z(b){return b instanceof T}x.isProvidedColumnGroup=z;class T extends A.BeanStub{constructor(C,d,s,c){super(),this.colGroupDef=C,this.groupId=d,this.padding=s,this.level=c,this.isColumn=!1,this.expandable=!1,this.instanceId=(0,E.getNextColInstanceId)(),this.expandableListenerRemoveCallback=null,this.expanded=!!(C!=null&&C.openByDefault)}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(C,d){this.colGroupDef=C,this.level=d,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(C=>C.isVisible())}isPadding(){return this.padding}setExpanded(C){this.expanded=C!==void 0&&C,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(C){this.children=C}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){let C=[];return this.addLeafColumns(C),C}addLeafColumns(C){this.children&&this.children.forEach(d=>{(0,E.isColumn)(d)?C.push(d):z(d)&&d.addLeafColumns(C)})}getColumnGroupShow(){let C=this.colGroupDef;if(C)return C.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();let C=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(d=>d.addEventListener("visibleChanged",C)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(d=>d.removeEventListener("visibleChanged",C)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let C=!1,d=!1,s=!1,c=this.findChildrenRemovingPadding();for(let g=0,f=c.length;g<f;g++){let S=c[g];if(!S.isVisible())continue;let w=S.getColumnGroupShow();w==="open"?(C=!0,s=!0):w==="closed"?(d=!0,s=!0):(C=!0,d=!0)}let h=C&&d&&s;this.expandable!==h&&(this.expandable=h,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){let C=[],d=s=>{s.forEach(c=>{z(c)&&c.isPadding()?d(c.children):C.push(c)})};return d(this.children),C}onColumnVisibilityChanged(){this.setExpandable()}}x.AgProvidedColumnGroup=T},5449:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.DefaultColumnTypes=void 0,x.DefaultColumnTypes={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}}},6257:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._getCellByPosition=x._getRowNode=x._getLastRow=x._getFirstRow=x._isSameRow=x._isRowBefore=x._areCellsEqual=x._createCellId=void 0;let A=p(4422);x._createCellId=function(E){let{rowIndex:z,rowPinned:T,column:b}=E;return`${z}.${T==null?"null":T}.${b.getId()}`},x._areCellsEqual=function(E,z){let T=E.column===z.column,b=E.rowPinned===z.rowPinned,C=E.rowIndex===z.rowIndex;return T&&b&&C},x._isRowBefore=function(E,z){switch(E.rowPinned){case"top":if(z.rowPinned!=="top")return!0;break;case"bottom":if(z.rowPinned!=="bottom")return!1;break;default:if((0,A._exists)(z.rowPinned))return z.rowPinned!=="top"}return E.rowIndex<z.rowIndex},x._isSameRow=function(E,z){return!E&&!z||!(E&&!z||!E&&z)&&E.rowIndex===z.rowIndex&&E.rowPinned==z.rowPinned},x._getFirstRow=function(E){let z,T=0,{pinnedRowModel:b,rowModel:C,pageBounds:d}=E;return b!=null&&b.getPinnedTopRowCount()?z="top":C.getRowCount()?(z=null,T=d.getFirstRow()):b!=null&&b.getPinnedBottomRowCount()&&(z="bottom"),z===void 0?null:{rowIndex:T,rowPinned:z}},x._getLastRow=function(E){let z,T=null,{pinnedRowModel:b,pageBounds:C}=E,d=b==null?void 0:b.getPinnedBottomRowCount(),s=b==null?void 0:b.getPinnedTopRowCount();return d?(T="bottom",z=d-1):E.rowModel.getRowCount()?(T=null,z=C.getLastRow()):s&&(T="top",z=s-1),z===void 0?null:{rowIndex:z,rowPinned:T}},x._getRowNode=function(E,z){var T,b;switch(z.rowPinned){case"top":return(T=E.pinnedRowModel)==null?void 0:T.getPinnedTopRow(z.rowIndex);case"bottom":return(b=E.pinnedRowModel)==null?void 0:b.getPinnedBottomRow(z.rowIndex);default:return E.rowModel.getRow(z.rowIndex)}},x._getCellByPosition=function(E,z){let T=E.rowRenderer.getRowByPosition(z);return T?T.getCellCtrl(z.column):null}},3373:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowNode=x.ROW_ID_PREFIX_BOTTOM_PINNED=x.ROW_ID_PREFIX_TOP_PINNED=x.ROW_ID_PREFIX_ROW_GROUP=void 0;let A=p(7274),E=p(5889),z=p(7764);x.ROW_ID_PREFIX_ROW_GROUP="row-group-",x.ROW_ID_PREFIX_TOP_PINNED="t-",x.ROW_ID_PREFIX_BOTTOM_PINNED="b-";let T=0;x.RowNode=class{constructor(b){this.master=!1,this.detail=void 0,this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=T++,this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.__selected=!1,this.beans=b}setData(b){this.setDataCommon(b,!1)}updateData(b){this.setDataCommon(b,!0)}setDataCommon(b,C){var c,h,g;let d=this.data;this.data=b,(c=this.beans.valueCache)==null||c.onDataChanged(),this.updateDataOnDetailNode(),(h=this.beans.selectionSvc)==null||h.updateRowSelectable(this),this.resetQuickFilterAggregateText();let s=this.createDataChangedEvent(b,d,C);(g=this.__localEventService)==null||g.dispatchEvent(s)}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(b,C,d){return{type:"dataChanged",node:this,oldData:C,newData:b,update:d}}getRowIndexString(){return this.rowIndex==null?((0,z._error)(13),null):this.rowPinned==="top"?x.ROW_ID_PREFIX_TOP_PINNED+this.rowIndex:this.rowPinned==="bottom"?x.ROW_ID_PREFIX_BOTTOM_PINNED+this.rowIndex:this.rowIndex.toString()}setDataAndId(b,C){var g,f;let{selectionSvc:d}=this.beans,s=(g=d==null?void 0:d.createDaemonNode)==null?void 0:g.call(d,this),c=this.data;this.data=b,this.updateDataOnDetailNode(),this.setId(C),d&&(d.updateRowSelectable(this),d.syncInRowNode(this,s));let h=this.createDataChangedEvent(b,c,!1);(f=this.__localEventService)==null||f.dispatchEvent(h)}setId(b){var d,s;let C=(0,A._getRowIdCallback)(this.beans.gos);if(C)if(this.data){let c=(s=(d=this.parent)==null?void 0:d.getRoute())!=null?s:[];this.id=C({data:this.data,parentKeys:c.length>0?c:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(x.ROW_ID_PREFIX_ROW_GROUP)&&(0,z._error)(14,{groupPrefix:x.ROW_ID_PREFIX_ROW_GROUP})}else this.id=void 0;else this.id=b}setRowTop(b){this.oldRowTop=this.rowTop,this.rowTop!==b&&(this.rowTop=b,this.dispatchRowEvent("topChanged"),this.setDisplayed(b!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(b){this.hovered=b}isHovered(){return this.hovered}setRowHeight(b,C=!1){this.rowHeight=b,this.rowHeightEstimated=C,this.dispatchRowEvent("heightChanged")}setExpanded(b,C,d){var s;(s=this.beans.expansionSvc)==null||s.setExpanded(this,b,C,d)}setDataValue(b,C,d){var M;let{colModel:s,valueSvc:c,gos:h,selectionSvc:g}=this.beans,f=typeof b!="string"?b:(M=s.getCol(b))!=null?M:s.getColDefCol(b);if(!f)return!1;let S=c.getValueForDisplay(f,this);if(h.get("readOnlyEdit")){let{beans:{eventSvc:P},data:O,rowIndex:G,rowPinned:j}=this;return P.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:G,rowPinned:j,column:f,colDef:f.colDef,data:O,node:this,oldValue:S,newValue:C,value:C,source:d}),!1}let w=c.setValue(this,f,C,d);return this.dispatchCellChangedEvent(f,C,S),g==null||g.updateRowSelectable(this),w}updateHasChildren(){let b=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0,{rowChildrenSvc:C}=this.beans;C&&(b=C.getHasChildrenValue(this)),b!==this.__hasChildren&&(this.__hasChildren=!!b,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(b,C,d){var c;let s={type:"cellChanged",node:this,column:b,newValue:C,oldValue:d};(c=this.__localEventService)==null||c.dispatchEvent(s)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){var b,C;return(C=(b=this.beans.expansionSvc)==null?void 0:b.isExpandable(this))!=null?C:!1}isSelected(){return this.footer?this.sibling.isSelected():this.__selected}depthFirstSearch(b){var C;(C=this.childrenAfterGroup)==null||C.forEach(d=>d.depthFirstSearch(b)),b(this)}dispatchRowEvent(b){var C;(C=this.__localEventService)==null||C.dispatchEvent({type:b,node:this})}setSelected(b,C=!1,d="api"){var s;(s=this.beans.selectionSvc)==null||s.setNodesSelected({nodes:[this],newValue:b,clearSelection:C,source:d})}isRowPinned(){return!!this.rowPinned}addEventListener(b,C){var s,c,h,g,f;(s=this.beans.validation)==null||s.checkRowEvents(b),this.__localEventService||(this.__localEventService=new E.LocalEventService),this.frameworkEventListenerService=(h=(c=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:h.call(c,this.frameworkEventListenerService,this.__localEventService);let d=(f=(g=this.frameworkEventListenerService)==null?void 0:g.wrap(C))!=null?f:C;this.__localEventService.addEventListener(b,d)}removeEventListener(b,C){var s,c;if(!this.__localEventService)return;let d=(c=(s=this.frameworkEventListenerService)==null?void 0:s.unwrap(C))!=null?c:C;this.__localEventService.removeEventListener(b,d),this.__localEventService.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if((0,z._warn)(61),this.detail)return!0;let b=this.beans.gos.getCallback("isFullWidthRow");return!!b&&b({rowNode:this})}getRoute(){if(this.level===-1)return[];if(this.key==null)return;let b=[],C=this;for(;C&&C.key!=null;)b.push(C.key),C=C.parent;return b.reverse()}setFirstChild(b){this.firstChild!==b&&(this.firstChild=b,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(b){this.displayed!==b&&(this.displayed=b,this.dispatchRowEvent("displayedChanged"))}setRowIndex(b){this.rowIndex!==b&&(this.rowIndex=b,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(b){this.allChildrenCount!==b&&(this.allChildrenCount=b,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(b){this.uiLevel!==b&&(this.uiLevel=b,this.dispatchRowEvent("uiLevelChanged"))}}},9888:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x._createGlobalRowEvent=void 0,x._createGlobalRowEvent=function(p,A,E){return A.addGridCommonParams({type:E,node:p,data:p.data,rowIndex:p.rowIndex,rowPinned:p.rowPinned})}},9024:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.Environment=void 0;let A=p(8731),E=p(9621),z=p(8951),T=p(2525),b=p(3507),C=p(7764),d={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},s={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},c={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},h={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:!0},g=0;class f extends A.BeanStub{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.paramsClass="ag-theme-params-"+ ++g,this.globalCSS=[]}wireBeans(M){this.eGridDiv=M.eGridDiv}postConstruct(){this.addManagedPropertyListener("theme",()=>this.handleThemeGridOptionChange()),this.handleThemeGridOptionChange(),this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(d),this.getSizeEl(s),this.getSizeEl(c),this.getSizeEl(h),this.refreshRowBorderWidthVariable(),this.addDestroyFunc(()=>(0,z._unregisterGridUsingThemingAPI)(this))}getDefaultRowHeight(){return this.getCSSVariablePixelValue(d)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(s)}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(c)}getRowBorderWidth(){return this.getCSSVariablePixelValue(h)}applyThemeClasses(M){let{gridTheme:P}=this,O="";if(P)O=`${this.paramsClass} ${P._getCssClass()}`;else{let G=this.eGridDiv;for(;G;){for(let j of Array.from(G.classList))j.startsWith("ag-theme-")&&(O=O?`${O} ${j}`:j);G=G.parentElement}}for(let G of Array.from(M.classList))G.startsWith("ag-theme-")&&M.classList.remove(G);if(O){let G=M.className;M.className=G+(G?" ":"")+O}}refreshRowHeightVariable(){let{eGridDiv:M}=this,P=M.style.getPropertyValue("--ag-line-height").trim(),O=this.gos.get("rowHeight");if(O==null||isNaN(O)||!isFinite(O))return P!==null&&M.style.setProperty("--ag-line-height",null),-1;let G=`${O}px`;return P!=G?(M.style.setProperty("--ag-line-height",G),O):P!=""?parseFloat(P):-1}addGlobalCSS(M,P){this.gridTheme?(0,z._injectGlobalCSS)(M,this.eGridDiv,P):this.globalCSS.push([M,P])}getCSSVariablePixelValue(M){let P=this.lastKnownValues.get(M);if(P!=null)return P;let O=this.measureSizeEl(M);return O==="detached"||O==="no-styles"?M.defaultValue:(this.lastKnownValues.set(M,O),O)}measureSizeEl(M){let P=this.getSizeEl(M);if(P.offsetParent==null)return"detached";let O=P.offsetWidth;return O===S?"no-styles":(this.sizesMeasured=!0,O)}getMeasurementContainer(){let M=this.eMeasurementContainer;return M||(M=this.eMeasurementContainer=document.createElement("div"),M.className="ag-measurement-container",this.eGridDiv.appendChild(M)),M}getSizeEl(M){let P=this.sizeEls.get(M);if(P)return P;let O=this.getMeasurementContainer();P=document.createElement("div");let{border:G}=M;G?(P.className="ag-measurement-element-border",P.style.setProperty("--ag-internal-measurement-border",`var(${M.cssName}, solid ${S}px`)):P.style.width=`var(${M.cssName}, ${S}px)`,O.appendChild(P),this.sizeEls.set(M,P);let j=this.measureSizeEl(M);j==="no-styles"&&(0,C._warn)(9,{variable:M});let Y=(0,b._observeResize)(this.beans,P,()=>{let J=this.measureSizeEl(M);J!=="detached"&&J!=="no-styles"&&(this.lastKnownValues.set(M,J),J!==j&&(j=J,this.fireGridStylesChangedEvent(M.changeKey)))});return this.addDestroyFunc(()=>Y()),P}fireGridStylesChangedEvent(M){M==="rowBorderWidthChanged"&&this.refreshRowBorderWidthVariable(),this.eventSvc.dispatchEvent({type:"gridStylesChanged",[M]:!0})}refreshRowBorderWidthVariable(){let M=this.getCSSVariablePixelValue(h);this.eGridDiv.style.setProperty("--ag-internal-row-border-width",`${M}px`)}handleThemeGridOptionChange(){let{gos:M,eGridDiv:P,globalCSS:O,gridTheme:G}=this,j=M.get("theme"),Y;if(j==="legacy")Y=void 0;else{let J=j!=null?j:T.themeQuartz;J instanceof E.ThemeImpl?Y=J:(0,C._error)(240,{theme:J})}if(Y!==G){if(Y){(0,z._registerGridUsingThemingAPI)(this),(0,z._injectCoreAndModuleCSS)(P);for(let[ne,ce]of O)(0,z._injectGlobalCSS)(ne,P,ce);O.length=0}this.gridTheme=Y,Y==null||Y._startUse({loadThemeGoogleFonts:M.get("loadThemeGoogleFonts"),container:P});let J=this.eParamsStyle;J||(J=this.eParamsStyle=document.createElement("style"),P.appendChild(J)),z.IS_SSR||(J.textContent=(Y==null?void 0:Y._getPerGridCss(this.paramsClass))||""),this.applyThemeClasses(P),this.fireGridStylesChangedEvent("themeChanged")}Y&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&(j?(0,C._error)(106):(0,C._error)(239))}}x.Environment=f;let S=15538},8778:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.EventService=void 0;let A=p(8731),E=p(5889);class z extends A.BeanStub{constructor(){super(...arguments),this.beanName="eventSvc",this.globalEventService=new E.LocalEventService}postConstruct(){let{globalListener:b,globalSyncListener:C}=this.beans;b&&this.addGlobalListener(b,!0),C&&this.addGlobalListener(C,!1)}addEventListener(b,C,d){this.globalEventService.addEventListener(b,C,d)}removeEventListener(b,C,d){this.globalEventService.removeEventListener(b,C,d)}addGlobalListener(b,C=!1){this.globalEventService.addGlobalListener(b,C)}removeGlobalListener(b,C=!1){this.globalEventService.removeGlobalListener(b,C)}dispatchLocalEvent(){}dispatchEvent(b){this.globalEventService.dispatchEvent(this.gos.addGridCommonParams(b))}dispatchEventOnce(b){this.globalEventService.dispatchEventOnce(this.gos.addGridCommonParams(b))}}x.EventService=z},3080:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x._ALL_EVENTS=x._INTERNAL_EVENTS=x._PUBLIC_EVENTS=void 0,x._PUBLIC_EVENTS=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterOpened","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel"],x._INTERNAL_EVENTS=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","gridStylesChanged","storeUpdated","filterDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged","beforeRefreshModel"],x._ALL_EVENTS=[...x._PUBLIC_EVENTS,...x._INTERNAL_EVENTS]},7968:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.ALWAYS_SYNC_GLOBAL_EVENTS=void 0,x.ALWAYS_SYNC_GLOBAL_EVENTS=new Set(["gridPreDestroyed","fillStart","pasteStart"])},7331:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BaseCreator=void 0;let A=p(8731);class E extends A.BeanStub{getFileName(T){let b=this.getDefaultFileExtension();return T!=null&&T.length||(T=this.getDefaultFileName()),T.indexOf(".")===-1?`${T}.${b}`:T}getData(T){let b=this.createSerializingSession(T);return this.beans.gridSerializer.serialize(b,T)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}}x.BaseCreator=E},8376:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BaseGridSerializingSession=void 0;let A=p(7274);x.BaseGridSerializingSession=class{constructor(E){this.groupColumns=[];let{colModel:z,rowGroupColsSvc:T,colNames:b,valueSvc:C,gos:d,processCellCallback:s,processHeaderCallback:c,processGroupHeaderCallback:h,processRowGroupCallback:g}=E;this.colModel=z,this.rowGroupColsSvc=T,this.colNames=b,this.valueSvc=C,this.gos=d,this.processCellCallback=s,this.processHeaderCallback=c,this.processGroupHeaderCallback=h,this.processRowGroupCallback=g}prepare(E){this.groupColumns=E.filter(z=>!!z.getColDef().showRowGroup)}extractHeaderValue(E){var z;return(z=this.getHeaderName(this.processHeaderCallback,E))!=null?z:""}extractRowCellValue(E,z,T,b,C){let d=this.gos.get("groupHideOpenParents")&&!C.footer||!this.shouldRenderGroupSummaryCell(C,E,z)?this.valueSvc.getValue(E,C):this.createValueForGroupNode(E,C);return this.processCell({accumulatedRowIndex:T,rowNode:C,column:E,value:d,processCellCallback:this.processCellCallback,type:b})}shouldRenderGroupSummaryCell(E,z,T){var C,d;if(!(E&&E.group))return!1;if(this.groupColumns.indexOf(z)!==-1){if(((C=E.groupData)==null?void 0:C[z.getId()])!==void 0||(0,A._isServerSideRowModel)(this.gos)&&E.group)return!0;if(E.footer&&E.level===-1){let s=z.getColDef();return s==null||s.showRowGroup===!0||s.showRowGroup===((d=this.rowGroupColsSvc)==null?void 0:d.columns[0].getId())}}let b=(0,A._isGroupUseEntireRow)(this.gos,this.colModel.isPivotMode());return T===0&&b}getHeaderName(E,z){return E?E(this.gos.addGridCommonParams({column:z})):this.colNames.getDisplayNameForColumn(z,"csv",!0)}createValueForGroupNode(E,z){if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gos.addGridCommonParams({column:E,node:z}));let T=this.gos.get("treeData"),b=c=>{var g,f;if(T)return c.key;let h=(g=c.groupData)==null?void 0:g[E.getId()];return h&&c.rowGroupColumn&&c.rowGroupColumn.getColDef().useValueFormatterForExport!==!1&&(f=this.valueSvc.formatValue(c.rowGroupColumn,c,h))!=null?f:h},C=z.footer,d=[b(z)];if(!(0,A._isGroupMultiAutoColumn)(this.gos))for(;z.parent;)z=z.parent,d.push(b(z));let s=d.reverse().join(" -> ");return C?`Total ${s}`:s}processCell(E){var c;let{accumulatedRowIndex:z,rowNode:T,column:b,value:C,processCellCallback:d,type:s}=E;return d?{value:(c=d(this.gos.addGridCommonParams({accumulatedRowIndex:z,column:b,node:T,value:C,type:s,parseValue:h=>this.valueSvc.parseValue(b,T,h,this.valueSvc.getValue(b,T)),formatValue:h=>{var g;return(g=this.valueSvc.formatValue(b,T,h))!=null?g:h}})))!=null?c:""}:b.getColDef().useValueFormatterForExport!==!1?{value:C!=null?C:"",valueFormatted:this.valueSvc.formatValue(b,T,C)}:{value:C!=null?C:""}}}},3885:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._downloadFile=void 0;let A=p(7764);x._downloadFile=function(E,z){let T=document.defaultView||window;if(!T)return void(0,A._warn)(52);let b=document.createElement("a"),C=T.URL.createObjectURL(z);b.setAttribute("href",C),b.setAttribute("download",E),b.style.display="none",document.body.appendChild(b),b.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:T})),document.body.removeChild(b),T.setTimeout(()=>{T.URL.revokeObjectURL(C)},0)}},2728:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SharedExportModule=void 0;let A=p(7205),E=p(826);x.SharedExportModule={moduleName:"SharedExport",version:A.VERSION,beans:[E.GridSerializer]}},826:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridSerializer=void 0;let A=p(3146),E=p(6034),z=p(8731),T=p(6908),b=p(7274),C=p(1502);class d extends z.BeanStub{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(c){this.visibleCols=c.visibleCols,this.colModel=c.colModel,this.rowModel=c.rowModel,this.pinnedRowModel=c.pinnedRowModel}serialize(c,h={}){let{allColumns:g,columnKeys:f,skipRowGroups:S}=h,w=this.getColumnsToExport(g,S,f);return[this.prepareSession(w),this.prependContent(h),this.exportColumnGroups(h,w),this.exportHeaders(h,w),this.processPinnedTopRows(h,w),this.processRows(h,w),this.processPinnedBottomRows(h,w),this.appendContent(h)].reduce((M,P)=>P(M),c).parse()}processRow(c,h,g,f){var Y;let S=h.shouldRowBeSkipped||(()=>!1),w=h.rowPositions!=null||!!h.onlySelected,M=this.gos.get("groupHideOpenParents")&&!w,P=this.colModel.isPivotMode()?f.leafGroup:!f.group,O=!!f.footer,G=f.allChildrenCount===1&&((Y=f.childrenAfterGroup)==null?void 0:Y.length)===1&&(0,b._canSkipShowingRowGroup)(this.gos,f);if(!P&&!O&&(h.skipRowGroups||G||M)||h.onlySelected&&!f.isSelected()||h.skipPinnedTop&&f.rowPinned==="top"||h.skipPinnedBottom&&f.rowPinned==="bottom"||f.level===-1&&!P&&!O||S(this.gos.addGridCommonParams({node:f})))return;let j=c.onNewBodyRow(f);if(g.forEach((J,ne)=>{j.onColumn(J,ne,f)}),h.getCustomContentBelowRow){let J=h.getCustomContentBelowRow(this.gos.addGridCommonParams({node:f}));J&&c.addCustomContent(J)}}appendContent(c){return h=>{let g=c.appendContent;return g&&h.addCustomContent(g),h}}prependContent(c){return h=>{let g=c.prependContent;return g&&h.addCustomContent(g),h}}prepareSession(c){return h=>(h.prepare(c),h)}exportColumnGroups(c,h){return g=>{if(!c.skipColumnGroupHeaders){let f=new E.GroupInstanceIdCreator,{colGroupSvc:S}=this.beans,w=S?S.createColumnGroups({columns:h,idCreator:f,pinned:null,isStandaloneStructure:!0}):h;this.recursivelyAddHeaderGroups(w,g,c.processGroupHeaderCallback)}return g}}exportHeaders(c,h){return g=>{if(!c.skipColumnHeaders){let f=g.onNewHeaderRow();h.forEach((S,w)=>{f.onColumn(S,w,void 0)})}return g}}processPinnedTopRows(c,h){return g=>{var S;let f=this.processRow.bind(this,g,c,h);return c.rowPositions?c.rowPositions.filter(w=>w.rowPinned==="top").sort((w,M)=>w.rowIndex-M.rowIndex).map(w=>{var M;return(M=this.pinnedRowModel)==null?void 0:M.getPinnedTopRow(w.rowIndex)}).forEach(f):(S=this.pinnedRowModel)==null||S.forEachPinnedRow("top",f),g}}processRows(c,h){return g=>{var G,j;let f=this.rowModel,S=(0,b._isClientSideRowModel)(this.gos,f),w=(0,b._isServerSideRowModel)(this.gos,f),M=!S&&c.onlySelected,P=this.processRow.bind(this,g,c,h),{exportedRows:O="filteredAndSorted"}=c;if(c.rowPositions)return c.rowPositions.filter(Y=>Y.rowPinned==null).sort((Y,J)=>Y.rowIndex-J.rowIndex).map(Y=>f.getRow(Y.rowIndex)).forEach(P),g;if(this.colModel.isPivotMode())return S?f.forEachPivotNode(P,!0):w?f.forEachNodeAfterFilterAndSort(P,!0):f.forEachNode(P),g;if(c.onlySelectedAllPages||M){let Y=(j=(G=this.beans.selectionSvc)==null?void 0:G.getSelectedNodes())!=null?j:[];this.replicateSortedOrder(Y),Y.forEach(P)}else O==="all"?f.forEachNode(P):S||w?f.forEachNodeAfterFilterAndSort(P,!0):f.forEachNode(P);return g}}replicateSortedOrder(c){let{sortSvc:h,rowNodeSorter:g}=this.beans;if(!h||!g)return;let f=h.getSortOptions(),S=(w,M)=>{var P,O,G,j;return w.rowIndex!=null&&M.rowIndex!=null?w.rowIndex-M.rowIndex:w.level===M.level?((P=w.parent)==null?void 0:P.id)===((O=M.parent)==null?void 0:O.id)?g.compareRowNodes(f,{rowNode:w,currentPos:(G=w.rowIndex)!=null?G:-1},{rowNode:M,currentPos:(j=M.rowIndex)!=null?j:-1}):S(w.parent,M.parent):w.level>M.level?S(w.parent,M):S(w,M.parent)};c.sort(S)}processPinnedBottomRows(c,h){return g=>{var S;let f=this.processRow.bind(this,g,c,h);return c.rowPositions?c.rowPositions.filter(w=>w.rowPinned==="bottom").sort((w,M)=>w.rowIndex-M.rowIndex).map(w=>{var M;return(M=this.pinnedRowModel)==null?void 0:M.getPinnedBottomRow(w.rowIndex)}).forEach(f):(S=this.pinnedRowModel)==null||S.forEachPinnedRow("bottom",f),g}}getColumnsToExport(c=!1,h=!1,g){let{colModel:f,gos:S,visibleCols:w}=this,M=f.isPivotMode();if(g&&g.length)return f.getColsForKeys(g);let P=S.get("treeData"),O=[];return O=c&&!M?f.getCols():w.allCols,O=O.filter(G=>!((0,A.isColumnSelectionCol)(G)||h&&!P&&(0,A.isColumnGroupAutoCol)(G))),O}recursivelyAddHeaderGroups(c,h,g){let f=[];c.forEach(S=>{let w=S;w.getChildren&&w.getChildren().forEach(M=>f.push(M))}),c.length>0&&(0,T.isColumnGroup)(c[0])&&this.doAddHeaderHeader(h,c,g),f&&f.length>0&&this.recursivelyAddHeaderGroups(f,h,g)}doAddHeaderHeader(c,h,g){let f=c.onNewHeaderGroupingRow(),S=0;h.forEach(w=>{let M=w,P;P=g?g(this.gos.addGridCommonParams({columnGroup:M})):this.beans.colNames.getDisplayNameForColumnGroup(M,"header");let O=M.getLeafColumns().reduce((G,j,Y,J)=>{let ne=(0,C._last)(G);return j.getColumnGroupShow()==="open"?ne&&ne[1]==null||(ne=[Y],G.push(ne)):ne&&ne[1]==null&&(ne[1]=Y-1),Y===J.length-1&&ne&&ne[1]==null&&(ne[1]=Y),G},[]);f.onColumn(M,P||"",S++,M.getLeafColumns().length-1,O)})}}x.GridSerializer=d},6331:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.columnFiltersCSS=void 0,x.columnFiltersCSS=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-set-floating-filter-input [disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:1px solid var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}"},4527:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.showColumnFilter=x.setColumnFilterModel=x.getColumnFilterModel=x.getFilterModel=x.setFilterModel=x.destroyFilter=x.getColumnFilterInstance=x.isColumnFilterPresent=void 0;let A=p(7764);x.isColumnFilterPresent=function(E){let z=E.filterManager;return!!(z!=null&&z.isColumnFilterPresent())||!!(z!=null&&z.isAggregateFilterPresent())},x.getColumnFilterInstance=function(E,z){var T,b;return(b=(T=E.filterManager)==null?void 0:T.getColumnFilterInstance(z))!=null?b:Promise.resolve(void 0)},x.destroyFilter=function(E,z){var b;let T=E.colModel.getColDefCol(z);if(T)return(b=E.filterManager)==null?void 0:b.destroyFilter(T,"api")},x.setFilterModel=function(E,z){E.frameworkOverrides.wrapIncoming(()=>{var T;return(T=E.filterManager)==null?void 0:T.setFilterModel(z)})},x.getFilterModel=function(E){var z,T;return(T=(z=E.filterManager)==null?void 0:z.getFilterModel())!=null?T:{}},x.getColumnFilterModel=function(E,z){var T,b;return(b=(T=E.filterManager)==null?void 0:T.getColumnFilterModel(z))!=null?b:null},x.setColumnFilterModel=function(E,z,T){var b,C;return(C=(b=E.filterManager)==null?void 0:b.setColumnFilterModel(z,T))!=null?C:Promise.resolve()},x.showColumnFilter=function(E,z){var b;let T=E.colModel.getCol(z);T?(b=E.menuSvc)==null||b.showFilterMenu({column:T,containerType:"columnFilter",positionBy:"auto"}):(0,A._error)(12,{colKey:z})}},219:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnFilterService=void 0;let A=p(4126),E=p(2036),z=p(8731),T=p(7274),b=p(4422),C=p(7990),d=p(7764),s=p(9990),c={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},h=["january","february","march","april","may","june","july","august","september","october","november","december"];function g(w,M){return w==null?-1:M==null?1:parseFloat(w)-parseFloat(M)}class f extends z.BeanStub{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue=[]}postConstruct(){var M,P,O;this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),beforeRefreshModel:({params:G})=>{var j;(G.rowDataUpdated||(j=G.changedProps)!=null&&j.has("treeData"))&&this.onNewRowsLoaded("rowDataUpdated")},dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.initialFilterModel=ge({},(O=(P=(M=this.gos.get("initialState"))==null?void 0:M.filter)==null?void 0:P.filterModel)!=null?O:{})}setFilterModel(M,P="api"){let{colModel:O,dataTypeSvc:G,filterManager:j}=this.beans;if(G!=null&&G.isPendingInference)return void this.filterModelUpdateQueue.push({model:M,source:P});let Y=[],J=this.getFilterModel(!0);if(M){let ne=new Set(Object.keys(M));this.allColumnFilters.forEach((ce,fe)=>{let xe=M[fe];Y.push(S(ce.filterPromise,xe)),ne.delete(fe)}),ne.forEach(ce=>{let fe=O.getColDefCol(ce)||O.getCol(ce);if(!fe)return void(0,d._warn)(62,{colId:ce});if(!fe.isFilterAllowed())return void(0,d._warn)(63,{colId:ce});let xe=this.getOrCreateFilterWrapper(fe);xe?Y.push(S(xe.filterPromise,M[ce])):(0,d._warn)(64,{colId:ce})})}else this.allColumnFilters.forEach(ne=>{Y.push(S(ne.filterPromise,null))});C.AgPromise.all(Y).then(()=>{let ne=this.getFilterModel(!0),ce=[];this.allColumnFilters.forEach((fe,xe)=>{let Le=J?J[xe]:null,_e=ne?ne[xe]:null;(0,b._jsonEquals)(Le,_e)||ce.push(fe.column)}),ce.length>0&&(j==null||j.onFilterChanged({columns:ce,source:P}))})}getFilterModel(M){let P={},{allColumnFilters:O,initialFilterModel:G,beans:{colModel:j}}=this;return O.forEach((Y,J)=>{let ne=this.getModelFromFilterWrapper(Y);(0,b._exists)(ne)&&(P[J]=ne)}),M||Object.entries(G).forEach(([Y,J])=>{var ne;(0,b._exists)(J)&&!O.has(Y)&&((ne=j.getCol(Y))!=null&&ne.isFilterAllowed())&&(P[Y]=J)}),P}getModelFromFilterWrapper(M){let{filter:P}=M;return P?typeof P.getModel!="function"?((0,d._warn)(66),null):P.getModel():this.getModelFromInitialState(M.column)}getModelFromInitialState(M){var P;return(P=this.initialFilterModel[M.getColId()])!=null?P:null}isColumnFilterPresent(){return this.activeColumnFilters.length>0}isAggregateFilterPresent(){return!!this.activeAggregateFilters.length}disableColumnFilters(){let{allColumnFilters:M}=this;return!!M.size&&(M.forEach(P=>this.disposeFilterWrapper(P,"advancedFilterEnabled")),!0)}doAggregateFiltersPass(M,P){return this.doColumnFiltersPass(M,P,!0)}updateActiveFilters(){let{colModel:M,gos:P}=this.beans,O=!!(0,T._getGroupAggFiltering)(P),G=[],j=[];return this.forEachColumnFilter((Y,J)=>{(ce=>!!ce&&(ce.isFilterActive?ce.isFilterActive():((0,d._warn)(67),!1)))(Y)&&((ce=>{if(!ce.isPrimary())return!0;let fe=!M.isPivotActive();return!(!ce.isValueActive()||!fe)&&(!!M.isPivotMode()||O)})(J.column)?G.push(Y):j.push(Y))}).then(()=>{this.activeAggregateFilters=G,this.activeColumnFilters=j})}updateFilterFlagInColumns(M,P){return this.forEachColumnFilter((O,G)=>this.setColFilterActive(G.column,O.isFilterActive(),M,P))}forEachColumnFilter(M){let P=[];return this.allColumnFilters.forEach(O=>{let G=O.filterPromise;G&&P.push(G.then(j=>M(j,O)))}),C.AgPromise.all(P)}doColumnFiltersPass(M,P,O){let{data:G,aggData:j}=M,Y=O?this.activeAggregateFilters:this.activeColumnFilters,J=O?j:G;for(let ne=0;ne<Y.length;ne++){let ce=Y[ne];if(ce!=null&&ce!==P)if(typeof ce.doesFilterPass=="function"){if(!ce.doesFilterPass({node:M,data:J}))return!1}else(0,d._error)(91)}return!0}callOnFilterChangedOutsideRenderCycle(M){let{rowRenderer:P,filterManager:O}=this.beans,G=()=>{this.isAlive()&&(O==null||O.onFilterChanged(M))};P.isRefreshInProgress()?setTimeout(G,0):G()}updateBeforeFilterChanged(M={}){let{filterInstance:P,additionalEventAttributes:O}=M;return this.updateDependentFilters(),this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",O).then(()=>{this.allColumnFilters.forEach(G=>{G.filterPromise&&G.filterPromise.then(j=>{j&&j!==P&&j.onAnyFilterChanged&&j.onAnyFilterChanged()})}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){var M;return!((M=this.gos.get("allowShowChangeAfterFilter"))!=null&&M)&&this.processingFilterChange}onNewRowsLoaded(M){this.forEachColumnFilter(P=>{var O;(O=P.onNewRowsLoaded)==null||O.call(P)}).then(()=>this.updateFilterFlagInColumns(M,{afterDataChange:!0})).then(()=>this.updateActiveFilters())}createGetValue(M){let{filterValueSvc:P,colModel:O}=this.beans;return(G,j)=>{let Y=j?O.getCol(j):M;return Y?P.getValue(Y,G):void 0}}isFilterActive(M){var O;let{filter:P}=(O=this.cachedFilter(M))!=null?O:{};return P?P.isFilterActive():this.getModelFromInitialState(M)!=null}getOrCreateFilterWrapper(M){if(!M.isFilterAllowed())return null;let P=this.cachedFilter(M);return P||(P=this.createFilterWrapper(M),this.setColumnFilterWrapper(M,P)),P}cachedFilter(M){return this.allColumnFilters.get(M.getColId())}getDefaultFilter(M){let P,{gos:O,dataTypeSvc:G}=this.beans;if((0,T._isSetFilterByDefault)(O))P="agSetColumnFilter";else{let j=G==null?void 0:G.getBaseDataType(M);P=j==="number"?"agNumberColumnFilter":j==="date"||j==="dateString"?"agDateColumnFilter":"agTextColumnFilter"}return P}getDefaultFloatingFilter(M){let P,{gos:O,dataTypeSvc:G}=this.beans;if((0,T._isSetFilterByDefault)(O))P="agSetColumnFloatingFilter";else{let j=G==null?void 0:G.getBaseDataType(M);P=j==="number"?"agNumberColumnFloatingFilter":j==="date"||j==="dateString"?"agDateColumnFloatingFilter":"agTextColumnFloatingFilter"}return P}createFilterInstance(M,P){let O=this.getDefaultFilter(M),G=M.getColDef(),j,Y=He(ge({},this.createFilterParams(M,G)),{filterModifiedCallback:()=>this.filterModifiedCallbackFactory(j,M)(),filterChangedCallback:ne=>this.filterChangedCallbackFactory(j,M)(ne),doesRowPassOtherFilter:ne=>{var ce,fe;return(fe=(ce=this.beans.filterManager)==null?void 0:ce.doesRowPassOtherFilters(j,ne))!=null?fe:!0}}),J=(0,E._getFilterDetails)(this.beans.userCompFactory,G,Y,O);return J?{filterPromise:()=>{let ne=J.newAgStackInstance();return ne.then(ce=>{j=ce,P&&(P.filter=ce!=null?ce:void 0)}),ne},compDetails:J}:{filterPromise:null,compDetails:null}}createFilterParams(M,P){return this.gos.addGridCommonParams({column:M,colDef:P,rowModel:this.beans.rowModel,filterChangedCallback:()=>{},filterModifiedCallback:()=>{},getValue:this.createGetValue(M),doesRowPassOtherFilter:()=>!0})}createFilterWrapper(M){var j;let P={column:M,filterPromise:null,compDetails:null},{filterPromise:O,compDetails:G}=this.createFilterInstance(M,P);return P.filterPromise=(j=O==null?void 0:O())!=null?j:null,P.compDetails=G,P}onColumnsChanged(){let M=[],{colModel:P,filterManager:O}=this.beans;this.allColumnFilters.forEach((j,Y)=>{let J;J=j.column.isPrimary()?P.getColDefCol(Y):P.getCol(Y),J&&J===j.column||(M.push(j.column),this.disposeFilterWrapper(j,"columnChanged"),this.disposeColumnListener(Y))});let G=M.every(j=>j.getColDef().filter==="agGroupColumnFilter");M.length>0&&!G?O==null||O.onFilterChanged({columns:M,source:"api"}):this.updateDependentFilters()}updateDependentFilters(){var M,P;(P=(M=this.beans.autoColSvc)==null?void 0:M.getAutoCols())==null||P.forEach(O=>{O.getColDef().filter==="agGroupColumnFilter"&&this.getOrCreateFilterWrapper(O)})}isFilterAllowed(M){var O;if(!M.isFilterAllowed())return!1;let{filter:P}=(O=this.allColumnFilters.get(M.getColId()))!=null?O:{};return!P||typeof(P==null?void 0:P.isFilterAllowed)!="function"||P.isFilterAllowed()}getFloatingFilterCompDetails(M,P){let O=xe=>{var _e;let Le=(_e=this.getOrCreateFilterWrapper(M))==null?void 0:_e.filterPromise;Le!=null&&Le.then(Fe=>{xe((0,A._unwrapUserComp)(Fe))})},G=M.getColDef(),j=He(ge({},this.createFilterParams(M,G)),{filterChangedCallback:()=>O(xe=>this.filterChangedCallbackFactory(xe,M)())}),{userCompFactory:Y,frameworkOverrides:J}=this.beans,ne=(0,E._mergeFilterParamsWithApplicationProvidedParams)(Y,G,j),ce=(0,s._getDefaultFloatingFilterType)(J,G,()=>this.getDefaultFloatingFilter(M));ce==null&&(ce="agReadOnlyFloatingFilter");let fe={column:M,filterParams:ne,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(M),parentFilterInstance:O,showParentFilter:P};return(0,E._getFloatingFilterCompDetails)(Y,G,fe,ce)}getCurrentFloatingFilterParentModel(M){var P;return this.getModelFromFilterWrapper((P=this.cachedFilter(M))!=null?P:{column:M})}destroyFilter(M,P="api"){var j;let O=M.getColId(),G=this.allColumnFilters.get(O);this.disposeColumnListener(O),delete this.initialFilterModel[O],G&&(this.disposeFilterWrapper(G,P),(j=this.beans.filterManager)==null||j.onFilterChanged({columns:[M],source:"api"}))}disposeColumnListener(M){let P=this.allColumnListeners.get(M);P&&(this.allColumnListeners.delete(M),P())}disposeFilterWrapper(M,P){var O;(O=M.filterPromise)==null||O.then(G=>{this.destroyBean(G),this.setColFilterActive(M.column,!1,"filterDestroyed"),this.allColumnFilters.delete(M.column.getColId()),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:P,column:M.column})})}filterModifiedCallbackFactory(M,P){return()=>{this.eventSvc.dispatchEvent({type:"filterModified",column:P,filterInstance:M})}}filterChangedCallbackFactory(M,P){return O=>{var j;let G={filter:M,additionalEventAttributes:O,columns:[P],source:(j=O==null?void 0:O.source)!=null?j:"columnFilter"};this.callOnFilterChangedOutsideRenderCycle(G)}}checkDestroyFilter(M){let P=this.allColumnFilters.get(M);if(!P)return;let O=P.column,{compDetails:G}=O.isFilterAllowed()?this.createFilterInstance(O):{compDetails:null};if(this.areFilterCompsDifferent(P.compDetails,G))return void this.destroyFilter(O,"paramsUpdated");let j=O.getColDef().filterParams;P.filterPromise?P.filterPromise.then(Y=>{(!(Y!=null&&Y.refresh)||Y.refresh(ge(He(ge({},this.createFilterParams(O,O.getColDef())),{filterModifiedCallback:this.filterModifiedCallbackFactory(Y,O),filterChangedCallback:this.filterChangedCallbackFactory(Y,O),doesRowPassOtherFilter:J=>{var ne,ce;return(ce=(ne=this.beans.filterManager)==null?void 0:ne.doesRowPassOtherFilters(Y,J))!=null?ce:!0}}),j)))===!1&&this.destroyFilter(O,"paramsUpdated")}):this.destroyFilter(O,"paramsUpdated")}setColumnFilterWrapper(M,P){let O=M.getColId();this.allColumnFilters.set(O,P),this.allColumnListeners.set(O,this.addManagedListeners(M,{colDefChanged:()=>this.checkDestroyFilter(O)})[0])}areFilterCompsDifferent(M,P){if(!P||!M)return!0;let{componentClass:O}=M,{componentClass:G}=P;return!(O===G||O!=null&&O.render&&(G!=null&&G.render)&&O.render===G.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(M=>M.getColDef().floatingFilter)}getColumnFilterInstance(M){return new Promise(P=>{this.getFilterInstanceImpl(M).then(O=>{P((0,A._unwrapUserComp)(O))})})}getFilterInstanceImpl(M){var G;let P=this.beans.colModel.getColDefCol(M);if(!P)return C.AgPromise.resolve(void 0);let O=(G=this.getOrCreateFilterWrapper(P))==null?void 0:G.filterPromise;return O!=null?O:C.AgPromise.resolve(null)}processFilterModelUpdateQueue(){this.filterModelUpdateQueue.forEach(({model:M,source:P})=>this.setFilterModel(M,P)),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(({key:M,model:P,resolve:O})=>{this.setColumnFilterModel(M,P).then(()=>O())}),this.columnFilterModelUpdateQueue=[]}getColumnFilterModel(M){let P=this.getFilterWrapper(M);return P?this.getModelFromFilterWrapper(P):null}setColumnFilterModel(M,P){let{colModel:O,dataTypeSvc:G}=this.beans;if(G!=null&&G.isPendingInference){let ne=()=>{},ce=new Promise(fe=>{ne=fe});return this.columnFilterModelUpdateQueue.push({key:M,model:P,resolve:ne}),ce}let j=O.getColDefCol(M),Y=j?this.getOrCreateFilterWrapper(j):null;return Y?(J=S(Y.filterPromise,P),new Promise(ne=>{J.then(ce=>ne(ce))})):Promise.resolve();var J}getFilterWrapper(M){var O;let P=this.beans.colModel.getColDefCol(M);return P&&(O=this.cachedFilter(P))!=null?O:null}setColDefPropertiesForDataType(M,P,O){let G=(0,T._isSetFilterByDefault)(this.gos),j=this.getLocaleTextFunc(),Y=J=>{let{filterParams:ne}=M;M.filterParams=typeof ne=="object"?ge(ge({},ne),J):J};switch(P.baseDataType){case"number":G&&Y({comparator:g});break;case"boolean":Y(G?{valueFormatter:J=>(0,b._exists)(J.value)?j(String(J.value),J.value?"True":"False"):j("blanks","(Blanks)")}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(J,ne)=>ne,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(J,ne)=>ne===!1,numberOfInputs:0}]});break;case"date":G&&Y({valueFormatter:J=>{let ne=O(J);return(0,b._exists)(ne)?ne:j("blanks","(Blanks)")},treeList:!0,treeListFormatter:(J,ne)=>{if(ne===1&&J!=null){let ce=h[Number(J)-1];return j(ce,c[ce])}return J!=null?J:j("blanks","(Blanks)")}});break;case"dateString":{let J=P.dateParser;Y(G?{valueFormatter:ne=>{let ce=O(ne);return(0,b._exists)(ce)?ce:j("blanks","(Blanks)")},treeList:!0,treeListPathGetter:ne=>{let ce=J(ne!=null?ne:void 0);return ce?[String(ce.getFullYear()),String(ce.getMonth()+1),String(ce.getDate())]:null},treeListFormatter:(ne,ce)=>{if(ce===1&&ne!=null){let fe=h[Number(ne)-1];return j(fe,c[fe])}return ne!=null?ne:j("blanks","(Blanks)")}}:{comparator:(ne,ce)=>{let fe=J(ce);return ce==null||fe<ne?-1:fe>ne?1:0}});break}case"object":G?Y({valueFormatter:J=>{let ne=O(J);return(0,b._exists)(ne)?ne:j("blanks","(Blanks)")}}):M.filterValueGetter=J=>O({column:J.column,node:J.node,value:this.beans.valueSvc.getValue(J.column,J.node)})}}setColFilterActive(M,P,O,G){M.filterActive!==P&&(M.filterActive=P,M.dispatchColEvent("filterActiveChanged",O)),M.dispatchColEvent("filterChanged",O,G)}destroy(){super.destroy(),this.allColumnFilters.forEach(M=>this.disposeFilterWrapper(M,"gridDestroyed")),this.allColumnListeners.clear()}}function S(w,M){return w?new C.AgPromise(P=>{w.then(O=>{typeof O.setModel!="function"&&((0,d._warn)(65),P()),(O.setModel(M)||C.AgPromise.resolve()).then(()=>P())})}):C.AgPromise.resolve()}x.ColumnFilterService=f},9002:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.onFilterChanged=x.isAnyFilterPresent=void 0,x.isAnyFilterPresent=function(p){var A;return!!((A=p.filterManager)!=null&&A.isAnyFilterPresent())},x.onFilterChanged=function(p,A="api"){var E;(E=p.filterManager)==null||E.onFilterChanged({source:A})}},5741:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.FILTER_LOCALE_TEXT=void 0,x.FILTER_LOCALE_TEXT={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"}},8681:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FilterManager=void 0;let A=p(8731),E=p(7274),z=p(6996),T=p(7990),b=p(7764);class C extends A.BeanStub{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(s){this.quickFilter=s.quickFilter,this.advancedFilter=s.advancedFilter,this.colFilter=s.colFilter}postConstruct(){let s=this.refreshFiltersForAggregations.bind(this),c=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:s,columnPivotChanged:s,columnPivotModeChanged:s,newColumnsLoaded:c,columnVisible:c,advancedFilterEnabledChanged:({enabled:g})=>this.onAdvFilterEnabledChanged(g),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});let{gos:h}=this;this.alwaysPassFilter=h.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=h.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){let s=this.gos.getCallback("isExternalFilterPresent");return typeof s=="function"&&s({})}doesExternalFilterPass(s){let c=this.gos.get("doesExternalFilterPass");return typeof c=="function"&&c(s)}setFilterModel(s,c="api"){var h;this.isAdvFilterEnabled()?this.warnAdvFilters():(h=this.colFilter)==null||h.setFilterModel(s,c)}getFilterModel(){var s,c;return(c=(s=this.colFilter)==null?void 0:s.getFilterModel())!=null?c:{}}isColumnFilterPresent(){var s;return!!((s=this.colFilter)!=null&&s.isColumnFilterPresent())}isAggregateFilterPresent(){var s;return!!((s=this.colFilter)!=null&&s.isAggregateFilterPresent())}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(s){var c,h;s?(c=this.colFilter)!=null&&c.disableColumnFilters()&&this.onFilterChanged({source:"advancedFilter"}):(h=this.advancedFilter)!=null&&h.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){var s;return!!((s=this.advancedFilter)!=null&&s.isEnabled())}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}resetQuickFilterCache(){var s;(s=this.quickFilter)==null||s.resetCache()}refreshFiltersForAggregations(){(0,E._getGroupAggFiltering)(this.gos)&&this.onFilterChanged()}onFilterChanged(s={}){let{source:c,additionalEventAttributes:h,columns:g=[]}=s;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(s):T.AgPromise.resolve()).then(()=>{var S;let f={source:c,type:"filterChanged",columns:g};h&&(0,z._mergeDeep)(f,h),this.eventSvc.dispatchEvent(f),(S=this.colFilter)==null||S.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){var s;return!!((s=this.colFilter)!=null&&s.isSuppressFlashingCellsBecauseFiltering())}isQuickFilterPresent(){var s;return!!((s=this.quickFilter)!=null&&s.isFilterPresent())}updateAggFiltering(){this.aggFiltering=!!(0,E._getGroupAggFiltering)(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(s,c){return this.doesRowPassFilter({rowNode:c,filterInstanceToSkip:s})}doesRowPassAggregateFilters(s){var h;let{rowNode:c}=s;return!!((h=this.alwaysPassFilter)!=null&&h.call(this,c))||!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(c))&&!(this.isAggregateFilterPresent()&&!this.colFilter.doAggregateFiltersPass(c,s.filterInstanceToSkip))}doesRowPassFilter(s){var h;let{rowNode:c}=s;return!!((h=this.alwaysPassFilter)!=null&&h.call(this,c))||!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(c))&&!(this.externalFilterPresent&&!this.doesExternalFilterPass(c))&&!(this.isColumnFilterPresent()&&!this.colFilter.doColumnFiltersPass(c,s.filterInstanceToSkip))&&!(this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(c))}isFilterActive(s){var c;return!!((c=this.colFilter)!=null&&c.isFilterActive(s))}getOrCreateFilterWrapper(s){var c,h;return(h=(c=this.colFilter)==null?void 0:c.getOrCreateFilterWrapper(s))!=null?h:null}getDefaultFloatingFilter(s){return this.colFilter.getDefaultFloatingFilter(s)}createFilterParams(s,c){return this.colFilter.createFilterParams(s,c)}isFilterAllowed(s){var c;return!this.isAdvFilterEnabled()&&!!((c=this.colFilter)!=null&&c.isFilterAllowed(s))}getFloatingFilterCompDetails(s,c){var h;return(h=this.colFilter)==null?void 0:h.getFloatingFilterCompDetails(s,c)}getCurrentFloatingFilterParentModel(s){var c;return(c=this.colFilter)==null?void 0:c.getCurrentFloatingFilterParentModel(s)}destroyFilter(s,c="api"){var h;(h=this.colFilter)==null||h.destroyFilter(s,c)}areFilterCompsDifferent(s,c){var h;return!!((h=this.colFilter)!=null&&h.areFilterCompsDifferent(s,c))}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(s){var c;this.isAdvFilterEnabled()&&((c=this.beans.dataTypeSvc)!=null&&c.isPendingInference?this.advFilterModelUpdateQueue.push(s):(this.advancedFilter.setModel(s!=null?s:null),this.onFilterChanged({source:"advancedFilter"})))}toggleAdvFilterBuilder(s,c){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:c,force:s})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){var s;return!this.isAdvFilterEnabled()&&!!((s=this.colFilter)!=null&&s.hasFloatingFilters())}getColumnFilterInstance(s){var c,h;return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):(h=(c=this.colFilter)==null?void 0:c.getColumnFilterInstance(s))!=null?h:Promise.resolve(void 0)}warnAdvFilters(){(0,b._warn)(68)}setupAdvFilterHeaderComp(s){var c;(c=this.advancedFilter)==null||c.getCtrl().setupHeaderComp(s)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.advFilterModelUpdateQueue.forEach(s=>this.setAdvFilterModel(s)),this.advFilterModelUpdateQueue=[]}getColumnFilterModel(s){var c;return(c=this.colFilter)==null?void 0:c.getColumnFilterModel(s)}setColumnFilterModel(s,c){var h,g;return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):(g=(h=this.colFilter)==null?void 0:h.setColumnFilterModel(s,c))!=null?g:Promise.resolve()}setColDefPropertiesForDataType(s,c,h){var g;(g=this.colFilter)==null||g.setColDefPropertiesForDataType(s,c,h)}}x.FilterManager=C},9665:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FilterMenuFactory=void 0;let A=p(9853),E=p(8731),z=p(7274),T=p(8994),b=p(5230),C=p(3507),d=p(2331),s=p(7764),c=p(1854);class h extends E.BeanStub{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(f){this.popupSvc=f.popupSvc}hideActiveMenu(){var f;(f=this.hidePopup)==null||f.call(this)}showMenuAfterMouseEvent(f,S,w){this.showPopup(f,M=>{var P;(P=this.popupSvc)==null||P.positionPopupUnderMouseEvent({column:f,type:w,mouseEvent:S,ePopup:M})},w,S.target,(0,z._isLegacyMenuEnabled)(this.gos))}showMenuAfterButtonClick(f,S,w){let M=-1,P="left",O=(0,z._isLegacyMenuEnabled)(this.gos);!O&&this.gos.get("enableRtl")&&(M=1,P="right");let G=O?void 0:4*M,j=O?void 0:4;this.showPopup(f,Y=>{var J;(J=this.popupSvc)==null||J.positionPopupByComponent({type:w,eventSource:S,ePopup:Y,nudgeX:G,nudgeY:j,alignSide:P,keepWithinBounds:!0,position:"under",column:f})},w,S,O)}showPopup(f,S,w,M,P){var fe;let O=f?this.createBean(new c.FilterWrapperComp(f,"COLUMN_MENU")):void 0;if(this.activeMenu=O,!(O!=null&&O.hasFilter())||!f)return void(0,s._error)(57);let G=document.createElement("div"),j;(0,b._setAriaRole)(G,"presentation"),G.classList.add("ag-menu"),P||G.classList.add("ag-filter-menu"),[this.tabListener]=this.addManagedElementListeners(G,{keydown:xe=>this.trapFocusWithin(xe,G)}),G.appendChild(O==null?void 0:O.getGui());let Y=(0,z._isColumnMenuAnchoringEnabled)(this.gos)?M!=null?M:this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,J=this.getLocaleTextFunc(),ne=P&&w!=="columnFilter"?J("ariaLabelColumnMenu","Column Menu"):J("ariaLabelColumnFilter","Column Filter"),ce=(fe=this.popupSvc)==null?void 0:fe.addPopup({modal:!0,eChild:G,closeOnEsc:!0,closedCallback:xe=>{(0,T._setColMenuVisible)(f,!1,"contextMenu");let Le=xe instanceof KeyboardEvent;if(this.tabListener&&(this.tabListener=this.tabListener()),Le&&M&&(0,C._isVisible)(M)){let _e=(0,d._findTabbableParent)(M);_e==null||_e.focus({preventScroll:!0})}O==null||O.afterGuiDetached(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,w,f)},positionCallback:()=>S(G),anchorToElement:Y,ariaLabel:ne});ce&&(this.hidePopup=j=ce.hideFunc),O.afterInit().then(()=>{S(G),O.afterGuiAttached({container:w,hidePopup:j})}),(0,T._setColMenuVisible)(f,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,w,f)}trapFocusWithin(f,S){f.key!==A.KeyCode.TAB||f.defaultPrevented||(0,d._findNextFocusableElement)(this.beans,S,!1,f.shiftKey)||(f.preventDefault(),(0,d._focusInto)(S,f.shiftKey))}dispatchVisibleChangedEvent(f,S,w){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:f,switchingTab:!1,key:S,column:w!=null?w:null,columnGroup:null})}isMenuEnabled(f){var S;return f.isFilterAllowed()&&((S=f.getColDef().menuTabs)!=null?S:["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}}x.FilterMenuFactory=h},5432:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ExternalFilterModule=x.QuickFilterModule=x.DateFilterModule=x.NumberFilterModule=x.TextFilterModule=x.CustomFilterModule=x.ColumnFilterModule=x.FilterValueModule=x.FilterCoreModule=x.ClientSideRowModelFilterModule=void 0;let A=p(8287),E=p(3868),z=p(3472),T=p(7205),b=p(3137),C=p(6331),d=p(4527),s=p(219),c=p(9002),h=p(8681),g=p(9665),f=p(3508),S=p(6657),w=p(3725),M=p(3091),P=p(5459),O=p(8988),G=p(4789),j=p(2811),Y=p(8305),J=p(5381),ne=p(1238);x.ClientSideRowModelFilterModule={moduleName:"ClientSideRowModelFilter",version:T.VERSION,rowModels:["clientSide"],beans:[A.FilterStage]},x.FilterCoreModule={moduleName:"FilterCore",version:T.VERSION,beans:[h.FilterManager],apiFunctions:{isAnyFilterPresent:c.isAnyFilterPresent,onFilterChanged:c.onFilterChanged},css:[C.columnFiltersCSS],dependsOn:[x.ClientSideRowModelFilterModule]},x.FilterValueModule={moduleName:"FilterValue",version:T.VERSION,beans:[f.FilterValueService]},x.ColumnFilterModule={moduleName:"ColumnFilter",version:T.VERSION,beans:[s.ColumnFilterService,g.FilterMenuFactory],dynamicBeans:{headerFilterCellCtrl:E.HeaderFilterCellCtrl},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:d.isColumnFilterPresent,getColumnFilterInstance:d.getColumnFilterInstance,destroyFilter:d.destroyFilter,setFilterModel:d.setFilterModel,getFilterModel:d.getFilterModel,getColumnFilterModel:d.getColumnFilterModel,setColumnFilterModel:d.setColumnFilterModel,showColumnFilter:d.showColumnFilter},dependsOn:[x.FilterCoreModule,b.PopupModule,x.FilterValueModule,z.SharedMenuModule]},x.CustomFilterModule={moduleName:"CustomFilter",version:T.VERSION,userComponents:{agReadOnlyFloatingFilter:S.ReadOnlyFloatingFilter},dependsOn:[x.ColumnFilterModule]},x.TextFilterModule={moduleName:"TextFilter",version:T.VERSION,dependsOn:[x.ColumnFilterModule],userComponents:{agTextColumnFilter:j.TextFilter,agTextColumnFloatingFilter:Y.TextFloatingFilter}},x.NumberFilterModule={moduleName:"NumberFilter",version:T.VERSION,dependsOn:[x.ColumnFilterModule],userComponents:{agNumberColumnFilter:O.NumberFilter,agNumberColumnFloatingFilter:G.NumberFloatingFilter}},x.DateFilterModule={moduleName:"DateFilter",version:T.VERSION,dependsOn:[x.ColumnFilterModule],userComponents:{agDateColumnFilter:w.DateFilter,agDateInput:P.DefaultDateComponent,agDateColumnFloatingFilter:M.DateFloatingFilter}},x.QuickFilterModule={moduleName:"QuickFilter",version:T.VERSION,rowModels:["clientSide"],beans:[ne.QuickFilterService],apiFunctions:{isQuickFilterPresent:J.isQuickFilterPresent,getQuickFilter:J.getQuickFilter,resetQuickFilter:J.resetQuickFilter},dependsOn:[x.FilterCoreModule,x.FilterValueModule]},x.ExternalFilterModule={moduleName:"ExternalFilter",version:T.VERSION,dependsOn:[x.FilterCoreModule]}},3508:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FilterValueService=void 0;let A=p(8731);class E extends A.BeanStub{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(T,b){if(!b)return;let C=T.getColDef(),{filterValueGetter:d}=C;return d?this.executeFilterValueGetter(d,b.data,T,b,C):this.beans.valueSvc.getValue(T,b)}executeFilterValueGetter(T,b,C,d,s){let{expressionSvc:c,valueSvc:h}=this.beans,g=this.gos.addGridCommonParams({data:b,node:d,column:C,colDef:s,getValue:h.getValueCallback.bind(this,d)});return typeof T=="function"?T(g):c==null?void 0:c.evaluate(T,g)}}x.FilterValueService=E},1854:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FilterWrapperComp=void 0;let A=p(3507),E=p(4422),z=p(7990),T=p(7764),b=p(8020);class C extends b.Component{constructor(s,c){super('<div class="ag-filter"></div>'),this.column=s,this.source=c,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){var s,c;return(c=(s=this.filterWrapper)==null?void 0:s.filterPromise)!=null?c:null}afterInit(){var s,c,h;return(h=(c=(s=this.filterWrapper)==null?void 0:s.filterPromise)==null?void 0:c.then(()=>{}))!=null?h:z.AgPromise.resolve()}afterGuiAttached(s){var c,h;(h=(c=this.filterWrapper)==null?void 0:c.filterPromise)==null||h.then(g=>{var f;(f=g==null?void 0:g.afterGuiAttached)==null||f.call(g,s)})}afterGuiDetached(){var s,c;(c=(s=this.filterWrapper)==null?void 0:s.filterPromise)==null||c.then(h=>{var g;(g=h==null?void 0:h.afterGuiDetached)==null||g.call(h)})}createFilter(s){var g,f,S;let{column:c,source:h}=this;this.filterWrapper=(f=(g=this.beans.filterManager)==null?void 0:g.getOrCreateFilterWrapper(c))!=null?f:null,(S=this.filterWrapper)!=null&&S.filterPromise&&this.filterWrapper.filterPromise.then(w=>{let M=w.getGui();(0,E._exists)(M)||(0,T._warn)(69,{guiFromFilter:M}),this.appendChild(M),s&&this.eventSvc.dispatchEvent({type:"filterOpened",column:c,source:h,eGui:this.getGui()})})}onFilterDestroyed(s){s.source!=="api"&&s.source!=="paramsUpdated"||s.column.getId()!==this.column.getId()||!this.beans.colModel.getColDefCol(this.column)||((0,A._clearElement)(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}}x.FilterWrapperComp=C},9990:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._getDefaultFloatingFilterType=void 0;let A=p(2036);x._getDefaultFloatingFilterType=function(E,z,T){if(z==null)return null;let b=null,{compName:C,jsComp:d,fwComp:s}=(0,A._getFilterCompKeys)(E,z);return C?b={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[C]:d==null&&s==null&&z.filter===!0&&(b=T()),b}},7287:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FloatingFilterTextInputService=void 0;let A=p(8731),E=p(5946),z=p(8020);class T extends A.BeanStub{constructor(C){super(),this.params=C,this.eInput=z.RefPlaceholder,this.onValueChanged=()=>{}}setupGui(C){var c;this.eInput=this.createManagedBean(new E.AgInputTextField((c=this.params)==null?void 0:c.config));let d=this.eInput.getGui();C.appendChild(d);let s=h=>this.onValueChanged(h);this.addManagedListeners(d,{input:s,keydown:s})}setEditable(C){this.eInput.setDisabled(!C)}getValue(){return this.eInput.getValue()}setValue(C,d){this.eInput.setValue(C,d)}setValueChangedListener(C){this.onValueChanged=C}setParams({ariaLabel:C,autoComplete:d}){let{eInput:s}=this;s.setInputAriaLabel(C),d!==void 0&&s.setAutoComplete(d)}}x.FloatingFilterTextInputService=T},361:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.isUseApplyButton=x.getDebounceMs=void 0;let A=p(7764);function E(z){var T,b;return((b=(T=z.buttons)==null?void 0:T.indexOf("apply"))!=null?b:-1)>=0}x.getDebounceMs=function(z,T){let{debounceMs:b}=z;return E(z)?(b!=null&&(0,A._warn)(71),0):b!=null?b:T},x.isUseApplyButton=E},6657:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ReadOnlyFloatingFilter=void 0;let A=p(5946),E=p(8020);class z extends E.Component{constructor(){super(`
            <div class="ag-floating-filter-input" role="presentation">
                <ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field>
            </div>`,[A.AgInputTextFieldSelector]),this.eFloatingFilterText=E.RefPlaceholder}init(b){this.params=b;let C=this.beans.colNames.getDisplayNameForColumn(b.column,"header",!0);this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${C} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`)}onParentModelChanged(b){b!=null?this.params.parentFilterInstance(C=>{if(C.getModelAsString){let d=C.getModelAsString(b);this.eFloatingFilterText.setValue(d)}}):this.eFloatingFilterText.setValue("")}refresh(b){this.init(b)}}x.ReadOnlyFloatingFilter=z},3141:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SimpleFloatingFilter=void 0;let A=p(8020),E=p(4824);class z extends A.Component{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(b){if(!b)return void(this.lastType=this.optionsFactory.defaultOption);let C;b.operator?C=b.conditions[0]:C=b,this.lastType=C.type}canWeEditAfterModelFromParentFilter(b){if(!b)return this.isTypeEditable(this.lastType);if(b.operator)return!1;let C=b;return this.isTypeEditable(C.type)}init(b){this.setSimpleParams(b,!1)}setSimpleParams(b,C=!0){let d=new E.OptionsFactory;this.optionsFactory=d,d.init(b.filterParams,this.getDefaultOptions());let s=d.defaultOption;C||(this.lastType=s),this.readOnly=!!b.filterParams.readOnly;let c=this.isTypeEditable(s);this.setEditable(c)}refresh(b){this.setSimpleParams(b)}hasSingleInput(b){var d;let C=(d=this.optionsFactory.getCustomOption(b))==null?void 0:d.numberOfInputs;return C==null||C==1}isTypeEditable(b){return!!b&&!this.readOnly&&this.hasSingleInput(b)&&["inRange","empty","blank","notBlank"].indexOf(b)<0}getAriaLabel(b){return`${this.beans.colNames.getDisplayNameForColumn(b.column,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}}x.SimpleFloatingFilter=z},8922:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TextInputFloatingFilter=void 0;let A=p(9853),E=p(3507),z=p(2043),T=p(8020),b=p(2470),C=p(361),d=p(3141);class s extends d.SimpleFloatingFilter{constructor(){super(...arguments),this.eFloatingFilterInputContainer=T.RefPlaceholder,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(`
            <div class="ag-floating-filter-input" role="presentation" data-ref="eFloatingFilterInputContainer"></div>
        `)}onParentModelChanged(h,g){g!=null&&g.afterFloatingFilter||g!=null&&g.afterDataChange||(this.setLastTypeFromModel(h),this.setEditable(this.canWeEditAfterModelFromParentFilter(h)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(h)))}init(h){this.setupFloatingFilterInputService(h),super.init(h),this.setTextInputParams(h)}setupFloatingFilterInputService(h){this.inputSvc=this.createFloatingFilterInputService(h),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(h){var M;this.params=h;let g=(M=h.browserAutoComplete)!=null?M:!1,{inputSvc:f,defaultDebounceMs:S,readOnly:w}=this;if(f.setParams({ariaLabel:this.getAriaLabel(h),autoComplete:g}),this.applyActive=(0,C.isUseApplyButton)(h.filterParams),!w){let P=(0,C.getDebounceMs)(h.filterParams,S),O=(0,z._debounce)(this,this.syncUpWithParentFilter.bind(this),P);f.setValueChangedListener(O)}}refresh(h){super.refresh(h),this.setTextInputParams(h)}recreateFloatingFilterInputService(h){let{inputSvc:g}=this,f=g.getValue();(0,E._clearElement)(this.eFloatingFilterInputContainer),this.destroyBean(g),this.setupFloatingFilterInputService(h),g.setValue(f,!0)}syncUpWithParentFilter(h){let g=h.key===A.KeyCode.ENTER;if(this.applyActive&&!g)return;let{inputSvc:f,params:S}=this,w=f.getValue();S.filterParams.trimInput&&(w=(0,b.trimInputForFilter)(w),f.setValue(w,!0)),S.parentFilterInstance(M=>{M==null||M.onFloatingFilterChanged(this.lastType||null,w||null)})}setEditable(h){this.inputSvc.setEditable(h)}}x.TextInputFloatingFilter=s},8713:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateCompWrapper=void 0;let A=p(2036),E=p(3507);x.DateCompWrapper=class{constructor(z,T,b,C,d){this.alive=!0,this.context=z,this.eParent=C;let s=(0,A._getDateCompDetails)(T,b);s&&s.newAgStackInstance().then(c=>{var f,S;if(!this.alive)return void z.destroyBean(c);if(this.dateComp=c,!c)return;C.appendChild(c.getGui()),(f=c==null?void 0:c.afterGuiAttached)==null||f.call(c);let{tempValue:h,disabled:g}=this;h&&c.setDate(h),g!=null&&((S=c.setDisabled)==null||S.call(c,g)),d==null||d(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(z){let T=this.dateComp;T?T.setDate(z):this.tempValue=z}setDisabled(z){var b;let T=this.dateComp;T?(b=T.setDisabled)==null||b.call(T,z):this.disabled=z}setDisplayed(z){(0,E._setDisplayed)(this.eParent,z)}setInputPlaceholder(z){var T,b;(b=(T=this.dateComp)==null?void 0:T.setInputPlaceholder)==null||b.call(T,z)}setInputAriaLabel(z){var T,b;(b=(T=this.dateComp)==null?void 0:T.setInputAriaLabel)==null||b.call(T,z)}afterGuiAttached(z){var T,b;(b=(T=this.dateComp)==null?void 0:T.afterGuiAttached)==null||b.call(T,z)}updateParams(z){var T,b;(b=(T=this.dateComp)==null?void 0:T.refresh)==null||b.call(T,z)}}},3725:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateFilter=void 0;let A=p(7274),E=p(9827),z=p(7764),T=p(5562),b=p(7535),C=p(8713),d=p(4200),s=p(4392),c=1/0;class h extends T.ScalarFilter{constructor(){super("dateFilter"),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=1e3,this.maxValidYear=c,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(S){super.afterGuiAttached(S),this.dateConditionFromComps[0].afterGuiAttached(S)}mapValuesFromModel(S){let{dateFrom:w,dateTo:M,type:P}=S||{};return[w&&(0,E._parseDateTimeFromString)(w)||null,M&&(0,E._parseDateTimeFromString)(M)||null].slice(0,this.getNumberOfInputs(P))}comparator(){var S;return(S=this.dateFilterParams.comparator)!=null?S:g}setParams(S){this.dateFilterParams=S,super.setParams(S);let w=(M,P)=>{if(S[M]!=null){if(!isNaN(S[M]))return S[M]==null?P:Number(S[M]);(0,z._warn)(82,{param:M})}return P};this.minValidYear=w("minValidYear",1e3),this.maxValidYear=w("maxValidYear",c),this.minValidYear>this.maxValidYear&&(0,z._warn)(83),this.minValidDate=S.minValidDate?S.minValidDate instanceof Date?S.minValidDate:(0,E._parseDateTimeFromString)(S.minValidDate):null,this.maxValidDate=S.maxValidDate?S.maxValidDate instanceof Date?S.maxValidDate:(0,E._parseDateTimeFromString)(S.maxValidDate):null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&(0,z._warn)(84),this.filterModelFormatter=new s.DateFilterModelFormatter(this.dateFilterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory)}createDateCompWrapper(S){let{userCompFactory:w,context:M}=this.beans,P=new C.DateCompWrapper(M,w,{onDateChanged:()=>this.onUiChanged(),filterParams:this.dateFilterParams,location:"filter"},S);return this.addDestroyFunc(()=>P.destroy()),P}setElementValue(S,w){S.setDate(w)}setElementDisplayed(S,w){S.setDisplayed(w)}setElementDisabled(S,w){S.setDisabled(w)}getDefaultFilterOptions(){return d.DEFAULT_DATE_FILTER_OPTIONS}createValueElement(){let S=(0,A._getDocument)(this.beans).createElement("div");return S.classList.add("ag-filter-body"),this.createFromToElement(S,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(S,this.eConditionPanelsTo,this.dateConditionToComps,"to"),S}createFromToElement(S,w,M,P){let O=(0,A._getDocument)(this.beans).createElement("div");O.classList.add(`ag-filter-${P}`),O.classList.add(`ag-filter-date-${P}`),w.push(O),S.appendChild(O),M.push(this.createDateCompWrapper(O))}removeValueElements(S,w){this.removeDateComps(this.dateConditionFromComps,S,w),this.removeDateComps(this.dateConditionToComps,S,w),(0,b.removeItems)(this.eConditionPanelsFrom,S,w),(0,b.removeItems)(this.eConditionPanelsTo,S,w)}removeDateComps(S,w,M){(0,b.removeItems)(S,w,M).forEach(P=>P.destroy())}isValidDateValue(S){if(S===null)return!1;let{minValidDate:w,maxValidDate:M,minValidYear:P,maxValidYear:O}=this;if(w){if(S<w)return!1}else if(S.getUTCFullYear()<P)return!1;if(M){if(S>M)return!1}else if(S.getUTCFullYear()>O)return!1;return!0}isConditionUiComplete(S){if(!super.isConditionUiComplete(S))return!1;let w=!0;return this.forEachInput((M,P,O,G)=>{O!==S||!w||P>=G||(w=w&&this.isValidDateValue(M.getDate()))}),w}areSimpleModelsEqual(S,w){return S.dateFrom===w.dateFrom&&S.dateTo===w.dateTo&&S.type===w.type}createCondition(S){let w=this.getConditionType(S),M={},P=this.getValues(S);return P.length>0&&(M.dateFrom=(0,E._serialiseDate)(P[0])),P.length>1&&(M.dateTo=(0,E._serialiseDate)(P[1])),ge({dateFrom:null,dateTo:null,filterType:this.filterType,type:w},M)}resetPlaceholder(){let S=this.getLocaleTextFunc(),w=this.translate("dateFormatOoo"),M=S("ariaFilterValue","Filter Value");this.forEachInput(P=>{P.setInputPlaceholder(w),P.setInputAriaLabel(M)})}getInputs(S){let{dateConditionFromComps:w,dateConditionToComps:M}=this;return S>=w.length?[null,null]:[w[S],M[S]]}getValues(S){let w=[];return this.forEachPositionInput(S,(M,P,O,G)=>{P<G&&w.push(M.getDate())}),w}translate(S){return S==="lessThan"?super.translate("before"):S==="greaterThan"?super.translate("after"):super.translate(S)}getModelAsString(S){var w;return(w=this.filterModelFormatter.getModelAsString(S))!=null?w:""}}function g(f,S){return S==null||S<f?-1:S>f?1:0}x.DateFilter=h},4200:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.DEFAULT_DATE_FILTER_OPTIONS=void 0,x.DEFAULT_DATE_FILTER_OPTIONS=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"]},4392:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateFilterModelFormatter=void 0;let A=p(9827),E=p(2786);class z extends E.SimpleFilterModelFormatter{constructor(b,C,d){super(C,d),this.dateFilterParams=b}conditionToString(b,C){let{type:d}=b,{numberOfInputs:s}=C||{},c=d=="inRange"||s===2,h=(0,A._parseDateTimeFromString)(b.dateFrom),g=(0,A._parseDateTimeFromString)(b.dateTo),f=this.dateFilterParams.inRangeFloatingFilterDateFormat;return c?`${h!==null?(0,A._dateToFormattedString)(h,f):"null"}-${g!==null?(0,A._dateToFormattedString)(g,f):"null"}`:h!=null?(0,A._dateToFormattedString)(h,f):`${d}`}updateParams(b){super.updateParams(b),this.dateFilterParams=b.dateFilterParams}}x.DateFilterModelFormatter=z},3091:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DateFloatingFilter=void 0;let A=p(9827),E=p(3507),z=p(2043),T=p(5946),b=p(8020),C=p(361),d=p(3141),s=p(8713),c=p(4200),h=p(4392);class g extends d.SimpleFloatingFilter{constructor(){super(`
            <div class="ag-floating-filter-input" role="presentation">
                <ag-input-text-field data-ref="eReadOnlyText"></ag-input-text-field>
                <div data-ref="eDateWrapper" style="display: flex;"></div>
            </div>`,[T.AgInputTextFieldSelector]),this.eReadOnlyText=b.RefPlaceholder,this.eDateWrapper=b.RefPlaceholder}getDefaultOptions(){return c.DEFAULT_DATE_FILTER_OPTIONS}init(S){super.init(S),this.params=S,this.filterParams=S.filterParams,this.createDateComponent(),this.filterModelFormatter=new h.DateFilterModelFormatter(this.filterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory);let w=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(w("ariaDateFilterInput","Date Filter Input"))}refresh(S){super.refresh(S),this.params=S,this.filterParams=S.filterParams;let w=this.gos.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(w),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(S.currentParentModel())}updateCompOnModelChange(S){let w=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(S);if(this.setEditable(w),w){let M=S?(0,A._parseDateTimeFromString)(S.dateFrom):null;this.dateComp.setDate(M),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(S)),this.dateComp.setDate(null)}setEditable(S){(0,E._setDisplayed)(this.eDateWrapper,S),(0,E._setDisplayed)(this.eReadOnlyText.getGui(),!S)}onParentModelChanged(S,w){w!=null&&w.afterFloatingFilter||w!=null&&w.afterDataChange||(super.setLastTypeFromModel(S),this.updateCompOnModelChange(S))}onDateChanged(){let S=this.dateComp.getDate(),w=(0,A._serialiseDate)(S);this.params.parentFilterInstance(M=>{if(M){let P=(0,A._parseDateTimeFromString)(w);M.onFloatingFilterChanged(this.lastType||null,P)}})}getDateComponentParams(){let{filterParams:S,column:w}=this.params,M=(0,C.getDebounceMs)(S,this.defaultDebounceMs);return{onDateChanged:(0,z._debounce)(this,this.onDateChanged.bind(this),M),filterParams:w.getColDef().filterParams,location:"floatingFilter"}}createDateComponent(){let{beans:{context:S,userCompFactory:w},eDateWrapper:M}=this;this.dateComp=new s.DateCompWrapper(S,w,this.getDateComponentParams(),M,P=>{P.setInputAriaLabel(this.getAriaLabel(this.params))}),this.addDestroyFunc(()=>this.dateComp.destroy())}}x.DateFloatingFilter=g},5459:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DefaultDateComponent=void 0;let A=p(7274),E=p(8667),z=p(9827),T=p(7764),b=p(5946),C=p(8020);class d extends C.Component{constructor(){super(`
            <div class="ag-filter-filter">
                <ag-input-text-field class="ag-date-filter" data-ref="eDateInput"></ag-input-text-field>
            </div>`,[b.AgInputTextFieldSelector]),this.eDateInput=C.RefPlaceholder,this.isApply=!1,this.applyOnFocusOut=!1}init(c){this.params=c,this.setParams(c);let h=this.eDateInput.getInputElement();this.addManagedListeners(h,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||h.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this)})}handleInput(c,h){if(h.target===(0,A._getActiveDomElement)(this.beans)&&!this.eDateInput.isDisabled())return this.isApply?(this.applyOnFocusOut=!c,void(c&&this.params.onDateChanged())):void(c||this.params.onDateChanged())}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}setParams(c){let h=this.eDateInput.getInputElement(),g=this.shouldUseBrowserDatePicker(c);this.usingSafariDatePicker=g&&(0,E._isBrowserSafari)(),h.type=g?"date":"text";let{minValidYear:f,maxValidYear:S,minValidDate:w,maxValidDate:M,buttons:P}=c.filterParams||{};if(w&&f&&(0,T._warn)(85),M&&S&&(0,T._warn)(86),w&&M){let[O,G]=[w,M].map(j=>j instanceof Date?j:(0,z._parseDateTimeFromString)(j));O&&G&&O.getTime()>G.getTime()&&(0,T._warn)(87)}w?w instanceof Date?h.min=(0,z._dateToFormattedString)(w):h.min=w:f&&(h.min=`${f}-01-01`),M?M instanceof Date?h.max=(0,z._dateToFormattedString)(M):h.max=M:S&&(h.max=`${S}-12-31`),this.isApply=c.location==="floatingFilter"&&!!(P!=null&&P.includes("apply"))}refresh(c){this.params=c,this.setParams(c)}getDate(){return(0,z._parseDateTimeFromString)(this.eDateInput.getValue())}setDate(c){this.eDateInput.setValue((0,z._serialiseDate)(c,!1))}setInputPlaceholder(c){this.eDateInput.setInputPlaceholder(c)}setInputAriaLabel(c){this.eDateInput.setAriaLabel(c)}setDisabled(c){this.eDateInput.setDisabled(c)}afterGuiAttached(c){c&&c.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(c){var h,g;return(g=(h=c==null?void 0:c.filterParams)==null?void 0:h.browserDatePicker)!=null?g:!0}}x.DefaultDateComponent=d},8988:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NumberFilter=void 0;let A=p(5230),E=p(4422),z=p(8792),T=p(5946),b=p(5562),C=p(846),d=p(1862),s=p(730);class c extends b.ScalarFilter{constructor(){super("numberFilter"),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}refresh(g){return this.numberFilterParams.allowedCharPattern===g.allowedCharPattern&&super.refresh(g)}mapValuesFromModel(g){let{filter:f,filterTo:S,type:w}=g||{};return[this.processValue(f),this.processValue(S)].slice(0,this.getNumberOfInputs(w))}comparator(){return(g,f)=>g===f?0:g<f?1:-1}setParams(g){this.numberFilterParams=g,super.setParams(g),this.filterModelFormatter=new d.NumberFilterModelFormatter(this.getLocaleTextFunc.bind(this),this.optionsFactory,this.numberFilterParams.numberFormatter)}getDefaultFilterOptions(){return C.DEFAULT_NUMBER_FILTER_OPTIONS}setElementValue(g,f,S){let{numberFormatter:w}=this.numberFilterParams,M=!S&&w?w(f!=null?f:null):f;super.setElementValue(g,M)}createValueElement(){let g=(0,s.getAllowedCharPattern)(this.numberFilterParams),f=document.createElement("div");return f.classList.add("ag-filter-body"),(0,A._setAriaRole)(f,"presentation"),this.createFromToElement(f,this.eValuesFrom,"from",g),this.createFromToElement(f,this.eValuesTo,"to",g),f}createFromToElement(g,f,S,w){let M=this.createManagedBean(w?new T.AgInputTextField({allowedCharPattern:w}):new z.AgInputNumberField);M.addCssClass(`ag-filter-${S}`),M.addCssClass("ag-filter-filter"),f.push(M),g.appendChild(M.getGui())}removeValueElements(g,f){let S=w=>this.removeComponents(w,g,f);S(this.eValuesFrom),S(this.eValuesTo)}getValues(g){let f=[];return this.forEachPositionInput(g,(S,w,M,P)=>{w<P&&f.push(this.processValue(this.stringToFloat(S.getValue())))}),f}areSimpleModelsEqual(g,f){return g.filter===f.filter&&g.filterTo===f.filterTo&&g.type===f.type}processValue(g){return g==null||isNaN(g)?null:g}stringToFloat(g){if(typeof g=="number")return g;let f=(0,E._makeNull)(g);f!=null&&f.trim()===""&&(f=null);let S=this.numberFilterParams.numberParser;return S?S(f):f==null||f.trim()==="-"?null:parseFloat(f)}createCondition(g){let f=this.getConditionType(g),S={filterType:this.filterType,type:f},w=this.getValues(g);return w.length>0&&(S.filter=w[0]),w.length>1&&(S.filterTo=w[1]),S}getInputs(g){let{eValuesFrom:f,eValuesTo:S}=this;return g>=f.length?[null,null]:[f[g],S[g]]}getModelAsString(g){var f;return(f=this.filterModelFormatter.getModelAsString(g))!=null?f:""}hasInvalidInputs(){let g=!1;return this.forEachInput(f=>{f.getInputElement().validity.valid||(g=!0)}),g}}x.NumberFilter=c},846:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.DEFAULT_NUMBER_FILTER_OPTIONS=void 0,x.DEFAULT_NUMBER_FILTER_OPTIONS=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"]},1862:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NumberFilterModelFormatter=void 0;let A=p(2786);class E extends A.SimpleFilterModelFormatter{conditionToString(T,b){let{numberOfInputs:C}=b||{},{filter:d,filterTo:s,type:c}=T,h=c=="inRange"||C===2,g=this.formatValue.bind(this);return h?`${g(d)}-${g(s)}`:d!=null?g(d):`${c}`}}x.NumberFilterModelFormatter=E},730:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getAllowedCharPattern=void 0,x.getAllowedCharPattern=function(p){let{allowedCharPattern:A}=p!=null?p:{};return A!=null?A:null}},4789:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NumberFloatingFilter=void 0;let A=p(8731),E=p(8792),z=p(5946),T=p(7287),b=p(8922),C=p(846),d=p(1862),s=p(730);class c extends A.BeanStub{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(f){this.eNumberInput=this.createManagedBean(new E.AgInputNumberField),this.eTextInput=this.createManagedBean(new z.AgInputTextField),this.eTextInput.setDisabled(!0);let S=this.eNumberInput.getGui(),w=this.eTextInput.getGui();f.appendChild(S),f.appendChild(w),this.setupListeners(S,M=>this.onValueChanged(M)),this.setupListeners(w,M=>this.onValueChanged(M))}setEditable(f){this.numberInputActive=f,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(f){this.eNumberInput.setAutoComplete(f),this.eTextInput.setAutoComplete(f)}getValue(){return this.getActiveInputElement().getValue()}setValue(f,S){this.getActiveInputElement().setValue(f,S)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(f){this.onValueChanged=f}setupListeners(f,S){this.addManagedListeners(f,{input:S,keydown:S})}setParams(f){this.setAriaLabel(f.ariaLabel),f.autoComplete!==void 0&&this.setAutoComplete(f.autoComplete)}setAriaLabel(f){this.eNumberInput.setInputAriaLabel(f),this.eTextInput.setInputAriaLabel(f)}}class h extends b.TextInputFloatingFilter{init(f){var S;super.init(f),this.filterModelFormatter=new d.NumberFilterModelFormatter(this.getLocaleTextFunc.bind(this),this.optionsFactory,(S=f.filterParams)==null?void 0:S.numberFormatter)}refresh(f){(0,s.getAllowedCharPattern)(f.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(f),super.refresh(f),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return C.DEFAULT_NUMBER_FILTER_OPTIONS}createFloatingFilterInputService(f){return this.allowedCharPattern=(0,s.getAllowedCharPattern)(f.filterParams),this.allowedCharPattern?this.createManagedBean(new T.FloatingFilterTextInputService({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new c)}}x.NumberFloatingFilter=h},4824:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.OptionsFactory=void 0;let A=p(7764);x.OptionsFactory=class{constructor(){this.customFilterOptions={}}init(E,z){this.filterOptions=E.filterOptions||z,this.mapCustomOptions(),this.selectDefaultItem(E)}mapCustomOptions(){let{filterOptions:E}=this;E&&E.forEach(z=>{typeof z!="string"&&([["displayKey"],["displayName"],["predicate","test"]].every(T=>!!T.some(b=>z[b]!=null)||((0,A._warn)(72,{keys:T}),!1))?this.customFilterOptions[z.displayKey]=z:this.filterOptions=E.filter(T=>T===z)||[])})}selectDefaultItem(E){let{filterOptions:z}=this;if(E.defaultOption)this.defaultOption=E.defaultOption;else if(z.length>=1){let T=z[0];typeof T=="string"?this.defaultOption=T:T.displayKey?this.defaultOption=T.displayKey:(0,A._warn)(73)}else(0,A._warn)(74)}getCustomOption(E){return this.customFilterOptions[E]}}},2245:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ProvidedFilter=void 0;let A=p(2147),E=p(3507),z=p(2043),T=p(4422),b=p(7764),C=p(8020),d=p(1772),s=p(5741),c=p(361);class h extends C.Component{constructor(f){super(),this.filterNameKey=f,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=C.RefPlaceholder,this.buttonListeners=[],this.defaultDebounceMs=0}postConstruct(){this.resetTemplate(),this.createManagedBean(new d.ManagedFocusFeature(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new A.PositionableFeature(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(f){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(f){let S=this.getGui();S&&S.removeEventListener("submit",this.onFormSubmit);let w=`
            <form class="ag-filter-wrapper">
                <div class="ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper" data-ref="eFilterBody">
                    ${this.createBodyTemplate()}
                </div>
            </form>`;this.setTemplate(w,this.getAgComponents(),f),S=this.getGui(),S==null||S.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.params.readOnly}init(f){this.setParams(f),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(f){this.params=f,this.applyActive=(0,c.isUseApplyButton)(f),this.resetButtonsPanel(f)}updateParams(f){this.params=f,this.applyActive=(0,c.isUseApplyButton)(f),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(f,S){let{buttons:w,readOnly:M}=S!=null?S:{},{buttons:P,readOnly:O}=f;if(M===O&&(0,T._jsonEquals)(w,P))return;let G=P&&P.length>0&&!this.isReadOnly();if(this.eButtonsPanel?((0,E._clearElement)(this.eButtonsPanel),this.buttonListeners.forEach(J=>J()),this.buttonListeners=[]):G&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!G)return void(this.eButtonsPanel&&(0,E._removeFromParent)(this.eButtonsPanel));let j=document.createDocumentFragment(),Y=J=>{let ne,ce=J?this.translate(`${J}Filter`):void 0;switch(J){case"apply":ne=Le=>this.onBtApply(!1,!1,Le);break;case"clear":ne=()=>this.onBtClear();break;case"reset":ne=()=>this.onBtReset();break;case"cancel":ne=Le=>{this.onBtCancel(Le)};break;default:return void(0,b._warn)(75)}let fe=J==="apply"?"submit":"button",xe=(0,E._loadTemplate)(`<button
                    type="${fe}"
                    data-ref="${J}FilterButton"
                    class="ag-button ag-standard-button ag-filter-apply-panel-button"
                >${ce}
                </button>`);this.buttonListeners.push(...this.addManagedElementListeners(xe,{click:ne})),j.append(xe)};P.forEach(J=>Y(J)),this.eButtonsPanel.append(j),this.getGui().appendChild(this.eButtonsPanel)}setupOnBtApplyDebounce(){let f=(0,c.getDebounceMs)(this.params,this.defaultDebounceMs),S=(0,z._debounce)(this,this.checkApplyDebounce.bind(this),f);this.onBtApplyDebounce=()=>{this.debouncePending=!0,S()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){var f;return(f=this.appliedModel)!=null?f:null}setModel(f){return(f!=null?this.setModelIntoUi(f):this.resetUiToDefaults()).then(()=>{this.updateUiVisibility(),this.applyModel("api")})}onBtCancel(f){this.resetUiToActiveModel(this.getModel(),()=>{this.handleCancelEnd(f)})}handleCancelEnd(f){this.params.closeOnApply&&this.close(f)}resetUiToActiveModel(f,S){let w=()=>{this.onUiChanged(!1,"prevent"),S==null||S()};f!=null?this.setModelIntoUi(f).then(w):this.resetUiToDefaults().then(w)}onBtClear(){this.resetUiToDefaults().then(()=>this.onUiChanged())}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(f="api"){let S=this.getModelFromUi();if(!this.isModelValid(S))return!1;let w=this.appliedModel;return this.appliedModel=S,!this.areModelsEqual(w,S)}isModelValid(f){return!0}onFormSubmit(f){f.preventDefault()}onBtApply(f=!1,S=!1,w){if(w&&w.preventDefault(),this.applyModel(S?"rowDataUpdated":"ui")){let P="columnFilter";this.params.filterChangedCallback({afterFloatingFilter:f,afterDataChange:S,source:P})}let{closeOnApply:M}=this.params;M&&this.applyActive&&!f&&!S&&this.close(w)}onNewRowsLoaded(){}close(f){if(!this.hidePopup)return;let S=f,w=S&&S.key,M;w!=="Enter"&&w!=="Space"||(M={keyboardEvent:S}),this.hidePopup(M),this.hidePopup=null}onUiChanged(f=!1,S){if(this.updateUiVisibility(),this.params.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){let w=this.isModelValid(this.getModelFromUi()),M=this.queryForHtmlElement('[data-ref="applyFilterButton"]');M&&(0,E._setDisabled)(M,!w)}f&&!S||S==="immediately"?this.onBtApply(f):(this.applyActive||S)&&S!=="debounce"||this.onBtApplyDebounce()}afterGuiAttached(f){f&&(this.hidePopup=f.hidePopup),this.refreshFilterResizer(f==null?void 0:f.container)}refreshFilterResizer(f){let{positionableFeature:S,gos:w}=this;!S||f==="toolPanel"||(f==="floatingFilter"||f==="columnFilter"?(S.restoreLastSize(),S.setResizable(w.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(S.removeSizeFromEl(),S.setResizable(!1)),S.constrainSizeToAvailableHeight(!0))}afterGuiDetached(){var f;this.checkApplyDebounce(),(f=this.positionableFeature)==null||f.constrainSizeToAvailableHeight(!1)}refresh(f){let S=this.params;return this.params=f,this.resetButtonsPanel(f,S),!0}destroy(){let f=this.getGui();f&&f.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(f){return this.getLocaleTextFunc()(f,s.FILTER_LOCALE_TEXT[f])}getCellValue(f){return this.params.getValue(f)}getPositionableElement(){return this.eFilterBody}}x.ProvidedFilter=h},5562:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ScalarFilter=void 0;let A=p(7764),E=p(5220),z=p(7535);class T extends E.SimpleFilter{setParams(C){super.setParams(C),this.scalarFilterParams=C}evaluateNullValue(C){let{includeBlanksInEquals:d,includeBlanksInNotEqual:s,includeBlanksInGreaterThan:c,includeBlanksInLessThan:h,includeBlanksInRange:g}=this.scalarFilterParams;switch(C){case"equals":if(d)return!0;break;case"notEqual":if(s)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(c)return!0;break;case"lessThan":case"lessThanOrEqual":if(h)return!0;break;case"inRange":if(g)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(C,d,s){let c=this.comparator(),h=C[0]!=null?c(C[0],d):0;switch(s.type){case"equals":return h===0;case"notEqual":return h!==0;case"greaterThan":return h>0;case"greaterThanOrEqual":return h>=0;case"lessThan":return h<0;case"lessThanOrEqual":return h<=0;case"inRange":{let g=c(C[1],d);return this.scalarFilterParams.inRangeInclusive?h>=0&&g<=0:h>0&&g<0}case"blank":return(0,z.isBlank)(d);case"notBlank":return!(0,z.isBlank)(d);default:return(0,A._warn)(76,{filterModelType:s.type}),!0}}}x.ScalarFilter=T},5220:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SimpleFilter=void 0;let A=p(1502),E=p(3507),z=p(7990),T=p(7764),b=p(8085),C=p(7336),d=p(159),s=p(8020),c=p(4824),h=p(2245),g=p(7535);class f extends h.ProvidedFilter{constructor(){super(...arguments),this.eTypes=[],this.eJoinOperatorPanels=[],this.eJoinOperatorsAnd=[],this.eJoinOperatorsOr=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}getNumberOfInputs(w){let M=this.optionsFactory.getCustomOption(w);if(M){let{numberOfInputs:P}=M;return P!=null?P:1}return w&&["empty","notBlank","blank"].indexOf(w)>=0?0:w==="inRange"?2:1}onFloatingFilterChanged(w,M){this.setTypeFromFloatingFilter(w),this.setValueFromFloatingFilter(M),this.onUiChanged(!0)}setTypeFromFloatingFilter(w){this.eTypes.forEach((M,P)=>{let O=P===0?w:this.optionsFactory.defaultOption;M.setValue(O,!0)})}getModelFromUi(){let w=this.getUiCompleteConditions();return w.length===0?null:this.maxNumConditions>1&&w.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:w}:w[0]}getConditionTypes(){return this.eTypes.map(w=>w.getValue())}getConditionType(w){return this.eTypes[w].getValue()}getJoinOperator(){let{eJoinOperatorsOr:w,defaultJoinOperator:M}=this;return w.length===0?M:w[0].getValue()===!0?"OR":"AND"}areModelsEqual(w,M){if(!w&&!M)return!0;if(!w&&M||w&&!M)return!1;let P=!w.operator,O=!M.operator;if(!P&&O||P&&!O)return!1;let G;if(P){let j=w,Y=M;G=this.areSimpleModelsEqual(j,Y)}else{let j=w,Y=M;G=j.operator===Y.operator&&(0,A._areEqual)(j.conditions,Y.conditions,(J,ne)=>this.areSimpleModelsEqual(J,ne))}return G}shouldRefresh(w){var G,j,Y;let M=this.getModel(),P=M?(G=M.conditions)!=null?G:[M]:null,O=(Y=(j=w.filterOptions)==null?void 0:j.map(J=>typeof J=="string"?J:J.displayKey))!=null?Y:this.getDefaultFilterOptions();return!(P&&!P.every(J=>O.find(ne=>ne===J.type)!==void 0))&&!(typeof w.maxNumConditions=="number"&&P&&P.length>w.maxNumConditions)}refresh(w){return this.shouldRefresh(w)?!!super.refresh(w)&&(this.setParams(w),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0):!1}setModelIntoUi(w){if(w.operator){let M=w,P=M.conditions;P==null&&(P=[],(0,T._warn)(77));let O=(0,g.validateAndUpdateConditions)(P,this.maxNumConditions),G=this.getNumConditions();if(O<G)this.removeConditionsAndOperators(O);else if(O>G)for(let Y=G;Y<O;Y++)this.createJoinOperatorPanel(),this.createOption();let j=M.operator==="OR";this.eJoinOperatorsAnd.forEach(Y=>Y.setValue(!j,!0)),this.eJoinOperatorsOr.forEach(Y=>Y.setValue(j,!0)),P.forEach((Y,J)=>{this.eTypes[J].setValue(Y.type,!0),this.setConditionIntoUi(Y,J)})}else{let M=w;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(M.type,!0),this.setConditionIntoUi(M,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),z.AgPromise.resolve()}doesFilterPass(w){var G;let M=this.getModel();if(M==null)return!0;let{operator:P}=M,O=[];if(P){let j=M;O.push(...(G=j.conditions)!=null?G:[])}else O.push(M);return O[P&&P==="OR"?"some":"every"](j=>this.individualConditionPasses(w,j))}setParams(w){super.setParams(w),this.setNumConditions(w),this.defaultJoinOperator=(0,g.getDefaultJoinOperator)(w.defaultJoinOperator),this.filterPlaceholder=w.filterPlaceholder,this.optionsFactory=new c.OptionsFactory,this.optionsFactory.init(w,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")}setNumConditions(w){var O,G;let M=(O=w.maxNumConditions)!=null?O:2;M<1&&((0,T._warn)(79),M=1),this.maxNumConditions=M;let P=(G=w.numAlwaysVisibleConditions)!=null?G:1;P<1&&((0,T._warn)(80),P=1),P>M&&((0,T._warn)(81),P=M),this.numAlwaysVisibleConditions=P}createOption(){let w=this.createManagedBean(new d.AgSelect);this.eTypes.push(w),w.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(w.getGui());let M=this.createValueElement();this.eConditionBodies.push(M),this.eFilterBody.appendChild(M),this.putOptionsIntoDropdown(w),this.resetType(w);let P=this.getNumConditions()-1;this.forEachPositionInput(P,O=>this.resetInput(O)),this.addChangedListeners(w,P)}createJoinOperatorPanel(){let w=document.createElement("div");this.eJoinOperatorPanels.push(w),w.classList.add("ag-filter-condition");let M=this.createJoinOperator(this.eJoinOperatorsAnd,w,"and"),P=this.createJoinOperator(this.eJoinOperatorsOr,w,"or");this.eFilterBody.appendChild(w);let O=this.eJoinOperatorPanels.length-1,G=this.joinOperatorId++;this.resetJoinOperatorAnd(M,O,G),this.resetJoinOperatorOr(P,O,G),this.isReadOnly()||(M.onValueChange(this.listener),P.onValueChange(this.listener))}createJoinOperator(w,M,P){let O=this.createManagedBean(new C.AgRadioButton);w.push(O);let G="ag-filter-condition-operator";return O.addCssClass(G),O.addCssClass(`${G}-${P}`),M.appendChild(O.getGui()),O}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(w=>typeof w=="string"?this.createBoilerplateListOption(w):this.createCustomListOption(w))}putOptionsIntoDropdown(w){let{filterListOptions:M}=this;M.forEach(P=>{w.addOption(P)}),w.setDisabled(M.length<=1)}createBoilerplateListOption(w){return{value:w,text:this.translate(w)}}createCustomListOption(w){let{displayKey:M}=w,P=this.optionsFactory.getCustomOption(w.displayKey);return{value:M,text:P?this.getLocaleTextFunc()(P.displayKey,P.displayName):this.translate(M)}}createBodyTemplate(){return""}getAgComponents(){return[]}getCssIdentifier(){return"simple-filter"}updateUiVisibility(){let w=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,w)}updateNumConditions(){var P;let w=-1,M=!0;for(let O=0;O<this.getNumConditions();O++)this.isConditionUiComplete(O)?w=O:M=!1;if(this.shouldAddNewConditionAtEnd(M))this.createJoinOperatorPanel(),this.createOption();else{let O=(P=this.lastUiCompletePosition)!=null?P:this.getNumConditions()-2;if(w<O){this.removeConditionsAndOperators(O+1);let G=w+1,j=O-G;j>0&&this.removeConditionsAndOperators(G,j),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=w}updateConditionStatusesAndValues(w,M){this.eTypes.forEach((O,G)=>{let j=this.isConditionDisabled(G,w);O.setDisabled(j||this.filterListOptions.length<=1),G===1&&((0,E._setDisabled)(this.eJoinOperatorPanels[0],j),this.eJoinOperatorsAnd[0].setDisabled(j),this.eJoinOperatorsOr[0].setDisabled(j))}),this.eConditionBodies.forEach((O,G)=>{(0,E._setDisplayed)(O,this.isConditionBodyVisible(G))});let P=(M!=null?M:this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(O=>{O.setValue(!P,!0)}),this.eJoinOperatorsOr.forEach(O=>{O.setValue(P,!0)}),this.forEachInput((O,G,j,Y)=>{this.setElementDisplayed(O,G<Y),this.setElementDisabled(O,this.isConditionDisabled(j,w))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(w){return w&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(w,M){if(w>=this.getNumConditions())return;let{eTypes:P,eConditionBodies:O,eJoinOperatorPanels:G,eJoinOperatorsAnd:j,eJoinOperatorsOr:Y}=this;this.removeComponents(P,w,M),this.removeElements(O,w,M),this.removeValueElements(w,M);let J=Math.max(w-1,0);this.removeElements(G,J,M),this.removeComponents(j,J,M),this.removeComponents(Y,J,M)}removeElements(w,M,P){(0,g.removeItems)(w,M,P).forEach(O=>(0,E._removeFromParent)(O))}removeComponents(w,M,P){(0,g.removeItems)(w,M,P).forEach(O=>{(0,E._removeFromParent)(O.getGui()),this.destroyBean(O)})}afterGuiAttached(w){var M;if(super.afterGuiAttached(w),this.resetPlaceholder(),!(w!=null&&w.suppressFocus)){let{eFilterBody:P,eTypes:O}=this,G;if(!this.isReadOnly()){let j=this.getInputs(0)[0];G=j instanceof b.AgAbstractInputField&&this.isConditionBodyVisible(0)?j.getInputElement():(M=O[0])==null?void 0:M.getFocusableElement()}(G!=null?G:P).focus({preventScroll:!0})}}afterGuiDetached(){super.afterGuiDetached();let w=this.getModel();this.resetUiToActiveModel(w);let M=-1,P=-1,O=!1,G=this.getJoinOperator();for(let Y=this.getNumConditions()-1;Y>=0;Y--)if(this.isConditionUiComplete(Y))M===-1&&(M=Y,P=Y);else{let J=Y<M;(Y>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(Y-1)||J)&&(this.removeConditionsAndOperators(Y,1),O=!0,J&&P--)}let j=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),j=!0),this.shouldAddNewConditionAtEnd(P===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),j=!0),j&&this.updateConditionStatusesAndValues(P,G),O&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=P}getPlaceholderText(w,M){let P=this.translate(w);if(typeof this.filterPlaceholder=="function"){let O=this.eTypes[M].getValue(),G=this.translate(O);P=this.filterPlaceholder({filterOptionKey:O,filterOption:G,placeholder:P})}else typeof this.filterPlaceholder=="string"&&(P=this.filterPlaceholder);return P}resetPlaceholder(){let w=this.getLocaleTextFunc();this.forEachInput((M,P,O,G)=>{if(!(M instanceof b.AgAbstractInputField))return;let j=P===0&&G>1?"inRangeStart":P===0?"filterOoo":"inRangeEnd",Y=P===0&&G>1?w("ariaFilterFromValue","Filter from value"):P===0?w("ariaFilterValue","Filter Value"):w("ariaFilterToValue","Filter to Value");M.setInputPlaceholder(this.getPlaceholderText(j,O)),M.setInputAriaLabel(Y)})}setElementValue(w,M,P){w instanceof b.AgAbstractInputField&&w.setValue(M!=null?String(M):null,!0)}setElementDisplayed(w,M){w instanceof s.Component&&(0,E._setDisplayed)(w.getGui(),M)}setElementDisabled(w,M){w instanceof s.Component&&(0,E._setDisabled)(w.getGui(),M)}attachElementOnChange(w,M){w instanceof b.AgAbstractInputField&&w.onValueChange(M)}forEachInput(w){this.getConditionTypes().forEach((M,P)=>{this.forEachPositionTypeInput(P,M,w)})}forEachPositionInput(w,M){let P=this.getConditionType(w);this.forEachPositionTypeInput(w,P,M)}forEachPositionTypeInput(w,M,P){let O=this.getNumberOfInputs(M),G=this.getInputs(w);for(let j=0;j<G.length;j++){let Y=G[j];Y!=null&&P(Y,j,w,O)}}isConditionDisabled(w,M){return!!this.isReadOnly()||w!==0&&w>M+1}isConditionBodyVisible(w){let M=this.getConditionType(w);return this.getNumberOfInputs(M)>0}isConditionUiComplete(w){return w>=this.getNumConditions()?!1:this.getConditionType(w)!=="empty"&&!this.getValues(w).some(M=>M==null)}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){let w=[];for(let M=0;M<this.getNumConditions();M++)this.isConditionUiComplete(M)&&w.push(this.createCondition(M));return w}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let w=this.getNumConditions();w<this.numAlwaysVisibleConditions;w++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(w){return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(M=>this.resetType(M)),this.eJoinOperatorsAnd.forEach((M,P)=>this.resetJoinOperatorAnd(M,P,this.joinOperatorId+P)),this.eJoinOperatorsOr.forEach((M,P)=>this.resetJoinOperatorOr(M,P,this.joinOperatorId+P)),this.joinOperatorId++,this.forEachInput(M=>this.resetInput(M)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,w||this.onUiChanged(),z.AgPromise.resolve()}resetType(w){let M=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");w.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(M).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(w,M,P){this.resetJoinOperator(w,M,this.defaultJoinOperator==="AND",this.translate("andCondition"),P)}resetJoinOperatorOr(w,M,P){this.resetJoinOperator(w,M,this.defaultJoinOperator==="OR",this.translate("orCondition"),P)}resetJoinOperator(w,M,P,O,G){this.updateJoinOperatorDisabled(w.setValue(P,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${G}`).setLabel(O),M)}updateJoinOperatorsDisabled(){let w=(M,P)=>this.updateJoinOperatorDisabled(M,P);this.eJoinOperatorsAnd.forEach(w),this.eJoinOperatorsOr.forEach(w)}updateJoinOperatorDisabled(w,M){w.setDisabled(this.isReadOnly()||M>0)}resetInput(w){this.setElementValue(w,null),this.setElementDisabled(w,this.isReadOnly())}setConditionIntoUi(w,M){let P=this.mapValuesFromModel(w);this.forEachInput((O,G,j)=>{j===M&&this.setElementValue(O,P[G]!=null?P[G]:null)})}setValueFromFloatingFilter(w){this.forEachInput((M,P,O)=>{this.setElementValue(M,P===0&&O===0?w:null,!0)})}addChangedListeners(w,M){this.isReadOnly()||(w.onValueChange(this.listener),this.forEachPositionInput(M,P=>{this.attachElementOnChange(P,this.listener)}))}individualConditionPasses(w,M){let P=this.getCellValue(w.node),O=this.mapValuesFromModel(M),G=this.optionsFactory.getCustomOption(M.type),j=(0,g.evaluateCustomFilter)(G,O,P);return j!=null?j:P==null?this.evaluateNullValue(M.type):this.evaluateNonNullValue(O,P,M,w)}hasInvalidInputs(){return!1}}x.SimpleFilter=f},2786:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SimpleFilterModelFormatter=void 0;let A=p(5741);x.SimpleFilterModelFormatter=class{constructor(E,z,T){this.getLocaleTextFunc=E,this.optionsFactory=z,this.valueFormatter=T}getModelAsString(E){var b;if(!E)return null;let z=E.operator!=null,T=this.getLocaleTextFunc();if(z){let C=E,d=((b=C.conditions)!=null?b:[]).map(c=>this.getModelAsString(c)),s=C.operator==="AND"?"andCondition":"orCondition";return d.join(` ${T(s,A.FILTER_LOCALE_TEXT[s])} `)}if(E.type==="blank"||E.type==="notBlank")return T(E.type,E.type);{let C=E,d=this.optionsFactory.getCustomOption(C.type),{displayKey:s,displayName:c,numberOfInputs:h}=d||{};return s&&c&&h===0?(T(s,c),c):this.conditionToString(C,d)}}updateParams(E){this.optionsFactory=E.optionsFactory}formatValue(E){var T;let z=this.valueFormatter;return z?(T=z(E!=null?E:null))!=null?T:"":String(E)}}},7535:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.validateAndUpdateConditions=x.evaluateCustomFilter=x.getDefaultJoinOperator=x.isBlank=x.removeItems=void 0;let A=p(7764);x.removeItems=function(E,z,T){return T==null?E.splice(z):E.splice(z,T)},x.isBlank=function(E){return E==null||typeof E=="string"&&E.trim().length===0},x.getDefaultJoinOperator=function(E){return E==="AND"||E==="OR"?E:"AND"},x.evaluateCustomFilter=function(E,z,T){if(E==null)return;let{predicate:b}=E;return b==null||z.some(C=>C==null)?void 0:b(z,T)},x.validateAndUpdateConditions=function(E,z){let T=E.length;return T>z&&(E.splice(z),(0,A._warn)(78),T=z),T}},2811:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TextFilter=void 0;let A=p(5230),E=p(4422),z=p(5946),T=p(5220),b=p(7535),C=p(650),d=p(330),s=p(2470);class c extends T.SimpleFilter{constructor(){super("textFilter"),this.filterType="text",this.defaultFormatter=g=>g,this.defaultLowercaseFormatter=g=>g==null?null:g.toString().toLowerCase(),this.defaultMatcher=({filterOption:g,value:f,filterText:S})=>{if(S==null)return!1;switch(g){case"contains":return f.indexOf(S)>=0;case"notContains":return f.indexOf(S)<0;case"equals":return f===S;case"notEqual":return f!=S;case"startsWith":return f.indexOf(S)===0;case"endsWith":{let w=f.lastIndexOf(S);return w>=0&&w===f.length-S.length}default:return!1}},this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}setParams(g){this.textFilterParams=g,super.setParams(g),this.matcher=g.textMatcher||this.defaultMatcher,this.formatter=g.textFormatter||(g.caseSensitive?this.defaultFormatter:this.defaultLowercaseFormatter),this.filterModelFormatter=new d.TextFilterModelFormatter(this.getLocaleTextFunc.bind(this),this.optionsFactory)}createCondition(g){let f=this.getConditionType(g),S={filterType:this.filterType,type:f},w=this.getValuesWithSideEffects(g,!0);return w.length>0&&(S.filter=w[0]),w.length>1&&(S.filterTo=w[1]),S}areSimpleModelsEqual(g,f){return g.filter===f.filter&&g.filterTo===f.filterTo&&g.type===f.type}getInputs(g){let{eValuesFrom:f,eValuesTo:S}=this;return g>=f.length?[null,null]:[f[g],S[g]]}getValues(g){return this.getValuesWithSideEffects(g,!1)}getValuesWithSideEffects(g,f){let S=[];return this.forEachPositionInput(g,(w,M,P,O)=>{var G;if(M<O){let j=(0,E._makeNull)(w.getValue());f&&this.textFilterParams.trimInput&&(j=(G=(0,s.trimInputForFilter)(j))!=null?G:null,w.setValue(j,!0)),S.push(j)}}),S}getDefaultFilterOptions(){return C.DEFAULT_TEXT_FILTER_OPTIONS}createValueElement(){let g=document.createElement("div");return g.classList.add("ag-filter-body"),(0,A._setAriaRole)(g,"presentation"),this.createFromToElement(g,this.eValuesFrom,"from"),this.createFromToElement(g,this.eValuesTo,"to"),g}createFromToElement(g,f,S){let w=this.createManagedBean(new z.AgInputTextField);w.addCssClass(`ag-filter-${S}`),w.addCssClass("ag-filter-filter"),f.push(w),g.appendChild(w.getGui())}removeValueElements(g,f){let S=w=>this.removeComponents(w,g,f);S(this.eValuesFrom),S(this.eValuesTo)}mapValuesFromModel(g){let{filter:f,filterTo:S,type:w}=g||{};return[f||null,S||null].slice(0,this.getNumberOfInputs(w))}evaluateNullValue(g){return!!g&&["notEqual","notContains","blank"].indexOf(g)>=0}evaluateNonNullValue(g,f,S,w){let M=g.map(ce=>this.formatter(ce))||[],P=this.formatter(f),{api:O,colDef:G,column:j,context:Y,textFormatter:J}=this.textFilterParams;if(S.type==="blank")return(0,b.isBlank)(f);if(S.type==="notBlank")return!(0,b.isBlank)(f);let ne={api:O,colDef:G,column:j,context:Y,node:w.node,data:w.data,filterOption:S.type,value:P,textFormatter:J};return M.some(ce=>this.matcher(He(ge({},ne),{filterText:ce})))}getModelAsString(g){var f;return(f=this.filterModelFormatter.getModelAsString(g))!=null?f:""}}x.TextFilter=c},650:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.DEFAULT_TEXT_FILTER_OPTIONS=void 0,x.DEFAULT_TEXT_FILTER_OPTIONS=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"]},330:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TextFilterModelFormatter=void 0;let A=p(2786);class E extends A.SimpleFilterModelFormatter{conditionToString(T,b){let{numberOfInputs:C}=b||{},{filter:d,filterTo:s,type:c}=T;return c=="inRange"||C===2?`${d}-${s}`:d!=null?`${d}`:`${c}`}}x.TextFilterModelFormatter=E},2470:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.trimInputForFilter=void 0,x.trimInputForFilter=function(p){let A=p==null?void 0:p.trim();return A===""?p:A}},8305:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TextFloatingFilter=void 0;let A=p(7287),E=p(8922),z=p(650),T=p(330);class b extends E.TextInputFloatingFilter{init(d){super.init(d),this.filterModelFormatter=new T.TextFilterModelFormatter(this.getLocaleTextFunc.bind(this),this.optionsFactory)}refresh(d){super.refresh(d),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return z.DEFAULT_TEXT_FILTER_OPTIONS}createFloatingFilterInputService(){return this.createManagedBean(new A.FloatingFilterTextInputService)}}x.TextFloatingFilter=b},5381:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.resetQuickFilter=x.getQuickFilter=x.isQuickFilterPresent=void 0,x.isQuickFilterPresent=function(p){var A;return!!((A=p.filterManager)!=null&&A.isQuickFilterPresent())},x.getQuickFilter=function(p){return p.gos.get("quickFilterText")},x.resetQuickFilter=function(p){var A;(A=p.filterManager)==null||A.resetQuickFilterCache()}},1238:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.QuickFilterService=void 0;let A=p(8731),E=p(4422),z=p(7764);class T extends A.BeanStub{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){let C=this.resetCache.bind(this),d=this.gos;this.addManagedEventListeners({columnPivotModeChanged:C,newColumnsLoaded:C,columnRowGroupChanged:C,columnVisible:()=>{d.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",s=>this.setFilter(s.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(d.get("quickFilterText")),this.parser=d.get("quickFilterParser"),this.matcher=d.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){var w,M;let{autoColSvc:C,colModel:d,gos:s,pivotResultCols:c}=this.beans,h=d.isPivotMode(),g=C==null?void 0:C.getAutoCols(),f=d.getColDefCols(),S=(M=h&&!s.get("applyQuickFilterBeforePivotOrAgg")?(w=c==null?void 0:c.getPivotResultCols())==null?void 0:w.list:f)!=null?M:[];g&&(S=S.concat(g)),this.colsToUse=s.get("includeHiddenColumnsInQuickFilter")?S:S.filter(P=>P.isVisible()||P.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(C){let d=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(d,C):this.quickFilterParts.every(s=>d?this.doesRowPassCache(C,s):this.doesRowPassNoCache(C,s))}resetCache(){this.beans.rowModel.forEachNode(C=>C.quickFilterAggregateText=null)}setFilterParts(){let{quickFilter:C,parser:d}=this;this.quickFilterParts=C?d?d(C):C.split(" "):null}parseFilter(C){return(0,E._exists)(C)?C.toUpperCase():null}setFilter(C){if(C!=null&&typeof C!="string")return void(0,z._warn)(70,{newFilter:C});let d=this.parseFilter(C);this.quickFilter!==d&&(this.quickFilter=d,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){let C=this.gos.get("quickFilterParser"),d=this.gos.get("quickFilterMatcher"),s=C!==this.parser||d!==this.matcher;this.parser=C,this.matcher=d,s&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(C,d){return this.colsToUse.some(s=>{let c=this.getTextForColumn(s,C);return(0,E._exists)(c)&&c.indexOf(d)>=0})}doesRowPassCache(C,d){return this.checkGenerateAggText(C),C.quickFilterAggregateText.indexOf(d)>=0}doesRowPassMatcher(C,d){let s;C?(this.checkGenerateAggText(d),s=d.quickFilterAggregateText):s=this.getAggText(d);let{quickFilterParts:c,matcher:h}=this;return h(c,s)}checkGenerateAggText(C){C.quickFilterAggregateText||(C.quickFilterAggregateText=this.getAggText(C))}getTextForColumn(C,d){let s=this.beans.filterValueSvc.getValue(C,d),c=C.getColDef();if(c.getQuickFilterText){let h=this.gos.addGridCommonParams({value:s,node:d,data:d.data,column:C,colDef:c});s=c.getQuickFilterText(h)}return(0,E._exists)(s)?s.toString().toUpperCase():null}getAggText(C){let d=[];return this.colsToUse.forEach(s=>{let c=this.getTextForColumn(s,C);(0,E._exists)(c)&&d.push(c)}),d.join(`
`)}}x.QuickFilterService=T},3245:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FocusService=void 0;let A=p(8731),E=p(6257),z=p(7274),T=p(3534),b=p(1323),C=p(3990),d=p(7632),s=p(1502),c=p(2331),h=p(4422);class g extends A.BeanStub{constructor(){super(...arguments),this.beanName="focusSvc"}wireBeans(S){this.colModel=S.colModel,this.visibleCols=S.visibleCols,this.rowRenderer=S.rowRenderer,this.navigation=S.navigation,this.filterManager=S.filterManager,this.overlays=S.overlays}postConstruct(){let S=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:S,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:S,columnRowGroupChanged:S}),this.addDestroyFunc((0,c._registerKeyboardFocusEvents)(this.beans))}onColumnEverythingChanged(){if(!this.focusedCell)return;let S=this.focusedCell.column,w=this.colModel.getCol(S.getId());S!==w&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedCell||this.isDomDataMissingInHierarchy((0,z._getActiveDomElement)(this.beans),d.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCell}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader||this.isDomDataMissingInHierarchy((0,z._getActiveDomElement)(this.beans),T.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeader}isDomDataMissingInHierarchy(S,w){let M=S;for(;M;){if((0,z._getDomData)(this.gos,M,w))return!1;M=M.parentNode}return!0}getFocusedCell(){return this.focusedCell}shouldRestoreFocus(S){return!!this.isCellRestoreFocused(S)&&(setTimeout(()=>{this.restoredFocusedCell=null},0),!0)}clearRestoreFocus(){this.restoredFocusedCell=null,this.awaitRestoreFocusedCell=!1}restoreFocusedCell(S,w){this.awaitRestoreFocusedCell=!0,setTimeout(()=>{this.awaitRestoreFocusedCell&&(this.setRestoreFocusedCell(S),w())})}isCellRestoreFocused(S){return this.restoredFocusedCell!=null&&(0,E._areCellsEqual)(S,this.restoredFocusedCell)}setRestoreFocusedCell(S){this.beans.frameworkOverrides.renderingEngine==="react"&&(this.restoredFocusedCell=S)}getFocusEventParams(S){let{rowIndex:w,rowPinned:M,column:P}=S,O={rowIndex:w,rowPinned:M,column:P,isFullWidthCell:!1},G=this.rowRenderer.getRowByPosition({rowIndex:w,rowPinned:M});return G&&(O.isFullWidthCell=G.isFullWidth()),O}clearFocusedCell(){if(this.restoredFocusedCell=null,this.focusedCell==null)return;let S=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent(ge({type:"cellFocusCleared"},S))}setFocusedCell(S){let{column:w,rowIndex:M,rowPinned:P,forceBrowserFocus:O=!1,preventScrollOnBrowserFocus:G=!1}=S,j=this.colModel.getCol(w);j?(this.focusedCell={rowIndex:M,rowPinned:(0,h._makeNull)(P),column:j},this.eventSvc.dispatchEvent(He(ge({type:"cellFocused"},this.getFocusEventParams(this.focusedCell)),{forceBrowserFocus:O,preventScrollOnBrowserFocus:G}))):this.focusedCell=null}isCellFocused(S){return this.focusedCell!=null&&(0,E._areCellsEqual)(S,this.focusedCell)}isRowNodeFocused(S){return this.isRowFocused(S.rowIndex,S.rowPinned)}isHeaderWrapperFocused(S){if(this.focusedHeader==null)return!1;let{column:w,rowCtrl:{rowIndex:M,pinned:P}}=S,{column:O,headerRowIndex:G}=this.focusedHeader;return w===O&&M===G&&P==O.getPinned()}focusHeaderPosition(S){var J;if((0,c._isHeaderFocusSuppressed)(this.beans))return!1;let{direction:w,fromTab:M,allowUserOverride:P,event:O,fromCell:G,rowWithoutSpanValue:j}=S,{headerPosition:Y}=S;if(G&&((J=this.filterManager)!=null&&J.isAdvFilterHeaderActive()))return this.focusAdvancedFilter(Y);if(P){let ne=this.focusedHeader,ce=(0,b.getFocusHeaderRowCount)(this.beans);if(M){let fe=this.gos.getCallback("tabToNextHeader");fe&&(Y=this.getHeaderPositionFromUserFunc({userFunc:fe,direction:w,currentPosition:ne,headerPosition:Y,headerRowCount:ce}))}else{let fe=this.gos.getCallback("navigateToNextHeader");fe&&O&&(Y=fe({key:O.key,previousHeaderPosition:ne,nextHeaderPosition:Y,headerRowCount:ce,event:O}))}}return!!Y&&this.focusProvidedHeaderPosition({headerPosition:Y,direction:w,event:O,fromCell:G,rowWithoutSpanValue:j})}focusHeaderPositionFromUserFunc(S){if((0,c._isHeaderFocusSuppressed)(this.beans))return!1;let{userFunc:w,headerPosition:M,direction:P,event:O}=S,G=this.focusedHeader,j=(0,b.getFocusHeaderRowCount)(this.beans),Y=this.getHeaderPositionFromUserFunc({userFunc:w,direction:P,currentPosition:G,headerPosition:M,headerRowCount:j});return!!Y&&this.focusProvidedHeaderPosition({headerPosition:Y,direction:P,event:O})}getHeaderPositionFromUserFunc(S){let{userFunc:w,direction:M,currentPosition:P,headerPosition:O,headerRowCount:G}=S,j=w({backwards:M==="Before",previousHeaderPosition:P,nextHeaderPosition:O,headerRowCount:G});return j===!0?P:j===!1?null:j}focusProvidedHeaderPosition(S){let{headerPosition:w,direction:M,fromCell:P,rowWithoutSpanValue:O,event:G}=S,{column:j,headerRowIndex:Y}=w,{filterManager:J,ctrlsSvc:ne,headerNavigation:ce}=this.beans;if(Y===-1)return J!=null&&J.isAdvFilterHeaderActive()?this.focusAdvancedFilter(w):this.focusGridView(j);ce==null||ce.scrollToColumn(j,M);let fe=ne.getHeaderRowContainerCtrl(j.getPinned()),xe=(fe==null?void 0:fe.focusHeader(w.headerRowIndex,j,G))||!1;return ce&&xe&&(O!=null||P)&&(ce.currentHeaderRowWithoutSpan=O!=null?O:-1),xe}focusFirstHeader(){var P;if((P=this.overlays)!=null&&P.isExclusive()&&this.focusOverlay())return!0;let S=this.visibleCols.allCols[0];if(!S)return!1;let{colGroupSvc:w}=this.beans;w&&S.getParent()&&(S=w.getColGroupAtLevel(S,0));let M=(0,C.getHeaderIndexToFocus)(S,0);return this.focusHeaderPosition({headerPosition:M,rowWithoutSpanValue:0})}focusLastHeader(S){var P;if((P=this.overlays)!=null&&P.isExclusive()&&this.focusOverlay(!0))return!0;let w=(0,b.getFocusHeaderRowCount)(this.beans)-1,M=(0,s._last)(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:w,column:M},rowWithoutSpanValue:-1,event:S})}focusPreviousFromFirstCell(S){var w;return(w=this.filterManager)!=null&&w.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(S)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(S,w){return this.focusedCell!=null&&this.focusedCell.rowIndex===S&&this.focusedCell.rowPinned===(0,h._makeNull)(w)}focusOverlay(S){var M,P;let w=((M=this.overlays)==null?void 0:M.isVisible())&&((P=this.overlays.eWrapper)==null?void 0:P.getGui());return!!w&&(0,c._focusInto)(w,S)}focusGridView(S,w=!1,M=!0){var O,G,j,Y,J;if((O=this.overlays)!=null&&O.isExclusive())return M&&this.focusOverlay(w);if((0,c._isCellFocusSuppressed)(this.beans))return w&&!(0,c._isHeaderFocusSuppressed)(this.beans)?this.focusLastHeader():!(!M||!this.focusOverlay(w))||(0,c._focusNextGridCoreContainer)(this.beans,!1);let P=w?(0,E._getLastRow)(this.beans):(0,E._getFirstRow)(this.beans);if(P){let{rowIndex:ne,rowPinned:ce}=P;if(S!=null||(S=(G=this.focusedHeader)==null?void 0:G.column),S&&ne!=null){if((j=this.navigation)==null||j.ensureCellVisible({rowIndex:ne,column:S,rowPinned:ce}),w){let fe=this.rowRenderer.getRowByPosition(P);if(fe!=null&&fe.isFullWidth()&&((Y=this.navigation)!=null&&Y.tryToFocusFullWidthRow(P,w)))return!0}return this.setFocusedCell({rowIndex:ne,column:S,rowPinned:(0,h._makeNull)(ce),forceBrowserFocus:!0}),(J=this.beans.rangeSvc)==null||J.setRangeToCell({rowIndex:ne,rowPinned:ce,column:S}),!0}}return!(!M||!this.focusOverlay(w))||!(!w||!this.focusLastHeader())}focusAdvancedFilter(S){var w,M;return this.advFilterFocusColumn=S==null?void 0:S.column,(M=(w=this.beans.advancedFilter)==null?void 0:w.getCtrl().focusHeaderComp())!=null?M:!1}focusNextFromAdvancedFilter(S,w){var P,O;let M=(O=w?void 0:this.advFilterFocusColumn)!=null?O:(P=this.visibleCols.allCols)==null?void 0:P[0];return S?this.focusHeaderPosition({headerPosition:{column:M,headerRowIndex:(0,b.getFocusHeaderRowCount)(this.beans)-1}}):this.focusGridView(M)}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}}x.FocusService=g},1657:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridCoreCreator=x.createGrid=x._getGlobalGridOption=x.provideGlobalGridOptions=void 0;let A=p(6433),E=p(2342),z=p(3943),T=p(1678),b=p(1978),C=p(2132),d=p(4422),s=p(6996),c=p(7764),h=p(6511);class g{static applyGlobalGridOptions(M){if(!g.gridOptions)return ge({},M);let P={};return(0,s._mergeDeep)(P,g.gridOptions,!0,!0),g.mergeStrategy==="deep"?(0,s._mergeDeep)(P,M,!0,!0):P=ge(ge({},P),M),g.gridOptions.context&&(P.context=g.gridOptions.context),M.context&&(g.mergeStrategy==="deep"&&P.context&&(0,s._mergeDeep)(M.context,P.context,!0,!0),P.context=M.context),P}}g.gridOptions=void 0,g.mergeStrategy="shallow",x.provideGlobalGridOptions=function(w,M="shallow"){g.gridOptions=w,g.mergeStrategy=M},x._getGlobalGridOption=function(w){var M;return(M=g.gridOptions)==null?void 0:M[w]},x.createGrid=function(w,M,P){if(!M)return(0,c._error)(11),{};let O=P,G;if(!(O!=null&&O.setThemeOnGridDiv)){let j=document.createElement("div");j.style.height="100%",w.appendChild(j),w=j,G=()=>w.remove()}return new S().create(w,M,j=>{let Y=new T.GridComp(w);j.createBean(Y)},void 0,P,G)};let f=1;class S{create(M,P,O,G,j,Y){var We,it;let J=g.applyGlobalGridOptions(P),ne=(We=J.gridId)!=null?We:String(f++),ce=(it=J.rowModelType)!=null?it:"clientSide",fe=this.getRegisteredModules(j,ne,ce),xe=this.createBeansList(ce,fe,ne),Le=this.createProvidedBeans(M,J,j);if(!xe)return;let _e={providedBeanInstances:Le,beanClasses:xe,gridId:ne,beanInitComparator:z.gridBeanInitComparator,beanDestroyComparator:z.gridBeanDestroyComparator,derivedBeans:[A.createGridApi],destroyCallback:Y},Fe=new E.Context(_e);return this.registerModuleFeatures(Fe,fe),O(Fe),Fe.getBean("syncSvc").start(),G&&G(Fe),Fe.getBean("gridApi")}getRegisteredModules(M,P,O){var G;return(0,C._registerModule)(b.CommunityCoreModule,void 0),(G=M==null?void 0:M.modules)==null||G.forEach(j=>(0,C._registerModule)(j,P)),(0,C._getRegisteredModules)(P,O)}registerModuleFeatures(M,P){let O=M.getBean("registry"),G=M.getBean("apiFunctionSvc");P.forEach(j=>{O.registerModule(j);let Y=j.apiFunctions;Y&&Object.keys(Y).forEach(J=>{G==null||G.addFunction(J,Y[J])})})}createProvidedBeans(M,P,O){let G=O?O.frameworkOverrides:null;(0,d._missing)(G)&&(G=new h.VanillaFrameworkOverrides);let j={gridOptions:P,eGridDiv:M,globalListener:O?O.globalListener:null,globalSyncListener:O?O.globalSyncListener:null,frameworkOverrides:G};return O&&O.providedBeanInstances&&Object.assign(j,O.providedBeanInstances),j}createBeansList(M,P,O){let G={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"}[M];if(!G)return void(0,c._logPreInitErr)(201,{rowModelType:M},`Unknown rowModelType ${M}.`);if(!(0,C._isModuleRegistered)(G,O,M))return void(0,c._logPreInitErr)(200,{reasonOrId:`rowModelType = '${M}'`,moduleName:G,gridScoped:(0,C._areModulesGridScoped)(),gridId:O,rowModelType:M},`Missing module ${G}Module for rowModelType ${M}. 
If upgrading from before v33, see ${c.baseDocLink}/upgrading-to-ag-grid-33/#changes-to-modules/`);let j=new Set;return P.forEach(Y=>{var J;return(J=Y.beans)==null?void 0:J.forEach(ne=>j.add(ne))}),Array.from(j)}}x.GridCoreCreator=S},736:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AbstractFakeScrollComp=void 0;let A=p(2612),E=p(8667),z=p(3507),T=p(2043),b=p(8020);class C extends b.Component{constructor(s,c){super(),this.direction=c,this.eViewport=b.RefPlaceholder,this.eContainer=b.RefPlaceholder,this.hideTimeout=0,this.setTemplate(s)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",(0,E._isMacOsUserAgent)()||(0,E._isIOSUserAgent)())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=(0,E._isInvisibleScrollbar)(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){let s=this.getGui(),c=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!0),h=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!1);this.addManagedListeners(s,{mouseenter:c,mousedown:c,touchstart:c,mouseleave:h,touchend:h})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),(0,A._requestAnimationFrame)(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:s=>{s.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(s){let c=this.eViewport;(0,T._waitUntil)(()=>(0,z._isVisible)(c),()=>this.setScrollPosition(s),100)}onScrollCallback(s){this.addManagedElementListeners(this.eViewport,{scroll:s})}}x.AbstractFakeScrollComp=C},2218:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CenterWidthFeature=void 0;let A=p(8731),E=p(7274);class z extends A.BeanStub{constructor(b,C=!1){super(),this.callback=b,this.addSpacer=C}postConstruct(){let b=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",b),this.addManagedEventListeners({columnContainerWidthChanged:b,displayedColumnsChanged:b,leftPinnedWidthChanged:b}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:b,scrollVisibilityChanged:b,scrollbarWidthChanged:b}),this.setWidth()}setWidth(){let b=(0,E._isDomLayout)(this.gos,"print"),{visibleCols:C,scrollVisibleSvc:d}=this.beans,s=C.bodyWidth,c=C.getColsLeftWidth(),h=C.getDisplayedColumnsRightWidth(),g;b?g=s+c+h:(g=s,this.addSpacer&&(this.gos.get("enableRtl")?c:h)===0&&d.verticalScrollShowing&&(g+=d.getScrollbarWidth())),this.callback(g)}}x.CenterWidthFeature=z},335:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FakeHScrollSelector=x.FakeHScrollComp=void 0;let A=p(3507),E=p(8020),z=p(736),T=p(2218);class b extends z.AbstractFakeScrollComp{wireBeans(d){this.visibleCols=d.visibleCols,this.scrollVisibleSvc=d.scrollVisibleSvc}constructor(){super(`<div class="ag-body-horizontal-scroll" aria-hidden="true">
            <div class="ag-horizontal-left-spacer" data-ref="eLeftSpacer"></div>
            <div class="ag-body-horizontal-scroll-viewport" data-ref="eViewport">
                <div class="ag-body-horizontal-scroll-container" data-ref="eContainer"></div>
            </div>
            <div class="ag-horizontal-right-spacer" data-ref="eRightSpacer"></div>
        </div>`,"horizontal"),this.eLeftSpacer=E.RefPlaceholder,this.eRightSpacer=E.RefPlaceholder,this.setScrollVisibleDebounce=0}postConstruct(){super.postConstruct();let d=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:d,displayedColumnsWidthChanged:d,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",d),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new T.CenterWidthFeature(s=>this.eContainer.style.width=`${s}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){var s,c;if(!this.invisibleScrollbar)return;let d=(c=(s=this.beans.pinnedRowModel)==null?void 0:s.getPinnedBottomTotalHeight())!=null?c:0;this.getGui().style.bottom=`${d}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){let d=this.scrollVisibleSvc.verticalScrollShowing,s=this.visibleCols.getDisplayedColumnsRightWidth(),c=!this.enableRtl&&d,h=this.scrollVisibleSvc.getScrollbarWidth();c&&(s+=h),(0,A._setFixedWidth)(this.eRightSpacer,s),this.eRightSpacer.classList.toggle("ag-scroller-corner",s<=h);let g=this.visibleCols.getColsLeftWidth();this.enableRtl&&d&&(g+=h),(0,A._setFixedWidth)(this.eLeftSpacer,g),this.eLeftSpacer.classList.toggle("ag-scroller-corner",g<=h)}setScrollVisible(){let d=this.scrollVisibleSvc.horizontalScrollShowing,s=this.invisibleScrollbar,c=this.gos.get("suppressHorizontalScroll"),h=d&&this.scrollVisibleSvc.getScrollbarWidth()||0,g=c?0:h===0&&s?16:h,f=()=>{this.setScrollVisibleDebounce=0,this.addOrRemoveCssClass("ag-scrollbar-invisible",s),(0,A._setFixedHeight)(this.getGui(),g),(0,A._setFixedHeight)(this.eViewport,g),(0,A._setFixedHeight)(this.eContainer,g),this.setDisplayed(d,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),d?this.setScrollVisibleDebounce=window.setTimeout(f,100):f()}getScrollPosition(){return(0,A._getScrollLeft)(this.eViewport,this.enableRtl)}setScrollPosition(d){(0,A._isVisible)(this.eViewport)||this.attemptSettingScrollPosition(d),(0,A._setScrollLeft)(this.eViewport,d,this.enableRtl)}}x.FakeHScrollComp=b,x.FakeHScrollSelector={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:b}},6070:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.FakeVScrollSelector=x.FakeVScrollComp=void 0;let A=p(3507),E=p(736),z=p(9622);class T extends E.AbstractFakeScrollComp{constructor(){super(`<div class="ag-body-vertical-scroll" aria-hidden="true">
            <div class="ag-body-vertical-scroll-viewport" data-ref="eViewport">
                <div class="ag-body-vertical-scroll-container" data-ref="eContainer"></div>
            </div>
        </div>`,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new z.SetHeightFeature(this.eContainer));let{ctrlsSvc:C}=this.beans;C.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,C)})}setScrollVisible(){let{scrollVisibleSvc:C}=this.beans,d=C.verticalScrollShowing,s=this.invisibleScrollbar,c=d&&C.getScrollbarWidth()||0,h=c===0&&s?16:c;this.addOrRemoveCssClass("ag-scrollbar-invisible",s),(0,A._setFixedWidth)(this.getGui(),h),(0,A._setFixedWidth)(this.eViewport,h),(0,A._setFixedWidth)(this.eContainer,h),this.setDisplayed(d,{skipAriaHidden:!0})}onRowContainerHeightChanged(C){let d=C.getGridBodyCtrl().eBodyViewport,s=this.getScrollPosition(),c=d.scrollTop;s!=c&&this.setScrollPosition(c,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(C,d){d||(0,A._isVisible)(this.eViewport)||this.attemptSettingScrollPosition(C),this.eViewport.scrollTop=C}}x.FakeVScrollComp=T,x.FakeVScrollSelector={selector:"AG-FAKE-VERTICAL-SCROLL",component:T}},9625:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridBodySelector=x.GridBodyComp=void 0;let A=p(7274),E=p(8791),z=p(9360),T=p(5230),b=p(3507),C=p(8020),d=p(335),s=p(6070),c=p(520),h=p(4633);function g(S,w){return w.map(M=>{let P=`e${M[0].toUpperCase()+M.substring(1)}RowContainer`;return S[P]={name:M},`<ag-row-container name="${M}" data-ref="${P}"></ag-row-container>`}).join("")}class f extends C.Component{constructor(){super(...arguments),this.eGridRoot=C.RefPlaceholder,this.eBodyViewport=C.RefPlaceholder,this.eStickyTop=C.RefPlaceholder,this.eStickyBottom=C.RefPlaceholder,this.eTop=C.RefPlaceholder,this.eBottom=C.RefPlaceholder,this.eBody=C.RefPlaceholder}postConstruct(){let{overlays:w,rangeSvc:M}=this.beans,P=w==null?void 0:w.getOverlayWrapperSelector(),{paramsMap:O,template:G}=function(J){let ne={};return{paramsMap:ne,template:`<div class="ag-root ag-unselectable" data-ref="eGridRoot">
        <ag-header-root></ag-header-root>
        <div class="ag-floating-top" data-ref="eTop" role="presentation">
            ${g(ne,["topLeft","topCenter","topRight","topFullWidth"])}
        </div>
        <div class="ag-body" data-ref="eBody" role="presentation">
            <div class="ag-body-viewport" data-ref="eBodyViewport" role="presentation">
            ${g(ne,["left","center","right","fullWidth"])}
            </div>
            <ag-fake-vertical-scroll></ag-fake-vertical-scroll>
        </div>
        <div class="ag-sticky-top" data-ref="eStickyTop" role="presentation">
            ${g(ne,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])}
        </div>
        <div class="ag-sticky-bottom" data-ref="eStickyBottom" role="presentation">
            ${g(ne,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])}
        </div>
        <div class="ag-floating-bottom" data-ref="eBottom" role="presentation">
            ${g(ne,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])}
        </div>
        <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>
        ${J?"<ag-overlay-wrapper></ag-overlay-wrapper>":""}
    </div>`}}(!!P);this.setTemplate(G,[...P?[P]:[],d.FakeHScrollSelector,s.FakeVScrollSelector,E.GridHeaderSelector,h.RowContainerSelector],O);let j=(J,ne)=>{let ce=`${J}px`;ne.style.minHeight=ce,ne.style.height=ce},Y={setRowAnimationCssOnBodyViewport:(J,ne)=>this.setRowAnimationCssOnBodyViewport(J,ne),setColumnCount:J=>(0,T._setAriaColCount)(this.getGui(),J),setRowCount:J=>(0,T._setAriaRowCount)(this.getGui(),J),setTopHeight:J=>j(J,this.eTop),setBottomHeight:J=>j(J,this.eBottom),setTopDisplay:J=>this.eTop.style.display=J,setBottomDisplay:J=>this.eBottom.style.display=J,setStickyTopHeight:J=>this.eStickyTop.style.height=J,setStickyTopTop:J=>this.eStickyTop.style.top=J,setStickyTopWidth:J=>this.eStickyTop.style.width=J,setStickyBottomHeight:J=>{this.eStickyBottom.style.height=J,this.eStickyBottom.classList.toggle("ag-hidden",J==="0px")},setStickyBottomBottom:J=>this.eStickyBottom.style.bottom=J,setStickyBottomWidth:J=>this.eStickyBottom.style.width=J,setColumnMovingCss:(J,ne)=>this.addOrRemoveCssClass(J,ne),updateLayoutClasses:(J,ne)=>{[this.eBodyViewport.classList,this.eBody.classList].forEach(ce=>{ce.toggle(z.LayoutCssClasses.AUTO_HEIGHT,ne.autoHeight),ce.toggle(z.LayoutCssClasses.NORMAL,ne.normal),ce.toggle(z.LayoutCssClasses.PRINT,ne.print)}),this.addOrRemoveCssClass(z.LayoutCssClasses.AUTO_HEIGHT,ne.autoHeight),this.addOrRemoveCssClass(z.LayoutCssClasses.NORMAL,ne.normal),this.addOrRemoveCssClass(z.LayoutCssClasses.PRINT,ne.print)},setAlwaysVerticalScrollClass:(J,ne)=>this.eBodyViewport.classList.toggle(c.CSS_CLASS_FORCE_VERTICAL_SCROLL,ne),registerBodyViewportResizeListener:J=>{let ne=(0,b._observeResize)(this.beans,this.eBodyViewport,J);this.addDestroyFunc(()=>ne())},setPinnedTopBottomOverflowY:J=>this.eTop.style.overflowY=this.eBottom.style.overflowY=J,setCellSelectableCss:(J,ne)=>{[this.eTop,this.eBodyViewport,this.eBottom].forEach(ce=>ce.classList.toggle(J,ne))},setBodyViewportWidth:J=>this.eBodyViewport.style.width=J,setGridRootRole:J=>(0,T._setAriaRole)(this.eGridRoot,J)};this.ctrl=this.createManagedBean(new c.GridBodyCtrl),this.ctrl.setComp(Y,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(M&&(0,A._isCellSelectionEnabled)(this.gos)||(0,A._isMultiRowSelection)(this.gos))&&(0,T._setAriaMultiSelectable)(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(w,M){let P=this.eBodyViewport.classList;P.toggle("ag-row-animation",M),P.toggle("ag-row-no-animation",!M)}}x.GridBodyComp=f,x.GridBodySelector={selector:"AG-GRID-BODY",component:f}},520:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridBodyCtrl=x.CSS_CLASS_FORCE_VERTICAL_SCROLL=void 0;let A=p(8731),E=p(7274),z=p(2612),T=p(9360),b=p(8667),C=p(3507),d=p(5496),s=p(8399),c=p(8115);x.CSS_CLASS_FORCE_VERTICAL_SCROLL="ag-force-vertical-scroll";class h extends A.BeanStub{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(f){this.ctrlsSvc=f.ctrlsSvc,this.colModel=f.colModel,this.scrollVisibleSvc=f.scrollVisibleSvc,this.pinnedRowModel=f.pinnedRowModel,this.filterManager=f.filterManager,this.rowGroupColsSvc=f.rowGroupColsSvc}setComp(f,S,w,M,P,O,G){var j,Y;this.comp=f,this.eGridBody=S,this.eBodyViewport=w,this.eTop=M,this.eBottom=P,this.eStickyTop=O,this.eStickyBottom=G,this.eCenterColsViewport=w.querySelector(`.${(0,c._getRowContainerOptions)("center").viewport}`),this.eFullWidthContainer=w.querySelector(`.${(0,c._getRowContainerOptions)("fullWidth").container}`),this.eStickyTopFullWidthContainer=O.querySelector(`.${(0,c._getRowContainerOptions)("stickyTopFullWidth").container}`),this.eStickyBottomFullWidthContainer=G.querySelector(`.${(0,c._getRowContainerOptions)("stickyBottomFullWidth").container}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",J=>this.setCellTextSelection(J.currentValue)),this.createManagedBean(new T.LayoutFeature(this.comp)),this.scrollFeature=this.createManagedBean(new d.GridBodyScrollFeature(this.eBodyViewport)),(j=this.beans.rowDragSvc)==null||j.setupRowDrag(this.eBodyViewport,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([M,w,P,O,G]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),(Y=this.filterManager)==null||Y.setupAdvFilterHeaderComp(M),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){let f=this.setFloatingHeights.bind(this),S=this.setGridRootRole.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:f,pinnedHeightChanged:f,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:S,columnPivotChanged:S}),this.addManagedPropertyListener("treeData",S)}onGridColumnsChanged(){let f=this.beans.colModel.getCols();this.comp.setColumnCount(f.length)}onScrollVisibilityChanged(){let{scrollVisibleSvc:f}=this,S=f.verticalScrollShowing;this.setVerticalScrollPaddingVisible(S),this.setStickyWidth(S),this.setStickyBottomOffsetBottom();let w=`calc(100% + ${(S&&f.getScrollbarWidth()||0)+((0,b._isInvisibleScrollbar)()?16:0)}px)`;(0,z._requestAnimationFrame)(this.beans,()=>this.comp.setBodyViewportWidth(w)),this.updateScrollingClasses()}setGridRootRole(){let{rowGroupColsSvc:f,colModel:S}=this,w=this.gos.get("treeData");if(!w){let M=S.isPivotMode();w=(f?f.columns.length:0)>=(M?2:1)}this.comp.setGridRootRole(w?"treegrid":"grid")}addFocusListeners(f){f.forEach(S=>{this.addManagedElementListeners(S,{focusin:w=>{let{target:M}=w,P=(0,C._isElementChildOfClass)(M,"ag-root",S);S.classList.toggle("ag-has-focus",!P)},focusout:w=>{let{target:M,relatedTarget:P}=w,O=S.contains(P),G=(0,C._isElementChildOfClass)(P,"ag-root",S);(0,C._isElementChildOfClass)(M,"ag-root",S)||O&&!G||S.classList.remove("ag-has-focus")}})})}setColumnMovingCss(f){this.comp.setColumnMovingCss("ag-column-moving",f)}setCellTextSelection(f=!1){this.comp.setCellSelectableCss("ag-selectable",f)}updateScrollingClasses(){let{eGridBody:{classList:f},scrollVisibleSvc:S}=this;f.toggle("ag-body-vertical-content-no-gap",!S.verticalScrollGap),f.toggle("ag-body-horizontal-content-no-gap",!S.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:f=>{if(f.target instanceof HTMLImageElement)return f.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){var f;(f=this.beans.editSvc)==null||f.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){var P,O,G,j;let f=((O=(P=this.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:P.getRowCount())!=null?O:0)+((j=(G=this.filterManager)==null?void 0:G.getHeaderRowCount())!=null?j:0),{rowModel:S}=this.beans,w=S.isLastRowIndexKnown()?S.getRowCount():-1,M=w===-1?-1:f+w;this.comp.setRowCount(M)}registerBodyViewportResizeListener(f){this.comp.registerBodyViewportResizeListener(f)}setVerticalScrollPaddingVisible(f){let S=f?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(S)}isVerticalScrollShowing(){let f=this.gos.get("alwaysShowVerticalScroll"),S=f?x.CSS_CLASS_FORCE_VERTICAL_SCROLL:null,w=(0,E._isDomLayout)(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(S,f),f||w&&(0,C._isVerticalScrollShowing)(this.eBodyViewport)}setupRowAnimationCssClass(){let{rowContainerHeight:f,environment:S}=this.beans,w=S.sizesMeasured,M=()=>{let P=w&&(0,E._isAnimateRows)(this.gos)&&!f.stretching,O=P?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(O,P)};M(),this.addManagedEventListeners({heightScaleChanged:M}),this.addManagedPropertyListener("animateRows",M),this.addManagedEventListeners({gridStylesChanged:()=>{!w&&S.sizesMeasured&&(w=!0,M())}})}addBodyViewportListener(){let{popupSvc:f,touchSvc:S}=this.beans,w=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(this.eBodyViewport,{contextmenu:w}),S==null||S.mockBodyContextMenu(this,w),this.addManagedElementListeners(this.eBodyViewport,{wheel:this.onBodyViewportWheel.bind(this,f)}),this.addManagedElementListeners(this.eStickyTop,{wheel:this.onStickyWheel.bind(this)}),this.addManagedElementListeners(this.eStickyBottom,{wheel:this.onStickyWheel.bind(this)}),this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:f=>this.onFullWidthContainerWheel(f)})}onFullWidthContainerWheel(f){let{deltaX:S,deltaY:w,shiftKey:M}=f;(M||Math.abs(S)>Math.abs(w))&&(0,s._isEventFromThisGrid)(this.gos,f)&&this.scrollGridBodyToMatchEvent(f)}onStickyWheel(f){let{deltaX:S,deltaY:w,shiftKey:M}=f,P=M||Math.abs(S)>Math.abs(w),O=f.target;P?(this.eStickyTopFullWidthContainer.contains(O)||this.eStickyBottomFullWidthContainer.contains(O))&&this.scrollGridBodyToMatchEvent(f):(f.preventDefault(),this.scrollVertically(w))}scrollGridBodyToMatchEvent(f){let{deltaX:S,deltaY:w}=f;f.preventDefault(),this.eCenterColsViewport.scrollBy({left:S||w})}onBodyViewportContextMenu(f,S,w){var P;if(!f&&!w)return;this.gos.get("preventDefaultOnContextMenu")&&(f||w).preventDefault();let{target:M}=f||S;M!==this.eBodyViewport&&M!==this.ctrlsSvc.get("center").eViewport||((P=this.beans.contextMenuSvc)==null||P.showContextMenu({mouseEvent:f,touchEvent:w,value:null,anchorToElement:this.eGridBody}))}onBodyViewportWheel(f,S){this.gos.get("suppressScrollWhenPopupsAreOpen")&&(f!=null&&f.hasAnchoredPopup())&&S.preventDefault()}scrollVertically(f){let S=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(S+f),this.eBodyViewport.scrollTop-S}setFloatingHeights(){var M,P;let{pinnedRowModel:f}=this,S=(M=f==null?void 0:f.getPinnedTopTotalHeight())!=null?M:0,w=(P=f==null?void 0:f.getPinnedBottomTotalHeight())!=null?P:0;this.comp.setTopHeight(S),this.comp.setBottomHeight(w),this.comp.setTopDisplay(S?"inherit":"none"),this.comp.setBottomDisplay(w?"inherit":"none"),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(f=0){this.comp.setStickyTopHeight(`${f}px`),this.stickyTopHeight=f}setStickyBottomHeight(f=0){this.comp.setStickyBottomHeight(`${f}px`),this.stickyBottomHeight=f}setStickyWidth(f){if(f){let S=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${S}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${S}px)`)}else this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%")}setStickyTopOffsetTop(){var M,P,O,G;let f=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+((P=(M=this.filterManager)==null?void 0:M.getHeaderHeight())!=null?P:0),S=(G=(O=this.pinnedRowModel)==null?void 0:O.getPinnedTopTotalHeight())!=null?G:0,w=0;f>0&&(w+=f),S>0&&(w+=S),w>0&&(w+=1),this.comp.setStickyTopTop(`${w}px`)}setStickyBottomOffsetBottom(){var P;let{pinnedRowModel:f,scrollVisibleSvc:S,comp:w}=this,M=((P=f==null?void 0:f.getPinnedBottomTotalHeight())!=null?P:0)+(S.horizontalScrollShowing&&S.getScrollbarWidth()||0);w.setStickyBottomBottom(`${M}px`)}}x.GridBodyCtrl=h},5496:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridBodyScrollFeature=void 0;let A=p(8731),E=p(7274),z=p(8667),T=p(3507),b=p(2043),C=p(7764);var d;(function(f){f[f.Vertical=0]="Vertical",f[f.Horizontal=1]="Horizontal"})(d||(d={}));let s="Viewport",c="fakeVScrollComp",h=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"];class g extends A.BeanStub{wireBeans(S){this.ctrlsSvc=S.ctrlsSvc,this.animationFrameSvc=S.animationFrameSvc,this.visibleCols=S.visibleCols}constructor(S){super(),this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.scrollTimer=0,this.needsRefreshedScrollPosition=!0,this.eBodyViewport=S,this.resetLastHScrollDebounced=(0,b._debounce)(this,()=>this.lastScrollSource[d.Horizontal]=null,500),this.resetLastVScrollDebounced=(0,b._debounce)(this,()=>this.lastScrollSource[d.Vertical]=null,500)}destroy(){super.destroy(),window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");let S=this.requireUpdatedScrollPosition.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),gridSizeChanged:S}),this.addManagedElementListeners(this.eBodyViewport,{scroll:S}),this.ctrlsSvc.whenReady(this,w=>{this.centerRowsCtrl=w.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}requireUpdatedScrollPosition(){this.needsRefreshedScrollPosition=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,s)});for(let S of h){let w=this.ctrlsSvc.get(S);this.registerScrollPartner(w,this.onHScroll.bind(this,S))}}addVerticalScrollListeners(){let S=this.ctrlsSvc.get("fakeVScrollComp"),w=this.gos.get("debounceVerticalScrollbar"),M=w?(0,b._debounce)(this,this.onVScroll.bind(this,s),100):this.onVScroll.bind(this,s),P=w?(0,b._debounce)(this,this.onVScroll.bind(this,c),100):this.onVScroll.bind(this,c);this.addManagedElementListeners(this.eBodyViewport,{scroll:M}),this.registerScrollPartner(S,P)}registerScrollPartner(S,w){S.onScrollCallback(w)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(S){this.centerRowsCtrl==null||(S===void 0&&(S=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(S)))}setScrollLeftForAllContainersExceptCurrent(S){for(let w of[...h,s]){if(this.lastScrollSource[d.Horizontal]===w)continue;let M=this.getViewportForSource(w);(0,T._setScrollLeft)(M,S,this.enableRtl)}}getViewportForSource(S){return S===s?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(S).eViewport}isControllingScroll(S,w){return this.lastScrollSource[w]==null?(w===d.Vertical?this.lastScrollSource[0]=S:this.lastScrollSource[1]=S,!0):this.lastScrollSource[w]===S}onHScroll(S){if(!this.isControllingScroll(S,d.Horizontal))return;let w=this.centerRowsCtrl.eViewport,{scrollLeft:M}=w;if(this.shouldBlockScrollUpdate(d.Horizontal,M,!0))return;let P=(0,T._getScrollLeft)(this.getViewportForSource(S),this.enableRtl);this.doHorizontalScroll(P),this.resetLastHScrollDebounced()}onVScroll(S){if(!this.isControllingScroll(S,d.Vertical))return;let w;if(w=S===s?this.eBodyViewport.scrollTop:this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(d.Vertical,w,!0))return;let{animationFrameSvc:M}=this;M==null||M.setScrollTop(w),this.nextScrollTop=w,S===s?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(w):this.eBodyViewport.scrollTop=w,!M||this.gos.get("suppressAnimationFrame")?this.scrollGridIfNeeded():M.schedule(),this.resetLastVScrollDebounced()}doHorizontalScroll(S){let w=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===S&&S===w||(this.scrollLeft=S,this.fireScrollEvent(d.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(S),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(S){let w={type:"bodyScroll",direction:S===d.Horizontal?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventSvc.dispatchEvent(w),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.eventSvc.dispatchEvent(He(ge({},w),{type:"bodyScrollEnd"}))},100)}shouldBlockScrollUpdate(S,w,M=!1){return!(M&&!(0,z._isIOSUserAgent)())&&(S===d.Vertical?this.shouldBlockVerticalScroll(w):this.shouldBlockHorizontalScroll(w))}shouldBlockVerticalScroll(S){let w=(0,T._getInnerHeight)(this.eBodyViewport),{scrollHeight:M}=this.eBodyViewport;return S<0||S+w>M}shouldBlockHorizontalScroll(S){let w=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:M}=this.centerRowsCtrl.eViewport;if(this.enableRtl&&(0,T._isRtlNegativeScroll)()){if(S>0)return!0}else if(S<0)return!0;return Math.abs(S)+w>M}redrawRowsAfterScroll(){this.fireScrollEvent(d.Vertical)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScroll(s)}scrollGridIfNeeded(){let S=this.scrollTop!=this.nextScrollTop;return S&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),S}setHorizontalScrollPosition(S,w=!1){let M=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!w&&this.shouldBlockScrollUpdate(d.Horizontal,S)&&(S=this.enableRtl&&(0,T._isRtlNegativeScroll)()?S>0?0:M:Math.min(Math.max(S,0),M)),(0,T._setScrollLeft)(this.centerRowsCtrl.eViewport,Math.abs(S),this.enableRtl),this.doHorizontalScroll(S)}setVerticalScrollPosition(S){this.eBodyViewport.scrollTop=S}getVScrollPosition(){if(!this.needsRefreshedScrollPosition){let{lastOffsetHeight:M,lastScrollTop:P}=this;return{top:P,bottom:P+M}}this.needsRefreshedScrollPosition=!1;let{scrollTop:S,offsetHeight:w}=this.eBodyViewport;return this.lastScrollTop=S,this.lastOffsetHeight=w,{top:S,bottom:S+w}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.centerRowsCtrl.isHorizontalScrollShowing()}scrollHorizontally(S){let w=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(w+S),this.centerRowsCtrl.eViewport.scrollLeft-w}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(S,w=null){let{rowModel:M}=this.beans,P=M.getRowCount(),O=-1;for(let G=0;G<P;G++){let j=M.getRow(G);if(typeof S=="function"){if(j&&S(j)){O=G;break}}else if(S===j||S===j.data){O=G;break}}O>=0&&this.ensureIndexVisible(O,w)}ensureIndexVisible(S,w){if((0,E._isDomLayout)(this.gos,"print"))return;let{rowModel:M}=this.beans,P=M.getRowCount();if(typeof S!="number"||S<0||S>=P)return void(0,C._warn)(88,{index:S});let O=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel"),{frameworkOverrides:G,pagination:j,pageBounds:Y,rowContainerHeight:J,rowRenderer:ne}=this.beans;G.wrapIncoming(()=>{var Fe;O||(j==null||j.goToPageWithIndex(S));let ce=this.ctrlsSvc.getGridBodyCtrl(),fe=ce.stickyTopHeight,xe=ce.stickyBottomHeight,Le=M.getRow(S),_e;do{let We=Le.rowTop,it=Le.rowHeight,tt=Y.getPixelOffset(),ot=Le.rowTop-tt,st=ot+Le.rowHeight,St=this.getVScrollPosition(),Xe=J.divStretchOffset,Ke=St.top+Xe,Ye=St.bottom+Xe,Ze=Ye-Ke,Pe=J.getScrollPositionForPixel(ot),ct=J.getScrollPositionForPixel(st-Ze),dt=Math.min((Pe+ct)/2,ot),bt=null;w==="top"?bt=Pe:w==="bottom"?bt=ct:w==="middle"?bt=dt:Ke+fe>ot?bt=Pe-fe:Ye-xe<st&&(bt=ct+xe),bt!==null&&(this.setVerticalScrollPosition(bt),ne.redraw({afterScroll:!0})),_e=We!==Le.rowTop||it!==Le.rowHeight}while(_e);(Fe=this.animationFrameSvc)==null||Fe.flushAllFrames()})}ensureColumnVisible(S,w="auto"){let{colModel:M,frameworkOverrides:P}=this.beans,O=M.getCol(S);if(!O||O.isPinned()||!this.visibleCols.isColDisplayed(O))return;let G=this.getPositionedHorizontalScroll(O,w);P.wrapIncoming(()=>{var j;G!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(G),this.centerRowsCtrl.onHorizontalViewportChanged(),(j=this.animationFrameSvc)==null||j.flushAllFrames()})}getPositionedHorizontalScroll(S,w){let{columnBeforeStart:M,columnAfterEnd:P}=this.isColumnOutsideViewport(S),O=this.centerRowsCtrl.getCenterWidth()<S.getActualWidth(),G=this.centerRowsCtrl.getCenterWidth(),j=this.enableRtl,Y=(j?M:P)||O,J=j?P:M;w!=="auto"&&(Y=w==="start",J=w==="end");let ne=w==="middle";if(Y||J||ne){let{colLeft:ce,colMiddle:fe,colRight:xe}=this.getColumnBounds(S);return ne?fe-G/2:Y?j?xe:ce:j?ce-G:xe-G}return null}isColumnOutsideViewport(S){let{start:w,end:M}=this.getViewportBounds(),{colLeft:P,colRight:O}=this.getColumnBounds(S),G=this.enableRtl;return{columnBeforeStart:G?w>O:M<O,columnAfterEnd:G?M<P:w>P}}getColumnBounds(S){let w=this.enableRtl,M=this.visibleCols.bodyWidth,P=S.getActualWidth(),O=S.getLeft(),G=w?-1:1,j=w?M-O:O;return{colLeft:j,colMiddle:j+P/2*G,colRight:j+P*G}}getViewportBounds(){let S=this.centerRowsCtrl.getCenterWidth(),w=this.centerRowsCtrl.getCenterViewportScrollLeft();return{start:w,end:S+w,width:S}}}x.GridBodyScrollFeature=g},8399:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._getNormalisedMousePosition=x._getCellPositionForEvent=x._isElementInThisGrid=x._isEventFromThisGrid=x._stampTopLevelGridCompWithGridInstance=void 0;let A=p(7274),E=p(814),z=p(4422),T="__ag_grid_instance";function b(C,d){let s=d;for(;s;){let c=s[T];if((0,z._exists)(c))return c===C.gridInstanceId;s=s.parentElement}return!1}x._stampTopLevelGridCompWithGridInstance=function(C,d){d[T]=C.gridInstanceId},x._isEventFromThisGrid=function(C,d){return b(C,d.target)},x._isElementInThisGrid=b,x._getCellPositionForEvent=function(C,d){var s,c;return(c=(s=(0,E._getCellCtrlForEventTarget)(C,d.target))==null?void 0:s.cellPosition)!=null?c:null},x._getNormalisedMousePosition=function(C,d){let s=(0,A._isDomLayout)(C.gos,"normal"),c=d,h,g;if(c.clientX!=null||c.clientY!=null?(h=c.clientX,g=c.clientY):(h=c.x,g=c.y),s){let f=C.ctrlsSvc.getScrollFeature(),S=f.getVScrollPosition();h+=f.getHScrollPosition().left,g+=S.top}return{x:h,y:g}}},4633:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowContainerSelector=x.RowContainerComp=void 0;let A=p(6049),E=p(5230),z=p(3507),T=p(8020),b=p(8115);class C extends T.Component{constructor(s){super(),this.eViewport=T.RefPlaceholder,this.eContainer=T.RefPlaceholder,this.rowComps={},this.name=s==null?void 0:s.name,this.options=(0,b._getRowContainerOptions)(this.name),this.setTemplate(function(c){let h;return h=c.type==="center"?`<div class="${c.viewport}" data-ref="eViewport" role="presentation">
                <div class="${c.container}" data-ref="eContainer"></div>
            </div>`:`<div class="${c.container}" data-ref="eContainer"></div>`,h}(this.options))}postConstruct(){let s={setHorizontalScroll:c=>this.eViewport.scrollLeft=c,setViewportHeight:c=>this.eViewport.style.height=c,setRowCtrls:({rowCtrls:c})=>this.setRowCtrls(c),setDomOrder:c=>{this.domOrder=c},setContainerWidth:c=>this.eContainer.style.width=c,setOffsetTop:c=>this.eContainer.style.transform=`translateY(${c})`};this.createManagedBean(new b.RowContainerCtrl(this.name)).setComp(s,this.eContainer,this.eViewport)}destroy(){this.setRowCtrls([]),super.destroy()}setRowCtrls(s){let c=ge({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,s.forEach(h=>{let g=h.instanceId,f=c[g];if(f)this.rowComps[g]=f,delete c[g],this.ensureDomOrder(f.getGui());else{if(!h.rowNode.displayed)return;let S=new A.RowComp(h,this.beans,this.options.type);this.rowComps[g]=S,this.appendRow(S.getGui())}}),Object.values(c).forEach(h=>{this.eContainer.removeChild(h.getGui()),h.destroy()}),(0,E._setAriaRole)(this.eContainer,"rowgroup")}appendRow(s){this.domOrder?(0,z._insertWithDomOrder)(this.eContainer,s,this.lastPlacedElement):this.eContainer.appendChild(s),this.lastPlacedElement=s}ensureDomOrder(s){this.domOrder&&((0,z._ensureDomOrder)(this.eContainer,s,this.lastPlacedElement),this.lastPlacedElement=s)}}x.RowContainerComp=C,x.RowContainerSelector={selector:"AG-ROW-CONTAINER",component:C}},8115:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowContainerCtrl=x._getRowContainerOptions=void 0;let A=p(8731),E=p(7274),z=p(3507),T=p(2218),b=p(5858),C=p(2625),d=p(9622),s=fe=>fe.topRowCtrls,c=fe=>fe.getStickyTopRowCtrls(),h=fe=>fe.getStickyBottomRowCtrls(),g=fe=>fe.bottomRowCtrls,f=fe=>fe.allRowCtrls,S={center:{type:"center",container:"ag-center-cols-container",viewport:"ag-center-cols-viewport",getRowCtrls:f},left:{type:"left",container:"ag-pinned-left-cols-container",pinnedType:"left",getRowCtrls:f},right:{type:"right",container:"ag-pinned-right-cols-container",pinnedType:"right",getRowCtrls:f},fullWidth:{type:"fullWidth",container:"ag-full-width-container",fullWidth:!0,getRowCtrls:f},topCenter:{type:"center",container:"ag-floating-top-container",viewport:"ag-floating-top-viewport",getRowCtrls:s},topLeft:{type:"left",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:s},topRight:{type:"right",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:s},topFullWidth:{type:"fullWidth",container:"ag-floating-top-full-width-container",fullWidth:!0,getRowCtrls:s},stickyTopCenter:{type:"center",container:"ag-sticky-top-container",viewport:"ag-sticky-top-viewport",getRowCtrls:c},stickyTopLeft:{type:"left",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:c},stickyTopRight:{type:"right",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:c},stickyTopFullWidth:{type:"fullWidth",container:"ag-sticky-top-full-width-container",fullWidth:!0,getRowCtrls:c},stickyBottomCenter:{type:"center",container:"ag-sticky-bottom-container",viewport:"ag-sticky-bottom-viewport",getRowCtrls:h},stickyBottomLeft:{type:"left",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:h},stickyBottomRight:{type:"right",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:h},stickyBottomFullWidth:{type:"fullWidth",container:"ag-sticky-bottom-full-width-container",fullWidth:!0,getRowCtrls:h},bottomCenter:{type:"center",container:"ag-floating-bottom-container",viewport:"ag-floating-bottom-viewport",getRowCtrls:g},bottomLeft:{type:"left",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:g},bottomRight:{type:"right",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:g},bottomFullWidth:{type:"fullWidth",container:"ag-floating-bottom-full-width-container",fullWidth:!0,getRowCtrls:g}};function w(fe){return S[fe]}x._getRowContainerOptions=w;let M=["center","left","right","fullWidth"],P=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],O=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],G=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],j=["stickyTopCenter","stickyTopLeft","stickyTopRight"],Y=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],J=[...j,"stickyTopFullWidth",...Y,"stickyBottomFullWidth"],ne=["topCenter","topLeft","topRight","bottomCenter","bottomLeft","bottomRight","center","left","right",...j,...Y];class ce extends A.BeanStub{constructor(xe){super(),this.name=xe,this.visible=!0,this.EMPTY_CTRLS=[],this.options=w(xe)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new b.ViewportSizeFeature(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(xe){this.comp.setOffsetTop(`${xe.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(xe,Le){xe.indexOf(this.name)>=0&&Le()}setComp(xe,Le,_e){this.comp=xe,this.eContainer=Le,this.eViewport=_e,this.createManagedBean(new C.RowContainerEventsFeature(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();let{pinnedCols:Fe,rangeSvc:We}=this.beans,it=()=>this.onPinnedWidthChanged();this.forContainers(O,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(Fe==null?void 0:Fe.createPinnedWidthFeature(this.eContainer,!0)),this.addManagedEventListeners({leftPinnedWidthChanged:it})}),this.forContainers(G,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(Fe==null?void 0:Fe.createPinnedWidthFeature(this.eContainer,!1)),this.addManagedEventListeners({rightPinnedWidthChanged:it})}),this.forContainers(M,()=>this.createManagedBean(new d.SetHeightFeature(this.eContainer,this.name==="center"?_e:void 0))),We&&this.forContainers(ne,()=>this.createManagedBean(We.createDragListenerFeature(this.eContainer))),this.forContainers(P,()=>this.createManagedBean(new T.CenterWidthFeature(tt=>this.comp.setContainerWidth(`${tt}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(xe){this.addManagedElementListeners(this.eViewport,{scroll:xe})}addListeners(){this.addManagedEventListeners({displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onDisplayedColumnsChanged.bind(this),displayedRowsChanged:xe=>this.onDisplayedRowsChanged(xe.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedRowsChanged()}listenOnDomOrder(){if(J.indexOf(this.name)>=0)return void this.comp.setDomOrder(!0);let xe=()=>{let Le=this.gos.get("ensureDomOrder"),_e=(0,E._isDomLayout)(this.gos,"print");this.comp.setDomOrder(Le||_e)};this.addManagedPropertyListener("domLayout",xe),xe()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){let{dragSvc:xe}=this.beans;if(!xe)return;let Le=_e=>{xe.dragging&&_e.cancelable&&_e.preventDefault()};this.eContainer.addEventListener("touchmove",Le,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",Le))}onHorizontalViewportChanged(xe=!1){let Le=this.getCenterWidth(),_e=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(Le,_e,xe)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return(0,z._getInnerWidth)(this.eViewport)}getCenterViewportScrollLeft(){return(0,z._getScrollLeft)(this.eViewport,this.enableRtl)}registerViewportResizeListener(xe){let Le=(0,z._observeResize)(this.beans,this.eViewport,xe);this.addDestroyFunc(()=>Le())}isViewportInTheDOMTree(){return(0,z._isInDOM)(this.eViewport)}getViewportScrollLeft(){return(0,z._getScrollLeft)(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||(0,z._isHorizontalScrollShowing)(this.eViewport)}setHorizontalScroll(xe){this.comp.setHorizontalScroll(xe)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(xe){(0,z._setScrollLeft)(this.eViewport,xe,this.enableRtl)}isContainerVisible(){return this.options.pinnedType==null||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){let xe=this.isContainerVisible();this.visible!=xe&&(this.visible=xe,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(xe=!1){let Le=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||Le.length===0)return void this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});let _e=(0,E._isDomLayout)(this.gos,"print"),Fe=this.gos.get("embedFullWidthRows")||_e,We=Le.filter(it=>{let tt=it.isFullWidth();return this.options.fullWidth?!Fe&&tt:Fe||!tt});this.comp.setRowCtrls({rowCtrls:We,useFlushSync:xe})}}x.RowContainerCtrl=ce},2625:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowContainerEventsFeature=void 0;let A=p(9853),E=p(8731),z=p(7274),T=p(814),b=p(7632),C=p(1502),d=p(2979),s=p(6466),c=p(8399);class h extends E.BeanStub{constructor(f){super(),this.element=f}postConstruct(){var f;this.addKeyboardListeners(),this.addMouseListeners(),(f=this.beans.touchSvc)==null||f.mockRowContextMenu(this)}addKeyboardListeners(){let f="keydown",S=this.processKeyboardEvent.bind(this,f);this.addManagedElementListeners(this.element,{[f]:S})}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",(0,d._isEventSupported)("touchstart")?"touchstart":"mousedown"].forEach(f=>{let S=this.processMouseEvent.bind(this,f);this.addManagedElementListeners(this.element,{[f]:S})})}processMouseEvent(f,S){var P;if(!(0,c._isEventFromThisGrid)(this.gos,S)||(0,d._isStopPropagationForAgGrid)(S))return;let{cellCtrl:w,rowCtrl:M}=this.getControlsForEventTarget(S.target);f==="contextmenu"?(P=this.beans.contextMenuSvc)==null||P.handleContextMenuMouseEvent(S,void 0,M,w):(w&&w.onMouseEvent(f,S),M&&M.onMouseEvent(f,S))}getControlsForEventTarget(f){let{gos:S}=this;return{cellCtrl:(0,T._getCellCtrlForEventTarget)(S,f),rowCtrl:(0,d._getCtrlForEventTarget)(S,f,b.DOM_DATA_KEY_ROW_CTRL)}}processKeyboardEvent(f,S){let{cellCtrl:w,rowCtrl:M}=this.getControlsForEventTarget(S.target);S.defaultPrevented||(w?this.processCellKeyboardEvent(w,f,S):M&&M.isFullWidth()&&this.processFullWidthRowKeyboardEvent(M,f,S))}processCellKeyboardEvent(f,S,w){var G;let{rowNode:M,column:P,editing:O}=f;!(0,s._isUserSuppressingKeyboardEvent)(this.gos,w,M,P,O)&&S==="keydown"&&(!O&&((G=this.beans.navigation)!=null&&G.handlePageScrollingKey(w))||f.onKeyDown(w),this.doGridOperations(w,f.editing),(0,s._isEventFromPrintableCharacter)(w)&&f.processCharacter(w)),S==="keydown"&&this.eventSvc.dispatchEvent(f.createEvent(w,"cellKeyDown"))}processFullWidthRowKeyboardEvent(f,S,w){let{rowNode:M}=f,{focusSvc:P,navigation:O}=this.beans,G=P.getFocusedCell(),j=G&&G.column;if(!(0,s._isUserSuppressingKeyboardEvent)(this.gos,w,M,j,!1)){let Y=w.key;if(S==="keydown")switch(Y){case A.KeyCode.PAGE_HOME:case A.KeyCode.PAGE_END:case A.KeyCode.PAGE_UP:case A.KeyCode.PAGE_DOWN:O==null||O.handlePageScrollingKey(w,!0);break;case A.KeyCode.UP:case A.KeyCode.DOWN:f.onKeyboardNavigate(w);break;case A.KeyCode.TAB:f.onTabKeyDown(w)}}S==="keydown"&&this.eventSvc.dispatchEvent(f.createRowEvent("cellKeyDown",w))}doGridOperations(f,S){if(!f.ctrlKey&&!f.metaKey||S||!(0,c._isEventFromThisGrid)(this.gos,f))return;let w=function(O){let{keyCode:G}=O,j;switch(G){case 65:j=A.KeyCode.A;break;case 67:j=A.KeyCode.C;break;case 86:j=A.KeyCode.V;break;case 68:j=A.KeyCode.D;break;case 90:j=A.KeyCode.Z;break;case 89:j=A.KeyCode.Y;break;default:j=O.code}return j}(f),{clipboardSvc:M,undoRedo:P}=this.beans;return w===A.KeyCode.A?this.onCtrlAndA(f):w===A.KeyCode.C?this.onCtrlAndC(M,f):w===A.KeyCode.D?this.onCtrlAndD(M,f):w===A.KeyCode.V?this.onCtrlAndV(M,f):w===A.KeyCode.X?this.onCtrlAndX(M,f):w===A.KeyCode.Y?this.onCtrlAndY(P):w===A.KeyCode.Z?this.onCtrlAndZ(P,f):void 0}onCtrlAndA(f){var j,Y,J;let{beans:{pinnedRowModel:S,rowModel:w,visibleCols:M,rangeSvc:P,selectionSvc:O},gos:G}=this;if(P&&(0,z._isCellSelectionEnabled)(G)&&w.isRowsToRender()){let[ne,ce]=[(j=S==null?void 0:S.isEmpty("top"))!=null?j:!0,(Y=S==null?void 0:S.isEmpty("bottom"))!=null?Y:!0],fe=ne?null:"top",xe,Le;ce?(xe=null,Le=w.getRowCount()-1):(xe="bottom",Le=(J=S==null?void 0:S.getPinnedBottomRowCount())!=null?J:-1);let _e=M.allCols;if(!(_e!=null&&_e.length))return;P.setCellRange({rowStartIndex:0,rowStartPinned:fe,rowEndIndex:Le,rowEndPinned:xe,columnStart:_e[0],columnEnd:(0,C._last)(_e)})}else O&&(O==null||O.selectAllRowNodes({source:"keyboardSelectAll",selectAll:(0,z._getSelectAll)(G)}));f.preventDefault()}onCtrlAndC(f,S){if(!f||this.gos.get("enableCellTextSelection"))return;let{cellCtrl:w,rowCtrl:M}=this.getControlsForEventTarget(S.target);w!=null&&w.editing||M!=null&&M.editing||(S.preventDefault(),f.copyToClipboard())}onCtrlAndX(f,S){if(!f||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;let{cellCtrl:w,rowCtrl:M}=this.getControlsForEventTarget(S.target);w!=null&&w.editing||M!=null&&M.editing||(S.preventDefault(),f.cutToClipboard(void 0,"ui"))}onCtrlAndV(f,S){let{cellCtrl:w,rowCtrl:M}=this.getControlsForEventTarget(S.target);w!=null&&w.editing||M!=null&&M.editing||f&&!this.gos.get("suppressClipboardPaste")&&f.pasteFromClipboard()}onCtrlAndD(f,S){f&&!this.gos.get("suppressClipboardPaste")&&f.copyRangeDown(),S.preventDefault()}onCtrlAndZ(f,S){this.gos.get("undoRedoCellEditing")&&f&&(S.preventDefault(),S.shiftKey?f.redo("ui"):f.undo("ui"))}onCtrlAndY(f){f==null||f.redo("ui")}}x.RowContainerEventsFeature=h},9622:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SetHeightFeature=void 0;let A=p(8731);class E extends A.BeanStub{constructor(T,b){super(),this.eContainer=T,this.eViewport=b}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(T){let b=T.uiContainerHeight,C=b!=null?`${b}px`:"";this.eContainer.style.height=C,this.eViewport&&(this.eViewport.style.height=C)}}x.SetHeightFeature=E},2865:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SetPinnedWidthFeature=void 0;let A=p(8731),E=p(3507);class z extends A.BeanStub{constructor(b,C){super(),this.element=b,this.isLeft=C,this.getWidth=C?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[(this.isLeft?"left":"right")+"PinnedWidthChanged"]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){let b=this.getWidth(),C=b>0;(0,E._setDisplayed)(this.element,C),(0,E._setFixedWidth)(this.element,b)}}x.SetPinnedWidthFeature=z},8913:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ScrollVisibleService=void 0;let A=p(8731),E=p(8667);class z extends A.BeanStub{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(b){this.ctrlsSvc=b.ctrlsSvc,this.colAnimation=b.colAnimation}postConstruct(){this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){let{colAnimation:b}=this;b!=null&&b.isActive()?b.executeLaterVMTurn(()=>{b.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){var d;let b=this.ctrlsSvc.get("center");if(!b||(d=this.colAnimation)!=null&&d.isActive())return;let C={horizontalScrollShowing:b.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(C),this.updateScrollGap()}updateScrollGap(){let b=this.ctrlsSvc.get("center"),C=b.hasHorizontalScrollGap(),d=b.hasVerticalScrollGap();(this.horizontalScrollGap!==C||this.verticalScrollGap!==d)&&(this.horizontalScrollGap=C,this.verticalScrollGap=d,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(b){(this.horizontalScrollShowing!==b.horizontalScrollShowing||this.verticalScrollShowing!==b.verticalScrollShowing)&&(this.horizontalScrollShowing=b.horizontalScrollShowing,this.verticalScrollShowing=b.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(this.scrollbarWidth==null){let b=this.gos.get("scrollbarWidth"),C=typeof b=="number"&&b>=0?b:(0,E._getScrollbarWidth)();C!=null&&(this.scrollbarWidth=C,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}}x.ScrollVisibleService=z},5858:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ViewportSizeFeature=void 0;let A=p(8731),E=p(2612),z=p(3507);class T extends A.BeanStub{wireBeans(C){this.scrollVisibleSvc=C.scrollVisibleSvc}constructor(C){super(),this.centerContainerCtrl=C}postConstruct(){this.beans.ctrlsSvc.whenReady(this,C=>{this.gridBodyCtrl=C.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){let{beans:C,centerContainerCtrl:d,gridBodyCtrl:s}=this,c=()=>{(0,E._requestAnimationFrame)(C,()=>{this.onCenterViewportResized()})};d.registerViewportResizeListener(c),s.registerBodyViewportResizeListener(c)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){let{pinnedCols:C,colFlex:d}=this.beans;C==null||C.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();let s=this.centerContainerCtrl.getCenterWidth();s!==this.centerWidth&&(this.centerWidth=s,d==null||d.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){let C=this.gridBodyCtrl.eBodyViewport,d=(0,z._getInnerHeight)(C);this.bodyHeight!==d&&(this.bodyHeight=d,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){let C={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(C)}onHorizontalViewportChanged(){let C=this.centerContainerCtrl.getCenterWidth(),d=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(C,d)}}x.ViewportSizeFeature=T},1678:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridComp=void 0;let A=p(9625),E=p(9360),z=p(3507),T=p(2043),b=p(8020),C=p(8332),d=p(7600);class s extends C.TabGuardComp{constructor(h){super(),this.gridBody=b.RefPlaceholder,this.sideBar=b.RefPlaceholder,this.pagination=b.RefPlaceholder,this.rootWrapperBody=b.RefPlaceholder,this.eGridDiv=h}postConstruct(){let h={destroyGridUi:()=>this.destroyBean(this),setRtlClass:M=>this.addCssClass(M),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:M=>{this.getGui().style.userSelect=M!=null?M:"",this.getGui().style.webkitUserSelect=M!=null?M:""},setCursor:M=>{this.getGui().style.cursor=M!=null?M:""}},g=this.createManagedBean(new d.GridCtrl),f=g.getOptionalSelectors(),S=this.createTemplate(f),w=[A.GridBodySelector,...Object.values(f).filter(M=>!!M)];this.setTemplate(S,w),g.setComp(h,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:M=>g.focusInnerElement(M),forceFocusOutWhenTabGuardsAreEmpty:!0})}insertGridIntoDom(){let h=this.getGui();this.eGridDiv.appendChild(h),this.addDestroyFunc(()=>{this.eGridDiv.removeChild(h),(0,T._logIfDebug)(this.gos,"Grid removed from DOM")})}updateLayoutClasses(h,g){let f=this.rootWrapperBody.classList,{AUTO_HEIGHT:S,NORMAL:w,PRINT:M}=E.LayoutCssClasses,{autoHeight:P,normal:O,print:G}=g;f.toggle(S,P),f.toggle(w,O),f.toggle(M,G),this.addOrRemoveCssClass(S,P),this.addOrRemoveCssClass(w,O),this.addOrRemoveCssClass(M,G)}createTemplate(h){let g=h.gridHeaderDropZonesSelector?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",f=h.sideBarSelector?'<ag-side-bar data-ref="sideBar"></ag-side-bar>':"",S=h.statusBarSelector?"<ag-status-bar></ag-status-bar>":"",w=h.watermarkSelector?"<ag-watermark></ag-watermark>":"";return`<div class="ag-root-wrapper" role="presentation">
                ${g}
                <div class="ag-root-wrapper-body" data-ref="rootWrapperBody" role="presentation">
                    <ag-grid-body data-ref="gridBody"></ag-grid-body>
                    ${f}
                </div>
                ${S}
                ${h.paginationSelector?'<ag-pagination data-ref="pagination"></ag-pagination>':""}
                ${w}
            </div>`}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(h=!1){var g;h||!((g=this.pagination)!=null&&g.isDisplayed())?super.forceFocusOutOfContainer(h):this.pagination.forceFocusOutOfContainer(h)}getFocusableContainers(){let h=[this.gridBody];return[this.sideBar,this.pagination].forEach(g=>{g&&h.push(g)}),h.filter(g=>(0,z._isVisible)(g.getGui()))}}x.GridComp=s},7600:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridCtrl=void 0;let A=p(8731),E=p(8399),z=p(7274),T=p(9360),b=p(1502),C=p(3507),d=p(2331);class s extends A.BeanStub{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(h,g,f){this.view=h,this.eGridHostDiv=g,this.eGui=f,this.eGui.setAttribute("grid-id",this.beans.context.getGridId());let{dragAndDrop:S,ctrlsSvc:w}=this.beans;S==null||S.registerGridDropTarget(()=>this.eGui,this),(0,E._stampTopLevelGridCompWithGridInstance)(this.gos,g),this.createManagedBean(new T.LayoutFeature(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");let M=(0,C._observeResize)(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>M()),w.register("gridCtrl",this)}isDetailGrid(){var g;let h=(0,d._findTabbableParent)(this.getGui());return((g=h==null?void 0:h.getAttribute("row-id"))==null?void 0:g.startsWith("detail"))||!1}getOptionalSelectors(){var g,f,S,w;let h=this.beans;return{paginationSelector:(g=h.pagination)==null?void 0:g.getPaginationSelector(),gridHeaderDropZonesSelector:h.registry.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:(f=h.sideBar)==null?void 0:f.getSelector(),statusBarSelector:(S=h.registry)==null?void 0:S.getSelector("AG-STATUS-BAR"),watermarkSelector:(w=h.licenseManager)==null?void 0:w.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(h){this.view.setCursor(h?"ew-resize":null)}disableUserSelect(h){this.view.setUserSelect(h?"none":null)}focusNextInnerContainer(h){let g=this.getFocusableContainers(),{indexWithFocus:f,nextIndex:S}=this.getNextFocusableIndex(g,h);if(S<0||S>=g.length)return!1;if(S===0){if(f>0){let{visibleCols:w,focusSvc:M}=this.beans,P=w.allCols,O=(0,b._last)(P);if(M.focusGridView(O,!0))return!0}return!1}return this.focusContainer(g[S],h)}focusInnerElement(h){let g=this.gos.getCallback("focusGridInnerElement");if(g&&g({fromBottom:!!h}))return!0;let f=this.getFocusableContainers(),{focusSvc:S,visibleCols:w}=this.beans,M=w.allCols;if(h){if(f.length>1)return this.focusContainer((0,b._last)(f),!0);let P=(0,b._last)(M);if(S.focusGridView(P,!0))return!0}if(this.gos.get("headerHeight")===0||(0,d._isHeaderFocusSuppressed)(this.beans)){if(S.focusGridView(M[0]))return!0;for(let P=1;P<f.length;P++)if((0,d._focusInto)(f[P].getGui()))return!0;return!1}return S.focusFirstHeader()}forceFocusOutOfContainer(h=!1){this.view.forceFocusOutOfContainer(h)}addFocusableContainer(h){this.additionalFocusableContainers.add(h)}removeFocusableContainer(h){this.additionalFocusableContainers.delete(h)}allowFocusForNextCoreContainer(h){var M;let g=this.view.getFocusableContainers(),{nextIndex:f,indexWithFocus:S}=this.getNextFocusableIndex(g,h);if(S===-1||f<0||f>=g.length)return;let w=g[f];(M=w.setAllowFocus)==null||M.call(w,!0),setTimeout(()=>{var P;(P=w.setAllowFocus)==null||P.call(w,!1)})}getNextFocusableIndex(h,g){let f=(0,z._getActiveDomElement)(this.beans),S=h.findIndex(w=>w.getGui().contains(f));return{indexWithFocus:S,nextIndex:S+(g?-1:1)}}focusContainer(h,g){var S,w;(S=h.setAllowFocus)==null||S.call(h,!0);let f=(0,d._focusInto)(h.getGui(),g);return(w=h.setAllowFocus)==null||w.call(h,!1),f}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}}x.GridCtrl=s},1978:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CommunityCoreModule=void 0;let A=p(3907),E=p(9875),z=p(4074),T=p(6924),b=p(6041),C=p(2986),d=p(2027),s=p(8997),c=p(5034),h=p(6869),g=p(8414),f=p(4110),S=p(1585),w=p(20),M=p(9024),P=p(8778),O=p(3245),G=p(8913),j=p(3888),Y=p(8484),J=p(8078),ne=p(6392),ce=p(3705),fe=p(928),xe=p(2550),Le=p(3003),_e=p(6219),Fe=p(3433),We=p(5366),it=p(7109),tt=p(557),ot=p(6620),st=p(7711),St=p(6431),Xe=p(5736),Ke=p(7205);x.CommunityCoreModule={moduleName:"CommunityCore",version:Ke.VERSION,beans:[j.GridDestroyService,A.ApiFunctionService,f.Registry,S.UserComponentFactory,it.RowContainerHeightService,h.VisibleColsService,P.EventService,Y.GridOptionsService,C.ColumnModel,Le.PageBoundsService,xe.PageBoundsListener,tt.RowRenderer,Xe.ValueService,O.FocusService,M.Environment,G.ScrollVisibleService,w.CtrlsService,st.SyncService,s.ColumnNameService,c.ColumnViewportService],icons:{selectOpen:"small-down",smallDown:"small-down",colorPicker:"color-picker",smallUp:"small-up",checkboxChecked:"small-up",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",smallLeft:"small-left",smallRight:"small-right"},apiFunctions:{getGridId:E.getGridId,destroy:E.destroy,isDestroyed:E.isDestroyed,getGridOption:E.getGridOption,setGridOption:E.setGridOption,updateGridOptions:E.updateGridOptions},dependsOn:[d.DataTypeModule,z.ColumnMoveModule,T.ColumnResizeModule,ot.SortModule,J.ColumnHeaderCompModule,b.ColumnGroupModule,J.ColumnGroupHeaderCompModule,We.OverlayModule,St.ChangeDetectionModule,ne.AnimationFrameModule,fe.KeyboardNavigationModule,_e.PinnedColumnModule,Fe.AriaModule,ce.TouchModule,g.CellRendererFunctionModule,d.ColumnFlexModule,St.ExpressionModule]}},3888:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridDestroyService=void 0;let A=p(8731);class E extends A.BeanStub{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){var d,s;if(this.destroyCalled)return;let{stateSvc:T,ctrlsSvc:b,context:C}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:(d=T==null?void 0:T.getState())!=null?d:{}}),this.destroyCalled=!0,(s=b.get("gridCtrl"))==null||s.destroyGridUi(),C.destroy(),super.destroy()}}x.GridDestroyService=E},28:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.GRID_OPTION_DEFAULTS=void 0,x.GRID_OPTION_DEFAULTS={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,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}},2891:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.INITIAL_GRID_OPTION_KEYS=void 0,x.INITIAL_GRID_OPTION_KEYS={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0}},8484:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridOptionsService=void 0;let A=p(8731),E=p(7968),z=p(28),T=p(7274),b=p(5889),C=p(2132),d=p(2043),s=p(4422),c=p(7764),h=0,g=0;class f extends A.BeanStub{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.gridInstanceId=g++,this.propEventSvc=new b.LocalEventService,this.globalEventHandlerFactory=w=>(M,P)=>{if(!this.isAlive())return;let O=E.ALWAYS_SYNC_GLOBAL_EVENTS.has(M);if(O&&!w||!O&&w)return;let G=(0,T._getCallbackForEvent)(M),j=this.gridOptions[G];typeof j=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{j(P)})}}wireBeans(w){this.gridOptions=w.gridOptions,this.validation=w.validation,this.api=w.gridApi,this.gridId=w.context.getGridId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:w})=>{this.updateGridOptions({options:w,force:!0,source:"gridOptionsUpdated"})}})}get(w){var M;return(M=this.gridOptions[w])!=null?M:z.GRID_OPTION_DEFAULTS[w]}getCallback(w){return this.mergeGridCommonParams(this.gridOptions[w])}exists(w){return(0,s._exists)(this.gridOptions[w])}mergeGridCommonParams(w){return w&&(M=>w(this.addGridCommonParams(M)))}updateGridOptions({options:w,force:M,source:P="api"}){let O={id:h++,properties:[]},G=[],{gridOptions:j,validation:Y}=this;Object.entries(w).forEach(([J,ne])=>{Y==null||Y.warnOnInitialPropertyUpdate(P,J);let ce=M||typeof ne=="object"&&P==="api",fe=j[J];if(ce||fe!==ne){j[J]=ne;let xe={type:J,currentValue:ne,previousValue:fe,changeSet:O,source:P};G.push(xe)}}),Y==null||Y.processGridOptions(this.gridOptions),O.properties=G.map(J=>J.type),G.forEach(J=>{(0,d._logIfDebug)(this,`Updated property ${J.type} from`,J.previousValue," to ",J.currentValue),this.propEventSvc.dispatchEvent(J)})}addPropertyEventListener(w,M){this.propEventSvc.addEventListener(w,M)}removePropertyEventListener(w,M){this.propEventSvc.removeEventListener(w,M)}getDomDataKey(){return this.domDataKey}getGridCommonParams(){return{api:this.api,context:this.gridOptionsContext}}addGridCommonParams(w){let M=w;return M.api=this.api,M.context=this.gridOptionsContext,M}assertModuleRegistered(w,M){let P=Array.isArray(w)?w.some(O=>this.isModuleRegistered(O)):this.isModuleRegistered(w);return P||(0,c._error)(200,He(ge({},this.getModuleErrorParams()),{moduleName:w,reasonOrId:M})),P}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:(0,C._areModulesGridScoped)(),rowModelType:this.get("rowModelType")}}isModuleRegistered(w){return(0,C._isModuleRegistered)(w,this.gridId,this.get("rowModelType"))}}x.GridOptionsService=f},7274:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._isColumnMenuAnchoringEnabled=x._isLegacyMenuEnabled=x._isSetFilterByDefault=x._getGroupSelectsDescendants=x._getSelectAll=x._getGroupSelection=x._getEnableSelectionWithoutKeys=x._isMultiRowSelection=x._getRowSelectionMode=x._getIsRowSelectable=x._getEnableDeselection=x._getEnableSelection=x._getFillHandle=x._isCellSelectionEnabled=x._getSuppressMultiRanges=x._isUsingNewCellSelectionAPI=x._isUsingNewRowSelectionAPI=x._getHideDisabledCheckboxes=x._getCheckboxLocation=x._getHeaderCheckbox=x._getCheckboxes=x._shouldUpdateColVisibilityAfterGroup=x._getMaxConcurrentDatasourceRequests=x._canSkipShowingRowGroup=x._getRowIdCallback=x._isGroupUseEntireRow=x._isGroupMultiAutoColumn=x._getGroupTotalRowCallback=x._getGrandTotalRow=x._getGroupAggFiltering=x._isColumnsSortingCoupledToGroup=x._isGroupRowsSticky=x._isAnimateRows=x._isNothingFocused=x._anchorElementToMouseMoveEvent=x._getPageBody=x._getActiveDomElement=x._getRootNode=x._getWindow=x._getDocument=x._setDomData=x._getDomData=x._getRowHeightAsNumber=x._getRowHeightForNode=x._shouldMaintainColumnOrder=x._isGetRowHeightFunction=x._isRowSelection=x._isDomLayout=x._isServerSideRowModel=x._isClientSideRowModel=void 0,x._processOnChange=x._combineAttributesAndGridOptions=x._getCallbackForEvent=x._areAdditionalColumnMenuItemsEnabled=void 0;let A=p(3507),E=p(4422),z=p(7764);function T(P,O){return P.get("rowModelType")===O}function b(P,O){return P.get("domLayout")===O}function C(P){return typeof P.get("getRowHeight")=="function"}function d(P){return!isNaN(P)&&typeof P=="number"&&isFinite(P)}function s(P){let{gos:O,eGridDiv:G}=P,j=null,Y=O.get("getDocument");return Y&&(0,E._exists)(Y)?j=Y():G&&(j=G.ownerDocument),j&&(0,E._exists)(j)?j:document}function c(P){return P.eGridDiv.getRootNode()}function h(P){return c(P).activeElement}function g(P){let O=null,G=null;try{O=s(P).fullscreenElement}catch(j){}finally{O||(O=c(P)),G=O.querySelector("body")||(O instanceof ShadowRoot?O:O instanceof Document?O==null?void 0:O.documentElement:O)}return G}function f(P){var G,j;let O=(G=P.get("rowSelection"))!=null?G:"single";if(typeof O=="string"){let Y=P.get("suppressRowClickSelection"),J=P.get("suppressRowDeselection");return(!Y||!J)&&(Y?"enableDeselection":!J||"enableSelection")}return(O.mode==="singleRow"||O.mode==="multiRow")&&((j=O.enableClickSelection)!=null?j:!1)}function S(P){let O=P.get("rowSelection");if(typeof O=="string")switch(O){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(O==null?void 0:O.mode){case"multiRow":case"singleRow":return O.mode;default:return}}function w(P){let O=P.get("rowSelection");if(typeof O=="string"){let G=P.get("groupSelectsChildren"),j=P.get("groupSelectsFiltered");return G&&j?"filteredDescendants":G?"descendants":"self"}return(O==null?void 0:O.mode)==="multiRow"?O.groupSelects:void 0}function M(P){return P.get("columnMenu")==="legacy"}x._isClientSideRowModel=function(P,O){return T(P,"clientSide")},x._isServerSideRowModel=function(P,O){return T(P,"serverSide")},x._isDomLayout=b,x._isRowSelection=function(P){return S(P)!==void 0},x._isGetRowHeightFunction=C,x._shouldMaintainColumnOrder=function(P,O){return O?!P.get("enableStrictPivotColumnOrder"):P.get("maintainColumnOrder")},x._getRowHeightForNode=function(P,O,G=!1,j){let{gos:Y,environment:J}=P;if(j==null&&(j=J.getDefaultRowHeight()),C(Y)){if(G)return{height:j,estimated:!0};let ce={node:O,data:O.data},fe=Y.getCallback("getRowHeight")(ce);if(d(fe))return fe===0&&(0,z._warn)(23),{height:Math.max(1,fe),estimated:!1}}if(O.detail&&Y.get("masterDetail"))return function(ce){if(ce.get("detailRowAutoHeight"))return{height:1,estimated:!1};let fe=ce.get("detailRowHeight");return d(fe)?{height:fe,estimated:!1}:{height:300,estimated:!1}}(Y);let ne=Y.get("rowHeight");return{height:ne&&d(ne)?ne:j,estimated:!1}},x._getRowHeightAsNumber=function(P){let{environment:O,gos:G}=P,j=G.get("rowHeight");if(!j||(0,E._missing)(j))return O.getDefaultRowHeight();let Y=O.refreshRowHeightVariable();return Y!==-1?Y:((0,z._warn)(24),O.getDefaultRowHeight())},x._getDomData=function(P,O,G){let j=O[P.getDomDataKey()];return j?j[G]:void 0},x._setDomData=function(P,O,G,j){let Y=P.getDomDataKey(),J=O[Y];(0,E._missing)(J)&&(J={},O[Y]=J),J[G]=j},x._getDocument=s,x._getWindow=function(P){return s(P).defaultView||window},x._getRootNode=c,x._getActiveDomElement=h,x._getPageBody=g,x._anchorElementToMouseMoveEvent=function(P,O,G){let j=P.getBoundingClientRect().height,Y=function(tt){var st;let ot=g(tt);return(st=ot==null?void 0:ot.clientWidth)!=null?st:window.innerHeight||-1}(G)-2,J=function(tt){var st;let ot=g(tt);return(st=ot==null?void 0:ot.clientHeight)!=null?st:window.innerHeight||-1}(G)-2;if(!P.offsetParent)return;let ne=(0,A._getElementRectWithOffset)(P.offsetParent),{clientY:ce,clientX:fe}=O,xe=ce-ne.top-j/2,Le=fe-ne.left-10,_e=s(G),Fe=_e.defaultView||window,We=Fe.pageYOffset||_e.documentElement.scrollTop,it=Fe.pageXOffset||_e.documentElement.scrollLeft;Y>0&&Le+P.clientWidth>Y+it&&(Le=Y+it-P.clientWidth),Le<0&&(Le=0),J>0&&xe+P.clientHeight>J+We&&(xe=J+We-P.clientHeight),xe<0&&(xe=0),P.style.left=`${Le}px`,P.style.top=`${xe}px`},x._isNothingFocused=function(P){let O=s(P),G=h(P);return G===null||G===O.body},x._isAnimateRows=function(P){return!P.get("ensureDomOrder")&&P.get("animateRows")},x._isGroupRowsSticky=function(P){return!(P.get("paginateChildRows")||P.get("groupHideOpenParents")||b(P,"print"))},x._isColumnsSortingCoupledToGroup=function(P){let O=P.get("autoGroupColumnDef");return!(O!=null&&O.comparator)&&!P.get("treeData")},x._getGroupAggFiltering=function(P){let O=P.get("groupAggFiltering");return typeof O=="function"?P.getCallback("groupAggFiltering"):O===!0?()=>!0:void 0},x._getGrandTotalRow=function(P){return P.get("grandTotalRow")},x._getGroupTotalRowCallback=function(P){let O=P.get("groupTotalRow");return typeof O=="function"?P.getCallback("groupTotalRow"):()=>O!=null?O:void 0},x._isGroupMultiAutoColumn=function(P){return P.exists("groupDisplayType")?P.get("groupDisplayType")==="multipleColumns":P.get("groupHideOpenParents")},x._isGroupUseEntireRow=function(P,O){return!O&&P.get("groupDisplayType")==="groupRows"},x._getRowIdCallback=function(P){let O=P.getCallback("getRowId");return O===void 0?O:G=>{let j=O(G);return typeof j!="string"&&((0,z._warn)(25,{id:j}),j=String(j)),j}},x._canSkipShowingRowGroup=function(P,O){let G=P.get("groupHideParentOfSingleChild");return G===!0||!(G!=="leafGroupsOnly"||!O.leafGroup)||!!P.get("groupRemoveSingleChildren")||!(!P.get("groupRemoveLowestSingleChildren")||!O.leafGroup)},x._getMaxConcurrentDatasourceRequests=function(P){let O=P.get("maxConcurrentDatasourceRequests");return O>0?O:void 0},x._shouldUpdateColVisibilityAfterGroup=function(P,O){let G=P.get("suppressGroupChangesColumnVisibility");if(G===!0||O&&G==="suppressHideOnGroup"||!O&&G==="suppressShowOnUngroup")return!1;let j=P.get("suppressRowGroupHidesColumns");if(O&&j===!0)return!1;let Y=P.get("suppressMakeColumnVisibleAfterUnGroup");return!(!O&&Y===!0)},x._getCheckboxes=function(P){var O;return(O=P==null?void 0:P.checkboxes)!=null?O:!0},x._getHeaderCheckbox=function(P){var O;return(P==null?void 0:P.mode)==="multiRow"&&((O=P.headerCheckbox)!=null?O:!0)},x._getCheckboxLocation=function(P){var O;if(typeof P=="object")return(O=P.checkboxLocation)!=null?O:"selectionColumn"},x._getHideDisabledCheckboxes=function(P){var O;return(O=P==null?void 0:P.hideDisabledCheckboxes)!=null?O:!1},x._isUsingNewRowSelectionAPI=function(P){return typeof P.get("rowSelection")!="string"},x._isUsingNewCellSelectionAPI=function(P){return P.get("cellSelection")!==void 0},x._getSuppressMultiRanges=function(P){var G;let O=P.get("cellSelection");return O!==void 0?typeof O!="boolean"&&((G=O==null?void 0:O.suppressMultiRanges)!=null?G:!1):P.get("suppressMultiRangeSelection")},x._isCellSelectionEnabled=function(P){let O=P.get("cellSelection");return O!==void 0?!!O:P.get("enableRangeSelection")},x._getFillHandle=function(P){var G;let O=P.get("cellSelection");return O!==void 0?typeof O!="boolean"&&((G=O.handle)==null?void 0:G.mode)==="fill"?O.handle:void 0:{mode:"fill",setFillValue:P.get("fillOperation"),direction:P.get("fillHandleDirection"),suppressClearOnFillReduction:P.get("suppressClearOnFillReduction")}},x._getEnableSelection=function(P){let O=f(P);return O===!0||O==="enableSelection"},x._getEnableDeselection=function(P){let O=f(P);return O===!0||O==="enableDeselection"},x._getIsRowSelectable=function(P){let O=P.get("rowSelection");return typeof O=="string"?P.get("isRowSelectable"):O==null?void 0:O.isRowSelectable},x._getRowSelectionMode=S,x._isMultiRowSelection=function(P){return S(P)==="multiRow"},x._getEnableSelectionWithoutKeys=function(P){var G;let O=P.get("rowSelection");return typeof O=="string"?P.get("rowMultiSelectWithClick"):(G=O==null?void 0:O.enableSelectionWithoutKeys)!=null?G:!1},x._getGroupSelection=w,x._getSelectAll=function(P,O=!0){let G=P.get("rowSelection");return typeof G!="object"?O?"all":void 0:G.mode==="multiRow"?G.selectAll:"all"},x._getGroupSelectsDescendants=function(P){let O=w(P);return O==="descendants"||O==="filteredDescendants"},x._isSetFilterByDefault=function(P){return P.isModuleRegistered("SetFilter")&&!P.get("suppressSetFilterByDefault")},x._isLegacyMenuEnabled=M,x._isColumnMenuAnchoringEnabled=function(P){return!M(P)},x._areAdditionalColumnMenuItemsEnabled=function(P){return P.get("columnMenu")==="new"},x._getCallbackForEvent=function(P){return!P||P.length<2?P:"on"+P[0].toUpperCase()+P.substring(1)},x._combineAttributesAndGridOptions=function(P,O,G){typeof P!="object"&&(P={});let j=ge({},P);return G.forEach(Y=>{let J=O[Y];J!==void 0&&(j[Y]=J)}),j},x._processOnChange=function(P,O){if(!P)return;let G={},j=!1;if(Object.keys(P).forEach(ne=>{G[ne]=P[ne],j=!0}),!j)return;let Y={type:"gridOptionsChanged",options:G};O.dispatchEvent(Y);let J=ge({type:"componentStateChanged"},G);O.dispatchEvent(J)}},9860:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AbstractHeaderCellComp=void 0;let A=p(8020);class E extends A.Component{constructor(T,b){super(T),this.ctrl=b}getCtrl(){return this.ctrl}}x.AbstractHeaderCellComp=E},3534:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AbstractHeaderCellCtrl=x.DOM_DATA_KEY_HEADER_CTRL=void 0;let A=p(8731),E=p(7274),z=p(2612),T=p(5230),b=p(3507),C=p(2331),d=p(4422),s=p(9853),c=p(1295),h=0;x.DOM_DATA_KEY_HEADER_CTRL="headerCtrl";class g extends A.BeanStub{constructor(S,w){super(),this.column=S,this.rowCtrl=w,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.instanceId=S.getUniqueId()+"-"+h++}postConstruct(){let S=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],S),this.addManagedEventListeners({overlayExclusiveChanged:S})}shouldStopEventPropagation(S){let{headerRowIndex:w,column:M}=this.beans.focusSvc.focusedHeader,P=M.getDefinition(),O=P&&P.suppressHeaderKeyboardEvent;return(0,d._exists)(O)?!!O(this.gos.addGridCommonParams({colDef:P,column:M,headerRowIndex:w,event:S})):!1}getWrapperHasFocus(){return(0,E._getActiveDomElement)(this.beans)===this.eGui}setGui(S,w){this.eGui=S,this.addDomData(w),w.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),w.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(S){let{wrapperElement:w,checkMeasuringCallback:M,compBean:P}=S,{beans:O}=this,G=fe=>{if(!this.isAlive()||!P.isAlive())return;let{paddingTop:xe,paddingBottom:Le,borderBottomWidth:_e,borderTopWidth:Fe}=(0,b._getElementSize)(this.eGui),We=xe+Le+_e+Fe,it=w.offsetHeight+We;if(fe<5){let tt=(0,E._getDocument)(O);if(!tt||!tt.contains(w)||it==0)return void(0,z._requestAnimationFrame)(O,()=>G(fe+1))}this.setColHeaderHeight(this.column,it)},j,Y=!1,J=()=>{let fe=this.column.isAutoHeaderHeight();fe&&!Y&&ne(),!fe&&Y&&ce()},ne=()=>{Y=!0,G(0),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),j=(0,b._observeResize)(this.beans,w,()=>G(0))},ce=()=>{Y=!1,j&&j(),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),j=void 0};J(),P.addDestroyFunc(()=>ce()),P.addManagedListeners(this.column,{widthChanged:()=>Y&&G(0)}),P.addManagedEventListeners({sortChanged:()=>{Y&&window.setTimeout(()=>G(0))}}),M&&M(J)}onDisplayedColumnsChanged(){let{comp:S,column:w,beans:M,eGui:P}=this;S&&w&&P&&((0,c.refreshFirstAndLastStyles)(S,w,M.visibleCols),(0,T._setAriaColIndex)(P,M.visibleCols.getAriaColIndex(w)))}addResizeAndMoveKeyboardListeners(S){S.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){let S=(0,C._isHeaderFocusSuppressed)(this.beans);this.eGui&&(0,b._addOrRemoveAttribute)(this.eGui,"tabindex",S?null:"-1")}onGuiKeyDown(S){var O;let w=(0,E._getActiveDomElement)(this.beans),M=S.key===s.KeyCode.LEFT||S.key===s.KeyCode.RIGHT;if(this.isResizing&&(S.preventDefault(),S.stopImmediatePropagation()),w!==this.eGui||!S.shiftKey&&!S.altKey||((this.isResizing||M)&&(S.preventDefault(),S.stopImmediatePropagation()),!M))return;let P=S.key===s.KeyCode.LEFT!==this.gos.get("enableRtl")?"left":"right";if(S.altKey){this.isResizing=!0,this.resizeMultiplier+=1;let G=this.getViewportAdjustedResizeDiff(S);this.resizeHeader(G,S.shiftKey),(O=this.resizeFeature)==null||O.toggleColumnResizing(!0)}else this.moveHeader(P)}moveHeader(S){var w;(w=this.beans.colMoves)==null||w.moveHeader(S,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(S){let w=this.getResizeDiff(S),{pinnedCols:M}=this.beans;return M?M.getHeaderResizeDiff(w,this.column):w}getResizeDiff(S){let{gos:w,column:M}=this,P=S.key===s.KeyCode.LEFT!==w.get("enableRtl"),O=M.getPinned(),G=w.get("enableRtl");return O&&G!==(O==="right")&&(P=!P),(P?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{var S;(S=this.resizeFeature)==null||S.toggleColumnResizing(!1)},150))}handleKeyDown(S){let w=this.getWrapperHasFocus();switch(S.key){case s.KeyCode.PAGE_DOWN:case s.KeyCode.PAGE_UP:case s.KeyCode.PAGE_HOME:case s.KeyCode.PAGE_END:w&&S.preventDefault()}}addDomData(S){let w=x.DOM_DATA_KEY_HEADER_CTRL,{eGui:M,gos:P}=this;(0,E._setDomData)(P,M,w,this),S.addDestroyFunc(()=>(0,E._setDomData)(P,M,w,null))}focus(S){let{eGui:w}=this;return!!w&&(this.lastFocusEvent=S||null,w.focus(),!0)}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){var S;this.dragSource&&((S=this.beans.dragAndDrop)==null||S.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(S,w,M){let P=S!=null?S:w,{menuSvc:O,gos:G}=this.beans;G.get("preventDefaultOnContextMenu")&&P.preventDefault(),O!=null&&O.isHeaderContextMenuEnabled(M)&&O.showHeaderContextMenu(M,S,w),this.dispatchColumnMouseEvent("columnHeaderContextMenu",M)}dispatchColumnMouseEvent(S,w){this.eventSvc.dispatchEvent({type:S,column:w})}setColHeaderHeight(S,w){if(!S.setAutoHeaderHeight(w))return;let{eventSvc:M}=this;S.isColumn?M.dispatchEvent({type:"columnHeaderHeightChanged",column:S,columns:[S],source:"autosizeColumnHeaderHeight"}):M.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:S,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}}x.AbstractHeaderCellCtrl=g},1906:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderCellComp=void 0;let A=p(5230),E=p(8020),z=p(9860);class T extends z.AbstractHeaderCellComp{constructor(C){super(`<div class="ag-header-cell" role="columnheader">
            <div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
            <div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
        </div>`,C),this.eResize=E.RefPlaceholder,this.eHeaderCompWrapper=E.RefPlaceholder,this.headerCompVersion=0}postConstruct(){let C=this.getGui();var d,s;d="col-id",(s=this.ctrl.column.getColId())!=null&&s!=""?C.setAttribute(d,s):C.removeAttribute(d);let c={setWidth:g=>C.style.width=g,addOrRemoveCssClass:(g,f)=>this.addOrRemoveCssClass(g,f),setAriaSort:g=>g?(0,A._setAriaSort)(C,g):(0,A._removeAriaSort)(C),setUserCompDetails:g=>this.setUserCompDetails(g),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(c,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0);let h=this.ctrl.getSelectAllGui();h&&this.eResize.insertAdjacentElement("afterend",h)}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(C){this.headerCompVersion++;let d=this.headerCompVersion;C.newAgStackInstance().then(s=>this.afterCompCreated(d,s))}afterCompCreated(C,d){C==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=d,this.headerCompGui=d.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(d)}}x.HeaderCellComp=T},260:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderCellCtrl=void 0;let A=p(3789),E=p(2036),z=p(9853),T=p(7274),b=p(2783),C=p(8703),d=p(5230),s=p(3507),c=p(2331),h=p(1772),g=p(1323),f=p(3534),S=p(1295);class w extends f.AbstractHeaderCellCtrl{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}setComp(O,G,j,Y,J){this.comp=O;let{colResize:ne,context:ce,colHover:fe}=this.beans,xe=(0,A.setupCompBean)(this,ce,J);this.setGui(G,xe),this.updateState(),this.setupWidth(xe),this.setupMovingCss(xe),this.setupMenuClass(xe),this.setupSortableClass(xe),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:Y,checkMeasuringCallback:_e=>this.setRefreshFunction("measuring",_e),compBean:xe}),this.addColumnHoverListener(xe),this.setupFilterClass(xe),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(xe),this.setupSelectAll(xe),this.setupUserComp(),this.refreshAria(),ne?this.resizeFeature=xe.createManagedBean(ne.createResizeFeature(this.rowCtrl.pinned,this.column,j,O,this)):(0,s._setDisplayed)(j,!1),fe==null||fe.createHoverFeature(xe,[this.column],G),xe.createManagedBean(new C.SetLeftFeature(this.column,G,this.beans)),xe.createManagedBean(new h.ManagedFocusFeature(G,{shouldStopEventPropagation:_e=>this.shouldStopEventPropagation(_e),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(xe),xe.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],()=>this.refresh()),xe.addManagedListeners(this.column,{colDefChanged:()=>this.refresh()}),xe.addManagedListeners(this.column,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});let Le=()=>this.checkDisplayName();xe.addManagedEventListeners({columnValueChanged:Le,columnRowGroupChanged:Le,columnPivotChanged:Le,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),xe.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(O,G){var j;(j=this.beans.colResize)==null||j.resizeHeader(this.column,O,G)}setupUserComp(){let O=this.lookupUserCompDetails();O&&this.setCompDetails(O)}setCompDetails(O){this.userCompDetails=O,this.comp.setUserCompDetails(O)}lookupUserCompDetails(){let O=this.createParams(),G=this.column.getColDef();return(0,E._getHeaderCompDetails)(this.beans.userCompFactory,G,O)}createParams(){let{menuSvc:O,sortSvc:G,colFilter:j,gos:Y}=this.beans;return Y.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!(O!=null&&O.isHeaderFilterButtonEnabled(this.column)),enableFilterIcon:!!j&&(!this.openFilterEnabled||(0,T._isLegacyMenuEnabled)(this.gos)),showColumnMenu:J=>{O==null||O.showColumnMenu({column:this.column,buttonElement:J,positionBy:"button"})},showColumnMenuAfterMouseClick:J=>{O==null||O.showColumnMenu({column:this.column,mouseEvent:J,positionBy:"mouse"})},showFilter:J=>{O==null||O.showFilterMenu({column:this.column,buttonElement:J,containerType:"columnFilter",positionBy:"button"})},progressSort:J=>{G==null||G.progressSort(this.column,!!J,"uiColumnSorted")},setSort:(J,ne)=>{G==null||G.setSortForColumn(this.column,J,!!ne,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(J,ne)=>{Y.assertModuleRegistered("Tooltip",3),this.setupTooltip(J,ne)}})}setupSelectAll(O){let{selectionSvc:G}=this.beans;G&&(this.selectAllFeature=O.createManagedBean(G.createSelectAllFeature(this.column)),this.selectAllFeature.setComp(this))}getSelectAllGui(){var O;return(O=this.selectAllFeature)==null?void 0:O.getCheckboxGui()}handleKeyDown(O){var G;super.handleKeyDown(O),O.key===z.KeyCode.SPACE&&((G=this.selectAllFeature)==null||G.onSpaceKeyDown(O)),O.key===z.KeyCode.ENTER&&this.onEnterKeyDown(O),O.key===z.KeyCode.DOWN&&O.altKey&&this.showMenuOnKeyPress(O,!1)}onEnterKeyDown(O){var G;O.ctrlKey||O.metaKey?this.showMenuOnKeyPress(O,!0):this.sortable&&((G=this.beans.sortSvc)==null||G.progressSort(this.column,O.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(O,G){let j=this.comp.getUserCompInstance();M(j)&&j.onMenuKeyboardShortcut(G)&&O.preventDefault()}onFocusIn(O){this.eGui.contains(O.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),(0,c._isKeyboardMode)()&&this.setActiveHeader(!0)}onFocusOut(O){this.eGui.contains(O.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(O,G){var j;this.tooltipFeature=(j=this.beans.tooltipSvc)==null?void 0:j.setupHeaderTooltip(this.tooltipFeature,this,O,G)}setupClassesFromColDef(){let O=()=>{let G=this.column.getColDef(),j=(0,S._getHeaderClassesFromColDef)(G,this.gos,this.column,null),Y=this.userHeaderClasses;this.userHeaderClasses=new Set(j),j.forEach(J=>{Y.has(J)?Y.delete(J):this.comp.addOrRemoveCssClass(J,!0)}),Y.forEach(J=>this.comp.addOrRemoveCssClass(J,!1))};this.setRefreshFunction("headerClasses",O),O()}setDragSource(O){var G,j;this.dragSourceElement=O,this.removeDragSource(),O&&this.draggable&&(this.dragSource=(j=(G=this.beans.colMoves)==null?void 0:G.setDragSourceForHeader(O,this.column,this.displayName))!=null?j:null)}updateState(){let{menuSvc:O}=this.beans;this.menuEnabled=!!(O!=null&&O.isColumnMenuInHeaderEnabled(this.column)),this.openFilterEnabled=!!(O!=null&&O.isFilterMenuInHeaderEnabled(this.column)),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(O,G){this.refreshFunctions[O]=G}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),Object.values(this.refreshFunctions).forEach(O=>O())}refreshHeaderComp(){let O=this.lookupUserCompDetails();O&&(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==O.componentClass&&this.attemptHeaderCompRefresh(O.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(O))}attemptHeaderCompRefresh(O){let G=this.comp.getUserCompInstance();return!G||!G.refresh?!1:G.refresh(O)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){let O=this.column.getColDef();return!this.gos.get("suppressMovableColumns")&&!O.suppressMovable&&!O.lockPosition||!!O.enableRowGroup||!!O.enablePivot}setupWidth(O){let G=()=>{let j=this.column.getActualWidth();this.comp.setWidth(`${j}px`)};O.addManagedListeners(this.column,{widthChanged:G}),G()}setupMovingCss(O){let G=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving())};O.addManagedListeners(this.column,{movingChanged:G}),G()}setupMenuClass(O){let G=()=>{this.comp.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())};O.addManagedListeners(this.column,{menuVisibleChanged:G}),G()}setupSortableClass(O){let G=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!this.sortable)};G(),this.setRefreshFunction("updateSortable",G),O.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(O){let G=()=>{let j=this.column.isFilterActive();this.comp.addOrRemoveCssClass("ag-header-cell-filtered",j),this.refreshAria()};O.addManagedListeners(this.column,{filterActiveChanged:G}),G()}setupWrapTextClass(){let O=()=>{let G=!!this.column.getColDef().wrapHeaderText;this.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",G)};O(),this.setRefreshFunction("wrapText",O)}onHeaderHighlightChanged(){let O=this.column.getHighlighted(),G=O===b.ColumnHighlightPosition.Before,j=O===b.ColumnHighlightPosition.After;this.comp.addOrRemoveCssClass("ag-header-highlight-before",G),this.comp.addOrRemoveCssClass("ag-header-highlight-after",j)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){let{eGui:O,column:G,comp:j,beans:Y}=this,J=(0,g.getGroupRowsHeight)(this.beans),ne=J.reduce((_e,Fe)=>_e+Fe,0)===0;if(j.addOrRemoveCssClass("ag-header-parent-hidden",ne),!G.isSpanHeaderHeight())return O.style.removeProperty("top"),O.style.removeProperty("height"),j.addOrRemoveCssClass("ag-header-span-height",!1),void j.addOrRemoveCssClass("ag-header-span-total",!1);let{numberOfParents:ce,isSpanningTotal:fe}=this.column.getColumnGroupPaddingInfo();j.addOrRemoveCssClass("ag-header-span-height",ce>0);let xe=(0,g.getColumnHeaderRowHeight)(Y);if(ce===0)return j.addOrRemoveCssClass("ag-header-span-total",!1),O.style.setProperty("top","0px"),void O.style.setProperty("height",`${xe}px`);j.addOrRemoveCssClass("ag-header-span-total",fe);let Le=0;for(let _e=0;_e<ce;_e++)Le+=J[J.length-1-_e];O.style.setProperty("top",-Le+"px"),O.style.setProperty("height",`${xe+Le}px`)}refreshAriaSort(){var O;if(this.sortable){let G=this.getLocaleTextFunc(),j=((O=this.beans.sortSvc)==null?void 0:O.getDisplaySortForColumn(this.column))||null;this.comp.setAriaSort((0,d._getAriaSortState)(j)),this.setAriaDescriptionProperty("sort",G("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)}refreshAriaMenu(){if(this.menuEnabled){let O=this.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",O("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!(0,T._isLegacyMenuEnabled)(this.gos)){let O=this.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",O("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)}refreshAriaFiltered(){let O=this.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",O("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)}setAriaDescriptionProperty(O,G){G!=null?this.ariaDescriptionProperties.set(O,G):this.ariaDescriptionProperties.delete(O)}announceAriaDescription(){var G;if(!this.eGui.contains((0,T._getActiveDomElement)(this.beans)))return;let O=Array.from(this.ariaDescriptionProperties.keys()).sort((j,Y)=>j==="filter"?-1:Y.charCodeAt(0)-j.charCodeAt(0)).map(j=>this.ariaDescriptionProperties.get(j)).join(". ");(G=this.beans.ariaAnnounce)==null||G.announceValue(O,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(O){var G;(G=this.beans.colHover)==null||G.addHeaderColumnHoverListener(O,this.comp,this.column)}addActiveHeaderMouseListeners(O){let G=j=>this.handleMouseOverChange(j.type==="mouseenter");O.addManagedListeners(this.eGui,{mouseenter:G,mouseleave:G,click:()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column),contextmenu:j=>this.handleContextMenuMouseEvent(j,void 0,this.column)})}handleMouseOverChange(O){this.setActiveHeader(O),this.eventSvc.dispatchEvent({type:O?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(O){this.comp.addOrRemoveCssClass("ag-header-active",O)}getAnchorElementForMenu(O){let G=this.comp.getUserCompInstance();return M(G)?G.getAnchorElementForMenu(O):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}}function M(P){return typeof P.getAnchorElementForMenu=="function"&&typeof P.onMenuKeyboardShortcut=="function"}x.HeaderCellCtrl=w},9270:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderComp=void 0;let A=p(2036),E=p(7274),z=p(3507),T=p(9970),b=p(7766),C=p(8020);class d extends C.Component{constructor(){super(...arguments),this.eFilter=C.RefPlaceholder,this.eFilterButton=C.RefPlaceholder,this.eSortIndicator=C.RefPlaceholder,this.eMenu=C.RefPlaceholder,this.eLabel=C.RefPlaceholder,this.eText=C.RefPlaceholder,this.eSortOrder=C.RefPlaceholder,this.eSortAsc=C.RefPlaceholder,this.eSortDesc=C.RefPlaceholder,this.eSortMixed=C.RefPlaceholder,this.eSortNone=C.RefPlaceholder,this.isLoadingInnerComponent=!1}refresh(c){let h=this.params;return this.params=c,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&c.enableSorting==this.currentSort&&(this.currentSuppressMenuHide==null||this.shouldSuppressMenuHide()==this.currentSuppressMenuHide)&&h.enableFilterButton==c.enableFilterButton&&h.enableFilterIcon==c.enableFilterIcon&&(this.setDisplayName(c),!0)}workOutTemplate(){var f;let{params:c,beans:h}=this,g=(f=c.template)!=null?f:`<div class="ag-cell-label-container" role="presentation">
        <span data-ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>
        <span data-ref="eFilterButton" class="ag-header-icon ag-header-cell-filter-button" aria-hidden="true"></span>
        <div data-ref="eLabel" class="ag-header-cell-label" role="presentation">
            <span data-ref="eText" class="ag-header-cell-text"></span>
            <span data-ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>
            ${h.sortSvc?'<ag-sort-indicator data-ref="eSortIndicator"></ag-sort-indicator>':""}
        </div>
    </div>`;return g!=null&&g.trim?g.trim():g}init(c){this.params=c;let{sortSvc:h,touchSvc:g,userCompFactory:f}=this.beans;this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate,h?[h.getSortIndicatorSelector()]:void 0),g==null||g.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(f,c),this.setDisplayName(c)}workOutInnerHeaderComponent(c,h){let g=(0,A._getInnerHeaderCompDetails)(c,h,h);g&&(this.isLoadingInnerComponent=!0,g.newAgStackInstance().then(f=>{this.isLoadingInnerComponent=!1,f&&(this.isAlive()?(this.innerHeaderComponent=f,this.eText.appendChild(f.getGui())):this.destroyBean(f))}))}setDisplayName(c){let{displayName:h}=c,g=this.currentDisplayName;if(this.currentDisplayName=h,g===h||this.innerHeaderComponent||this.isLoadingInnerComponent)return;let f=(0,b._escapeString)(h,!0);this.eText.innerText=f}addInIcon(c,h,g){if(h==null)return;let f=(0,T._createIconNoSpan)(c,this.beans,g);f&&h.appendChild(f)}workOutShowMenu(){var c;return this.params.enableMenu&&!!((c=this.beans.menuSvc)!=null&&c.isHeaderMenuButtonEnabled())}shouldSuppressMenuHide(){var c;return!!((c=this.beans.menuSvc)!=null&&c.isHeaderMenuButtonAlwaysShowEnabled())}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return(0,z._removeFromParent)(this.eMenu),void(this.eMenu=void 0);let{gos:c,eMenu:h,params:g,currentSuppressMenuHide:f}=this,S=(0,E._isLegacyMenuEnabled)(c);this.addInIcon(S?"menu":"menuAlt",h,g.column),h.classList.toggle("ag-header-menu-icon",!S),this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedElementListeners(h,{click:()=>g.showColumnMenu(h)}),h.classList.toggle("ag-header-menu-always-show",f)}onMenuKeyboardShortcut(c){var O,G,j;let{params:h,gos:g,beans:f,eMenu:S,eFilterButton:w}=this,M=h.column,P=(0,E._isLegacyMenuEnabled)(g);if(c&&!P){if((O=f.menuSvc)!=null&&O.isFilterMenuInHeaderEnabled(M))return h.showFilter((G=w!=null?w:S)!=null?G:this.getGui()),!0}else if(h.enableMenu)return h.showColumnMenu((j=S!=null?S:w)!=null?j:this.getGui()),!0;return!1}setupSort(){let{sortSvc:c}=this.beans;if(!c)return;let{enableSorting:h,column:g}=this.params;if(this.currentSort=h,!this.eSortIndicator){this.eSortIndicator=this.createBean(c.createSortIndicator(!0));let{eSortIndicator:f,eSortOrder:S,eSortAsc:w,eSortDesc:M,eSortMixed:P,eSortNone:O}=this;f.attachCustomElements(S,w,M,P,O)}this.eSortIndicator.setupSort(g),this.currentSort&&c.setupHeader(this,g,this.eLabel)}setupFilterIcon(){let{eFilter:c,params:h}=this;c&&this.configureFilter(h.enableFilterIcon,c,this.onFilterChangedIcon.bind(this),"filterActive")}setupFilterButton(){let{eFilterButton:c,params:h}=this;c&&(this.configureFilter(h.enableFilterButton,c,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(c,{click:()=>h.showFilter(c)}):this.eFilterButton=void 0)}configureFilter(c,h,g,f){if(!c)return(0,z._removeFromParent)(h),!1;let S=this.params.column;return this.addInIcon(f,h,S),this.addManagedListeners(S,{filterChanged:g}),g(),!0}onFilterChangedIcon(){let c=this.params.column.isFilterActive();(0,z._setDisplayed)(this.eFilter,c,{skipAriaHidden:!0})}onFilterChangedButton(){let c=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",c)}getAnchorElementForMenu(c){var f,S;let{eFilterButton:h,eMenu:g}=this;return c?(f=h!=null?h:g)!=null?f:this.getGui():(S=g!=null?g:h)!=null?S:this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent&&(this.destroyBean(this.innerHeaderComponent),this.innerHeaderComponent=void 0)}}x.HeaderComp=d},4312:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GroupWidthFeature=void 0;let A=p(8731);class E extends A.BeanStub{constructor(T,b){super(),this.removeChildListenersFuncs=[],this.columnGroup=b,this.comp=T}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();let T=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(b=>{b.addEventListener("widthChanged",T),b.addEventListener("visibleChanged",T),this.removeChildListenersFuncs.push(()=>{b.removeEventListener("widthChanged",T),b.removeEventListener("visibleChanged",T)})})}removeListenersOnChildrenColumns(){this.removeChildListenersFuncs.forEach(T=>T()),this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){let T=this.columnGroup.getActualWidth();this.comp.setWidth(`${T}px`),this.comp.addOrRemoveCssClass("ag-hidden",T===0)}}x.GroupWidthFeature=E},7746:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderGroupCellComp=void 0;let A=p(3507),E=p(8020),z=p(9860);class T extends z.AbstractHeaderCellComp{constructor(C){super(`<div class="ag-header-group-cell" role="columnheader">
            <div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
            <div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
        </div>`,C),this.eResize=E.RefPlaceholder,this.eHeaderCompWrapper=E.RefPlaceholder}postConstruct(){let C=this.getGui();C.setAttribute("col-id",this.ctrl.column.getUniqueId());let d={addOrRemoveCssClass:(s,c)=>this.addOrRemoveCssClass(s,c),setHeaderWrapperHidden:s=>{s?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:s=>{s!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${s}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",s!=null)},setResizableDisplayed:s=>(0,A._setDisplayed)(this.eResize,s),setWidth:s=>C.style.width=s,setAriaExpanded:s=>{return c="aria-expanded",(h=s)!=null?C.setAttribute(c,h):C.removeAttribute(c);var c,h},setUserCompDetails:s=>this.setUserCompDetails(s),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(d,C,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(C){C.newAgStackInstance().then(d=>this.afterHeaderCompCreated(d))}afterHeaderCompCreated(C){let d=()=>this.destroyBean(C);if(!this.isAlive())return void d();let s=this.getGui(),c=C.getGui();this.eHeaderCompWrapper.appendChild(c),this.addDestroyFunc(d),this.headerGroupComp=C,this.ctrl.setDragSource(s)}addOrRemoveHeaderWrapperStyle(C,d){let{eHeaderCompWrapper:s}=this;d?s.style.setProperty(C,d):s.style.removeProperty(C)}}x.HeaderGroupCellComp=T},84:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderGroupCellCtrl=void 0;let A=p(3789),E=p(2036),z=p(9853),T=p(2783),b=p(8703),C=p(1502),d=p(1772),s=p(3534),c=p(1295),h=p(4312);class g extends s.AbstractHeaderCellCtrl{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}setComp(S,w,M,P,O){let{column:G,beans:j}=this,{context:Y,colNames:J,colHover:ne,colResize:ce}=j;this.comp=S,O=(0,A.setupCompBean)(this,Y,O),this.setGui(w,O),this.displayName=J.getDisplayNameForColumnGroup(G,"header"),this.addClasses(),this.setupMovingCss(O),this.setupExpandable(O),this.setupTooltip(),this.setupAutoHeight({wrapperElement:P,compBean:O}),this.setupUserComp(),this.addHeaderMouseListeners(O),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();let fe=this.rowCtrl.pinned,xe=G.getProvidedColumnGroup().getLeafColumns();ne==null||ne.createHoverFeature(O,xe,w),O.createManagedBean(new b.SetLeftFeature(G,w,j)),O.createManagedBean(new h.GroupWidthFeature(S,G)),ce?this.resizeFeature=O.createManagedBean(ce.createGroupResizeFeature(S,M,fe,G)):S.setResizableDisplayed(!1),O.createManagedBean(new d.ManagedFocusFeature(w,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(O,xe),O.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(O),O.addDestroyFunc(()=>this.clearComponent())}refreshMaxHeaderHeight(){let{gos:S,comp:w}=this,M=S.get("groupHeaderHeight");M!=null?M===0?w.setHeaderWrapperHidden(!0):w.setHeaderWrapperMaxHeight(M):(w.setHeaderWrapperHidden(!1),w.setHeaderWrapperMaxHeight(null))}addHighlightListeners(S,w){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(let M of w)S.addManagedListeners(M,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,M)})}onLeafColumnHighlightChanged(S){let w=this.column.getDisplayedLeafColumns(),M=w[0]===S,P=(0,C._last)(w)===S;if(!M&&!P)return;let O=S.getHighlighted(),G=!1,j=!1;if(this.rowCtrl.findHeaderCellCtrl(Y=>Y.column.isMoving())){let Y=this.beans.gos.get("enableRtl"),J=O===T.ColumnHighlightPosition.After,ne=O===T.ColumnHighlightPosition.Before;M&&(Y?j=J:G=ne),P&&(Y?G=ne:j=J)}this.comp.addOrRemoveCssClass("ag-header-highlight-before",G),this.comp.addOrRemoveCssClass("ag-header-highlight-after",j)}resizeHeader(S,w){let{resizeFeature:M}=this;if(!M)return;let P=M.getInitialValues(w);M.resizeColumns(P,P.resizeStartWidth+S,"uiColumnResized",!0)}resizeLeafColumnsToFit(S){var w;(w=this.resizeFeature)==null||w.resizeLeafColumnsToFit(S)}setupUserComp(){let{colGroupSvc:S,userCompFactory:w,gos:M}=this.beans,P=M.addGridCommonParams({displayName:this.displayName,columnGroup:this.column,setExpanded:G=>{S.setColumnGroupOpened(this.column.getProvidedColumnGroup(),G,"gridInitializing")},setTooltip:(G,j)=>{M.assertModuleRegistered("Tooltip",3),this.setupTooltip(G,j)}}),O=(0,E._getHeaderGroupCompDetails)(w,P);O&&this.comp.setUserCompDetails(O)}addHeaderMouseListeners(S){let w=M=>this.handleMouseOverChange(M.type==="mouseenter");S.addManagedListeners(this.eGui,{mouseenter:w,mouseleave:w,click:()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column.getProvidedColumnGroup()),contextmenu:M=>this.handleContextMenuMouseEvent(M,void 0,this.column.getProvidedColumnGroup())})}handleMouseOverChange(S){this.eventSvc.dispatchEvent({type:S?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(S,w){var M;this.tooltipFeature=(M=this.beans.tooltipSvc)==null?void 0:M.setupHeaderGroupTooltip(this.tooltipFeature,this,S,w)}setupExpandable(S){let w=this.column.getProvidedColumnGroup();this.refreshExpanded();let M=this.refreshExpanded.bind(this);S.addManagedListeners(w,{expandedChanged:M,expandableChanged:M})}refreshExpanded(){let{column:S}=this;this.expandable=S.isExpandable();let w=S.isExpanded();this.expandable?this.comp.setAriaExpanded(w?"true":"false"):this.comp.setAriaExpanded(void 0)}addClasses(){let{column:S}=this,w=S.getColGroupDef(),M=(0,c._getHeaderClassesFromColDef)(w,this.gos,null,S);S.isPadding()?(M.push("ag-header-group-cell-no-group"),S.getLeafColumns().every(P=>P.isSpanHeaderHeight())&&M.push("ag-header-span-height")):(M.push("ag-header-group-cell-with-group"),w!=null&&w.wrapHeaderText&&M.push("ag-header-cell-wrap-text")),M.forEach(P=>this.comp.addOrRemoveCssClass(P,!0))}setupMovingCss(S){let{column:w}=this,M=w.getProvidedColumnGroup().getLeafColumns(),P=()=>this.comp.addOrRemoveCssClass("ag-header-cell-moving",w.isMoving());M.forEach(O=>{S.addManagedListeners(O,{movingChanged:P})}),P()}onFocusIn(S){this.eGui.contains(S.relatedTarget)||this.focusThis()}handleKeyDown(S){super.handleKeyDown(S);let w=this.getWrapperHasFocus();if(this.expandable&&w&&S.key===z.KeyCode.ENTER){let M=this.column,P=!M.isExpanded();this.beans.colGroupSvc.setColumnGroupOpened(M.getProvidedColumnGroup(),P,"uiColumnExpanded")}}setDragSource(S){var w,M;this.isAlive()&&!this.isSuppressMoving()&&(this.removeDragSource(),S&&(this.dragSource=(M=(w=this.beans.colMoves)==null?void 0:w.setDragSourceForHeader(S,this.column,this.displayName))!=null?M:null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(S=>S.getColDef().suppressMovable||S.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}}x.HeaderGroupCellCtrl=g},4998:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderGroupComp=void 0;let A=p(2036),E=p(3507),z=p(2979),T=p(4422),b=p(9970),C=p(7766),d=p(7764),s=p(8020);class c extends s.Component{constructor(){super(`<div class="ag-header-group-cell-label" role="presentation">
            <span data-ref="agLabel" class="ag-header-group-text" role="presentation"></span>
            <span data-ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>
            <span data-ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>
        </div>`),this.agOpened=s.RefPlaceholder,this.agClosed=s.RefPlaceholder,this.agLabel=s.RefPlaceholder,this.isLoadingInnerComponent=!1}init(g){let{userCompFactory:f}=this.beans;this.params=g,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(f,g),this.setupLabel(g),this.addGroupExpandIcon(g),this.setupExpandIcons()}checkWarnings(){this.params.template&&(0,d._warn)(89)}workOutInnerHeaderGroupComponent(g,f){let S=(0,A._getInnerHeaderGroupCompDetails)(g,f,f);S&&(this.isLoadingInnerComponent=!0,S.newAgStackInstance().then(w=>{this.isLoadingInnerComponent=!1,w&&(this.isAlive()?(this.innerHeaderGroupComponent=w,this.agLabel.appendChild(w.getGui())):this.destroyBean(w))}))}setupExpandIcons(){let{agOpened:g,agClosed:f,params:{columnGroup:S},beans:w}=this;this.addInIcon("columnGroupOpened",g),this.addInIcon("columnGroupClosed",f);let M=j=>{if((0,z._isStopPropagationForAgGrid)(j))return;let Y=!S.isExpanded();w.colGroupSvc.setColumnGroupOpened(S.getProvidedColumnGroup(),Y,"uiColumnExpanded")};this.addTouchAndClickListeners(w,f,M),this.addTouchAndClickListeners(w,g,M);let P=j=>{(0,z._stopPropagationForAgGrid)(j)};this.addManagedElementListeners(f,{dblclick:P}),this.addManagedElementListeners(g,{dblclick:P}),this.addManagedElementListeners(this.getGui(),{dblclick:M}),this.updateIconVisibility();let O=S.getProvidedColumnGroup(),G=this.updateIconVisibility.bind(this);this.addManagedListeners(O,{expandedChanged:G,expandableChanged:G})}addTouchAndClickListeners(g,f,S){var w;(w=g.touchSvc)==null||w.setupForHeaderGroup(this,f,S),this.addManagedElementListeners(f,{click:S})}updateIconVisibility(){let{agOpened:g,agClosed:f,params:{columnGroup:S}}=this;if(S.isExpandable()){let w=S.isExpanded();(0,E._setDisplayed)(g,w),(0,E._setDisplayed)(f,!w)}else(0,E._setDisplayed)(g,!1),(0,E._setDisplayed)(f,!1)}addInIcon(g,f){let S=(0,b._createIconNoSpan)(g,this.beans,null);S&&f.appendChild(S)}addGroupExpandIcon(g){if(!g.columnGroup.isExpandable()){let{agOpened:f,agClosed:S}=this;return(0,E._setDisplayed)(f,!1),void(0,E._setDisplayed)(S,!1)}}setupLabel(g){var M;let{displayName:f,columnGroup:S}=g,w=this.innerHeaderGroupComponent||this.isLoadingInnerComponent;if((0,T._exists)(f)&&!w){let P=(0,C._escapeString)(f,!0);this.agLabel.textContent=P}this.addOrRemoveCssClass("ag-sticky-label",!((M=S.getColGroupDef())!=null&&M.suppressStickyLabel))}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}}x.HeaderGroupComp=c},1295:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.refreshFirstAndLastStyles=x._getToolPanelClassesFromColDef=x._getHeaderClassesFromColDef=void 0;let A=p(4422);function E(z,T,b,C,d){if((0,A._missing)(z))return[];let s;if(typeof z=="function"){let c=function(h,g,f,S){return g.addGridCommonParams({colDef:h,column:f,columnGroup:S})}(T,b,C,d);s=z(c)}else s=z;return typeof s=="string"?[s]:Array.isArray(s)?[...s]:[]}x._getHeaderClassesFromColDef=function(z,T,b,C){return(0,A._missing)(z)?[]:E(z.headerClass,z,T,b,C)},x._getToolPanelClassesFromColDef=function(z,T,b,C){return(0,A._missing)(z)?[]:E(z.toolPanelClass,z,T,b,C)},x.refreshFirstAndLastStyles=function(z,T,b){z.addOrRemoveCssClass("ag-column-first",b.isColAtEdge(T,"first")),z.addOrRemoveCssClass("ag-column-last",b.isColAtEdge(T,"last"))}},3290:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderFilterCellComp=void 0;let A=p(3507),E=p(8020),z=p(9860);class T extends z.AbstractHeaderCellComp{constructor(C){super(`<div class="ag-header-cell ag-floating-filter" role="gridcell">
            <div data-ref="eFloatingFilterBody" role="presentation"></div>
            <div class="ag-floating-filter-button ag-hidden" data-ref="eButtonWrapper" role="presentation">
                <button type="button" class="ag-button ag-floating-filter-button-button" data-ref="eButtonShowMainFilter" tabindex="-1"></button>
            </div>
        </div>`,C),this.eFloatingFilterBody=E.RefPlaceholder,this.eButtonWrapper=E.RefPlaceholder,this.eButtonShowMainFilter=E.RefPlaceholder}postConstruct(){let C=this.getGui(),d={addOrRemoveCssClass:(s,c)=>this.addOrRemoveCssClass(s,c),addOrRemoveBodyCssClass:(s,c)=>this.eFloatingFilterBody.classList.toggle(s,c),setButtonWrapperDisplayed:s=>(0,A._setDisplayed)(this.eButtonWrapper,s),setCompDetails:s=>this.setCompDetails(s),getFloatingFilterComp:()=>this.compPromise,setWidth:s=>C.style.width=s,setMenuIcon:s=>this.eButtonShowMainFilter.appendChild(s)};this.ctrl.setComp(d,C,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(C){if(!C)return this.destroyFloatingFilterComp(),void(this.compPromise=null);this.compPromise=C.newAgStackInstance(),this.compPromise.then(d=>this.afterCompCreated(d))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(C){C&&(this.isAlive()?(this.destroyFloatingFilterComp(),this.floatingFilterComp=C,this.eFloatingFilterBody.appendChild(C.getGui()),C.afterGuiAttached&&C.afterGuiAttached()):this.destroyBean(C))}}x.HeaderFilterCellComp=T},3868:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderFilterCellCtrl=void 0;let A=p(3789),E=p(9853),z=p(7274),T=p(8703),b=p(5230),C=p(3507),d=p(2331),s=p(9970),c=p(1772),h=p(3534);class g extends h.AbstractHeaderCellCtrl{constructor(){super(...arguments),this.iconCreated=!1}setComp(S,w,M,P,O){this.comp=S;let G=(0,A.setupCompBean)(this,this.beans.context,O);this.eButtonShowMainFilter=M,this.eFloatingFilterBody=P,this.setGui(w,G),this.setupActive(),this.setupWidth(G),this.setupLeft(G),this.setupHover(G),this.setupFocus(G),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(G),this.setupUi(),G.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(G),G.addManagedListeners(this.column,{colDefChanged:()=>this.onColDefChanged(G)}),G.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}setupActive(){let S=this.column.getColDef(),w=!!S.filter,M=!!S.floatingFilter;this.active=w&&M}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;let S=(0,s._createIconNoSpan)("filter",this.beans,this.column);S&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(S))}setupFocus(S){S.createManagedBean(new c.ManagedFocusFeature(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){let S=this.getLocaleTextFunc();(0,b._setAriaLabel)(this.eButtonShowMainFilter,S("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(S){var O;let{beans:w}=this;if((0,z._getActiveDomElement)(w)===this.eGui)return;let M=(0,d._findNextFocusableElement)(w,this.eGui,null,S.shiftKey);if(M)return(O=w.headerNavigation)==null||O.scrollToColumn(this.column),S.preventDefault(),void M.focus();let P=this.findNextColumnWithFloatingFilter(S.shiftKey);P&&w.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:P},event:S})&&S.preventDefault()}findNextColumnWithFloatingFilter(S){let w=this.beans.visibleCols,M=this.column;do if(M=S?w.getColBefore(M):w.getColAfter(M),!M)break;while(!M.getColDef().filter||!M.getColDef().floatingFilter);return M}handleKeyDown(S){super.handleKeyDown(S);let w=this.getWrapperHasFocus();switch(S.key){case E.KeyCode.UP:case E.KeyCode.DOWN:w||S.preventDefault();case E.KeyCode.LEFT:case E.KeyCode.RIGHT:if(w)return;S.stopPropagation();case E.KeyCode.ENTER:w&&(0,d._focusInto)(this.eGui)&&S.preventDefault();break;case E.KeyCode.ESCAPE:w||this.eGui.focus()}}onFocusIn(S){if(this.eGui.contains(S.relatedTarget))return;let w=!!S.relatedTarget&&!S.relatedTarget.classList.contains("ag-floating-filter"),M=!!S.relatedTarget&&(0,C._isElementChildOfClass)(S.relatedTarget,"ag-floating-filter");if(w&&M&&S.target===this.eGui){let P=this.lastFocusEvent,O=!(!P||P.key!==E.KeyCode.TAB);if(P&&O){let G=P.shiftKey;(0,d._focusInto)(this.eGui,G)}}this.focusThis()}setupHover(S){var w;(w=this.beans.colHover)==null||w.addHeaderFilterColumnHoverListener(S,this.comp,this.column,this.eGui)}setupLeft(S){let w=new T.SetLeftFeature(this.column,this.eGui,this.beans);S.createManagedBean(w)}setupFilterButton(){var S;this.suppressFilterButton=!((S=this.beans.menuSvc)!=null&&S.isFloatingFilterButtonEnabled(this.column)),this.highlightFilterButtonWhenActive=!(0,z._isLegacyMenuEnabled)(this.gos)}setupUserComp(){var w;if(!this.active)return;let S=(w=this.beans.filterManager)==null?void 0:w.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());S&&this.setCompDetails(S)}setCompDetails(S){this.userCompDetails=S,this.comp.setCompDetails(S)}showParentFilter(){var w;let S=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;(w=this.beans.menuSvc)==null||w.showFilterMenu({column:this.column,buttonElement:S,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(S){if(!this.active)return;let{filterManager:w}=this.beans,M=P=>{if((P==null?void 0:P.source)==="filterDestroyed"&&!this.isAlive())return;let O=this.comp.getFloatingFilterComp();O&&O.then(G=>{var j;if(G){let Y=w==null?void 0:w.getCurrentFloatingFilterParentModel(this.column),J=P?He(ge({},P),{columns:(j=P.columns)!=null?j:[],source:P.source==="api"?"api":"columnFilter"}):null;G.onParentModelChanged(Y,J)}})};[this.destroySyncListener]=S.addManagedListeners(this.column,{filterChanged:M}),w!=null&&w.isFilterActive(this.column)&&M(null)}setupWidth(S){let w=()=>{let M=`${this.column.getActualWidth()}px`;this.comp.setWidth(M)};S.addManagedListeners(this.column,{widthChanged:w}),w()}setupFilterChangedListener(S){this.active&&([this.destroyFilterChangedListener]=S.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){var S;if(!this.suppressFilterButton&&this.comp){let w=!!((S=this.beans.filterManager)!=null&&S.isFilterAllowed(this.column));this.comp.setButtonWrapperDisplayed(w),this.highlightFilterButtonWhenActive&&w&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(S){var G;let w=this.active;this.setupActive();let M=!w&&this.active;w&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());let P=this.active?(G=this.beans.filterManager)==null?void 0:G.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,O=this.comp.getFloatingFilterComp();O&&P?O.then(j=>{var Y,J;!j||(J=this.beans.filterManager)!=null&&J.areFilterCompsDifferent((Y=this.userCompDetails)!=null?Y:null,P)?this.updateCompDetails(S,P,M):this.updateFloatingFilterParams(P)}):this.updateCompDetails(S,P,M)}updateCompDetails(S,w,M){this.isAlive()&&(this.setCompDetails(w),this.setupFilterButton(),this.setupUi(),M&&(this.setupSyncWithFilter(S),this.setupFilterChangedListener(S)))}updateFloatingFilterParams(S){var M;if(!S)return;let w=S.params;(M=this.comp.getFloatingFilterComp())==null||M.then(P=>{P!=null&&P.refresh&&typeof P.refresh=="function"&&P.refresh(w)})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}}x.HeaderFilterCellCtrl=g},8078:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnGroupHeaderCompModule=x.ColumnHeaderCompModule=void 0;let A=p(7205),E=p(9270),z=p(4998);x.ColumnHeaderCompModule={moduleName:"ColumnHeaderComp",version:A.VERSION,userComponents:{agColumnHeader:E.HeaderComp},icons:{menu:"menu",menuAlt:"menu-alt"}},x.ColumnGroupHeaderCompModule={moduleName:"ColumnGroupHeaderComp",version:A.VERSION,userComponents:{agColumnGroupHeader:z.HeaderGroupComp},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}}},8791:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridHeaderSelector=x.GridHeaderComp=void 0;let A=p(8020),E=p(9),z=p(7260);class T extends A.Component{constructor(){super('<div class="ag-header" role="presentation"/>')}postConstruct(){let C={addOrRemoveCssClass:(s,c)=>this.addOrRemoveCssClass(s,c),setHeightAndMinHeight:s=>{this.getGui().style.height=s,this.getGui().style.minHeight=s}};this.createManagedBean(new E.GridHeaderCtrl).setComp(C,this.getGui(),this.getFocusableElement());let d=s=>{this.createManagedBean(s),this.appendChild(s)};d(new z.HeaderRowContainerComp("left")),d(new z.HeaderRowContainerComp(null)),d(new z.HeaderRowContainerComp("right"))}}x.GridHeaderComp=T,x.GridHeaderSelector={selector:"AG-HEADER-ROOT",component:T}},9:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridHeaderCtrl=void 0;let A=p(9853),E=p(8731),z=p(7274),T=p(2612),b=p(2331),C=p(4422),d=p(1772),s=p(1323);class c extends E.BeanStub{setComp(g,f,S){this.comp=g,this.eGui=f;let{beans:w}=this,{headerNavigation:M,touchSvc:P,ctrlsSvc:O}=w;M&&this.createManagedBean(new d.ManagedFocusFeature(S,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,w),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,w)}),this.onPivotModeChanged(w),this.setupHeaderHeight();let G=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:G}),P==null||P.mockHeaderContextMenu(this,G),O.register("gridHeaderCtrl",this)}setupHeaderHeight(){let g=this.setHeaderHeight.bind(this);g(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],g),this.addManagedEventListeners({displayedColumnsChanged:g,columnHeaderHeightChanged:g,columnGroupHeaderHeightChanged:()=>(0,T._requestAnimationFrame)(this.beans,()=>g()),gridStylesChanged:g,advancedFilterEnabledChanged:g})}setHeaderHeight(){var P;let{beans:g}=this,f=0,S=(0,s.getGroupRowsHeight)(g).reduce((O,G)=>O+G,0),w=(0,s.getColumnHeaderRowHeight)(g);if((P=g.filterManager)!=null&&P.hasFloatingFilters()&&(f+=(0,s.getFloatingFiltersHeight)(g)),f+=S,f+=w,this.headerHeight===f)return;this.headerHeight=f;let M=`${f+1}px`;this.comp.setHeightAndMinHeight(M),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(g){let f=g.colModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",f),this.comp.addOrRemoveCssClass("ag-pivot-off",!f)}onDisplayedColumnsChanged(g){let f=g.visibleCols.allCols.some(S=>S.isSpanHeaderHeight());this.comp.addOrRemoveCssClass("ag-header-allow-overflow",f)}onTabKeyDown(g){let f=this.gos.get("enableRtl"),S=g.shiftKey,w=S!==f?"LEFT":"RIGHT",{beans:M}=this,{headerNavigation:P,focusSvc:O}=M;(P.navigateHorizontally(w,!0,g)||!S&&O.focusOverlay(!1)||(0,b._focusNextGridCoreContainer)(M,S,!0))&&g.preventDefault()}handleKeyDown(g){let f=null,{headerNavigation:S}=this.beans;switch(g.key){case A.KeyCode.LEFT:f="LEFT";case A.KeyCode.RIGHT:(0,C._exists)(f)||(f="RIGHT"),S.navigateHorizontally(f,!1,g)&&g.preventDefault();break;case A.KeyCode.UP:f="UP";case A.KeyCode.DOWN:(0,C._exists)(f)||(f="DOWN"),S.navigateVertically(f,null,g)&&g.preventDefault();break;default:return}}onFocusOut(g){let{relatedTarget:f}=g,{eGui:S,beans:w}=this;!f&&S.contains((0,z._getActiveDomElement)(w))||S.contains(f)||(w.focusSvc.focusedHeader=null)}onHeaderContextMenu(g,f,S){var O;let{menuSvc:w,ctrlsSvc:M}=this.beans;if(!g&&!S||!(w!=null&&w.isHeaderContextMenuEnabled()))return;let{target:P}=g!=null?g:f;P!==this.eGui&&P!==((O=M.getHeaderRowContainerCtrl())==null?void 0:O.eViewport)||w.showHeaderContextMenu(void 0,g,S)}}x.GridHeaderCtrl=c},1323:function(ae,x){function p(z,T){let b=z.colModel.isPivotMode()?function(s){var c;return(c=s.gos.get("pivotGroupHeaderHeight"))!=null?c:E(s)}(z):E(z),C=0,d=T.getHeaderCtrls();for(let s of d){let{column:c}=s;if(c.isAutoHeaderHeight()){let h=c.getAutoHeaderHeight();h!=null&&h>C&&(C=h)}}return Math.max(b,C)}function A(z){var T;return(T=z.gos.get("headerHeight"))!=null?T:z.environment.getDefaultHeaderHeight()}function E(z){var T;return(T=z.gos.get("groupHeaderHeight"))!=null?T:A(z)}Object.defineProperty(x,"__esModule",{value:!0}),x.getFloatingFiltersHeight=x.getHeaderHeight=x.getColumnHeaderRowHeight=x.getGroupRowsHeight=x.getFocusHeaderRowCount=x.getHeaderRowCount=void 0,x.getHeaderRowCount=function(z){return z.cols?z.cols.treeDepth+1:-1},x.getFocusHeaderRowCount=function(z){var T,b;return(b=(T=z.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:T.getRowCount())!=null?b:0},x.getGroupRowsHeight=function(z){let T=[],b=z.ctrlsSvc.getHeaderRowContainerCtrls();for(let C of b){if(!C)continue;let d=C.getGroupRowCount()||0;for(let s=0;s<d;s++){let c=C.getGroupRowCtrlAtIndex(s),h=T[s];if(c){let g=p(z,c);(h==null||g>h)&&(T[s]=g)}}}return T},x.getColumnHeaderRowHeight=function(z){let T=z.colModel.isPivotMode()?function(C){var d;return(d=C.gos.get("pivotHeaderHeight"))!=null?d:A(C)}(z):A(z),b=z.visibleCols.allCols.filter(C=>C.isAutoHeaderHeight()).map(C=>C.getAutoHeaderHeight()||0);return Math.max(T,...b)},x.getHeaderHeight=A,x.getFloatingFiltersHeight=function(z){var T;return(T=z.gos.get("floatingFiltersHeight"))!=null?T:A(z)}},8866:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderRowComp=void 0;let A=p(5230),E=p(3507),z=p(8020),T=p(1906),b=p(7746),C=p(3290);class d extends z.Component{constructor(c){super(),this.headerComps={},this.ctrl=c,this.setTemplate(`<div class="${this.ctrl.headerRowClass}" role="row"></div>`)}postConstruct(){(0,A._setAriaRowIndex)(this.getGui(),this.ctrl.getAriaRowIndex());let c={setHeight:h=>this.getGui().style.height=h,setTop:h=>this.getGui().style.top=h,setHeaderCtrls:(h,g)=>this.setHeaderCtrls(h,g),setWidth:h=>this.getGui().style.width=h};this.ctrl.setComp(c,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(c,h){if(!this.isAlive())return;let g=this.headerComps;if(this.headerComps={},c.forEach(f=>{let S=f.instanceId,w=g[S];delete g[S],w==null&&(w=this.createHeaderComp(f),this.getGui().appendChild(w.getGui())),this.headerComps[S]=w}),Object.values(g).forEach(f=>{this.getGui().removeChild(f.getGui()),this.destroyBean(f)}),h){let f=Object.values(this.headerComps);f.sort((w,M)=>w.getCtrl().column.getLeft()-M.getCtrl().column.getLeft());let S=f.map(w=>w.getGui());(0,E._setDomChildOrder)(this.getGui(),S)}}createHeaderComp(c){let h;switch(this.ctrl.type){case"group":h=new b.HeaderGroupCellComp(c);break;case"filter":h=new C.HeaderFilterCellComp(c);break;default:h=new T.HeaderCellComp(c)}return this.createBean(h),h.setParentComponent(this),h}}x.HeaderRowComp=d},2868:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderRowCtrl=void 0;let A=p(3789),E=p(8731),z=p(7274),T=p(260),b=p(1323),C=0;class d extends E.BeanStub{constructor(c,h,g){super(),this.rowIndex=c,this.pinned=h,this.type=g,this.instanceId=C++;let f=g=="group"?"ag-header-row-column-group":g=="filter"?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${f}`}postConstruct(){this.isPrintLayout=(0,z._isDomLayout)(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return!!this.comp&&this.getHeaderCellCtrls().every(c=>c.eGui!=null)}setComp(c,h,g=!0){this.comp=c,h=(0,A.setupCompBean)(this,this.beans.context,h),g&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(h)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(c){let h=this.onRowHeightChanged.bind(this);c.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:g=>this.onVirtualColumnsChanged(g.afterScroll),columnGroupHeaderHeightChanged:h,columnHeaderHeightChanged:h,gridStylesChanged:h,advancedFilterEnabledChanged:h}),c.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),c.addManagedPropertyListener("ensureDomOrder",g=>this.isEnsureDomOrder=g.currentValue),c.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],h)}getHeaderCellCtrl(c){if(this.headerCellCtrls){for(let h of this.headerCellCtrls.values())if(h.column===c)return h}}onDisplayedColumnsChanged(){this.isPrintLayout=(0,z._isDomLayout)(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){let c=this.getWidthForRow();this.comp.setWidth(`${c}px`)}getWidthForRow(){let{visibleCols:c}=this.beans;return this.isPrintLayout?this.pinned!=null?0:c.getContainerWidth("right")+c.getContainerWidth("left")+c.getContainerWidth(null):c.getContainerWidth(this.pinned)}onRowHeightChanged(){let{topOffset:c,rowHeight:h}=this.getTopAndHeight();this.comp.setTop(c+"px"),this.comp.setHeight(h+"px")}getTopAndHeight(){let{filterManager:c}=this.beans,h=[],g=(0,b.getGroupRowsHeight)(this.beans),f=(0,b.getColumnHeaderRowHeight)(this.beans);h.push(...g),h.push(f),c!=null&&c.hasFloatingFilters()&&h.push((0,b.getFloatingFiltersHeight)(this.beans));let S=0;for(let w=0;w<this.rowIndex;w++)S+=h[w];return{topOffset:S,rowHeight:h[this.rowIndex]}}onVirtualColumnsChanged(c=!1){let h=this.getHeaderCtrls(),g=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(h,g,c)}getHeaderCtrls(){let c=this.headerCellCtrls;this.headerCellCtrls=new Map;let h=this.getColumnsInViewport();for(let f of h)this.recycleAndCreateHeaderCtrls(f,c);let g=f=>{let{focusSvc:S,visibleCols:w}=this.beans;return S.isHeaderWrapperFocused(f)?w.isVisible(f.column):!1};if(c)for(let[f,S]of c)g(S)?this.headerCellCtrls.set(f,S):this.destroyBean(S);return this.getHeaderCellCtrls()}getHeaderCellCtrls(){var c,h;return Array.from((h=(c=this.headerCellCtrls)==null?void 0:c.values())!=null?h:[])}recycleAndCreateHeaderCtrls(c,h){if(!this.headerCellCtrls||c.isEmptyGroup())return;let g=c.getUniqueId(),f;if(h&&(f=h.get(g),h.delete(g)),f&&f.column!=c&&(this.destroyBean(f),f=void 0),f==null)switch(this.type){case"filter":f=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,c,this));break;case"group":f=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,c,this));break;default:f=this.createBean(new T.HeaderCellCtrl(c,this))}this.headerCellCtrls.set(g,f)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(this.pinned!=null)return[];let c=[],h=this.getActualDepth(),{colViewport:g}=this.beans;return["left",null,"right"].forEach(f=>{let S=g.getHeadersToRender(f,h);c=c.concat(S)}),c}getActualDepth(){return this.type=="filter"?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.colViewport.getHeadersToRender(this.pinned,this.getActualDepth())}findHeaderCellCtrl(c){if(!this.headerCellCtrls)return;let h=this.getHeaderCellCtrls(),g;return g=typeof c=="function"?h.find(c):h.find(f=>f.column==c),g}focusHeader(c,h){let g=this.findHeaderCellCtrl(c);return g?g.focus(h):!1}destroy(){var c;(c=this.headerCellCtrls)==null||c.forEach(h=>{this.destroyBean(h)}),this.headerCellCtrls=void 0,super.destroy()}}x.HeaderRowCtrl=d},7260:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderRowContainerComp=void 0;let A=p(3507),E=p(8020),z=p(8866),T=p(8934);class b extends E.Component{constructor(d){super(),this.eCenterContainer=E.RefPlaceholder,this.headerRowComps={},this.rowCompsList=[],this.pinned=d}postConstruct(){this.selectAndSetTemplate();let d={setDisplayed:s=>this.setDisplayed(s),setCtrls:s=>this.setCtrls(s),setCenterWidth:s=>this.eCenterContainer.style.width=s,setViewportScrollLeft:s=>this.getGui().scrollLeft=s,setPinnedContainerWidth:s=>{let c=this.getGui();c.style.width=s,c.style.maxWidth=s,c.style.minWidth=s}};this.createManagedBean(new T.HeaderRowContainerCtrl(this.pinned)).setComp(d,this.getGui())}selectAndSetTemplate(){let d=this.pinned=="left",s=this.pinned=="right",c=d?'<div class="ag-pinned-left-header" role="rowgroup"></div>':s?'<div class="ag-pinned-right-header" role="rowgroup"></div>':`<div class="ag-header-viewport" role="presentation">
        <div class="ag-header-container" data-ref="eCenterContainer" role="rowgroup"></div>
    </div>`;this.setTemplate(c),this.eRowContainer=this.eCenterContainer!==E.RefPlaceholder?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(d){this.destroyBean(d),this.eRowContainer.removeChild(d.getGui())}setCtrls(d){let s=this.headerRowComps,c;this.headerRowComps={},this.rowCompsList=[];let h=g=>{let f=g.getGui();f.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(f),c&&(0,A._ensureDomOrder)(this.eRowContainer,f,c),c=f};d.forEach(g=>{let f=g.instanceId,S=s[f];delete s[f];let w=S||this.createBean(new z.HeaderRowComp(g));this.headerRowComps[f]=w,this.rowCompsList.push(w),h(w)}),Object.values(s).forEach(g=>this.destroyRowComp(g))}}x.HeaderRowContainerComp=b},8934:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderRowContainerCtrl=void 0;let A=p(8731),E=p(3355),z=p(2218),T=p(1323),b=p(2868);class C extends A.BeanStub{constructor(s){super(),this.pinned=s,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(s,c){this.comp=s,this.eViewport=c;let{pinnedCols:h,ctrlsSvc:g,colModel:f,colMoves:S,filterManager:w}=this.beans;this.setupCenterWidth(),h==null||h.setupHeaderPinnedWidth(this),this.setupDragAndDrop(S,this.eViewport);let M=this.onDisplayedColumnsChanged.bind(this,w);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:M,advancedFilterEnabledChanged:M});let P=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;g.register(P,this),f.ready&&this.refresh()}getAllCtrls(){let s=[...this.groupsRowCtrls];return this.columnsRowCtrl&&s.push(this.columnsRowCtrl),this.filtersRowCtrl&&s.push(this.filtersRowCtrl),s}refresh(s=!1){let{focusSvc:c,colModel:h,filterManager:g}=this.beans,f=0,S=c.getFocusHeaderToUseAfterRefresh();(()=>{let M=(0,T.getHeaderRowCount)(h)-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let P=0;P<M;P++){let O=this.createBean(new b.HeaderRowCtrl(f++,this.pinned,"group"));this.groupsRowCtrls.push(O)}})(),(()=>{let M=f++,P=!(this.hidden||this.columnsRowCtrl!=null&&s&&this.columnsRowCtrl.rowIndex===M);(P||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),P&&(this.columnsRowCtrl=this.createBean(new b.HeaderRowCtrl(M,this.pinned,"column")))})(),(()=>{this.includeFloatingFilter=!!(g!=null&&g.hasFloatingFilters())&&!this.hidden;let M=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter)return void M();let P=f++;if(this.filtersRowCtrl){let O=this.filtersRowCtrl.rowIndex!==P;s&&!O||M()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new b.HeaderRowCtrl(P,this.pinned,"filter")))})();let w=this.getAllCtrls();this.comp.setCtrls(w),this.restoreFocusOnHeader(c,S)}getHeaderCtrlForColumn(s){var c;if((0,E.isColumn)(s))return(c=this.columnsRowCtrl)==null?void 0:c.getHeaderCellCtrl(s);if(this.groupsRowCtrls.length!==0)for(let h=0;h<this.groupsRowCtrls.length;h++){let g=this.groupsRowCtrls[h].getHeaderCellCtrl(s);if(g)return g}}getHtmlElementForColumnHeader(s){var c,h;return(h=(c=this.getHeaderCtrlForColumn(s))==null?void 0:c.eGui)!=null?h:null}getRowType(s){var c;return(c=this.getAllCtrls()[s])==null?void 0:c.type}focusHeader(s,c,h){let g=this.getAllCtrls()[s];return!!g&&g.focusHeader(c,h)}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(s){return this.groupsRowCtrls[s]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(s){this.comp.setViewportScrollLeft(s)}onScrollCallback(s){this.addManagedElementListeners(this.eViewport,{scroll:s})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(s,c){let h=s==null?void 0:s.createBodyDropTarget(this.pinned,c);h&&this.createManagedBean(h)}restoreFocusOnHeader(s,c){if(!c)return;let{column:h}=c;h.getPinned()==this.pinned&&s.focusHeaderPosition({headerPosition:c})}onGridColumnsChanged(){this.refresh(!0)}onDisplayedColumnsChanged(s){let c=!!(s!=null&&s.hasFloatingFilters())&&!this.hidden;this.includeFloatingFilter!==c&&this.refresh(!0)}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new z.CenterWidthFeature(s=>this.comp.setCenterWidth(`${s}px`),!0))}}x.HeaderRowContainerCtrl=C},6642:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.InfiniteBlock=void 0;let A=p(8731),E=p(3373),z=p(4422),T=p(7764);class b extends A.BeanStub{constructor(d,s,c){super(),this.id=d,this.parentCache=s,this.params=c,this.state="needsLoading",this.version=0,this.startRow=d*c.blockSize,this.endRow=this.startRow+c.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(d){this.isRequestMostRecentAndLive(d)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(d,s,c){this.successCommon(d,{rowData:s,rowCount:c})}isRequestMostRecentAndLive(d){let s=d===this.version,c=this.isAlive();return s&&c}successCommon(d,s){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(d)&&(this.state="loaded",this.processServerResult(s))}postConstruct(){this.rowNodes=[];let{params:{blockSize:d,rowHeight:s},startRow:c,beans:h,rowNodes:g}=this;for(let f=0;f<d;f++){let S=c+f,w=new E.RowNode(h);w.setRowHeight(s),w.uiLevel=0,w.setRowIndex(S),w.setRowTop(s*S),g.push(w)}}getBlockStateJson(){let{id:d,startRow:s,endRow:c,state:h}=this;return{id:""+d,state:{blockNumber:d,startRow:s,endRow:c,pageStatus:h}}}setDataAndId(d,s,c){(0,z._exists)(s)?d.setDataAndId(s,c.toString()):d.setDataAndId(void 0,void 0)}loadFromDatasource(){let d=this.createLoadParams();(0,z._missing)(this.params.datasource.getRows)?(0,T._warn)(90):window.setTimeout(()=>{this.params.datasource.getRows(d)},0)}createLoadParams(){let{startRow:d,endRow:s,version:c,params:{sortModel:h,filterModel:g},gos:f}=this;return{startRow:d,endRow:s,successCallback:this.pageLoaded.bind(this,c),failCallback:this.pageLoadFailed.bind(this,c),sortModel:h,filterModel:g,context:f.getGridCommonParams().context}}forEachNode(d,s,c){this.rowNodes.forEach((h,g)=>{this.startRow+g<c&&d(h,s.value++)})}getRow(d,s=!1){s||(this.lastAccessed=this.params.lastAccessedSequence.value++);let c=d-this.startRow;return this.rowNodes[c]}processServerResult(d){let{rowNodes:s,beans:c}=this;s.forEach((g,f)=>{let S=d.rowData?d.rowData[f]:void 0;!g.id&&g.alreadyRendered&&S&&(s[f]=new E.RowNode(c),s[f].setRowIndex(g.rowIndex),s[f].setRowTop(g.rowTop),s[f].setRowHeight(g.rowHeight),g.clearRowTopAndRowIndex()),this.setDataAndId(s[f],S,this.startRow+f)});let h=d.rowCount!=null&&d.rowCount>=0?d.rowCount:void 0;this.parentCache.pageLoaded(this,h)}destroy(){this.rowNodes.forEach(d=>{d.clearRowTopAndRowIndex()}),super.destroy()}}x.InfiniteBlock=b},8861:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.InfiniteCache=void 0;let A=p(8731),E=p(2043),z=p(4422),T=p(6642);class b extends A.BeanStub{constructor(d){super(),this.params=d,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=d.initialRowCount}getRow(d,s=!1){let c=Math.floor(d/this.params.blockSize),h=this.blocks[c];if(!h){if(s)return;h=this.createBlock(c)}return h.getRow(d)}createBlock(d){let s=this.params,c=this.createBean(new T.InfiniteBlock(d,this,s));return this.blocks[c.id]=c,this.blockCount++,this.purgeBlocksIfNeeded(c),s.rowNodeBlockLoader.addBlock(c),c}refreshCache(){this.blockCount==0?this.purgeCache():(this.getBlocksInOrder().forEach(d=>d.setStateWaitingToLoad()),this.params.rowNodeBlockLoader.checkBlockToLoad())}destroy(){this.getBlocksInOrder().forEach(d=>this.destroyBlock(d)),super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(d,s){this.isAlive()&&((0,E._logIfDebug)(this.gos,`InfiniteCache - onPageLoaded: page = ${d.id}, lastRow = ${s}`),this.checkRowCount(d,s),this.onCacheUpdated())}purgeBlocksIfNeeded(d){let s=this.getBlocksInOrder().filter(g=>g!=d);s.sort((g,f)=>f.lastAccessed-g.lastAccessed);let c=this.params.maxBlocksInCache>0,h=c?this.params.maxBlocksInCache-1:null;s.forEach((g,f)=>{if(g.state==="needsLoading"&&f>=1||c&&f>=h){if(this.isBlockCurrentlyDisplayed(g)||this.isBlockFocused(g))return;this.removeBlockFromCache(g)}})}isBlockFocused(d){let s=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!s||s.rowPinned!=null)return!1;let{startRow:c,endRow:h}=d;return s.rowIndex>=c&&s.rowIndex<h}isBlockCurrentlyDisplayed(d){let{startRow:s,endRow:c}=d;return this.beans.rowRenderer.isRangeInRenderedViewport(s,c-1)}removeBlockFromCache(d){d&&this.destroyBlock(d)}checkRowCount(d,s){if(typeof s=="number"&&s>=0)this.rowCount=s,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){let{blockSize:c,overflowSize:h}=this.params,g=(d.id+1)*c+h;this.rowCount<g&&(this.rowCount=g)}}setRowCount(d,s){this.rowCount=d,(0,z._exists)(s)&&(this.lastRowIndexKnown=s),this.lastRowIndexKnown||this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(d){let s={value:0};this.getBlocksInOrder().forEach(c=>c.forEachNode(d,s,this.rowCount))}getBlocksInOrder(){return Object.values(this.blocks).sort((d,s)=>d.id-s.id)}destroyBlock(d){delete this.blocks[d.id],this.destroyBean(d),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(d)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){let d=[];this.getBlocksInOrder().forEach(s=>{s.id*this.params.blockSize>=this.rowCount&&d.push(s)}),d.length>0&&d.forEach(s=>this.destroyBlock(s))}purgeCache(){this.getBlocksInOrder().forEach(d=>this.removeBlockFromCache(d)),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(d,s){let c=[],h=-1,g=!1,f={value:0},S=!1;return this.getBlocksInOrder().forEach(w=>{S||(g&&h+1!==w.id?S=!0:(h=w.id,w.forEachNode(M=>{let P=M===d||M===s;(g||P)&&c.push(M),P&&(g=!g)},f,this.rowCount)))}),S||g?[]:c}}x.InfiniteCache=b},169:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.InfiniteRowModel=void 0;let A=p(8731),E=p(7274),z=p(4422),T=p(8861);class b extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowModel"}getRowBounds(d){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*d}}ensureRowHeightsValid(){return!1}postConstruct(){this.gos.get("rowModelType")==="infinite"&&(this.rowHeight=(0,E._getRowHeightAsNumber)(this.beans),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache()))}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy()}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=(0,E._getRowHeightAsNumber)(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){var s,c;let d;d=!this.cacheParams||!(0,z._jsonEquals)(this.cacheParams.sortModel,(c=(s=this.beans.sortSvc)==null?void 0:s.getSortModel())!=null?c:[]),d&&this.reset()}getType(){return"infinite"}setDatasource(d){this.destroyDatasource(),this.datasource=d,d&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(d,s){var c,h;return(h=(c=this.infiniteCache)==null?void 0:c.getRowNodesInRange(d,s))!=null?h:[]}reset(){var d;this.datasource&&((0,E._getRowIdCallback)(this.gos)!=null||((d=this.beans.selectionSvc)==null||d.reset("rowDataChanged")),this.resetCache())}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){var S,w;this.destroyCache();let d=this.beans,{filterManager:s,sortSvc:c,rowNodeBlockLoader:h,eventSvc:g,gos:f}=d;this.cacheParams={datasource:this.datasource,filterModel:(S=s==null?void 0:s.getFilterModel())!=null?S:{},sortModel:(w=c==null?void 0:c.getSortModel())!=null?w:[],rowNodeBlockLoader:h,initialRowCount:f.get("infiniteInitialRowCount"),maxBlocksInCache:f.get("maxBlocksInCache"),rowHeight:(0,E._getRowHeightAsNumber)(d),overflowSize:f.get("cacheOverflowSize"),blockSize:f.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new T.InfiniteCache(this.cacheParams)),g.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(d=>{d.setRowHeight(this.rowHeight),d.setRowTop(this.rowHeight*d.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(d){let s=this.infiniteCache;if(s&&!(d>=s.getRowCount()))return s.getRow(d)}getRowNode(d){let s;return this.forEachNode(c=>{c.id===d&&(s=c)}),s}forEachNode(d){var s;(s=this.infiniteCache)==null||s.forEachNodeDeep(d)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(d){return d}getRowIndexAtPixel(d){if(this.rowHeight!==0){let s=Math.floor(d/this.rowHeight),c=this.getRowCount()-1;return s>c?c:s}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(d){return!!this.getRowNode(d.id)}refreshCache(){var d;(d=this.infiniteCache)==null||d.refreshCache()}purgeCache(){var d;(d=this.infiniteCache)==null||d.purgeCache()}isLastRowIndexKnown(){var d,s;return(s=(d=this.infiniteCache)==null?void 0:d.isLastRowIndexKnown())!=null?s:!1}setRowCount(d,s){var c;(c=this.infiniteCache)==null||c.setRowCount(d,s)}}x.InfiniteRowModel=b},9836:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getInfiniteRowCount=x.purgeInfiniteCache=x.refreshInfiniteCache=void 0;let A=p(6876);x.refreshInfiniteCache=function(E){var z;(z=(0,A._getInfiniteRowModel)(E))==null||z.refreshCache()},x.purgeInfiniteCache=function(E){var z;(z=(0,A._getInfiniteRowModel)(E))==null||z.purgeCache()},x.getInfiniteRowCount=function(E){var z;return(z=(0,A._getInfiniteRowModel)(E))==null?void 0:z.getRowCount()}},4002:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.InfiniteRowModelModule=void 0;let A=p(6437),E=p(7205),z=p(169),T=p(9836),b=p(9789);x.InfiniteRowModelModule={moduleName:"InfiniteRowModel",version:E.VERSION,rowModels:["infinite"],apiFunctions:{refreshInfiniteCache:T.refreshInfiniteCache,purgeInfiniteCache:T.purgeInfiniteCache,getInfiniteRowCount:T.getInfiniteRowCount},beans:[z.InfiniteRowModel,b.RowNodeBlockLoader],dependsOn:[A.SsrmInfiniteSharedApiModule]}},9789:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowNodeBlockLoader=void 0;let A=p(8731),E=p(7274),z=p(1502),T=p(2043);class b extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=(0,E._getMaxConcurrentDatasourceRequests)(this.gos);let d=this.gos.get("blockLoadDebounceMillis");d&&d>0&&(this.checkBlockToLoadDebounce=(0,T._debounce)(this,this.performCheckBlocksToLoad.bind(this),d))}addBlock(d){this.blocks.push(d),d.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(d){(0,z._removeFromArray)(this.blocks,d)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)return void(0,T._logIfDebug)(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");let d=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,s=this.blocks.filter(c=>c.state==="needsLoading").slice(0,d);this.activeBlockLoadsCount+=s.length,s.forEach(c=>c.load()),this.printCacheStatus()}getBlockState(){let d={};return this.blocks.forEach(s=>{let{id:c,state:h}=s.getBlockStateJson();d[c]=h}),d}printCacheStatus(){(0,T._logIfDebug)(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}}x.RowNodeBlockLoader=b},5961:function(ae,x){var p;Object.defineProperty(x,"__esModule",{value:!0}),x.CellRangeType=void 0,function(A){A[A.VALUE=0]="VALUE",A[A.DIMENSION=1]="DIMENSION"}(p||(x.CellRangeType=p={}))},7419:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0})},2783:function(ae,x){var p;Object.defineProperty(x,"__esModule",{value:!0}),x.ColumnHighlightPosition=void 0,function(A){A[A.Before=0]="Before",A[A.After=1]="After"}(p||(x.ColumnHighlightPosition=p={}))},7919:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0})},3590:function(ae,x){var p;Object.defineProperty(x,"__esModule",{value:!0}),x.ServerSideTransactionResultStatus=void 0,function(A){A.Applied="Applied",A.StoreNotFound="StoreNotFound",A.StoreLoading="StoreLoading",A.StoreWaitingToLoad="StoreWaitingToLoad",A.StoreLoadingFailed="StoreLoadingFailed",A.StoreWrongType="StoreWrongType",A.Cancelled="Cancelled",A.StoreNotStarted="StoreNotStarted"}(p||(x.ServerSideTransactionResultStatus=p={}))},5889:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.LocalEventService=void 0,x.LocalEventService=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(p){this.frameworkOverrides=p}getListeners(p,A,E){let z=A?this.allAsyncListeners:this.allSyncListeners,T=z.get(p);return!T&&E&&(T=new Set,z.set(p,T)),T}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(p,A,E=!1){this.getListeners(p,E,!0).add(A)}removeEventListener(p,A,E=!1){let z=this.getListeners(p,E,!1);z&&(z.delete(A),z.size===0)&&(E?this.allAsyncListeners:this.allSyncListeners).delete(p)}addGlobalListener(p,A=!1){(A?this.globalAsyncListeners:this.globalSyncListeners).add(p)}removeGlobalListener(p,A=!1){(A?this.globalAsyncListeners:this.globalSyncListeners).delete(p)}dispatchEvent(p){let A=p;this.dispatchToListeners(A,!0),this.dispatchToListeners(A,!1),this.firedEvents[A.type]=!0}dispatchEventOnce(p){this.firedEvents[p.type]||this.dispatchEvent(p)}dispatchToListeners(p,A){var C;let E=p.type;if(A&&"event"in p){let d=p.event;d instanceof Event&&(p.eventPath=d.composedPath())}let z=(d,s)=>d.forEach(c=>{if(!s.has(c))return;let h=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>c(p)):()=>c(p);A?this.dispatchAsync(h):h()}),T=(C=this.getListeners(E,A,!1))!=null?C:new Set,b=new Set(T);b.size>0&&z(b,T),new Set(A?this.globalAsyncListeners:this.globalSyncListeners).forEach(d=>{let s=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>d(E,p)):()=>d(E,p);A?this.dispatchAsync(s):s()})}dispatchAsync(p){if(this.asyncFunctionsQueue.push(p),!this.scheduled){let A=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(A):A(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;let p=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],p.forEach(A=>A())}}},9058:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0});let A=p(5608);p(140),p(3795),p(8481),p(6655),p(7229),p(2885),p(391),p(9563),p(4169),p(8931),p(5479),p(7894),p(4665),p(8811);let E=p(12);E.ModuleRegistry.registerModules([E.AllCommunityModule]),A.__exportStar(p(12),x)},12:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderRowContainerCtrl=x.GridHeaderCtrl=x._getToolPanelClassesFromColDef=x._getHeaderClassesFromColDef=x._getRowContainerOptions=x.RowContainerCtrl=x.FakeVScrollComp=x.FakeHScrollComp=x._getNormalisedMousePosition=x._getCellPositionForEvent=x.GridBodyCtrl=x._getDefaultFloatingFilterType=x.ProvidedFilter=x.FilterWrapperComp=x._createGlobalRowEvent=x._ROW_ID_PREFIX_ROW_GROUP=x.RowNode=x.isProvidedColumnGroup=x.AgProvidedColumnGroup=x.isColumnGroup=x.AgColumnGroup=x.isColumn=x.AgColumn=x.DragSourceType=x.BeanStub=x._unwrapUserComp=x._getInnerCellRendererDetails=x._getEditorRendererDetails=x._getCellRendererDetails=x._getFloatingFilterCompDetails=x._getFilterDetails=x.RefPlaceholder=x._EmptyBean=x._columnsMatch=x._convertColumnEventSourceType=x._updateColsMap=x._areColIdsEqual=x._getColumnsFromTree=x._destroyColumnTree=x.isColumnGroupAutoCol=x.isColumnSelectionCol=x.GROUP_AUTO_COLUMN_ID=x.GroupInstanceIdCreator=x.ColumnKeyCreator=x._applyColumnState=x._resetColumnState=x.BaseColsService=x._createColumnTree=x._addColumnDefaultAndTypes=x._updateColumnState=void 0,x._processOnChange=x._combineAttributesAndGridOptions=x._getCallbackForEvent=x._PUBLIC_EVENTS=x._ALL_EVENTS=x._getServerSideRowModel=x._getClientSideRowModel=x._getGlobalGridOption=x.provideGlobalGridOptions=x.createGrid=x.GridCoreCreator=x.KeyCode=x.VanillaFrameworkOverrides=x.AutoScrollService=x.CellRangeType=x.AgPickerField=x.AgAbstractLabel=x.TouchListener=x.PopupComponent=x.TabGuardFeature=x.TabGuardClassNames=x.TabGuardCtrl=x.TabGuardComp=x._FOCUS_MANAGED_CLASS=x.ManagedFocusFeature=x.Component=x.AgSelectSelector=x.AgSelect=x.AgInputDateField=x.AgInputNumberFieldSelector=x.AgInputNumberField=x.AgInputTextArea=x.AgInputTextFieldSelector=x.AgInputTextField=x.AgToggleButtonSelector=x.AgToggleButton=x.AgRadioButton=x.AgCheckboxSelector=x.AgCheckbox=x.AgAbstractInputField=x.BaseSelectionService=x.ServerSideTransactionResultStatus=x.AbstractClientSideNodeManager=x.CssClassManager=x._getCellCtrlForEventTarget=x.PositionableFeature=x._setColMenuVisible=x._requestAnimationFrame=x._getHeaderRowCount=x._getFloatingFiltersHeight=void 0,x._getCellByPosition=x._getRowNode=x._isSameRow=x._isRowBefore=x._createCellId=x._areCellsEqual=x._getLocaleTextFunc=x.LocaleService=x.GridCtrl=x.LocalEventService=x._isGroupRowsSticky=x._isUsingNewCellSelectionAPI=x._isUsingNewRowSelectionAPI=x._isColumnMenuAnchoringEnabled=x._isLegacyMenuEnabled=x._getRowSelectionMode=x._getSuppressMultiRanges=x._isCellSelectionEnabled=x._getFillHandle=x._isMultiRowSelection=x._getHeaderCheckbox=x._getCheckboxLocation=x._getCheckboxes=x._getIsRowSelectable=x._getGroupSelectsDescendants=x._getGroupSelection=x._isGetRowHeightFunction=x._isRowSelection=x._getGroupAggFiltering=x._getRootNode=x._anchorElementToMouseMoveEvent=x._getPageBody=x._getDocument=x._isNothingFocused=x._getActiveDomElement=x._shouldUpdateColVisibilityAfterGroup=x._getRowHeightAsNumber=x._canSkipShowingRowGroup=x._isGroupUseEntireRow=x._isServerSideRowModel=x._isClientSideRowModel=x._isColumnsSortingCoupledToGroup=x._isGroupMultiAutoColumn=x._getGroupTotalRowCallback=x._getGrandTotalRow=x._isAnimateRows=x._isDomLayout=x._getRowHeightForNode=x._getRowIdCallback=x._getMaxConcurrentDatasourceRequests=void 0,x._bindCellRendererToHtmlElement=x._setVisible=x._setDisabled=x._setFixedWidth=x._isVisible=x._loadTemplate=x._radioCssClass=x._removeFromParent=x._clearElement=x._setDisplayed=x._getAbsoluteWidth=x._getAbsoluteHeight=x._parseDateTimeFromString=x._serialiseDate=x.ChangedPath=x._isIOSUserAgent=x._areEqual=x._last=x._removeFromArray=x._EmptyArray=x._getAriaPosInSet=x._setAriaHidden=x._setAriaSetSize=x._setAriaPosInSet=x._setAriaSelected=x._setAriaActiveDescendant=x._setAriaRowCount=x._setAriaColCount=x._setAriaSort=x._removeAriaSort=x._removeAriaExpanded=x._setAriaDisabled=x._setAriaRowIndex=x._setAriaColSpan=x._setAriaColIndex=x._setAriaRole=x._setAriaControls=x._setAriaChecked=x._setAriaLabelledBy=x._setAriaExpanded=x._setAriaDescribedBy=x._setAriaLabel=x._setAriaLevel=x._isShowTooltipWhenTruncated=x._getShouldDisplayTooltip=x._shouldDisplayTooltip=x.TooltipFeature=x.BaseComponentWrapper=x._BOOLEAN_MIXED_GRID_OPTIONS=x._ALL_GRID_OPTIONS=void 0,x.RowDragModule=x.DragAndDropModule=x._SharedDragAndDropModule=x._HorizontalResizeModule=x._DragModule=x._ColumnMoveModule=x.ValidationModule=x._getGridRegisteredModules=x.ModuleRegistry=x._downloadFile=x.BaseGridSerializingSession=x.BaseCreator=x._focusNextGridCoreContainer=x._isKeyboardMode=x._focusGridInnerElement=x._findTabbableParent=x._findNextFocusableElement=x._focusInto=x._findFocusableElements=x._addFocusableContainerListener=x._isPromise=x.AgPromise=x._escapeString=x._mergeDeep=x._formatNumberCommas=x._isEventFromPrintableCharacter=x._defaultComparator=x._makeNull=x._toStringOrNull=x._jsonEquals=x._missing=x._exists=x._fuzzySuggestions=x._createIconNoSpan=x._createIcon=x._preInitErrMsg=x._errMsg=x._error=x._warn=x._waitUntil=x._doOnce=x._debounce=x._warnOnce=x._isElementInEventPath=x._isStopPropagationForAgGrid=x._stopPropagationForAgGrid=x._observeResize=x._isNodeOrElement=x._getInnerWidth=x._getInnerHeight=void 0,x.RowAutoHeightModule=x.LocaleModule=x.TooltipModule=x.EventApiModule=x.ColumnHoverModule=x.RowStyleModule=x.CellStyleModule=x.CellApiModule=x.ValueCacheModule=x.PinnedRowModule=x.ColumnAutoSizeModule=x.RenderApiModule=x.ScrollApiModule=x.RowApiModule=x.PaginationModule=x.ColumnApiModule=x.GridStateModule=x._ColumnGroupModule=x.HighlightChangesModule=x._KeyboardNavigationModule=x._PopupModule=x.InfiniteRowModelModule=x.CsvExportModule=x.ClientSideRowModelApiModule=x.ClientSideRowModelModule=x.AlignedGridsModule=x._SortModule=x._SharedMenuModule=x._SsrmInfiniteSharedApiModule=x._CsrmSsrmSharedApiModule=x._SharedRowSelectionModule=x.RowSelectionModule=x.CustomEditorModule=x.UndoRedoEditModule=x.SelectEditorModule=x.LargeTextEditorModule=x.TextEditorModule=x.CheckboxEditorModule=x.DateEditorModule=x.NumberEditorModule=x._EditCoreModule=x.ExternalFilterModule=x.DateFilterModule=x.NumberFilterModule=x.TextFilterModule=x.QuickFilterModule=x.CustomFilterModule=x._FilterValueModule=x._FilterCoreModule=x._ColumnFilterModule=void 0,x._asThemeImpl=x.createTheme=x.createPart=x.AllCommunityModule=x._SharedExportModule=void 0;let A=p(5608);var E=p(2716);Object.defineProperty(x,"_updateColumnState",{enumerable:!0,get:function(){return E._updateColumnState}}),Object.defineProperty(x,"_addColumnDefaultAndTypes",{enumerable:!0,get:function(){return E._addColumnDefaultAndTypes}}),Object.defineProperty(x,"_createColumnTree",{enumerable:!0,get:function(){return E._createColumnTree}});var z=p(3600);Object.defineProperty(x,"BaseColsService",{enumerable:!0,get:function(){return z.BaseColsService}});var T=p(5266);Object.defineProperty(x,"_resetColumnState",{enumerable:!0,get:function(){return T._resetColumnState}}),Object.defineProperty(x,"_applyColumnState",{enumerable:!0,get:function(){return T._applyColumnState}});var b=p(2294);Object.defineProperty(x,"ColumnKeyCreator",{enumerable:!0,get:function(){return b.ColumnKeyCreator}});var C=p(6034);Object.defineProperty(x,"GroupInstanceIdCreator",{enumerable:!0,get:function(){return C.GroupInstanceIdCreator}});var d=p(3146);Object.defineProperty(x,"GROUP_AUTO_COLUMN_ID",{enumerable:!0,get:function(){return d.GROUP_AUTO_COLUMN_ID}}),Object.defineProperty(x,"isColumnSelectionCol",{enumerable:!0,get:function(){return d.isColumnSelectionCol}}),Object.defineProperty(x,"isColumnGroupAutoCol",{enumerable:!0,get:function(){return d.isColumnGroupAutoCol}}),Object.defineProperty(x,"_destroyColumnTree",{enumerable:!0,get:function(){return d._destroyColumnTree}}),Object.defineProperty(x,"_getColumnsFromTree",{enumerable:!0,get:function(){return d._getColumnsFromTree}}),Object.defineProperty(x,"_areColIdsEqual",{enumerable:!0,get:function(){return d._areColIdsEqual}}),Object.defineProperty(x,"_updateColsMap",{enumerable:!0,get:function(){return d._updateColsMap}}),Object.defineProperty(x,"_convertColumnEventSourceType",{enumerable:!0,get:function(){return d._convertColumnEventSourceType}}),Object.defineProperty(x,"_columnsMatch",{enumerable:!0,get:function(){return d._columnsMatch}});var s=p(3789);Object.defineProperty(x,"_EmptyBean",{enumerable:!0,get:function(){return s.EmptyBean}});var c=p(8020);Object.defineProperty(x,"RefPlaceholder",{enumerable:!0,get:function(){return c.RefPlaceholder}});var h=p(2036);Object.defineProperty(x,"_getFilterDetails",{enumerable:!0,get:function(){return h._getFilterDetails}}),Object.defineProperty(x,"_getFloatingFilterCompDetails",{enumerable:!0,get:function(){return h._getFloatingFilterCompDetails}}),Object.defineProperty(x,"_getCellRendererDetails",{enumerable:!0,get:function(){return h._getCellRendererDetails}}),Object.defineProperty(x,"_getEditorRendererDetails",{enumerable:!0,get:function(){return h._getEditorRendererDetails}}),Object.defineProperty(x,"_getInnerCellRendererDetails",{enumerable:!0,get:function(){return h._getInnerCellRendererDetails}});var g=p(4126);Object.defineProperty(x,"_unwrapUserComp",{enumerable:!0,get:function(){return g._unwrapUserComp}});var f=p(8731);Object.defineProperty(x,"BeanStub",{enumerable:!0,get:function(){return f.BeanStub}});var S=p(2903);Object.defineProperty(x,"DragSourceType",{enumerable:!0,get:function(){return S.DragSourceType}});var w=p(3355);Object.defineProperty(x,"AgColumn",{enumerable:!0,get:function(){return w.AgColumn}}),Object.defineProperty(x,"isColumn",{enumerable:!0,get:function(){return w.isColumn}});var M=p(6908);Object.defineProperty(x,"AgColumnGroup",{enumerable:!0,get:function(){return M.AgColumnGroup}}),Object.defineProperty(x,"isColumnGroup",{enumerable:!0,get:function(){return M.isColumnGroup}});var P=p(9409);Object.defineProperty(x,"AgProvidedColumnGroup",{enumerable:!0,get:function(){return P.AgProvidedColumnGroup}}),Object.defineProperty(x,"isProvidedColumnGroup",{enumerable:!0,get:function(){return P.isProvidedColumnGroup}});var O=p(3373);Object.defineProperty(x,"RowNode",{enumerable:!0,get:function(){return O.RowNode}}),Object.defineProperty(x,"_ROW_ID_PREFIX_ROW_GROUP",{enumerable:!0,get:function(){return O.ROW_ID_PREFIX_ROW_GROUP}});var G=p(9888);Object.defineProperty(x,"_createGlobalRowEvent",{enumerable:!0,get:function(){return G._createGlobalRowEvent}});var j=p(1854);Object.defineProperty(x,"FilterWrapperComp",{enumerable:!0,get:function(){return j.FilterWrapperComp}});var Y=p(2245);Object.defineProperty(x,"ProvidedFilter",{enumerable:!0,get:function(){return Y.ProvidedFilter}});var J=p(9990);Object.defineProperty(x,"_getDefaultFloatingFilterType",{enumerable:!0,get:function(){return J._getDefaultFloatingFilterType}});var ne=p(520);Object.defineProperty(x,"GridBodyCtrl",{enumerable:!0,get:function(){return ne.GridBodyCtrl}});var ce=p(8399);Object.defineProperty(x,"_getCellPositionForEvent",{enumerable:!0,get:function(){return ce._getCellPositionForEvent}}),Object.defineProperty(x,"_getNormalisedMousePosition",{enumerable:!0,get:function(){return ce._getNormalisedMousePosition}});var fe=p(335);Object.defineProperty(x,"FakeHScrollComp",{enumerable:!0,get:function(){return fe.FakeHScrollComp}});var xe=p(6070);Object.defineProperty(x,"FakeVScrollComp",{enumerable:!0,get:function(){return xe.FakeVScrollComp}});var Le=p(8115);Object.defineProperty(x,"RowContainerCtrl",{enumerable:!0,get:function(){return Le.RowContainerCtrl}}),Object.defineProperty(x,"_getRowContainerOptions",{enumerable:!0,get:function(){return Le._getRowContainerOptions}});var _e=p(1295);Object.defineProperty(x,"_getHeaderClassesFromColDef",{enumerable:!0,get:function(){return _e._getHeaderClassesFromColDef}}),Object.defineProperty(x,"_getToolPanelClassesFromColDef",{enumerable:!0,get:function(){return _e._getToolPanelClassesFromColDef}});var Fe=p(9);Object.defineProperty(x,"GridHeaderCtrl",{enumerable:!0,get:function(){return Fe.GridHeaderCtrl}});var We=p(8934);Object.defineProperty(x,"HeaderRowContainerCtrl",{enumerable:!0,get:function(){return We.HeaderRowContainerCtrl}});var it=p(1323);Object.defineProperty(x,"_getFloatingFiltersHeight",{enumerable:!0,get:function(){return it.getFloatingFiltersHeight}}),Object.defineProperty(x,"_getHeaderRowCount",{enumerable:!0,get:function(){return it.getHeaderRowCount}});var tt=p(2612);Object.defineProperty(x,"_requestAnimationFrame",{enumerable:!0,get:function(){return tt._requestAnimationFrame}});var ot=p(8994);Object.defineProperty(x,"_setColMenuVisible",{enumerable:!0,get:function(){return ot._setColMenuVisible}});var st=p(2147);Object.defineProperty(x,"PositionableFeature",{enumerable:!0,get:function(){return st.PositionableFeature}});var St=p(814);Object.defineProperty(x,"_getCellCtrlForEventTarget",{enumerable:!0,get:function(){return St._getCellCtrlForEventTarget}});var Xe=p(1734);Object.defineProperty(x,"CssClassManager",{enumerable:!0,get:function(){return Xe.CssClassManager}});var Ke=p(1954);Object.defineProperty(x,"AbstractClientSideNodeManager",{enumerable:!0,get:function(){return Ke.AbstractClientSideNodeManager}});var Ye=p(3590);Object.defineProperty(x,"ServerSideTransactionResultStatus",{enumerable:!0,get:function(){return Ye.ServerSideTransactionResultStatus}});var Ze=p(3306);Object.defineProperty(x,"BaseSelectionService",{enumerable:!0,get:function(){return Ze.BaseSelectionService}});var Pe=p(8085);Object.defineProperty(x,"AgAbstractInputField",{enumerable:!0,get:function(){return Pe.AgAbstractInputField}});var ct=p(66);Object.defineProperty(x,"AgCheckbox",{enumerable:!0,get:function(){return ct.AgCheckbox}}),Object.defineProperty(x,"AgCheckboxSelector",{enumerable:!0,get:function(){return ct.AgCheckboxSelector}});var dt=p(7336);Object.defineProperty(x,"AgRadioButton",{enumerable:!0,get:function(){return dt.AgRadioButton}});var bt=p(4927);Object.defineProperty(x,"AgToggleButton",{enumerable:!0,get:function(){return bt.AgToggleButton}}),Object.defineProperty(x,"AgToggleButtonSelector",{enumerable:!0,get:function(){return bt.AgToggleButtonSelector}});var Pt=p(5946);Object.defineProperty(x,"AgInputTextField",{enumerable:!0,get:function(){return Pt.AgInputTextField}}),Object.defineProperty(x,"AgInputTextFieldSelector",{enumerable:!0,get:function(){return Pt.AgInputTextFieldSelector}});var Nt=p(6209);Object.defineProperty(x,"AgInputTextArea",{enumerable:!0,get:function(){return Nt.AgInputTextArea}});var ft=p(8792);Object.defineProperty(x,"AgInputNumberField",{enumerable:!0,get:function(){return ft.AgInputNumberField}}),Object.defineProperty(x,"AgInputNumberFieldSelector",{enumerable:!0,get:function(){return ft.AgInputNumberFieldSelector}});var Lt=p(3611);Object.defineProperty(x,"AgInputDateField",{enumerable:!0,get:function(){return Lt.AgInputDateField}});var Vt=p(159);Object.defineProperty(x,"AgSelect",{enumerable:!0,get:function(){return Vt.AgSelect}}),Object.defineProperty(x,"AgSelectSelector",{enumerable:!0,get:function(){return Vt.AgSelectSelector}});var Jt=p(8020);Object.defineProperty(x,"Component",{enumerable:!0,get:function(){return Jt.Component}});var $t=p(1772);Object.defineProperty(x,"ManagedFocusFeature",{enumerable:!0,get:function(){return $t.ManagedFocusFeature}}),Object.defineProperty(x,"_FOCUS_MANAGED_CLASS",{enumerable:!0,get:function(){return $t.FOCUS_MANAGED_CLASS}});var Ii=p(8332);Object.defineProperty(x,"TabGuardComp",{enumerable:!0,get:function(){return Ii.TabGuardComp}});var zi=p(6);Object.defineProperty(x,"TabGuardCtrl",{enumerable:!0,get:function(){return zi.TabGuardCtrl}}),Object.defineProperty(x,"TabGuardClassNames",{enumerable:!0,get:function(){return zi.TabGuardClassNames}});var ln=p(1017);Object.defineProperty(x,"TabGuardFeature",{enumerable:!0,get:function(){return ln.TabGuardFeature}});var ha=p(3598);Object.defineProperty(x,"PopupComponent",{enumerable:!0,get:function(){return ha.PopupComponent}});var Gn=p(9644);Object.defineProperty(x,"TouchListener",{enumerable:!0,get:function(){return Gn.TouchListener}});var qn=p(2747);Object.defineProperty(x,"AgAbstractLabel",{enumerable:!0,get:function(){return qn.AgAbstractLabel}});var Qn=p(9497);Object.defineProperty(x,"AgPickerField",{enumerable:!0,get:function(){return Qn.AgPickerField}});var na=p(5961);Object.defineProperty(x,"CellRangeType",{enumerable:!0,get:function(){return na.CellRangeType}});var fo=p(5628);Object.defineProperty(x,"AutoScrollService",{enumerable:!0,get:function(){return fo.AutoScrollService}});var Yl=p(6511);Object.defineProperty(x,"VanillaFrameworkOverrides",{enumerable:!0,get:function(){return Yl.VanillaFrameworkOverrides}});var Wu=p(9853);Object.defineProperty(x,"KeyCode",{enumerable:!0,get:function(){return Wu.KeyCode}});var Kd=p(1657);Object.defineProperty(x,"GridCoreCreator",{enumerable:!0,get:function(){return Kd.GridCoreCreator}}),Object.defineProperty(x,"createGrid",{enumerable:!0,get:function(){return Kd.createGrid}}),Object.defineProperty(x,"provideGlobalGridOptions",{enumerable:!0,get:function(){return Kd.provideGlobalGridOptions}}),Object.defineProperty(x,"_getGlobalGridOption",{enumerable:!0,get:function(){return Kd._getGlobalGridOption}});var To=p(6876);Object.defineProperty(x,"_getClientSideRowModel",{enumerable:!0,get:function(){return To._getClientSideRowModel}}),Object.defineProperty(x,"_getServerSideRowModel",{enumerable:!0,get:function(){return To._getServerSideRowModel}});var nd=p(3080);Object.defineProperty(x,"_ALL_EVENTS",{enumerable:!0,get:function(){return nd._ALL_EVENTS}}),Object.defineProperty(x,"_PUBLIC_EVENTS",{enumerable:!0,get:function(){return nd._PUBLIC_EVENTS}});var Qi=p(7274);Object.defineProperty(x,"_getCallbackForEvent",{enumerable:!0,get:function(){return Qi._getCallbackForEvent}}),Object.defineProperty(x,"_combineAttributesAndGridOptions",{enumerable:!0,get:function(){return Qi._combineAttributesAndGridOptions}}),Object.defineProperty(x,"_processOnChange",{enumerable:!0,get:function(){return Qi._processOnChange}}),Object.defineProperty(x,"_getMaxConcurrentDatasourceRequests",{enumerable:!0,get:function(){return Qi._getMaxConcurrentDatasourceRequests}}),Object.defineProperty(x,"_getRowIdCallback",{enumerable:!0,get:function(){return Qi._getRowIdCallback}}),Object.defineProperty(x,"_getRowHeightForNode",{enumerable:!0,get:function(){return Qi._getRowHeightForNode}}),Object.defineProperty(x,"_isDomLayout",{enumerable:!0,get:function(){return Qi._isDomLayout}}),Object.defineProperty(x,"_isAnimateRows",{enumerable:!0,get:function(){return Qi._isAnimateRows}}),Object.defineProperty(x,"_getGrandTotalRow",{enumerable:!0,get:function(){return Qi._getGrandTotalRow}}),Object.defineProperty(x,"_getGroupTotalRowCallback",{enumerable:!0,get:function(){return Qi._getGroupTotalRowCallback}}),Object.defineProperty(x,"_isGroupMultiAutoColumn",{enumerable:!0,get:function(){return Qi._isGroupMultiAutoColumn}}),Object.defineProperty(x,"_isColumnsSortingCoupledToGroup",{enumerable:!0,get:function(){return Qi._isColumnsSortingCoupledToGroup}}),Object.defineProperty(x,"_isClientSideRowModel",{enumerable:!0,get:function(){return Qi._isClientSideRowModel}}),Object.defineProperty(x,"_isServerSideRowModel",{enumerable:!0,get:function(){return Qi._isServerSideRowModel}}),Object.defineProperty(x,"_isGroupUseEntireRow",{enumerable:!0,get:function(){return Qi._isGroupUseEntireRow}}),Object.defineProperty(x,"_canSkipShowingRowGroup",{enumerable:!0,get:function(){return Qi._canSkipShowingRowGroup}}),Object.defineProperty(x,"_getRowHeightAsNumber",{enumerable:!0,get:function(){return Qi._getRowHeightAsNumber}}),Object.defineProperty(x,"_shouldUpdateColVisibilityAfterGroup",{enumerable:!0,get:function(){return Qi._shouldUpdateColVisibilityAfterGroup}}),Object.defineProperty(x,"_getActiveDomElement",{enumerable:!0,get:function(){return Qi._getActiveDomElement}}),Object.defineProperty(x,"_isNothingFocused",{enumerable:!0,get:function(){return Qi._isNothingFocused}}),Object.defineProperty(x,"_getDocument",{enumerable:!0,get:function(){return Qi._getDocument}}),Object.defineProperty(x,"_getPageBody",{enumerable:!0,get:function(){return Qi._getPageBody}}),Object.defineProperty(x,"_anchorElementToMouseMoveEvent",{enumerable:!0,get:function(){return Qi._anchorElementToMouseMoveEvent}}),Object.defineProperty(x,"_getRootNode",{enumerable:!0,get:function(){return Qi._getRootNode}}),Object.defineProperty(x,"_getGroupAggFiltering",{enumerable:!0,get:function(){return Qi._getGroupAggFiltering}}),Object.defineProperty(x,"_isRowSelection",{enumerable:!0,get:function(){return Qi._isRowSelection}}),Object.defineProperty(x,"_isGetRowHeightFunction",{enumerable:!0,get:function(){return Qi._isGetRowHeightFunction}}),Object.defineProperty(x,"_getGroupSelection",{enumerable:!0,get:function(){return Qi._getGroupSelection}}),Object.defineProperty(x,"_getGroupSelectsDescendants",{enumerable:!0,get:function(){return Qi._getGroupSelectsDescendants}}),Object.defineProperty(x,"_getIsRowSelectable",{enumerable:!0,get:function(){return Qi._getIsRowSelectable}}),Object.defineProperty(x,"_getCheckboxes",{enumerable:!0,get:function(){return Qi._getCheckboxes}}),Object.defineProperty(x,"_getCheckboxLocation",{enumerable:!0,get:function(){return Qi._getCheckboxLocation}}),Object.defineProperty(x,"_getHeaderCheckbox",{enumerable:!0,get:function(){return Qi._getHeaderCheckbox}}),Object.defineProperty(x,"_isMultiRowSelection",{enumerable:!0,get:function(){return Qi._isMultiRowSelection}}),Object.defineProperty(x,"_getFillHandle",{enumerable:!0,get:function(){return Qi._getFillHandle}}),Object.defineProperty(x,"_isCellSelectionEnabled",{enumerable:!0,get:function(){return Qi._isCellSelectionEnabled}}),Object.defineProperty(x,"_getSuppressMultiRanges",{enumerable:!0,get:function(){return Qi._getSuppressMultiRanges}}),Object.defineProperty(x,"_getRowSelectionMode",{enumerable:!0,get:function(){return Qi._getRowSelectionMode}}),Object.defineProperty(x,"_isLegacyMenuEnabled",{enumerable:!0,get:function(){return Qi._isLegacyMenuEnabled}}),Object.defineProperty(x,"_isColumnMenuAnchoringEnabled",{enumerable:!0,get:function(){return Qi._isColumnMenuAnchoringEnabled}}),Object.defineProperty(x,"_isUsingNewRowSelectionAPI",{enumerable:!0,get:function(){return Qi._isUsingNewRowSelectionAPI}}),Object.defineProperty(x,"_isUsingNewCellSelectionAPI",{enumerable:!0,get:function(){return Qi._isUsingNewCellSelectionAPI}}),Object.defineProperty(x,"_isGroupRowsSticky",{enumerable:!0,get:function(){return Qi._isGroupRowsSticky}});var Nr=p(5889);Object.defineProperty(x,"LocalEventService",{enumerable:!0,get:function(){return Nr.LocalEventService}});var Rs=p(7600);Object.defineProperty(x,"GridCtrl",{enumerable:!0,get:function(){return Rs.GridCtrl}});var Uu=p(9944);Object.defineProperty(x,"LocaleService",{enumerable:!0,get:function(){return Uu.LocaleService}});var Vn=p(7230);Object.defineProperty(x,"_getLocaleTextFunc",{enumerable:!0,get:function(){return Vn._getLocaleTextFunc}});var qd=p(6257);Object.defineProperty(x,"_areCellsEqual",{enumerable:!0,get:function(){return qd._areCellsEqual}}),Object.defineProperty(x,"_createCellId",{enumerable:!0,get:function(){return qd._createCellId}}),Object.defineProperty(x,"_isRowBefore",{enumerable:!0,get:function(){return qd._isRowBefore}}),Object.defineProperty(x,"_isSameRow",{enumerable:!0,get:function(){return qd._isSameRow}}),Object.defineProperty(x,"_getRowNode",{enumerable:!0,get:function(){return qd._getRowNode}}),Object.defineProperty(x,"_getCellByPosition",{enumerable:!0,get:function(){return qd._getCellByPosition}});var Ps=p(920);Object.defineProperty(x,"_ALL_GRID_OPTIONS",{enumerable:!0,get:function(){return Ps._ALL_GRID_OPTIONS}}),Object.defineProperty(x,"_BOOLEAN_MIXED_GRID_OPTIONS",{enumerable:!0,get:function(){return Ps._BOOLEAN_MIXED_GRID_OPTIONS}});var is=p(8759);Object.defineProperty(x,"BaseComponentWrapper",{enumerable:!0,get:function(){return is.BaseComponentWrapper}});var hl=p(3386);Object.defineProperty(x,"TooltipFeature",{enumerable:!0,get:function(){return hl.TooltipFeature}}),Object.defineProperty(x,"_shouldDisplayTooltip",{enumerable:!0,get:function(){return hl._shouldDisplayTooltip}}),Object.defineProperty(x,"_getShouldDisplayTooltip",{enumerable:!0,get:function(){return hl._getShouldDisplayTooltip}}),Object.defineProperty(x,"_isShowTooltipWhenTruncated",{enumerable:!0,get:function(){return hl._isShowTooltipWhenTruncated}});var Sa=p(5230);Object.defineProperty(x,"_setAriaLevel",{enumerable:!0,get:function(){return Sa._setAriaLevel}}),Object.defineProperty(x,"_setAriaLabel",{enumerable:!0,get:function(){return Sa._setAriaLabel}}),Object.defineProperty(x,"_setAriaDescribedBy",{enumerable:!0,get:function(){return Sa._setAriaDescribedBy}}),Object.defineProperty(x,"_setAriaExpanded",{enumerable:!0,get:function(){return Sa._setAriaExpanded}}),Object.defineProperty(x,"_setAriaLabelledBy",{enumerable:!0,get:function(){return Sa._setAriaLabelledBy}}),Object.defineProperty(x,"_setAriaChecked",{enumerable:!0,get:function(){return Sa._setAriaChecked}}),Object.defineProperty(x,"_setAriaControls",{enumerable:!0,get:function(){return Sa._setAriaControls}}),Object.defineProperty(x,"_setAriaRole",{enumerable:!0,get:function(){return Sa._setAriaRole}}),Object.defineProperty(x,"_setAriaColIndex",{enumerable:!0,get:function(){return Sa._setAriaColIndex}}),Object.defineProperty(x,"_setAriaColSpan",{enumerable:!0,get:function(){return Sa._setAriaColSpan}}),Object.defineProperty(x,"_setAriaRowIndex",{enumerable:!0,get:function(){return Sa._setAriaRowIndex}}),Object.defineProperty(x,"_setAriaDisabled",{enumerable:!0,get:function(){return Sa._setAriaDisabled}}),Object.defineProperty(x,"_removeAriaExpanded",{enumerable:!0,get:function(){return Sa._removeAriaExpanded}}),Object.defineProperty(x,"_removeAriaSort",{enumerable:!0,get:function(){return Sa._removeAriaSort}}),Object.defineProperty(x,"_setAriaSort",{enumerable:!0,get:function(){return Sa._setAriaSort}}),Object.defineProperty(x,"_setAriaColCount",{enumerable:!0,get:function(){return Sa._setAriaColCount}}),Object.defineProperty(x,"_setAriaRowCount",{enumerable:!0,get:function(){return Sa._setAriaRowCount}}),Object.defineProperty(x,"_setAriaActiveDescendant",{enumerable:!0,get:function(){return Sa._setAriaActiveDescendant}}),Object.defineProperty(x,"_setAriaSelected",{enumerable:!0,get:function(){return Sa._setAriaSelected}}),Object.defineProperty(x,"_setAriaPosInSet",{enumerable:!0,get:function(){return Sa._setAriaPosInSet}}),Object.defineProperty(x,"_setAriaSetSize",{enumerable:!0,get:function(){return Sa._setAriaSetSize}}),Object.defineProperty(x,"_setAriaHidden",{enumerable:!0,get:function(){return Sa._setAriaHidden}}),Object.defineProperty(x,"_getAriaPosInSet",{enumerable:!0,get:function(){return Sa._getAriaPosInSet}});var cr=p(1502);Object.defineProperty(x,"_EmptyArray",{enumerable:!0,get:function(){return cr._EmptyArray}}),Object.defineProperty(x,"_removeFromArray",{enumerable:!0,get:function(){return cr._removeFromArray}}),Object.defineProperty(x,"_last",{enumerable:!0,get:function(){return cr._last}}),Object.defineProperty(x,"_areEqual",{enumerable:!0,get:function(){return cr._areEqual}});var La=p(8667);Object.defineProperty(x,"_isIOSUserAgent",{enumerable:!0,get:function(){return La._isIOSUserAgent}});var Oh=p(6800);Object.defineProperty(x,"ChangedPath",{enumerable:!0,get:function(){return Oh.ChangedPath}});var Fh=p(9827);Object.defineProperty(x,"_serialiseDate",{enumerable:!0,get:function(){return Fh._serialiseDate}}),Object.defineProperty(x,"_parseDateTimeFromString",{enumerable:!0,get:function(){return Fh._parseDateTimeFromString}});var Ro=p(3507);Object.defineProperty(x,"_getAbsoluteHeight",{enumerable:!0,get:function(){return Ro._getAbsoluteHeight}}),Object.defineProperty(x,"_getAbsoluteWidth",{enumerable:!0,get:function(){return Ro._getAbsoluteWidth}}),Object.defineProperty(x,"_setDisplayed",{enumerable:!0,get:function(){return Ro._setDisplayed}}),Object.defineProperty(x,"_clearElement",{enumerable:!0,get:function(){return Ro._clearElement}}),Object.defineProperty(x,"_removeFromParent",{enumerable:!0,get:function(){return Ro._removeFromParent}}),Object.defineProperty(x,"_radioCssClass",{enumerable:!0,get:function(){return Ro._radioCssClass}}),Object.defineProperty(x,"_loadTemplate",{enumerable:!0,get:function(){return Ro._loadTemplate}}),Object.defineProperty(x,"_isVisible",{enumerable:!0,get:function(){return Ro._isVisible}}),Object.defineProperty(x,"_setFixedWidth",{enumerable:!0,get:function(){return Ro._setFixedWidth}}),Object.defineProperty(x,"_setDisabled",{enumerable:!0,get:function(){return Ro._setDisabled}}),Object.defineProperty(x,"_setVisible",{enumerable:!0,get:function(){return Ro._setVisible}}),Object.defineProperty(x,"_bindCellRendererToHtmlElement",{enumerable:!0,get:function(){return Ro._bindCellRendererToHtmlElement}}),Object.defineProperty(x,"_getInnerHeight",{enumerable:!0,get:function(){return Ro._getInnerHeight}}),Object.defineProperty(x,"_getInnerWidth",{enumerable:!0,get:function(){return Ro._getInnerWidth}}),Object.defineProperty(x,"_isNodeOrElement",{enumerable:!0,get:function(){return Ro._isNodeOrElement}}),Object.defineProperty(x,"_observeResize",{enumerable:!0,get:function(){return Ro._observeResize}});var Kg=p(2979);Object.defineProperty(x,"_stopPropagationForAgGrid",{enumerable:!0,get:function(){return Kg._stopPropagationForAgGrid}}),Object.defineProperty(x,"_isStopPropagationForAgGrid",{enumerable:!0,get:function(){return Kg._isStopPropagationForAgGrid}}),Object.defineProperty(x,"_isElementInEventPath",{enumerable:!0,get:function(){return Kg._isElementInEventPath}});var gl=p(2043);Object.defineProperty(x,"_warnOnce",{enumerable:!0,get:function(){return gl._warnOnce}}),Object.defineProperty(x,"_debounce",{enumerable:!0,get:function(){return gl._debounce}}),Object.defineProperty(x,"_doOnce",{enumerable:!0,get:function(){return gl._doOnce}}),Object.defineProperty(x,"_waitUntil",{enumerable:!0,get:function(){return gl._waitUntil}});var Jn=p(7764);Object.defineProperty(x,"_warn",{enumerable:!0,get:function(){return Jn._warn}}),Object.defineProperty(x,"_error",{enumerable:!0,get:function(){return Jn._error}}),Object.defineProperty(x,"_errMsg",{enumerable:!0,get:function(){return Jn._errMsg}}),Object.defineProperty(x,"_preInitErrMsg",{enumerable:!0,get:function(){return Jn._preInitErrMsg}});var xc=p(9970);Object.defineProperty(x,"_createIcon",{enumerable:!0,get:function(){return xc._createIcon}}),Object.defineProperty(x,"_createIconNoSpan",{enumerable:!0,get:function(){return xc._createIconNoSpan}});var ns=p(1298);Object.defineProperty(x,"_fuzzySuggestions",{enumerable:!0,get:function(){return ns._fuzzySuggestions}});var wa=p(4422);Object.defineProperty(x,"_exists",{enumerable:!0,get:function(){return wa._exists}}),Object.defineProperty(x,"_missing",{enumerable:!0,get:function(){return wa._missing}}),Object.defineProperty(x,"_jsonEquals",{enumerable:!0,get:function(){return wa._jsonEquals}}),Object.defineProperty(x,"_toStringOrNull",{enumerable:!0,get:function(){return wa._toStringOrNull}}),Object.defineProperty(x,"_makeNull",{enumerable:!0,get:function(){return wa._makeNull}}),Object.defineProperty(x,"_defaultComparator",{enumerable:!0,get:function(){return wa._defaultComparator}});var as=p(6466);Object.defineProperty(x,"_isEventFromPrintableCharacter",{enumerable:!0,get:function(){return as._isEventFromPrintableCharacter}});var ea=p(7698);Object.defineProperty(x,"_formatNumberCommas",{enumerable:!0,get:function(){return ea._formatNumberCommas}});var BC=p(6996);Object.defineProperty(x,"_mergeDeep",{enumerable:!0,get:function(){return BC._mergeDeep}});var LA=p(7766);Object.defineProperty(x,"_escapeString",{enumerable:!0,get:function(){return LA._escapeString}});var GC=p(7990);Object.defineProperty(x,"AgPromise",{enumerable:!0,get:function(){return GC.AgPromise}}),Object.defineProperty(x,"_isPromise",{enumerable:!0,get:function(){return GC._isPromise}});var Ku=p(2331);Object.defineProperty(x,"_addFocusableContainerListener",{enumerable:!0,get:function(){return Ku._addFocusableContainerListener}}),Object.defineProperty(x,"_findFocusableElements",{enumerable:!0,get:function(){return Ku._findFocusableElements}}),Object.defineProperty(x,"_focusInto",{enumerable:!0,get:function(){return Ku._focusInto}}),Object.defineProperty(x,"_findNextFocusableElement",{enumerable:!0,get:function(){return Ku._findNextFocusableElement}}),Object.defineProperty(x,"_findTabbableParent",{enumerable:!0,get:function(){return Ku._findTabbableParent}}),Object.defineProperty(x,"_focusGridInnerElement",{enumerable:!0,get:function(){return Ku._focusGridInnerElement}}),Object.defineProperty(x,"_isKeyboardMode",{enumerable:!0,get:function(){return Ku._isKeyboardMode}}),Object.defineProperty(x,"_focusNextGridCoreContainer",{enumerable:!0,get:function(){return Ku._focusNextGridCoreContainer}}),A.__exportStar(p(7419),x),A.__exportStar(p(7919),x);var Zw=p(7331);Object.defineProperty(x,"BaseCreator",{enumerable:!0,get:function(){return Zw.BaseCreator}});var qg=p(8376);Object.defineProperty(x,"BaseGridSerializingSession",{enumerable:!0,get:function(){return qg.BaseGridSerializingSession}});var rm=p(3885);Object.defineProperty(x,"_downloadFile",{enumerable:!0,get:function(){return rm._downloadFile}});var Mc=p(2132);Object.defineProperty(x,"ModuleRegistry",{enumerable:!0,get:function(){return Mc.ModuleRegistry}}),Object.defineProperty(x,"_getGridRegisteredModules",{enumerable:!0,get:function(){return Mc._getGridRegisteredModules}});var mn=p(5010);Object.defineProperty(x,"ValidationModule",{enumerable:!0,get:function(){return mn.ValidationModule}});var sm=p(4074);Object.defineProperty(x,"_ColumnMoveModule",{enumerable:!0,get:function(){return sm.ColumnMoveModule}});var _h=p(4388);Object.defineProperty(x,"_DragModule",{enumerable:!0,get:function(){return _h.DragModule}}),Object.defineProperty(x,"_HorizontalResizeModule",{enumerable:!0,get:function(){return _h.HorizontalResizeModule}}),Object.defineProperty(x,"_SharedDragAndDropModule",{enumerable:!0,get:function(){return _h.SharedDragAndDropModule}}),Object.defineProperty(x,"DragAndDropModule",{enumerable:!0,get:function(){return _h.DragAndDropModule}}),Object.defineProperty(x,"RowDragModule",{enumerable:!0,get:function(){return _h.RowDragModule}});var ad=p(5432);Object.defineProperty(x,"_ColumnFilterModule",{enumerable:!0,get:function(){return ad.ColumnFilterModule}}),Object.defineProperty(x,"_FilterCoreModule",{enumerable:!0,get:function(){return ad.FilterCoreModule}}),Object.defineProperty(x,"_FilterValueModule",{enumerable:!0,get:function(){return ad.FilterValueModule}}),Object.defineProperty(x,"CustomFilterModule",{enumerable:!0,get:function(){return ad.CustomFilterModule}}),Object.defineProperty(x,"QuickFilterModule",{enumerable:!0,get:function(){return ad.QuickFilterModule}}),Object.defineProperty(x,"TextFilterModule",{enumerable:!0,get:function(){return ad.TextFilterModule}}),Object.defineProperty(x,"NumberFilterModule",{enumerable:!0,get:function(){return ad.NumberFilterModule}}),Object.defineProperty(x,"DateFilterModule",{enumerable:!0,get:function(){return ad.DateFilterModule}}),Object.defineProperty(x,"ExternalFilterModule",{enumerable:!0,get:function(){return ad.ExternalFilterModule}});var od=p(4652);Object.defineProperty(x,"_EditCoreModule",{enumerable:!0,get:function(){return od.EditCoreModule}}),Object.defineProperty(x,"NumberEditorModule",{enumerable:!0,get:function(){return od.NumberEditorModule}}),Object.defineProperty(x,"DateEditorModule",{enumerable:!0,get:function(){return od.DateEditorModule}}),Object.defineProperty(x,"CheckboxEditorModule",{enumerable:!0,get:function(){return od.CheckboxEditorModule}}),Object.defineProperty(x,"TextEditorModule",{enumerable:!0,get:function(){return od.TextEditorModule}}),Object.defineProperty(x,"LargeTextEditorModule",{enumerable:!0,get:function(){return od.LargeTextEditorModule}}),Object.defineProperty(x,"SelectEditorModule",{enumerable:!0,get:function(){return od.SelectEditorModule}}),Object.defineProperty(x,"UndoRedoEditModule",{enumerable:!0,get:function(){return od.UndoRedoEditModule}}),Object.defineProperty(x,"CustomEditorModule",{enumerable:!0,get:function(){return od.CustomEditorModule}});var Ls=p(3352);Object.defineProperty(x,"RowSelectionModule",{enumerable:!0,get:function(){return Ls.RowSelectionModule}}),Object.defineProperty(x,"_SharedRowSelectionModule",{enumerable:!0,get:function(){return Ls.SharedRowSelectionModule}});var Vf=p(6437);Object.defineProperty(x,"_CsrmSsrmSharedApiModule",{enumerable:!0,get:function(){return Vf.CsrmSsrmSharedApiModule}}),Object.defineProperty(x,"_SsrmInfiniteSharedApiModule",{enumerable:!0,get:function(){return Vf.SsrmInfiniteSharedApiModule}});var Nh=p(3472);Object.defineProperty(x,"_SharedMenuModule",{enumerable:!0,get:function(){return Nh.SharedMenuModule}});var Xl=p(6620);Object.defineProperty(x,"_SortModule",{enumerable:!0,get:function(){return Xl.SortModule}});var kc=p(2074);Object.defineProperty(x,"AlignedGridsModule",{enumerable:!0,get:function(){return kc.AlignedGridsModule}});var mi=p(9722);Object.defineProperty(x,"ClientSideRowModelModule",{enumerable:!0,get:function(){return mi.ClientSideRowModelModule}}),Object.defineProperty(x,"ClientSideRowModelApiModule",{enumerable:!0,get:function(){return mi.ClientSideRowModelApiModule}});var Oa=p(9734);Object.defineProperty(x,"CsvExportModule",{enumerable:!0,get:function(){return Oa.CsvExportModule}});var zh=p(4002);Object.defineProperty(x,"InfiniteRowModelModule",{enumerable:!0,get:function(){return zh.InfiniteRowModelModule}});var lm=p(3137);Object.defineProperty(x,"_PopupModule",{enumerable:!0,get:function(){return lm.PopupModule}});var $w=p(928);Object.defineProperty(x,"_KeyboardNavigationModule",{enumerable:!0,get:function(){return $w.KeyboardNavigationModule}});var Qw=p(3498);Object.defineProperty(x,"HighlightChangesModule",{enumerable:!0,get:function(){return Qw.HighlightChangesModule}});var Jw=p(6041);Object.defineProperty(x,"_ColumnGroupModule",{enumerable:!0,get:function(){return Jw.ColumnGroupModule}});var ky=p(6989);Object.defineProperty(x,"GridStateModule",{enumerable:!0,get:function(){return ky.GridStateModule}});var rd=p(2027);Object.defineProperty(x,"ColumnApiModule",{enumerable:!0,get:function(){return rd.ColumnApiModule}});var Ac=p(1824);Object.defineProperty(x,"PaginationModule",{enumerable:!0,get:function(){return Ac.PaginationModule}});var sd=p(9642);Object.defineProperty(x,"RowApiModule",{enumerable:!0,get:function(){return sd.RowApiModule}}),Object.defineProperty(x,"ScrollApiModule",{enumerable:!0,get:function(){return sd.ScrollApiModule}});var Ay=p(6964);Object.defineProperty(x,"RenderApiModule",{enumerable:!0,get:function(){return Ay.RenderApiModule}});var VC=p(3856);Object.defineProperty(x,"ColumnAutoSizeModule",{enumerable:!0,get:function(){return VC.ColumnAutoSizeModule}});var jf=p(5423);Object.defineProperty(x,"PinnedRowModule",{enumerable:!0,get:function(){return jf.PinnedRowModule}});var dr=p(6431);Object.defineProperty(x,"ValueCacheModule",{enumerable:!0,get:function(){return dr.ValueCacheModule}}),Object.defineProperty(x,"CellApiModule",{enumerable:!0,get:function(){return dr.CellApiModule}});var Dy=p(8594);Object.defineProperty(x,"CellStyleModule",{enumerable:!0,get:function(){return Dy.CellStyleModule}}),Object.defineProperty(x,"RowStyleModule",{enumerable:!0,get:function(){return Dy.RowStyleModule}});var os=p(1690);Object.defineProperty(x,"ColumnHoverModule",{enumerable:!0,get:function(){return os.ColumnHoverModule}});var ri=p(9410);Object.defineProperty(x,"EventApiModule",{enumerable:!0,get:function(){return ri.EventApiModule}});var ld=p(4658);Object.defineProperty(x,"TooltipModule",{enumerable:!0,get:function(){return ld.TooltipModule}});var ex=p(9519);Object.defineProperty(x,"LocaleModule",{enumerable:!0,get:function(){return ex.LocaleModule}});var Ey=p(4577);Object.defineProperty(x,"RowAutoHeightModule",{enumerable:!0,get:function(){return Ey.RowAutoHeightModule}});var Yg=p(2728);Object.defineProperty(x,"_SharedExportModule",{enumerable:!0,get:function(){return Yg.SharedExportModule}});var jC=p(1621);Object.defineProperty(x,"AllCommunityModule",{enumerable:!0,get:function(){return jC.AllCommunityModule}}),A.__exportStar(p(7968),x);var cm=p(6607);Object.defineProperty(x,"createPart",{enumerable:!0,get:function(){return cm.createPart}});var Iy=p(9621);Object.defineProperty(x,"createTheme",{enumerable:!0,get:function(){return Iy.createTheme}}),Object.defineProperty(x,"_asThemeImpl",{enumerable:!0,get:function(){return Iy._asThemeImpl}}),A.__exportStar(p(8265),x),A.__exportStar(p(8689),x),A.__exportStar(p(6407),x),A.__exportStar(p(7161),x),A.__exportStar(p(5117),x),A.__exportStar(p(2525),x)},6392:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AnimationFrameModule=void 0;let A=p(7205),E=p(2612);x.AnimationFrameModule={moduleName:"AnimationFrame",version:A.VERSION,beans:[E.AnimationFrameService]}},2612:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AnimationFrameService=x._requestAnimationFrame=void 0;let A=p(8731),E=p(7274),z=p(7764);function T(C,d){let s=(0,E._getWindow)(C);s.requestAnimationFrame?s.requestAnimationFrame(d):s.webkitRequestAnimationFrame?s.webkitRequestAnimationFrame(d):s.setTimeout(d,0)}x._requestAnimationFrame=T;class b extends A.BeanStub{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastPage=0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}setScrollTop(d){var g;let{gos:s,pagination:c}=this.beans,h=s.get("pagination");if(this.scrollGoingDown=d>=this.lastScrollTop,h&&d===0){let f=(g=c==null?void 0:c.getCurrentPage())!=null?g:0;f!==this.lastPage&&(this.lastPage=f,this.scrollGoingDown=!0)}this.lastScrollTop=d}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame")}verifyAnimationFrameOn(d){this.active===!1&&(0,z._warn)(92,{methodName:d})}createTask(d,s,c){this.verifyAnimationFrameOn(c);let h={task:d,index:s,createOrder:++this.taskCount};this.addTaskToList(this[c],h),this.schedule()}cancelTask(d){this.cancelledTasks.add(d)}addTaskToList(d,s){d.list.push(s),d.sorted=!1}sortTaskList(d){if(d.sorted)return;let s=this.scrollGoingDown?1:-1;d.list.sort((c,h)=>c.index!==h.index?s*(h.index-c.index):h.createOrder-c.createOrder),d.sorted=!0}addDestroyTask(d){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(d),this.schedule()}executeFrame(d){this.verifyAnimationFrameOn("executeFrame");let s=this.createTasksP1,c=s.list,h=this.createTasksP2,g=h.list,f=this.destroyTasks,S=new Date().getTime(),w=new Date().getTime()-S,M=d<=0,P=this.beans.ctrlsSvc.getScrollFeature();for(;M||w<d;){if(!P.scrollGridIfNeeded()){let O;if(c.length)this.sortTaskList(s),O=c.pop().task;else if(g.length)this.sortTaskList(h),O=g.pop().task;else{if(!f.length){this.cancelledTasks.clear();break}O=f.pop()}this.cancelledTasks.has(O)||O()}w=new Date().getTime()-S}c.length||g.length||f.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){let d=this.executeFrame.bind(this,60);T(this.beans,d)}isQueueEmpty(){return!this.ticking}}x.AnimationFrameService=b},9410:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.EventApiModule=void 0;let A=p(7205),E=p(6107),z=p(6470);x.EventApiModule={moduleName:"EventApi",version:A.VERSION,apiFunctions:{addEventListener:z.addEventListener,addGlobalListener:z.addGlobalListener,removeEventListener:z.removeEventListener,removeGlobalListener:z.removeGlobalListener},beans:[E.ApiEventService]}},6107:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ApiEventService=void 0;let A=p(8731),E=p(7968);class z extends A.BeanStub{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){var b,C;this.wrapSvc=(C=(b=this.beans.frameworkOverrides).createGlobalEventListenerWrapper)==null?void 0:C.call(b)}addEventListener(b,C){var h,g;let d=(g=(h=this.wrapSvc)==null?void 0:h.wrap(C))!=null?g:C,s=!E.ALWAYS_SYNC_GLOBAL_EVENTS.has(b),c=s?this.asyncListeners:this.syncListeners;c.has(b)||c.set(b,new Set),c.get(b).add(d),this.eventSvc.addEventListener(b,d,s)}removeEventListener(b,C){var h,g,f;let d=(g=(h=this.wrapSvc)==null?void 0:h.unwrap(C))!=null?g:C,s=this.asyncListeners.get(b),c=!!(s!=null&&s.delete(d));c||((f=this.syncListeners.get(b))==null||f.delete(d)),this.eventSvc.removeEventListener(b,d,c)}addGlobalListener(b){var h,g;let C=(g=(h=this.wrapSvc)==null?void 0:h.wrapGlobal(b))!=null?g:b,d=(f,S)=>{E.ALWAYS_SYNC_GLOBAL_EVENTS.has(f)&&C(f,S)},s=(f,S)=>{E.ALWAYS_SYNC_GLOBAL_EVENTS.has(f)||C(f,S)};this.globalListenerPairs.set(b,{syncListener:d,asyncListener:s});let c=this.eventSvc;c.addGlobalListener(d,!1),c.addGlobalListener(s,!0)}removeGlobalListener(b){var h;let{eventSvc:C,wrapSvc:d,globalListenerPairs:s}=this,c=(h=d==null?void 0:d.unwrapGlobal(b))!=null?h:b;if(s.has(c)){let{syncListener:g,asyncListener:f}=s.get(c);C.removeGlobalListener(g,!1),C.removeGlobalListener(f,!0),s.delete(b)}else this.syncGlobalListeners.delete(c),C.removeGlobalListener(c,!1)}destroyEventListeners(b,C){b.forEach((d,s)=>{d.forEach(c=>this.eventSvc.removeEventListener(s,c,C)),d.clear()}),b.clear()}destroyGlobalListeners(b,C){b.forEach(d=>this.eventSvc.removeGlobalListener(d,C)),b.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);let{globalListenerPairs:b,eventSvc:C}=this;b.forEach(({syncListener:d,asyncListener:s})=>{C.removeGlobalListener(d,!1),C.removeGlobalListener(s,!0)}),b.clear()}}x.ApiEventService=z},6470:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.removeGlobalListener=x.addGlobalListener=x.removeEventListener=x.addEventListener=void 0,x.addEventListener=function(p,A,E){var z;(z=p.apiEventSvc)==null||z.addEventListener(A,E)},x.removeEventListener=function(p,A,E){var z;(z=p.apiEventSvc)==null||z.removeEventListener(A,E)},x.addGlobalListener=function(p,A){var E;(E=p.apiEventSvc)==null||E.addGlobalListener(A)},x.removeGlobalListener=function(p,A){var E;(E=p.apiEventSvc)==null||E.removeGlobalListener(A)}},9519:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.LocaleModule=void 0;let A=p(7205),E=p(9944);x.LocaleModule={moduleName:"Locale",version:A.VERSION,beans:[E.LocaleService]}},9944:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.LocaleService=void 0;let A=p(8731);class E extends A.BeanStub{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){let T=this.gos,b=T.getCallback("getLocaleText");if(b)return(d,s,c)=>b({key:d,defaultValue:s,variableValues:c});let C=T.get("localeText");return(d,s,c)=>{let h=C&&C[d];if(h&&c&&c.length){let g=0;for(;!(g>=c.length)&&h.indexOf("${variable}")!==-1;)h=h.replace("${variable}",c[g++])}return h!=null?h:s}}}x.LocaleService=E},7230:function(ae,x){function p(A,E){return E}Object.defineProperty(x,"__esModule",{value:!0}),x._getLocaleTextFunc=void 0,x._getLocaleTextFunc=function(A){var E;return(E=A==null?void 0:A.getLocaleTextFunc())!=null?E:p}},297:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.hidePopupMenu=x.showColumnMenu=void 0;let A=p(7764);x.showColumnMenu=function(E,z){var b;let T=E.colModel.getCol(z);T?(b=E.menuSvc)==null||b.showColumnMenu({column:T,positionBy:"auto"}):(0,A._error)(12,{colKey:z})},x.hidePopupMenu=function(E){var z;(z=E.menuSvc)==null||z.hidePopupMenu()}},8994:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._setColMenuVisible=x.MenuService=void 0;let A=p(8731),E=p(3355),z=p(7274),T=p(8667),b=p(2612);class C extends A.BeanStub{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){let{enterpriseMenuFactory:s,filterMenuFactory:c}=this.beans;this.activeMenuFactory=s!=null?s:c}showColumnMenu(s){this.showColumnMenuCommon(this.activeMenuFactory,s,"columnMenu")}showFilterMenu(s){let{enterpriseMenuFactory:c,filterMenuFactory:h}=this.beans,g=c&&(0,z._isLegacyMenuEnabled)(this.gos)?c:h;this.showColumnMenuCommon(g,s,s.containerType,!0)}showHeaderContextMenu(s,c,h){var g;(g=this.activeMenuFactory)==null||g.showMenuAfterContextMenuEvent(s,c,h)}hidePopupMenu(){var s,c;(s=this.beans.contextMenuSvc)==null||s.hideActiveMenu(),(c=this.activeMenuFactory)==null||c.hideActiveMenu()}isColumnMenuInHeaderEnabled(s){var h;let{suppressHeaderMenuButton:c}=s.getColDef();return!c&&!!((h=this.activeMenuFactory)!=null&&h.isMenuEnabled(s))&&((0,z._isLegacyMenuEnabled)(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(s){var c;return!s.getColDef().suppressHeaderFilterButton&&!!((c=this.beans.filterManager)!=null&&c.isFilterAllowed(s))}isHeaderContextMenuEnabled(s){let c=s&&(0,E.isColumn)(s)?s.getColDef():s==null?void 0:s.getColGroupDef();return!(c!=null&&c.suppressHeaderContextMenu)&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){let s=!this.isSuppressMenuHide();return!((0,T._isIOSUserAgent)()&&s)}isHeaderFilterButtonEnabled(s){return this.isFilterMenuInHeaderEnabled(s)&&!(0,z._isLegacyMenuEnabled)(this.gos)&&!this.isFloatingFilterButtonDisplayed(s)}isFilterMenuItemEnabled(s){var c;return!(!((c=this.beans.filterManager)!=null&&c.isFilterAllowed(s))||(0,z._isLegacyMenuEnabled)(this.gos)||this.isFilterMenuInHeaderEnabled(s)||this.isFloatingFilterButtonDisplayed(s))}isFloatingFilterButtonEnabled(s){return!s.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(s){return!!s.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(s)}isSuppressMenuHide(){let s=this.gos,c=s.get("suppressMenuHide");return(0,z._isLegacyMenuEnabled)(s)?!!s.exists("suppressMenuHide")&&c:c}showColumnMenuCommon(s,c,h,g){let{positionBy:f}=c,S=c.column;if(f==="button"){let{buttonElement:w}=c;s==null||s.showMenuAfterButtonClick(S,w,h,g)}else if(f==="mouse"){let{mouseEvent:w}=c;s==null||s.showMenuAfterMouseEvent(S,w,h,g)}else if(S){let w=this.beans,M=w.ctrlsSvc;M.getScrollFeature().ensureColumnVisible(S,"auto"),(0,b._requestAnimationFrame)(w,()=>{var O;let P=(O=M.getHeaderRowContainerCtrl(S.getPinned()))==null?void 0:O.getHeaderCtrlForColumn(S);P&&(s==null||s.showMenuAfterButtonClick(S,P.getAnchorElementForMenu(g),h,!0))})}}}x.MenuService=C,x._setColMenuVisible=function(d,s,c){d.menuVisible!==s&&(d.menuVisible=s,d.dispatchColEvent("menuVisibleChanged",c))}},3472:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SharedMenuModule=void 0;let A=p(7205),E=p(297),z=p(8994);x.SharedMenuModule={moduleName:"SharedMenu",version:A.VERSION,beans:[z.MenuService],apiFunctions:{showColumnMenu:E.showColumnMenu,hidePopupMenu:E.hidePopupMenu}}},1997:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getState=void 0,x.getState=function(p){var A,E;return(E=(A=p.stateSvc)==null?void 0:A.getState())!=null?E:{}}},6414:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.migrateGridStateModel=void 0,x.migrateGridStateModel=function(p){return(p=ge({},p)).version||(p.version="32.1.0"),p.version==="32.1.0"&&(p=function(A){return A.cellSelection=function(E,z){if(E&&typeof E=="object")return E[z]}(A,"rangeSelection"),A}(p)),p}},6989:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GridStateModule=void 0;let A=p(7205),E=p(1997),z=p(3374);x.GridStateModule={moduleName:"GridState",version:A.VERSION,beans:[z.StateService],apiFunctions:{getState:E.getState}}},3374:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.StateService=void 0;let A=p(5266),E=p(8731),z=p(7274),T=p(2043),b=p(4422),C=p(7205),d=p(6414);class s extends E.BeanStub{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=(0,T._debounce)(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=(0,T._debounce)(this,()=>{this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState())},0),this.onRowSelectedDebounced=(0,T._debounce)(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){this.isClientSideRowModel=(0,z._isClientSideRowModel)(this.gos),this.cachedState=this.getInitialState(),this.setCachedStateValue("version",C.VERSION);let h=this.suppressEventsAndDispatchInitEvent.bind(this);this.beans.ctrlsSvc.whenReady(this,()=>h(()=>this.setupStateOnGridReady()));let[g,f,S]=this.addManagedEventListeners({newColumnsLoaded:({source:w})=>{w==="gridInitializing"&&(g(),h(()=>this.setupStateOnColumnsInitialised()))},rowCountReady:()=>{f==null||f(),h(()=>this.setupStateOnRowCountReady())},firstDataRendered:()=>{S==null||S(),h(()=>this.setupStateOnFirstDataRendered())}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getInitialState(){var h;return(0,d.migrateGridStateModel)((h=this.gos.get("initialState"))!=null?h:{})}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setupStateOnGridReady(){let h=()=>this.updateCachedState("sideBar",this.getSideBarState());h(),this.addManagedEventListeners({toolPanelVisibleChanged:h,sideBarUpdated:h})}setupStateOnColumnsInitialised(){let h=this.getInitialState();this.setColumnState(h),this.setColumnGroupState(h),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState());let g=f=>()=>this.updateColumnState([f]);this.addManagedEventListeners({columnValueChanged:g("aggregation"),columnMoved:g("columnOrder"),columnPinned:g("columnPinning"),columnResized:g("columnSizing"),columnVisible:g("columnVisibility"),columnPivotChanged:g("pivot"),columnPivotModeChanged:g("pivot"),columnRowGroupChanged:g("rowGroup"),sortChanged:g("sort"),newColumnsLoaded:()=>this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setupStateOnRowCountReady(){let{filter:h,rowGroupExpansion:g,rowSelection:f,pagination:S}=this.getInitialState();h&&this.setFilterState(h),g&&this.setRowGroupExpansionState(g),f&&this.setRowSelectionState(f),S&&this.setPaginationState(S);let w=this.updateCachedState.bind(this);w("filter",this.getFilterState()),w("rowGroupExpansion",this.getRowGroupExpansionState()),w("rowSelection",this.getRowSelectionState()),w("pagination",this.getPaginationState());let M=()=>{this.updateRowGroupExpansionStateTimer=0,w("rowGroupExpansion",this.getRowGroupExpansionState())};this.addManagedEventListeners({filterChanged:()=>w("filter",this.getFilterState()),rowGroupOpened:()=>this.onRowGroupOpenedDebounced(),expandOrCollapseAll:M,columnRowGroupChanged:M,rowDataUpdated:()=>{this.gos.get("groupDefaultExpanded")!==0&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(M)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:P=>{(P.newPage||P.newPageSize)&&w("pagination",this.getPaginationState())}})}setupStateOnFirstDataRendered(){let{scroll:h,cellSelection:g,focusedCell:f,columnOrder:S}=this.getInitialState();f&&this.setFocusedCellState(f),g&&this.setCellSelectionState(g),h&&this.setScrollState(h),this.setColumnPivotState(!!(S!=null&&S.orderedColIds));let w=this.updateCachedState.bind(this);w("sideBar",this.getSideBarState()),w("focusedCell",this.getFocusedCellState());let M=this.getRangeSelectionState();w("rangeSelection",M),w("cellSelection",M),w("scroll",this.getScrollState()),this.addManagedEventListeners({cellFocused:()=>w("focusedCell",this.getFocusedCellState()),cellSelectionChanged:P=>{if(P.finished){let O=this.getRangeSelectionState();w("rangeSelection",O),w("cellSelection",O)}},bodyScrollEnd:()=>w("scroll",this.getScrollState())})}getColumnState(){let h=this.beans,g=h.colModel.isPivotMode(),f=[],S=[],w=[],M=[],P=[],O=[],G=[],j=[],Y=[],J=0,ne=(0,A._getColumnState)(h);for(let ce=0;ce<ne.length;ce++){let{colId:fe,sort:xe,sortIndex:Le,rowGroup:_e,rowGroupIndex:Fe,aggFunc:We,pivot:it,pivotIndex:tt,pinned:ot,hide:st,width:St,flex:Xe}=ne[ce];Y.push(fe),xe&&(f[Le!=null?Le:J++]={colId:fe,sort:xe}),_e&&(S[Fe!=null?Fe:0]=fe),typeof We=="string"&&w.push({colId:fe,aggFunc:We}),it&&(M[tt!=null?tt:0]=fe),ot&&(ot==="right"?O:P).push(fe),st&&G.push(fe),(Xe||St)&&j.push({colId:fe,flex:Xe!=null?Xe:void 0,width:St})}return{sort:f.length?{sortModel:f}:void 0,rowGroup:S.length?{groupColIds:S}:void 0,aggregation:w.length?{aggregationModel:w}:void 0,pivot:M.length||g?{pivotMode:g,pivotColIds:M}:void 0,columnPinning:P.length||O.length?{leftColIds:P,rightColIds:O}:void 0,columnVisibility:G.length?{hiddenColIds:G}:void 0,columnSizing:j.length?{columnSizingModel:j}:void 0,columnOrder:Y.length?{orderedColIds:Y}:void 0}}setColumnState(h){let{sort:g,rowGroup:f,aggregation:S,pivot:w,columnPinning:M,columnVisibility:P,columnSizing:O,columnOrder:G,partialColumnState:j}=h,Y={},J=Le=>{let _e=Y[Le];return _e||(_e={colId:Le},Y[Le]=_e,_e)},ne=j?{}:{sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};g&&(g.sortModel.forEach(({colId:Le,sort:_e},Fe)=>{let We=J(Le);We.sort=_e,We.sortIndex=Fe}),ne.sort=null,ne.sortIndex=null),f&&(f.groupColIds.forEach((Le,_e)=>{let Fe=J(Le);Fe.rowGroup=!0,Fe.rowGroupIndex=_e}),ne.rowGroup=null,ne.rowGroupIndex=null),S&&(S.aggregationModel.forEach(({colId:Le,aggFunc:_e})=>{J(Le).aggFunc=_e}),ne.aggFunc=null),w&&(w.pivotColIds.forEach((Le,_e)=>{let Fe=J(Le);Fe.pivot=!0,Fe.pivotIndex=_e}),this.gos.updateGridOptions({options:{pivotMode:w.pivotMode},source:"gridInitializing"}),ne.pivot=null,ne.pivotIndex=null),M&&(M.leftColIds.forEach(Le=>{J(Le).pinned="left"}),M.rightColIds.forEach(Le=>{J(Le).pinned="right"}),ne.pinned=null),P&&(P.hiddenColIds.forEach(Le=>{J(Le).hide=!0}),ne.hide=null),O&&(O.columnSizingModel.forEach(({colId:Le,flex:_e,width:Fe})=>{let We=J(Le);We.flex=_e!=null?_e:null,We.width=Fe}),ne.flex=null);let ce=G==null?void 0:G.orderedColIds,fe=!!(ce!=null&&ce.length),xe=fe?ce.map(Le=>J(Le)):Object.values(Y);xe.length&&(this.columnStates=xe,(0,A._applyColumnState)(this.beans,{state:xe,applyOrder:fe,defaultState:ne},"gridInitializing"))}setColumnPivotState(h){let g=this.columnStates;this.columnStates=void 0;let f=this.columnGroupStates;this.columnGroupStates=void 0;let S=this.beans,{pivotResultCols:w,colGroupSvc:M}=S;if(w!=null&&w.isPivotResultColsPresent()){if(g){let P=[];for(let O of g)w.getPivotResultCol(O.colId)&&P.push(O);(0,A._applyColumnState)(S,{state:P,applyOrder:h},"gridInitializing")}f&&(M==null||M.setColumnGroupState(f,"gridInitializing"))}}getColumnGroupState(){let h=this.beans.colGroupSvc;if(!h)return;let g=h.getColumnGroupState(),f=[];return g.forEach(({groupId:S,open:w})=>{w&&f.push(S)}),f.length?{openColumnGroupIds:f}:void 0}setColumnGroupState(h){var w;let g=this.beans.colGroupSvc;if(!Object.prototype.hasOwnProperty.call(h,"columnGroup")||!g)return;let f=new Set((w=h.columnGroup)==null?void 0:w.openColumnGroupIds),S=g.getColumnGroupState().map(({groupId:M})=>{let P=f.has(M);return P&&f.delete(M),{groupId:M,open:P}});f.forEach(M=>{S.push({groupId:M,open:!0})}),S.length&&(this.columnGroupStates=S),g.setColumnGroupState(S,"gridInitializing")}getFilterState(){var S;let h=this.beans.filterManager,g=h==null?void 0:h.getFilterModel();g&&Object.keys(g).length===0&&(g=void 0);let f=(S=h==null?void 0:h.getAdvFilterModel())!=null?S:void 0;return g||f?{filterModel:g,advancedFilterModel:f}:void 0}setFilterState(h){let g=this.beans.filterManager,{filterModel:f,advancedFilterModel:S}=h!=null?h:{};f&&(g==null||g.setFilterModel(f,"columnFilter")),S&&(g==null||g.setAdvFilterModel(S))}getRangeSelectionState(){var g;let h=(g=this.beans.rangeSvc)==null?void 0:g.getCellRanges().map(f=>{let{id:S,type:w,startRow:M,endRow:P,columns:O,startColumn:G}=f;return{id:S,type:w,startRow:M,endRow:P,colIds:O.map(j=>j.getColId()),startColId:G.getColId()}});return h!=null&&h.length?{cellRanges:h}:void 0}setCellSelectionState(h){let{gos:g,rangeSvc:f,colModel:S,visibleCols:w}=this.beans;if(!(0,z._isCellSelectionEnabled)(g)||!f)return;let M=[];h.cellRanges.forEach(P=>{let O=[];if(P.colIds.forEach(j=>{let Y=S.getCol(j);Y&&O.push(Y)}),!O.length)return;let G=S.getCol(P.startColId);if(!G){let j=w.allCols,Y=new Set(O);G=j.find(J=>Y.has(J))}M.push(He(ge({},P),{columns:O,startColumn:G}))}),f.setCellRanges(M)}getScrollState(){var S,w;if(!this.isClientSideRowModel)return;let h=this.beans.ctrlsSvc.getScrollFeature(),{left:g}=(S=h==null?void 0:h.getHScrollPosition())!=null?S:{left:0},{top:f}=(w=h==null?void 0:h.getVScrollPosition())!=null?w:{top:0};return f||g?{top:f,left:g}:void 0}setScrollState(h){if(!this.isClientSideRowModel)return;let{top:g,left:f}=h,{frameworkOverrides:S,rowRenderer:w,animationFrameSvc:M,ctrlsSvc:P}=this.beans;S.wrapIncoming(()=>{var O;P.get("center").setCenterViewportScrollLeft(f),(O=P.getScrollFeature())==null||O.setVerticalScrollPosition(g),w.redraw({afterScroll:!0}),M==null||M.flushAllFrames()})}getSideBarState(){var h,g;return(g=(h=this.beans.sideBar)==null?void 0:h.comp)==null?void 0:g.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;let h=this.beans.focusSvc.getFocusedCell();if(h){let{column:g,rowIndex:f,rowPinned:S}=h;return{colId:g.getColId(),rowIndex:f,rowPinned:S}}}setFocusedCellState(h){if(!this.isClientSideRowModel)return;let{colId:g,rowIndex:f,rowPinned:S}=h,{focusSvc:w,colModel:M}=this.beans;w.setFocusedCell({column:M.getCol(g),rowIndex:f,rowPinned:S,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){let{pagination:h,gos:g}=this.beans;if(!h)return;let f=h.getCurrentPage(),S=g.get("paginationAutoPageSize")?void 0:h.getPageSize();return f||S?{page:f,pageSize:S}:void 0}setPaginationState(h){let{pagination:g,gos:f}=this.beans;g&&(h.pageSize&&!f.get("paginationAutoPageSize")&&g.setPageSize(h.pageSize,"initialState"),typeof h.page=="number"&&g.setPage(h.page))}getRowSelectionState(){var f;let h=this.beans.selectionSvc;if(!h)return;let g=h.getSelectionState();return!g||!Array.isArray(g)&&(g.selectAll===!1||g.selectAllChildren===!1)&&!((f=g==null?void 0:g.toggledNodes)!=null&&f.length)?void 0:g}setRowSelectionState(h){var g;(g=this.beans.selectionSvc)==null||g.setSelectionState(h,"gridInitializing")}getRowGroupExpansionState(){let{expansionSvc:h,rowModel:g}=this.beans;if(!h)return;let f=[];return g.forEachNode(({expanded:S,id:w})=>{S&&w&&f.push(w)}),f.length?{expandedRowGroupIds:f}:void 0}setRowGroupExpansionState(h){var g;(g=this.beans.expansionSvc)==null||g.expandRows(h.expandedRowGroupIds)}updateColumnState(h){let g=this.getColumnState(),f=!1,S=this.cachedState;Object.entries(g).forEach(([w,M])=>{(0,b._jsonEquals)(M,S[w])||(f=!0)}),this.cachedState=ge(ge({},S),g),f&&this.dispatchStateUpdateEvent(h)}updateCachedState(h,g){let f=this.cachedState[h];this.setCachedStateValue(h,g),(0,b._jsonEquals)(g,f)||this.dispatchStateUpdateEvent([h])}setCachedStateValue(h,g){this.cachedState=He(ge({},this.cachedState),{[h]:g})}refreshStaleState(){let h=this.staleStateKeys;h.forEach(g=>{g==="rowSelection"&&this.setCachedStateValue(g,this.getRowSelectionState())}),h.clear()}dispatchStateUpdateEvent(h){this.suppressEvents||(h.forEach(g=>this.queuedUpdateSources.add(g)),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){let h=this.queuedUpdateSources,g=Array.from(h);h.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:g,state:this.cachedState})}suppressEventsAndDispatchInitEvent(h){this.suppressEvents=!0;let g=this.beans.colAnimation;g==null||g.setSuppressAnimation(!0),h(),setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(g==null||g.setSuppressAnimation(!1),this.dispatchStateUpdateEvent(["gridInitializing"]))})}}x.StateService=s},3705:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TouchModule=void 0;let A=p(7205),E=p(3914);x.TouchModule={moduleName:"Touch",version:A.VERSION,beans:[E.TouchService]}},3914:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TouchService=void 0;let A=p(8731),E=p(8667),z=p(2979),T=p(4422),b=p(9644);class C extends A.BeanStub{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(s,c){this.mockContextMenu(s,s.eBodyViewport,c)}mockHeaderContextMenu(s,c){this.mockContextMenu(s,s.eGui,c)}mockRowContextMenu(s){(0,E._isIOSUserAgent)()&&this.mockContextMenu(s,s.element,(c,h,g)=>{var w,M;let{rowCtrl:f,cellCtrl:S}=s.getControlsForEventTarget((w=g==null?void 0:g.target)!=null?w:null);(M=this.beans.contextMenuSvc)==null||M.handleContextMenuMouseEvent(void 0,g,f,S)})}handleCellDoubleClick(s,c){return!!(()=>{if(!(0,E._isIOSUserAgent)()||(0,z._isEventSupported)("dblclick"))return!1;let h=new Date().getTime(),g=h-s.lastIPadMouseClickEvent<200;return s.lastIPadMouseClickEvent=h,g})()&&(s.onCellDoubleClicked(c),c.preventDefault(),!0)}setupForHeader(s){let{gos:c,sortSvc:h}=this.beans;if(c.get("suppressTouch"))return;let{params:g,eMenu:f,eFilterButton:S}=s,w=new b.TouchListener(s.getGui(),!0),M=s.shouldSuppressMenuHide(),P=M&&(0,T._exists)(f),O=P?new b.TouchListener(f,!0):w;if(g.enableMenu){let G=P?"tap":"longTap",j=Y=>g.showColumnMenuAfterMouseClick(Y.touchStart);s.addManagedListeners(O,{[G]:j})}if(g.enableSorting){let G=j=>{let Y=j.touchStart.target;M&&(f!=null&&f.contains(Y)||S!=null&&S.contains(Y))||(h==null||h.progressSort(g.column,!1,"uiColumnSorted"))};s.addManagedListeners(w,{tap:G})}if(g.enableFilterButton&&S){let G=new b.TouchListener(S,!0);s.addManagedListeners(G,{tap:()=>g.showFilter(S)}),s.addDestroyFunc(()=>G.destroy())}s.addDestroyFunc(()=>w.destroy()),P&&s.addDestroyFunc(()=>O.destroy())}setupForHeaderGroup(s,c,h){let g=new b.TouchListener(c,!0);s.addManagedListeners(g,{tap:h}),s.addDestroyFunc(()=>g.destroy())}mockContextMenu(s,c,h){if(!(0,E._isIOSUserAgent)())return;let g=new b.TouchListener(c);s.addManagedListeners(g,{longTap:f=>{h(void 0,f.touchStart,f.touchEvent)}}),s.addDestroyFunc(()=>g.destroy())}}x.TouchService=C},2132:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ModuleRegistry=x._getGridRegisteredModules=x._getAllRegisteredModules=x._getRegisteredModules=x._areModulesGridScoped=x._isModuleRegistered=x._unRegisterGridModules=x._registerModule=void 0;let A=p(2043),E=new Set,z={},T={},b,C=!1;function d(c){b||(b=c.version);let h=g=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${g} Please update all modules to the same version.`;if(c.version?function(g){let[f,S]=g.version.split(".")||[],[w,M]=b.split(".")||[];return f===w&&S===M}(c)||(0,A._errorOnce)(h(`'${c.moduleName}' is version ${c.version} but the other modules are version ${b}.`)):(0,A._errorOnce)(h(`'${c.moduleName}' is incompatible.`)),c.validate){let g=c.validate();if(!g.isValid){let f=g;(0,A._errorOnce)(`${f.message}`)}}}function s(c,h){var S;d(c);let g=(S=c.rowModels)!=null?S:["all"],f;E.add(c),h!==void 0?(C=!0,T[h]===void 0&&(T[h]={}),f=T[h]):f=z,g.forEach(w=>{f[w]===void 0&&(f[w]={}),f[w][c.moduleName]=c}),c.dependsOn&&c.dependsOn.forEach(w=>s(w,h))}x._registerModule=s,x._unRegisterGridModules=function(c){delete T[c]},x._isModuleRegistered=function(c,h,g){let f=S=>{var w,M,P;return!!((w=z[S])!=null&&w[c])||!!((P=(M=T[h])==null?void 0:M[S])!=null&&P[c])};return f(g)||f("all")},x._areModulesGridScoped=function(){return C},x._getRegisteredModules=function(c,h){var f,S,w,M,P;let g=(f=T[c])!=null?f:{};return[...Object.values((S=z.all)!=null?S:{}),...Object.values((w=g.all)!=null?w:{}),...Object.values((M=z[h])!=null?M:{}),...Object.values((P=g[h])!=null?P:{})]},x._getAllRegisteredModules=function(){return new Set(E)},x._getGridRegisteredModules=function(c,h){var f,S,w;let g=(f=T[c])!=null?f:{};return[...Object.values((S=g.all)!=null?S:{}),...Object.values((w=g[h])!=null?w:{})]},x.ModuleRegistry=class{static register(c){s(c,void 0)}static registerModules(c){c.forEach(h=>s(h,void 0))}}},9413:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellNavigationService=void 0;let A=p(9853),E=p(8731),z=p(7274),T=p(1502),b=p(4422),C=p(7764);class d extends E.BeanStub{constructor(){super(...arguments),this.beanName="cellNavigation"}getNextCellToFocus(c,h,g=!1){return g?this.getNextCellToFocusWithCtrlPressed(c,h):this.getNextCellToFocusWithoutCtrlPressed(c,h)}getNextCellToFocusWithCtrlPressed(c,h){let g=c===A.KeyCode.UP,f=c===A.KeyCode.DOWN,S=c===A.KeyCode.LEFT,w,M,{pageBounds:P,gos:O,visibleCols:G}=this.beans;if(g||f)M=g?P.getFirstRow():P.getLastRow(),w=h.column;else{let j=G.allCols,Y=O.get("enableRtl");M=h.rowIndex,w=S!==Y?j[0]:(0,T._last)(j)}return{rowIndex:M,rowPinned:null,column:w}}getNextCellToFocusWithoutCtrlPressed(c,h){let g=h,f=!1;for(;!f;){switch(c){case A.KeyCode.UP:g=this.getCellAbove(g);break;case A.KeyCode.DOWN:g=this.getCellBelow(g);break;case A.KeyCode.RIGHT:g=this.gos.get("enableRtl")?this.getCellToLeft(g):this.getCellToRight(g);break;case A.KeyCode.LEFT:g=this.gos.get("enableRtl")?this.getCellToRight(g):this.getCellToLeft(g);break;default:g=null,(0,C._warn)(8,{key:c})}f=!g||this.isCellGoodToFocusOn(g)}return g}isCellGoodToFocusOn(c){let h=c.column,g,{pinnedRowModel:f,rowModel:S}=this.beans;switch(c.rowPinned){case"top":g=f==null?void 0:f.getPinnedTopRow(c.rowIndex);break;case"bottom":g=f==null?void 0:f.getPinnedBottomRow(c.rowIndex);break;default:g=S.getRow(c.rowIndex)}return g?!this.isSuppressNavigable(h,g):!1}getCellToLeft(c){if(!c)return null;let h=this.beans.visibleCols.getColBefore(c.column);return h?{rowIndex:c.rowIndex,column:h,rowPinned:c.rowPinned}:null}getCellToRight(c){if(!c)return null;let h=this.beans.visibleCols.getColAfter(c.column);return h?{rowIndex:c.rowIndex,column:h,rowPinned:c.rowPinned}:null}getRowBelow(c){let h=c.rowIndex,g=c.rowPinned,f=!1,{pageBounds:S,pinnedRowModel:w,rowModel:M}=this.beans;if(this.isLastRowInContainer(c))switch(g){case"bottom":return null;case"top":return M.isRowsToRender()?{rowIndex:S.getFirstRow(),rowPinned:null}:w!=null&&w.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return w!=null&&w.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}else g&&(f=!0);let P=M.getRow(c.rowIndex);return(f?void 0:this.getNextStickyPosition(P))||{rowIndex:h+1,rowPinned:g}}getNextStickyPosition(c,h){let{gos:g,rowRenderer:f}=this.beans;if(!(0,z._isGroupRowsSticky)(g)||!c||!c.sticky)return;let S=[];S=f.getStickyTopRowCtrls().some(O=>O.rowNode.rowIndex===c.rowIndex)?[...f.getStickyTopRowCtrls()].sort((O,G)=>O.rowNode.rowIndex-G.rowNode.rowIndex):[...f.getStickyBottomRowCtrls()].sort((O,G)=>G.rowNode.rowIndex-O.rowNode.rowIndex);let w=h?-1:1,M=S.findIndex(O=>O.rowNode.rowIndex===c.rowIndex),P=S[M+w];return P?{rowIndex:P.rowNode.rowIndex,rowPinned:null}:void 0}getCellBelow(c){if(!c)return null;let h=this.getRowBelow(c);return h?{rowIndex:h.rowIndex,column:c.column,rowPinned:h.rowPinned}:null}isLastRowInContainer(c){var w,M;let h=c.rowPinned,g=c.rowIndex,{pinnedRowModel:f,pageBounds:S}=this.beans;return h==="top"?((w=f==null?void 0:f.getPinnedTopRowCount())!=null?w:-1)<=g:h==="bottom"?((M=f==null?void 0:f.getPinnedBottomRowCount())!=null?M:-1)<=g:S.getLastRow()<=g}getRowAbove(c){let h=c.rowIndex,g=c.rowPinned,{pageBounds:f,pinnedRowModel:S,rowModel:w}=this.beans,M=!1,P=()=>{var j;return{rowIndex:(j=S==null?void 0:S.getPinnedTopRowCount())!=null?j:-1,rowPinned:"top"}};if(g?h===0:h===f.getFirstRow())return g==="top"?null:g&&w.isRowsToRender()?{rowIndex:f.getLastRow(),rowPinned:null}:S!=null&&S.isRowsToRender("top")?P():null;g&&(M=!0);let O=w.getRow(c.rowIndex);return(M?void 0:this.getNextStickyPosition(O,!0))||{rowIndex:h-1,rowPinned:g}}getCellAbove(c){if(!c)return null;let h=this.getRowAbove({rowIndex:c.rowIndex,rowPinned:c.rowPinned});return h?{rowIndex:h.rowIndex,column:c.column,rowPinned:h.rowPinned}:null}getNextTabbedCell(c,h){return h?this.getNextTabbedCellBackwards(c):this.getNextTabbedCellForwards(c)}getNextTabbedCellForwards(c){var P;let{visibleCols:h,pagination:g}=this.beans,f=h.allCols,S=c.rowIndex,w=c.rowPinned,M=h.getColAfter(c.column);if(!M){M=f[0];let O=this.getRowBelow(c);if((0,b._missing)(O)||!O.rowPinned&&!((P=g==null?void 0:g.isRowInPage(O))==null||P))return null;S=O?O.rowIndex:null,w=O?O.rowPinned:null}return{rowIndex:S,column:M,rowPinned:w}}getNextTabbedCellBackwards(c){var P;let{visibleCols:h,pagination:g}=this.beans,f=h.allCols,S=c.rowIndex,w=c.rowPinned,M=h.getColBefore(c.column);if(!M){M=(0,T._last)(f);let O=this.getRowAbove({rowIndex:c.rowIndex,rowPinned:c.rowPinned});if((0,b._missing)(O)||!O.rowPinned&&!((P=g==null?void 0:g.isRowInPage(O))==null||P))return null;S=O?O.rowIndex:null,w=O?O.rowPinned:null}return{rowIndex:S,column:M,rowPinned:w}}isSuppressNavigable(c,h){let{suppressNavigable:g}=c.colDef;return typeof g=="boolean"?g:typeof g=="function"?g(c.createColumnFunctionCallbackParams(h)):!1}}x.CellNavigationService=d},3990:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HeaderNavigationService=x.getHeaderIndexToFocus=void 0;let A=p(8731),E=p(6908),z=p(7274),T=p(1323),b=p(1502);function C(c){return!!c&&c.getLeafColumns().some(h=>h.isSpanHeaderHeight())}function d(c,h){let g;if((0,E.isColumnGroup)(c)&&C(c)&&c.isPadding()){let f=c;g=f.getLeafColumns()[0];let S=g;for(;S!==f;)h++,S=S.getParent()}return{column:g||c,headerRowIndex:h}}x.getHeaderIndexToFocus=d;class s extends A.BeanStub{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){let h=this.beans;h.ctrlsSvc.whenReady(this,f=>{this.gridBodyCon=f.gridBodyCtrl});let g=(0,z._getDocument)(h);this.addManagedElementListeners(g,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(h,g){var ce;let f,{colModel:S,colGroupSvc:w,ctrlsSvc:M}=this.beans;if(typeof h=="string"?(f=S.getCol(h),f||(f=(ce=w==null?void 0:w.getColumnGroup(h))!=null?ce:null)):f=h,!f)return null;let P=M.getHeaderRowContainerCtrl(),O=P==null?void 0:P.getAllCtrls(),G=(0,b._last)(O||[]).type==="filter",j=(0,T.getFocusHeaderRowCount)(this.beans)-1,Y=-1,J=f;for(;J;)Y++,J=J.getParent();let ne=Y;return g&&G&&ne===j-1&&ne++,ne===-1?null:{headerRowIndex:ne,column:f}}navigateVertically(h,g,f){let S=this.beans.focusSvc;if(g||(g=S.focusedHeader),!g)return!1;let{headerRowIndex:w}=g,M=g.column,P=(0,T.getFocusHeaderRowCount)(this.beans),O=h==="UP",G=this.getHeaderRowType(w),{headerRowIndex:j,column:Y,headerRowIndexWithoutSpan:J}=O?function(ce,fe,xe){let Le=ce==="filter",_e=ce==="column",Fe=Le?fe:fe.getParent(),We=xe-1,it=We;if(_e&&C(fe.getParent())){for(;Fe&&Fe.isPadding();)Fe=Fe.getParent(),We--;it=We,We<0&&(Fe=fe,We=xe,it=void 0)}return{column:Fe,headerRowIndex:We,headerRowIndexWithoutSpan:it}}(G,M,w):function(ce,fe,xe,Le="After"){let _e=fe,Fe=xe+1,We=Fe;if(ce==="group"){let it=fe.getDisplayedLeafColumns(),tt=Le==="After"?it[0]:(0,b._last)(it),ot=[],st=tt;for(;st.getParent()!==fe;)st=st.getParent(),ot.push(st);if(_e=tt,tt.isSpanHeaderHeight())for(let St=ot.length-1;St>=0;St--){let Xe=ot[St];if(!Xe.isPadding()){_e=Xe;break}Fe++}else _e=(0,b._last)(ot),_e||(_e=tt)}return{column:_e,headerRowIndex:Fe,headerRowIndexWithoutSpan:We}}(G,M,w),ne=!1;return j<0&&(j=0,Y=M,ne=!0),j>=P?(j=-1,this.currentHeaderRowWithoutSpan=-1):J!==void 0&&(this.currentHeaderRowWithoutSpan=J),!(!ne&&!Y)&&S.focusHeaderPosition({headerPosition:{headerRowIndex:j,column:Y},allowUserOverride:!0,event:f})}navigateHorizontally(h,g=!1,f){let{focusSvc:S,gos:w}=this.beans,M=S.focusedHeader,P,O;if(this.currentHeaderRowWithoutSpan!==-1?M.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=M.headerRowIndex,h==="LEFT"!==w.get("enableRtl")?(O="Before",P=this.findHeader(M,O)):(O="After",P=this.findHeader(M,O)),P||!g)return S.focusHeaderPosition({headerPosition:P,direction:O,fromTab:g,allowUserOverride:!0,event:f});if(g){let G=w.getCallback("tabToNextHeader");if(G)return S.focusHeaderPositionFromUserFunc({userFunc:G,headerPosition:P,direction:O})}return this.focusNextHeaderRow(M,O,f)}focusNextHeaderRow(h,g,f){let S=h.headerRowIndex,w,M=null,P=this.beans;if(g==="Before"?S>0&&(w=S-1,this.currentHeaderRowWithoutSpan-=1,M=this.findColAtEdgeForHeaderRow(w,"end")):(w=S+1,this.currentHeaderRowWithoutSpan<(0,T.getFocusHeaderRowCount)(P)?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1,M=this.findColAtEdgeForHeaderRow(w,"start")),!M)return!1;let{column:O,headerRowIndex:G}=d(M.column,M==null?void 0:M.headerRowIndex);return P.focusSvc.focusHeaderPosition({headerPosition:{column:O,headerRowIndex:G},direction:g,fromTab:!0,allowUserOverride:!0,event:f})}scrollToColumn(h,g="After"){if(h.getPinned())return;let f;if((0,E.isColumnGroup)(h)){let S=h.getDisplayedLeafColumns();f=g==="Before"?(0,b._last)(S):S[0]}else f=h;this.gridBodyCon.scrollFeature.ensureColumnVisible(f)}findHeader(h,g){var j;let f,S,{colGroupSvc:w,visibleCols:M}=this.beans;if((0,E.isColumnGroup)(h.column)?f=(j=w==null?void 0:w.getGroupAtDirection(h.column,g))!=null?j:void 0:(S=`getCol${g}`,f=M[S](h.column)),!f)return;let{headerRowIndex:P}=h;if(this.getHeaderRowType(P)!=="filter"){let Y=[f];for(;f.getParent();)f=f.getParent(),Y.push(f);f=Y[Math.max(0,Y.length-1-P)]}let{column:O,headerRowIndex:G}=d(f,P);return{column:O,headerRowIndex:G}}getHeaderRowType(h){let g=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(g)return g.getRowType(h)}findColAtEdgeForHeaderRow(h,g){let{visibleCols:f,ctrlsSvc:S,colGroupSvc:w}=this.beans,M=f.allCols,P=M[g==="start"?0:M.length-1];if(!P)return;let O=S.getHeaderRowContainerCtrl(P.getPinned()),G=O==null?void 0:O.getRowType(h);if(G=="group"){let j=w==null?void 0:w.getColGroupAtLevel(P,h);return{headerRowIndex:h,column:j}}return{headerRowIndex:G==null?-1:h,column:P}}}x.HeaderNavigationService=s},322:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.setFocusedHeader=x.tabToPreviousCell=x.tabToNextCell=x.setFocusedCell=x.clearFocusedCell=x.getFocusedCell=void 0,x.getFocusedCell=function(p){return p.focusSvc.getFocusedCell()},x.clearFocusedCell=function(p){return p.focusSvc.clearFocusedCell()},x.setFocusedCell=function(p,A,E,z){p.focusSvc.setFocusedCell({rowIndex:A,column:E,rowPinned:z,forceBrowserFocus:!0})},x.tabToNextCell=function(p,A){var E,z;return(z=(E=p.navigation)==null?void 0:E.tabToNextCell(!1,A))!=null?z:!1},x.tabToPreviousCell=function(p,A){var E,z;return(z=(E=p.navigation)==null?void 0:E.tabToNextCell(!0,A))!=null?z:!1},x.setFocusedHeader=function(p,A,E=!1){var T;let z=(T=p.headerNavigation)==null?void 0:T.getHeaderPositionForColumn(A,E);z&&p.focusSvc.focusHeaderPosition({headerPosition:z})}},928:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.KeyboardNavigationModule=void 0;let A=p(7205),E=p(9413),z=p(3990),T=p(322),b=p(2321);x.KeyboardNavigationModule={moduleName:"KeyboardNavigation",version:A.VERSION,beans:[b.NavigationService,E.CellNavigationService,z.HeaderNavigationService],apiFunctions:{getFocusedCell:T.getFocusedCell,clearFocusedCell:T.clearFocusedCell,setFocusedCell:T.setFocusedCell,setFocusedHeader:T.setFocusedHeader,tabToNextCell:T.tabToNextCell,tabToPreviousCell:T.tabToPreviousCell}}},2321:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NavigationService=void 0;let A=p(9853),E=p(8731),z=p(6257),T=p(8399),b=p(7274),C=p(1323),d=p(814),s=p(7632),c=p(1502),h=p(2331),g=p(2043),f=p(4422);class S extends E.BeanStub{constructor(){super(),this.beanName="navigation",this.onPageDown=(0,g._throttle)(this.onPageDown,100),this.onPageUp=(0,g._throttle)(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,P=>{this.gridBodyCon=P.gridBodyCtrl})}handlePageScrollingKey(P,O=!1){let G=P.key,j=P.altKey,Y=P.ctrlKey||P.metaKey,J=!!this.beans.rangeSvc&&P.shiftKey,ne=(0,T._getCellPositionForEvent)(this.gos,P),ce=!1;switch(G){case A.KeyCode.PAGE_HOME:case A.KeyCode.PAGE_END:Y||j||(this.onHomeOrEndKey(G),ce=!0);break;case A.KeyCode.LEFT:case A.KeyCode.RIGHT:case A.KeyCode.UP:case A.KeyCode.DOWN:if(!ne)return!1;!Y||j||J||(this.onCtrlUpDownLeftRight(G,ne),ce=!0);break;case A.KeyCode.PAGE_DOWN:case A.KeyCode.PAGE_UP:Y||j||(ce=this.handlePageUpDown(G,ne,O))}return ce&&P.preventDefault(),ce}handlePageUpDown(P,O,G){return G&&(O=this.beans.focusSvc.getFocusedCell()),!!O&&(P===A.KeyCode.PAGE_UP?this.onPageUp(O):this.onPageDown(O),!0)}navigateTo(P){let{scrollIndex:O,scrollType:G,scrollColumn:j,focusIndex:Y,focusColumn:J}=P,{scrollFeature:ne}=this.gridBodyCon;(0,f._exists)(j)&&!j.isPinned()&&ne.ensureColumnVisible(j),(0,f._exists)(O)&&ne.ensureIndexVisible(O,G),P.isAsync||ne.ensureIndexVisible(Y);let{focusSvc:ce,rangeSvc:fe}=this.beans;ce.setFocusedCell({rowIndex:Y,column:J,rowPinned:null,forceBrowserFocus:!0}),fe==null||fe.setRangeToCell({rowIndex:Y,rowPinned:null,column:J})}onPageDown(P){let O=this.beans,G=w(O),j=this.getViewportHeight(),{pageBounds:Y,rowModel:J,rowAutoHeight:ne}=O,ce=Y.getPixelOffset(),fe=G.top+j,xe=J.getRowIndexAtPixel(fe+ce);ne!=null&&ne.active?this.navigateToNextPageWithAutoHeight(P,xe):this.navigateToNextPage(P,xe)}onPageUp(P){let O=this.beans,G=w(O),{pageBounds:j,rowModel:Y,rowAutoHeight:J}=O,ne=j.getPixelOffset(),ce=G.top,fe=Y.getRowIndexAtPixel(ce+ne);J!=null&&J.active?this.navigateToNextPageWithAutoHeight(P,fe,!0):this.navigateToNextPage(P,fe,!0)}navigateToNextPage(P,O,G=!1){let{pageBounds:j,rowModel:Y}=this.beans,J=this.getViewportHeight(),ne=j.getFirstRow(),ce=j.getLastRow(),fe=j.getPixelOffset(),xe=Y.getRow(P.rowIndex),Le=G?(xe==null?void 0:xe.rowHeight)-J-fe:J-fe,_e=(xe==null?void 0:xe.rowTop)+Le,Fe,We=Y.getRowIndexAtPixel(_e+fe);if(We===P.rowIndex){let it=G?-1:1;O=We=P.rowIndex+it}G?(Fe="bottom",We<ne&&(We=ne),O<ne&&(O=ne)):(Fe="top",We>ce&&(We=ce),O>ce&&(O=ce)),this.isRowTallerThanView(Y.getRow(We))&&(O=We,Fe="top"),this.navigateTo({scrollIndex:O,scrollType:Fe,scrollColumn:null,focusIndex:We,focusColumn:P.column})}navigateToNextPageWithAutoHeight(P,O,G=!1){this.navigateTo({scrollIndex:O,scrollType:G?"bottom":"top",scrollColumn:null,focusIndex:O,focusColumn:P.column}),setTimeout(()=>{let j=this.getNextFocusIndexForAutoHeight(P,G);this.navigateTo({scrollIndex:O,scrollType:G?"bottom":"top",scrollColumn:null,focusIndex:j,focusColumn:P.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(P,O=!1){var xe;let G=O?-1:1,j=this.getViewportHeight(),{pageBounds:Y,rowModel:J}=this.beans,ne=Y.getLastRow(),ce=0,fe=P.rowIndex;for(;fe>=0&&fe<=ne;){let Le=J.getRow(fe);if(Le){let _e=(xe=Le.rowHeight)!=null?xe:0;if(ce+_e>j)break;ce+=_e}fe+=G}return Math.max(0,Math.min(fe,ne))}getViewportHeight(){let P=this.beans,O=w(P),G=this.beans.scrollVisibleSvc.getScrollbarWidth(),j=O.bottom-O.top;return P.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(j-=G),j}isRowTallerThanView(P){if(!P)return!1;let O=P.rowHeight;return typeof O=="number"&&O>this.getViewportHeight()}onCtrlUpDownLeftRight(P,O){let G=this.beans.cellNavigation.getNextCellToFocus(P,O,!0),{rowIndex:j}=G,Y=G.column;this.navigateTo({scrollIndex:j,scrollType:null,scrollColumn:Y,focusIndex:j,focusColumn:Y})}onHomeOrEndKey(P){let O=P===A.KeyCode.PAGE_HOME,{visibleCols:G,pageBounds:j}=this.beans,Y=G.allCols,J=O?Y[0]:(0,c._last)(Y),ne=O?j.getFirstRow():j.getLastRow();this.navigateTo({scrollIndex:ne,scrollType:null,scrollColumn:J,focusIndex:ne,focusColumn:J})}onTabKeyDown(P,O){let G=O.shiftKey,j=this.tabToNextCellCommon(P,G,O),Y=this.beans,{ctrlsSvc:J,pageBounds:ne,focusSvc:ce,gos:fe}=Y;if(j===!1)if(G){let{rowIndex:xe,rowPinned:Le}=P.getRowPosition();(Le?xe===0:xe===ne.getFirstRow())&&(fe.get("headerHeight")===0||(0,h._isHeaderFocusSuppressed)(Y)?(0,h._focusNextGridCoreContainer)(Y,!0,!0):(O.preventDefault(),ce.focusPreviousFromFirstCell(O)))}else P instanceof d.CellCtrl&&P.focusCell(!0),(!G&&ce.focusOverlay(!1)||(0,h._focusNextGridCoreContainer)(Y,G))&&O.preventDefault();else j?O.preventDefault():j===null&&J.get("gridCtrl").allowFocusForNextCoreContainer(G)}tabToNextCell(P,O){let G=this.beans,{focusSvc:j,rowRenderer:Y}=G,J=j.getFocusedCell();if(!J)return!1;let ne=(0,z._getCellByPosition)(G,J);return!!(ne||(ne=Y.getRowByPosition(J),ne&&ne.isFullWidth()))&&!!this.tabToNextCellCommon(ne,P,O)}tabToNextCellCommon(P,O,G){let j,Y=P.editing;if(!Y&&P instanceof d.CellCtrl){let J=P.rowCtrl;J&&(Y=J.editing)}return j=Y?this.gos.get("editType")==="fullRow"?this.moveToNextEditingRow(P,O,G):this.moveToNextEditingCell(P,O,G):this.moveToNextCellNotEditing(P,O),j===null?j:j||!!this.beans.focusSvc.focusedHeader}moveToNextEditingCell(P,O,G=null){var J;let j=P.cellPosition;P.eGui.focus(),P.stopEditing();let Y=this.findNextCellToFocusOn(j,O,!0);return Y===!1?null:Y!=null&&((J=this.beans.editSvc)==null||J.startEditing(Y,null,!0,G),Y.focusCell(!1),!0)}moveToNextEditingRow(P,O,G=null){let j=P.cellPosition,Y=this.findNextCellToFocusOn(j,O,!0);if(Y===!1)return null;if(Y==null)return!1;let J=Y.cellPosition,ne=this.isCellEditable(j),ce=this.isCellEditable(J),fe=J&&j.rowIndex===J.rowIndex&&j.rowPinned===J.rowPinned,{editSvc:xe,rowEditSvc:Le}=this.beans;if(ne&&(xe==null||xe.setFocusOutOnEditor(P)),!fe){let _e=P.rowCtrl;xe==null||xe.stopRowEditing(_e);let Fe=Y.rowCtrl;Le==null||Le.startEditing(Fe,void 0,void 0,G)}return ce?(xe==null||xe.setFocusInOnEditor(Y),Y.focusCell()):Y.focusCell(!0),!0}moveToNextCellNotEditing(P,O){let G=this.beans.visibleCols.allCols,j;j=P instanceof s.RowCtrl?He(ge({},P.getRowPosition()),{column:O?G[0]:(0,c._last)(G)}):P.cellPosition;let Y=this.findNextCellToFocusOn(j,O,!1);if(Y===!1)return null;if(Y instanceof d.CellCtrl)Y.focusCell(!0);else if(Y)return this.tryToFocusFullWidthRow(Y.getRowPosition(),O);return(0,f._exists)(Y)}findNextCellToFocusOn(P,O,G){let j=P,Y=this.beans,{cellNavigation:J,gos:ne,focusSvc:ce,rowRenderer:fe,rangeSvc:xe}=Y;for(;;){P!==j&&(P=j),O||(j=this.getLastCellOfColSpan(j)),j=J.getNextTabbedCell(j,O);let Le=ne.getCallback("tabToNextCell");if((0,f._exists)(Le)){let We=Le({backwards:O,editing:G,previousCellPosition:P,nextCellPosition:j||null});if(We===!0)j=P;else{if(We===!1)return!1;j={rowIndex:We.rowIndex,column:We.column,rowPinned:We.rowPinned}}}if(!j)return null;if(j.rowIndex<0){let We=(0,C.getFocusHeaderRowCount)(Y);return ce.focusHeaderPosition({headerPosition:{headerRowIndex:We+j.rowIndex,column:j.column},fromCell:!0}),null}let _e=ne.get("editType")==="fullRow";if(G&&!_e&&!this.isCellEditable(j))continue;this.ensureCellVisible(j);let Fe=(0,z._getCellByPosition)(Y,j);if(!Fe){let We=fe.getRowByPosition(j);if(!We||!We.isFullWidth()||G)continue;return We}if(!J.isSuppressNavigable(Fe.column,Fe.rowNode))return xe==null||xe.setRangeToCell(j),Fe}}isCellEditable(P){let O=this.lookupRowNodeForCell(P);return!!O&&P.column.isCellEditable(O)}lookupRowNodeForCell({rowIndex:P,rowPinned:O}){let{pinnedRowModel:G,rowModel:j}=this.beans;return O==="top"?G==null?void 0:G.getPinnedTopRow(P):O==="bottom"?G==null?void 0:G.getPinnedBottomRow(P):j.getRow(P)}navigateToNextCell(P,O,G,j){let Y=G,J=!1,ne=this.beans,{cellNavigation:ce,focusSvc:fe,gos:xe}=ne;for(;Y&&(Y===G||!this.isValidNavigateCell(Y));)xe.get("enableRtl")?O===A.KeyCode.LEFT&&(Y=this.getLastCellOfColSpan(Y)):O===A.KeyCode.RIGHT&&(Y=this.getLastCellOfColSpan(Y)),Y=ce.getNextCellToFocus(O,Y),J=(0,f._missing)(Y);if(J&&P&&P.key===A.KeyCode.UP&&(Y={rowIndex:-1,rowPinned:null,column:G.column}),j){let _e=xe.getCallback("navigateToNextCell");if((0,f._exists)(_e)){let Fe=_e({key:O,previousCellPosition:G,nextCellPosition:Y||null,event:P});Y=(0,f._exists)(Fe)?{rowPinned:Fe.rowPinned,rowIndex:Fe.rowIndex,column:Fe.column}:null}}if(!Y)return;if(Y.rowIndex<0){let _e=(0,C.getFocusHeaderRowCount)(ne);return void fe.focusHeaderPosition({headerPosition:{headerRowIndex:_e+Y.rowIndex,column:G.column},event:P||void 0,fromCell:!0})}let Le=this.getNormalisedPosition(Y);Le?this.focusPosition(Le):this.tryToFocusFullWidthRow(Y)}getNormalisedPosition(P){this.ensureCellVisible(P);let O=(0,z._getCellByPosition)(this.beans,P);return O?(P=O.cellPosition,this.ensureCellVisible(P),P):null}tryToFocusFullWidthRow(P,O){let{visibleCols:G,rowRenderer:j,focusSvc:Y,eventSvc:J}=this.beans,ne=G.allCols,ce=j.getRowByPosition(P);if(!ce||!ce.isFullWidth())return!1;let fe=Y.getFocusedCell(),xe={rowIndex:P.rowIndex,rowPinned:P.rowPinned,column:P.column||(O?(0,c._last)(ne):ne[0])};this.focusPosition(xe);let Le=O==null?fe!=null&&(0,z._isRowBefore)(xe,fe):O;return J.dispatchEvent({type:"fullWidthRowFocused",rowIndex:xe.rowIndex,rowPinned:xe.rowPinned,column:xe.column,isFullWidthCell:!0,fromBelow:Le}),!0}focusPosition(P){let{focusSvc:O,rangeSvc:G}=this.beans;O.setFocusedCell({rowIndex:P.rowIndex,column:P.column,rowPinned:P.rowPinned,forceBrowserFocus:!0}),G==null||G.setRangeToCell(P)}isValidNavigateCell(P){return!!(0,z._getRowNode)(this.beans,P)}getLastCellOfColSpan(P){let O=(0,z._getCellByPosition)(this.beans,P);if(!O)return P;let G=O.getColSpanningList();return G.length===1?P:{rowIndex:P.rowIndex,column:(0,c._last)(G),rowPinned:P.rowPinned}}ensureCellVisible(P){let O=(0,b._isGroupRowsSticky)(this.gos),G=this.beans.rowModel.getRow(P.rowIndex),j=O&&(G==null?void 0:G.sticky),{scrollFeature:Y}=this.gridBodyCon;!j&&(0,f._missing)(P.rowPinned)&&Y.ensureIndexVisible(P.rowIndex),P.column.isPinned()||Y.ensureColumnVisible(P.column)}}function w(M){return M.ctrlsSvc.getScrollFeature().getVScrollPosition()}x.NavigationService=S},2550:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PageBoundsListener=void 0;let A=p(8731);class E extends A.BeanStub{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(T){var b,C,d,s,c;this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:(b=T==null?void 0:T.animate)!=null?b:!1,newData:(C=T==null?void 0:T.newData)!=null?C:!1,newPage:(d=T==null?void 0:T.newPage)!=null?d:!1,newPageSize:(s=T==null?void 0:T.newPageSize)!=null?s:!1,keepRenderedRows:(c=T==null?void 0:T.keepRenderedRows)!=null?c:!1})}calculatePages(){let{pageBounds:T,pagination:b,rowModel:C}=this.beans;b?b.calculatePages():T.calculateBounds(0,C.getRowCount()-1)}}x.PageBoundsListener=E},3003:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PageBoundsService=void 0;let A=p(8731);class E extends A.BeanStub{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){var T,b;return(b=(T=this.topRowBounds)==null?void 0:T.rowIndex)!=null?b:-1}getLastRow(){var T,b;return(b=(T=this.bottomRowBounds)==null?void 0:T.rowIndex)!=null?b:-1}getCurrentPageHeight(){let{topRowBounds:T,bottomRowBounds:b}=this;return T&&b?Math.max(b.rowTop+b.rowHeight-T.rowTop,0):0}getCurrentPagePixelRange(){var C;let{topRowBounds:T,bottomRowBounds:b}=this;return{pageFirstPixel:(C=T==null?void 0:T.rowTop)!=null?C:0,pageLastPixel:b?b.rowTop+b.rowHeight:0}}calculateBounds(T,b){let{rowModel:C}=this.beans,d=C.getRowBounds(T);d&&(d.rowIndex=T),this.topRowBounds=d;let s=C.getRowBounds(b);s&&(s.rowIndex=b),this.bottomRowBounds=s,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){var b,C;let T=(C=(b=this.topRowBounds)==null?void 0:b.rowTop)!=null?C:0;this.pixelOffset!==T&&(this.pixelOffset=T,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}}x.PageBoundsService=E},2078:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PageSizeSelectorSelector=x.PageSizeSelectorComp=void 0;let A=p(1502),E=p(3507),z=p(7764),T=p(159),b=p(8020),C="paginationPageSizeSelector";class d extends b.Component{wireBeans(c){this.pagination=c.pagination}constructor(){super('<span class="ag-paging-page-size"></span>'),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;let c=this.selectPageSizeComp.getValue();if(!c)return;let h=Number(c);isNaN(h)||h<1||h===this.pagination.getPageSize()||(this.pagination.setPageSize(h,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}postConstruct(){this.addManagedPropertyListener(C,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:c=>this.handlePaginationChanged(c)})}handlePaginationChanged(c){if(!this.selectPageSizeComp||!(c!=null&&c.newPageSize))return;let h=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(h)?this.selectPageSizeComp.setValue(h.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(c){this.selectPageSizeComp&&!c&&this.reset(),c&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){(0,E._clearElement)(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(C)!==!1}reloadPageSizesSelector(){let c=this.getPageSizeSelectorValues(),h=this.pagination.getPageSize(),g=!h||!c.includes(h);if(g){let S=this.gos.exists("paginationPageSize"),w=this.gos.get(C)!==!0;(0,z._warn)(94,{pageSizeSet:S,pageSizesSet:w,pageSizeOptions:c,paginationPageSizeOption:h}),w||(0,z._warn)(95,{paginationPageSizeOption:h,paginationPageSizeSelector:C}),c.unshift("")}let f=String(g?"":h);this.selectPageSizeComp?((0,A._areEqual)(this.pageSizeOptions,c)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(c)),this.pageSizeOptions=c),this.selectPageSizeComp.setValue(f,!0)):this.createPageSizeSelectorComp(c,f),this.hasEmptyOption=g}createPageSizeSelectOptions(c){return c.map(h=>({value:String(h)}))}createPageSizeSelectorComp(c,h){let g=this.getLocaleTextFunc(),f=g("pageSizeSelectorLabel","Page Size:"),S=g("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new T.AgSelect).addOptions(this.createPageSizeSelectOptions(c)).setValue(h).setAriaLabel(S).setLabel(f).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){let c=[20,50,100],h=this.gos.get(C);return Array.isArray(h)&&(h!=null&&h.length)?[...h].sort((g,f)=>g-f):c}destroy(){this.toggleSelectDisplay(!1),super.destroy()}}x.PageSizeSelectorComp=d,x.PageSizeSelectorSelector={selector:"AG-PAGE-SIZE-SELECTOR",component:d}},5794:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.paginationGoToPage=x.paginationGoToLastPage=x.paginationGoToFirstPage=x.paginationGoToPreviousPage=x.paginationGoToNextPage=x.paginationGetRowCount=x.paginationGetTotalPages=x.paginationGetCurrentPage=x.paginationGetPageSize=x.paginationIsLastPageFound=void 0,x.paginationIsLastPageFound=function(p){return p.rowModel.isLastRowIndexKnown()},x.paginationGetPageSize=function(p){var A,E;return(E=(A=p.pagination)==null?void 0:A.getPageSize())!=null?E:100},x.paginationGetCurrentPage=function(p){var A,E;return(E=(A=p.pagination)==null?void 0:A.getCurrentPage())!=null?E:0},x.paginationGetTotalPages=function(p){var A,E;return(E=(A=p.pagination)==null?void 0:A.getTotalPages())!=null?E:1},x.paginationGetRowCount=function(p){return p.pagination?p.pagination.getMasterRowCount():p.rowModel.getRowCount()},x.paginationGoToNextPage=function(p){var A;(A=p.pagination)==null||A.goToNextPage()},x.paginationGoToPreviousPage=function(p){var A;(A=p.pagination)==null||A.goToPreviousPage()},x.paginationGoToFirstPage=function(p){var A;(A=p.pagination)==null||A.goToFirstPage()},x.paginationGoToLastPage=function(p){var A;(A=p.pagination)==null||A.goToLastPage()},x.paginationGoToPage=function(p,A){var E;(E=p.pagination)==null||E.goToPage(A)}},90:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PaginationAutoPageSizeService=void 0;let A=p(8731),E=p(7274),z=p(2043);class T extends A.BeanStub{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,C=>{this.centerRowsCtrl=C.center;let d=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:d,scrollVisibilityChanged:d}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;let C=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(C>0){let d=this.beans,s=()=>{let c=Math.max((0,E._getRowHeightAsNumber)(d),1),h=Math.floor(C/c);d.pagination.setPageSize(h,"autoCalculated")};this.isBodyRendered?(0,z._debounce)(this,s,50)():(s(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}}x.PaginationAutoPageSizeService=T},462:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.paginationCompCSS=void 0,x.paginationCompCSS=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:max(var(--ag-row-height),22px);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}"},300:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PaginationSelector=x.PaginationComp=void 0;let A=p(9853),E=p(5230),z=p(2331),T=p(9970),b=p(7698),C=p(8020),d=p(8332),s=p(2078),c=p(462);class h extends d.TabGuardComp{wireBeans(f){this.rowModel=f.rowModel,this.pagination=f.pagination,this.ariaAnnounce=f.ariaAnnounce}constructor(){super(),this.btFirst=C.RefPlaceholder,this.btPrevious=C.RefPlaceholder,this.btNext=C.RefPlaceholder,this.btLast=C.RefPlaceholder,this.lbRecordCount=C.RefPlaceholder,this.lbFirstRowOnPage=C.RefPlaceholder,this.lbLastRowOnPage=C.RefPlaceholder,this.lbCurrent=C.RefPlaceholder,this.lbTotal=C.RefPlaceholder,this.pageSizeComp=C.RefPlaceholder,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(c.paginationCompCSS)}postConstruct(){let f=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[s.PageSizeSelectorSelector]);let{btFirst:S,btPrevious:w,btNext:M,btLast:P}=this;this.activateTabIndex([S,w,M,P]),S.insertAdjacentElement("afterbegin",(0,T._createIconNoSpan)(f?"last":"first",this.beans)),w.insertAdjacentElement("afterbegin",(0,T._createIconNoSpan)(f?"next":"previous",this.beans)),M.insertAdjacentElement("afterbegin",(0,T._createIconNoSpan)(f?"previous":"next",this.beans)),P.insertAdjacentElement("afterbegin",(0,T._createIconNoSpan)(f?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:O=>{this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(O):(0,z._focusGridInnerElement)(this.beans,O)},forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(f){this.allowFocusInnerElement=f}onPaginationChanged(){let f=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(f),f&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){this.areListenersSetup||(this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)}),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach(f=>{let{el:S,fn:w}=f;this.addManagedListeners(S,{click:w,keydown:M=>{M.key!==A.KeyCode.ENTER&&M.key!==A.KeyCode.SPACE||(M.preventDefault(),w())}})}),(0,z._addFocusableContainerListener)(this.beans,this,this.getGui()),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(f){let S=this.gos.getCallback("paginationNumberFormatter");return S?S({value:f}):(0,b._formatNumberCommas)(f,this.getLocaleTextFunc.bind(this))}getTemplate(){let f=this.getLocaleTextFunc(),S=f("page","Page"),w=f("to","to"),M=f("of","of"),P=f("firstPage","First Page"),O=f("previousPage","Previous Page"),G=f("nextPage","Next Page"),j=f("lastPage","Last Page"),Y=this.getCompId();return`<div class="ag-paging-panel ag-unselectable" id="ag-${Y}">
                <ag-page-size-selector data-ref="pageSizeComp"></ag-page-size-selector>
                <span class="ag-paging-row-summary-panel">
                    <span id="ag-${Y}-first-row" data-ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>
                    <span id="ag-${Y}-to">${w}</span>
                    <span id="ag-${Y}-last-row" data-ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>
                    <span id="ag-${Y}-of">${M}</span>
                    <span id="ag-${Y}-row-count" data-ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>
                </span>
                <span class="ag-paging-page-summary-panel" role="presentation">
                    <div data-ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="${P}"></div>
                    <div data-ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="${O}"></div>
                    <span class="ag-paging-description">
                        <span id="ag-${Y}-start-page">${S}</span>
                        <span id="ag-${Y}-start-page-number" data-ref="lbCurrent" class="ag-paging-number"></span>
                        <span id="ag-${Y}-of-page">${M}</span>
                        <span id="ag-${Y}-of-page-number" data-ref="lbTotal" class="ag-paging-number"></span>
                    </span>
                    <div data-ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="${G}"></div>
                    <div data-ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="${j}"></div>
                </span>
            </div>`}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){let f=this.pagination.getCurrentPage(),S=this.rowModel.isLastRowIndexKnown(),w=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=f===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);let M=this.isZeroPagesToDisplay(),P=f===w-1;this.nextButtonDisabled=P||M,this.lastButtonDisabled=!S||M||f===w-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(f,S){(0,E._setAriaDisabled)(f,S),f.classList.toggle("ag-disabled",S)}isZeroPagesToDisplay(){let f=this.rowModel.isLastRowIndexKnown(),S=this.pagination.getTotalPages();return f&&S===0}updateLabels(){let f=this.rowModel.isLastRowIndexKnown(),S=this.pagination.getTotalPages(),w=this.pagination.getMasterRowCount(),M=f?w:null;if(M===1){let Fe=this.rowModel.getRow(0);if(Fe&&Fe.group&&!(Fe.groupData||Fe.aggData))return void this.setTotalLabelsToZero()}let P=this.pagination.getCurrentPage(),O=this.pagination.getPageSize(),G,j;this.isZeroPagesToDisplay()?G=j=0:(G=O*P+1,j=G+O-1,f&&j>M&&(j=M));let Y=!f&&w<G+O-1,J=this.formatNumber(G),ne;this.lbFirstRowOnPage.textContent=J;let ce=this.getLocaleTextFunc();ne=Y?ce("pageLastRowUnknown","?"):this.formatNumber(j),this.lbLastRowOnPage.textContent=ne;let fe=S>0?P+1:0,xe=this.formatNumber(fe),Le,_e;if(this.lbCurrent.textContent=xe,f)Le=this.formatNumber(S),_e=this.formatNumber(M);else{let Fe=ce("more","more");Le=Fe,_e=Fe}this.lbTotal.textContent=Le,this.lbRecordCount.textContent=_e,this.announceAriaStatus(J,ne,_e,xe,Le)}announceAriaStatus(f,S,w,M,P){var ce,fe;let O=this.getLocaleTextFunc(),G=O("page","Page"),j=O("to","to"),Y=O("of","of"),J=`${f} ${j} ${S} ${Y} ${w}`,ne=`${G} ${M} ${Y} ${P}`;J!==this.ariaRowStatus&&(this.ariaRowStatus=J,(ce=this.ariaAnnounce)==null||ce.announceValue(J,"paginationRow")),ne!==this.ariaPageStatus&&(this.ariaPageStatus=ne,(fe=this.ariaAnnounce)==null||fe.announceValue(ne,"paginationPage"))}setTotalLabelsToZero(){let f=this.formatNumber(0);this.lbFirstRowOnPage.textContent=f,this.lbCurrent.textContent=f,this.lbLastRowOnPage.textContent=f,this.lbTotal.textContent=f,this.lbRecordCount.textContent=f,this.announceAriaStatus(f,f,f,f,f)}}x.PaginationComp=h,x.PaginationSelector={selector:"AG-PAGINATION",component:h}},1824:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PaginationModule=void 0;let A=p(7205),E=p(3137),z=p(5794),T=p(90),b=p(3937);x.PaginationModule={moduleName:"Pagination",version:A.VERSION,beans:[b.PaginationService,T.PaginationAutoPageSizeService],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:z.paginationIsLastPageFound,paginationGetPageSize:z.paginationGetPageSize,paginationGetCurrentPage:z.paginationGetCurrentPage,paginationGetTotalPages:z.paginationGetTotalPages,paginationGetRowCount:z.paginationGetRowCount,paginationGoToNextPage:z.paginationGoToNextPage,paginationGoToPreviousPage:z.paginationGoToPreviousPage,paginationGoToFirstPage:z.paginationGoToFirstPage,paginationGoToLastPage:z.paginationGoToLastPage,paginationGoToPage:z.paginationGoToPage},dependsOn:[E.PopupModule]}},3937:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PaginationService=void 0;let A=p(8731),E=p(4422),z=p(300);class T extends A.BeanStub{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){let C=this.gos;this.active=C.get("pagination"),this.pageSizeFromGridOptions=C.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return z.PaginationSelector}isPaginateChildRows(){let C=this.gos;return!!(C.get("groupHideParentOfSingleChild")||C.get("groupRemoveSingleChildren")||C.get("groupRemoveLowestSingleChildren"))||C.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(C){let d=this.currentPage;this.active&&d!==C&&typeof d=="number"&&(this.currentPage=C,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0}))}isRowPresent(C){return C.rowIndex>=this.topDisplayedRowIndex&&C.rowIndex<=this.bottomDisplayedRowIndex}getPageForIndex(C){return Math.floor(C/this.pageSize)}goToPageWithIndex(C){if(!this.active)return;let d=this.getPageForIndex(C);this.goToPage(d)}isRowInPage(C){return this.active?this.getPageForIndex(C.rowIndex)===this.currentPage:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){let C=this.beans.rowModel.getRowCount(),d=Math.floor(C/this.pageSize);this.goToPage(d)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(C){this.currentPage=C}get pageSize(){return(0,E._exists)(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:(0,E._exists)(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:(0,E._exists)(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:(0,E._exists)(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;let C=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==C&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(C,d){let s=this.pageSize;switch(d){case"autoCalculated":this.pageSizeAutoCalculated=C;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=C,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=C;break;case"gridOptions":this.pageSizeFromGridOptions=C,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage()}s!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){let C=this.totalPages;this.currentPage>=C&&(this.currentPage=C-1);let d=this.currentPage;(!isFinite(d)||isNaN(d)||d<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){let C=this.beans.rowModel,d=C.getTopLevelRowCount();if(this.masterRowCount=d,d<=0)return void this.setZeroRows();let s=this.pageSize,c=d-1;this.totalPages=Math.floor(c/s)+1,this.adjustCurrentPageIfInvalid();let h=this.currentPage,g=s*h,f=s*(h+1)-1;if(f>c&&(f=c),this.topDisplayedRowIndex=C.getTopLevelRowDisplayedIndex(g),f===c)this.bottomDisplayedRowIndex=C.getRowCount()-1;else{let S=C.getTopLevelRowDisplayedIndex(f+1);this.bottomDisplayedRowIndex=S-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){let C=this.beans.rowModel.getRowCount();if(this.masterRowCount=C,C===0)return void this.setZeroRows();let{pageSize:d,currentPage:s}=this,c=C-1;this.totalPages=Math.floor(c/d)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=d*s,this.bottomDisplayedRowIndex=d*(s+1)-1,this.bottomDisplayedRowIndex>c&&(this.bottomDisplayedRowIndex=c)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(C){let{keepRenderedRows:d=!1,newPage:s=!1,newPageSize:c=!1}=C;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:s,newPageSize:c,keepRenderedRows:d})}}x.PaginationService=T},7186:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.pinnedColumnModuleCSS=void 0,x.pinnedColumnModuleCSS=".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{display:inline-block;min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}"},6219:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PinnedColumnModule=void 0;let A=p(7205),E=p(7186),z=p(7076);x.PinnedColumnModule={moduleName:"PinnedColumn",version:A.VERSION,beans:[z.PinnedColumnService],css:[E.pinnedColumnModuleCSS]}},7076:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PinnedColumnService=void 0;let A=p(2934),E=p(8731),z=p(2865),T=p(7274),b=p(3507),C=p(7764);class d extends E.BeanStub{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,h=>{this.gridBodyCtrl=h.gridBodyCtrl});let c=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:c,displayedColumnsWidthChanged:c}),this.addManagedPropertyListener("domLayout",c)}checkContainerWidths(){let{gos:c,visibleCols:h,eventSvc:g}=this.beans,f=(0,T._isDomLayout)(c,"print"),S=f?0:h.getColsLeftWidth(),w=f?0:h.getDisplayedColumnsRightWidth();S!=this.leftWidth&&(this.leftWidth=S,g.dispatchEvent({type:"leftPinnedWidthChanged"})),w!=this.rightWidth&&(this.rightWidth=w,g.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){let c=this.gridBodyCtrl.eBodyViewport,h=(0,b._getInnerWidth)(c);if(h<=50)return;let g=this.getPinnedColumnsOverflowingViewport(h-50),f=this.gos.getCallback("processUnpinnedColumns");g.length&&(f&&(g=f({columns:g,viewportWidth:h})),this.setColsPinned(g,null,"viewportSizeFeature"))}createPinnedWidthFeature(c,h){return new z.SetPinnedWidthFeature(c,h)}setColsPinned(c,h,g){let{colModel:f,colAnimation:S,visibleCols:w,gos:M}=this.beans;if(!f.cols||!(c!=null&&c.length))return;if((0,T._isDomLayout)(M,"print"))return void(0,C._warn)(37);let P;S==null||S.start(),P=h===!0||h==="left"?"left":h==="right"?"right":null;let O=[];c.forEach(G=>{if(!G)return;let j=f.getCol(G);j&&j.getPinned()!==P&&(this.setColPinned(j,P),O.push(j))}),O.length&&(w.refresh(g),(0,A.dispatchColumnPinnedEvent)(this.eventSvc,O,g)),S==null||S.finish()}initCol(c){let{pinned:h,initialPinned:g}=c.colDef;h!==void 0?this.setColPinned(c,h):this.setColPinned(c,g)}setColPinned(c,h){c.pinned=h===!0||h==="left"?"left":h==="right"?"right":null,c.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(c){let{scrollVisibleSvc:h}=this.beans;if(c.pinned==null)return;let g=c.pinned==="left",f=c.pinned==="right";c.hidden=!0;let S=()=>{let w=g?this.leftWidth:this.rightWidth;if(w==null)return;let M=w==0,P=c.hidden!==M,O=this.gos.get("enableRtl"),G=h.getScrollbarWidth(),j=h.verticalScrollShowing&&(O&&g||!O&&f)?w+G:w;c.comp.setPinnedContainerWidth(`${j}px`),c.comp.setDisplayed(!M),P&&(c.hidden=M,c.refresh())};c.addManagedEventListeners({leftPinnedWidthChanged:S,rightPinnedWidthChanged:S,scrollVisibilityChanged:S,scrollbarWidthChanged:S})}getHeaderResizeDiff(c,h){if(h.getPinned()){let{leftWidth:g,rightWidth:f}=this,S=(0,b._getInnerWidth)(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(g+f+c>S){if(!(S>g+f))return 0;c=S-g-f}}return c}getPinnedColumnsOverflowingViewport(c){var G,j;let h=((G=this.rightWidth)!=null?G:0)+((j=this.leftWidth)!=null?j:0);if(h<c)return[];let{visibleCols:g}=this.beans,f=[...g.leftCols],S=[...g.rightCols],w=0,M=0,P=[],O=h-0-c;for(;(M<f.length||w<S.length)&&O>0;){if(w<S.length){let Y=S[w++];O-=Y.getActualWidth(),P.push(Y)}if(M<f.length&&O>0){let Y=f[M++];O-=Y.getActualWidth(),P.push(Y)}}return P}}x.PinnedColumnService=d},1879:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.getPinnedBottomRow=x.getPinnedTopRow=x.getPinnedBottomRowCount=x.getPinnedTopRowCount=void 0,x.getPinnedTopRowCount=function(p){var A,E;return(E=(A=p.pinnedRowModel)==null?void 0:A.getPinnedTopRowCount())!=null?E:0},x.getPinnedBottomRowCount=function(p){var A,E;return(E=(A=p.pinnedRowModel)==null?void 0:A.getPinnedBottomRowCount())!=null?E:0},x.getPinnedTopRow=function(p,A){var E;return(E=p.pinnedRowModel)==null?void 0:E.getPinnedTopRow(A)},x.getPinnedBottomRow=function(p,A){var E;return(E=p.pinnedRowModel)==null?void 0:E.getPinnedBottomRow(A)}},9294:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PinnedRowModel=void 0;let A=p(8731),E=p(3373),z=p(7274),T=p(7764);class b extends A.BeanStub{constructor(){super(...arguments),this.beanName="pinnedRowModel",this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){let f=this.gos;this.setPinnedRowData(f.get("pinnedTopRowData"),"top"),this.setPinnedRowData(f.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",S=>this.setPinnedRowData(S.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",S=>this.setPinnedRowData(S.currentValue,"bottom")),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this)})}isEmpty(f){return this.getCache(f).order.length===0}isRowsToRender(f){return!this.isEmpty(f)}onGridStylesChanges(f){if(f.rowHeightChanged){let S=w=>{w.setRowHeight(w.rowHeight,!0)};c(this.pinnedBottomRows,S),c(this.pinnedTopRows,S)}}ensureRowHeightsValid(){let f=!1,S=0,w=M=>{if(M.rowHeightEstimated){let P=(0,z._getRowHeightForNode)(this.beans,M);M.setRowTop(S),M.setRowHeight(P.height),S+=P.height,f=!0}};return c(this.pinnedBottomRows,w),S=0,c(this.pinnedTopRows,w),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),f}setPinnedRowData(f,S){this.updateNodesFromRowData(f,S),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(f,S){var ne;let w=this.getCache(S);if(f===void 0)return w.order.length=0,void(w.cache={});let M=(0,z._getRowIdCallback)(this.gos),P=S==="top"?E.ROW_ID_PREFIX_TOP_PINNED:E.ROW_ID_PREFIX_BOTTOM_PINNED,O=new Set(w.order),G=[],j=new Set,Y=0,J=-1;for(let ce of f){let fe=(ne=M==null?void 0:M({data:ce,level:0,rowPinned:S}))!=null?ne:P+this.nextId++;if(j.has(fe)){(0,T._warn)(96,{id:fe,data:ce});continue}J++,j.add(fe),G.push(fe);let xe=d(w,fe);if(xe!==void 0)xe.data!==ce&&xe.setData(ce),Y+=this.setRowTopAndRowIndex(xe,Y,J),O.delete(fe);else{let Le=new E.RowNode(this.beans);Le.id=fe,Le.data=ce,Le.rowPinned=S,Y+=this.setRowTopAndRowIndex(Le,Y,J),w.cache[fe]=Le,w.order.push(fe)}}O.forEach(ce=>{var fe;(fe=d(w,ce))==null||fe.clearRowTopAndRowIndex(),delete w.cache[ce]}),w.order=G}setRowTopAndRowIndex(f,S,w){return f.setRowTop(S),f.setRowHeight((0,z._getRowHeightForNode)(this.beans,f).height),f.setRowIndex(w),f.rowHeight}getPinnedTopTotalHeight(){return C(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return C(this.pinnedBottomRows)}getPinnedTopRowCount(){return h(this.pinnedTopRows)}getPinnedBottomRowCount(){return h(this.pinnedBottomRows)}getPinnedTopRow(f){return s(this.pinnedTopRows,f)}getPinnedBottomRow(f){return s(this.pinnedBottomRows,f)}getPinnedRowById(f,S){return d(this.getCache(S),f)}forEachPinnedRow(f,S){return c(this.getCache(f),S)}getCache(f){return f==="top"?this.pinnedTopRows:this.pinnedBottomRows}}function C(g){let f=h(g);if(f===0)return 0;let S=s(g,f-1);return S===void 0?0:S.rowTop+S.rowHeight}function d(g,f){return g.cache[f]}function s(g,f){return d(g,g.order[f])}function c(g,f){g.order.forEach((S,w)=>{let M=d(g,S);M&&f(M,w)})}function h(g){return g.order.length}x.PinnedRowModel=b},5423:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PinnedRowModule=void 0;let A=p(7205),E=p(1879),z=p(9294);x.PinnedRowModule={moduleName:"PinnedRow",version:A.VERSION,beans:[z.PinnedRowModel],apiFunctions:{getPinnedTopRowCount:E.getPinnedTopRowCount,getPinnedBottomRowCount:E.getPinnedBottomRowCount,getPinnedTopRow:E.getPinnedTopRow,getPinnedBottomRow:E.getPinnedBottomRow}}},920:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x._ALL_GRID_OPTIONS=x._FUNCTION_GRID_OPTIONS=x._BOOLEAN_GRID_OPTIONS=x._BOOLEAN_MIXED_GRID_OPTIONS=x._NUMBER_GRID_OPTIONS=void 0,x._NUMBER_GRID_OPTIONS=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns"],x._BOOLEAN_MIXED_GRID_OPTIONS=["cellSelection","sideBar","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild"],x._BOOLEAN_GRID_OPTIONS=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault"],x._FUNCTION_GRID_OPTIONS=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter"],x._ALL_GRID_OPTIONS=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector","components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy","selectionColumnDef","overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","grandTotalRow",...x._NUMBER_GRID_OPTIONS,...x._FUNCTION_GRID_OPTIONS,...x._BOOLEAN_GRID_OPTIONS,...x._BOOLEAN_MIXED_GRID_OPTIONS,"theme","rowSelection"]},1331:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AriaAnnouncementService=void 0;let A=p(8731),E=p(7274),z=p(5230),T=p(3507),b=p(2043);class C extends A.BeanStub{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=(0,b._debounce)(this,this.updateAnnouncement.bind(this),200)}postConstruct(){let s=this.beans,c=(0,E._getDocument)(s),h=this.descriptionContainer=c.createElement("div");h.classList.add("ag-aria-description-container"),(0,z._setAriaLive)(h,"polite"),(0,z._setAriaRelevant)(h,"additions text"),(0,z._setAriaAtomic)(h,!0),s.eGridDiv.appendChild(h)}announceValue(s,c){this.pendingAnnouncements.set(c,s),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;let s=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{if(this.isAlive()&&this.descriptionContainer){let c=s;this.lastAnnouncement===c&&(c=`${c}.`),this.lastAnnouncement=c,this.descriptionContainer.textContent=c}},50)}destroy(){var c;super.destroy();let{descriptionContainer:s}=this;s&&((0,T._clearElement)(s),(c=s.parentElement)==null||c.removeChild(s)),this.descriptionContainer=null,this.pendingAnnouncements.clear()}}x.AriaAnnouncementService=C},3433:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AriaModule=void 0;let A=p(7205),E=p(1331);x.AriaModule={moduleName:"Aria",version:A.VERSION,beans:[E.AriaAnnouncementService]}},8763:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AutoWidthCalculator=void 0;let A=p(8731);class E extends A.BeanStub{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,T=>{this.centerRowContainerCtrl=T.center})}getPreferredWidthForColumn(T,b){let C=this.getHeaderCellForColumn(T);if(!C)return-1;let d=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(T);return b||d.push(C),this.addElementsToContainerAndGetWidth(d)}getPreferredWidthForColumnGroup(T){let b=this.getHeaderCellForColumn(T);return b?this.addElementsToContainerAndGetWidth([b]):-1}addElementsToContainerAndGetWidth(T){let b=document.createElement("form");b.style.position="fixed";let C=this.centerRowContainerCtrl.eContainer;T.forEach(s=>this.cloneItemIntoDummy(s,b)),C.appendChild(b);let d=b.offsetWidth;return C.removeChild(b),d+this.gos.get("autoSizePadding")}getHeaderCellForColumn(T){let b=null;return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().forEach(C=>{let d=C.getHtmlElementForColumnHeader(T);d!=null&&(b=d)}),b}cloneItemIntoDummy(T,b){let C=T.cloneNode(!0);C.style.width="",C.style.position="static",C.style.left="";let d=document.createElement("div"),s=d.classList;["ag-header-cell","ag-header-group-cell"].some(h=>C.classList.contains(h))?(s.add("ag-header","ag-header-row"),d.style.position="static"):s.add("ag-row");let c=T.parentElement;for(;c;){if(["ag-header-row","ag-row"].some(h=>c.classList.contains(h))){for(let h=0;h<c.classList.length;h++){let g=c.classList[h];g!="ag-row-position-absolute"&&s.add(g)}break}c=c.parentElement}d.appendChild(C),b.appendChild(d)}}x.AutoWidthCalculator=E},447:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AutoWidthModule=void 0;let A=p(7205),E=p(8763);x.AutoWidthModule={moduleName:"AutoWidth",version:A.VERSION,beans:[E.AutoWidthCalculator]}},2308:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellComp=void 0;let A=p(7274),E=p(7230),z=p(5230),T=p(3507),b=p(4422),C=p(7766),d=p(7764),s=p(8020);class c extends s.Component{constructor(g,f,S,w,M){super(),this.cellCtrl=f,this.rendererVersion=0,this.editorVersion=0,this.beans=g,this.column=f.column,this.rowNode=f.rowNode,this.eRow=w;let P=document.createElement("div");P.setAttribute("comp-id",`${this.getCompId()}`),this.setTemplateFromElement(P);let O=this.getGui();this.forceWrapper=f.isForceWrapper(),this.refreshWrapper(!1),(0,z._setAriaRole)(O,f.getCellAriaRole()),O.setAttribute("col-id",f.colIdSanitised);let G={addOrRemoveCssClass:(j,Y)=>this.addOrRemoveCssClass(j,Y),setUserStyles:j=>(0,T._addStylesToElement)(O,j),getFocusableElement:()=>this.getFocusableElement(),setIncludeSelection:j=>this.includeSelection=j,setIncludeRowDrag:j=>this.includeRowDrag=j,setIncludeDndSource:j=>this.includeDndSource=j,setRenderDetails:(j,Y,J)=>this.setRenderDetails(j,Y,J),setEditDetails:(j,Y,J)=>this.setEditDetails(j,Y,J),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue()};f.setComp(G,this.getGui(),this.eCellWrapper,S,M,void 0)}getParentOfValue(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()}setRenderDetails(g,f,S){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=this.firstRender==null;let w=this.refreshWrapper(!1);this.refreshEditStyles(!1),g?!(S||w)&&this.refreshCellRenderer(g)||(this.destroyRenderer(),this.createCellRendererInstance(g)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(f))}setEditDetails(g,f,S){g?this.createCellEditorInstance(g,f,S):this.destroyEditor()}removeControls(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)}refreshWrapper(g){let f=this.includeRowDrag||this.includeDndSource||this.includeSelection,S=f||this.forceWrapper,w=S&&this.eCellWrapper==null;if(w){let Y=document.createElement("div");Y.setAttribute("role","presentation"),Y.setAttribute("class","ag-cell-wrapper"),this.eCellWrapper=Y,this.getGui().appendChild(this.eCellWrapper)}let M=!S&&this.eCellWrapper!=null;M&&((0,T._removeFromParent)(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!S);let P=!g&&S,O=P&&this.eCellValue==null;if(O){let Y=document.createElement("span");Y.setAttribute("role","presentation"),Y.setAttribute("class","ag-cell-value"),this.eCellValue=Y,this.eCellWrapper.appendChild(this.eCellValue)}let G=!P&&this.eCellValue!=null;G&&((0,T._removeFromParent)(this.eCellValue),this.eCellValue=void 0);let j=w||M||O||G;return j&&this.removeControls(),g||f&&this.addControls(),j}addControls(){this.includeRowDrag&&this.rowDraggingComp==null&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&this.dndSourceComp==null&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.dndSourceComp&&this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.checkboxSelectionComp&&this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))}createCellEditorInstance(g,f,S){let w=this.editorVersion,M=g.newAgStackInstance(),{params:P}=g;M.then(O=>this.afterCellEditorCreated(w,O,P,f,S)),(0,b._missing)(this.cellEditor)&&P.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(g){let f=this.getParentOfValue();(0,T._clearElement)(f);let S=g!=null?(0,C._escapeString)(g,!0):null;S!=null&&(f.textContent=S)}destroyEditorAndRenderer(){this.destroyRenderer(),this.destroyEditor()}destroyRenderer(){let{context:g}=this.beans;this.cellRenderer=g.destroyBean(this.cellRenderer),(0,T._removeFromParent)(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){let{context:g}=this.beans;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=g.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=g.destroyBean(this.cellEditorPopupWrapper),(0,T._removeFromParent)(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(g){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==g.componentClass)return!1;let f=this.cellRenderer.refresh(g.params);return f===!0||f===void 0}createCellRendererInstance(g){let f=!this.beans.gos.get("suppressAnimationFrame")&&this.beans.animationFrameSvc,S=this.rendererVersion,{componentClass:w}=g,M=()=>{if(this.rendererVersion!==S||!this.isAlive())return;let P=g.newAgStackInstance(),O=this.afterCellRendererCreated.bind(this,S,w);P&&P.then(O)};f&&this.firstRender?this.beans.animationFrameSvc.createTask(M,this.rowNode.rowIndex,"createTasksP2"):M()}afterCellRendererCreated(g,f,S){if(!this.isAlive()||g!==this.rendererVersion)this.beans.context.destroyBean(S);else if(this.cellRenderer=S,this.cellRendererClass=f,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null){let w=this.getParentOfValue();(0,T._clearElement)(w),w.appendChild(this.cellRendererGui)}}afterCellEditorCreated(g,f,S,w,M){if(g!==this.editorVersion)return void this.beans.context.destroyBean(f);if(f.isCancelBeforeStart&&f.isCancelBeforeStart())return this.beans.context.destroyBean(f),void this.cellCtrl.stopEditing(!0);if(!f.getGui)return(0,d._warn)(97,{colId:this.column.getId()}),void this.beans.context.destroyBean(f);this.cellEditor=f,this.cellEditorGui=f.getGui();let P=w||f.isPopup!==void 0&&f.isPopup();P?this.addPopupCellEditor(S,M):this.addInCellEditor(),this.refreshEditStyles(!0,P),f.afterGuiAttached&&f.afterGuiAttached(),this.cellCtrl.cellEditorAttached()}refreshEditStyles(g,f){this.addOrRemoveCssClass("ag-cell-inline-editing",g&&!f),this.addOrRemoveCssClass("ag-cell-popup-editing",g&&!!f),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!g||!!f),this.cellCtrl.setInlineEditingCss()}addInCellEditor(){let g=this.getGui();g.contains((0,A._getActiveDomElement)(this.beans))&&g.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(g,f){var ce,fe;this.beans.gos.get("editType")==="fullRow"&&(0,d._warn)(98);let S=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(this.beans.editSvc.createPopupEditorWrapper(g));let w=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&w.appendChild(this.cellEditorGui);let M=this.beans.popupSvc,P=this.beans.gos.get("stopEditingWhenCellsLoseFocus"),O=f!=null?f:(fe=(ce=S.getPopupPosition)==null?void 0:ce.call(S))!=null?fe:"over",G=this.beans.gos.get("enableRtl"),j={ePopup:w,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:O,alignSide:G?"right":"left",keepWithinBounds:!0},Y=M.positionPopupByComponent.bind(M,j),J=(0,E._getLocaleTextFunc)(this.beans.localeSvc),ne=M.addPopup({modal:P,eChild:w,closeOnEsc:!0,closedCallback:()=>{this.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:Y,ariaLabel:J("ariaLabelCellEditor","Cell Editor")});ne&&(this.hideEditorPopup=ne.hideFunc)}detach(){this.eRow.removeChild(this.getGui())}destroy(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),super.destroy()}clearParentOfValue(){let g=this.getGui();g.contains((0,A._getActiveDomElement)(this.beans))&&g.focus({preventScroll:!0}),(0,T._clearElement)(this.getParentOfValue())}}x.CellComp=c},814:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellCtrl=x._getCellCtrlForEventTarget=x.DOM_DATA_KEY_CELL_CTRL=void 0;let A=p(3146),E=p(2036),z=p(8731),T=p(7274),b=p(1295),C=p(2612),d=p(5230),s=p(3507),c=p(2979),h=p(2331),g=p(4422),f=p(7766),S=p(7038),w=p(6368),M=p(3976);x.DOM_DATA_KEY_CELL_CTRL="cellCtrl",x._getCellCtrlForEventTarget=function(G,j){return(0,c._getCtrlForEventTarget)(G,j,x.DOM_DATA_KEY_CELL_CTRL)};let P=0;class O extends z.BeanStub{constructor(j,Y,J,ne){super(),this.column=j,this.rowNode=Y,this.rowCtrl=ne,this.rangeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.tooltipFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.beans=J,this.instanceId=j.getId()+"-"+P++,this.colIdSanitised=(0,f._escapeString)(this.column.getId()),this.createCellPosition(),this.updateAndFormatValue(!1)}shouldRestoreFocus(){return this.beans.focusSvc.shouldRestoreFocus(this.cellPosition)}onFocusOut(){this.beans.focusSvc.clearRestoreFocus()}addFeatures(){var J;let{beans:j}=this;this.positionFeature=new M.CellPositionFeature(this,j),this.customStyleFeature=(J=j.cellStyles)==null?void 0:J.createCellCustomStyleFeature(this,j),this.mouseListener=new w.CellMouseListenerFeature(this,j,this.column),this.keyboardListener=new S.CellKeyboardListenerFeature(this,j,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature();let{rangeSvc:Y}=j;Y&&(0,T._isCellSelectionEnabled)(j.gos)&&(this.rangeFeature=Y.createCellRangeFeature(j,this))}removeFeatures(){let j=this.beans.context;this.positionFeature=j.destroyBean(this.positionFeature),this.customStyleFeature=j.destroyBean(this.customStyleFeature),this.mouseListener=j.destroyBean(this.mouseListener),this.keyboardListener=j.destroyBean(this.keyboardListener),this.rangeFeature=j.destroyBean(this.rangeFeature),this.disableTooltipFeature()}enableTooltipFeature(j,Y){var J;this.tooltipFeature=(J=this.beans.tooltipSvc)==null?void 0:J.enableCellTooltipFeature(this,j,Y)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(j,Y,J,ne,ce,fe){var xe,Le,_e,Fe,We;this.comp=j,this.eGui=Y,this.printLayout=ne,fe!=null||(fe=this),this.addDomData(fe),this.addFeatures(),fe.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(J,fe),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),(xe=this.positionFeature)==null||xe.setComp(Y),(Le=this.customStyleFeature)==null||Le.setComp(j),(_e=this.tooltipFeature)==null||_e.refreshTooltip(),(Fe=this.keyboardListener)==null||Fe.setComp(this.eGui),this.rangeFeature&&this.rangeFeature.setComp(j,Y),ce&&this.isCellEditable()?(We=this.beans.editSvc)==null||We.startEditing(this):this.showValue(),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach(it=>it()),this.onCompAttachedFuncs=[])}setupAutoHeight(j,Y){var J;this.isAutoHeight=this.column.isAutoHeight(),this.isAutoHeight&&j&&((J=this.beans.rowAutoHeight)==null||J.setupCellAutoHeight(this,j,Y))}getCellAriaRole(){var j;return(j=this.column.getColDef().cellAriaRole)!=null?j:"gridcell"}isCellRenderer(){let j=this.column.getColDef();return j.cellRenderer!=null||j.cellRendererSelector!=null}getValueToDisplay(){var j;return(j=this.valueFormatted)!=null?j:this.value}showValue(j=!1){var _e;let{beans:Y,column:J,rowNode:ne,rangeFeature:ce}=this,{userCompFactory:fe}=Y,xe=this.getValueToDisplay(),Le;if(ne.stub&&((_e=ne.groupData)==null?void 0:_e[J.getId()])==null){let Fe=this.createCellRendererParams();Le=(0,E._getLoadingCellRendererDetails)(fe,J.getColDef(),Fe)}else if(this.isCellRenderer()){let Fe=this.createCellRendererParams();Le=(0,E._getCellRendererDetails)(fe,J.getColDef(),Fe)}this.comp.setRenderDetails(Le,xe,j),ce&&(0,C._requestAnimationFrame)(Y,()=>ce==null?void 0:ce.refreshHandle())}setupControlComps(){let j=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(j)),this.includeRowDrag=this.isIncludeControl(j.rowDrag),this.includeDndSource=this.isIncludeControl(j.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(j){return this.rowNode.rowPinned==null&&(typeof j=="function"||j===!0)}isCheckboxSelection(j){let{rowSelection:Y}=this.beans.gridOptions;return j.checkboxSelection||(0,A.isColumnSelectionCol)(this.column)&&Y&&typeof Y!="string"&&(0,T._getCheckboxes)(Y)}refreshShouldDestroy(){let j=this.column.getColDef(),Y=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(j)),J=this.includeRowDrag!=this.isIncludeControl(j.rowDrag),ne=this.includeDndSource!=this.isIncludeControl(j.dndSource),ce=this.isAutoHeight!=this.column.isAutoHeight();return Y||J||ne||ce}onPopupEditorClosed(){this.editing&&this.stopEditingAndFocus()}stopEditing(j=!1){var Y,J;return(J=(Y=this.beans.editSvc)==null?void 0:Y.stopEditing(this,j))!=null?J:!1}createCellRendererParams(){let{value:j,valueFormatted:Y,column:J,rowNode:ne,comp:ce,eGui:fe,beans:{valueSvc:xe,gos:Le}}=this;return Le.addGridCommonParams({value:j,valueFormatted:Y,getValue:()=>xe.getValueForDisplay(J,ne),setValue:Fe=>xe.setValue(ne,J,Fe),formatValue:this.formatValue.bind(this),data:ne.data,node:ne,pinned:J.getPinned(),colDef:J.getColDef(),column:J,refreshCell:this.refreshCell.bind(this),eGridCell:fe,eParentOfValue:ce.getParentOfValue(),registerRowDragger:(Fe,We,it,tt)=>this.registerRowDragger(Fe,We,tt),setTooltip:(Fe,We)=>{var it;Le.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(Fe,We),(it=this.tooltipFeature)==null||it.refreshTooltip()}})}onCellChanged(j){j.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(j){var Y;this.refreshShouldDestroy()?(Y=this.rowCtrl)==null||Y.recreateCell(this):this.refreshCell(j)}refreshCell(j){var _e,Fe,We,it,tt,ot;if(this.suppressRefreshCell||this.editing)return;let Y=this.column.getColDef(),J=j!=null&&!!j.newData,ne=j!=null&&!!j.suppressFlash,ce=Y.field==null&&Y.valueGetter==null&&Y.showRowGroup==null,fe=j&&j.forceRefresh||ce||J,xe=!!this.comp,Le=this.updateAndFormatValue(xe);if(xe){if(fe||Le){this.showValue(J);let st=(_e=this.beans.filterManager)==null?void 0:_e.isSuppressFlashingCellsBecauseFiltering();!ne&&!st&&Y.enableCellChangeFlash&&((Fe=this.beans.cellFlashSvc)==null||Fe.flashCell(this)),(We=this.customStyleFeature)==null||We.applyUserStyles(),(it=this.customStyleFeature)==null||it.applyClassesFromColDef()}(tt=this.tooltipFeature)==null||tt.refreshTooltip(),(ot=this.customStyleFeature)==null||ot.applyCellClassRules()}}stopEditingAndFocus(j=!1,Y=!1){var J;(J=this.beans.editSvc)==null||J.stopEditingAndFocus(this,j,Y)}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(j){var Y;return(Y=this.callValueFormatter(j))!=null?Y:j}callValueFormatter(j){return this.beans.valueSvc.formatValue(this.column,this.rowNode,j)}updateAndFormatValue(j){let Y=this.value,J=this.valueFormatted;return this.value=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),!j||!this.valuesAreEqual(Y,this.value)||this.valueFormatted!=J}valuesAreEqual(j,Y){let J=this.column.getColDef();return J.equals?J.equals(j,Y):j===Y}addDomData(j){let Y=this.eGui;(0,T._setDomData)(this.beans.gos,Y,x.DOM_DATA_KEY_CELL_CTRL,this),j.addDestroyFunc(()=>(0,T._setDomData)(this.beans.gos,Y,x.DOM_DATA_KEY_CELL_CTRL,null))}createEvent(j,Y){let{rowNode:J,column:ne,value:ce}=this;return this.beans.gos.addGridCommonParams({type:Y,node:J,data:J.data,value:ce,column:ne,colDef:ne.getColDef(),rowPinned:J.rowPinned,event:j,rowIndex:J.rowIndex})}processCharacter(j){var Y;(Y=this.keyboardListener)==null||Y.processCharacter(j)}onKeyDown(j){var Y;(Y=this.keyboardListener)==null||Y.onKeyDown(j)}onMouseEvent(j,Y){var J;(J=this.mouseListener)==null||J.onMouseEvent(j,Y)}getColSpanningList(){return this.positionFeature.getColSpanningList()}onLeftChanged(){var j;this.comp&&((j=this.positionFeature)==null||j.onLeftChanged())}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){let{comp:j,column:Y,beans:J}=this;(0,b.refreshFirstAndLastStyles)(j,Y,J.visibleCols)}refreshAriaColIndex(){let j=this.beans.visibleCols.getAriaColIndex(this.column);(0,d._setAriaColIndex)(this.eGui,j)}onWidthChanged(){var j;return(j=this.positionFeature)==null?void 0:j.onWidthChanged()}getRowPosition(){let{rowIndex:j,rowPinned:Y}=this.cellPosition;return{rowIndex:j,rowPinned:Y}}updateRangeBordersIfRangeCount(){var j;this.comp&&((j=this.rangeFeature)==null||j.updateRangeBordersIfRangeCount())}onCellSelectionChanged(){var j;this.comp&&((j=this.rangeFeature)==null||j.onCellSelectionChanged())}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(j=!1){this.beans.focusSvc.setFocusedCell({rowIndex:this.cellPosition.rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:j})}onRowIndexChanged(){var j;this.createCellPosition(),this.onCellFocused(),(j=this.rangeFeature)==null||j.onCellSelectionChanged()}onSuppressCellFocusChanged(j){this.eGui&&(0,s._addOrRemoveAttribute)(this.eGui,"tabindex",j?void 0:-1)}onFirstRightPinnedChanged(){if(!this.comp)return;let j=this.column.isFirstRightPinned();this.comp.addOrRemoveCssClass("ag-cell-first-right-pinned",j)}onLastLeftPinnedChanged(){if(!this.comp)return;let j=this.column.isLastLeftPinned();this.comp.addOrRemoveCssClass("ag-cell-last-left-pinned",j)}onCellFocused(j){var ce;let{beans:Y}=this;if((0,h._isCellFocusSuppressed)(Y))return;let J=Y.focusSvc.isCellFocused(this.cellPosition);if(!this.comp)return void(J&&(j==null?void 0:j.forceBrowserFocus)&&(this.focusEventToRestore=j));if(this.focusEventToRestore=void 0,this.comp.addOrRemoveCssClass("ag-cell-focus",J),J&&j&&j.forceBrowserFocus){let fe=this.comp.getFocusableElement();if(this.editing){let xe=(0,h._findFocusableElements)(fe,null,!0);xe.length&&(fe=xe[0])}fe.focus({preventScroll:!!j.preventScrollOnBrowserFocus})}let ne=Y.gos.get("editType")==="fullRow";J||ne||!this.editing||((ce=Y.editSvc)==null||ce.stopRowOrCellEdit(this)),J&&this.rowCtrl.announceDescription()}createCellPosition(){let{rowIndex:j,rowPinned:Y}=this.rowNode;this.cellPosition={rowIndex:j,rowPinned:(0,g._makeNull)(Y),column:this.column}}setInlineEditingCss(){var j;(j=this.beans.editSvc)==null||j.setInlineEditingCss(this.rowCtrl)}applyStaticCssClasses(){let{comp:j}=this;j.addOrRemoveCssClass("ag-cell",!0),j.addOrRemoveCssClass("ag-cell-not-inline-editing",!0);let Y=this.column.isAutoHeight()==1;j.addOrRemoveCssClass("ag-cell-auto-height",Y),j.addOrRemoveCssClass("ag-cell-normal-height",!Y)}onColumnHover(){var j;(j=this.beans.colHover)==null||j.onCellColumnHover(this.column,this.comp)}onColDefChanged(){var j;this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?(j=this.beans.editSvc)==null||j.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0}))}setWrapText(){let j=this.column.getColDef().wrapText==1;this.comp.addOrRemoveCssClass("ag-cell-wrap-text",j)}dispatchCellContextMenuEvent(j){let Y=this.column.getColDef(),J=this.createEvent(j,"cellContextMenu"),{beans:ne}=this;ne.eventSvc.dispatchEvent(J),Y.onCellContextMenu&&window.setTimeout(()=>{ne.frameworkOverrides.wrapOutgoing(()=>{Y.onCellContextMenu(J)})},0)}getCellRenderer(){var j,Y;return(Y=(j=this.comp)==null?void 0:j.getCellRenderer())!=null?Y:null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],super.destroy()}createSelectionCheckbox(){var Y;let j=(Y=this.beans.selectionSvc)==null?void 0:Y.createCheckboxSelectionComponent();if(j)return this.beans.context.createBean(j),j.init({rowNode:this.rowNode,column:this.column}),j}createDndSource(){let j=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return j&&this.beans.context.createBean(j),j}registerRowDragger(j,Y,J){if(this.customRowDragComp)return void this.customRowDragComp.setDragElement(j,Y);let ne=this.createRowDragComp(j,Y,J);ne&&(this.customRowDragComp=ne,this.addDestroyFunc(()=>{this.beans.context.destroyBean(ne),this.customRowDragComp=null}))}createRowDragComp(j,Y,J){var ce;let ne=(ce=this.beans.rowDragSvc)==null?void 0:ce.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,j,Y,J);if(ne)return this.beans.context.createBean(ne),ne}cellEditorAttached(){this.onEditorAttachedFuncs.forEach(j=>j()),this.onEditorAttachedFuncs=[]}}x.CellCtrl=O},4534:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellFlashService=void 0;let A=p(8731),E=p(6257),z=p(4422);class T extends A.BeanStub{constructor(){super(...arguments),this.beanName="cellFlashSvc"}onFlashCells(C,d){if(!C.comp)return;let s=(0,E._createCellId)(C.cellPosition);d.cells[s]&&this.animateCell(C,"highlight")}flashCell(C,d){this.animateCell(C,"data-changed",d==null?void 0:d.flashDuration,d==null?void 0:d.fadeDuration)}animateCell(C,d,s,c){let h=C.comp;if(!h)return;let{gos:g}=this;if(s||(s=g.get("cellFlashDuration")),s===0)return;(0,z._exists)(c)||(c=g.get("cellFadeDuration"));let f=`ag-cell-${d}`,S=`ag-cell-${d}-animation`;h.addOrRemoveCssClass(f,!0),h.addOrRemoveCssClass(S,!1);let{eGui:w}=C;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{C.isAlive()&&(h.addOrRemoveCssClass(f,!1),h.addOrRemoveCssClass(S,!0),w.style.transition=`background-color ${c}ms`,window.setTimeout(()=>{C.isAlive()&&(h.addOrRemoveCssClass(S,!1),w.style.transition="")},c))},s)})}}x.CellFlashService=T},7038:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellKeyboardListenerFeature=void 0;let A=p(9853),E=p(8731),z=p(7274),T=p(8667);class b extends E.BeanStub{constructor(d,s,c,h){super(),this.cellCtrl=d,this.rowNode=c,this.rowCtrl=h,this.beans=s}setComp(d){this.eGui=d}onKeyDown(d){let s=d.key;switch(s){case A.KeyCode.ENTER:this.onEnterKeyDown(d);break;case A.KeyCode.F2:this.onF2KeyDown(d);break;case A.KeyCode.ESCAPE:this.onEscapeKeyDown(d);break;case A.KeyCode.TAB:this.onTabKeyDown(d);break;case A.KeyCode.BACKSPACE:case A.KeyCode.DELETE:this.onBackspaceOrDeleteKeyDown(s,d);break;case A.KeyCode.DOWN:case A.KeyCode.UP:case A.KeyCode.RIGHT:case A.KeyCode.LEFT:this.onNavigationKeyDown(d,s)}}onNavigationKeyDown(d,s){var c;this.cellCtrl.editing||(d.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(d):(c=this.beans.navigation)==null||c.navigateToNextCell(d,s,this.cellCtrl.cellPosition,!0),d.preventDefault())}onShiftRangeSelect(d){let{rangeSvc:s,navigation:c}=this.beans;if(!s)return;let h=s.extendLatestRangeInDirection(d);h&&(c==null||c.ensureCellVisible(h))}onTabKeyDown(d){var s;(s=this.beans.navigation)==null||s.onTabKeyDown(this.cellCtrl,d)}onBackspaceOrDeleteKeyDown(d,s){var M;let{cellCtrl:c,beans:h,rowNode:g}=this,{gos:f,rangeSvc:S,eventSvc:w}=h;if(!c.editing){if(w.dispatchEvent({type:"keyShortcutChangedCellStart"}),function(P,O=!1){return P===A.KeyCode.DELETE||!O&&P===A.KeyCode.BACKSPACE&&(0,T._isMacOsUserAgent)()}(d,f.get("enableCellEditingOnBackspace"))){if(S&&(0,z._isCellSelectionEnabled)(f))S.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(c.isCellEditable()){let{column:P}=c,O=this.beans.valueSvc.getDeleteValue(P,g);g.setDataValue(P,O,"cellClear")}}else(M=h.editSvc)==null||M.startRowOrCellEdit(c,d,s);w.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(d){var h,g;let{cellCtrl:s,beans:c}=this;if(s.editing||this.rowCtrl.editing)s.stopEditingAndFocus(!1,d.shiftKey);else if(c.gos.get("enterNavigatesVertically")){let f=d.shiftKey?A.KeyCode.UP:A.KeyCode.DOWN;(h=c.navigation)==null||h.navigateToNextCell(null,f,s.cellPosition,!1)}else(g=c.editSvc)==null||g.startRowOrCellEdit(s,A.KeyCode.ENTER,d),s.editing&&d.preventDefault()}onF2KeyDown(d){var h;let{cellCtrl:s,beans:c}=this;s.editing||((h=c.editSvc)==null||h.startRowOrCellEdit(s,A.KeyCode.F2,d))}onEscapeKeyDown(d){var h;let{cellCtrl:s,beans:c}=this;s.editing&&((h=c.editSvc)==null||h.stopRowOrCellEdit(s,!0),s.focusCell(!0))}processCharacter(d){var c;if(d.target!==this.eGui||this.cellCtrl.editing)return;let s=d.key;s===A.KeyCode.SPACE?this.onSpaceKeyDown(d):(c=this.beans.editSvc)!=null&&c.startRowOrCellEdit(this.cellCtrl,s,d)&&d.preventDefault()}onSpaceKeyDown(d){var c;let{gos:s}=this.beans;!this.cellCtrl.editing&&(0,z._isRowSelection)(s)&&((c=this.beans.selectionSvc)==null||c.handleSelectionEvent(d,this.rowNode,"spaceKey")),d.preventDefault()}destroy(){super.destroy()}}x.CellKeyboardListenerFeature=b},6368:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellMouseListenerFeature=void 0;let A=p(8731),E=p(8667),z=p(3507),T=p(2979);class b extends A.BeanStub{constructor(d,s,c){super(),this.cellCtrl=d,this.column=c,this.beans=s}onMouseEvent(d,s){if(!(0,T._isStopPropagationForAgGrid)(s))switch(d){case"click":this.onCellClicked(s);break;case"mousedown":case"touchstart":this.onMouseDown(s);break;case"dblclick":this.onCellDoubleClicked(s);break;case"mouseout":this.onMouseOut(s);break;case"mouseover":this.onMouseOver(s)}}onCellClicked(d){var M;if((M=this.beans.touchSvc)!=null&&M.handleCellDoubleClick(this,d))return;let{eventSvc:s,rangeSvc:c,gos:h,editSvc:g}=this.beans,f=d.ctrlKey||d.metaKey;c&&f&&c.getCellRangeCount(this.cellCtrl.cellPosition)>1&&c.intersectLastRange(!0);let S=this.cellCtrl.createEvent(d,"cellClicked");s.dispatchEvent(S);let w=this.column.getColDef();w.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{w.onCellClicked(S)})},0),!((h.get("singleClickEdit")||w.singleClickEdit)&&!h.get("suppressClickEdit"))||d.shiftKey&&(c==null?void 0:c.getCellRanges().length)!=0||(g==null||g.startRowOrCellEdit(this.cellCtrl))}onCellDoubleClicked(d){let{column:s,beans:c,cellCtrl:h}=this,{eventSvc:g,frameworkOverrides:f,gos:S,editSvc:w}=c,M=s.getColDef(),P=h.createEvent(d,"cellDoubleClicked");g.dispatchEvent(P),typeof M.onCellDoubleClicked=="function"&&window.setTimeout(()=>{f.wrapOutgoing(()=>{M.onCellDoubleClicked(P)})},0),!S.get("singleClickEdit")&&!S.get("suppressClickEdit")&&(w==null||w.startRowOrCellEdit(h,null,d))}onMouseDown(d){let{ctrlKey:s,metaKey:c,shiftKey:h}=d,g=d.target,{cellCtrl:f,beans:S}=this,{eventSvc:w,rangeSvc:M,focusSvc:P,gos:O}=S;if(this.isRightClickInExistingRange(d))return;let G=M&&!M.isEmpty(),j=this.containsWidget(g),{cellPosition:Y}=f;if(!h||!G){let J=O.get("enableCellTextSelection")&&d.defaultPrevented,ne=((0,E._isBrowserSafari)()||J)&&!f.editing&&!(0,z._isFocusableFormField)(g)&&!j;f.focusCell(ne)}if(h&&G&&!P.isCellFocused(Y)){d.preventDefault();let J=P.getFocusedCell();if(J){let{column:ne,rowIndex:ce,rowPinned:fe}=J,xe=S.rowRenderer.getRowByPosition({rowIndex:ce,rowPinned:fe}),Le=xe==null?void 0:xe.getCellCtrl(ne);Le!=null&&Le.editing&&Le.stopEditing(),P.setFocusedCell({column:ne,rowIndex:ce,rowPinned:fe,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!j){if(M)if(h)M.extendLatestRangeToCell(Y);else{let J=s||c;M.setRangeToCell(Y,J)}w.dispatchEvent(this.cellCtrl.createEvent(d,"cellMouseDown"))}}isRightClickInExistingRange(d){let{rangeSvc:s}=this.beans;if(s){let c=s.isCellInAnyRange(this.cellCtrl.cellPosition),h=d.button===2||d.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(c&&h)return!0}return!1}containsWidget(d){return(0,z._isElementChildOfClass)(d,"ag-selection-checkbox",3)||(0,z._isElementChildOfClass)(d,"ag-drag-handle",3)}onMouseOut(d){if(this.mouseStayingInsideCell(d))return;let{eventSvc:s,colHover:c}=this.beans;s.dispatchEvent(this.cellCtrl.createEvent(d,"cellMouseOut")),c==null||c.clearMouseOver()}onMouseOver(d){if(this.mouseStayingInsideCell(d))return;let{eventSvc:s,colHover:c}=this.beans;s.dispatchEvent(this.cellCtrl.createEvent(d,"cellMouseOver")),c==null||c.setMouseOver([this.column])}mouseStayingInsideCell(d){if(!d.target||!d.relatedTarget)return!1;let{eGui:s}=this.cellCtrl,c=s.contains(d.target),h=s.contains(d.relatedTarget);return c&&h}destroy(){super.destroy()}}x.CellMouseListenerFeature=b},3976:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellPositionFeature=void 0;let A=p(8731),E=p(7274),z=p(1502),T=p(4422);class b extends A.BeanStub{constructor(d,s){super(),this.cellCtrl=d,this.beans=s,this.column=d.column,this.rowNode=d.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}setComp(d){this.eGui=d,this.setupColSpan(),this.setupRowSpan(),this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()}onNewColumnsLoaded(){let d=this.column.getRowSpan(this.rowNode);this.rowSpan!==d&&(this.rowSpan=d,this.applyRowSpan(!0))}onDisplayColumnsChanged(){let d=this.getColSpanningList();(0,z._areEqual)(this.colsSpanning,d)||(this.colsSpanning=d,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eGui)return;let d=this.getCellWidth();this.eGui.style.width=`${d}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((d,s)=>d+s.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){let{column:d,rowNode:s}=this,c=d.getColSpan(s),h=[];if(c===1)h.push(d);else{let g=d,f=d.getPinned();for(let S=0;g&&S<c&&(h.push(g),g=this.beans.visibleCols.getColAfter(g),g&&!(0,T._missing)(g))&&f===g.getPinned();S++);}return h}onLeftChanged(){if(!this.eGui)return;let d=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=d+"px"}getCellLeft(){let d;return d=this.beans.gos.get("enableRtl")&&this.colsSpanning?(0,z._last)(this.colsSpanning):this.column,d.getLeft()}modifyLeftForPrintLayout(d){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return d;let{visibleCols:s}=this.beans,c=s.getColsLeftWidth();return this.column.getPinned()==="right"?c+s.bodyWidth+(d||0):c+(d||0)}applyRowSpan(d){if(this.rowSpan===1&&!d)return;let s=(0,E._getRowHeightAsNumber)(this.beans)*this.rowSpan;this.eGui.style.height=`${s}px`,this.eGui.style.zIndex="1"}destroy(){super.destroy()}}x.CellPositionFeature=b},916:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.flashCells=void 0,x.flashCells=function(p,A={}){let{cellFlashSvc:E}=p;E&&p.frameworkOverrides.wrapIncoming(()=>{p.rowRenderer.getCellCtrls(A.rowNodes,A.columns).forEach(z=>E.flashCell(z,A))})}},3498:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.HighlightChangesModule=void 0;let A=p(7205),E=p(8868),z=p(2346),T=p(4534),b=p(916);x.HighlightChangesModule={moduleName:"HighlightChanges",version:A.VERSION,beans:[T.CellFlashService],userComponents:{agAnimateShowChangeCellRenderer:E.AnimateShowChangeCellRenderer,agAnimateSlideCellRenderer:z.AnimateSlideCellRenderer},apiFunctions:{flashCells:b.flashCells}}},8868:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AnimateShowChangeCellRenderer=void 0;let A=p(3507),E=p(4422),z=p(8020);class T extends z.Component{constructor(){super(),this.refreshCount=0;let C=document.createElement("span"),d=document.createElement("span");d.setAttribute("class","ag-value-change-delta");let s=document.createElement("span");s.setAttribute("class","ag-value-change-value"),C.appendChild(d),C.appendChild(s),this.setTemplateFromElement(C)}init(C){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(C,!0)}showDelta(C,d){let s=Math.abs(d),c=C.formatValue(s),h=(0,E._exists)(c)?c:s,g=d>=0,f=this.eDelta;f.textContent=g?"\u2191"+h:"\u2193"+h,f.classList.toggle("ag-value-change-delta-up",g),f.classList.toggle("ag-value-change-delta-down",!g)}setTimerToRemoveDelta(){this.refreshCount++;let C=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{C===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),(0,A._clearElement)(this.eDelta)}refresh(C,d=!1){var S;let{value:s,valueFormatted:c}=C,{eValue:h,lastValue:g,beans:f}=this;if(s===g||((0,E._exists)(c)?h.textContent=c:(0,E._exists)(s)?h.textContent=s:(0,A._clearElement)(h),(S=f.filterManager)==null?void 0:S.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof s=="number"&&typeof g=="number"){let w=s-g;this.showDelta(C,w)}return g&&h.classList.add("ag-value-change-value-highlight"),d||this.setTimerToRemoveDelta(),this.lastValue=s,!0}}x.AnimateShowChangeCellRenderer=T},9707:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.animateSlideCellRendererCSS=void 0,x.animateSlideCellRendererCSS=".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}"},2346:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AnimateSlideCellRenderer=void 0;let A=p(7274),E=p(3507),z=p(4422),T=p(8020),b=p(9707);class C extends T.Component{constructor(){super(),this.refreshCount=0;let s=document.createElement("span"),c=document.createElement("span");c.setAttribute("class","ag-value-slide-current"),s.appendChild(c),this.setTemplateFromElement(s),this.eCurrent=this.queryForHtmlElement(".ag-value-slide-current"),this.registerCSS(b.animateSlideCellRendererCSS)}init(s){this.refresh(s,!0)}addSlideAnimation(){this.refreshCount++;let s=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);let{beans:c,eCurrent:h}=this,g=(0,A._getDocument)(c).createElement("span");g.setAttribute("class","ag-value-slide-previous ag-value-slide-out"),this.ePrevious=g,g.textContent=h.textContent,this.getGui().insertBefore(g,h),c.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{s===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{s===this.refreshCount&&(this.getGui().removeChild(this.ePrevious),this.ePrevious=null)},3e3)})}refresh(s,c=!1){var f;let h=s.value;if((0,z._missing)(h)&&(h=""),h===this.lastValue||(f=this.beans.filterManager)!=null&&f.isSuppressFlashingCellsBecauseFiltering())return!1;c||this.addSlideAnimation(),this.lastValue=h;let g=this.eCurrent;return(0,z._exists)(s.valueFormatted)?g.textContent=s.valueFormatted:(0,z._exists)(s.value)?g.textContent=h:(0,E._clearElement)(g),!0}}x.AnimateSlideCellRenderer=C},7358:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CheckboxCellRendererModule=void 0;let A=p(7205),E=p(3987);x.CheckboxCellRendererModule={moduleName:"CheckboxCellRenderer",version:A.VERSION,userComponents:{agCheckboxCellRenderer:E.CheckboxCellRenderer}}},2522:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.checkboxCellRendererCSS=void 0,x.checkboxCellRendererCSS=".ag-checkbox-cell{height:100%}"},3987:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CheckboxCellRenderer=void 0;let A=p(3146),E=p(9853),z=p(7274),T=p(5230),b=p(2979),C=p(66),d=p(8020),s=p(2522);class c extends d.Component{constructor(){super(`
            <div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[C.AgCheckboxSelector]),this.eCheckbox=d.RefPlaceholder,this.registerCSS(s.checkboxCellRendererCSS)}init(g){this.refresh(g);let{eCheckbox:f,beans:S}=this,w=f.getInputElement();w.setAttribute("tabindex","-1"),(0,T._setAriaLive)(w,"polite"),this.addManagedListeners(w,{click:M=>{if((0,b._stopPropagationForAgGrid)(M),f.isDisabled())return;let P=f.getValue();this.onCheckboxChanged(P)},dblclick:M=>{(0,b._stopPropagationForAgGrid)(M)}}),this.addManagedElementListeners(g.eGridCell,{keydown:M=>{if(M.key===E.KeyCode.SPACE&&!f.isDisabled()){g.eGridCell===(0,z._getActiveDomElement)(S)&&f.toggle();let P=f.getValue();this.onCheckboxChanged(P),M.preventDefault()}}})}refresh(g){return this.params=g,this.updateCheckbox(g),!0}updateCheckbox(g){var ne;let f,S=!0,{value:w,column:M,node:P}=g;if(P.group&&M)if(typeof w=="boolean")f=w;else{let ce=M.getColId();ce.startsWith(A.GROUP_AUTO_COLUMN_ID)?f=w==null||w===""?void 0:w==="true":P.aggData&&P.aggData[ce]!==void 0?f=w!=null?w:void 0:S=!1}else f=w!=null?w:void 0;let{eCheckbox:O}=this;if(!S)return void O.setDisplayed(!1);O.setValue(f);let G=(ne=g.disabled)!=null?ne:!(M!=null&&M.isCellEditable(P));O.setDisabled(G);let j=this.getLocaleTextFunc(),Y=(0,T._getAriaCheckboxStateName)(j,f),J=G?Y:`${j("ariaToggleCellValue","Press SPACE to toggle cell value")} (${Y})`;O.setInputAriaLabel(J)}onCheckboxChanged(g){let{eventSvc:f,params:S}=this,{column:w,node:M,value:P}=S,O={column:w,colDef:w.getColDef(),data:M.data,node:M,rowIndex:M.rowIndex,rowPinned:M.rowPinned,value:P};f.dispatchEvent(ge({type:"cellEditingStarted"},O));let G=M.setDataValue(w,g,"edit");f.dispatchEvent(He(ge({type:"cellEditingStopped"},O),{oldValue:P,newValue:g,valueChanged:G})),G||this.updateCheckbox(S)}}x.CheckboxCellRenderer=c},1734:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.CssClassManager=void 0,x.CssClassManager=class{constructor(p){this.cssClassStates={},this.getGui=p}addCssClass(p){this.addOrRemoveCssClass(p,!0)}removeCssClass(p){this.addOrRemoveCssClass(p,!1)}containsCssClass(p){let A=this.getGui();return!!A&&A.classList.contains(p)}addOrRemoveCssClass(p,A){if(p){if(p.indexOf(" ")>=0){let E=(p||"").split(" ");if(E.length>1)return void E.forEach(z=>this.addOrRemoveCssClass(z,A))}if(this.cssClassStates[p]!==A&&p.length){let E=this.getGui();E&&E.classList.toggle(p,A),this.cssClassStates[p]=A}}}}},714:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.DndSourceComp=void 0;let A=p(9970),E=p(8020);class z extends E.Component{constructor(b,C,d){super('<div class="ag-drag-handle ag-row-drag" draggable="true"></div>'),this.rowNode=b,this.column=C,this.eCell=d}postConstruct(){this.getGui().appendChild((0,A._createIconNoSpan)("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",b=>{b.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(b){let{rowNode:C,column:d,eCell:s,gos:c}=this,h=d.getColDef().dndSourceOnRowDrag,g=b.dataTransfer;if(g.setDragImage(s,0,0),h)h(c.addGridCommonParams({rowNode:C,dragEvent:b}));else try{let f=JSON.stringify(C.data);g.setData("application/json",f),g.setData("text/plain",f)}catch(f){}}checkVisibility(){let b=this.column.isDndSource(this.rowNode);this.setDisplayed(b)}}x.DndSourceComp=z},2147:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PositionableFeature=void 0;let A=p(8731),E=p(3507),z="ag-resizer-wrapper",T=(d,s)=>`<div data-ref="${d}Resizer" class="ag-resizer ag-resizer-${s}"></div>`,b=`<div class="${z}">
        ${T("eTopLeft","topLeft")}
        ${T("eTop","top")}
        ${T("eTopRight","topRight")}
        ${T("eRight","right")}
        ${T("eBottomRight","bottomRight")}
        ${T("eBottom","bottom")}
        ${T("eBottomLeft","bottomLeft")}
        ${T("eLeft","left")}
    </div>`;class C extends A.BeanStub{wireBeans(s){this.popupSvc=s.popupSvc,this.dragSvc=s.dragSvc}constructor(s,c){super(),this.element=s,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},c)}center(){let{clientHeight:s,clientWidth:c}=this.offsetParent,h=c/2-this.getWidth()/2,g=s/2-this.getHeight()/2;this.offsetElement(h,g)}initialisePosition(){if(this.positioned)return;let{centered:s,forcePopupParentAsOffsetParent:c,minWidth:h,width:g,minHeight:f,height:S,x:w,y:M}=this.config;this.offsetParent||this.setOffsetParent();let P=0,O=0,G=(0,E._isVisible)(this.element);if(G){let j=this.findBoundaryElement(),Y=window.getComputedStyle(j);if(Y.minWidth!=null){let J=j.offsetWidth-this.element.offsetWidth;O=parseInt(Y.minWidth,10)-J}if(Y.minHeight!=null){let J=j.offsetHeight-this.element.offsetHeight;P=parseInt(Y.minHeight,10)-J}}if(this.minHeight=f||P,this.minWidth=h||O,g&&this.setWidth(g),S&&this.setHeight(S),g&&S||this.refreshSize(),s)this.center();else if(w||M)this.offsetElement(w,M);else if(G&&c){let j=this.boundaryEl,Y=!0;if(j||(j=this.findBoundaryElement(),Y=!1),j){let J=parseFloat(j.style.top),ne=parseFloat(j.style.left);Y?this.offsetElement(isNaN(ne)?0:ne,isNaN(J)?0:J):this.setPosition(ne,J)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(s,c){var g,f;if(!this.config.popup||s===this.movable)return;this.movable=s;let h=this.moveElementDragListener||{eElement:c,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};s?((g=this.dragSvc)==null||g.addDragSource(h),this.moveElementDragListener=h):((f=this.dragSvc)==null||f.removeDragSource(h),this.moveElementDragListener=void 0)}setResizable(s){if(this.clearResizeListeners(),s?this.addResizers():this.removeResizers(),typeof s=="boolean"){if(s===!1)return;s={topLeft:s,top:s,topRight:s,right:s,bottomRight:s,bottom:s,bottomLeft:s,left:s}}Object.keys(s).forEach(c=>{var S;let h=!!s[c],g=this.getResizerElement(c),f={dragStartPixels:0,eElement:g,onDragStart:w=>this.onResizeStart(w,c),onDragging:this.onResize.bind(this),onDragStop:w=>this.onResizeEnd(w,c)};(h||!this.isAlive()&&!h)&&(h?((S=this.dragSvc)==null||S.addDragSource(f),this.resizeListeners.push(f),g.style.pointerEvents="all"):g.style.pointerEvents="none",this.resizable[c]=h)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";let{height:s,width:c}=this.lastSize;c!==-1&&(this.element.style.width=`${c}px`),s!==-1&&(this.element.style.height=`${s}px`)}getHeight(){return this.element.offsetHeight}setHeight(s){let{popup:c}=this.config,h=this.element,g=!1;if(typeof s=="string"&&s.indexOf("%")!==-1)(0,E._setFixedHeight)(h,s),s=(0,E._getAbsoluteHeight)(h),g=!0;else if(s=Math.max(this.minHeight,s),this.positioned){let f=this.getAvailableHeight();f&&s>f&&(s=f)}this.getHeight()!==s&&(g?(h.style.maxHeight="unset",h.style.minHeight="unset"):c?(0,E._setFixedHeight)(h,s):(h.style.height=`${s}px`,h.style.flex="0 0 auto",this.lastSize.height=typeof s=="number"?s:parseFloat(s)))}getAvailableHeight(){let{popup:s,forcePopupParentAsOffsetParent:c}=this.config;this.positioned||this.initialisePosition();let{clientHeight:h}=this.offsetParent;if(!h)return null;let g=this.element.getBoundingClientRect(),f=this.offsetParent.getBoundingClientRect(),S=s?this.position.y:g.top,w=s?0:f.top,M=0;if(c){let P=this.element.parentElement;if(P){let{bottom:O}=P.getBoundingClientRect();M=O-g.bottom}}return h+w-S-M}getWidth(){return this.element.offsetWidth}setWidth(s){let c=this.element,{popup:h}=this.config,g=!1;if(typeof s=="string"&&s.indexOf("%")!==-1)(0,E._setFixedWidth)(c,s),s=(0,E._getAbsoluteWidth)(c),g=!0;else if(this.positioned){s=Math.max(this.minWidth,s);let{clientWidth:f}=this.offsetParent,S=h?this.position.x:this.element.getBoundingClientRect().left;f&&s+S>f&&(s=f-S)}this.getWidth()!==s&&(g?(c.style.maxWidth="unset",c.style.minWidth="unset"):this.config.popup?(0,E._setFixedWidth)(c,s):(c.style.width=`${s}px`,c.style.flex=" unset",this.lastSize.width=typeof s=="number"?s:parseFloat(s)))}offsetElement(s=0,c=0){var f;let{forcePopupParentAsOffsetParent:h}=this.config,g=h?this.boundaryEl:this.element;g&&((f=this.popupSvc)==null||f.positionPopup({ePopup:g,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:s,y:c})}),this.setPosition(parseFloat(g.style.left),parseFloat(g.style.top)))}constrainSizeToAvailableHeight(s){var h;if(!this.config.forcePopupParentAsOffsetParent)return;let c=()=>{let g=this.getAvailableHeight();this.element.style.setProperty("max-height",`${g}px`)};s&&this.popupSvc?this.resizeObserverSubscriber=(0,E._observeResize)(this.beans,(h=this.popupSvc)==null?void 0:h.getPopupParent(),c):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(s,c){this.position.x=s,this.position.y=c}updateDragStartPosition(s,c){this.dragStartPosition={x:s,y:c}}calculateMouseMovement(s){let{e:c,isLeft:h,isTop:g,anywhereWithin:f,topBuffer:S}=s,w=c.clientX-this.dragStartPosition.x,M=c.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(c,!!h,!!f,w)?0:w,movementY:this.shouldSkipY(c,!!g,S,M)?0:M}}shouldSkipX(s,c,h,g){let f=this.element.getBoundingClientRect(),S=this.offsetParent.getBoundingClientRect(),w=this.boundaryEl.getBoundingClientRect(),M=this.config.popup?this.position.x:f.left,P=M<=0&&S.left>=s.clientX||S.right<=s.clientX&&S.right<=w.right;return!!P||(P=c?g<0&&s.clientX>M+S.left||g>0&&s.clientX<M+S.left:h?g<0&&s.clientX>w.right||g>0&&s.clientX<M+S.left:g<0&&s.clientX>w.right||g>0&&s.clientX<w.right,P)}shouldSkipY(s,c,h=0,g){let f=this.element.getBoundingClientRect(),S=this.offsetParent.getBoundingClientRect(),w=this.boundaryEl.getBoundingClientRect(),M=this.config.popup?this.position.y:f.top,P=M<=0&&S.top>=s.clientY||S.bottom<=s.clientY&&S.bottom<=w.bottom;return!!P||(P=c?g<0&&s.clientY>M+S.top+h||g>0&&s.clientY<M+S.top:g<0&&s.clientY>w.bottom||g>0&&s.clientY<w.bottom,P)}createResizeMap(){let s=this.element;this.resizerMap={topLeft:{element:s.querySelector("[data-ref=eTopLeftResizer]")},top:{element:s.querySelector("[data-ref=eTopResizer]")},topRight:{element:s.querySelector("[data-ref=eTopRightResizer]")},right:{element:s.querySelector("[data-ref=eRightResizer]")},bottomRight:{element:s.querySelector("[data-ref=eBottomRightResizer]")},bottom:{element:s.querySelector("[data-ref=eBottomResizer]")},bottomLeft:{element:s.querySelector("[data-ref=eBottomLeftResizer]")},left:{element:s.querySelector("[data-ref=eLeftResizer]")}}}addResizers(){if(this.resizersAdded)return;let s=this.element;if(!s)return;let c=new DOMParser().parseFromString(b,"text/html").body;s.appendChild(c.firstChild),this.createResizeMap(),this.resizersAdded=!0}removeResizers(){this.resizerMap=void 0;let s=this.element.querySelector(`.${z}`);s&&this.element.removeChild(s),this.resizersAdded=!1}getResizerElement(s){return this.resizerMap[s].element}onResizeStart(s,c){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!c.match(/top/i),isRight:!!c.match(/right/i),isBottom:!!c.match(/bottom/i),isLeft:!!c.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[c].element.classList.add("ag-active");let{popup:h,forcePopupParentAsOffsetParent:g}=this.config;h||g||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(s.clientX,s.clientY)}getSiblings(){let s=this.element.parentElement;return s?Array.prototype.slice.call(s.children).filter(c=>!c.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){let s=this.getSiblings()||[],c=0,h=0;for(let g=0;g<s.length;g++){let f=s[g],S=!!f.style.flex&&f.style.flex!=="0 0 auto";if(f===this.element)continue;let w=this.minHeight||0,M=this.minWidth||0;if(S){let P=window.getComputedStyle(f);P.minHeight&&(w=parseInt(P.minHeight,10)),P.minWidth&&(M=parseInt(P.minWidth,10))}else w=f.offsetHeight,M=f.offsetWidth;c+=w,h+=M}return{height:c,width:h}}applySizeToSiblings(s){let c=null,h=this.getSiblings();if(h){for(let g=0;g<h.length;g++){let f=h[g];f!==c&&(s?f.style.height=`${f.offsetHeight}px`:f.style.width=`${f.offsetWidth}px`,f.style.flex="0 0 auto",f===this.element&&(c=h[g+1]))}c&&(c.style.removeProperty("height"),c.style.removeProperty("min-height"),c.style.removeProperty("max-height"),c.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(s=>s)}onResize(s){if(!this.isResizing||!this.currentResizer)return;let{popup:c,forcePopupParentAsOffsetParent:h}=this.config,{isTop:g,isRight:f,isBottom:S,isLeft:w}=this.currentResizer,M=f||w,P=S||g,{movementX:O,movementY:G}=this.calculateMouseMovement({e:s,isLeft:w,isTop:g}),j=this.position.x,Y=this.position.y,J=0,ne=0;if(M&&O){let ce=w?-1:1,fe=this.getWidth(),xe=fe+O*ce,Le=!1;w&&(J=fe-xe,(j+J<=0||xe<=this.minWidth)&&(Le=!0,J=0)),Le||this.setWidth(xe)}if(P&&G){let ce=g?-1:1,fe=this.getHeight(),xe=fe+G*ce,Le=!1;g?(ne=fe-xe,(Y+ne<=0||xe<=this.minHeight)&&(Le=!0,ne=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&fe<xe&&this.getMinSizeOfSiblings().height+xe>this.element.parentElement.offsetHeight&&(Le=!0),Le||this.setHeight(xe)}this.updateDragStartPosition(s.clientX,s.clientY),((c||h)&&J||ne)&&this.offsetElement(j+J,Y+ne)}onResizeEnd(s,c){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[c].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){let s=this.element;this.config.popup&&(this.config.width||this.setWidth(s.offsetWidth),this.config.height||this.setHeight(s.offsetHeight))}onMoveStart(s){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(s.clientX,s.clientY)}onMove(s){if(!this.isMoving)return;let{x:c,y:h}=this.position,g;this.config.calculateTopBuffer&&(g=this.config.calculateTopBuffer());let{movementX:f,movementY:S}=this.calculateMouseMovement({e:s,isTop:!0,anywhereWithin:!0,topBuffer:g});this.offsetElement(c+f,h+S),this.updateDragStartPosition(s.clientX,s.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let s=this.element;for(;s;){if(window.getComputedStyle(s).position!=="static")return s;s=s.parentElement}return this.element}clearResizeListeners(){var s;for(;this.resizeListeners.length;){let c=this.resizeListeners.pop();(s=this.dragSvc)==null||s.removeDragSource(c)}}destroy(){var s;super.destroy(),this.moveElementDragListener&&((s=this.dragSvc)==null||s.removeDragSource(this.moveElementDragListener)),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}}x.PositionableFeature=C},8703:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SetLeftFeature=void 0;let A=p(8731),E=p(6908),z=p(7274),T=p(5230),b=p(1502),C=p(4422);class d extends A.BeanStub{constructor(c,h,g,f){super(),this.columnOrGroup=c,this.eCell=h,this.colsSpanning=f,this.columnOrGroup=c,this.ariaEl=h.querySelector("[role=columnheader]")||h,this.beans=g}setColsSpanning(c){this.colsSpanning=c,this.onLeftChanged()}getColumnOrGroup(){let{beans:c,colsSpanning:h}=this;return c.gos.get("enableRtl")&&h?(0,b._last)(h):this.columnOrGroup}postConstruct(){let c=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:c}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:c}),this.addManagedPropertyListener("domLayout",c)}setLeftFirstTime(){let{gos:c,colAnimation:h}=this.beans,g=c.get("suppressColumnMoveAnimation"),f=(0,C._exists)(this.columnOrGroup.getOldLeft());h!=null&&h.isActive()&&f&&!g?this.animateInLeft():this.onLeftChanged()}animateInLeft(){let c=this.getColumnOrGroup(),h=this.modifyLeftForPrintLayout(c,c.getOldLeft()),g=this.modifyLeftForPrintLayout(c,c.getLeft());this.setLeft(h),this.actualLeft=g,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===g&&this.setLeft(g)})}onLeftChanged(){let c=this.getColumnOrGroup(),h=c.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(c,h),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(c,h){let{gos:g,visibleCols:f}=this.beans;if(!(0,z._isDomLayout)(g,"print")||c.getPinned()==="left")return h;let S=f.getColsLeftWidth();return c.getPinned()==="right"?S+f.bodyWidth+h:S+h}setLeft(c){if((0,C._exists)(c)&&(this.eCell.style.left=`${c}px`),(0,E.isColumnGroup)(this.columnOrGroup)){let h=this.columnOrGroup.getLeafColumns();if(!h.length)return;h.length>1&&(0,T._setAriaColSpan)(this.ariaEl,h.length)}}}x.SetLeftFeature=d},6105:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.LoadingOverlayComponent=void 0;let A=p(4422),E=p(4679);class z extends E.OverlayComponent{init(){var C;let b=(0,A._makeNull)((C=this.gos.get("overlayLoadingTemplate"))==null?void 0:C.trim());if(this.setTemplate(b!=null?b:'<span aria-live="polite" aria-atomic="true" class="ag-overlay-loading-center"></span>'),!b){let d=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=d("loadingOoo","Loading...")})}}}x.LoadingOverlayComponent=z},5233:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.NoRowsOverlayComponent=void 0;let A=p(4422),E=p(4679);class z extends E.OverlayComponent{init(){var C;let b=(0,A._makeNull)((C=this.gos.get("overlayNoRowsTemplate"))==null?void 0:C.trim());if(this.setTemplate(b!=null?b:'<span class="ag-overlay-no-rows-center"></span>'),!b){let d=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=d("noRowsToShow","No Rows To Show")})}}}x.NoRowsOverlayComponent=z},7896:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.hideOverlay=x.showNoRowsOverlay=x.showLoadingOverlay=void 0,x.showLoadingOverlay=function(p){var A;(A=p.overlays)==null||A.showLoadingOverlay()},x.showNoRowsOverlay=function(p){var A;(A=p.overlays)==null||A.showNoRowsOverlay()},x.hideOverlay=function(p){var A;(A=p.overlays)==null||A.hideOverlay()}},4679:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.OverlayComponent=void 0;let A=p(8020);class E extends A.Component{constructor(){super()}}x.OverlayComponent=E},5366:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.OverlayModule=void 0;let A=p(7205),E=p(6105),z=p(5233),T=p(7896),b=p(2351);x.OverlayModule={moduleName:"Overlay",version:A.VERSION,userComponents:{agLoadingOverlay:E.LoadingOverlayComponent,agNoRowsOverlay:z.NoRowsOverlayComponent},apiFunctions:{showLoadingOverlay:T.showLoadingOverlay,showNoRowsOverlay:T.showNoRowsOverlay,hideOverlay:T.hideOverlay},beans:[b.OverlayService]}},2351:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.OverlayService=void 0;let A=p(2036),E=p(8731),z=p(7274),T=p(7764),b=p(8360);class C extends E.BeanStub{constructor(){super(...arguments),this.beanName="overlays",this.state=0,this.showInitialOverlay=!0,this.wrapperPadding=0}postConstruct(){this.isClientSide=(0,z._isClientSideRowModel)(this.gos);let s=()=>this.updateOverlayVisibility();this.addManagedEventListeners({newColumnsLoaded:s,rowDataUpdated:s,gridSizeChanged:this.refreshWrapperPadding.bind(this),rowCountReady:()=>{this.showInitialOverlay=!1,this.updateOverlayVisibility()}}),this.addManagedPropertyListener("loading",s)}setOverlayWrapperComp(s){this.eWrapper=s,this.updateOverlayVisibility()}isVisible(){return this.state!==0&&!!this.eWrapper}isExclusive(){return this.state===1&&!!this.eWrapper}showLoadingOverlay(){this.showInitialOverlay=!1;let s=this.gos,c=s.get("loading");(c||c===void 0&&!s.get("suppressLoadingOverlay"))&&this.doShowLoadingOverlay()}showNoRowsOverlay(){this.showInitialOverlay=!1;let s=this.gos;s.get("loading")||s.get("suppressNoRowsOverlay")||this.doShowNoRowsOverlay()}hideOverlay(){this.showInitialOverlay=!1,this.gos.get("loading")?(0,T._warn)(99):this.doHideOverlay()}getOverlayWrapperSelector(){return b.OverlayWrapperSelector}getOverlayWrapperCompClass(){return b.OverlayWrapperComponent}updateOverlayVisibility(){if(!this.eWrapper)return void(this.state=0);let{state:s,isClientSide:c,beans:{gos:h,colModel:g,rowModel:f}}=this,S=this.gos.get("loading");S!==void 0&&(this.showInitialOverlay=!1),this.showInitialOverlay&&S===void 0&&!h.get("suppressLoadingOverlay")&&(S=!h.get("columnDefs")||!g.ready||!h.get("rowData")&&c),S?s!==1&&this.doShowLoadingOverlay():(this.showInitialOverlay=!1,f.isEmpty()&&!h.get("suppressNoRowsOverlay")&&c?s!==2&&this.doShowNoRowsOverlay():s!==0&&this.doHideOverlay())}doShowLoadingOverlay(){this.eWrapper&&(this.state=1,this.showOverlay((0,A._getLoadingOverlayCompDetails)(this.beans.userCompFactory,{}),"ag-overlay-loading-wrapper","loadingOverlayComponentParams"),this.updateExclusive())}doShowNoRowsOverlay(){this.eWrapper&&(this.state=2,this.showOverlay((0,A._getNoRowsOverlayCompDetails)(this.beans.userCompFactory,{}),"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams"),this.updateExclusive())}doHideOverlay(){this.eWrapper&&(this.state=0,this.eWrapper.hideOverlay(),this.updateExclusive())}showOverlay(s,c,h){var f,S;let g=(f=s==null?void 0:s.newAgStackInstance())!=null?f:null;(S=this.eWrapper)==null||S.showOverlay(g,c,this.isExclusive(),h),this.refreshWrapperPadding()}updateExclusive(){let s=this.exclusive;this.exclusive=this.isExclusive(),this.exclusive!==s&&this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"})}refreshWrapperPadding(){let s=this.eWrapper;if(!s)return;let c=0;if(this.state===2){let h=this.beans.ctrlsSvc.get("gridHeaderCtrl");c=(h==null?void 0:h.headerHeight)||0}else this.wrapperPadding!==0&&(c=0);this.wrapperPadding!==c&&(this.wrapperPadding=c,s.updateOverlayWrapperPaddingTop(c))}}x.OverlayService=C},3893:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.overlayWrapperComponentCSS=void 0,x.overlayWrapperComponentCSS=".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-overlay-loading-center{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);padding:var(--ag-spacing)}"},8360:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.OverlayWrapperSelector=x.OverlayWrapperComponent=void 0;let A=p(9853),E=p(7274),z=p(9360),T=p(1502),b=p(3507),C=p(2979),d=p(2331),s=p(8020),c=p(3893);class h extends s.Component{constructor(){super(`
            <div class="ag-overlay" role="presentation">
                <div class="ag-overlay-panel" role="presentation">
                    <div class="ag-overlay-wrapper" data-ref="eOverlayWrapper" role="presentation"></div>
                </div>
            </div>`),this.eOverlayWrapper=s.RefPlaceholder,this.activePromise=null,this.activeOverlay=null,this.updateListenerDestroyFunc=null,this.activeCssClass=null,this.elToFocusAfter=null,this.registerCSS(c.overlayWrapperComponentCSS)}handleKeyDown(f){if(f.key!==A.KeyCode.TAB||f.defaultPrevented||(0,C._isStopPropagationForAgGrid)(f))return;let S=this.beans;if((0,d._findNextFocusableElement)(S,this.eOverlayWrapper,!1,f.shiftKey))return;let w=!1;w=f.shiftKey?S.focusSvc.focusGridView((0,T._last)(S.visibleCols.allCols),!0,!1):(0,d._focusNextGridCoreContainer)(S,!1),w&&f.preventDefault()}updateLayoutClasses(f,S){let w=this.eOverlayWrapper.classList,{AUTO_HEIGHT:M,NORMAL:P,PRINT:O}=z.LayoutCssClasses;w.toggle(M,S.autoHeight),w.toggle(P,S.normal),w.toggle(O,S.print)}postConstruct(){this.createManagedBean(new z.LayoutFeature(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setOverlayWrapperComp(this),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}setWrapperTypeClass(f){let S=this.eOverlayWrapper.classList;this.activeCssClass&&S.toggle(this.activeCssClass,!1),this.activeCssClass=f,S.toggle(f,!0)}showOverlay(f,S,w,M){if(this.setWrapperTypeClass(S),this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=f,f){if(this.setDisplayed(!0,{skipAriaHidden:!0}),w&&this.isGridFocused()){let P=(0,E._getActiveDomElement)(this.beans);P&&!(0,E._isNothingFocused)(this.beans)&&(this.elToFocusAfter=P)}f.then(P=>{if(this.activePromise===f){if(this.activePromise=null,P){if(this.activeOverlay!==P&&(this.eOverlayWrapper.appendChild(P.getGui()),this.activeOverlay=P,M)){let O=P;this.updateListenerDestroyFunc=this.addManagedPropertyListener(M,({currentValue:G})=>{var j;(j=O.refresh)==null||j.call(O,this.gos.addGridCommonParams(ge({},G!=null?G:{})))})}w&&this.isGridFocused()&&(0,d._focusInto)(this.eOverlayWrapper)}}else this.activeOverlay!==P&&(this.destroyBean(P),P=null)})}}updateOverlayWrapperPaddingTop(f){this.eOverlayWrapper.style.setProperty("padding-top",`${f}px`)}destroyActiveOverlay(){var M;this.activePromise=null;let f=this.activeOverlay;if(!f)return;let S=this.elToFocusAfter;this.activeOverlay=null,this.elToFocusAfter=null,S&&!this.isGridFocused()&&(S=null);let w=this.updateListenerDestroyFunc;w&&(w(),this.updateListenerDestroyFunc=null),this.destroyBean(f),(0,b._clearElement)(this.eOverlayWrapper),(M=S==null?void 0:S.focus)==null||M.call(S,{preventScroll:!0})}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){let f=(0,E._getActiveDomElement)(this.beans);return!!f&&this.beans.eGridDiv.contains(f)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setOverlayWrapperComp(void 0),super.destroy()}}x.OverlayWrapperComponent=h,x.OverlayWrapperSelector={selector:"AG-OVERLAY-WRAPPER",component:h}},94:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getCellRendererInstances=x.getSizesForCurrentTheme=x.flushAllAnimationFrames=x.isAnimationFrameQueueEmpty=x.refreshHeader=x.refreshCells=x.setGridAriaProperty=void 0;let A=p(4126),E=p(7274),z=p(1323),T=p(557);x.setGridAriaProperty=function(b,C,d){if(!C)return;let s=b.ctrlsSvc.getGridBodyCtrl().eGridBody,c=`aria-${C}`;d===null?s.removeAttribute(c):s.setAttribute(c,d)},x.refreshCells=function(b,C={}){b.frameworkOverrides.wrapIncoming(()=>b.rowRenderer.refreshCells(C))},x.refreshHeader=function(b){b.frameworkOverrides.wrapIncoming(()=>b.ctrlsSvc.getHeaderRowContainerCtrls().forEach(C=>C.refresh()))},x.isAnimationFrameQueueEmpty=function(b){var C,d;return(d=(C=b.animationFrameSvc)==null?void 0:C.isQueueEmpty())!=null?d:!0},x.flushAllAnimationFrames=function(b){var C;(C=b.animationFrameSvc)==null||C.flushAllFrames()},x.getSizesForCurrentTheme=function(b){return{rowHeight:(0,E._getRowHeightAsNumber)(b),headerHeight:(0,z.getHeaderHeight)(b)}},x.getCellRendererInstances=function(b,C={}){var h;let d=[];if(b.rowRenderer.getCellCtrls(C.rowNodes,C.columns).forEach(g=>{let f=g.getCellRenderer();f!=null&&d.push((0,A._unwrapUserComp)(f))}),(h=C.columns)==null?void 0:h.length)return d;let s=[],c=(0,T.mapRowNodes)(C.rowNodes);return b.rowRenderer.getAllRowCtrls().forEach(g=>{if(c&&!(0,T.isRowInMap)(g.rowNode,c)||!g.isFullWidth())return;let f=g.getFullWidthCellRenderers();for(let S=0;S<f.length;S++){let w=f[S];w!=null&&s.push((0,A._unwrapUserComp)(w))}}),[...s,...d]}},6964:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RenderApiModule=void 0;let A=p(7205),E=p(94);x.RenderApiModule={moduleName:"RenderApi",version:A.VERSION,apiFunctions:{setGridAriaProperty:E.setGridAriaProperty,refreshCells:E.refreshCells,refreshHeader:E.refreshHeader,isAnimationFrameQueueEmpty:E.isAnimationFrameQueueEmpty,flushAllAnimationFrames:E.flushAllAnimationFrames,getSizesForCurrentTheme:E.getSizesForCurrentTheme,getCellRendererInstances:E.getCellRendererInstances}}},4577:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowAutoHeightModule=void 0;let A=p(7205),E=p(6418);x.RowAutoHeightModule={moduleName:"RowAutoHeight",version:A.VERSION,beans:[E.RowAutoHeightService]}},6418:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowAutoHeightService=void 0;let A=p(8731),E=p(7274),z=p(3507),T=p(2043);class b extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1}setRowAutoHeight(d,s,c){d.__autoHeights||(d.__autoHeights={}),d.__autoHeights[c.getId()]=s,s!=null&&(d.__checkAutoHeightsDebounced==null&&(d.__checkAutoHeightsDebounced=(0,T._debounce)(this,this.doCheckAutoHeights.bind(this,d),1)),d.__checkAutoHeightsDebounced())}checkAutoHeights(d){this.wasEverActive&&this.doCheckAutoHeights(d)}doCheckAutoHeights(d){var P;let s=d.__autoHeights;if(s==null)return;let c=!1,h=!0,g=0,{visibleCols:f,colModel:S,colViewport:w,rowModel:M}=this.beans;f.autoHeightCols.forEach(O=>{let G=s[O.getId()];if(G==null){if(!S.colSpanActive)return void(c=!0);{let j=[];switch(O.getPinned()){case"left":j=f.getLeftColsForRow(d);break;case"right":j=f.getRightColsForRow(d);break;case null:j=w.getColsWithinViewport(d)}if(j.includes(O))return void(c=!0);G=-1}}else h=!1;G>g&&(g=G)}),c||((h||g<10)&&(g=(0,E._getRowHeightForNode)(this.beans,d).height),g!=d.rowHeight&&(d.setRowHeight(g),(P=M.onRowHeightChangedDebounced)==null||P.call(M)))}setupCellAutoHeight(d,s,c){let h=s.parentElement,{rowNode:g,column:f}=d,S=this.beans,w=(0,E._getRowHeightForNode)(S,g).height,M=G=>{if(d.editing||!d.isAlive()||!c.isAlive())return;let{paddingTop:j,paddingBottom:Y,borderBottomWidth:J,borderTopWidth:ne}=(0,z._getElementSize)(h),ce=j+Y+J+ne,fe=s.offsetHeight+ce;if(G<5){let Le=(0,E._getDocument)(S);if(!Le||!Le.contains(s)||fe==0)return void window.setTimeout(()=>M(G+1),0)}let xe=Math.max(fe,w);this.setRowAutoHeight(g,xe,f)},P=()=>M(0);P();let O=(0,z._observeResize)(S,s,P);c.addDestroyFunc(()=>{O(),this.setRowAutoHeight(g,void 0,f)})}setAutoHeightActive(d){this.active=d.list.some(s=>s.isVisible()&&s.isAutoHeight()),this.active&&(this.wasEverActive=!0)}}x.RowAutoHeightService=b},6049:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowComp=void 0;let A=p(5230),E=p(3507),z=p(8020),T=p(2308);class b extends z.Component{constructor(d,s,c){super(),this.cellComps={},this.beans=s,this.rowCtrl=d;let h=document.createElement("div");h.setAttribute("comp-id",`${this.getCompId()}`),h.setAttribute("style",this.getInitialStyle(c)),this.setTemplateFromElement(h);let g=this.getGui(),f=g.style;this.domOrder=this.rowCtrl.getDomOrder(),(0,A._setAriaRole)(g,"row");let S={setDomOrder:w=>this.domOrder=w,setCellCtrls:w=>this.setCellCtrls(w),showFullWidth:w=>this.showFullWidth(w),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,addOrRemoveCssClass:(w,M)=>this.addOrRemoveCssClass(w,M),setUserStyles:w=>(0,E._addStylesToElement)(g,w),setTop:w=>f.top=w,setTransform:w=>f.transform=w,setRowIndex:w=>g.setAttribute("row-index",w),setRowId:w=>g.setAttribute("row-id",w),setRowBusinessKey:w=>g.setAttribute("row-business-key",w),refreshFullWidth:w=>{var M,P,O;return(O=(P=(M=this.fullWidthCellRenderer)==null?void 0:M.refresh)==null?void 0:P.call(M,w()))!=null?O:!1}};d.setComp(S,this.getGui(),c,void 0),this.addDestroyFunc(()=>{d.unsetComp(c)})}getInitialStyle(d){let s=this.rowCtrl.getInitialTransform(d);return s?`transform: ${s}`:`top: ${this.rowCtrl.getInitialRowTop(d)}`}showFullWidth(d){d.newAgStackInstance().then(s=>{if(this.isAlive()){let c=s.getGui();this.getGui().appendChild(c),this.rowCtrl.setupDetailRowAutoHeight(c),this.setFullWidthRowComp(s)}else this.beans.context.destroyBean(s)})}setCellCtrls(d){let s=Object.assign({},this.cellComps);d.forEach(h=>{let g=h.instanceId;this.cellComps[g]==null?this.newCellComp(h):s[g]=null});let c=Object.values(s).filter(h=>h!=null);this.destroyCells(c),this.ensureDomOrder(d)}ensureDomOrder(d){if(!this.domOrder)return;let s=[];d.forEach(c=>{let h=this.cellComps[c.instanceId];h&&s.push(h.getGui())}),(0,E._setDomChildOrder)(this.getGui(),s)}newCellComp(d){let s=new T.CellComp(this.beans,d,this.rowCtrl.printLayout,this.getGui(),this.rowCtrl.editing);this.cellComps[d.instanceId]=s,this.getGui().appendChild(s.getGui())}destroy(){super.destroy(),this.destroyAllCells()}destroyAllCells(){let d=Object.values(this.cellComps).filter(s=>s!=null);this.destroyCells(d)}setFullWidthRowComp(d){this.fullWidthCellRenderer=d,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer)})}destroyCells(d){d.forEach(s=>{if(!s)return;let c=s.cellCtrl.instanceId;this.cellComps[c]===s&&(s.detach(),s.destroy(),this.cellComps[c]=null)})}}x.RowComp=b},7632:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowCtrl=x.DOM_DATA_KEY_ROW_CTRL=void 0;let A=p(3789),E=p(2036),z=p(8731),T=p(7274),b=p(7648),C=p(5230),d=p(3507),s=p(2979),c=p(2331),h=p(2043),g=p(4422),f=p(7766),S=p(814),w=0;x.DOM_DATA_KEY_ROW_CTRL="renderedRow";class M extends z.BeanStub{constructor(O,G,j,Y,J){var ne,ce;super(),this.rowNode=O,this.useAnimationFrameForCreate=Y,this.printLayout=J,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=G,this.gos=G.gos,this.paginationPage=(ce=(ne=G.pagination)==null?void 0:ne.getCurrentPage())!=null?ce:0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=O.id+"-"+w++,this.rowId=(0,f._escapeString)(O.id),this.initRowBusinessKey(),this.rowFocused=G.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=(0,b.calculateRowLevel)(this.rowNode),this.setRowType(),this.setAnimateFlags(j),this.rowStyles=this.processStylesFromGridOptions(),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;let O=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=(0,f._escapeString)(O)}updateGui(O,G){O==="left"?this.leftGui=G:O==="right"?this.rightGui=G:O==="fullWidth"?this.fullWidthGui=G:this.centerGui=G}setComp(O,G,j,Y){let J={rowComp:O,element:G,containerType:j,compBean:Y=(0,A.setupCompBean)(this,this.beans.context,Y)};this.allRowGuis.push(J),this.updateGui(j,J),this.initialiseRowComp(J),this.rowType==="FullWidthLoading"||this.rowNode.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent()}unsetComp(O){this.allRowGuis=this.allRowGuis.filter(G=>G.containerType!==O),this.updateGui(O,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(O){let G=O?"none":"";this.allRowGuis.forEach(j=>j.element.style.display=G)}initialiseRowComp(O){var Y;let G=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(O),(Y=this.beans.rowAutoHeight)==null||Y.checkAutoHeights(this.rowNode),this.onRowHeightChanged(O),this.updateRowIndexes(O),this.setFocusedClasses(O),this.setStylesFromGridOptions(!1,O),(0,T._isRowSelection)(G)&&this.rowNode.selectable&&this.onRowSelected(O),this.updateColumnLists(!this.useAnimationFrameForCreate);let j=O.rowComp;this.getInitialRowClasses(O.containerType).forEach(J=>j.addOrRemoveCssClass(J,!0)),this.executeSlideAndFadeAnimations(O),this.rowNode.group&&(0,C._setAriaExpanded)(O.element,this.rowNode.expanded==1),this.setRowCompRowId(j),this.setRowCompRowBusinessKey(j),(0,T._setDomData)(G,O.element,x.DOM_DATA_KEY_ROW_CTRL,this),O.compBean.addDestroyFunc(()=>(0,T._setDomData)(G,O.element,x.DOM_DATA_KEY_ROW_CTRL,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,O),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(O),this.isFullWidth()&&this.setupFullWidth(O),G.get("rowDragEntireRow")&&this.addRowDraggerToRow(O),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&O.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(O){this.businessKey!=null&&O.setRowBusinessKey(this.businessKey)}setRowCompRowId(O){let G=(0,f._escapeString)(this.rowNode.id);this.rowId=G,G!=null&&O.setRowId(G)}executeSlideAndFadeAnimations(O){let{containerType:G}=O;this.slideInAnimation[G]&&((0,h._executeNextVMTurn)(()=>{this.onTopChanged()}),this.slideInAnimation[G]=!1),this.fadeInAnimation[G]&&((0,h._executeNextVMTurn)(()=>{O.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[G]=!1)}addRowDraggerToRow(O){var Y;let G=(Y=this.beans.rowDragSvc)==null?void 0:Y.createRowDragCompForRow(this.rowNode,O.element);if(!G)return;let j=this.createBean(G,this.beans.context);this.rowDragComps.push(j),O.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(J=>J!==j),this.destroyBean(j,this.beans.context)})}setupFullWidth(O){let G=this.getPinnedForContainer(O.containerType),j=this.createFullWidthCompDetails(O.element,G);O.rowComp.showFullWidth(j)}getFullWidthCellRenderers(){var O,G;return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(j=>{var Y;return(Y=j==null?void 0:j.rowComp)==null?void 0:Y.getFullWidthCellRenderer()}):[(G=(O=this.fullWidthGui)==null?void 0:O.rowComp)==null?void 0:G.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){let O=this.gos.getCallback("processRowPostCreate");!O||!this.areAllContainersReady()||O({eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})}areAllContainersReady(){let{leftGui:O,centerGui:G,rightGui:j,beans:{visibleCols:Y}}=this,J=!!O||!Y.isPinningLeft(),ne=!!G,ce=!!j||!Y.isPinningRight();return J&&ne&&ce}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;let O=this.beans.gos.getCallback("isFullWidthRow");return!!O&&O({rowNode:this.rowNode})}setRowType(){let O=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),G=this.isNodeFullWidthCell(),j=this.gos.get("masterDetail")&&this.rowNode.detail,Y=this.beans.colModel.isPivotMode(),J=!!this.rowNode.group&&!this.rowNode.footer&&(0,T._isGroupUseEntireRow)(this.gos,Y);this.rowType=O?"FullWidthLoading":j?"FullWidthDetail":G?"FullWidth":J?"FullWidthGroup":"Normal"}updateColumnLists(O=!1,G=!1){if(this.isFullWidth())return;let{animationFrameSvc:j}=this.beans;!j||O||this.gos.get("suppressAnimationFrame")||this.printLayout?this.updateColumnListsImpl(G):this.updateColumnListsPending||(j.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}createCellCtrls(O,G,j=null){let Y={list:[],map:{}},J=(ne,ce)=>{Y.list.push(ce),Y.map[ne]=ce};return G.forEach(ne=>{let ce=ne.getInstanceId(),fe=O.map[ce];fe||(fe=new S.CellCtrl(ne,this.rowNode,this.beans,this)),J(ce,fe)}),O.list.forEach(ne=>{let ce=ne.column.getInstanceId();Y.map[ce]==null&&(this.isCellEligibleToBeRemoved(ne,j)?ne.destroy():J(ce,ne))}),Y}updateColumnListsImpl(O){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(O)}setCellCtrls(O){this.allRowGuis.forEach(G=>{let j=this.getCellCtrlsForContainer(G.containerType);G.rowComp.setCellCtrls(j,O)})}getCellCtrlsForContainer(O){switch(O){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){let O=this.beans.colViewport,G=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,G.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{let j=O.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,j);let Y=G.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,Y,"left");let J=G.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,J,"right")}}isCellEligibleToBeRemoved(O,G){let{column:Y}=O;if(Y.getPinned()!=G)return!0;let{editing:J,cellPosition:ne}=O,{focusSvc:ce,visibleCols:fe}=this.beans,xe=ce.isCellFocused(ne);return J||xe?!(fe.allCols.indexOf(Y)>=0)&&!0:!0}getDomOrder(){return this.gos.get("ensureDomOrder")||(0,T._isDomLayout)(this.gos,"print")}listenOnDomOrder(O){O.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],()=>{O.rowComp.setDomOrder(this.getDomOrder())})}setAnimateFlags(O){if(this.rowNode.sticky||!O)return;let G=(0,g._exists)(this.rowNode.oldRowTop),{visibleCols:j}=this.beans,Y=j.isPinningLeft(),J=j.isPinningRight();if(G){let{slideInAnimation:ne}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(ne.fullWidth=!0);ne.center=!0,ne.left=Y,ne.right=J}else{let{fadeInAnimation:ne}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(ne.fullWidth=!0);ne.center=!0,ne.left=Y,ne.right=J}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){let O=(ne,ce)=>!ne||ne.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(ne.element,ce).params),G=O(this.fullWidthGui,null),j=O(this.centerGui,null),Y=O(this.leftGui,"left"),J=O(this.rightGui,"right");return G&&j&&Y&&J}addListeners(){var O,G;this.addManagedListeners(this.rowNode,ge({heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this)},(G=(O=this.beans.expansionSvc)==null?void 0:O.getRowExpandedListeners(this))!=null?G:{})),this.rowNode.detail&&this.addManagedListeners(this.rowNode.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(this.rowNode,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this)}),this.addManagedListeners(this.beans.eventSvc,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{this.gos.get("rowDragEntireRow")?this.allRowGuis.forEach(j=>{this.addRowDraggerToRow(j)}):this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{this.getAllCellCtrls().forEach(O=>O.onRowIndexChanged())},cellChanged:O=>{this.getAllCellCtrls().forEach(G=>G.onCellChanged(O))}})}onRowNodeDataChanged(O){this.isFullWidth()!==!!this.isNodeFullWidthCell()?this.beans.rowRenderer.redrawRow(this.rowNode):this.isFullWidth()?this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode):(this.getAllCellCtrls().forEach(G=>G.refreshCell({suppressFlash:!O.update,newData:!O.update})),this.allRowGuis.forEach(G=>{this.setRowCompRowId(G.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(G.rowComp)}),this.onRowSelected(),this.postProcessCss())}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){let O=this.rowNode.highlighted;this.allRowGuis.forEach(G=>{let j=O==="Above",Y=O==="Below";G.rowComp.addOrRemoveCssClass("ag-row-highlight-above",j),G.rowComp.addOrRemoveCssClass("ag-row-highlight-below",Y)})}postProcessRowDragging(){let O=this.rowNode.dragging;this.allRowGuis.forEach(G=>G.rowComp.addOrRemoveCssClass("ag-row-dragging",O))}onDisplayedColumnsChanged(){var O;this.updateColumnLists(!0),(O=this.beans.rowAutoHeight)==null||O.checkAutoHeights(this.rowNode)}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:(0,g._makeNull)(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}findFullWidthRowGui(O){return this.allRowGuis.find(G=>G.element.contains(O))}onKeyboardNavigate(O){var fe;let G=this.findFullWidthRowGui(O.target);if((G?G.element:null)!==O.target)return;let j=this.rowNode,{focusSvc:Y,navigation:J}=this.beans,ne=Y.getFocusedCell(),ce={rowIndex:j.rowIndex,rowPinned:j.rowPinned,column:(fe=ne==null?void 0:ne.column)!=null?fe:this.getColumnForFullWidth(G)};J==null||J.navigateToNextCell(O,O.key,ce,!0),O.preventDefault()}onTabKeyDown(O){var fe;if(O.defaultPrevented||(0,s._isStopPropagationForAgGrid)(O))return;let G=this.allRowGuis.find(xe=>xe.element.contains(O.target)),j=G?G.element:null,Y=j===O.target,J=(0,T._getActiveDomElement)(this.beans),ne=!1;j&&J&&(ne=j.contains(J)&&J.classList.contains("ag-cell"));let ce=null;Y||ne||(ce=(0,c._findNextFocusableElement)(this.beans,j,!1,O.shiftKey)),(this.isFullWidth()&&Y||!ce)&&((fe=this.beans.navigation)==null||fe.onTabKeyDown(this,O))}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){var G;let O=(G=this.allRowGuis.find(j=>(0,d._isVisible)(j.element)))==null?void 0:G.element;return O?O.getBoundingClientRect().top:0}onSuppressCellFocusChanged(O){let G=this.isFullWidth()&&O?void 0:-1;this.allRowGuis.forEach(j=>{(0,d._addOrRemoveAttribute)(j.element,"tabindex",G)})}onFullWidthRowFocused(O){var J;let G=this.rowNode,j=!!O&&this.isFullWidth()&&O.rowIndex===G.rowIndex&&O.rowPinned==G.rowPinned,Y=this.fullWidthGui?this.fullWidthGui.element:(J=this.centerGui)==null?void 0:J.element;Y&&(Y.classList.toggle("ag-full-width-focus",j),j&&(O!=null&&O.forceBrowserFocus)&&Y.focus({preventScroll:!0}))}recreateCell(O){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,O),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,O),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,O),O.destroy(),this.updateColumnLists()}removeCellCtrl(O,G){let j={list:[],map:{}};return O.list.forEach(Y=>{Y!==G&&(j.list.push(Y),j.map[Y.column.getInstanceId()]=Y)}),j}onMouseEvent(O,G){switch(O){case"dblclick":this.onRowDblClick(G);break;case"click":this.onRowClick(G);break;case"touchstart":case"mousedown":this.onRowMouseDown(G)}}createRowEvent(O,G){let{rowNode:j}=this;return this.gos.addGridCommonParams({type:O,node:j,data:j.data,rowIndex:j.rowIndex,rowPinned:j.rowPinned,event:G})}createRowEventWithSource(O,G){let j=this.createRowEvent(O,G);return j.source=this,j}onRowDblClick(O){(0,s._isStopPropagationForAgGrid)(O)||this.beans.eventSvc.dispatchEvent(this.createRowEventWithSource("rowDoubleClicked",O))}getColumnForFullWidth(O){let{visibleCols:G}=this.beans;switch(O==null?void 0:O.containerType){case"center":return G.centerCols[0];case"left":return G.leftCols[0];case"right":return G.rightCols[0];default:return G.allCols[0]}}onRowMouseDown(O){if(this.lastMouseDownOnDragger=(0,d._isElementChildOfClass)(O.target,"ag-row-drag",3),!this.isFullWidth())return;let G=this.rowNode,{rangeSvc:j,focusSvc:Y}=this.beans;j==null||j.removeAllCellRanges();let J=this.findFullWidthRowGui(O.target),ne=J==null?void 0:J.element,ce=O.target,fe=!0;ne&&ne.contains(ce)&&(0,d._isFocusableFormField)(ce)&&(fe=!1),Y.setFocusedCell({rowIndex:G.rowIndex,column:this.getColumnForFullWidth(J),rowPinned:G.rowPinned,forceBrowserFocus:fe})}onRowClick(O){if((0,s._isStopPropagationForAgGrid)(O)||this.lastMouseDownOnDragger)return;let{eventSvc:G,selectionSvc:j}=this.beans;G.dispatchEvent(this.createRowEventWithSource("rowClicked",O)),j==null||j.handleSelectionEvent(O,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(O){var G;this.rowType==="FullWidthDetail"&&((G=this.beans.masterDetailSvc)==null||G.setupDetailRowAutoHeight(this,O))}createFullWidthCompDetails(O,G){let{gos:j,rowNode:Y}=this,J=j.addGridCommonParams({fullWidth:!0,data:Y.data,node:Y,value:Y.key,valueFormatted:Y.key,eGridCell:O,eParentOfValue:O,pinned:G,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(ce,fe,xe,Le)=>this.addFullWidthRowDragging(ce,fe,xe,Le),setTooltip:(ce,fe)=>{j.assertModuleRegistered("Tooltip",3),this.refreshRowTooltip(ce,fe)}}),ne=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return(0,E._getFullWidthDetailCellRendererDetails)(ne,J);case"FullWidthGroup":return(0,E._getFullWidthGroupCellRendererDetails)(ne,J);case"FullWidthLoading":return(0,E._getFullWidthLoadingCellRendererDetails)(ne,J);default:return(0,E._getFullWidthCellRendererDetails)(ne,J)}}refreshRowTooltip(O,G){var j;this.fullWidthGui&&(this.tooltipFeature=(j=this.beans.tooltipSvc)==null?void 0:j.refreshRowTooltip(this.tooltipFeature,this,O,G))}addFullWidthRowDragging(O,G,j="",Y){let{rowDragSvc:J,context:ne}=this.beans;if(!J||!this.isFullWidth())return;let ce=J.createRowDragComp(()=>j,this.rowNode,void 0,O,G,Y);this.createBean(ce,ne),this.addDestroyFunc(()=>{this.destroyBean(ce,ne)})}onUiLevelChanged(){let O=(0,b.calculateRowLevel)(this.rowNode);if(this.rowLevel!=O){let G="ag-row-level-"+O,j="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(Y=>{Y.rowComp.addOrRemoveCssClass(G,!0),Y.rowComp.addOrRemoveCssClass(j,!1)})}this.rowLevel=O}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){let O=this.isFirstRowOnPage(),G=this.isLastRowOnPage();this.firstRowOnPage!==O&&(this.firstRowOnPage=O,this.allRowGuis.forEach(j=>j.rowComp.addOrRemoveCssClass("ag-row-first",O))),this.lastRowOnPage!==G&&(this.lastRowOnPage=G,this.allRowGuis.forEach(j=>j.rowComp.addOrRemoveCssClass("ag-row-last",G)))}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){var G;let O=[];(G=this.beans.rowStyleSvc)==null||G.processClassesFromGridOptions(O,this.rowNode),O.length&&O.forEach(j=>{this.allRowGuis.forEach(Y=>Y.rowComp.addOrRemoveCssClass(j,!0))})}postProcessRowClassRules(){var O;(O=this.beans.rowStyleSvc)==null||O.processRowClassRules(this.rowNode,G=>{this.allRowGuis.forEach(j=>j.rowComp.addOrRemoveCssClass(G,!0))},G=>{this.allRowGuis.forEach(j=>j.rowComp.addOrRemoveCssClass(G,!1))})}setStylesFromGridOptions(O,G){O&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(G,j=>j.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(O){return O==="left"||O==="right"?O:null}getInitialRowClasses(O){var fe;let G=this.getPinnedForContainer(O),j=this.isFullWidth(),{rowNode:Y,beans:J}=this,ne=[];ne.push("ag-row"),ne.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[O]&&ne.push("ag-opacity-zero"),ne.push(Y.rowIndex%2==0?"ag-row-even":"ag-row-odd"),Y.isRowPinned()&&ne.push("ag-row-pinned"),Y.isSelected()&&ne.push("ag-row-selected"),Y.footer&&ne.push("ag-row-footer"),ne.push("ag-row-level-"+this.rowLevel),Y.stub&&ne.push("ag-row-loading"),j&&ne.push("ag-full-width-row"),(fe=J.expansionSvc)==null||fe.addExpandedCss(ne,Y),Y.dragging&&ne.push("ag-row-dragging");let{rowStyleSvc:ce}=J;return ce&&(ce.processClassesFromGridOptions(ne,Y),ce.preProcessRowClassRules(ne,Y)),ne.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&ne.push("ag-row-first"),this.isLastRowOnPage()&&ne.push("ag-row-last"),j&&(G==="left"&&ne.push("ag-cell-last-left-pinned"),G==="right"&&ne.push("ag-cell-first-right-pinned")),ne}processStylesFromGridOptions(){var O,G;return(G=(O=this.beans.rowStyleSvc)==null?void 0:O.processStylesFromGridOptions(this.rowNode))!=null?G:this.emptyStyle}onRowSelected(O){var G;(G=this.beans.selectionSvc)==null||G.onRowCtrlSelected(this,j=>{j!==this.centerGui&&j!==this.fullWidthGui||this.announceDescription()},O)}announceDescription(){var O;(O=this.beans.selectionSvc)==null||O.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(O){if(!this.active)return;let{element:G,compBean:j}=O,{rowNode:Y,beans:J,gos:ne}=this;j.addManagedListeners(G,{mouseenter:()=>Y.dispatchRowEvent("mouseEnter"),mouseleave:()=>Y.dispatchRowEvent("mouseLeave")}),j.addManagedListeners(Y,{mouseEnter:()=>{var ce;(ce=J.dragSvc)!=null&&ce.dragging||ne.get("suppressRowHoverHighlight")||(G.classList.add("ag-row-hover"),Y.setHovered(!0))},mouseLeave:()=>{G.classList.remove("ag-row-hover"),Y.setHovered(!1)}})}roundRowTopToBounds(O){let G=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),j=this.applyPaginationOffset(G.top,!0)-100,Y=this.applyPaginationOffset(G.bottom,!0)+100;return Math.min(Math.max(j,O),Y)}forEachGui(O,G){O?G(O):this.allRowGuis.forEach(G)}onRowHeightChanged(O){if(this.rowNode.rowHeight==null)return;let G=this.rowNode.rowHeight,j=this.beans.environment.getDefaultRowHeight(),Y=(0,T._isGetRowHeightFunction)(this.gos)?(0,T._getRowHeightForNode)(this.beans,this.rowNode).height:void 0,J=Y?Math.min(j,Y)-2+"px":void 0;this.forEachGui(O,ne=>{ne.element.style.height=`${G}px`,J&&ne.element.style.setProperty("--ag-line-height",J)})}destroyFirstPass(O=!1){this.active=!1;let{rowNode:G}=this;if(!O&&(0,T._isAnimateRows)(this.gos)&&!G.sticky)if(G.rowTop!=null){let Y=this.roundRowTopToBounds(G.rowTop);this.setRowTop(Y)}else this.allRowGuis.forEach(Y=>Y.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0));G.setHovered(!1);let j=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(j),this.beans.eventSvc.dispatchEvent(j),super.destroy()}destroySecondPass(){var G;this.allRowGuis.length=0,(G=this.beans.editSvc)==null||G.stopRowEditing(this);let O=j=>(j.list.forEach(Y=>Y.destroy()),{list:[],map:{}});this.centerCellCtrls=O(this.centerCellCtrls),this.leftCellCtrls=O(this.leftCellCtrls),this.rightCellCtrls=O(this.rightCellCtrls)}setFocusedClasses(O){this.forEachGui(O,G=>{G.rowComp.addOrRemoveCssClass("ag-row-focus",this.rowFocused),G.rowComp.addOrRemoveCssClass("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){let{focusSvc:O,editSvc:G}=this.beans,j=O.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);j!==this.rowFocused&&(this.rowFocused=j,this.setFocusedClasses()),!j&&this.editing&&(G==null||G.stopRowEditing(this,!1))}onPaginationChanged(){var G,j;let O=(j=(G=this.beans.pagination)==null?void 0:G.getCurrentPage())!=null?j:0;this.paginationPage!==O&&(this.paginationPage=O,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(O,G=!1){return this.rowNode.isRowPinned()||this.rowNode.sticky?O:O+this.beans.pageBounds.getPixelOffset()*(G?1:-1)}setRowTop(O){if(!this.printLayout&&(0,g._exists)(O)){let G=this.applyPaginationOffset(O),j=`${this.rowNode.isRowPinned()||this.rowNode.sticky?G:this.beans.rowContainerHeight.getRealPixelPosition(G)}px`;this.setRowTopStyle(j)}}getInitialRowTop(O){return this.suppressRowTransform?this.getInitialRowTopShared(O):void 0}getInitialTransform(O){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(O)})`}getInitialRowTopShared(O){if(this.printLayout)return"";let G=this.rowNode,j;if(G.sticky)j=G.stickyRowTop;else{let Y=this.slideInAnimation[O]?this.roundRowTopToBounds(G.oldRowTop):G.rowTop,J=this.applyPaginationOffset(Y);j=G.isRowPinned()?J:this.beans.rowContainerHeight.getRealPixelPosition(J)}return j+"px"}setRowTopStyle(O){this.allRowGuis.forEach(G=>this.suppressRowTransform?G.rowComp.setTop(O):G.rowComp.setTransform(`translateY(${O})`))}getCellCtrl(O,G=!1){let j=null;return this.getAllCellCtrls().forEach(Y=>{Y.column==O&&(j=Y)}),j!=null||G||this.getAllCellCtrls().forEach(Y=>{Y.getColSpanningList().indexOf(O)>=0&&(j=Y)}),j}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(O){var ne,ce,fe,xe;let G=this.rowNode.getRowIndexString();if(G===null)return;let j=((ce=(ne=this.beans.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:ne.getRowCount())!=null?ce:0)+((xe=(fe=this.beans.filterManager)==null?void 0:fe.getHeaderRowCount())!=null?xe:0),Y=this.rowNode.rowIndex%2==0,J=j+this.rowNode.rowIndex+1;this.forEachGui(O,Le=>{Le.rowComp.setRowIndex(G),Le.rowComp.addOrRemoveCssClass("ag-row-even",Y),Le.rowComp.addOrRemoveCssClass("ag-row-odd",!Y),(0,C._setAriaRowIndex)(Le.element,J)})}}x.RowCtrl=M},7109:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowContainerHeightService=void 0;let A=p(8731),E=p(8667),z=p(2043);class T extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=(0,E._getMaxDivHeight)(),(0,z._logIfDebug)(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;let C=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,d=this.getUiBodyHeight();(C!==this.scrollY||d!==this.uiBodyHeight)&&(this.scrollY=C,this.uiBodyHeight=d,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;let C=this.scrollY/this.maxScrollY,d=C*this.pixelsToShave;(0,z._logIfDebug)(this.gos,`RowContainerHeightService - Div Stretch Offset = ${d} (${this.pixelsToShave} * ${C})`),this.setDivStretchOffset(d)}setUiContainerHeight(C){C!==this.uiContainerHeight&&(this.uiContainerHeight=C,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(C){let d=typeof C=="number"?Math.floor(C):null;this.divStretchOffset!==d&&(this.divStretchOffset=d,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(C){this.modelHeight=C,this.stretching=C!=null&&this.maxDivHeight>0&&C>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(C){return C-this.divStretchOffset}getUiBodyHeight(){let C=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return C.bottom-C.top}getScrollPositionForPixel(C){if(this.pixelsToShave<=0)return C;let d=C/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*d}}x.RowContainerHeightService=T},557:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.isRowInMap=x.mapRowNodes=x.RowRenderer=void 0;let A=p(8731),E=p(7274),z=p(1502),T=p(4422),b=p(7764),C=p(814),d=p(7632);class s extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{let S=()=>{this.getAllCellCtrls().forEach(O=>O.onCellSelectionChanged())},w=()=>{this.getAllCellCtrls().forEach(O=>O.updateRangeBordersIfRangeCount())},M=()=>{this.eventSvc.addEventListener("cellSelectionChanged",S),this.eventSvc.addEventListener("columnMoved",w),this.eventSvc.addEventListener("columnPinned",w),this.eventSvc.addEventListener("columnVisible",w)},P=()=>{this.eventSvc.removeEventListener("cellSelectionChanged",S),this.eventSvc.removeEventListener("columnMoved",w),this.eventSvc.removeEventListener("columnPinned",w),this.eventSvc.removeEventListener("columnVisible",w)};this.addDestroyFunc(()=>P()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{(0,E._isCellSelectionEnabled)(this.gos)?M():P()}),(0,E._isCellSelectionEnabled)(this.gos)&&M()}}wireBeans(S){this.pageBounds=S.pageBounds,this.colModel=S.colModel,this.pinnedRowModel=S.pinnedRowModel,this.rowModel=S.rowModel,this.focusSvc=S.focusSvc,this.rowContainerHeight=S.rowContainerHeight,this.ctrlsSvc=S.ctrlsSvc}postConstruct(){this.ctrlsSvc.whenReady(this,S=>{this.gridBodyCtrl=S.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",M=>this.onSuppressCellFocusChanged(M.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:M,previousValue:P})=>{(!P&&M||P&&!M)&&this.redrawRows()});let{stickyRowSvc:S,gos:w}=this.beans;if(S)this.stickyRowFeature=S.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{let M=this.gridBodyCtrl;M.setStickyTopHeight(0),M.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=(0,E._isDomLayout)(w,"print"),this.embedFullWidthRows=this.printLayout||w.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){let S=this.getKeepDetailRowsCount(),w=S!=null?S:3;this.cachedRowCtrls=new c(w)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){var S,w;return(w=(S=this.stickyRowFeature)==null?void 0:S.stickyTopRowCtrls)!=null?w:[]}getStickyBottomRowCtrls(){var S,w;return(w=(S=this.stickyRowFeature)==null?void 0:S.stickyBottomRowCtrls)!=null?w:[]}updateAllRowCtrls(){var P,O;let S=Object.values(this.rowCtrlsByRowIndex),w=Object.values(this.zombieRowCtrls),M=(O=(P=this.cachedRowCtrls)==null?void 0:P.getEntries())!=null?O:[];w.length>0||M.length>0?this.allRowCtrls=[...S,...w,...M]:this.allRowCtrls=S}onCellFocusChanged(S){this.getAllCellCtrls().forEach(w=>w.onCellFocused(S)),this.getFullWidthRowCtrls().forEach(w=>w.onFullWidthRowFocused(S))}onSuppressCellFocusChanged(S){this.getAllCellCtrls().forEach(w=>w.onSuppressCellFocusChanged(S)),this.getFullWidthRowCtrls().forEach(w=>w.onSuppressCellFocusChanged(S))}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:S=>{this.onCellFocusChanged(S)},cellFocusCleared:()=>this.onCellFocusChanged(),flashCells:S=>{let{cellFlashSvc:w}=this.beans;w&&this.getAllCellCtrls().forEach(M=>w.onFlashCells(M,S))},columnHoverChanged:()=>{this.getAllCellCtrls().forEach(S=>S.onColumnHover())},displayedColumnsChanged:()=>{this.getAllCellCtrls().forEach(S=>S.onDisplayedColumnsChanged())},displayedColumnsWidthChanged:()=>{this.printLayout&&this.getAllCellCtrls().forEach(S=>S.onLeftChanged())}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){this.destroyFuncsForColumnListeners.forEach(S=>S()),this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners(),this.colModel.getCols().forEach(S=>{let w=Y=>{this.getAllCellCtrls().forEach(J=>{J.column===S&&Y(J)})},M=()=>{w(Y=>Y.onLeftChanged())},P=()=>{w(Y=>Y.onWidthChanged())},O=()=>{w(Y=>Y.onFirstRightPinnedChanged())},G=()=>{w(Y=>Y.onLastLeftPinnedChanged())},j=()=>{w(Y=>Y.onColDefChanged())};S.addEventListener("leftChanged",M),S.addEventListener("widthChanged",P),S.addEventListener("firstRightPinnedChanged",O),S.addEventListener("lastLeftPinnedChanged",G),S.addEventListener("colDefChanged",j),this.destroyFuncsForColumnListeners.push(()=>{S.removeEventListener("leftChanged",M),S.removeEventListener("widthChanged",P),S.removeEventListener("firstRightPinnedChanged",O),S.removeEventListener("lastLeftPinnedChanged",G),S.removeEventListener("colDefChanged",j)})})}onDomLayoutChanged(){let S=(0,E._isDomLayout)(this.gos,"print"),w=S||this.gos.get("embedFullWidthRows"),M=w!==this.embedFullWidthRows||this.printLayout!==S;this.printLayout=S,this.embedFullWidthRows=w,M&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;let S=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(S)}onPageLoaded(S){let w={recycleRows:S.keepRenderedRows,animate:S.animate,newData:S.newData,newPage:S.newPage,onlyBody:!0};this.redrawAfterModelUpdate(w)}getAllCellsNotSpanningForColumn(S){let w=[];return this.getAllRowCtrls().forEach(M=>{var O;let P=(O=M.getCellCtrl(S,!0))==null?void 0:O.eGui;P&&w.push(P)}),w}refreshFloatingRowComps(){this.refreshFloatingRows(this.topRowCtrls,"top"),this.refreshFloatingRows(this.bottomRowCtrls,"bottom")}refreshFloatingRows(S,w){var Y;let{pinnedRowModel:M,beans:P,printLayout:O}=this,G=Object.fromEntries(S.map(J=>[J.rowNode.id,J]));M==null||M.forEachPinnedRow(w,(J,ne)=>{let ce=S[ne];ce&&M.getPinnedRowById(ce.rowNode.id,w)===void 0&&(ce.destroyFirstPass(),ce.destroySecondPass()),J.id in G?(S[ne]=G[J.id],delete G[J.id]):S[ne]=new d.RowCtrl(J,P,!1,!1,O)});let j=(Y=w==="top"?M==null?void 0:M.getPinnedTopRowCount():M==null?void 0:M.getPinnedBottomRowCount())!=null?Y:0;S.length=j}onPinnedRowDataChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(S,w=!1){var M,P;if(S.sticky)(M=this.stickyRowFeature)==null||M.refreshStickyNode(S);else{if((P=this.cachedRowCtrls)!=null&&P.has(S))return void this.cachedRowCtrls.removeRow(S);{let O=G=>{let j=G[S.rowIndex];j&&j.rowNode===S&&(j.destroyFirstPass(),j.destroySecondPass(),G[S.rowIndex]=this.createRowCon(S,!1,!1))};switch(S.rowPinned){case"top":O(this.topRowCtrls);break;case"bottom":O(this.bottomRowCtrls);break;default:O(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}}w||this.dispatchDisplayedRowsChanged(!1)}redrawRows(S){if(S!=null)return S==null||S.forEach(w=>this.redrawRow(w,!0)),void this.dispatchDisplayedRowsChanged(!1);this.redrawAfterModelUpdate()}getCellToRestoreFocusToAfterRefresh(S){let w=S!=null&&S.suppressKeepFocus?null:this.focusSvc.getFocusCellToUseAfterRefresh();if(w==null)return null;let M=(0,E._getActiveDomElement)(this.beans),P=(0,E._getDomData)(this.gos,M,C.DOM_DATA_KEY_CELL_CTRL),O=(0,E._getDomData)(this.gos,M,d.DOM_DATA_KEY_ROW_CTRL);return P||O?w:null}redrawAfterModelUpdate(S={}){this.getLockOnRefresh();let w=this.getCellToRestoreFocusToAfterRefresh(S);this.updateContainerHeights(),this.scrollToTopIfNewData(S);let M=!S.domLayoutChanged&&!!S.recycleRows,P=S.animate&&(0,E._isAnimateRows)(this.gos),O=M?this.getRowsToRecycle():null;M||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();let{stickyRowFeature:G}=this;if(G){G.checkStickyRows();let j=G.extraTopHeight+G.extraBottomHeight;j&&this.updateContainerHeights(j)}this.recycleRows(O,P),this.gridBodyCtrl.updateRowCount(),S.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),w!=null&&this.restoreFocusedCell(w),this.releaseLockOnRefresh()}scrollToTopIfNewData(S){var P;let w=S.newData||S.newPage,M=this.gos.get("suppressScrollOnNewData");w&&!M&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),(P=this.stickyRowFeature)==null||P.resetOffsets())}updateContainerHeights(S=0){let{rowContainerHeight:w}=this;if(this.printLayout)return void w.setModelHeight(null);let M=this.pageBounds.getCurrentPageHeight();M===0&&(M=1),w.setModelHeight(M+S)}getLockOnRefresh(){var S,w;if(this.refreshInProgress)throw new Error((0,b._errMsg)(252));this.refreshInProgress=!0,(w=(S=this.beans.frameworkOverrides).getLockOnRefresh)==null||w.call(S)}releaseLockOnRefresh(){var S,w;this.refreshInProgress=!1,(w=(S=this.beans.frameworkOverrides).releaseLockOnRefresh)==null||w.call(S)}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(S){S&&this.focusSvc.restoreFocusedCell(S,()=>{this.onCellFocusChanged(this.gos.addGridCommonParams({rowIndex:S.rowIndex,column:S.column,rowPinned:S.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))})}getAllCellCtrls(){let S=[],w=this.getAllRowCtrls(),M=w.length;for(let P=0;P<M;P++){let O=w[P].getAllCellCtrls(),G=O.length;for(let j=0;j<G;j++)S.push(O[j])}return S}getAllRowCtrls(){let S=this.getStickyTopRowCtrls(),w=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...S,...w,...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(S,w,M){let P=this.rowCtrlsByRowIndex[w];P&&P.addEventListener(S,M)}refreshCells(S={}){let w={forceRefresh:S.force,newData:!1,suppressFlash:S.suppressFlash};for(let M of this.getCellCtrls(S.rowNodes,S.columns))M.refreshOrDestroyCell(w);this.refreshFullWidth(S.rowNodes)}refreshFullWidth(S){if(!S)return;let w=null;this.stickyRowFeature&&(w=this.getCellToRestoreFocusToAfterRefresh()||null);for(let M of this.getRowCtrls(S))M.isFullWidth()&&(M.refreshFullWidth()||this.redrawRow(M.rowNode,!0));this.dispatchDisplayedRowsChanged(!1),w&&this.restoreFocusedCell(w)}getRowCtrls(S){let w=h(S),M=this.getAllRowCtrls();return S&&w?M.filter(P=>g(P.rowNode,w)):M}getCellCtrls(S,w){let M;(0,T._exists)(w)&&(M={},w.forEach(O=>{let G=this.colModel.getCol(O);(0,T._exists)(G)&&(M[G.getId()]=!0)}));let P=[];return this.getRowCtrls(S).forEach(O=>{O.getAllCellCtrls().forEach(G=>{let j=G.column.getId();M&&!M[j]||P.push(G)})}),P}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(S=!1){var M;let w=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(w,S),(M=this.stickyRowFeature)==null||M.destroyStickyCtrls()}getRowsToRecycle(){let S=[];for(let[M,P]of Object.entries(this.rowCtrlsByRowIndex))P.rowNode.id==null&&S.push(M);this.removeRowCtrls(S);let w={};for(let M of Object.values(this.rowCtrlsByRowIndex))w[M.rowNode.id]=M;return this.rowCtrlsByRowIndex={},w}removeRowCtrls(S,w=!1){S.forEach(M=>{let P=this.rowCtrlsByRowIndex[M];P&&(P.destroyFirstPass(w),P.destroySecondPass()),delete this.rowCtrlsByRowIndex[M]})}onBodyScroll(S){S.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(S={}){var J;let{afterScroll:w}=S,M,P=this.stickyRowFeature;P&&(M=this.getCellToRestoreFocusToAfterRefresh()||void 0);let O=this.firstRenderedRow,G=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let j=!1;if(P){j=P.checkStickyRows();let ne=P.extraTopHeight+P.extraBottomHeight;ne&&this.updateContainerHeights(ne)}let Y=this.firstRenderedRow!==O||this.lastRenderedRow!==G;if((!w||j||Y)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,w),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(w&&!j),M!=null)){let ne=this.getCellToRestoreFocusToAfterRefresh();M!=null&&ne==null&&((J=this.beans.animationFrameSvc)==null||J.flushAllFrames(),this.restoreFocusedCell(M))}}removeRowCompsNotToDraw(S,w){let M={};S.forEach(O=>M[O]=!0);let P=Object.keys(this.rowCtrlsByRowIndex).filter(O=>!M[O]);this.removeRowCtrls(P,w)}calculateIndexesToDraw(S){let w=[];for(let O=this.firstRenderedRow;O<=this.lastRenderedRow;O++)w.push(O);let M=O=>{let G=O.rowNode.rowIndex;G!=null&&(G<this.firstRenderedRow||G>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(O)&&w.push(G)};for(let O of Object.values(this.rowCtrlsByRowIndex))M(O);if(S)for(let O of Object.values(S))M(O);w.sort((O,G)=>O-G);let P=[];for(let O=0;O<w.length;O++){let G=w[O],j=this.rowModel.getRow(G);j&&!j.sticky&&P.push(G)}return P}recycleRows(S,w=!1,M=!1){let P=this.calculateIndexesToDraw(S);(this.printLayout||M)&&(w=!1),this.removeRowCompsNotToDraw(P,!w);let O=[];if(P.forEach(G=>{let j=this.createOrUpdateRowCtrl(G,S,w,M);(0,T._exists)(j)&&O.push(j)}),S){let{animationFrameSvc:G}=this.beans;G&&M&&!this.gos.get("suppressAnimationFrame")&&!this.printLayout?G.addDestroyTask(()=>{this.destroyRowCtrls(S,w),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(S,w)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(S=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:S})}onDisplayedColumnsChanged(){let{visibleCols:S}=this.beans,w=S.isPinningLeft(),M=S.isPinningRight();(this.pinningLeft!==w||M!==this.pinningRight)&&(this.pinningLeft=w,this.pinningRight=M,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){let S=[];this.getFullWidthRowCtrls().forEach(w=>{let M=w.rowNode.rowIndex;S.push(M.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(S),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(S){let w=h(S);return this.getAllRowCtrls().filter(M=>{if(!M.isFullWidth())return!1;let P=M.rowNode;return!(w!=null&&!g(P,w))})}createOrUpdateRowCtrl(S,w,M,P){let O,G=this.rowCtrlsByRowIndex[S];if(G||(O=this.rowModel.getRow(S),(0,T._exists)(O)&&(0,T._exists)(w)&&w[O.id]&&O.alreadyRendered&&(G=w[O.id],w[O.id]=null)),!G){if(O||(O=this.rowModel.getRow(S)),!(0,T._exists)(O))return;G=this.createRowCon(O,M,P)}return O&&(O.alreadyRendered=!0),this.rowCtrlsByRowIndex[S]=G,G}destroyRowCtrls(S,w){let M=[];if(S){for(let P of Object.values(S))if(P)if(this.cachedRowCtrls&&P.isCacheable())this.cachedRowCtrls.addRow(P);else if(P.destroyFirstPass(!w),w){let O=P.instanceId;this.zombieRowCtrls[O]=P,M.push(()=>{P.destroySecondPass(),delete this.zombieRowCtrls[O]})}else P.destroySecondPass()}w&&(M.push(()=>{this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}),window.setTimeout(()=>M.forEach(P=>P()),400))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){return this.getRowBuffer()*(0,E._getRowHeightAsNumber)(this.beans)}workOutFirstAndLastRowsToRender(){let{rowContainerHeight:S,pageBounds:w,rowModel:M}=this,P,O;if(S.updateOffset(),M.isRowsToRender())if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),P=w.getFirstRow(),O=w.getLastRow();else{let ce=this.getRowBufferInPixels(),fe=this.ctrlsSvc.getScrollFeature(),xe=this.gos.get("suppressRowVirtualisation"),Le,_e,Fe=!1;do{let st=w.getPixelOffset(),{pageFirstPixel:St,pageLastPixel:Xe}=w.getCurrentPagePixelRange(),Ke=S.divStretchOffset,Ye=fe.getVScrollPosition(),Ze=Ye.top,Pe=Ye.bottom;xe?(Le=St+Ke,_e=Xe+Ke):(Le=Math.max(Ze+st-ce,St)+Ke,_e=Math.min(Pe+st+ce,Xe)+Ke),this.firstVisibleVPixel=Math.max(Ze+st,St)+Ke,this.lastVisibleVPixel=Math.min(Pe+st,Xe)+Ke,Fe=this.ensureAllRowsInRangeHaveHeightsCalculated(Le,_e)}while(Fe);let We=M.getRowIndexAtPixel(Le),it=M.getRowIndexAtPixel(_e),tt=w.getFirstRow(),ot=w.getLastRow();We<tt&&(We=tt),it>ot&&(it=ot),P=We,O=it}else P=0,O=-1;let G=(0,E._isDomLayout)(this.gos,"normal"),j=this.gos.get("suppressMaxRenderedRowRestriction"),Y=Math.max(this.getRowBuffer(),500);G&&!j&&O-P>Y&&(O=P+Y);let J=P!==this.firstRenderedRow,ne=O!==this.lastRenderedRow;(J||ne)&&(this.firstRenderedRow=P,this.lastRenderedRow=O,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:P,lastRow:O}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,window.requestAnimationFrame(()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(S,w){var Y,J;let M=(Y=this.pinnedRowModel)==null?void 0:Y.ensureRowHeightsValid(),P=(J=this.stickyRowFeature)==null?void 0:J.ensureRowHeightsValid(),{pageBounds:O,rowModel:G}=this,j=G.ensureRowHeightsValid(S,w,O.getFirstRow(),O.getLastRow());return(j||P)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),!!(P||j||M)&&(this.updateContainerHeights(),!0)}doNotUnVirtualiseRow(S){let M=S.rowNode,P=this.focusSvc.isRowNodeFocused(M),O=S.editing,G=M.detail;return(P||O||G)&&!!this.isRowPresent(M)||!1}isRowPresent(S){var w,M;return!!this.rowModel.isRowPresent(S)&&((M=(w=this.beans.pagination)==null?void 0:w.isRowPresent(S))!=null?M:!0)}createRowCon(S,w,M){var j,Y;let P=(Y=(j=this.cachedRowCtrls)==null?void 0:j.getRow(S))!=null?Y:null;if(P)return P;let O=this.gos.get("suppressAnimationFrame"),G=M&&!O&&!this.printLayout&&!!this.beans.animationFrameSvc;return new d.RowCtrl(S,this.beans,w,G,this.printLayout)}getRenderedNodes(){let S=this.rowCtrlsByRowIndex;return Object.values(S).map(w=>w.rowNode)}getRowByPosition(S){let w,{rowIndex:M}=S;switch(S.rowPinned){case"top":w=this.topRowCtrls[M];break;case"bottom":w=this.bottomRowCtrls[M];break;default:w=this.rowCtrlsByRowIndex[M],w||(w=this.getStickyTopRowCtrls().find(P=>P.rowNode.rowIndex===M)||null,w||(w=this.getStickyBottomRowCtrls().find(P=>P.rowNode.rowIndex===M)||null))}return w}isRangeInRenderedViewport(S,w){if(S==null||w==null)return!1;let M=S>this.lastRenderedRow;return!(w<this.firstRenderedRow)&&!M}}x.RowRenderer=s;class c{constructor(S){this.entriesMap={},this.entriesList=[],this.maxCount=S}addRow(S){if(this.entriesMap[S.rowNode.id]=S,this.entriesList.push(S),S.setCached(!0),this.entriesList.length>this.maxCount){let w=this.entriesList[0];w.destroyFirstPass(),w.destroySecondPass(),this.removeFromCache(w)}}getRow(S){if(S==null||S.id==null)return null;let w=this.entriesMap[S.id];return w?(this.removeFromCache(w),w.setCached(!1),w.rowNode!=S?null:w):null}has(S){return this.entriesMap[S.id]!=null}removeRow(S){let w=S.id,M=this.entriesMap[w];delete this.entriesMap[w],(0,z._removeFromArray)(this.entriesList,M)}removeFromCache(S){let w=S.rowNode.id;delete this.entriesMap[w],(0,z._removeFromArray)(this.entriesList,S)}getEntries(){return this.entriesList}}function h(f){if(!f)return;let S={top:{},bottom:{},normal:{}};return f.forEach(w=>{let M=w.id;switch(w.rowPinned){case"top":S.top[M]=w;break;case"bottom":S.bottom[M]=w;break;default:S.normal[M]=w}}),S}function g(f,S){let w=f.id;switch(f.rowPinned){case"top":return S.top[w]!=null;case"bottom":return S.bottom[w]!=null;default:return S.normal[w]!=null}}x.mapRowNodes=h,x.isRowInMap=g},3306:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.BaseSelectionService=void 0;let A=p(3146),E=p(8731),z=p(9888),T=p(7274),b=p(5230),C=p(5954),d=p(9666),s=p(8273);class c extends E.BeanStub{postConstruct(){let{gos:g,beans:f}=this;this.selectionCtx=new d.RowRangeSelectionContext(f.rowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{let S=(0,T._getIsRowSelectable)(g);S!==this.isRowSelectable&&(this.isRowSelectable=S,this.updateSelectable())}),this.isRowSelectable=(0,T._getIsRowSelectable)(g)}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new C.CheckboxSelectionComponent}createSelectAllFeature(g){return new s.SelectAllFeature(g)}isMultiSelect(){return(0,T._isMultiRowSelection)(this.gos)}onRowCtrlSelected(g,f,S){let w=!!g.rowNode.isSelected();g.forEachGui(S,M=>{M.rowComp.addOrRemoveCssClass("ag-row-selected",w);let P=M.element;(0,b._setAriaSelected)(P,w),P.contains((0,T._getActiveDomElement)(this.beans))&&f(M)})}announceAriaRowSelection(g){var w;if(this.isRowSelectionBlocked(g))return;let f=g.isSelected();if(f&&!(0,T._getEnableDeselection)(this.gos))return;let S=this.getLocaleTextFunc()(f?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${f?"deselect":"select"} this row`);(w=this.beans.ariaAnnounce)==null||w.announceValue(S,"rowSelection")}dispatchSelectionChanged(g){this.eventSvc.dispatchEvent({type:"selectionChanged",source:g})}isRowSelectionBlocked(g){return!g.selectable||!!g.rowPinned||!(0,T._isRowSelection)(this.gos)}updateRowSelectable(g,f){var w,M;let S=(M=(w=this.isRowSelectable)==null?void 0:w.call(this,g))!=null?M:!0;return this.setRowSelectable(g,S,f),S}setRowSelectable(g,f,S){if(g.selectable!==f){if(g.selectable=f,g.dispatchRowEvent("selectableChanged"),S)return;if((0,T._getGroupSelectsDescendants)(this.gos)){let w=this.calculateSelectedFromChildren(g);return void this.setNodesSelected({nodes:[g],newValue:w!=null?w:!1,source:"selectableChanged"})}g.isSelected()&&!g.selectable&&this.setNodesSelected({nodes:[g],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(g){var w;let f=!1,S=!1;if(!((w=g.childrenAfterGroup)!=null&&w.length))return g.selectable?g.__selected:null;for(let M=0;M<g.childrenAfterGroup.length;M++){let P=g.childrenAfterGroup[M],O=P.isSelected();if(!P.selectable){let G=this.calculateSelectedFromChildren(P);if(G===null)continue;O=G}switch(O){case!0:f=!0;break;case!1:S=!0;break;default:return}}return f&&S?void 0:!!f||!S&&(g.selectable?g.__selected:null)}selectRowNode(g,f,S,w="api"){let M=!g.selectable&&f,P=g.__selected===f;if(M||P)return!1;g.__selected=f,g.dispatchRowEvent("rowSelected");let O=g.sibling;return O&&O.footer&&O.__localEventService&&O.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent(He(ge({},(0,z._createGlobalRowEvent)(g,this.gos,"rowSelected")),{event:S||null,source:w})),!0}isCellCheckboxSelection(g,f){let S=this.gos.get("rowSelection");if(S&&typeof S!="string"){let w=(0,A.isColumnSelectionCol)(g)&&(0,T._getCheckboxes)(S);return g.isColumnFunc(f,w)}return g.isColumnFunc(f,g.colDef.checkboxSelection)}inferNodeSelections(g,f,S,w){let{gos:M,selectionCtx:P}=this,O=g.isSelected(),G=(0,T._getGroupSelectsDescendants)(M),j=(0,T._getEnableSelection)(M),Y=(0,T._getEnableDeselection)(M),J=w==="rowClicked";if(J&&G&&g.group||J&&!j&&!Y)return null;if(f&&S&&this.isMultiSelect()){let ne=P.getRoot();if(ne){if(ne.isSelected()){let ce=P.isInRange(g)?P.truncate(g):P.extend(g,G);return{deselect:ce.discard,select:ce.keep,reset:!1}}return{select:[],deselect:P.extend(g,G).keep,reset:!1}}return null}if(f&&this.isMultiSelect()){let ne=P.getRoot(),ce=P.isInRange(g)?P.truncate(g):P.extend(g,G);return{select:ce.keep,deselect:ce.discard,reset:!(!ne||ne.isSelected())}}if(S)return P.setRoot(g),J&&O&&!Y?null:{node:g,newValue:!O,clearSelection:!this.isMultiSelect()};{P.setRoot(g);let ne=(0,T._getEnableSelectionWithoutKeys)(M),ce=J&&(!ne||!j);if((0,T._getGroupSelection)(M)==="filteredDescendants"&&O===void 0&&(0,T._isClientSideRowModel)(M))return{node:g,newValue:!1,clearSelection:!this.isMultiSelect()||ce};if(J){let fe=O?!ne:j;return fe===O?null:{node:g,newValue:fe,clearSelection:!this.isMultiSelect()||ce}}return{node:g,newValue:!O,clearSelection:!this.isMultiSelect()||ce}}}}x.BaseSelectionService=c},5954:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CheckboxSelectionComponent=void 0;let A=p(7274),E=p(5230),z=p(2979),T=p(66),b=p(8020);class C extends b.Component{constructor(){super(`
            <div class="ag-selection-checkbox" role="presentation">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[T.AgCheckboxSelector]),this.eCheckbox=b.RefPlaceholder}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){let s=this.getLocaleTextFunc(),{rowNode:c,eCheckbox:h}=this,g=c.isSelected(),f=(0,E._getAriaCheckboxStateName)(s,g),[S,w]=c.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],M=s(S,w);h.setValue(g,!0),h.setInputAriaLabel(`${M} (${f})`)}init(s){if(this.rowNode=s.rowNode,this.column=s.column,this.overrides=s.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:z._stopPropagationForAgGrid,click:c=>{var h;(0,z._stopPropagationForAgGrid)(c),(h=this.beans.selectionSvc)==null||h.handleSelectionEvent(c,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:c,previousValue:h})=>{(typeof c=="object"?(0,A._getHideDisabledCheckboxes)(c):void 0)!==(typeof h=="object"?(0,A._getHideDisabledCheckboxes)(h):void 0)&&this.onSelectableChanged()}),(0,A._getIsRowSelectable)(this.gos)||typeof this.getIsVisible()=="function"){let c=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:c}),this.addManagedListeners(this.rowNode,{dataChanged:c,cellChanged:c}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){let{column:s,rowNode:c,overrides:h,gos:g}=this,f=c.selectable,S=this.getIsVisible();if(f)if(typeof S=="function"){let M=h==null?void 0:h.callbackParams;if(s){let P=s.createColumnFunctionCallbackParams(c);f=S(ge(ge({},M),P))}else f=S(He(ge({},M),{node:c,data:c.data}))}else f=S!=null?S:!1;let w=g.get("rowSelection");if(w&&typeof w!="string"?!(0,A._getHideDisabledCheckboxes)(w):s!=null&&s.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!f),this.setVisible(!0),void this.setDisplayed(!0);h!=null&&h.removeHidden?this.setDisplayed(f):this.setVisible(f)}getIsVisible(){var h,g;let s=this.overrides;if(s)return s.isVisible;let c=this.gos.get("rowSelection");return c&&typeof c!="string"?(0,A._getCheckboxes)(c):(g=(h=this.column)==null?void 0:h.getColDef())==null?void 0:g.checkboxSelection}}x.CheckboxSelectionComponent=C},9666:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.RowRangeSelectionContext=void 0,x.RowRangeSelectionContext=class{constructor(p){this.rootId=null,this.endId=null,this.cachedRange=[],this.rowModel=p}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(p){this.rootId=p.id,this.endId=null,this.cachedRange.length=0}setEndRange(p){this.endId=p.id,this.cachedRange.length=0}getRange(){var p;if(this.cachedRange.length===0){let A=this.getRoot(),E=this.getEnd();if(A==null||E==null)return this.cachedRange;this.cachedRange=(p=this.rowModel.getNodesInRangeForSelection(A,E))!=null?p:[]}return this.cachedRange}isInRange(p){return this.rootId!==null&&this.getRange().some(A=>A.id===p.id)}getRoot(){var p;return this.rootId&&(p=this.rowModel.getRowNode(this.rootId))!=null?p:null}getEnd(){var p;return this.endId&&(p=this.rowModel.getRowNode(this.endId))!=null?p:null}truncate(p){let A=this.getRange();if(A.length===0)return{keep:[],discard:[]};let E=A[0].id===this.rootId,z=A.findIndex(T=>T.id===p.id);if(z>-1){let T=A.slice(0,z),b=A.slice(z+1);return this.setEndRange(p),E?{keep:T,discard:b}:{keep:b,discard:T}}return{keep:A,discard:[]}}extend(p,A=!1){let E=this.getRoot();if(E==null){let T=this.getRange().slice();return A&&p.depthFirstSearch(b=>!b.group&&T.push(b)),T.push(p),this.setRoot(p),{keep:T,discard:[]}}let z=this.rowModel.getNodesInRangeForSelection(E,p);if(!z)return this.setRoot(p),{keep:[p],discard:[]};if(z.find(T=>T.id===this.endId))return this.setEndRange(p),{keep:this.getRange(),discard:[]};{let T=this.getRange().slice();return this.setEndRange(p),{keep:this.getRange(),discard:T}}}}},9770:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getSelectedRows=x.getSelectedNodes=x.deselectAllOnCurrentPage=x.selectAllOnCurrentPage=x.deselectAllFiltered=x.selectAllFiltered=x.deselectAll=x.selectAll=x.setNodesSelected=void 0;let A=p(7764);x.setNodesSelected=function(E,z){var s;if(!z.nodes.every(c=>c.rowPinned?((0,A._warn)(59),!1):c.id!==void 0||((0,A._warn)(60),!1)))return;let{nodes:T,source:b,newValue:C}=z,d=T;(s=E.selectionSvc)==null||s.setNodesSelected({nodes:d,source:b!=null?b:"api",newValue:C})},x.selectAll=function(E,z,T="apiSelectAll"){var b;(b=E.selectionSvc)==null||b.selectAllRowNodes({source:T,selectAll:z})},x.deselectAll=function(E,z,T="apiSelectAll"){var b;(b=E.selectionSvc)==null||b.deselectAllRowNodes({source:T,selectAll:z})},x.selectAllFiltered=function(E,z="apiSelectAllFiltered"){var T;(T=E.selectionSvc)==null||T.selectAllRowNodes({source:z,selectAll:"filtered"})},x.deselectAllFiltered=function(E,z="apiSelectAllFiltered"){var T;(T=E.selectionSvc)==null||T.deselectAllRowNodes({source:z,selectAll:"filtered"})},x.selectAllOnCurrentPage=function(E,z="apiSelectAllCurrentPage"){var T;(T=E.selectionSvc)==null||T.selectAllRowNodes({source:z,selectAll:"currentPage"})},x.deselectAllOnCurrentPage=function(E,z="apiSelectAllCurrentPage"){var T;(T=E.selectionSvc)==null||T.deselectAllRowNodes({source:z,selectAll:"currentPage"})},x.getSelectedNodes=function(E){var z,T;return(T=(z=E.selectionSvc)==null?void 0:z.getSelectedNodes())!=null?T:[]},x.getSelectedRows=function(E){var z,T;return(T=(z=E.selectionSvc)==null?void 0:z.getSelectedRows())!=null?T:[]}},3352:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowSelectionModule=x.SharedRowSelectionModule=void 0;let A=p(5626),E=p(7205),z=p(9770),T=p(6603);x.SharedRowSelectionModule={moduleName:"SharedRowSelection",version:E.VERSION,beans:[A.SelectionColService],apiFunctions:{setNodesSelected:z.setNodesSelected,selectAll:z.selectAll,deselectAll:z.deselectAll,selectAllFiltered:z.selectAllFiltered,deselectAllFiltered:z.deselectAllFiltered,selectAllOnCurrentPage:z.selectAllOnCurrentPage,deselectAllOnCurrentPage:z.deselectAllOnCurrentPage,getSelectedNodes:z.getSelectedNodes,getSelectedRows:z.getSelectedRows}},x.RowSelectionModule={moduleName:"RowSelection",version:E.VERSION,rowModels:["clientSide","infinite","viewport"],beans:[T.SelectionService],dependsOn:[x.SharedRowSelectionModule]}},8273:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SelectAllFeature=void 0;let A=p(3146),E=p(8731),z=p(7274),T=p(5230),b=p(7764),C=p(66);class d extends E.BeanStub{constructor(c){super(),this.column=c,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(c){let h=this.cbSelectAll;h.isDisplayed()&&!h.getGui().contains((0,z._getActiveDomElement)(this.beans))&&(c.preventDefault(),h.setValue(!h.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(c){this.headerCellCtrl=c;let h=this.createManagedBean(new C.AgCheckbox);this.cbSelectAll=h,h.addCssClass("ag-header-select-all"),(0,T._setAriaRole)(h.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideSelectAll.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:this.onSelectionChanged.bind(this),paginationChanged:this.onSelectionChanged.bind(this),modelUpdated:this.onModelChanged.bind(this)}),this.addManagedListeners(h,{fieldValueChanged:this.onCbSelectAll.bind(this)}),h.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(){this.isAlive()&&this.showOrHideSelectAll()}showOrHideSelectAll(){let c=this.isCheckboxSelection();this.cbSelectAllVisible=c,this.cbSelectAll.setDisplayed(c),c&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()}onModelChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}onSelectionChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}updateStateOfCheckbox(){if(this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;let c=this.getSelectAllMode(),h=this.beans.selectionSvc,g=this.cbSelectAll,f=h.getSelectAllState(c);g.setValue(f);let S=h.hasNodesToSelect(c);g.setDisabled(!S),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(){let c=this.getLocaleTextFunc(),{headerCellCtrl:h,cbSelectAll:g,cbSelectAllVisible:f}=this,S=g.getValue()?c("ariaChecked","checked"):c("ariaUnchecked","unchecked"),w=c("ariaRowSelectAll","Press Space to toggle all rows selection");h.setAriaDescriptionProperty("selectAll",f?`${w} (${S})`:null),g.setInputAriaLabel(c("ariaHeaderSelection","Column with Header Selection")),h.announceAriaDescription()}checkSelectionType(c){return!!(0,z._isMultiRowSelection)(this.gos)||((0,b._warn)(128,{feature:c}),!1)}checkRightRowModelType(c){let{gos:h,rowModel:g}=this.beans;return!(!(0,z._isClientSideRowModel)(h)&&!(0,z._isServerSideRowModel)(h))||((0,b._warn)(129,{feature:c,rowModel:g.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;let c=this.cbSelectAll.getValue(),h=this.getSelectAllMode(),g="uiSelectAll";h==="currentPage"?g="uiSelectAllCurrentPage":h==="filtered"&&(g="uiSelectAllFiltered");let f={source:g,selectAll:h},S=this.beans.selectionSvc;c?S.selectAllRowNodes(f):S.deselectAllRowNodes(f)}isCheckboxSelection(){var G;let{column:c,gos:h,beans:g}=this,f=h.get("rowSelection"),S=c.getColDef(),{headerCheckboxSelection:w}=S,M=!1,P=typeof f=="object";if(P){let j=(0,A.isColumnSelectionCol)(c),Y=(0,A.isColumnGroupAutoCol)(c);((0,z._getCheckboxLocation)(f)==="autoGroupColumn"&&Y||j&&((G=g.selectionColSvc)!=null&&G.isSelectionColumnEnabled()))&&(M=(0,z._getHeaderCheckbox)(f))}else M=typeof w=="function"?w(h.addGridCommonParams({column:c,colDef:S})):!!w;let O=P?"headerCheckbox":"headerCheckboxSelection";return M&&this.checkRightRowModelType(O)&&this.checkSelectionType(O)}getSelectAllMode(){let c=(0,z._getSelectAll)(this.gos,!1);if(c)return c;let{headerCheckboxSelectionCurrentPageOnly:h,headerCheckboxSelectionFilteredOnly:g}=this.column.getColDef();return h?"currentPage":g?"filtered":"all"}}x.SelectAllFeature=d},6603:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionService=void 0;let A=p(3373),E=p(7274),z=p(6800),T=p(7764),b=p(3306);class C extends b.BaseSelectionService{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map}postConstruct(){super.postConstruct();let{gos:s}=this;this.mode=(0,E._getRowSelectionMode)(s),this.groupSelectsDescendants=(0,E._getGroupSelectsDescendants)(s),this.groupSelectsFiltered=(0,E._getGroupSelection)(s)==="filteredDescendants",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{let c=(0,E._getGroupSelectsDescendants)(s),h=(0,E._getRowSelectionMode)(s),g=(0,E._getGroupSelection)(s)==="filteredDescendants";c===this.groupSelectsDescendants&&g===this.groupSelectsFiltered&&h===this.mode||(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=c,this.groupSelectsFiltered=g,this.mode=h)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(s,c,h){if(this.isRowSelectionBlocked(c))return 0;let g=this.inferNodeSelections(c,s.shiftKey,s.metaKey||s.ctrlKey,h);return g==null?0:"select"in g?(g.reset?this.resetNodes():this.selectRange(g.deselect,!1,h),this.selectRange(g.select,!0,h)):this.setNodesSelected({nodes:[g.node],newValue:g.newValue,clearSelection:g.clearSelection,event:s,source:h})}setNodesSelected({newValue:s,clearSelection:c,suppressFinishActions:h,nodes:g,event:f,source:S}){var M;if(!(0,E._isRowSelection)(this.gos)&&s)return(0,T._warn)(132),0;if(g.length===0)return 0;if(g.length>1&&!this.isMultiSelect())return(0,T._warn)(130),0;let w=0;for(let P=0;P<g.length;P++){let O=g[P],G=O.footer?O.sibling:O,j=this.groupSelectsFiltered&&G.group;G.rowPinned?(0,T._warn)(59):G.id!==void 0?(j||this.selectRowNode(G,s,f,S)&&w++,this.groupSelectsDescendants&&((M=G.childrenAfterGroup)!=null&&M.length)&&(w+=this.selectChildren(G,s,S))):(0,T._warn)(60)}return h||(s&&(c||!this.isMultiSelect())&&(w+=this.clearOtherNodes(g[0],S)),w>0&&(this.updateGroupsFromChildrenSelections(S),this.dispatchSelectionChanged(S))),w}selectRange(s,c,h){let g=0;return s.forEach(f=>{f.group&&this.groupSelectsDescendants||this.selectRowNode(f,c,void 0,h)&&g++}),g>0&&(this.updateGroupsFromChildrenSelections(h),this.dispatchSelectionChanged(h)),g}selectChildren(s,c,h){let g=this.groupSelectsFiltered?s.childrenAfterAggFilter:s.childrenAfterGroup;return g?this.setNodesSelected({newValue:c,clearSelection:!1,suppressFinishActions:!0,source:h,nodes:g}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){let s=[];return this.selectedNodes.forEach(c=>s.push(c.data)),s}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(s){let c=new Map;this.selectedNodes.forEach((h,g)=>{s(h)&&c.set(g,h)}),this.selectedNodes=c}updateGroupsFromChildrenSelections(s,c){if(!this.groupSelectsDescendants)return!1;let{gos:h,rowModel:g}=this.beans;if(!(0,E._isClientSideRowModel)(h,g))return!1;let f=g.rootNode;if(!f)return!1;c||((c=new z.ChangedPath(!0,f)).active=!1);let S=!1;return c.forEachChangedNodeDepthFirst(w=>{if(w!==f){let M=this.calculateSelectedFromChildren(w);S=this.selectRowNode(w,M!==null&&M,void 0,s)||S}}),S}clearOtherNodes(s,c){let h=new Map,g=0;return this.selectedNodes.forEach(f=>{if(f&&f.id!==s.id){let S=this.selectedNodes.get(f.id);g+=this.setNodesSelected({nodes:[S],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:c}),this.groupSelectsDescendants&&f.parent&&h.set(f.parent.id,f.parent)}}),h.forEach(f=>{let S=this.calculateSelectedFromChildren(f);this.selectRowNode(f,S!==null&&S,void 0,c)}),g}onRowSelected(s){let c=s.node;this.groupSelectsDescendants&&c.group||(c.isSelected()?this.selectedNodes.set(c.id,c):this.selectedNodes.delete(c.id))}syncInRowNode(s,c){this.syncInOldRowNode(s,c),this.syncInNewRowNode(s)}createDaemonNode(s){if(!s.id)return;let c=new A.RowNode(this.beans);return c.id=s.id,c.data=s.data,c.__daemon=!0,c.__selected=s.__selected,c.level=s.level,c}syncInOldRowNode(s,c){c&&s.id!==c.id&&this.selectedNodes.get(c.id)==s&&this.selectedNodes.set(c.id,c)}syncInNewRowNode(s){this.selectedNodes.has(s.id)?(s.__selected=!0,this.selectedNodes.set(s.id,s)):s.__selected=!1}reset(s){let c=this.getSelectionCount();this.resetNodes(),c&&this.dispatchSelectionChanged(s)}resetNodes(){this.selectedNodes.forEach(s=>{this.selectRowNode(s,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){let{gos:s,rowModel:c}=this.beans;if(!(0,E._isClientSideRowModel)(s,c))return;let h=c.getTopLevelNodes();if(h===null)return;let g=[];return function f(S){for(let w=0,M=S.length;w<M;w++){let P=S[w];P.isSelected()?g.push(P):P.group&&P.childrenAfterGroup&&f(P.childrenAfterGroup)}}(h),g}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes(s){let c=S=>this.selectRowNode(S.footer?S.sibling:S,!1,void 0,g),h=(0,E._isClientSideRowModel)(this.gos),{source:g,selectAll:f}=s;if(f==="currentPage"||f==="filtered"){if(!h)return void(0,T._error)(102);this.getNodesToSelect(f).forEach(c)}else this.selectedNodes.forEach(c),this.reset(g);h&&this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections(g),this.dispatchSelectionChanged(g)}getSelectedCounts(s){let c=0,h=0;return this.getNodesToSelect(s).forEach(g=>{this.groupSelectsDescendants&&g.group||(g.isSelected()?c++:g.selectable&&h++)}),{selectedCount:c,notSelectedCount:h}}getSelectAllState(s){let{selectedCount:c,notSelectedCount:h}=this.getSelectedCounts(s);return(c!==0||h!==0)&&(c>0&&h>0?null:c>0)}hasNodesToSelect(s){return this.getNodesToSelect(s).filter(c=>c.selectable).length>0}getNodesToSelect(s){if(!this.canSelectAll())return[];let c=[];if(s==="currentPage")return this.forEachNodeOnPage(g=>{if(g.group)if(g.expanded||g.footer)this.groupSelectsDescendants||c.push(g);else{let f=S=>{var w;c.push(S),(w=S.childrenAfterFilter)!=null&&w.length&&S.childrenAfterFilter.forEach(f)};f(g)}else c.push(g)}),c;let h=this.beans.rowModel;return s==="filtered"?(h.forEachNodeAfterFilter(g=>{c.push(g)}),c):(h.forEachNode(g=>{c.push(g)}),c)}forEachNodeOnPage(s){let{pageBounds:c,rowModel:h}=this.beans,g=c.getFirstRow(),f=c.getLastRow();for(let S=g;S<=f;S++){let w=h.getRow(S);w&&s(w)}}selectAllRowNodes(s){let{gos:c}=this;if(!(0,E._isRowSelection)(c))return void(0,T._warn)(132);if((0,E._isUsingNewRowSelectionAPI)(c)&&!(0,E._isMultiRowSelection)(c))return void(0,T._warn)(130);if(!this.canSelectAll())return;let{source:h,selectAll:g}=s;this.getNodesToSelect(g).forEach(f=>{this.selectRowNode(f.footer?f.sibling:f,!0,void 0,h)}),(0,E._isClientSideRowModel)(c)&&this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections(h),this.dispatchSelectionChanged(h)}getSelectionState(){let s=[];return this.selectedNodes.forEach(c=>{c!=null&&c.id&&s.push(c.id)}),s.length?s:null}setSelectionState(s,c){if(!Array.isArray(s))return void(0,T._error)(103);let h=new Set(s),g=[];this.beans.rowModel.forEachNode(f=>{h.has(f.id)&&g.push(f)}),this.setNodesSelected({newValue:!0,nodes:g,source:c})}canSelectAll(){let{gos:s,rowModel:c}=this.beans;return!!(0,E._isClientSideRowModel)(s)||((0,T._error)(100,{rowModelType:c.getType()}),!1)}updateSelectable(s){var P;let{gos:c,rowModel:h}=this.beans;if(!(0,E._isRowSelection)(c))return;let g="selectableChanged",f=s!==void 0,S=(0,E._isClientSideRowModel)(c)&&this.groupSelectsDescendants,w=[],M=O=>{var G,j;if(!(f&&!O.group)){if(S&&O.group){let Y=(j=(G=O.childrenAfterGroup)==null?void 0:G.some(J=>J.selectable))!=null?j:!1;return void this.setRowSelectable(O,Y,!0)}!this.updateRowSelectable(O,!0)&&O.isSelected()&&w.push(O)}};if(S){if(s===void 0){let O=h.rootNode;s=O?new z.ChangedPath(!1,O):void 0}s==null||s.forEachChangedNodeDepthFirst(M,!f,!f)}else h.forEachNode(M);w.length&&this.setNodesSelected({nodes:w,newValue:!1,source:g}),!f&&S&&((P=this.updateGroupsFromChildrenSelections)==null||P.call(this,g))}updateSelectableAfterGrouping(s){var c;this.updateSelectable(s),this.groupSelectsDescendants&&((c=this.updateGroupsFromChildrenSelections)!=null&&c.call(this,"rowGroupChanged",s))&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:"rowGroupChanged"})}}x.SelectionService=C},3341:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowNodeSorter=void 0;let A=p(8731),E=p(7274),z=p(4422);class T extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowNodeSorter"}postConstruct(){let{gos:C}=this;this.isAccentedSort=C.get("accentedSort"),this.primaryColumnsSortGroups=(0,E._isColumnsSortingCoupledToGroup)(C),this.addManagedPropertyListener("accentedSort",d=>this.isAccentedSort=d.currentValue),this.addManagedPropertyListener("autoGroupColumnDef",()=>this.primaryColumnsSortGroups=(0,E._isColumnsSortingCoupledToGroup)(C))}doFullSort(C,d){let s=C.map((c,h)=>({currentPos:h,rowNode:c}));return s.sort(this.compareRowNodes.bind(this,d)),s.map(c=>c.rowNode)}compareRowNodes(C,d,s){let c=d.rowNode,h=s.rowNode;for(let g=0,f=C.length;g<f;g++){let S=C[g],w=S.sort==="desc",M=this.getValue(c,S.column),P=this.getValue(h,S.column),O,G=this.getComparator(S,c);if(O=G?G(M,P,c,h,w):(0,z._defaultComparator)(M,P,this.isAccentedSort),!isNaN(O)&&O!==0)return S.sort==="asc"?O:-1*O}return d.currentPos-s.currentPos}getComparator(C,d){let s=C.column,c=s.getColDef().comparator;if(c!=null)return c;if(!s.getColDef().showRowGroup)return;let h=!d.group&&s.getColDef().field;if(!h)return;let g=this.beans.colModel.getColDefCol(h);return g?g.getColDef().comparator:void 0}getValue(C,d){var f,S;let{valueSvc:s,colModel:c,showRowGroupCols:h,gos:g}=this.beans;if(!this.primaryColumnsSortGroups)return s.getValue(d,C,!1);if(C.rowGroupColumn===d){if((0,E._isGroupUseEntireRow)(g,c.isPivotActive())){let M=(f=C.allLeafChildren)==null?void 0:f[0];return M?s.getValue(d,M,!1):void 0}let w=h==null?void 0:h.getShowRowGroupCol(d.getId());return w?(S=C.groupData)==null?void 0:S[w.getId()]:void 0}return C.group&&d.getColDef().showRowGroup?void 0:s.getValue(d,C,!1)}}x.RowNodeSorter=T},7430:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.onSortChanged=void 0,x.onSortChanged=function(p){var A;(A=p.sortSvc)==null||A.onSortChanged("api")}},7388:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SortIndicatorSelector=x.SortIndicatorComp=void 0;let A=p(7274),E=p(3507),z=p(9970),T=p(8020);function b(s,c){return`<span data-ref="eSort${s}" class="ag-sort-indicator-icon ag-sort-${c} ag-hidden" aria-hidden="true"></span>`}let C=`<span class="ag-sort-indicator-container">
        ${b("Order","order")}
        ${b("Asc","ascending-icon")}
        ${b("Desc","descending-icon")}
        ${b("Mixed","mixed-icon")}
        ${b("None","none-icon")}
    </span>`;class d extends T.Component{constructor(c){super(),this.eSortOrder=T.RefPlaceholder,this.eSortAsc=T.RefPlaceholder,this.eSortDesc=T.RefPlaceholder,this.eSortMixed=T.RefPlaceholder,this.eSortNone=T.RefPlaceholder,c||this.setTemplate(C)}attachCustomElements(c,h,g,f,S){this.eSortOrder=c,this.eSortAsc=h,this.eSortDesc=g,this.eSortMixed=f,this.eSortNone=S}setupSort(c,h=!1){if(this.column=c,this.suppressOrder=h,this.setupMultiSortIndicator(),!c.isSortable()&&!c.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,c),this.addInIcon("sortDescending",this.eSortDesc,c),this.addInIcon("sortUnSort",this.eSortNone,c);let g=this.updateIcons.bind(this),f=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",g),this.addManagedEventListeners({newColumnsLoaded:g,sortChanged:f,columnRowGroupChanged:f}),this.onSortChanged()}addInIcon(c,h,g){if(h==null)return;let f=(0,z._createIconNoSpan)(c,this.beans,g);f&&h.appendChild(f)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){let{eSortAsc:c,eSortDesc:h,eSortNone:g,column:f,gos:S,beans:w}=this,M=w.sortSvc.getDisplaySortForColumn(f);if(c){let P=M==="asc";(0,E._setDisplayed)(c,P,{skipAriaHidden:!0})}if(h){let P=M==="desc";(0,E._setDisplayed)(h,P,{skipAriaHidden:!0})}if(g){let P=!f.getColDef().unSortIcon&&!S.get("unSortIcon"),O=M==null;(0,E._setDisplayed)(g,!P&&O,{skipAriaHidden:!0})}}setupMultiSortIndicator(){let{eSortMixed:c,column:h,gos:g}=this;this.addInIcon("sortUnSort",c,h);let f=h.getColDef().showRowGroup;(0,A._isColumnsSortingCoupledToGroup)(g)&&f&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){let{eSortMixed:c,beans:h,column:g}=this;if(c){let f=h.sortSvc.getDisplaySortForColumn(g)==="mixed";(0,E._setDisplayed)(c,f,{skipAriaHidden:!0})}}updateSortOrder(){var P;let{eSortOrder:c,column:h,beans:{sortSvc:g}}=this;if(!c)return;let f=g.getColumnsWithSortingOrdered(),S=(P=g.getDisplaySortIndexForColumn(h))!=null?P:-1,w=f.some(O=>{var G;return(G=g.getDisplaySortIndexForColumn(O))!=null?G:!1}),M=S>=0&&w;(0,E._setDisplayed)(c,M,{skipAriaHidden:!0}),S>=0?c.textContent=(S+1).toString():(0,E._clearElement)(c)}}x.SortIndicatorComp=d,x.SortIndicatorSelector={selector:"AG-SORT-INDICATOR",component:d}},6620:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SortModule=void 0;let A=p(7205),E=p(3341),z=p(7430),T=p(7388),b=p(8125);x.SortModule={moduleName:"Sort",version:A.VERSION,beans:[b.SortService,E.RowNodeSorter],apiFunctions:{onSortChanged:z.onSortChanged},userComponents:{agSortIndicator:T.SortIndicatorComp},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"}}},8125:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SortService=x.DEFAULT_SORTING_ORDER=void 0;let A=p(8731),E=p(7274),z=p(7388);x.DEFAULT_SORTING_ORDER=["asc","desc",null];class T extends A.BeanStub{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(C,d,s){let c=this.getNextSortDirection(C);this.setSortForColumn(C,c,d,s)}progressSortFromEvent(C,d){let s=this.gos.get("multiSortKey")==="ctrl"?d.ctrlKey||d.metaKey:d.shiftKey;this.progressSort(C,s,"uiColumnSorted")}setSortForColumn(C,d,s,c){var w;d!=="asc"&&d!=="desc"&&(d=null);let{gos:h,showRowGroupCols:g}=this.beans,f=[C];if((0,E._isColumnsSortingCoupledToGroup)(h)&&C.getColDef().showRowGroup){let M=(w=g==null?void 0:g.getSourceColumnsForGroupColumn)==null?void 0:w.call(g,C),P=M==null?void 0:M.filter(O=>O.isSortable());P&&(f=[C,...P])}f.forEach(M=>this.setColSort(M,d,c));let S=[];if(!((s||h.get("alwaysMultiSort"))&&!h.get("suppressMultiSort"))){let M=this.clearSortBarTheseColumns(f,c);S.push(...M)}this.updateSortIndex(C),S.push(...f),this.dispatchSortChangedEvents(c,S)}updateSortIndex(C){let{gos:d,colModel:s,showRowGroupCols:c}=this.beans,h=(0,E._isColumnsSortingCoupledToGroup)(d),g=c==null?void 0:c.getShowRowGroupCol(C.getId()),f=h&&g||C,S=this.getColumnsWithSortingOrdered();s.getAllCols().forEach(M=>this.setColSortIndex(M,null));let w=S.filter(M=>(!h||!M.getColDef().showRowGroup)&&M!==f);(f.getSort()?[...w,f]:w).forEach((M,P)=>this.setColSortIndex(M,P))}onSortChanged(C,d){this.dispatchSortChangedEvents(C,d)}isSortActive(){let C=this.beans.colModel.getAllCols().filter(d=>!!d.getSort());return C&&C.length>0}dispatchSortChangedEvents(C,d){let s={type:"sortChanged",source:C};d&&(s.columns=d),this.eventSvc.dispatchEvent(s)}clearSortBarTheseColumns(C,d){let s=[];return this.beans.colModel.getAllCols().forEach(c=>{C.includes(c)||(c.getSort()&&s.push(c),this.setColSort(c,void 0,d))}),s}getNextSortDirection(C){var g,f;let d=(f=(g=C.getColDef().sortingOrder)!=null?g:this.gos.get("sortingOrder"))!=null?f:x.DEFAULT_SORTING_ORDER,s=d.indexOf(C.getSort()),c=s<0,h=s==d.length-1;return c||h?d[0]:d[s+1]}getIndexedSortMap(){var M;let{gos:C,colModel:d,showRowGroupCols:s,rowGroupColsSvc:c}=this.beans,h=d.getAllCols().filter(P=>!!P.getSort());if(d.isPivotMode()){let P=(0,E._isColumnsSortingCoupledToGroup)(C);h=h.filter(O=>{let G=!!O.getAggFunc(),j=!O.isPrimary(),Y=P?s==null?void 0:s.getShowRowGroupCol(O.getId()):O.getColDef().showRowGroup;return G||j||Y})}let g=(M=c==null?void 0:c.columns.filter(P=>!!P.getSort()))!=null?M:[],f={};h.forEach((P,O)=>f[P.getId()]=O),h.sort((P,O)=>{let G=P.getSortIndex(),j=O.getSortIndex();return G!=null&&j!=null?G-j:G==null&&j==null?f[P.getId()]>f[O.getId()]?1:-1:j==null?-1:1});let S=(0,E._isColumnsSortingCoupledToGroup)(C)&&!!g.length;S&&(h=[...new Set(h.map(P=>{var O;return(O=s==null?void 0:s.getShowRowGroupCol(P.getId()))!=null?O:P}))]);let w=new Map;return h.forEach((P,O)=>w.set(P,O)),S&&g.forEach(P=>{let O=s.getShowRowGroupCol(P.getId());w.set(P,w.get(O))}),w}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([C,d],[s,c])=>d-c).map(([C])=>C)}getSortModel(){return this.getColumnsWithSortingOrdered().filter(C=>C.getSort()).map(C=>({sort:C.getSort(),colId:C.getId()}))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter(C=>C.getSort()).map(C=>({sort:C.getSort(),column:C}))}canColumnDisplayMixedSort(C){let d=(0,E._isColumnsSortingCoupledToGroup)(this.gos),s=!!C.getColDef().showRowGroup;return d&&s}getDisplaySortForColumn(C){var h;let d=(h=this.beans.showRowGroupCols)==null?void 0:h.getSourceColumnsForGroupColumn(C);if(!this.canColumnDisplayMixedSort(C)||!(d!=null&&d.length))return C.getSort();let s=C.getColDef().field!=null||C.getColDef().valueGetter?[C,...d]:d,c=s[0].getSort();return s.every(g=>g.getSort()==c)?c:"mixed"}getDisplaySortIndexForColumn(C){return this.getIndexedSortMap().get(C)}setupHeader(C,d,s){let c=0;C.addManagedListeners(d,{movingChanged:()=>{c=new Date().getTime()}}),s&&C.addManagedElementListeners(s,{click:g=>{let f=d.isMoving(),S=new Date().getTime();f||S-c<50||this.progressSortFromEvent(d,g)}});let h=()=>{var f;let g=d.getSort();if(C.addOrRemoveCssClass("ag-header-cell-sorted-asc",g==="asc"),C.addOrRemoveCssClass("ag-header-cell-sorted-desc",g==="desc"),C.addOrRemoveCssClass("ag-header-cell-sorted-none",!g),d.getColDef().showRowGroup){let S=(f=this.beans.showRowGroupCols)==null?void 0:f.getSourceColumnsForGroupColumn(d),w=S==null?void 0:S.every(P=>d.getSort()==P.getSort()),M=!w;C.addOrRemoveCssClass("ag-header-cell-sorted-mixed",M)}};C.addManagedEventListeners({sortChanged:h,columnRowGroupChanged:h})}initCol(C){let{sort:d,initialSort:s,sortIndex:c,initialSortIndex:h}=C.colDef;d!==void 0?d!=="asc"&&d!=="desc"||(C.sort=d):s!=="asc"&&s!=="desc"||(C.sort=s),c!==void 0?c!==null&&(C.sortIndex=c):h!==null&&(C.sortIndex=h)}updateColSort(C,d,s){d!==void 0&&(d==="desc"||d==="asc"?this.setColSort(C,d,s):this.setColSort(C,void 0,s))}setColSort(C,d,s){C.sort!==d&&(C.sort=d,C.dispatchColEvent("sortChanged",s)),C.dispatchStateUpdatedEvent("sort")}setColSortIndex(C,d){C.sortIndex=d,C.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(C){return new z.SortIndicatorComp(C)}getSortIndicatorSelector(){return z.SortIndicatorSelector}}x.SortService=T},2760:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellCustomStyleFeature=void 0;let A=p(8731),E=p(8729);class z extends A.BeanStub{constructor(b,C){super(),this.cellCtrl=b,this.staticClasses=[],this.beans=C,this.column=b.column}setComp(b){this.cellComp=b,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){let{column:b,cellComp:C}=this,d=b.colDef,s=d.cellClassRules,c=this.getCellClassParams(b,d);(0,E.processClassRules)(this.beans.expressionSvc,s===this.cellClassRules?void 0:this.cellClassRules,s,c,h=>C.addOrRemoveCssClass(h,!0),h=>C.addOrRemoveCssClass(h,!1)),this.cellClassRules=s}applyUserStyles(){let b=this.column,C=b.colDef,d=C.cellStyle;if(!d)return;let s;typeof d=="function"?s=d(this.getCellClassParams(b,C)):s=d,s&&this.cellComp.setUserStyles(s)}applyClassesFromColDef(){let{column:b,cellComp:C}=this,d=b.colDef,s=this.getCellClassParams(b,d);this.staticClasses.forEach(h=>C.addOrRemoveCssClass(h,!1));let c=this.beans.cellStyles.getStaticCellClasses(d,s);this.staticClasses=c,c.forEach(h=>C.addOrRemoveCssClass(h,!0))}getCellClassParams(b,C){let{value:d,rowNode:s}=this.cellCtrl;return this.beans.gos.addGridCommonParams({value:d,data:s.data,node:s,colDef:C,column:b,rowIndex:s.rowIndex})}}x.CellCustomStyleFeature=z},9330:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellStyleService=void 0;let A=p(8731),E=p(2760),z=p(8729);class T extends A.BeanStub{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(C,d,s,c){(0,z.processClassRules)(this.beans.expressionSvc,void 0,C.cellClassRules,d,s,c),this.processStaticCellClasses(C,d,s)}getStaticCellClasses(C,d){let{cellClass:s}=C;if(!s)return[];let c;return typeof s=="function"?c=s(d):c=s,typeof c=="string"&&(c=[c]),c||[]}createCellCustomStyleFeature(C,d){return new E.CellCustomStyleFeature(C,d)}processStaticCellClasses(C,d,s){this.getStaticCellClasses(C,d).forEach(c=>{s(c)})}}x.CellStyleService=T},9360:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.LayoutFeature=x.LayoutCssClasses=void 0;let A=p(8731);x.LayoutCssClasses={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"};class E extends A.BeanStub{constructor(T){super(),this.view=T}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){let T=this.gos.get("domLayout"),b={autoHeight:T==="autoHeight",normal:T==="normal",print:T==="print"},C=b.autoHeight?x.LayoutCssClasses.AUTO_HEIGHT:b.print?x.LayoutCssClasses.PRINT:x.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(C,b)}}x.LayoutFeature=E},7648:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowStyleService=x.calculateRowLevel=void 0;let A=p(8731),E=p(8729);x.calculateRowLevel=function(T){if(T.group)return T.level;let b=T.parent;return b?b.level+1:0};class z extends A.BeanStub{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(b,C){let d=this.gos,s=g=>{typeof g=="string"?b.push(g):Array.isArray(g)&&g.forEach(f=>b.push(f))},c=d.get("rowClass");c&&s(c);let h=d.getCallback("getRowClass");h&&s(h({data:C.data,node:C,rowIndex:C.rowIndex}))}preProcessRowClassRules(b,C){this.processRowClassRules(C,d=>{b.push(d)},()=>{})}processRowClassRules(b,C,d){let{gos:s,expressionSvc:c}=this.beans,h=s.addGridCommonParams({data:b.data,node:b,rowIndex:b.rowIndex});(0,E.processClassRules)(c,void 0,s.get("rowClassRules"),h,C,d)}processStylesFromGridOptions(b){let C=this.gos,d=C.get("rowStyle"),s=C.getCallback("getRowStyle"),c;if(s&&(c=s({data:b.data,node:b,rowIndex:b.rowIndex})),c||d)return Object.assign({},d,c)}}x.RowStyleService=z},8594:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.RowStyleModule=x.CellStyleModule=void 0;let A=p(7205),E=p(9330),z=p(7648);x.CellStyleModule={moduleName:"CellStyle",version:A.VERSION,beans:[E.CellStyleService]},x.RowStyleModule={moduleName:"RowStyle",version:A.VERSION,beans:[z.RowStyleService]}},8729:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.processClassRules=void 0,x.processClassRules=function(p,A,E,z,T,b){if(E==null&&A==null)return;let C={},d={},s=(c,h)=>{c.split(" ").forEach(g=>{g.trim()!=""&&h(g)})};if(E){let c=Object.keys(E);for(let h=0;h<c.length;h++){let g=c[h],f=E[g],S;typeof f=="string"?S=!p||p.evaluate(f,z):typeof f=="function"&&(S=f(z)),s(g,w=>{S?C[w]=!0:d[w]=!0})}}A&&b&&Object.keys(A).forEach(c=>s(c,h=>{C[h]||(d[h]=!0)})),b&&Object.keys(d).forEach(b),Object.keys(C).forEach(T)}},7711:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.SyncService=void 0;let A=p(3146),E=p(8731),z=p(2043);class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",C=>this.setColumnDefs(C))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{let C=this.gos.get("columnDefs");C?this.setColumnsAndData(C):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(C){let{colModel:d,rowModel:s}=this.beans;d.setColumnDefs(C!=null?C:[],"gridInitializing"),s.start()}gridReady(){let{eventSvc:C,gos:d}=this;C.dispatchEvent({type:"gridReady"}),(0,z._logIfDebug)(d,`initialised successfully, enterprise = ${d.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(C){let d=this.gos.get("columnDefs");if(d)return this.waitingForColumns?(this.waitingForColumns=!1,void this.setColumnsAndData(d)):void this.beans.colModel.setColumnDefs(d,(0,A._convertColumnEventSourceType)(C.source))}}x.SyncService=T},6607:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PartImpl=x.defaultModeName=x.createPart=void 0;let A=p(8951);x.createPart=T=>new z(T),x.defaultModeName="$default";let E=0;class z{constructor({feature:b,params:C,modeParams:d={},css:s,cssImports:c}){var h;this.feature=b,this.css=s,this.cssImports=c,this.modeParams=ge({[x.defaultModeName]:ge(ge({},(h=d[x.defaultModeName])!=null?h:{}),C!=null?C:{})},d)}use(b){var d,s;let C=this._inject;if(C==null){let{css:c}=this;if(c){let h=`ag-theme-${(d=this.feature)!=null?d:"part"}-${++E}`;typeof c=="function"&&(c=c()),c=`:where(.${h}) {
${c}
}
`;for(let g of(s=this.cssImports)!=null?s:[])c=`@import url(${JSON.stringify(g)});
${c}`;C={css:c,class:h}}else C=!1;this._inject=C}return C&&b&&(0,A._injectGlobalCSS)(C.css,b,C.class),!!C&&C.class}}x.PartImpl=z},9621:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ThemeImpl=x.createTheme=x._asThemeImpl=void 0;let A=p(7764),E=p(6607),z=p(405),T=p(8951),b=p(113),C=p(7845);x._asThemeImpl=M=>{if(!(M instanceof d))throw new Error("theme is not an object created by createTheme");return M},x.createTheme=()=>new d;class d{constructor(P=[]){this.parts=P}withPart(P){return typeof P=="function"&&(P=P()),P instanceof E.PartImpl?new d([...this.parts,P]):((0,A._logPreInitErr)(259,{part:P},"Invalid part"),this)}withoutPart(P){return this.withPart((0,E.createPart)({feature:P}))}withParams(P,O=E.defaultModeName){return this.withPart((0,E.createPart)({modeParams:{[O]:P}}))}_startUse({container:P,loadThemeGoogleFonts:O}){if(T.IS_SSR)return;g(),(0,T._injectCoreAndModuleCSS)(P);let G=c(this);if(G.length>0)for(let j of G)O&&S(j);for(let j of this.parts)j.use(P)}_getCssClass(){var P;return(P=this._cssClassCache)!=null?P:this._cssClassCache=s(this.parts).map(O=>O.use()).filter(Boolean).join(" ")}_getModeParams(){var O;let P=this._paramsCache;if(!P){let G={[E.defaultModeName]:ge({},z.coreDefaults)};for(let j of s(this.parts))for(let[Y,J]of Object.entries(j.modeParams))if(J){let ne=(O=G[Y])!=null?O:G[Y]={},ce=new Set;for(let[fe,xe]of Object.entries(J))xe!==void 0&&(ne[fe]=xe,ce.add(fe));if(Y===E.defaultModeName){for(let[fe,xe]of Object.entries(G))if(fe!==E.defaultModeName)for(let Le of ce)delete xe[Le]}}this._paramsCache=P=G}return P}_getPerGridCss(P){let O="##SELECTOR##",G=this._paramsCssCache;if(!G){let j="",Y="";for(let[ne,ce]of Object.entries(this._getModeParams())){if(ne!==E.defaultModeName){let fe=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(ne):ne}"]) & {
`;j+=fe,Y+=fe}for(let[fe,xe]of Object.entries(ce)){let Le=(0,b.paramValueToCss)(fe,xe);if(Le===!1)(0,A._error)(107,{key:fe,value:xe});else{let _e=(0,C.paramToVariableName)(fe),Fe=_e.replace("--ag-","--ag-inherited-");j+=`	${_e}: var(${Fe}, ${Le});
`,Y+=`	${Fe}: var(${_e});
`}}ne!==E.defaultModeName&&(j+=`}
`,Y+=`}
`)}let J=`${O} {
${j}}
`;J+=`:has(> ${O}):not(${O}) {
${Y}}
`,this._paramsCssCache=G=J}return G.replaceAll(O,`:where(.${P})`)}}x.ThemeImpl=d;let s=M=>{let P=new Map;for(let G of M)P.set(G.feature,G);let O=[];for(let G of M)G.feature&&P.get(G.feature)!==G||O.push(G);return O},c=M=>{let P=new Set,O=G=>{if(Array.isArray(G))G.forEach(O);else{let j=G==null?void 0:G.googleFont;typeof j=="string"&&P.add(j)}};return Object.values(M._getModeParams()).flatMap(G=>Object.values(G)).forEach(O),Array.from(P).sort()},h=!1,g=()=>{if(!h){h=!0;for(let M of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))M.remove()}},f=new Set,S=async M=>{f.add(M);let P=`@import url('https://${w}/css2?family=${encodeURIComponent(M)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
`;(0,T._injectGlobalCSS)(P,document.head,`googleFont:${M}`)},w="fonts.googleapis.com"},405:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.coreDefaults=x.defaultLightColorSchemeParams=x.coreCSS=void 0;let A=p(7845);var E=p(9550);Object.defineProperty(x,"coreCSS",{enumerable:!0,get:function(){return E.coreCSS}}),x.defaultLightColorSchemeParams={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:(0,A.foregroundMix)(.15),chromeBackgroundColor:(0,A.foregroundBackgroundMix)(.02),browserColorScheme:"light"},x.coreDefaults=He(ge({},x.defaultLightColorSchemeParams),{textColor:A.foregroundColor,accentColor:"#2196f3",invalidColor:"#e02525",wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:{ref:"backgroundColor"},sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},cellFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"backgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},subtleTextColor:{ref:"textColor",mix:.5},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:A.accentColor,rangeSelectionBackgroundColor:(0,A.accentMix)(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:(0,A.accentMix)(.5),rowHoverColor:(0,A.accentMix)(.08),columnHoverColor:(0,A.accentMix)(.05),selectedRowBackgroundColor:(0,A.accentMix)(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},oddRowBackgroundColor:{ref:"backgroundColor"},borderRadius:4,wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",spacing:8,fontSize:14,rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},dragAndDropImageBackgroundColor:{ref:"backgroundColor"},dragAndDropImageBorder:!0,dragAndDropImageShadow:{ref:"popupShadow"},dragHandleColor:(0,A.foregroundMix)(.7),focusShadow:{spread:3,color:(0,A.accentMix)(.5)},headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},listItemHeight:{calc:"iconSize + widgetVerticalSpacing"},iconSize:16,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:A.accentColor,toggleButtonOffBackgroundColor:(0,A.foregroundBackgroundMix)(.3),toggleButtonSwitchBackgroundColor:{ref:"backgroundColor"},toggleButtonSwitchInset:2,menuBorder:{color:(0,A.foregroundMix)(.2)},menuBackgroundColor:(0,A.foregroundBackgroundMix)(.03),menuTextColor:(0,A.foregroundBackgroundMix)(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:(0,A.foregroundMix)(.8),iconButtonHoverColor:(0,A.foregroundMix)(.1),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:A.accentColor},cellEditingShadow:{ref:"cardShadow"},dialogBorder:{color:(0,A.foregroundMix)(.2)},panelBackgroundColor:{ref:"backgroundColor"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipTextColor:{ref:"textColor"},tooltipBorder:!0,columnDropCellBackgroundColor:(0,A.foregroundMix)(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:(0,A.foregroundMix)(.13)},selectCellBackgroundColor:(0,A.foregroundMix)(.07),selectCellBorder:{color:(0,A.foregroundMix)(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterToolPanelGroupIndent:{ref:"spacing"},iconButtonHoverBackgroundColor:(0,A.foregroundMix)(.1),rowLoadingSkeletonEffectColor:(0,A.foregroundMix)(.15)})},9550:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.coreCSS=void 0,x.coreCSS=':where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none}}:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-tab-guard{display:block;height:0;position:absolute;width:0}:where(.ag-virtual-list-viewport) .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport,.ag-virtual-list-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container,.ag-virtual-list-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value,.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom,.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}.ag-floating-bottom{border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block;&:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}}.ag-group{position:relative;width:100%}.ag-group-title-bar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-title{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-group-title-bar) .ag-group-title{cursor:default}.ag-group-toolbar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-disabled-group-container,.ag-disabled-group-title-bar{opacity:.5}.ag-group-container-horizontal{flex-flow:row wrap}.ag-group-container-vertical{flex-direction:column}.ag-group-title-bar-icon{cursor:pointer;flex:none}:where(.ag-ltr) .ag-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-group-title-bar-icon{margin-left:var(--ag-spacing)}:where(.ag-group-item-alignment-stretch) .ag-group-item{align-items:stretch}:where(.ag-group-item-alignment-start) .ag-group-item{align-items:flex-start}:where(.ag-group-item-alignment-end) .ag-group-item{align-items:flex-end}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-large-text-input{display:block}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row{background-color:var(--ag-background-color);border-bottom:var(--ag-row-border);color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);height:var(--ag-row-height);white-space:nowrap;width:100%;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px))}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after{background-color:var(--ag-range-selection-border-color);content:"";height:1px;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row-hover.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-accent-color);content:"";height:100%;position:absolute;width:1px}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-chart,.ag-dnd-ghost,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}:where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:var(--ag-border-radius);cursor:pointer;font-family:inherit;padding:var(--ag-spacing) calc(var(--ag-spacing)*2);&:hover{background-color:var(--ag-row-hover-color)}&:active{border-color:var(--ag-accent-color)}&:disabled{background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item{position:absolute;width:100%}.ag-select-list{background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-list-item{align-items:center;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}.ag-list-item-hovered:after{background-color:var(--ag-accent-color);content:"";height:1px;left:0;position:absolute;right:0}.ag-item-highlight-top:after{top:0}.ag-item-highlight-bottom:after{bottom:0}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly,.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-column-select-column-readonly{&.ag-icon-grip,.ag-icon-grip{opacity:.35}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{&:hover{background-color:var(--ag-icon-button-hover-color);border-radius:1px;box-shadow:0 0 0 4px var(--ag-icon-button-hover-color)}}.ag-filter-active{--ag-icon-button-hover-color:color-mix(in srgb,transparent,var(--ag-accent-color) 28%);background-color:color-mix(in srgb,transparent,var(--ag-accent-color) 14%);border-radius:1px;outline:solid 4px color-mix(in srgb,transparent,var(--ag-accent-color) 14%);position:relative;&:after{background-color:var(--ag-accent-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z")}}:where(.ag-ltr) .ag-filter-active{&:after{right:-1px}}:where(.ag-rtl) .ag-filter-active{&:after{left:-1px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto}.ag-menu,.ag-resizer{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-resizer{pointer-events:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}:where(.ag-ltr) :where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize}&.ag-resizer-topRight{cursor:nesw-resize}&.ag-resizer-bottomRight{cursor:nwse-resize}&.ag-resizer-bottomLeft{cursor:nesw-resize}}:where(.ag-rtl) :where(.ag-resizer){&.ag-resizer-topLeft{cursor:nesw-resize}&.ag-resizer-topRight{cursor:nwse-resize}&.ag-resizer-bottomRight{cursor:nesw-resize}&.ag-resizer-bottomLeft{cursor:nwse-resize}}'},8951:function(ae,x,p){var b,C;Object.defineProperty(x,"__esModule",{value:!0}),x._unregisterGridUsingThemingAPI=x._registerGridUsingThemingAPI=x._injectCoreAndModuleCSS=x._injectGlobalCSS=x.IS_SSR=void 0;let A=p(2132),E=p(9550);x.IS_SSR=typeof window!="object"||!((C=(b=window==null?void 0:window.document)==null?void 0:b.fonts)!=null&&C.forEach);let z=new WeakMap;x._injectGlobalCSS=(d,s,c)=>{if(x.IS_SSR)return;let h=s.getRootNode()===document?document.head:s,g=z.get(h);if(g||(g={css:new Set},z.set(h,g)),g.css.has(d))return;let f=document.createElement("style");f.dataset.agGlobalCss=c,f.textContent=d,g.last?g.last.insertAdjacentElement("afterend",f):h.insertBefore(f,h.querySelector(":not(title, meta)")),g.css.add(d),g.last=f},x._injectCoreAndModuleCSS=d=>{(0,x._injectGlobalCSS)(E.coreCSS,d,"core"),Array.from((0,A._getAllRegisteredModules)()).sort((s,c)=>s.moduleName.localeCompare(c.moduleName)).forEach(s=>{var c;return(c=s.css)==null?void 0:c.forEach(h=>(0,x._injectGlobalCSS)(h,d,`module-${s.moduleName}`))})};let T=new Set;x._registerGridUsingThemingAPI=d=>{T.add(d)},x._unregisterGridUsingThemingAPI=d=>{if(T.delete(d),T.size===0){z=new WeakMap;for(let s of document.head.querySelectorAll("style[data-ag-global-css]"))s.remove()}}},3071:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.checkboxStyleDefaultCSS=void 0,x.checkboxStyleDefaultCSS='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}'},8265:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.checkboxStyleDefault=void 0;let A=p(6607),E=p(7845),z=p(3071);x.checkboxStyleDefault=(0,A.createPart)({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:{ref:"backgroundColor"},checkboxUncheckedBorderColor:(0,E.foregroundBackgroundMix)(.3),checkboxCheckedBackgroundColor:E.accentColor,checkboxCheckedBorderColor:E.accentColor,checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:{ref:"backgroundColor"},checkboxIndeterminateBackgroundColor:(0,E.foregroundBackgroundMix)(.3),checkboxIndeterminateBorderColor:(0,E.foregroundBackgroundMix)(.3),checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:{ref:"backgroundColor"},radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}},css:z.checkboxStyleDefaultCSS})},8689:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.colorSchemeVariable=x.colorSchemeDarkBlue=x.colorSchemeDarkWarm=x.colorSchemeDark=x.colorSchemeLightCold=x.colorSchemeLightWarm=x.colorSchemeLight=void 0;let A=p(6607),E=p(405),z=p(7845);x.colorSchemeLight=(0,A.createPart)({feature:"colorScheme",params:E.defaultLightColorSchemeParams}),x.colorSchemeLightWarm=(0,A.createPart)({feature:"colorScheme",params:He(ge({},E.defaultLightColorSchemeParams),{foregroundColor:"#000000de",borderColor:"#60300026",chromeBackgroundColor:"#60300005"})}),x.colorSchemeLightCold=(0,A.createPart)({feature:"colorScheme",params:He(ge({},E.defaultLightColorSchemeParams),{foregroundColor:"#000",chromeBackgroundColor:"#f3f8f8"})});let T=He(ge({},E.defaultLightColorSchemeParams),{backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:(0,z.foregroundBackgroundMix)(.05),rowHoverColor:(0,z.accentMix)(.15),selectedRowBackgroundColor:(0,z.accentMix)(.2),menuBackgroundColor:(0,z.foregroundBackgroundMix)(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",checkboxUncheckedBorderColor:(0,z.foregroundBackgroundMix)(.4),toggleButtonOffBackgroundColor:(0,z.foregroundBackgroundMix)(.4)});x.colorSchemeDark=(0,A.createPart)({feature:"colorScheme",params:T}),x.colorSchemeDarkWarm=(0,A.createPart)({feature:"colorScheme",params:{backgroundColor:"hsl(29, 10%, 17%)",foregroundColor:"#FFF",browserColorScheme:"dark"}});let b=He(ge({},T),{backgroundColor:"#1f2836"});x.colorSchemeDarkBlue=(0,A.createPart)({feature:"colorScheme",params:b}),x.colorSchemeVariable=(0,A.createPart)({feature:"colorScheme",params:E.defaultLightColorSchemeParams,modeParams:{light:E.defaultLightColorSchemeParams,dark:T,"dark-blue":b}})},8897:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetAlpineCSS=void 0,x.iconSetAlpineCSS=`.ag-icon-aggregation:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24 6H8v2l8 8-8 8v2h16v-2H11l8-8-8-8h13z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-arrows:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 11.171 2.687 16l4.828 4.829-1.414 1.414L-.142 16l6.243-6.243zm16.97 0 1.414-1.414L32.142 16l-6.243 6.243-1.414-1.414L29.313 16zM16.028 13.2l2.829 2.828-2.829 2.829-2.828-2.829zm-4.857 11.285L16 29.313l4.829-4.828 1.414 1.414L16 32.142l-6.243-6.243zm0-16.97L9.757 6.101 16-.142l6.243 6.243-1.414 1.414L16 2.687z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-asc:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-cancel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667A13.32 13.32 0 0 0 2.667 16c0 7.373 5.96 13.333 13.333 13.333S29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-chart:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M14 7h4v18h-4zM8 17h4v8H8zM20 13h4v12h-4z'/%3E%3C/g%3E%3C/svg%3E")}.ag-icon-color-picker:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-columns:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26 25H6V7h20zM12 11H8v12h4zm6 0h-4v12h4zm6 12V11h-4v12z' style='fill-rule:nonzero' transform='translate(0 -1)'/%3E%3C/svg%3E")}.ag-icon-contracted:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m12 6 10 10-10 10-2-2 8-8-8-8z'/%3E%3C/svg%3E")}.ag-icon-copy:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-cross:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.984 13.894 27.05 2.828l2.122 2.122-11.066 11.066 11.066 11.066-2.122 2.12-11.066-11.066L4.918 29.202l-2.12-2.12 11.066-11.066L2.798 4.95l2.12-2.122z'/%3E%3C/svg%3E")}.ag-icon-csv:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E")}.ag-icon-cut:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M13.775 15.198 3.835 2.945a1.501 1.501 0 0 1 2.33-1.89l14.997 18.488A6.003 6.003 0 0 1 29.657 25c0 3.311-2.688 6-6 6s-6-2.689-6-6c0-1.335.437-2.569 1.176-3.566l-3.127-3.855-3.001 3.7A5.97 5.97 0 0 1 14 25c0 3.311-2.689 6-6 6s-6-2.689-6-6a6.003 6.003 0 0 1 8.315-5.536zm9.882 6.702a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1M8 21.95a3.05 3.05 0 1 0 .001 6.101A3.05 3.05 0 0 0 8 21.95m9.63-11.505 1.932 2.381 8.015-9.881a1.5 1.5 0 0 0-2.329-1.89z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-excel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E")}.ag-icon-expanded:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 26 10 16 20 6l2 2-8 8 8 8z'/%3E%3C/svg%3E")}.ag-icon-eye-slash:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath fill='%23000' fill-rule='nonzero' d='M8.95 10.364 7 8.414 8.414 7l2.32 2.32A13.2 13.2 0 0 1 16.5 8c5.608 0 10.542 3.515 12.381 8.667L29 17l-.119.333a13 13 0 0 1-4.255 5.879l1.466 1.466-1.414 1.414-1.754-1.753A13.2 13.2 0 0 1 16.5 26c-5.608 0-10.542-3.515-12.381-8.667L4 17l.119-.333a13 13 0 0 1 4.83-6.303m1.445 1.445A11.02 11.02 0 0 0 6.148 17c1.646 4.177 5.728 7 10.352 7 1.76 0 3.441-.409 4.94-1.146l-1.878-1.878A5.06 5.06 0 0 1 16.5 22c-2.789 0-5.05-2.239-5.05-5 0-1.158.398-2.223 1.065-3.07zm1.855-.974 1.794 1.795A5.07 5.07 0 0 1 16.5 12c2.789 0 5.05 2.239 5.05 5 0 .9-.24 1.745-.661 2.474l2.305 2.306A11 11 0 0 0 26.852 17c-1.646-4.177-5.728-7-10.352-7-1.495 0-2.933.295-4.25.835'/%3E%3C/svg%3E")}.ag-icon-eye:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16.5 23c4.624 0 8.706-2.823 10.352-7-1.646-4.177-5.728-7-10.352-7s-8.706 2.823-10.352 7c1.646 4.177 5.728 7 10.352 7M4.119 15.667C5.958 10.515 10.892 7 16.5 7s10.542 3.515 12.381 8.667L29 16l-.119.333C27.042 21.485 22.108 25 16.5 25S5.958 21.485 4.119 16.333L4 16zM16.5 21c2.789 0 5.049-2.239 5.049-5s-2.26-5-5.049-5-5.049 2.239-5.049 5 2.26 5 5.049 5' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-filter:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m28 8-8 8v5l-6 6V16L6 8V6h22zM9 8l7 7v7l2-2v-5l7-7z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-first:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-group:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 7v1H9V7zm0-3v1H5.001V4zm-7 7H5v-1h2zm0-3H5V7h2zM3 5H1V4h2zm11 5v1H9v-1zm-7 4H5v-1h2zm7-1v1H9v-1z' style='fill-rule:nonzero' transform='matrix(2 0 0 2 0 -2)'/%3E%3C/svg%3E")}.ag-icon-last:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-linked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333a6.67 6.67 0 0 0-6.667 6.667 6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133 4.136 4.136 0 0 1-4.133 4.133h-5.333v2.533h5.333a6.67 6.67 0 0 0 6.667-6.667 6.67 6.67 0 0 0-6.667-6.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-loading:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M17 29h-2v-8h2zm-3.586-9L7 26.414 5.586 25 12 18.586zm13 5L25 26.414 18.586 20 20 18.586zM29 17h-8v-2h8zm-18 0H3v-2h8zm2.414-5L12 13.414 5.586 7 7 5.586zm13-5L20 13.414 18.586 12 25 5.586zM17 11h-2V3h2z' style='fill-rule:nonzero' transform='translate(-3.692 -3.692)scale(1.23077)'/%3E%3C/svg%3E")}.ag-icon-maximize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 30H2V18h2.828v7.05l8.254-8.252 2.12 2.12-8.252 8.254H14zm4-28h12v12h-2.828V6.95l-8.254 8.252-2.12-2.12 8.252-8.254H18z'/%3E%3C/svg%3E")}.ag-icon-menu:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 13H0v-2h20zm0-6H0V5h20zm0-6H0v-2h20z' style='fill-rule:nonzero' transform='translate(6 9)'/%3E%3C/svg%3E")}.ag-icon-menu-alt:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 27a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E")}.ag-icon-minimize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M2 18h12v12h-2.828v-7.05l-8.254 8.252-2.12-2.12 8.252-8.254H2zm28-4H18V2h2.828v7.05L29.082.798l2.12 2.12-8.252 8.254H30z'/%3E%3C/svg%3E")}.ag-icon-minus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-next:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.94 6 9.06 7.88 17.167 16 9.06 24.12 10.94 26l10-10z' style='fill-rule:nonzero' transform='translate(1)'/%3E%3C/svg%3E")}.ag-icon-none:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M23.708 14.645 16 6.939l-7.708 7.706 1.416 1.416L16 9.767l6.292 6.294zM23.708 20.355 16 28.061l-7.708-7.706 1.416-1.416L16 25.233l6.292-6.294z'/%3E%3C/g%3E%3C/svg%3E")}.ag-icon-not-allowed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-paste:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.334 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4M16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m10.78 19.777-4.668-4.666s.032-1 .67-1.87c1.366-1.86 4.052-1.96 6.056-1.572l3.158-3.108c-.7-2.342 3.352-5.046 3.352-5.046l9.166 9.168q-.334.447-.67.894c-1.074 1.426-2.538 2.63-4.272 2.338l-3.32 3.218c.046.344.042.03.118 1.152.144 2.13-.64 4.324-2.632 5.34l-.746.364-4.798-4.798-7.292 7.294-1.416-1.416zm8.24-13.672c-.688.568-1.416 1.45-1.024 2.072l.49.722-4.986 4.988c-1.988-.506-4.346-.636-5.156.614l9.02 9.032q.14-.099.272-.21c1.226-1.08.764-3.04.498-4.9l4.79-4.79s1.47.938 2.936-.776l-6.79-6.79q-.026.019-.05.038' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-pivot:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0m2.966 7.954H9.892v18.136c5.086.13 10.18.098 15.264-.096 1.48-.094 2.746-1.35 2.84-2.84.192-5.064.226-10.134.098-15.2M3.968 24.1q.015.528.036 1.056c.094 1.484 1.354 2.746 2.84 2.84l1.012.036V24.1zM22 15.414l-.292.294-1.416-1.416L23 11.586l2.708 2.706-1.416 1.416-.292-.294v3.592c-.032 2.604-2.246 4.892-4.872 4.992L15.414 24l.294.292-1.416 1.416L11.586 23l2.706-2.708 1.416 1.416-.322.32c3.372.03 6.578-.164 6.614-3.034zM3.88 18.038c.002 1.346.012 2.694.038 4.04h3.938v-4.04zm.05-6.062a681 681 0 0 0-.044 4.042h3.97v-4.042zm5.962-7.99Q8.449 3.999 7.006 4c-1.57.02-2.946 1.348-3.004 2.922q-.02 1.517-.042 3.034h3.896v-2.02h2.036zm14.244-.016v3.966h3.898q-.017-.546-.038-1.092c-.094-1.48-1.35-2.746-2.84-2.84q-.51-.019-1.02-.034m-8.14-.054q-2.035.022-4.07.048v3.972h4.07zm6.106.008a213 213 0 0 0-4.07-.022v4.034h4.07z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-plus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-previous:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.94 7.88 20.06 6l-10 10 10 10 1.88-1.88L13.833 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-save:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.708 2.355 8 10.061.292 2.355 1.708.939 8 7.233 14.292.939z' style='fill-rule:nonzero' transform='translate(8 14)'/%3E%3Cpath d='M5 26h22v2H5zM15 4h2v18h-2z'/%3E%3C/svg%3E")}.ag-icon-small-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 10.667 16 21.334l8.667-10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.333 7.334 10.666 16l10.667 8.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.667 24.666 21.334 16 10.667 7.333z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 21.333 16 10.666l8.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-tick:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M11.586 22.96 27.718 6.828 29.84 8.95 11.586 27.202 2.4 18.016l2.12-2.122z'/%3E%3C/svg%3E")}.ag-icon-tree-closed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m11.94 6-1.88 1.88L18.167 16l-8.107 8.12L11.94 26l10-10z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-tree-indeterminate:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6 13.5h20v3H6z'/%3E%3C/svg%3E")}.ag-icon-tree-open:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.12 9.06 16 17.167 7.88 9.06 6 10.94l10 10 10-10z' style='fill-rule:nonzero' transform='translate(0 1)'/%3E%3C/svg%3E")}.ag-icon-unlinked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-grip:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M8 24H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 18H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 12H6V8h2zm6 0h-2V8h2zm6 0h-2V8h2zm6 0h-2V8h2z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-settings:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E")}`},9580:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetAlpine=void 0;let A=p(6607),E=p(7235),z=p(8897);x.iconSetAlpine=(0,A.createPart)({feature:"iconSet",css:()=>E.sharedIconStylesCSS+z.iconSetAlpineCSS})},6407:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetQuartzRegular=x.iconSetQuartzLight=x.iconSetQuartzBold=x.iconSetQuartz=x.iconOverrides=x.iconSetMaterial=x.iconSetAlpine=void 0;var A=p(9580);Object.defineProperty(x,"iconSetAlpine",{enumerable:!0,get:function(){return A.iconSetAlpine}});var E=p(8900);Object.defineProperty(x,"iconSetMaterial",{enumerable:!0,get:function(){return E.iconSetMaterial}});var z=p(5867);Object.defineProperty(x,"iconOverrides",{enumerable:!0,get:function(){return z.iconOverrides}});var T=p(3692);Object.defineProperty(x,"iconSetQuartz",{enumerable:!0,get:function(){return T.iconSetQuartz}}),Object.defineProperty(x,"iconSetQuartzBold",{enumerable:!0,get:function(){return T.iconSetQuartzBold}}),Object.defineProperty(x,"iconSetQuartzLight",{enumerable:!0,get:function(){return T.iconSetQuartzLight}}),Object.defineProperty(x,"iconSetQuartzRegular",{enumerable:!0,get:function(){return T.iconSetQuartzRegular}})},7545:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetMaterialCSS=void 0,x.iconSetMaterialCSS=`.ag-icon-aggregation:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eaggregation%3C/title%3E%3Cpath d='M24 5.333H8V8l8.667 8L8 24v2.667h16v-4h-9.333L21.334 16l-6.667-6.667H24z'/%3E%3C/svg%3E")}.ag-icon-arrows:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='M13.333 11.556h5.333V8h3.556L16 1.778 9.778 8h3.556zm-1.777 1.777H8V9.777l-6.222 6.222L8 22.221v-3.556h3.556zM30.222 16 24 9.778v3.556h-3.556v5.333H24v3.556l6.222-6.222zm-11.555 4.444h-5.333V24H9.778L16 30.222 22.222 24h-3.556z'/%3E%3C/svg%3E")}.ag-icon-asc:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-cancel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 2.667C8.627 2.667 2.667 8.627 2.667 16S8.627 29.333 16 29.333 29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-chart:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%3E%3C/svg%3E")}.ag-icon-color-picker:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387H7.361zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667'/%3E%3C/svg%3E")}.ag-icon-columns:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M5.333 10.667h5.333V5.334H5.333zm8 16h5.333v-5.333h-5.333zm-8 0h5.333v-5.333H5.333zm0-8h5.333v-5.333H5.333zm8 0h5.333v-5.333h-5.333zm8-13.334v5.333h5.333V5.333zm-8 5.334h5.333V5.334h-5.333zm8 8h5.333v-5.333h-5.333zm0 8h5.333v-5.333h-5.333z'/%3E%3C/svg%3E")}.ag-icon-contracted:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-copy:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z'/%3E%3C/svg%3E")}.ag-icon-cross:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m25.333 8.547-1.88-1.88L16 14.12 8.547 6.667l-1.88 1.88L14.12 16l-7.453 7.453 1.88 1.88L16 17.88l7.453 7.453 1.88-1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-csv:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E")}.ag-icon-cut:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m19 3-6 6 2 2 7-7V3m-10 9.5a.503.503 0 0 1-.5-.5c0-.274.226-.5.5-.5s.5.226.5.5-.226.5-.5.5M6 20c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2M6 8c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2m3.64-.36c.23-.5.36-1.05.36-1.64 0-2.194-1.806-4-4-4S2 3.806 2 6s1.806 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.194 0-4 1.806-4 4s1.806 4 4 4 4-1.806 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1z' style='fill-rule:nonzero' transform='translate(4 4)'/%3E%3C/svg%3E")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667L26.668 16z'/%3E%3C/svg%3E")}.ag-icon-excel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E")}.ag-icon-expanded:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-eye-slash:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath d='M21.106 15.088A5.19 5.19 0 0 0 16 10.814a5.17 5.17 0 0 0-3.668 1.522L9.866 9.868a12.2 12.2 0 0 1 6.133-1.646c5.186 0 9.614 3.225 11.408 7.778a12.34 12.34 0 0 1-5.276 6.133l-2.468-2.466a5.17 5.17 0 0 0 1.449-2.802h-2.123c-.148.508-.42.964-.782 1.33l-1.33-1.33h-2.514l2.196 2.196q-.272.049-.56.05a3.11 3.11 0 0 1-2.99-2.245h-2.123a5.19 5.19 0 0 0 7.3 3.836l2.247 2.247a12.2 12.2 0 0 1-4.434.828c-5.186 0-9.614-3.225-11.408-7.778a12.3 12.3 0 0 1 3.781-5.111l2.924 2.924a5.1 5.1 0 0 0-.404 1.275h4.206l-1.296-1.296a3.1 3.1 0 0 1 2.196-.903c1.404 0 2.587.924 2.976 2.199h2.13z'/%3E%3C/svg%3E")}.ag-icon-eye:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16 8.222c-5.186 0-9.614 3.225-11.408 7.778 1.794 4.553 6.222 7.778 11.408 7.778S25.614 20.553 27.408 16C25.614 11.447 21.186 8.222 16 8.222m0 12.964c-2.862 0-5.186-2.324-5.186-5.186s2.324-5.186 5.186-5.186 5.186 2.324 5.186 5.186-2.324 5.186-5.186 5.186m0-8.297c-1.721 0-3.111 1.39-3.111 3.111s1.39 3.111 3.111 3.111 3.111-1.39 3.111-3.111-1.39-3.111-3.111-3.111'/%3E%3C/svg%3E")}.ag-icon-filter:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M13.333 24h5.333v-2.667h-5.333zM4 8v2.667h24V8zm4 9.333h16v-2.667H8z'/%3E%3C/svg%3E")}.ag-icon-first:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z'/%3E%3C/svg%3E")}.ag-icon-group:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%3E%3Cpath d='M18.667 21.333h8.889A3.555 3.555 0 0 1 24 24.889h-5.333zm8.888-7.111v3.556h-8.889v-3.556zM24 7.111a3.555 3.555 0 0 1 3.556 3.556h-16V7.111zm-8.889 17.778h-3.556v-3.556h3.556zm0-7.111h-3.556v-3.556h3.556zM8 10.667H4.444A3.555 3.555 0 0 1 8 7.111z'/%3E%3C/svg%3E")}.ag-icon-last:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z'/%3E%3C/svg%3E")}.ag-icon-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227v-2.667z'/%3E%3C/svg%3E")}.ag-icon-linked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333c-3.68 0-6.667 2.987-6.667 6.667s2.987 6.667 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333c2.28 0 4.133 1.853 4.133 4.133s-1.853 4.133-4.133 4.133h-5.333v2.533h5.333c3.68 0 6.667-2.987 6.667-6.667s-2.987-6.667-6.667-6.667z'/%3E%3C/svg%3E")}.ag-icon-loading:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%3E%3Cpath d='m17.778 11.708 3.25-3.251 2.516 2.516-3.251 3.25h4.597v3.556h-4.597l3.251 3.25-2.516 2.516-3.25-3.251v4.597h-3.556v-4.597l-3.25 3.251-2.516-2.516 3.251-3.25H7.11v-3.556h4.597l-3.251-3.25 2.516-2.516 3.25 3.251V7.111h3.556zm-3.251 7.847h2.944l2.084-2.084v-2.944l-2.084-2.084h-2.944l-2.084 2.084v2.944z'/%3E%3C/svg%3E")}.ag-icon-maximize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='M4 4h24v2.667H4z'/%3E%3C/svg%3E")}.ag-icon-menu:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M4 24h24v-2.667H4zm0-6.667h24v-2.667H4zM4 8v2.667h24V8z'/%3E%3C/svg%3E")}.ag-icon-menu-alt:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 26.667a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 24q0-1.1.784-1.883A2.57 2.57 0 0 1 16 21.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 16q0-1.1.784-1.883A2.57 2.57 0 0 1 16 13.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 8q0-1.1.784-1.883A2.57 2.57 0 0 1 16 5.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784'/%3E%3C/svg%3E")}.ag-icon-minimize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='M8 25.333h16V28H8z'/%3E%3C/svg%3E")}.ag-icon-minus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-next:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-none:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cpath d='M4 24h16v-2.667H4zM4 8v2.667h24V8zm0 9.333h24v-2.667H4z'/%3E%3C/svg%3E")}.ag-icon-not-allowed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667'/%3E%3C/svg%3E")}.ag-icon-paste:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M25.333 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4zM16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z'/%3E%3C/svg%3E")}.ag-icon-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%3E%3Cpath d='m11.106 22.093-4.444 4.444-1.259-1.259 4.444-4.444zm5.872-16.63 9.618 9.62-.962.962-.962-.962-7.694 3.847 1.924 1.924-2.74 2.74-7.696-7.696 2.741-2.74 1.924 1.925 3.847-7.696-.962-.962z'/%3E%3C/svg%3E")}.ag-icon-pivot:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%3E%3Cpath d='M26.667 30.223H5.334a3.556 3.556 0 0 1-3.556-3.556V5.334a3.556 3.556 0 0 1 3.556-3.556h21.333a3.556 3.556 0 0 1 3.556 3.556v21.333a3.556 3.556 0 0 1-3.556 3.556m-16-8.89H5.334v5.333h5.333zm16-7.11H12.444v12.444h14.223zm-9.15 6.85-2.039 2.037 2.039 2.039-1.257 1.257-3.295-3.296 3.295-3.295q.63.628 1.257 1.257zm-6.85-6.85H5.334v5.333h5.333zm15.74 3.816-1.257 1.256-2.039-2.037-2.037 2.037-1.257-1.256 3.295-3.296zM10.667 5.333H5.334v5.333h5.333zm8.889 0h-7.112v5.333h7.112zm7.111 0h-5.333v5.333h5.333z'/%3E%3C/svg%3E")}.ag-icon-plus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-previous:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z'/%3E%3C/svg%3E")}.ag-icon-save:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%3E%3C/svg%3E")}.ag-icon-small-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M9.333 12.667 16 19.334l6.667-6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-small-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M19.333 9.333 12.666 16l6.667 6.667V9.334z'/%3E%3C/svg%3E")}.ag-icon-small-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='M12.667 22.667 19.334 16l-6.667-6.667v13.333z'/%3E%3C/svg%3E")}.ag-icon-small-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='M9.333 19.333 16 12.666l6.667 6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-tick:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='m11.727 21.167-5.56-5.56-1.893 1.88 7.453 7.453 16-16-1.88-1.88z'/%3E%3C/svg%3E")}.ag-icon-tree-closed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-tree-indeterminate:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6.667 14.667h18.667v2.667H6.667z'/%3E%3C/svg%3E")}.ag-icon-tree-open:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M22.12 11.06 16 17.167 9.88 11.06 8 12.94l8 8 8-8z'/%3E%3C/svg%3E")}.ag-icon-unlinked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z'/%3E%3C/svg%3E")}.ag-icon-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-grip:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%3E%3Cpath d='M26.667 12H5.334v2.667h21.333zM5.333 20h21.333v-2.667H5.333z'/%3E%3C/svg%3E")}.ag-icon-settings:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E")}`},8900:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetMaterial=void 0;let A=p(6607),E=p(7235),z=p(7545);x.iconSetMaterial=(0,A.createPart)({feature:"iconSet",css:()=>E.sharedIconStylesCSS+z.iconSetMaterialCSS})},5867:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.iconOverrides=void 0;let A=p(6607),E=p(113),z=p(7235);x.iconOverrides=b=>{let C=[z.sharedIconStylesCSS];if(b.type==="image"){let{icons:d,mask:s}=b;for(let[c,h]of Object.entries(d)){let g=(0,E.imageValueToCss)(h);s?C.push(`.ag-icon-${c}::before { mask-image: ${g}; }`):C.push(`.ag-icon-${c}::before { background-image: ${g}; ${T} }`)}}if(b.type==="font"){let{family:d,weight:s,color:c,icons:h}=b,g=T;d&&(g+=` font-family: ${(0,E.fontFamilyValueToCss)(d)};`),s&&(g+=` font-weight: ${(0,E.fontWeightValueToCss)(s)};`),c&&(g+=` color: ${(0,E.colorValueToCss)(c)};`);for(let[f,S]of Object.entries(h))C.push(`.ag-icon-${f}::before { content: ${JSON.stringify(S)}; ${g} }`)}return(0,A.createPart)({css:C.join(`;
`),cssImports:b.cssImports})};let T="background-color: unset; mask-image: unset; -webkit-mask-image: unset;"},3692:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.iconSetQuartzBold=x.iconSetQuartzRegular=x.iconSetQuartzLight=x.iconSetQuartz=void 0;let A=p(6607),E=p(1368);x.iconSetQuartz=(z={})=>(0,A.createPart)({feature:"iconSet",css:()=>(0,E.getQuartzIconsCss)(z)}),x.iconSetQuartzLight=(0,x.iconSetQuartz)({strokeWidth:1}),x.iconSetQuartzRegular=(0,x.iconSetQuartz)(),x.iconSetQuartzBold=(0,x.iconSetQuartz)({strokeWidth:2})},1368:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getQuartzIconsCss=void 0;let A=p(7235),E={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>'},z={"small-down":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',"small-up":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>'};x.getQuartzIconsCss=(b={})=>{let C=A.sharedIconStylesCSS;for(let d of[...Object.keys(E),...Object.keys(z)]){let s=T(d,b.strokeWidth);C+=`.ag-icon-${d}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(s)}'); }
`}return C};let T=(b,C=1.5)=>{let d=z[b];if(d)return d;let s=E[b];if(!s)throw new Error(`Missing icon data for ${b}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${C}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+s+"</svg>"}},7235:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.sharedIconStylesCSS=void 0,x.sharedIconStylesCSS=':where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}'},2543:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.inputStyleBaseCSS=void 0,x.inputStyleBaseCSS=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}:where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) :where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) :where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){padding-right:var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}'},7389:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.inputStyleBorderedCSS=void 0,x.inputStyleBorderedCSS=":where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){&:focus{box-shadow:var(--ag-focus-shadow)}}"},3054:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.inputStyleUnderlinedCSS=void 0,x.inputStyleUnderlinedCSS=":where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){border-left:none;border-right:none;border-top:none}"},7161:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.inputStyleUnderlined=x.inputStyleBordered=x.inputStyleBase=void 0;let A=p(6607),E=p(7845),z=p(2543),T=p(7389),b=p(3054),C={inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPlaceholderTextColor:{ref:"inputTextColor",mix:.5},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"},inputIconColor:{ref:"inputTextColor"}};x.inputStyleBase=(0,A.createPart)({feature:"inputStyle",params:C,css:z.inputStyleBaseCSS}),x.inputStyleBordered=(0,A.createPart)({feature:"inputStyle",params:He(ge({},C),{inputBackgroundColor:{ref:"backgroundColor"},inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:E.accentColor},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:(0,E.foregroundBackgroundMix)(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}}}),css:()=>z.inputStyleBaseCSS+T.inputStyleBorderedCSS}),x.inputStyleUnderlined=(0,A.createPart)({feature:"inputStyle",params:He(ge({},C),{inputBorder:{width:2,color:(0,E.foregroundMix)(.3)},inputPaddingStart:{ref:"spacing"},inputFocusBorder:"solid 2px var(--ag-accent-color)",inputDisabledTextColor:{ref:"textColor",mix:.5},inputDisabledBorder:"solid 1px var(--ag-border-color)",inputInvalidBorder:{width:2,color:{ref:"invalidColor",mix:.3}}}),css:()=>z.inputStyleBaseCSS+b.inputStyleUnderlinedCSS})},4907:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.tabStyleBaseCSS=void 0,x.tabStyleBaseCSS='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:1px solid var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}}:where(.ag-ltr) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}}}:where(.ag-rtl) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}}}'},5797:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.tabStyleRolodexCSS=void 0,x.tabStyleRolodexCSS=".ag-tab{border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;border-top:var(--ag-tab-selected-border-width) solid transparent;flex:0;&.ag-tab-selected{border-left-color:var(--ag-tab-selected-border-color);border-right-color:var(--ag-tab-selected-border-color);border-top-color:var(--ag-tab-selected-border-color);margin-bottom:-1px;padding-bottom:calc(var(--ag-tab-bottom-padding) + 1px)}}"},5117:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.tabStyleRolodex=x.tabStyleAlpine=x.tabStyleMaterial=x.tabStyleQuartz=x.tabStyleBase=void 0;let A=p(6607),E=p(7845),z=p(4907),T=p(5797),b={tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1};x.tabStyleBase=(0,A.createPart)({feature:"tabStyle",params:b,css:z.tabStyleBaseCSS}),x.tabStyleQuartz=(0,A.createPart)({feature:"tabStyle",params:He(ge({},b),{tabBarBorder:!0,tabBarBackgroundColor:(0,E.foregroundMix)(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),css:z.tabStyleBaseCSS}),x.tabStyleMaterial=(0,A.createPart)({feature:"tabStyle",params:He(ge({},b),{tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabSelectedUnderlineColor:{ref:"primaryColor"},tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:0}),css:z.tabStyleBaseCSS}),x.tabStyleAlpine=(0,A.createPart)({feature:"tabStyle",params:He(ge({},b),{tabBarBorder:!0,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabHoverTextColor:E.accentColor,tabSelectedTextColor:E.accentColor,tabSelectedUnderlineColor:E.accentColor,tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:"0.3s"}),css:z.tabStyleBaseCSS}),x.tabStyleRolodex=(0,A.createPart)({feature:"tabStyle",params:He(ge({},b),{tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabBarHorizontalPadding:{ref:"spacing"},tabBarTopPadding:{ref:"spacing"},tabBarBorder:!0,tabHorizontalPadding:{calc:"spacing * 2"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:{ref:"spacing"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),css:()=>z.tabStyleBaseCSS+T.tabStyleRolodexCSS})},2525:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.themeBalham=x.themeAlpine=x.themeQuartz=void 0;let A=p(9621),E=p(7845),z=p(8265),T=p(8689),b=p(6407),C=p(7161),d=p(5117);x.themeQuartz=(0,A.createTheme)().withPart(z.checkboxStyleDefault).withPart(T.colorSchemeVariable).withPart(b.iconSetQuartzRegular).withPart(d.tabStyleQuartz).withPart(()=>C.inputStyleBordered).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),x.themeAlpine=(0,A.createTheme)().withPart(z.checkboxStyleDefault).withPart(T.colorSchemeVariable).withPart(b.iconSetAlpine).withPart(d.tabStyleAlpine).withPart(C.inputStyleBordered).withParams({accentColor:"#2196f3",selectedRowBackgroundColor:(0,E.accentMix)(.3),inputFocusBorder:{color:(0,E.accentMix)(.4)},fontSize:13,dataFontSize:14,headerFontWeight:700,borderRadius:3,wrapperBorderRadius:3,tabSelectedUnderlineColor:E.accentColor,tabSelectedBorderWidth:2,tabSelectedUnderlineTransitionDuration:.3}),x.themeBalham=(0,A.createTheme)().withPart(z.checkboxStyleDefault).withPart(T.colorSchemeVariable).withPart(b.iconSetAlpine).withPart(d.tabStyleRolodex).withPart(C.inputStyleBordered).withParams({spacing:4,borderRadius:2,wrapperBorderRadius:2,headerColumnResizeHandleColor:"transparent",headerColumnBorder:!0,headerColumnBorderHeight:"50%",oddRowBackgroundColor:{ref:"chromeBackgroundColor",mix:.5},headerTextColor:(0,E.foregroundMix)(.5),fontSize:12,headerFontWeight:"bold"})},113:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.paramValueToCss=x.durationValueToCss=x.imageValueToCss=x.fontWeightValueToCss=x.fontFamilyValueToCss=x.borderStyleValueToCss=x.shadowValueToCss=x.borderValueToCss=x.scaleValueToCss=x.lengthValueToCss=x.colorSchemeValueToCss=x.colorValueToCss=x.getParamType=void 0;let A=p(7764),E=p(7845),z=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"];x.getParamType=(0,E.memoize)(d=>{var s;return d=d.toLowerCase(),(s=z.find(c=>d.endsWith(c.toLowerCase())))!=null?s:"length"});let T=d=>typeof d=="string"?d:typeof d=="number"&&String(d);x.colorValueToCss=d=>{if(typeof d=="string")return d;if(d&&"ref"in d){let s=(0,E.paramToVariableExpression)(d.ref);return d.mix==null?s:`color-mix(in srgb, ${d.onto?(0,E.paramToVariableExpression)(d.onto):"transparent"}, ${s} ${(0,E.clamp)(100*d.mix,0,100)}%)`}return!1},x.colorSchemeValueToCss=T,x.lengthValueToCss=d=>typeof d=="string"?d:typeof d=="number"?`${d}px`:d&&"calc"in d?`calc(${d.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?[a-z][a-z0-9]*\b(?![-(])/gi,s=>s[0]==="-"?s:` ${(0,E.paramToVariableExpression)(s)} `)})`:!(!d||!("ref"in d))&&(0,E.paramToVariableExpression)(d.ref),x.scaleValueToCss=T,x.borderValueToCss=(d,s)=>{var c,h,g;return typeof d=="string"?d:d===!0?"solid 1px var(--ag-border-color)":d===!1?s==="columnBorder"?"solid 1px transparent":"none":d&&"ref"in d?(0,E.paramToVariableExpression)(d.ref):(0,x.borderStyleValueToCss)((c=d.style)!=null?c:"solid")+" "+(0,x.lengthValueToCss)((h=d.width)!=null?h:1)+" "+(0,x.colorValueToCss)((g=d.color)!=null?g:{ref:"borderColor"})},x.shadowValueToCss=d=>{var s,c,h,g,f;return typeof d=="string"?d:d===!1?"none":d&&"ref"in d?(0,E.paramToVariableExpression)(d.ref):[(0,x.lengthValueToCss)((s=d.offsetX)!=null?s:0),(0,x.lengthValueToCss)((c=d.offsetY)!=null?c:0),(0,x.lengthValueToCss)((h=d.radius)!=null?h:0),(0,x.lengthValueToCss)((g=d.spread)!=null?g:0),(0,x.colorValueToCss)((f=d.color)!=null?f:{ref:"foregroundColor"})].join(" ")},x.borderStyleValueToCss=T,x.fontFamilyValueToCss=d=>typeof d=="string"?b(d):d&&"googleFont"in d?(0,x.fontFamilyValueToCss)(d.googleFont):d&&"ref"in d?(0,E.paramToVariableExpression)(d.ref):!!Array.isArray(d)&&d.map(s=>(typeof s=="object"&&"googleFont"in s&&(s=s.googleFont),b(s))).join(", ");let b=d=>/^[\w-]+$/.test(d)?d:JSON.stringify(d);x.fontWeightValueToCss=T,x.imageValueToCss=d=>typeof d=="string"?d:d&&"url"in d?`url(${JSON.stringify(d.url)})`:d&&"svg"in d?(0,x.imageValueToCss)({url:`data:image/svg+xml,${encodeURIComponent(d.svg)}`}):!(!d||!("ref"in d))&&(0,E.paramToVariableExpression)(d.ref),x.durationValueToCss=(d,s)=>typeof d=="string"?d:typeof d=="number"?(d>=10&&(0,A._error)(104,{value:d,param:s}),`${d}s`):!(!d||!("ref"in d))&&(0,E.paramToVariableExpression)(d.ref);let C={color:x.colorValueToCss,colorScheme:x.colorSchemeValueToCss,length:x.lengthValueToCss,scale:x.scaleValueToCss,border:x.borderValueToCss,borderStyle:x.borderStyleValueToCss,shadow:x.shadowValueToCss,image:x.imageValueToCss,fontFamily:x.fontFamilyValueToCss,fontWeight:x.fontWeightValueToCss,duration:x.durationValueToCss};x.paramValueToCss=(d,s)=>{let c=(0,x.getParamType)(d);return C[c](s,d)}},7845:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.accentColor=x.foregroundColor=x.foregroundBackgroundMix=x.foregroundMix=x.accentMix=x.memoize=x.logErrorMessage=x.clamp=x.paramToVariableExpression=x.paramToVariableName=x.kebabCase=void 0,x.kebabCase=p=>p.replace(/[A-Z]/g,A=>`-${A}`).toLowerCase(),x.paramToVariableName=p=>`--ag-${(0,x.kebabCase)(p)}`,x.paramToVariableExpression=p=>`var(${(0,x.paramToVariableName)(p)})`,x.clamp=(p,A,E)=>Math.max(A,Math.min(E,p)),x.logErrorMessage=(p,A)=>{A?console.error(p,A):console.error(p)},x.memoize=p=>{let A=new Map;return E=>{let z=E;return A.has(z)||A.set(z,p(E)),A.get(z)}},x.accentMix=p=>({ref:"accentColor",mix:p}),x.foregroundMix=p=>({ref:"foregroundColor",mix:p}),x.foregroundBackgroundMix=p=>({ref:"foregroundColor",mix:p,onto:"backgroundColor"}),x.foregroundColor={ref:"foregroundColor"},x.accentColor={ref:"accentColor"}},8927:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.tooltipCSS=void 0,x.tooltipCSS=".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);white-space:normal}.ag-tooltip,.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}"},243:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TooltipComponent=void 0;let A=p(7766),E=p(3598);class z extends E.PopupComponent{constructor(){super('<div class="ag-tooltip"></div>')}init(b){let{value:C}=b;this.getGui().textContent=(0,A._escapeString)(C,!0)}}x.TooltipComponent=z},3386:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TooltipFeature=x._shouldDisplayTooltip=x._getShouldDisplayTooltip=x._isShowTooltipWhenTruncated=void 0;let A=p(8731),E=p(3430);function z(C){return C.get("tooltipShowMode")==="whenTruncated"}function T(C){return()=>{let d=C();return!d||d.scrollWidth>d.clientWidth}}x._isShowTooltipWhenTruncated=z,x._getShouldDisplayTooltip=function(C,d){return z(C)?T(d):void 0},x._shouldDisplayTooltip=T;class b extends A.BeanStub{constructor(d,s){super(),this.ctrl=d,s&&(this.beans=s)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(d){let s="title",c=this.ctrl.getGui();c&&(d!=null&&d!=""?c.setAttribute(s,d):c.removeAttribute(s))}updateTooltipText(){let{getTooltipValue:d}=this.ctrl;d&&(this.tooltip=d())}createTooltipFeatureIfNeeded(){this.tooltipManager==null&&(this.tooltipManager=this.createBean(new E.TooltipStateManager(this.ctrl,()=>this.tooltip),this.beans.context))}setTooltipAndRefresh(d){this.tooltip=d,this.refreshTooltip()}refreshTooltip(){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(null),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}}x.TooltipFeature=b},4658:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TooltipModule=void 0;let A=p(7205),E=p(3137),z=p(8927),T=p(243),b=p(3386),C=p(7931);x.TooltipModule={moduleName:"Tooltip",version:A.VERSION,beans:[C.TooltipService],dynamicBeans:{tooltipFeature:b.TooltipFeature},userComponents:{agTooltipComponent:T.TooltipComponent},dependsOn:[E.PopupModule],css:[z.tooltipCSS]}},7931:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TooltipService=void 0;let A=p(8731),E=p(4422),z=p(6996),T=p(3386);class b extends A.BeanStub{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(d,s,c,h){d&&s.destroyBean(d);let g=(0,T._isShowTooltipWhenTruncated)(this.gos),{column:f,eGui:S}=s,w=f.getColDef();h||!g||w.headerComponent||(h=(0,T._shouldDisplayTooltip)(()=>S.querySelector(".ag-header-cell-text")));let M={getColumn:()=>f,getColDef:()=>f.getColDef(),getGui:()=>S,getLocation:()=>"header",getTooltipValue:()=>c!=null?c:f.getColDef().headerTooltip,shouldDisplayTooltip:h},P=this.createTooltipFeature(M);return P&&(P=s.createBean(P),s.setRefreshFunction("tooltip",()=>P.refreshTooltip())),P}setupHeaderGroupTooltip(d,s,c,h){d&&s.destroyBean(d);let g=(0,T._isShowTooltipWhenTruncated)(this.gos),{column:f,eGui:S}=s,w=f.getColGroupDef();h||!g||w!=null&&w.headerGroupComponent||(h=(0,T._shouldDisplayTooltip)(()=>S.querySelector(".ag-header-group-text")));let M={getColumn:()=>f,getGui:()=>S,getLocation:()=>"headerGroup",getTooltipValue:()=>c!=null?c:w&&w.headerTooltip,shouldDisplayTooltip:h};w&&(M.getColDef=()=>w);let P=this.createTooltipFeature(M);return P&&s.createBean(P)}enableCellTooltipFeature(d,s,c){let{column:h,rowNode:g}=d,f=(0,T._isShowTooltipWhenTruncated)(this.gos);c||!f||d.isCellRenderer()||(c=(0,T._shouldDisplayTooltip)(()=>{let{eGui:w}=d;return w.children.length===0?w:w.querySelector(".ag-cell-value")}));let S={getColumn:()=>h,getColDef:()=>h.getColDef(),getRowIndex:()=>d.cellPosition.rowIndex,getRowNode:()=>g,getGui:()=>d.eGui,getLocation:()=>"cell",getTooltipValue:s!=null?()=>s:()=>{let w=h.getColDef(),M=g.data;if(w.tooltipField&&(0,E._exists)(M))return(0,z._getValueUsingField)(M,w.tooltipField,h.isTooltipFieldContainsDots());let P=w.tooltipValueGetter;return P?P(this.gos.addGridCommonParams({location:"cell",colDef:h.getColDef(),column:h,rowIndex:d.cellPosition.rowIndex,node:g,data:g.data,value:d.value,valueFormatted:d.valueFormatted})):null},getValueFormatted:()=>d.valueFormatted,shouldDisplayTooltip:c};return this.createTooltipFeature(S,this.beans)}refreshRowTooltip(d,s,c,h){let g={getGui:()=>s.getFullWidthElement(),getTooltipValue:()=>c,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:h},f=this.beans,S=f.context;d&&s.destroyBean(d,S);let w=this.createTooltipFeature(g,f);return s.createBean(w,S)}initCol(d){let{colDef:s}=d;d.tooltipEnabled=(0,E._exists)(s.tooltipField)||(0,E._exists)(s.tooltipValueGetter)||(0,E._exists)(s.tooltipComponent)}createTooltipFeature(d,s){return this.beans.registry.createDynamicBean("tooltipFeature",!1,d,s)}}x.TooltipService=b},3430:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TooltipStateManager=void 0;let A=p(2036),E=p(8731),z=p(7274),T=p(8667),b=p(4422);var C,d;(function(g){g[g.NOTHING=0]="NOTHING",g[g.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",g[g.SHOWING=2]="SHOWING"})(C||(C={})),function(g){g[g.HOVER=0]="HOVER",g[g.FOCUS=1]="FOCUS"}(d||(d={}));let s,c=!1;class h extends E.BeanStub{wireBeans(f){this.popupSvc=f.popupSvc,this.userCompFactory=f.userCompFactory}constructor(f,S){super(),this.tooltipCtrl=f,this.getTooltipValue=S,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=C.NOTHING,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");let f=this.tooltipCtrl.getGui();this.tooltipTrigger===d.HOVER&&this.addManagedListeners(f,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===d.FOCUS&&this.addManagedListeners(f,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(f,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(f,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(f){let S=this.gos.get(f);return Math.max(200,S)}getTooltipDelay(f){var S,w,M,P,O,G;return f==="show"?(M=(w=(S=this.tooltipCtrl).getTooltipShowDelayOverride)==null?void 0:w.call(S))!=null?M:this.getGridOptionsTooltipDelay("tooltipShowDelay"):(G=(O=(P=this.tooltipCtrl).getTooltipHideDelayOverride)==null?void 0:O.call(P))!=null?G:this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){let f=this.gos.get("tooltipTrigger");return f&&f!=="hover"?d.FOCUS:d.HOVER}onMouseEnter(f){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),(0,T._isIOSUserAgent)()||(c?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(f)},100):this.prepareToShowTooltip(f))}onMouseMove(f){this.lastMouseEvent&&(this.lastMouseEvent=f),this.tooltipMouseTrack&&this.state===C.SHOWING&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(f){var P;let S=f.relatedTarget,w=this.tooltipCtrl.getGui(),M=(P=this.tooltipComp)==null?void 0:P.getGui();this.isInteractingWithTooltip||w.contains(S)||this.interactionEnabled&&(M!=null&&M.contains(S))||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(f){if(this.state!=C.NOTHING||c)return;let S=0;f&&(S=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=f||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),S),this.state=C.WAITING_TO_SHOW}isLastTooltipHiddenRecently(){return new Date().getTime()-s<1e3}setToDoNothing(f){f||this.state!==C.SHOWING||this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=C.NOTHING,this.lastMouseEvent=null}showTooltip(){var G,j,Y,J,ne,ce,fe,xe,Le;let f=this.getTooltipValue(),S=this.tooltipCtrl;if(!(0,b._exists)(f)||S.shouldDisplayTooltip&&!S.shouldDisplayTooltip())return void this.setToDoNothing();let w=(G=S.getRowNode)==null?void 0:G.call(S),M=ge({location:(Y=(j=S.getLocation)==null?void 0:j.call(S))!=null?Y:"UNKNOWN",colDef:(J=S.getColDef)==null?void 0:J.call(S),column:(ne=S.getColumn)==null?void 0:ne.call(S),rowIndex:(ce=S.getRowIndex)==null?void 0:ce.call(S),node:w,data:w==null?void 0:w.data,value:f,valueFormatted:(fe=S.getValueFormatted)==null?void 0:fe.call(S),hideTooltipCallback:()=>this.hideTooltip(!0)},(Le=(xe=S.getAdditionalParams)==null?void 0:xe.call(S))!=null?Le:{});this.state=C.SHOWING,this.tooltipInstanceCount++;let P=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),O=(0,A._getTooltipCompDetails)(this.userCompFactory,M);O==null||O.newAgStackInstance().then(P)}hideTooltip(f){!f&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),s=new Date().getTime()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),f&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(f,S){var O;if(this.state!==C.SHOWING||this.tooltipInstanceCount!==f)return void this.destroyBean(S);let w=S.getGui();this.tooltipComp=S,w.classList.contains("ag-tooltip")||w.classList.add("ag-tooltip-custom"),this.tooltipTrigger===d.HOVER&&w.classList.add("ag-tooltip-animate"),this.interactionEnabled&&w.classList.add("ag-tooltip-interactive");let M=this.getLocaleTextFunc(),P=(O=this.popupSvc)==null?void 0:O.addPopup({eChild:w,ariaLabel:M("ariaLabelTooltip","Tooltip")});if(P&&(this.tooltipPopupDestroyFunc=P.hideFunc),this.positionTooltip(),this.tooltipTrigger===d.FOCUS){let G=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:G,columnMoved:G})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(w,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners((0,z._getDocument)(this.beans),{keydown:G=>{w.contains(G==null?void 0:G.target)||this.onKeyDown()}}),this.tooltipTrigger===d.FOCUS&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(w,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:w,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){var w;let f=(w=this.tooltipComp)==null?void 0:w.getGui(),S=(0,z._getActiveDomElement)(this.beans);return!!f&&f.contains(S)}onTooltipFocusOut(f){let S=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,S.contains(f.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){var S,w;let f={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?(S=this.popupSvc)==null||S.positionPopupUnderMouseEvent(He(ge({},f),{mouseEvent:this.lastMouseEvent})):(w=this.popupSvc)==null||w.positionPopupByComponent(He(ge({},f),{eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5}))}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");let f=this.tooltipPopupDestroyFunc,S=this.tooltipComp,w=this.tooltipTrigger===d.HOVER?1e3:0;window.setTimeout(()=>{f(),this.destroyBean(S)},w),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(f=>{f&&f()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){c=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},100)}unlockService(){c=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}}x.TooltipStateManager=h},7113:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.UndoRedoService=void 0;let A=p(8731),E=p(6257),z=p(7274),T=p(2410);class b extends A.BeanStub{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.onCellValueChanged=d=>{let s={column:d.column,rowIndex:d.rowIndex,rowPinned:d.rowPinned},c=this.activeCellEdit!==null&&(0,E._areCellsEqual)(this.activeCellEdit,s),h=this.activeRowEdit!==null&&(0,E._isSameRow)(this.activeRowEdit,s);if(!(c||h||this.isPasting||this.isRangeInAction))return;let{rowPinned:g,rowIndex:f,column:S,oldValue:w,value:M}=d,P={rowPinned:g,rowIndex:f,columnId:S.getColId(),newValue:M,oldValue:w};this.cellValueChanges.push(P)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){let{gos:d,ctrlsSvc:s}=this.beans;if(!d.get("undoRedoCellEditing"))return;let c=d.get("undoRedoCellEditingLimit");if(c<=0)return;this.undoStack=new T.UndoRedoStack(c),this.redoStack=new T.UndoRedoStack(c),this.addListeners();let h=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:g=>{g.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:h,newColumnsLoaded:h,columnGroupOpened:h,columnRowGroupChanged:h,columnMoved:h,columnPinned:h,columnVisible:h,rowDragEnd:h}),s.whenReady(this,g=>{this.gridBodyCtrl=g.gridBodyCtrl})}getCurrentUndoStackSize(){var d,s;return(s=(d=this.undoStack)==null?void 0:d.getCurrentStackSize())!=null?s:0}getCurrentRedoStackSize(){var d,s;return(s=(d=this.redoStack)==null?void 0:d.getCurrentStackSize())!=null?s:0}undo(d){let{eventSvc:s,undoStack:c,redoStack:h}=this;s.dispatchEvent({type:"undoStarted",source:d});let g=this.undoRedo(c,h,"initialRange","oldValue","undo");s.dispatchEvent({type:"undoEnded",source:d,operationPerformed:g})}redo(d){let{eventSvc:s,undoStack:c,redoStack:h}=this;s.dispatchEvent({type:"redoStarted",source:d});let g=this.undoRedo(h,c,"finalRange","newValue","redo");s.dispatchEvent({type:"redoEnded",source:d,operationPerformed:g})}undoRedo(d,s,c,h,g){if(!d)return!1;let f=d.pop();return!(!f||!f.cellValueChanges)&&(this.processAction(f,S=>S[h],g),f instanceof T.RangeUndoRedoAction?this.processRange(f.ranges||[f[c]]):this.processCell(f.cellValueChanges),s.push(f),!0)}processAction(d,s,c){d.cellValueChanges.forEach(h=>{let{rowIndex:g,rowPinned:f,columnId:S}=h,w={rowIndex:g,rowPinned:f},M=(0,E._getRowNode)(this.beans,w);M.displayed&&M.setDataValue(S,s(h),c)})}processRange(d){let s,c=this.beans.rangeSvc;c.removeAllCellRanges(!0),d.forEach((h,g)=>{if(!h)return;let f=h.startRow,S=h.endRow;g===d.length-1&&(s={rowPinned:f.rowPinned,rowIndex:f.rowIndex,columnId:h.startColumn.getColId()},this.setLastFocusedCell(s));let w={rowStartIndex:f.rowIndex,rowStartPinned:f.rowPinned,rowEndIndex:S.rowIndex,rowEndPinned:S.rowPinned,columnStart:h.startColumn,columns:h.columns};c.addCellRange(w)})}processCell(d){let s=d[0],{rowIndex:c,rowPinned:h}=s,g={rowIndex:c,rowPinned:h},f=(0,E._getRowNode)(this.beans,g),S={rowPinned:s.rowPinned,rowIndex:f.rowIndex,columnId:s.columnId};this.setLastFocusedCell(S)}setLastFocusedCell(d){let{rowIndex:s,columnId:c,rowPinned:h}=d,{colModel:g,focusSvc:f,rangeSvc:S}=this.beans,w=g.getCol(c);if(!w)return;let{scrollFeature:M}=this.gridBodyCtrl;M.ensureIndexVisible(s),M.ensureColumnVisible(w);let P={rowIndex:s,column:w,rowPinned:h};f.setFocusedCell(He(ge({},P),{forceBrowserFocus:!0})),S==null||S.setRangeToCell(P)}addListeners(){this.addManagedEventListeners({rowEditingStarted:d=>{this.activeRowEdit={rowIndex:d.rowIndex,rowPinned:d.rowPinned}},rowEditingStopped:()=>{let d=new T.UndoRedoAction(this.cellValueChanges);this.pushActionsToUndoStack(d),this.activeRowEdit=null},cellEditingStarted:d=>{this.activeCellEdit={column:d.column,rowIndex:d.rowIndex,rowPinned:d.rowPinned}},cellEditingStopped:d=>{if(this.activeCellEdit=null,d.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){let s=new T.UndoRedoAction(this.cellValueChanges);this.pushActionsToUndoStack(s)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{let d=new T.UndoRedoAction(this.cellValueChanges);this.pushActionsToUndoStack(d),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:d=>{let s=new T.RangeUndoRedoAction(this.cellValueChanges,d.initialRange,d.finalRange);this.pushActionsToUndoStack(s),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let d,{rangeSvc:s,gos:c}=this.beans;d=s&&(0,z._isCellSelectionEnabled)(c)?new T.RangeUndoRedoAction(this.cellValueChanges,void 0,void 0,[...s.getCellRanges()]):new T.UndoRedoAction(this.cellValueChanges),this.pushActionsToUndoStack(d),this.isRangeInAction=!1}})}pushActionsToUndoStack(d){this.undoStack.push(d),this.cellValueChanges=[],this.redoStack.clear()}}x.UndoRedoService=b},2410:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.UndoRedoStack=x.RangeUndoRedoAction=x.UndoRedoAction=void 0;class p{constructor(E){this.cellValueChanges=E}}x.UndoRedoAction=p,x.RangeUndoRedoAction=class extends p{constructor(A,E,z,T){super(A),this.initialRange=E,this.finalRange=z,this.ranges=T}},x.UndoRedoStack=class{constructor(A){this.actionStack=[],this.maxStackSize=A||10,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(A){A.cellValueChanges&&A.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(A))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}}},5230:function(ae,x){function p(b,C,d){d==null||typeof d=="string"&&d==""?E(b,C):A(b,C,d)}function A(b,C,d){b.setAttribute(z(C),d.toString())}function E(b,C){b.removeAttribute(z(C))}function z(b){return`aria-${b}`}function T(b,C){p(b,"labelledby",C)}Object.defineProperty(x,"__esModule",{value:!0}),x._getAriaCheckboxStateName=x._setAriaControls=x._setAriaChecked=x._setAriaSelected=x._removeAriaSort=x._setAriaSort=x._setAriaColSpan=x._setAriaColIndex=x._setAriaColCount=x._setAriaRowIndex=x._setAriaRowCount=x._setAriaMultiSelectable=x._setAriaPosInSet=x._setAriaSetSize=x._removeAriaExpanded=x._setAriaExpanded=x._setAriaActiveDescendant=x._setAriaHidden=x._setAriaDisabled=x._setAriaLevel=x._setAriaRelevant=x._setAriaAtomic=x._setAriaLive=x._setAriaDescribedBy=x._setAriaLabelledBy=x._setAriaLabel=x._getAriaLabel=x._getAriaPosInSet=x._getAriaLevel=x._getAriaSortState=x._setAriaRole=void 0,x._setAriaRole=function(b,C){C?b.setAttribute("role",C):b.removeAttribute("role")},x._getAriaSortState=function(b){let C;return C=b==="asc"?"ascending":b==="desc"?"descending":b==="mixed"?"other":"none",C},x._getAriaLevel=function(b){return parseInt(b.getAttribute("aria-level"),10)},x._getAriaPosInSet=function(b){return parseInt(b.getAttribute("aria-posinset"),10)},x._getAriaLabel=function(b){return b.getAttribute("aria-label")},x._setAriaLabel=function(b,C){p(b,"label",C)},x._setAriaLabelledBy=T,x._setAriaDescribedBy=function(b,C){p(b,"describedby",C)},x._setAriaLive=function(b,C){p(b,"live",C)},x._setAriaAtomic=function(b,C){p(b,"atomic",C)},x._setAriaRelevant=function(b,C){p(b,"relevant",C)},x._setAriaLevel=function(b,C){p(b,"level",C)},x._setAriaDisabled=function(b,C){p(b,"disabled",C)},x._setAriaHidden=function(b,C){p(b,"hidden",C)},x._setAriaActiveDescendant=function(b,C){p(b,"activedescendant",C)},x._setAriaExpanded=function(b,C){A(b,"expanded",C)},x._removeAriaExpanded=function(b){E(b,"expanded")},x._setAriaSetSize=function(b,C){A(b,"setsize",C)},x._setAriaPosInSet=function(b,C){A(b,"posinset",C)},x._setAriaMultiSelectable=function(b,C){A(b,"multiselectable",C)},x._setAriaRowCount=function(b,C){A(b,"rowcount",C)},x._setAriaRowIndex=function(b,C){A(b,"rowindex",C)},x._setAriaColCount=function(b,C){A(b,"colcount",C)},x._setAriaColIndex=function(b,C){A(b,"colindex",C)},x._setAriaColSpan=function(b,C){A(b,"colspan",C)},x._setAriaSort=function(b,C){A(b,"sort",C)},x._removeAriaSort=function(b){E(b,"sort")},x._setAriaSelected=function(b,C){p(b,"selected",C)},x._setAriaChecked=function(b,C){A(b,"checked",C===void 0?"mixed":C)},x._setAriaControls=function(b,C){p(b,"controls",C.id),T(C,b.id)},x._getAriaCheckboxStateName=function(b,C){return C===void 0?b("ariaIndeterminate","indeterminate"):C===!0?b("ariaChecked","checked"):b("ariaUnchecked","unchecked")}},1502:function(ae,x){function p(A,E){let z=A.indexOf(E);z>=0&&A.splice(z,1)}Object.defineProperty(x,"__esModule",{value:!0}),x._moveInArray=x._removeFromArray=x._sortNumerically=x._areEqual=x._last=x._EmptyArray=void 0,x._EmptyArray=Object.freeze([]),x._last=function(A){if(A!=null&&A.length)return A[A.length-1]},x._areEqual=function(A,E,z){return A==null&&E==null||A!=null&&E!=null&&A.length===E.length&&A.every((T,b)=>z?z(T,E[b]):E[b]===T)},x._sortNumerically=function(A){return A.sort((E,z)=>E-z)},x._removeFromArray=p,x._moveInArray=function(A,E,z){for(let T=0;T<E.length;T++)p(A,E[T]);for(let T=E.length-1;T>=0;T--)A.splice(z,0,E[T])}},8667:function(ae,x){let p,A,E,z,T,b,C,d;function s(){return E===void 0&&(E=/(firefox)/i.test(navigator.userAgent)),E}function c(){let h=document.body,g=document.createElement("div");g.style.width=g.style.height="100px",g.style.opacity="0",g.style.overflow="scroll",g.style.msOverflowStyle="scrollbar",g.style.position="absolute",h.appendChild(g);let f=g.offsetWidth-g.clientWidth;f===0&&g.clientWidth===0&&(f=null),g.parentNode&&g.parentNode.removeChild(g),f!=null&&(C=f,b=f===0)}Object.defineProperty(x,"__esModule",{value:!0}),x._isInvisibleScrollbar=x._getScrollbarWidth=x._getMaxDivHeight=x._getTabIndex=x._isIOSUserAgent=x._isMacOsUserAgent=x._isBrowserFirefox=x._isBrowserChrome=x._isBrowserSafari=void 0,x._isBrowserSafari=function(){return p===void 0&&(p=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),p},x._isBrowserChrome=function(){if(A===void 0){let h=window;A=!!h.chrome&&(!!h.chrome.webstore||!!h.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return A},x._isBrowserFirefox=s,x._isMacOsUserAgent=function(){return z===void 0&&(z=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),z},x._isIOSUserAgent=function(){return T===void 0&&(T=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),T},x._getTabIndex=function(h){if(!h)return null;let g=h.tabIndex,f=h.getAttribute("tabIndex");return g!==-1||f!==null&&(f!==""||s())?g.toString():null},x._getMaxDivHeight=function(){if(d!==void 0)return d;if(!document.body)return-1;let h=1e6,g=s()?6e6:1e9,f=document.createElement("div");for(document.body.appendChild(f);;){let S=2*h;if(f.style.height=S+"px",S>g||f.clientHeight!==S)break;h=S}return document.body.removeChild(f),d=h,h},x._getScrollbarWidth=function(){return C==null&&c(),C},x._isInvisibleScrollbar=function(){return b==null&&c(),b}},6800:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.ChangedPath=void 0,x.ChangedPath=class{constructor(p,A){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=p,this.pathRoot={rowNode:A,children:null},this.mapToItems[A.id]=this.pathRoot}depthFirstSearchChangedPath(p,A){let{rowNode:E,children:z}=p;if(z)for(let T=0;T<z.length;++T)this.depthFirstSearchChangedPath(z[T],A);A(E)}depthFirstSearchEverything(p,A,E){let z=p.childrenAfterGroup;if(z)for(let T=0,b=z.length;T<b;++T){let C=z[T];C.childrenAfterGroup?this.depthFirstSearchEverything(C,A,E):E&&A(C)}A(p)}forEachChangedNodeDepthFirst(p,A=!1,E=!1){this.active&&!E?this.depthFirstSearchChangedPath(this.pathRoot,p):this.depthFirstSearchEverything(this.pathRoot.rowNode,p,A)}executeFromRootNode(p){p(this.pathRoot.rowNode)}createPathItems(p){let A=p,E=0;for(;!this.mapToItems[A.id];){let z={rowNode:A,children:null};this.mapToItems[A.id]=z,E++,A=A.parent}return E}populateColumnsMap(p,A){if(!this.keepingColumns||!A)return;let E=p;for(;E;)this.nodeIdsToColumns[E.id]||(this.nodeIdsToColumns[E.id]={}),A.forEach(z=>this.nodeIdsToColumns[E.id][z.getId()]=!0),E=E.parent}linkPathItems(p,A){let E=p;for(let z=0;z<A;z++){let T=this.mapToItems[E.id],b=this.mapToItems[E.parent.id];b.children||(b.children=[]),b.children.push(T),E=E.parent}}addParentNode(p,A){if(!p||p.isRowPinned())return;let E=this.createPathItems(p);this.linkPathItems(p,E),this.populateColumnsMap(p,A)}canSkip(p){return this.active&&!this.mapToItems[p.id]}getValueColumnsForNode(p,A){if(!this.keepingColumns)return A;let E=this.nodeIdsToColumns[p.id];return A.filter(z=>E[z.getId()])}getNotValueColumnsForNode(p,A){if(!this.keepingColumns)return null;let E=this.nodeIdsToColumns[p.id];return A.filter(z=>!E[z.getId()])}}},9827:function(ae,x){function p(E,z){return E.toString().padStart(z,"0")}Object.defineProperty(x,"__esModule",{value:!0}),x._parseDateTimeFromString=x._dateToFormattedString=x._serialiseDate=void 0,x._serialiseDate=function(E,z=!0,T="-"){if(!E)return null;let b=[E.getFullYear(),E.getMonth()+1,E.getDate()].map(C=>p(C,2)).join(T);return z&&(b+=" "+[E.getHours(),E.getMinutes(),E.getSeconds()].map(C=>p(C,2)).join(":")),b};let A=E=>{if(E>3&&E<21)return"th";switch(E%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};x._dateToFormattedString=function(E,z="YYYY-MM-DD"){let T=p(E.getFullYear(),4),b=["January","February","March","April","May","June","July","August","September","October","November","December"],C=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d={YYYY:()=>T.slice(T.length-4,T.length),YY:()=>T.slice(T.length-2,T.length),Y:()=>`${E.getFullYear()}`,MMMM:()=>b[E.getMonth()],MMM:()=>b[E.getMonth()].slice(0,3),MM:()=>p(E.getMonth()+1,2),Mo:()=>`${E.getMonth()+1}${A(E.getMonth()+1)}`,M:()=>`${E.getMonth()+1}`,Do:()=>`${E.getDate()}${A(E.getDate())}`,DD:()=>p(E.getDate(),2),D:()=>`${E.getDate()}`,dddd:()=>C[E.getDay()],ddd:()=>C[E.getDay()].slice(0,3),dd:()=>C[E.getDay()].slice(0,2),do:()=>`${E.getDay()}${A(E.getDay())}`,d:()=>`${E.getDay()}`},s=new RegExp(Object.keys(d).join("|"),"g");return z.replace(s,c=>c in d?d[c]():c)},x._parseDateTimeFromString=function(E){if(!E)return null;let[z,T]=E.split(" ");if(!z)return null;let b=z.split("-").map(S=>parseInt(S,10));if(b.filter(S=>!isNaN(S)).length!==3)return null;let[C,d,s]=b,c=new Date(C,d-1,s);if(c.getFullYear()!==C||c.getMonth()!==d-1||c.getDate()!==s)return null;if(!T||T==="00:00:00")return c;let[h,g,f]=T.split(":").map(S=>parseInt(S,10));return h>=0&&h<24&&c.setHours(h),g>=0&&g<60&&c.setMinutes(g),f>=0&&f<60&&c.setSeconds(f),c}},3507:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._observeResize=x._bindCellRendererToHtmlElement=x._nodeListForEach=x._addOrRemoveAttribute=x._iterateNamedNodeMap=x._copyNodeList=x._isNodeOrElement=x._formatSize=x._setFixedHeight=x._setElementHeight=x._setFixedWidth=x._setElementWidth=x._isVerticalScrollShowing=x._isHorizontalScrollShowing=x._addStylesToElement=x._insertWithDomOrder=x._setDomChildOrder=x._ensureDomOrder=x._loadTemplate=x._isVisible=x._isInDOM=x._removeFromParent=x._clearElement=x._setScrollLeft=x._getScrollLeft=x._isRtlNegativeScroll=x._getElementRectWithOffset=x._getAbsoluteWidth=x._getAbsoluteHeight=x._getInnerWidth=x._getInnerHeight=x._getElementSize=x._isElementChildOfClass=x._setDisabled=x._setVisible=x._setDisplayed=x._isFocusableFormField=x.FOCUSABLE_EXCLUDE=x.FOCUSABLE_SELECTOR=x._radioCssClass=void 0;let A=p(7274),E=p(5230),z=p(8667),T;function b(S){let{height:w,width:M,borderTopWidth:P,borderRightWidth:O,borderBottomWidth:G,borderLeftWidth:j,paddingTop:Y,paddingRight:J,paddingBottom:ne,paddingLeft:ce,marginTop:fe,marginRight:xe,marginBottom:Le,marginLeft:_e,boxSizing:Fe}=window.getComputedStyle(S);return{height:parseFloat(w||"0"),width:parseFloat(M||"0"),borderTopWidth:parseFloat(P||"0"),borderRightWidth:parseFloat(O||"0"),borderBottomWidth:parseFloat(G||"0"),borderLeftWidth:parseFloat(j||"0"),paddingTop:parseFloat(Y||"0"),paddingRight:parseFloat(J||"0"),paddingBottom:parseFloat(ne||"0"),paddingLeft:parseFloat(ce||"0"),marginTop:parseFloat(fe||"0"),marginRight:parseFloat(xe||"0"),marginBottom:parseFloat(Le||"0"),marginLeft:parseFloat(_e||"0"),boxSizing:Fe}}function C(){if(typeof T=="boolean")return T;let S=document.createElement("div");return S.style.direction="rtl",S.style.width="1px",S.style.height="1px",S.style.position="fixed",S.style.top="0px",S.style.overflow="hidden",S.dir="rtl",S.innerHTML=`<div style="width: 2px">
            <span style="display: inline-block; width: 1px"></span>
            <span style="display: inline-block; width: 1px"></span>
        </div>`,document.body.appendChild(S),S.scrollLeft=1,T=Math.floor(S.scrollLeft)===0,document.body.removeChild(S),T}function d(S){return!!S.offsetParent}function s(S){let w=S;return w.checkVisibility?w.checkVisibility({checkVisibilityCSS:!0}):!(!d(S)||window.getComputedStyle(S).visibility!=="visible")}function c(S,w){w=g(w),S.style.width=w.toString(),S.style.maxWidth=w.toString(),S.style.minWidth=w.toString()}function h(S,w){w=g(w),S.style.height=w.toString(),S.style.maxHeight=w.toString(),S.style.minHeight=w.toString()}function g(S){return typeof S=="number"?`${S}px`:S}function f(S,w){if(S!=null)for(let M=0;M<S.length;M++)w(S[M])}x._radioCssClass=function(S,w,M){let P=S.parentElement,O=P&&P.firstChild;for(;O;)w&&O.classList.toggle(w,O===S),M&&O.classList.toggle(M,O!==S),O=O.nextSibling},x.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea, [href]",x.FOCUSABLE_EXCLUDE="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *",x._isFocusableFormField=function(S){let w=Element.prototype.matches||Element.prototype.msMatchesSelector,M=w.call(S,"input, select, button, textarea"),P=w.call(S,x.FOCUSABLE_EXCLUDE),O=s(S);return M&&!P&&O},x._setDisplayed=function(S,w,M={}){let{skipAriaHidden:P}=M;S.classList.toggle("ag-hidden",!w),P||(0,E._setAriaHidden)(S,!w)},x._setVisible=function(S,w,M={}){let{skipAriaHidden:P}=M;S.classList.toggle("ag-invisible",!w),P||(0,E._setAriaHidden)(S,!w)},x._setDisabled=function(S,w){let M="disabled",P=w?O=>O.setAttribute(M,""):O=>O.removeAttribute(M);P(S),f(S.querySelectorAll("input"),O=>P(O))},x._isElementChildOfClass=function(S,w,M){let P=0;for(;S;){if(S.classList.contains(w))return!0;if(S=S.parentElement,typeof M=="number"){if(++P>M)break}else if(S===M)break}return!1},x._getElementSize=b,x._getInnerHeight=function(S){let w=b(S);return w.boxSizing==="border-box"?w.height-w.paddingTop-w.paddingBottom:w.height},x._getInnerWidth=function(S){let w=b(S);return w.boxSizing==="border-box"?w.width-w.paddingLeft-w.paddingRight:w.width},x._getAbsoluteHeight=function(S){let{height:w,marginBottom:M,marginTop:P}=b(S);return Math.floor(w+M+P)},x._getAbsoluteWidth=function(S){let{width:w,marginLeft:M,marginRight:P}=b(S);return Math.floor(w+M+P)},x._getElementRectWithOffset=function(S){let w=S.getBoundingClientRect(),{borderTopWidth:M,borderLeftWidth:P,borderRightWidth:O,borderBottomWidth:G}=b(S);return{top:w.top+(M||0),left:w.left+(P||0),right:w.right+(O||0),bottom:w.bottom+(G||0)}},x._isRtlNegativeScroll=C,x._getScrollLeft=function(S,w){let M=S.scrollLeft;return w&&(M=Math.abs(M),(0,z._isBrowserChrome)()&&!C()&&(M=S.scrollWidth-S.getBoundingClientRect().width-M)),M},x._setScrollLeft=function(S,w,M){M&&(C()?w*=-1:((0,z._isBrowserSafari)()||(0,z._isBrowserChrome)())&&(w=S.scrollWidth-S.getBoundingClientRect().width-w)),S.scrollLeft=w},x._clearElement=function(S){for(;S&&S.firstChild;)S.removeChild(S.firstChild)},x._removeFromParent=function(S){S&&S.parentNode&&S.parentNode.removeChild(S)},x._isInDOM=d,x._isVisible=s,x._loadTemplate=function(S){let w=document.createElement("div");return w.innerHTML=(S||"").trim(),w.firstChild},x._ensureDomOrder=function(S,w,M){M&&M.nextSibling===w||(M?M.nextSibling?S.insertBefore(w,M.nextSibling):S.appendChild(w):S.firstChild&&S.firstChild!==w&&S.insertAdjacentElement("afterbegin",w))},x._setDomChildOrder=function(S,w){for(let M=0;M<w.length;M++){let P=w[M],O=S.children[M];O!==P&&S.insertBefore(P,O)}},x._insertWithDomOrder=function(S,w,M){M?M.insertAdjacentElement("afterend",w):S.firstChild?S.insertAdjacentElement("afterbegin",w):S.appendChild(w)},x._addStylesToElement=function(S,w){if(w)for(let[M,P]of Object.entries(w)){if(!M||!M.length||P==null)continue;let O=M.replace(/[A-Z]/g,J=>`-${J.toLocaleLowerCase()}`),G=P.toString(),j=G.replace(/\s*!important/g,""),Y=j.length!=G.length?"important":void 0;S.style.setProperty(O,j,Y)}},x._isHorizontalScrollShowing=function(S){return S.clientWidth<S.scrollWidth},x._isVerticalScrollShowing=function(S){return S.clientHeight<S.scrollHeight},x._setElementWidth=function(S,w){w==="flex"?(S.style.removeProperty("width"),S.style.removeProperty("minWidth"),S.style.removeProperty("maxWidth"),S.style.flex="1 1 auto"):c(S,w)},x._setFixedWidth=c,x._setElementHeight=function(S,w){w==="flex"?(S.style.removeProperty("height"),S.style.removeProperty("minHeight"),S.style.removeProperty("maxHeight"),S.style.flex="1 1 auto"):h(S,w)},x._setFixedHeight=h,x._formatSize=g,x._isNodeOrElement=function(S){return S instanceof Node||S instanceof HTMLElement},x._copyNodeList=function(S){if(S==null)return[];let w=[];return f(S,M=>w.push(M)),w},x._iterateNamedNodeMap=function(S,w){if(S)for(let M=0;M<S.length;M++){let P=S[M];w(P.name,P.value)}},x._addOrRemoveAttribute=function(S,w,M){M==null||M===""?S.removeAttribute(w):S.setAttribute(w,M.toString())},x._nodeListForEach=f,x._bindCellRendererToHtmlElement=function(S,w){S.then(M=>{let P=M.getGui();P!=null&&(typeof P=="object"?w.appendChild(P):w.innerHTML=P)})},x._observeResize=function(S,w,M){let P=(0,A._getWindow)(S).ResizeObserver,O=P?new P(M):null;return O==null||O.observe(w),()=>O==null?void 0:O.disconnect()}},2979:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getPassiveStateForEvent=x._addSafePassiveEventListener=x._getEventPath=x._createEventPath=x._isElementInEventPath=x._getCtrlForEventTarget=x._isEventSupported=x._isStopPropagationForAgGrid=x._stopPropagationForAgGrid=void 0;let A=p(7274),E="__ag_Grid_Stop_Propagation",z=["touchstart","touchend","touchmove","touchcancel","scroll"],T=["wheel"],b={};function C(s){let c=[],h=s.target;for(;h;)c.push(h),h=h.parentElement;return c}function d(s){let c=s;return c.path?c.path:c.composedPath?c.composedPath():C(c)}x._stopPropagationForAgGrid=function(s){s[E]=!0},x._isStopPropagationForAgGrid=function(s){return s[E]===!0},x._isEventSupported=(()=>{let s={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return c=>{if(typeof b[c]=="boolean")return b[c];let h=document.createElement(s[c]||"div");return b[c="on"+c]=c in h}})(),x._getCtrlForEventTarget=function(s,c,h){let g=c;for(;g;){let f=(0,A._getDomData)(s,g,h);if(f)return f;g=g.parentElement}return null},x._isElementInEventPath=function(s,c){return!(!c||!s)&&d(c).indexOf(s)>=0},x._createEventPath=C,x._getEventPath=d,x._addSafePassiveEventListener=function(s,c,h,g){let f=(0,x.getPassiveStateForEvent)(h),S;f!=null&&(S={passive:f}),s&&s.addEventListener&&s.addEventListener(c,h,g,S)},x.getPassiveStateForEvent=s=>{let c=z.includes(s),h=T.includes(s);return!!c||!h&&void 0}},2331:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._focusNextGridCoreContainer=x._isCellFocusSuppressed=x._isHeaderFocusSuppressed=x._focusGridInnerElement=x._findTabbableParent=x._findNextFocusableElement=x._focusInto=x._findFocusableElements=x._addFocusableContainerListener=x._isKeyboardMode=x._registerKeyboardFocusEvents=void 0;let A=p(9853),E=p(7274),z=p(1502),T=p(8667),b=p(3507),C=!1,d=0;function s(f){let S=C,w=f.type==="keydown";w&&(f.ctrlKey||f.metaKey||f.altKey)||S!==w&&(C=w)}function c(f,S,w=!1){let M=b.FOCUSABLE_SELECTOR,P=b.FOCUSABLE_EXCLUDE;S&&(P+=", "+S),w&&(P+=', [tabindex="-1"]');let O=Array.prototype.slice.apply(f.querySelectorAll(M)).filter(Y=>(0,b._isVisible)(Y)),G=Array.prototype.slice.apply(f.querySelectorAll(P));if(!G.length)return O;return j=G,O.filter(Y=>j.indexOf(Y)===-1);var j}function h(f,S,w,M){let P=c(S,w?':not([tabindex="-1"])':null),O=(0,E._getActiveDomElement)(f),G;G=w?P.findIndex(Y=>Y.contains(O)):P.indexOf(O);let j=G+(M?-1:1);return j<0||j>=P.length?null:P[j]}function g(f,S,w=!1){let M=f.ctrlsSvc.get("gridCtrl");return!(w||!M.focusNextInnerContainer(S))||((w||!S&&!M.isDetailGrid())&&M.forceFocusOutOfContainer(S),!1)}x._registerKeyboardFocusEvents=function(f){let S=(0,E._getDocument)(f);var w;return w=S,d>0||(w.addEventListener("keydown",s),w.addEventListener("mousedown",s)),d++,()=>{d--,function(M){d>0||(M.removeEventListener("keydown",s),M.removeEventListener("mousedown",s))}(S)}},x._isKeyboardMode=function(){return C},x._addFocusableContainerListener=function(f,S,w){S.addManagedElementListeners(w,{keydown:M=>{if(!M.defaultPrevented&&M.key===A.KeyCode.TAB){let P=M.shiftKey;h(f,w,!1,P)||g(f,P)&&M.preventDefault()}}})},x._findFocusableElements=c,x._focusInto=function(f,S=!1,w=!1){let M=c(f,null,w),P=S?(0,z._last)(M):M[0];return!!P&&(P.focus({preventScroll:!0}),!0)},x._findNextFocusableElement=h,x._findTabbableParent=function(f,S=5){let w=0;for(;f&&(0,T._getTabIndex)(f)===null&&++w<=S;)f=f.parentElement;return(0,T._getTabIndex)(f)===null?null:f},x._focusGridInnerElement=function(f,S){return f.ctrlsSvc.get("gridCtrl").focusInnerElement(S)},x._isHeaderFocusSuppressed=function(f){var S;return f.gos.get("suppressHeaderFocus")||!!((S=f.overlays)!=null&&S.isExclusive())},x._isCellFocusSuppressed=function(f){var S;return f.gos.get("suppressCellFocus")||!!((S=f.overlays)!=null&&S.isExclusive())},x._focusNextGridCoreContainer=g},2043:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x._waitUntil=x._throttle=x._debounce=x._executeNextVMTurn=x._errorOnce=x._warnOnce=x._logIfDebug=x._doOnce=void 0;let p={};function A(b,C){p[C]||(b(),p[C]=!0)}function E(b,...C){A(()=>console.warn("AG Grid: "+b,...C),b+(C==null?void 0:C.join("")))}x._doOnce=A,x._logIfDebug=function(b,C,...d){b.get("debug")&&console.log("AG Grid: "+C,...d)},x._warnOnce=E,x._errorOnce=function(b,...C){A(()=>console.error("AG Grid: "+b,...C),b+(C==null?void 0:C.join("")))};let z=[],T=!1;x._executeNextVMTurn=function(b){z.push(b),T||(T=!0,window.setTimeout(()=>{let C=z.slice();z.length=0,T=!1,C.forEach(d=>d())},0))},x._debounce=function(b,C,d){let s;return function(...c){let h=this;window.clearTimeout(s),s=window.setTimeout(function(){b.isAlive()&&C.apply(h,c)},d)}},x._throttle=function(b,C){let d=0;return function(...s){let c=new Date().getTime();c-d<C||(d=c,b.apply(this,s))}},x._waitUntil=function(b,C,d=100,s){let c=new Date().getTime(),h=null,g=!1,f=()=>{let S=new Date().getTime()-c>d;(b()||S)&&(C(),g=!0,h!=null&&(window.clearInterval(h),h=null),S&&s&&E(s))};f(),g||(h=window.setInterval(f,10))}},1298:function(ae,x){function p(A,E,z=!1){let T=A.replace(/\s/g,""),b=E.replace(/\s/g,""),C=T.length,d=b.length,s=new Array(C+1).fill(null).map(()=>new Array(d+1).fill(0));for(let g=0;g<=C;g+=1)s[g][0]=g;for(let g=0;g<=d;g+=1)s[0][g]=g;for(let g=1;g<=C;g++)for(let f=1;f<=d;f++)T[g-1]===b[f-1]?s[g][f]=s[g-1][f-1]:s[g][f]=1+Math.min(s[g][f-1],Math.min(s[g-1][f],s[g-1][f-1]));let c=s[C][d],h=Math.max(C,d)-c;if(z){let g=function(f){let S=[],w=f.length;for(let M=1;M<=w;M++)for(let P=0;P<=w-M;P++){let O=P+M-1;S.push(f.slice(P,O+1))}return S}(T);for(let f=0;f<g.length;f++){let S=g[f];b.indexOf(S)!==-1&&(h+=1,h*=S.length)}}return h}Object.defineProperty(x,"__esModule",{value:!0}),x._fuzzySuggestions=void 0,x._fuzzySuggestions=function(A){let{inputValue:E,allSuggestions:z,hideIrrelevant:T,filterByPercentageOfBestMatch:b,addSequentialWeight:C}=A,d=z.map((h,g)=>({value:h,relevance:p(E.toLowerCase(),h.toLocaleLowerCase(),C),idx:g}));if(d.sort((h,g)=>g.relevance-h.relevance),T&&(d=d.filter(h=>h.relevance!==0)),d.length>0&&b&&b>0){let h=d[0].relevance*b;d=d.filter(g=>h-g.relevance<0)}let s=[],c=[];for(let h of d)s.push(h.value),c.push(h.idx);return{values:s,indices:c}}},4422:function(ae,x){function p(A){return A!=null&&A!==""}Object.defineProperty(x,"__esModule",{value:!0}),x._defaultComparator=x._jsonEquals=x._toStringOrNull=x._missing=x._exists=x._makeNull=void 0,x._makeNull=function(A){return A==null||A===""?null:A},x._exists=p,x._missing=function(A){return!p(A)},x._toStringOrNull=function(A){return A!=null&&typeof A.toString=="function"?A.toString():null},x._jsonEquals=function(A,E){return(A?JSON.stringify(A):null)===(E?JSON.stringify(E):null)},x._defaultComparator=function(A,E,z=!1){let T=A==null,b=E==null;if(A&&A.toNumber&&(A=A.toNumber()),E&&E.toNumber&&(E=E.toNumber()),T&&b)return 0;if(T)return-1;if(b)return 1;function C(d,s){return d>s?1:d<s?-1:0}if(typeof A!="string"||!z)return C(A,E);try{return A.localeCompare(E)}catch(d){return C(A,E)}}},9970:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._createIconNoSpan=x._createIcon=void 0;let A=p(7764),E=p(5230),z=p(3507);function T(b,C,d){var h;let s=null;b==="smallDown"?(0,A._warn)(262):b==="smallLeft"?(0,A._warn)(263):b==="smallRight"&&(0,A._warn)(264);let c=d&&d.getColDef().icons;if(c&&(s=c[b]),C.gos&&!s){let g=C.gos.get("icons");g&&(s=g[b])}if(s){let g;if(typeof s=="function")g=s();else{if(typeof s!="string")return void(0,A._warn)(38,{iconName:b});g=s}return typeof g=="string"?(0,z._loadTemplate)(g):(0,z._isNodeOrElement)(g)?g:void(0,A._warn)(133,{iconName:b})}{let g=document.createElement("span"),f=C.registry.getIcon(b);f||((h=C.validation)==null||h.validateIcon(b));let S=f!=null?f:b;return g.setAttribute("class",`ag-icon ag-icon-${S}`),g.setAttribute("unselectable","on"),(0,E._setAriaRole)(g,"presentation"),g}}x._createIcon=function(b,C,d){let s=T(b,C,d);if(s){let{className:h}=s;if(typeof h=="string"&&h.indexOf("ag-icon")>-1||typeof h=="object"&&h["ag-icon"])return s}let c=document.createElement("span");return c.appendChild(s),c},x._createIconNoSpan=T},6466:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x._isUserSuppressingKeyboardEvent=x._isEventFromPrintableCharacter=void 0,x._isEventFromPrintableCharacter=function(p){var A;return!(p.altKey||p.ctrlKey||p.metaKey)&&((A=p.key)==null?void 0:A.length)===1},x._isUserSuppressingKeyboardEvent=function(p,A,E,z,T){let b=z?z.getColDef().suppressKeyboardEvent:void 0;if(!b)return!1;let C=p.addGridCommonParams({event:A,editing:T,column:z,node:E,data:E.data,colDef:z.getColDef()});return!!(b&&b(C))}},3276:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x._areEventsNear=void 0,x._areEventsNear=function(p,A,E){if(E===0)return!1;let z=Math.abs(p.clientX-A.clientX),T=Math.abs(p.clientY-A.clientY);return Math.max(z,T)<=E}},7698:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x._formatNumberCommas=void 0,x._formatNumberCommas=function(p,A){if(typeof p!="number")return"";let E=A(),z=E("thousandSeparator",","),T=E("decimalSeparator",".");return p.toString().replace(".",T).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${z}`)}},6996:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._getValueUsingField=x._mergeDeep=x.SKIP_JS_BUILTINS=void 0;let A=p(4422);function E(z){return typeof z=="object"&&z!==null}x.SKIP_JS_BUILTINS=new Set(["__proto__","constructor","prototype"]),x._mergeDeep=function z(T,b,C=!0,d=!1){(0,A._exists)(b)&&function(s,c){if(s!=null)if(Array.isArray(s))for(let h=0;h<s.length;h++)c(h.toString(),s[h]);else for(let[h,g]of Object.entries(s))c(h,g)}(b,(s,c)=>{if(x.SKIP_JS_BUILTINS.has(s))return;let h=T[s];h!==c&&(d&&h==null&&c!=null&&typeof c=="object"&&c.constructor===Object&&(h={},T[s]=h),E(c)&&E(h)&&!Array.isArray(h)?z(h,c,C,d):(C||c!==void 0)&&(T[s]=c))})},x._getValueUsingField=function(z,T,b){if(!T||!z)return;if(!b)return z[T];let C=T.split("."),d=z;for(let s=0;s<C.length;s++){if(d==null)return;d=d[C[s]]}return d}},7990:function(ae,x){var p;Object.defineProperty(x,"__esModule",{value:!0}),x.AgPromise=x._isPromise=void 0,x._isPromise=function(E){return typeof E.then=="function"},function(E){E[E.IN_PROGRESS=0]="IN_PROGRESS",E[E.RESOLVED=1]="RESOLVED"}(p||(p={}));class A{static all(z){return z.length?new A(T=>{let b=z.length,C=new Array(b);z.forEach((d,s)=>{d.then(c=>{C[s]=c,b--,b===0&&T(C)})})}):A.resolve()}static resolve(z=null){return new A(T=>T(z))}constructor(z){this.status=p.IN_PROGRESS,this.resolution=null,this.waiters=[],z(T=>this.onDone(T),T=>this.onReject(T))}then(z){return new A(T=>{this.status===p.RESOLVED?T(z(this.resolution)):this.waiters.push(b=>T(z(b)))})}onDone(z){this.status=p.RESOLVED,this.resolution=z,this.waiters.forEach(T=>T(z))}onReject(z){}}x.AgPromise=A},7766:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x._escapeString=void 0;let p=/[&<>"']/g,A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};x._escapeString=function(E,z){if(E==null)return null;let T=E.toString().toString();return z?T:T.replace(p,b=>A[b])}},8179:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.validateApiFunction=void 0;let A=p(2043),E="clientSide",z="serverSide",T="infinite",b={onGroupExpandedOrCollapsed:[E],refreshClientSideRowModel:[E],isRowDataEmpty:[E],forEachLeafNode:[E],forEachNodeAfterFilter:[E],forEachNodeAfterFilterAndSort:[E],resetRowHeights:[E],applyTransaction:[E],applyTransactionAsync:[E],flushAsyncTransactions:[E],getBestCostNodeSelection:[E],getServerSideSelectionState:[z],setServerSideSelectionState:[z],applyServerSideTransaction:[z],applyServerSideTransactionAsync:[z],applyServerSideRowData:[z],retryServerSideLoads:[z],flushServerSideAsyncTransactions:[z],refreshServerSide:[z],getServerSideGroupLevelState:[z],refreshInfiniteCache:[T],purgeInfiniteCache:[T],getInfiniteRowCount:[T],isLastRowIndexKnown:[T,z],expandAll:[E,z],collapseAll:[E,z],onRowHeightChanged:[E,z],setRowCount:[T,z],getCacheBlockState:[T,z]},C={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}};x.validateApiFunction=function(d,s,c){let h=C[d];if(h){let{version:f,new:S,old:w,message:M}=h,P=w!=null?w:d;return(...O)=>{let G=S?`Please use ${S} instead. `:"";return(0,A._warnOnce)(`Since ${f} api.${P} is deprecated. ${G}${M!=null?M:""}`),s.apply(s,O)}}let g=b[d];return g?(...f)=>{let S=c.rowModel.getType();if(g.includes(S))return s.apply(s,f);(0,A._errorOnce)(`api.${d} can only be called when gridOptions.rowModelType is ${g.join(" or ")}`)}:s}},8732:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.ENTERPRISE_MODULE_NAMES=void 0,x.ENTERPRISE_MODULE_NAMES={AdvancedFilter:1,AllEnterprise:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,Pivot:1,RangeSelection:1,RichSelect:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1}},5205:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.MISSING_MODULE_REASONS=x.getError=x.AG_GRID_ERRORS=x.moduleImportMsg=void 0;let A=p(1298),E=p(8732),z=p(7764),T=p(342),b=p(1389);function C(c){return`${c}Module`}x.moduleImportMsg=c=>`import { ModuleRegistry } from 'ag-grid-community'; 
${c.map(h=>`import { ${C(h)} } from '${E.ENTERPRISE_MODULE_NAMES[h]?"ag-grid-enterprise":"ag-grid-community"}';`).join(` 
`)} 

ModuleRegistry.registerModules([ ${c.map(C).join(", ")} ]); 

For more info see: ${z.baseDocLink}/modules/`;let d=({reasonOrId:c,moduleName:h,gridScoped:g,gridId:f,rowModelType:S,additionalText:w})=>{let M=(0,T.resolveModuleNames)(h,S);return`Unable to use ${typeof c=="string"?c:x.MISSING_MODULE_REASONS[c]} as ${M.length>1?"one of "+M.map(C).join(", "):C(M[0])} is not registered${g?" for gridId: "+f:""}. Check if you have registered the module:
${(0,x.moduleImportMsg)(M)}`+(w?` 

${w}`:"")},s=c=>`${c} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.

import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
import { ModuleRegistry } from 'ag-grid-community';
import { ${c} } from 'ag-grid-enterprise';
    
ModuleRegistry.registerModules([${c}.with(AgChartsEnterpriseModule)]);
    `;x.AG_GRID_ERRORS={1:()=>"`rowData` must be an array",2:({nodeId:c})=>`Duplicate node id '${c}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:c})=>`Could not find row id=${c}, data item was not found for this id`,5:({data:c})=>["Could not find data item as object was not found.",c," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different columns in each grid.",8:({key:c})=>`Unknown key for navigation ${c}`,9:({variable:c})=>`No value for ${c.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${c.defaultValue} will be used and updated when styles load.`,10:({eventType:c})=>`As of v33, the '${c}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:c})=>["column ",c," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:c})=>`Row IDs cannot start with ${c}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:c})=>["value should be either a string or a function",c],16:({expression:c,params:h,e:g})=>["Processing of the expression failed","Expression = ",c,"Params = ",h,"Exception = ",g],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>`You may want to configure via a callback to avoid setup race conditions:
                     "alignedGrids: () => [linkedGrid]"`,21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:c})=>`${c} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>"row height must be a number if not using standard row model",25:({id:c})=>["The getRowId callback must return a string. The ID ",c," is being cast to a string."],26:({fnName:c,preDestroyLink:h})=>`Grid API function ${c}() cannot be called as the grid has been destroyed.
 Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
 To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${h}`,27:({fnName:c,module:h})=>`API function '${c}' not registered to module '${h}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:c})=>["tried to insert columns in invalid location, toIndex = ",c,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:c})=>`the column type '${c}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:c})=>"colDef.type '"+c+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:c})=>`provided icon '${c}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e:c,method:h})=>`${c}
${(g=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${g}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`)(h)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:c})=>`As of v33, icon '${c}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:c})=>`The data type definition ${c} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:c})=>`Missing data type definition - "${c}"`,48:({property:c})=>`Cell data type is "object" but no Value ${c} has been provided. Please either provide an object data type definition with a Value ${c}, or set "colDef.value${c}"`,49:({methodName:c})=>`Framework component is missing the method ${c}()`,50:({compName:c})=>`Could not find component ${c}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:c})=>`setFilterModel() - no column found for colId: ${c}`,63:({colId:c})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${c}`,64:({colId:c})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${c}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:c})=>`getGui method from filter returned ${c}; it should be a DOM element.`,70:({newFilter:c})=>"Grid option quickFilterText only supports string inputs, received: "+typeof c,71:()=>"debounceMs is ignored when apply button is present",72:({keys:c})=>["ignoring FilterOptionDef as it doesn't contain one of ",c],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:c})=>['Unexpected type of filter "',c,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:c})=>`DateFilter ${c} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:c})=>`Invalid row index for ensureIndexVisible: ${c}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:({methodName:c})=>`AnimationFrameService.${c} called but animation frames are off`,93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:c,pageSizeSet:h,pageSizesSet:g,pageSizeOptions:f})=>`'paginationPageSize=${c}'${h?"":" (default value)"}, but ${c} is not included in${g?"":" the default"} paginationPageSizeSelector=[${f.join(", ")}].`,95:({paginationPageSizeOption:c,paginationPageSizeSelector:h})=>`Either set '${h}' to an array that includes ${c} or to 'false' to disable the page size selector.`,96:({id:c,data:h})=>["Duplicate ID",c,"found for pinned row with data",h,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:c})=>`cellEditor for column ${c} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",100:({rowModelType:c})=>`selectAll only available when rowModelType='clientSide', ie not ${c}`,101:({propertyName:c,componentName:h,agGridDefaults:g,jsComps:f})=>{let S=[],w=[...Object.keys(g).filter(P=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(P)),...Object.keys(f)],M=(0,A._fuzzySuggestions)({inputValue:h,allSuggestions:w,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return S.push(`Could not find '${h}' component. It was configured as "${c}: '${h}'" but it wasn't found in the list of registered components.
`),M.length>0&&S.push(`         Did you mean: [${M.slice(0,3)}]?
`),S.push("If using a custom component check it has been registered correctly."),S},102:()=>"selecting just filtered only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:c,param:h})=>`Numeric value ${c} passed to ${h} param will be interpreted as ${c} seconds. If this is intentional use "${c}s" to silence this warning.`,105:({e:c})=>["chart rendering failed",c],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${z.baseDocLink}/theming-migration/`,107:({key:c,value:h})=>`Invalid value for theme param ${c} - ${h}`,108:({e:c})=>["chart update failed",c],109:({aggFuncOrString:c})=>`unrecognised aggregation function ${c}`,110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelectsChildren` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:c})=>`Could not find component with name of ${c}. Is it in Vue.components?`,115:()=>"The provided selection state should be an object.",116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>"selectAll must be of boolean type.",118:()=>"Infinite scrolling must be enabled in order to set the row count.",119:()=>"Unable to instantiate filter",120:()=>"MultiFloatingFilterComp expects MultiFilter as its parent",121:()=>"a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (see AG Grid docs) or b) to toString() on the object to return a key",122:()=>"could not find the document, document is empty",123:()=>"Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.",124:()=>"No active charts to update.",125:({chartId:c})=>`Unable to update chart. No active chart found with ID: ${c}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:c})=>`unable to create chart as ${c?"there are no columns in the grid":"no range is selected"}.`,128:({feature:c})=>`${c} is only available if using 'multiRow' selection mode.`,129:({feature:c,rowModel:h})=>`${c} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${h}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',131:()=>"cannot range select while selecting multiple rows",132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:c})=>`icon '${c}' function should return back a string or a dom object`,134:({iconName:c})=>`Did not find icon '${c}'`,135:()=>"Data type of the new value does not match the cell data type of the column",136:()=>"Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.",137:({type:c,currentChartType:h})=>`Unable to update chart as a '${c}' update type is not permitted on a ${h}.`,138:({chartType:c})=>`invalid chart type supplied: ${c}`,139:({customThemeName:c})=>`a custom chart theme with the name ${c} has been supplied but not added to the 'chartThemes' list`,140:({name:c})=>`no stock theme exists with the name '${c}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>"cross filtering with row grouping is not supported.",142:()=>"cross filtering is only supported in the client side row model.",143:({panel:c})=>`'${c}' is not a valid Chart Tool Panel name`,144:({type:c})=>`Invalid charts data panel group name supplied: '${c}'`,145:({group:c})=>`As of v32, only one charts customize panel group can be expanded at a time. '${c}' will not be expanded.`,146:({comp:c})=>`Unable to instantiate component '${c}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:c})=>`Invalid charts customize panel group name supplied: '${c}'`,148:({group:c})=>`invalid chartGroupsDef config '${c}'`,149:({group:c,chartType:h})=>`invalid chartGroupsDef config '${c}.${h}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:c})=>`invalid chartType '${c}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:c})=>`no 'seriesChartType' found for colId = '${c}', defaulting to 'line'.`,153:({chartDataType:c})=>`unexpected chartDataType value '${c}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:c})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${c}`,155:({option:c})=>`'${c}' is not a valid Chart Toolbar Option`,156:({panel:c})=>`Invalid panel in chartToolPanelsDef.panels: '${c}'`,157:({unrecognisedGroupIds:c})=>["unable to find group(s) for supplied groupIds:",c],158:()=>"can not expand a column item that does not represent a column group header",159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>"Export cancelled. Export is not allowed as per your configuration.",161:()=>"The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'",162:({id:c,dataType:h})=>`Unrecognized data type for excel export [${c}.dataType=${h}]`,163:({featureName:c})=>`Excel table export does not work with ${c}. The exported Excel file will not contain any Excel tables.
 Please turn off ${c} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:c})=>["unable to find groups for these supplied groupIds:",c],167:({unrecognisedColIds:c})=>["unable to find columns for these supplied colIds:",c],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:c})=>`invalid cellRendererParams.refreshStrategy = ${c} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:c})=>`invalid chartGroupsDef config '${c}'`,174:({group:c,chartType:h})=>`invalid chartGroupsDef config '${c}.${h}'`,175:({menuTabName:c,itemsToConsider:h})=>[`Trying to render an invalid menu item '${c}'. Check that your 'menuTabs' contains one of `,h],176:({key:c})=>`unknown menu item type ${c}`,177:()=>"valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:c})=>`column ${c} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:c,childNodeData:h})=>["duplicate group keys for row data, keys should be unique",[c,h]],185:({data:c})=>["getDataPath() should not return an empty path",[c]],186:({rowId:c,rowData:h,duplicateRowsData:g})=>["duplicate group keys for row data, keys should be unique",c,h,...g],187:({rowId:c,firstData:h,secondData:g})=>[`Duplicate node id ${c}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",h,"second instance",g],188:()=>"getRowId callback must be provided for Server Side Row Model selection to work correctly.",189:({startRow:c})=>`invalid value ${c} for startRow, the value should be >= 0`,190:({rowGroupId:c,data:h})=>["null and undefined values are not allowed for server side row model keys",c?`column = ${c}`:"","data is ",h],191:()=>"cannot multi select unless selection mode is 'multiRow'",192:()=>"cannot use range selection when multi selecting rows",193:()=>"cannot multi select unless selection mode is 'multiRow'",194:({method:c})=>`calling gridApi.${c}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:c})=>`selecting just ${c?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:c})=>`Provided ids must be of string type. Invalid id provided: ${c}`,197:()=>"`toggledNodes` must be an array of string ids.",198:()=>"cannot multi select unless selection mode is 'multiRow'",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:d,201:({rowModelType:c})=>`Could not find row model for rowModelType = ${c}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>"Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.",204:()=>"Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.",205:({duplicateIdText:c})=>`Unable to display rows as duplicate row ids (${c}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>"getRowId callback must be implemented for transactions to work. Transaction was ignored.",207:()=>'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',208:()=>"Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${z.baseDocLink}/filter-set-filter-list/#filter-value-types`,210:()=>"Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?",211:()=>"property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",212:()=>"please review all your toolPanel components, it seems like at least one of them doesn't have an id",213:()=>"Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.",214:({key:c})=>`unable to lookup Tool Panel as invalid key supplied: ${c}`,215:({key:c,defaultByKey:h})=>`the key ${c} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(h).join(",")}`,216:({name:c})=>`Missing component for '${c}'`,217:({invalidColIds:c})=>["unable to find grid columns for the supplied colDef(s):",c],218:({property:c,defaultOffset:h})=>`${c} must be a number, the value you provided is not a valid number. Using the default of ${h}px.`,219:({property:c})=>`Property ${c} does not exist on the target object.`,220:({lineDash:c})=>`'${c}' is not a valid 'lineDash' option.`,221:()=>"agAggregationComponent should only be used with the client and server side row model.",222:()=>"agFilteredRowCountComponent should only be used with the client side row model.",223:()=>"agSelectedRowCountComponent should only be used with the client and server side row model.",224:()=>"agTotalAndFilteredRowCountComponent should only be used with the client side row model.",225:()=>"agTotalRowCountComponent should only be used with the client side row model.",226:()=>"viewport is missing init method.",227:()=>"menu item icon must be DOM node or string",228:({menuItemOrString:c})=>`unrecognised menu item ${c}`,229:({index:c})=>["invalid row index for ensureIndexVisible: ",c],230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:c})=>`Framework component is missing the method ${c}()`,234:()=>'Group Column Filter does not work with the colDef property "field". This property will be ignored.',235:()=>'Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.',236:()=>'Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.',237:()=>"Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.",238:()=>"setRowCount can only accept a positive row count.",239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:c})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${c}`,241:()=>"cannot select multiple rows when rowSelection.mode is set to 'singleRow'",242:()=>"cannot select multiple rows when using rangeSelect",243:()=>"Failed to deserialize state - each provided state object must be an object.",244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>`Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule. 
Please rebuild the selection state and reapply it.`,248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:c})=>`AG Grid: Unable to create chart as an invalid chartType = '${c}' was supplied.`,252:()=>`cannot get grid to draw rows when it is in the middle of drawing rows. 
Your code probably called a grid API method while the grid was in the render stage. 
To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). 
To see what part of your code that caused the refresh check this stacktrace.`,253:({version:c})=>["Illegal version string: ",c],254:()=>"Cannot create chart: no chart themes available.",255:({point:c})=>`Lone surrogate U+${c.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>s("IntegratedChartsModule"),258:()=>s("SparklinesModule"),259:({part:c})=>`the argument to theme.withPart must be a Theming API part object, received: ${c}`,260:({propName:c,compName:h,gridScoped:g,gridId:f,rowModelType:S})=>d({reasonOrId:`AG Grid '${c}' component: ${h}`,moduleName:b.USER_COMP_MODULES[h],gridId:f,gridScoped:g,rowModelType:S}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus'},x.getError=function(c,h){let g=x.AG_GRID_ERRORS[c];if(!g)return[`Missing error text for error id ${c}!`];let f=g(h),S=`
See ${(0,z.getErrorLink)(c,h)}`;return Array.isArray(f)?f.concat(S):[f,S]},x.MISSING_MODULE_REASONS={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"}},7764:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._preInitErrMsg=x._errMsg=x._logPreInitErr=x._error=x._warn=x.getErrorLink=x.toStringWithNullUndefined=x.setValidationDocLink=x.suppressAllLogs=x.provideValidationServiceLogger=x.baseDocLink=void 0;let A=p(3263),E=p(2043),z=p(7205),T=100,b="_version_",C=null,d=!1;function s(M,P,O){var G;return(G=C==null?void 0:C.getConsoleMessage(M,P))!=null?G:[S(M,P,O)]}function c(M,P,O,G){d||M(`error #${P}`,...s(P,O,G))}function h(M){let P=M;return M instanceof Error?P=M.toString():typeof M=="object"&&(P=function(O){if(!O)return String(O);let G={};for(let j of Object.keys(O))typeof O[j]!="object"&&typeof O[j]!="function"&&(G[j]=O[j]);return JSON.stringify(G)}(M)),P}function g(M,P){return`${M}?${P.toString()}`}function f(M,P){let O=new URLSearchParams;O.append(b,z.VERSION),P&&Object.entries(P).forEach(([Y,J])=>{O.append(Y,h(J))});let G=`${x.baseDocLink}/errors/${M}`,j=g(G,O);return j.length<=2e3?j:function(Y,J,ne){let ce=Array.from(J.entries()).sort((xe,Le)=>Le[1].length-xe[1].length),fe=g(Y,J);for(let[xe,Le]of ce){if(xe===b)continue;let _e=fe.length-ne;if(_e<=0)break;let Fe="...",We=_e+Fe.length,it=Le.length-We>T?Le.slice(0,Le.length-We)+Fe:Le.slice(0,T)+Fe;J.set(xe,it),fe=g(Y,J)}return fe}(G,O,2e3)}x.baseDocLink=`${A.BASE_URL}/javascript-data-grid`,x.provideValidationServiceLogger=function(M){C=M},x.suppressAllLogs=function(){d=!0},x.setValidationDocLink=function(M){x.baseDocLink=M},x.toStringWithNullUndefined=function(M){return M===void 0?"undefined":M===null?"null":M},x.getErrorLink=f;let S=(M,P,O)=>`${O?O+` 
`:""}Visit ${f(M,P)}${O?"":` 
  Alternatively register the ValidationModule to see the full message in the console.`}`;function w(M,P){let O=P[0];return`error #${O} `+s(O,P[1],M).join(" ")}x._warn=function(...M){c(E._warnOnce,M[0],M[1])},x._error=function(...M){c(E._errorOnce,M[0],M[1])},x._logPreInitErr=function(M,P,O){c(E._errorOnce,M,P,O)},x._errMsg=function(...M){return w(void 0,M)},x._preInitErrMsg=function(...M){return w(`
`,M)}},342:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.resolveModuleNames=x.MODULES_FOR_ROW_MODELS=x.RESOLVABLE_MODULE_NAMES=void 0;let p=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"];x.RESOLVABLE_MODULE_NAMES={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:p,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...p,"QuickFilter","ExternalFilter","AdvancedFilter"],GroupCellRenderer:["RowGrouping","Pivot","TreeData","MasterDetail","ServerSideRowModel"],KeyboardNavigation:["AllCommunity"],LoadingCellRenderer:["ServerSideRowModel"],MenuCore:["ColumnMenu","ContextMenu"],MenuItem:["ColumnMenu","ContextMenu","MultiFilter","IntegratedCharts","ColumnsToolPanel"],Overlay:["AllCommunity"],PinnedColumn:["AllCommunity"],SharedAggregation:["RowGrouping","Pivot","TreeData","ServerSideRowModel"],SharedDragAndDrop:["AllCommunity"],SharedMasterDetail:["MasterDetail","ServerSideRowModel"],SharedMenu:[...p,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},x.MODULES_FOR_ROW_MODELS={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"},x.resolveModuleNames=function(A,E){let z=[];return(Array.isArray(A)?A:[A]).forEach(T=>{let b=x.RESOLVABLE_MODULE_NAMES[T];b?b.forEach(C=>{let d=x.MODULES_FOR_ROW_MODELS[C];d&&d!==E||z.push(C)}):z.push(T)}),z}},4842:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.COL_DEF_VALIDATORS=void 0;let A=p(8125),E=p(7764),z=p(1389),T={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0};x.COL_DEF_VALIDATORS=()=>({objectName:"colDef",allProperties:Object.keys(T),docsUrl:"column-properties/",deprecations:{checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."}},validations:{aggFunc:{module:"SharedAggregation"},autoHeight:{supportedRowModels:["clientSide","serverSide"],module:"RowAutoHeight"},cellClass:{module:"CellStyle"},cellClassRules:{module:"CellStyle"},cellEditor:({cellEditor:b,editable:C})=>{if(!C)return null;if(typeof b=="string"){let d=z.USER_COMP_MODULES[b];if(d)return{module:d}}return{module:"CustomEditor"}},cellRenderer:({cellRenderer:b})=>{if(typeof b!="string")return null;let C=z.USER_COMP_MODULES[b];return C?{module:C}:null},cellRendererParams:{validate:b=>b.rowGroup==null&&b.rowGroupIndex==null&&b.cellRenderer!=="agGroupCellRenderer"||!("checkbox"in b.cellRendererParams)?null:'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.'},cellStyle:{module:"CellStyle"},children:()=>(0,x.COL_DEF_VALIDATORS)(),columnChooserParams:{module:"ColumnMenu"},contextMenuItems:{module:"ContextMenu"},dndSource:{module:"DragAndDrop"},dndSourceOnRowDrag:{module:"DragAndDrop"},editable:({editable:b,cellEditor:C})=>b&&!C?{module:"TextEditor"}:null,enableCellChangeFlash:{module:"HighlightChanges"},enablePivot:{module:"SharedPivot"},enableRowGroup:{module:"SharedRowGrouping"},enableValue:{module:"SharedAggregation"},filter:({filter:b})=>{if(b&&typeof b!="string"&&typeof b!="boolean")return{module:"CustomFilter"};if(typeof b=="string"){let C=z.USER_COMP_MODULES[b];if(C)return{module:C}}return{module:"ColumnFilter"}},floatingFilter:{module:"ColumnFilter"},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(b,{rowSelection:C})=>C==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(b,{rowSelection:C})=>C==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(b,{rowSelection:C})=>C==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerTooltip:{module:"Tooltip"},headerValueGetter:{validate:b=>{let C=b.headerValueGetter;return typeof C=="function"||typeof C=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:b})=>{if(b){if(b.smallDown)return(0,E._errMsg)(262);if(b.smallLeft)return(0,E._errMsg)(263);if(b.smallRight)return(0,E._errMsg)(264)}return null}},mainMenuItems:{module:"ColumnMenu"},menuTabs:b=>{var d;let C=["columnsMenuTab","generalMenuTab"];return(d=b.menuTabs)!=null&&d.some(s=>C.includes(s))?{module:"ColumnMenu"}:null},pivot:{module:"SharedPivot"},pivotIndex:{module:"SharedPivot"},rowDrag:{module:"RowDrag"},rowGroup:{module:"SharedRowGrouping"},rowGroupIndex:{module:"SharedRowGrouping"},sortingOrder:{validate:b=>{let C=b.sortingOrder;if(Array.isArray(C)&&C.length>0){let d=C.filter(s=>!A.DEFAULT_SORTING_ORDER.includes(s));if(d.length>0)return`sortingOrder must be an array with elements from [${A.DEFAULT_SORTING_ORDER.map(E.toStringWithNullUndefined).join()}], currently it includes [${d.map(E.toStringWithNullUndefined).join()}]`}else if(!Array.isArray(C)||C.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${C}`;return null}},tooltipField:{module:"Tooltip"},tooltipValueGetter:{module:"Tooltip"},type:{validate:b=>{let C=b.type;return C instanceof Array?C.some(d=>typeof d!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof C=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(b,{suppressRowTransform:C})=>C?null:"colDef.rowSpan requires suppressRowTransform to be enabled."}}})},711:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.GRID_OPTIONS_VALIDATORS=void 0;let A=p(3080),E=p(7274),z=p(920),T=p(8125),b=p(6996),C=p(7764);function d(c,h,g,f=Number.MAX_VALUE){return typeof h=="number"||h==null?h==null||h>=g&&h<=f?null:f===Number.MAX_VALUE?`${c}: value should be greater than or equal to ${g}`:`${c}: value should be between ${g} and ${f}`:`${c}: value should be a number`}let s=()=>{let c={alignedGrids:{module:"AlignedGrids"},allowContextMenuWithControlKey:{module:"ContextMenu"},autoSizePadding:{validate({autoSizePadding:g}){return d("autoSizePadding",g,0)}},autoSizeStrategy:{module:"ColumnAutoSize"},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:g}){return d("cacheBlockSize",g,1)}},cacheOverflowSize:{validate({cacheOverflowSize:g}){return d("cacheOverflowSize",g,1)}},cellSelection:{module:"CellSelection"},columnHoverHighlight:{module:"ColumnHover"},datasource:{supportedRowModels:["infinite"],module:"InfiniteRowModel"},doesExternalFilterPass:{module:"ExternalFilter"},domLayout:{validate:g=>{let f=g.domLayout,S=["autoHeight","normal","print"];return f&&!S.includes(f)?`domLayout must be one of [${S.join()}], currently it's ${f}`:null}},editType:{module:"EditCore"},enableAdvancedFilter:{module:"AdvancedFilter"},enableCharts:{module:"IntegratedCharts"},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{module:"CellSelection",dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},getContextMenuItems:{module:"ContextMenu"},getLocaleText:{module:"Locale"},getMainMenuItems:{module:"ColumnMenu"},getRowClass:{module:"RowStyle"},getRowStyle:{module:"RowStyle"},grandTotalRow:{module:"SharedRowGrouping"},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},icons:{validate:({icons:g})=>{if(g){if(g.smallDown)return(0,C._errMsg)(262);if(g.smallLeft)return(0,C._errMsg)(263);if(g.smallRight)return(0,C._errMsg)(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:g}){return d("infiniteInitialRowCount",g,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},initialState:{module:"GridState"},isExternalFilterPresent:{module:"ExternalFilter"},keepDetailRowsCount:{validate({keepDetailRowsCount:g}){return d("keepDetailRowsCount",g,1)}},localeText:{module:"Locale"},masterDetail:{module:"SharedMasterDetail"},pagination:{module:"Pagination"},paginationPageSize:{validate({paginationPageSize:g}){return d("paginationPageSize",g,1)}},paginationPageSizeSelector:{validate:g=>{let f=g.paginationPageSizeSelector;return typeof f=="boolean"||f==null||f.length?null:`'paginationPageSizeSelector' cannot be an empty array.
                    If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},pinnedTopRowData:{module:"PinnedRow"},pinnedBottomRowData:{module:"PinnedRow"},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}},module:"SharedPivot"},pivotPanelShow:{module:"RowGroupingPanel"},quickFilterText:{supportedRowModels:["clientSide"],module:"QuickFilter"},rowBuffer:{validate({rowBuffer:g}){return d("rowBuffer",g,0)}},rowClass:{validate:g=>typeof g.rowClass=="function"?"rowClass should not be a function, please use getRowClass instead":null,module:"RowStyle"},rowClassRules:{module:"RowStyle"},rowData:{supportedRowModels:["clientSide"],module:"ClientSideRowModel"},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{treeData:{required:[!1,void 0]},pagination:{required:[!1,void 0]}},module:"RowDrag"},rowGroupPanelShow:{module:"RowGroupingPanel"},rowSelection:{validate({rowSelection:g}){return g&&typeof g=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':g&&typeof g!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":g&&g.mode!=="multiRow"&&g.mode!=="singleRow"?`Selection mode "${g.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null},module:"SharedRowSelection"},rowStyle:{validate:g=>{let f=g.rowStyle;return f&&typeof f=="function"?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null},module:"RowStyle"},serverSideDatasource:{supportedRowModels:["serverSide"],module:"ServerSideRowModel"},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:g}){return d("serverSideInitialRowCount",g,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sideBar:{module:"SideBar"},sortingOrder:{validate:g=>{let f=g.sortingOrder;if(Array.isArray(f)&&f.length>0){let S=f.filter(w=>!T.DEFAULT_SORTING_ORDER.includes(w));if(S.length>0)return`sortingOrder must be an array with elements from [${T.DEFAULT_SORTING_ORDER.map(C.toStringWithNullUndefined).join()}], currently it includes [${S.map(C.toStringWithNullUndefined).join()}]`}else if(!Array.isArray(f)||f.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${f}`;return null}},statusBar:{module:"StatusBar"},tooltipHideDelay:{validate:g=>g.tooltipHideDelay&&g.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:g=>g.tooltipShowDelay&&g.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],module:"SharedTreeData",validate:g=>{var S;let f=(S=g.rowModelType)!=null?S:"clientSide";switch(f){case"clientSide":{let w=`treeData requires 'getDataPath' in the ${f} row model.`;return g.treeDataChildrenField||g.getDataPath?null:w}case"serverSide":{let w=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${f} row model.`;return g.isServerSideGroup&&g.getServerSideGroupKey?null:w}}return null}},treeDataChildrenField:{module:"SharedTreeData"},undoRedoCellEditing:{module:"UndoRedoEdit"},valueCache:{module:"ValueCache"},viewportDatasource:{supportedRowModels:["viewport"],module:"ViewportRowModel"},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:g}){return d("viewportRowModelBufferSize",g,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:g}){return d("viewportRowModelPageSize",g,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}}},h={};return z._BOOLEAN_GRID_OPTIONS.forEach(g=>{h[g]={expectedType:"boolean"}}),z._NUMBER_GRID_OPTIONS.forEach(g=>{h[g]={expectedType:"number"}}),(0,b._mergeDeep)(h,c),h};x.GRID_OPTIONS_VALIDATORS=()=>({objectName:"gridOptions",allProperties:[...z._ALL_GRID_OPTIONS,...A._ALL_EVENTS.map(c=>(0,E._getCallbackForEvent)(c))],propertyExceptions:["api","treeDataChildrenField"],docsUrl:"grid-options/",deprecations:{suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."},groupRemoveSingleChildren:{version:"33",message:"Use `groupHideParentOfSingleChild` instead."},groupRemoveLowestSingleChildren:{version:"33",message:'Use `groupHideParentOfSingleChild: "leafGroupsOnly"` instead.'},suppressRowGroupHidesColumns:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressHideOnGroup"` instead.'},suppressMakeColumnVisibleAfterUnGroup:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressShowOnUngroup"` instead.'},unSortIcon:{version:"33",message:"Use `defaultColDef.unSortIcon` instead."},sortingOrder:{version:"33",message:"Use `defaultColDef.sortingOrder` instead."},suppressPropertyNamesCheck:{version:"33",message:"`gridOptions` and `columnDefs` both have a `context` property that should be used for arbitrary user data. This means that column definitions and gridOptions should only contain valid properties making this property redundant."}},validations:s()})},9938:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.DEPRECATED_ICONS_V33=x.ICON_MODULES=x.ICON_VALUES=void 0,x.ICON_VALUES={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1},x.ICON_MODULES={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore"},x.DEPRECATED_ICONS_V33=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"])},3781:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.MENU_ITEM_MODULES=void 0,x.MENU_ITEM_MODULES={pinSubMenu:"PinnedColumn",pinLeft:"PinnedColumn",pinRight:"PinnedColumn",clearPinned:"PinnedColumn",valueAggSubMenu:"SharedAggregation",autoSizeThis:"ColumnAutoSize",autoSizeAll:"ColumnAutoSize",rowGroup:"SharedRowGrouping",rowUnGroup:"SharedRowGrouping",resetColumns:"CommunityCore",expandAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],contractAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],copy:"Clipboard",copyWithHeaders:"Clipboard",copyWithGroupHeaders:"Clipboard",cut:"Clipboard",paste:"Clipboard",export:["CsvExport","ExcelExport"],csvExport:"CsvExport",excelExport:"ExcelExport",separator:"CommunityCore",pivotChart:"IntegratedCharts",chartRange:"IntegratedCharts",columnFilter:"ColumnFilter",columnChooser:"ColumnMenu",sortAscending:"Sort",sortDescending:"Sort",sortUnSort:"Sort"}},1389:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.USER_COMP_MODULES=void 0,x.USER_COMP_MODULES={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agDateColumnFloatingFilter:"DateFilter",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar"}},5010:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ValidationModule=void 0;let A=p(7205),E=p(5147);x.ValidationModule={moduleName:"Validation",version:A.VERSION,beans:[E.ValidationService]}},5147:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x._fuzzyCheckStrings=x.ValidationService=void 0;let A=p(8731),E=p(2891),z=p(2132),T=p(2043),b=p(1298),C=p(8179),d=p(5205),s=p(7764),c=p(4842),h=p(711),g=p(9938),f=p(3781),S=p(1389);class w extends A.BeanStub{constructor(){super(...arguments),this.beanName="validation"}wireBeans(G){this.gridOptions=G.gridOptions,(0,s.provideValidationServiceLogger)(this)}postConstruct(){this.processGridOptions(this.gridOptions)}warnOnInitialPropertyUpdate(G,j){G==="api"&&E.INITIAL_GRID_OPTION_KEYS[j]&&(0,s._warn)(22,{key:j})}processGridOptions(G){this.processOptions(G,(0,h.GRID_OPTIONS_VALIDATORS)())}validateApiFunction(G,j){return(0,C.validateApiFunction)(G,j,this.beans)}missingUserComponent(G,j,Y,J){let ne=S.USER_COMP_MODULES[j];ne?this.gos.assertModuleRegistered(ne,`AG Grid '${G}' component: ${j}`):(0,s._warn)(101,{propertyName:G,componentName:j,agGridDefaults:Y,jsComps:J})}checkRowEvents(G){P.has(G)&&(0,s._warn)(10,{eventType:G})}validateIcon(G){if(g.DEPRECATED_ICONS_V33.has(G)&&(0,s._warn)(43,{iconName:G}),g.ICON_VALUES[G])return;let j=g.ICON_MODULES[G];j?(0,s._error)(200,{reasonOrId:`icon '${G}'`,moduleName:j,gridScoped:(0,z._areModulesGridScoped)(),gridId:this.beans.context.getGridId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."}):(0,s._warn)(134,{iconName:G})}validateMenuItem(G){let j=f.MENU_ITEM_MODULES[G];j&&this.gos.assertModuleRegistered(j,`menu item '${G}'`)}isProvidedUserComp(G){return!!S.USER_COMP_MODULES[G]}validateColDef(G,j,Y){var J;!Y&&((J=this.beans.dataTypeSvc)!=null&&J.isColPendingInference(j))||this.processOptions(G,(0,c.COL_DEF_VALIDATORS)())}processOptions(G,j){let{validations:Y,deprecations:J,allProperties:ne,propertyExceptions:ce,objectName:fe,docsUrl:xe}=j;ne&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(G,[...ce!=null?ce:[],...Object.keys(J)],ne,fe,xe);let Le=new Set,_e=Fe=>{let We=Y[Fe];if(We){if(typeof We=="function"){let it=We(G,this.gridOptions,this.beans);if(!it)return;if("objectName"in it){let tt=G[Fe];return Array.isArray(tt)?void tt.forEach(ot=>{this.processOptions(ot,it)}):void this.processOptions(G[Fe],it)}return it}return We}};Object.keys(G).forEach(Fe=>{var Ye;let We=J[Fe];if(We){let{message:Ze,version:Pe}=We;Le.add(`As of v${Pe}, ${String(Fe)} is deprecated. ${Ze!=null?Ze:""}`)}let it=G[Fe];if(it==null||it===!1)return;let tt=_e(Fe);if(!tt)return;let{module:ot,dependencies:st,validate:St,supportedRowModels:Xe,expectedType:Ke}=tt;if(Ke){let Ze=typeof it;if(Ze!==Ke)return void Le.add(`${String(Fe)} should be of type '${Ke}' but received '${Ze}' (${it}).`)}if(Xe){let Ze=(Ye=this.gridOptions.rowModelType)!=null?Ye:"clientSide";if(!Xe.includes(Ze))return void Le.add(`${String(Fe)} is not supported with the '${Ze}' row model. It is only valid with: ${Xe.join(", ")}.`)}if(ot){let Ze=Array.isArray(ot)?ot:[ot],Pe=!0;if(Ze.forEach(ct=>{this.gos.assertModuleRegistered(ct,String(Fe))||(Pe=!1)}),!Pe)return}if(st){let Ze=this.checkForRequiredDependencies(Fe,st,G);if(Ze)return void Le.add(Ze)}if(St){let Ze=St(G,this.gridOptions,this.beans);if(Ze)return void Le.add(Ze)}}),Le.size>0&&Le.forEach(Fe=>{(0,T._warnOnce)(Fe)})}checkForRequiredDependencies(G,j,Y){let J=Object.entries(j).filter(([ne,ce])=>{let fe=Y[ne];return!ce.required.includes(fe)});return J.length===0?null:J.map(([ne,ce])=>{var fe;return`'${String(G)}' requires '${ne}' to be one of [${ce.required.map(xe=>xe===null?"null":xe===void 0?"undefined":xe).join(", ")}]. ${(fe=ce.reason)!=null?fe:""}`}).join(`
           `)}checkProperties(G,j,Y,J,ne){let ce=M(Object.getOwnPropertyNames(G),["__ob__","__v_skip","__metadata__",...j,...Y],Y);if(Object.entries(ce).forEach(([fe,xe])=>{let Le=`invalid ${J} property '${fe}' did you mean any of these: ${xe.slice(0,8).join(", ")}.`;Y.includes("context")&&(Le+=`
If you are trying to annotate ${J} with application data, use the '${J}.context' property instead.`),(0,T._warnOnce)(Le)}),Object.keys(ce).length>0&&ne){let fe=this.beans.frameworkOverrides.getDocLink(ne);(0,T._warnOnce)(`to see all the valid ${J} properties please check: ${fe}`)}}getConsoleMessage(G,j){return(0,d.getError)(G,j)}}function M(O,G,j){let Y={},J=O.filter(ne=>!G.some(ce=>ce===ne));return J.length>0&&J.forEach(ne=>Y[ne]=(0,b._fuzzySuggestions)({inputValue:ne,allSuggestions:j}).values),Y}x.ValidationService=w,x._fuzzyCheckStrings=M;let P=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"])},7486:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.getCellValue=x.expireValueCache=void 0;let A=p(4422),E=p(7766);x.expireValueCache=function(z){var T;(T=z.valueCache)==null||T.expire()},x.getCellValue=function(z,T){var h,g;let{colKey:b,rowNode:C,useFormatter:d}=T,s=(h=z.colModel.getColDefCol(b))!=null?h:z.colModel.getCol(b);if((0,A._missing)(s))return null;let c=z.valueSvc.getValueForDisplay(s,C);return d?(g=z.valueSvc.formatValue(s,C,c))!=null?g:(0,E._escapeString)(c,!0):c}},2878:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ChangeDetectionService=void 0;let A=p(8731),E=p(7274),z=p(6800);class T extends A.BeanStub{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){let{gos:C,rowModel:d}=this.beans;(0,E._isClientSideRowModel)(C,d)&&(this.clientSideRowModel=d),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(C){let{gos:d,rowRenderer:s}=this.beans;if(C.source==="paste"||d.get("suppressChangeDetection"))return;let c=C.node,h=[c],g=this.clientSideRowModel,f=g==null?void 0:g.rootNode;if(f&&!c.isRowPinned()){let S=d.get("aggregateOnlyChangedColumns"),w=new z.ChangedPath(S,f);w.addParentNode(c.parent,[C.column]),g.doAggregate(w),w.forEachChangedNodeDepthFirst(M=>{h.push(M)})}s.refreshCells({rowNodes:h})}}x.ChangeDetectionService=T},5751:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ExpressionService=void 0;let A=p(8731),E=p(7764);class z extends A.BeanStub{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(b,C){if(typeof b=="string")return this.evaluateExpression(b,C);(0,E._error)(15,{expression:b})}evaluateExpression(b,C){try{return this.createExpressionFunction(b)(C.value,C.context,C.oldValue,C.newValue,C.value,C.node,C.data,C.colDef,C.rowIndex,C.api,C.getValue,C.column,C.columnGroup)}catch(d){return(0,E._error)(16,{expression:b,params:C,e:d}),null}}createExpressionFunction(b){let C=this.cache;if(C[b])return C[b];let d=this.createFunctionBody(b),s=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",d);return C[b]=s,s}createFunctionBody(b){return b.indexOf("return")>=0?b:"return "+b+";"}}x.ExpressionService=z},3913:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ValueCache=void 0;let A=p(8731);class E extends A.BeanStub{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){let T=this.gos;this.active=T.get("valueCache"),this.neverExpires=T.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(T,b,C){if(this.active){let d=this.cacheVersion;T.__cacheVersion!==d&&(T.__cacheVersion=d,T.__cacheData={}),T.__cacheData[b]=C}}getValue(T,b){if(this.active&&T.__cacheVersion===this.cacheVersion)return T.__cacheData[b]}}x.ValueCache=E},6431:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.CellApiModule=x.ChangeDetectionModule=x.ExpressionModule=x.ValueCacheModule=void 0;let A=p(7205),E=p(7486),z=p(2878),T=p(5751),b=p(3913);x.ValueCacheModule={moduleName:"ValueCache",version:A.VERSION,beans:[b.ValueCache],apiFunctions:{expireValueCache:E.expireValueCache}},x.ExpressionModule={moduleName:"Expression",version:A.VERSION,beans:[T.ExpressionService]},x.ChangeDetectionModule={moduleName:"ChangeDetection",version:A.VERSION,beans:[z.ChangeDetectionService]},x.CellApiModule={moduleName:"CellApi",version:A.VERSION,apiFunctions:{getCellValue:E.getCellValue}}},5736:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ValueService=void 0;let A=p(8731),E=p(7274),z=p(4422),T=p(6996),b=p(7764);class C extends A.BeanStub{constructor(){super(...arguments),this.beanName="valueSvc",this.initialised=!1,this.isSsrm=!1}wireBeans(s){this.expressionSvc=s.expressionSvc,this.colModel=s.colModel,this.valueCache=s.valueCache,this.dataTypeSvc=s.dataTypeSvc}postConstruct(){this.initialised||this.init()}init(){this.executeValueGetter=this.valueCache?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=(0,E._isServerSideRowModel)(this.gos),this.cellExpressions=this.gos.get("enableCellExpressions"),this.isTreeData=this.gos.get("treeData"),this.initialised=!0;let s=c=>this.callColumnCellValueChangedHandler(c);this.eventSvc.addEventListener("cellValueChanged",s,!0),this.addDestroyFunc(()=>this.eventSvc.removeEventListener("cellValueChanged",s,!0)),this.addManagedPropertyListener("treeData",c=>this.isTreeData=c.currentValue)}getValueForDisplay(s,c){let h=c.leafGroup&&this.colModel.isPivotMode(),g=c.group&&c.expanded&&!c.footer&&!h,f=this.gos.get("groupSuppressBlankHeader");if(!g||f)return this.getValue(s,c);let S=!1,w=this.gos.get("groupTotalRow");typeof w!="function"?S=!!w:S=!!this.gos.getCallback("groupTotalRow")({node:this});let M=g&&S;return this.getValue(s,c,M)}getValue(s,c,h=!1){if(this.initialised||this.init(),!c)return;let g=s.getColDef(),f=g.field,S=s.getColId(),w=c.data,M,P=c.groupData&&c.groupData[S]!==void 0,O=!h&&c.aggData&&c.aggData[S]!==void 0,G=this.isSsrm&&h&&!!s.getColDef().aggFunc,j=this.isSsrm&&c.footer&&c.field&&(s.getColDef().showRowGroup===!0||s.getColDef().showRowGroup===c.field);if(this.isTreeData&&O?M=c.aggData[S]:this.isTreeData&&g.valueGetter?M=this.executeValueGetter(g.valueGetter,w,s,c):this.isTreeData&&f&&w?M=(0,T._getValueUsingField)(w,f,s.isFieldContainsDots()):P?M=c.groupData[S]:O?M=c.aggData[S]:g.valueGetter?M=this.executeValueGetter(g.valueGetter,w,s,c):j?M=(0,T._getValueUsingField)(w,c.field,s.isFieldContainsDots()):f&&w&&!G&&(M=(0,T._getValueUsingField)(w,f,s.isFieldContainsDots())),this.cellExpressions&&typeof M=="string"&&M.indexOf("=")===0){let Y=M.substring(1);M=this.executeValueGetter(Y,w,s,c)}if(M==null){let Y=this.getOpenedGroup(c,s);if(Y!=null)return Y}return M}parseValue(s,c,h,g){var w;let f=s.getColDef(),S=f.valueParser;if((0,z._exists)(S)){let M=this.gos.addGridCommonParams({node:c,data:c==null?void 0:c.data,oldValue:g,newValue:h,colDef:f,column:s});return typeof S=="function"?S(M):(w=this.expressionSvc)==null?void 0:w.evaluate(S,M)}return h}getDeleteValue(s,c){var h;return(0,z._exists)(s.getColDef().valueParser)&&(h=this.parseValue(s,c,"",this.getValueForDisplay(s,c)))!=null?h:null}formatValue(s,c,h,g,f=!0){let S,w=null,M=s.getColDef();if(g?S=g:f&&(S=M.valueFormatter),S){let P=this.gos.addGridCommonParams({value:h,node:c,data:c?c.data:null,colDef:M,column:s});w=typeof S=="function"?S(P):this.expressionSvc?this.expressionSvc.evaluate(S,P):null}else if(M.refData)return M.refData[h]||"";return w==null&&Array.isArray(h)&&(w=h.join(", ")),w}getOpenedGroup(s,c){if(!this.gos.get("showOpenedGroup")||!c.getColDef().showRowGroup)return;let h=c.getColDef().showRowGroup,g=s.parent;for(;g!=null;){if(g.rowGroupColumn&&(h===!0||h===g.rowGroupColumn.getColId()))return g.key;g=g.parent}}setValue(s,c,h,g){var G,j;let f=this.colModel.getColDefCol(c);if(!s||!f)return!1;(0,z._missing)(s.data)&&(s.data={});let{field:S,valueSetter:w}=f.getColDef();if((0,z._missing)(S)&&(0,z._missing)(w))return(0,b._warn)(17),!1;if(this.dataTypeSvc&&!this.dataTypeSvc.checkType(f,h))return(0,b._warn)(135),!1;let M=this.gos.addGridCommonParams({node:s,data:s.data,oldValue:this.getValue(f,s),newValue:h,colDef:f.getColDef(),column:f}),P;if(M.newValue=h,P=(0,z._exists)(w)?typeof w=="function"?w(M):(G=this.expressionSvc)==null?void 0:G.evaluate(w,M):this.setValueUsingField(s.data,S,h,f.isFieldContainsDots()),P===void 0&&(P=!0),!P)return!1;s.resetQuickFilterAggregateText(),(j=this.valueCache)==null||j.onDataChanged();let O=this.getValue(f,s);return this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:s.rowIndex,rowPinned:s.rowPinned,column:M.column,colDef:M.colDef,data:s.data,node:s,oldValue:M.oldValue,newValue:O,value:O,source:g}),!0}callColumnCellValueChangedHandler(s){let c=s.colDef.onCellValueChanged;typeof c=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{c({node:s.node,data:s.data,oldValue:s.oldValue,newValue:s.newValue,colDef:s.colDef,column:s.column,api:s.api,context:s.context})})}setValueUsingField(s,c,h,g){if(!c)return!1;let f=!1;if(g){let S=c.split("."),w=s;for(;S.length>0&&w;){let M=S.shift();S.length===0?(f=w[M]===h,f||(w[M]=h)):w=w[M]}}else f=s[c]===h,f||(s[c]=h);return!f}executeValueGetterWithValueCache(s,c,h,g){let f=h.getColId(),S=this.valueCache.getValue(g,f);if(S!==void 0)return S;let w=this.executeValueGetterWithoutValueCache(s,c,h,g);return this.valueCache.setValue(g,f,w),w}executeValueGetterWithoutValueCache(s,c,h,g){var w;let f=this.gos.addGridCommonParams({data:c,node:g,column:h,colDef:h.getColDef(),getValue:this.getValueCallback.bind(this,g)}),S;return S=typeof s=="function"?s(f):(w=this.expressionSvc)==null?void 0:w.evaluate(s,f),S}getValueCallback(s,c){let h=this.colModel.getColDefCol(c);return h?this.getValue(h,s):null}getKeyForNode(s,c){let h=this.getValue(s,c),g=s.getColDef().keyCreator,f=h;return g&&(f=g(this.gos.addGridCommonParams({value:h,colDef:s.getColDef(),column:s,node:c,data:c.data}))),typeof f=="string"||f==null||(f=String(f),f==="[object Object]"&&(0,b._warn)(121)),f}}x.ValueService=C},6511:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.VanillaFrameworkOverrides=void 0;let A=p(3263),E=p(2979),z=p(7990),T=p(7764);x.VanillaFrameworkOverrides=class{constructor(b="javascript"){this.frameworkName=b,this.renderingEngine="vanilla",this.wrapIncoming=C=>C(),this.wrapOutgoing=C=>C(),this.baseDocLink=`${A.BASE_URL}/${this.frameworkName}-data-grid`,(0,T.setValidationDocLink)(this.baseDocLink)}setInterval(b,C){return new z.AgPromise(d=>{d(window.setInterval(b,C))})}addEventListener(b,C,d,s){let c={};if(typeof s=="object"?c=s:typeof s=="boolean"&&(c={capture:s}),c.passive==null){let h=(0,E.getPassiveStateForEvent)(C);h!=null&&(c.passive=h)}b.addEventListener(C,d,c)}frameworkComponent(b){return null}isFrameworkComponent(b){return!1}getDocLink(b){return`${this.baseDocLink}${b?`/${b}`:""}`}}},7205:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.VERSION=void 0,x.VERSION="33.0.1"},7321:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgAbstractField=void 0;let A=p(5230),E=p(3507),z=p(2747);class T extends z.AgAbstractLabel{constructor(C,d,s,c){super(C,d,s),this.className=c}postConstruct(){super.postConstruct();let{width:C,value:d,onValueChange:s}=this.config;C!=null&&this.setWidth(C),d!=null&&this.setValue(d),s!=null&&this.onValueChange(s),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()}setLabel(C){return super.setLabel(C),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){let C=this.getAriaElement(),d=this.getLabelId(),s=this.getLabel();s==null||s==""||(0,A._getAriaLabel)(C)!==null?(0,A._setAriaLabelledBy)(C,""):(0,A._setAriaLabelledBy)(C,d!=null?d:"")}setAriaLabel(C){return(0,A._setAriaLabel)(this.getAriaElement(),C),this.refreshAriaLabelledBy(),this}onValueChange(C){return this.addManagedListeners(this,{fieldValueChanged:()=>C(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(C){return(0,E._setFixedWidth)(this.getGui(),C),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(C,d){return this.value===C||(this.previousValue=this.value,this.value=C,d||this.dispatchLocalEvent({type:"fieldValueChanged"})),this}}x.AgAbstractField=T},8085:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgAbstractInputField=void 0;let A=p(5230),E=p(3507),z=p(7321),T=p(8020);class b extends z.AgAbstractField{constructor(d,s,c="text",h="input"){var g;super(d,(g=d==null?void 0:d.template)!=null?g:`
            <div role="presentation">
                <div data-ref="eLabel" class="ag-input-field-label"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
                    <${h} data-ref="eInput" class="ag-input-field-input"></${h}>
                </div>
            </div>`,[],s),this.inputType=c,this.displayFieldTag=h,this.eLabel=T.RefPlaceholder,this.eWrapper=T.RefPlaceholder,this.eInput=T.RefPlaceholder}postConstruct(){super.postConstruct(),this.setInputType();let{eLabel:d,eWrapper:s,eInput:c,className:h}=this;d.classList.add(`${h}-label`),s.classList.add(`${h}-input-wrapper`),c.classList.add(`${h}-input`),this.addCssClass("ag-input-field"),c.id=c.id||`ag-${this.getCompId()}-input`;let{inputName:g,inputWidth:f}=this.config;g!=null&&this.setInputName(g),f!=null&&this.setInputWidth(f),this.addInputListeners(),this.activateTabIndex([c])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:d=>this.setValue(d.target.value)})}setInputType(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(d){return(0,E._setElementWidth)(this.eWrapper,d),this}setInputName(d){return this.getInputElement().setAttribute("name",d),this}getFocusableElement(){return this.eInput}setMaxLength(d){return this.eInput.maxLength=d,this}setInputPlaceholder(d){return(0,E._addOrRemoveAttribute)(this.eInput,"placeholder",d),this}setInputAriaLabel(d){return(0,A._setAriaLabel)(this.eInput,d),this.refreshAriaLabelledBy(),this}setDisabled(d){return(0,E._setDisabled)(this.eInput,d),super.setDisabled(d)}setAutoComplete(d){if(d===!0)(0,E._addOrRemoveAttribute)(this.eInput,"autocomplete",null);else{let s=typeof d=="string"?d:"off";(0,E._addOrRemoveAttribute)(this.eInput,"autocomplete",s)}return this}}x.AgAbstractInputField=b},2178:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.agAbstractLabelCSS=void 0,x.agAbstractLabelCSS=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}"},2747:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgAbstractLabel=void 0;let A=p(5230),E=p(3507),z=p(2178),T=p(8020);class b extends T.Component{constructor(d,s,c){super(s,c),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=d||{},this.registerCSS(z.agAbstractLabelCSS)}postConstruct(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");let{labelSeparator:d,label:s,labelWidth:c,labelAlignment:h,disabled:g}=this.config;g!=null&&this.setDisabled(g),d!=null&&this.setLabelSeparator(d),s!=null&&this.setLabel(s),c!=null&&this.setLabelWidth(c),this.setLabelAlignment(h||this.labelAlignment),this.refreshLabel()}refreshLabel(){let{label:d,eLabel:s}=this;(0,E._clearElement)(s),typeof d=="string"?s.innerText=d+this.labelSeparator:d&&s.appendChild(d),d===""?((0,E._setDisplayed)(s,!1),(0,A._setAriaRole)(s,"presentation")):((0,E._setDisplayed)(s,!0),(0,A._setAriaRole)(s,null))}setLabelSeparator(d){return this.labelSeparator===d||(this.labelSeparator=d,this.label!=null&&this.refreshLabel()),this}getLabelId(){let d=this.eLabel;return d.id=d.id||`ag-${this.getCompId()}-label`,d.id}getLabel(){return this.label}setLabel(d){return this.label===d||(this.label=d,this.refreshLabel()),this}setLabelAlignment(d){let s=this.getGui().classList;return s.toggle("ag-label-align-left",d==="left"),s.toggle("ag-label-align-right",d==="right"),s.toggle("ag-label-align-top",d==="top"),this}setLabelEllipsis(d){return this.eLabel.classList.toggle("ag-label-ellipsis",d),this}setLabelWidth(d){return this.label==null||(0,E._setElementWidth)(this.eLabel,d),this}setDisabled(d){d=!!d;let s=this.getGui();return(0,E._setDisabled)(s,d),s.classList.toggle("ag-disabled",d),this.disabled=d,this}isDisabled(){return!!this.disabled}}x.AgAbstractLabel=b},66:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgCheckboxSelector=x.AgCheckbox=void 0;let A=p(8085);class E extends A.AgAbstractInputField{constructor(T,b="ag-checkbox",C="checkbox"){super(T,b,C),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();let{readOnly:T,passive:b}=this.config;typeof T=="boolean"&&this.setReadOnly(T),typeof b=="boolean"&&this.setPassive(b)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0||!this.selected}setPassive(T){this.passive=T}isReadOnly(){return this.readOnly}setReadOnly(T){this.eWrapper.classList.toggle("ag-disabled",T),this.eInput.disabled=T,this.readOnly=T}setDisabled(T){return this.eWrapper.classList.toggle("ag-disabled",T),super.setDisabled(T)}toggle(){if(this.eInput.disabled)return;let T=this.isSelected(),b=this.getNextValue();this.passive?this.dispatchChange(b,T):this.setValue(b)}getValue(){return this.isSelected()}setValue(T,b){return this.refreshSelectedClass(T),this.setSelected(T,b),this}setName(T){return this.getInputElement().name=T,this}isSelected(){return this.selected}setSelected(T,b){if(this.isSelected()===T)return;this.previousValue=this.isSelected(),T=this.selected=typeof T=="boolean"?T:void 0;let C=this.eInput;C.checked=T,C.indeterminate=T===void 0,b||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(T,b,C){this.dispatchLocalEvent({type:"fieldValueChanged",selected:T,previousValue:b,event:C});let d=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:d.id,name:d.name,selected:T,previousValue:b})}onCheckboxClick(T){if(this.passive||this.eInput.disabled)return;let b=this.isSelected(),C=this.selected=T.target.checked;this.refreshSelectedClass(C),this.dispatchChange(C,b,T)}refreshSelectedClass(T){let b=this.eWrapper.classList;b.toggle("ag-checked",T===!0),b.toggle("ag-indeterminate",T==null)}}x.AgCheckbox=E,x.AgCheckboxSelector={selector:"AG-CHECKBOX",component:E}},3611:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgInputDateFieldSelector=x.AgInputDateField=void 0;let A=p(7274),E=p(8667),z=p(9827),T=p(3507),b=p(5946);class C extends b.AgInputTextField{constructor(s){super(s,"ag-date-field","date")}postConstruct(){super.postConstruct();let s=(0,E._isBrowserSafari)();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||s||this.eInput.focus()}}),this.eInput.step="any"}onWheel(s){(0,A._getActiveDomElement)(this.beans)===this.eInput&&s.preventDefault()}setMin(s){var h;let c=s instanceof Date?(h=(0,z._serialiseDate)(s!=null?s:null,!1))!=null?h:void 0:s;return this.min===c||(this.min=c,(0,T._addOrRemoveAttribute)(this.eInput,"min",c)),this}setMax(s){var h;let c=s instanceof Date?(h=(0,z._serialiseDate)(s!=null?s:null,!1))!=null?h:void 0:s;return this.max===c||(this.max=c,(0,T._addOrRemoveAttribute)(this.eInput,"max",c)),this}setStep(s){return this.step===s||(this.step=s,(0,T._addOrRemoveAttribute)(this.eInput,"step",s)),this}getDate(){var s;if(this.eInput.validity.valid)return(s=(0,z._parseDateTimeFromString)(this.getValue()))!=null?s:void 0}setDate(s,c){this.setValue((0,z._serialiseDate)(s!=null?s:null,!1),c)}}x.AgInputDateField=C,x.AgInputDateFieldSelector={selector:"AG-INPUT-DATE-FIELD",component:C}},8792:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgInputNumberFieldSelector=x.AgInputNumberField=void 0;let A=p(7274),E=p(3507),z=p(4422),T=p(5946);class b extends T.AgInputTextField{constructor(d){super(d,"ag-number-field","number")}postConstruct(){super.postConstruct();let d=this.eInput;this.addManagedListeners(d,{blur:()=>{let f=parseFloat(d.value),S=isNaN(f)?"":this.normalizeValue(f.toString());this.value!==S&&this.setValue(S)},wheel:this.onWheel.bind(this)}),d.step="any";let{precision:s,min:c,max:h,step:g}=this.config;typeof s=="number"&&this.setPrecision(s),typeof c=="number"&&this.setMin(c),typeof h=="number"&&this.setMax(h),typeof g=="number"&&this.setStep(g)}onWheel(d){(0,A._getActiveDomElement)(this.beans)===this.eInput&&d.preventDefault()}normalizeValue(d){if(d==="")return"";this.precision!=null&&(d=this.adjustPrecision(d));let s=parseFloat(d),{min:c,max:h}=this;return c!=null&&s<c?d=c.toString():h!=null&&s>h&&(d=h.toString()),d}adjustPrecision(d,s){let c=this.precision;if(c==null)return d;if(s){let g=parseFloat(d).toFixed(c);return parseFloat(g).toString()}let h=String(d).split(".");if(h.length>1){if(h[1].length<=c)return d;if(c>0)return`${h[0]}.${h[1].slice(0,c)}`}return h[0]}setMin(d){return this.min===d||(this.min=d,(0,E._addOrRemoveAttribute)(this.eInput,"min",d)),this}setMax(d){return this.max===d||(this.max=d,(0,E._addOrRemoveAttribute)(this.eInput,"max",d)),this}setPrecision(d){return this.precision=d,this}setStep(d){return this.step===d||(this.step=d,(0,E._addOrRemoveAttribute)(this.eInput,"step",d)),this}setValue(d,s){return this.setValueOrInputValue(c=>super.setValue(c,s),()=>this,d)}setStartValue(d){return this.setValueOrInputValue(s=>super.setValue(s,!0),s=>{this.eInput.value=s},d)}setValueOrInputValue(d,s,c){if((0,z._exists)(c)){let h=this.isScientificNotation(c);if(h&&this.eInput.validity.valid)return d(c);if(h||(h=(c=this.adjustPrecision(c))!=this.normalizeValue(c)),h)return s(c)}return d(c)}getValue(){let d=this.eInput;if(!d.validity.valid)return;let s=d.value;return this.isScientificNotation(s)?this.adjustPrecision(s,!0):super.getValue()}isScientificNotation(d){return typeof d=="string"&&d.includes("e")}}x.AgInputNumberField=b,x.AgInputNumberFieldSelector={selector:"AG-INPUT-NUMBER-FIELD",component:b}},6209:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgInputTextAreaSelector=x.AgInputTextArea=void 0;let A=p(8085);class E extends A.AgAbstractInputField{constructor(T){super(T,"ag-text-area",null,"textarea")}setValue(T,b){let C=super.setValue(T,b);return this.eInput.value=T,C}setCols(T){return this.eInput.cols=T,this}setRows(T){return this.eInput.rows=T,this}}x.AgInputTextArea=E,x.AgInputTextAreaSelector={selector:"AG-INPUT-TEXT-AREA",component:E}},5946:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgInputTextFieldSelector=x.AgInputTextField=void 0;let A=p(4422),E=p(6466),z=p(8085);class T extends z.AgAbstractInputField{constructor(C,d="ag-text-field",s="text"){super(C,d,s)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(C,d){let s=this.eInput;return s.value!==C&&(s.value=(0,A._exists)(C)?C:""),super.setValue(C,d)}setStartValue(C){this.setValue(C,!0)}preventDisallowedCharacters(){let C=new RegExp(`[${this.config.allowedCharPattern}]`);this.addManagedListeners(this.eInput,{keydown:d=>{(0,E._isEventFromPrintableCharacter)(d)&&d.key&&!C.test(d.key)&&d.preventDefault()},paste:d=>{var c;let s=(c=d.clipboardData)==null?void 0:c.getData("text");s&&s.split("").some(h=>!C.test(h))&&d.preventDefault()}})}}x.AgInputTextField=T,x.AgInputTextFieldSelector={selector:"AG-INPUT-TEXT-FIELD",component:T}},7283:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgList=void 0;let A=p(9853),E=p(7274),z=p(5230),T=p(3507),b=p(8020);class C extends b.Component{constructor(s="default",c=!1){super(`<div class="ag-list ag-${s}-list" role="listbox"></div>`),this.cssIdentifier=s,this.unFocusable=c,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){let s=this.getGui();this.addManagedElementListeners(s,{mouseleave:()=>this.clearHighlighted()}),this.unFocusable||this.addManagedElementListeners(s,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(s){let c=s.key;switch(c){case A.KeyCode.ENTER:if(this.highlightedEl){let h=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(h)}else this.setValue(this.getValue());break;case A.KeyCode.DOWN:case A.KeyCode.UP:s.preventDefault(),this.navigate(c);break;case A.KeyCode.PAGE_DOWN:case A.KeyCode.PAGE_UP:case A.KeyCode.PAGE_HOME:case A.KeyCode.PAGE_END:s.preventDefault(),this.navigateToPage(c)}}navigate(s){let c=s===A.KeyCode.DOWN,h,{itemEls:g,highlightedEl:f}=this;if(f){let S=g.indexOf(f)+(c?1:-1);S=Math.min(Math.max(S,0),g.length-1),h=g[S]}else h=g[c?0:g.length-1];this.highlightItem(h)}navigateToPage(s){let{itemEls:c,highlightedEl:h}=this;if(!h||c.length===0)return;let g=c.indexOf(h),f=this.options.length-1,S=c[0].clientHeight,w=Math.floor(this.getGui().clientHeight/S),M=-1;s===A.KeyCode.PAGE_HOME?M=0:s===A.KeyCode.PAGE_END?M=f:s===A.KeyCode.PAGE_DOWN?M=Math.min(g+w,f):s===A.KeyCode.PAGE_UP&&(M=Math.max(g-w,0)),M!==-1&&this.highlightItem(c[M])}addOptions(s){return s.forEach(c=>this.addOption(c)),this}addOption(s){let{value:c,text:h}=s,g=h||c;return this.options.push({value:c,text:g}),this.renderOption(c,g),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach(s=>{(0,T._removeFromParent)(s)}),this.itemEls=[]}updateIndices(){let s=this.getGui().querySelectorAll(".ag-list-item");s.forEach((c,h)=>{(0,z._setAriaPosInSet)(c,h+1),(0,z._setAriaSetSize)(c,s.length)})}renderOption(s,c){let h=(0,E._getDocument)(this.beans),g=h.createElement("div");(0,z._setAriaRole)(g,"option"),g.classList.add("ag-list-item",`ag-${this.cssIdentifier}-list-item`);let f=h.createElement("span");g.appendChild(f),f.textContent=c,this.unFocusable||(g.tabIndex=-1),this.itemEls.push(g),this.addManagedListeners(g,{mouseover:()=>this.highlightItem(g),mousedown:S=>{S.preventDefault(),S.stopPropagation(),this.setValue(s)}}),this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getTooltipValue:()=>c,getGui:()=>g,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>f.scrollWidth>f.clientWidth})),this.getGui().appendChild(g)}setValue(s,c){if(this.value===s)return this.fireItemSelected(),this;if(s==null)return this.reset(c),this;let h=this.options.findIndex(g=>g.value===s);if(h!==-1){let g=this.options[h];this.value=g.value,this.displayValue=g.text,this.highlightItem(this.itemEls[h]),c||this.fireChangeEvent()}return this}setValueByIndex(s){return this.setValue(this.options[s].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();let s=this.options.findIndex(c=>c.value===this.value);s!==-1&&this.highlightItem(this.itemEls[s])}reset(s){this.value=null,this.displayValue=null,this.clearHighlighted(),s||this.fireChangeEvent()}highlightItem(s){if(!(0,T._isVisible)(s))return;this.clearHighlighted(),this.highlightedEl=s,s.classList.add(this.activeClass),(0,z._setAriaSelected)(s,!0);let c=this.getGui(),{scrollTop:h,clientHeight:g}=c,{offsetTop:f,offsetHeight:S}=s;(f+S>h+g||f<h)&&s.scrollIntoView({block:"nearest"}),this.unFocusable||s.focus()}clearHighlighted(){let s=this.highlightedEl;s&&(0,T._isVisible)(s)&&(s.classList.remove(this.activeClass),(0,z._setAriaSelected)(s,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}}x.AgList=C},4772:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.agPickerFieldCSS=void 0,x.agPickerFieldCSS=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:disabled{opacity:.5}&.ag-picker-has-focus,&:focus-within{border:var(--ag-input-focus-border);box-shadow:var(--ag-focus-shadow)}}.ag-picker-field-button{background-color:var(--ag-background-color)}"},9497:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgPickerField=void 0;let A=p(9853),E=p(7274),z=p(5230),T=p(3507),b=p(9970),C=p(7321),d=p(4772),s=p(8020);class c extends C.AgAbstractField{constructor(g){if(super(g,(g==null?void 0:g.template)||`
            <div class="ag-picker-field" role="presentation">
                <div data-ref="eLabel"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed">
                    <div data-ref="eDisplayField" class="ag-picker-field-display"></div>
                    <div data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
                </div>
            </div>`,(g==null?void 0:g.agComponents)||[],g==null?void 0:g.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=s.RefPlaceholder,this.eWrapper=s.RefPlaceholder,this.eDisplayField=s.RefPlaceholder,this.eIcon=s.RefPlaceholder,this.registerCSS(d.agPickerFieldCSS),this.ariaRole=g==null?void 0:g.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!g)return;let{pickerGap:f,maxPickerHeight:S,variableWidth:w,minPickerWidth:M,maxPickerWidth:P}=g;f!=null&&(this.pickerGap=f),this.variableWidth=!!w,S!=null&&this.setPickerMaxHeight(S),M!=null&&this.setPickerMinWidth(M),P!=null&&this.setPickerMaxWidth(P)}postConstruct(){super.postConstruct(),this.setupAria();let g=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",g);let f=this.getAriaElement();this.addManagedElementListeners(f,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});let{pickerIcon:S,inputWidth:w}=this.config;if(S){let M=(0,b._createIconNoSpan)(S,this.beans);M&&this.eIcon.appendChild(M)}w!=null&&this.setInputWidth(w)}setupAria(){let g=this.getAriaElement();g.setAttribute("tabindex",this.gos.get("tabIndex").toString()),(0,z._setAriaExpanded)(g,!1),this.ariaRole&&(0,z._setAriaRole)(g,this.ariaRole)}onLabelOrWrapperMouseDown(g){if(g){let f=this.getFocusableElement();if(f!==this.eWrapper&&(g==null?void 0:g.target)===f)return;g.preventDefault(),this.getFocusableElement().focus()}this.skipClick?this.skipClick=!1:this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(g){switch(g.key){case A.KeyCode.UP:case A.KeyCode.DOWN:case A.KeyCode.ENTER:case A.KeyCode.SPACE:g.preventDefault(),this.onLabelOrWrapperMouseDown();break;case A.KeyCode.ESCAPE:this.isPickerDisplayed&&(g.preventDefault(),g.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker())}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());let g=this.pickerComponent.getGui();g.addEventListener("focusin",this.onPickerFocusIn),g.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){let g=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));let f=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:S,pickerAriaLabelValue:w,modalPicker:M=!0},maxPickerHeight:P,minPickerWidth:O,maxPickerWidth:G,variableWidth:j,beans:Y,eWrapper:J}=this,ne={modal:M,eChild:g,closeOnEsc:!0,closedCallback:()=>{let Le=(0,E._isNothingFocused)(Y);this.beforeHidePicker(),Le&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:f(S,w),anchorToElement:J};g.style.position="absolute";let ce=Y.popupSvc,fe=ce.addPopup(ne);j?(O&&(g.style.minWidth=O),g.style.width=(0,T._formatSize)((0,T._getAbsoluteWidth)(J)),G&&(g.style.maxWidth=G)):(0,T._setElementWidth)(g,G!=null?G:(0,T._getAbsoluteWidth)(J));let xe=P!=null?P:`${(0,T._getInnerHeight)(ce.getPopupParent())}px`;return g.style.setProperty("max-height",xe),this.alignPickerToComponent(),fe.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;let{pickerGap:g,config:{pickerType:f},beans:{popupSvc:S,gos:w},eWrapper:M,pickerComponent:P}=this,O=w.get("enableRtl")?"right":"left";S.positionPopupByComponent({type:f,eventSource:M,ePopup:P.getGui(),position:"under",alignSide:O,keepWithinBounds:!0,nudgeY:g})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);let g=this.pickerComponent.getGui();g.removeEventListener("focusin",this.onPickerFocusIn),g.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(g){if(!this.isAlive())return;let f=this.getAriaElement();(0,z._setAriaExpanded)(f,g);let S=this.eWrapper.classList;S.toggle("ag-picker-expanded",g),S.toggle("ag-picker-collapsed",!g)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(g){var f;(f=this.pickerComponent)!=null&&f.getGui().contains(g.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(g){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",g)}hidePicker(){var g;(g=this.hideCurrentPicker)==null||g.call(this)}setInputWidth(g){return(0,T._setElementWidth)(this.eWrapper,g),this}getFocusableElement(){return this.eWrapper}setPickerGap(g){return this.pickerGap=g,this}setPickerMinWidth(g){return typeof g=="number"&&(g=`${g}px`),this.minPickerWidth=g==null?void 0:g,this}setPickerMaxWidth(g){return typeof g=="number"&&(g=`${g}px`),this.maxPickerWidth=g==null?void 0:g,this}setPickerMaxHeight(g){return typeof g=="number"&&(g=`${g}px`),this.maxPickerHeight=g==null?void 0:g,this}destroy(){this.hidePicker(),super.destroy()}}x.AgPickerField=c},7336:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgRadioButton=void 0;let A=p(66);class E extends A.AgCheckbox{constructor(T){super(T,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(T){let b=this.eInput;T.selected&&T.name&&b.name&&b.name===T.name&&T.id&&b.id!==T.id&&this.setValue(!1,!0)}}x.AgRadioButton=E},5310:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.agSelectCSS=void 0,x.agSelectCSS=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}"},159:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgSelectSelector=x.AgSelect=void 0;let A=p(9853),E=p(3386),z=p(5230),T=p(7283),b=p(9497),C=p(5310);class d extends b.AgPickerField{constructor(c){super(ge({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox"},c)),this.registerCSS(C.agSelectCSS)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:(0,E._shouldDisplayTooltip)(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");let{options:c,value:h,placeholder:g}=this.config;c!=null&&this.addOptions(c),h!=null&&this.setValue(h,!0),g&&h==null&&(this.eDisplayField.textContent=g),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(c){this.eWrapper.contains(c.relatedTarget)||this.hidePicker()}createListComponent(){let c=this.createBean(new T.AgList("select",!0));this.listComponent=c,c.setParentComponent(this);let h=c.getAriaElement(),g=`ag-select-list-${c.getCompId()}`;h.setAttribute("id",g),(0,z._setAriaControls)(this.getAriaElement(),h),c.addManagedListeners(c,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})}}),c.addManagedListeners(c,{fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(c){var g;let{key:h}=c;switch(h===A.KeyCode.TAB&&this.hidePicker(),h){case A.KeyCode.ENTER:case A.KeyCode.UP:case A.KeyCode.DOWN:case A.KeyCode.PAGE_UP:case A.KeyCode.PAGE_DOWN:case A.KeyCode.PAGE_HOME:case A.KeyCode.PAGE_END:c.preventDefault(),this.isPickerDisplayed?(g=this.listComponent)==null||g.handleKeyDown(c):super.onKeyDown(c);break;case A.KeyCode.ESCAPE:super.onKeyDown(c);break;case A.KeyCode.SPACE:this.isPickerDisplayed?c.preventDefault():super.onKeyDown(c)}}showPicker(){let c=this.listComponent;c&&(super.showPicker(),c.refreshHighlighted())}addOptions(c){return c.forEach(h=>this.addOption(h)),this}addOption(c){return this.listComponent.addOption(c),this}clearOptions(){var c;return(c=this.listComponent)==null||c.clearOptions(),this}setValue(c,h,g){let{listComponent:f,config:{placeholder:S},eDisplayField:w,tooltipFeature:M}=this;if(this.value===c||!f)return this;if(g||f.setValue(c,!0),f.getValue()===this.getValue())return this;let P=f.getDisplayValue();return P==null&&S&&(P=S),w.textContent=P,M==null||M.setTooltipAndRefresh(P!=null?P:null),super.setValue(c,h)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}}x.AgSelect=d,x.AgSelectSelector={selector:"AG-SELECT",component:d}},8398:function(ae,x){Object.defineProperty(x,"__esModule",{value:!0}),x.agToggleButtonCSS=void 0,x.agToggleButtonCSS='.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height)*.5);flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;transition:background-color .1s;:where(.ag-toggle-button-input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-toggle-button-height);margin:0;max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);opacity:0}&:before{background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;content:"";display:block;height:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2);left:var(--ag-toggle-button-switch-inset);pointer-events:none;position:absolute;top:var(--ag-toggle-button-switch-inset);transition:left .1s;width:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2)}&.ag-checked{background-color:var(--ag-toggle-button-on-background-color);&:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-switch-inset))}}&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{opacity:.5}}'},4927:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.AgToggleButtonSelector=x.AgToggleButton=void 0;let A=p(66),E=p(8398);class z extends A.AgCheckbox{constructor(b){super(b,"ag-toggle-button"),this.registerCSS(E.agToggleButtonCSS)}setValue(b,C){return super.setValue(b,C),this.addOrRemoveCssClass("ag-selected",this.getValue()),this}}x.AgToggleButton=z,x.AgToggleButtonSelector={selector:"AG-TOGGLE-BUTTON",component:z}},8020:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.Component=x.RefPlaceholder=void 0;let A=p(8731),E=p(1734),z=p(3507),T=0;x.RefPlaceholder=null;class b extends A.BeanStub{constructor(d,s){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=T++,this.cssClassManager=new E.CssClassManager(()=>this.eGui),this.componentSelectors=new Map((s!=null?s:[]).map(c=>[c.selector,c])),d&&this.setTemplate(d)}preConstruct(){var s,c,h;this.wireTemplate(this.getGui());let d="component-"+((c=(s=Object.getPrototypeOf(this))==null?void 0:s.constructor)==null?void 0:c.name);(h=this.css)==null||h.forEach(g=>this.beans.environment.addGlobalCSS(g,d))}wireTemplate(d,s){d&&this.gos&&(this.applyElementsToComponent(d),this.createChildComponentsFromTags(d,s))}getCompId(){return this.compId}getDataRefAttribute(d){return d.getAttribute?d.getAttribute("data-ref"):null}applyElementsToComponent(d,s,c,h=null){if(s===void 0&&(s=this.getDataRefAttribute(d)),s){let g=this[s];if(g===x.RefPlaceholder)this[s]=h!=null?h:d;else{let f=c&&c[s];if(!this.suppressDataRefValidation&&!f)throw new Error(`data-ref: ${s} on ${this.constructor.name} with ${g}`)}}}createChildComponentsFromTags(d,s){(0,z._copyNodeList)(d.childNodes).forEach(c=>{if(!(c instanceof HTMLElement))return;let h=this.createComponentFromElement(c,g=>{g.getGui()&&this.copyAttributesFromNode(c,g.getGui())},s);if(h){if(h.addItems&&c.children.length){this.createChildComponentsFromTags(c,s);let g=Array.prototype.slice.call(c.children);h.addItems(g)}this.swapComponentForNode(h,d,c)}else c.childNodes&&this.createChildComponentsFromTags(c,s)})}createComponentFromElement(d,s,c){let h=d.nodeName,g=this.getDataRefAttribute(d),f=h.indexOf("AG-")===0,S=f?this.componentSelectors.get(h):null,w=null;if(S){let M=c&&g?c[g]:void 0;w=new S.component(M),w.setParentComponent(this),this.createBean(w,null,s)}else if(f)throw new Error(`selector: ${h}`);return this.applyElementsToComponent(d,g,c,w),w}copyAttributesFromNode(d,s){(0,z._iterateNamedNodeMap)(d.attributes,(c,h)=>s.setAttribute(c,h))}swapComponentForNode(d,s,c){let h=d.getGui();s.replaceChild(h,c),s.insertBefore(document.createComment(c.nodeName),h),this.addDestroyFunc(this.destroyBean.bind(this,d))}activateTabIndex(d){let s=this.gos.get("tabIndex");d||(d=[]),d.length||d.push(this.getGui()),d.forEach(c=>c.setAttribute("tabindex",s.toString()))}setTemplate(d,s,c){let h=(0,z._loadTemplate)(d);this.setTemplateFromElement(h,s,c)}setTemplateFromElement(d,s,c,h=!1){if(this.eGui=d,this.suppressDataRefValidation=h,s)for(let g=0;g<s.length;g++){let f=s[g];this.componentSelectors.set(f.selector,f)}this.wireTemplate(d,c)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(d){this.parentComponent=d}getParentComponent(){return this.parentComponent}setGui(d){this.eGui=d}queryForHtmlElement(d){return this.eGui.querySelector(d)}getContainerAndElement(d,s){let c=s;return d==null?null:(c||(c=this.eGui),(0,z._isNodeOrElement)(d)?{element:d,parent:c}:{element:d.getGui(),parent:c})}prependChild(d,s){let{element:c,parent:h}=this.getContainerAndElement(d,s)||{};c&&h&&h.insertAdjacentElement("afterbegin",c)}appendChild(d,s){let{element:c,parent:h}=this.getContainerAndElement(d,s)||{};c&&h&&h.appendChild(c)}isDisplayed(){return this.displayed}setVisible(d,s={}){if(d!==this.visible){this.visible=d;let{skipAriaHidden:c}=s;(0,z._setVisible)(this.eGui,d,{skipAriaHidden:c})}}setDisplayed(d,s={}){if(d!==this.displayed){this.displayed=d;let{skipAriaHidden:c}=s;(0,z._setDisplayed)(this.eGui,d,{skipAriaHidden:c});let h={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(h)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(d,s,c){this.eGui.addEventListener(d,s,c),this.addDestroyFunc(()=>this.eGui.removeEventListener(d,s))}addCssClass(d){this.cssClassManager.addCssClass(d)}removeCssClass(d){this.cssClassManager.removeCssClass(d)}containsCssClass(d){return this.cssClassManager.containsCssClass(d)}addOrRemoveCssClass(d,s){this.cssClassManager.addOrRemoveCssClass(d,s)}registerCSS(d){this.css||(this.css=[]),this.css.push(d)}}x.Component=b},1772:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.ManagedFocusFeature=x.FOCUS_MANAGED_CLASS=void 0;let A=p(9853),E=p(8731),z=p(2979),T=p(2331);x.FOCUS_MANAGED_CLASS="ag-focus-managed";class b extends E.BeanStub{constructor(d,s={}){super(),this.eFocusable=d,this.callbacks=s,this.callbacks=ge({shouldStopEventPropagation:()=>!1,onTabKeyDown:c=>{if(c.defaultPrevented)return;let h=(0,T._findNextFocusableElement)(this.beans,this.eFocusable,!1,c.shiftKey);h&&(h.focus(),c.preventDefault())}},s)}postConstruct(){let{eFocusable:d,callbacks:{onFocusIn:s,onFocusOut:c}}=this;d.classList.add(x.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(d),s&&this.addManagedElementListeners(d,{focusin:s}),c&&this.addManagedElementListeners(d,{focusout:c})}addKeyDownListeners(d){this.addManagedElementListeners(d,{keydown:s=>{if(s.defaultPrevented||(0,z._isStopPropagationForAgGrid)(s))return;let{callbacks:c}=this;c.shouldStopEventPropagation(s)?(0,z._stopPropagationForAgGrid)(s):s.key===A.KeyCode.TAB?c.onTabKeyDown(s):c.handleKeyDown&&c.handleKeyDown(s)}})}}x.ManagedFocusFeature=b},3598:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PopupComponent=void 0;let A=p(8020);class E extends A.Component{isPopup(){return!0}setParentComponent(T){T.addCssClass("ag-has-popup"),super.setParentComponent(T)}destroy(){let T=this.parentComponent;T&&T.isAlive()&&T.getGui().classList.remove("ag-has-popup"),super.destroy()}}x.PopupComponent=E},3137:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PopupModule=void 0;let A=p(7205),E=p(3906);x.PopupModule={moduleName:"Popup",version:A.VERSION,beans:[E.PopupService]}},3906:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.PopupService=void 0;let A=p(9853),E=p(8731),z=p(7274),T=p(5230),b=p(3507),C=p(2979),d=p(4422),s=p(7990),c=p(7764);var h;(function(S){S[S.vertical=0]="vertical",S[S.horizontal=1]="horizontal"})(h||(h={}));let g=0;class f extends E.BeanStub{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.beans.ctrlsSvc.whenReady(this,w=>{this.gridCtrl=w.gridCtrl}),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){return this.gos.get("popupParent")||this.gridCtrl.getGui()}positionPopupForMenu(w){let{eventSource:M,ePopup:P}=w,O=this.getPopupIndex(P);O!==-1&&(this.popupList[O].alignedToElement=M);let G=M.getBoundingClientRect(),j=this.getParentRect(),Y=this.keepXYWithinBounds(P,G.top-j.top,h.vertical),J=P.clientWidth>0?P.clientWidth:200;P.style.minWidth=`${J}px`;let ne=j.right-j.left-J,ce;function fe(){return G.right-j.left-2}function xe(){return G.left-j.left-J}this.gos.get("enableRtl")?(ce=xe(),ce<0&&(ce=fe(),this.setAlignedStyles(P,"left")),ce>ne&&(ce=0,this.setAlignedStyles(P,"right"))):(ce=fe(),ce>ne&&(ce=xe(),this.setAlignedStyles(P,"right")),ce<0&&(ce=0,this.setAlignedStyles(P,"left"))),P.style.left=`${ce}px`,P.style.top=`${Y}px`}positionPopupUnderMouseEvent(w){let{ePopup:M,nudgeX:P,nudgeY:O,skipObserver:G}=w;this.positionPopup({ePopup:M,nudgeX:P,nudgeY:O,keepWithinBounds:!0,skipObserver:G,updatePosition:()=>this.calculatePointerAlign(w.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(w.type,w.ePopup,null,w.mouseEvent,w.column,w.rowNode)})}calculatePointerAlign(w){let M=this.getParentRect();return{x:w.clientX-M.left,y:w.clientY-M.top}}positionPopupByComponent(w){let{ePopup:M,nudgeX:P,nudgeY:O,keepWithinBounds:G,eventSource:j,alignSide:Y="left",position:J="over",column:ne,rowNode:ce,type:fe}=w,xe=j.getBoundingClientRect(),Le=this.getParentRect(),_e=this.getPopupIndex(M);_e!==-1&&(this.popupList[_e].alignedToElement=j),this.positionPopup({ePopup:M,nudgeX:P,nudgeY:O,keepWithinBounds:G,updatePosition:()=>{let Fe,We=xe.left-Le.left;return Y==="right"&&(We-=M.offsetWidth-xe.width),J==="over"?(Fe=xe.top-Le.top,this.setAlignedStyles(M,"over")):(this.setAlignedStyles(M,"under"),Fe=this.shouldRenderUnderOrAbove(M,xe,Le,w.nudgeY||0)==="under"?xe.top-Le.top+xe.height:xe.top-M.offsetHeight-2*(O||0)-Le.top),{x:We,y:Fe}},postProcessCallback:()=>this.callPostProcessPopup(fe,M,j,null,ne,ce)})}shouldRenderUnderOrAbove(w,M,P,O){let G=P.bottom-M.bottom,j=M.top-P.top,Y=w.offsetHeight+O;return G>Y?"under":j>Y||j>G?"above":"under"}setAlignedStyles(w,M){let P=this.getPopupIndex(w);if(P===-1)return;let O=this.popupList[P],{alignedToElement:G}=O;G&&(["right","left","over","above","under"].forEach(j=>{G.classList.remove(`ag-has-popup-positioned-${j}`),w.classList.remove(`ag-popup-positioned-${j}`)}),M&&(G.classList.add(`ag-has-popup-positioned-${M}`),w.classList.add(`ag-popup-positioned-${M}`)))}callPostProcessPopup(w,M,P,O,G,j){let Y=this.gos.getCallback("postProcessPopup");Y&&Y({column:G,rowNode:j,ePopup:M,type:w,eventSource:P,mouseEvent:O})}positionPopup(w){let{ePopup:M,keepWithinBounds:P,nudgeX:O,nudgeY:G,skipObserver:j,updatePosition:Y}=w,J={width:0,height:0},ne=(ce=!1)=>{let{x:fe,y:xe}=Y();ce&&M.clientWidth===J.width&&M.clientHeight===J.height||(J.width=M.clientWidth,J.height=M.clientHeight,O&&(fe+=O),G&&(xe+=G),P&&(fe=this.keepXYWithinBounds(M,fe,h.horizontal),xe=this.keepXYWithinBounds(M,xe,h.vertical)),M.style.left=`${fe}px`,M.style.top=`${xe}px`,w.postProcessCallback&&w.postProcessCallback())};if(ne(),!j){let ce=(0,b._observeResize)(this.beans,M,()=>ne(!0));setTimeout(()=>ce(),200)}}getActivePopups(){return this.popupList.map(w=>w.element)}getParentRect(){let w=(0,z._getDocument)(this.beans),M=this.getPopupParent();return M===w.body?M=w.documentElement:getComputedStyle(M).position==="static"&&(M=M.offsetParent),(0,b._getElementRectWithOffset)(M)}keepXYWithinBounds(w,M,P){let O=P===h.vertical,G=O?"clientHeight":"clientWidth",j=O?"top":"left",Y=O?"height":"width",J=O?"scrollTop":"scrollLeft",ne=(0,z._getDocument)(this.beans),ce=ne.documentElement,fe=this.getPopupParent(),xe=w.getBoundingClientRect(),Le=fe.getBoundingClientRect(),_e=ne.documentElement.getBoundingClientRect(),Fe=fe===ne.body,We=Math.ceil(xe[Y]),it=O?b._getAbsoluteHeight:b._getAbsoluteWidth,tt=Fe?it(ce)+ce[J]:fe[G];Fe&&(tt-=Math.abs(_e[j]-Le[j]));let ot=tt-We;return Math.min(Math.max(M,0),Math.abs(ot))}addPopup(w){let M=(0,z._getDocument)(this.beans),{eChild:P,ariaLabel:O,alwaysOnTop:G,positionCallback:j,anchorToElement:Y}=w;if(!M)return(0,c._warn)(122),{hideFunc:()=>{}};let J=this.getPopupIndex(P);if(J!==-1)return{hideFunc:this.popupList[J].hideFunc};this.initialisePopupPosition(P);let ne=this.createPopupWrapper(P,O,!!G),ce=this.addEventListenersToPopup(He(ge({},w),{wrapperEl:ne}));return j&&j(),this.addPopupToPopupList(P,ne,ce,Y),{hideFunc:ce}}initialisePopupPosition(w){let M=this.getPopupParent().getBoundingClientRect();(0,d._exists)(w.style.top)||(w.style.top=-1*M.top+"px"),(0,d._exists)(w.style.left)||(w.style.left=-1*M.left+"px")}createPopupWrapper(w,M,P){let O=this.getPopupParent(),G=document.createElement("div"),{environment:j,gos:Y}=this.beans;return j.applyThemeClasses(G),G.classList.add("ag-popup"),w.classList.add(Y.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),w.hasAttribute("role")||(0,T._setAriaRole)(w,"dialog"),(0,T._setAriaLabel)(w,M),G.appendChild(w),O.appendChild(G),P?this.setAlwaysOnTop(w,!0):this.bringPopupToFront(w),G}handleThemeChange(w){if(w.themeChanged){let M=this.beans.environment;for(let P of this.popupList)M.applyThemeClasses(P.wrapper)}}addEventListenersToPopup(w){let M=this.beans,P=(0,z._getDocument)(M),O=this.getPopupParent(),{wrapperEl:G,eChild:j,closedCallback:Y,afterGuiAttached:J,closeOnEsc:ne,modal:ce}=w,fe=!1,xe=We=>{G.contains((0,z._getActiveDomElement)(M))&&(We.key!==A.KeyCode.ESCAPE||(0,C._isStopPropagationForAgGrid)(We)||Fe({keyboardEvent:We}))},Le=We=>Fe({mouseEvent:We}),_e=We=>Fe({touchEvent:We}),Fe=(We={})=>{let{mouseEvent:it,touchEvent:tt,keyboardEvent:ot,forceHide:st}=We;(st||!this.isEventFromCurrentPopup({mouseEvent:it,touchEvent:tt},j)&&!fe)&&(fe=!0,O.removeChild(G),P.removeEventListener("keydown",xe),P.removeEventListener("mousedown",Le),P.removeEventListener("touchstart",_e),P.removeEventListener("contextmenu",Le),this.eventSvc.removeEventListener("dragStarted",Le),Y&&Y(it||tt||ot),this.removePopupFromPopupList(j))};return J&&J({hidePopup:Fe}),window.setTimeout(()=>{ne&&P.addEventListener("keydown",xe),ce&&(P.addEventListener("mousedown",Le),this.eventSvc.addEventListener("dragStarted",Le),P.addEventListener("touchstart",_e),P.addEventListener("contextmenu",Le))},0),Fe}addPopupToPopupList(w,M,P,O){this.popupList.push({element:w,wrapper:M,hideFunc:P,instanceId:g++,isAnchored:!!O}),O&&this.setPopupPositionRelatedToElement(w,O)}getPopupIndex(w){return this.popupList.findIndex(M=>M.element===w)}setPopupPositionRelatedToElement(w,M){let P=this.getPopupIndex(w);if(P===-1)return;let O=this.popupList[P];if(O.stopAnchoringPromise&&O.stopAnchoringPromise.then(j=>j&&j()),O.stopAnchoringPromise=void 0,O.isAnchored=!1,!M)return;let G=this.keepPopupPositionedRelativeTo({element:M,ePopup:w,hidePopup:O.hideFunc});return O.stopAnchoringPromise=G,O.isAnchored=!0,G}removePopupFromPopupList(w){this.setAlignedStyles(w,null),this.setPopupPositionRelatedToElement(w,null),this.popupList=this.popupList.filter(M=>M.element!==w)}keepPopupPositionedRelativeTo(w){let M=this.getPopupParent(),P=M.getBoundingClientRect(),{element:O,ePopup:G}=w,j=O.getBoundingClientRect(),Y=xe=>parseInt(xe.substring(0,xe.length-1),10),J=(xe,Le)=>{let _e=P[xe]-j[xe],Fe=Y(G.style[xe]);return{initialDiff:_e,lastDiff:_e,initial:Fe,last:Fe,direction:Le}},ne=J("top",h.vertical),ce=J("left",h.horizontal),fe=this.beans.frameworkOverrides;return new s.AgPromise(xe=>{fe.wrapIncoming(()=>{fe.setInterval(()=>{let Le=M.getBoundingClientRect(),_e=O.getBoundingClientRect();if(_e.top==0&&_e.left==0&&_e.height==0&&_e.width==0)return void w.hidePopup();let Fe=(We,it)=>{let tt=Y(G.style[it]);We.last!==tt&&(We.initial=tt,We.last=tt);let ot=Le[it]-_e[it];if(ot!=We.lastDiff){let st=this.keepXYWithinBounds(G,We.initial+We.initialDiff-ot,We.direction);G.style[it]=`${st}px`,We.last=st}We.lastDiff=ot};Fe(ne,"top"),Fe(ce,"left")},200).then(Le=>{xe(()=>{Le!=null&&window.clearInterval(Le)})})},"popupPositioning")})}hasAnchoredPopup(){return this.popupList.some(w=>w.isAnchored)}isEventFromCurrentPopup(w,M){let{mouseEvent:P,touchEvent:O}=w,G=P||O;if(!G)return!1;let j=this.getPopupIndex(M);if(j===-1)return!1;for(let Y=j;Y<this.popupList.length;Y++){let J=this.popupList[Y];if((0,C._isElementInEventPath)(J.element,G))return!0}return this.isElementWithinCustomPopup(G.target)}isElementWithinCustomPopup(w){let M=(0,z._getDocument)(this.beans);for(;w&&w!==M.body;){if(w.classList.contains("ag-custom-component-popup")||w.parentElement===null)return!0;w=w.parentElement}return!1}getWrapper(w){for(;!w.classList.contains("ag-popup")&&w.parentElement;)w=w.parentElement;return w.classList.contains("ag-popup")?w:null}setAlwaysOnTop(w,M){let P=this.getWrapper(w);P&&(P.classList.toggle("ag-always-on-top",!!M),M&&this.bringPopupToFront(P))}bringPopupToFront(w){let M=this.getPopupParent(),P=Array.prototype.slice.call(M.querySelectorAll(".ag-popup")),O=P.length,G=this.getWrapper(w);if(!G||O<=1||!M.contains(w))return;let j=[],Y=[];for(let fe of P)fe!==G&&(fe.classList.contains("ag-always-on-top")?Y.push(fe):j.push(fe));let J=[],ne=Y.length,ce=G.classList.contains("ag-always-on-top")||!ne?[...j,...Y,G]:[...j,G,...Y];for(let fe=0;fe<=O;fe++){let xe=ce[fe];P[fe]===ce[fe]||xe===G||(xe.querySelectorAll("div").forEach(Le=>{Le.scrollTop!==0&&J.push([Le,Le.scrollTop])}),fe===0?M.insertAdjacentElement("afterbegin",xe):ce[fe-1].insertAdjacentElement("afterend",xe))}for(;J.length;){let fe=J.pop();fe[0].scrollTop=fe[1]}}}x.PopupService=f},8332:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TabGuardComp=void 0;let A=p(8020),E=p(1017);class z extends A.Component{initialiseTabGuard(b){this.tabGuardFeature=this.createManagedBean(new E.TabGuardFeature(this)),this.tabGuardFeature.initialiseTabGuard(b)}forceFocusOutOfContainer(b=!1){this.tabGuardFeature.forceFocusOutOfContainer(b)}appendChild(b,C){this.tabGuardFeature.appendChild(super.appendChild.bind(this),b,C)}}x.TabGuardComp=z},6:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TabGuardCtrl=x.TabGuardClassNames=void 0;let A=p(8731),E=p(7274),z=p(2331),T=p(1772);x.TabGuardClassNames={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"};class b extends A.BeanStub{constructor(d){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;let{comp:s,eTopGuard:c,eBottomGuard:h,focusTrapActive:g,forceFocusOutWhenTabGuardsAreEmpty:f,isFocusableContainer:S,focusInnerElement:w,onFocusIn:M,onFocusOut:P,shouldStopEventPropagation:O,onTabKeyDown:G,handleKeyDown:j,eFocusableElement:Y}=d;this.comp=s,this.eTopGuard=c,this.eBottomGuard=h,this.providedFocusInnerElement=w,this.eFocusableElement=Y,this.focusTrapActive=!!g,this.forceFocusOutWhenTabGuardsAreEmpty=!!f,this.isFocusableContainer=!!S,this.providedFocusIn=M,this.providedFocusOut=P,this.providedShouldStopEventPropagation=O,this.providedOnTabKeyDown=G,this.providedHandleKeyDown=j}postConstruct(){this.createManagedBean(new T.ManagedFocusFeature(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:d=>this.onTabKeyDown(d),handleKeyDown:d=>this.handleKeyDown(d),onFocusIn:d=>this.onFocusIn(d),onFocusOut:d=>this.onFocusOut(d)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(d=>this.addManagedElementListeners(d,{focus:this.onFocus.bind(this)}))}handleKeyDown(d){this.providedHandleKeyDown&&this.providedHandleKeyDown(d)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()}activateTabGuards(){if(this.forcingFocusOut)return;let d=this.gos.get("tabIndex");this.comp.setTabIndex(d.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(d){if(this.isFocusableContainer&&!this.eFocusableElement.contains(d.relatedTarget)&&!this.allowFocus)return void this.findNextElementOutsideAndFocus(d.target===this.eBottomGuard);if(this.skipTabGuardFocus)return void(this.skipTabGuardFocus=!1);if(this.forceFocusOutWhenTabGuardsAreEmpty&&(0,z._findFocusableElements)(this.eFocusableElement,".ag-tab-guard").length===0)return void this.findNextElementOutsideAndFocus(d.target===this.eBottomGuard);if(this.isFocusableContainer&&this.eFocusableElement.contains(d.relatedTarget))return;let s=d.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(s):this.focusInnerElement(s)}findNextElementOutsideAndFocus(d){var M;let s=(0,E._getDocument)(this.beans),c=(0,z._findFocusableElements)(s.body,null,!0),h=c.indexOf(d?this.eTopGuard:this.eBottomGuard);if(h===-1)return;let g,f;d?(g=0,f=h):(g=h+1,f=c.length);let S=c.slice(g,f),w=this.gos.get("tabIndex");S.sort((P,O)=>{let G=parseInt(P.getAttribute("tabindex")||"0"),j=parseInt(O.getAttribute("tabindex")||"0");return j===w?1:G===w?-1:G===0?1:j===0?-1:G-j}),(M=S[d?S.length-1:0])==null||M.focus()}onFocusIn(d){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(d),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(d){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(d),this.eFocusableElement.contains(d.relatedTarget)||this.activateTabGuards())}onTabKeyDown(d){if(this.providedOnTabKeyDown)return void this.providedOnTabKeyDown(d);if(this.focusTrapActive||d.defaultPrevented)return;let s=this.tabGuardsAreActive();s&&this.deactivateTabGuards();let c=this.getNextFocusableElement(d.shiftKey);s&&setTimeout(()=>this.activateTabGuards(),0),c&&(c.focus(),d.preventDefault())}focusInnerElement(d=!1){let s=(0,z._findFocusableElements)(this.eFocusableElement);this.tabGuardsAreActive()&&(s.splice(0,1),s.splice(s.length-1,1)),s.length&&s[d?s.length-1:0].focus({preventScroll:!0})}getNextFocusableElement(d){return(0,z._findNextFocusableElement)(this.beans,this.eFocusableElement,!1,d)}forceFocusOutOfContainer(d=!1){if(this.forcingFocusOut)return;let s=d?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,s.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(d,s){return d===this.eTopGuard&&!s||d===this.eBottomGuard&&(s!=null?s:!0)}setAllowFocus(d){this.allowFocus=d}}x.TabGuardCtrl=b},1017:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TabGuardFeature=void 0;let A=p(8731),E=p(7274),z=p(5230),T=p(3507),b=p(6);class C extends A.BeanStub{constructor(s){super(),this.comp=s}initialiseTabGuard(s){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();let{eTopGuard:c,eBottomGuard:h,eFocusableElement:g}=this,f=[c,h],S={setTabIndex:ce=>{f.forEach(fe=>ce!=null?fe.setAttribute("tabindex",ce):fe.removeAttribute("tabindex"))}};this.addTabGuards(c,h);let{focusTrapActive:w=!1,onFocusIn:M,onFocusOut:P,focusInnerElement:O,handleKeyDown:G,onTabKeyDown:j,shouldStopEventPropagation:Y,forceFocusOutWhenTabGuardsAreEmpty:J,isFocusableContainer:ne}=s;this.tabGuardCtrl=this.createManagedBean(new b.TabGuardCtrl({comp:S,focusTrapActive:w,eTopGuard:c,eBottomGuard:h,eFocusableElement:g,onFocusIn:M,onFocusOut:P,focusInnerElement:O,handleKeyDown:G,onTabKeyDown:j,shouldStopEventPropagation:Y,forceFocusOutWhenTabGuardsAreEmpty:J,isFocusableContainer:ne}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(s){let c=(0,E._getDocument)(this.beans).createElement("div"),h=s==="top"?b.TabGuardClassNames.TAB_GUARD_TOP:b.TabGuardClassNames.TAB_GUARD_BOTTOM;return c.classList.add(b.TabGuardClassNames.TAB_GUARD,h),(0,z._setAriaRole)(c,"presentation"),c}addTabGuards(s,c){let h=this.eFocusableElement;h.insertAdjacentElement("afterbegin",s),h.insertAdjacentElement("beforeend",c)}removeAllChildrenExceptTabGuards(){let s=[this.eTopGuard,this.eBottomGuard];(0,T._clearElement)(this.comp.getFocusableElement()),this.addTabGuards(...s)}forceFocusOutOfContainer(s=!1){this.tabGuardCtrl.forceFocusOutOfContainer(s)}appendChild(s,c,h){(0,T._isNodeOrElement)(c)||(c=c.getGui());let{eBottomGuard:g}=this;g?g.insertAdjacentElement("beforebegin",c):s(c,h)}}x.TabGuardFeature=C},9644:function(ae,x,p){Object.defineProperty(x,"__esModule",{value:!0}),x.TouchListener=void 0;let A=p(5889),E=p(3276);x.TouchListener=class{constructor(z,T=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new A.LocalEventService,this.preventMouseClick=T;let b=this.onTouchStart.bind(this),C=this.onTouchMove.bind(this),d=this.onTouchEnd.bind(this);z.addEventListener("touchstart",b,{passive:!0}),z.addEventListener("touchmove",C,{passive:!0}),z.addEventListener("touchend",d,{passive:!1}),this.destroyFuncs.push(()=>{z.removeEventListener("touchstart",b,{passive:!0}),z.removeEventListener("touchmove",C,{passive:!0}),z.removeEventListener("touchend",d,{passive:!1})})}getActiveTouch(z){for(let T=0;T<z.length;T++)if(z[T].identifier===this.touchStart.identifier)return z[T];return null}addEventListener(z,T){this.localEventService.addEventListener(z,T)}removeEventListener(z,T){this.localEventService.removeEventListener(z,T)}onTouchStart(z){if(this.touching)return;this.touchStart=z.touches[0],this.touching=!0,this.moved=!1;let T=this.touchStart;window.setTimeout(()=>{let b=this.touchStart===T;if(this.touching&&b&&!this.moved){this.moved=!0;let C={type:"longTap",touchStart:this.touchStart,touchEvent:z};this.localEventService.dispatchEvent(C)}},500)}onTouchMove(z){if(!this.touching)return;let T=this.getActiveTouch(z.touches);T&&!(0,E._areEventsNear)(T,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(z){if(this.touching){if(!this.moved){let T={type:"tap",touchStart:this.touchStart};this.localEventService.dispatchEvent(T),this.checkForDoubleTap()}this.preventMouseClick&&z.cancelable&&z.preventDefault(),this.touching=!1}}checkForDoubleTap(){let z=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0)if(z-this.lastTapTime>this.DOUBLE_TAP_MILLIS){let T={type:"doubleTap",touchStart:this.touchStart};this.localEventService.dispatchEvent(T),this.lastTapTime=null}else this.lastTapTime=z;else this.lastTapTime=z}destroy(){this.destroyFuncs.forEach(z=>z())}}},6055:function(ae){ae.exports="data:font/woff2;charset=utf-8;base64, "},8430:function(ae){ae.exports="data:font/woff2;charset=utf-8;base64, "},7738:function(ae){ae.exports="data:font/woff2;charset=utf-8;base64, "},9377:function(ae){ae.exports="data:font/woff2;charset=utf-8;base64, "},2006:function(ae){ae.exports="data:font/woff2;charset=utf-8;base64, "},2487:function(ae){ae.exports="data:image/svg+xml;base64, "},7249:function(ae){ae.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg=="},6080:function(ae){ae.exports='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>'},5608:function(ae,x,p){p.r(x),p.d(x,{__addDisposableResource:function(){return ot},__assign:function(){return z},__asyncDelegator:function(){return ce},__asyncGenerator:function(){return ne},__asyncValues:function(){return fe},__await:function(){return J},__awaiter:function(){return f},__classPrivateFieldGet:function(){return We},__classPrivateFieldIn:function(){return tt},__classPrivateFieldSet:function(){return it},__createBinding:function(){return w},__decorate:function(){return b},__disposeResources:function(){return St},__esDecorate:function(){return d},__exportStar:function(){return M},__extends:function(){return E},__generator:function(){return S},__importDefault:function(){return Fe},__importStar:function(){return _e},__makeTemplateObject:function(){return xe},__metadata:function(){return g},__param:function(){return C},__propKey:function(){return c},__read:function(){return O},__rest:function(){return T},__runInitializers:function(){return s},__setFunctionName:function(){return h},__spread:function(){return G},__spreadArray:function(){return Y},__spreadArrays:function(){return j},__values:function(){return P}});var A=function(Xe,Ke){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ye,Ze){Ye.__proto__=Ze}||function(Ye,Ze){for(var Pe in Ze)Object.prototype.hasOwnProperty.call(Ze,Pe)&&(Ye[Pe]=Ze[Pe])},A(Xe,Ke)};function E(Xe,Ke){if(typeof Ke!="function"&&Ke!==null)throw new TypeError("Class extends value "+String(Ke)+" is not a constructor or null");function Ye(){this.constructor=Xe}A(Xe,Ke),Xe.prototype=Ke===null?Object.create(Ke):(Ye.prototype=Ke.prototype,new Ye)}var z=function(){return z=Object.assign||function(Xe){for(var Ke,Ye=1,Ze=arguments.length;Ye<Ze;Ye++)for(var Pe in Ke=arguments[Ye])Object.prototype.hasOwnProperty.call(Ke,Pe)&&(Xe[Pe]=Ke[Pe]);return Xe},z.apply(this,arguments)};function T(Xe,Ke){var Ye={};for(var Ze in Xe)Object.prototype.hasOwnProperty.call(Xe,Ze)&&Ke.indexOf(Ze)<0&&(Ye[Ze]=Xe[Ze]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function"){var Pe=0;for(Ze=Object.getOwnPropertySymbols(Xe);Pe<Ze.length;Pe++)Ke.indexOf(Ze[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Ze[Pe])&&(Ye[Ze[Pe]]=Xe[Ze[Pe]])}return Ye}function b(Xe,Ke,Ye,Ze){var Pe,ct=arguments.length,dt=ct<3?Ke:Ze===null?Ze=Object.getOwnPropertyDescriptor(Ke,Ye):Ze;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")dt=Reflect.decorate(Xe,Ke,Ye,Ze);else for(var bt=Xe.length-1;bt>=0;bt--)(Pe=Xe[bt])&&(dt=(ct<3?Pe(dt):ct>3?Pe(Ke,Ye,dt):Pe(Ke,Ye))||dt);return ct>3&&dt&&Object.defineProperty(Ke,Ye,dt),dt}function C(Xe,Ke){return function(Ye,Ze){Ke(Ye,Ze,Xe)}}function d(Xe,Ke,Ye,Ze,Pe,ct){function dt(ln){if(ln!==void 0&&typeof ln!="function")throw new TypeError("Function expected");return ln}for(var bt,Pt=Ze.kind,Nt=Pt==="getter"?"get":Pt==="setter"?"set":"value",ft=!Ke&&Xe?Ze.static?Xe:Xe.prototype:null,Lt=Ke||(ft?Object.getOwnPropertyDescriptor(ft,Ze.name):{}),Vt=!1,Jt=Ye.length-1;Jt>=0;Jt--){var $t={};for(var Ii in Ze)$t[Ii]=Ii==="access"?{}:Ze[Ii];for(var Ii in Ze.access)$t.access[Ii]=Ze.access[Ii];$t.addInitializer=function(ln){if(Vt)throw new TypeError("Cannot add initializers after decoration has completed");ct.push(dt(ln||null))};var zi=(0,Ye[Jt])(Pt==="accessor"?{get:Lt.get,set:Lt.set}:Lt[Nt],$t);if(Pt==="accessor"){if(zi===void 0)continue;if(zi===null||typeof zi!="object")throw new TypeError("Object expected");(bt=dt(zi.get))&&(Lt.get=bt),(bt=dt(zi.set))&&(Lt.set=bt),(bt=dt(zi.init))&&Pe.unshift(bt)}else(bt=dt(zi))&&(Pt==="field"?Pe.unshift(bt):Lt[Nt]=bt)}ft&&Object.defineProperty(ft,Ze.name,Lt),Vt=!0}function s(Xe,Ke,Ye){for(var Ze=arguments.length>2,Pe=0;Pe<Ke.length;Pe++)Ye=Ze?Ke[Pe].call(Xe,Ye):Ke[Pe].call(Xe);return Ze?Ye:void 0}function c(Xe){return typeof Xe=="symbol"?Xe:"".concat(Xe)}function h(Xe,Ke,Ye){return typeof Ke=="symbol"&&(Ke=Ke.description?"[".concat(Ke.description,"]"):""),Object.defineProperty(Xe,"name",{configurable:!0,value:Ye?"".concat(Ye," ",Ke):Ke})}function g(Xe,Ke){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Xe,Ke)}function f(Xe,Ke,Ye,Ze){return new(Ye||(Ye=Promise))(function(Pe,ct){function dt(Nt){try{Pt(Ze.next(Nt))}catch(ft){ct(ft)}}function bt(Nt){try{Pt(Ze.throw(Nt))}catch(ft){ct(ft)}}function Pt(Nt){var ft;Nt.done?Pe(Nt.value):(ft=Nt.value,ft instanceof Ye?ft:new Ye(function(Lt){Lt(ft)})).then(dt,bt)}Pt((Ze=Ze.apply(Xe,Ke||[])).next())})}function S(Xe,Ke){var Ye,Ze,Pe,ct,dt={label:0,sent:function(){if(1&Pe[0])throw Pe[1];return Pe[1]},trys:[],ops:[]};return ct={next:bt(0),throw:bt(1),return:bt(2)},typeof Symbol=="function"&&(ct[Symbol.iterator]=function(){return this}),ct;function bt(Pt){return function(Nt){return function(ft){if(Ye)throw new TypeError("Generator is already executing.");for(;ct&&(ct=0,ft[0]&&(dt=0)),dt;)try{if(Ye=1,Ze&&(Pe=2&ft[0]?Ze.return:ft[0]?Ze.throw||((Pe=Ze.return)&&Pe.call(Ze),0):Ze.next)&&!(Pe=Pe.call(Ze,ft[1])).done)return Pe;switch(Ze=0,Pe&&(ft=[2&ft[0],Pe.value]),ft[0]){case 0:case 1:Pe=ft;break;case 4:return dt.label++,{value:ft[1],done:!1};case 5:dt.label++,Ze=ft[1],ft=[0];continue;case 7:ft=dt.ops.pop(),dt.trys.pop();continue;default:if(Pe=dt.trys,!((Pe=Pe.length>0&&Pe[Pe.length-1])||ft[0]!==6&&ft[0]!==2)){dt=0;continue}if(ft[0]===3&&(!Pe||ft[1]>Pe[0]&&ft[1]<Pe[3])){dt.label=ft[1];break}if(ft[0]===6&&dt.label<Pe[1]){dt.label=Pe[1],Pe=ft;break}if(Pe&&dt.label<Pe[2]){dt.label=Pe[2],dt.ops.push(ft);break}Pe[2]&&dt.ops.pop(),dt.trys.pop();continue}ft=Ke.call(Xe,dt)}catch(Lt){ft=[6,Lt],Ze=0}finally{Ye=Pe=0}if(5&ft[0])throw ft[1];return{value:ft[0]?ft[1]:void 0,done:!0}}([Pt,Nt])}}}var w=Object.create?function(Xe,Ke,Ye,Ze){Ze===void 0&&(Ze=Ye);var Pe=Object.getOwnPropertyDescriptor(Ke,Ye);Pe&&!("get"in Pe?!Ke.__esModule:Pe.writable||Pe.configurable)||(Pe={enumerable:!0,get:function(){return Ke[Ye]}}),Object.defineProperty(Xe,Ze,Pe)}:function(Xe,Ke,Ye,Ze){Ze===void 0&&(Ze=Ye),Xe[Ze]=Ke[Ye]};function M(Xe,Ke){for(var Ye in Xe)Ye==="default"||Object.prototype.hasOwnProperty.call(Ke,Ye)||w(Ke,Xe,Ye)}function P(Xe){var Ke=typeof Symbol=="function"&&Symbol.iterator,Ye=Ke&&Xe[Ke],Ze=0;if(Ye)return Ye.call(Xe);if(Xe&&typeof Xe.length=="number")return{next:function(){return Xe&&Ze>=Xe.length&&(Xe=void 0),{value:Xe&&Xe[Ze++],done:!Xe}}};throw new TypeError(Ke?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(Xe,Ke){var Ye=typeof Symbol=="function"&&Xe[Symbol.iterator];if(!Ye)return Xe;var Ze,Pe,ct=Ye.call(Xe),dt=[];try{for(;(Ke===void 0||Ke-- >0)&&!(Ze=ct.next()).done;)dt.push(Ze.value)}catch(bt){Pe={error:bt}}finally{try{Ze&&!Ze.done&&(Ye=ct.return)&&Ye.call(ct)}finally{if(Pe)throw Pe.error}}return dt}function G(){for(var Xe=[],Ke=0;Ke<arguments.length;Ke++)Xe=Xe.concat(O(arguments[Ke]));return Xe}function j(){for(var Xe=0,Ke=0,Ye=arguments.length;Ke<Ye;Ke++)Xe+=arguments[Ke].length;var Ze=Array(Xe),Pe=0;for(Ke=0;Ke<Ye;Ke++)for(var ct=arguments[Ke],dt=0,bt=ct.length;dt<bt;dt++,Pe++)Ze[Pe]=ct[dt];return Ze}function Y(Xe,Ke,Ye){if(Ye||arguments.length===2)for(var Ze,Pe=0,ct=Ke.length;Pe<ct;Pe++)!Ze&&Pe in Ke||(Ze||(Ze=Array.prototype.slice.call(Ke,0,Pe)),Ze[Pe]=Ke[Pe]);return Xe.concat(Ze||Array.prototype.slice.call(Ke))}function J(Xe){return this instanceof J?(this.v=Xe,this):new J(Xe)}function ne(Xe,Ke,Ye){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ze,Pe=Ye.apply(Xe,Ke||[]),ct=[];return Ze={},dt("next"),dt("throw"),dt("return"),Ze[Symbol.asyncIterator]=function(){return this},Ze;function dt(Lt){Pe[Lt]&&(Ze[Lt]=function(Vt){return new Promise(function(Jt,$t){ct.push([Lt,Vt,Jt,$t])>1||bt(Lt,Vt)})})}function bt(Lt,Vt){try{(Jt=Pe[Lt](Vt)).value instanceof J?Promise.resolve(Jt.value.v).then(Pt,Nt):ft(ct[0][2],Jt)}catch($t){ft(ct[0][3],$t)}var Jt}function Pt(Lt){bt("next",Lt)}function Nt(Lt){bt("throw",Lt)}function ft(Lt,Vt){Lt(Vt),ct.shift(),ct.length&&bt(ct[0][0],ct[0][1])}}function ce(Xe){var Ke,Ye;return Ke={},Ze("next"),Ze("throw",function(Pe){throw Pe}),Ze("return"),Ke[Symbol.iterator]=function(){return this},Ke;function Ze(Pe,ct){Ke[Pe]=Xe[Pe]?function(dt){return(Ye=!Ye)?{value:J(Xe[Pe](dt)),done:!1}:ct?ct(dt):dt}:ct}}function fe(Xe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ke,Ye=Xe[Symbol.asyncIterator];return Ye?Ye.call(Xe):(Xe=P(Xe),Ke={},Ze("next"),Ze("throw"),Ze("return"),Ke[Symbol.asyncIterator]=function(){return this},Ke);function Ze(Pe){Ke[Pe]=Xe[Pe]&&function(ct){return new Promise(function(dt,bt){(function(Pt,Nt,ft,Lt){Promise.resolve(Lt).then(function(Vt){Pt({value:Vt,done:ft})},Nt)})(dt,bt,(ct=Xe[Pe](ct)).done,ct.value)})}}}function xe(Xe,Ke){return Object.defineProperty?Object.defineProperty(Xe,"raw",{value:Ke}):Xe.raw=Ke,Xe}var Le=Object.create?function(Xe,Ke){Object.defineProperty(Xe,"default",{enumerable:!0,value:Ke})}:function(Xe,Ke){Xe.default=Ke};function _e(Xe){if(Xe&&Xe.__esModule)return Xe;var Ke={};if(Xe!=null)for(var Ye in Xe)Ye!=="default"&&Object.prototype.hasOwnProperty.call(Xe,Ye)&&w(Ke,Xe,Ye);return Le(Ke,Xe),Ke}function Fe(Xe){return Xe&&Xe.__esModule?Xe:{default:Xe}}function We(Xe,Ke,Ye,Ze){if(Ye==="a"&&!Ze)throw new TypeError("Private accessor was defined without a getter");if(typeof Ke=="function"?Xe!==Ke||!Ze:!Ke.has(Xe))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Ye==="m"?Ze:Ye==="a"?Ze.call(Xe):Ze?Ze.value:Ke.get(Xe)}function it(Xe,Ke,Ye,Ze,Pe){if(Ze==="m")throw new TypeError("Private method is not writable");if(Ze==="a"&&!Pe)throw new TypeError("Private accessor was defined without a setter");if(typeof Ke=="function"?Xe!==Ke||!Pe:!Ke.has(Xe))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Ze==="a"?Pe.call(Xe,Ye):Pe?Pe.value=Ye:Ke.set(Xe,Ye),Ye}function tt(Xe,Ke){if(Ke===null||typeof Ke!="object"&&typeof Ke!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof Xe=="function"?Ke===Xe:Xe.has(Ke)}function ot(Xe,Ke,Ye){if(Ke!=null){if(typeof Ke!="object"&&typeof Ke!="function")throw new TypeError("Object expected.");var Ze;if(Ye){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Ze=Ke[Symbol.asyncDispose]}if(Ze===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Ze=Ke[Symbol.dispose]}if(typeof Ze!="function")throw new TypeError("Object not disposable.");Xe.stack.push({value:Ke,dispose:Ze,async:Ye})}else Ye&&Xe.stack.push({async:!0});return Ke}var st=typeof SuppressedError=="function"?SuppressedError:function(Xe,Ke,Ye){var Ze=new Error(Ye);return Ze.name="SuppressedError",Ze.error=Xe,Ze.suppressed=Ke,Ze};function St(Xe){function Ke(Ye){Xe.error=Xe.hasError?new st(Ye,Xe.error,"An error was suppressed during disposal."):Ye,Xe.hasError=!0}return function Ye(){for(;Xe.stack.length;){var Ze=Xe.stack.pop();try{var Pe=Ze.dispose&&Ze.dispose.call(Ze.value);if(Ze.async)return Promise.resolve(Pe).then(Ye,function(ct){return Ke(ct),Ye()})}catch(ct){Ke(ct)}}if(Xe.hasError)throw Xe.error}()}x.default={__extends:E,__assign:z,__rest:T,__decorate:b,__param:C,__metadata:g,__awaiter:f,__generator:S,__createBinding:w,__exportStar:M,__values:P,__read:O,__spread:G,__spreadArrays:j,__spreadArray:Y,__await:J,__asyncGenerator:ne,__asyncDelegator:ce,__asyncValues:fe,__makeTemplateObject:xe,__importStar:_e,__importDefault:Fe,__classPrivateFieldGet:We,__classPrivateFieldSet:it,__classPrivateFieldIn:tt,__addDisposableResource:ot,__disposeResources:St}}},oe={};function he(ae){var x=oe[ae];if(x!==void 0)return x.exports;var p=oe[ae]={id:ae,exports:{}};return re[ae](p,p.exports,he),p.exports}return he.m=re,he.n=function(ae){var x=ae&&ae.__esModule?function(){return ae.default}:function(){return ae};return he.d(x,{a:x}),x},he.d=function(ae,x){for(var p in x)he.o(x,p)&&!he.o(ae,p)&&Object.defineProperty(ae,p,{enumerable:!0,get:x[p]})},he.o=function(ae,x){return Object.prototype.hasOwnProperty.call(ae,x)},he.r=function(ae){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ae,"__esModule",{value:!0})},he.b=document.baseURI||self.location.href,he(9058)}()})});var YX=uO((Az,ZV)=>{(function(oe,he){typeof Az=="object"&&typeof ZV=="object"?ZV.exports=he():typeof define=="function"&&define.amd?define([],he):typeof Az=="object"?Az.agGrid=he():oe.agGrid=he()})(self,function(){return function(){var re={2974:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=A(62),d=A.n(C),s=new URL(A(2487),A.b),c=new URL(A(6080),A.b),h=b()(z()),g=d()(s),f=d()(c);h.push([x.id,`.ag-measurement-container {
  --ag-legacy-styles-loaded: "true";
}

.ag-icon {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  position: relative;
}
.ag-icon::before {
  content: "";
  font-family: inherit;
}
.ag-icon::after {
  background: transparent var(--ag-icon-image, none) center/contain no-repeat;
  display: var(--ag-icon-image-display);
  opacity: var(--ag-icon-image-opacity, 0.9);
  position: absolute;
  inset: 0;
  content: "";
}

.ag-icon-aggregation {
  font-family: var(--ag-icon-font-family-aggregation, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-aggregation, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-aggregation, var(--ag-icon-font-color));
}

.ag-icon-aggregation::before {
  content: var(--ag-icon-font-code-aggregation, "\\f101");
  display: var(--ag-icon-font-display-aggregation, var(--ag-icon-font-display));
}

.ag-icon-aggregation::after {
  background-image: var(--ag-icon-image-aggregation, var(--ag-icon-image));
  display: var(--ag-icon-image-display-aggregation, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-aggregation, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-arrows {
  font-family: var(--ag-icon-font-family-arrows, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-arrows, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-arrows, var(--ag-icon-font-color));
}

.ag-icon-arrows::before {
  content: var(--ag-icon-font-code-arrows, "\\f102");
  display: var(--ag-icon-font-display-arrows, var(--ag-icon-font-display));
}

.ag-icon-arrows::after {
  background-image: var(--ag-icon-image-arrows, var(--ag-icon-image));
  display: var(--ag-icon-image-display-arrows, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-arrows, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-asc {
  font-family: var(--ag-icon-font-family-asc, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-asc, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-asc, var(--ag-icon-font-color));
}

.ag-icon-asc::before {
  content: var(--ag-icon-font-code-asc, "\\f103");
  display: var(--ag-icon-font-display-asc, var(--ag-icon-font-display));
}

.ag-icon-asc::after {
  background-image: var(--ag-icon-image-asc, var(--ag-icon-image));
  display: var(--ag-icon-image-display-asc, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-asc, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cancel {
  font-family: var(--ag-icon-font-family-cancel, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cancel, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cancel, var(--ag-icon-font-color));
}

.ag-icon-cancel::before {
  content: var(--ag-icon-font-code-cancel, "\\f104");
  display: var(--ag-icon-font-display-cancel, var(--ag-icon-font-display));
}

.ag-icon-cancel::after {
  background-image: var(--ag-icon-image-cancel, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cancel, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-cancel, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-chart {
  font-family: var(--ag-icon-font-family-chart, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-chart, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-chart, var(--ag-icon-font-color));
}

.ag-icon-chart::before {
  content: var(--ag-icon-font-code-chart, "\\f105");
  display: var(--ag-icon-font-display-chart, var(--ag-icon-font-display));
}

.ag-icon-chart::after {
  background-image: var(--ag-icon-image-chart, var(--ag-icon-image));
  display: var(--ag-icon-image-display-chart, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-chart, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-checked {
  font-family: var(--ag-icon-font-family-checkbox-checked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-checked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-checked, var(--ag-icon-font-color));
}

.ag-icon-checkbox-checked::before {
  content: var(--ag-icon-font-code-checkbox-checked, "\\f106");
  display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));
}

.ag-icon-checkbox-checked::after {
  background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-indeterminate {
  font-family: var(--ag-icon-font-family-checkbox-indeterminate, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-indeterminate, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-indeterminate, var(--ag-icon-font-color));
}

.ag-icon-checkbox-indeterminate::before {
  content: var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");
  display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));
}

.ag-icon-checkbox-indeterminate::after {
  background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-checkbox-unchecked {
  font-family: var(--ag-icon-font-family-checkbox-unchecked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-checkbox-unchecked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-checkbox-unchecked, var(--ag-icon-font-color));
}

.ag-icon-checkbox-unchecked::before {
  content: var(--ag-icon-font-code-checkbox-unchecked, "\\f108");
  display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));
}

.ag-icon-checkbox-unchecked::after {
  background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-color-picker {
  font-family: var(--ag-icon-font-family-color-picker, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-color-picker, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-color-picker, var(--ag-icon-font-color));
}

.ag-icon-color-picker::before {
  content: var(--ag-icon-font-code-color-picker, "\\f109");
  display: var(--ag-icon-font-display-color-picker, var(--ag-icon-font-display));
}

.ag-icon-color-picker::after {
  background-image: var(--ag-icon-image-color-picker, var(--ag-icon-image));
  display: var(--ag-icon-image-display-color-picker, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-color-picker, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-columns {
  font-family: var(--ag-icon-font-family-columns, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-columns, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-columns, var(--ag-icon-font-color));
}

.ag-icon-columns::before {
  content: var(--ag-icon-font-code-columns, "\\f10a");
  display: var(--ag-icon-font-display-columns, var(--ag-icon-font-display));
}

.ag-icon-columns::after {
  background-image: var(--ag-icon-image-columns, var(--ag-icon-image));
  display: var(--ag-icon-image-display-columns, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-columns, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-contracted {
  font-family: var(--ag-icon-font-family-contracted, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-contracted, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-contracted, var(--ag-icon-font-color));
}

.ag-icon-contracted::before {
  content: var(--ag-icon-font-code-contracted, "\\f10b");
  display: var(--ag-icon-font-display-contracted, var(--ag-icon-font-display));
}

.ag-icon-contracted::after {
  background-image: var(--ag-icon-image-contracted, var(--ag-icon-image));
  display: var(--ag-icon-image-display-contracted, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-contracted, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-copy {
  font-family: var(--ag-icon-font-family-copy, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-copy, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-copy, var(--ag-icon-font-color));
}

.ag-icon-copy::before {
  content: var(--ag-icon-font-code-copy, "\\f10c");
  display: var(--ag-icon-font-display-copy, var(--ag-icon-font-display));
}

.ag-icon-copy::after {
  background-image: var(--ag-icon-image-copy, var(--ag-icon-image));
  display: var(--ag-icon-image-display-copy, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-copy, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cross {
  font-family: var(--ag-icon-font-family-cross, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cross, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cross, var(--ag-icon-font-color));
}

.ag-icon-cross::before {
  content: var(--ag-icon-font-code-cross, "\\f10d");
  display: var(--ag-icon-font-display-cross, var(--ag-icon-font-display));
}

.ag-icon-cross::after {
  background-image: var(--ag-icon-image-cross, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cross, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-cross, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-csv {
  font-family: var(--ag-icon-font-family-csv, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-csv, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-csv, var(--ag-icon-font-color));
}

.ag-icon-csv::before {
  content: var(--ag-icon-font-code-csv, "\\f10e");
  display: var(--ag-icon-font-display-csv, var(--ag-icon-font-display));
}

.ag-icon-csv::after {
  background-image: var(--ag-icon-image-csv, var(--ag-icon-image));
  display: var(--ag-icon-image-display-csv, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-csv, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-cut {
  font-family: var(--ag-icon-font-family-cut, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-cut, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-cut, var(--ag-icon-font-color));
}

.ag-icon-cut::before {
  content: var(--ag-icon-font-code-cut, "\\f10f");
  display: var(--ag-icon-font-display-cut, var(--ag-icon-font-display));
}

.ag-icon-cut::after {
  background-image: var(--ag-icon-image-cut, var(--ag-icon-image));
  display: var(--ag-icon-image-display-cut, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-cut, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-desc {
  font-family: var(--ag-icon-font-family-desc, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-desc, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-desc, var(--ag-icon-font-color));
}

.ag-icon-desc::before {
  content: var(--ag-icon-font-code-desc, "\\f110");
  display: var(--ag-icon-font-display-desc, var(--ag-icon-font-display));
}

.ag-icon-desc::after {
  background-image: var(--ag-icon-image-desc, var(--ag-icon-image));
  display: var(--ag-icon-image-display-desc, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-desc, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-excel {
  font-family: var(--ag-icon-font-family-excel, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-excel, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-excel, var(--ag-icon-font-color));
}

.ag-icon-excel::before {
  content: var(--ag-icon-font-code-excel, "\\f111");
  display: var(--ag-icon-font-display-excel, var(--ag-icon-font-display));
}

.ag-icon-excel::after {
  background-image: var(--ag-icon-image-excel, var(--ag-icon-image));
  display: var(--ag-icon-image-display-excel, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-excel, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-expanded {
  font-family: var(--ag-icon-font-family-expanded, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-expanded, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-expanded, var(--ag-icon-font-color));
}

.ag-icon-expanded::before {
  content: var(--ag-icon-font-code-expanded, "\\f112");
  display: var(--ag-icon-font-display-expanded, var(--ag-icon-font-display));
}

.ag-icon-expanded::after {
  background-image: var(--ag-icon-image-expanded, var(--ag-icon-image));
  display: var(--ag-icon-image-display-expanded, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-expanded, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-eye-slash {
  font-family: var(--ag-icon-font-family-eye-slash, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-eye-slash, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-eye-slash, var(--ag-icon-font-color));
}

.ag-icon-eye-slash::before {
  content: var(--ag-icon-font-code-eye-slash, "\\f113");
  display: var(--ag-icon-font-display-eye-slash, var(--ag-icon-font-display));
}

.ag-icon-eye-slash::after {
  background-image: var(--ag-icon-image-eye-slash, var(--ag-icon-image));
  display: var(--ag-icon-image-display-eye-slash, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-eye-slash, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-eye {
  font-family: var(--ag-icon-font-family-eye, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-eye, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-eye, var(--ag-icon-font-color));
}

.ag-icon-eye::before {
  content: var(--ag-icon-font-code-eye, "\\f114");
  display: var(--ag-icon-font-display-eye, var(--ag-icon-font-display));
}

.ag-icon-eye::after {
  background-image: var(--ag-icon-image-eye, var(--ag-icon-image));
  display: var(--ag-icon-image-display-eye, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-eye, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-filter {
  font-family: var(--ag-icon-font-family-filter, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-filter, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-filter, var(--ag-icon-font-color));
}

.ag-icon-filter::before {
  content: var(--ag-icon-font-code-filter, "\\f115");
  display: var(--ag-icon-font-display-filter, var(--ag-icon-font-display));
}

.ag-icon-filter::after {
  background-image: var(--ag-icon-image-filter, var(--ag-icon-image));
  display: var(--ag-icon-image-display-filter, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-filter, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-first {
  font-family: var(--ag-icon-font-family-first, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-first, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-first, var(--ag-icon-font-color));
}

.ag-icon-first::before {
  content: var(--ag-icon-font-code-first, "\\f116");
  display: var(--ag-icon-font-display-first, var(--ag-icon-font-display));
}

.ag-icon-first::after {
  background-image: var(--ag-icon-image-first, var(--ag-icon-image));
  display: var(--ag-icon-image-display-first, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-first, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-grip {
  font-family: var(--ag-icon-font-family-grip, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-grip, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-grip, var(--ag-icon-font-color));
}

.ag-icon-grip::before {
  content: var(--ag-icon-font-code-grip, "\\f117");
  display: var(--ag-icon-font-display-grip, var(--ag-icon-font-display));
}

.ag-icon-grip::after {
  background-image: var(--ag-icon-image-grip, var(--ag-icon-image));
  display: var(--ag-icon-image-display-grip, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-grip, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-group {
  font-family: var(--ag-icon-font-family-group, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-group, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-group, var(--ag-icon-font-color));
}

.ag-icon-group::before {
  content: var(--ag-icon-font-code-group, "\\f118");
  display: var(--ag-icon-font-display-group, var(--ag-icon-font-display));
}

.ag-icon-group::after {
  background-image: var(--ag-icon-image-group, var(--ag-icon-image));
  display: var(--ag-icon-image-display-group, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-group, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-last {
  font-family: var(--ag-icon-font-family-last, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-last, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-last, var(--ag-icon-font-color));
}

.ag-icon-last::before {
  content: var(--ag-icon-font-code-last, "\\f119");
  display: var(--ag-icon-font-display-last, var(--ag-icon-font-display));
}

.ag-icon-last::after {
  background-image: var(--ag-icon-image-last, var(--ag-icon-image));
  display: var(--ag-icon-image-display-last, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-last, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-left {
  font-family: var(--ag-icon-font-family-left, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-left, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-left, var(--ag-icon-font-color));
}

.ag-icon-left::before {
  content: var(--ag-icon-font-code-left, "\\f11a");
  display: var(--ag-icon-font-display-left, var(--ag-icon-font-display));
}

.ag-icon-left::after {
  background-image: var(--ag-icon-image-left, var(--ag-icon-image));
  display: var(--ag-icon-image-display-left, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-left, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-linked {
  font-family: var(--ag-icon-font-family-linked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-linked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-linked, var(--ag-icon-font-color));
}

.ag-icon-linked::before {
  content: var(--ag-icon-font-code-linked, "\\f11b");
  display: var(--ag-icon-font-display-linked, var(--ag-icon-font-display));
}

.ag-icon-linked::after {
  background-image: var(--ag-icon-image-linked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-linked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-linked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-loading {
  font-family: var(--ag-icon-font-family-loading, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-loading, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-loading, var(--ag-icon-font-color));
}

.ag-icon-loading::before {
  content: var(--ag-icon-font-code-loading, "\\f11c");
  display: var(--ag-icon-font-display-loading, var(--ag-icon-font-display));
}

.ag-icon-loading::after {
  background-image: var(--ag-icon-image-loading, var(--ag-icon-image));
  display: var(--ag-icon-image-display-loading, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-loading, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-maximize {
  font-family: var(--ag-icon-font-family-maximize, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-maximize, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-maximize, var(--ag-icon-font-color));
}

.ag-icon-maximize::before {
  content: var(--ag-icon-font-code-maximize, "\\f11d");
  display: var(--ag-icon-font-display-maximize, var(--ag-icon-font-display));
}

.ag-icon-maximize::after {
  background-image: var(--ag-icon-image-maximize, var(--ag-icon-image));
  display: var(--ag-icon-image-display-maximize, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-maximize, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-menu {
  font-family: var(--ag-icon-font-family-menu, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-menu, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-menu, var(--ag-icon-font-color));
}

.ag-icon-menu::before {
  content: var(--ag-icon-font-code-menu, "\\f11e");
  display: var(--ag-icon-font-display-menu, var(--ag-icon-font-display));
}

.ag-icon-menu::after {
  background-image: var(--ag-icon-image-menu, var(--ag-icon-image));
  display: var(--ag-icon-image-display-menu, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-menu, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-minimize {
  font-family: var(--ag-icon-font-family-minimize, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-minimize, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-minimize, var(--ag-icon-font-color));
}

.ag-icon-minimize::before {
  content: var(--ag-icon-font-code-minimize, "\\f11f");
  display: var(--ag-icon-font-display-minimize, var(--ag-icon-font-display));
}

.ag-icon-minimize::after {
  background-image: var(--ag-icon-image-minimize, var(--ag-icon-image));
  display: var(--ag-icon-image-display-minimize, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-minimize, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-next {
  font-family: var(--ag-icon-font-family-next, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-next, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-next, var(--ag-icon-font-color));
}

.ag-icon-next::before {
  content: var(--ag-icon-font-code-next, "\\f120");
  display: var(--ag-icon-font-display-next, var(--ag-icon-font-display));
}

.ag-icon-next::after {
  background-image: var(--ag-icon-image-next, var(--ag-icon-image));
  display: var(--ag-icon-image-display-next, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-next, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-none {
  font-family: var(--ag-icon-font-family-none, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-none, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-none, var(--ag-icon-font-color));
}

.ag-icon-none::before {
  content: var(--ag-icon-font-code-none, "\\f121");
  display: var(--ag-icon-font-display-none, var(--ag-icon-font-display));
}

.ag-icon-none::after {
  background-image: var(--ag-icon-image-none, var(--ag-icon-image));
  display: var(--ag-icon-image-display-none, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-none, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-not-allowed {
  font-family: var(--ag-icon-font-family-not-allowed, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-not-allowed, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-not-allowed, var(--ag-icon-font-color));
}

.ag-icon-not-allowed::before {
  content: var(--ag-icon-font-code-not-allowed, "\\f122");
  display: var(--ag-icon-font-display-not-allowed, var(--ag-icon-font-display));
}

.ag-icon-not-allowed::after {
  background-image: var(--ag-icon-image-not-allowed, var(--ag-icon-image));
  display: var(--ag-icon-image-display-not-allowed, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-not-allowed, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-paste {
  font-family: var(--ag-icon-font-family-paste, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-paste, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-paste, var(--ag-icon-font-color));
}

.ag-icon-paste::before {
  content: var(--ag-icon-font-code-paste, "\\f123");
  display: var(--ag-icon-font-display-paste, var(--ag-icon-font-display));
}

.ag-icon-paste::after {
  background-image: var(--ag-icon-image-paste, var(--ag-icon-image));
  display: var(--ag-icon-image-display-paste, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-paste, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-pin {
  font-family: var(--ag-icon-font-family-pin, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-pin, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-pin, var(--ag-icon-font-color));
}

.ag-icon-pin::before {
  content: var(--ag-icon-font-code-pin, "\\f124");
  display: var(--ag-icon-font-display-pin, var(--ag-icon-font-display));
}

.ag-icon-pin::after {
  background-image: var(--ag-icon-image-pin, var(--ag-icon-image));
  display: var(--ag-icon-image-display-pin, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-pin, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-pivot {
  font-family: var(--ag-icon-font-family-pivot, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-pivot, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-pivot, var(--ag-icon-font-color));
}

.ag-icon-pivot::before {
  content: var(--ag-icon-font-code-pivot, "\\f125");
  display: var(--ag-icon-font-display-pivot, var(--ag-icon-font-display));
}

.ag-icon-pivot::after {
  background-image: var(--ag-icon-image-pivot, var(--ag-icon-image));
  display: var(--ag-icon-image-display-pivot, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-pivot, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-previous {
  font-family: var(--ag-icon-font-family-previous, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-previous, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-previous, var(--ag-icon-font-color));
}

.ag-icon-previous::before {
  content: var(--ag-icon-font-code-previous, "\\f126");
  display: var(--ag-icon-font-display-previous, var(--ag-icon-font-display));
}

.ag-icon-previous::after {
  background-image: var(--ag-icon-image-previous, var(--ag-icon-image));
  display: var(--ag-icon-image-display-previous, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-previous, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-radio-button-off {
  font-family: var(--ag-icon-font-family-radio-button-off, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-radio-button-off, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-radio-button-off, var(--ag-icon-font-color));
}

.ag-icon-radio-button-off::before {
  content: var(--ag-icon-font-code-radio-button-off, "\\f127");
  display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));
}

.ag-icon-radio-button-off::after {
  background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-radio-button-on {
  font-family: var(--ag-icon-font-family-radio-button-on, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-radio-button-on, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-radio-button-on, var(--ag-icon-font-color));
}

.ag-icon-radio-button-on::before {
  content: var(--ag-icon-font-code-radio-button-on, "\\f128");
  display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));
}

.ag-icon-radio-button-on::after {
  background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-right {
  font-family: var(--ag-icon-font-family-right, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-right, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-right, var(--ag-icon-font-color));
}

.ag-icon-right::before {
  content: var(--ag-icon-font-code-right, "\\f129");
  display: var(--ag-icon-font-display-right, var(--ag-icon-font-display));
}

.ag-icon-right::after {
  background-image: var(--ag-icon-image-right, var(--ag-icon-image));
  display: var(--ag-icon-image-display-right, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-right, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-save {
  font-family: var(--ag-icon-font-family-save, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-save, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-save, var(--ag-icon-font-color));
}

.ag-icon-save::before {
  content: var(--ag-icon-font-code-save, "\\f12a");
  display: var(--ag-icon-font-display-save, var(--ag-icon-font-display));
}

.ag-icon-save::after {
  background-image: var(--ag-icon-image-save, var(--ag-icon-image));
  display: var(--ag-icon-image-display-save, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-save, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-down {
  font-family: var(--ag-icon-font-family-small-down, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-down, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-down, var(--ag-icon-font-color));
}

.ag-icon-small-down::before {
  content: var(--ag-icon-font-code-small-down, "\\f12b");
  display: var(--ag-icon-font-display-small-down, var(--ag-icon-font-display));
}

.ag-icon-small-down::after {
  background-image: var(--ag-icon-image-small-down, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-down, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-small-down, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-left {
  font-family: var(--ag-icon-font-family-small-left, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-left, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-left, var(--ag-icon-font-color));
}

.ag-icon-small-left::before {
  content: var(--ag-icon-font-code-small-left, "\\f12c");
  display: var(--ag-icon-font-display-small-left, var(--ag-icon-font-display));
}

.ag-icon-small-left::after {
  background-image: var(--ag-icon-image-small-left, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-left, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-small-left, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-right {
  font-family: var(--ag-icon-font-family-small-right, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-right, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-right, var(--ag-icon-font-color));
}

.ag-icon-small-right::before {
  content: var(--ag-icon-font-code-small-right, "\\f12d");
  display: var(--ag-icon-font-display-small-right, var(--ag-icon-font-display));
}

.ag-icon-small-right::after {
  background-image: var(--ag-icon-image-small-right, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-right, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-small-right, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-small-up {
  font-family: var(--ag-icon-font-family-small-up, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-small-up, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-small-up, var(--ag-icon-font-color));
}

.ag-icon-small-up::before {
  content: var(--ag-icon-font-code-small-up, "\\f12e");
  display: var(--ag-icon-font-display-small-up, var(--ag-icon-font-display));
}

.ag-icon-small-up::after {
  background-image: var(--ag-icon-image-small-up, var(--ag-icon-image));
  display: var(--ag-icon-image-display-small-up, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-small-up, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tick {
  font-family: var(--ag-icon-font-family-tick, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tick, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tick, var(--ag-icon-font-color));
}

.ag-icon-tick::before {
  content: var(--ag-icon-font-code-tick, "\\f12f");
  display: var(--ag-icon-font-display-tick, var(--ag-icon-font-display));
}

.ag-icon-tick::after {
  background-image: var(--ag-icon-image-tick, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tick, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-tick, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-closed {
  font-family: var(--ag-icon-font-family-tree-closed, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-closed, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-closed, var(--ag-icon-font-color));
}

.ag-icon-tree-closed::before {
  content: var(--ag-icon-font-code-tree-closed, "\\f130");
  display: var(--ag-icon-font-display-tree-closed, var(--ag-icon-font-display));
}

.ag-icon-tree-closed::after {
  background-image: var(--ag-icon-image-tree-closed, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-closed, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-tree-closed, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-indeterminate {
  font-family: var(--ag-icon-font-family-tree-indeterminate, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-indeterminate, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-indeterminate, var(--ag-icon-font-color));
}

.ag-icon-tree-indeterminate::before {
  content: var(--ag-icon-font-code-tree-indeterminate, "\\f131");
  display: var(--ag-icon-font-display-tree-indeterminate, var(--ag-icon-font-display));
}

.ag-icon-tree-indeterminate::after {
  background-image: var(--ag-icon-image-tree-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-indeterminate, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-tree-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-tree-open {
  font-family: var(--ag-icon-font-family-tree-open, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-tree-open, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-tree-open, var(--ag-icon-font-color));
}

.ag-icon-tree-open::before {
  content: var(--ag-icon-font-code-tree-open, "\\f132");
  display: var(--ag-icon-font-display-tree-open, var(--ag-icon-font-display));
}

.ag-icon-tree-open::after {
  background-image: var(--ag-icon-image-tree-open, var(--ag-icon-image));
  display: var(--ag-icon-image-display-tree-open, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-tree-open, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-unlinked {
  font-family: var(--ag-icon-font-family-unlinked, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-unlinked, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-unlinked, var(--ag-icon-font-color));
}

.ag-icon-unlinked::before {
  content: var(--ag-icon-font-code-unlinked, "\\f133");
  display: var(--ag-icon-font-display-unlinked, var(--ag-icon-font-display));
}

.ag-icon-unlinked::after {
  background-image: var(--ag-icon-image-unlinked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-unlinked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-unlinked, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-up {
  font-family: var(--ag-icon-font-family-up, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-up, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-up, var(--ag-icon-font-color));
}

.ag-icon-up::before {
  content: var(--ag-icon-font-code-up, "\\f134");
  display: var(--ag-icon-font-display-up, var(--ag-icon-font-display));
}

.ag-icon-up::after {
  background-image: var(--ag-icon-image-up, var(--ag-icon-image));
  display: var(--ag-icon-image-display-up, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-up, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-down {
  font-family: var(--ag-icon-font-family-down, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-down, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-down, var(--ag-icon-font-color));
}

.ag-icon-down::before {
  content: var(--ag-icon-font-code-down, "\\f135");
  display: var(--ag-icon-font-display-down, var(--ag-icon-font-display));
}

.ag-icon-down::after {
  background-image: var(--ag-icon-image-down, var(--ag-icon-image));
  display: var(--ag-icon-image-display-down, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-down, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-plus {
  font-family: var(--ag-icon-font-family-plus, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-plus, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-plus, var(--ag-icon-font-color));
}

.ag-icon-plus::before {
  content: var(--ag-icon-font-code-plus, "\\f136");
  display: var(--ag-icon-font-display-plus, var(--ag-icon-font-display));
}

.ag-icon-plus::after {
  background-image: var(--ag-icon-image-plus, var(--ag-icon-image));
  display: var(--ag-icon-image-display-plus, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-plus, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-minus {
  font-family: var(--ag-icon-font-family-minus, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-minus, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-minus, var(--ag-icon-font-color));
}

.ag-icon-minus::before {
  content: var(--ag-icon-font-code-minus, "\\f137");
  display: var(--ag-icon-font-display-minus, var(--ag-icon-font-display));
}

.ag-icon-minus::after {
  background-image: var(--ag-icon-image-minus, var(--ag-icon-image));
  display: var(--ag-icon-image-display-minus, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-minus, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-menu-alt {
  font-family: var(--ag-icon-font-family-menu-alt, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-menu-alt, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-menu-alt, var(--ag-icon-font-color));
}

.ag-icon-menu-alt::before {
  content: var(--ag-icon-font-code-menu-alt, "\\f138");
  display: var(--ag-icon-font-display-menu-alt, var(--ag-icon-font-display));
}

.ag-icon-menu-alt::after {
  background-image: var(--ag-icon-image-menu-alt, var(--ag-icon-image));
  display: var(--ag-icon-image-display-menu-alt, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-menu-alt, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-settings {
  font-family: var(--ag-icon-font-family-settings, var(--ag-icon-font-family));
  font-weight: var(--ag-icon-font-weight-settings, var(--ag-icon-font-weight));
  color: var(--ag-icon-font-color-settings, var(--ag-icon-font-color));
}

.ag-icon-settings::before {
  content: var(--ag-icon-font-code-settings, "\\f139");
  display: var(--ag-icon-font-display-settings, var(--ag-icon-font-display));
}

.ag-icon-settings::after {
  background-image: var(--ag-icon-image-settings, var(--ag-icon-image));
  display: var(--ag-icon-image-display-settings, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-settings, var(--ag-icon-image-opacity, 0.9));
}

.ag-icon-row-drag::before {
  content: var(--ag-icon-font-code-grip);
}

.ag-left-arrow::before {
  content: var(--ag-icon-font-code-left);
}

.ag-right-arrow::before {
  content: var(--ag-icon-font-code-right);
}

[class*=ag-theme-] {
  --ag-foreground-color: #000;
  --ag-data-color: var(--ag-foreground-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-header-foreground-color: var(--ag-secondary-foreground-color);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.5);
  --ag-background-color: #fff;
  --ag-header-background-color: transparent;
  --ag-tooltip-background-color: transparent;
  --ag-subheader-background-color: transparent;
  --ag-subheader-toolbar-background-color: transparent;
  --ag-control-panel-background-color: transparent;
  --ag-side-button-selected-background-color: var(--ag-control-panel-background-color);
  --ag-selected-row-background-color: #bbb;
  --ag-odd-row-background-color: var(--ag-background-color);
  --ag-modal-overlay-background-color: rgba(255, 255, 255, 0.66);
  --ag-menu-background-color: var(--ag-background-color);
  --ag-menu-border-color: var(--ag-border-color);
  --ag-panel-background-color: var(--ag-background-color);
  --ag-panel-border-color: var(--ag-border-color);
  --ag-row-hover-color: transparent;
  --ag-column-hover-color: transparent;
  --ag-range-selection-border-color: var(--ag-foreground-color);
  --ag-range-selection-border-style: solid;
  --ag-range-selection-background-color: rgba(0, 0, 0, 0.2);
  --ag-range-selection-background-color-2: var(--ag-range-selection-background-color);
  --ag-range-selection-background-color-3: var(--ag-range-selection-background-color);
  --ag-range-selection-background-color-4: var(--ag-range-selection-background-color);
  --ag-range-selection-highlight-color: var(--ag-range-selection-border-color);
  --ag-selected-tab-underline-color: var(--ag-range-selection-border-color);
  --ag-selected-tab-underline-width: 0;
  --ag-selected-tab-underline-transition-speed: 0s;
  --ag-range-selection-chart-category-background-color: rgba(0, 255, 132, 0.1);
  --ag-range-selection-chart-background-color: rgba(0, 88, 255, 0.1);
  --ag-header-cell-hover-background-color: transparent;
  --ag-header-cell-moving-background-color: var(--ag-background-color);
  --ag-value-change-value-highlight-background-color: rgba(22, 160, 133, 0.5);
  --ag-value-change-delta-up-color: #43a047;
  --ag-value-change-delta-down-color: #e53935;
  --ag-row-loading-skeleton-effect-color: rgba(66, 66, 66, 0.2);
  --ag-chip-background-color: transparent;
  --ag-chip-border-color: var(--ag-chip-background-color);
  --ag-borders: solid 1px;
  --ag-border-color: rgba(0, 0, 0, 0.25);
  --ag-borders-critical: var(--ag-borders);
  --ag-borders-secondary: var(--ag-borders);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-row-border-style: solid;
  --ag-row-border-color: var(--ag-secondary-border-color);
  --ag-row-border-width: 1px;
  --ag-cell-horizontal-border: solid transparent;
  --ag-borders-input: var(--ag-borders-secondary);
  --ag-input-border-color: var(--ag-secondary-border-color);
  --ag-borders-input-invalid: solid 2px;
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-borders-side-button: var(--ag-borders);
  --ag-border-radius: 0px;
  --ag-wrapper-border-radius: var(--ag-border-radius);
  --ag-row-border-color: var(--ag-secondary-border-color);
  --ag-header-column-separator-display: none;
  --ag-header-column-separator-height: 100%;
  --ag-header-column-separator-width: 1px;
  --ag-header-column-separator-color: var(--ag-secondary-border-color);
  --ag-header-column-resize-handle-display: none;
  --ag-header-column-resize-handle-height: 50%;
  --ag-header-column-resize-handle-width: 1px;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-invalid-color: red;
  --ag-input-disabled-border-color: var(--ag-input-border-color);
  --ag-input-disabled-background-color: transparent;
  --ag-checkbox-background-color: transparent;
  --ag-checkbox-border-radius: var(--ag-border-radius);
  --ag-checkbox-checked-color: var(--ag-foreground-color);
  --ag-checkbox-unchecked-color: var(--ag-foreground-color);
  --ag-checkbox-indeterminate-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-off-border-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-off-background-color: var(--ag-checkbox-unchecked-color);
  --ag-toggle-button-on-border-color: var(--ag-checkbox-checked-color);
  --ag-toggle-button-on-background-color: var(--ag-checkbox-checked-color);
  --ag-toggle-button-switch-background-color: var(--ag-background-color);
  --ag-toggle-button-switch-border-color: var(--ag-toggle-button-off-border-color);
  --ag-toggle-button-border-width: 1px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-toggle-button-width: calc(var(--ag-toggle-button-height) * 2);
  --ag-input-focus-box-shadow: none;
  --ag-input-focus-border-color: none;
  --ag-minichart-selected-chart-color: var(--ag-checkbox-checked-color);
  --ag-minichart-selected-page-color: var(--ag-checkbox-checked-color);
  --ag-grid-size: 4px;
  --ag-icon-size: 12px;
  --ag-icon-font-weight: normal;
  --ag-icon-font-color: var(--ag-foreground-color);
  --ag-icon-image-display: block;
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: var(--ag-grid-size);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: var(--ag-cell-horizontal-padding);
  --ag-row-height: calc(var(--ag-grid-size) * 6 + 1px);
  --ag-header-height: var(--ag-row-height);
  --ag-list-item-height: calc(var(--ag-grid-size) * 5);
  --ag-column-select-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));
  --ag-set-filter-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-grid-size) * 2 + var(--ag-icon-size));
  --ag-row-group-indent-size: calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size));
  --ag-filter-tool-panel-group-indent: 16px;
  --ag-tab-min-width: 220px;
  --ag-chart-menu-panel-width: var(--ag-tab-min-width);
  --ag-menu-min-width: 181px;
  --ag-side-bar-panel-width: 200px;
  --ag-font-family: "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-card-radius: var(--ag-border-radius);
  --ag-card-shadow: none;
  --ag-popup-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
}

.ag-root-wrapper,
.ag-sticky-top,
.ag-sticky-bottom,
.ag-dnd-ghost {
  background-color: var(--ag-background-color);
}

.ag-sticky-bottom {
  border-top: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);
}

.ag-root-wrapper,
.ag-popup {
  --ag-indentation-level: 0;
}

[class*=ag-theme-] {
  -webkit-font-smoothing: antialiased;
  font-family: var(--ag-font-family);
  font-size: var(--ag-font-size);
  line-height: normal;
  color: var(--ag-foreground-color);
}

ag-grid,
ag-grid-angular,
ag-grid-ng2,
ag-grid-polymer,
ag-grid-aurelia {
  display: block;
}

.ag-aria-description-container {
  z-index: 9999;
  border: 0px;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  position: absolute;
  overflow: hidden;
  padding: 0px;
  white-space: nowrap;
}

.ag-hidden {
  display: none !important;
}

.ag-invisible {
  visibility: hidden !important;
}

.ag-drag-handle {
  cursor: grab;
}

.ag-column-drop-wrapper {
  display: flex;
}

.ag-column-drop-horizontal-half-width {
  display: inline-block;
  width: 50% !important;
}

.ag-unselectable {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-selectable {
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.ag-tab {
  position: relative;
}

.ag-tab-guard {
  position: absolute;
  width: 0;
  height: 0;
  display: block;
}

.ag-virtual-list-viewport .ag-tab-guard {
  position: sticky;
}

.ag-tab-guard-top {
  top: 1px;
}

.ag-tab-guard-bottom {
  bottom: 1px;
}

.ag-select-agg-func-popup {
  position: absolute;
}

.ag-input-wrapper,
.ag-picker-field-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  line-height: normal;
  position: relative;
}

.ag-shake-left-to-right {
  animation-direction: alternate;
  animation-duration: 0.2s;
  animation-iteration-count: infinite;
  animation-name: ag-shake-left-to-right;
}

@keyframes ag-shake-left-to-right {
  from {
    padding-left: 6px;
    padding-right: 2px;
  }
  to {
    padding-left: 2px;
    padding-right: 6px;
  }
}
.ag-root-wrapper {
  cursor: default;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: normal;
}
.ag-root-wrapper.ag-layout-normal {
  height: 100%;
}

.ag-watermark {
  position: absolute;
  bottom: 20px;
  right: 25px;
  opacity: 0.7;
  transition: opacity 1s ease-out 3s;
  color: #9b9b9b;
}
.ag-watermark::before {
  content: "";
  background-image: url(`+g+`);
  background-repeat: no-repeat;
  background-size: 170px 40px;
  display: block;
  height: 40px;
  width: 170px;
}

.ag-watermark-text {
  opacity: 0.5;
  font-weight: bold;
  font-family: Impact, sans-serif;
  font-size: 19px;
  padding-left: 0.7rem;
}

.ag-root-wrapper-body {
  display: flex;
  flex-direction: row;
}
.ag-root-wrapper-body.ag-layout-normal {
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
}

.ag-root {
  position: relative;
  display: flex;
  flex-direction: column;
}
.ag-root.ag-layout-normal, .ag-root.ag-layout-auto-height {
  overflow: hidden;
  flex: 1 1 auto;
  width: 0;
}
.ag-root.ag-layout-normal {
  height: 100%;
}

.ag-header-viewport,
.ag-floating-top-viewport,
.ag-body-viewport,
.ag-center-cols-viewport,
.ag-floating-bottom-viewport,
.ag-body-horizontal-scroll-viewport,
.ag-body-vertical-scroll-viewport,
.ag-virtual-list-viewport,
.ag-sticky-top-viewport,
.ag-sticky-bottom-viewport {
  position: relative;
  height: 100%;
  min-width: 0px;
  overflow: hidden;
  flex: 1 1 auto;
}

.ag-body-viewport,
.ag-center-cols-viewport,
.ag-header-viewport,
.ag-floating-top-viewport,
.ag-floating-bottom-viewport,
.ag-sticky-top-viewport,
.ag-sticky-bottom-viewport {
  overflow-x: auto;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
.ag-body-viewport::-webkit-scrollbar,
.ag-center-cols-viewport::-webkit-scrollbar,
.ag-header-viewport::-webkit-scrollbar,
.ag-floating-top-viewport::-webkit-scrollbar,
.ag-floating-bottom-viewport::-webkit-scrollbar,
.ag-sticky-top-viewport::-webkit-scrollbar,
.ag-sticky-bottom-viewport::-webkit-scrollbar {
  display: none !important;
}

.ag-body-viewport {
  display: flex;
  overflow-x: hidden;
}
.ag-body-viewport.ag-layout-normal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ag-sticky-top-container,
.ag-sticky-bottom-container {
  min-height: 1px;
}

.ag-center-cols-viewport {
  min-height: 100%;
  width: 100%;
}

.ag-body-horizontal-scroll-viewport {
  overflow-x: scroll;
}

.ag-body-vertical-scroll-viewport {
  overflow-y: scroll;
}

.ag-virtual-list-viewport {
  overflow: auto;
  width: 100%;
}

.ag-header-container,
.ag-floating-top-container,
.ag-body-container,
.ag-pinned-right-cols-container,
.ag-center-cols-container,
.ag-pinned-left-cols-container,
.ag-floating-bottom-container,
.ag-body-horizontal-scroll-container,
.ag-body-vertical-scroll-container,
.ag-full-width-container,
.ag-floating-bottom-full-width-container,
.ag-virtual-list-container,
.ag-sticky-top-container,
.ag-sticky-bottom-container {
  position: relative;
}

.ag-header-container,
.ag-floating-top-container,
.ag-floating-bottom-container,
.ag-sticky-top-container,
.ag-sticky-bottom-container {
  height: 100%;
  white-space: nowrap;
}

.ag-center-cols-container {
  display: block;
}

.ag-pinned-right-cols-container {
  display: block;
}

.ag-body-horizontal-scroll-container {
  height: 100%;
}

.ag-body-vertical-scroll-container {
  width: 100%;
}

.ag-full-width-container,
.ag-floating-top-full-width-container,
.ag-floating-bottom-full-width-container,
.ag-sticky-top-full-width-container,
.ag-sticky-bottom-full-width-container {
  position: absolute;
  top: 0px;
  pointer-events: none;
}
.ag-ltr .ag-full-width-container,
.ag-ltr .ag-floating-top-full-width-container,
.ag-ltr .ag-floating-bottom-full-width-container,
.ag-ltr .ag-sticky-top-full-width-container,
.ag-ltr .ag-sticky-bottom-full-width-container {
  left: 0;
}
.ag-rtl .ag-full-width-container,
.ag-rtl .ag-floating-top-full-width-container,
.ag-rtl .ag-floating-bottom-full-width-container,
.ag-rtl .ag-sticky-top-full-width-container,
.ag-rtl .ag-sticky-bottom-full-width-container {
  right: 0;
}

.ag-full-width-container {
  width: 100%;
}

.ag-floating-bottom-full-width-container,
.ag-floating-top-full-width-container {
  display: inline-block;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.ag-virtual-list-container {
  overflow: hidden;
}

.ag-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: row !important;
  min-height: 0;
}

.ag-body-horizontal-scroll,
.ag-body-vertical-scroll {
  min-height: 0;
  min-width: 0;
  display: flex;
  position: relative;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible,
.ag-body-vertical-scroll.ag-scrollbar-invisible {
  position: absolute;
  bottom: 0;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar {
  opacity: 0;
  transition: opacity 400ms;
  visibility: hidden;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling, .ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,
.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active {
  visibility: visible;
  opacity: 1;
}

.ag-body-horizontal-scroll {
  width: 100%;
}
.ag-body-horizontal-scroll.ag-scrollbar-invisible {
  left: 0;
  right: 0;
}

.ag-body-vertical-scroll {
  height: 100%;
}
.ag-body-vertical-scroll.ag-scrollbar-invisible {
  top: 0;
  z-index: 10;
}
.ag-ltr .ag-body-vertical-scroll.ag-scrollbar-invisible {
  right: 0;
}
.ag-rtl .ag-body-vertical-scroll.ag-scrollbar-invisible {
  left: 0;
}

.ag-force-vertical-scroll {
  overflow-y: scroll !important;
}

.ag-horizontal-left-spacer,
.ag-horizontal-right-spacer {
  height: 100%;
  min-width: 0;
  overflow-x: scroll;
}
.ag-horizontal-left-spacer.ag-scroller-corner,
.ag-horizontal-right-spacer.ag-scroller-corner {
  overflow-x: hidden;
}

.ag-header,
.ag-pinned-left-header,
.ag-pinned-right-header {
  display: inline-block;
  overflow: hidden;
  position: relative;
}

.ag-header-cell-sortable .ag-header-cell-label {
  cursor: pointer;
}

.ag-header {
  display: flex;
  width: 100%;
  white-space: nowrap;
}

.ag-pinned-left-header {
  height: 100%;
}

.ag-pinned-right-header {
  height: 100%;
}

.ag-header-row {
  position: absolute;
}

.ag-header-row:not(.ag-header-row-column-group) {
  overflow: hidden;
}

.ag-header.ag-header-allow-overflow .ag-header-row {
  overflow: visible;
}

.ag-header-cell {
  display: inline-flex;
  align-items: center;
  position: absolute;
  height: 100%;
  overflow: hidden;
}

.ag-header-cell.ag-header-active .ag-header-cell-menu-button,
.ag-header-cell-filter-button {
  opacity: 1;
}

.ag-header-cell-menu-button:not(.ag-header-menu-always-show) {
  transition: opacity 0.2s;
  opacity: 0;
}

.ag-header-group-cell-label,
.ag-header-cell-label {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  align-items: center;
  overflow: hidden;
}

.ag-header-cell-label {
  text-overflow: ellipsis;
}

.ag-header-group-cell-label.ag-sticky-label {
  position: sticky;
  flex: none;
  max-width: 100%;
  overflow: visible;
}

.ag-header-group-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-header-cell-text {
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.ag-header-group-cell .ag-header-cell-comp-wrapper {
  display: flex;
}

.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
}

.ag-header-cell-comp-wrapper {
  width: 100%;
}

.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper {
  white-space: normal;
}

.ag-header-cell-comp-wrapper-limited-height > div {
  overflow: hidden;
}

.ag-right-aligned-header .ag-header-cell-label {
  flex-direction: row-reverse;
}

.ag-header-cell-resize {
  position: absolute;
  z-index: 2;
  height: 100%;
  width: 8px;
  top: 0;
  cursor: ew-resize;
}
.ag-ltr .ag-header-cell-resize {
  right: -3px;
}
.ag-rtl .ag-header-cell-resize {
  left: -3px;
}

.ag-pinned-left-header .ag-header-cell-resize {
  right: -3px;
}

.ag-pinned-right-header .ag-header-cell-resize {
  left: -3px;
}

.ag-header-select-all {
  display: flex;
}

.ag-header-cell-menu-button,
.ag-header-cell-filter-button,
.ag-side-button-button,
.ag-panel-title-bar-button,
.ag-floating-filter-button-button {
  cursor: pointer;
}

.ag-column-moving .ag-cell {
  transition: left 0.2s;
}
.ag-column-moving .ag-header-cell {
  transition: left 0.2s;
}
.ag-column-moving .ag-header-group-cell {
  transition: left 0.2s, width 0.2s;
}

.ag-column-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1 1 auto;
}

.ag-column-select {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 3 1 0px;
}

.ag-column-select-header {
  position: relative;
  display: flex;
  flex: none;
}

.ag-column-select-header-icon {
  position: relative;
}

.ag-column-select-header-filter-wrapper {
  flex: 1 1 auto;
}

.ag-column-select-header-filter {
  width: 100%;
}

.ag-column-select-list {
  flex: 1 1 0px;
  overflow: hidden;
}

.ag-column-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: auto;
  width: 100%;
}

.ag-column-drop-list {
  display: flex;
  align-items: center;
}

.ag-column-drop-cell {
  position: relative;
  display: flex;
  align-items: center;
}

.ag-column-drop-cell-text {
  overflow: hidden;
  flex: 1 1 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-column-drop-vertical {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: stretch;
  flex: 1 1 0px;
}

.ag-column-drop-vertical-title-bar {
  display: flex;
  align-items: center;
  flex: none;
}

.ag-column-drop-vertical-list {
  position: relative;
  align-items: stretch;
  flex-grow: 1;
  flex-direction: column;
  overflow-x: auto;
}
.ag-column-drop-vertical-list > * {
  flex: none;
}

.ag-column-drop-empty .ag-column-drop-vertical-list {
  overflow: hidden;
}

.ag-column-drop-vertical-empty-message {
  display: block;
}

.ag-column-drop.ag-column-drop-horizontal {
  white-space: nowrap;
  overflow: hidden;
}

.ag-column-drop-cell-button {
  cursor: pointer;
}

.ag-filter-toolpanel {
  flex: 1 1 0px;
  min-width: 0;
}

.ag-filter-toolpanel-header {
  position: relative;
}

.ag-filter-toolpanel-header,
.ag-filter-toolpanel-search {
  display: flex;
  align-items: center;
}
.ag-filter-toolpanel-header > *,
.ag-filter-toolpanel-search > * {
  display: flex;
  align-items: center;
}

.ag-filter-apply-panel {
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}

.ag-row-animation .ag-row {
  transition: transform 0.4s, top 0.4s, opacity 0.2s;
}

.ag-row-animation .ag-row.ag-after-created {
  transition: transform 0.4s, top 0.4s, height 0.4s, opacity 0.2s;
}

.ag-row-no-animation .ag-row {
  transition: none;
}

.ag-row {
  white-space: nowrap;
  width: 100%;
}

.ag-row-loading {
  display: flex;
  align-items: center;
}

.ag-row-position-absolute {
  position: absolute;
}

.ag-row-position-relative {
  position: relative;
}

.ag-full-width-row {
  overflow: hidden;
  pointer-events: all;
}

.ag-row-inline-editing {
  z-index: 1;
}

.ag-row-dragging {
  z-index: 2;
}

.ag-stub-cell {
  display: flex;
  align-items: center;
}

.ag-cell {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  height: 100%;
}

.ag-cell-value {
  flex: 1 1 auto;
}

.ag-cell-value,
.ag-group-value {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-cell-wrap-text {
  white-space: normal;
  word-break: break-word;
}

.ag-cell-wrapper {
  display: flex;
  align-items: center;
}
.ag-cell-wrapper.ag-row-group {
  align-items: flex-start;
}

.ag-sparkline-wrapper {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

.ag-sparkline-wrapper :where(canvas) {
  position: absolute;
}

.ag-full-width-row .ag-cell-wrapper.ag-row-group {
  height: 100%;
  align-items: center;
}

.ag-cell-inline-editing {
  z-index: 1;
}
.ag-cell-inline-editing .ag-cell-wrapper,
.ag-cell-inline-editing .ag-cell-edit-wrapper,
.ag-cell-inline-editing .ag-cell-editor,
.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,
.ag-cell-inline-editing .ag-cell-editor input {
  height: 100%;
  width: 100%;
  line-height: normal;
}

.ag-cell .ag-icon {
  display: inline-block;
  vertical-align: middle;
}

.ag-set-filter-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.ag-set-filter-item-checkbox {
  display: flex;
  width: 100%;
  height: 100%;
}

.ag-set-filter-group-icons {
  display: block;
}
.ag-set-filter-group-icons > * {
  cursor: pointer;
}

.ag-filter-body-wrapper {
  display: flex;
  flex-direction: column;
}

.ag-filter-filter {
  flex: 1 1 0px;
}

.ag-filter-condition {
  display: flex;
  justify-content: center;
}

.ag-floating-filter-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  height: 100%;
}

.ag-floating-filter-full-body {
  display: flex;
  flex: 1 1 auto;
  height: 100%;
  width: 100%;
  align-items: center;
  overflow: hidden;
}

.ag-floating-filter-full-body > div {
  flex: 1 1 auto;
}

.ag-floating-filter-input {
  align-items: center;
  display: flex;
  width: 100%;
}
.ag-floating-filter-input > * {
  flex: 1 1 auto;
}

.ag-floating-filter-button {
  display: flex;
  flex: none;
}

.ag-set-floating-filter-input input[disabled] {
  pointer-events: none;
}

.ag-dnd-ghost {
  display: inline-flex;
  align-items: center;
  cursor: move;
  white-space: nowrap;
}

.ag-overlay {
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}

.ag-overlay-panel {
  display: flex;
  height: 100%;
  width: 100%;
}

.ag-overlay-wrapper {
  display: flex;
  flex: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ag-overlay-loading-wrapper {
  pointer-events: all;
}

.ag-popup-child {
  z-index: 5;
  top: 0;
}

.ag-popup-editor {
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-large-text-input {
  display: block;
}

.ag-virtual-list-item {
  position: absolute;
  width: 100%;
}

.ag-floating-top {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
}

.ag-pinned-left-floating-top {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-pinned-right-floating-top {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-floating-bottom {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
  display: flex;
}

.ag-pinned-left-floating-bottom {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-pinned-right-floating-bottom {
  display: inline-block;
  overflow: hidden;
  position: relative;
  min-width: 0px;
}

.ag-sticky-top,
.ag-sticky-bottom {
  position: absolute;
  display: flex;
  width: 100%;
  overflow: hidden;
  height: 0px;
}

.ag-sticky-bottom {
  box-sizing: content-box !important;
}

.ag-pinned-left-sticky-top,
.ag-pinned-right-sticky-top {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.ag-sticky-top-full-width-container,
.ag-sticky-bottom-full-width-container {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.ag-dialog,
.ag-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ag-panel-title-bar {
  display: flex;
  flex: none;
  align-items: center;
  cursor: default;
}

.ag-panel-title-bar-title {
  flex: 1 1 auto;
}

.ag-panel-title-bar-buttons {
  display: flex;
}

.ag-panel-title-bar-button {
  cursor: pointer;
}

.ag-panel-content-wrapper {
  display: flex;
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.ag-dialog {
  position: absolute;
}

.ag-resizer {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.ag-resizer.ag-resizer-topLeft {
  top: 0;
  left: 0;
  height: 5px;
  width: 5px;
  cursor: nwse-resize;
}
.ag-resizer.ag-resizer-top {
  top: 0;
  left: 5px;
  right: 5px;
  height: 5px;
  cursor: ns-resize;
}
.ag-resizer.ag-resizer-topRight {
  top: 0;
  right: 0;
  height: 5px;
  width: 5px;
  cursor: nesw-resize;
}
.ag-resizer.ag-resizer-right {
  top: 5px;
  right: 0;
  bottom: 5px;
  width: 5px;
  cursor: ew-resize;
}
.ag-resizer.ag-resizer-bottomRight {
  bottom: 0;
  right: 0;
  height: 5px;
  width: 5px;
  cursor: nwse-resize;
}
.ag-resizer.ag-resizer-bottom {
  bottom: 0;
  left: 5px;
  right: 5px;
  height: 5px;
  cursor: ns-resize;
}
.ag-resizer.ag-resizer-bottomLeft {
  bottom: 0;
  left: 0;
  height: 5px;
  width: 5px;
  cursor: nesw-resize;
}
.ag-resizer.ag-resizer-left {
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 5px;
  cursor: ew-resize;
}

.ag-tooltip {
  position: absolute;
  z-index: 99999;
}

.ag-tooltip-custom {
  position: absolute;
  z-index: 99999;
}

.ag-tooltip:not(.ag-tooltip-interactive),
.ag-tooltip-custom:not(.ag-tooltip-interactive) {
  pointer-events: none;
}

.ag-value-slide-out {
  margin-right: 5px;
  opacity: 1;
  transition: opacity 3s, margin-right 3s;
  transition-timing-function: linear;
}

.ag-value-slide-out-end {
  margin-right: 10px;
  opacity: 0;
}

.ag-opacity-zero {
  opacity: 0 !important;
}

.ag-menu {
  max-height: 100%;
  overflow-y: auto;
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-menu-column-select-wrapper {
  height: 265px;
  overflow: auto;
}
.ag-menu-column-select-wrapper .ag-column-select {
  height: 100%;
}

.ag-dialog .ag-panel-content-wrapper .ag-column-select {
  user-select: none;
}

.ag-menu-list {
  display: table;
  width: 100%;
}

.ag-menu-option,
.ag-menu-separator {
  display: table-row;
}

.ag-menu-option-part,
.ag-menu-separator-part {
  display: table-cell;
  vertical-align: middle;
}

.ag-menu-option-text {
  white-space: nowrap;
}

.ag-menu-option-custom {
  display: contents;
}

.ag-compact-menu-option {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
}

.ag-compact-menu-option-text {
  white-space: nowrap;
  flex: 1 1 auto;
}

.ag-context-menu-loading-icon {
  position: absolute;
  pointer-events: none;
}

.ag-pill-container {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.ag-pill {
  display: flex;
  white-space: nowrap;
  padding: 0 0.25rem;
  align-items: center;
}

.ag-pill .ag-pill-button {
  border: none;
  padding: 0;
}

.ag-rich-select {
  cursor: default;
  outline: none;
  height: 100%;
}

.ag-rich-select-value {
  display: flex;
  align-items: center;
  height: 100%;
}
.ag-rich-select-value .ag-picker-field-display {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-rich-select-value .ag-picker-field-display.ag-display-as-placeholder {
  opacity: 0.5;
}

.ag-rich-select-list {
  position: relative;
}
.ag-rich-select-list .ag-loading-text {
  min-height: 2rem;
}

.ag-rich-select-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  height: 100%;
}

.ag-rich-select-field-input {
  flex: 1 1 auto;
}
.ag-rich-select-field-input .ag-input-field-input {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  text-overflow: ellipsis;
}
.ag-rich-select-field-input .ag-input-field-input::placeholder {
  opacity: 0.8;
}

.ag-autocomplete {
  align-items: center;
  display: flex;
}
.ag-autocomplete > * {
  flex: 1 1 auto;
}

.ag-autocomplete-list-popup {
  position: absolute;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-autocomplete-list {
  position: relative;
}

.ag-autocomplete-virtual-list-item {
  display: flex;
}

.ag-autocomplete-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  overflow: hidden;
}

.ag-autocomplete-row-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-paging-panel {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.ag-paging-page-summary-panel {
  display: flex;
  align-items: center;
}

.ag-paging-button {
  position: relative;
}

.ag-disabled .ag-paging-page-summary-panel {
  pointer-events: none;
}

.ag-tool-panel-wrapper {
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: default;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-column-select-column,
.ag-column-select-column-group,
.ag-select-agg-func-item {
  position: relative;
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
}
.ag-column-select-column > *,
.ag-column-select-column-group > *,
.ag-select-agg-func-item > * {
  flex: none;
}

.ag-select-agg-func-item,
.ag-column-select-column-label {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-column-select-checkbox {
  display: flex;
}

.ag-tool-panel-horizontal-resize {
  cursor: ew-resize;
  height: 100%;
  position: absolute;
  top: 0;
  width: 5px;
  z-index: 1;
}

.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize {
  right: -3px;
}
.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize {
  left: -3px;
}

.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize {
  left: -3px;
}
.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize {
  right: -3px;
}

.ag-details-row {
  width: 100%;
}

.ag-details-row-fixed-height {
  height: 100%;
}

.ag-details-grid {
  width: 100%;
}

.ag-details-grid-fixed-height {
  height: 100%;
}

.ag-header-group-cell {
  display: flex;
  align-items: center;
  height: 100%;
  position: absolute;
}

.ag-header-group-cell-no-group.ag-header-span-height {
  display: none;
}

.ag-cell-label-container {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: center;
  height: 100%;
  width: 100%;
}

.ag-header-group-cell-label,
.ag-cell-label-container {
  padding: 5px 0px;
}

.ag-right-aligned-header .ag-cell-label-container {
  flex-direction: row;
}
.ag-right-aligned-header .ag-header-cell-text {
  text-align: end;
}

.ag-side-bar {
  display: flex;
  flex-direction: row-reverse;
}

.ag-side-bar-left {
  order: -1;
  flex-direction: row;
}

.ag-side-button-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  outline: none;
  cursor: pointer;
}

.ag-side-button-label {
  writing-mode: vertical-lr;
}

.ag-status-bar {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.ag-status-panel {
  display: inline-flex;
}

.ag-status-name-value {
  white-space: nowrap;
}

.ag-status-bar-left {
  display: inline-flex;
}

.ag-status-bar-center {
  display: inline-flex;
}

.ag-status-bar-right {
  display: inline-flex;
}

.ag-icon {
  display: block;
  speak: none;
}

.ag-group {
  position: relative;
  width: 100%;
}

.ag-group-title-bar {
  display: flex;
  align-items: center;
}

.ag-group-title {
  display: inline;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ag-group-title-bar .ag-group-title {
  cursor: default;
}

.ag-group-toolbar {
  display: flex;
  align-items: center;
}

.ag-group-container {
  display: flex;
}

.ag-disabled .ag-group-container {
  pointer-events: none;
}

.ag-group-container-horizontal {
  flex-direction: row;
  flex-wrap: wrap;
}

.ag-group-container-vertical {
  flex-direction: column;
}

.ag-column-group-icons {
  display: block;
}
.ag-column-group-icons > * {
  cursor: pointer;
}

.ag-group-item-alignment-stretch .ag-group-item {
  align-items: stretch;
}

.ag-group-item-alignment-start .ag-group-item {
  align-items: flex-start;
}

.ag-group-item-alignment-end .ag-group-item {
  align-items: flex-end;
}

.ag-toggle-button-icon {
  transition: right 0.3s;
  position: absolute;
  top: -1px;
}

.ag-input-field,
.ag-select {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.ag-input-field-input {
  flex: 1 1 auto;
}

.ag-floating-filter-input .ag-input-field-input[type=date] {
  width: 1px;
}

.ag-range-field {
  display: flex;
  align-items: center;
}

.ag-angle-select {
  display: flex;
  align-items: center;
}

.ag-angle-select-wrapper {
  display: flex;
}

.ag-angle-select-parent-circle {
  display: block;
  position: relative;
}

.ag-angle-select-child-circle {
  position: absolute;
}

.ag-slider-wrapper {
  display: flex;
}
.ag-slider-wrapper .ag-input-field {
  flex: 1 1 auto;
}

.ag-picker-field-display {
  flex: 1 1 auto;
}

.ag-picker-field {
  display: flex;
  align-items: center;
}

.ag-picker-field-icon {
  display: flex;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.ag-picker-field-wrapper {
  overflow: hidden;
}

.ag-label-align-right .ag-label {
  order: 1;
}
.ag-label-align-right > * {
  flex: none;
}

.ag-label-align-top {
  flex-direction: column;
  align-items: flex-start;
}
.ag-label-align-top > * {
  align-self: stretch;
}

.ag-label-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.ag-color-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.ag-spectrum-color {
  flex: 1 1 auto;
  position: relative;
  overflow: visible;
  cursor: default;
}

.ag-spectrum-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ag-spectrum-val {
  cursor: pointer;
}

.ag-spectrum-dragger {
  position: absolute;
  pointer-events: none;
  cursor: pointer;
}

.ag-spectrum-hue,
.ag-spectrum-alpha {
  cursor: default;
}

.ag-spectrum-hue-background {
  background: linear-gradient(to left, #ff0000 3%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
  width: 100%;
  height: 100%;
}

.ag-spectrum-alpha {
  --ag-spectrum-alpha-background-checked: url(`+f+`);
}

.ag-spectrum-alpha-background {
  background: linear-gradient(to right, var(--ag-internal-spectrum-alpha-color-from), var(--ag-internal-spectrum-alpha-color-to)), var(--ag-spectrum-alpha-background-checked) top left/4px 4px;
  width: 100%;
  height: 100%;
}

.ag-spectrum-tool {
  cursor: pointer;
  position: relative;
}

.ag-spectrum-slider {
  position: absolute;
  pointer-events: none;
}

.ag-spectrum-alpha .ag-spectrum-slider {
  background: linear-gradient(to bottom, var(--ag-internal-spectrum-alpha-color), var(--ag-internal-spectrum-alpha-color)) white;
}

.ag-recent-colors {
  display: flex;
}

.ag-recent-color {
  cursor: pointer;
}

.ag-pill-select {
  display: flex;
  flex-direction: column;
}
.ag-pill-select .ag-column-drop {
  flex: unset;
}

.ag-ltr {
  direction: ltr;
}
.ag-ltr .ag-body,
.ag-ltr .ag-floating-top,
.ag-ltr .ag-floating-bottom,
.ag-ltr .ag-header,
.ag-ltr .ag-sticky-top,
.ag-ltr .ag-sticky-bottom,
.ag-ltr .ag-body-viewport,
.ag-ltr .ag-body-horizontal-scroll {
  flex-direction: row;
}

.ag-rtl {
  direction: rtl;
}
.ag-rtl .ag-body,
.ag-rtl .ag-floating-top,
.ag-rtl .ag-floating-bottom,
.ag-rtl .ag-header,
.ag-rtl .ag-sticky-top,
.ag-rtl .ag-sticky-bottom,
.ag-rtl .ag-body-viewport,
.ag-rtl .ag-body-horizontal-scroll {
  flex-direction: row-reverse;
}
.ag-rtl .ag-icon-contracted,
.ag-rtl .ag-icon-expanded,
.ag-rtl .ag-icon-tree-closed {
  display: block;
  transform: rotate(180deg);
}

.ag-body .ag-body-viewport {
  -webkit-overflow-scrolling: touch;
}

.ag-measurement-container {
  width: 0;
  overflow: hidden;
  visibility: hidden;
}
.ag-measurement-container div {
  position: absolute;
}

.ag-layout-print.ag-body {
  display: block;
  height: unset;
}
.ag-layout-print.ag-root-wrapper {
  display: inline-block;
}
.ag-layout-print .ag-body-vertical-scroll {
  display: none;
}
.ag-layout-print .ag-body-horizontal-scroll {
  display: none;
}
.ag-layout-print.ag-force-vertical-scroll {
  overflow-y: visible !important;
}

@media print {
  .ag-root-wrapper.ag-layout-print {
    display: table;
  }
  .ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,
  .ag-root-wrapper.ag-layout-print .ag-root,
  .ag-root-wrapper.ag-layout-print .ag-body-viewport,
  .ag-root-wrapper.ag-layout-print .ag-center-cols-container,
  .ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,
  .ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,
  .ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport {
    height: auto !important;
    overflow: hidden !important;
    display: block !important;
  }
  .ag-root-wrapper.ag-layout-print .ag-row,
  .ag-root-wrapper.ag-layout-print .ag-cell {
    break-inside: avoid;
  }
}
[class^=ag-],
[class^=ag-]:focus,
[class^=ag-]:after,
[class^=ag-]:before {
  box-sizing: border-box;
  outline: none;
}

[class^=ag-]::-ms-clear {
  display: none;
}

.ag-checkbox .ag-input-wrapper,
.ag-radio-button .ag-input-wrapper {
  overflow: visible;
}

.ag-range-field .ag-input-wrapper {
  height: 100%;
}

.ag-toggle-button {
  flex: none;
  width: unset;
  min-width: unset;
}

.ag-button {
  border-radius: 0px;
  color: var(--ag-foreground-color);
}

.ag-button:hover {
  background-color: transparent;
}

.ag-ltr .ag-label-align-right .ag-label {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-label-align-right .ag-label {
  margin-right: var(--ag-grid-size);
}

input[class^=ag-] {
  margin: 0;
  background-color: var(--ag-background-color);
}

textarea[class^=ag-],
select[class^=ag-] {
  background-color: var(--ag-background-color);
}

input[class^=ag-]:not([type]),
input[class^=ag-][type=text],
input[class^=ag-][type=number],
input[class^=ag-][type=tel],
input[class^=ag-][type=date],
input[class^=ag-][type=datetime-local],
textarea[class^=ag-] {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-family: inherit;
  border: var(--ag-borders-input) var(--ag-input-border-color);
}
input[class^=ag-]:not([type]):disabled,
input[class^=ag-][type=text]:disabled,
input[class^=ag-][type=number]:disabled,
input[class^=ag-][type=tel]:disabled,
input[class^=ag-][type=date]:disabled,
input[class^=ag-][type=datetime-local]:disabled,
textarea[class^=ag-]:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
input[class^=ag-]:not([type]):focus,
input[class^=ag-][type=text]:focus,
input[class^=ag-][type=number]:focus,
input[class^=ag-][type=tel]:focus,
input[class^=ag-][type=date]:focus,
input[class^=ag-][type=datetime-local]:focus,
textarea[class^=ag-]:focus {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-input-focus-border-color);
}
input[class^=ag-]:not([type]):invalid,
input[class^=ag-][type=text]:invalid,
input[class^=ag-][type=number]:invalid,
input[class^=ag-][type=tel]:invalid,
input[class^=ag-][type=date]:invalid,
input[class^=ag-][type=datetime-local]:invalid,
textarea[class^=ag-]:invalid {
  border: var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid);
}

input[class^=ag-][type=number]:not(.ag-number-field-input-stepper) {
  -moz-appearance: textfield;
}
input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-outer-spin-button, input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[class^=ag-][type=range] {
  padding: 0;
}

input[class^=ag-][type=button]:focus,
button[class^=ag-]:focus {
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-drag-handle {
  color: var(--ag-secondary-foreground-color);
}

.ag-list-item,
.ag-virtual-list-item {
  height: var(--ag-list-item-height);
}

.ag-virtual-list-item:focus-visible {
  outline: none;
}
.ag-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-select-list {
  background-color: var(--ag-background-color);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}

.ag-list-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-list-item.ag-active-item {
  background-color: var(--ag-row-hover-color);
}

.ag-select-list-item {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
}
.ag-ltr .ag-select-list-item {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-select-list-item {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-select-list-item span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ag-row-drag,
.ag-selection-checkbox,
.ag-group-expanded,
.ag-group-contracted {
  color: var(--ag-secondary-foreground-color);
}
.ag-ltr .ag-row-drag,
.ag-ltr .ag-selection-checkbox,
.ag-ltr .ag-group-expanded,
.ag-ltr .ag-group-contracted {
  margin-right: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-row-drag,
.ag-rtl .ag-selection-checkbox,
.ag-rtl .ag-group-expanded,
.ag-rtl .ag-group-contracted {
  margin-left: var(--ag-cell-widget-spacing);
}

.ag-cell-wrapper > *:not(.ag-cell-value):not(.ag-group-value) {
  --ag-internal-calculated-line-height: var(
      --ag-line-height,
      calc(var(--ag-row-height) - var(--ag-row-border-width))
  );
  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));
  height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));
  display: flex;
  align-items: center;
  flex: none;
}

.ag-group-expanded,
.ag-group-contracted {
  cursor: pointer;
}

.ag-group-title-bar-icon {
  cursor: pointer;
  flex: none;
  color: var(--ag-secondary-foreground-color);
}

.ag-ltr .ag-group-child-count {
  margin-left: 2px;
}
.ag-rtl .ag-group-child-count {
  margin-right: 2px;
}

.ag-group-title-bar {
  background-color: var(--ag-subheader-background-color);
  padding: var(--ag-grid-size);
}

.ag-group-toolbar {
  padding: var(--ag-grid-size);
  background-color: var(--ag-subheader-toolbar-background-color);
}

.ag-disabled-group-title-bar,
.ag-disabled-group-container {
  opacity: 0.5;
}

.group-item {
  margin: calc(var(--ag-grid-size) * 0.5) 0;
}

.ag-label {
  white-space: nowrap;
}
.ag-ltr .ag-label {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-label {
  margin-left: var(--ag-grid-size);
}

.ag-label-align-top .ag-label {
  margin-bottom: calc(var(--ag-grid-size) * 0.5);
}

.ag-angle-select[disabled] {
  color: var(--ag-disabled-foreground-color);
  pointer-events: none;
}
.ag-angle-select[disabled] .ag-angle-select-field {
  opacity: 0.4;
}

.ag-ltr .ag-slider-field,
.ag-ltr .ag-angle-select-field {
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-slider-field,
.ag-rtl .ag-angle-select-field {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-angle-select-parent-circle {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  border: solid 1px;
  border-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}

.ag-angle-select-child-circle {
  top: 4px;
  left: 12px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -4px;
  border-radius: 3px;
  background-color: var(--ag-secondary-foreground-color);
}

.ag-picker-field-wrapper {
  border: var(--ag-borders);
  border-color: var(--ag-border-color);
  border-radius: 5px;
  background-color: var(--ag-background-color);
}
.ag-picker-field-wrapper:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-picker-field-wrapper.ag-picker-has-focus, .ag-picker-field-wrapper:focus-within {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-input-focus-border-color);
}

.ag-picker-field-button {
  background-color: var(--ag-background-color);
  color: var(--ag-secondary-foreground-color);
}

.ag-dialog.ag-color-dialog {
  border-radius: 5px;
}

.ag-color-picker .ag-picker-field-wrapper {
  padding-left: var(--ag-grid-size);
  padding-right: var(--ag-grid-size);
}
.ag-color-picker .ag-picker-field-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: var(--ag-list-item-height);
}

.ag-ltr .ag-color-picker-color,
.ag-ltr .ag-color-picker-value {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-color-picker-color,
.ag-rtl .ag-color-picker-value {
  margin-left: var(--ag-grid-size);
}

.ag-color-panel {
  padding: var(--ag-grid-size);
}

.ag-spectrum-color {
  background-color: rgb(255, 0, 0);
  border-radius: 2px;
}

.ag-spectrum-tools {
  padding: 10px;
}

.ag-spectrum-sat {
  background-image: linear-gradient(to right, white, rgba(204, 154, 129, 0));
}

.ag-spectrum-val {
  background-image: linear-gradient(to top, black, rgba(204, 154, 129, 0));
}

.ag-spectrum-dragger {
  border-radius: 12px;
  height: 12px;
  width: 12px;
  border: 2px solid white;
  background: black;
  box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.24);
}

.ag-spectrum-hue-background {
  border-radius: 2px;
}

.ag-spectrum-alpha-background {
  border-radius: 2px;
}

.ag-spectrum-tool {
  margin-bottom: 10px;
  height: 11px;
  border-radius: 2px;
}

.ag-spectrum-slider {
  margin-top: -12px;
  width: 13px;
  height: 13px;
  border-radius: 13px;
  border: 2px solid white;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}

.ag-recent-colors {
  margin-top: 10px;
}

.ag-recent-color {
  margin: 0 3px;
}
.ag-recent-color:first-child {
  margin-left: 0;
}
.ag-recent-color:last-child {
  margin-right: 0;
}

.ag-spectrum-color:focus-visible:not(:disabled):not([readonly]),
.ag-spectrum-slider:focus-visible:not(:disabled):not([readonly]),
.ag-recent-color:focus-visible:not(:disabled):not([readonly]) {
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-ltr .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-rtl .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-color-input .ag-color-input-color {
  position: absolute;
}
.ag-ltr .ag-color-input .ag-color-input-color {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-color-input .ag-color-input-color {
  margin-right: var(--ag-grid-size);
}

.ag-color-picker-color,
.ag-color-input-color {
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  border-radius: 2px;
}

.ag-dnd-ghost {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  overflow: hidden;
  text-overflow: ellipsis;
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
  line-height: var(--ag-header-height);
  margin: 0;
  padding: 0 calc(var(--ag-grid-size) * 2);
  transform: translateY(calc(var(--ag-grid-size) * 2));
}

.ag-dnd-ghost-icon {
  margin-right: var(--ag-grid-size);
  color: var(--ag-foreground-color);
}

.ag-popup-child:not(.ag-tooltip-custom) {
  box-shadow: var(--ag-popup-shadow);
}

.ag-select .ag-picker-field-wrapper {
  min-height: var(--ag-list-item-height);
  cursor: default;
}
.ag-ltr .ag-select .ag-picker-field-wrapper {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-select .ag-picker-field-wrapper {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-ltr .ag-select .ag-picker-field-wrapper {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-select .ag-picker-field-wrapper {
  padding-left: var(--ag-grid-size);
}
.ag-select.ag-disabled .ag-picker-field-wrapper:focus {
  box-shadow: none;
}
.ag-select:not(.ag-cell-editor, .ag-label-align-top) {
  min-height: var(--ag-list-item-height);
}
.ag-select .ag-picker-field-display {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-select .ag-picker-field-icon {
  display: flex;
  align-items: center;
}
.ag-select.ag-disabled {
  opacity: 0.5;
}

.ag-rich-select-value,
.ag-rich-select-list {
  background-color: var(--ag-background-color);
}

.ag-rich-select-list {
  width: 100%;
  height: auto;
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}
.ag-rich-select-list .ag-loading-text {
  padding: var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing);
}

.ag-rich-select-value {
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  padding-top: 0;
  padding-bottom: 0;
}
.ag-ltr .ag-rich-select-value {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-rich-select-value {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-ltr .ag-rich-select-value {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-rich-select-value {
  padding-left: var(--ag-grid-size);
}

.ag-ltr .ag-rich-select-field-input {
  left: calc(var(--ag-cell-horizontal-padding));
}
.ag-rtl .ag-rich-select-field-input {
  right: calc(var(--ag-cell-horizontal-padding));
}

.ag-popup-editor .ag-rich-select-value {
  height: var(--ag-row-height);
  min-width: 200px;
}

.ag-rich-select-virtual-list-item {
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-rich-select-virtual-list-item:focus-visible::after {
  content: none;
}

.ag-ltr .ag-rich-select-row {
  padding-left: calc(var(--ag-cell-horizontal-padding) / 2);
}
.ag-rtl .ag-rich-select-row {
  padding-right: calc(var(--ag-cell-horizontal-padding) / 2);
}

.ag-rich-select-row-selected {
  background-color: var(--ag-selected-row-background-color);
}

.ag-rich-select-row:hover,
.ag-rich-select-row-highlighted {
  background-image: linear-gradient(var(--ag-row-hover-color), var(--ag-row-hover-color));
}

.ag-rich-select-row-text-highlight {
  font-weight: bold;
}

.ag-autocomplete {
  width: 100%;
}

.ag-autocomplete-list {
  width: 100%;
  min-width: 200px;
  height: calc(var(--ag-row-height) * 6.5);
}

.ag-autocomplete-virtual-list-item {
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-autocomplete-virtual-list-item:focus-visible::after {
  content: none;
}
.ag-autocomplete-virtual-list-item:hover {
  background-color: var(--ag-row-hover-color);
}

.ag-autocomplete-row-label {
  margin: 0px var(--ag-widget-container-horizontal-padding);
}

.ag-autocomplete-row-selected {
  background-color: var(--ag-selected-row-background-color);
}

.ag-pill {
  border: 1px solid var(--ag-chip-border-color);
  border-radius: var(--ag-border-radius);
  background-color: var(--ag-chip-background-color);
}

.ag-ltr .ag-pill .ag-pill-button {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-pill .ag-pill-button {
  margin-right: var(--ag-grid-size);
}

.ag-pill:focus-visible {
  border-color: var(--ag-input-focus-border-color);
}

.ag-pill .ag-pill-button:hover {
  cursor: pointer;
}

.ag-dragging-range-handle .ag-dialog,
.ag-dragging-fill-handle .ag-dialog {
  opacity: 0.7;
  pointer-events: none;
}

.ag-dialog {
  border-radius: var(--ag-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
  box-shadow: var(--ag-popup-shadow);
}

.ag-panel {
  background-color: var(--ag-panel-background-color);
  border-color: var(--ag-panel-border-color);
}

.ag-panel-title-bar {
  color: var(--ag-header-foreground-color);
  height: var(--ag-header-height);
  padding: var(--ag-grid-size) var(--ag-cell-horizontal-padding);
  border-bottom: var(--ag-borders) var(--ag-border-color);
}

.ag-ltr .ag-panel-title-bar-button {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-panel-title-bar-button {
  margin-right: var(--ag-grid-size);
}

.ag-tooltip {
  background-color: var(--ag-tooltip-background-color);
  color: var(--ag-foreground-color);
  padding: var(--ag-grid-size);
  border: var(--ag-borders) var(--ag-border-color);
  border-radius: var(--ag-card-radius);
  white-space: normal;
}

.ag-tooltip.ag-tooltip-animate,
.ag-tooltip-custom.ag-tooltip-animate {
  transition: opacity 1s;
}
.ag-tooltip.ag-tooltip-animate.ag-tooltip-hiding,
.ag-tooltip-custom.ag-tooltip-animate.ag-tooltip-hiding {
  opacity: 0;
}

.ag-ltr .ag-column-select-column,
.ag-ltr .ag-column-select-column-group {
  padding-left: calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size));
}
.ag-rtl .ag-column-select-column,
.ag-rtl .ag-column-select-column-group {
  padding-right: calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size));
}

.ag-column-select-header-icon {
  cursor: pointer;
}

.ag-column-select-header-icon:focus-visible {
  outline: none;
}
.ag-column-select-header-icon:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 0px;
  left: 0px;
  display: block;
  width: calc(100% - 0px);
  height: calc(100% - 0px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-ltr .ag-column-group-icons:not(:last-child),
.ag-ltr .ag-column-select-header-icon:not(:last-child),
.ag-ltr .ag-column-select-header-checkbox:not(:last-child),
.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),
.ag-ltr .ag-column-select-checkbox:not(:last-child),
.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),
.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),
.ag-ltr .ag-column-select-column-label:not(:last-child) {
  margin-right: var(--ag-widget-horizontal-spacing);
}
.ag-rtl .ag-column-group-icons:not(:last-child),
.ag-rtl .ag-column-select-header-icon:not(:last-child),
.ag-rtl .ag-column-select-header-checkbox:not(:last-child),
.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),
.ag-rtl .ag-column-select-checkbox:not(:last-child),
.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),
.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),
.ag-rtl .ag-column-select-column-label:not(:last-child) {
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-column-select-virtual-list-item:focus-visible {
  outline: none;
}
.ag-column-select-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-select-column-group:not(:last-child),
.ag-column-select-column:not(:last-child) {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-column-select-column-readonly,
.ag-column-select-column-group-readonly {
  color: var(--ag-disabled-foreground-color);
  pointer-events: none;
}

.ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}

.ag-column-select-virtual-list-viewport {
  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) 0px;
}

.ag-column-select-virtual-list-item {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}

.ag-checkbox-edit {
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-pill-select .ag-column-drop {
  border-bottom: 0;
  min-height: unset;
}
.ag-pill-select .ag-column-drop-list {
  padding: 0;
}
.ag-pill-select .ag-select {
  padding-top: var(--ag-grid-size);
}
.ag-pill-select .ag-picker-field-wrapper {
  background-color: transparent;
  border: 0;
}
.ag-pill-select .ag-picker-field-display {
  cursor: pointer;
}

.ag-rtl {
  text-align: right;
}

.ag-root-wrapper {
  border-radius: var(--ag-wrapper-border-radius);
  border: var(--ag-borders) var(--ag-border-color);
}

.ag-row > .ag-cell-wrapper.ag-row-group {
  padding-left: calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size) * var(--ag-indentation-level));
}

.ag-cell-wrapper.ag-row-group,
.ag-cell-wrapper.ag-row-group-leaf-indent,
.ag-cell-wrapper.ag-pivot-leaf-group {
  padding-left: calc(var(--ag-indentation-level) * var(--ag-row-group-indent-size));
}

.ag-ltr .ag-row-group-leaf-indent {
  margin-left: var(--ag-row-group-indent-size);
}
.ag-rtl .ag-row-group-leaf-indent {
  margin-right: var(--ag-row-group-indent-size);
}

.ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group {
  margin-left: var(--ag-row-group-indent-size);
}

.ag-value-change-delta {
  padding-right: 2px;
}

.ag-value-change-delta-up {
  color: var(--ag-value-change-delta-up-color);
}

.ag-value-change-delta-down {
  color: var(--ag-value-change-delta-down-color);
}

.ag-value-change-value {
  background-color: transparent;
  border-radius: 1px;
  padding-left: 1px;
  padding-right: 1px;
  transition: background-color 1s;
}

.ag-value-change-value-highlight {
  background-color: var(--ag-value-change-value-highlight-background-color);
  transition: background-color 0.1s;
}

.ag-cell-data-changed {
  background-color: var(--ag-value-change-value-highlight-background-color) !important;
}

.ag-cell-data-changed-animation {
  background-color: transparent;
}

.ag-cell-highlight {
  background-color: var(--ag-range-selection-highlight-color) !important;
}

.ag-row {
  height: var(--ag-row-height);
  background-color: var(--ag-background-color);
  color: var(--ag-data-color);
  border-bottom: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width);
}

.ag-row-highlight-above::after,
.ag-row-highlight-below::after {
  content: "";
  position: absolute;
  width: calc(100% - 1px);
  height: 1px;
  background-color: var(--ag-range-selection-border-color);
  left: 1px;
}

.ag-row-highlight-above::after {
  top: 0px;
}

.ag-row-highlight-below::after {
  bottom: 0px;
}

.ag-row-odd {
  background-color: var(--ag-odd-row-background-color);
}

.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-left-spacer:not(.ag-scroller-corner) {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}
.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible) .ag-horizontal-right-spacer:not(.ag-scroller-corner) {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-row-selected::before {
  content: "";
  background-color: var(--ag-selected-row-background-color);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ag-row-hover:not(.ag-full-width-row)::before,
.ag-row-hover.ag-full-width-row.ag-row-group::before {
  content: "";
  background-color: var(--ag-row-hover-color);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.ag-row-hover.ag-full-width-row.ag-row-group > * {
  position: relative;
}

.ag-row-hover.ag-row-selected::before {
  background-color: var(--ag-row-hover-color);
  background-image: linear-gradient(var(--ag-selected-row-background-color), var(--ag-selected-row-background-color));
}

.ag-column-hover {
  background-color: var(--ag-column-hover-color);
}

.ag-ltr .ag-right-aligned-cell {
  text-align: right;
}
.ag-rtl .ag-right-aligned-cell {
  text-align: left;
}

.ag-ltr .ag-right-aligned-cell .ag-cell-value,
.ag-ltr .ag-right-aligned-cell .ag-group-value {
  margin-left: auto;
}
.ag-rtl .ag-right-aligned-cell .ag-cell-value,
.ag-rtl .ag-right-aligned-cell .ag-group-value {
  margin-right: auto;
}

.ag-ltr .ag-right-aligned-cell .ag-skeleton-effect {
  margin-left: auto;
}
.ag-rtl .ag-right-aligned-cell .ag-skeleton-effect {
  margin-right: auto;
}

.ag-cell,
.ag-full-width-row .ag-cell-wrapper.ag-row-group {
  --ag-internal-calculated-line-height: var(
      --ag-line-height,
      calc(var(--ag-row-height) - var(--ag-row-border-width))
  );
  --ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width));
  border: 1px solid transparent;
  line-height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));
  padding-left: calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size) * var(--ag-indentation-level));
  padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);
  -webkit-font-smoothing: subpixel-antialiased;
}

.ag-row > .ag-cell-wrapper {
  padding-left: calc(var(--ag-cell-horizontal-padding) - 1px);
  padding-right: calc(var(--ag-cell-horizontal-padding) - 1px);
}

.ag-row-dragging {
  cursor: move;
  opacity: 0.5;
}

.ag-cell-inline-editing {
  border: 1px solid var(--ag-border-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: 0;
  background-color: var(--ag-control-panel-background-color);
}

.ag-popup-editor .ag-large-text,
.ag-autocomplete-list-popup {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background-color: var(--ag-control-panel-background-color);
  padding: 0;
}

.ag-large-text-input {
  height: auto;
  padding: var(--ag-cell-horizontal-padding);
}

.ag-rtl .ag-large-text-input textarea {
  resize: none;
}

.ag-details-row {
  padding: calc(var(--ag-grid-size) * 5);
  background-color: var(--ag-background-color);
}

.ag-layout-auto-height .ag-center-cols-viewport,
.ag-layout-auto-height .ag-center-cols-container,
.ag-layout-print .ag-center-cols-viewport,
.ag-layout-print .ag-center-cols-container {
  min-height: 50px;
}

.ag-overlay-loading-wrapper {
  background-color: var(--ag-modal-overlay-background-color);
}

.ag-overlay-loading-center {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
}

.ag-skeleton-container {
  width: 100%;
  height: 100%;
  align-content: center;
}

.ag-skeleton-effect {
  background-color: var(--ag-row-loading-skeleton-effect-color);
  width: 100%;
  height: 1em;
  border-radius: 0.25rem;
  animation: ag-skeleton-loading 1.5s ease-in-out 0.5s infinite;
}

@keyframes ag-skeleton-loading {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}
.ag-loading {
  display: flex;
  height: 100%;
  align-items: center;
}
.ag-ltr .ag-loading {
  padding-left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-loading {
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-loading-icon {
  padding-right: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-loading-icon {
  padding-left: var(--ag-cell-widget-spacing);
}

.ag-icon-loading {
  animation-name: spin;
  animation-duration: 1000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.ag-floating-top {
  border-bottom: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-floating-bottom {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-ltr .ag-cell {
  border-right: var(--ag-cell-horizontal-border);
}
.ag-rtl .ag-cell {
  border-left: var(--ag-cell-horizontal-border);
}
.ag-ltr .ag-cell {
  border-right-width: 1px;
}
.ag-rtl .ag-cell {
  border-left-width: 1px;
}

.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-cell-range-selected:not(.ag-cell-focus),
.ag-cell-range-selected.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing) {
  background-color: var(--ag-range-selection-background-color);
}
.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,
.ag-cell-range-selected.ag-cell-range-chart.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart {
  background-color: var(--ag-range-selection-chart-background-color) !important;
}
.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,
.ag-cell-range-selected.ag-cell-range-chart.ag-cell-range-chart.ag-cell-range-chart-category,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category {
  background-color: var(--ag-range-selection-chart-category-background-color) !important;
}

.ag-cell-range-selected-1:not(.ag-cell-focus),
.ag-cell-range-selected-1.ag-cell-range-chart,
.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing) {
  background-color: var(--ag-range-selection-background-color);
}

.ag-cell-range-selected-2:not(.ag-cell-focus),
.ag-cell-range-selected-2.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-2 {
  background-color: var(--ag-range-selection-background-color-2);
}

.ag-cell-range-selected-3:not(.ag-cell-focus),
.ag-cell-range-selected-3.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-3 {
  background-color: var(--ag-range-selection-background-color-3);
}

.ag-cell-range-selected-4:not(.ag-cell-focus),
.ag-cell-range-selected-4.ag-cell-range-chart,
.ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-4 {
  background-color: var(--ag-range-selection-background-color-4);
}

.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top {
  border-top-color: var(--ag-range-selection-border-color);
  border-top-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right {
  border-right-color: var(--ag-range-selection-border-color);
  border-right-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom {
  border-bottom-color: var(--ag-range-selection-border-color);
  border-bottom-style: var(--ag-range-selection-border-style);
}
.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left {
  border-left-color: var(--ag-range-selection-border-color);
  border-left-style: var(--ag-range-selection-border-style);
}

.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,
.ag-ltr .ag-cell-range-single-cell,
.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle,
.ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),
.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,
.ag-rtl .ag-cell-range-single-cell,
.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle {
  border: 1px solid;
  border-color: var(--ag-range-selection-border-color);
  border-style: var(--ag-range-selection-border-style);
  outline: initial;
}

.ag-cell.ag-selection-fill-top,
.ag-cell.ag-selection-fill-top.ag-cell-range-selected {
  border-top: 1px dashed;
  border-top-color: var(--ag-range-selection-border-color);
}

.ag-ltr .ag-cell.ag-selection-fill-right,
.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected {
  border-right: 1px dashed var(--ag-range-selection-border-color) !important;
}
.ag-rtl .ag-cell.ag-selection-fill-right,
.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected {
  border-left: 1px dashed var(--ag-range-selection-border-color) !important;
}

.ag-cell.ag-selection-fill-bottom,
.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected {
  border-bottom: 1px dashed;
  border-bottom-color: var(--ag-range-selection-border-color);
}

.ag-ltr .ag-cell.ag-selection-fill-left,
.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected {
  border-left: 1px dashed var(--ag-range-selection-border-color) !important;
}
.ag-rtl .ag-cell.ag-selection-fill-left,
.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected {
  border-right: 1px dashed var(--ag-range-selection-border-color) !important;
}

.ag-fill-handle,
.ag-range-handle {
  position: absolute;
  width: 6px;
  height: 6px;
  bottom: -1px;
  background-color: var(--ag-range-selection-border-color);
}
.ag-ltr .ag-fill-handle,
.ag-ltr .ag-range-handle {
  right: -1px;
}
.ag-rtl .ag-fill-handle,
.ag-rtl .ag-range-handle {
  left: -1px;
}

.ag-fill-handle {
  cursor: cell;
}

.ag-range-handle {
  cursor: nwse-resize;
}

.ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}

.ag-menu {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background-color: var(--ag-menu-background-color);
  border-color: var(--ag-menu-border-color);
  padding: 0;
}

.ag-menu.ag-tabs {
  min-width: var(--ag-tab-min-width);
}

.ag-menu-list {
  cursor: default;
  padding: var(--ag-grid-size) 0;
}

.ag-menu-separator {
  height: calc(var(--ag-grid-size) * 2 + 1px);
}

.ag-menu-separator-part::after {
  content: "";
  display: block;
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-menu-option-active,
.ag-compact-menu-option-active {
  background-color: var(--ag-row-hover-color);
}

.ag-menu-option-part,
.ag-compact-menu-option-part {
  line-height: var(--ag-icon-size);
  padding: calc(var(--ag-grid-size) + 2px) 0;
}

.ag-menu-option-disabled,
.ag-compact-menu-option-disabled {
  opacity: 0.5;
}

.ag-menu-option-icon,
.ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
}
.ag-ltr .ag-menu-option-icon,
.ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-menu-option-icon,
.ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 2);
}

.ag-menu-option-text,
.ag-compact-menu-option-text {
  padding-left: calc(var(--ag-grid-size) * 2);
  padding-right: calc(var(--ag-grid-size) * 2);
}

.ag-ltr .ag-menu-option-shortcut,
.ag-ltr .ag-compact-menu-option-shortcut {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-menu-option-shortcut,
.ag-rtl .ag-compact-menu-option-shortcut {
  padding-left: var(--ag-grid-size);
}

.ag-ltr .ag-menu-option-popup-pointer,
.ag-ltr .ag-compact-menu-option-popup-pointer {
  padding-right: var(--ag-grid-size);
}
.ag-rtl .ag-menu-option-popup-pointer,
.ag-rtl .ag-compact-menu-option-popup-pointer {
  padding-left: var(--ag-grid-size);
}

.ag-tabs-header {
  display: flex;
}

.ag-tabs-header-wrapper {
  display: flex;
}
.ag-tabs-header-wrapper .ag-tabs-header {
  flex: 1;
}

.ag-tabs-close-button-wrapper {
  border: 0;
  border-right: var(--ag-borders) var(--ag-border-color);
  padding: var(--ag-grid-size);
}

.ag-tabs-close-button {
  border: 0;
  background-color: unset;
  cursor: pointer;
  padding: 0;
}

.ag-tab {
  border-bottom: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-bottom var(--ag-selected-tab-underline-transition-speed);
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ag-tab:focus-visible {
  outline: none;
}
.ag-tab:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-tab-selected {
  border-bottom-color: var(--ag-selected-tab-underline-color);
}

.ag-menu-header {
  color: var(--ag-secondary-foreground-color);
}

.ag-filter-separator {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-filter-select .ag-picker-field-wrapper {
  width: 0;
}

.ag-filter-condition-operator {
  height: 17px;
}

.ag-ltr .ag-filter-condition-operator-or {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-filter-condition-operator-or {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-set-filter-select-all {
  padding-top: var(--ag-widget-container-vertical-padding);
}

.ag-set-filter-list,
.ag-filter-no-matches {
  height: calc(var(--ag-list-item-height) * 6);
}

.ag-set-filter-tree-list {
  height: calc(var(--ag-list-item-height) * 10);
}

.ag-set-filter-filter {
  margin-top: var(--ag-widget-container-vertical-padding);
  margin-left: var(--ag-widget-container-horizontal-padding);
  margin-right: var(--ag-widget-container-horizontal-padding);
}

.ag-filter-to {
  margin-top: var(--ag-widget-vertical-spacing);
}

.ag-mini-filter {
  margin: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}

.ag-set-filter {
  --ag-indentation-level: 0;
}

.ag-ltr .ag-set-filter-item {
  padding-left: calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level) * var(--ag-set-filter-indent-size));
}
.ag-rtl .ag-set-filter-item {
  padding-right: calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level) * var(--ag-set-filter-indent-size));
}

.ag-ltr .ag-set-filter-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));
}
.ag-rtl .ag-set-filter-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding));
}

.ag-ltr .ag-set-filter-group-icons {
  margin-right: var(--ag-widget-container-horizontal-padding);
}
.ag-rtl .ag-set-filter-group-icons {
  margin-left: var(--ag-widget-container-horizontal-padding);
}

.ag-filter-menu .ag-set-filter-list {
  min-width: 200px;
}

.ag-filter-virtual-list-item:focus-visible {
  outline: none;
}
.ag-filter-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-filter-apply-panel {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-filter-apply-panel-button {
  line-height: 1.5;
}
.ag-ltr .ag-filter-apply-panel-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-filter-apply-panel-button {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-simple-filter-body-wrapper {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));
  overflow-y: auto;
  min-height: calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));
}
.ag-simple-filter-body-wrapper > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-simple-filter-body-wrapper .ag-resizer-wrapper {
  margin: 0;
}

.ag-menu:not(.ag-tabs) .ag-filter .ag-filter-body-wrapper,
.ag-menu:not(.ag-tabs) .ag-filter > *:not(.ag-filter-wrapper) {
  min-width: calc(var(--ag-menu-min-width) - 2px);
}

.ag-filter-no-matches {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}

.ag-multi-filter-menu-item {
  margin: var(--ag-grid-size) 0;
}

.ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 2) var(--ag-grid-size);
  background-color: transparent;
}

.ag-group-filter-field-select-wrapper {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));
}
.ag-group-filter-field-select-wrapper > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-multi-filter-group-title-bar:focus-visible {
  outline: none;
}
.ag-multi-filter-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-side-bar {
  position: relative;
}

.ag-tool-panel-wrapper {
  width: var(--ag-side-bar-panel-width);
  background-color: var(--ag-control-panel-background-color);
}

.ag-side-buttons {
  padding-top: calc(var(--ag-grid-size) * 4);
  width: calc(var(--ag-icon-size) + 4px);
  position: relative;
  overflow: hidden;
}

button.ag-side-button-button {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  background: transparent;
  padding: calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;
  width: 100%;
  margin: 0;
  min-height: calc(var(--ag-grid-size) * 18);
  background-position-y: center;
  background-position-x: center;
  background-repeat: no-repeat;
  border: none;
  border-top: var(--ag-borders-side-button) var(--ag-border-color);
  border-bottom: var(--ag-borders-side-button) var(--ag-border-color);
}
button.ag-side-button-button:focus {
  box-shadow: none;
}

.ag-side-button-button:focus-visible {
  outline: none;
}
.ag-side-button-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-selected button.ag-side-button-button {
  background-color: var(--ag-side-button-selected-background-color);
}

.ag-side-button-icon-wrapper {
  margin-bottom: 3px;
}

.ag-ltr .ag-side-bar-left,
.ag-rtl .ag-side-bar-right {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,
.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper {
  border-left: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-side-bar-left .ag-side-button-button,
.ag-rtl .ag-side-bar-right .ag-side-button-button {
  border-right: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-right var(--ag-selected-tab-underline-transition-speed);
}
.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,
.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button {
  border-right-color: var(--ag-selected-tab-underline-color);
}

.ag-rtl .ag-side-bar-left,
.ag-ltr .ag-side-bar-right {
  border-left: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,
.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-side-bar-left .ag-side-button-button,
.ag-ltr .ag-side-bar-right .ag-side-button-button {
  border-left: var(--ag-selected-tab-underline-width) solid transparent;
  transition: border-left var(--ag-selected-tab-underline-transition-speed);
}
.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,
.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button {
  border-left-color: var(--ag-selected-tab-underline-color);
}

.ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 6);
}

.ag-filter-toolpanel-header,
.ag-filter-toolpanel-search {
  padding: 0 var(--ag-grid-size);
}

.ag-filter-toolpanel-header:focus-visible {
  outline: none;
}
.ag-filter-toolpanel-header:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-filter-toolpanel-group:not(.ag-has-filter) > .ag-group-title-bar .ag-filter-toolpanel-group-instance-header-icon {
  display: none;
}

.ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 8);
}

.ag-filter-toolpanel-group-item {
  margin-top: calc(var(--ag-grid-size) * 0.5);
  margin-bottom: calc(var(--ag-grid-size) * 0.5);
}

.ag-filter-toolpanel-search {
  height: var(--ag-header-height);
}

.ag-filter-toolpanel-search-input {
  flex-grow: 1;
  height: calc(var(--ag-grid-size) * 4);
}
.ag-ltr .ag-filter-toolpanel-search-input {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-search-input {
  margin-left: var(--ag-grid-size);
}

.ag-filter-toolpanel-group-level-0 {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-ltr .ag-filter-toolpanel-expand,
.ag-ltr .ag-filter-toolpanel-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-expand,
.ag-rtl .ag-filter-toolpanel-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-filter-toolpanel-group-title-bar {
  background-color: transparent;
}

.ag-ltr .ag-filter-toolpanel-header {
  padding-left: calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size));
}
.ag-rtl .ag-filter-toolpanel-header {
  padding-right: calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size));
}

.ag-filter-toolpanel-instance-filter {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  border-top: var(--ag-borders) var(--ag-border-color);
  margin-top: var(--ag-grid-size);
}

.ag-ltr .ag-filter-toolpanel-group-instance-header-icon,
.ag-ltr .ag-filter-toolpanel-instance-header-icon {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-filter-toolpanel-group-instance-header-icon,
.ag-rtl .ag-filter-toolpanel-instance-header-icon {
  margin-right: var(--ag-grid-size);
}

.ag-set-filter-group-icons {
  color: var(--ag-secondary-foreground-color);
}

.ag-pivot-mode-panel {
  min-height: var(--ag-header-height);
  height: var(--ag-header-height);
  display: flex;
}

.ag-pivot-mode-select {
  display: flex;
  align-items: center;
}
.ag-ltr .ag-pivot-mode-select {
  margin-left: var(--ag-widget-container-horizontal-padding);
}
.ag-rtl .ag-pivot-mode-select {
  margin-right: var(--ag-widget-container-horizontal-padding);
}

.ag-column-select-header:focus-visible {
  outline: none;
}
.ag-column-select-header:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-select-header {
  height: var(--ag-header-height);
  align-items: center;
  padding: 0 var(--ag-widget-container-horizontal-padding);
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-column-panel-column-select {
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-column-group-icons,
.ag-column-select-header-icon {
  color: var(--ag-secondary-foreground-color);
}

.ag-column-select-list .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-column-select-list .ag-item-highlight-top::after {
  top: 0;
}
.ag-column-select-list .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-header,
.ag-advanced-filter-header {
  background-color: var(--ag-header-background-color);
  border-bottom: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-header-row {
  color: var(--ag-header-foreground-color);
  height: var(--ag-header-height);
}

.ag-pinned-right-header {
  border-left: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-pinned-left-header {
  border-right: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,
.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {
  margin-left: var(--ag-grid-size);
}
.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,
.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon {
  margin-right: var(--ag-grid-size);
}

.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,
.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {
  margin-right: var(--ag-grid-size);
}
.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,
.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon {
  margin-left: var(--ag-grid-size);
}

.ag-header-cell,
.ag-header-group-cell {
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}
.ag-header-cell.ag-header-cell-moving,
.ag-header-group-cell.ag-header-cell-moving {
  background-color: var(--ag-header-cell-moving-background-color);
}

.ag-ltr .ag-header-group-cell-label.ag-sticky-label {
  left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-header-group-cell-label.ag-sticky-label {
  right: var(--ag-cell-horizontal-padding);
}

.ag-header-cell:focus-visible {
  outline: none;
}
.ag-header-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-header-group-cell:focus-visible {
  outline: none;
}
.ag-header-group-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-header-cell:focus-visible {
  outline: none;
}
.ag-advanced-filter-header-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-header-icon {
  color: var(--ag-secondary-foreground-color);
}

.ag-header-expand-icon {
  cursor: pointer;
}
.ag-ltr .ag-header-expand-icon {
  margin-left: 4px;
}
.ag-rtl .ag-header-expand-icon {
  margin-right: 4px;
}

.ag-header-row:not(:first-child) .ag-header-cell:not(.ag-header-span-height.ag-header-span-total, .ag-header-parent-hidden),
.ag-header-row:not(:first-child) .ag-header-group-cell.ag-header-group-cell-with-group {
  border-top: var(--ag-borders-critical) var(--ag-border-color);
}

.ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover, .ag-header-group-cell:not(.ag-column-resizing) + .ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,
.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,
.ag-header-cell:not(.ag-column-resizing) + .ag-header-cell:not(.ag-column-hover).ag-column-resizing,
.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,
.ag-header-group-cell:first-of-type.ag-column-resizing,
.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,
.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing {
  background-color: var(--ag-header-cell-hover-background-color);
}

.ag-header-cell::before,
.ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  content: "";
  position: absolute;
  z-index: 1;
  display: var(--ag-header-column-separator-display);
  width: var(--ag-header-column-separator-width);
  height: var(--ag-header-column-separator-height);
  top: calc(50% - var(--ag-header-column-separator-height) * 0.5);
  background-color: var(--ag-header-column-separator-color);
}
.ag-ltr .ag-header-cell::before,
.ag-ltr .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  right: 0;
}
.ag-rtl .ag-header-cell::before,
.ag-rtl .ag-header-group-cell:not(.ag-header-span-height.ag-header-group-cell-no-group)::before {
  left: 0;
}

.ag-header-highlight-before::after,
.ag-header-highlight-after::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 1px;
}

.ag-header-highlight-before::after {
  left: 0px;
}

.ag-header-highlight-after::after {
  right: 0px;
}

.ag-pinned-left-header .ag-header-highlight-after::after {
  right: 1px;
}

.ag-header-cell-resize {
  display: flex;
  align-items: center;
}

.ag-header-cell-resize::after {
  content: "";
  position: absolute;
  z-index: 1;
  display: var(--ag-header-column-resize-handle-display);
  width: var(--ag-header-column-resize-handle-width);
  height: var(--ag-header-column-resize-handle-height);
  top: calc(50% - var(--ag-header-column-resize-handle-height) * 0.5);
  background-color: var(--ag-header-column-resize-handle-color);
}
.ag-header-cell.ag-header-span-height .ag-header-cell-resize::after {
  height: calc(100% - var(--ag-grid-size) * 4);
  top: calc(var(--ag-grid-size) * 2);
}

.ag-ltr .ag-header-viewport .ag-header-cell-resize::after {
  left: calc(50% - var(--ag-header-column-resize-handle-width));
}
.ag-rtl .ag-header-viewport .ag-header-cell-resize::after {
  right: calc(50% - var(--ag-header-column-resize-handle-width));
}

.ag-pinned-left-header .ag-header-cell-resize::after {
  left: calc(50% - var(--ag-header-column-resize-handle-width));
}

.ag-pinned-right-header .ag-header-cell-resize::after {
  left: 50%;
}

.ag-ltr .ag-header-select-all {
  margin-right: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-header-select-all {
  margin-left: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-floating-filter-button {
  margin-left: var(--ag-cell-widget-spacing);
}
.ag-rtl .ag-floating-filter-button {
  margin-right: var(--ag-cell-widget-spacing);
}

.ag-floating-filter-button-button {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  appearance: none;
  background: transparent;
  border: none;
  height: var(--ag-icon-size);
  padding: 0;
  width: var(--ag-icon-size);
}

.ag-filter-loading {
  background-color: var(--ag-control-panel-background-color);
  height: 100%;
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  position: absolute;
  width: 100%;
  z-index: 1;
}

.ag-paging-panel {
  border-top: 1px solid;
  border-top-color: var(--ag-border-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
}
.ag-paging-panel > * {
  margin: 0 var(--ag-cell-horizontal-padding);
}
.ag-paging-panel > .ag-paging-page-size .ag-wrapper {
  min-width: calc(var(--ag-grid-size) * 10);
}

.ag-paging-button {
  cursor: pointer;
}

.ag-paging-button.ag-disabled {
  cursor: default;
  color: var(--ag-disabled-foreground-color);
}

.ag-paging-button:focus-visible {
  outline: none;
}
.ag-paging-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 0px;
  left: 0px;
  display: block;
  width: calc(100% - 0px);
  height: calc(100% - 0px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-paging-button,
.ag-paging-description {
  margin: 0 var(--ag-grid-size);
}

.ag-status-bar {
  border-top: var(--ag-borders) var(--ag-border-color);
  color: var(--ag-disabled-foreground-color);
  padding-right: calc(var(--ag-grid-size) * 4);
  padding-left: calc(var(--ag-grid-size) * 4);
  line-height: 1.5;
}

.ag-status-name-value-value {
  color: var(--ag-foreground-color);
}

.ag-status-bar-center {
  text-align: center;
}

.ag-status-name-value {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  padding-top: calc(var(--ag-grid-size) * 2);
  padding-bottom: calc(var(--ag-grid-size) * 2);
}

.ag-column-drop-cell {
  background: var(--ag-chip-background-color);
  border-radius: calc(var(--ag-grid-size) * 4);
  height: calc(var(--ag-grid-size) * 4);
  padding: 0 calc(var(--ag-grid-size) * 0.5);
  border: 1px solid var(--ag-chip-border-color);
}

.ag-column-drop-cell:focus-visible {
  outline: none;
}
.ag-column-drop-cell:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 2px;
  left: 2px;
  display: block;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-column-drop-cell-text {
  margin: 0 var(--ag-grid-size);
}

.ag-column-drop-cell-button {
  min-width: calc(var(--ag-grid-size) * 4);
  margin: 0 calc(var(--ag-grid-size) * 0.5);
  color: var(--ag-secondary-foreground-color);
}

.ag-column-drop-cell-drag-handle {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-column-drop-cell-ghost {
  opacity: 0.5;
}

.ag-column-drop-horizontal {
  background-color: var(--ag-header-background-color);
  color: var(--ag-secondary-foreground-color);
  height: var(--ag-header-height);
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-ltr .ag-column-drop-horizontal {
  padding-left: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-column-drop-horizontal {
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child) {
  border-right: var(--ag-borders) var(--ag-border-color);
}
.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child) {
  border-left: var(--ag-borders) var(--ag-border-color);
}

.ag-column-drop-horizontal-cell-separator {
  margin: 0 var(--ag-grid-size);
  color: var(--ag-secondary-foreground-color);
}

.ag-column-drop-horizontal-empty-message {
  color: var(--ag-disabled-foreground-color);
}

.ag-ltr .ag-column-drop-horizontal-icon {
  margin-right: var(--ag-cell-horizontal-padding);
}
.ag-rtl .ag-column-drop-horizontal-icon {
  margin-left: var(--ag-cell-horizontal-padding);
}

.ag-column-drop-vertical-list {
  padding-bottom: var(--ag-grid-size);
  padding-right: var(--ag-grid-size);
  padding-left: var(--ag-grid-size);
}

.ag-column-drop-vertical-cell {
  margin-top: var(--ag-grid-size);
}

.ag-column-drop-vertical {
  min-height: 50px;
  border-bottom: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}

.ag-column-drop-vertical-icon {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
}

.ag-column-drop-vertical-empty-message {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  color: var(--ag-disabled-foreground-color);
  margin-top: var(--ag-grid-size);
}

.ag-select-agg-func-popup {
  border: var(--ag-borders) var(--ag-border-color);
  background: var(--ag-background-color);
  border-radius: var(--ag-card-radius);
  box-shadow: var(--ag-card-shadow);
  padding: var(--ag-grid-size);
  background: var(--ag-background-color);
  height: calc(var(--ag-grid-size) * 5 * 3.5);
  padding: 0;
}

.ag-select-agg-func-virtual-list-item {
  cursor: default;
}
.ag-ltr .ag-select-agg-func-virtual-list-item {
  padding-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-select-agg-func-virtual-list-item {
  padding-right: calc(var(--ag-grid-size) * 2);
}
.ag-select-agg-func-virtual-list-item:hover {
  background-color: var(--ag-selected-row-background-color);
}

.ag-select-agg-func-virtual-list-item:focus-visible {
  outline: none;
}
.ag-select-agg-func-virtual-list-item:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 1px;
  left: 1px;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-sort-indicator-container {
  display: flex;
}

.ag-ltr .ag-sort-indicator-icon {
  padding-left: var(--ag-grid-size);
}
.ag-rtl .ag-sort-indicator-icon {
  padding-right: var(--ag-grid-size);
}

.ag-chart {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}

.ag-chart-components-wrapper {
  position: relative;
  display: flex;
  flex: 1 1 auto;
}

.ag-chart-canvas-wrapper {
  position: relative;
  flex: 1 1 auto;
}

.ag-chart-menu {
  position: absolute;
  top: 16px;
  display: flex;
  flex-direction: column;
}
.ag-ltr .ag-chart-menu {
  right: 20px;
}
.ag-rtl .ag-chart-menu {
  left: 20px;
}

.ag-chart-docked-container {
  position: relative;
  min-width: var(--ag-chart-menu-panel-width);
}

.ag-chart-menu-hidden ~ .ag-chart-docked-container {
  display: none;
}

.ag-chart-tabbed-menu {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ag-chart-tabbed-menu-header {
  flex: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
}

.ag-chart-tabbed-menu-body {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  overflow: hidden;
}

.ag-chart-tab {
  width: 100%;
  overflow: hidden;
  overflow-y: auto;
}

.ag-chart-settings {
  overflow-x: hidden;
}

.ag-chart-settings-wrapper {
  position: relative;
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.ag-chart-settings-nav-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.ag-chart-settings-card-selector {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 10px;
}

.ag-chart-settings-card-item {
  cursor: pointer;
  width: 10px;
  height: 10px;
  background-color: #000;
  position: relative;
}
.ag-chart-settings-card-item.ag-not-selected {
  opacity: 0.2;
}
.ag-chart-settings-card-item::before {
  content: " ";
  display: block;
  position: absolute;
  background-color: transparent;
  left: 50%;
  top: 50%;
  margin-left: -10px;
  margin-top: -10px;
  width: 20px;
  height: 20px;
}

.ag-chart-settings-prev,
.ag-chart-settings-next {
  position: relative;
  flex: none;
}
.ag-chart-settings-prev:focus-within,
.ag-chart-settings-next:focus-within {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-radius: 1px;
}

.ag-chart-settings-prev-button,
.ag-chart-settings-next-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.ag-chart-settings-mini-charts-container {
  position: relative;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.ag-chart-settings-mini-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
}
.ag-chart-settings-mini-wrapper.ag-animating {
  transition: left 0.3s;
  transition-timing-function: ease-in-out;
}

.ag-chart-mini-thumbnail {
  cursor: pointer;
}

.ag-chart-mini-thumbnail-canvas {
  display: block;
}

.ag-chart-data-wrapper,
.ag-chart-format-wrapper,
.ag-chart-advanced-settings-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding-bottom: 16px;
}

.ag-chart-data-wrapper,
.ag-chart-advanced-settings-wrapper {
  height: 100%;
  overflow-y: auto;
}

.ag-chart-advanced-settings {
  background-color: var(--ag-control-panel-background-color);
}

.ag-chart-advanced-settings-wrapper,
.ag-chart-advanced-settings {
  width: 100%;
}

.ag-chart-advanced-settings-wrapper {
  padding-bottom: 0;
}

.ag-chart-data-section,
.ag-chart-format-section,
.ag-chart-advanced-settings-section {
  display: flex;
  margin: 0;
}

.ag-chart-advanced-settings-section {
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-chart-advanced-settings-section:not(:last-child) {
  border-bottom: 1px solid var(--ag-secondary-border-color);
}

.ag-chart-empty-text {
  display: flex;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: var(--ag-background-color);
}

.ag-chart .ag-chart-menu {
  display: none;
}

.ag-chart-menu-hidden:hover .ag-chart-menu {
  display: block;
}

.ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  display: flex;
  flex-direction: row;
  top: 8px;
  gap: 20px;
  width: auto;
}
.ag-ltr .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  right: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);
  justify-content: right;
}
.ag-rtl .ag-chart .ag-chart-menu-wrapper .ag-chart-menu {
  left: calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);
  justify-content: left;
}

.ag-charts-font-size-color {
  display: flex;
  align-self: stretch;
  justify-content: space-between;
}

.ag-charts-data-group-item {
  position: relative;
}

.ag-charts-data-group-item:not(:last-child) {
  margin-bottom: var(--ag-grid-size);
}

.ag-chart-menu {
  border-radius: var(--ag-card-radius);
  background: var(--ag-background-color);
}

.ag-chart-menu-icon {
  opacity: 0.5;
  margin: 2px 0;
  cursor: pointer;
  border-radius: var(--ag-card-radius);
  color: var(--ag-secondary-foreground-color);
}
.ag-chart-menu-icon:hover {
  opacity: 1;
}

.ag-chart-menu-toolbar-button {
  border: 0;
  background-color: unset;
  padding: 0 2px;
  border-radius: 1px;
}

.ag-chart-mini-thumbnail {
  border: 1px solid var(--ag-secondary-border-color);
  border-radius: 5px;
}
.ag-chart-mini-thumbnail.ag-selected {
  border-color: var(--ag-minichart-selected-chart-color);
  border-width: 2px;
}
.ag-chart-mini-thumbnail:focus-visible {
  outline: none;
  border-color: var(--ag-minichart-selected-chart-color);
  box-shadow: var(--ag-input-focus-box-shadow);
}

.ag-chart-settings-card-item {
  background: var(--ag-foreground-color);
  width: 8px;
  height: 8px;
  border-radius: 4px;
}
.ag-chart-settings-card-item.ag-selected {
  background-color: var(--ag-minichart-selected-page-color);
}

.ag-chart-data-column-drag-handle {
  margin-left: var(--ag-grid-size);
}

.ag-charts-settings-group-title-bar,
.ag-charts-data-group-title-bar,
.ag-charts-format-top-level-group-title-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
  position: relative;
}

.ag-charts-advanced-settings-top-level-group-title-bar {
  position: relative;
  background-color: unset;
}

.ag-charts-data-group-title-bar:focus-visible {
  outline: none;
}
.ag-charts-data-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-charts-format-top-level-group-title-bar:focus-visible {
  outline: none;
}
.ag-charts-format-top-level-group-title-bar:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: 4px;
  left: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-charts-data-group-title-bar .ag-charts-data-group-title,
.ag-charts-format-top-level-group-title-bar .ag-charts-format-top-level-group-title {
  cursor: pointer;
}

.ag-charts-data-group-container {
  padding: calc(var(--ag-widget-container-vertical-padding) * 0.5) var(--ag-widget-container-horizontal-padding);
}
.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group):not(.ag-pill-select):not(.ag-select) {
  height: var(--ag-list-item-height);
}
.ag-charts-data-group-container .ag-charts-data-group-item.ag-picker-field {
  margin-top: var(--ag-grid-size);
}
.ag-charts-data-group-container .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-charts-data-group-container .ag-item-highlight-top::after {
  top: 0;
}
.ag-charts-data-group-container .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-charts-format-top-level-group-container,
.ag-charts-advanced-settings-top-level-group-container {
  padding: var(--ag-grid-size);
}
.ag-ltr .ag-charts-format-top-level-group-container,
.ag-ltr .ag-charts-advanced-settings-top-level-group-container {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-charts-format-top-level-group-container,
.ag-rtl .ag-charts-advanced-settings-top-level-group-container {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-charts-format-top-level-group-item,
.ag-charts-advanced-settings-top-level-group-item {
  margin: var(--ag-grid-size) 0;
}

.ag-charts-format-sub-level-group-container {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  padding-bottom: calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));
}
.ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-charts-format-sub-level-no-header-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}

.ag-charts-format-sub-level-group-container .ag-charts-format-sub-level-group-item.ag-font-panel-no-header {
  margin: 0;
}

.ag-charts-settings-group-container {
  padding: var(--ag-grid-size);
  row-gap: 8px;
  display: grid;
  grid-template-columns: 60px 1fr 60px 1fr 60px;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+1) {
  grid-column: 1;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+2) {
  grid-column: 3;
}
.ag-charts-settings-group-container .ag-chart-mini-thumbnail:nth-child(3n+3) {
  grid-column: 5;
}

.ag-chart-menu-panel {
  background-color: var(--ag-control-panel-background-color);
}
.ag-ltr .ag-chart-menu-panel {
  border-left: solid 1px var(--ag-border-color);
}
.ag-rtl .ag-chart-menu-panel {
  border-right: solid 1px var(--ag-border-color);
}

.ag-charts-theme-default {
  --ag-charts-align: none !important;
  --ag-charts-justify: none !important;
}

.ag-date-time-list-page-title-bar {
  display: flex;
}

.ag-date-time-list-page-title {
  flex-grow: 1;
  text-align: center;
}

.ag-date-time-list-page-column-labels-row,
.ag-date-time-list-page-entries-row {
  display: flex;
}

.ag-date-time-list-page-column-label,
.ag-date-time-list-page-entry {
  flex-basis: 0;
  flex-grow: 1;
}

.ag-date-time-list-page-entry {
  cursor: pointer;
  text-align: center;
}

.ag-date-time-list-page-column-label {
  text-align: center;
}

.ag-advanced-filter-header {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: var(--ag-cell-horizontal-padding);
  padding-right: var(--ag-cell-horizontal-padding);
}

.ag-advanced-filter {
  display: flex;
  align-items: center;
  width: 100%;
}

.ag-advanced-filter-apply-button,
.ag-advanced-filter-builder-button {
  line-height: normal;
  white-space: nowrap;
}
.ag-ltr .ag-advanced-filter-apply-button,
.ag-ltr .ag-advanced-filter-builder-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-rtl .ag-advanced-filter-apply-button,
.ag-rtl .ag-advanced-filter-builder-button {
  margin-right: calc(var(--ag-grid-size) * 2);
}

.ag-advanced-filter-builder-button {
  display: flex;
  align-items: center;
  border: 0;
  background-color: unset;
  color: var(--ag-foreground-color);
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-advanced-filter-builder-button:hover:not(:disabled) {
  background-color: var(--ag-row-hover-color);
}
.ag-advanced-filter-builder-button:not(:disabled) {
  cursor: pointer;
}

.ag-advanced-filter-builder-button-label {
  margin-left: var(--ag-grid-size);
}

.ag-advanced-filter-builder {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 100%;
  background-color: var(--ag-control-panel-background-color);
  display: flex;
  flex-direction: column;
}

.ag-advanced-filter-builder-list {
  flex: 1;
  overflow: auto;
}
.ag-advanced-filter-builder-list .ag-list-item-hovered::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}
.ag-advanced-filter-builder-list .ag-item-highlight-top::after {
  top: 0;
}
.ag-advanced-filter-builder-list .ag-item-highlight-bottom::after {
  bottom: 0;
}

.ag-advanced-filter-builder-button-panel {
  display: flex;
  justify-content: flex-end;
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}

.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-apply-button,
.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-cancel-button {
  margin-left: calc(var(--ag-grid-size) * 2);
}

.ag-advanced-filter-builder-item-wrapper {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding-left: calc(var(--ag-icon-size) / 2);
  padding-right: var(--ag-icon-size);
}

.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper .ag-tab-guard {
  position: absolute;
}

.ag-advanced-filter-builder-item-tree-lines > * {
  width: var(--ag-advanced-filter-builder-indent-size);
}

.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root {
  width: var(--ag-icon-size);
}
.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root::before {
  top: 50%;
  height: 50%;
}

.ag-advanced-filter-builder-item-tree-line-horizontal,
.ag-advanced-filter-builder-item-tree-line-vertical,
.ag-advanced-filter-builder-item-tree-line-vertical-top,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.ag-advanced-filter-builder-item-tree-line-horizontal::before, .ag-advanced-filter-builder-item-tree-line-horizontal::after,
.ag-advanced-filter-builder-item-tree-line-vertical::before,
.ag-advanced-filter-builder-item-tree-line-vertical::after,
.ag-advanced-filter-builder-item-tree-line-vertical-top::before,
.ag-advanced-filter-builder-item-tree-line-vertical-top::after,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before,
.ag-advanced-filter-builder-item-tree-line-vertical-bottom::after {
  content: "";
  position: absolute;
  height: 100%;
}

.ag-advanced-filter-builder-item-tree-line-horizontal::after {
  height: 50%;
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size));
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-bottom: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical::before {
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical-top::before {
  height: 50%;
  width: calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);
  top: 0;
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before {
  height: calc((100% - 1.5 * var(--ag-icon-size)) / 2);
  width: calc(var(--ag-icon-size) / 2);
  top: calc((100% + 1.5 * var(--ag-icon-size)) / 2);
  left: calc(var(--ag-icon-size) / 2);
  border-left: 1px solid;
  border-color: var(--ag-border-color);
}

.ag-advanced-filter-builder-item-condition {
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}

.ag-advanced-filter-builder-item,
.ag-advanced-filter-builder-item-condition,
.ag-advanced-filter-builder-pill-wrapper,
.ag-advanced-filter-builder-pill,
.ag-advanced-filter-builder-item-buttons,
.ag-advanced-filter-builder-item-tree-lines {
  display: flex;
  align-items: center;
  height: 100%;
}

.ag-advanced-filter-builder-pill-wrapper {
  margin: 0px var(--ag-grid-size);
}

.ag-advanced-filter-builder-pill {
  position: relative;
  border-radius: var(--ag-border-radius);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  min-height: calc(100% - var(--ag-grid-size) * 3);
  min-width: calc(var(--ag-grid-size) * 2);
}
.ag-advanced-filter-builder-pill .ag-picker-field-display {
  margin-right: var(--ag-grid-size);
}
.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-number {
  font-family: monospace;
  font-weight: 700;
}
.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-empty {
  color: var(--ag-disabled-foreground-color);
}

.ag-advanced-filter-builder-pill:focus-visible {
  outline: none;
}
.ag-advanced-filter-builder-pill:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: -4px;
  left: -4px;
  display: block;
  width: calc(100% - -8px);
  height: calc(100% - -8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-builder-item-button:focus-visible {
  outline: none;
}
.ag-advanced-filter-builder-item-button:focus-visible::after {
  content: "";
  position: absolute;
  background-color: transparent;
  pointer-events: none;
  top: -4px;
  left: -4px;
  display: block;
  width: calc(100% - -8px);
  height: calc(100% - -8px);
  border: 1px solid;
  border-color: var(--ag-input-focus-border-color);
}

.ag-advanced-filter-builder-pill-display {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.ag-advanced-filter-builder-join-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-join-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-column-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-column-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-option-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-option-pill-color);
  cursor: pointer;
}

.ag-advanced-filter-builder-value-pill {
  color: var(--ag-foreground-color);
  background-color: var(--ag-advanced-filter-value-pill-color);
  cursor: text;
  max-width: 140px;
}
.ag-advanced-filter-builder-value-pill .ag-advanced-filter-builder-pill-display {
  display: block;
}

.ag-advanced-filter-builder-item-buttons > * {
  margin: 0 calc(var(--ag-grid-size) * 0.5);
}

.ag-advanced-filter-builder-item-button {
  position: relative;
  cursor: pointer;
  color: var(--ag-secondary-foreground-color);
  opacity: 50%;
}

.ag-advanced-filter-builder-item-button-disabled {
  color: var(--ag-disabled-foreground-color);
  cursor: default;
}

.ag-advanced-filter-builder-virtual-list-container {
  top: var(--ag-grid-size);
}

.ag-advanced-filter-builder-virtual-list-item {
  display: flex;
  cursor: default;
  height: var(--ag-list-item-height);
}
.ag-advanced-filter-builder-virtual-list-item:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-advanced-filter-builder-virtual-list-item:hover .ag-advanced-filter-builder-item-button {
  opacity: 100%;
}

.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible,
.ag-advanced-filter-builder-validation .ag-advanced-filter-builder-invalid {
  opacity: 100%;
}

.ag-advanced-filter-builder-invalid {
  margin: 0 var(--ag-grid-size);
  color: var(--ag-invalid-color);
  cursor: default;
}

.ag-input-field-input {
  width: 100%;
  min-width: 0;
}

.ag-checkbox-input-wrapper {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-checkbox-background-color);
  border-radius: var(--ag-checkbox-border-radius);
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
.ag-checkbox-input-wrapper input,
.ag-checkbox-input-wrapper input {
  -webkit-appearance: none;
  opacity: 0;
  width: 100%;
  height: 100%;
}
.ag-checkbox-input-wrapper:focus-within, .ag-checkbox-input-wrapper:active {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-checkbox-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-checkbox-input-wrapper::after {
  content: var(--ag-icon-font-code-checkbox-unchecked, "\\f108");
  font-family: inherit;
  color: var(--ag-checkbox-unchecked-color);
  display: var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper.ag-checked::after {
  content: var(--ag-icon-font-code-checkbox-checked, "\\f106");
  color: var(--ag-checkbox-checked-color);
  display: var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper.ag-indeterminate::after {
  content: var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");
  color: var(--ag-checkbox-indeterminate-color);
  display: var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-checkbox-input-wrapper::before {
  content: "";
  background: transparent center/contain no-repeat;
  position: absolute;
  inset: 0;
  background-image: var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9));
}
.ag-checkbox-input-wrapper.ag-checked::before {
  background-image: var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9));
}
.ag-checkbox-input-wrapper.ag-indeterminate::before {
  background-image: var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));
  display: var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9));
}

.ag-toggle-button-input-wrapper {
  box-sizing: border-box;
  width: var(--ag-toggle-button-width);
  min-width: var(--ag-toggle-button-width);
  max-width: var(--ag-toggle-button-width);
  height: var(--ag-toggle-button-height);
  background-color: var(--ag-toggle-button-off-background-color);
  border-radius: calc(var(--ag-toggle-button-height) * 0.5);
  position: relative;
  flex: none;
  border: var(--ag-toggle-button-border-width) solid;
  border-color: var(--ag-toggle-button-off-border-color);
}
.ag-toggle-button-input-wrapper input {
  opacity: 0;
  height: 100%;
  width: 100%;
}
.ag-toggle-button-input-wrapper:focus-within {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-toggle-button-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-toggle-button-input-wrapper.ag-checked {
  background-color: var(--ag-toggle-button-on-background-color);
  border-color: var(--ag-toggle-button-on-border-color);
}
.ag-toggle-button-input-wrapper::before {
  content: " ";
  position: absolute;
  top: calc(0px - var(--ag-toggle-button-border-width));
  left: calc(0px - var(--ag-toggle-button-border-width));
  display: block;
  box-sizing: border-box;
  height: var(--ag-toggle-button-height);
  width: var(--ag-toggle-button-height);
  background-color: var(--ag-toggle-button-switch-background-color);
  border-radius: 100%;
  transition: left 100ms;
  border: var(--ag-toggle-button-border-width) solid;
  border-color: var(--ag-toggle-button-switch-border-color);
}
.ag-toggle-button-input-wrapper.ag-checked::before {
  left: calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width));
  border-color: var(--ag-toggle-button-on-border-color);
}

.ag-radio-button-input-wrapper {
  font-family: var(--ag-icon-font-family);
  font-weight: var(--ag-icon-font-weight);
  color: var(--ag-icon-font-color);
  font-size: var(--ag-icon-size);
  line-height: var(--ag-icon-size);
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-checkbox-background-color);
  border-radius: var(--ag-checkbox-border-radius);
  display: inline-block;
  vertical-align: middle;
  flex: none;
  border-radius: var(--ag-icon-size);
}
.ag-radio-button-input-wrapper input,
.ag-radio-button-input-wrapper input {
  -webkit-appearance: none;
  opacity: 0;
  width: 100%;
  height: 100%;
}
.ag-radio-button-input-wrapper:focus-within, .ag-radio-button-input-wrapper:active {
  outline: none;
  box-shadow: var(--ag-input-focus-box-shadow);
}
.ag-radio-button-input-wrapper.ag-disabled {
  opacity: 0.5;
}
.ag-radio-button-input-wrapper::after {
  content: var(--ag-icon-font-code-radio-button-off, "\\f127");
  color: var(--ag-checkbox-unchecked-color);
  display: var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-radio-button-input-wrapper.ag-checked::after {
  content: var(--ag-icon-font-code-radio-button-on, "\\f128");
  color: var(--ag-checkbox-checked-color);
  display: var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.ag-radio-button-input-wrapper::before {
  content: "";
  background: transparent center/contain no-repeat;
  position: absolute;
  inset: 0;
  background-image: var(--ag-icon-image-radio-button-off, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9));
}
.ag-radio-button-input-wrapper.ag-checked::before {
  background-image: var(--ag-icon-image-radio-button-on, var(--ag-icon-image));
  display: var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));
  opacity: var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9));
}

input[class^=ag-][type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  background: none;
  overflow: visible;
}
input[class^=ag-][type=range]::-webkit-slider-runnable-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
}
input[class^=ag-][type=range]::-moz-range-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
}
input[class^=ag-][type=range]::-ms-track {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 3px;
  background-color: var(--ag-border-color);
  border-radius: var(--ag-border-radius);
  border-radius: var(--ag-checkbox-border-radius);
  color: transparent;
  width: calc(100% - 2px);
}
input[class^=ag-][type=range]::-webkit-slider-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
  transform: translateY(calc(var(--ag-icon-size) * -0.5 + 1.5px));
}
input[class^=ag-][type=range]::-ms-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
}
input[class^=ag-][type=range]::-moz-ag-range-thumb {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  width: var(--ag-icon-size);
  height: var(--ag-icon-size);
  background-color: var(--ag-background-color);
  border: 1px solid;
  border-color: var(--ag-checkbox-unchecked-color);
  border-radius: var(--ag-icon-size);
}
input[class^=ag-][type=range]:focus {
  outline: none;
}
input[class^=ag-][type=range]:focus::-webkit-slider-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:focus::-ms-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:focus::-moz-ag-range-thumb {
  box-shadow: var(--ag-input-focus-box-shadow);
  border-color: var(--ag-checkbox-checked-color);
}
input[class^=ag-][type=range]:active::-webkit-slider-runnable-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:active::-moz-ag-range-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:active::-ms-track {
  background-color: var(--ag-input-focus-border-color);
}
input[class^=ag-][type=range]:disabled {
  opacity: 0.5;
}
`,""]),p.A=h},1229:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=b()(z());C.push([x.id,`.ag-theme-alpine,
.ag-theme-alpine-dark,
.ag-theme-alpine-auto-dark {
  --ag-alpine-active-color: #2196f3;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-row-hover-color: rgba(33, 150, 243, 0.1);
  --ag-column-hover-color: rgba(33, 150, 243, 0.1);
  --ag-input-focus-border-color: rgba(33, 150, 243, 0.4);
  --ag-range-selection-background-color: rgba(33, 150, 243, 0.2);
  --ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);
  --ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);
  --ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: #babfc7;
  --ag-secondary-border-color: #dde2eb;
  --ag-header-background-color: #f8f8f8;
  --ag-tooltip-background-color: #f8f8f8;
  --ag-odd-row-background-color: #fcfcfc;
  --ag-control-panel-background-color: #f8f8f8;
  --ag-subheader-background-color: #fff;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: #999;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-alpine-active-color);
  --ag-range-selection-border-color: var(--ag-alpine-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-menu-background-color: var(--ag-header-background-color);
  --ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);
  --ag-chip-background-color: rgba(24, 29, 31, 0.07);
  --ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);
  --ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);
  --ag-borders: solid 1px;
  --ag-border-radius: 3px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 6px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridAlpine;
  --ag-selected-tab-underline-color: var(--ag-alpine-active-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-selected-tab-underline-transition-speed: 0.3s;
  --ag-tab-min-width: 240px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: var(--ag-card-shadow);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-alpine-dark {
  --ag-background-color: #181d1f;
  --ag-foreground-color: #fff;
  --ag-border-color: #68686e;
  --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
  --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
  --ag-header-background-color: #222628;
  --ag-tooltip-background-color: #222628;
  --ag-odd-row-background-color: #222628;
  --ag-control-panel-background-color: #222628;
  --ag-subheader-background-color: #000;
  --ag-input-disabled-background-color: #282c2f;
  --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
  --ag-chip-background-color: rgba(255, 255, 255, 0.07);
  --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
  --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-alpine-auto-dark {
    --ag-background-color: #181d1f;
    --ag-foreground-color: #fff;
    --ag-border-color: #68686e;
    --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
    --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
    --ag-header-background-color: #222628;
    --ag-tooltip-background-color: #222628;
    --ag-odd-row-background-color: #222628;
    --ag-control-panel-background-color: #222628;
    --ag-subheader-background-color: #000;
    --ag-input-disabled-background-color: #282c2f;
    --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
    --ag-chip-background-color: rgba(255, 255, 255, 0.07);
    --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
    --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-alpine .ag-filter-toolpanel-header,
.ag-theme-alpine .ag-filter-toolpanel-search,
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine .ag-header-row,
.ag-theme-alpine .ag-panel-title-bar-title,
.ag-theme-alpine .ag-multi-filter-group-title-bar,
.ag-theme-alpine-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-dark .ag-header-row,
.ag-theme-alpine-dark .ag-panel-title-bar-title,
.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-auto-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-header-row,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,
.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 700;
  color: var(--ag-header-foreground-color);
}
.ag-theme-alpine .ag-row,
.ag-theme-alpine-dark .ag-row,
.ag-theme-alpine-auto-dark .ag-row {
  font-size: calc(var(--ag-font-size) + 1px);
}
.ag-theme-alpine input[class^=ag-]:not([type]),
.ag-theme-alpine input[class^=ag-][type=text],
.ag-theme-alpine input[class^=ag-][type=number],
.ag-theme-alpine input[class^=ag-][type=tel],
.ag-theme-alpine input[class^=ag-][type=date],
.ag-theme-alpine input[class^=ag-][type=datetime-local],
.ag-theme-alpine textarea[class^=ag-],
.ag-theme-alpine-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-dark input[class^=ag-][type=text],
.ag-theme-alpine-dark input[class^=ag-][type=number],
.ag-theme-alpine-dark input[class^=ag-][type=tel],
.ag-theme-alpine-dark input[class^=ag-][type=date],
.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-dark textarea[class^=ag-],
.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-auto-dark input[class^=ag-][type=text],
.ag-theme-alpine-auto-dark input[class^=ag-][type=number],
.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],
.ag-theme-alpine-auto-dark input[class^=ag-][type=date],
.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-tab,
.ag-theme-alpine-dark .ag-tab,
.ag-theme-alpine-auto-dark .ag-tab {
  padding: calc(var(--ag-grid-size) * 1.5);
  transition: color 0.4s;
  flex: 1 1 auto;
}
.ag-theme-alpine .ag-tab-selected,
.ag-theme-alpine-dark .ag-tab-selected,
.ag-theme-alpine-auto-dark .ag-tab-selected {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-menu,
.ag-theme-alpine-dark .ag-menu,
.ag-theme-alpine-auto-dark .ag-menu {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-menu-header,
.ag-theme-alpine-dark .ag-menu-header,
.ag-theme-alpine-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
  padding-top: 1px;
}
.ag-theme-alpine .ag-tabs-header,
.ag-theme-alpine-dark .ag-tabs-header,
.ag-theme-alpine-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-theme-alpine .ag-charts-settings-group-title-bar,
.ag-theme-alpine .ag-charts-data-group-title-bar,
.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar {
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);
}
.ag-theme-alpine .ag-chart-mini-thumbnail,
.ag-theme-alpine-dark .ag-chart-mini-thumbnail,
.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
}
.ag-theme-alpine .ag-chart-settings-nav-bar,
.ag-theme-alpine-dark .ag-chart-settings-nav-bar,
.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-toolbar {
  margin-top: var(--ag-grid-size);
}
.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-charts-format-sub-level-group,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  padding-left: var(--ag-grid-size);
  margin-bottom: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding-top: 0;
  padding-bottom: 0;
  background: none;
  font-weight: 700;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container {
  padding-bottom: 0;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child {
  margin-bottom: 0;
}
.ag-theme-alpine.ag-dnd-ghost,
.ag-theme-alpine-dark.ag-dnd-ghost,
.ag-theme-alpine-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 700;
}
.ag-theme-alpine .ag-side-buttons,
.ag-theme-alpine-dark .ag-side-buttons,
.ag-theme-alpine-auto-dark .ag-side-buttons {
  width: calc(var(--ag-grid-size) * 5);
}
.ag-theme-alpine .ag-standard-button,
.ag-theme-alpine-dark .ag-standard-button,
.ag-theme-alpine-auto-dark .ag-standard-button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: 1px solid;
  border-color: var(--ag-alpine-active-color);
  color: var(--ag-alpine-active-color);
  background-color: var(--ag-background-color);
  font-weight: 600;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-standard-button:hover,
.ag-theme-alpine-dark .ag-standard-button:hover,
.ag-theme-alpine-auto-dark .ag-standard-button:hover {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-row-hover-color);
}
.ag-theme-alpine .ag-standard-button:active,
.ag-theme-alpine-dark .ag-standard-button:active,
.ag-theme-alpine-auto-dark .ag-standard-button:active {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-alpine-active-color);
  color: var(--ag-background-color);
}
.ag-theme-alpine .ag-standard-button:disabled,
.ag-theme-alpine-dark .ag-standard-button:disabled,
.ag-theme-alpine-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-alpine .ag-column-drop-vertical,
.ag-theme-alpine-dark .ag-column-drop-vertical,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-alpine .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar {
  padding: calc(var(--ag-grid-size) * 2);
  padding-bottom: 0px;
}
.ag-theme-alpine .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-column-drop-empty-message,
.ag-theme-alpine-dark .ag-column-drop-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
  opacity: 0.75;
}
.ag-theme-alpine .ag-pill-select .ag-column-drop,
.ag-theme-alpine-dark .ag-pill-select .ag-column-drop,
.ag-theme-alpine-auto-dark .ag-pill-select .ag-column-drop {
  min-height: unset;
}
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-alpine .ag-status-name-value-value,
.ag-theme-alpine-dark .ag-status-name-value-value,
.ag-theme-alpine-auto-dark .ag-status-name-value-value {
  font-weight: 700;
}
.ag-theme-alpine .ag-paging-number,
.ag-theme-alpine .ag-paging-row-summary-panel-number,
.ag-theme-alpine-dark .ag-paging-number,
.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,
.ag-theme-alpine-auto-dark .ag-paging-number,
.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 700;
}
.ag-theme-alpine .ag-column-drop-cell-button,
.ag-theme-alpine-dark .ag-column-drop-cell-button,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button {
  opacity: 0.5;
}
.ag-theme-alpine .ag-column-drop-cell-button:hover,
.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 0.75;
}
.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-alpine .ag-header-cell-menu-button:hover,
.ag-theme-alpine .ag-header-cell-filter-button:hover,
.ag-theme-alpine .ag-side-button-button:hover,
.ag-theme-alpine .ag-tab:hover,
.ag-theme-alpine .ag-panel-title-bar-button:hover,
.ag-theme-alpine .ag-header-expand-icon:hover,
.ag-theme-alpine .ag-column-group-icons:hover,
.ag-theme-alpine .ag-set-filter-group-icons:hover,
.ag-theme-alpine .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine .ag-chart-settings-prev:hover,
.ag-theme-alpine .ag-chart-settings-next:hover,
.ag-theme-alpine .ag-group-title-bar-icon:hover,
.ag-theme-alpine .ag-column-select-header-icon:hover,
.ag-theme-alpine .ag-floating-filter-button-button:hover,
.ag-theme-alpine .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine .ag-chart-menu-icon:hover,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-dark .ag-side-button-button:hover,
.ag-theme-alpine-dark .ag-tab:hover,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-dark .ag-column-group-icons:hover,
.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-dark .ag-chart-menu-icon:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover,
.ag-theme-alpine-auto-dark .ag-tab:hover,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon {
  color: inherit;
}
.ag-theme-alpine .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  border-right: dashed 1px;
  border-right-color: var(--ag-border-color);
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-set-filter-list,
.ag-theme-alpine-dark .ag-set-filter-list,
.ag-theme-alpine-auto-dark .ag-set-filter-list {
  padding-top: calc(var(--ag-grid-size) * 0.5);
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-alpine .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-advanced-filter-builder-button,
.ag-theme-alpine-dark .ag-advanced-filter-builder-button,
.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-alpine .ag-list-item-hovered::after,
.ag-theme-alpine-dark .ag-list-item-hovered::after,
.ag-theme-alpine-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-dark .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-highlight-before::after,
.ag-theme-alpine .ag-header-highlight-after::after,
.ag-theme-alpine-dark .ag-header-highlight-before::after,
.ag-theme-alpine-dark .ag-header-highlight-after::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-before::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-alpine-active-color);
}
`,""]),p.A=C},3871:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=A(62),d=A.n(C),s=new URL(A(8430),A.b),c=b()(z()),h=d()(s);c.push([x.id,`@font-face {
  font-family: "agGridAlpine";
  src: url(`+h+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-alpine,
.ag-theme-alpine-dark,
.ag-theme-alpine-auto-dark {
  --ag-alpine-active-color: #2196f3;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-row-hover-color: rgba(33, 150, 243, 0.1);
  --ag-column-hover-color: rgba(33, 150, 243, 0.1);
  --ag-input-focus-border-color: rgba(33, 150, 243, 0.4);
  --ag-range-selection-background-color: rgba(33, 150, 243, 0.2);
  --ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);
  --ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);
  --ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: #babfc7;
  --ag-secondary-border-color: #dde2eb;
  --ag-header-background-color: #f8f8f8;
  --ag-tooltip-background-color: #f8f8f8;
  --ag-odd-row-background-color: #fcfcfc;
  --ag-control-panel-background-color: #f8f8f8;
  --ag-subheader-background-color: #fff;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: #999;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-alpine-active-color);
  --ag-range-selection-border-color: var(--ag-alpine-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-menu-background-color: var(--ag-header-background-color);
  --ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);
  --ag-chip-background-color: rgba(24, 29, 31, 0.07);
  --ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);
  --ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);
  --ag-borders: solid 1px;
  --ag-border-radius: 3px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 6px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridAlpine;
  --ag-selected-tab-underline-color: var(--ag-alpine-active-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-selected-tab-underline-transition-speed: 0.3s;
  --ag-tab-min-width: 240px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: var(--ag-card-shadow);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-alpine-dark {
  --ag-background-color: #181d1f;
  --ag-foreground-color: #fff;
  --ag-border-color: #68686e;
  --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
  --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
  --ag-header-background-color: #222628;
  --ag-tooltip-background-color: #222628;
  --ag-odd-row-background-color: #222628;
  --ag-control-panel-background-color: #222628;
  --ag-subheader-background-color: #000;
  --ag-input-disabled-background-color: #282c2f;
  --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
  --ag-chip-background-color: rgba(255, 255, 255, 0.07);
  --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
  --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-alpine-auto-dark {
    --ag-background-color: #181d1f;
    --ag-foreground-color: #fff;
    --ag-border-color: #68686e;
    --ag-secondary-border-color: rgba(88, 86, 82, 0.5);
    --ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);
    --ag-header-background-color: #222628;
    --ag-tooltip-background-color: #222628;
    --ag-odd-row-background-color: #222628;
    --ag-control-panel-background-color: #222628;
    --ag-subheader-background-color: #000;
    --ag-input-disabled-background-color: #282c2f;
    --ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
    --ag-chip-background-color: rgba(255, 255, 255, 0.07);
    --ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
    --ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-alpine .ag-filter-toolpanel-header,
.ag-theme-alpine .ag-filter-toolpanel-search,
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine .ag-header-row,
.ag-theme-alpine .ag-panel-title-bar-title,
.ag-theme-alpine .ag-multi-filter-group-title-bar,
.ag-theme-alpine-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-dark .ag-header-row,
.ag-theme-alpine-dark .ag-panel-title-bar-title,
.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,
.ag-theme-alpine-auto-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-header-row,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,
.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 700;
  color: var(--ag-header-foreground-color);
}
.ag-theme-alpine .ag-row,
.ag-theme-alpine-dark .ag-row,
.ag-theme-alpine-auto-dark .ag-row {
  font-size: calc(var(--ag-font-size) + 1px);
}
.ag-theme-alpine input[class^=ag-]:not([type]),
.ag-theme-alpine input[class^=ag-][type=text],
.ag-theme-alpine input[class^=ag-][type=number],
.ag-theme-alpine input[class^=ag-][type=tel],
.ag-theme-alpine input[class^=ag-][type=date],
.ag-theme-alpine input[class^=ag-][type=datetime-local],
.ag-theme-alpine textarea[class^=ag-],
.ag-theme-alpine-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-dark input[class^=ag-][type=text],
.ag-theme-alpine-dark input[class^=ag-][type=number],
.ag-theme-alpine-dark input[class^=ag-][type=tel],
.ag-theme-alpine-dark input[class^=ag-][type=date],
.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-dark textarea[class^=ag-],
.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),
.ag-theme-alpine-auto-dark input[class^=ag-][type=text],
.ag-theme-alpine-auto-dark input[class^=ag-][type=number],
.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],
.ag-theme-alpine-auto-dark input[class^=ag-][type=date],
.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-alpine-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-tab,
.ag-theme-alpine-dark .ag-tab,
.ag-theme-alpine-auto-dark .ag-tab {
  padding: calc(var(--ag-grid-size) * 1.5);
  transition: color 0.4s;
  flex: 1 1 auto;
}
.ag-theme-alpine .ag-tab-selected,
.ag-theme-alpine-dark .ag-tab-selected,
.ag-theme-alpine-auto-dark .ag-tab-selected {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-menu,
.ag-theme-alpine-dark .ag-menu,
.ag-theme-alpine-auto-dark .ag-menu {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-menu-header,
.ag-theme-alpine-dark .ag-menu-header,
.ag-theme-alpine-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
  padding-top: 1px;
}
.ag-theme-alpine .ag-tabs-header,
.ag-theme-alpine-dark .ag-tabs-header,
.ag-theme-alpine-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
}
.ag-theme-alpine .ag-charts-settings-group-title-bar,
.ag-theme-alpine .ag-charts-data-group-title-bar,
.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar {
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);
}
.ag-theme-alpine .ag-chart-mini-thumbnail,
.ag-theme-alpine-dark .ag-chart-mini-thumbnail,
.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
}
.ag-theme-alpine .ag-chart-settings-nav-bar,
.ag-theme-alpine-dark .ag-chart-settings-nav-bar,
.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar,
.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-toolbar {
  margin-top: var(--ag-grid-size);
}
.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-auto-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar {
  padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
}

.ag-theme-alpine .ag-charts-format-sub-level-group,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  padding-left: var(--ag-grid-size);
  margin-bottom: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding-top: 0;
  padding-bottom: 0;
  background: none;
  font-weight: 700;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container {
  padding-bottom: 0;
}
.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child {
  margin-bottom: 0;
}
.ag-theme-alpine.ag-dnd-ghost,
.ag-theme-alpine-dark.ag-dnd-ghost,
.ag-theme-alpine-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 700;
}
.ag-theme-alpine .ag-side-buttons,
.ag-theme-alpine-dark .ag-side-buttons,
.ag-theme-alpine-auto-dark .ag-side-buttons {
  width: calc(var(--ag-grid-size) * 5);
}
.ag-theme-alpine .ag-standard-button,
.ag-theme-alpine-dark .ag-standard-button,
.ag-theme-alpine-auto-dark .ag-standard-button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: 1px solid;
  border-color: var(--ag-alpine-active-color);
  color: var(--ag-alpine-active-color);
  background-color: var(--ag-background-color);
  font-weight: 600;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-standard-button:hover,
.ag-theme-alpine-dark .ag-standard-button:hover,
.ag-theme-alpine-auto-dark .ag-standard-button:hover {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-row-hover-color);
}
.ag-theme-alpine .ag-standard-button:active,
.ag-theme-alpine-dark .ag-standard-button:active,
.ag-theme-alpine-auto-dark .ag-standard-button:active {
  border-color: var(--ag-alpine-active-color);
  background-color: var(--ag-alpine-active-color);
  color: var(--ag-background-color);
}
.ag-theme-alpine .ag-standard-button:disabled,
.ag-theme-alpine-dark .ag-standard-button:disabled,
.ag-theme-alpine-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-alpine .ag-column-drop-vertical,
.ag-theme-alpine-dark .ag-column-drop-vertical,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-alpine .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar {
  padding: calc(var(--ag-grid-size) * 2);
  padding-bottom: 0px;
}
.ag-theme-alpine .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-alpine .ag-column-drop-empty-message,
.ag-theme-alpine-dark .ag-column-drop-empty-message,
.ag-theme-alpine-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
  opacity: 0.75;
}
.ag-theme-alpine .ag-pill-select .ag-column-drop,
.ag-theme-alpine-dark .ag-pill-select .ag-column-drop,
.ag-theme-alpine-auto-dark .ag-pill-select .ag-column-drop {
  min-height: unset;
}
.ag-theme-alpine .ag-status-bar,
.ag-theme-alpine-dark .ag-status-bar,
.ag-theme-alpine-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-alpine .ag-status-name-value-value,
.ag-theme-alpine-dark .ag-status-name-value-value,
.ag-theme-alpine-auto-dark .ag-status-name-value-value {
  font-weight: 700;
}
.ag-theme-alpine .ag-paging-number,
.ag-theme-alpine .ag-paging-row-summary-panel-number,
.ag-theme-alpine-dark .ag-paging-number,
.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,
.ag-theme-alpine-auto-dark .ag-paging-number,
.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 700;
}
.ag-theme-alpine .ag-column-drop-cell-button,
.ag-theme-alpine-dark .ag-column-drop-cell-button,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button {
  opacity: 0.5;
}
.ag-theme-alpine .ag-column-drop-cell-button:hover,
.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,
.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 0.75;
}
.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-alpine .ag-header-cell-menu-button:hover,
.ag-theme-alpine .ag-header-cell-filter-button:hover,
.ag-theme-alpine .ag-side-button-button:hover,
.ag-theme-alpine .ag-tab:hover,
.ag-theme-alpine .ag-panel-title-bar-button:hover,
.ag-theme-alpine .ag-header-expand-icon:hover,
.ag-theme-alpine .ag-column-group-icons:hover,
.ag-theme-alpine .ag-set-filter-group-icons:hover,
.ag-theme-alpine .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine .ag-chart-settings-prev:hover,
.ag-theme-alpine .ag-chart-settings-next:hover,
.ag-theme-alpine .ag-group-title-bar-icon:hover,
.ag-theme-alpine .ag-column-select-header-icon:hover,
.ag-theme-alpine .ag-floating-filter-button-button:hover,
.ag-theme-alpine .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine .ag-chart-menu-icon:hover,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-dark .ag-side-button-button:hover,
.ag-theme-alpine-dark .ag-tab:hover,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-dark .ag-column-group-icons:hover,
.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-dark .ag-chart-menu-icon:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover,
.ag-theme-alpine-auto-dark .ag-tab:hover,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,
.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,
.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon {
  color: inherit;
}
.ag-theme-alpine .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,
.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container {
  padding-left: var(--ag-grid-size);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container {
  padding-right: var(--ag-grid-size);
}

.ag-theme-alpine .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  border-left: dashed 1px;
  border-left-color: var(--ag-border-color);
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  border-right: dashed 1px;
  border-right-color: var(--ag-border-color);
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-alpine .ag-set-filter-list,
.ag-theme-alpine-dark .ag-set-filter-list,
.ag-theme-alpine-auto-dark .ag-set-filter-list {
  padding-top: calc(var(--ag-grid-size) * 0.5);
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-alpine-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-alpine .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-advanced-filter-builder-button,
.ag-theme-alpine-dark .ag-advanced-filter-builder-button,
.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-alpine .ag-list-item-hovered::after,
.ag-theme-alpine-dark .ag-list-item-hovered::after,
.ag-theme-alpine-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-dark .ag-pill .ag-pill-button:hover,
.ag-theme-alpine-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-alpine-active-color);
}
.ag-theme-alpine .ag-header-highlight-before::after,
.ag-theme-alpine .ag-header-highlight-after::after,
.ag-theme-alpine-dark .ag-header-highlight-before::after,
.ag-theme-alpine-dark .ag-header-highlight-after::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-before::after,
.ag-theme-alpine-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-alpine-active-color);
}
`,""]),p.A=c},8225:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=b()(z());C.push([x.id,`.ag-theme-balham,
.ag-theme-balham-dark,
.ag-theme-balham-auto-dark {
  --ag-balham-active-color: #0091ea;
  --ag-foreground-color: #000;
  --ag-background-color: #fff;
  --ag-header-background-color: #f5f7f7;
  --ag-tooltip-background-color: #cbd0d3;
  --ag-subheader-background-color: #e2e9eb;
  --ag-control-panel-background-color: #f5f7f7;
  --ag-border-color: #bdc3c7;
  --ag-odd-row-background-color: #fcfdfe;
  --ag-row-hover-color: #ecf0f1;
  --ag-column-hover-color: #ecf0f1;
  --ag-input-border-color: #95a5a6;
  --ag-invalid-color: #e02525;
  --ag-input-disabled-background-color: #ebebeb;
  --ag-checkbox-unchecked-color: #7f8c8d;
  --ag-input-focus-border-color: #719ece;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);
  --ag-range-selection-border-color: var(--ag-balham-active-color);
  --ag-checkbox-checked-color: var(--ag-balham-active-color);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);
  --ag-row-border-color: rgba(189, 195, 199, 0.58);
  --ag-chip-background-color: rgba(0, 0, 0, 0.1);
  --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);
  --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);
  --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);
  --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);
  --ag-header-column-separator-display: block;
  --ag-header-column-separator-height: 50%;
  --ag-grid-size: 4px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 6);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-input-height: calc(var(--ag-grid-size) * 4);
  --ag-chart-menu-panel-width: 240px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 12px;
  --ag-icon-font-family: agGridBalham;
  --ag-border-radius: 2px;
  --ag-checkbox-border-radius: 3px;
  --ag-card-shadow: none;
}

.ag-theme-balham-dark {
  --ag-balham-active-color: #00b0ff;
  --ag-foreground-color: #f5f5f5;
  --ag-background-color: #2d3436;
  --ag-header-background-color: #1c1c1c;
  --ag-tooltip-background-color: #1c1f20;
  --ag-subheader-background-color: #111;
  --ag-control-panel-background-color: #202020;
  --ag-border-color: #424242;
  --ag-odd-row-background-color: #262c2e;
  --ag-row-hover-color: #3d4749;
  --ag-column-hover-color: #3d4749;
  --ag-input-border-color: #f0f0f0;
  --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
  --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
  --ag-checkbox-unchecked-color: #ecf0f1;
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
  --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
  --ag-row-border-color: #5c5c5c;
  --ag-chip-background-color: rgba(245, 245, 245, 0.08);
  --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
  --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
  --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
  --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
  --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
  --ag-toggle-button-off-background-color: transparent;
  --ag-toggle-button-off-border-color: var(--ag-foreground-color);
  --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
  --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
  --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-balham-auto-dark {
    --ag-balham-active-color: #00b0ff;
    --ag-foreground-color: #f5f5f5;
    --ag-background-color: #2d3436;
    --ag-header-background-color: #1c1c1c;
    --ag-tooltip-background-color: #1c1f20;
    --ag-subheader-background-color: #111;
    --ag-control-panel-background-color: #202020;
    --ag-border-color: #424242;
    --ag-odd-row-background-color: #262c2e;
    --ag-row-hover-color: #3d4749;
    --ag-column-hover-color: #3d4749;
    --ag-input-border-color: #f0f0f0;
    --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
    --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
    --ag-checkbox-unchecked-color: #ecf0f1;
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-secondary-foreground-color: var(--ag-foreground-color);
    --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
    --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
    --ag-row-border-color: #5c5c5c;
    --ag-chip-background-color: rgba(245, 245, 245, 0.08);
    --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
    --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
    --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
    --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
    --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
    --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
    --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
    --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
    --ag-toggle-button-off-background-color: transparent;
    --ag-toggle-button-off-border-color: var(--ag-foreground-color);
    --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
    --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
    --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-balham .ag-filter-toolpanel-header,
.ag-theme-balham .ag-filter-toolpanel-search,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham .ag-header-row,
.ag-theme-balham .ag-multi-filter-group-title-bar,
.ag-theme-balham-dark .ag-filter-toolpanel-header,
.ag-theme-balham-dark .ag-filter-toolpanel-search,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-dark .ag-header-row,
.ag-theme-balham-dark .ag-multi-filter-group-title-bar,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-header,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-search,
.ag-theme-balham-auto-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-header-row,
.ag-theme-balham-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-vertical-empty-message,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-auto-dark .ag-status-bar {
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham.ag-dnd-ghost,
.ag-theme-balham-dark.ag-dnd-ghost,
.ag-theme-balham-auto-dark.ag-dnd-ghost {
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-theme-balham .ag-tab,
.ag-theme-balham-dark .ag-tab,
.ag-theme-balham-auto-dark .ag-tab {
  border: 1px solid transparent;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  margin: var(--ag-grid-size);
  margin-bottom: -1px;
}
.ag-theme-balham .ag-tab-selected,
.ag-theme-balham-dark .ag-tab-selected,
.ag-theme-balham-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
  border-color: var(--ag-border-color);
  border-bottom-color: transparent;
}
.ag-theme-balham .ag-tabs-header,
.ag-theme-balham-dark .ag-tabs-header,
.ag-theme-balham-auto-dark .ag-tabs-header {
  border-bottom: 1px solid var(--ag-border-color);
}
.ag-theme-balham .ag-column-drop-cell,
.ag-theme-balham-dark .ag-column-drop-cell,
.ag-theme-balham-auto-dark .ag-column-drop-cell {
  height: calc(var(--ag-grid-size) * 6);
}
.ag-theme-balham .ag-column-drop-vertical-title,
.ag-theme-balham-dark .ag-column-drop-vertical-title,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-title {
  color: var(--ag-foreground-color);
}
.ag-theme-balham .ag-column-drop-vertical-cell,
.ag-theme-balham-dark .ag-column-drop-vertical-cell,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-cell-text,
.ag-theme-balham-dark .ag-column-drop-vertical-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-icon,
.ag-theme-balham-dark .ag-column-drop-vertical-icon,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-icon {
  color: var(--ag-secondary-foreground-color);
}
.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-horizontal,
.ag-theme-balham-dark .ag-column-drop-horizontal,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal {
  height: var(--ag-header-height);
}
.ag-theme-balham .ag-column-drop-empty,
.ag-theme-balham-dark .ag-column-drop-empty,
.ag-theme-balham-auto-dark .ag-column-drop-empty {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-dark .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical,
.ag-theme-balham-dark .ag-column-drop-vertical,
.ag-theme-balham-auto-dark .ag-column-drop-vertical {
  padding-top: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-balham .ag-menu-header,
.ag-theme-balham-dark .ag-menu-header,
.ag-theme-balham-auto-dark .ag-menu-header {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-overlay-loading-center,
.ag-theme-balham-dark .ag-overlay-loading-center,
.ag-theme-balham-auto-dark .ag-overlay-loading-center {
  background-color: var(--ag-background-color);
  border: 1px solid var(--ag-border-color);
  color: var(--ag-foreground-color);
  padding: calc(var(--ag-grid-size) * 4);
}
.ag-theme-balham .ag-tooltip,
.ag-theme-balham-dark .ag-tooltip,
.ag-theme-balham-auto-dark .ag-tooltip {
  border: none;
}
.ag-theme-balham .ag-panel-title-bar-button-icon,
.ag-theme-balham-dark .ag-panel-title-bar-button-icon,
.ag-theme-balham-auto-dark .ag-panel-title-bar-button-icon {
  font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));
}
.ag-theme-balham .ag-panel,
.ag-theme-balham-dark .ag-panel,
.ag-theme-balham-auto-dark .ag-panel {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-chart-data-section,
.ag-theme-balham .ag-chart-format-section,
.ag-theme-balham .ag-chart-advanced-settings-section,
.ag-theme-balham-dark .ag-chart-data-section,
.ag-theme-balham-dark .ag-chart-format-section,
.ag-theme-balham-dark .ag-chart-advanced-settings-section,
.ag-theme-balham-auto-dark .ag-chart-data-section,
.ag-theme-balham-auto-dark .ag-chart-format-section,
.ag-theme-balham-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-group-toolbar,
.ag-theme-balham-dark .ag-group-toolbar,
.ag-theme-balham-auto-dark .ag-group-toolbar {
  background-color: var(--ag-subheader-toolbar-background-color);
}
.ag-theme-balham .ag-chart-tab,
.ag-theme-balham-dark .ag-chart-tab,
.ag-theme-balham-auto-dark .ag-chart-tab {
  padding-top: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-charts-format-sub-level-group-item,
.ag-theme-balham-dark .ag-charts-format-sub-level-group-item,
.ag-theme-balham-auto-dark .ag-charts-format-sub-level-group-item {
  margin-bottom: calc(var(--ag-grid-size) * 1.5);
}
.ag-theme-balham .ag-filter-active .ag-icon-filter,
.ag-theme-balham-dark .ag-filter-active .ag-icon-filter,
.ag-theme-balham-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-auto-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  min-height: calc(var(--ag-icon-size) + 4px);
}
.ag-theme-balham .ag-list-item-hovered::after,
.ag-theme-balham-dark .ag-list-item-hovered::after,
.ag-theme-balham-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-pill .ag-pill-button:hover,
.ag-theme-balham-dark .ag-pill .ag-pill-button:hover,
.ag-theme-balham-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-header-highlight-before::after,
.ag-theme-balham .ag-header-highlight-after::after,
.ag-theme-balham-dark .ag-header-highlight-before::after,
.ag-theme-balham-dark .ag-header-highlight-after::after,
.ag-theme-balham-auto-dark .ag-header-highlight-before::after,
.ag-theme-balham-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-balham-active-color);
}
`,""]),p.A=C},5251:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=A(62),d=A.n(C),s=new URL(A(9377),A.b),c=b()(z()),h=d()(s);c.push([x.id,`@font-face {
  font-family: "agGridBalham";
  src: url(`+h+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-balham,
.ag-theme-balham-dark,
.ag-theme-balham-auto-dark {
  --ag-balham-active-color: #0091ea;
  --ag-foreground-color: #000;
  --ag-background-color: #fff;
  --ag-header-background-color: #f5f7f7;
  --ag-tooltip-background-color: #cbd0d3;
  --ag-subheader-background-color: #e2e9eb;
  --ag-control-panel-background-color: #f5f7f7;
  --ag-border-color: #bdc3c7;
  --ag-odd-row-background-color: #fcfdfe;
  --ag-row-hover-color: #ecf0f1;
  --ag-column-hover-color: #ecf0f1;
  --ag-input-border-color: #95a5a6;
  --ag-invalid-color: #e02525;
  --ag-input-disabled-background-color: #ebebeb;
  --ag-checkbox-unchecked-color: #7f8c8d;
  --ag-input-focus-border-color: #719ece;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);
  --ag-range-selection-border-color: var(--ag-balham-active-color);
  --ag-checkbox-checked-color: var(--ag-balham-active-color);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-panel-background-color: var(--ag-header-background-color);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);
  --ag-row-border-color: rgba(189, 195, 199, 0.58);
  --ag-chip-background-color: rgba(0, 0, 0, 0.1);
  --ag-range-selection-background-color: rgba(0, 145, 234, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);
  --ag-selected-row-background-color: rgba(0, 145, 234, 0.28);
  --ag-header-column-separator-color: rgba(189, 195, 199, 0.5);
  --ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);
  --ag-header-column-separator-display: block;
  --ag-header-column-separator-height: 50%;
  --ag-grid-size: 4px;
  --ag-icon-size: 16px;
  --ag-row-height: calc(var(--ag-grid-size) * 7);
  --ag-header-height: calc(var(--ag-grid-size) * 8);
  --ag-list-item-height: calc(var(--ag-grid-size) * 6);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-input-height: calc(var(--ag-grid-size) * 4);
  --ag-chart-menu-panel-width: 240px;
  --ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 12px;
  --ag-icon-font-family: agGridBalham;
  --ag-border-radius: 2px;
  --ag-checkbox-border-radius: 3px;
  --ag-card-shadow: none;
}

.ag-theme-balham-dark {
  --ag-balham-active-color: #00b0ff;
  --ag-foreground-color: #f5f5f5;
  --ag-background-color: #2d3436;
  --ag-header-background-color: #1c1c1c;
  --ag-tooltip-background-color: #1c1f20;
  --ag-subheader-background-color: #111;
  --ag-control-panel-background-color: #202020;
  --ag-border-color: #424242;
  --ag-odd-row-background-color: #262c2e;
  --ag-row-hover-color: #3d4749;
  --ag-column-hover-color: #3d4749;
  --ag-input-border-color: #f0f0f0;
  --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
  --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
  --ag-checkbox-unchecked-color: #ecf0f1;
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
  --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
  --ag-row-border-color: #5c5c5c;
  --ag-chip-background-color: rgba(245, 245, 245, 0.08);
  --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
  --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
  --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
  --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
  --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
  --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
  --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
  --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
  --ag-toggle-button-off-background-color: transparent;
  --ag-toggle-button-off-border-color: var(--ag-foreground-color);
  --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
  --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
  --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-balham-auto-dark {
    --ag-balham-active-color: #00b0ff;
    --ag-foreground-color: #f5f5f5;
    --ag-background-color: #2d3436;
    --ag-header-background-color: #1c1c1c;
    --ag-tooltip-background-color: #1c1f20;
    --ag-subheader-background-color: #111;
    --ag-control-panel-background-color: #202020;
    --ag-border-color: #424242;
    --ag-odd-row-background-color: #262c2e;
    --ag-row-hover-color: #3d4749;
    --ag-column-hover-color: #3d4749;
    --ag-input-border-color: #f0f0f0;
    --ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);
    --ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);
    --ag-checkbox-unchecked-color: #ecf0f1;
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-secondary-foreground-color: var(--ag-foreground-color);
    --ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);
    --ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);
    --ag-row-border-color: #5c5c5c;
    --ag-chip-background-color: rgba(245, 245, 245, 0.08);
    --ag-range-selection-background-color: rgba(0, 176, 255, 0.2);
    --ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);
    --ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);
    --ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);
    --ag-selected-row-background-color: rgba(0, 176, 255, 0.28);
    --ag-header-column-separator-color: rgba(66, 66, 66, 0.5);
    --ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);
    --ag-header-foreground-color: rgba(245, 245, 245, 0.64);
    --ag-toggle-button-off-background-color: transparent;
    --ag-toggle-button-off-border-color: var(--ag-foreground-color);
    --ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);
    --ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);
    --ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-balham .ag-filter-toolpanel-header,
.ag-theme-balham .ag-filter-toolpanel-search,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham .ag-header-row,
.ag-theme-balham .ag-multi-filter-group-title-bar,
.ag-theme-balham-dark .ag-filter-toolpanel-header,
.ag-theme-balham-dark .ag-filter-toolpanel-search,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-dark .ag-header-row,
.ag-theme-balham-dark .ag-multi-filter-group-title-bar,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-header,
.ag-theme-balham-auto-dark .ag-filter-toolpanel-search,
.ag-theme-balham-auto-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-header-row,
.ag-theme-balham-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham .ag-ltr input[class^=ag-][type=text], .ag-theme-balham .ag-ltr input[class^=ag-][type=number], .ag-theme-balham .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham .ag-ltr input[class^=ag-][type=date], .ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-ltr textarea[class^=ag-], .ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-ltr textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham .ag-rtl input[class^=ag-][type=text], .ag-theme-balham .ag-rtl input[class^=ag-][type=number], .ag-theme-balham .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham .ag-rtl input[class^=ag-][type=date], .ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham .ag-rtl textarea[class^=ag-], .ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-dark .ag-rtl textarea[class^=ag-], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-balham-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-vertical-empty-message,
.ag-theme-balham .ag-status-bar,
.ag-theme-balham-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-dark .ag-status-bar,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-empty-message,
.ag-theme-balham-auto-dark .ag-status-bar {
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham.ag-dnd-ghost,
.ag-theme-balham-dark.ag-dnd-ghost,
.ag-theme-balham-auto-dark.ag-dnd-ghost {
  font-size: var(--ag-font-size);
  font-weight: 600;
}
.ag-theme-balham .ag-tab,
.ag-theme-balham-dark .ag-tab,
.ag-theme-balham-auto-dark .ag-tab {
  border: 1px solid transparent;
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  margin: var(--ag-grid-size);
  margin-bottom: -1px;
}
.ag-theme-balham .ag-tab-selected,
.ag-theme-balham-dark .ag-tab-selected,
.ag-theme-balham-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
  border-color: var(--ag-border-color);
  border-bottom-color: transparent;
}
.ag-theme-balham .ag-tabs-header,
.ag-theme-balham-dark .ag-tabs-header,
.ag-theme-balham-auto-dark .ag-tabs-header {
  border-bottom: 1px solid var(--ag-border-color);
}
.ag-theme-balham .ag-column-drop-cell,
.ag-theme-balham-dark .ag-column-drop-cell,
.ag-theme-balham-auto-dark .ag-column-drop-cell {
  height: calc(var(--ag-grid-size) * 6);
}
.ag-theme-balham .ag-column-drop-vertical-title,
.ag-theme-balham-dark .ag-column-drop-vertical-title,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-title {
  color: var(--ag-foreground-color);
}
.ag-theme-balham .ag-column-drop-vertical-cell,
.ag-theme-balham-dark .ag-column-drop-vertical-cell,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-cell-text,
.ag-theme-balham-dark .ag-column-drop-vertical-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical-icon,
.ag-theme-balham-dark .ag-column-drop-vertical-icon,
.ag-theme-balham-auto-dark .ag-column-drop-vertical-icon {
  color: var(--ag-secondary-foreground-color);
}
.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-balham-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-balham .ag-column-drop-horizontal,
.ag-theme-balham-dark .ag-column-drop-horizontal,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal {
  height: var(--ag-header-height);
}
.ag-theme-balham .ag-column-drop-empty,
.ag-theme-balham-dark .ag-column-drop-empty,
.ag-theme-balham-auto-dark .ag-column-drop-empty {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-balham .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-dark .ag-column-drop-horizontal-cell-text,
.ag-theme-balham-auto-dark .ag-column-drop-horizontal-cell-text {
  margin-left: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-drop-vertical,
.ag-theme-balham-dark .ag-column-drop-vertical,
.ag-theme-balham-auto-dark .ag-column-drop-vertical {
  padding-top: calc(var(--ag-grid-size) * 2);
}
.ag-theme-balham .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-balham-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-balham .ag-menu-header,
.ag-theme-balham-dark .ag-menu-header,
.ag-theme-balham-auto-dark .ag-menu-header {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-overlay-loading-center,
.ag-theme-balham-dark .ag-overlay-loading-center,
.ag-theme-balham-auto-dark .ag-overlay-loading-center {
  background-color: var(--ag-background-color);
  border: 1px solid var(--ag-border-color);
  color: var(--ag-foreground-color);
  padding: calc(var(--ag-grid-size) * 4);
}
.ag-theme-balham .ag-tooltip,
.ag-theme-balham-dark .ag-tooltip,
.ag-theme-balham-auto-dark .ag-tooltip {
  border: none;
}
.ag-theme-balham .ag-panel-title-bar-button-icon,
.ag-theme-balham-dark .ag-panel-title-bar-button-icon,
.ag-theme-balham-auto-dark .ag-panel-title-bar-button-icon {
  font-size: calc(var(--ag-icon-size) + var(--ag-grid-size));
}
.ag-theme-balham .ag-panel,
.ag-theme-balham-dark .ag-panel,
.ag-theme-balham-auto-dark .ag-panel {
  background-color: var(--ag-header-background-color);
}
.ag-theme-balham .ag-chart-data-section,
.ag-theme-balham .ag-chart-format-section,
.ag-theme-balham .ag-chart-advanced-settings-section,
.ag-theme-balham-dark .ag-chart-data-section,
.ag-theme-balham-dark .ag-chart-format-section,
.ag-theme-balham-dark .ag-chart-advanced-settings-section,
.ag-theme-balham-auto-dark .ag-chart-data-section,
.ag-theme-balham-auto-dark .ag-chart-format-section,
.ag-theme-balham-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-group-toolbar,
.ag-theme-balham-dark .ag-group-toolbar,
.ag-theme-balham-auto-dark .ag-group-toolbar {
  background-color: var(--ag-subheader-toolbar-background-color);
}
.ag-theme-balham .ag-chart-tab,
.ag-theme-balham-dark .ag-chart-tab,
.ag-theme-balham-auto-dark .ag-chart-tab {
  padding-top: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-balham .ag-charts-format-sub-level-group-item,
.ag-theme-balham-dark .ag-charts-format-sub-level-group-item,
.ag-theme-balham-auto-dark .ag-charts-format-sub-level-group-item {
  margin-bottom: calc(var(--ag-grid-size) * 1.5);
}
.ag-theme-balham .ag-filter-active .ag-icon-filter,
.ag-theme-balham-dark .ag-filter-active .ag-icon-filter,
.ag-theme-balham-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input,
.ag-theme-balham-auto-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input {
  min-height: calc(var(--ag-icon-size) + 4px);
}
.ag-theme-balham .ag-list-item-hovered::after,
.ag-theme-balham-dark .ag-list-item-hovered::after,
.ag-theme-balham-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-pill .ag-pill-button:hover,
.ag-theme-balham-dark .ag-pill .ag-pill-button:hover,
.ag-theme-balham-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-balham-active-color);
}
.ag-theme-balham .ag-header-highlight-before::after,
.ag-theme-balham .ag-header-highlight-after::after,
.ag-theme-balham-dark .ag-header-highlight-before::after,
.ag-theme-balham-dark .ag-header-highlight-after::after,
.ag-theme-balham-auto-dark .ag-header-highlight-before::after,
.ag-theme-balham-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-balham-active-color);
}
`,""]),p.A=c},4023:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=b()(z());C.push([x.id,`.ag-theme-material,
.ag-theme-material-dark,
.ag-theme-material-auto-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #ff4081;
  --ag-foreground-color: rgba(0, 0, 0, 0.87);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-background-color: #fff;
  --ag-header-background-color: #fff;
  --ag-tooltip-background-color: #fff;
  --ag-subheader-background-color: #eee;
  --ag-subheader-toolbar-background-color: rgba(238, 238, 238, 0.5);
  --ag-header-cell-hover-background-color: #f2f2f2;
  --ag-chip-background-color: #e2e2e2;
  --ag-range-selection-background-color: rgba(122, 134, 203, 0.1);
  --ag-range-selection-background-color-2: rgba(122, 134, 203, 0.19);
  --ag-range-selection-background-color-3: rgba(122, 134, 203, 0.27);
  --ag-range-selection-background-color-4: rgba(122, 134, 203, 0.34);
  --ag-range-selection-highlight-color: #fce4ec;
  --ag-row-hover-color: #fafafa;
  --ag-column-hover-color: #fafafa;
  --ag-control-panel-background-color: #fafafa;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-checkbox-unchecked-color: #333;
  --ag-value-change-value-highlight-background-color: #00acc1;
  --ag-side-button-selected-background-color: transparent;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-range-selection-border-color: var(--ag-material-primary-color);
  --ag-checkbox-checked-color: var(--ag-material-accent-color);
  --ag-borders: none;
  --ag-borders-critical: solid 1px;
  --ag-border-color: #e2e2e2;
  --ag-grid-size: 8px;
  --ag-icon-size: 18px;
  --ag-header-height: calc(var(--ag-grid-size) * 7);
  --ag-row-height: calc(var(--ag-grid-size) * 6);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-filter-tool-panel-sub-level-row-height: calc(var(--ag-grid-size) * 4);
  --ag-checkbox-border-radius: 2px;
  --ag-toggle-button-switch-border-width: 2px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.75);
  --ag-font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridMaterial;
  --ag-selected-tab-underline-color: var(--ag-material-primary-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-input-focus-border-color: var(--ag-material-primary-color);
  --ag-input-focus-box-shadow: 0 0 0 5px rgba(32, 33, 36, 0.122);
  --ag-card-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
      0 1px 5px 0 rgba(0, 0, 0, 0.12);
  --ag-card-radius: 2px;
  --ag-invalid-color: #e02525;
}

.ag-theme-material-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #bb86fcff;
  --ag-range-selection-border-color: var(--ag-material-accent-color);
  --ag-background-color: #121212ff;
  --ag-foreground-color: #ffffffff;
  --ag-data-color: #f5f5f5ff;
  --ag-header-cell-hover-background-color: #000000ff;
  --ag-advanced-filter-join-pill-color: #7a3a37ff;
  --ag-advanced-filter-column-pill-color: #355f2dff;
  --ag-advanced-filter-option-pill-color: #5a3168ff;
  --ag-advanced-filter-value-pill-color: #374c86ff;
  --ag-input-disabled-border-color: #3a434eff;
  --ag-input-disabled-background-color: #68686e12;
  --ag-selected-row-background-color: #bb86fc33;
  --ag-row-hover-color: #bb86fc33;
  --ag-column-hover-color: #f5f5f50d;
  --ag-range-selection-background-color: #bb86fc1a;
  --ag-range-selection-background-color-2: #bb86fc30;
  --ag-range-selection-background-color-3: #bb86fc45;
  --ag-range-selection-background-color-4: #bb86fc57;
  --ag-border-color: #383838ff;
  --ag-secondary-border-color: #383838ff;
  --ag-header-background-color: #121212ff;
  --ag-tooltip-background-color: #212b38ff;
  --ag-odd-row-background-color: #121212ff;
  --ag-control-panel-background-color: #2c2c2cff;
  --ag-subheader-background-color: #ffffff0d;
  --ag-subheader-toolbar-background-color: #2c2c2cff;
  --ag-invalid-color: #e02525ff;
  --ag-checkbox-unchecked-color: #797e87ff;
  --ag-checkbox-background-color: #121212ff;
  --ag-secondary-foreground-color: #f5f5f5ff;
  --ag-input-border-color: #383838ff;
  --ag-input-border-color-invalid: #e02525ff;
  --ag-disabled-foreground-color: #f5f5f580;
  --ag-chip-background-color: #22262812;
  --ag-side-button-selected-background-color: #2c2c2cff;
  --ag-selected-tab-underline-color: #3f51b5ff;
  --ag-modal-overlay-background-color: #121212a8;
  --ag-value-change-delta-up-color: #43a047a8;
  --ag-value-change-delta-down-color: #e53935ff;
  --ag-menu-background-color: #2c2c2cff;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-material-auto-dark {
    --ag-material-primary-color: #3f51b5;
    --ag-material-accent-color: #bb86fcff;
    --ag-range-selection-border-color: var(--ag-material-accent-color);
    --ag-background-color: #121212ff;
    --ag-foreground-color: #ffffffff;
    --ag-data-color: #f5f5f5ff;
    --ag-header-cell-hover-background-color: #000000ff;
    --ag-advanced-filter-join-pill-color: #7a3a37ff;
    --ag-advanced-filter-column-pill-color: #355f2dff;
    --ag-advanced-filter-option-pill-color: #5a3168ff;
    --ag-advanced-filter-value-pill-color: #374c86ff;
    --ag-input-disabled-border-color: #3a434eff;
    --ag-input-disabled-background-color: #68686e12;
    --ag-selected-row-background-color: #bb86fc33;
    --ag-row-hover-color: #bb86fc33;
    --ag-column-hover-color: #f5f5f50d;
    --ag-range-selection-background-color: #bb86fc1a;
    --ag-range-selection-background-color-2: #bb86fc30;
    --ag-range-selection-background-color-3: #bb86fc45;
    --ag-range-selection-background-color-4: #bb86fc57;
    --ag-border-color: #383838ff;
    --ag-secondary-border-color: #383838ff;
    --ag-header-background-color: #121212ff;
    --ag-tooltip-background-color: #212b38ff;
    --ag-odd-row-background-color: #121212ff;
    --ag-control-panel-background-color: #2c2c2cff;
    --ag-subheader-background-color: #ffffff0d;
    --ag-subheader-toolbar-background-color: #2c2c2cff;
    --ag-invalid-color: #e02525ff;
    --ag-checkbox-unchecked-color: #797e87ff;
    --ag-checkbox-background-color: #121212ff;
    --ag-secondary-foreground-color: #f5f5f5ff;
    --ag-input-border-color: #383838ff;
    --ag-input-border-color-invalid: #e02525ff;
    --ag-disabled-foreground-color: #f5f5f580;
    --ag-chip-background-color: #22262812;
    --ag-side-button-selected-background-color: #2c2c2cff;
    --ag-selected-tab-underline-color: #3f51b5ff;
    --ag-modal-overlay-background-color: #121212a8;
    --ag-value-change-delta-up-color: #43a047a8;
    --ag-value-change-delta-down-color: #e53935ff;
    --ag-menu-background-color: #2c2c2cff;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material .ag-filter-toolpanel-search,
.ag-theme-material .ag-status-bar,
.ag-theme-material .ag-header-row,
.ag-theme-material .ag-panel-title-bar-title,
.ag-theme-material .ag-multi-filter-group-title-bar,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-search,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-dark .ag-header-row,
.ag-theme-material-dark .ag-panel-title-bar-title,
.ag-theme-material-dark .ag-multi-filter-group-title-bar,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-search,
.ag-theme-material-auto-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-header-row,
.ag-theme-material-auto-dark .ag-panel-title-bar-title,
.ag-theme-material-auto-dark .ag-multi-filter-group-title-bar {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-material .ag-tab,
.ag-theme-material-dark .ag-tab,
.ag-theme-material-auto-dark .ag-tab {
  height: calc(var(--ag-grid-size) * 4.5);
  flex: 1 1 auto;
}
.ag-theme-material .ag-tabs-header,
.ag-theme-material .ag-column-drop-horizontal,
.ag-theme-material-dark .ag-tabs-header,
.ag-theme-material-dark .ag-column-drop-horizontal,
.ag-theme-material-auto-dark .ag-tabs-header,
.ag-theme-material-auto-dark .ag-column-drop-horizontal {
  background-color: var(--ag-subheader-background-color);
}
.ag-theme-material .ag-tabs-body,
.ag-theme-material-dark .ag-tabs-body,
.ag-theme-material-auto-dark .ag-tabs-body {
  padding: calc(var(--ag-grid-size) * 0.5) 0;
}
.ag-theme-material .ag-tabs-body .ag-menu-list,
.ag-theme-material-dark .ag-tabs-body .ag-menu-list,
.ag-theme-material-auto-dark .ag-tabs-body .ag-menu-list {
  padding-top: 0;
  padding-bottom: 0;
}
.ag-theme-material .ag-header-cell,
.ag-theme-material .ag-header-group-cell,
.ag-theme-material-dark .ag-header-cell,
.ag-theme-material-dark .ag-header-group-cell,
.ag-theme-material-auto-dark .ag-header-cell,
.ag-theme-material-auto-dark .ag-header-group-cell {
  transition: background-color 0.5s;
}
.ag-theme-material .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing {
  bottom: 0;
}
.ag-theme-material .ag-cell-inline-editing,
.ag-theme-material-dark .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-cell-inline-editing {
  padding: var(--ag-grid-size);
  height: calc(var(--ag-row-height) + var(--ag-grid-size) * 3);
  border-color: var(--ag-border-color) !important;
}
.ag-theme-material .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-dark .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-has-focus .ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}
.ag-theme-material .ag-column-drop-vertical,
.ag-theme-material-dark .ag-column-drop-vertical,
.ag-theme-material-auto-dark .ag-column-drop-vertical {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
  padding-top: var(--ag-grid-size);
}
.ag-theme-material .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-dark .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-auto-dark .ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}
.ag-theme-material .ag-column-drop-vertical-cell,
.ag-theme-material-dark .ag-column-drop-vertical-cell,
.ag-theme-material-auto-dark .ag-column-drop-vertical-cell {
  margin-left: 0;
}
.ag-theme-material .ag-column-drop-vertical-empty-message,
.ag-theme-material-dark .ag-column-drop-vertical-empty-message,
.ag-theme-material-auto-dark .ag-column-drop-vertical-empty-message {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-material .ag-status-bar,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-status-bar {
  border: solid 1px;
  border-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-panel-column-select,
.ag-theme-material-dark .ag-column-panel-column-select,
.ag-theme-material-auto-dark .ag-column-panel-column-select {
  border-top: solid 1px;
  border-top-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select,
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select,
.ag-theme-material-auto-dark .ag-column-select-header {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select-header {
  height: var(--ag-header-height);
}
.ag-theme-material .ag-group-title-bar,
.ag-theme-material-dark .ag-group-title-bar,
.ag-theme-material-auto-dark .ag-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.75) var(--ag-grid-size);
}
.ag-theme-material .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.5) var(--ag-grid-size);
}
.ag-theme-material .ag-chart-data-section,
.ag-theme-material .ag-chart-format-section,
.ag-theme-material .ag-chart-advanced-settings-section,
.ag-theme-material-dark .ag-chart-data-section,
.ag-theme-material-dark .ag-chart-format-section,
.ag-theme-material-dark .ag-chart-advanced-settings-section,
.ag-theme-material-auto-dark .ag-chart-data-section,
.ag-theme-material-auto-dark .ag-chart-format-section,
.ag-theme-material-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-material input[class^=ag-]:not([type]),
.ag-theme-material input[class^=ag-][type=text],
.ag-theme-material input[class^=ag-][type=number],
.ag-theme-material input[class^=ag-][type=tel],
.ag-theme-material input[class^=ag-][type=date],
.ag-theme-material input[class^=ag-][type=datetime-local],
.ag-theme-material textarea[class^=ag-],
.ag-theme-material-dark input[class^=ag-]:not([type]),
.ag-theme-material-dark input[class^=ag-][type=text],
.ag-theme-material-dark input[class^=ag-][type=number],
.ag-theme-material-dark input[class^=ag-][type=tel],
.ag-theme-material-dark input[class^=ag-][type=date],
.ag-theme-material-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-dark textarea[class^=ag-],
.ag-theme-material-auto-dark input[class^=ag-]:not([type]),
.ag-theme-material-auto-dark input[class^=ag-][type=text],
.ag-theme-material-auto-dark input[class^=ag-][type=number],
.ag-theme-material-auto-dark input[class^=ag-][type=tel],
.ag-theme-material-auto-dark input[class^=ag-][type=date],
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-auto-dark textarea[class^=ag-] {
  background: transparent;
  color: var(--ag-foreground-color);
  font-family: inherit;
  font-size: inherit;
  padding-bottom: var(--ag-grid-size);
  border-width: 0;
  border-radius: 0;
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material input[class^=ag-][type=text]:not(textarea),
.ag-theme-material input[class^=ag-][type=number]:not(textarea),
.ag-theme-material input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material input[class^=ag-][type=date]:not(textarea),
.ag-theme-material input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material textarea[class^=ag-]:not(textarea),
.ag-theme-material-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-dark textarea[class^=ag-]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-auto-dark textarea[class^=ag-]:not(textarea) {
  height: calc(var(--ag-grid-size) * 5);
}
.ag-theme-material input[class^=ag-]:not([type]):focus,
.ag-theme-material input[class^=ag-][type=text]:focus,
.ag-theme-material input[class^=ag-][type=number]:focus,
.ag-theme-material input[class^=ag-][type=tel]:focus,
.ag-theme-material input[class^=ag-][type=date]:focus,
.ag-theme-material input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material textarea[class^=ag-]:focus,
.ag-theme-material-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-dark textarea[class^=ag-]:focus,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-auto-dark textarea[class^=ag-]:focus {
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-material-primary-color);
  outline: none;
  box-shadow: none;
}
.ag-theme-material input[class^=ag-]:not([type])::placeholder,
.ag-theme-material input[class^=ag-][type=text]::placeholder,
.ag-theme-material input[class^=ag-][type=number]::placeholder,
.ag-theme-material input[class^=ag-][type=tel]::placeholder,
.ag-theme-material input[class^=ag-][type=date]::placeholder,
.ag-theme-material input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material textarea[class^=ag-]::placeholder,
.ag-theme-material-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-dark textarea[class^=ag-]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-auto-dark textarea[class^=ag-]::placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type]):disabled,
.ag-theme-material input[class^=ag-][type=text]:disabled,
.ag-theme-material input[class^=ag-][type=number]:disabled,
.ag-theme-material input[class^=ag-][type=tel]:disabled,
.ag-theme-material input[class^=ag-][type=date]:disabled,
.ag-theme-material input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material textarea[class^=ag-]:disabled,
.ag-theme-material-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-dark textarea[class^=ag-]:disabled,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-auto-dark textarea[class^=ag-]:disabled {
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):invalid,
.ag-theme-material input[class^=ag-][type=text]:invalid,
.ag-theme-material input[class^=ag-][type=number]:invalid,
.ag-theme-material input[class^=ag-][type=tel]:invalid,
.ag-theme-material input[class^=ag-][type=date]:invalid,
.ag-theme-material input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material textarea[class^=ag-]:invalid,
.ag-theme-material-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-dark textarea[class^=ag-]:invalid,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-auto-dark textarea[class^=ag-]:invalid {
  border-width: 0;
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-invalid-color);
  color: var(--ag-invalid-color);
}
.ag-theme-material .ag-standard-button,
.ag-theme-material-dark .ag-standard-button,
.ag-theme-material-auto-dark .ag-standard-button {
  appearance: none;
  background-color: transparent;
  border: 0;
  color: var(--ag-material-primary-color);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}
.ag-theme-material .ag-standard-button:disabled,
.ag-theme-material-dark .ag-standard-button:disabled,
.ag-theme-material-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-material.ag-dnd-ghost,
.ag-theme-material-dark.ag-dnd-ghost,
.ag-theme-material-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-material .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-dark .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 7);
}
.ag-theme-material .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-builder-button {
  margin-left: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-builder-button {
  margin-right: var(--ag-grid-size);
}

.ag-theme-material .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material .ag-layout-print .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-material .ag-picker-field-wrapper:focus-within,
.ag-theme-material-dark .ag-picker-field-wrapper:focus-within,
.ag-theme-material-auto-dark .ag-picker-field-wrapper:focus-within {
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
}
.ag-theme-material .ag-rich-select-list,
.ag-theme-material-dark .ag-rich-select-list,
.ag-theme-material-auto-dark .ag-rich-select-list {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
}
.ag-theme-material .ag-advanced-filter-builder-button-label,
.ag-theme-material-dark .ag-advanced-filter-builder-button-label,
.ag-theme-material-auto-dark .ag-advanced-filter-builder-button-label {
  text-transform: uppercase;
}
.ag-theme-material .ag-filter-active .ag-icon-filter,
.ag-theme-material-dark .ag-filter-active .ag-icon-filter,
.ag-theme-material-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-material-accent-color);
}
.ag-theme-material .ag-list-item-hovered::after,
.ag-theme-material-dark .ag-list-item-hovered::after,
.ag-theme-material-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-pill .ag-pill-button:hover,
.ag-theme-material-dark .ag-pill .ag-pill-button:hover,
.ag-theme-material-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-header-highlight-before::after,
.ag-theme-material .ag-header-highlight-after::after,
.ag-theme-material-dark .ag-header-highlight-before::after,
.ag-theme-material-dark .ag-header-highlight-after::after,
.ag-theme-material-auto-dark .ag-header-highlight-before::after,
.ag-theme-material-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-material-primary-color);
}
`,""]),p.A=C},3973:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=A(62),d=A.n(C),s=new URL(A(6055),A.b),c=b()(z()),h=d()(s);c.push([x.id,`@font-face {
  font-family: "agGridMaterial";
  src: url(`+h+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-material,
.ag-theme-material-dark,
.ag-theme-material-auto-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #ff4081;
  --ag-foreground-color: rgba(0, 0, 0, 0.87);
  --ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);
  --ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);
  --ag-background-color: #fff;
  --ag-header-background-color: #fff;
  --ag-tooltip-background-color: #fff;
  --ag-subheader-background-color: #eee;
  --ag-subheader-toolbar-background-color: rgba(238, 238, 238, 0.5);
  --ag-header-cell-hover-background-color: #f2f2f2;
  --ag-chip-background-color: #e2e2e2;
  --ag-range-selection-background-color: rgba(122, 134, 203, 0.1);
  --ag-range-selection-background-color-2: rgba(122, 134, 203, 0.19);
  --ag-range-selection-background-color-3: rgba(122, 134, 203, 0.27);
  --ag-range-selection-background-color-4: rgba(122, 134, 203, 0.34);
  --ag-range-selection-highlight-color: #fce4ec;
  --ag-row-hover-color: #fafafa;
  --ag-column-hover-color: #fafafa;
  --ag-control-panel-background-color: #fafafa;
  --ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
  --ag-checkbox-unchecked-color: #333;
  --ag-value-change-value-highlight-background-color: #00acc1;
  --ag-side-button-selected-background-color: transparent;
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-range-selection-border-color: var(--ag-material-primary-color);
  --ag-checkbox-checked-color: var(--ag-material-accent-color);
  --ag-borders: none;
  --ag-borders-critical: solid 1px;
  --ag-border-color: #e2e2e2;
  --ag-grid-size: 8px;
  --ag-icon-size: 18px;
  --ag-header-height: calc(var(--ag-grid-size) * 7);
  --ag-row-height: calc(var(--ag-grid-size) * 6);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
  --ag-list-item-height: calc(var(--ag-grid-size) * 4);
  --ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));
  --ag-filter-tool-panel-sub-level-row-height: calc(var(--ag-grid-size) * 4);
  --ag-checkbox-border-radius: 2px;
  --ag-toggle-button-switch-border-width: 2px;
  --ag-toggle-button-height: var(--ag-icon-size);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.75);
  --ag-font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell,
      "Helvetica Neue", sans-serif;
  --ag-font-size: 13px;
  --ag-icon-font-family: agGridMaterial;
  --ag-selected-tab-underline-color: var(--ag-material-primary-color);
  --ag-selected-tab-underline-width: 2px;
  --ag-input-focus-border-color: var(--ag-material-primary-color);
  --ag-input-focus-box-shadow: 0 0 0 5px rgba(32, 33, 36, 0.122);
  --ag-card-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
      0 1px 5px 0 rgba(0, 0, 0, 0.12);
  --ag-card-radius: 2px;
  --ag-invalid-color: #e02525;
}

.ag-theme-material-dark {
  --ag-material-primary-color: #3f51b5;
  --ag-material-accent-color: #bb86fcff;
  --ag-range-selection-border-color: var(--ag-material-accent-color);
  --ag-background-color: #121212ff;
  --ag-foreground-color: #ffffffff;
  --ag-data-color: #f5f5f5ff;
  --ag-header-cell-hover-background-color: #000000ff;
  --ag-advanced-filter-join-pill-color: #7a3a37ff;
  --ag-advanced-filter-column-pill-color: #355f2dff;
  --ag-advanced-filter-option-pill-color: #5a3168ff;
  --ag-advanced-filter-value-pill-color: #374c86ff;
  --ag-input-disabled-border-color: #3a434eff;
  --ag-input-disabled-background-color: #68686e12;
  --ag-selected-row-background-color: #bb86fc33;
  --ag-row-hover-color: #bb86fc33;
  --ag-column-hover-color: #f5f5f50d;
  --ag-range-selection-background-color: #bb86fc1a;
  --ag-range-selection-background-color-2: #bb86fc30;
  --ag-range-selection-background-color-3: #bb86fc45;
  --ag-range-selection-background-color-4: #bb86fc57;
  --ag-border-color: #383838ff;
  --ag-secondary-border-color: #383838ff;
  --ag-header-background-color: #121212ff;
  --ag-tooltip-background-color: #212b38ff;
  --ag-odd-row-background-color: #121212ff;
  --ag-control-panel-background-color: #2c2c2cff;
  --ag-subheader-background-color: #ffffff0d;
  --ag-subheader-toolbar-background-color: #2c2c2cff;
  --ag-invalid-color: #e02525ff;
  --ag-checkbox-unchecked-color: #797e87ff;
  --ag-checkbox-background-color: #121212ff;
  --ag-secondary-foreground-color: #f5f5f5ff;
  --ag-input-border-color: #383838ff;
  --ag-input-border-color-invalid: #e02525ff;
  --ag-disabled-foreground-color: #f5f5f580;
  --ag-chip-background-color: #22262812;
  --ag-side-button-selected-background-color: #2c2c2cff;
  --ag-selected-tab-underline-color: #3f51b5ff;
  --ag-modal-overlay-background-color: #121212a8;
  --ag-value-change-delta-up-color: #43a047a8;
  --ag-value-change-delta-down-color: #e53935ff;
  --ag-menu-background-color: #2c2c2cff;
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-material-auto-dark {
    --ag-material-primary-color: #3f51b5;
    --ag-material-accent-color: #bb86fcff;
    --ag-range-selection-border-color: var(--ag-material-accent-color);
    --ag-background-color: #121212ff;
    --ag-foreground-color: #ffffffff;
    --ag-data-color: #f5f5f5ff;
    --ag-header-cell-hover-background-color: #000000ff;
    --ag-advanced-filter-join-pill-color: #7a3a37ff;
    --ag-advanced-filter-column-pill-color: #355f2dff;
    --ag-advanced-filter-option-pill-color: #5a3168ff;
    --ag-advanced-filter-value-pill-color: #374c86ff;
    --ag-input-disabled-border-color: #3a434eff;
    --ag-input-disabled-background-color: #68686e12;
    --ag-selected-row-background-color: #bb86fc33;
    --ag-row-hover-color: #bb86fc33;
    --ag-column-hover-color: #f5f5f50d;
    --ag-range-selection-background-color: #bb86fc1a;
    --ag-range-selection-background-color-2: #bb86fc30;
    --ag-range-selection-background-color-3: #bb86fc45;
    --ag-range-selection-background-color-4: #bb86fc57;
    --ag-border-color: #383838ff;
    --ag-secondary-border-color: #383838ff;
    --ag-header-background-color: #121212ff;
    --ag-tooltip-background-color: #212b38ff;
    --ag-odd-row-background-color: #121212ff;
    --ag-control-panel-background-color: #2c2c2cff;
    --ag-subheader-background-color: #ffffff0d;
    --ag-subheader-toolbar-background-color: #2c2c2cff;
    --ag-invalid-color: #e02525ff;
    --ag-checkbox-unchecked-color: #797e87ff;
    --ag-checkbox-background-color: #121212ff;
    --ag-secondary-foreground-color: #f5f5f5ff;
    --ag-input-border-color: #383838ff;
    --ag-input-border-color-invalid: #e02525ff;
    --ag-disabled-foreground-color: #f5f5f580;
    --ag-chip-background-color: #22262812;
    --ag-side-button-selected-background-color: #2c2c2cff;
    --ag-selected-tab-underline-color: #3f51b5ff;
    --ag-modal-overlay-background-color: #121212a8;
    --ag-value-change-delta-up-color: #43a047a8;
    --ag-value-change-delta-down-color: #e53935ff;
    --ag-menu-background-color: #2c2c2cff;
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material .ag-filter-toolpanel-search,
.ag-theme-material .ag-status-bar,
.ag-theme-material .ag-header-row,
.ag-theme-material .ag-panel-title-bar-title,
.ag-theme-material .ag-multi-filter-group-title-bar,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-search,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-dark .ag-header-row,
.ag-theme-material-dark .ag-panel-title-bar-title,
.ag-theme-material-dark .ag-multi-filter-group-title-bar,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-search,
.ag-theme-material-auto-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-header-row,
.ag-theme-material-auto-dark .ag-panel-title-bar-title,
.ag-theme-material-auto-dark .ag-multi-filter-group-title-bar {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-header-foreground-color);
}
.ag-theme-material .ag-tab,
.ag-theme-material-dark .ag-tab,
.ag-theme-material-auto-dark .ag-tab {
  height: calc(var(--ag-grid-size) * 4.5);
  flex: 1 1 auto;
}
.ag-theme-material .ag-tabs-header,
.ag-theme-material .ag-column-drop-horizontal,
.ag-theme-material-dark .ag-tabs-header,
.ag-theme-material-dark .ag-column-drop-horizontal,
.ag-theme-material-auto-dark .ag-tabs-header,
.ag-theme-material-auto-dark .ag-column-drop-horizontal {
  background-color: var(--ag-subheader-background-color);
}
.ag-theme-material .ag-tabs-body,
.ag-theme-material-dark .ag-tabs-body,
.ag-theme-material-auto-dark .ag-tabs-body {
  padding: calc(var(--ag-grid-size) * 0.5) 0;
}
.ag-theme-material .ag-tabs-body .ag-menu-list,
.ag-theme-material-dark .ag-tabs-body .ag-menu-list,
.ag-theme-material-auto-dark .ag-tabs-body .ag-menu-list {
  padding-top: 0;
  padding-bottom: 0;
}
.ag-theme-material .ag-header-cell,
.ag-theme-material .ag-header-group-cell,
.ag-theme-material-dark .ag-header-cell,
.ag-theme-material-dark .ag-header-group-cell,
.ag-theme-material-auto-dark .ag-header-cell,
.ag-theme-material-auto-dark .ag-header-group-cell {
  transition: background-color 0.5s;
}
.ag-theme-material .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing {
  bottom: 0;
}
.ag-theme-material .ag-cell-inline-editing,
.ag-theme-material-dark .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-cell-inline-editing {
  padding: var(--ag-grid-size);
  height: calc(var(--ag-row-height) + var(--ag-grid-size) * 3);
  border-color: var(--ag-border-color) !important;
}
.ag-theme-material .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-dark .ag-has-focus .ag-cell-inline-editing,
.ag-theme-material-auto-dark .ag-has-focus .ag-cell-inline-editing {
  border-color: var(--ag-input-focus-border-color) !important;
}
.ag-theme-material .ag-column-drop-vertical,
.ag-theme-material-dark .ag-column-drop-vertical,
.ag-theme-material-auto-dark .ag-column-drop-vertical {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
  padding-top: var(--ag-grid-size);
}
.ag-theme-material .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-dark .ag-column-drop-vertical.ag-last-column-drop,
.ag-theme-material-auto-dark .ag-column-drop-vertical.ag-last-column-drop {
  border-bottom: none;
}
.ag-theme-material .ag-column-drop-vertical-cell,
.ag-theme-material-dark .ag-column-drop-vertical-cell,
.ag-theme-material-auto-dark .ag-column-drop-vertical-cell {
  margin-left: 0;
}
.ag-theme-material .ag-column-drop-vertical-empty-message,
.ag-theme-material-dark .ag-column-drop-vertical-empty-message,
.ag-theme-material-auto-dark .ag-column-drop-vertical-empty-message {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-ltr .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message {
  padding-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-right: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-dark .ag-rtl .ag-column-drop-vertical-empty-message, .ag-theme-material-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message {
  padding-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  padding-left: var(--ag-grid-size);
}

.ag-theme-material .ag-status-bar,
.ag-theme-material-dark .ag-status-bar,
.ag-theme-material-auto-dark .ag-status-bar {
  border: solid 1px;
  border-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-panel-column-select,
.ag-theme-material-dark .ag-column-panel-column-select,
.ag-theme-material-auto-dark .ag-column-panel-column-select {
  border-top: solid 1px;
  border-top-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select,
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select,
.ag-theme-material-auto-dark .ag-column-select-header {
  border-bottom: solid 1px;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material .ag-column-select-header,
.ag-theme-material-dark .ag-column-select-header,
.ag-theme-material-auto-dark .ag-column-select-header {
  height: var(--ag-header-height);
}
.ag-theme-material .ag-group-title-bar,
.ag-theme-material-dark .ag-group-title-bar,
.ag-theme-material-auto-dark .ag-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.75) var(--ag-grid-size);
}
.ag-theme-material .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-material-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: calc(var(--ag-grid-size) * 0.5) var(--ag-grid-size);
}
.ag-theme-material .ag-chart-data-section,
.ag-theme-material .ag-chart-format-section,
.ag-theme-material .ag-chart-advanced-settings-section,
.ag-theme-material-dark .ag-chart-data-section,
.ag-theme-material-dark .ag-chart-format-section,
.ag-theme-material-dark .ag-chart-advanced-settings-section,
.ag-theme-material-auto-dark .ag-chart-data-section,
.ag-theme-material-auto-dark .ag-chart-format-section,
.ag-theme-material-auto-dark .ag-chart-advanced-settings-section {
  padding-bottom: calc(var(--ag-grid-size) * 0.5);
}
.ag-theme-material input[class^=ag-]:not([type]),
.ag-theme-material input[class^=ag-][type=text],
.ag-theme-material input[class^=ag-][type=number],
.ag-theme-material input[class^=ag-][type=tel],
.ag-theme-material input[class^=ag-][type=date],
.ag-theme-material input[class^=ag-][type=datetime-local],
.ag-theme-material textarea[class^=ag-],
.ag-theme-material-dark input[class^=ag-]:not([type]),
.ag-theme-material-dark input[class^=ag-][type=text],
.ag-theme-material-dark input[class^=ag-][type=number],
.ag-theme-material-dark input[class^=ag-][type=tel],
.ag-theme-material-dark input[class^=ag-][type=date],
.ag-theme-material-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-dark textarea[class^=ag-],
.ag-theme-material-auto-dark input[class^=ag-]:not([type]),
.ag-theme-material-auto-dark input[class^=ag-][type=text],
.ag-theme-material-auto-dark input[class^=ag-][type=number],
.ag-theme-material-auto-dark input[class^=ag-][type=tel],
.ag-theme-material-auto-dark input[class^=ag-][type=date],
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-material-auto-dark textarea[class^=ag-] {
  background: transparent;
  color: var(--ag-foreground-color);
  font-family: inherit;
  font-size: inherit;
  padding-bottom: var(--ag-grid-size);
  border-width: 0;
  border-radius: 0;
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material input[class^=ag-][type=text]:not(textarea),
.ag-theme-material input[class^=ag-][type=number]:not(textarea),
.ag-theme-material input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material input[class^=ag-][type=date]:not(textarea),
.ag-theme-material input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material textarea[class^=ag-]:not(textarea),
.ag-theme-material-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-dark textarea[class^=ag-]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=text]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=number]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=date]:not(textarea),
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:not(textarea),
.ag-theme-material-auto-dark textarea[class^=ag-]:not(textarea) {
  height: calc(var(--ag-grid-size) * 5);
}
.ag-theme-material input[class^=ag-]:not([type]):focus,
.ag-theme-material input[class^=ag-][type=text]:focus,
.ag-theme-material input[class^=ag-][type=number]:focus,
.ag-theme-material input[class^=ag-][type=tel]:focus,
.ag-theme-material input[class^=ag-][type=date]:focus,
.ag-theme-material input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material textarea[class^=ag-]:focus,
.ag-theme-material-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-dark textarea[class^=ag-]:focus,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):focus,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:focus,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:focus,
.ag-theme-material-auto-dark textarea[class^=ag-]:focus {
  border-bottom: 2px solid;
  border-bottom-color: var(--ag-material-primary-color);
  outline: none;
  box-shadow: none;
}
.ag-theme-material input[class^=ag-]:not([type])::placeholder,
.ag-theme-material input[class^=ag-][type=text]::placeholder,
.ag-theme-material input[class^=ag-][type=number]::placeholder,
.ag-theme-material input[class^=ag-][type=tel]::placeholder,
.ag-theme-material input[class^=ag-][type=date]::placeholder,
.ag-theme-material input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material textarea[class^=ag-]::placeholder,
.ag-theme-material-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-dark textarea[class^=ag-]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-]:not([type])::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=text]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=number]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=date]::placeholder,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::placeholder,
.ag-theme-material-auto-dark textarea[class^=ag-]::placeholder {
  color: var(--ag-disabled-foreground-color);
}
.ag-theme-material input[class^=ag-]:not([type]):disabled,
.ag-theme-material input[class^=ag-][type=text]:disabled,
.ag-theme-material input[class^=ag-][type=number]:disabled,
.ag-theme-material input[class^=ag-][type=tel]:disabled,
.ag-theme-material input[class^=ag-][type=date]:disabled,
.ag-theme-material input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material textarea[class^=ag-]:disabled,
.ag-theme-material-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-dark textarea[class^=ag-]:disabled,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:disabled,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:disabled,
.ag-theme-material-auto-dark textarea[class^=ag-]:disabled {
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-border-color);
}
.ag-theme-material input[class^=ag-]:not([type]):invalid,
.ag-theme-material input[class^=ag-][type=text]:invalid,
.ag-theme-material input[class^=ag-][type=number]:invalid,
.ag-theme-material input[class^=ag-][type=tel]:invalid,
.ag-theme-material input[class^=ag-][type=date]:invalid,
.ag-theme-material input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material textarea[class^=ag-]:invalid,
.ag-theme-material-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-dark textarea[class^=ag-]:invalid,
.ag-theme-material-auto-dark input[class^=ag-]:not([type]):invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=text]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=number]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=tel]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=date]:invalid,
.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:invalid,
.ag-theme-material-auto-dark textarea[class^=ag-]:invalid {
  border-width: 0;
  border-bottom: 1px solid;
  border-bottom-color: var(--ag-invalid-color);
  color: var(--ag-invalid-color);
}
.ag-theme-material .ag-standard-button,
.ag-theme-material-dark .ag-standard-button,
.ag-theme-material-auto-dark .ag-standard-button {
  appearance: none;
  background-color: transparent;
  border: 0;
  color: var(--ag-material-primary-color);
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}
.ag-theme-material .ag-standard-button:disabled,
.ag-theme-material-dark .ag-standard-button:disabled,
.ag-theme-material-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-material.ag-dnd-ghost,
.ag-theme-material-dark.ag-dnd-ghost,
.ag-theme-material-auto-dark.ag-dnd-ghost {
  font-size: calc(var(--ag-font-size) - 1px);
  font-weight: 600;
}
.ag-theme-material .ag-filter-toolpanel-header,
.ag-theme-material-dark .ag-filter-toolpanel-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-header {
  height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-material .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-dark .ag-filter-toolpanel-group-level-0-header,
.ag-theme-material-auto-dark .ag-filter-toolpanel-group-level-0-header {
  height: calc(var(--ag-grid-size) * 7);
}
.ag-theme-material .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-ltr .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-ltr .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-builder-button {
  margin-left: var(--ag-grid-size);
}

.ag-theme-material .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-dark .ag-rtl .ag-advanced-filter-builder-button, .ag-theme-material-auto-dark .ag-rtl .ag-filter-apply-panel-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-apply-button, .ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-builder-button {
  margin-right: var(--ag-grid-size);
}

.ag-theme-material .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material .ag-layout-print .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-material-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-material .ag-picker-field-wrapper:focus-within,
.ag-theme-material-dark .ag-picker-field-wrapper:focus-within,
.ag-theme-material-auto-dark .ag-picker-field-wrapper:focus-within {
  box-shadow: 0 0 0 1px var(--ag-material-primary-color);
}
.ag-theme-material .ag-rich-select-list,
.ag-theme-material-dark .ag-rich-select-list,
.ag-theme-material-auto-dark .ag-rich-select-list {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
}
.ag-theme-material .ag-advanced-filter-builder-button-label,
.ag-theme-material-dark .ag-advanced-filter-builder-button-label,
.ag-theme-material-auto-dark .ag-advanced-filter-builder-button-label {
  text-transform: uppercase;
}
.ag-theme-material .ag-filter-active .ag-icon-filter,
.ag-theme-material-dark .ag-filter-active .ag-icon-filter,
.ag-theme-material-auto-dark .ag-filter-active .ag-icon-filter {
  color: var(--ag-material-accent-color);
}
.ag-theme-material .ag-list-item-hovered::after,
.ag-theme-material-dark .ag-list-item-hovered::after,
.ag-theme-material-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-pill .ag-pill-button:hover,
.ag-theme-material-dark .ag-pill .ag-pill-button:hover,
.ag-theme-material-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-material-primary-color);
}
.ag-theme-material .ag-header-highlight-before::after,
.ag-theme-material .ag-header-highlight-after::after,
.ag-theme-material-dark .ag-header-highlight-before::after,
.ag-theme-material-dark .ag-header-highlight-after::after,
.ag-theme-material-auto-dark .ag-header-highlight-before::after,
.ag-theme-material-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-material-primary-color);
}
`,""]),p.A=c},145:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=A(62),d=A.n(C),s=new URL(A(7249),A.b),c=b()(z()),h=d()(s);c.push([x.id,`.ag-theme-quartz,
.ag-theme-quartz-dark,
.ag-theme-quartz-auto-dark {
  --ag-active-color: #2196f3;
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 15%);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-header-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 2%);
  --ag-tooltip-background-color: var(--ag-header-background-color);
  --ag-control-panel-background-color: var(--ag-header-background-color);
  --ag-subheader-background-color: transparent;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 30%);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-icon-font-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 90%);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-selected-row-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 8%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 12%);
  --ag-column-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
  --ag-input-focus-border-color: var(--ag-active-color);
  --ag-input-focus-box-shadow: 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color) 47%);
  --ag-range-selection-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-range-selection-background-color-2: color-mix(in srgb, transparent, var(--ag-active-color) 36%);
  --ag-range-selection-background-color-3: color-mix(in srgb, transparent, var(--ag-active-color) 49%);
  --ag-range-selection-background-color-4: color-mix(in srgb, transparent, var(--ag-active-color) 59%);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-active-color);
  --ag-range-selection-border-color: var(--ag-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-disabled-foreground-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 50%);
  --ag-chip-background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 7%);
  --ag-chip-border-color: color-mix(in srgb, var(--ag-header-background-color), var(--ag-foreground-color) 13%);
  --ag-input-disabled-border-color: var(--ag-border-color);
  --ag-input-disabled-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 6%);
  --ag-modal-overlay-background-color: color-mix(in srgb, transparent, var(--ag-background-color) 66%);
  --ag-chart-menu-label-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 80%);
  --ag-chart-menu-pill-select-button-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 70%);
  --ag-borders: solid 1px;
  --ag-border-radius: 4px;
  --ag-wrapper-border-radius: 8px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 8px;
  --ag-icon-size: 16px;
  --ag-header-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 4.25);
  --ag-row-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 3.5);
  --ag-list-item-height: calc(
      var(--ag-icon-size) + var(--ag-widget-vertical-spacing)
  );
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-filter-tool-panel-group-indent: var(--ag-grid-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-toggle-button-border-width: 2px;
  --ag-font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
      Cantarell, "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-icon-font-family: agGridQuartz;
  --ag-tab-min-width: 290px;
  --ag-chart-menu-panel-width: 260px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.15);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-quartz-dark {
  --ag-background-color: color-mix(in srgb, #fff, #182230 97%);
  --ag-foreground-color: #fff;
  --ag-border-color: rgba(255, 255, 255, 0.16);
  --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-header-background-color: color-mix(in srgb, #fff, #182230 93%);
  --ag-tooltip-background-color: color-mix(in srgb, #fff, #182230 96%);
  --ag-control-panel-background-color: color-mix(in srgb, #fff, #182230 93%);
  --ag-input-disabled-background-color: #68686e12;
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-selected-row-background-color: var(--ag-row-hover-color);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-quartz-auto-dark {
    --ag-background-color: color-mix(in srgb, #fff, #182230 97%);
    --ag-foreground-color: #fff;
    --ag-border-color: rgba(255, 255, 255, 0.16);
    --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-header-background-color: color-mix(in srgb, #fff, #182230 93%);
    --ag-tooltip-background-color: color-mix(in srgb, #fff, #182230 96%);
    --ag-control-panel-background-color: color-mix(in srgb, #fff, #182230 93%);
    --ag-input-disabled-background-color: #68686e12;
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-input-border-color: var(--ag-border-color);
    --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
    --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
    --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
    --ag-selected-row-background-color: var(--ag-row-hover-color);
    --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz .ag-header-row,
.ag-theme-quartz .ag-panel-title-bar-title,
.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-dark .ag-header-row,
.ag-theme-quartz-dark .ag-panel-title-bar-title,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-header-row,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-title,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 500;
  color: var(--ag-header-foreground-color);
}
.ag-theme-quartz input[class^=ag-]:not([type]),
.ag-theme-quartz input[class^=ag-][type=text],
.ag-theme-quartz input[class^=ag-][type=number],
.ag-theme-quartz input[class^=ag-][type=tel],
.ag-theme-quartz input[class^=ag-][type=date],
.ag-theme-quartz input[class^=ag-][type=datetime-local],
.ag-theme-quartz textarea[class^=ag-],
.ag-theme-quartz-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-dark input[class^=ag-][type=text],
.ag-theme-quartz-dark input[class^=ag-][type=number],
.ag-theme-quartz-dark input[class^=ag-][type=tel],
.ag-theme-quartz-dark input[class^=ag-][type=date],
.ag-theme-quartz-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-dark textarea[class^=ag-],
.ag-theme-quartz-auto-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-auto-dark input[class^=ag-][type=text],
.ag-theme-quartz-auto-dark input[class^=ag-][type=number],
.ag-theme-quartz-auto-dark input[class^=ag-][type=tel],
.ag-theme-quartz-auto-dark input[class^=ag-][type=date],
.ag-theme-quartz-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-ltr textarea[class^=ag-], .ag-theme-quartz-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-ltr textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-rtl textarea[class^=ag-], .ag-theme-quartz-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-rtl textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-picker-field-wrapper,
.ag-theme-quartz-dark .ag-picker-field-wrapper,
.ag-theme-quartz-auto-dark .ag-picker-field-wrapper {
  min-height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-quartz .ag-tab,
.ag-theme-quartz-dark .ag-tab,
.ag-theme-quartz-auto-dark .ag-tab {
  padding: var(--ag-grid-size);
  border-left: var(--ag-borders) transparent;
  border-right: var(--ag-borders) transparent;
  flex: 1 1 auto;
}
.ag-theme-quartz .ag-tab-selected,
.ag-theme-quartz-dark .ag-tab-selected,
.ag-theme-quartz-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:first-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:first-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:last-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:last-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected) {
  opacity: 0.7;
}
.ag-theme-quartz .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected):hover {
  opacity: 1;
}
.ag-theme-quartz .ag-menu,
.ag-theme-quartz-dark .ag-menu,
.ag-theme-quartz-auto-dark .ag-menu {
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-menu-header,
.ag-theme-quartz-dark .ag-menu-header,
.ag-theme-quartz-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-menu-option,
.ag-theme-quartz-dark .ag-menu-option,
.ag-theme-quartz-auto-dark .ag-menu-option {
  font-weight: 500;
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon {
  text-align: right;
}

.ag-theme-quartz .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon {
  text-align: left;
}

.ag-theme-quartz .ag-tabs-header,
.ag-theme-quartz-dark .ag-tabs-header,
.ag-theme-quartz-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  display: flex;
  background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
}
.ag-theme-quartz .ag-side-bar,
.ag-theme-quartz-dark .ag-side-bar,
.ag-theme-quartz-auto-dark .ag-side-bar {
  background-color: var(--ag-control-panel-background-color);
  min-width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-side-buttons,
.ag-theme-quartz-dark .ag-side-buttons,
.ag-theme-quartz-auto-dark .ag-side-buttons {
  padding: 0;
  align-self: stretch;
  width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  background: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-side-button,
.ag-theme-quartz-dark .ag-side-button,
.ag-theme-quartz-auto-dark .ag-side-button {
  border-top: var(--ag-borders) transparent;
  border-bottom: var(--ag-borders) transparent;
}
@media (max-resolution: 1.5x) {
  .ag-theme-quartz .ag-side-button-label,
  .ag-theme-quartz-dark .ag-side-button-label,
  .ag-theme-quartz-auto-dark .ag-side-button-label {
    font-family: "Segoe UI", var(--ag-font-family);
    transform: rotate(0.05deg);
  }
}
.ag-theme-quartz .ag-side-button.ag-selected,
.ag-theme-quartz-dark .ag-side-button.ag-selected,
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected {
  border-bottom-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-dark .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected:not(:first-of-type) {
  border-top-color: var(--ag-border-color);
}
.ag-theme-quartz .ag-column-panel-column-select,
.ag-theme-quartz-dark .ag-column-panel-column-select,
.ag-theme-quartz-auto-dark .ag-column-panel-column-select {
  border-top: none;
  border-bottom: 1px solid var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search {
  height: initial;
  margin-top: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-filter-toolpanel-search-input,
.ag-theme-quartz-dark .ag-filter-toolpanel-search-input,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search-input {
  margin: 0;
}
.ag-theme-quartz .ag-filter-apply-panel,
.ag-theme-quartz-dark .ag-filter-apply-panel,
.ag-theme-quartz-auto-dark .ag-filter-apply-panel {
  border: none;
  padding-top: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-tabbed-menu-body,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body {
  position: relative;
}
.ag-theme-quartz .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body::after {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(var(--ag-control-panel-background-color), transparent);
}
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  border-top: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-mini-thumbnail,
.ag-theme-quartz-dark .ag-chart-mini-thumbnail,
.ag-theme-quartz-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
  margin-top: 0;
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-settings-nav-bar,
.ag-theme-quartz-dark .ag-chart-settings-nav-bar,
.ag-theme-quartz-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  background: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar) {
  color: var(--ag-chart-menu-label-color);
}
.ag-theme-quartz .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label-align-top .ag-label {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 0.5);
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label {
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-data-section label,
.ag-theme-quartz .ag-chart-format-section label,
.ag-theme-quartz-dark .ag-chart-data-section label,
.ag-theme-quartz-dark .ag-chart-format-section label,
.ag-theme-quartz-auto-dark .ag-chart-data-section label,
.ag-theme-quartz-auto-dark .ag-chart-format-section label {
  display: inline-block;
}
.ag-theme-quartz .ag-chart-format-wrapper,
.ag-theme-quartz .ag-chart-data-wrapper,
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-format-top-level-group-item,
.ag-theme-quartz .ag-charts-format-sub-level-group,
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-chart-format-wrapper,
.ag-theme-quartz-dark .ag-chart-data-wrapper,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-chart-format-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-data-wrapper,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  padding: 0;
  margin: 0;
}
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-data-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-data-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-data-group {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group .ag-charts-settings-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: var(--ag-widget-vertical-spacing) 0;
}
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container {
  padding-top: var(--ag-widget-vertical-spacing);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-charts-data-group-item,
.ag-theme-quartz-dark .ag-charts-data-group-item,
.ag-theme-quartz-auto-dark .ag-charts-data-group-item {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-dark .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-settings-mini-wrapper {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-advanced-settings-section,
.ag-theme-quartz-dark .ag-chart-advanced-settings-section,
.ag-theme-quartz-auto-dark .ag-chart-advanced-settings-section {
  padding-top: var(--ag-widget-container-vertical-padding);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-container {
  margin: 0;
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-item {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 2);
  margin-bottom: 0;
}
.ag-theme-quartz .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-spectrum-color,
.ag-theme-quartz .ag-spectrum-fill,
.ag-theme-quartz-dark .ag-spectrum-color,
.ag-theme-quartz-dark .ag-spectrum-fill,
.ag-theme-quartz-auto-dark .ag-spectrum-color,
.ag-theme-quartz-auto-dark .ag-spectrum-fill {
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-spectrum-dragger,
.ag-theme-quartz-dark .ag-spectrum-dragger,
.ag-theme-quartz-auto-dark .ag-spectrum-dragger {
  border-radius: 18px;
  height: 18px;
  width: 18px;
  border: 3px solid white;
}
.ag-theme-quartz .ag-spectrum-tools,
.ag-theme-quartz-dark .ag-spectrum-tools,
.ag-theme-quartz-auto-dark .ag-spectrum-tools {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.ag-theme-quartz .ag-spectrum-tool,
.ag-theme-quartz-dark .ag-spectrum-tool,
.ag-theme-quartz-auto-dark .ag-spectrum-tool {
  height: 12px;
}
.ag-theme-quartz .ag-spectrum-hue-background,
.ag-theme-quartz .ag-spectrum-alpha-background,
.ag-theme-quartz-dark .ag-spectrum-hue-background,
.ag-theme-quartz-dark .ag-spectrum-alpha-background,
.ag-theme-quartz-auto-dark .ag-spectrum-hue-background,
.ag-theme-quartz-auto-dark .ag-spectrum-alpha-background {
  border-radius: 12px;
}
.ag-theme-quartz .ag-spectrum-slider,
.ag-theme-quartz-dark .ag-spectrum-slider,
.ag-theme-quartz-auto-dark .ag-spectrum-slider {
  margin-top: -15px;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  border: 3px solid rgb(248, 248, 248);
}
.ag-theme-quartz .ag-recent-colors,
.ag-theme-quartz-dark .ag-recent-colors,
.ag-theme-quartz-auto-dark .ag-recent-colors {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  margin-bottom: 2px;
}
.ag-theme-quartz .ag-color-input-color,
.ag-theme-quartz .ag-color-picker-color,
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-color-input-color,
.ag-theme-quartz-dark .ag-color-picker-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-color-input-color,
.ag-theme-quartz-auto-dark .ag-color-picker-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border-radius: 4px;
}
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz.ag-dnd-ghost,
.ag-theme-quartz-dark.ag-dnd-ghost,
.ag-theme-quartz-auto-dark.ag-dnd-ghost {
  font-weight: 500;
}
.ag-theme-quartz .ag-standard-button,
.ag-theme-quartz-dark .ag-standard-button,
.ag-theme-quartz-auto-dark .ag-standard-button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: solid 1px var(--ag-input-border-color);
  background-color: var(--ag-background-color);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  cursor: pointer;
}
.ag-theme-quartz .ag-standard-button:hover,
.ag-theme-quartz-dark .ag-standard-button:hover,
.ag-theme-quartz-auto-dark .ag-standard-button:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-theme-quartz .ag-standard-button:active,
.ag-theme-quartz-dark .ag-standard-button:active,
.ag-theme-quartz-auto-dark .ag-standard-button:active {
  border-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-standard-button:disabled,
.ag-theme-quartz-dark .ag-standard-button:disabled,
.ag-theme-quartz-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-quartz .ag-column-drop-cell,
.ag-theme-quartz-dark .ag-column-drop-cell,
.ag-theme-quartz-auto-dark .ag-column-drop-cell {
  border-radius: calc(var(--ag-grid-size) * 3);
  height: calc(var(--ag-grid-size) * 3);
  padding: 0 var(--ag-grid-size);
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  min-width: 0;
  margin: 0;
}
.ag-theme-quartz .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-dark .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-drag-handle {
  margin-left: 0;
}
.ag-theme-quartz .ag-column-drop-vertical,
.ag-theme-quartz-dark .ag-column-drop-vertical,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-quartz .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-dark .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-title-bar {
  padding: var(--ag-widget-container-vertical-padding) calc(var(--ag-grid-size) * 2) 0;
}
.ag-theme-quartz .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-drop-vertical-icon {
  margin-left: 0;
  margin-right: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-drop-vertical-icon {
  margin-right: 0;
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-dark .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  justify-content: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 1.5) calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-column-drop-empty-message,
.ag-theme-quartz-dark .ag-column-drop-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
}
.ag-theme-quartz .ag-pill-select .ag-column-drop,
.ag-theme-quartz-dark .ag-pill-select .ag-column-drop,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-column-drop {
  min-height: unset;
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-display {
  font-weight: 500;
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-icon .ag-icon {
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-quartz .ag-status-name-value,
.ag-theme-quartz-dark .ag-status-name-value,
.ag-theme-quartz-auto-dark .ag-status-name-value {
  padding: var(--ag-widget-container-vertical-padding) 0;
}
.ag-theme-quartz .ag-status-name-value-value,
.ag-theme-quartz .ag-paging-number,
.ag-theme-quartz .ag-paging-row-summary-panel-number,
.ag-theme-quartz-dark .ag-status-name-value-value,
.ag-theme-quartz-dark .ag-paging-number,
.ag-theme-quartz-dark .ag-paging-row-summary-panel-number,
.ag-theme-quartz-auto-dark .ag-status-name-value-value,
.ag-theme-quartz-auto-dark .ag-paging-number,
.ag-theme-quartz-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 500;
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  opacity: 0.75;
}
.ag-theme-quartz .ag-column-drop-cell-button:hover,
.ag-theme-quartz-dark .ag-column-drop-cell-button:hover,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 1;
}
.ag-theme-quartz .ag-header-cell-menu-button,
.ag-theme-quartz .ag-header-cell-filter-button,
.ag-theme-quartz .ag-panel-title-bar-button,
.ag-theme-quartz .ag-header-expand-icon,
.ag-theme-quartz .ag-column-group-icons,
.ag-theme-quartz .ag-set-filter-group-icons,
.ag-theme-quartz .ag-group-expanded .ag-icon,
.ag-theme-quartz .ag-group-contracted .ag-icon,
.ag-theme-quartz .ag-chart-settings-prev,
.ag-theme-quartz .ag-chart-settings-next,
.ag-theme-quartz .ag-group-title-bar-icon,
.ag-theme-quartz .ag-column-select-header-icon,
.ag-theme-quartz .ag-floating-filter-button-button,
.ag-theme-quartz .ag-filter-toolpanel-expand,
.ag-theme-quartz .ag-panel-title-bar-button-icon,
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-header-cell-menu-button,
.ag-theme-quartz-dark .ag-header-cell-filter-button,
.ag-theme-quartz-dark .ag-panel-title-bar-button,
.ag-theme-quartz-dark .ag-header-expand-icon,
.ag-theme-quartz-dark .ag-column-group-icons,
.ag-theme-quartz-dark .ag-set-filter-group-icons,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-dark .ag-chart-settings-prev,
.ag-theme-quartz-dark .ag-chart-settings-next,
.ag-theme-quartz-dark .ag-group-title-bar-icon,
.ag-theme-quartz-dark .ag-column-select-header-icon,
.ag-theme-quartz-dark .ag-floating-filter-button-button,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button,
.ag-theme-quartz-auto-dark .ag-header-expand-icon,
.ag-theme-quartz-auto-dark .ag-column-group-icons,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev,
.ag-theme-quartz-auto-dark .ag-chart-settings-next,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
}
.ag-theme-quartz .ag-header-cell-menu-button:hover,
.ag-theme-quartz .ag-header-cell-filter-button:hover,
.ag-theme-quartz .ag-panel-title-bar-button:hover,
.ag-theme-quartz .ag-header-expand-icon:hover,
.ag-theme-quartz .ag-column-group-icons:hover,
.ag-theme-quartz .ag-set-filter-group-icons:hover,
.ag-theme-quartz .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz .ag-chart-settings-prev:hover,
.ag-theme-quartz .ag-chart-settings-next:hover,
.ag-theme-quartz .ag-group-title-bar-icon:hover,
.ag-theme-quartz .ag-column-select-header-icon:hover,
.ag-theme-quartz .ag-floating-filter-button-button:hover,
.ag-theme-quartz .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz .ag-chart-menu-icon:hover,
.ag-theme-quartz-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-dark .ag-column-group-icons:hover,
.ag-theme-quartz-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-dark .ag-chart-menu-icon:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-auto-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon:hover {
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-hover-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-hover-color);
}
.ag-theme-quartz .ag-filter-active,
.ag-theme-quartz-dark .ag-filter-active,
.ag-theme-quartz-auto-dark .ag-filter-active {
  --ag-quartz-icon-active-color: color-mix(in srgb, transparent, var(--ag-active-color) 14%);
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 28%);
  position: relative;
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-active-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-active-color);
}
.ag-theme-quartz .ag-filter-active::after,
.ag-theme-quartz-dark .ag-filter-active::after,
.ag-theme-quartz-auto-dark .ag-filter-active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: -1px;
  right: -1px;
  border-radius: 50%;
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-dark .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-auto-dark .ag-filter-active .ag-icon-filter {
  clip-path: path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");
}
.ag-theme-quartz .ag-chart-menu,
.ag-theme-quartz-dark .ag-chart-menu,
.ag-theme-quartz-auto-dark .ag-chart-menu {
  --ag-icon-size: 20px;
  background-color: color-mix(in srgb, transparent, var(--ag-background-color) 30%);
  padding: 4px 2px;
}
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  opacity: 0.8;
}
.ag-theme-quartz .ag-drag-handle,
.ag-theme-quartz-dark .ag-drag-handle,
.ag-theme-quartz-auto-dark .ag-drag-handle {
  color: var(--ag-icon-font-color);
}
.ag-theme-quartz .ag-menu-option-icon,
.ag-theme-quartz .ag-compact-menu-option-icon,
.ag-theme-quartz-dark .ag-menu-option-icon,
.ag-theme-quartz-dark .ag-compact-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-icon, .ag-theme-quartz .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-menu-option-icon, .ag-theme-quartz .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-quartz .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 1.5) var(--ag-grid-size);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-body {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-body {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-level-0 {
  border-top: none;
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header {
  height: initial;
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-theme-quartz .ag-filter-toolpanel-group-item,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-item,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-item {
  margin: 0;
}
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-quartz .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-advanced-filter-builder-button,
.ag-theme-quartz-dark .ag-advanced-filter-builder-button,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-quartz .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz .ag-disabled .ag-icon,
.ag-theme-quartz .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz [disabled] .ag-icon,
.ag-theme-quartz-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-dark .ag-disabled .ag-icon,
.ag-theme-quartz-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-dark [disabled] .ag-icon,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-auto-dark [disabled] .ag-icon {
  opacity: 0.6;
}
.ag-theme-quartz .ag-icon-grip,
.ag-theme-quartz-dark .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-icon-grip {
  opacity: 0.7;
}
.ag-theme-quartz .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-quartz .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-filter .ag-input-wrapper::before {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(`+h+`);
  background-position: 50% 50%;
  background-size: contain;
  opacity: 40%;
  content: "";
  filter: var(--ag-icon-filter);
}
.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-number-field-input {
  padding-left: 26px;
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-number-field-input {
  padding-right: 26px;
}

.ag-theme-quartz .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-text-field-input[disabled],
.ag-theme-quartz .ag-menu-option-disabled,
.ag-theme-quartz-dark .ag-text-field-input[disabled],
.ag-theme-quartz-dark .ag-menu-option-disabled,
.ag-theme-quartz-auto-dark .ag-text-field-input[disabled],
.ag-theme-quartz-auto-dark .ag-menu-option-disabled {
  cursor: not-allowed;
}
.ag-theme-quartz .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-auto-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled {
  --ag-checkbox-checked-color: var(--ag-checkbox-unchecked-color);
}
.ag-theme-quartz .ag-checkbox-input,
.ag-theme-quartz .ag-toggle-button-input,
.ag-theme-quartz .ag-radio-button-input,
.ag-theme-quartz input[class^=ag-][type=range],
.ag-theme-quartz-dark .ag-checkbox-input,
.ag-theme-quartz-dark .ag-toggle-button-input,
.ag-theme-quartz-dark .ag-radio-button-input,
.ag-theme-quartz-dark input[class^=ag-][type=range],
.ag-theme-quartz-auto-dark .ag-checkbox-input,
.ag-theme-quartz-auto-dark .ag-toggle-button-input,
.ag-theme-quartz-auto-dark .ag-radio-button-input,
.ag-theme-quartz-auto-dark input[class^=ag-][type=range] {
  cursor: pointer;
}
.ag-theme-quartz .ag-details-row,
.ag-theme-quartz-dark .ag-details-row,
.ag-theme-quartz-auto-dark .ag-details-row {
  padding: calc(var(--ag-grid-size) * 3.75);
}
.ag-theme-quartz .ag-list-item-hovered::after,
.ag-theme-quartz-dark .ag-list-item-hovered::after,
.ag-theme-quartz-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-dark .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-active-color);
}
.ag-theme-quartz .ag-header-highlight-before::after,
.ag-theme-quartz .ag-header-highlight-after::after,
.ag-theme-quartz-dark .ag-header-highlight-before::after,
.ag-theme-quartz-dark .ag-header-highlight-after::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-before::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-active-color);
}

.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before {
  opacity: 66%;
  filter: invert(100%);
}
.ag-theme-quartz-dark .ag-chart-menu {
  background-color: color-mix(in srgb, rgba(24, 39, 50, 0.3), var(--ag-background-color) 30%);
}
.ag-theme-quartz-dark .ag-text-field-input::placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
`,""]),p.A=c},1123:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=A(62),d=A.n(C),s=new URL(A(2006),A.b),c=new URL(A(7249),A.b),h=b()(z()),g=d()(s),f=d()(c);h.push([x.id,`@font-face {
  font-family: "agGridQuartz";
  src: url(`+g+`);
  font-weight: normal;
  font-style: normal;
}
.ag-theme-quartz,
.ag-theme-quartz-dark,
.ag-theme-quartz-auto-dark {
  --ag-active-color: #2196f3;
  --ag-background-color: #fff;
  --ag-foreground-color: #181d1f;
  --ag-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 15%);
  --ag-secondary-border-color: var(--ag-border-color);
  --ag-header-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 2%);
  --ag-tooltip-background-color: var(--ag-header-background-color);
  --ag-control-panel-background-color: var(--ag-header-background-color);
  --ag-subheader-background-color: transparent;
  --ag-invalid-color: #e02525;
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 30%);
  --ag-advanced-filter-join-pill-color: #f08e8d;
  --ag-advanced-filter-column-pill-color: #a6e194;
  --ag-advanced-filter-option-pill-color: #f3c08b;
  --ag-advanced-filter-value-pill-color: #85c0e4;
  --ag-header-column-resize-handle-color: var(--ag-secondary-border-color);
  --ag-icon-font-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 90%);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);
  --ag-selected-row-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 8%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 12%);
  --ag-column-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
  --ag-input-focus-border-color: var(--ag-active-color);
  --ag-input-focus-box-shadow: 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color) 47%);
  --ag-range-selection-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-range-selection-background-color-2: color-mix(in srgb, transparent, var(--ag-active-color) 36%);
  --ag-range-selection-background-color-3: color-mix(in srgb, transparent, var(--ag-active-color) 49%);
  --ag-range-selection-background-color-4: color-mix(in srgb, transparent, var(--ag-active-color) 59%);
  --ag-checkbox-background-color: var(--ag-background-color);
  --ag-checkbox-checked-color: var(--ag-active-color);
  --ag-range-selection-border-color: var(--ag-active-color);
  --ag-secondary-foreground-color: var(--ag-foreground-color);
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-border-color-invalid: var(--ag-invalid-color);
  --ag-disabled-foreground-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 50%);
  --ag-chip-background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 7%);
  --ag-chip-border-color: color-mix(in srgb, var(--ag-header-background-color), var(--ag-foreground-color) 13%);
  --ag-input-disabled-border-color: var(--ag-border-color);
  --ag-input-disabled-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 6%);
  --ag-modal-overlay-background-color: color-mix(in srgb, transparent, var(--ag-background-color) 66%);
  --ag-chart-menu-label-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 80%);
  --ag-chart-menu-pill-select-button-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 70%);
  --ag-borders: solid 1px;
  --ag-border-radius: 4px;
  --ag-wrapper-border-radius: 8px;
  --ag-borders-side-button: none;
  --ag-side-button-selected-background-color: transparent;
  --ag-header-column-resize-handle-display: block;
  --ag-header-column-resize-handle-width: 2px;
  --ag-header-column-resize-handle-height: 30%;
  --ag-grid-size: 8px;
  --ag-icon-size: 16px;
  --ag-header-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 4.25);
  --ag-row-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 3.5);
  --ag-list-item-height: calc(
      var(--ag-icon-size) + var(--ag-widget-vertical-spacing)
  );
  --ag-column-select-indent-size: var(--ag-icon-size);
  --ag-set-filter-indent-size: var(--ag-icon-size);
  --ag-filter-tool-panel-group-indent: var(--ag-grid-size);
  --ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  --ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 2);
  --ag-cell-widget-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 1.5);
  --ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1);
  --ag-toggle-button-height: 18px;
  --ag-toggle-button-width: 28px;
  --ag-toggle-button-border-width: 2px;
  --ag-font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
      Cantarell, "Helvetica Neue", sans-serif;
  --ag-font-size: 14px;
  --ag-icon-font-family: agGridQuartz;
  --ag-tab-min-width: 290px;
  --ag-chart-menu-panel-width: 260px;
  --ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
  --ag-popup-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.15);
  --ag-side-bar-panel-width: 250px;
}

.ag-theme-quartz-dark {
  --ag-background-color: color-mix(in srgb, #fff, #182230 97%);
  --ag-foreground-color: #fff;
  --ag-border-color: rgba(255, 255, 255, 0.16);
  --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-header-background-color: color-mix(in srgb, #fff, #182230 93%);
  --ag-tooltip-background-color: color-mix(in srgb, #fff, #182230 96%);
  --ag-control-panel-background-color: color-mix(in srgb, #fff, #182230 93%);
  --ag-input-disabled-background-color: #68686e12;
  --ag-card-shadow: 0 1px 20px 1px black;
  --ag-input-border-color: var(--ag-border-color);
  --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
  --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
  --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
  --ag-selected-row-background-color: var(--ag-row-hover-color);
  --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
  --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
  --ag-advanced-filter-join-pill-color: #7a3a37;
  --ag-advanced-filter-column-pill-color: #355f2d;
  --ag-advanced-filter-option-pill-color: #5a3168;
  --ag-advanced-filter-value-pill-color: #374c86;
  --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
  --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  .ag-theme-quartz-auto-dark {
    --ag-background-color: color-mix(in srgb, #fff, #182230 97%);
    --ag-foreground-color: #fff;
    --ag-border-color: rgba(255, 255, 255, 0.16);
    --ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-header-background-color: color-mix(in srgb, #fff, #182230 93%);
    --ag-tooltip-background-color: color-mix(in srgb, #fff, #182230 96%);
    --ag-control-panel-background-color: color-mix(in srgb, #fff, #182230 93%);
    --ag-input-disabled-background-color: #68686e12;
    --ag-card-shadow: 0 1px 20px 1px black;
    --ag-input-border-color: var(--ag-border-color);
    --ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);
    --ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);
    --ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);
    --ag-selected-row-background-color: var(--ag-row-hover-color);
    --ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);
    --ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
    --ag-advanced-filter-join-pill-color: #7a3a37;
    --ag-advanced-filter-column-pill-color: #355f2d;
    --ag-advanced-filter-option-pill-color: #5a3168;
    --ag-advanced-filter-value-pill-color: #374c86;
    --ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);
    --ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);
    color-scheme: dark;
  }
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz .ag-header-row,
.ag-theme-quartz .ag-panel-title-bar-title,
.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-dark .ag-header-row,
.ag-theme-quartz-dark .ag-panel-title-bar-title,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-header-row,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-title,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  font-weight: 500;
  color: var(--ag-header-foreground-color);
}
.ag-theme-quartz input[class^=ag-]:not([type]),
.ag-theme-quartz input[class^=ag-][type=text],
.ag-theme-quartz input[class^=ag-][type=number],
.ag-theme-quartz input[class^=ag-][type=tel],
.ag-theme-quartz input[class^=ag-][type=date],
.ag-theme-quartz input[class^=ag-][type=datetime-local],
.ag-theme-quartz textarea[class^=ag-],
.ag-theme-quartz-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-dark input[class^=ag-][type=text],
.ag-theme-quartz-dark input[class^=ag-][type=number],
.ag-theme-quartz-dark input[class^=ag-][type=tel],
.ag-theme-quartz-dark input[class^=ag-][type=date],
.ag-theme-quartz-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-dark textarea[class^=ag-],
.ag-theme-quartz-auto-dark input[class^=ag-]:not([type]),
.ag-theme-quartz-auto-dark input[class^=ag-][type=text],
.ag-theme-quartz-auto-dark input[class^=ag-][type=number],
.ag-theme-quartz-auto-dark input[class^=ag-][type=tel],
.ag-theme-quartz-auto-dark input[class^=ag-][type=date],
.ag-theme-quartz-auto-dark input[class^=ag-][type=datetime-local],
.ag-theme-quartz-auto-dark textarea[class^=ag-] {
  min-height: calc(var(--ag-grid-size) * 4);
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-ltr textarea[class^=ag-], .ag-theme-quartz-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-ltr textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-ltr textarea[class^=ag-] {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz .ag-rtl textarea[class^=ag-], .ag-theme-quartz-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-dark .ag-rtl textarea[class^=ag-], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-quartz-auto-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-quartz-auto-dark .ag-rtl textarea[class^=ag-] {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-picker-field-wrapper,
.ag-theme-quartz-dark .ag-picker-field-wrapper,
.ag-theme-quartz-auto-dark .ag-picker-field-wrapper {
  min-height: calc(var(--ag-grid-size) * 4);
}
.ag-theme-quartz .ag-tab,
.ag-theme-quartz-dark .ag-tab,
.ag-theme-quartz-auto-dark .ag-tab {
  padding: var(--ag-grid-size);
  border-left: var(--ag-borders) transparent;
  border-right: var(--ag-borders) transparent;
  flex: 1 1 auto;
}
.ag-theme-quartz .ag-tab-selected,
.ag-theme-quartz-dark .ag-tab-selected,
.ag-theme-quartz-auto-dark .ag-tab-selected {
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:first-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:first-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:first-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:last-of-type) {
  border-right-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:last-of-type), .ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:last-of-type) {
  border-left-color: var(--ag-border-color);
}

.ag-theme-quartz .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected),
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected) {
  opacity: 0.7;
}
.ag-theme-quartz .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected):hover,
.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected):hover {
  opacity: 1;
}
.ag-theme-quartz .ag-menu,
.ag-theme-quartz-dark .ag-menu,
.ag-theme-quartz-auto-dark .ag-menu {
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-dark .ag-panel-content-wrapper .ag-column-select,
.ag-theme-quartz-auto-dark .ag-panel-content-wrapper .ag-column-select {
  background-color: var(--ag-control-panel-background-color);
  color: color-mix(in srgb, transparent, var(--ag-foreground-color) 95%);
}
.ag-theme-quartz .ag-menu-header,
.ag-theme-quartz-dark .ag-menu-header,
.ag-theme-quartz-auto-dark .ag-menu-header {
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-menu-option,
.ag-theme-quartz-dark .ag-menu-option,
.ag-theme-quartz-auto-dark .ag-menu-option {
  font-weight: 500;
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon {
  text-align: right;
}

.ag-theme-quartz .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon {
  text-align: left;
}

.ag-theme-quartz .ag-tabs-header,
.ag-theme-quartz-dark .ag-tabs-header,
.ag-theme-quartz-auto-dark .ag-tabs-header {
  border-bottom: var(--ag-borders) var(--ag-border-color);
  display: flex;
  background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);
}
.ag-theme-quartz .ag-side-bar,
.ag-theme-quartz-dark .ag-side-bar,
.ag-theme-quartz-auto-dark .ag-side-bar {
  background-color: var(--ag-control-panel-background-color);
  min-width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-side-buttons,
.ag-theme-quartz-dark .ag-side-buttons,
.ag-theme-quartz-auto-dark .ag-side-buttons {
  padding: 0;
  align-self: stretch;
  width: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);
  background: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-side-button,
.ag-theme-quartz-dark .ag-side-button,
.ag-theme-quartz-auto-dark .ag-side-button {
  border-top: var(--ag-borders) transparent;
  border-bottom: var(--ag-borders) transparent;
}
@media (max-resolution: 1.5x) {
  .ag-theme-quartz .ag-side-button-label,
  .ag-theme-quartz-dark .ag-side-button-label,
  .ag-theme-quartz-auto-dark .ag-side-button-label {
    font-family: "Segoe UI", var(--ag-font-family);
    transform: rotate(0.05deg);
  }
}
.ag-theme-quartz .ag-side-button.ag-selected,
.ag-theme-quartz-dark .ag-side-button.ag-selected,
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected {
  border-bottom-color: var(--ag-border-color);
  background-color: var(--ag-background-color);
}
.ag-theme-quartz .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-dark .ag-side-button.ag-selected:not(:first-of-type),
.ag-theme-quartz-auto-dark .ag-side-button.ag-selected:not(:first-of-type) {
  border-top-color: var(--ag-border-color);
}
.ag-theme-quartz .ag-column-panel-column-select,
.ag-theme-quartz-dark .ag-column-panel-column-select,
.ag-theme-quartz-auto-dark .ag-column-panel-column-select {
  border-top: none;
  border-bottom: 1px solid var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-filter-toolpanel-search,
.ag-theme-quartz-dark .ag-filter-toolpanel-search,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search {
  height: initial;
  margin-top: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-filter-toolpanel-search-input,
.ag-theme-quartz-dark .ag-filter-toolpanel-search-input,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search-input {
  margin: 0;
}
.ag-theme-quartz .ag-filter-apply-panel,
.ag-theme-quartz-dark .ag-filter-apply-panel,
.ag-theme-quartz-auto-dark .ag-filter-apply-panel {
  border: none;
  padding-top: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-tabbed-menu-body,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body {
  position: relative;
}
.ag-theme-quartz .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-dark .ag-chart-tabbed-menu-body::after,
.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body::after {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(var(--ag-control-panel-background-color), transparent);
}
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  border-top: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-mini-thumbnail,
.ag-theme-quartz-dark .ag-chart-mini-thumbnail,
.ag-theme-quartz-auto-dark .ag-chart-mini-thumbnail {
  background-color: var(--ag-background-color);
  margin-top: 0;
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-settings-nav-bar,
.ag-theme-quartz-dark .ag-chart-settings-nav-bar,
.ag-theme-quartz-auto-dark .ag-chart-settings-nav-bar {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  background: none;
  font-weight: 500;
}
.ag-theme-quartz .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar) {
  color: var(--ag-chart-menu-label-color);
}
.ag-theme-quartz .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label-align-top .ag-label {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 0.5);
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,
.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label {
  margin-bottom: 0;
}
.ag-theme-quartz .ag-chart-data-section label,
.ag-theme-quartz .ag-chart-format-section label,
.ag-theme-quartz-dark .ag-chart-data-section label,
.ag-theme-quartz-dark .ag-chart-format-section label,
.ag-theme-quartz-auto-dark .ag-chart-data-section label,
.ag-theme-quartz-auto-dark .ag-chart-format-section label {
  display: inline-block;
}
.ag-theme-quartz .ag-chart-format-wrapper,
.ag-theme-quartz .ag-chart-data-wrapper,
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-format-top-level-group-item,
.ag-theme-quartz .ag-charts-format-sub-level-group,
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-chart-format-wrapper,
.ag-theme-quartz-dark .ag-chart-data-wrapper,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-chart-format-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-data-wrapper,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-item:last-child,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-container {
  padding: 0;
  margin: 0;
}
.ag-theme-quartz .ag-charts-format-top-level-group,
.ag-theme-quartz .ag-charts-data-group,
.ag-theme-quartz-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-dark .ag-charts-data-group,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,
.ag-theme-quartz-auto-dark .ag-charts-data-group {
  border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-data-group-title-bar,
.ag-theme-quartz .ag-charts-settings-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar {
  padding: var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-dark .ag-charts-settings-group .ag-charts-settings-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-data-group .ag-charts-data-group-container,
.ag-theme-quartz-auto-dark .ag-charts-settings-group .ag-charts-settings-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar {
  padding: var(--ag-widget-vertical-spacing) 0;
}
.ag-theme-quartz .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container {
  padding-top: var(--ag-widget-vertical-spacing);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-container > *,
.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container > * {
  margin-bottom: var(--ag-widget-vertical-spacing);
}
.ag-theme-quartz .ag-charts-data-group-item,
.ag-theme-quartz-dark .ag-charts-data-group-item,
.ag-theme-quartz-auto-dark .ag-charts-data-group-item {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-dark .ag-chart-settings-mini-wrapper,
.ag-theme-quartz-auto-dark .ag-chart-settings-mini-wrapper {
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-chart-advanced-settings-section,
.ag-theme-quartz-dark .ag-chart-advanced-settings-section,
.ag-theme-quartz-auto-dark .ag-chart-advanced-settings-section {
  padding-top: var(--ag-widget-container-vertical-padding);
  padding-bottom: var(--ag-widget-container-vertical-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container {
  padding: 0 var(--ag-widget-container-horizontal-padding);
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-container,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-container {
  margin: 0;
}
.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-item,
.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-item {
  margin-top: calc(var(--ag-widget-vertical-spacing) * 2);
  margin-bottom: 0;
}
.ag-theme-quartz .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-ltr .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-group-title-bar-icon {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-dark .ag-rtl .ag-group-title-bar-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-group-title-bar-icon {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-spectrum-color,
.ag-theme-quartz .ag-spectrum-fill,
.ag-theme-quartz-dark .ag-spectrum-color,
.ag-theme-quartz-dark .ag-spectrum-fill,
.ag-theme-quartz-auto-dark .ag-spectrum-color,
.ag-theme-quartz-auto-dark .ag-spectrum-fill {
  border-radius: var(--ag-border-radius);
}
.ag-theme-quartz .ag-spectrum-dragger,
.ag-theme-quartz-dark .ag-spectrum-dragger,
.ag-theme-quartz-auto-dark .ag-spectrum-dragger {
  border-radius: 18px;
  height: 18px;
  width: 18px;
  border: 3px solid white;
}
.ag-theme-quartz .ag-spectrum-tools,
.ag-theme-quartz-dark .ag-spectrum-tools,
.ag-theme-quartz-auto-dark .ag-spectrum-tools {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.ag-theme-quartz .ag-spectrum-tool,
.ag-theme-quartz-dark .ag-spectrum-tool,
.ag-theme-quartz-auto-dark .ag-spectrum-tool {
  height: 12px;
}
.ag-theme-quartz .ag-spectrum-hue-background,
.ag-theme-quartz .ag-spectrum-alpha-background,
.ag-theme-quartz-dark .ag-spectrum-hue-background,
.ag-theme-quartz-dark .ag-spectrum-alpha-background,
.ag-theme-quartz-auto-dark .ag-spectrum-hue-background,
.ag-theme-quartz-auto-dark .ag-spectrum-alpha-background {
  border-radius: 12px;
}
.ag-theme-quartz .ag-spectrum-slider,
.ag-theme-quartz-dark .ag-spectrum-slider,
.ag-theme-quartz-auto-dark .ag-spectrum-slider {
  margin-top: -15px;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  border: 3px solid rgb(248, 248, 248);
}
.ag-theme-quartz .ag-recent-colors,
.ag-theme-quartz-dark .ag-recent-colors,
.ag-theme-quartz-auto-dark .ag-recent-colors {
  margin-left: var(--ag-grid-size);
  margin-right: var(--ag-grid-size);
  margin-bottom: 2px;
}
.ag-theme-quartz .ag-color-input-color,
.ag-theme-quartz .ag-color-picker-color,
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-color-input-color,
.ag-theme-quartz-dark .ag-color-picker-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-color-input-color,
.ag-theme-quartz-auto-dark .ag-color-picker-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border-radius: 4px;
}
.ag-theme-quartz .ag-recent-color,
.ag-theme-quartz-dark .ag-recent-color,
.ag-theme-quartz-auto-dark .ag-recent-color {
  border: var(--ag-borders-secondary) var(--ag-secondary-border-color);
}
.ag-theme-quartz.ag-dnd-ghost,
.ag-theme-quartz-dark.ag-dnd-ghost,
.ag-theme-quartz-auto-dark.ag-dnd-ghost {
  font-weight: 500;
}
.ag-theme-quartz .ag-standard-button,
.ag-theme-quartz-dark .ag-standard-button,
.ag-theme-quartz-auto-dark .ag-standard-button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--ag-border-radius);
  border: solid 1px var(--ag-input-border-color);
  background-color: var(--ag-background-color);
  padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
  cursor: pointer;
}
.ag-theme-quartz .ag-standard-button:hover,
.ag-theme-quartz-dark .ag-standard-button:hover,
.ag-theme-quartz-auto-dark .ag-standard-button:hover {
  background-color: var(--ag-row-hover-color);
}
.ag-theme-quartz .ag-standard-button:active,
.ag-theme-quartz-dark .ag-standard-button:active,
.ag-theme-quartz-auto-dark .ag-standard-button:active {
  border-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-standard-button:disabled,
.ag-theme-quartz-dark .ag-standard-button:disabled,
.ag-theme-quartz-auto-dark .ag-standard-button:disabled {
  color: var(--ag-disabled-foreground-color);
  background-color: var(--ag-input-disabled-background-color);
  border-color: var(--ag-input-disabled-border-color);
}
.ag-theme-quartz .ag-column-drop-cell,
.ag-theme-quartz-dark .ag-column-drop-cell,
.ag-theme-quartz-auto-dark .ag-column-drop-cell {
  border-radius: calc(var(--ag-grid-size) * 3);
  height: calc(var(--ag-grid-size) * 3);
  padding: 0 var(--ag-grid-size);
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  min-width: 0;
  margin: 0;
}
.ag-theme-quartz .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-dark .ag-column-drop-cell-drag-handle,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-drag-handle {
  margin-left: 0;
}
.ag-theme-quartz .ag-column-drop-vertical,
.ag-theme-quartz-dark .ag-column-drop-vertical,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical {
  min-height: 75px;
}
.ag-theme-quartz .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-dark .ag-column-drop-vertical-title-bar,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-title-bar {
  padding: var(--ag-widget-container-vertical-padding) calc(var(--ag-grid-size) * 2) 0;
}
.ag-theme-quartz .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-ltr .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-drop-vertical-icon {
  margin-left: 0;
  margin-right: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-dark .ag-rtl .ag-column-drop-vertical-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-drop-vertical-icon {
  margin-right: 0;
  margin-left: var(--ag-widget-horizontal-spacing);
}

.ag-theme-quartz .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-dark .ag-column-drop-vertical-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-vertical-empty-message {
  display: flex;
  align-items: center;
  justify-content: center;
  border: dashed 1px;
  border-color: var(--ag-border-color);
  margin: calc(var(--ag-grid-size) * 1.5) calc(var(--ag-grid-size) * 2);
  padding: calc(var(--ag-grid-size) * 2);
}
.ag-theme-quartz .ag-column-drop-empty-message,
.ag-theme-quartz-dark .ag-column-drop-empty-message,
.ag-theme-quartz-auto-dark .ag-column-drop-empty-message {
  color: var(--ag-foreground-color);
}
.ag-theme-quartz .ag-pill-select .ag-column-drop,
.ag-theme-quartz-dark .ag-pill-select .ag-column-drop,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-column-drop {
  min-height: unset;
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-display,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-display {
  font-weight: 500;
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-icon .ag-icon,
.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-icon .ag-icon {
  color: var(--ag-chart-menu-pill-select-button-color);
}
.ag-theme-quartz .ag-status-bar,
.ag-theme-quartz-dark .ag-status-bar,
.ag-theme-quartz-auto-dark .ag-status-bar {
  font-weight: normal;
}
.ag-theme-quartz .ag-status-name-value,
.ag-theme-quartz-dark .ag-status-name-value,
.ag-theme-quartz-auto-dark .ag-status-name-value {
  padding: var(--ag-widget-container-vertical-padding) 0;
}
.ag-theme-quartz .ag-status-name-value-value,
.ag-theme-quartz .ag-paging-number,
.ag-theme-quartz .ag-paging-row-summary-panel-number,
.ag-theme-quartz-dark .ag-status-name-value-value,
.ag-theme-quartz-dark .ag-paging-number,
.ag-theme-quartz-dark .ag-paging-row-summary-panel-number,
.ag-theme-quartz-auto-dark .ag-status-name-value-value,
.ag-theme-quartz-auto-dark .ag-paging-number,
.ag-theme-quartz-auto-dark .ag-paging-row-summary-panel-number {
  font-weight: 500;
}
.ag-theme-quartz .ag-column-drop-cell-button,
.ag-theme-quartz-dark .ag-column-drop-cell-button,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button {
  opacity: 0.75;
}
.ag-theme-quartz .ag-column-drop-cell-button:hover,
.ag-theme-quartz-dark .ag-column-drop-cell-button:hover,
.ag-theme-quartz-auto-dark .ag-column-drop-cell-button:hover {
  opacity: 1;
}
.ag-theme-quartz .ag-header-cell-menu-button,
.ag-theme-quartz .ag-header-cell-filter-button,
.ag-theme-quartz .ag-panel-title-bar-button,
.ag-theme-quartz .ag-header-expand-icon,
.ag-theme-quartz .ag-column-group-icons,
.ag-theme-quartz .ag-set-filter-group-icons,
.ag-theme-quartz .ag-group-expanded .ag-icon,
.ag-theme-quartz .ag-group-contracted .ag-icon,
.ag-theme-quartz .ag-chart-settings-prev,
.ag-theme-quartz .ag-chart-settings-next,
.ag-theme-quartz .ag-group-title-bar-icon,
.ag-theme-quartz .ag-column-select-header-icon,
.ag-theme-quartz .ag-floating-filter-button-button,
.ag-theme-quartz .ag-filter-toolpanel-expand,
.ag-theme-quartz .ag-panel-title-bar-button-icon,
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-header-cell-menu-button,
.ag-theme-quartz-dark .ag-header-cell-filter-button,
.ag-theme-quartz-dark .ag-panel-title-bar-button,
.ag-theme-quartz-dark .ag-header-expand-icon,
.ag-theme-quartz-dark .ag-column-group-icons,
.ag-theme-quartz-dark .ag-set-filter-group-icons,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-dark .ag-chart-settings-prev,
.ag-theme-quartz-dark .ag-chart-settings-next,
.ag-theme-quartz-dark .ag-group-title-bar-icon,
.ag-theme-quartz-dark .ag-column-select-header-icon,
.ag-theme-quartz-dark .ag-floating-filter-button-button,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button,
.ag-theme-quartz-auto-dark .ag-header-expand-icon,
.ag-theme-quartz-auto-dark .ag-column-group-icons,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev,
.ag-theme-quartz-auto-dark .ag-chart-settings-next,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);
}
.ag-theme-quartz .ag-header-cell-menu-button:hover,
.ag-theme-quartz .ag-header-cell-filter-button:hover,
.ag-theme-quartz .ag-panel-title-bar-button:hover,
.ag-theme-quartz .ag-header-expand-icon:hover,
.ag-theme-quartz .ag-column-group-icons:hover,
.ag-theme-quartz .ag-set-filter-group-icons:hover,
.ag-theme-quartz .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz .ag-chart-settings-prev:hover,
.ag-theme-quartz .ag-chart-settings-next:hover,
.ag-theme-quartz .ag-group-title-bar-icon:hover,
.ag-theme-quartz .ag-column-select-header-icon:hover,
.ag-theme-quartz .ag-floating-filter-button-button:hover,
.ag-theme-quartz .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz .ag-chart-menu-icon:hover,
.ag-theme-quartz-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-dark .ag-column-group-icons:hover,
.ag-theme-quartz-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-dark .ag-chart-menu-icon:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-menu-button:hover,
.ag-theme-quartz-auto-dark .ag-header-cell-filter-button:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button:hover,
.ag-theme-quartz-auto-dark .ag-header-expand-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-set-filter-group-icons:hover,
.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-prev:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-next:hover,
.ag-theme-quartz-auto-dark .ag-group-title-bar-icon:hover,
.ag-theme-quartz-auto-dark .ag-column-select-header-icon:hover,
.ag-theme-quartz-auto-dark .ag-floating-filter-button-button:hover,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand:hover,
.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon:hover,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon:hover {
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-hover-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-hover-color);
}
.ag-theme-quartz .ag-filter-active,
.ag-theme-quartz-dark .ag-filter-active,
.ag-theme-quartz-auto-dark .ag-filter-active {
  --ag-quartz-icon-active-color: color-mix(in srgb, transparent, var(--ag-active-color) 14%);
  --ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 28%);
  position: relative;
  border-radius: 1px;
  background-color: var(--ag-quartz-icon-active-color);
  box-shadow: 0 0 0 4px var(--ag-quartz-icon-active-color);
}
.ag-theme-quartz .ag-filter-active::after,
.ag-theme-quartz-dark .ag-filter-active::after,
.ag-theme-quartz-auto-dark .ag-filter-active::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: -1px;
  right: -1px;
  border-radius: 50%;
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-dark .ag-filter-active .ag-icon-filter,
.ag-theme-quartz-auto-dark .ag-filter-active .ag-icon-filter {
  clip-path: path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");
}
.ag-theme-quartz .ag-chart-menu,
.ag-theme-quartz-dark .ag-chart-menu,
.ag-theme-quartz-auto-dark .ag-chart-menu {
  --ag-icon-size: 20px;
  background-color: color-mix(in srgb, transparent, var(--ag-background-color) 30%);
  padding: 4px 2px;
}
.ag-theme-quartz .ag-chart-menu-icon,
.ag-theme-quartz-dark .ag-chart-menu-icon,
.ag-theme-quartz-auto-dark .ag-chart-menu-icon {
  opacity: 0.8;
}
.ag-theme-quartz .ag-drag-handle,
.ag-theme-quartz-dark .ag-drag-handle,
.ag-theme-quartz-auto-dark .ag-drag-handle {
  color: var(--ag-icon-font-color);
}
.ag-theme-quartz .ag-menu-option-icon,
.ag-theme-quartz .ag-compact-menu-option-icon,
.ag-theme-quartz-dark .ag-menu-option-icon,
.ag-theme-quartz-dark .ag-compact-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-menu-option-icon,
.ag-theme-quartz-auto-dark .ag-compact-menu-option-icon {
  width: var(--ag-icon-size);
  cursor: pointer;
}
.ag-theme-quartz .ag-ltr .ag-menu-option-icon, .ag-theme-quartz .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-dark .ag-ltr .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-ltr .ag-compact-menu-option-icon {
  padding-left: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-menu-option-icon, .ag-theme-quartz .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-dark .ag-rtl .ag-compact-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-icon, .ag-theme-quartz-auto-dark .ag-rtl .ag-compact-menu-option-icon {
  padding-right: calc(var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-dark .ag-chart-settings-card-item.ag-not-selected:hover,
.ag-theme-quartz-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover {
  opacity: 0.35;
}
.ag-theme-quartz .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-ltr .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-ltr .ag-panel-title-bar-button {
  margin-left: calc(var(--ag-grid-size) * 2);
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-dark .ag-rtl .ag-panel-title-bar-button, .ag-theme-quartz-auto-dark .ag-rtl .ag-panel-title-bar-button {
  margin-right: calc(var(--ag-grid-size) * 2);
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-multi-filter-group-title-bar,
.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,
.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar {
  padding: calc(var(--ag-grid-size) * 1.5) var(--ag-grid-size);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-body {
  padding-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-body, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-body {
  padding-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-dark .ag-filter-toolpanel-instance-filter,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-instance-filter {
  border: none;
  background-color: var(--ag-control-panel-background-color);
}
.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter {
  margin-left: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-filter, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter {
  margin-right: calc(var(--ag-icon-size) * 0.5);
}

.ag-theme-quartz .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-level-0,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-level-0 {
  border-top: none;
}
.ag-theme-quartz .ag-filter-toolpanel-header,
.ag-theme-quartz-dark .ag-filter-toolpanel-header,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header {
  height: initial;
  padding-top: var(--ag-grid-size);
  padding-bottom: var(--ag-grid-size);
}
.ag-theme-quartz .ag-filter-toolpanel-group-item,
.ag-theme-quartz-dark .ag-filter-toolpanel-group-item,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-item {
  margin: 0;
}
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-dark .ag-layout-print .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-auto-height .ag-center-cols-container,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-viewport,
.ag-theme-quartz-auto-dark .ag-layout-print .ag-center-cols-container {
  min-height: 150px;
}
.ag-theme-quartz .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-dark .ag-date-time-list-page-entry-is-current,
.ag-theme-quartz-auto-dark .ag-date-time-list-page-entry-is-current {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-advanced-filter-builder-button,
.ag-theme-quartz-dark .ag-advanced-filter-builder-button,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-button {
  padding: var(--ag-grid-size);
  font-weight: 600;
}
.ag-theme-quartz .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz .ag-disabled .ag-icon,
.ag-theme-quartz .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz [disabled] .ag-icon,
.ag-theme-quartz-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-dark .ag-disabled .ag-icon,
.ag-theme-quartz-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-dark [disabled] .ag-icon,
.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-disabled .ag-icon,
.ag-theme-quartz-auto-dark .ag-column-select-column-group-readonly .ag-icon,
.ag-theme-quartz-auto-dark [disabled] .ag-icon {
  opacity: 0.6;
}
.ag-theme-quartz .ag-icon-grip,
.ag-theme-quartz-dark .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-icon-grip {
  opacity: 0.7;
}
.ag-theme-quartz .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-dark .ag-column-select-column-readonly .ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly.ag-icon-grip,
.ag-theme-quartz-auto-dark .ag-column-select-column-readonly .ag-icon-grip {
  opacity: 0.35;
}
.ag-theme-quartz .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-auto-dark .ag-filter-filter .ag-input-wrapper::before {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  background-image: url(`+f+`);
  background-position: 50% 50%;
  background-size: contain;
  opacity: 40%;
  content: "";
  filter: var(--ag-icon-filter);
}
.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter .ag-input-wrapper::before {
  margin-left: var(--ag-grid-size);
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter .ag-input-wrapper::before, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter .ag-input-wrapper::before {
  margin-right: var(--ag-grid-size);
}

.ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-ltr .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-ltr .ag-filter-filter input.ag-number-field-input {
  padding-left: 26px;
}

.ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-dark .ag-rtl .ag-filter-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-header-filter-wrapper input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-search input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-mini-filter input.ag-number-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-text-field-input, .ag-theme-quartz-auto-dark .ag-rtl .ag-filter-filter input.ag-number-field-input {
  padding-right: 26px;
}

.ag-theme-quartz .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-ltr .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-add-group-indent {
  margin-left: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-dark .ag-rtl .ag-column-select-add-group-indent, .ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-add-group-indent {
  margin-right: calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5);
}

.ag-theme-quartz .ag-text-field-input[disabled],
.ag-theme-quartz .ag-menu-option-disabled,
.ag-theme-quartz-dark .ag-text-field-input[disabled],
.ag-theme-quartz-dark .ag-menu-option-disabled,
.ag-theme-quartz-auto-dark .ag-text-field-input[disabled],
.ag-theme-quartz-auto-dark .ag-menu-option-disabled {
  cursor: not-allowed;
}
.ag-theme-quartz .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled,
.ag-theme-quartz-auto-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled {
  --ag-checkbox-checked-color: var(--ag-checkbox-unchecked-color);
}
.ag-theme-quartz .ag-checkbox-input,
.ag-theme-quartz .ag-toggle-button-input,
.ag-theme-quartz .ag-radio-button-input,
.ag-theme-quartz input[class^=ag-][type=range],
.ag-theme-quartz-dark .ag-checkbox-input,
.ag-theme-quartz-dark .ag-toggle-button-input,
.ag-theme-quartz-dark .ag-radio-button-input,
.ag-theme-quartz-dark input[class^=ag-][type=range],
.ag-theme-quartz-auto-dark .ag-checkbox-input,
.ag-theme-quartz-auto-dark .ag-toggle-button-input,
.ag-theme-quartz-auto-dark .ag-radio-button-input,
.ag-theme-quartz-auto-dark input[class^=ag-][type=range] {
  cursor: pointer;
}
.ag-theme-quartz .ag-details-row,
.ag-theme-quartz-dark .ag-details-row,
.ag-theme-quartz-auto-dark .ag-details-row {
  padding: calc(var(--ag-grid-size) * 3.75);
}
.ag-theme-quartz .ag-list-item-hovered::after,
.ag-theme-quartz-dark .ag-list-item-hovered::after,
.ag-theme-quartz-auto-dark .ag-list-item-hovered::after {
  background-color: var(--ag-active-color);
}
.ag-theme-quartz .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-dark .ag-pill .ag-pill-button:hover,
.ag-theme-quartz-auto-dark .ag-pill .ag-pill-button:hover {
  color: var(--ag-active-color);
}
.ag-theme-quartz .ag-header-highlight-before::after,
.ag-theme-quartz .ag-header-highlight-after::after,
.ag-theme-quartz-dark .ag-header-highlight-before::after,
.ag-theme-quartz-dark .ag-header-highlight-after::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-before::after,
.ag-theme-quartz-auto-dark .ag-header-highlight-after::after {
  background-color: var(--ag-active-color);
}

.ag-theme-quartz-dark .ag-column-select-header-filter-wrapper .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-toolpanel-search .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-mini-filter .ag-input-wrapper::before,
.ag-theme-quartz-dark .ag-filter-filter .ag-input-wrapper::before {
  opacity: 66%;
  filter: invert(100%);
}
.ag-theme-quartz-dark .ag-chart-menu {
  background-color: color-mix(in srgb, rgba(24, 39, 50, 0.3), var(--ag-background-color) 30%);
}
.ag-theme-quartz-dark .ag-text-field-input::placeholder {
  color: var(--ag-data-color);
  opacity: 0.8;
}
`,""]),p.A=h},6049:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=A(62),d=A.n(C),s=new URL(A(8430),A.b),c=b()(z()),h=d()(s);c.push([x.id,`@font-face {
  font-family: "agGridAlpine";
  src: url(`+h+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),p.A=c},1365:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=A(62),d=A.n(C),s=new URL(A(9377),A.b),c=b()(z()),h=d()(s);c.push([x.id,`@font-face {
  font-family: "agGridBalham";
  src: url(`+h+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),p.A=c},492:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=A(62),d=A.n(C),s=new URL(A(7738),A.b),c=b()(z()),h=d()(s);c.push([x.id,`@font-face {
  font-family: "agGridClassic";
  src: url(`+h+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),p.A=c},31:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=A(62),d=A.n(C),s=new URL(A(6055),A.b),c=b()(z()),h=d()(s);c.push([x.id,`@font-face {
  font-family: "agGridMaterial";
  src: url(`+h+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),p.A=c},2229:function(x,p,A){"use strict";var E=A(6758),z=A.n(E),T=A(935),b=A.n(T),C=A(62),d=A.n(C),s=new URL(A(2006),A.b),c=b()(z()),h=d()(s);c.push([x.id,`@font-face {
  font-family: "agGridQuartz";
  src: url(`+h+`);
  font-weight: normal;
  font-style: normal;
}
`,""]),p.A=c},935:function(x){"use strict";x.exports=function(p){var A=[];return A.toString=function(){return this.map(function(z){var T="",b=typeof z[5]!="undefined";return z[4]&&(T+="@supports (".concat(z[4],") {")),z[2]&&(T+="@media ".concat(z[2]," {")),b&&(T+="@layer".concat(z[5].length>0?" ".concat(z[5]):""," {")),T+=p(z),b&&(T+="}"),z[2]&&(T+="}"),z[4]&&(T+="}"),T}).join("")},A.i=function(z,T,b,C,d){typeof z=="string"&&(z=[[null,z,void 0]]);var s={};if(b)for(var c=0;c<this.length;c++){var h=this[c][0];h!=null&&(s[h]=!0)}for(var g=0;g<z.length;g++){var f=[].concat(z[g]);b&&s[f[0]]||(typeof d!="undefined"&&(typeof f[5]=="undefined"||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=d),T&&(f[2]&&(f[1]="@media ".concat(f[2]," {").concat(f[1],"}")),f[2]=T),C&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=C):f[4]="".concat(C)),A.push(f))}},A}},62:function(x){"use strict";x.exports=function(p,A){return A||(A={}),p&&(p=String(p.__esModule?p.default:p),/^['"].*['"]$/.test(p)&&(p=p.slice(1,-1)),A.hash&&(p+=A.hash),/["'() \t\n]|(%20)/.test(p)||A.needQuotes?'"'.concat(p.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):p)}},6758:function(x){"use strict";x.exports=function(p){return p[1]}},8510:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(2974),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},2685:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(1229),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},5151:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(3871),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},9681:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(8225),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},2883:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(5251),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},3543:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(4023),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},1109:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(3973),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},1601:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(145),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},8755:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(1123),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},3713:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(6049),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},9029:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(1365),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},7628:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(492),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},2559:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(31),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},9893:function(x,p,A){"use strict";A.r(p);var E=A(2591),z=A.n(E),T=A(1740),b=A.n(T),C=A(8128),d=A.n(C),s=A(8021),c=A.n(s),h=A(3051),g=A.n(h),f=A(3656),S=A.n(f),w=A(2229),M={attributes:{"data-ag-scope":"legacy"}};M.styleTagTransform=S(),M.setAttributes=c(),M.insert=d().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=g();var P=z()(w.A,M);p.default=w.A&&w.A.locals?w.A.locals:void 0},2591:function(x){"use strict";var p=[];function A(T){for(var b=-1,C=0;C<p.length;C++)if(p[C].identifier===T){b=C;break}return b}function E(T,b){for(var C={},d=[],s=0;s<T.length;s++){var c=T[s],h=b.base?c[0]+b.base:c[0],g=C[h]||0,f="".concat(h," ").concat(g);C[h]=g+1;var S=A(f),w={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(S!==-1)p[S].references++,p[S].updater(w);else{var M=z(w,b);b.byIndex=s,p.splice(s,0,{identifier:f,updater:M,references:1})}d.push(f)}return d}function z(T,b){var C=b.domAPI(b);C.update(T);var d=function(c){if(c){if(c.css===T.css&&c.media===T.media&&c.sourceMap===T.sourceMap&&c.supports===T.supports&&c.layer===T.layer)return;C.update(T=c)}else C.remove()};return d}x.exports=function(T,b){b=b||{},T=T||[];var C=E(T,b);return function(s){s=s||[];for(var c=0;c<C.length;c++){var h=C[c],g=A(h);p[g].references--}for(var f=E(s,b),S=0;S<C.length;S++){var w=C[S],M=A(w);p[M].references===0&&(p[M].updater(),p.splice(M,1))}C=f}}},8128:function(x){"use strict";var p={};function A(z){if(typeof p[z]=="undefined"){var T=document.querySelector(z);if(window.HTMLIFrameElement&&T instanceof window.HTMLIFrameElement)try{T=T.contentDocument.head}catch(b){T=null}p[z]=T}return p[z]}function E(z,T){var b=A(z);if(!b)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");b.appendChild(T)}x.exports=E},3051:function(x){"use strict";function p(A){var E=document.createElement("style");return A.setAttributes(E,A.attributes),A.insert(E,A.options),E}x.exports=p},8021:function(x){"use strict";function p(A,E){Object.keys(E).forEach(function(z){A.setAttribute(z,E[z])})}x.exports=p},1740:function(x){"use strict";function p(z,T,b){var C="";b.supports&&(C+="@supports (".concat(b.supports,") {")),b.media&&(C+="@media ".concat(b.media," {"));var d=typeof b.layer!="undefined";d&&(C+="@layer".concat(b.layer.length>0?" ".concat(b.layer):""," {")),C+=b.css,d&&(C+="}"),b.media&&(C+="}"),b.supports&&(C+="}");var s=b.sourceMap;s&&typeof btoa!="undefined"&&(C+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),T.styleTagTransform(C,z,T.options)}function A(z){if(z.parentNode===null)return!1;z.parentNode.removeChild(z)}function E(z){if(typeof document=="undefined")return{update:function(){},remove:function(){}};var T=z.insertStyleElement(z);return{update:function(C){p(T,z,C)},remove:function(){A(T)}}}x.exports=E},3656:function(x){"use strict";function p(A,E){if(E.styleSheet)E.styleSheet.cssText=A;else{for(;E.firstChild;)E.removeChild(E.firstChild);E.appendChild(document.createTextNode(A))}}x.exports=p},5372:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.advancedFilterCSS=void 0,p.advancedFilterCSS='.ag-advanced-filter-header{align-items:center;background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);display:flex;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);position:relative}.ag-advanced-filter{align-items:center;display:flex;width:100%}.ag-advanced-filter-apply-button,.ag-advanced-filter-builder-button{line-height:normal;white-space:nowrap}:where(.ag-ltr) .ag-advanced-filter-apply-button,:where(.ag-ltr) .ag-advanced-filter-builder-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-advanced-filter-apply-button,:where(.ag-rtl) .ag-advanced-filter-builder-button{margin-right:calc(var(--ag-spacing)*2)}.ag-advanced-filter-builder-button{align-items:center;background-color:unset;border:0;display:flex;font-size:var(--ag-font-size);font-weight:600;padding:var(--ag-spacing);&:where(:not(:disabled)){cursor:pointer;&:hover{background-color:var(--ag-row-hover-color)}}}:where(.ag-ltr) .ag-advanced-filter-builder-button-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-advanced-filter-builder-button-label{margin-right:var(--ag-spacing)}.ag-advanced-filter-builder{display:flex;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-advanced-filter-builder-list{flex:1;overflow:auto}.ag-advanced-filter-builder-button-panel{border-top:var(--ag-advanced-filter-builder-button-bar-border);display:flex;justify-content:flex-end;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-advanced-filter-builder-apply-button,:where(.ag-ltr) .ag-advanced-filter-builder-cancel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-advanced-filter-builder-apply-button,:where(.ag-rtl) .ag-advanced-filter-builder-cancel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-advanced-filter-builder-item-wrapper{align-items:center;display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}:where(.ag-ltr) .ag-advanced-filter-builder-item-wrapper{padding-left:calc(var(--ag-icon-size)/2);padding-right:var(--ag-icon-size)}:where(.ag-rtl) .ag-advanced-filter-builder-item-wrapper{padding-left:var(--ag-icon-size);padding-right:calc(var(--ag-icon-size)/2)}:where(.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper) .ag-tab-guard{position:absolute}.ag-advanced-filter-builder-item-tree-lines>*{width:var(--ag-advanced-filter-builder-indent-size)}.ag-advanced-filter-builder-item-tree-line-root{width:var(--ag-icon-size);&:before{height:50%;top:50%}}.ag-advanced-filter-builder-item-tree-line-horizontal,.ag-advanced-filter-builder-item-tree-line-vertical,.ag-advanced-filter-builder-item-tree-line-vertical-bottom,.ag-advanced-filter-builder-item-tree-line-vertical-top{align-items:center;display:flex;height:100%;position:relative;&:after,&:before{content:"";height:100%;position:absolute}}.ag-advanced-filter-builder-item-tree-line-horizontal:after{border-bottom:1px solid var(--ag-border-color);height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size))}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-horizontal:after{left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-horizontal:after{right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical:before{top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-top:before{height:50%;top:0;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical-top:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{height:calc(50% - var(--ag-icon-size)*1.5/2);top:calc(50% + var(--ag-icon-size)*1.5/2);width:calc(var(--ag-icon-size)/2)}:where(.ag-ltr) .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-left:1px solid var(--ag-border-color);left:calc(var(--ag-icon-size)/2)}:where(.ag-rtl) .ag-advanced-filter-builder-item-tree-line-vertical-bottom:before{border-right:1px solid var(--ag-border-color);right:calc(var(--ag-icon-size)/2)}.ag-advanced-filter-builder-item-condition{padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing)}.ag-advanced-filter-builder-item,.ag-advanced-filter-builder-item-buttons,.ag-advanced-filter-builder-item-condition,.ag-advanced-filter-builder-item-tree-lines,.ag-advanced-filter-builder-pill,.ag-advanced-filter-builder-pill-wrapper{align-items:center;display:flex;height:100%}.ag-advanced-filter-builder-pill-wrapper{margin:0 var(--ag-spacing)}.ag-advanced-filter-builder-pill{border-radius:var(--ag-border-radius);min-height:calc(100% - var(--ag-spacing)*3);min-width:calc(var(--ag-spacing)*2);padding:var(--ag-spacing) calc(var(--ag-spacing)*2);position:relative}:where(.ag-advanced-filter-builder-pill){.ag-advanced-filter-builder-value-number{font-family:monospace;font-weight:700}.ag-advanced-filter-builder-value-empty{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-advanced-filter-builder-pill){.ag-picker-field-display{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-advanced-filter-builder-pill){.ag-picker-field-display{margin-left:var(--ag-spacing)}}.ag-advanced-filter-builder-pill-display{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-advanced-filter-builder-join-pill{background-color:var(--ag-advanced-filter-builder-join-pill-color);cursor:pointer}.ag-advanced-filter-builder-column-pill{background-color:var(--ag-advanced-filter-builder-column-pill-color);cursor:pointer}.ag-advanced-filter-builder-option-pill{background-color:var(--ag-advanced-filter-builder-option-pill-color);cursor:pointer}.ag-advanced-filter-builder-value-pill{background-color:var(--ag-advanced-filter-builder-value-pill-color);cursor:text;max-width:140px;:where(.ag-advanced-filter-builder-pill-display){display:block}}.ag-advanced-filter-builder-item-buttons>*{margin:0 calc(var(--ag-spacing)*.5)}.ag-advanced-filter-builder-item-button{color:var(--ag-subtle-text-color);cursor:pointer;position:relative}.ag-advanced-filter-builder-item-button,.ag-advanced-filter-builder-pill{&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-advanced-filter-builder-item-button-disabled{cursor:default;opacity:.5}.ag-advanced-filter-builder-virtual-list-container{top:var(--ag-spacing)}.ag-advanced-filter-builder-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:hover{background-color:var(--ag-row-hover-color);:where(.ag-advanced-filter-builder-item-button){opacity:1}}}.ag-advanced-filter-builder-invalid{color:var(--ag-invalid-color);cursor:default;margin:0 var(--ag-spacing)}:where(.ag-advanced-filter-builder-validation) .ag-advanced-filter-builder-invalid,:where(.ag-advanced-filter-builder-virtual-list-item-highlight) .ag-advanced-filter-builder-item-button:focus-visible{opacity:1}'},6138:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.hideAdvancedFilterBuilder=p.showAdvancedFilterBuilder=p.setAdvancedFilterModel=p.getAdvancedFilterModel=void 0;function A(b){var C,d;return(d=(C=b.filterManager)==null?void 0:C.getAdvFilterModel())!=null?d:null}p.getAdvancedFilterModel=A;function E(b,C){var d;(d=b.filterManager)==null||d.setAdvFilterModel(C)}p.setAdvancedFilterModel=E;function z(b){var C;(C=b.filterManager)==null||C.toggleAdvFilterBuilder(!0,"api")}p.showAdvancedFilterBuilder=z;function T(b){var C;(C=b.filterManager)==null||C.toggleAdvFilterBuilder(!1,"api")}p.hideAdvancedFilterBuilder=T},2583:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterComp=void 0;let E=A(6624),z=A(2611);class T extends E.Component{wireBeans(C){this.advFilterExpSvc=C.advFilterExpSvc,this.advancedFilter=C.advancedFilter,this.filterManager=C.filterManager,this.registry=C.registry}constructor(){super(`
            <div class="ag-advanced-filter" role="presentation" tabindex="-1">
                <ag-autocomplete data-ref="eAutocomplete"></ag-autocomplete>
                <button class="ag-button ag-standard-button ag-advanced-filter-apply-button" data-ref="eApplyFilterButton"></button>
                <button class="ag-button ag-advanced-filter-builder-button" data-ref="eBuilderFilterButton">
                    <span data-ref="eBuilderFilterButtonIcon" aria-hidden="true"></span>
                    <span class="ag-advanced-filter-builder-button-label" data-ref="eBuilderFilterButtonLabel"></span>
                </button>
            </div>`,[z.AgAutocompleteSelector]),this.eAutocomplete=E.RefPlaceholder,this.eApplyFilterButton=E.RefPlaceholder,this.eBuilderFilterButton=E.RefPlaceholder,this.eBuilderFilterButtonIcon=E.RefPlaceholder,this.eBuilderFilterButtonLabel=E.RefPlaceholder,this.expressionParser=null,this.isApplyDisabled=!0,this.builderOpen=!1}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getTooltipShowDelayOverride:()=>1e3,getLocation:()=>"advancedFilter"})),this.eAutocomplete.setListGenerator((C,d)=>this.generateAutocompleteListParams(d)).setValidator(()=>this.validateValue()).setForceLastSelection((C,d)=>this.forceLastSelection(C,d)).setInputAriaLabel(this.advFilterExpSvc.translate("ariaAdvancedFilterInput")).setListAriaLabel(this.advFilterExpSvc.translate("ariaLabelAdvancedFilterAutocomplete")),this.refresh(),this.addManagedListeners(this.eAutocomplete,{eventValueChanged:({value:C})=>this.onValueChanged(C),eventValueConfirmed:({isValid:C})=>this.onValueConfirmed(C),eventOptionSelected:({position:C,updateEntry:d,autocompleteType:s})=>this.onOptionSelected(C,d,s),eventValidChanged:({isValid:C,validationMessage:d})=>this.onValidChanged(C,d)}),this.setupApplyButton(),this.setupBuilderButton()}refresh(){let C=this.advancedFilter.getExpressionDisplayValue();this.eAutocomplete.setValue({value:C!=null?C:"",position:C==null?void 0:C.length,updateListOnlyIfOpen:!0})}setInputDisabled(C){this.eAutocomplete.setInputDisabled(C),(0,E._setDisabled)(this.eApplyFilterButton,C||this.isApplyDisabled)}setupApplyButton(){this.eApplyFilterButton.innerText=this.advFilterExpSvc.translate("advancedFilterApply"),this.activateTabIndex([this.eApplyFilterButton]),this.addManagedElementListeners(this.eApplyFilterButton,{click:()=>this.onValueConfirmed(this.eAutocomplete.isValid())}),(0,E._setDisabled)(this.eApplyFilterButton,this.isApplyDisabled)}setupBuilderButton(){this.eBuilderFilterButtonIcon.appendChild((0,E._createIconNoSpan)("advancedFilterBuilder",this.beans)),this.eBuilderFilterButtonLabel.innerText=this.advFilterExpSvc.translate("advancedFilterBuilder"),this.activateTabIndex([this.eBuilderFilterButton]),this.addManagedElementListeners(this.eBuilderFilterButton,{click:()=>this.openBuilder()}),this.addManagedListeners(this.advancedFilter.getCtrl(),{advancedFilterBuilderClosed:()=>this.closeBuilder()})}onValueChanged(C){var s;C=(0,E._makeNull)(C),this.advancedFilter.setExpressionDisplayValue(C),this.expressionParser=this.advancedFilter.createExpressionParser(C);let d=(s=this.expressionParser)==null?void 0:s.parseExpression();d&&d!==C&&this.eAutocomplete.setValue({value:d,silent:!0,restoreFocus:!0})}onValueConfirmed(C){var d;!C||this.isApplyDisabled||((0,E._setDisabled)(this.eApplyFilterButton,!0),this.advancedFilter.applyExpression(),(d=this.filterManager)==null||d.onFilterChanged({source:"advancedFilter"}))}onOptionSelected(C,d,s){let{updatedValue:c,updatedPosition:h,hideAutocomplete:g}=this.updateExpression(C,d,s);this.eAutocomplete.setValue({value:c,position:h,updateListOnlyIfOpen:g,restoreFocus:!0})}validateValue(){var C,d,s;return(C=this.expressionParser)!=null&&C.isValid()?null:(s=(d=this.expressionParser)==null?void 0:d.getValidationMessage())!=null?s:null}onValidChanged(C,d){var s;this.isApplyDisabled=!C||this.advancedFilter.isCurrentExpressionApplied(),(0,E._setDisabled)(this.eApplyFilterButton,this.isApplyDisabled),(s=this.tooltipFeature)==null||s.setTooltipAndRefresh(d)}generateAutocompleteListParams(C){return this.expressionParser?this.expressionParser.getAutocompleteListParams(C):this.advFilterExpSvc.getDefaultAutocompleteListParams("")}updateExpression(C,d,s){var c,h;return this.advFilterExpSvc.updateAutocompleteCache(d,s),(h=(c=this.expressionParser)==null?void 0:c.updateExpression(C,d,s))!=null?h:this.advancedFilter.getDefaultExpression(d)}forceLastSelection({key:C,displayValue:d},s){return!!s.toLocaleLowerCase().match(`^${(d!=null?d:C).toLocaleLowerCase()}\\s*$`)}openBuilder(){this.builderOpen||(this.builderOpen=!0,(0,E._setDisabled)(this.eBuilderFilterButton,!0),this.advancedFilter.getCtrl().toggleFilterBuilder({source:"ui",eventSource:this.eBuilderFilterButton}))}closeBuilder(){this.builderOpen&&(this.builderOpen=!1,(0,E._setDisabled)(this.eBuilderFilterButton,!1),this.eBuilderFilterButton.focus())}}p.AdvancedFilterComp=T},5865:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterCtrl=void 0;let E=A(6624),z=A(8775),T=A(2583),b=A(4858),C=A(8986);class d extends E.BeanStub{wireBeans(c){this.ctrlsSvc=c.ctrlsSvc,this.popupSvc=c.popupSvc,this.advFilterExpSvc=c.advFilterExpSvc,this.environment=c.environment}constructor(c){super(),this.enabled=c}postConstruct(){this.hasAdvancedFilterParent=!!this.gos.get("advancedFilterParent"),this.ctrlsSvc.whenReady(this,()=>this.setAdvancedFilterComp()),this.addManagedEventListeners({advancedFilterEnabledChanged:({enabled:c})=>this.onEnabledChanged(c)}),this.addManagedPropertyListener("advancedFilterParent",()=>this.updateComps()),this.addDestroyFunc(()=>{this.destroyAdvancedFilterComp(),this.destroyBean(this.eBuilderComp),this.eBuilderDialog&&this.eBuilderDialog.isAlive()&&this.destroyBean(this.eBuilderDialog)})}setupHeaderComp(c){var h;this.eHeaderComp&&((h=this.eHeaderComp)==null||h.getGui().remove(),this.destroyBean(this.eHeaderComp)),this.eHeaderComp=this.createManagedBean(new b.AdvancedFilterHeaderComp(this.enabled&&!this.hasAdvancedFilterParent)),c.insertAdjacentElement("beforebegin",this.eHeaderComp.getGui())}focusHeaderComp(){return this.eHeaderComp?(this.eHeaderComp.getFocusableElement().focus(),!0):!1}refreshComp(){var c,h;(c=this.eFilterComp)==null||c.refresh(),(h=this.eHeaderComp)==null||h.refresh()}refreshBuilderComp(){var c;(c=this.eBuilderComp)==null||c.refresh()}getHeaderHeight(){var c,h;return(h=(c=this.eHeaderComp)==null?void 0:c.getHeight())!=null?h:0}setInputDisabled(c){var h,g;(h=this.eFilterComp)==null||h.setInputDisabled(c),(g=this.eHeaderComp)==null||g.setInputDisabled(c)}toggleFilterBuilder(c){let{source:h,force:g,eventSource:f}=c;if(g&&this.eBuilderDialog||g===!1&&!this.eBuilderDialog)return;if(this.eBuilderDialog){this.builderDestroySource=h,this.destroyBean(this.eBuilderDialog);return}this.setInputDisabled(!0);let{width:S,height:w,minWidth:M}=this.getBuilderDialogSize();this.eBuilderComp=this.createBean(new C.AdvancedFilterBuilderComp),this.eBuilderDialog=this.createBean(new z.AgDialog({title:this.advFilterExpSvc.translate("advancedFilterBuilderTitle"),component:this.eBuilderComp,width:S,height:w,resizable:!0,movable:!0,maximizable:!0,centered:!0,closable:!0,minWidth:M,afterGuiAttached:()=>{var P;return(P=this.eBuilderComp)==null?void 0:P.afterGuiAttached()},postProcessPopupParams:{type:"advancedFilterBuilder",eventSource:f}})),this.dispatchFilterBuilderVisibleChangedEvent(h,!0),this.eBuilderDialog.addEventListener("destroyed",()=>{var P;this.destroyBean(this.eBuilderComp),this.eBuilderComp=void 0,this.eBuilderDialog=void 0,this.setInputDisabled(!1),this.dispatchLocalEvent({type:"advancedFilterBuilderClosed"}),this.dispatchFilterBuilderVisibleChangedEvent((P=this.builderDestroySource)!=null?P:"ui",!1),this.builderDestroySource=void 0})}dispatchFilterBuilderVisibleChangedEvent(c,h){this.eventSvc.dispatchEvent({type:"advancedFilterBuilderVisibleChanged",source:c,visible:h})}getBuilderDialogSize(){var M,P;let c=(P=(M=this.gos.get("advancedFilterBuilderParams"))==null?void 0:M.minWidth)!=null?P:500,h=this.popupSvc.getPopupParent(),g=Math.round((0,E._getAbsoluteWidth)(h))-2,f=Math.round((0,E._getAbsoluteHeight)(h)*.75)-2,S=Math.min(Math.max(600,c),g),w=Math.min(600,f);return{width:S,height:w,minWidth:c}}onEnabledChanged(c){this.enabled=c,this.updateComps()}updateComps(){this.setAdvancedFilterComp(),this.setHeaderCompEnabled(),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}setAdvancedFilterComp(){if(this.destroyAdvancedFilterComp(),!this.enabled)return;let c=this.gos.get("advancedFilterParent");if(this.hasAdvancedFilterParent=!!c,c){let h=this.createBean(new T.AdvancedFilterComp),g=h.getGui();this.environment.applyThemeClasses(g),g.classList.add(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr"),c.appendChild(g),this.eFilterComp=h}}setHeaderCompEnabled(){var c;(c=this.eHeaderComp)==null||c.setEnabled(this.enabled&&!this.hasAdvancedFilterParent)}destroyAdvancedFilterComp(){this.eFilterComp&&((0,E._removeFromParent)(this.eFilterComp.getGui()),this.destroyBean(this.eFilterComp))}}p.AdvancedFilterCtrl=d},1723:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterExpressionService=void 0;let E=A(6624),z=A(8397),T=A(9023),b=A(9459);class C extends E.BeanStub{constructor(){super(...arguments),this.beanName="advFilterExpSvc",this.columnNameToIdMap={},this.columnAutocompleteEntries=null,this.expressionEvaluatorParams={}}wireBeans(s){this.valueSvc=s.valueSvc,this.colModel=s.colModel,this.colNames=s.colNames,this.dataTypeSvc=s.dataTypeSvc}postConstruct(){this.expressionJoinOperators=this.generateExpressionJoinOperators(),this.expressionOperators=this.generateExpressionOperators()}parseJoinOperator(s){var h;let{type:c}=s;return(h=this.expressionJoinOperators[c])!=null?h:c}getColumnDisplayValue(s){let{colId:c}=s,g=this.getColumnAutocompleteEntries().find(({key:S})=>S===c),f;return g?(f=g.displayValue,this.columnNameToIdMap[f.toLocaleUpperCase()]={colId:c,columnName:f}):f=c,f}getOperatorDisplayValue(s){var c,h;return(h=(c=this.getExpressionOperator(s.filterType,s.type))==null?void 0:c.displayValue)!=null?h:s.type}getOperandModelValue(s,c,h){var g;switch(c){case"number":return(0,E._exists)(s)?Number(s):null;case"date":return(0,E._serialiseDate)(this.valueSvc.parseValue(h,null,s,void 0),!1);case"dateString":{let f=this.valueSvc.parseValue(h,null,s,void 0);return this.dataTypeSvc?(0,E._serialiseDate)((g=this.dataTypeSvc.getDateParserFunction(h)(f))!=null?g:null,!1):f}}return s}getOperandDisplayValue(s,c){var w,M,P;let{colId:h,filter:g}=s,f=this.colModel.getColDefCol(h),S="";if(g!=null){let O;switch(s.filterType){case"number":O=(w=(0,E._toStringOrNull)(g))!=null?w:"";break;case"date":{let G=(0,E._parseDateTimeFromString)(g);O=f?this.valueSvc.formatValue(f,null,G):null;break}case"dateString":{let G;if(this.dataTypeSvc){let j=(0,E._parseDateTimeFromString)(g);G=f?(M=this.dataTypeSvc)==null?void 0:M.getDateFormatterFunction(f)(j!=null?j:void 0):null}else G=g;O=f?this.valueSvc.formatValue(f,null,G):null;break}}s.filterType!=="number"&&(O=(P=O!=null?O:(0,E._toStringOrNull)(g))!=null?P:"",c||(O=`"${O}"`)),S=c?O:` ${O}`}return S}parseColumnFilterModel(s){var f,S;let c=(f=this.getColumnDisplayValue(s))!=null?f:"",h=(S=this.getOperatorDisplayValue(s))!=null?S:"",g=this.getOperandDisplayValue(s);return`[${c}] ${h}${g}`}updateAutocompleteCache(s,c){if(c==="column"){let{key:h,displayValue:g}=s;this.columnNameToIdMap[s.displayValue.toLocaleUpperCase()]={colId:h,columnName:g}}}translate(s,c){let h=z.ADVANCED_FILTER_LOCALE_TEXT[s];return typeof h=="function"&&(h=h(c)),this.getLocaleTextFunc()(s,h,c)}generateAutocompleteListParams(s,c,h){return{enabled:!0,type:c,searchString:h,entries:s}}getColumnAutocompleteEntries(){var g;if(this.columnAutocompleteEntries)return this.columnAutocompleteEntries;let s=(g=this.colModel.getColDefCols())!=null?g:[],c=[],h=this.gos.get("includeHiddenColumnsInAdvancedFilter");return s.forEach(f=>{f.getColDef().filter&&(h||f.isVisible()||f.isRowGroupActive())&&c.push({key:f.getColId(),displayValue:this.colNames.getDisplayNameForColumn(f,"advancedFilter")})}),c.sort((f,S)=>{var P,O;let w=(P=f.displayValue)!=null?P:"",M=(O=S.displayValue)!=null?O:"";return w<M?-1:M>w?1:0}),c}getOperatorAutocompleteEntries(s,c){let h=this.getActiveOperators(s);return this.getDataTypeExpressionOperator(c).getEntries(h)}getJoinOperatorAutocompleteEntries(){return Object.entries(this.expressionJoinOperators).map(([s,c])=>({key:s,displayValue:c}))}getDefaultAutocompleteListParams(s){return this.generateAutocompleteListParams(this.getColumnAutocompleteEntries(),"column",s)}getDataTypeExpressionOperator(s){return this.expressionOperators[s]}getExpressionOperator(s,c){var h,g;return(g=(h=this.getDataTypeExpressionOperator(s))==null?void 0:h.operators)==null?void 0:g[c]}getExpressionJoinOperators(){return this.expressionJoinOperators}getColId(s){let c=s.toLocaleUpperCase(),h=this.columnNameToIdMap[c];if(h)return h;let f=this.getColumnAutocompleteEntries().find(({displayValue:S})=>S.toLocaleUpperCase()===c);if(f){let{key:S,displayValue:w}=f,M={colId:S,columnName:w};return this.columnNameToIdMap[c]=M,M}return null}getExpressionEvaluatorParams(s){var S,w,M;let c=this.expressionEvaluatorParams[s];if(c)return c;let h=this.colModel.getColDefCol(s);if(!h)return{valueConverter:P=>P};switch((S=this.dataTypeSvc)==null?void 0:S.getBaseDataType(h)){case"dateString":c={valueConverter:(M=(w=this.dataTypeSvc)==null?void 0:w.getDateParserFunction(h))!=null?M:P=>P};break;case"object":h.getColDef().filterValueGetter?c={valueConverter:P=>P}:c={valueConverter:(P,O)=>{var G;return(G=this.valueSvc.formatValue(h,O,P))!=null?G:typeof P.toString=="function"?P.toString():""}};break;case"text":case void 0:c={valueConverter:P=>(0,E._toStringOrNull)(P)};break;default:c={valueConverter:P=>P};break}let{filterParams:f}=h.getColDef();return f&&["caseSensitive","includeBlanksInEquals","includeBlanksInLessThan","includeBlanksInGreaterThan"].forEach(P=>{let O=f[P];O&&(c[P]=O)}),this.expressionEvaluatorParams[s]=c,c}getColumnDetails(s){var g,f,S;let c=(g=this.colModel.getColDefCol(s))!=null?g:void 0,h=(S=c?(f=this.dataTypeSvc)==null?void 0:f.getBaseDataType(c):void 0)!=null?S:"text";return{column:c,baseCellDataType:h}}generateExpressionOperators(){let s=(c,h)=>this.translate(c,h);return{text:new b.TextFilterExpressionOperators({translate:s}),boolean:new b.BooleanFilterExpressionOperators({translate:s}),object:new b.TextFilterExpressionOperators({translate:s}),number:new b.ScalarFilterExpressionOperators({translate:s,equals:(c,h)=>c===h}),date:new b.ScalarFilterExpressionOperators({translate:s,equals:(c,h)=>c.getTime()===h.getTime()}),dateString:new b.ScalarFilterExpressionOperators({translate:s,equals:(c,h)=>c.getTime()===h.getTime()})}}getColumnValue({displayValue:s}){return`${T.COL_FILTER_EXPRESSION_START_CHAR}${s}${T.COL_FILTER_EXPRESSION_END_CHAR}`}generateExpressionJoinOperators(){return{AND:this.translate("advancedFilterAnd"),OR:this.translate("advancedFilterOr")}}getActiveOperators(s){var g;let c=(g=s.getColDef().filterParams)==null?void 0:g.filterOptions;return c&&c.every(f=>typeof f=="string")?c:void 0}resetColumnCaches(){this.columnAutocompleteEntries=null,this.columnNameToIdMap={},this.expressionEvaluatorParams={}}}p.AdvancedFilterExpressionService=C},4858:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterHeaderComp=void 0;let E=A(6624),z=A(2583);class T extends E.Component{wireBeans(C){this.colModel=C.colModel,this.focusSvc=C.focusSvc,this.ctrlsSvc=C.ctrlsSvc}constructor(C){super(`
            <div class="ag-advanced-filter-header" role="row">
            </div>`),this.enabled=C}postConstruct(){this.setupAdvancedFilter(this.enabled),this.addDestroyFunc(()=>this.destroyBean(this.eAdvancedFilter));let C=()=>{this.enabled&&this.setEnabledHeight()};this.addManagedEventListeners({gridColumnsChanged:()=>this.onGridColumnsChanged(),columnHeaderHeightChanged:C,gridStylesChanged:C}),this.addManagedPropertyListener("headerHeight",C),this.addManagedPropertyListener("floatingFiltersHeight",C),this.addGuiEventListener("keydown",d=>this.onKeyDown(d)),this.addGuiEventListener("focusout",d=>{this.getFocusableElement().contains(d.relatedTarget)||this.focusSvc.clearAdvancedFilterColumn()})}getFocusableElement(){var C,d;return(d=(C=this.eAdvancedFilter)==null?void 0:C.getGui())!=null?d:this.getGui()}setEnabled(C){C!==this.enabled&&this.setupAdvancedFilter(C)}refresh(){var C;(C=this.eAdvancedFilter)==null||C.refresh()}getHeight(){return this.height}setInputDisabled(C){var d;(d=this.eAdvancedFilter)==null||d.setInputDisabled(C)}setupAdvancedFilter(C){let d=this.getGui();if(C){this.eAdvancedFilter=this.createBean(new z.AdvancedFilterComp);let s=this.eAdvancedFilter.getGui();this.eAdvancedFilter.addCssClass("ag-advanced-filter-header-cell"),this.setEnabledHeight(),this.setAriaRowIndex(),(0,E._setAriaRole)(s,"gridcell"),(0,E._setAriaColIndex)(s,1),this.setAriaColumnCount(s),d.appendChild(s)}else(0,E._clearElement)(d),this.destroyBean(this.eAdvancedFilter),this.height=0;(0,E._setDisplayed)(d,C),this.enabled=C}setEnabledHeight(){let C=this.getGui();this.height=(0,E._getFloatingFiltersHeight)(this.beans);let d=`${this.height}px`;C.style.height=d,C.style.minHeight=d}setAriaColumnCount(C){(0,E._setAriaColSpan)(C,this.colModel.getCols().length)}setAriaRowIndex(){var C,d;(0,E._setAriaRowIndex)(this.getGui(),(d=(C=this.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:C.getRowCount())!=null?d:0)}onGridColumnsChanged(){this.eAdvancedFilter&&(this.setAriaColumnCount(this.eAdvancedFilter.getGui()),this.setAriaRowIndex())}onKeyDown(C){switch(C.key){case E.KeyCode.ENTER:{this.hasFocus()&&(0,E._focusInto)(this.getFocusableElement())&&C.preventDefault();break}case E.KeyCode.ESCAPE:this.hasFocus()||this.getFocusableElement().focus();break;case E.KeyCode.UP:this.navigateUpDown(!0,C);break;case E.KeyCode.DOWN:this.navigateUpDown(!1,C);break;case E.KeyCode.TAB:if(this.hasFocus())this.navigateLeftRight(C);else{let d=(0,E._findNextFocusableElement)(this.beans,this.getFocusableElement(),null,C.shiftKey);d?(C.preventDefault(),d.focus()):this.navigateLeftRight(C)}break}}navigateUpDown(C,d){this.hasFocus()&&this.focusSvc.focusNextFromAdvancedFilter(C)&&d.preventDefault()}navigateLeftRight(C){(C.shiftKey?this.focusSvc.focusLastHeader():this.focusSvc.focusNextFromAdvancedFilter(!1,!0))&&C.preventDefault()}hasFocus(){return(0,E._getActiveDomElement)(this.beans)===this.getFocusableElement()}}p.AdvancedFilterHeaderComp=T},8397:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ADVANCED_FILTER_LOCALE_TEXT=void 0,p.ADVANCED_FILTER_LOCALE_TEXT={ariaAdvancedFilterBuilderItem:A=>`${A[0]}. Level ${A[1]}. Press ENTER to edit`,ariaAdvancedFilterBuilderItemValidation:A=>`${A[0]}. Level ${A[1]}. ${A[2]} Press ENTER to edit`,ariaAdvancedFilterBuilderList:"Advanced Filter Builder List",ariaAdvancedFilterBuilderFilterItem:"Filter Condition",ariaAdvancedFilterBuilderGroupItem:"Filter Group",ariaAdvancedFilterBuilderColumn:"Column",ariaAdvancedFilterBuilderOption:"Option",ariaAdvancedFilterBuilderValue:"Value",ariaAdvancedFilterBuilderJoinOperator:"Join Operator",ariaAdvancedFilterInput:"Advanced Filter Input",ariaLabelAdvancedFilterAutocomplete:"Advanced Filter Autocomplete",advancedFilterContains:"contains",advancedFilterNotContains:"does not contain",advancedFilterTextEquals:"equals",advancedFilterTextNotEqual:"does not equal",advancedFilterStartsWith:"begins with",advancedFilterEndsWith:"ends with",advancedFilterBlank:"is blank",advancedFilterNotBlank:"is not blank",advancedFilterEquals:"=",advancedFilterNotEqual:"!=",advancedFilterGreaterThan:">",advancedFilterGreaterThanOrEqual:">=",advancedFilterLessThan:"<",advancedFilterLessThanOrEqual:"<=",advancedFilterTrue:"is true",advancedFilterFalse:"is false",advancedFilterAnd:"AND",advancedFilterOr:"OR",advancedFilterApply:"Apply",advancedFilterBuilder:"Builder",advancedFilterValidationMissingColumn:"Column is missing",advancedFilterValidationMissingOption:"Option is missing",advancedFilterValidationMissingValue:"Value is missing",advancedFilterValidationInvalidColumn:"Column not found",advancedFilterValidationInvalidOption:"Option not found",advancedFilterValidationMissingQuote:"Value is missing an end quote",advancedFilterValidationNotANumber:"Value is not a number",advancedFilterValidationInvalidDate:"Value is not a valid date",advancedFilterValidationMissingCondition:"Condition is missing",advancedFilterValidationJoinOperatorMismatch:"Join operators within a condition must be the same",advancedFilterValidationInvalidJoinOperator:"Join operator not found",advancedFilterValidationMissingEndBracket:"Missing end bracket",advancedFilterValidationExtraEndBracket:"Too many end brackets",advancedFilterValidationMessage:A=>`Expression has an error. ${A[0]} - ${A[1]}.`,advancedFilterValidationMessageAtEnd:A=>`Expression has an error. ${A[0]} at end of expression.`,advancedFilterBuilderTitle:"Advanced Filter",advancedFilterBuilderApply:"Apply",advancedFilterBuilderCancel:"Cancel",advancedFilterBuilderAddButtonTooltip:"Add Filter or Group",advancedFilterBuilderRemoveButtonTooltip:"Remove",advancedFilterBuilderMoveUpButtonTooltip:"Move Up",advancedFilterBuilderMoveDownButtonTooltip:"Move Down",advancedFilterBuilderAddJoin:"Add Group",advancedFilterBuilderAddCondition:"Add Filter",advancedFilterBuilderSelectColumn:"Select a column",advancedFilterBuilderSelectOption:"Select an option",advancedFilterBuilderEnterValue:"Enter a value...",advancedFilterBuilderValidationAlreadyApplied:"Current filter already applied.",advancedFilterBuilderValidationIncomplete:"Not all conditions are complete.",advancedFilterBuilderValidationSelectColumn:"Must select a column.",advancedFilterBuilderValidationSelectOption:"Must select an option.",advancedFilterBuilderValidationEnterValue:"Must enter a value."}},7976:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterModule=void 0;let E=A(6624),z=A(9206),T=A(7205),b=A(5372),C=A(6138),d=A(1723),s=A(3065);p.AdvancedFilterModule={moduleName:"AdvancedFilter",version:T.VERSION,beans:[s.AdvancedFilterService,d.AdvancedFilterExpressionService],icons:{advancedFilterBuilder:"group",advancedFilterBuilderDrag:"grip",advancedFilterBuilderInvalid:"not-allowed",advancedFilterBuilderMoveUp:"up",advancedFilterBuilderMoveDown:"down",advancedFilterBuilderAdd:"plus",advancedFilterBuilderRemove:"minus",advancedFilterBuilderSelectOpen:"small-down",richSelectRemove:"cancel"},apiFunctions:{getAdvancedFilterModel:C.getAdvancedFilterModel,setAdvancedFilterModel:C.setAdvancedFilterModel,showAdvancedFilterBuilder:C.showAdvancedFilterBuilder,hideAdvancedFilterBuilder:C.hideAdvancedFilterBuilder},dependsOn:[z.EnterpriseCoreModule,E._FilterCoreModule,E._SharedDragAndDropModule,E._PopupModule,E._FilterValueModule],css:[b.advancedFilterCSS]}},3065:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterService=void 0;let E=A(6624),z=A(5865),T=A(4899);class b extends E.BeanStub{constructor(){super(...arguments),this.beanName="advancedFilter",this.appliedExpression=null,this.expression=null,this.isValid=!0}wireBeans(d){this.valueSvc=d.valueSvc,this.colModel=d.colModel,this.dataTypeSvc=d.dataTypeSvc,this.advFilterExpSvc=d.advFilterExpSvc,this.filterValueSvc=d.filterValueSvc}postConstruct(){this.setEnabled(this.gos.get("enableAdvancedFilter"),!0),this.ctrl=this.createManagedBean(new z.AdvancedFilterCtrl(this.enabled)),this.expressionProxy={getValue:(d,s)=>{let c=this.colModel.getColDefCol(d);return c?this.filterValueSvc.getValue(c,s):void 0}},this.addManagedPropertyListener("enableAdvancedFilter",d=>this.setEnabled(!!d.currentValue)),this.addManagedEventListeners({newColumnsLoaded:d=>this.onNewColumnsLoaded(d)}),this.addManagedPropertyListener("includeHiddenColumnsInAdvancedFilter",()=>this.updateValidity())}isEnabled(){return this.enabled}isFilterPresent(){return!!this.expressionFunction}doesFilterPass(d){return this.expressionFunction(this.expressionProxy,d,this.expressionParams)}getModel(){var s;let d=this.createExpressionParser(this.appliedExpression);return d==null||d.parseExpression(),(s=d==null?void 0:d.getModel())!=null?s:null}setModel(d){let s=(h,g)=>{if(h.filterType==="join"){let f=this.advFilterExpSvc.parseJoinOperator(h),S=h.conditions.map(w=>s(w)).filter(w=>(0,E._exists)(w)).join(` ${f} `);return g||h.conditions.length<=1?S:`(${S})`}else return this.advFilterExpSvc.parseColumnFilterModel(h)},c=d?s(d,!0):null;this.setExpressionDisplayValue(c),this.applyExpression(),this.ctrl.refreshComp(),this.ctrl.refreshBuilderComp()}getExpressionDisplayValue(){return this.expression}setExpressionDisplayValue(d){this.expression=d}isCurrentExpressionApplied(){return this.appliedExpression===this.expression}createExpressionParser(d){return d?new T.FilterExpressionParser({expression:d,colModel:this.colModel,dataTypeSvc:this.dataTypeSvc,valueSvc:this.valueSvc,advFilterExpSvc:this.advFilterExpSvc}):null}getDefaultExpression(d){let s=this.advFilterExpSvc.getColumnValue(d)+" ";return{updatedValue:s,updatedPosition:s.length}}isHeaderActive(){return!this.gos.get("advancedFilterParent")}getCtrl(){return this.ctrl}setEnabled(d,s){let c=this.enabled,h=(0,E._isClientSideRowModel)(this.gos)||(0,E._isServerSideRowModel)(this.gos);d&&!h&&(0,E._warn)(123),this.enabled=d&&h,!s&&this.enabled!==c&&this.eventSvc.dispatchEvent({type:"advancedFilterEnabledChanged",enabled:this.enabled})}applyExpression(){let d=this.createExpressionParser(this.expression);d==null||d.parseExpression(),this.applyExpressionFromParser(d)}applyExpressionFromParser(d){if(this.isValid=!d||d.isValid(),!d||!this.isValid){this.expressionFunction=null,this.expressionParams=null,this.appliedExpression=null;return}let{expressionFunction:s,params:c}=this.getFunction(d);this.expressionFunction=s,this.expressionParams=c,this.appliedExpression=this.expression}getFunction(d){if(this.gos.get("suppressAdvancedFilterEval"))return d.getFunctionParsed();{let{functionString:s,params:c}=d.getFunctionString();return{expressionFunction:new Function("expressionProxy","node","params",s),params:c}}}updateValidity(){this.advFilterExpSvc.resetColumnCaches();let d=this.createExpressionParser(this.expression);d==null||d.parseExpression();let c=(!d||d.isValid())!==this.isValid;return this.applyExpressionFromParser(d),this.ctrl.refreshComp(),this.ctrl.refreshBuilderComp(),c}onNewColumnsLoaded(d){var c;if(d.source!=="gridInitializing"||!((c=this.dataTypeSvc)!=null&&c.isPendingInference))return;this.ctrl.setInputDisabled(!0);let[s]=this.addManagedEventListeners({dataTypesInferred:()=>{s==null||s(),this.ctrl.setInputDisabled(!1)}})}}p.AdvancedFilterService=b},9546:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agAutocompleteCSS=void 0,p.agAutocompleteCSS=".ag-autocomplete{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}}.ag-autocomplete-list-popup{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-autocomplete-list{height:calc(var(--ag-row-height)*6.5);min-width:200px;position:relative;width:100%}.ag-autocomplete-virtual-list-item{cursor:default;display:flex;height:var(--ag-list-item-height);&:focus-visible:after{content:none}&:hover{background-color:var(--ag-row-hover-color)}}.ag-autocomplete-row{align-items:center;display:flex;flex:1 1 auto;overflow:hidden}.ag-autocomplete-row-label{margin:0 var(--ag-widget-container-horizontal-padding);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-autocomplete-row-selected{background-color:var(--ag-selected-row-background-color)}"},2611:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgAutocompleteSelector=p.AgAutocomplete=void 0;let E=A(6624),z=A(9546),T=A(3359);class b extends E.Component{wireBeans(d){this.popupSvc=d.popupSvc}constructor(){super(`
            <div class="ag-autocomplete" role="presentation">
                <ag-input-text-field data-ref="eAutocompleteInput"></ag-input-text-field>
            </div>`,[E.AgInputTextFieldSelector]),this.eAutocompleteInput=E.RefPlaceholder,this.isListOpen=!1,this.lastPosition=0,this.valid=!0,this.registerCSS(z.agAutocompleteCSS)}postConstruct(){this.eAutocompleteInput.onValueChange(d=>this.onValueChanged(d)),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc(()=>{this.destroyBean(this.autocompleteList)}),this.addGuiEventListener("focusout",()=>this.onFocusOut())}onValueChanged(d){let s=(0,E._makeNull)(d);this.updateValue(s),this.updateAutocompleteList(s)}updateValue(d){this.updateLastPosition(),this.dispatchLocalEvent({type:"eventValueChanged",value:d}),this.validate(d)}updateAutocompleteList(d){var h,g,f;let s=(g=(h=this.listGenerator)==null?void 0:h.call(this,d,this.lastPosition))!=null?g:{enabled:!1},c=this.isListOpen;if((!s.type||s.type!==((f=this.autocompleteListParams)==null?void 0:f.type))&&c&&this.closeList(),this.autocompleteListParams=s,s!=null&&s.enabled){c||this.openList();let{searchString:S}=s;this.autocompleteList.setSearch(S!=null?S:"")}else c&&this.closeList()}onKeyDown(d){let s=d.key;switch(this.updateLastPosition(),s){case E.KeyCode.ENTER:this.onEnterKeyDown(d);break;case E.KeyCode.TAB:this.onTabKeyDown(d);break;case E.KeyCode.DOWN:case E.KeyCode.UP:this.onUpDownKeyDown(d,s);break;case E.KeyCode.LEFT:case E.KeyCode.RIGHT:case E.KeyCode.PAGE_HOME:case E.KeyCode.PAGE_END:setTimeout(()=>{this.updatePositionAndList()});break;case E.KeyCode.ESCAPE:this.onEscapeKeyDown(d);break;case E.KeyCode.SPACE:d.ctrlKey&&!this.isListOpen&&(d.preventDefault(),this.forceOpenList());break}}confirmSelection(){var s;let d=(s=this.autocompleteList)==null?void 0:s.getSelectedValue();d&&(this.closeList(),this.dispatchLocalEvent({type:"eventOptionSelected",value:this.getValue(),position:this.lastPosition,updateEntry:d,autocompleteType:this.autocompleteListParams.type}))}onTabKeyDown(d){this.isListOpen&&(d.preventDefault(),d.stopPropagation(),this.confirmSelection())}onEnterKeyDown(d){d.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()}onUpDownKeyDown(d,s){var c;d.preventDefault(),this.isListOpen?(c=this.autocompleteList)==null||c.onNavigationKeyDown(d,s):this.forceOpenList()}onEscapeKeyDown(d){this.isListOpen&&(d.preventDefault(),d.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))}onFocusOut(){this.isListOpen&&this.closeList()}updatePositionAndList(){var d;this.updateLastPosition(),this.updateAutocompleteList((d=this.eAutocompleteInput.getValue())!=null?d:null)}setCaret(d,s){s&&(0,E._isNothingFocused)(this.beans)&&this.eAutocompleteInput.getFocusableElement().focus();let c=this.eAutocompleteInput.getInputElement();c.setSelectionRange(d,d),d===c.value.length&&(c.scrollLeft=c.scrollWidth)}forceOpenList(){this.onValueChanged(this.eAutocompleteInput.getValue())}updateLastPosition(){var d;this.lastPosition=(d=this.eAutocompleteInput.getInputElement().selectionStart)!=null?d:0}validate(d){if(!this.validator)return;let s=this.validationMessage=this.validator(d);this.eAutocompleteInput.getInputElement().setCustomValidity(s!=null?s:""),this.valid=!s,this.dispatchLocalEvent({type:"eventValidChanged",isValid:this.valid,validationMessage:s})}openList(){this.isListOpen=!0,this.autocompleteList=this.createBean(new T.AgAutocompleteList({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:()=>this.confirmSelection(),forceLastSelection:this.forceLastSelection}));let d=this.autocompleteList.getGui(),s={ePopup:d,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gos.get("enableRtl")?"right":"left",keepWithinBounds:!0},c=this.popupSvc.addPopup({eChild:d,anchorToElement:this.getGui(),positionCallback:()=>this.popupSvc.positionPopupByComponent(s),ariaLabel:this.listAriaLabel});this.hidePopup=c.hideFunc,this.autocompleteList.afterGuiAttached()}closeList(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null}onCompleted(){this.isListOpen&&this.closeList(),this.dispatchLocalEvent({type:"eventValueConfirmed",value:this.getValue(),isValid:this.isValid()})}getValue(){return(0,E._makeNull)(this.eAutocompleteInput.getValue())}setInputPlaceholder(d){return this.eAutocompleteInput.setInputPlaceholder(d),this}setInputAriaLabel(d){return this.eAutocompleteInput.setInputAriaLabel(d),this}setListAriaLabel(d){return this.listAriaLabel=d,this}setListGenerator(d){return this.listGenerator=d,this}setValidator(d){return this.validator=d,this}isValid(){return this.valid}setValue(d){let{value:s,position:c,silent:h,updateListOnlyIfOpen:g,restoreFocus:f}=d;this.eAutocompleteInput.setValue(s,!0),this.setCaret(c!=null?c:this.lastPosition,f),h||this.updateValue(s),(!g||this.isListOpen)&&this.updateAutocompleteList(s)}setForceLastSelection(d){return this.forceLastSelection=d,this}setInputDisabled(d){return this.eAutocompleteInput.setDisabled(d),this}}p.AgAutocomplete=b,p.AgAutocompleteSelector={selector:"AG-AUTOCOMPLETE",component:b}},3359:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgAutocompleteList=void 0;let E=A(6624),z=A(7904),T=A(9087);class b extends E.PopupComponent{constructor(d){super(`<div class="ag-autocomplete-list-popup">
            <div data-ref="eList" class="ag-autocomplete-list"></div>
        <div>`),this.params=d,this.eList=E.RefPlaceholder,this.searchString=""}postConstruct(){this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new z.VirtualList({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:()=>this.autocompleteEntries.length,getRow:s=>this.autocompleteEntries[s]});let d=this.virtualList.getGui();this.addManagedListeners(d,{click:()=>this.params.onConfirmed(),mousemove:this.onMouseMove.bind(this),mousedown:s=>s.preventDefault()}),this.setSelectedValue(0)}onNavigationKeyDown(d,s){d.preventDefault();let c=this.autocompleteEntries.indexOf(this.selectedValue),h=s===E.KeyCode.UP?c-1:c+1;this.checkSetSelectedValue(h)}setSearch(d){this.searchString=d,(0,E._exists)(d)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()}runContainsSearch(d,s){let c,h=!1,g=d.toLocaleLowerCase(),f=s.filter(S=>{let M=S.toLocaleLowerCase().indexOf(g),P=M===0,O=M>=0;return O&&(!c||!h&&P||h===P&&S.length<c.length)&&(c=S,h=P),O});return!c&&f.length&&(c=f[0]),{topMatch:c,allMatches:f}}runSearch(){let{autocompleteEntries:d,useFuzzySearch:s,forceLastSelection:c}=this.params,h=d.map(M=>{var P;return(P=M.displayValue)!=null?P:M.key}),g,f;if(s)g=(0,E._fuzzySuggestions)({inputValue:this.searchString,allSuggestions:h,hideIrrelevant:!0,addSequentialWeight:!0}).values,f=g.length?g[0]:void 0;else{let M=this.runContainsSearch(this.searchString,h);g=M.allMatches,f=M.topMatch}let S=d.filter(({key:M,displayValue:P})=>g.includes(P!=null?P:M));if(!S.length&&this.selectedValue&&(c!=null&&c(this.selectedValue,this.searchString))&&(S=[this.selectedValue]),this.autocompleteEntries=S,this.virtualList.refresh(),!f)return;let w=g.indexOf(f);this.checkSetSelectedValue(w)}updateSearchInList(){this.virtualList.forEachRenderedRow(d=>d.setSearchString(this.searchString))}checkSetSelectedValue(d){d>=0&&d<this.autocompleteEntries.length&&this.setSelectedValue(d)}setSelectedValue(d){let s=this.autocompleteEntries[d];this.selectedValue!==s&&(this.selectedValue=s,this.virtualList.ensureIndexVisible(d),this.virtualList.forEachRenderedRow((c,h)=>{c.updateSelected(d===h)}))}createRowComponent(d){var c;let s=new T.AgAutocompleteRow;return this.createBean(s),s.setState((c=d.displayValue)!=null?c:d.key,d===this.selectedValue),s}onMouseMove(d){let s=this.virtualList,c=s.getGui().getBoundingClientRect(),h=s.getScrollTop(),g=d.clientY-c.top+h,f=Math.floor(g/s.getRowHeight());this.checkSetSelectedValue(f)}afterGuiAttached(){this.virtualList.refresh()}getSelectedValue(){var d;return this.autocompleteEntries.length&&(d=this.selectedValue)!=null?d:null}}p.AgAutocompleteList=b},9087:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgAutocompleteRow=void 0;let E=A(6624);class z extends E.Component{constructor(){super(`
        <div class="ag-autocomplete-row" role="presentation">
            <div class="ag-autocomplete-row-label"></div>
        </div>`),this.hasHighlighting=!1}setState(b,C){this.value=b,this.render(),this.updateSelected(C)}updateSelected(b){this.addOrRemoveCssClass("ag-autocomplete-row-selected",b)}setSearchString(b){var d;let C=!1;if((0,E._exists)(b)){let s=(d=this.value)==null?void 0:d.toLocaleLowerCase().indexOf(b.toLocaleLowerCase());if(s>=0){C=!0,this.hasHighlighting=!0;let c=s+b.length,h=(0,E._escapeString)(this.value.slice(0,s)),g=(0,E._escapeString)(this.value.slice(s,c)),f=(0,E._escapeString)(this.value.slice(c));this.getGui().lastElementChild.innerHTML=`${h}<b>${g}</b>${f}`}}!C&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())}render(){var b;this.getGui().lastElementChild.innerHTML=(b=(0,E._escapeString)(this.value))!=null?b:"&nbsp;"}}p.AgAutocompleteRow=z},5219:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AddDropdownComp=void 0;let E=A(6624),z=A(2005);class T extends z.AgRichSelect{constructor(C){super(He(ge({},C),{template:`
                <div class="ag-picker-field" role="presentation">
                    <div data-ref="eLabel"></div>
                    <div data-ref="eWrapper" class="ag-wrapper ag-picker-collapsed">
                        <div data-ref="eDisplayField" class="ag-picker-field-display"></div>
                        <ag-input-text-field data-ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>
                        <span data-ref="eDeselect" class="ag-rich-select-deselect-button ag-picker-field-icon" role="presentation"></span>
                        <div data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
                    </div>
                </div>`,agComponents:[E.AgInputTextFieldSelector]})),this.params=C}showPicker(){setTimeout(()=>super.showPicker())}hidePicker(){setTimeout(()=>super.hidePicker())}postConstruct(){super.postConstruct();let{wrapperClassName:C,ariaLabel:d}=this.params;(0,E._setDisplayed)(this.eDisplayField,!1),C&&this.eWrapper.classList.add(C),(0,E._setAriaLabelledBy)(this.eWrapper,""),(0,E._setAriaLabel)(this.eWrapper,d)}onEnterKeyDown(C){(0,E._stopPropagationForAgGrid)(C),this.isPickerDisplayed?super.onEnterKeyDown(C):(C.preventDefault(),this.showPicker())}}p.AddDropdownComp=T},8986:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterBuilderComp=void 0;let E=A(6624),z=A(7904),T=A(2865),b=A(2172),C=A(9889);class d extends E.Component{wireBeans(c){this.filterManager=c.filterManager,this.advancedFilter=c.advancedFilter,this.advFilterExpSvc=c.advFilterExpSvc,this.registry=c.registry}constructor(){super(`
            <div role="presentation" class="ag-advanced-filter-builder" tabindex="-1">
                <div role="presentation" class="ag-advanced-filter-builder-list" data-ref="eList"></div>
                <div role="presentation" class="ag-advanced-filter-builder-button-panel">
                    <button class="ag-button ag-standard-button ag-advanced-filter-builder-apply-button" data-ref="eApplyFilterButton"></button>
                    <button class="ag-button ag-standard-button ag-advanced-filter-builder-cancel-button" data-ref="eCancelFilterButton"></button>
                </div>
            </div>`),this.eList=E.RefPlaceholder,this.eApplyFilterButton=E.RefPlaceholder,this.eCancelFilterButton=E.RefPlaceholder,this.validationMessage=null}postConstruct(){var h;let{showMoveButtons:c}=(h=this.gos.get("advancedFilterBuilderParams"))!=null?h:{};this.showMove=!!c,this.addManagedPropertyListener("advancedFilterBuilderParams",({currentValue:g})=>{this.showMove=!!(g!=null&&g.showMoveButtons),this.refreshList(!1)}),this.filterModel=this.setupFilterModel(),this.setupVirtualList(),this.dragFeature=this.createManagedBean(new T.AdvancedFilterBuilderDragFeature(this,this.virtualList)),this.setupButtons()}refresh(){let c=this.virtualList,h=c.getLastFocusedRow();this.setupFilterModel(),this.validateItems(),this.refreshList(!1),h!=null&&(c.getComponentAt(h)||(h=0),c.focusRow(h))}getNumItems(){return this.items.length}moveItem(c,h){!h||!c||this.moveItemToIndex(c,h.rowIndex,h.position)}afterGuiAttached(){this.virtualList.awaitStable(()=>this.virtualList.focusRow(0))}setupVirtualList(){let c=this.virtualList=this.createManagedBean(new z.VirtualList({cssIdentifier:"advanced-filter-builder",ariaRole:"tree",listName:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderList")}));c.setComponentCreator(this.createItemComponent.bind(this)),c.setComponentUpdater(this.updateItemComponent.bind(this)),c.setRowHeight(40),this.eList.appendChild(c.getGui()),c.setModel({getRowCount:()=>this.items.length,getRow:h=>this.items[h],areRowsEqual:(h,g)=>h===g}),this.buildList(),c.refresh()}setupButtons(){this.eApplyFilterButton.innerText=this.advFilterExpSvc.translate("advancedFilterBuilderApply"),this.activateTabIndex([this.eApplyFilterButton]),this.addManagedElementListeners(this.eApplyFilterButton,{click:()=>{var h;this.advancedFilter.setModel(this.filterModel),(h=this.filterManager)==null||h.onFilterChanged({source:"advancedFilter"}),this.close()}}),this.validationTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApplyFilterButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.validationMessage,getTooltipShowDelayOverride:()=>1e3})),this.validate();let c=h=>this.addOrRemoveCssClass("ag-advanced-filter-builder-validation",h);this.addManagedListeners(this.eApplyFilterButton,{mouseenter:()=>c(!0),mouseleave:()=>c(!1)}),this.eCancelFilterButton.innerText=this.advFilterExpSvc.translate("advancedFilterBuilderCancel"),this.activateTabIndex([this.eCancelFilterButton]),this.addManagedElementListeners(this.eCancelFilterButton,{click:()=>this.close()})}removeItemFromParent(c){let h=c.parent.conditions.indexOf(c.filterModel);return c.parent.conditions.splice(h,1),h}moveItemToIndex(c,h,g){var P;let f=this.items[h],S=((P=f.filterModel)==null?void 0:P.filterType)==="join"&&g==="bottom",w=S?f.filterModel:f.parent;if(!w||this.isChildOrSelf(w,c.filterModel)||f===c)return;this.removeItemFromParent(c);let M;S?M=0:(M=w.conditions.indexOf(f.filterModel),M===-1?M=w.conditions.length:g==="bottom"&&(M+=1)),w.conditions.splice(M,0,c.filterModel),this.refreshList(!1)}isChildOrSelf(c,h){return c===h||h.filterType==="join"&&h.conditions.some(g=>this.isChildOrSelf(c,g))}setupFilterModel(){let c=this.formatFilterModel(this.advancedFilter.getModel());return this.stringifiedModel=JSON.stringify(c),c}formatFilterModel(c){return c=c!=null?c:{filterType:"join",type:"AND",conditions:[]},c.filterType!=="join"&&(c={filterType:"join",type:"AND",conditions:[c]}),c}buildList(){let c=(h,g,f,S)=>{g.push({filterModel:h,level:f,parent:S,valid:!0,showMove:this.showMove}),h.filterType==="join"&&(h.conditions.forEach(w=>c(w,g,f+1,h)),f===0&&g.push({filterModel:null,level:f+1,parent:h,valid:!0}))};this.items=[],c(this.filterModel,this.items,0)}refreshList(c){if(!c){let h=[];this.items.forEach(g=>{g.valid||h.push(g.filterModel)}),this.buildList(),h.length&&this.items.forEach(g=>{g.filterModel&&h.includes(g.filterModel)&&(g.valid=!1)})}this.virtualList.refresh(c),this.validate()}updateItemComponent(c,h){let g=this.items.indexOf(c),f=(P,O)=>{let G=this.items.find(Y=>Y.filterModel===P),j=G==null?void 0:G.parent;if(j){let{conditions:Y}=j;f(j,O),O.push(Y[Y.length-1]===P)}},S=[],{filterModel:w}=c;w&&(f(w,S),S[0]=!1);let M=(w==null?void 0:w.filterType)==="join"&&!!w.conditions.length;h.setState({disableMoveUp:g===1,disableMoveDown:!this.canMoveDown(c,g),treeLines:S,showStartTreeLine:M})}createItemComponent(c,h){let g=this.createBean(c.filterModel?new C.AdvancedFilterBuilderItemComp(c,this.dragFeature,h):new b.AdvancedFilterBuilderItemAddComp(c,h));return g.addManagedListeners(g,{advancedFilterBuilderRemoved:({item:f})=>this.removeItem(f),advancedFilterBuilderValueChanged:()=>this.validate(),advancedFilterBuilderAdded:({item:f,isJoin:S})=>this.addItem(f,S),advancedFilterBuilderMoved:({item:f,backwards:S})=>this.moveItemUpDown(f,S)}),g instanceof C.AdvancedFilterBuilderItemComp&&this.updateItemComponent(c,g),g}addItem(c,h){var Y;let{parent:g,level:f,filterModel:S}=c,w=(S==null?void 0:S.filterType)==="join",M=h?{filterType:"join",type:"AND",conditions:[]}:{},P=w?S:g,O=w?0:P.conditions.indexOf(S);O>=0?(w||(O+=1),P.conditions.splice(O,0,M)):P.conditions.push(M);let G=this.items.indexOf(c),j=G>=0;if(j){c.filterModel&&G++;let J=[{filterModel:M,level:w?f+1:f,parent:P,valid:h,showMove:this.showMove}];this.items.splice(G,0,...J)}this.refreshList(j),j&&((Y=this.virtualList.getComponentAt(G))==null||Y.afterAdd())}removeItem(c){var P;let h=c.parent,{filterModel:g}=c,f=h.conditions.indexOf(g);h.conditions.splice(f,1);let S=((P=c.filterModel)==null?void 0:P.filterType)==="join",w=this.items.indexOf(c),M=!S&&w>=0;M&&this.items.splice(w,1),this.refreshList(M),w>=0&&this.virtualList.focusRow(w)}moveItemUpDown(c,h){let g=this.items.indexOf(c),f=h?g-1:g+1;if(f===0||!h&&!this.canMoveDown(c,g))return;let S=this.items[f],w=this.removeItemFromParent(c),{level:M,filterModel:P,parent:O}=c,{level:G,filterModel:j,parent:Y}=S;if(h)if(G===M&&j.filterType==="join")j.conditions.push(P);else if(G<=M){let ne=Y.conditions.indexOf(j);Y.conditions.splice(ne,0,P)}else O.conditions[w-1].conditions.push(P);else if(G===M)if(j.filterType==="join")j.conditions.splice(0,0,P);else{let ne=Y.conditions.indexOf(j);Y.conditions.splice(ne+1,0,P)}else if(w<O.conditions.length)O.conditions.splice(w+1,0,P);else{let ne=this.items.find(fe=>fe.filterModel===O),ce=ne.parent.conditions.indexOf(ne.filterModel)+1;ne.parent.conditions.splice(ce,0,P)}this.refreshList(!1);let J=this.items.findIndex(({filterModel:ne})=>ne===P);if(J>=0){let ne=this.virtualList.getComponentAt(J);ne instanceof C.AdvancedFilterBuilderItemComp&&ne.focusMoveButton(h)}}canMoveDown(c,h){return!(c.level===1&&h===this.items.length-2||c.level===1&&c.parent.conditions[c.parent.conditions.length-1]===c.filterModel)}close(){this.advancedFilter.getCtrl().toggleFilterBuilder({source:"ui"})}validate(){var h;let c=!this.items.every(({valid:g})=>g);c?this.validationMessage=this.advFilterExpSvc.translate("advancedFilterBuilderValidationIncomplete"):(c=JSON.stringify(this.filterModel)===this.stringifiedModel,c?this.validationMessage=this.advFilterExpSvc.translate("advancedFilterBuilderValidationAlreadyApplied"):this.validationMessage=null),(0,E._setDisabled)(this.eApplyFilterButton,c),(h=this.validationTooltipFeature)==null||h.refreshTooltip()}validateItems(){let c=g=>{g.type=void 0},h=g=>{delete g.filter};this.items.forEach(g=>{if(!g.valid||!g.filterModel||g.filterModel.filterType==="join")return;let{filterModel:f}=g,{colId:S}=f,w=this.advFilterExpSvc.getColumnAutocompleteEntries().find(({key:G})=>G===S),M=this.advFilterExpSvc.getColumnDetails(f.colId);if(!w||!M.column){g.valid=!1,f.colId=void 0,c(f),h(f);return}let O=this.advFilterExpSvc.getDataTypeExpressionOperator(M.baseCellDataType).operators[f.type];if(!O){g.valid=!1,c(f),h(f);return}if(O.numOperands>0&&!(0,E._exists)(f.filter)){g.valid=!1;return}})}}p.AdvancedFilterBuilderComp=d},2865:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterBuilderDragFeature=void 0;let E=A(6624),z=A(5760);class T extends E.BeanStub{constructor(C,d){super(),this.comp=C,this.virtualList=d}postConstruct(){this.createManagedBean(new z.VirtualListDragFeature(this.comp,this.virtualList,{dragSourceType:E.DragSourceType.AdvancedFilterBuilder,listItemDragStartEvent:"advancedFilterBuilderDragStarted",listItemDragEndEvent:"advancedFilterBuilderDragEnded",eventSource:this,getCurrentDragValue:C=>this.getCurrentDragValue(C),isMoveBlocked:()=>!1,getNumRows:C=>C.getNumItems(),moveItem:(C,d)=>this.moveItem(C,d)}))}getCurrentDragValue(C){return C.item}moveItem(C,d){this.comp.moveItem(C,d)}}p.AdvancedFilterBuilderDragFeature=T},2172:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterBuilderItemAddComp=void 0;let E=A(6624),z=A(5219),T=A(1748),b=A(6608);class C extends E.Component{wireBeans(s){this.advFilterExpSvc=s.advFilterExpSvc,this.registry=s.registry}constructor(s,c){super(`
            <div class="ag-advanced-filter-builder-item-wrapper" role="presentation">
                <div data-ref="eItem" class="ag-advanced-filter-builder-item" role="presentation">
                    <div class="ag-advanced-filter-builder-item-tree-lines" aria-hidden="true">
                        <div class="ag-advanced-filter-builder-item-tree-line-vertical-top ag-advanced-filter-builder-item-tree-line-horizontal"></div>
                    </div>
                </div>
            </div>
        `),this.item=s,this.focusWrapper=c,this.eItem=E.RefPlaceholder}postConstruct(){var h;(0,E._setAriaLevel)(this.focusWrapper,2);let s=(0,b.getAdvancedFilterBuilderAddButtonParams)(g=>this.advFilterExpSvc.translate(g),(h=this.gos.get("advancedFilterBuilderParams"))==null?void 0:h.addSelectWidth),c=this.createManagedBean(new z.AddDropdownComp(s));this.addManagedListeners(c,{fieldPickerValueSelected:({value:g})=>{this.dispatchLocalEvent({type:"advancedFilterBuilderAdded",item:this.item,isJoin:g.key==="join"})}}),this.eItem.appendChild(c.getGui()),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>c.getGui(),getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip")})),this.createManagedBean(new T.AdvancedFilterBuilderItemNavigationFeature(this.getGui(),this.focusWrapper,c)),(0,E._setAriaLabel)(this.focusWrapper,this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItem",[this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip"),`${this.item.level+1}`]))}afterAdd(){}}p.AdvancedFilterBuilderItemAddComp=C},9889:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterBuilderItemComp=void 0;let E=A(6624),z=A(5219),T=A(1748),b=A(6608),C=A(6106),d=A(4042),s=A(1395),c=A(3036);class h extends E.TabGuardComp{wireBeans(f){this.dragAndDrop=f.dragAndDrop,this.advFilterExpSvc=f.advFilterExpSvc,this.registry=f.registry}constructor(f,S,w){super(`
            <div class="ag-advanced-filter-builder-item-wrapper" role="presentation">
                <div class="ag-advanced-filter-builder-item" role="presentation">
                    <div data-ref="eTreeLines" class="ag-advanced-filter-builder-item-tree-lines" aria-hidden="true"></div>
                    <span data-ref="eDragHandle" class="ag-drag-handle" aria-hidden="true"></span>
                    <span data-ref="eValidation" class="ag-advanced-filter-builder-item-button ag-advanced-filter-builder-invalid" aria-hidden="true"></span>
                </div>
                <div data-ref="eButtons" class="ag-advanced-filter-builder-item-buttons">
                    <span data-ref="eMoveUpButton" class="ag-advanced-filter-builder-item-button" role="button"></span>
                    <span data-ref="eMoveDownButton" class="ag-advanced-filter-builder-item-button" role="button"></span>
                    <div data-ref="eAddButton" role="presentation"></div>
                    <span data-ref="eRemoveButton" class="ag-advanced-filter-builder-item-button" role="button"></span>
                </div>
            </div>
        `),this.item=f,this.dragFeature=S,this.focusWrapper=w,this.eTreeLines=E.RefPlaceholder,this.eDragHandle=E.RefPlaceholder,this.eButtons=E.RefPlaceholder,this.eValidation=E.RefPlaceholder,this.eMoveUpButton=E.RefPlaceholder,this.eMoveDownButton=E.RefPlaceholder,this.eAddButton=E.RefPlaceholder,this.eRemoveButton=E.RefPlaceholder,this.moveUpDisabled=!1,this.moveDownDisabled=!1}postConstruct(){let{filterModel:f,level:S,showMove:w}=this.item,M=f.filterType==="join";if(this.ePillWrapper=this.createManagedBean(M?new s.JoinPillWrapperComp:new C.ConditionPillWrapperComp),this.ePillWrapper.init({item:this.item,createPill:P=>this.createPill(P)}),this.eDragHandle.insertAdjacentElement("afterend",this.ePillWrapper.getGui()),S===0){let P=document.createElement("div");P.classList.add("ag-advanced-filter-builder-item-tree-line-vertical-bottom"),P.classList.add("ag-advanced-filter-builder-item-tree-line-root"),this.eTreeLines.appendChild(P),(0,E._setDisplayed)(this.eDragHandle,!1),(0,E._setDisplayed)(this.eButtons,!1),(0,E._setAriaExpanded)(this.focusWrapper,!0)}else this.setupTreeLines(S),this.eDragHandle.appendChild((0,E._createIconNoSpan)("advancedFilterBuilderDrag",this.beans)),this.setupValidation(),this.setupMoveButtons(w),this.setupAddButton(),this.setupRemoveButton(),this.setupDragging(),this.updateAriaExpanded();(0,E._setAriaLevel)(this.focusWrapper,S+1),this.initialiseTabGuard({}),this.createManagedBean(new T.AdvancedFilterBuilderItemNavigationFeature(this.getGui(),this.focusWrapper,this.ePillWrapper)),this.updateAriaLabel(),this.addManagedListeners(this.ePillWrapper,{advancedFilterBuilderValueChanged:()=>this.dispatchLocalEvent({type:"advancedFilterBuilderValueChanged"}),advancedFilterBuilderValidChanged:()=>this.updateValidity()})}setState(f){var j,Y;let{level:S}=this.item;if(S===0)return;let{showMove:w}=this.item,{disableMoveUp:M,disableMoveDown:P,treeLines:O,showStartTreeLine:G}=f;this.updateTreeLines(O,G),this.updateAriaExpanded(),w&&(this.moveUpDisabled=!!M,this.moveDownDisabled=!!P,this.eMoveUpButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",M),this.eMoveDownButton.classList.toggle("ag-advanced-filter-builder-item-button-disabled",P),(0,E._setAriaDisabled)(this.eMoveUpButton,!!M),(0,E._setAriaDisabled)(this.eMoveDownButton,!!P),(j=this.moveUpTooltipFeature)==null||j.refreshTooltip(),(Y=this.moveDownTooltipFeature)==null||Y.refreshTooltip())}focusMoveButton(f){(f?this.eMoveUpButton:this.eMoveDownButton).focus()}afterAdd(){this.ePillWrapper.getFocusableElement().focus()}setupTreeLines(f){for(let S=0;S<f;S++){let w=document.createElement("div");this.eTreeLines.appendChild(w)}}updateTreeLines(f,S){let w=f.length-1,{children:M}=this.eTreeLines;for(let O=0;O<w;O++){let G=M.item(O);G&&G.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical",!f[O])}let P=M.item(w);if(P){P.classList.add("ag-advanced-filter-builder-item-tree-line-horizontal");let O=f[w];P.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical-top",O),P.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical",!O)}this.eDragHandle.classList.toggle("ag-advanced-filter-builder-item-tree-line-vertical-bottom",S)}setupValidation(){this.eValidation.appendChild((0,E._createIconNoSpan)("advancedFilterBuilderInvalid",this.beans)),this.validationTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eValidation,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.ePillWrapper.getValidationMessage(),getTooltipShowDelayOverride:()=>1e3})),this.updateValidity()}setupAddButton(){var w;let f=(0,b.getAdvancedFilterBuilderAddButtonParams)(M=>this.advFilterExpSvc.translate(M),(w=this.gos.get("advancedFilterBuilderParams"))==null?void 0:w.addSelectWidth),S=this.createManagedBean(new z.AddDropdownComp(f));this.addManagedListeners(S,{fieldPickerValueSelected:({value:M})=>this.dispatchLocalEvent({type:"advancedFilterBuilderAdded",item:this.item,isJoin:M.key==="join"})}),this.eAddButton.appendChild(S.getGui()),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eAddButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderAddButtonTooltip")}))}setupRemoveButton(){this.eRemoveButton.appendChild((0,E._createIconNoSpan)("advancedFilterBuilderRemove",this.beans)),this.addManagedListeners(this.eRemoveButton,{click:()=>this.removeItem(),keydown:f=>{switch(f.key){case E.KeyCode.ENTER:f.preventDefault(),(0,E._stopPropagationForAgGrid)(f),this.removeItem();break}}}),this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eRemoveButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.advFilterExpSvc.translate("advancedFilterBuilderRemoveButtonTooltip")})),(0,E._setAriaLabel)(this.eRemoveButton,this.advFilterExpSvc.translate("advancedFilterBuilderRemoveButtonTooltip")),this.activateTabIndex([this.eRemoveButton])}setupMoveButtons(f){f?(this.eMoveUpButton.appendChild((0,E._createIconNoSpan)("advancedFilterBuilderMoveUp",this.beans)),this.addManagedListeners(this.eMoveUpButton,{click:()=>this.moveItem(!0),keydown:S=>{switch(S.key){case E.KeyCode.ENTER:S.preventDefault(),(0,E._stopPropagationForAgGrid)(S),this.moveItem(!0);break}}}),this.moveUpTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eMoveUpButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.moveUpDisabled?null:this.advFilterExpSvc.translate("advancedFilterBuilderMoveUpButtonTooltip")})),(0,E._setAriaLabel)(this.eMoveUpButton,this.advFilterExpSvc.translate("advancedFilterBuilderMoveUpButtonTooltip")),this.eMoveDownButton.appendChild((0,E._createIconNoSpan)("advancedFilterBuilderMoveDown",this.beans)),this.addManagedListeners(this.eMoveDownButton,{click:()=>this.moveItem(!1),keydown:S=>{switch(S.key){case E.KeyCode.ENTER:S.preventDefault(),(0,E._stopPropagationForAgGrid)(S),this.moveItem(!1);break}}}),this.moveDownTooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eMoveDownButton,getLocation:()=>"advancedFilter",getTooltipValue:()=>this.moveDownDisabled?null:this.advFilterExpSvc.translate("advancedFilterBuilderMoveDownButtonTooltip")})),(0,E._setAriaLabel)(this.eMoveDownButton,this.advFilterExpSvc.translate("advancedFilterBuilderMoveDownButtonTooltip")),this.activateTabIndex([this.eMoveUpButton,this.eMoveDownButton])):((0,E._setDisplayed)(this.eMoveUpButton,!1),(0,E._setDisplayed)(this.eMoveDownButton,!1))}updateValidity(){var f;(0,E._setVisible)(this.eValidation,!this.item.valid),(f=this.validationTooltipFeature)==null||f.refreshTooltip(),this.updateAriaLabel()}createPill(f){var G,j;let{key:S,cssClass:w,update:M,ariaLabel:P}=f,O=Y=>{Y!=null&&(M(Y),this.dispatchLocalEvent({type:"advancedFilterBuilderValueChanged"}))};if(f.isSelect){let{getEditorParams:Y,pickerAriaLabelKey:J,pickerAriaLabelValue:ne,displayValue:ce}=f,fe=this.gos.get("advancedFilterBuilderParams"),xe=`${(G=fe==null?void 0:fe.pillSelectMinWidth)!=null?G:140}px`,Le=`${(j=fe==null?void 0:fe.pillSelectMaxWidth)!=null?j:200}px`,_e=this.createBean(new c.SelectPillComp({pickerAriaLabelKey:J,pickerAriaLabelValue:ne,pickerType:"ag-list",value:{key:S,displayValue:ce},valueFormatter:Fe=>{var We;return Fe==null?null:(We=Fe.displayValue)!=null?We:Fe.key},variableWidth:!0,minPickerWidth:xe,maxPickerWidth:Le,getEditorParams:Y,wrapperClassName:w,ariaLabel:P,pickerIcon:"advancedFilterBuilderSelectOpen"}));return this.addManagedListeners(_e,{fieldPickerValueSelected:({value:Fe})=>O(Fe==null?void 0:Fe.key)}),_e}else{let{baseCellDataType:Y,valueFormatter:J}=f,ne=this.createBean(new d.InputPillComp({value:S,valueFormatter:J,cssClass:w,type:this.getInputType(Y),ariaLabel:P}));return this.addManagedListeners(ne,{fieldValueChanged:({value:ce})=>O(ce)}),ne}}getInputType(f){switch(f){case"text":case"object":case"boolean":return"text";case"number":return"number";case"date":case"dateString":return"date"}}setupDragging(){let f={type:E.DragSourceType.AdvancedFilterBuilder,eElement:this.eDragHandle,dragItemName:()=>this.ePillWrapper.getDragName(),getDefaultIconName:()=>"notAllowed",getDragItem:()=>({}),onDragStarted:()=>this.dragFeature.dispatchLocalEvent({type:"advancedFilterBuilderDragStarted",item:this.item}),onDragStopped:()=>this.dragFeature.dispatchLocalEvent({type:"advancedFilterBuilderDragEnded"})};this.dragAndDrop.addDragSource(f,!0),this.addDestroyFunc(()=>this.dragAndDrop.removeDragSource(f))}updateAriaLabel(){let f=this.ePillWrapper.getAriaLabel(),S=`${this.item.level+1}`,w=this.ePillWrapper.getValidationMessage(),M;w?M=this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItemValidation",[f,S,w]):M=this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderItem",[f,S]),(0,E._setAriaLabel)(this.focusWrapper,M)}updateAriaExpanded(){(0,E._removeAriaExpanded)(this.focusWrapper);let{filterModel:f}=this.item;(f==null?void 0:f.filterType)==="join"&&f.conditions.length&&(0,E._setAriaExpanded)(this.focusWrapper,!0)}removeItem(){this.dispatchLocalEvent({type:"advancedFilterBuilderRemoved",item:this.item})}moveItem(f){this.dispatchLocalEvent({type:"advancedFilterBuilderMoved",item:this.item,backwards:f})}}p.AdvancedFilterBuilderItemComp=h},1748:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedFilterBuilderItemNavigationFeature=void 0;let E=A(6624);class z extends E.BeanStub{constructor(b,C,d){super(),this.eGui=b,this.focusWrapper=C,this.eFocusableComp=d}postConstruct(){this.addManagedElementListeners(this.eGui,{keydown:C=>{switch(C.key){case E.KeyCode.TAB:C.defaultPrevented||(0,E._stopPropagationForAgGrid)(C);break;case E.KeyCode.UP:case E.KeyCode.DOWN:(0,E._stopPropagationForAgGrid)(C);break;case E.KeyCode.ESCAPE:if((0,E._isStopPropagationForAgGrid)(C))return;this.eGui.contains((0,E._getActiveDomElement)(this.beans))&&(C.preventDefault(),(0,E._stopPropagationForAgGrid)(C),this.focusWrapper.focus());break}}});let b="ag-advanced-filter-builder-virtual-list-item-highlight";this.addManagedListeners(this.focusWrapper,{keydown:C=>{switch(C.key){case E.KeyCode.ENTER:if((0,E._isStopPropagationForAgGrid)(C))return;(0,E._getActiveDomElement)(this.beans)===this.focusWrapper&&(C.preventDefault(),(0,E._stopPropagationForAgGrid)(C),this.eFocusableComp.getFocusableElement().focus());break}},focusin:()=>{this.focusWrapper.classList.add(b)},focusout:C=>{this.focusWrapper.contains(C.relatedTarget)||this.focusWrapper.classList.remove(b)}})}}p.AdvancedFilterBuilderItemNavigationFeature=z},6608:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getAdvancedFilterBuilderAddButtonParams=void 0;function A(E,z){return{pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderAddField",pickerAriaLabelValue:"Advanced Filter Builder Add Field",pickerType:"ag-list",valueList:[{key:"condition",displayValue:E("advancedFilterBuilderAddCondition")},{key:"join",displayValue:E("advancedFilterBuilderAddJoin")}],valueFormatter:T=>{var b;return T==null?null:(b=T.displayValue)!=null?b:T.key},pickerIcon:"advancedFilterBuilderAdd",maxPickerWidth:`${z!=null?z:120}px`,wrapperClassName:"ag-advanced-filter-builder-item-button",ariaLabel:E("advancedFilterBuilderAddButtonTooltip")}}p.getAdvancedFilterBuilderAddButtonParams=A},6106:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ConditionPillWrapperComp=void 0;let E=A(6624);class z extends E.Component{wireBeans(b){this.advFilterExpSvc=b.advFilterExpSvc}constructor(){super(`
            <div class="ag-advanced-filter-builder-item-condition" role="presentation"></div>
        `),this.validationMessage=null}init(b){let{item:C,createPill:d}=b;this.item=C,this.createPill=d,this.filterModel=C.filterModel,this.setupColumnCondition(this.filterModel),this.validate(),this.addDestroyFunc(()=>this.destroyBeans([this.eColumnPill,this.eOperatorPill,this.eOperandPill]))}getDragName(){return this.filterModel.colId?this.advFilterExpSvc.parseColumnFilterModel(this.filterModel):this.getDefaultColumnDisplayValue()}getAriaLabel(){return`${this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderFilterItem")} ${this.getDragName()}`}getValidationMessage(){return this.validationMessage}getFocusableElement(){return this.eColumnPill.getFocusableElement()}setupColumnCondition(b){var d;let C=this.advFilterExpSvc.getColumnDetails(b.colId);this.baseCellDataType=C.baseCellDataType,this.column=C.column,this.numOperands=this.getNumOperands(this.getOperatorKey()),this.eColumnPill=this.createPill({key:this.getColumnKey(),displayValue:(d=this.getColumnDisplayValue())!=null?d:this.getDefaultColumnDisplayValue(),cssClass:"ag-advanced-filter-builder-column-pill",isSelect:!0,getEditorParams:()=>({values:this.advFilterExpSvc.getColumnAutocompleteEntries()}),update:s=>this.setColumnKey(s),pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderColumnSelectField",pickerAriaLabelValue:"Advanced Filter Builder Column Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderColumn")}),this.getGui().appendChild(this.eColumnPill.getGui()),(0,E._exists)(this.getColumnKey())&&(this.createOperatorPill(),this.hasOperand()&&this.createOperandPill())}createOperatorPill(){var b;this.eOperatorPill=this.createPill({key:this.getOperatorKey(),displayValue:(b=this.getOperatorDisplayValue())!=null?b:this.getDefaultOptionSelectValue(),cssClass:"ag-advanced-filter-builder-option-pill",isSelect:!0,getEditorParams:()=>({values:this.getOperatorAutocompleteEntries()}),update:C=>this.setOperatorKey(C),pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderOptionSelectField",pickerAriaLabelValue:"Advanced Filter Builder Option Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderOption")}),this.eColumnPill.getGui().insertAdjacentElement("afterend",this.eOperatorPill.getGui())}createOperandPill(){var d;let{filter:b}=this.filterModel,C=(d=typeof b=="number"?(0,E._toStringOrNull)(b):b)!=null?d:"";this.eOperandPill=this.createPill({key:C,valueFormatter:s=>this.advFilterExpSvc.getOperandDisplayValue(He(ge({},this.filterModel),{filter:s}),!0),baseCellDataType:this.baseCellDataType,cssClass:"ag-advanced-filter-builder-value-pill",isSelect:!1,update:s=>this.setOperand(s),ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderValue")}),this.getGui().appendChild(this.eOperandPill.getGui())}getColumnKey(){return this.filterModel.colId}getColumnDisplayValue(){return this.advFilterExpSvc.getColumnDisplayValue(this.filterModel)}getOperatorKey(){return this.filterModel.type}getOperatorDisplayValue(){return this.advFilterExpSvc.getOperatorDisplayValue(this.filterModel)}getOperandDisplayValue(){return this.advFilterExpSvc.getOperandDisplayValue(this.filterModel,!0)}hasOperand(){return this.numOperands>0}getOperatorAutocompleteEntries(){return this.column?this.advFilterExpSvc.getOperatorAutocompleteEntries(this.column,this.baseCellDataType):[]}setColumnKey(b){this.eOperatorPill||this.createOperatorPill();let C=this.advFilterExpSvc.getColumnDetails(b);this.column=C.column;let d=C.baseCellDataType;this.baseCellDataType!==d&&(this.baseCellDataType=d,this.setOperatorKey(void 0),this.eOperatorPill&&((0,E._removeFromParent)(this.eOperatorPill.getGui()),this.destroyBean(this.eOperatorPill),this.createOperatorPill()),this.validate()),this.filterModel.colId=b,this.filterModel.filterType=this.baseCellDataType}setOperatorKey(b){let C=this.getNumOperands(b);C!==this.numOperands&&(this.numOperands=C,C===0?this.destroyOperandPill():(this.createOperandPill(),this.baseCellDataType!=="number"&&this.setOperand(""))),this.filterModel.type=b,this.validate()}setOperand(b){let C=b;this.baseCellDataType==="number"&&(C=(0,E._exists)(b)?Number(b):""),this.filterModel.filter=C,this.validate()}getNumOperands(b){var C,d;return(d=(C=this.advFilterExpSvc.getExpressionOperator(this.baseCellDataType,b))==null?void 0:C.numOperands)!=null?d:0}destroyOperandPill(){delete this.filterModel.filter,this.getGui().removeChild(this.eOperandPill.getGui()),this.destroyBean(this.eOperandPill),this.eOperandPill=void 0}validate(){let b=null;(0,E._exists)(this.getColumnKey())?(0,E._exists)(this.getOperatorKey())?this.numOperands>0&&!(0,E._exists)(this.getOperandDisplayValue())&&(b=this.advFilterExpSvc.translate("advancedFilterBuilderValidationEnterValue")):b=this.advFilterExpSvc.translate("advancedFilterBuilderValidationSelectOption"):b=this.advFilterExpSvc.translate("advancedFilterBuilderValidationSelectColumn"),this.item.valid=!b,b!==this.validationMessage&&(this.validationMessage=b,this.dispatchLocalEvent({type:"advancedFilterBuilderValidChanged"}))}getDefaultColumnDisplayValue(){return this.advFilterExpSvc.translate("advancedFilterBuilderSelectColumn")}getDefaultOptionSelectValue(){return this.advFilterExpSvc.translate("advancedFilterBuilderSelectOption")}}p.ConditionPillWrapperComp=z},4042:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.InputPillComp=void 0;let E=A(6624);class z extends E.Component{wireBeans(b){this.advFilterExpSvc=b.advFilterExpSvc}constructor(b){super(`
            <div class="ag-advanced-filter-builder-pill-wrapper" role="presentation">
                <div data-ref="ePill" class="ag-advanced-filter-builder-pill" role="button">
                    <span data-ref="eLabel" class="ag-advanced-filter-builder-pill-display"></span>
                </div>
            </div>
        `),this.params=b,this.ePill=E.RefPlaceholder,this.eLabel=E.RefPlaceholder;let{value:C,valueFormatter:d}=b;this.value=C,this.displayValue=d(C)}postConstruct(){let{cssClass:b,ariaLabel:C}=this.params;this.ePill.classList.add(b),this.activateTabIndex([this.ePill]),this.eLabel.id=`${this.getCompId()}`,(0,E._setAriaDescribedBy)(this.ePill,this.eLabel.id),(0,E._setAriaLabel)(this.ePill,C),this.renderValue(),this.addManagedListeners(this.ePill,{click:d=>{d.preventDefault(),this.showEditor()},keydown:d=>{switch(d.key){case E.KeyCode.ENTER:d.preventDefault(),(0,E._stopPropagationForAgGrid)(d),this.showEditor();break}}}),this.addDestroyFunc(()=>this.destroyBean(this.eEditor))}getFocusableElement(){return this.ePill}showEditor(){if(this.eEditor)return;(0,E._setDisplayed)(this.ePill,!1),this.eEditor=this.createEditorComp(this.params.type),this.eEditor.setValue(this.value);let b=this.eEditor.getGui();this.eEditor.addManagedElementListeners(b,{keydown:C=>{switch(C.key){case E.KeyCode.ENTER:C.preventDefault(),(0,E._stopPropagationForAgGrid)(C),this.updateValue(!0);break;case E.KeyCode.ESCAPE:C.preventDefault(),(0,E._stopPropagationForAgGrid)(C),this.hideEditor(!0);break}},focusout:()=>this.updateValue(!1)}),this.getGui().appendChild(b),this.eEditor.getFocusableElement().focus()}createEditorComp(b){let C;switch(b){case"text":C=new E.AgInputTextField;break;case"number":C=new E.AgInputNumberField;break;case"date":C=new E.AgInputDateField;break}return this.createBean(C)}hideEditor(b){let{eEditor:C}=this;C&&(this.eEditor=void 0,this.getGui().removeChild(C.getGui()),this.destroyBean(C),(0,E._setDisplayed)(this.ePill,!0),b&&this.ePill.focus())}renderValue(){let b,{displayValue:C,eLabel:d}=this,{classList:s}=d;s.remove("ag-advanced-filter-builder-value-empty","ag-advanced-filter-builder-value-number","ag-advanced-filter-builder-value-text"),(0,E._exists)(C)?this.params.type==="number"?(b=C,s.add("ag-advanced-filter-builder-value-number")):(b=`"${C}"`,s.add("ag-advanced-filter-builder-value-text")):(b=this.advFilterExpSvc.translate("advancedFilterBuilderEnterValue"),s.add("ag-advanced-filter-builder-value-empty")),d.innerText=b}updateValue(b){var d;if(!this.eEditor)return;let C=(d=this.eEditor.getValue())!=null?d:"";this.dispatchLocalEvent({type:"fieldValueChanged",value:C}),this.value=C,this.displayValue=this.params.valueFormatter(C),this.renderValue(),this.hideEditor(b)}}p.InputPillComp=z},1395:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.JoinPillWrapperComp=void 0;let E=A(6624);class z extends E.Component{wireBeans(b){this.advFilterExpSvc=b.advFilterExpSvc}constructor(){super(`
            <div class="ag-advanced-filter-builder-item-condition" role="presentation"></div>
        `)}init(b){let{item:C,createPill:d}=b,s=C.filterModel;this.filterModel=s,this.ePill=d({key:s.type,displayValue:this.advFilterExpSvc.parseJoinOperator(s),cssClass:"ag-advanced-filter-builder-join-pill",isSelect:!0,getEditorParams:()=>({values:this.advFilterExpSvc.getJoinOperatorAutocompleteEntries()}),update:c=>s.type=c,pickerAriaLabelKey:"ariaLabelAdvancedFilterBuilderJoinSelectField",pickerAriaLabelValue:"Advanced Filter Builder Join Operator Select Field",ariaLabel:this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderJoinOperator")}),this.getGui().appendChild(this.ePill.getGui()),this.addDestroyFunc(()=>this.destroyBean(this.ePill))}getDragName(){return this.advFilterExpSvc.parseJoinOperator(this.filterModel)}getAriaLabel(){return`${this.advFilterExpSvc.translate("ariaAdvancedFilterBuilderGroupItem")} ${this.getDragName()}`}getValidationMessage(){return null}getFocusableElement(){return this.ePill.getFocusableElement()}}p.JoinPillWrapperComp=z},3036:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SelectPillComp=void 0;let E=A(6624),z=A(2005);class T extends z.AgRichSelect{constructor(C){super(He(ge({},C),{template:`
                <div class="ag-picker-field ag-advanced-filter-builder-pill-wrapper" role="presentation">
                    <div data-ref="eLabel"></div>
                    <div data-ref="eWrapper" class="ag-wrapper ag-advanced-filter-builder-pill ag-picker-collapsed">
                        <div data-ref="eDisplayField" class="ag-picker-field-display ag-advanced-filter-builder-pill-display"></div>
                        <ag-input-text-field data-ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>
                        <span data-ref="eDeselect" class="ag-rich-select-deselect-button ag-picker-field-icon" role="presentation"></span>
                        <div data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
                    </div>
                </div>`,agComponents:[E.AgInputTextFieldSelector]})),this.params=C}getFocusableElement(){return this.eWrapper}showPicker(){setTimeout(()=>super.showPicker())}hidePicker(){setTimeout(()=>super.hidePicker())}postConstruct(){super.postConstruct();let{wrapperClassName:C,ariaLabel:d}=this.params;this.eWrapper.classList.add(C),(0,E._setAriaLabelledBy)(this.eWrapper,""),(0,E._setAriaLabel)(this.eWrapper,d)}createPickerComponent(){var C;if(!this.values){let{values:d}=this.params.getEditorParams();this.values=d;let s=this.value.key,c=(C=d.find(h=>h.key===s))!=null?C:{key:s,displayValue:this.value.displayValue};this.value=c}return super.createPickerComponent()}onEnterKeyDown(C){(0,E._stopPropagationForAgGrid)(C),this.isPickerDisplayed?super.onEnterKeyDown(C):(C.preventDefault(),this.showPicker())}}p.SelectPillComp=T},9023:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColFilterExpressionParser=p.COL_FILTER_EXPRESSION_END_CHAR=p.COL_FILTER_EXPRESSION_START_CHAR=void 0;let E=A(6487);class z{constructor(s,c){this.params=s,this.startPosition=c,this.type="column",this.valid=!0,this.hasStartChar=!1,this.hasEndChar=!1,this.colName=""}parse(s,c){if(s===p.COL_FILTER_EXPRESSION_START_CHAR&&!this.colName)this.hasStartChar=!0;else if(s===p.COL_FILTER_EXPRESSION_END_CHAR&&this.hasStartChar){if(this.parseColumn(!1,c))return this.hasEndChar=!0,!1;this.colName+=s}else this.colName+=s}getDisplayValue(){return(this.hasStartChar?p.COL_FILTER_EXPRESSION_START_CHAR:"")+this.colName+(this.hasEndChar?p.COL_FILTER_EXPRESSION_END_CHAR:"")}getColId(){return this.colId}complete(s){this.parseColumn(!0,s)}getValidationError(){var s;return this.valid?null:{message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidColumn"),startPosition:this.startPosition,endPosition:(s=this.endPosition)!=null?s:this.params.expression.length-1}}parseColumn(s,c){var g,f;this.endPosition=c;let h=this.params.advFilterExpSvc.getColId(this.colName);return h&&this.hasStartChar&&(this.colId=h.colId,(0,E.checkAndUpdateExpression)(this.params,this.colName,h.columnName,c-1),this.colName=h.columnName,this.column=this.params.colModel.getColDefCol(this.colId),this.column)?(this.baseCellDataType=(f=(g=this.params.dataTypeSvc)==null?void 0:g.getBaseDataType(this.column))!=null?f:"text",!0):(s&&(this.valid=!1),this.baseCellDataType="text",!1)}}class T{constructor(s,c,h){this.params=s,this.startPosition=c,this.baseCellDataType=h,this.type="operator",this.valid=!0,this.expectedNumOperands=0,this.operator=""}parse(s,c){if(s===" "||s===")"){if(this.parseOperator(!1,c-1))return!0;this.operator+=s}else this.operator+=s}complete(s){this.parseOperator(!0,s)}getValidationError(){var s;return this.valid?null:{message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidOption"),startPosition:this.startPosition,endPosition:(s=this.endPosition)!=null?s:this.params.expression.length-1}}getDisplayValue(){return this.operator}getOperatorKey(){return this.parsedOperator}parseOperator(s,c){let h=this.params.advFilterExpSvc.getDataTypeExpressionOperator(this.baseCellDataType),g=h.findOperator(this.operator);if(this.endPosition=c,g){this.parsedOperator=g;let S=h.operators[g];this.expectedNumOperands=S.numOperands;let w=S.displayValue;return(0,E.checkAndUpdateExpression)(this.params,this.operator,w,c),this.operator=w,!0}return(s||!(g===null))&&(this.valid=!1),!1}}class b{constructor(s,c,h,g){this.params=s,this.startPosition=c,this.baseCellDataType=h,this.column=g,this.type="operand",this.valid=!0,this.operand="",this.validationMessage=null}parse(s,c){if(s===" ")if(this.quotes)this.operand+=s;else return this.parseOperand(!1,c),!0;else if(s===")"){if(this.baseCellDataType==="number"||!this.quotes)return this.parseOperand(!1,c-1),!0;this.operand+=s}else if(!this.operand&&!this.quotes&&(s==="'"||s==='"'))this.quotes=s;else{if(this.quotes&&s===this.quotes)return this.parseOperand(!1,c),!1;this.operand+=s}}complete(s){this.parseOperand(!0,s)}getValidationError(){var s;return this.validationMessage?{message:this.validationMessage,startPosition:this.startPosition,endPosition:(s=this.endPosition)!=null?s:this.params.expression.length-1}:null}getRawValue(){return this.operand}getModelValue(){return this.modelValue}parseOperand(s,c){let{advFilterExpSvc:h}=this.params;if(this.endPosition=c,this.modelValue=this.operand,s&&this.quotes)this.valid=!1,this.validationMessage=h.translate("advancedFilterValidationMissingQuote");else if(this.modelValue==="")this.valid=!1,this.validationMessage=h.translate("advancedFilterValidationMissingValue");else{let g=h.getOperandModelValue(this.operand,this.baseCellDataType,this.column);switch(g!=null&&(this.modelValue=g),this.baseCellDataType){case"number":(this.quotes||isNaN(this.modelValue))&&(this.valid=!1,this.validationMessage=h.translate("advancedFilterValidationNotANumber"));break;case"date":case"dateString":g==null&&(this.valid=!1,this.validationMessage=h.translate("advancedFilterValidationInvalidDate"));break}}}}p.COL_FILTER_EXPRESSION_START_CHAR="[",p.COL_FILTER_EXPRESSION_END_CHAR="]";class C{constructor(s,c){this.params=s,this.startPosition=c,this.isAwaiting=!0}parseExpression(){var h,g;let s=this.startPosition,{expression:c}=this.params;for(;s<c.length;){let f=c[s];if(!(f===" "&&this.isAwaiting)){if(this.isAwaiting=!1,!this.parser){let w;this.columnParser?this.operatorParser?(this.operandParser=new b(this.params,s,this.columnParser.baseCellDataType,this.columnParser.column),w=this.operandParser):(this.operatorParser=new T(this.params,s,this.columnParser.baseCellDataType),w=this.operatorParser):(this.columnParser=new z(this.params,s),w=this.columnParser),this.parser=w}let S=this.parser.parse(f,s);if(S!=null){if(this.isComplete())return this.returnEndPosition(S?s-1:s,!0);this.parser=void 0,this.isAwaiting=!0}}s++}return(g=(h=this.parser)==null?void 0:h.complete)==null||g.call(h,s-1),this.returnEndPosition(s)}isValid(){return this.isComplete()&&this.columnParser.valid&&this.operatorParser.valid&&(!this.operandParser||this.operandParser.valid)}getValidationError(){var g,f,S,w,M;let s=(M=(S=(g=this.columnParser)==null?void 0:g.getValidationError())!=null?S:(f=this.operatorParser)==null?void 0:f.getValidationError())!=null?M:(w=this.operandParser)==null?void 0:w.getValidationError();if(s)return s;let c=this.params.expression.length,h;return this.columnParser?this.operatorParser?this.operatorParser.expectedNumOperands&&!this.operandParser&&(h="advancedFilterValidationMissingValue"):h="advancedFilterValidationMissingOption":h="advancedFilterValidationMissingColumn",h?{message:this.params.advFilterExpSvc.translate(h),startPosition:c,endPosition:c}:null}getFunctionString(s){return this.getFunctionCommon(s,(c,h,g,f)=>{let S=(0,E.escapeQuotes)(g),w=c==null?"":`, params.operands[${c}]`;return`params.operators[${h}].evaluator(expressionProxy.getValue('${S}', node), node, params.evaluatorParams[${f}]${w})`})}getFunctionParsed(s){return this.getFunctionCommon(s,(c,h,g,f)=>(S,w,M)=>M.operators[h].evaluator(S.getValue(g,w),w,M.evaluatorParams[f],c==null?void 0:M.operands[c]))}getAutocompleteListParams(s){if(this.isColumnPosition(s))return this.getColumnAutocompleteListParams(s);if(this.isOperatorPosition(s))return this.getOperatorAutocompleteListParams(s);if(!this.isBeyondEndPosition(s))return{enabled:!1}}updateExpression(s,c,h){var f,S,w,M,P;let{expression:g}=this.params;if(this.isColumnPosition(s))return(0,E.updateExpression)(this.params.expression,this.startPosition,(f=this.columnParser)!=null&&f.getColId()?this.columnParser.endPosition:(0,E.findEndPosition)(g,s).endPosition,this.params.advFilterExpSvc.getColumnValue(c),!0);if(this.isOperatorPosition(s)){let O=this.getBaseCellDataTypeFromOperatorAutocompleteType(h),G=this.hasOperand(O,c.key),j=G&&this.doesOperandNeedQuotes(O),Y;if(((S=this.operatorParser)==null?void 0:S.startPosition)!=null&&s<this.operatorParser.startPosition)Y=(0,E.updateExpression)(g,s,s,(w=c.displayValue)!=null?w:c.key,G,j);else{let J,ne=!1;if((M=this.operatorParser)!=null&&M.getOperatorKey())J=this.operatorParser.endPosition;else{let{endPosition:ce,isEmpty:fe}=(0,E.findEndPosition)(g,s,!0,!0);J=ce,ne=fe}Y=(0,E.updateExpression)(g,(0,E.findStartPosition)(g,this.columnParser.endPosition+1,J),J,(P=c.displayValue)!=null?P:c.key,G,j,ne)}return He(ge({},Y),{hideAutocomplete:!G})}return null}getModel(){let s=this.columnParser.getColId(),c={filterType:this.columnParser.baseCellDataType,colId:s,type:this.operatorParser.getOperatorKey()};return this.operatorParser.expectedNumOperands&&(c.filter=this.operandParser.getModelValue()),c}getFunctionCommon(s,c){var Y,J;let h=this.columnParser.getColId(),g=(Y=this.operatorParser)==null?void 0:Y.getOperatorKey(),{operators:f,evaluatorParams:S,operands:w}=s,M=this.params.advFilterExpSvc.getExpressionOperator(this.columnParser.baseCellDataType,g),P=this.addToListAndGetIndex(f,M),O=this.params.advFilterExpSvc.getExpressionEvaluatorParams(h),G=this.addToListAndGetIndex(S,O),j=((J=this.operatorParser)==null?void 0:J.expectedNumOperands)===0?void 0:this.addToListAndGetIndex(w,this.getOperandValue());return c(j,P,h,G)}getOperandValue(){let s=this.operandParser.getRawValue(),{baseCellDataType:c,column:h}=this.columnParser;switch(c){case"number":s=Number(s);break;case"date":case"dateString":s=this.params.valueSvc.parseValue(h,null,s,void 0);break}if(c==="dateString"){let{dataTypeSvc:g}=this.params;return g?g.getDateParserFunction(h)(s):s}return s}isComplete(){return!!(this.operatorParser&&(!this.operatorParser.expectedNumOperands||this.operatorParser.expectedNumOperands&&this.operandParser))}isColumnPosition(s){return!this.columnParser||this.columnParser.endPosition==null||s<=this.columnParser.endPosition+1}isOperatorPosition(s){return!this.operatorParser||this.operatorParser.endPosition==null||s<=this.operatorParser.endPosition+1}isBeyondEndPosition(s){return this.isComplete()&&this.endPosition!=null&&s>this.endPosition+1&&this.endPosition+1<this.params.expression.length}returnEndPosition(s,c){return this.endPosition=c?s:s-1,s}getColumnAutocompleteListParams(s){return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getColumnAutocompleteEntries(),"column",this.getColumnSearchString(s))}getColumnSearchString(s){var S,w,M,P,O;let c=(w=(S=this.columnParser)==null?void 0:S.getDisplayValue())!=null?w:"",h=(0,E.getSearchString)(c,s,((M=this.columnParser)==null?void 0:M.endPosition)==null?this.params.expression.length:this.columnParser.endPosition+1),g=((P=this.columnParser)==null?void 0:P.hasStartChar)&&h.length>0,f=((O=this.columnParser)==null?void 0:O.hasEndChar)&&h.length===c.length+2;return g?h.slice(1,f?-1:void 0):h}getOperatorAutocompleteListParams(s){var f,S,w,M,P;let c=(f=this.columnParser)==null?void 0:f.column;if(!c)return{enabled:!1};let h=this.columnParser.baseCellDataType,g=((S=this.operatorParser)==null?void 0:S.startPosition)!=null&&s<this.operatorParser.startPosition?"":(0,E.getSearchString)((M=(w=this.operatorParser)==null?void 0:w.getDisplayValue())!=null?M:"",s,((P=this.operatorParser)==null?void 0:P.endPosition)==null?this.params.expression.length:this.operatorParser.endPosition+1);return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getOperatorAutocompleteEntries(c,h),`operator-${h}`,g)}getBaseCellDataTypeFromOperatorAutocompleteType(s){return s==null?void 0:s.replace("operator-","")}hasOperand(s,c){var h,g;return!s||!c||((g=(h=this.params.advFilterExpSvc.getExpressionOperator(s,c))==null?void 0:h.numOperands)!=null?g:0)>0}doesOperandNeedQuotes(s){return s!=="number"}addToListAndGetIndex(s,c){let h=s.length;return s.push(c),h}}p.ColFilterExpressionParser=C},9459:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BooleanFilterExpressionOperators=p.ScalarFilterExpressionOperators=p.TextFilterExpressionOperators=p.findMatch=void 0;function A(C,d,s){let c=!1,h=C.toLocaleLowerCase(),g=h+" ",f=Object.entries(d).find(([,S])=>{let w=s(S).toLocaleLowerCase();return w.startsWith(g)&&(c=!0),w===h});return f?f[0]:c?null:void 0}p.findMatch=A;function E(C,d){return(d!=null?d:Object.keys(C)).map(c=>({key:c,displayValue:C[c].displayValue}))}class z{constructor(d){this.params=d,this.initOperators()}getEntries(d){return E(this.operators,d)}findOperator(d){return A(d,this.operators,({displayValue:s})=>s)}initOperators(){let{translate:d}=this.params;this.operators={contains:{displayValue:d("advancedFilterContains"),evaluator:(s,c,h,g)=>this.evaluateExpression(s,c,h,g,!1,(f,S)=>f.includes(S)),numOperands:1},notContains:{displayValue:d("advancedFilterNotContains"),evaluator:(s,c,h,g)=>this.evaluateExpression(s,c,h,g,!0,(f,S)=>!f.includes(S)),numOperands:1},equals:{displayValue:d("advancedFilterTextEquals"),evaluator:(s,c,h,g)=>this.evaluateExpression(s,c,h,g,!1,(f,S)=>f===S),numOperands:1},notEqual:{displayValue:d("advancedFilterTextNotEqual"),evaluator:(s,c,h,g)=>this.evaluateExpression(s,c,h,g,!0,(f,S)=>f!=S),numOperands:1},startsWith:{displayValue:d("advancedFilterStartsWith"),evaluator:(s,c,h,g)=>this.evaluateExpression(s,c,h,g,!1,(f,S)=>f.startsWith(S)),numOperands:1},endsWith:{displayValue:d("advancedFilterEndsWith"),evaluator:(s,c,h,g)=>this.evaluateExpression(s,c,h,g,!1,(f,S)=>f.endsWith(S)),numOperands:1},blank:{displayValue:d("advancedFilterBlank"),evaluator:s=>s==null||typeof s=="string"&&s.trim().length===0,numOperands:0},notBlank:{displayValue:d("advancedFilterNotBlank"),evaluator:s=>s!=null&&(typeof s!="string"||s.trim().length>0),numOperands:0}}}evaluateExpression(d,s,c,h,g,f){return d==null?g:c.caseSensitive?f(c.valueConverter(d,s),h):f(c.valueConverter(d,s).toLocaleLowerCase(),h.toLocaleLowerCase())}}p.TextFilterExpressionOperators=z;class T{constructor(d){this.params=d,this.initOperators()}getEntries(d){return E(this.operators,d)}findOperator(d){return A(d,this.operators,({displayValue:s})=>s)}initOperators(){let{translate:d,equals:s}=this.params;this.operators={equals:{displayValue:d("advancedFilterEquals"),evaluator:(c,h,g,f)=>this.evaluateSingleOperandExpression(c,h,g,f,!!g.includeBlanksInEquals,s),numOperands:1},notEqual:{displayValue:d("advancedFilterNotEqual"),evaluator:(c,h,g,f)=>this.evaluateSingleOperandExpression(c,h,g,f,!!g.includeBlanksInEquals,(S,w)=>!s(S,w)),numOperands:1},greaterThan:{displayValue:d("advancedFilterGreaterThan"),evaluator:(c,h,g,f)=>this.evaluateSingleOperandExpression(c,h,g,f,!!g.includeBlanksInGreaterThan,(S,w)=>S>w),numOperands:1},greaterThanOrEqual:{displayValue:d("advancedFilterGreaterThanOrEqual"),evaluator:(c,h,g,f)=>this.evaluateSingleOperandExpression(c,h,g,f,!!g.includeBlanksInGreaterThan,(S,w)=>S>=w),numOperands:1},lessThan:{displayValue:d("advancedFilterLessThan"),evaluator:(c,h,g,f)=>this.evaluateSingleOperandExpression(c,h,g,f,!!g.includeBlanksInLessThan,(S,w)=>S<w),numOperands:1},lessThanOrEqual:{displayValue:d("advancedFilterLessThanOrEqual"),evaluator:(c,h,g,f)=>this.evaluateSingleOperandExpression(c,h,g,f,!!g.includeBlanksInLessThan,(S,w)=>S<=w),numOperands:1},blank:{displayValue:d("advancedFilterBlank"),evaluator:c=>c==null,numOperands:0},notBlank:{displayValue:d("advancedFilterNotBlank"),evaluator:c=>c!=null,numOperands:0}}}evaluateSingleOperandExpression(d,s,c,h,g,f){return d==null?g:f(c.valueConverter(d,s),h)}}p.ScalarFilterExpressionOperators=T;class b{constructor(d){this.params=d,this.initOperators()}getEntries(d){return E(this.operators,d)}findOperator(d){return A(d,this.operators,({displayValue:s})=>s)}initOperators(){let{translate:d}=this.params;this.operators={true:{displayValue:d("advancedFilterTrue"),evaluator:s=>!!s,numOperands:0},false:{displayValue:d("advancedFilterFalse"),evaluator:s=>s===!1,numOperands:0},blank:{displayValue:d("advancedFilterBlank"),evaluator:s=>s==null,numOperands:0},notBlank:{displayValue:d("advancedFilterNotBlank"),evaluator:s=>s!=null,numOperands:0}}}}p.BooleanFilterExpressionOperators=b},4899:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FilterExpressionParser=void 0;let E=A(9471);class z{constructor(b){this.params=b,this.valid=!1}parseExpression(){this.joinExpressionParser=new E.JoinFilterExpressionParser(this.params,0);let b=this.joinExpressionParser.parseExpression();return this.valid=b>=this.params.expression.length-1&&this.joinExpressionParser.isValid(),this.params.expression}isValid(){return this.valid}getValidationMessage(){let b=this.joinExpressionParser.getValidationError();if(!b)return null;let{message:C,startPosition:d,endPosition:s}=b;return d<this.params.expression.length?this.params.advFilterExpSvc.translate("advancedFilterValidationMessage",[C,this.params.expression.slice(d,s+1).trim()]):this.params.advFilterExpSvc.translate("advancedFilterValidationMessageAtEnd",[C])}getFunctionString(){let b=this.createFunctionParams();return{functionString:`return ${this.joinExpressionParser.getFunctionString(b)};`,params:b}}getFunctionParsed(){let b=this.createFunctionParams();return{expressionFunction:this.joinExpressionParser.getFunctionParsed(b),params:b}}getAutocompleteListParams(b){var C;return(C=this.joinExpressionParser.getAutocompleteListParams(b))!=null?C:{enabled:!1}}updateExpression(b,C,d){return this.joinExpressionParser.updateExpression(b,C,d)}getModel(){return this.isValid()?this.joinExpressionParser.getModel():null}createFunctionParams(){return{operands:[],operators:[],evaluatorParams:[]}}}p.FilterExpressionParser=z},6487:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.escapeQuotes=p.checkAndUpdateExpression=p.findEndPosition=p.findStartPosition=p.updateExpression=p.getSearchString=void 0;function A(d,s,c){if(!d)return"";let h=c-s;return h?d.slice(0,d.length-h):d}p.getSearchString=A;function E(d,s,c,h,g,f,S){let w=c+(!d.length||S?0:1),M=0;return g&&(d[w]===" "?M=1:(h+=" ",f&&(h+='"'))),{updatedValue:d.slice(0,s)+h+d.slice(w),updatedPosition:s+h.length+M}}p.updateExpression=E;function z(d,s,c){let h=s;for(;h<c&&d[h]===" ";)h++;return h}p.findStartPosition=z;function T(d,s,c,h){let g=s,f=!1;for(;g<d.length;){let S=d[g];if(S==="("){h&&d[g-1]===" "?f=!0:g=g-1;break}else if(S===" "||c&&S===")"){g=g-1;break}g++}return{endPosition:g,isEmpty:f}}p.findEndPosition=T;function b(d,s,c,h){c!==s&&(d.expression=E(d.expression,h-s.length+1,h,c).updatedValue)}p.checkAndUpdateExpression=b;function C(d){return d.replace(/(['"])/,"\\$1")}p.escapeQuotes=C},9471:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.JoinFilterExpressionParser=void 0;let E=A(9023),z=A(9459),T=A(6487);class b{constructor(s){this.params=s,this.operators=[],this.operatorStartPositions=[],this.operatorEndPositions=[],this.activeOperator=0,this.validationError=null}parseExpression(s){this.operators.push(""),this.operatorStartPositions.push(s),this.operatorEndPositions.push(void 0);let{expression:c}=this.params;for(;s<c.length;){let h=c[s];if(h===" "){if(this.parseOperator(s-1))return this.activeOperator++,s-1;this.operators[this.activeOperator]+=h}else this.operators[this.activeOperator]+=h;s++}return this.parseOperator(s-1),s}isValid(){return!this.validationError&&(!this.operators.length||!!this.parsedOperator)}getValidationError(){return this.validationError}getFunction(){return this.parsedOperator==="OR"?"||":"&&"}getModel(){return this.parsedOperator==="OR"?"OR":"AND"}getAutocompleteListParams(s,c){let h;if(c==null)h="";else{let f=this.operators[c],S=this.operatorEndPositions[c];h=(0,T.getSearchString)(f,s,S==null?this.params.expression.length:S+1)}let g=this.params.advFilterExpSvc.getJoinOperatorAutocompleteEntries();return(c||c==null&&this.activeOperator)&&(g=g.filter(({key:f})=>f===this.parsedOperator)),this.params.advFilterExpSvc.generateAutocompleteListParams(g,"join",h)}updateExpression(s,c,h){var M,P;let{expression:g}=this.params,f=(M=c.displayValue)!=null?M:c.key;if(h===0)for(let O=this.operatorEndPositions.length-1;O>0;O--){let G=this.operatorEndPositions[O];G!=null&&(g=(0,T.updateExpression)(g,this.operatorStartPositions[O],G,f).updatedValue)}let S=this.operatorStartPositions.length>h?this.operatorStartPositions[h]:s,w=(P=this.operatorEndPositions.length>h?this.operatorEndPositions[h]:void 0)!=null?P:(0,T.findEndPosition)(g,s,!0).endPosition;return(0,T.updateExpression)(g,S,w,f,!0)}getNumOperators(){return this.operators.length}getLastOperatorEndPosition(){return this.operatorEndPositions[this.operatorEndPositions.length-1]}parseOperator(s){let c=this.operators.length>this.activeOperator?this.operators[this.activeOperator]:"",h=this.params.advFilterExpSvc.getExpressionJoinOperators(),g=(0,z.findMatch)(c,h,f=>f);if(g){this.operatorEndPositions[this.activeOperator]=s;let f=h[g];if(this.activeOperator){if(g!==this.parsedOperator)return this.validationError||(this.validationError={message:this.params.advFilterExpSvc.translate("advancedFilterValidationJoinOperatorMismatch"),startPosition:s-c.length+1,endPosition:s}),!1}else this.parsedOperator=g;return c!==f&&((0,T.checkAndUpdateExpression)(this.params,c,f,s),this.operators[this.activeOperator]=f),!0}else return g===null?!1:(this.validationError||(this.validationError={message:this.params.advFilterExpSvc.translate("advancedFilterValidationInvalidJoinOperator"),startPosition:s-c.length+1,endPosition:s}),!0)}}class C{constructor(s,c){this.params=s,this.startPosition=c,this.expectingExpression=!0,this.expectingOperator=!1,this.expressionParsers=[],this.operatorParser=new b(this.params),this.missingEndBracket=!1,this.extraEndBracket=!1}parseExpression(){let s=this.startPosition,{expression:c}=this.params;for(;s<c.length;){let h=c[s];if(h==="("&&!this.expectingOperator){let g=new C(this.params,s+1);s=g.parseExpression(),this.expressionParsers.push(g),this.expectingExpression=!1,this.expectingOperator=!0}else{if(h===")")return this.endPosition=s-1,this.startPosition===0&&(this.extraEndBracket=!0),s;if(h!==" ")if(this.expectingExpression){let g=new E.ColFilterExpressionParser(this.params,s);s=g.parseExpression(),this.expressionParsers.push(g),this.expectingExpression=!1,this.expectingOperator=!0}else this.expectingOperator&&(s=this.operatorParser.parseExpression(s),this.expectingOperator=!1,this.expectingExpression=!0)}s++}return this.startPosition>0&&(this.missingEndBracket=!0),s}isValid(){return!this.missingEndBracket&&!this.extraEndBracket&&this.expressionParsers.length===this.operatorParser.getNumOperators()+1&&this.operatorParser.isValid()&&this.expressionParsers.every(s=>s.isValid())}getValidationError(){let s=this.operatorParser.getValidationError();for(let h=0;h<this.expressionParsers.length;h++){let g=this.expressionParsers[h].getValidationError();if(g)return s&&s.startPosition<g.startPosition?s:g}if(s)return s;if(this.extraEndBracket)return{message:this.params.advFilterExpSvc.translate("advancedFilterValidationExtraEndBracket"),startPosition:this.endPosition+1,endPosition:this.endPosition+1};let c;return this.expressionParsers.length===this.operatorParser.getNumOperators()?c="advancedFilterValidationMissingCondition":this.missingEndBracket&&(c="advancedFilterValidationMissingEndBracket"),c?{message:this.params.advFilterExpSvc.translate(c),startPosition:this.params.expression.length,endPosition:this.params.expression.length}:null}getFunctionString(s){let c=this.expressionParsers.length>1,h=this.expressionParsers.map(g=>g.getFunctionString(s)).join(` ${this.operatorParser.getFunction()} `);return c?`(${h})`:h}getFunctionParsed(s){let c=this.operatorParser.getFunction(),h=this.expressionParsers.map(f=>f.getFunctionParsed(s)),g=c==="&&"?"every":"some";return(f,S,w)=>h[g](M=>M(f,S,w))}getAutocompleteListParams(s){if(this.endPosition!=null&&s>this.endPosition+1)return;if(!this.expressionParsers.length)return this.getColumnAutocompleteListParams();let c=this.getExpressionParserIndex(s);if(c==null)return this.params.expression[s]==="("?{enabled:!1}:this.getColumnAutocompleteListParams();let g=this.expressionParsers[c].getAutocompleteListParams(s);if(!g){if(c<this.expressionParsers.length-1)return this.operatorParser.getAutocompleteListParams(s,c);if(this.expressionParsers.length===this.operatorParser.getNumOperators()){let f=this.operatorParser.getLastOperatorEndPosition();return f==null||s<=f+1?this.operatorParser.getAutocompleteListParams(s,this.operatorParser.getNumOperators()-1):this.getColumnAutocompleteListParams()}return this.params.expression[s-1]===")"?{enabled:!1}:this.operatorParser.getAutocompleteListParams(s)}return g}updateExpression(s,c,h){var M;let g=this.params.expression,f=this.getExpressionParserIndex(s);if(f==null){let P=h==="column"?this.params.advFilterExpSvc.getColumnValue(c):(M=c.displayValue)!=null?M:c.key;return(0,T.updateExpression)(g,this.startPosition,this.startPosition,P,!0)}let w=this.expressionParsers[f].updateExpression(s,c,h);return w==null?h==="column"?(0,T.updateExpression)(g,s,g.length-1,this.params.advFilterExpSvc.getColumnValue(c),!0):this.endPosition!=null&&s>this.endPosition+1?null:this.operatorParser.updateExpression(s,c,f):w}getModel(){return this.expressionParsers.length>1?{filterType:"join",type:this.operatorParser.getModel(),conditions:this.expressionParsers.map(s=>s.getModel())}:this.expressionParsers[0].getModel()}getColumnAutocompleteListParams(){return this.params.advFilterExpSvc.generateAutocompleteListParams(this.params.advFilterExpSvc.getColumnAutocompleteEntries(),"column","")}getExpressionParserIndex(s){let c;for(let h=0;h<this.expressionParsers.length&&!(this.expressionParsers[h].startPosition>s);h++)c=h;return c}}p.JoinFilterExpressionParser=C},9206:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.EnterpriseCoreModule=p.AgWatermark=void 0;let E=A(3159),z=A(7205);var T=A(3879);Object.defineProperty(p,"AgWatermark",{enumerable:!0,get:function(){return T.AgWatermark}}),p.EnterpriseCoreModule={moduleName:"EnterpriseCore",version:z.VERSION,beans:[E.GridLicenseManager],icons:{accordionOpen:"tree-open",accordionClosed:"tree-closed",accordionIndeterminate:"tree-indeterminate",close:"cross",cancel:"cancel",maximize:"maximize",minimize:"minimize",columnDrag:"grip"},dependsOn:[]}},2529:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AggColumnNameService=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="aggColNameSvc"}getHeaderName(b,C){var w;if(this.gos.get("suppressAggFuncInHeader"))return C;let{valueColsSvc:d,colModel:s,rowGroupColsSvc:c}=this.beans,h=b.getColDef().pivotValueColumn,g=(0,E._exists)(h),f=null,S;if(g){let M=(w=d==null?void 0:d.columns)!=null?w:[],P=this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&M.length===1,O=b.getColDef().pivotTotalColumnIds!==void 0;if(P&&!O)return C;f=h?h.getAggFunc():null,S=!0}else{let M=b.isValueActive(),P=s.isPivotMode()||(c==null?void 0:c.columns.length)!==0;M&&P?(f=b.getAggFunc(),S=!0):S=!1}if(S){let M=typeof f=="string"?f:"func";return`${this.getLocaleTextFunc()(M,M)}(${C})`}return C}}p.AggColumnNameService=z},5780:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AggFuncService=void 0;let E=A(6624),z={sum:"Sum",first:"First",last:"Last",min:"Min",max:"Max",count:"Count",avg:"Average"};class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="aggFuncSvc",this.aggFuncsMap={},this.initialised=!1}postConstruct(){this.init()}init(){this.initialised||(this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gos.get("aggFuncs")))}initialiseWithDefaultAggregations(){let S=this.aggFuncsMap;S.sum=b,S.first=C,S.last=d,S.min=s,S.max=c,S.count=h,S.avg=g,this.initialised=!0}isAggFuncPossible(S,w){let P=this.getFuncNames(S).includes(w),O=(0,E._exists)(this.aggFuncsMap[w]);return P&&O}getDefaultFuncLabel(S){var w;return(w=z[S])!=null?w:S}getDefaultAggFunc(S){let w=S.getColDef().defaultAggFunc;if((0,E._exists)(w)&&this.isAggFuncPossible(S,w))return w;if(this.isAggFuncPossible(S,"sum"))return"sum";let M=this.getFuncNames(S);return M!=null&&M.length?M[0]:null}addAggFuncs(S){this.init(),S&&Object.entries(S).forEach(([w,M])=>{this.aggFuncsMap[w]=M})}getAggFunc(S){return this.init(),this.aggFuncsMap[S]}getFuncNames(S){let w=S.getColDef().allowedAggFuncs;return w==null?Object.keys(this.aggFuncsMap).sort():w}clear(){this.aggFuncsMap={}}}p.AggFuncService=T;function b(f){let{values:S}=f,w=null;for(let M=0;M<S.length;M++){let P=S[M];typeof P=="number"?w===null?w=P:w+=typeof w=="number"?P:BigInt(P):typeof P=="bigint"&&(w===null?w=P:w=(typeof w=="bigint"?w:BigInt(w))+P)}return w}function C(f){return f.values.length>0?f.values[0]:null}function d(f){return f.values.length>0?(0,E._last)(f.values):null}function s(f){let{values:S}=f,w=null;for(let M=0;M<S.length;M++){let P=S[M];(typeof P=="number"||typeof P=="bigint")&&(w===null||w>P)&&(w=P)}return w}function c(f){let{values:S}=f,w=null;for(let M=0;M<S.length;M++){let P=S[M];(typeof P=="number"||typeof P=="bigint")&&(w===null||w<P)&&(w=P)}return w}function h(f){var P,O;let{values:S}=f,w=0;for(let G=0;G<S.length;G++){let j=S[G];w+=j!=null&&typeof j.value=="number"?j.value:1}let M=(O=(P=f.rowNode)==null?void 0:P.aggData)==null?void 0:O[f.column.getColId()];return M&&M.value===w?M:{value:w,toString:function(){return this.value.toString()},toNumber:function(){return this.value}}}function g(f){var G,j,Y;let{values:S}=f,w=0,M=0;for(let J=0;J<S.length;J++){let ne=S[J],ce=null;typeof ne=="number"||typeof ne=="bigint"?(ce=ne,M++):ne!=null&&(typeof ne.value=="number"||typeof ne.value=="bigint")&&typeof ne.count=="number"&&(ce=ne.value*(typeof ne.value=="number"?ne.count:BigInt(ne.count)),M+=ne.count),typeof ce=="number"?w+=typeof w=="number"?ce:BigInt(ce):typeof ce=="bigint"&&(w=(typeof w=="bigint"?w:BigInt(w))+ce)}let P=null;M>0&&(P=w/(typeof w=="number"?M:BigInt(M)));let O=(Y=(G=f.rowNode)==null?void 0:G.aggData)==null?void 0:Y[(j=f.column)==null?void 0:j.getColId()];return O&&O.count===M&&O.value===P?O:{count:M,value:P,toString:function(){return typeof this.value=="number"||typeof this.value=="bigint"?this.value.toString():""},toNumber:function(){return this.value}}}},1872:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.setColumnAggFunc=p.clearAggFuncs=p.addAggFuncs=void 0;function A(T,b){T.aggFuncSvc&&T.aggFuncSvc.addAggFuncs(b)}p.addAggFuncs=A;function E(T){T.aggFuncSvc&&T.aggFuncSvc.clear()}p.clearAggFuncs=E;function z(T,b,C){var d,s;(s=(d=T.valueColsSvc)==null?void 0:d.setColumnAggFunc)==null||s.call(d,b,C,"api")}p.setColumnAggFunc=z},7032:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AggregationModule=p.SharedAggregationModule=void 0;let E=A(9206),z=A(7205),T=A(2529),b=A(5780),C=A(1872),d=A(3438),s=A(6948),c=A(182),h=A(7926);p.SharedAggregationModule={moduleName:"SharedAggregation",version:z.VERSION,beans:[b.AggFuncService,T.AggColumnNameService,c.FooterService,h.ValueColsSvc],apiFunctions:{addAggFuncs:C.addAggFuncs,clearAggFuncs:C.clearAggFuncs,setColumnAggFunc:C.setColumnAggFunc},dependsOn:[E.EnterpriseCoreModule]},p.AggregationModule={moduleName:"Aggregation",version:z.VERSION,beans:[d.AggregationStage,s.FilterAggregatesStage],rowModels:["clientSide"],dependsOn:[p.SharedAggregationModule]}},3438:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AggregationStage=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="aggStage",this.refreshProps=new Set(["getGroupRowAgg","alwaysAggregateAtRootLevel","suppressAggFilteredOnly","grandTotalRow"]),this.step="aggregate"}wireBeans(b){this.colModel=b.colModel,this.aggFuncSvc=b.aggFuncSvc,this.pivotColsSvc=b.pivotColsSvc,this.valueColsSvc=b.valueColsSvc,this.pivotResultCols=b.pivotResultCols,this.valueSvc=b.valueSvc}execute(b){var c,h,g;let C=!((h=(c=this.valueColsSvc)==null?void 0:c.columns)!=null&&h.length),d=!this.gos.getCallback("getGroupRowAgg");if(C&&d&&((g=b.changedPath)!=null&&g.active))return;let s=this.createAggDetails(b);this.recursivelyCreateAggData(s)}createAggDetails(b){var h;let C=this.colModel.isPivotActive(),d=(h=this.valueColsSvc)==null?void 0:h.columns,s=C&&this.pivotColsSvc?this.pivotColsSvc.columns:[];return{alwaysAggregateAtRootLevel:this.gos.get("alwaysAggregateAtRootLevel"),groupIncludeTotalFooter:!!(0,E._getGrandTotalRow)(this.gos),changedPath:b.changedPath,valueColumns:d!=null?d:[],pivotColumns:s,filteredOnly:!this.isSuppressAggFilteredOnly(),userAggFunc:this.gos.getCallback("getGroupRowAgg")}}isSuppressAggFilteredOnly(){return(0,E._getGroupAggFiltering)(this.gos)!==void 0||this.gos.get("suppressAggFilteredOnly")}recursivelyCreateAggData(b){let C=d=>{if(!d.hasChildren()){d.aggData&&this.setAggData(d,null);return}if(d.level===-1&&!b.groupIncludeTotalFooter){let h=!this.colModel.isPivotMode();if(!b.alwaysAggregateAtRootLevel&&h){this.setAggData(d,null);return}}this.aggregateRowNode(d,b)};b.changedPath.forEachChangedNodeDepthFirst(C,!0)}aggregateRowNode(b,C){let d=C.valueColumns.length===0,s=C.pivotColumns.length===0,c;C.userAggFunc?c=C.userAggFunc({nodes:b.childrenAfterFilter}):d?c=null:s?c=this.aggregateRowNodeUsingValuesOnly(b,C):c=this.aggregateRowNodeUsingValuesAndPivot(b),this.setAggData(b,c),b.sibling&&this.setAggData(b.sibling,c)}aggregateRowNodeUsingValuesAndPivot(b){var c,h,g,f;let C={},d=(g=(h=(c=this.pivotResultCols)==null?void 0:c.getPivotResultCols())==null?void 0:h.list)!=null?g:[],s=!0;for(let S=0;S<d.length;S++){let w=d[S],M=w.getColDef();if(M.pivotTotalColumnIds!=null){s=!1;continue}let P=(f=M.pivotKeys)!=null?f:[],O;b.leafGroup?O=this.getValuesFromMappedSet(b.childrenMapped,P,M.pivotValueColumn):O=this.getValuesPivotNonLeaf(b,M.colId),C[M.colId]=this.aggregateValues(O,M.pivotValueColumn.getAggFunc(),M.pivotValueColumn,b,w)}if(!s)for(let S=0;S<d.length;S++){let w=d[S],M=w.getColDef();if(M.pivotTotalColumnIds==null||!M.pivotTotalColumnIds.length)continue;let P=M.pivotTotalColumnIds.map(O=>C[O]);C[M.colId]=this.aggregateValues(P,M.pivotValueColumn.getAggFunc(),M.pivotValueColumn,b,w)}return C}aggregateRowNodeUsingValuesOnly(b,C){let d={},{changedPath:s,valueColumns:c,filteredOnly:h}=C,g=s.active?s.getValueColumnsForNode(b,c):c,f=s.active?s.getNotValueColumnsForNode(b,c):null,S=this.getValuesNormal(b,g,h),w=b.aggData;return g.forEach((M,P)=>{d[M.getId()]=this.aggregateValues(S[P],M.getAggFunc(),M,b)}),f&&w&&f.forEach(M=>{d[M.getId()]=w[M.getId()]}),d}getValuesPivotNonLeaf(b,C){return b.childrenAfterFilter.map(d=>d.aggData[C])}getValuesFromMappedSet(b,C,d){let s=b;for(let c=0;c<C.length;c++){let h=C[c];s=s?s[h]:null}return s?s.map(c=>this.valueSvc.getValue(d,c)):[]}getValuesNormal(b,C,d){let s=[];C.forEach(()=>s.push([]));let c=C.length,h=d?b.childrenAfterFilter:b.childrenAfterGroup,g=h.length;for(let f=0;f<g;f++){let S=h[f];for(let w=0;w<c;w++){let M=C[w],P=this.valueSvc.getValue(M,S);s[w].push(P)}}return s}aggregateValues(b,C,d,s,c){let h=typeof C=="string"?this.aggFuncSvc.getAggFunc(C):C;if(typeof h!="function")return(0,E._error)(109,{aggFuncOrString:C}),null;let g=h,f=this.gos.addGridCommonParams({values:b,column:d,colDef:d?d.getColDef():void 0,pivotResultColumn:c,rowNode:s,data:s?s.data:void 0});return g(f)}setAggData(b,C){let d=b.aggData;if(b.aggData=C,b.__localEventService){let s=c=>{let h=b.aggData?b.aggData[c]:void 0,g=d?d[c]:void 0;if(h===g)return;let f=this.colModel.getCol(c);f&&b.dispatchCellChangedEvent(f,h,g)};if(d)for(let c of Object.keys(d))s(c);if(C)for(let c of Object.keys(C))(!d||!(c in d))&&s(c)}}}p.AggregationStage=z},6948:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FilterAggregatesStage=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="filterAggStage",this.refreshProps=new Set([]),this.step="filter_aggregates"}wireBeans(b){this.filterManager=b.filterManager}execute(b){var w,M;let C=this.beans.colModel.isPivotMode(),d=((w=this.filterManager)==null?void 0:w.isAggregateFilterPresent())||((M=this.filterManager)==null?void 0:M.isAggregateQuickFilterPresent()),s=P=>!P.node.group,c=P=>P.node.leafGroup,h=(0,E._getGroupAggFiltering)(this.gos)||(C?c:s),{changedPath:g}=b,f=(P,O=!1)=>{P.childrenAfterFilter&&(P.childrenAfterAggFilter=P.childrenAfterFilter,O&&P.childrenAfterAggFilter.forEach(G=>f(G,O)),this.setAllChildrenCount(P)),P.sibling&&(P.sibling.childrenAfterAggFilter=P.childrenAfterAggFilter)},S=P=>{var O;P.childrenAfterAggFilter=((O=P.childrenAfterFilter)==null?void 0:O.filter(G=>{var J;return h({node:G})&&this.filterManager.doesRowPassAggregateFilters({rowNode:G})?(f(G,!0),!0):(J=G.childrenAfterAggFilter)==null?void 0:J.length}))||null,this.setAllChildrenCount(P),P.sibling&&(P.sibling.childrenAfterAggFilter=P.childrenAfterAggFilter)};g.forEachChangedNodeDepthFirst(d?S:f,!0)}setAllChildrenCountTreeData(b){var s;let C=b.childrenAfterAggFilter,d=0;if(C){let c=C.length;d=c;for(let h=0;h<c;++h)d+=(s=C[h].allChildrenCount)!=null?s:0}b.setAllChildrenCount(d===0&&b.level>=0?null:d)}setAllChildrenCountGridGrouping(b){let C=0;b.childrenAfterAggFilter.forEach(d=>{d.group?C+=d.allChildrenCount:C++}),b.setAllChildrenCount(C)}setAllChildrenCount(b){if(!b.hasChildren()){b.setAllChildrenCount(null);return}this.gos.get("treeData")?this.setAllChildrenCountTreeData(b):this.setAllChildrenCountGridGrouping(b)}}p.FilterAggregatesStage=z},182:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FooterService=void 0;let E=A(6624),z=A(6432);class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="footerSvc"}addNodes(C,d,s,c,h,g){var G;let f=(G=d[0])==null?void 0:G.parent;if(!f)return;let{index:S}=C,w=c&&(0,E._getGrandTotalRow)(this.gos),M=(0,E._getGroupTotalRowCallback)(this.gos),P=c&&M({node:f});if(f===h){w===g&&((0,z._createRowNodeFooter)(f,this.beans),s(f.sibling,S++));return}P===g&&((0,z._createRowNodeFooter)(f,this.beans),s(f.sibling,S++))}getTopDisplayIndex(C,d,s,c){let h=d;if(C[0].footer){if(d===0)return 0;h-=1}let g=C[C.length-1],f=h>=s.length;return g.footer&&f?g.rowIndex:c(h)}}p.FooterService=T},6432:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p._destroyRowNodeFooter=p._createRowNodeFooter=void 0;let E=A(6624),z=new Set(["__localEventService","__objectId","sticky","__autoHeights","__checkAutoHeightsDebounced"]);function T(C,d){if(C.sibling)return;let s=new E.RowNode(d);Object.keys(C).forEach(c=>{z.has(c)||(s[c]=C[c])}),s.footer=!0,s.setRowTop(null),s.setRowIndex(null),s.oldRowTop=null,s.id="rowGroupFooter_"+C.id,s.sibling=C,C.sibling=s}p._createRowNodeFooter=T;function b(C){C.sibling&&(C.sibling.setRowTop(null),C.sibling.setRowIndex(null),C.sibling=void 0)}p._destroyRowNodeFooter=b},7926:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ValueColsSvc=void 0;let E=A(6624);class z extends E.BaseColsService{constructor(){super(...arguments),this.beanName="valueColsSvc",this.eventName="columnValueChanged",this.columnProcessors={set:(b,C,d)=>this.setValueActive(C,b,d),add:(b,C,d)=>this.setValueActive(!0,b,d),remove:(b,C,d)=>this.setValueActive(!1,b,d)},this.columnExtractors={setFlagFunc:(b,C,d)=>this.setColValueActive(b,C,d),getIndexFunc:()=>{},getInitialIndexFunc:()=>{},getValueFunc:b=>{let C=b.aggFunc;if(C===null||C==="")return null;if(C!==void 0)return!!C},getInitialValueFunc:b=>b.initialAggFunc!=null&&b.initialAggFunc!=""},this.modifyColumnsNoEventsCallbacks={addCol:b=>this.columns.push(b),removeCol:b=>(0,E._removeFromArray)(this.columns,b)}}extractCols(b,C){return this.columns=super.extractCols(b,C),this.columns.forEach(d=>{let s=d.getColDef();s.aggFunc!=null&&s.aggFunc!=""?this.setColAggFunc(d,s.aggFunc):d.getAggFunc()||this.setColAggFunc(d,s.initialAggFunc)}),this.columns}setColumnAggFunc(b,C,d){if(!b)return;let s=this.colModel.getColDefCol(b);s&&(this.setColAggFunc(s,C),this.dispatchColumnChangedEvent(this.eventSvc,this.eventName,[s],d))}syncColumnWithState(b,C,d){let s=d("aggFunc").value1;s!==void 0&&(typeof s=="string"?(this.setColAggFunc(b,s),b.isValueActive()||(this.setColValueActive(b,!0,C),this.modifyColumnsNoEventsCallbacks.addCol(b))):((0,E._exists)(s)&&(0,E._warn)(33),b.isValueActive()&&(this.setColValueActive(b,!1,C),this.modifyColumnsNoEventsCallbacks.removeCol(b))))}setValueActive(b,C,d){if(b!==C.isValueActive()&&(this.setColValueActive(C,b,d),b&&!C.getAggFunc()&&this.aggFuncSvc)){let s=this.aggFuncSvc.getDefaultAggFunc(C);this.setColAggFunc(C,s)}}setColAggFunc(b,C){b.aggFunc=C,b.dispatchStateUpdatedEvent("aggFunc")}setColValueActive(b,C,d){b.aggregationActive!==C&&(b.aggregationActive=C,b.dispatchColEvent("columnValueChanged",d))}}p.ValueColsSvc=z},1809:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AllEnterpriseModule=void 0;let E=A(6624),z=A(7976),T=A(1527),b=A(3766),C=A(6455),d=A(2886),s=A(2515),c=A(1594),h=A(7130),g=A(5434),f=A(5470),S=A(266),w=A(9327),M=A(1442),P=A(9074),O=A(9002),G=A(6358),j=A(2949),Y=A(8450),J=A(9428),ne=A(7205),ce=A(7794),fe=[E.AllCommunityModule,b.ClipboardModule,C.ColumnsToolPanelModule,d.ExcelExportModule,s.FiltersToolPanelModule,c.MasterDetailModule,h.ColumnMenuModule,h.ContextMenuModule,S.CellSelectionModule,w.RichSelectModule,M.RowGroupingModule,M.RowGroupingPanelModule,M.GroupFilterModule,P.ServerSideRowModelModule,P.ServerSideRowModelApiModule,O.SetFilterModule,g.MultiFilterModule,z.AdvancedFilterModule,G.SideBarModule,Y.StatusBarModule,ce.ViewportRowModelModule,f.PivotModule,J.TreeDataModule],xe="AllEnterprise";p.AllEnterpriseModule={with:Le=>({moduleName:xe,version:ne.VERSION,dependsOn:[...fe,T.IntegratedChartsModule.with(Le),j.SparklinesModule.with(Le)]}),moduleName:xe,version:ne.VERSION,dependsOn:fe}},7672:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SkeletonCellRendererModule=p.LoadingCellRendererModule=void 0;let E=A(9206),z=A(7205),T=A(1565),b=A(780);p.LoadingCellRendererModule={moduleName:"LoadingCellRenderer",version:z.VERSION,userComponents:{agLoadingCellRenderer:T.LoadingCellRenderer},icons:{groupLoading:"loading"},dependsOn:[E.EnterpriseCoreModule]},p.SkeletonCellRendererModule={moduleName:"SkeletonCellRenderer",version:z.VERSION,userComponents:{agSkeletonCellRenderer:b.SkeletonCellRenderer},dependsOn:[E.EnterpriseCoreModule]}},1565:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LoadingCellRenderer=void 0;let E=A(6624);class z extends E.Component{constructor(){super(`<div class="ag-loading">
            <span class="ag-loading-icon" data-ref="eLoadingIcon"></span>
            <span class="ag-loading-text" data-ref="eLoadingText"></span>
        </div>`),this.eLoadingIcon=E.RefPlaceholder,this.eLoadingText=E.RefPlaceholder}init(b){b.node.failedLoad?this.setupFailed():this.setupLoading()}setupFailed(){let b=this.getLocaleTextFunc();this.eLoadingText.innerText=b("loadingError","ERR")}setupLoading(){let b=(0,E._createIconNoSpan)("groupLoading",this.beans,null);b&&this.eLoadingIcon.appendChild(b);let C=this.getLocaleTextFunc();this.eLoadingText.innerText=C("loadingOoo","Loading")}refresh(b){return!1}}p.LoadingCellRenderer=z},780:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SkeletonCellRenderer=void 0;let E=A(6624);class z extends E.Component{constructor(){super('<div class="ag-skeleton-container"></div>')}init(b){let C=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",C),this.addDestroyFunc(()=>(0,E._setAriaLabelledBy)(b.eParentOfValue)),(0,E._setAriaLabelledBy)(b.eParentOfValue,C),b.node.failedLoad?this.setupFailed():this.setupLoading(b)}setupFailed(){let b=this.getLocaleTextFunc();this.getGui().innerText=b("loadingError","ERR");let C=b("ariaSkeletonCellLoadingFailed","Row failed to load");(0,E._setAriaLabel)(this.getGui(),C)}setupLoading(b){let d=(0,E._getDocument)(this.beans).createElement("div");d.classList.add("ag-skeleton-effect");let s=b.node.rowIndex;if(s!=null){let g=75+25*(s%2===0?Math.sin(s):Math.cos(s));d.style.width=`${g}%`}this.getGui().appendChild(d);let h=this.getLocaleTextFunc()("ariaSkeletonCellLoading","Row data is loading");(0,E._setAriaLabel)(this.getGui(),h)}refresh(b){return!1}}p.SkeletonCellRenderer=z},2459:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgChartsExports=void 0;let E=A(6624);class z extends E.BeanStub{constructor(b){super(),this.beanName="agChartsExports",this.isEnterprise=!1,this.create=b.create,this._Theme=b._Theme,this._Scene=b._Scene,this.isEnterprise=b.isEnterprise,this._Util=b._Util}}p.AgChartsExports=z},3251:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartController=p.DEFAULT_THEMES=void 0;let E=A(6624),z=A(8987),T=A(8592),b=A(8889),C=A(4237);p.DEFAULT_THEMES=["ag-default","ag-material","ag-sheets","ag-polychroma","ag-vivid"];class d extends E.BeanStub{wireBeans(c){this.rangeSvc=c.rangeSvc,this.agChartsExports=c.agChartsExports}constructor(c){super(),this.model=c,this.isEnterprise=()=>this.agChartsExports.isEnterprise}postConstruct(){this.setChartRange(),this.model.unlinked&&this.rangeSvc&&this.rangeSvc.setCellRanges([]);let c=this.updateForGridChange.bind(this,{});this.addManagedEventListeners({cellSelectionChanged:h=>{h.id&&h.id===this.model.chartId&&this.updateForRangeChange()},columnMoved:c,columnPinned:c,columnVisible:c,columnRowGroupChanged:c,modelUpdated:c,cellValueChanged:this.updateForDataChange.bind(this)})}update(c){if(!this.validUpdateType(c))return!1;let h=(0,b.validateUpdateParams)(c,this.agChartsExports.isEnterprise);if(!h)return!1;let g=h===!0?c:h;return this.applyValidatedChartParams(g),!0}applyValidatedChartParams(c){var O,G,j,Y,J,ne,ce,fe,xe;let{chartId:h,chartType:g,chartThemeName:f,unlinkChart:S}=c,w={chartId:h,pivotChart:this.model.pivotChart,chartType:g!=null?g:this.model.chartType,chartThemeName:f!=null?f:this.model.chartThemeName,unlinkChart:S!=null?S:this.model.unlinked,cellRange:this.model.suppliedCellRange,switchCategorySeries:this.model.switchCategorySeries,aggFunc:this.model.aggFunc,seriesChartTypes:void 0,suppressChartRanges:!1,crossFiltering:!1},M=ge({},w);switch(c.type){case"rangeChartUpdate":M.cellRange=(O=this.createCellRange(c))!=null?O:this.model.suppliedCellRange,M.switchCategorySeries=(G=c.switchCategorySeries)!=null?G:this.model.switchCategorySeries,M.aggFunc=(j=c.aggFunc)!=null?j:this.model.aggFunc,M.seriesChartTypes=c.seriesChartTypes,M.suppressChartRanges=(Y=c.suppressChartRanges)!=null?Y:this.model.suppressChartRanges,M.seriesGroupType=(J=c.seriesGroupType)!=null?J:this.model.seriesGroupType;break;case"crossFilterChartUpdate":M.cellRange=(ne=this.createCellRange(c))!=null?ne:this.model.suppliedCellRange,M.switchCategorySeries=!1,M.aggFunc=(ce=c.aggFunc)!=null?ce:this.model.aggFunc,M.crossFiltering=!0,M.suppressChartRanges=(fe=c.suppressChartRanges)!=null?fe:this.model.suppressChartRanges;break;case"pivotChartUpdate":M.switchCategorySeries=!1;break}this.model.updateModel(M),M.unlinkChart||M.suppressChartRanges?(xe=this.rangeSvc)==null||xe.setCellRanges([]):this.setChartRange()}updateForGridChange(c){if(this.model.unlinked)return;let{maintainColState:h,setColsFromRange:g}=c!=null?c:{};this.model.updateCellRanges({maintainColState:h,setColsFromRange:g}),this.model.updateData(),this.setChartRange()}updateForDataChange(){this.model.unlinked||(this.model.updateData(),this.raiseChartModelUpdateEvent())}updateForRangeChange(){this.updateForGridChange({setColsFromRange:!0}),this.raiseChartRangeSelectionChangedEvent()}updateForPanelChange(c){this.model.updateCellRanges(c),this.model.updateData(),c.skipAnimation&&this.getChartProxy().getChartRef().skipAnimations(),this.setChartRange(),this.raiseChartRangeSelectionChangedEvent()}updateThemeOverrides(c){this.chartProxy.updateThemeOverrides(c)}getChartUpdateParams(c){let g=this.getSelectedValueColState().map(M=>({colId:M.colId,displayName:M.displayName})),f=this.getChartData(),S=this.getSelectedDimensions(),w={data:f,groupData:this.model.groupChartData,grouping:this.isGrouping(),categories:S.map(M=>{var P;return{id:M.colId,name:M.displayName,chartDataType:(P=this.model.categoryAxisType)!=null?P:this.model.getChartDataType(M.colId)}}),fields:g,chartId:this.getChartId(),getCrossFilteringContext:()=>({lastSelectedChartId:"xxx"}),seriesChartTypes:this.getSeriesChartTypes(),updatedOverrides:c,seriesGroupType:this.model.seriesGroupType};return this.isCategorySeriesSwitched()?this.invertCategorySeriesParams(w):w}invertCategorySeriesParams(c){let[h]=c.categories,g=[{id:T.DEFAULT_CHART_CATEGORY,name:""}],f=c.data.map((w,M)=>{let P=`${h.id}:${M}`,O=w[h.id],G=O==null?"":String(O);return{colId:P,displayName:G}}),S=c.fields.map(w=>{let M={[T.DEFAULT_CHART_CATEGORY]:w.displayName};for(let[P,O]of c.data.entries()){let G=`${h.id}:${P}`,j=O[w.colId];M[G]=j}return M});return He(ge({},c),{categories:g,fields:f,data:S})}getChartModel(){let c=this.model.pivotChart?"pivot":"range",h=this.isComboChart()?this.model.comboChartModel.seriesChartTypes:void 0;return{modelType:c,chartId:this.model.chartId,chartType:this.model.chartType,chartThemeName:this.getChartThemeName(),chartOptions:this.chartProxy.getChartThemeOverrides(),chartPalette:this.chartProxy.getChartPalette(),cellRange:this.getCellRangeParams(),switchCategorySeries:this.model.switchCategorySeries,suppressChartRanges:this.model.suppressChartRanges,aggFunc:this.model.aggFunc,unlinkChart:this.model.unlinked,seriesChartTypes:h,seriesGroupType:this.model.seriesGroupType}}getChartId(){return this.model.chartId}getChartData(){return this.model.chartData}getChartType(){return this.model.chartType}setChartType(c){this.updateMultiSeriesAndCategory(this.model.chartType,c),this.model.chartType=c,this.model.comboChartModel.updateSeriesChartTypes(),this.model.switchCategorySeries=!1,this.model.categoryAxisType=void 0,this.model.seriesGroupType=void 0,this.raiseChartModelUpdateEvent(),this.raiseChartOptionsChangedEvent()}isCategorySeriesSwitched(){return this.model.switchCategorySeries&&!this.model.isGrouping()}switchCategorySeries(c){(0,C.supportsInvertedCategorySeries)(this.getChartType())&&(this.model.switchCategorySeries=c,this.raiseChartModelUpdateEvent())}getAggFunc(){return this.model.aggFunc}setAggFunc(c,h){this.model.aggFunc!==c&&(this.model.aggFunc=c,!h&&(this.model.updateData(),this.raiseChartModelUpdateEvent()))}updateMultiSeriesAndCategory(c,h){var P,O;let g=(G,j)=>{let Y=0;for(let J of G)J.selected&&(Y>=j?J.selected=!1:Y++);Y===0&&(G[0].selected=!0)},f=(0,C.getMaxNumCategories)(h),S=(0,C.getMaxNumSeries)(h),w=f!=null&&((P=(0,C.getMaxNumCategories)(c))!=null?P:100)>(f!=null?f:100),M=S!=null&&((O=(0,C.getMaxNumSeries)(c))!=null?O:100)>(S!=null?S:100);w&&g(this.model.dimensionColState,f),M&&g(this.model.valueColState,S),(w||M)&&(this.model.resetCellRanges(w,M),this.setChartRange(!0))}setChartThemeName(c,h){this.model.chartThemeName=c,h||(this.raiseChartModelUpdateEvent(),this.raiseChartOptionsChangedEvent())}getChartThemeName(){return this.model.chartThemeName}isPivotChart(){return this.model.pivotChart}isPivotMode(){return this.model.isPivotMode()}isGrouping(){return this.model.isGrouping()}isCrossFilterChart(){return this.model.crossFiltering}getThemeNames(){return this.gos.get("chartThemes")||p.DEFAULT_THEMES}getThemes(){return this.getThemeNames().map(h=>{let f=(0,z.isStockTheme)(h,this.agChartsExports._Theme)?h:this.chartProxy.lookupCustomChartTheme(h);return this.agChartsExports._Theme.getChartTheme(f)})}getPalettes(){return this.getThemes().map(h=>h.palette)}getThemeTemplateParameters(){return this.getThemes().map(h=>h.getTemplateParameters())}getValueColState(){return this.model.valueColState.map(this.displayNameMapper.bind(this))}getSelectedValueColState(){return this.getValueColState().filter(c=>c.selected)}getSelectedDimensions(){return this.model.getSelectedDimensions()}displayNameMapper(c){let{column:h}=c;if(h)c.displayName=this.model.getColDisplayName(h,this.model.isPivotMode());else{let g=this.model.colNames[c.colId];c.displayName=g?g.join(" - "):this.model.getColDisplayName(h)}return c}getColStateForMenu(){return{dimensionCols:this.model.dimensionColState,valueCols:this.getValueColState()}}setChartRange(c=!1){this.rangeSvc&&!this.model.suppressChartRanges&&!this.model.unlinked&&this.rangeSvc.setCellRanges(this.getCellRanges()),c||this.raiseChartModelUpdateEvent()}detachChartRange(){this.model.unlinked=!this.model.unlinked,this.model.unlinked?this.rangeSvc&&this.rangeSvc.setCellRanges([]):this.updateForGridChange(),this.dispatchLocalEvent({type:"chartLinkedChanged"})}setChartProxy(c){this.chartProxy=c}getChartProxy(){return this.chartProxy}isActiveXYChart(){return["scatter","bubble"].includes(this.getChartType())}isChartLinked(){return!this.model.unlinked}customComboExists(){let c=this.model.comboChartModel.savedCustomSeriesChartTypes;return c&&c.length>0}getSeriesChartTypes(){return this.model.comboChartModel.seriesChartTypes}isComboChart(c){return this.model.isComboChart(c)}updateSeriesChartType(c,h,g){let f=this.model.comboChartModel.seriesChartTypes.find(S=>S.colId===c);if(f){let S=this.model.chartType!=="customCombo";S&&(this.model.chartType="customCombo");let w=f.chartType;h!=null&&(f.chartType=h),g!=null&&(f.secondaryAxis=g),this.model.comboChartModel.savedCustomSeriesChartTypes=this.model.comboChartModel.seriesChartTypes,this.model.comboChartModel.updateSeriesChartTypes(),this.updateForDataChange(),S&&this.dispatchLocalEvent({type:"chartTypeChanged"}),w!==h&&this.dispatchLocalEvent({type:"chartSeriesChartTypeChanged"}),this.raiseChartOptionsChangedEvent()}}getActiveSeriesChartTypes(){let c=this.getSelectedValueColState().map(h=>h.colId);return this.getSeriesChartTypes().filter(h=>c.includes(h.colId))}getChartSeriesTypes(c){let h=c!=null?c:this.getChartType();return this.isComboChart(h)?["line","bar","area"]:[(0,C.getSeriesType)(h)]}getChartSeriesType(){let c=this.getSeriesChartTypes();if(c.length===0)return"bar";let h=c[0].chartType;return h==="columnLineCombo"?"bar":h==="areaColumnCombo"?"area":(0,C.getSeriesType)(h)}getCellRanges(){return[this.model.dimensionCellRange,this.model.valueCellRange].filter(c=>c)}createCellRange(c){var h;return c.cellRange&&((h=this.rangeSvc)==null?void 0:h.createPartialCellRangeFromRangeParams(c.cellRange,!0))}validUpdateType(c){var S;if(!c.type)return(0,E._warn)(136),!1;let h={"Range Chart":()=>!this.isPivotChart()&&!this.isCrossFilterChart(),"Pivot Chart":()=>this.isPivotChart(),"Cross Filter Chart":()=>this.isCrossFilterChart()},g=(S=Object.keys(h).find(w=>h[w]()))!=null?S:"Range Chart",f=c.type===`${g[0].toLowerCase()}${g.slice(1).replace(/ /g,"")}Update`;return f||(0,E._warn)(137,{currentChartType:g,type:c.type}),f}getCellRangeParams(){let c=this.getCellRanges(),h=c[0],g=h&&h.startRow||null,f=h&&h.endRow||null;return{rowStartIndex:g&&g.rowIndex,rowStartPinned:g&&g.rowPinned,rowEndIndex:f&&f.rowIndex,rowEndPinned:f&&f.rowPinned,columns:c.reduce((S,w)=>S.concat(w.columns.map(M=>M.getId())),[])}}setCategoryAxisType(c){this.model.categoryAxisType=c,this.raiseChartModelUpdateEvent()}getSeriesGroupType(){var c;return(c=this.model.seriesGroupType)!=null?c:this.chartProxy.getSeriesGroupType()}setSeriesGroupType(c){this.model.seriesGroupType=c,this.raiseChartModelUpdateEvent()}raiseChartModelUpdateEvent(){this.dispatchLocalEvent({type:"chartModelUpdate"})}raiseChartUpdatedEvent(){this.dispatchLocalEvent({type:"chartUpdated"})}raiseChartApiUpdateEvent(){this.dispatchLocalEvent({type:"chartApiUpdate"})}raiseChartOptionsChangedEvent(){let{chartId:c,chartType:h}=this.getChartModel();this.eventSvc.dispatchEvent({type:"chartOptionsChanged",chartId:c,chartType:h,chartThemeName:this.getChartThemeName(),chartOptions:this.chartProxy.getChartThemeOverrides()})}raiseChartRangeSelectionChangedEvent(){this.eventSvc.dispatchEvent({type:"chartRangeSelectionChanged",id:this.model.chartId,chartId:this.model.chartId,cellRange:this.getCellRangeParams()})}destroy(){super.destroy(),this.rangeSvc&&this.rangeSvc.setCellRanges([])}}p.ChartController=d},7216:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AreaChartProxy=void 0;let E=A(8631);class z extends E.CartesianChartProxy{constructor(b){super(b)}getAxes(b){let C=[{type:this.getXAxisType(b),position:"bottom"},{type:"number",position:"left"}];if(this.isNormalised()){let d=C[1];d.label=He(ge({},d.label),{formatter:s=>Math.round(s.value)+"%"})}return C}getSeries(b){let[C]=b.categories,d=b.fields.map(s=>({type:this.standaloneChartType,xKey:C.id,xName:C.name,yKey:s.colId,yName:s.displayName,normalizedTo:this.chartType==="normalizedArea"?100:void 0,stacked:["normalizedArea","stackedArea"].includes(this.chartType)}));return this.crossFiltering?this.extractLineAreaCrossFilterSeries(d,b):d}isNormalised(){return!this.crossFiltering&&this.chartType==="normalizedArea"}}p.AreaChartProxy=z},3116:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BarChartProxy=void 0;let E=A(3610),z=A(4237),T=A(8631),b=new Set(["bar","groupedBar","stackedBar","normalizedBar"]);class C extends T.CartesianChartProxy{constructor(s){super(s)}getAxes(s){let c=[{type:this.getXAxisType(s),position:this.isHorizontal()?"left":"bottom"},{type:"number",position:this.isHorizontal()?"bottom":"left"}];if(this.isNormalised()){let h=c[1];h.label=He(ge({},h.label),{formatter:g=>Math.round(g.value)+"%"})}return c}getSeries(s){let[c]=s.categories,h=s.fields.map(g=>({type:this.standaloneChartType,direction:this.isHorizontal()?"horizontal":"vertical",stacked:this.crossFiltering||(0,z.isStacked)(this.chartType),normalizedTo:this.isNormalised()?100:void 0,xKey:c.id,xName:c.name,yKey:g.colId,yName:g.displayName}));return this.crossFiltering?this.extractCrossFilterSeries(h):h}extractCrossFilterSeries(s){let c=this.getChartPalette(),h=(S,w)=>{var M,P;return He(ge({},S),{highlightStyle:{item:{fill:void 0}},fill:(M=c==null?void 0:c.fills)==null?void 0:M[w],stroke:(P=c==null?void 0:c.strokes)==null?void 0:P[w],listeners:{nodeClick:this.crossFilterCallback}})},g=S=>{let w=S.yKey+"-filtered-out";return He(ge({},S),{yKey:w,fill:(0,E.hexToRGBA)(S.fill,"0.3"),stroke:(0,E.hexToRGBA)(S.stroke,"0.3"),showInLegend:!1})},f=[];for(let S=0;S<s.length;S++){let w=s[S];f.push(h(w,S)),f.push(g(h(w,S)))}return f}isNormalised(){let s=["normalizedColumn","normalizedBar"];return!this.crossFiltering&&s.includes(this.chartType)}isHorizontal(){return b.has(this.chartType)}}p.BarChartProxy=C},8631:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CartesianChartProxy=void 0;let E=A(6738);class z extends E.ChartProxy{constructor(b){super(b),this.crossFilteringAllPoints=new Set,this.crossFilteringSelectedPoints=[]}getUpdateOptions(b,C){let d=this.getAxes(b,C);return He(ge({},C),{data:this.getData(b,d),axes:d,series:this.getSeries(b)})}getData(b,C){let d=["area","line"].includes(this.standaloneChartType);return this.crossFiltering&&d?this.getCrossFilterData(b):this.getDataTransformedData(b,C)}getDataTransformedData(b,C){let d=C[0].type,{categories:s,data:c}=b,[h]=s;switch(d){case"category":return this.transformCategoryData(c,h.id);case"time":return this.transformTimeData(c,h.id);default:return c}}getXAxisType(b){return b.grouping?"grouped-category":this.isXAxisOfType(b,"time",C=>C instanceof Date)?"time":this.isXAxisOfType(b,"number")?"number":"category"}isXAxisOfType(b,C,d){let[s]=b.categories;if(s!=null&&s.chartDataType)return s.chartDataType===C;if(!d)return!1;let c=b.data[0];return c?d(c[s.id]):!1}transformTimeData(b,C){var s;return((s=b[0])==null?void 0:s[C])instanceof Date?b:b.map(c=>{let h=c[C];return typeof h=="string"?He(ge({},c),{[C]:new Date(h)}):c})}crossFilteringReset(){this.crossFilteringSelectedPoints=[],this.crossFilteringAllPoints.clear()}crossFilteringPointSelected(b){return this.crossFilteringSelectedPoints.length==0||this.crossFilteringSelectedPoints.includes(b)}crossFilteringDeselectedPoints(){return this.crossFilteringSelectedPoints.length>0&&this.crossFilteringAllPoints.size!==this.crossFilteringSelectedPoints.length}extractLineAreaCrossFilterSeries(b,C){let[d]=C.categories,s=c=>this.standaloneChartType==="area"?C.getCrossFilteringContext().lastSelectedChartId===C.chartId?c+"-total":c:c+"-total";return b.map(c=>(c.yKey=s(c.yKey),c.listeners={nodeClick:h=>{let g=h.datum[c.xKey],f=h.event.metaKey||h.event.ctrlKey;this.crossFilteringAddSelectedPoint(f,g),this.crossFilterCallback(h)}},c.marker={itemStyler:h=>{let g=h.datum[d.id];return{fill:h.highlighted?"yellow":h.fill,size:h.highlighted?14:this.crossFilteringPointSelected(g)?8:0}}},this.standaloneChartType==="area"&&(c.fillOpacity=this.crossFilteringDeselectedPoints()?.3:1),this.standaloneChartType==="line"&&(c.strokeOpacity=this.crossFilteringDeselectedPoints()?.3:1),c))}getCrossFilterData(b){this.crossFilteringAllPoints.clear();let[C]=b.categories,d=b.fields[0].colId,s=`${d}-filtered-out`,c=b.getCrossFilteringContext().lastSelectedChartId;return b.data.map(h=>{let g=h[C.id];this.crossFilteringAllPoints.add(g);let f=this.crossFilteringPointSelected(g);return this.standaloneChartType==="area"&&c===b.chartId&&(h[`${d}-total`]=f?h[d]:h[d]+h[s]),this.standaloneChartType==="line"&&(h[`${d}-total`]=f?h[d]:h[d]+h[s]),h})}crossFilteringAddSelectedPoint(b,C){b?this.crossFilteringSelectedPoints.push(C):this.crossFilteringSelectedPoints=[C]}isHorizontal(b){let C=this.standaloneChartType;if(C!=="waterfall"&&C!=="box-plot"&&C!=="range-bar")return!1;let d=b.theme,s=c=>{var g,f,S;let h=(S=(f=(g=c==null?void 0:c.overrides)==null?void 0:g[C])==null?void 0:f.series)==null?void 0:S.direction;return h!=null?h==="horizontal":typeof(c==null?void 0:c.baseTheme)=="object"?s(c.baseTheme):!1};return s(d)}}p.CartesianChartProxy=z},1051:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.HistogramChartProxy=void 0;let E=A(8631);class z extends E.CartesianChartProxy{constructor(b){super(b)}getSeries(b){let C=b.fields[0];return[{type:this.standaloneChartType,xKey:C.colId,xName:C.displayName,yName:this.chartProxyParams.translate("histogramFrequency"),areaPlot:!1}]}getAxes(b){return[{type:"number",position:"bottom"},{type:"number",position:"left"}]}}p.HistogramChartProxy=z},9235:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LineChartProxy=void 0;let E=A(8631);class z extends E.CartesianChartProxy{constructor(b){super(b)}getAxes(b){let C=[{type:this.getXAxisType(b),position:"bottom"},{type:"number",position:"left"}];if(this.isNormalised()){let d=C[1];d.label=He(ge({},d.label),{formatter:s=>Math.round(s.value)+"%"})}return C}getSeries(b){let[C]=b.categories,d=["normalizedLine","stackedLine"].includes(this.chartType),s=b.fields.map(c=>({type:this.standaloneChartType,xKey:C.id,xName:C.name,yKey:c.colId,yName:c.displayName,normalizedTo:d&&this.isNormalised()?100:void 0,stacked:d}));return this.crossFiltering?this.extractLineAreaCrossFilterSeries(s,b):s}isNormalised(){let b=["normalizedLine"];return!this.crossFiltering&&b.includes(this.chartType)}}p.LineChartProxy=z},7015:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ScatterChartProxy=void 0;let E=A(8592),z=A(8631);class T extends z.CartesianChartProxy{constructor(C){super(C)}getAxes(C){return[{type:"number",position:"bottom"},{type:"number",position:"left"}]}getSeries(C){let[d]=C.categories,s=this.isPaired(),c=this.getSeriesDefinitions(C.fields,s),h=d.id===E.DEFAULT_CHART_CATEGORY?void 0:d,g=c.map(f=>{var w,M,P,O,G;return f!=null&&f.sizeField?{type:"bubble",xKey:f.xField.colId,xName:(w=f.xField.displayName)!=null?w:void 0,yKey:f.yField.colId,yName:(M=f.yField.displayName)!=null?M:void 0,title:`${f.yField.displayName} vs ${f.xField.displayName}`,sizeKey:f.sizeField.colId,sizeName:(P=f.sizeField.displayName)!=null?P:"",labelKey:h?h.id:f.yField.colId,labelName:h?h.name:void 0}:{type:"scatter",xKey:f.xField.colId,xName:(O=f.xField.displayName)!=null?O:void 0,yKey:f.yField.colId,yName:(G=f.yField.displayName)!=null?G:void 0,title:`${f.yField.displayName} vs ${f.xField.displayName}`,labelKey:h?h.id:f.yField.colId,labelName:h?h.name:void 0}});return this.crossFiltering?this.extractCrossFilterSeries(g,C):g}extractCrossFilterSeries(C,d){let{data:s}=d,c=this.getChartPalette(),h=M=>`${M}-filtered-out`,g=(M,P)=>{var G;let O=[1/0,-1/0];if(P!=null)for(let j of M){let Y=(G=j[P])!=null?G:j[h(P)];Y<O[0]&&(O[0]=Y),Y>O[1]&&(O[1]=Y)}if(O[0]<=O[1])return O},f=(M,P)=>{var Y,J;let O=(Y=c==null?void 0:c.fills)==null?void 0:Y[P],G=(J=c==null?void 0:c.strokes)==null?void 0:J[P],j;if(M.type==="bubble"){let{sizeKey:ne}=M;j=g(s,ne)}return He(ge({},M),{fill:O,stroke:G,domain:j,highlightStyle:{item:{fill:"yellow"}},listeners:He(ge({},M.listeners),{nodeClick:this.crossFilterCallback})})},S=M=>{let{yKey:P,xKey:O}=M,G={};return M.type==="bubble"&&(G={sizeKey:h(M.sizeKey)}),He(ge(ge({},M),G),{yKey:h(P),xKey:h(O),fillOpacity:.3,strokeOpacity:.3,showInLegend:!1,listeners:He(ge({},M.listeners),{nodeClick:j=>{let Y=j.datum[h(O)],J=He(ge({},j),{xKey:O,datum:He(ge({},j.datum),{[O]:Y})});this.crossFilterCallback(J)}})})},w=C.map(f);return[...w,...w.map(S)]}getSeriesDefinitions(C,d){if(C.length<2)return[];let s=this.chartType==="bubble";if(d)return s?C.map((h,g)=>g%3===0?{xField:h,yField:C[g+1],sizeField:C[g+2]}:null).filter(h=>h&&h.yField&&h.sizeField):C.map((h,g)=>g%2===0?{xField:h,yField:C[g+1]}:null).filter(h=>h&&h.yField);let c=C[0];return s?C.map((h,g)=>g%2===1?{xField:c,yField:h,sizeField:C[g+1]}:null).filter(h=>h&&h.sizeField):C.filter((h,g)=>g>0).map(h=>({xField:c,yField:h}))}}p.ScatterChartProxy=T},9303:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WaterfallChartProxy=void 0;let E=A(8631);class z extends E.CartesianChartProxy{constructor(b){super(b)}getAxes(b,C){return[{type:this.getXAxisType(b),position:this.isHorizontal(C)?"left":"bottom"},{type:"number",position:this.isHorizontal(C)?"bottom":"left"}]}getSeries(b){var c;let[C]=b.categories,[d]=b.fields;return[{type:this.standaloneChartType,xKey:C.id,xName:C.name,yKey:d.colId,yName:(c=d.displayName)!=null?c:void 0}]}}p.WaterfallChartProxy=z},6738:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartProxy=void 0;let E=A(9687),z=A(2210),T=A(4237),b=A(8987);class C{constructor(s){this.chartProxyParams=s,this.clearThemeOverrides=!1,this.agChartsExports=s.agChartsExports,this.chart=s.chartInstance,this.chartType=s.chartType,this.crossFiltering=s.crossFiltering,this.crossFilterCallback=s.crossFilterCallback,this.standaloneChartType=(0,T.getSeriesType)(this.chartType),this.chart==null?this.chart=s.agChartsExports.create(this.getCommonChartOptions()):this.clearThemeOverrides=!0}crossFilteringReset(){}update(s){this.getChartRef().update(this.getUpdateOptions(s,this.getCommonChartOptions(s.updatedOverrides)))}updateThemeOverrides(s){this.getChartRef().updateDelta({theme:{overrides:s}})}getChart(){return(0,E.deproxy)(this.chart)}getChartRef(){return this.chart}downloadChart(s,c,h){let{chart:g}=this,f=(0,E.deproxy)(g),S=c||(f.title?f.title.text:"chart"),{width:w,height:M}=s||{};g.download({width:w,height:M,fileName:S,fileFormat:h})}getChartImageDataURL(s){return this.getChart().getCanvasDataURL(s)}getChartOptions(){return this.chart.getOptions()}getChartThemeOverrides(){var c;return(c=this.getChartOptions().theme.overrides)!=null?c:{}}getChartPalette(){return this.agChartsExports._Theme.getChartTheme(this.getChartOptions().theme).palette}setPaired(s){let c=(0,T.getSeriesType)(this.chartProxyParams.chartType);this.chart.updateDelta({theme:{overrides:{[c]:{paired:s}}}})}isPaired(){let s=(0,T.getSeriesType)(this.chartProxyParams.chartType);return(0,z.get)(this.getChartThemeOverrides(),`${s}.paired`,!0)}lookupCustomChartTheme(s){return(0,b.lookupCustomChartTheme)(this.chartProxyParams,s)}getSeriesGroupType(){}transformCategoryData(s,c){return s.map((h,g)=>{let f=h[c],S=f&&f.toString?f.toString():"",w=ge({},h);return w[c]={id:g,value:f,toString:()=>S},w})}getCommonChartOptions(s){var S,w;let c=this.clearThemeOverrides?{}:(w=(S=this.chart)==null?void 0:S.getOptions())!=null?w:{},h=this.chart!=null?this.getActiveFormattingPanelOverrides():void 0;this.clearThemeOverrides=!1;let g=(0,b.createAgChartTheme)(this.chartProxyParams,this,this.agChartsExports.isEnterprise,this.getChartThemeDefaults(),s!=null?s:h),f=He(ge({},c),{mode:"integrated"});return f.theme=g,f.container=this.chartProxyParams.parentElement,f}getChartThemeDefaults(){let s=this.getSeriesChartThemeDefaults(),c=s?{[this.standaloneChartType]:s}:{},h={enabled:!0,snap:!0,label:{enabled:!1}},g=this.agChartsExports.isEnterprise?{zoom:{enabled:!0},animation:{enabled:!0,duration:500},axes:{number:{crosshair:h},category:{crosshair:h},log:{crosshair:h},time:{crosshair:h}}}:{};return g.minHeight=0,g.minWidth=0,g.navigator={enabled:!1},ge({common:g},c)}getSeriesChartThemeDefaults(){}getActiveFormattingPanelOverrides(){var c,h;if(this.clearThemeOverrides)return{};let s=(c=this.chart)==null?void 0:c.getOptions().theme;return(h=s==null?void 0:s.overrides)!=null?h:{}}destroy({keepChartInstance:s=!1}={}){if(s)return this.chart.resetAnimations(),this.chart;this.destroyChart()}destroyChart(){this.chart&&(this.chart.destroy(),this.chart=void 0)}}p.ChartProxy=C},8987:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.lookupCustomChartTheme=p.isStockTheme=p.createAgChartTheme=void 0;let E=A(6624),z=A(2753),T=A(2210),b=A(4237);function C(M,P,O,G,j){var St;let{chartOptionsToRestore:Y,chartPaletteToRestore:J,chartThemeToRestore:ne,agChartsExports:ce}=M,fe=S(M),xe=s(fe,ce._Theme),Le=xe?{baseTheme:fe}:(St=w(M,fe))!=null?St:{},_e=M.getGridOptionsChartThemeOverrides(),Fe=M.apiChartThemeOverrides,We=(0,b.getSeriesType)(M.chartType),it=M.crossFiltering?c(P,M,We):void 0,st=[xe?g(M,O,(()=>{let Xe=Ke=>Ke?Object.keys(Ke).some(Ye=>(0,T.get)(Ke[Ye],"title.enabled",!1)):!1;return Xe(_e)||Xe(Fe)})()):void 0,f(),G,it,_e,Fe,ge({},Y!=null?Y:{}),j].filter(Xe=>!!Xe).reduce((Xe,Ke)=>({baseTheme:Xe,overrides:Ke}),Le);if(J&&fe===ne){let Xe=M.agChartsExports._Theme.getChartTheme(Le).palette;d(J,Xe)||(st.palette=J)}return st}p.createAgChartTheme=C;function d(M,P){let O=(G,j)=>{var Y;return G===j?!0:(G==null?void 0:G.length)!==(j==null?void 0:j.length)?!1:(Y=G==null?void 0:G.every((J,ne)=>J===(j==null?void 0:j[ne])))!=null?Y:!1};return O(M.fills,P.fills)&&O(M.strokes,P.strokes)}function s(M,P){return Object.keys(P.themes).includes(M)}p.isStockTheme=s;function c(M,P,O){let G={listeners:{legendItemClick:j=>{let Y=M.getChart(),J=[j.seriesId,`${j.seriesId}-filtered-out`];Y.series.filter(ne=>J.includes(ne.id)).forEach(ne=>ne.toggleSeriesItem(void 0,"category",j.itemId,void 0))}}};return{[O]:{tooltip:{delay:500},legend:G,listeners:{click:j=>P.crossFilterCallback(j,!0)}}}}let h=z.ALL_AXIS_TYPES.reduce((M,P)=>He(ge({},M),{[P]:{title:{_enabledFromTheme:!0}}}),{});function g(M,P,O){let G=M.getExtraPaddingDirections();return{common:He(ge({},P?{animation:{duration:500}}:void 0),{axes:h,padding:{top:!O&&G.includes("top")?40:20,right:G.includes("right")?30:20,bottom:G.includes("bottom")?40:20,left:G.includes("left")?30:20},suppressFieldDotNotation:!0})}}function f(){return{pie:{series:{title:{_enabledFromTheme:!0},calloutLabel:{_enabledFromTheme:!0},sectorLabel:{enabled:!1,_enabledFromTheme:!0}}},donut:{series:{title:{_enabledFromTheme:!0},calloutLabel:{_enabledFromTheme:!0},sectorLabel:{enabled:!1,_enabledFromTheme:!0}}}}}function S(M){let P=M.getChartThemeName(),O=M.getChartThemes();return O.includes(P)||(P=O[0]),P}function w(M,P){let{customChartThemes:O}=M,G=O&&O[P];return G||(0,E._warn)(140,{name:P}),G}p.lookupCustomChartTheme=w},8995:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ComboChartProxy=void 0;let E=A(4237),z=A(8631);class T extends z.CartesianChartProxy{constructor(C){super(C)}getAxes(C){let d=C?C.fields:[],s=new Map(d.map(f=>[f.colId,f])),{primaryYKeys:c,secondaryYKeys:h}=this.getYKeys(d,C.seriesChartTypes),g=[{type:this.getXAxisType(C),position:"bottom"}];return c.length>0&&g.push({type:"number",keys:c,position:"left"}),h.length>0&&h.forEach(f=>{let S=s.get(f);if(!(S&&S.colId===f))return;let M={type:"number",keys:[f],position:"right"};g.push(M)}),g}getSeries(C){let{fields:d,seriesChartTypes:s}=C,[c]=C.categories;return d.map(h=>{let g=s.find(f=>f.colId===h.colId);if(g){let f=g.chartType,w=["groupedColumn","groupedBar"].includes(f)?{grouped:!0}:{};return ge({type:(0,E.getSeriesType)(f),xKey:c.id,yKey:h.colId,yName:h.displayName,stacked:["stackedArea","stackedColumn"].includes(f)},w)}})}getYKeys(C,d){let s=[],c=[];return C.forEach(h=>{let g=h.colId,f=d.find(S=>S.colId===g);f&&(f.secondaryAxis?c.push(g):s.push(g))}),{primaryYKeys:s,secondaryYKeys:c}}}p.ComboChartProxy=T},7879:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.EnterpriseChartProxyFactory=void 0;let E=A(6624),z=A(1051),T=A(9303),b=A(3511),C=A(9899),d=A(7562),s=A(5413),c=A(6926);class h extends E.BeanStub{constructor(){super(...arguments),this.beanName="enterpriseChartProxyFactory"}createChartProxy(f){switch(f.chartType){case"histogram":return new z.HistogramChartProxy(f);case"radarLine":case"radarArea":case"nightingale":case"radialColumn":case"radialBar":return new C.PolarChartProxy(f);case"rangeBar":case"rangeArea":return new c.RangeChartProxy(f);case"boxPlot":return new s.BoxPlotChartProxy(f);case"treemap":case"sunburst":return new b.HierarchicalChartProxy(f);case"heatmap":return new d.HeatmapChartProxy(f);case"waterfall":return new T.WaterfallChartProxy(f)}}}p.EnterpriseChartProxyFactory=h},3511:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.HierarchicalChartProxy=void 0;let E=A(6624),z=A(6738),T=A(6326);class b extends z.ChartProxy{constructor(d){super(d)}getUpdateOptions(d,s){let{fields:c}=d,[h,g]=c;return He(ge({},s),{series:this.getSeries(h,g),data:this.getData(d,h,g)})}getSeriesChartThemeDefaults(){return{gradientLegend:{gradient:{preferredLength:200}}}}getSeries(d,s){var c,h;return[{type:this.standaloneChartType,labelKey:T.CATEGORY_LABEL_KEY,sizeKey:d==null?void 0:d.colId,sizeName:(c=d==null?void 0:d.displayName)!=null?c:void 0,colorKey:s==null?void 0:s.colId,colorName:(h=s==null?void 0:s.displayName)!=null?h:void 0}]}getData(d,s,c){var w;let{categories:h,data:g,groupData:f,grouping:S}=d;if(S){let M=c?g.concat((w=f==null?void 0:f.map(P=>{let O=ge({},P);return delete O[s.colId],O}))!=null?w:[]):g;return(0,T.createAutoGroupHierarchy)(M,P=>{var O,G;return(G=(O=P[E.GROUP_AUTO_COLUMN_ID])==null?void 0:O.labels)!=null?G:null})}else{let M=h.map(({id:P})=>P);return(0,T.createCategoryHierarchy)(g,M)}}}p.HierarchicalChartProxy=b},6326:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createAutoGroupHierarchy=p.createCategoryHierarchy=p.CATEGORY_LABEL_KEY=void 0,p.CATEGORY_LABEL_KEY="AG-GRID-DEFAULT-LABEL-KEY";function A(b,C){let d=T(b,s,c);return z(d);function s(g){return C.length}function c(g,f){let S=C[f],w=g[S];return h(w)}function h(g){return g==null?null:String(g)}}p.createCategoryHierarchy=A;function E(b,C){let d=T(b,s,c);return z(d);function s(h){var g,f;return(f=(g=C(h))==null?void 0:g.length)!=null?f:0}function c(h,g){let f=C(h);if(!f)return null;let S=f.length-1-g;return f[S]}}p.createAutoGroupHierarchy=E;function z(b,C=null,d){let{depth:s,rootValues:c,value:h,children:g}=b;if(c)return c.map(S=>ge({[p.CATEGORY_LABEL_KEY]:C},S));if(s===0)return[ge({[p.CATEGORY_LABEL_KEY]:C},h)];let f=[];for(let[S,w]of g.entries())f.push(...z(w,S,!0));return d?[ge({[p.CATEGORY_LABEL_KEY]:C,children:f},h!=null?h:{})]:f}function T(b,C,d){let s={depth:0,children:new Map};return b.forEach(h=>{let g=C(h);c(h,g,d,0,s)}),s;function c(h,g,f,S,w){if(S===g)return S===0?(w.rootValues||(w.rootValues=[]),w.rootValues.push(h)):w.value=h,w;{let M=f(h,S),P=w.children.get(M),O=c(h,g,f,S+1,P||{depth:0,children:new Map});return w.children.set(M,O),w.depth=Math.max(1+O.depth,w.depth),w}}}},4104:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PieChartProxy=void 0;let E=A(6738);function z(b){let C=b.currentOffset;b.currentOffset-=b.offsetAmount;let d=b.currentOffset;return b.currentOffset-=b.offsetAmount,{outerRadiusOffset:C,innerRadiusOffset:d}}class T extends E.ChartProxy{constructor(C){super(C)}getUpdateOptions(C,d){return He(ge({},d),{data:this.crossFiltering?this.getCrossFilterData(C):C.data,series:this.getSeries(C)})}getSeries(C){let[d]=C.categories,s=C.fields.length,c={currentOffset:0,offsetAmount:s>1?20:40},h=this.getFields(C).map(g=>{var S;let f={type:this.standaloneChartType,angleKey:g.colId,angleName:g.displayName,sectorLabelKey:g.colId,calloutLabelName:d.name,calloutLabelKey:d.id};if(this.chartType==="donut"||this.chartType==="doughnut"){let{outerRadiusOffset:w,innerRadiusOffset:M}=z(c),P=g.displayName?{title:{text:g.displayName,showInLegend:s>1}}:void 0;return He(ge(He(ge({},f),{type:"donut",outerRadiusOffset:w,innerRadiusOffset:M}),P),{calloutLine:{colors:(S=this.getChartPalette())==null?void 0:S.strokes}})}return f});return this.crossFiltering?this.extractCrossFilterSeries(h):h}getCrossFilterData(C){let d=C.fields[0].colId,s=`${d}-filtered-out`;return C.data.map(c=>{let h=c[d]+c[s];return c[`${d}-total`]=h,c[s]=1,c[d]=c[d]/h,c})}extractCrossFilterSeries(C){let d=this.getChartPalette(),s=S=>He(ge({},S),{legendItemKey:S.calloutLabelKey,calloutLabel:{enabled:!1},highlightStyle:{item:{fill:void 0}},radiusKey:S.angleKey,angleKey:S.angleKey+"-total",radiusMin:0,radiusMax:1,listeners:{nodeClick:this.crossFilterCallback}}),c=(S,w)=>{var M,P,O,G;return He(ge({},f),{radiusKey:w+"-filtered-out",fills:this.changeOpacity((P=(M=S.fills)!=null?M:d==null?void 0:d.fills)!=null?P:[],.3),strokes:this.changeOpacity((G=(O=S.strokes)!=null?O:d==null?void 0:d.strokes)!=null?G:[],.3),showInLegend:!1})},h=C[0],g=h.angleKey,f=s(h);return[c(s(h),g),f]}getFields(C){return this.chartType==="pie"?C.fields.slice(0,1):C.fields}changeOpacity(C,d){let s=this.agChartsExports._Util.Color;return C.map(c=>{let h=s.fromString(c);return new s(h.r,h.g,h.b,d).toHexString()})}}p.PieChartProxy=T},9899:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PolarChartProxy=void 0;let E=A(6738);class z extends E.ChartProxy{constructor(b){super(b)}getAxes(b){let C=this.standaloneChartType==="radial-bar";return[{type:C?"angle-number":"angle-category"},{type:C?"radius-category":"radius-number"}]}getSeries(b){let{fields:C,categories:d,seriesGroupType:s}=b,[c]=d,h=this.standaloneChartType==="radial-bar",g=this.getSeriesGroupTypeOptions(s);return C.map(f=>{var S,w;return ge({type:this.standaloneChartType,angleKey:h?f.colId:c.id,angleName:h?(S=f.displayName)!=null?S:void 0:c.name,radiusKey:h?c.id:f.colId,radiusName:h?c.name:(w=f.displayName)!=null?w:void 0},g)})}getSeriesGroupType(){var s,c;let b=this.standaloneChartType;if(!["nightingale","radial-bar","radial-column"].includes(b))return;let C=(c=(s=this.getChart().series)==null?void 0:s[0])==null?void 0:c.properties.toJson(),d=()=>C.normalizedTo?"normalized":"stacked";return b==="nightingale"?C.grouped?"grouped":d():C.stacked?d():"grouped"}getUpdateOptions(b,C){let d=this.getAxes(b);return He(ge({},C),{data:this.getData(b,d),axes:d,series:this.getSeries(b)})}getData(b,C){if(C.some(s=>s.type==="angle-category"||s.type==="radius-category")){let[s]=b.categories;return this.transformCategoryData(b.data,s.id)}else return b.data}getSeriesGroupTypeOptions(b){return b?{grouped:b==="grouped"||void 0,stacked:b!=="grouped"||void 0,normalizedTo:b==="normalized"?100:void 0}:{}}}p.PolarChartProxy=z},7562:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.HeatmapChartProxy=p.HEATMAP_VALUE_KEY=p.HEATMAP_SERIES_KEY=p.HEATMAP_CATEGORY_KEY=void 0;let E=A(1480),z=A(6738);p.HEATMAP_CATEGORY_KEY="AG-GRID-DEFAULT-HEATMAP-CATEGORY-KEY",p.HEATMAP_SERIES_KEY="AG-GRID-DEFAULT-HEATMAP-SERIES-KEY",p.HEATMAP_VALUE_KEY="AG-GRID-DEFAULT-HEATMAP-VALUE-KEY";class T extends z.ChartProxy{constructor(d){super(d)}getUpdateOptions(d,s){let c=p.HEATMAP_SERIES_KEY,h=p.HEATMAP_VALUE_KEY,g=p.HEATMAP_CATEGORY_KEY;return He(ge({},s),{series:this.getSeries(d,c,h,g),data:this.getData(d,c,h,g)})}getSeries(d,s,c,h){let[g]=d.categories;return[{type:this.standaloneChartType,yKey:h,xKey:s,colorKey:c,yName:g.name,xName:void 0,colorName:void 0}]}getData(d,s,c,h){let[g]=d.categories;return(0,E.flatMap)(d.data,(f,S)=>{let w=f[g.id],M=w==null?"":String(w),P={id:S,value:w,toString:()=>M};return d.fields.map(({colId:O,displayName:G})=>He(ge({},f),{[s]:G,[c]:f[O],[h]:P}))})}getSeriesChartThemeDefaults(){return{gradientLegend:{gradient:{preferredLength:200}},series:{tooltip:{renderer:b}}}}}p.HeatmapChartProxy=T;function b(C){let{xKey:d,yKey:s,colorKey:c,yName:h,datum:g}=C;return{title:"",data:[{label:h,value:g[s]},{label:g[d],value:c&&g[c]}].map(({label:S,value:w})=>({label:String(S),value:String(w)}))}}},5413:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BoxPlotChartProxy=void 0;let E=A(879);class z extends E.StatisticalChartProxy{constructor(b){super(b)}getSeries(b){let[C]=b.categories;return b.fields.map((d,s)=>{var c;return{type:this.standaloneChartType,xKey:C.id,xName:C.name,yName:(c=d.displayName)!=null?c:void 0,minName:"Min",q1Name:"Q1",medianName:"Median",q3Name:"Q3",maxName:"Max",minKey:`min:${s}`,q1Key:`q1:${s}`,medianKey:`median:${s}`,q3Key:`q3:${s}`,maxKey:`max:${s}`}})}getData(b){return this.computeSeriesStatistics(b,C=>{let d=C.sort((s,c)=>s-c);return{min:d[0],q1:this.quantile(d,.25),median:this.quantile(d,.5),q3:this.quantile(d,.75),max:d[d.length-1]}})}quantile(b,C){let d=(b.length-1)*C,s=Math.floor(d),c=d-s;return b[s+1]!==void 0?b[s]+c*(b[s+1]-b[s]):b[s]}}p.BoxPlotChartProxy=z},6926:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RangeChartProxy=void 0;let E=A(879);class z extends E.StatisticalChartProxy{constructor(b){super(b)}getSeries(b){let[C]=b.categories;return b.fields.map((d,s)=>{var c;return{type:this.standaloneChartType,xKey:C.id,xName:C.name,yName:(c=d.displayName)!=null?c:void 0,yLowName:"Min",yHighName:"Max",yLowKey:`min:${s}`,yHighKey:`max:${s}`}})}getData(b){return this.computeSeriesStatistics(b,C=>({min:Math.min(...C),max:Math.max(...C)}))}}p.RangeChartProxy=z},879:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StatisticalChartProxy=void 0;let E=A(8592),z=A(8631);class T extends z.CartesianChartProxy{constructor(C){super(C)}getAxes(C,d){return[{type:this.getXAxisType(C),position:this.isHorizontal(d)?"left":"bottom"},{type:"number",position:this.isHorizontal(d)?"bottom":"left"}]}computeSeriesStatistics(C,d){let{data:s,fields:c}=C,[h]=C.categories,g=h.id||E.DEFAULT_CHART_CATEGORY,f=this.groupDataByCategory(g,s);return Array.from(f).map(([S,w])=>{let M={[h.id]:S};return c.forEach((P,O)=>{let G=w.map(j=>j[P.colId]).filter(j=>typeof j=="number"&&!isNaN(j));Object.entries(d(G)).forEach(([j,Y])=>{let J=`${j}:${O}`;M[J]=G.length>0?Y:null})}),M})}groupDataByCategory(C,d){let s=c=>{if(C===E.DEFAULT_CHART_CATEGORY)return 1;let h=c[C];return h==null?"":h instanceof Date?h.getTime():h};return d.reduce((c,h)=>{let g=s(h),f=c.get(g);return f?f.push(h):c.set(g,[h]),c},new Map)}}p.StatisticalChartProxy=T},9208:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartDatasource=void 0;let E=A(6624),z=A(8592);class T extends E.BeanStub{wireBeans(C){this.sortSvc=C.sortSvc,this.gridRowModel=C.rowModel,this.colModel=C.colModel,this.valueSvc=C.valueSvc,this.pivotResultCols=C.pivotResultCols,this.rowNodeSorter=C.rowNodeSorter,this.aggStage=C.aggStage}getData(C){if(C.crossFiltering){if(C.grouping)return(0,E._warn)(141),{chartData:[],colNames:{}};if(!(0,E._isClientSideRowModel)(this.gos))return(0,E._warn)(142),{chartData:[],colNames:{}}}(0,E._isServerSideRowModel)(this.gos)&&C.pivoting&&this.updatePivotKeysForSSRM();let s=this.extractRowsFromGridRowModel(C);return s.chartData=this.aggregateRowsByDimension(C,s.chartData),s}extractRowsFromGridRowModel(C){let{crossFiltering:d,startRow:s,endRow:c,valueCols:h,dimensionCols:g,grouping:f}=C,S=[],w={},M={},P={},O={},G=[],j;if(d)O=this.getFilteredRowNodes(),G=this.getAllRowNodes(),j=G.length;else{let ne=this.gridRowModel.getRowCount()-1;s===c&&s===0&&g.length===0&&h.length===0?j=0:j=(c>=0?Math.min(c,ne):ne)-s+1}j>0&&h.forEach(ne=>{let ce=[],fe=ne.getColDef().pivotKeys;fe&&(ce=fe.slice());let xe=ne.getColDef().headerName;xe&&ce.push(xe),ce.length>0&&(w[ne.getId()]=ce)});let Y=0;for(let ne=0;ne<j;ne++){let ce=d?G[ne]:this.gridRowModel.getRow(ne+s);if(ce.footer||ce.detail){Y++;continue}let fe={};g.forEach(xe=>{let Le=xe.colId,_e=this.colModel.getCol(Le);if(_e){let Fe=this.valueSvc.getValue(_e,ce);if(f){let We=Fe!=null&&Fe.toString?String(Fe.toString()):"",it=this.getGroupLabels(ce,We);fe[Le]=it.slice().reverse(),ce.group&&(M[it.toString()]=ne-Y);let tt=it.slice(1,it.length).toString();tt&&(P[tt]=M[tt])}else fe[Le]=Fe}else fe[z.DEFAULT_CHART_CATEGORY]=ne+1}),h.forEach(xe=>{let Le=xe.getColId();if(d){let _e=Le+"-filtered-out",Fe=this.valueSvc.getValue(xe,ce),We=Fe!=null&&typeof Fe.toNumber=="function"?Fe.toNumber():Fe;O[ce.id]?(fe[Le]=We,fe[_e]=C.aggFunc||C.isScatter?void 0:0):(fe[Le]=C.aggFunc||C.isScatter?void 0:0,fe[_e]=We)}else{let _e=this.valueSvc.getValue(xe,ce);_e&&Object.prototype.hasOwnProperty.call(_e,"toString")&&(_e=parseFloat(_e.toString())),fe[Le]=_e!=null&&typeof _e.toNumber=="function"?_e.toNumber():_e}}),S.push(fe)}let J;if(f){let ne=Object.values(P),ce=S;S=[],J=[];for(let fe=0;fe<ce.length;fe++)(ne.includes(fe)?J:S).push(ce[fe])}return{chartData:S,colNames:w,groupChartData:J}}aggregateRowsByDimension(C,d){let s=C.dimensionCols;if(!C.aggFunc||s.length===0)return d;let c=(0,E._last)(s),h=c&&c.colId,g={},f=[];if(d.forEach(S=>{let w=g;s.forEach(M=>{let P=M.colId,O=S[P];if(P===h){let G=w[O];G||(G={__children:[]},s.forEach(j=>{let Y=j.colId;G[Y]=S[Y]}),w[O]=G,f.push(G)),G.__children.push(S)}else w[O]||(w[O]={}),w=w[O]})}),this.gos.assertModuleRegistered("SharedRowGrouping",1)){let S=this.aggStage;f.forEach(w=>C.valueCols.forEach(M=>{if(C.crossFiltering)C.valueCols.forEach(P=>{let O=P.getColId(),G=w.__children.filter(ce=>typeof ce[O]!="undefined").map(ce=>ce[O]),j=S.aggregateValues(G,C.aggFunc);w[P.getId()]=j&&typeof j.value!="undefined"?j.value:j;let Y=`${O}-filtered-out`,J=w.__children.filter(ce=>typeof ce[Y]!="undefined").map(ce=>ce[Y]),ne=S.aggregateValues(J,C.aggFunc);w[Y]=ne&&typeof ne.value!="undefined"?ne.value:ne});else{let P=w.__children.map(G=>G[M.getId()]),O=S.aggregateValues(P,C.aggFunc);w[M.getId()]=O&&typeof O.value!="undefined"?O.value:O}}))}return f}updatePivotKeysForSSRM(){var s,c;let C=(c=(s=this.pivotResultCols)==null?void 0:s.getPivotResultCols())==null?void 0:c.list;if(!C)return;let d=this.extractPivotKeySeparator(C);C.forEach(h=>{if(d==="")h.getColDef().pivotKeys=[];else{let g=h.getColId().split(d);h.getColDef().pivotKeys=g.slice(0,g.length-1)}})}extractPivotKeySeparator(C){if(C.length===0)return"";let d=(c,h)=>{let g=c.getGroupId();return c.getParent()?d(c.getParent(),g):h.split(g)[1][0]},s=C[0];return s.getParent()==null?"":d(s.getParent(),s.getColId())}getGroupLabels(C,d){let s=[d];for(;C&&C.level!==0;)C=C.parent,C&&s.push(C.key);return s}getFilteredRowNodes(){let C={};return this.gridRowModel.forEachNodeAfterFilterAndSort(d=>{C[d.id]=d}),C}getAllRowNodes(){let C=[];return this.gridRowModel.forEachNode(d=>{C.push(d)}),this.sortRowNodes(C)}sortRowNodes(C){var s;let d=(s=this.sortSvc)==null?void 0:s.getSortOptions();return!d||d.length==0||!this.rowNodeSorter?C:this.rowNodeSorter.doFullSort(C,d)}}p.ChartDatasource=T},7760:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GridChartComp=void 0;let E=A(6624),z=A(8775),T=A(3251),b=A(7216),C=A(3116),d=A(9235),s=A(7015),c=A(8995),h=A(4104),g=A(3608),f=A(3786),S=A(8592),w=A(7492),M=A(6297),P=A(4237);class O extends E.Component{wireBeans(j){this.crossFilterService=j.chartCrossFilterSvc,this.chartTranslation=j.chartTranslation,this.chartMenuSvc=j.chartMenuSvc,this.focusSvc=j.focusSvc,this.popupSvc=j.popupSvc,this.enterpriseChartProxyFactory=j.enterpriseChartProxyFactory,this.environment=j.environment}constructor(j){super(`
            <div style="height: 100%; width: 100%;">
                <div class="ag-chart" data-ref="eWrapper">
                    <div data-ref="eChartContainer" class="ag-chart-components-wrapper ag-chart-menu-hidden">
                        <div data-ref="eChart" class="ag-chart-canvas-wrapper"></div>
                        <div data-ref="eEmpty" class="ag-chart-empty-text ag-unselectable"></div>
                    </div>
                    <div data-ref="eMenuContainer" class="ag-chart-docked-container"></div>
                </div>
            </div>
            `),this.eChart=E.RefPlaceholder,this.eWrapper=E.RefPlaceholder,this.eChartContainer=E.RefPlaceholder,this.eMenuContainer=E.RefPlaceholder,this.eEmpty=E.RefPlaceholder,this.params=j}postConstruct(){let j=He(ge({},this.params),{chartType:(0,P.getCanonicalChartType)(this.params.chartType),chartThemeName:this.getThemeName()}),Y=this.gos.get("enableRtl");this.eWrapper.classList.add(Y?"ag-rtl":"ag-ltr");let J=this.createBean(new S.ChartDataModel(j));this.chartController=this.createManagedBean(new T.ChartController(J)),this.chartOptionsService=this.createManagedBean(new M.ChartOptionsService(this.chartController)),this.validateCustomThemes(),this.createChart(),this.params.insideDialog?this.addDialog():(this.addManagedEventListeners({gridStylesChanged:this.updateTheme.bind(this)}),this.updateTheme()),this.addMenu(),this.addManagedElementListeners(this.getGui(),{focusin:this.setActiveChartCellRange.bind(this)}),this.addManagedListeners(this.chartController,{chartModelUpdate:this.update.bind(this)}),this.addManagedPropertyListeners(["chartThemeOverrides","chartThemes"],this.reactivePropertyUpdate.bind(this)),this.update(),this.raiseChartCreatedEvent()}updateTheme(){this.environment.applyThemeClasses(this.getGui())}createChart(){var ce;let j;this.chartProxy&&(j=this.chartProxy.destroy({keepChartInstance:!0}));let Y=(fe,xe)=>{let Le=this.params.crossFilteringContext;Le.lastSelectedChartId=xe?"":this.chartController.getChartId(),xe&&this.params.crossFilteringResetCallback(),this.crossFilterService.filter(fe,xe)},J=this.chartController.getChartType(),ne={agChartsExports:this.beans.agChartsExports,chartType:J,chartInstance:j,getChartThemeName:this.getChartThemeName.bind(this),getChartThemes:this.getChartThemes.bind(this),customChartThemes:this.gos.get("customChartThemes"),getGridOptionsChartThemeOverrides:()=>this.getGridOptionsChartThemeOverrides(),getExtraPaddingDirections:()=>{var fe,xe;return(xe=(fe=this.chartMenu)==null?void 0:fe.getExtraPaddingDirections())!=null?xe:[]},apiChartThemeOverrides:this.params.chartThemeOverrides,crossFiltering:(ce=this.params.crossFiltering)!=null?ce:!1,crossFilterCallback:Y,parentElement:this.eChart,grouping:this.chartController.isGrouping(),chartThemeToRestore:this.params.chartThemeName,chartOptionsToRestore:this.params.chartOptionsToRestore,chartPaletteToRestore:this.params.chartPaletteToRestore,seriesChartTypes:this.chartController.getSeriesChartTypes(),translate:fe=>this.chartTranslation.translate(fe)};if(this.params.chartOptionsToRestore=void 0,this.chartType=J,this.chartProxy=this.createChartProxy(ne),!this.chartProxy){(0,E._warn)(138,{chartType:ne.chartType});return}this.chartController.setChartProxy(this.chartProxy),this.createMenuContext()}createMenuContext(){if(this.chartMenuContext)return;let j=this.createManagedBean(new f.ChartMenuParamsFactory(this.chartOptionsService.getChartThemeOverridesProxy())),Y=this.createManagedBean(new f.ChartMenuParamsFactory(this.chartOptionsService.getAxisThemeOverridesProxy()));this.chartMenuContext={chartController:this.chartController,chartOptionsService:this.chartOptionsService,chartMenuParamsFactory:j,chartAxisMenuParamsFactory:Y}}getChartThemeName(){return this.chartController.getChartThemeName()}getChartThemes(){return this.chartController.getThemeNames()}getGridOptionsChartThemeOverrides(){return this.gos.get("chartThemeOverrides")}createChartProxy(j){var ne;let{chartType:Y}=j;switch(Y){case"column":case"bar":case"groupedColumn":case"stackedColumn":case"normalizedColumn":case"groupedBar":case"stackedBar":case"normalizedBar":return new C.BarChartProxy(j);case"pie":case"donut":case"doughnut":return new h.PieChartProxy(j);case"area":case"stackedArea":case"normalizedArea":return new b.AreaChartProxy(j);case"line":case"stackedLine":case"normalizedLine":return new d.LineChartProxy(j);case"scatter":case"bubble":return new s.ScatterChartProxy(j);case"columnLineCombo":case"areaColumnCombo":case"customCombo":return new c.ComboChartProxy(j)}let J=(ne=this.enterpriseChartProxyFactory)==null?void 0:ne.createChartProxy(j);if(!J)throw(0,E._errMsg)(251,{chartType:Y});return J}addDialog(){let j=this.chartTranslation.translate(this.params.pivotChart?"pivotChartTitle":"rangeChartTitle"),{width:Y,height:J}=this.getBestDialogSize(),ne=this.params.focusDialogOnOpen?()=>setTimeout(()=>(0,E._focusInto)(this.getGui())):void 0;this.chartDialog=new z.AgDialog({resizable:!0,movable:!0,maximizable:!0,title:j,width:Y,height:J,component:this,centered:!0,closable:!0,afterGuiAttached:ne,postProcessPopupParams:{type:"chart"}}),this.createBean(this.chartDialog),this.chartDialog.addEventListener("destroyed",()=>{this.destroy(),this.chartMenuSvc.hideAdvancedSettings();let ce=this.focusSvc.getFocusedCell();setTimeout(()=>{this.focusSvc.isAlive()&&(ce?this.focusSvc.setFocusedCell(He(ge({},ce),{forceBrowserFocus:!0})):(0,E._focusGridInnerElement)(this.beans))})})}getBestDialogSize(){let j=this.popupSvc.getPopupParent(),Y=(0,E._getAbsoluteWidth)(j)*.75,J=(0,E._getAbsoluteHeight)(j)*.75,ne=.553,ce=this.chartProxy.getChart(),fe=this.params.insideDialog?850:ce.width,xe=this.params.insideDialog?470:ce.height;return(fe>Y||xe>J)&&(fe=Math.min(fe,Y),xe=Math.round(fe*ne),xe>J&&(xe=J,fe=Math.min(fe,Math.round(xe/ne)))),{width:fe,height:xe}}addMenu(){this.params.crossFiltering||(this.chartMenu=this.createBean(new g.ChartMenu(this.eChartContainer,this.eMenuContainer,this.chartMenuContext)),this.eChartContainer.appendChild(this.chartMenu.getGui()))}update(j){if(j!=null&&j.chartId&&!this.chartController.update(j))return;let Y=this.chartTypeChanged(j),J=Y||this.chartEmpty?(ce=>{let fe=this.chartType,xe=ce,Le=this.chartProxy.getChart(),_e=Le==null?void 0:Le.getOptions(),Fe=Le==null?void 0:Le.axes;return this.chartOptionsService.getPersistedChartThemeOverrides(_e,Fe,fe,xe!=null?xe:fe)})(Y):void 0;Y&&this.createChart(),J&&(j!=null&&j.chartThemeOverrides)&&(0,E._mergeDeep)(J,j.chartThemeOverrides);let ne=J!=null?J:j==null?void 0:j.chartThemeOverrides;this.updateChart(ne),j!=null&&j.chartId&&this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartApiUpdateEvent()})}updateChart(j){let{chartProxy:Y}=this,J=this.chartController.getSelectedValueColState(),ne=this.chartController.getChartData(),ce=this.handleEmptyChart(ne,J.length);if(this.chartEmpty=ce,ce){j&&this.chartController.updateThemeOverrides(j);return}let fe=this.chartController.getChartUpdateParams(j);Y.update(fe),this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartUpdatedEvent()})}chartTypeChanged(j){let[Y,J]=[this.chartController.getChartType(),j==null?void 0:j.chartType],ne=J?(0,P.getCanonicalChartType)(J):void 0;return this.chartType!==Y?ne!=null?ne:Y:ne&&Y!==ne?ne:null}getChartModel(){return this.chartController.getChartModel()}getChartImageDataURL(j){return this.chartProxy.getChartImageDataURL(j)}handleEmptyChart(j,Y){let J=this.chartController.isPivotChart()&&!this.chartController.isPivotMode(),ne=this.chartController.getChartType(),ce=1;this.chartController.isActiveXYChart()?ce=ne==="bubble"?3:2:(0,P.isHierarchical)((0,P.getSeriesType)(ne))&&(ce=0);let fe=Y<ce||j.length===0;if(this.eChart){let xe=J||fe;(0,E._setDisplayed)(this.eChart,!xe),(0,E._setDisplayed)(this.eEmpty,xe)}return J?(this.eEmpty.innerText=this.chartTranslation.translate("pivotChartRequiresPivotMode"),!0):fe?(this.eEmpty.innerText=this.chartTranslation.translate("noDataToChart"),!0):!1}downloadChart(j,Y,J){this.chartProxy.downloadChart(j,Y,J)}openChartToolPanel(j){let Y=j&&w.CHART_TOOL_PANEL_MENU_OPTIONS[j];this.chartMenu.showMenu({panel:Y})}closeChartToolPanel(){this.chartMenu.hideMenu()}getChartId(){return this.chartController.getChartId()}getUnderlyingChart(){return this.chartProxy.getChartRef()}crossFilteringReset(){this.chartProxy.crossFilteringReset()}setActiveChartCellRange(j){this.getGui().contains(j.relatedTarget)||this.chartController.setChartRange(!0)}getThemeName(){let j=this.gos.get("chartThemes")||T.DEFAULT_THEMES;if(j.length===0)throw new Error((0,E._errMsg)(254));let{chartThemeName:Y}=this.params;return j.includes(Y)?Y:j[0]}getAllKeysInObjects(j){let Y={};return j.filter(J=>J!=null).forEach(J=>{Object.keys(J).forEach(ne=>Y[ne]=null)}),Object.keys(Y)}validateCustomThemes(){let j=this.getChartThemes(),Y=this.gos.get("customChartThemes");Y&&this.getAllKeysInObjects([Y]).forEach(J=>{j.includes(J)||(0,E._warn)(139,{customThemeName:J})})}reactivePropertyUpdate(){this.chartController.setChartThemeName(this.getThemeName(),!0);let j=this.getChartId(),Y=this.chartController.isCrossFilterChart()?"crossFilter":this.getChartModel().modelType,J=this.gos.get("chartThemeOverrides")||{};this.update({type:`${Y}ChartUpdate`,chartId:j,chartThemeOverrides:J})}raiseChartCreatedEvent(){this.chartProxy.getChart().waitForUpdate().then(()=>{this.eventSvc.dispatchEvent({type:"chartCreated",chartId:this.chartController.getChartId()})})}raiseChartDestroyedEvent(){this.eventSvc.dispatchEvent({type:"chartDestroyed",chartId:this.chartController.getChartId()})}destroy(){var Y;super.destroy(),this.chartProxy&&this.chartProxy.destroy(),this.destroyBean(this.chartMenu),this.chartDialog&&this.chartDialog.isAlive()&&this.destroyBean(this.chartDialog),(Y=this.onDestroyColorSchemeChangeListener)==null||Y.call(this);let j=this.getGui();(0,E._clearElement)(j),(0,E._removeFromParent)(j),this.raiseChartDestroyedEvent()}}p.GridChartComp=O},6353:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedSettingsMenuFactory=void 0;let E=A(6624),z=A(8775),T=A(5776);class b extends E.BeanStub{constructor(){super(...arguments),this.beanName="advSettingsMenuFactory"}showMenu(s,c){this.hideMenu();let h=this.createBean(new C(s));this.activeDialog=this.createBean(new z.AgDialog({title:this.beans.chartTranslation.translate("advancedSettings"),component:h,width:300,height:400,resizable:!0,movable:!0,centered:!0,closable:!0,afterGuiAttached:()=>{var g;(g=(0,E._findFocusableElements)(h.getGui())[0])==null||g.focus()},closedCallback:()=>{this.activeMenu=this.destroyBean(this.activeMenu),this.activeDialog=void 0,c==null||c.focus({preventScroll:!0})}})),this.activeMenu=h}hideMenu(){this.activeDialog&&this.destroyBean(this.activeDialog)}destroy(){this.activeMenu=this.destroyBean(this.activeMenu),this.activeDialog=this.destroyBean(this.activeDialog),super.destroy()}}p.AdvancedSettingsMenuFactory=b;class C extends E.TabGuardComp{constructor(s){super('<div class="ag-chart-advanced-settings"></div>'),this.chartMenuContext=s}postConstruct(){this.advancedSettingsPanel=this.createManagedBean(new T.AdvancedSettingsPanel(this.chartMenuContext)),this.getGui().appendChild(this.advancedSettingsPanel.getGui()),this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),focusTrapActive:!0})}onTabKeyDown(s){if(s.defaultPrevented)return;s.preventDefault();let c=s.shiftKey,h=this.advancedSettingsPanel.getGui(),g=(0,E._findNextFocusableElement)(this.beans,h,!1,c);if(g)g.focus();else{let f=(0,E._findFocusableElements)(h);f.length&&f[c?f.length-1:0].focus()}}}},5776:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AdvancedSettingsPanel=void 0;let E=A(6624),z=A(4237),T=A(1299),b=A(6671),C=A(2337),d=A(2738),s=A(3320),c=["navigator","zoom","animation","crosshair"];class h extends E.Component{constructor(f){super('<div class="ag-chart-advanced-settings-wrapper"></div>'),this.chartMenuContext=f}postConstruct(){this.chartPanelFeature=this.createManagedBean(new T.ChartPanelFeature(this.chartMenuContext.chartController,this.getGui(),"ag-chart-advanced-settings-section",(f,S)=>this.createPanels(f,S))),this.chartPanelFeature.refreshPanels()}createPanels(f,S){c.forEach(w=>{if(!this.isGroupPanelShownForSeries(w,S))return;let M=this.createPanel(w);this.chartPanelFeature.addComponent(M)})}isGroupPanelShownForSeries(f,S){return f==="animation"||(0,z.isCartesian)(S)}createPanel(f){let{chartMenuParamsFactory:S,chartAxisMenuParamsFactory:w}=this.chartMenuContext;switch(f){case"navigator":return new d.NavigatorPanel(S);case"zoom":return new s.ZoomPanel(S);case"animation":return new b.AnimationPanel(S);case"crosshair":return new C.CrosshairPanel(w)}}}p.AdvancedSettingsPanel=h},6671:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AnimationPanel=void 0;let E=A(6624),z=A(1421);class T extends E.Component{wireBeans(C){this.chartTranslation=C.chartTranslation}constructor(C){super(),this.chartMenuParamsFactory=C}postConstruct(){let C=this.chartMenuParamsFactory.addEnableParams("animation.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("animation"),suppressEnabledCheckbox:!0,useToggle:!0}),d=this.chartMenuParamsFactory.getDefaultNumberInputParams("animation.duration","durationMillis",{min:0});this.setTemplate(`<div>
            <ag-group-component data-ref="animationGroup">
                <ag-input-number-field data-ref="animationHeightInput"></ag-input>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,E.AgInputNumberFieldSelector],{animationGroup:C,animationHeightInput:d})}}p.AnimationPanel=T},2337:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CrosshairPanel=void 0;let E=A(6624),z=A(1421),T=A(1296);class b extends E.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d){super(),this.chartMenuParamsFactory=d}postConstruct(){let d=this.chartMenuParamsFactory.addEnableParams("crosshair.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("crosshair"),suppressEnabledCheckbox:!0,useToggle:!0}),s=this.chartMenuParamsFactory.getDefaultCheckboxParams("crosshair.label.enabled","crosshairLabel"),c=this.chartMenuParamsFactory.getDefaultCheckboxParams("crosshair.snap","crosshairSnap"),h=this.chartMenuParamsFactory.getDefaultColorPickerParams("crosshair.stroke","color");this.setTemplate(`<div>
            <ag-group-component data-ref="crosshairGroup">
                <ag-checkbox data-ref="crosshairLabelCheckbox"></ag-checkbox>
                <ag-checkbox data-ref="crosshairSnapCheckbox"></ag-checkbox>
                <ag-color-picker data-ref="crosshairStrokeColorPicker"></ag-color-picker>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,E.AgCheckboxSelector,T.AgColorPickerSelector],{crosshairGroup:d,crosshairLabelCheckbox:s,crosshairSnapCheckbox:c,crosshairStrokeColorPicker:h})}}p.CrosshairPanel=b},2738:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.NavigatorPanel=void 0;let E=A(6624),z=A(1421),T=A(5e3);class b extends E.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d){super(),this.chartMenuParamsFactory=d}postConstruct(){let d=this.chartMenuParamsFactory.addEnableParams("navigator.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("navigator"),suppressEnabledCheckbox:!0,useToggle:!0}),s=this.chartMenuParamsFactory.getDefaultSliderParams("navigator.height","height",60);s.minValue=10;let c=this.chartMenuParamsFactory.getDefaultCheckboxParams("navigator.miniChart.enabled","miniChart");this.setTemplate(`<div>
            <ag-group-component data-ref="navigatorGroup">
                <ag-slider data-ref="navigatorHeightSlider"></ag-slider>
                <ag-checkbox data-ref="navigatorMiniChartCheckbox"></ag-checkbox>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,T.AgSliderSelector,E.AgCheckboxSelector],{navigatorGroup:d,navigatorHeightSlider:s,navigatorMiniChartCheckbox:c})}}p.NavigatorPanel=b},3320:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ZoomPanel=void 0;let E=A(6624),z=A(1421),T=A(5e3);class b extends E.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d){super(),this.chartMenuParamsFactory=d,this.zoomScrollingStepInput=E.RefPlaceholder}postConstruct(){let d=this.chartMenuParamsFactory.addEnableParams("zoom.enabled",{cssIdentifier:"charts-advanced-settings-top-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("zoom"),suppressEnabledCheckbox:!0,useToggle:!0}),s=this.chartMenuParamsFactory.getDefaultCheckboxParams("zoom.enableScrolling","scrollingZoom"),c=this.chartMenuParamsFactory.getDefaultSliderParams("zoom.scrollingStep","scrollingStep",1);c.step=.01,c.minValue=c.step;let h=this.chartMenuParamsFactory.getDefaultCheckboxParams("zoom.enableSelecting","selectingZoom");s.onValueChange=(g=>f=>{g&&(g(f),this.zoomScrollingStepInput.setDisabled(!f))})(s.onValueChange),this.setTemplate(`<div>
            <ag-group-component data-ref="zoomGroup">
                <ag-checkbox data-ref="zoomSelectingCheckbox"></ag-checkbox>
                <ag-checkbox data-ref="zoomScrollingCheckbox"></ag-checkbox>
                <ag-slider data-ref="zoomScrollingStepInput"></ag-slider>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,E.AgCheckboxSelector,T.AgSliderSelector],{zoomGroup:d,zoomScrollingCheckbox:s,zoomScrollingStepInput:c,zoomSelectingCheckbox:h}),this.zoomScrollingStepInput.setDisabled(!s.value)}}p.ZoomPanel=b},3608:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartMenu=void 0;let E=A(6624),z=A(7325),T=A(4967),b=A(5518);class C extends E.Component{wireBeans(s){this.chartMenuSvc=s.chartMenuSvc,this.chartMenuListFactory=s.chartMenuListFactory,this.environment=s.environment}constructor(s,c,h){super('<div class="ag-chart-menu-wrapper"></div>'),this.eChartContainer=s,this.eMenuPanelContainer=c,this.chartMenuContext=h,this.buttons={chartLink:{iconName:"linked",callback:()=>this.chartMenuSvc.toggleLinked(this.chartMenuContext)},chartUnlink:{iconName:"unlinked",callback:()=>this.chartMenuSvc.toggleLinked(this.chartMenuContext)},chartDownload:{iconName:"chartsDownload",callback:()=>this.chartMenuSvc.downloadChart(this.chartMenuContext)},chartMenu:{iconName:"chartsMenu",callback:g=>this.showMenuList(g)}},this.panels=[],this.menuVisible=!1,this.chartController=h.chartController}postConstruct(){this.chartToolbar=this.createManagedBean(new T.ChartToolbar),this.getGui().appendChild(this.chartToolbar.getGui()),this.refreshToolbarAndPanels(),this.addManagedEventListeners({chartCreated:s=>{var c;s.chartId===this.chartController.getChartId()&&((c=this.gos.get("chartToolPanelsDef"))!=null&&c.defaultToolPanel)&&this.showMenu({panel:this.defaultPanel,suppressFocus:!0})}}),this.addManagedListeners(this.chartController,{chartLinkedChanged:this.refreshToolbarAndPanels.bind(this)}),this.refreshMenuClasses(),this.addManagedListeners(this.chartController,{chartApiUpdate:this.refreshToolbarAndPanels.bind(this)})}isVisible(){return this.menuVisible}getExtraPaddingDirections(){return["chartMenu","chartLink","chartUnlink","chartDownload"].some(s=>this.chartToolbarOptions.includes(s))?["top"]:[]}refreshToolbarAndPanels(){this.initToolbarOptionsAndPanels(),this.updateToolbar()}initToolbarOptionsAndPanels(){let{panels:s,defaultPanel:c}=this.chartMenuSvc.getChartToolPanels(this.chartController);this.panels=s,this.defaultPanel=c,this.chartToolbarOptions=this.chartMenuSvc.getChartToolbarOptions()}updateToolbar(){let s=this.chartToolbarOptions.map(c=>{let{iconName:h,callback:g}=this.buttons[c];return{buttonName:c,iconName:h,callback:g}});this.chartToolbar.updateParams({buttons:s})}createMenuPanel(s){let c=this.menuPanel=this.createBean(new z.AgPanel({height:"100%",closable:!0,hideTitleBar:!0,cssIdentifier:"chart-menu"}));return c.setParentComponent(this),this.eMenuPanelContainer.appendChild(c.getGui()),this.tabbedMenu=this.createBean(new b.TabbedChartMenu(this.panels,this.chartMenuContext)),this.addManagedListeners(this.tabbedMenu,{closed:()=>{this.hideMenu()}}),this.addManagedListeners(c,{destroyed:()=>this.destroyBean(this.tabbedMenu)}),new E.AgPromise(h=>{window.setTimeout(()=>{c.setBodyComponent(this.tabbedMenu),this.tabbedMenu.showTab(s),h(c)},100)})}showContainer(s,c){this.menuPanel&&(this.menuVisible=!0,this.refreshMenuClasses(),this.tabbedMenu.showMenu(s,c))}showMenu(s){let{panel:c,eventSource:h,suppressFocus:g}=s!=null?s:{};if(this.menuPanel&&!c)this.showContainer(h,g);else{let f=c||this.defaultPanel,S=this.panels.indexOf(f);S<0&&((0,E._warn)(143,{panel:c}),S=this.panels.indexOf(this.defaultPanel)),this.menuPanel?(this.tabbedMenu.showTab(S),this.showContainer(h,g)):this.createMenuPanel(S).then(()=>this.showContainer(h,g))}}hideMenu(){this.menuVisible=!1,this.refreshMenuClasses()}refreshMenuClasses(){this.eChartContainer.classList.toggle("ag-chart-menu-visible",this.menuVisible),this.eChartContainer.classList.toggle("ag-chart-menu-hidden",!this.menuVisible)}showMenuList(s){this.chartMenuListFactory.showMenuList({eventSource:s,showMenu:()=>this.showMenu({eventSource:s}),chartMenuContext:this.chartMenuContext})}destroy(){super.destroy(),this.menuPanel&&this.menuPanel.isAlive()&&this.destroyBean(this.menuPanel),this.tabbedMenu&&this.tabbedMenu.isAlive()&&this.destroyBean(this.tabbedMenu)}}p.ChartMenu=C},6292:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartMenuListFactory=void 0;let E=A(6624),z=A(9476);class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="chartMenuListFactory"}wireBeans(d){this.popupSvc=d.popupSvc,this.chartMenuSvc=d.chartMenuSvc,this.chartTranslation=d.chartTranslation}showMenuList(d){let{eventSource:s,showMenu:c,chartMenuContext:h}=d,g=this.chartMenuSvc.doChartToolPanelsExist(h.chartController),f=this.mapWithStockItems(this.getMenuItems(h.chartController,g),h,c,s,g);if(!f.length)return;let S=this.createBean(new b(f));this.activeChartMenuList=S;let w=-1,M="left";this.gos.get("enableRtl")&&(w=1,M="right");let P=S.getGui();this.popupSvc.addPopup({modal:!0,eChild:P,closeOnEsc:!0,closedCallback:()=>{this.destroyBean(S),this.activeChartMenuList=void 0,(0,E._isNothingFocused)(this.beans)&&s.focus({preventScroll:!0})},afterGuiAttached:O=>S.afterGuiAttached(O),positionCallback:()=>{this.popupSvc.positionPopupByComponent({type:"chartMenu",eventSource:s,ePopup:P,alignSide:M,nudgeX:4*w,nudgeY:4,position:"under",keepWithinBounds:!0})},ariaLabel:"Chart Menu"})}getMenuItems(d,s){let c=[...s?["chartEdit"]:[],...d.isEnterprise()?["chartAdvancedSettings"]:[],d.isChartLinked()?"chartUnlink":"chartLink","chartDownload"],h=this.gos.get("chartMenuItems");return h?Array.isArray(h)?h:h(this.gos.addGridCommonParams({defaultItems:c})):c}mapWithStockItems(d,s,c,h,g){if(!d)return[];let f=[];return d.forEach(S=>{let w;if(typeof S=="string"?w=this.getStockMenuItem(S,s,c,h,g):w=ge({},S),!w)return;let{subMenu:M}=w;Array.isArray(M)&&(w.subMenu=this.mapWithStockItems(M,s,c,h,g)),f.push(w)}),f}getStockMenuItem(d,s,c,h,g){switch(d){case"chartEdit":return g?this.createMenuItem(this.chartTranslation.translate("chartEdit"),"chartsMenuEdit",c):null;case"chartAdvancedSettings":return this.createMenuItem(this.chartTranslation.translate("chartAdvancedSettings"),"chartsMenuAdvancedSettings",()=>this.chartMenuSvc.openAdvancedSettings(s,h));case"chartUnlink":return s.chartController.isChartLinked()?this.createMenuItem(this.chartTranslation.translate("chartUnlink"),"unlinked",()=>this.chartMenuSvc.toggleLinked(s)):null;case"chartLink":return s.chartController.isChartLinked()?null:this.createMenuItem(this.chartTranslation.translate("chartLink"),"linked",()=>this.chartMenuSvc.toggleLinked(s));case"chartDownload":return this.createMenuItem(this.chartTranslation.translate("chartDownload"),"chartsDownload",()=>this.chartMenuSvc.downloadChart(s))}return null}createMenuItem(d,s,c){return{name:d,icon:(0,E._createIconNoSpan)(s,this.beans,null),action:c}}destroy(){this.destroyBean(this.activeChartMenuList),super.destroy()}}p.ChartMenuListFactory=T;class b extends E.Component{constructor(d){super(`
            <div data-ref="eChartsMenu" role="presentation" class="ag-menu ag-chart-menu-popup"></div>
        `),this.menuItems=d,this.eChartsMenu=E.RefPlaceholder}postConstruct(){this.mainMenuList=this.createManagedBean(new z.AgMenuList(0)),this.mainMenuList.addMenuItems(this.menuItems),this.mainMenuList.addEventListener("closeMenu",this.onHidePopup.bind(this)),this.eChartsMenu.appendChild(this.mainMenuList.getGui())}onHidePopup(){var d;(d=this.hidePopupFunc)==null||d.call(this)}afterGuiAttached({hidePopup:d}){d&&(this.hidePopupFunc=d,this.addDestroyFunc(d)),(0,E._focusInto)(this.mainMenuList.getGui())}}},3786:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartMenuParamsFactory=void 0;let E=A(6624);class z extends E.BeanStub{wireBeans(b){this.chartTranslation=b.chartTranslation}constructor(b){super(),this.chartOptionsProxy=b}getDefaultColorPickerParams(b,C,d){return this.addValueParams(b,{label:this.chartTranslation.translate(C!=null?C:"color"),labelWidth:"flex",inputWidth:"flex",labelAlignment:"top",pickerGap:6},d)}getDefaultNumberInputParams(b,C,d){return this.addValueParams(b,{label:this.chartTranslation.translate(C),labelAlignment:"top",labelWidth:"flex",inputWidth:"flex",precision:d==null?void 0:d.precision,step:d==null?void 0:d.step,min:d==null?void 0:d.min,max:d==null?void 0:d.max},{parseInputValue:s=>{let c=Number(s);return isNaN(c)?void 0:c},formatInputValue:s=>s==null?"":`${s}`})}getDefaultSliderParams(b,C,d,s){var g;let c=(g=this.chartOptionsProxy.getValue(b))!=null?g:0;s&&Array.isArray(c)&&(c=c[0]);let h=this.getDefaultSliderParamsWithoutValueParams(c,C,d);return h.onValueChange=f=>this.chartOptionsProxy.setValue(b,s?[f]:f),h}getDefaultSliderParamsWithoutValueParams(b,C,d){return{label:this.chartTranslation.translate(C),minValue:0,maxValue:Math.max(b,d),textFieldWidth:45,value:`${b}`}}getDefaultCheckboxParams(b,C,d){let s=this.chartOptionsProxy.getValue(b),c={label:this.chartTranslation.translate(C),value:s,readOnly:d==null?void 0:d.readOnly,passive:d==null?void 0:d.passive};return c.onValueChange=h=>{this.chartOptionsProxy.setValue(b,typeof h=="boolean"?h:void 0)},c}getDefaultSelectParams(b,C,d){return this.getDefaultSelectParamsWithoutValueParams(C,d,this.chartOptionsProxy.getValue(b),s=>{this.chartOptionsProxy.setValue(b,s)})}getDefaultSelectParamsWithoutValueParams(b,C,d,s){return{label:this.chartTranslation.translate(b),labelAlignment:"top",options:C,pickerGap:6,value:d,onValueChange:s}}getDefaultFontPanelParams(b,C){let d=s=>`${b}.${s}`;return this.addEnableParams(d("enabled"),{name:this.chartTranslation.translate(C),suppressEnabledCheckbox:!1,chartMenuParamsFactory:this,keyMapper:d})}addValueParams(b,C,d){let s=this.chartOptionsProxy.getValue(b);return C.value=d!=null&&d.formatInputValue?d.formatInputValue(s):s,C.onValueChange=c=>{let h=d!=null&&d.parseInputValue?d.parseInputValue(c):c;this.chartOptionsProxy.setValue(b,h)},C}addEnableParams(b,C){var d;return C.enabled=(d=this.chartOptionsProxy.getValue(b))!=null?d:!1,C.onEnableChange=s=>this.chartOptionsProxy.setValue(b,s),C}getChartOptions(){return this.chartOptionsProxy}}p.ChartMenuParamsFactory=z},1299:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartPanelFeature=void 0;let E=A(6624),z=A(4237);class T extends E.BeanStub{constructor(C,d,s,c){super(),this.chartController=C,this.eGui=d,this.cssClass=s,this.createPanels=c,this.panels=[]}postConstruct(){this.addManagedListeners(this.chartController,{chartUpdated:()=>this.refreshPanels(!0),chartApiUpdate:()=>this.refreshPanels(!1)})}addComponent(C){this.createBean(C),this.panels.push(C),C.addCssClass(this.cssClass),this.eGui.appendChild(C.getGui())}refreshPanels(C){let d=this.chartController.getChartType(),s=this.chartController.isGrouping(),c=(0,z.getSeriesType)(d);C&&d===this.chartType&&s===this.isGrouping||(this.destroyPanels(),this.createPanels(d,c),this.chartType=d,this.isGrouping=s)}destroyPanels(){this.panels.forEach(C=>{(0,E._removeFromParent)(C.getGui()),this.destroyBean(C)}),this.panels=[]}destroy(){this.destroyPanels(),super.destroy()}}p.ChartPanelFeature=T},4967:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartToolbar=void 0;let E=A(6624);class z extends E.Component{wireBeans(b){this.chartTranslation=b.chartTranslation}constructor(){super('<div class="ag-chart-menu" data-ref="eMenu"></div>'),this.eMenu=E.RefPlaceholder,this.buttonListenersDestroyFuncs=[]}updateParams(b){let{buttons:C}=b;this.createButtons(C)}createButtons(b){this.buttonListenersDestroyFuncs.forEach(d=>d==null?void 0:d()),this.buttonListenersDestroyFuncs=[];let C=this.eMenu;(0,E._clearElement)(C),b.forEach(d=>{let{buttonName:s,iconName:c,callback:h}=d,g=this.createButton(c),f=this.chartTranslation.translate(s+"ToolbarTooltip");f&&g instanceof HTMLElement&&(g.title=f),this.buttonListenersDestroyFuncs.push(...this.addManagedElementListeners(g,{click:S=>h(S.currentTarget)})),C.appendChild(g)})}createButton(b){let C=(0,E._createIconNoSpan)(b,this.beans);C.classList.add("ag-chart-menu-icon");let d=(0,E._getDocument)(this.beans).createElement("button");return d.appendChild(C),d.classList.add("ag-chart-menu-toolbar-button"),d}destroy(){this.buttonListenersDestroyFuncs=[],super.destroy()}}p.ChartToolbar=z},2477:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CategoriesDataPanel=void 0;let E=A(6624),z=A(1421),T=A(8592),b=A(6532),C="sum";class d extends b.DragDataPanel{constructor(c,h,g,f,S){super(c,g,void 0,'<div id="categoriesGroup"></div>'),this.title=h,this.dimensionCols=f,this.isOpen=S}postConstruct(){this.groupComp=this.createBean(new z.AgGroupComponent({title:this.title,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen})),this.createGroup(this.dimensionCols,c=>{var h;return(h=c.displayName)!=null?h:""},"categoryAdd","categorySelect",()=>!this.chartController.getAggFunc()),this.createAggFuncControls(this.dimensionCols),this.getGui().appendChild(this.groupComp.getGui())}refresh(c){var h;(h=this.valuePillSelect)==null||h.setValues(c,c.filter(g=>g.selected)),this.refreshValueSelect(c),this.refreshAggFuncControls(c,this.chartController.getAggFunc())}createAggFuncControls(c){let h=this.chartController.getAggFunc();this.groupComp.addItem(this.aggFuncToggle=this.createBean(new E.AgToggleButton({label:this.chartTranslation.translate("aggregate"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:h!=null,onValueChange:g=>{var S,w;let f=g?C:void 0;this.chartController.setAggFunc(f),(S=this.aggFuncSelect)==null||S.setValue(f,!0),(w=this.aggFuncSelect)==null||w.setDisplayed(f!=null)}}))),this.groupComp.addItem(this.aggFuncSelect=this.createBean(new E.AgSelect({options:[{value:"sum",text:this.chartTranslation.translate("sum")},{value:"first",text:this.chartTranslation.translate("first")},{value:"last",text:this.chartTranslation.translate("last")},{value:"min",text:this.chartTranslation.translate("min")},{value:"max",text:this.chartTranslation.translate("max")},{value:"count",text:this.chartTranslation.translate("count")},{value:"avg",text:this.chartTranslation.translate("avg")}],value:typeof h=="string"?h:void 0,onValueChange:g=>{this.chartController.setAggFunc(g)}}))),this.refreshAggFuncControls(c,h)}refreshAggFuncControls(c,h){var S,w,M,P;let f=c.filter(O=>O.selected).some(O=>O.colId!==T.DEFAULT_CHART_CATEGORY);(S=this.aggFuncToggle)==null||S.setValue(h!=null),(w=this.aggFuncSelect)==null||w.setValue(typeof h=="string"?h:void 0,!0),(M=this.aggFuncToggle)==null||M.setDisplayed(f),(P=this.aggFuncSelect)==null||P.setDisplayed(f&&h!=null)}clearAggFuncControls(){this.aggFuncToggle=this.destroyBean(this.aggFuncToggle),this.aggFuncSelect=this.destroyBean(this.aggFuncSelect)}destroy(){this.clearAggFuncControls(),this.groupComp=this.destroyBean(this.groupComp),super.destroy()}}p.CategoriesDataPanel=d},1504:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartDataPanel=void 0;let E=A(6624),z=A(4237),T=A(2477),b=A(5524),C=A(1625),d=A(3365),s={groups:[{type:"categories",isOpen:!0},{type:"series",isOpen:!0},{type:"seriesChartType",isOpen:!0},{type:"chartSpecific",isOpen:!0}]};class c extends E.Component{wireBeans(g){this.chartTranslation=g.chartTranslation,this.chartSvc=g.chartSvc}constructor(g){super('<div class="ag-chart-data-wrapper ag-scrollable-container"></div>'),this.chartMenuContext=g,this.isSwitchCategorySeriesToggled=!1,this.restoreSwitchCategorySeriesToggleFocus=!1,this.panels=[],this.chartController=g.chartController}postConstruct(){this.createSwitchCategorySeriesToggle(),this.isSwitchCategorySeriesToggled=this.chartController.isCategorySeriesSwitched(),this.updatePanels();let g=this.updatePanels.bind(this);this.addManagedListeners(this.chartController,{chartModelUpdate:g,chartApiUpdate:g})}destroy(){this.clearPanelComponents(),super.destroy()}updatePanels(){var O,G,j,Y,J;let g=this.chartType,f=this.isSwitchCategorySeriesToggled,{dimensionCols:S,valueCols:w}=this.chartController.getColStateForMenu();this.chartType=this.chartController.getChartType(),this.isSwitchCategorySeriesToggled=this.chartController.isCategorySeriesSwitched();let M=this.isSwitchCategorySeriesToggled!==f;this.canRefresh(g,this.chartType)&&!M?((O=this.categoriesDataPanel)==null||O.refresh(S),(G=this.seriesDataPanel)==null||G.refresh(w),(j=this.seriesChartTypePanel)==null||j.refresh(w),(Y=this.chartSpecificPanel)==null||Y.refresh()):this.recreatePanels(S,w);let P=(0,z.supportsInvertedCategorySeries)(this.chartType)&&this.chartSvc.isEnterprise()&&!this.chartController.isGrouping();(0,E._setDisplayed)(this.switchCategorySeriesToggle.getGui(),P),M&&((J=this.switchCategorySeriesToggle)==null||J.setValue(this.chartController.isCategorySeriesSwitched())),this.restoreSwitchCategorySeriesToggleFocus&&(this.restoreSwitchCategorySeriesToggleFocus=!1,P&&this.switchCategorySeriesToggle.getFocusableElement().focus())}canRefresh(g,f){if(g===void 0)return!1;if(g===f)return!0;let S=w=>["columnLineCombo","areaColumnCombo","customCombo"].includes(w);return!!(S(g)&&S(f))}recreatePanels(g,f){var M,P;this.clearPanelComponents();let{chartType:S}=this;if(!S)return;let w=this.chartController.isCategorySeriesSwitched();(M=this.getDataPanelDef().groups)==null||M.forEach(({type:O,isOpen:G})=>{O===(w?"series":"categories")?(this.categoriesDataPanel=this.createBean(new T.CategoriesDataPanel(this.chartController,this.getCategoryGroupTitle(w),this.getCategoryGroupMultipleSelect(S,w),g,G)),this.panels.push(this.categoriesDataPanel)):O===(w?"categories":"series")?(this.seriesDataPanel=this.createBean(new d.SeriesDataPanel(this.chartController,this.chartMenuContext.chartOptionsService,this.getSeriesGroupTitle(w),this.getSeriesGroupMultipleSelect(S,w),this.getSeriesGroupMaxSelection(S,w),f,G)),this.panels.push(this.seriesDataPanel)):O==="seriesChartType"?this.chartController.isComboChart()&&(this.seriesChartTypePanel=this.createBean(new C.SeriesChartTypePanel(this.chartController,f,G)),this.panels.push(this.seriesChartTypePanel)):O==="chartSpecific"?(this.chartSpecificPanel=this.createBean(new b.ChartSpecificDataPanel(this.chartMenuContext,G)),this.panels.push(this.chartSpecificPanel)):(0,E._warn)(144,{type:O})}),(P=w?this.categoriesDataPanel:this.seriesDataPanel)==null||P.addItem(this.switchCategorySeriesToggle.getGui()),this.addPanelComponents()}addPanelComponents(){if(!this.panels.length)return;let f=(0,E._getDocument)(this.beans).createDocumentFragment();for(let S of this.panels)S.addCssClass("ag-chart-data-section"),f.appendChild(S.getGui());this.getGui().appendChild(f)}clearPanelComponents(){let g=this.getGui();this.panels.forEach(f=>{g.removeChild(f.getGui()),this.destroyBean(f)}),this.panels=[]}getDataPanelDef(){var g,f;return(f=(g=this.gos.get("chartToolPanelsDef"))==null?void 0:g.dataPanel)!=null?f:s}getCategoryGroupTitle(g){return g?this.chartTranslation.translate("seriesLabels"):this.chartTranslation.translate(this.chartController.isActiveXYChart()?"labels":"categories")}getCategoryGroupMultipleSelect(g,f){return f?!1:(0,z.getMaxNumCategories)(g)!==1}getSeriesGroupTitle(g){return g?this.chartTranslation.translate("categoryValues"):this.chartTranslation.translate(this.chartController.isActiveXYChart()?"xyValues":"series")}getSeriesGroupMultipleSelect(g,f){return this.getSeriesGroupMaxSelection(g,f)!==1}getSeriesGroupMaxSelection(g,f){if(!f)return(0,z.getMaxNumSeries)(g)}createSwitchCategorySeriesToggle(){this.switchCategorySeriesToggle=this.createManagedBean(new E.AgToggleButton({label:this.chartTranslation.translate("switchCategorySeries"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:this.chartController.isCategorySeriesSwitched(),onValueChange:g=>{this.restoreSwitchCategorySeriesToggleFocus=!0,this.chartController.switchCategorySeries(g)}}))}}p.ChartDataPanel=c},5524:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartSpecificDataPanel=void 0;let E=A(6624),z=A(1421),T=A(4237),b=A(3786);class C extends E.Component{wireBeans(s){this.chartTranslation=s.chartTranslation,this.chartSvc=s.chartSvc}constructor(s,c){super(),this.chartMenuContext=s,this.isOpen=c,this.chartSpecificGroup=E.RefPlaceholder,this.hasContent=!1}postConstruct(){let c={title:this.getTitle(),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen,items:[...this.createDirectionSelect(),this.createGroupTypeSelect()]};this.setTemplate(`
            <div id="chartSpecificGroup">
                <ag-group-component data-ref="chartSpecificGroup"></ag-group-component>
            </div>`,[z.AgGroupComponentSelector],{chartSpecificGroup:c}),this.setDisplayed(this.hasContent)}refresh(){this.hasContent=!1,this.chartSpecificGroup.setTitle(this.getTitle()),this.updateDirectionSelect(),this.updateGroupTypeSelect(),this.setDisplayed(this.hasContent)}getTitle(){let s=this.chartMenuContext.chartController.getChartType();return this.chartTranslation.translate((0,T.getFullChartNameTranslationKey)(s))}createDirectionSelect(){if(!this.chartSvc.isEnterprise())return[];let{chartOptionsService:s,chartController:c}=this.chartMenuContext,h=s.getSeriesOptionsProxy(()=>(0,T.getSeriesType)(c.getChartType())),g=this.createManagedBean(new b.ChartMenuParamsFactory(h)),f=["horizontal","vertical"].map(M=>({value:M,text:this.chartTranslation.translate(M)})),S=g.getDefaultSelectParams("direction","direction",f),w=S.onValueChange;return S.onValueChange=M=>{w(M),c.raiseChartModelUpdateEvent()},this.directionSelect=this.createManagedBean(new E.AgSelect(S)),this.updateDirectionSelect(),[this.directionSelect]}updateDirectionSelect(){let s=(0,T.canSwitchDirection)(this.chartMenuContext.chartController.getChartType());this.updateDisplayed(this.directionSelect,s)}createGroupTypeSelect(){let{chartController:s,chartMenuParamsFactory:c}=this.chartMenuContext;return this.groupTypeSelect=this.createManagedBean(new E.AgSelect(c.getDefaultSelectParamsWithoutValueParams("seriesGroupType",T.SERIES_GROUP_TYPES.map(h=>({value:h,text:this.chartTranslation.translate(`${h}SeriesGroupType`)})),s.getSeriesGroupType(),h=>s.setSeriesGroupType(h)))),this.updateGroupTypeSelect(),this.groupTypeSelect}updateGroupTypeSelect(){let s=["radialColumn","radialBar","nightingale"].includes(this.chartMenuContext.chartController.getChartType());this.updateDisplayed(this.groupTypeSelect,s)}updateDisplayed(s,c){s==null||s.setDisplayed(c),s&&(this.hasContent=this.hasContent||c)}}p.ChartSpecificDataPanel=C},6532:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DragDataPanel=void 0;let E=A(6624),z=A(2406),T=A(8592);class b extends E.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d,s,c,h){super(h),this.chartController=d,this.allowMultipleSelection=s,this.maxSelection=c}addItem(d){this.groupComp.addItem(d)}createGroup(d,s,c,h,g){if(this.allowMultipleSelection){let f=d.filter(S=>S.selected);this.valuePillSelect=this.groupComp.createManagedBean(new z.AgPillSelect({valueList:d,selectedValueList:f,valueFormatter:s,selectPlaceholder:this.chartTranslation.translate(c),dragSourceId:h,onValuesChange:S=>this.onValueChange(S),maxSelection:this.maxSelection})),this.groupComp.addItem(this.valuePillSelect)}else{let f=this.createValueSelectParams(d);f.onValueChange=S=>{d.forEach(w=>{w.selected=!1}),S.selected=!0,S.colId===T.DEFAULT_CHART_CATEGORY&&this.chartController.setAggFunc(void 0,!0),this.chartController.updateForPanelChange({updatedColState:S,skipAnimation:g==null?void 0:g()})},this.valueSelect=this.groupComp.createManagedBean(new E.AgSelect(f)),this.groupComp.addItem(this.valueSelect)}}refreshValueSelect(d){if(!this.valueSelect)return;let{options:s,value:c}=this.createValueSelectParams(d);this.valueSelect.clearOptions().addOptions(s).setValue(c,!0)}createValueSelectParams(d){let s;return{options:d.map(h=>{var f;let g=(f=h.displayName)!=null?f:"";return h.selected&&(s=h),{value:h,text:g}}),value:s}}onValueChange({added:d,updated:s,removed:c,selected:h}){let g,f,S=()=>{h.forEach((w,M)=>{w.order=M}),f=!0};d.length?(g=d[0],g.selected=!0,S()):c.length?(g=c[0],g.selected=!1):s.length&&(S(),g=s[0]),g&&this.chartController.updateForPanelChange({updatedColState:g,resetOrder:f})}destroy(){this.valuePillSelect=void 0,this.valueSelect=void 0,super.destroy()}}p.DragDataPanel=b},1625:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SeriesChartTypePanel=void 0;let E=A(6624),z=A(1421),T=A(4237);class b extends E.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d,s,c){super('<div id="seriesChartTypeGroup"></div>'),this.chartController=d,this.columns=s,this.isOpen=c,this.selectedColIds=[],this.chartTypeComps=new Map,this.secondaryAxisComps=new Map}postConstruct(){this.createSeriesChartTypeGroup(this.columns)}refresh(d){(0,E._areEqual)(this.getValidColIds(d),this.selectedColIds)?this.refreshComps():this.recreate(d)}recreate(d){this.isOpen=this.seriesChartTypeGroupComp.isExpanded(),(0,E._clearElement)(this.getGui()),this.destroyBean(this.seriesChartTypeGroupComp),this.columns=d,this.selectedColIds=[],this.clearComps(),this.postConstruct()}getValidColIds(d){let s=this.chartController.getSeriesChartTypes();return d.filter(c=>c.selected&&!!s.filter(h=>h.colId===c.colId)[0]).map(({colId:c})=>c)}createSeriesChartTypeGroup(d){this.seriesChartTypeGroupComp=this.createBean(new z.AgGroupComponent({title:this.chartTranslation.translate("seriesChartType"),enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen}));let s=this.chartController.getSeriesChartTypes();d.forEach(c=>{if(!c.selected)return;let h=s.filter(P=>P.colId===c.colId)[0];if(!h)return;this.selectedColIds.push(c.colId);let g=this.seriesChartTypeGroupComp.createManagedBean(new z.AgGroupComponent({title:c.displayName,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!0,cssIdentifier:"charts-format-sub-level"})),f=P=>["groupedColumn","stackedColumn","stackedArea"].includes(P),S=this.seriesChartTypeGroupComp.createManagedBean(new E.AgCheckbox({label:this.chartTranslation.translate("secondaryAxis"),labelWidth:"flex",disabled:f(h.chartType),value:!!h.secondaryAxis,onValueChange:P=>this.chartController.updateSeriesChartType(c.colId,void 0,P)}));g.addItem(S);let w=["line","area","stackedArea","groupedColumn","stackedColumn"].map(P=>({value:P,text:this.chartTranslation.translate((0,T.getFullChartNameTranslationKey)(P))})),M=g.createManagedBean(new E.AgSelect({options:w,value:h.chartType,onValueChange:P=>this.chartController.updateSeriesChartType(c.colId,P)}));g.addItem(M),this.seriesChartTypeGroupComp.addItem(g),this.chartTypeComps.set(c.colId,M),this.secondaryAxisComps.set(c.colId,S)}),this.getGui().appendChild(this.seriesChartTypeGroupComp.getGui())}refreshComps(){let d=this.chartController.getSeriesChartTypes();this.selectedColIds.forEach(s=>{let c=d.find(f=>f.colId===s);if(!c)return;let h=this.chartTypeComps.get(s),g=this.secondaryAxisComps.get(s);h==null||h.setValue(c.chartType),g==null||g.setValue(!!c.secondaryAxis),g==null||g.setDisabled(this.isSecondaryAxisDisabled(c.chartType))})}clearComps(){this.chartTypeComps.clear(),this.secondaryAxisComps.clear()}isSecondaryAxisDisabled(d){return["groupedColumn","stackedColumn","stackedArea"].includes(d)}destroy(){this.clearComps(),this.seriesChartTypeGroupComp=this.destroyBean(this.seriesChartTypeGroupComp),super.destroy()}}p.SeriesChartTypePanel=b},3365:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SeriesDataPanel=void 0;let E=A(6624),z=A(1421),T=A(6532);class b extends T.DragDataPanel{constructor(d,s,c,h,g,f,S){super(d,h,g,'<div id="seriesGroup"></div>'),this.chartOptionsService=s,this.title=c,this.valueCols=f,this.isOpen=S}postConstruct(){if(this.groupComp=this.createBean(new z.AgGroupComponent({title:this.title,enabled:!0,suppressEnabledCheckbox:!0,suppressOpenCloseIcons:!1,cssIdentifier:"charts-data",expanded:this.isOpen})),this.chartController.isActiveXYChart()){let d=this.groupComp.createManagedBean(new E.AgToggleButton({label:this.chartTranslation.translate("paired"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex",value:this.chartOptionsService.getPairedMode(),onValueChange:s=>{this.chartOptionsService.setPairedMode(!!s),this.chartController.updateForGridChange({maintainColState:!0})}}));this.groupComp.addItem(d)}this.createGroup(this.valueCols,this.generateGetSeriesLabel(this.valueCols),"seriesAdd","seriesSelect"),this.getGui().appendChild(this.groupComp.getGui())}refresh(d){var s,c;(s=this.valuePillSelect)==null||s.setValueFormatter(this.generateGetSeriesLabel(d)),(c=this.valuePillSelect)==null||c.setValues(d,d.filter(h=>h.selected)),this.refreshValueSelect(d)}generateGetSeriesLabel(d){if(!this.chartController.isActiveXYChart())return f=>{var S;return(S=f.displayName)!=null?S:""};let s=d.filter(f=>f.selected),c=this.chartController.getChartType()==="bubble",h=this.chartOptionsService.getPairedMode(),g=new Map;return g.set(0,"X"),g.set(1,"Y"),g.set(2,"size"),f=>{var P;let S=(P=f.displayName)!=null?P:"";if(!f.selected)return S;let w=s.indexOf(f);if(w===-1)return S;let M;return h?M=g.get(w%(c?3:2)):w===0?M="X":M=c&&w%2===0?"size":"Y",`${S} (${M})`}}destroy(){this.groupComp=this.destroyBean(this.groupComp),super.destroy()}}p.SeriesDataPanel=b},5248:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AxisTicksPanel=void 0;let E=A(6624),z=A(1421),T=A(1296),b=A(5e3);class C extends E.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s}postConstruct(){let{chartMenuUtils:s}=this,c=s.addEnableParams("tick.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("ticks"),suppressEnabledCheckbox:!0,useToggle:!0}),h=s.getDefaultColorPickerParams("tick.stroke"),g=s.getDefaultSliderParams("tick.width","width",10),f=s.getDefaultSliderParams("tick.size","length",30);this.setTemplate(`<div>
            <ag-group-component data-ref="axisTicksGroup">
                <ag-color-picker data-ref="axisTicksColorPicker"></ag-color-picker>
                <ag-slider data-ref="axisTicksWidthSlider"></ag-slider>
                <ag-slider data-ref="axisTicksSizeSlider"></ag-slider>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,T.AgColorPickerSelector,b.AgSliderSelector],{axisTicksGroup:c,axisTicksColorPicker:h,axisTicksWidthSlider:g,axisTicksSizeSlider:f})}}p.AxisTicksPanel=C},5002:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CartesianAxisPanel=void 0;let E=A(6624),z=A(1421),T=A(1750),b=A(1296),C=A(5e3),d=A(3786),s=A(7730),c=A(5248),h=A(4513),g="%d %B %Y";class f extends E.Component{wireBeans(w){this.chartTranslation=w.chartTranslation}constructor(w,M){super(),this.axisType=w,this.options=M,this.axisGroup=E.RefPlaceholder,this.axisTypeSelect=E.RefPlaceholder,this.axisPositionSelect=E.RefPlaceholder,this.axisTimeFormatSelect=E.RefPlaceholder,this.activePanels=[],this.axisLabelUpdateFuncs=[];let{chartOptionsService:P,seriesType:O}=M;this.chartOptionsSeriesProxy=P.getSeriesOptionsProxy(()=>O)}postConstruct(){var it;let{isExpandedOnInit:w,chartOptionsService:M,chartController:P,registerGroupComponent:O}=this.options,G=this.axisType,j={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate(G),expanded:w,suppressEnabledCheckbox:!0},Y=M.getCartesianAxisOptionsProxy(this.axisType),J=this.createManagedBean(new d.ChartMenuParamsFactory(Y)),ne=this.createManagedBean(new d.ChartMenuParamsFactory(M.getCartesianAxisThemeOverridesProxy(this.axisType))),ce=this.getAxisTypeSelectParams(J,M.getCartesianAxisAppliedThemeOverridesProxy(this.axisType)),fe=this.getAxisPositionSelectParams(J),xe=this.getAxisTimeFormatSelectParams(J),Le=this.getAxisColorInputParams(ne),_e=this.getAxisLineWidthSliderParams(ne);this.setTemplate(`<div>
            <ag-group-component data-ref="axisGroup">
                <ag-select data-ref="axisTypeSelect"></ag-select>
                <ag-select data-ref="axisTimeFormatSelect"></ag-select>
                <ag-select data-ref="axisPositionSelect"></ag-select>
                <ag-color-picker data-ref="axisColorInput"></ag-color-picker>
                <ag-slider data-ref="axisLineWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,E.AgSelectSelector,b.AgColorPickerSelector,C.AgSliderSelector],{axisGroup:j,axisTypeSelect:ce!=null?ce:void 0,axisPositionSelect:fe!=null?fe:void 0,axisTimeFormatSelect:xe!=null?xe:void 0,axisColorInput:Le,axisLineWidthSlider:_e}),O(this.axisGroup),this.axisTypeSelect.setDisplayed(!!((it=ce.options)!=null&&it.length)),fe||this.removeTemplateComponent(this.axisPositionSelect);let Fe=()=>{let tt=Y.getValue("type")==="time";(0,E._setDisplayed)(this.axisTimeFormatSelect.getGui(),tt)};xe?(Fe(),this.addManagedEventListeners({chartOptionsChanged:()=>{Fe()}})):this.removeTemplateComponent(this.axisTimeFormatSelect),this.initGridLines(ne),this.initAxisTicks(ne),this.initAxisLabels(ne);let We=()=>this.axisLabelUpdateFuncs.forEach(tt=>tt());this.addManagedListeners(P,{chartUpdated:We,chartModelUpdate:()=>setTimeout(()=>{this.isAlive()&&(this.refreshAxisTypeSelect(J),Fe())})})}getAxisTypeSelectParams(w,M){let P=w.getChartOptions(),O=this.getAxisTypeSelectOptions(),G=w.getDefaultSelectParams("type","axisType",O);return G.onValueChange=j=>{var xe;let Y=P.getValue("type");if(j===Y)return;let J=M.getValue("*"),ne=Y==="time",ce=j==="time",fe=ne!==ce?ce?g:void 0:null;if(this.options.chartOptionsService.setCartesianCategoryAxisType(this.axisType,j),fe!==null){let Le=(xe=P.getValue("label"))!=null?xe:{};P.setValue("label",He(ge({},Le),{format:fe}))}M.setValue("*",J)},G}refreshAxisTypeSelect(w){let M=this.getAxisTypeSelectOptions(),P=!!M.length;this.axisTypeSelect.setDisplayed(P),P&&this.axisTypeSelect.clearOptions().addOptions(M).setValue(w.getChartOptions().getValue("type"))}getAxisTypeSelectOptions(){let{chartController:w}=this.options,M=w.getChartType(),P=()=>{let O=w.getChartData()[0];return O?w.getSelectedDimensions().every(G=>!isNaN(parseFloat(O[G.colId]))):!1};return["heatmap","histogram","boxPlot","rangeBar","scatter","bubble"].includes(M)||w.isGrouping()||!this.isCategoryAxis()||w.isCategorySeriesSwitched()||!P()?[]:["category","number","time"].map(O=>({value:O,text:this.translate(O)}))}isCategoryAxis(){let w=this.chartOptionsSeriesProxy.getValue("direction")==="horizontal";return w&&this.axisType==="yAxis"||!w&&this.axisType==="xAxis"}getAxisPositionSelectParams(w){let M=((P,O)=>{switch(P){case"heatmap":return null;default:switch(O){case"xAxis":return[{value:"top",text:this.translate("top")},{value:"bottom",text:this.translate("bottom")}];case"yAxis":return[{value:"left",text:this.translate("left")},{value:"right",text:this.translate("right")}]}}})(this.options.chartController.getChartType(),this.axisType);return M?w.getDefaultSelectParams("position","position",M):null}getAxisTimeFormatSelectParams(w){if(!this.isCategoryAxis())return null;let M=[{value:"%d/%m/%Y",text:this.translate("timeFormatSlashesDDMMYYYY")},{value:"%m/%d/%Y",text:this.translate("timeFormatSlashesMMDDYYYY")},{value:"%d/%m/%y",text:this.translate("timeFormatSlashesDDMMYY")},{value:"%m/%d/%y",text:this.translate("timeFormatSlashesMMDDYY")},{value:"%d.%e.%y",text:this.translate("timeFormatDotsDDMYY")},{value:"%e.%d.%y",text:this.translate("timeFormatDotsMDDYY")},{value:"%Y-%m-%d",text:this.translate("timeFormatDashesYYYYMMDD")},{value:"%d %B %Y",text:this.translate("timeFormatSpacesDDMMMMYYYY")},{value:"%H:%M:%S",text:this.translate("timeFormatHHMMSS")},{value:"%I:%M:%S %p",text:this.translate("timeFormatHHMMSSAmPm")}];return w.getDefaultSelectParams("label.format","timeFormat",M)}getAxisColorInputParams(w){return w.getDefaultColorPickerParams("line.stroke")}getAxisLineWidthSliderParams(w){var j;let M=w.getChartOptions(),P=()=>M.getValue("line.enabled")?M.getValue("line.width"):null,O=Y=>{M.setValues([{expression:"line.enabled",value:Y!=null},{expression:"line.width",value:Y!=null?Y:0}])},G=w.getDefaultSliderParamsWithoutValueParams((j=P())!=null?j:0,"thickness",10);return G.onValueChange=Y=>{O(Y===0?null:Y)},G}initGridLines(w){if(this.options.chartController.getChartType()==="heatmap")return;let P=this.createBean(new h.GridLinePanel(w));this.axisGroup.addItem(P),this.activePanels.push(P)}initAxisTicks(w){if(!this.hasConfigurableAxisTicks())return;let M=this.createBean(new c.AxisTicksPanel(w));this.axisGroup.addItem(M),this.activePanels.push(M)}hasConfigurableAxisTicks(){switch(this.options.chartController.getChartType()){case"radarLine":case"radarArea":case"rangeBar":case"boxPlot":case"waterfall":return!1;default:return!0}}initAxisLabels(w){let M={name:this.translate("labels"),enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:w,keyMapper:O=>`label.${O}`},P=this.createBean(new s.FontPanel(M));this.axisGroup.addItem(P),this.activePanels.push(P),this.addAdditionalLabelComps(P,w)}addAdditionalLabelComps(w,M){this.addLabelPadding(w,M);let P=this.createRotationWidget("labelRotation",M),O=this.initLabelRotation(P,M);w.addItem(O),w.addItem(P)}initLabelRotation(w,M){let P=M.getChartOptions(),O=()=>P.getValue("label.rotation"),G=()=>P.getValue("label.autoRotate"),j=ce=>{ce&&(this.prevRotation=O()),P.setValues([{expression:"label.autoRotate",value:ce},{expression:"label.rotation",value:ce?void 0:this.prevRotation}]),w.setDisplayed(!ce)},J=typeof O()=="number"?!1:G(),ne=this.createBean(new E.AgCheckbox({label:this.translate("autoRotate"),value:J,onValueChange:j}));return w.setDisplayed(!J),ne}createRotationWidget(w,M){var ne;let P=M.getChartOptions(),O=()=>P.getValue("label.rotation"),G=ce=>P.setValue("label.rotation",ce),j=String.fromCharCode(176),Y=`${this.chartTranslation.translate(w)} ${j}`,J=new T.AgAngleSelect({label:Y,labelWidth:"flex",value:(ne=O())!=null?ne:0,onValueChange:G});return this.axisLabelUpdateFuncs.push(()=>{var ce;J.setValue((ce=O())!=null?ce:0)}),this.createBean(J)}addLabelPadding(w,M){let P=this.createBean(new C.AgSlider(M.getDefaultSliderParams("label.spacing","padding",30)));w.addItem(P)}translate(w){return this.chartTranslation.translate(w)}removeTemplateComponent(w){(0,E._removeFromParent)(w.getGui()),this.destroyBean(w)}destroyActivePanels(){this.activePanels.forEach(w=>{(0,E._removeFromParent)(w.getGui()),this.destroyBean(w)})}destroy(){this.destroyActivePanels(),super.destroy()}}p.CartesianAxisPanel=f},4513:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GridLinePanel=void 0;let E=A(6624),z=A(1421),T=A(1296),b=A(5e3);class C extends E.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s,this.chartOptions=s.getChartOptions()}postConstruct(){let s=this.chartMenuUtils.addEnableParams("gridLine.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("gridLines"),suppressEnabledCheckbox:!0,useToggle:!0}),c=this.getGridLineColorPickerParams("color"),h=this.getGridLineWidthSliderParams("thickness"),g=this.getGridLineDashSliderParams("lineDash");this.setTemplate(`<div>
            <ag-group-component data-ref="gridLineGroup">
                <ag-color-picker data-ref="gridLineColorPicker"></ag-color-picker>
                <ag-slider data-ref="gridLineWidthSlider"></ag-slider>
                <ag-slider data-ref="gridLineLineDashSlider"></ag-slider>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,T.AgColorPickerSelector,b.AgSliderSelector],{gridLineGroup:s,gridLineColorPicker:c,gridLineWidthSlider:h,gridLineLineDashSlider:g})}getGridLineColorPickerParams(s){return this.chartMenuUtils.getDefaultColorPickerParams("gridLine.style",s,{formatInputValue:c=>{var h;return(h=c==null?void 0:c[0])==null?void 0:h.stroke},parseInputValue:c=>{var g;let h=(g=this.chartOptions.getValue("gridLine.style"))!=null?g:[];return h.length===0?[{stroke:c,lineDash:[]}]:[He(ge({},h[0]),{stroke:c})]}})}getGridLineWidthSliderParams(s){return this.chartMenuUtils.getDefaultSliderParams("gridLine.width",s,10)}getGridLineDashSliderParams(s){var f,S;let c=this.chartOptions.getValue("gridLine.style"),h=(S=(f=c==null?void 0:c[0])==null?void 0:f.lineDash)==null?void 0:S[0],g=this.chartMenuUtils.getDefaultSliderParamsWithoutValueParams(h!=null?h:0,s,30);return g.onValueChange=w=>{let M=this.chartOptions.getValue("gridLine.style.0.stroke");this.chartOptions.setValue("gridLine.style",[{lineDash:[w],stroke:M}])},g}}p.GridLinePanel=C},956:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PolarAxisPanel=void 0;let E=A(6624),z=A(1421),T=A(1296),b=A(5e3),C=A(4237),d=A(7730);class s extends E.Component{wireBeans(h){this.chartTranslation=h.chartTranslation}constructor(h){super(),this.options=h,this.axisGroup=E.RefPlaceholder}postConstruct(){let{isExpandedOnInit:h,chartAxisMenuParamsFactory:g,registerGroupComponent:f}=this.options,S={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate("polarAxis"),expanded:h,suppressEnabledCheckbox:!0},w=g.getDefaultColorPickerParams("line.stroke"),M=g.getDefaultSliderParams("line.width","thickness",10);this.setTemplate(`<div>
            <ag-group-component data-ref="axisGroup">
                <ag-color-picker data-ref="axisColorInput"></ag-color-picker>
                <ag-slider data-ref="axisLineWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,T.AgColorPickerSelector,b.AgSliderSelector],{axisGroup:S,axisColorInput:w,axisLineWidthSlider:M}),f(this.axisGroup),this.initAxis(),this.initAxisLabels(),this.initRadiusAxis()}initAxis(){let h=this.options.chartController.getChartType();if(["radarLine","radarArea"].includes(h)){let f=[{value:"circle",text:this.translate("circle")},{value:"polygon",text:this.translate("polygon")}];this.axisGroup.addItem(this.createSelect({labelKey:"shape",options:f,property:"shape"}))}h!=="pie"&&this.axisGroup.addItem(this.createSlider({labelKey:"innerRadius",defaultMaxValue:1,property:"innerRadiusRatio"}))}initAxisLabels(){let h={name:this.translate("labels"),enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:this.options.chartAxisMenuParamsFactory,keyMapper:S=>`label.${S}`},g=this.createManagedBean(new d.FontPanel(h)),f=this.createOrientationWidget();g.addItem(f),this.axisGroup.addItem(g)}createOrientationWidget(){let h=[{value:"fixed",text:this.translate("fixed")},{value:"parallel",text:this.translate("parallel")},{value:"perpendicular",text:this.translate("perpendicular")}];return this.createSelect({labelKey:"orientation",options:h,property:"label.orientation"})}initRadiusAxis(){let h=(0,C.getSeriesType)(this.options.chartController.getChartType());if(!(0,C.isRadial)(h))return;let g=[this.createSlider({labelKey:"groupPadding",defaultMaxValue:1,property:"paddingInner"}),this.createSlider({labelKey:"seriesPadding",defaultMaxValue:1,property:"groupPaddingInner"})],f=this.createManagedBean(new z.AgGroupComponent({cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,enabled:!0,suppressEnabledCheckbox:!0,title:this.translate("padding"),items:g})).hideEnabledCheckbox(!0).hideOpenCloseIcons(!0);this.axisGroup.addItem(f)}createSlider(h){let{labelKey:g,defaultMaxValue:f,step:S=.05,property:w}=h,M=this.options.chartAxisMenuParamsFactory.getDefaultSliderParams(w,g,f);return M.step=S,this.createManagedBean(new b.AgSlider(M))}createSelect(h){let{labelKey:g,options:f,property:S}=h;return this.createManagedBean(new E.AgSelect(this.options.chartAxisMenuParamsFactory.getDefaultSelectParams(S,g,f)))}translate(h){return this.chartTranslation.translate(h)}}p.PolarAxisPanel=s},4742:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BackgroundPanel=void 0;let E=A(6624),z=A(1421),T=A(1296);class b extends E.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d){super(),this.chartMenuUtils=d}postConstruct(){let d=this.chartMenuUtils.addEnableParams("background.visible",{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("background"),suppressEnabledCheckbox:!0,useToggle:!0}),s=this.chartMenuUtils.getDefaultColorPickerParams("background.fill");this.setTemplate(`<div>
            <ag-group-component data-ref="chartBackgroundGroup">
                <ag-color-picker data-ref="colorPicker"></ag-color-picker>
            </ag-group-component>
        <div>`,[z.AgGroupComponentSelector,T.AgColorPickerSelector],{chartBackgroundGroup:d,colorPicker:s})}}p.BackgroundPanel=b},3628:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartPanel=void 0;let E=A(6624),z=A(1421),T=A(4742),b=A(2567);class C extends E.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.options=s,this.chartGroup=E.RefPlaceholder}postConstruct(){let{chartController:s,chartMenuParamsFactory:c,isExpandedOnInit:h,registerGroupComponent:g}=this.options,f={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("chartStyle"),expanded:h,suppressEnabledCheckbox:!0,items:[this.createManagedBean(new b.PaddingPanel(c,s)),this.createManagedBean(new T.BackgroundPanel(c))]};this.setTemplate(`<div>
            <ag-group-component data-ref="chartGroup"></ag-group-component>
        </div>`,[z.AgGroupComponentSelector],{chartGroup:f}),g(this.chartGroup)}}p.ChartPanel=C},2567:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PaddingPanel=void 0;let E=A(6624),z=A(1421),T=A(5e3);class b extends E.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d,s){super(),this.chartMenuUtils=d,this.chartController=s,this.paddingTopSlider=E.RefPlaceholder}postConstruct(){let d={cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("padding"),suppressEnabledCheckbox:!0},s=c=>this.chartMenuUtils.getDefaultSliderParams("padding."+c,c,200);this.setTemplate(`<div>
            <ag-group-component data-ref="chartPaddingGroup">
                <ag-slider data-ref="paddingTopSlider"></ag-slider>
                <ag-slider data-ref="paddingRightSlider"></ag-slider>
                <ag-slider data-ref="paddingBottomSlider"></ag-slider>
                <ag-slider data-ref="paddingLeftSlider"></ag-slider>
            </ag-group-component>
        <div>`,[z.AgGroupComponentSelector,T.AgSliderSelector],{chartPaddingGroup:d,paddingTopSlider:s("top"),paddingRightSlider:s("right"),paddingBottomSlider:s("bottom"),paddingLeftSlider:s("left")}),this.addManagedEventListeners({chartOptionsChanged:c=>{this.updateTopPadding(c.chartOptions)}})}updateTopPadding(d){let s=[...this.chartController.getChartSeriesTypes(),"common"].map(c=>{var h,g;return(g=(h=d[c])==null?void 0:h.padding)==null?void 0:g.top}).find(c=>c!=null);s!=null&&this.paddingTopSlider.setValue(`${s}`)}}p.PaddingPanel=b},7730:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FontPanel=void 0;let E=A(6624),z=A(1421),T=A(1296);function b(d){return d[0].toUpperCase()+d.substring(1).toLowerCase()}class C extends E.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.params=s,this.fontGroup=E.RefPlaceholder,this.activeComps=[],this.chartOptions=s.chartMenuParamsFactory.getChartOptions()}postConstruct(){let{cssIdentifier:s="charts-format-sub-level",name:c,enabled:h,onEnableChange:g,suppressEnabledCheckbox:f,chartMenuParamsFactory:S,keyMapper:w}=this.params,M={cssIdentifier:s,direction:"vertical",suppressOpenCloseIcons:!0,title:c,enabled:h,suppressEnabledCheckbox:!0,onEnableChange:P=>{g&&g(P)},useToggle:!f};this.setTemplate(`<div class="ag-font-panel">
        <ag-group-component data-ref="fontGroup">
            <ag-select data-ref="familySelect"></ag-select>
            <ag-select data-ref="weightStyleSelect"></ag-select>
            <div class="ag-charts-font-size-color">
                <ag-select data-ref="sizeSelect"></ag-select>
                <ag-color-picker data-ref="colorPicker"></ag-color-picker>
            </div>
        </ag-group-component>
    </div>`,[z.AgGroupComponentSelector,E.AgSelectSelector,T.AgColorPickerSelector],{fontGroup:M,familySelect:this.getFamilySelectParams(),weightStyleSelect:this.getWeightStyleSelectParams(),sizeSelect:this.getSizeSelectParams(),colorPicker:S.getDefaultColorPickerParams(w("color"))}),this.addOrRemoveCssClass("ag-font-panel-no-header",!c)}addItem(s,c){c?this.fontGroup.prependItem(s):this.fontGroup.addItem(s),this.activeComps.push(s)}setEnabled(s){this.fontGroup.setEnabled(s)}getFamilySelectParams(){let s=["Arial, sans-serif","Aria Black, sans-serif","Book Antiqua,  serif","Charcoal, sans-serif","Comic Sans MS, cursive","Courier, monospace","Courier New, monospace","Gadget, sans-serif","Geneva, sans-serif","Helvetica, sans-serif","Impact, sans-serif","Lucida Console, monospace","Lucida Grande, sans-serif","Lucida Sans Unicode,  sans-serif","Monaco, monospace","Palatino Linotype, serif","Palatino, serif","Times New Roman, serif","Times, serif","Verdana, sans-serif"],c=this.getInitialFontValue("fontFamily"),h=s[0];if(c){let S=s.map(w=>w.toLowerCase()).indexOf(c.toLowerCase());if(S>=0)h=s[S];else{let w=b(c);s.push(w),h=w}}let g=s.sort().map(f=>({value:f,text:f}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("font",g,`${h}`,f=>this.setFont({fontFamily:f}))}getSizeSelectParams(){let s=[8,10,12,14,16,18,20,22,24,26,28,30,32,34,36],c=this.getInitialFontValue("fontSize");s.includes(c)||s.push(c);let h=s.sort((g,f)=>g-f).map(g=>({value:`${g}`,text:`${g}`}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("size",h,`${c}`,g=>this.setFont({fontSize:parseInt(g,10)}))}getWeightStyleSelectParams(){var S,w;let s=(S=this.getInitialFontValue("fontWeight"))!=null?S:"normal",c=(w=this.getInitialFontValue("fontStyle"))!=null?w:"normal",h=[{name:"normal",weight:"normal",style:"normal"},{name:"bold",weight:"bold",style:"normal"},{name:"italic",weight:"normal",style:"italic"},{name:"boldItalic",weight:"bold",style:"italic"}],g=h.find(M=>M.weight===s&&M.style===c);g||(g={name:"predefined",weight:s,style:c},h.unshift(g));let f=h.map(M=>({value:M.name,text:this.chartTranslation.translate(M.name)}));return this.params.chartMenuParamsFactory.getDefaultSelectParamsWithoutValueParams("weight",f,g.name,M=>{let P=h.find(O=>O.name===M);this.setFont({fontWeight:P.weight,fontStyle:P.style})})}destroyActiveComps(){this.activeComps.forEach(s=>{(0,E._removeFromParent)(s.getGui()),this.destroyBean(s)})}destroy(){this.destroyActiveComps(),super.destroy()}setFont(s){let{keyMapper:c}=this.params;Object.entries(s).forEach(([h,g])=>{g&&this.chartOptions.setValue(c(h),g)})}getInitialFontValue(s){let{keyMapper:c}=this.params;return this.chartOptions.getValue(c(s))}}p.FontPanel=C},3160:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FormatPanel=void 0;let E=A(6624),z=A(4237),T=A(1299),b=A(5002),C=A(956),d=A(3628),s=A(8693),c=A(3316),h=A(2496),g=A(5272),f={groups:[{type:"chart"},{type:"titles"},{type:"legend"},{type:"series"},{type:"axis"}]};class S extends E.Component{constructor(M){super('<div class="ag-chart-format-wrapper"></div>'),this.chartMenuContext=M}postConstruct(){this.groupExpansionFeature=this.createManagedBean(new s.GroupExpansionFeature(this.getGui())),this.chartPanelFeature=this.createManagedBean(new T.ChartPanelFeature(this.chartMenuContext.chartController,this.getGui(),"ag-chart-format-section",(M,P)=>this.createPanels(P))),this.chartPanelFeature.refreshPanels()}createPanels(M){var O;let P=!1;(O=this.getFormatPanelDef().groups)==null||O.forEach(({type:G,isOpen:j=!1})=>{if(!this.isGroupPanelShownInSeries(G,M))return;j&&(P&&(0,E._warn)(145,{group:G}),P=!0);let Y=ne=>this.groupExpansionFeature.addGroupComponent(ne),J=He(ge({},this.chartMenuContext),{isExpandedOnInit:j,seriesType:M,registerGroupComponent:Y});switch(G){case"chart":this.chartPanelFeature.addComponent(new d.ChartPanel(J));break;case"titles":this.chartPanelFeature.addComponent(new g.TitlesPanel(J));break;case"legend":this.chartPanelFeature.addComponent(new c.LegendPanel(J));break;case"axis":(0,z.isPolar)(M)?this.chartPanelFeature.addComponent(new C.PolarAxisPanel(J)):(0,z.isCartesian)(M)&&(this.chartPanelFeature.addComponent(new b.CartesianAxisPanel("xAxis",J)),this.chartPanelFeature.addComponent(new b.CartesianAxisPanel("yAxis",J)));break;case"horizontalAxis":this.chartPanelFeature.addComponent(new b.CartesianAxisPanel("xAxis",J));break;case"verticalAxis":this.chartPanelFeature.addComponent(new b.CartesianAxisPanel("yAxis",J));break;case"series":this.chartPanelFeature.addComponent(new h.SeriesPanel(J));break;default:(0,E._warn)(147,{group:G})}})}getFormatPanelDef(){var P;let M=(P=this.gos.get("chartToolPanelsDef"))==null?void 0:P.formatPanel;return M||f}isGroupPanelShownInSeries(M,P){return["chart","titles","legend","series"].includes(M)||(0,z.isCartesian)(P)&&["axis","horizontalAxis","verticalAxis"].includes(M)||(0,z.isPolar)(P)&&M==="axis"}}p.FormatPanel=S},8693:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupExpansionFeature=void 0;let E=A(6624);class z extends E.BeanStub{constructor(b){super(),this.groupContainer=b,this.id=0,this.groupComponents=new Map}addGroupComponent(b){let C=this.id++;this.groupComponents.set(C,b),b.isExpanded()&&(this.expandedGroupComponent=C),b.onExpandedChange(d=>{var s;if(d){let c=this.expandedGroupComponent;if(this.expandedGroupComponent=C,c!=null){let h=b.getGui(),g=h.offsetTop-this.groupContainer.parentElement.scrollTop;(s=this.groupComponents.get(c))==null||s.toggleGroupExpand(!1,!0);let f=h.offsetTop-g;f<0&&(f=0),f!==this.groupContainer.parentElement.scrollTop&&(this.groupContainer.parentElement.scrollTop=f)}}else this.expandedGroupComponent=void 0})}destroy(){this.groupComponents.clear(),super.destroy()}}p.GroupExpansionFeature=z},3316:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LegendPanel=void 0;let E=A(6624),z=A(1421),T=A(5e3),b=A(7730);class C extends E.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.options=s,this.legendGroup=E.RefPlaceholder,this.isGradient=["treemap","sunburst","heatmap"].includes(s.seriesType),this.key=this.isGradient?"gradientLegend":"legend"}postConstruct(){let{chartMenuParamsFactory:s,isExpandedOnInit:c,registerGroupComponent:h}=this.options,g=this.createManagedBean(new E.AgSelect(s.getDefaultSelectParams(`${this.key}.position`,"position",["top","right","bottom","left"].map(w=>({value:w,text:this.chartTranslation.translate(w)}))))),f=this.createManagedBean(new z.AgGroupComponent(s.addEnableParams(`${this.key}.enabled`,{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("legendEnabled"),suppressEnabledCheckbox:!0,useToggle:!0,items:[this.createLabelPanel(s),g,...this.getItems(s)]}))),S={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("legend"),suppressEnabledCheckbox:!0,expanded:c,items:[f]};this.setTemplate(`<div>
            <ag-group-component data-ref="legendGroup">
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector],{legendGroup:S}),h(this.legendGroup)}getItems(s){let c=(h,g,f)=>this.createManagedBean(new T.AgSlider(s.getDefaultSliderParams(`${this.key}.${h}`,g,f)));return this.isGradient?[this.createManagedBean(new E.AgCheckbox(s.addValueParams("gradientLegend.reverseOrder",{label:this.chartTranslation.translate("reverseDirection"),labelWidth:"flex"}))),c("gradient.thickness","thickness",40),c("gradient.preferredLength","preferredLength",300),c("spacing","spacing",200)]:[c("spacing","spacing",200),c("item.marker.size","markerSize",40),c("item.marker.strokeWidth","markerStroke",10),c("item.marker.padding","itemSpacing",20),c("item.paddingX","layoutHorizontalSpacing",50),c("item.paddingY","layoutVerticalSpacing",50)]}createLabelPanel(s){let c=this.isGradient?"gradientLegend.scale.label":"legend.item.label",h={enabled:!0,suppressEnabledCheckbox:!0,chartMenuParamsFactory:s,keyMapper:g=>`${c}.${g}`,cssIdentifier:"charts-format-sub-level-no-header"};return this.createManagedBean(new b.FontPanel(h))}}p.LegendPanel=C},6279:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CalloutPanel=void 0;let E=A(6624),z=A(1421),T=A(5e3);class b extends E.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d){super(),this.chartMenuUtils=d}postConstruct(){let d={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("callout"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="calloutGroup">
                <ag-slider data-ref="calloutLengthSlider"></ag-slider>
                <ag-slider data-ref="calloutStrokeWidthSlider"></ag-slider>
                <ag-slider data-ref="labelOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,T.AgSliderSelector],{calloutGroup:d,calloutLengthSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLine.length","length",40),calloutStrokeWidthSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLine.strokeWidth","strokeWidth",10),labelOffsetSlider:this.chartMenuUtils.getDefaultSliderParams("calloutLabel.offset","offset",30)})}}p.CalloutPanel=b},2948:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CapsPanel=void 0;let E=A(6624),z=A(1421),T=A(5e3);class b extends E.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d){super(),this.chartMenuUtils=d}postConstruct(){let d={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("cap"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0},s=this.chartMenuUtils.getDefaultSliderParams("cap.lengthRatio","capLengthRatio",1);s.step=.05,this.setTemplate(`<div>
            <ag-group-component data-ref="capsGroup">
                <ag-slider data-ref="capLengthRatioSlider"></ag-slider>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,T.AgSliderSelector],{capsGroup:d,capLengthRatioSlider:s})}}p.CapsPanel=b},1428:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ConnectorLinePanel=void 0;let E=A(6624),z=A(1421),T=A(1296),b=A(5e3);class C extends E.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s}postConstruct(){let s={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("connectorLine"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="lineGroup">
                <ag-color-picker data-ref="lineColorPicker"></ag-color-picker>
                <ag-slider data-ref="lineStrokeWidthSlider"></ag-slider>
                <ag-slider data-ref="lineOpacitySlider"></ag-slider>
                <ag-slider data-ref="lineDashSlider"></ag-slider>                
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,T.AgColorPickerSelector,b.AgSliderSelector],{lineGroup:s,lineColorPicker:this.chartMenuUtils.getDefaultColorPickerParams("line.stroke"),lineStrokeWidthSlider:this.getSliderParams("strokeWidth",10,"line.strokeWidth"),lineDashSlider:this.getSliderParams("lineDash",30,"line.lineDash",1,!0),lineOpacitySlider:this.getSliderParams("strokeOpacity",1,"line.strokeOpacity",.05)})}getSliderParams(s,c,h,g=1,f=!1){let S=this.chartMenuUtils.getDefaultSliderParams(h,s,c,f);return S.step=g,S}}p.ConnectorLinePanel=C},1902:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MarkersPanel=void 0;let E=A(6624),z=A(1421),T=A(5e3),b=A(1307);class C extends E.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s}postConstruct(){let s=this.chartMenuUtils.addEnableParams("marker.enabled",{cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("markers"),suppressEnabledCheckbox:!0,useToggle:!0,suppressOpenCloseIcons:!0});this.setTemplate(`<div>
            <ag-group-component data-ref="seriesMarkersGroup">
                <ag-select data-ref="seriesMarkerShapeSelect"></ag-select>
                <ag-slider data-ref="seriesMarkerSizeSlider"></ag-slider>
                <ag-slider data-ref="seriesMarkerStrokeWidthSlider"></ag-slider>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,E.AgSelectSelector,T.AgSliderSelector],{seriesMarkersGroup:s,seriesMarkerShapeSelect:this.chartMenuUtils.getDefaultSelectParams("marker.shape","shape",(0,b.getShapeSelectOptions)(this.chartTranslation)),seriesMarkerSizeSlider:this.chartMenuUtils.getDefaultSliderParams("marker.size","size",60),seriesMarkerStrokeWidthSlider:this.chartMenuUtils.getDefaultSliderParams("marker.strokeWidth","strokeWidth",10)})}}p.MarkersPanel=C},1730:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SeriesItemsPanel=void 0;let E=A(6624),z=A(1421),T=A(5e3),b=A(7730);class C extends E.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s,this.seriesItemsGroup=E.RefPlaceholder,this.activePanels=[]}postConstruct(){let s={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("seriesItems"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="seriesItemsGroup">
                <ag-select data-ref="seriesItemSelect"></ag-select>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,E.AgSelectSelector],{seriesItemsGroup:s,seriesItemSelect:this.getSeriesItemsParams()}),this.initSeriesControls()}getSeriesItemsParams(){let s=[{value:"positive",text:this.chartTranslation.translate("seriesItemPositive")},{value:"negative",text:this.chartTranslation.translate("seriesItemNegative")}],c=h=>{this.destroyActivePanels(),this.initSeriesControls(h)};return this.chartMenuUtils.getDefaultSelectParamsWithoutValueParams("seriesItemType",s,"positive",c)}initSeriesControls(s="positive"){this.initSlider("strokeWidth",10,`item.${s}.strokeWidth`),this.initSlider("lineDash",30,`item.${s}.lineDash`,1,!0),this.initSlider("strokeOpacity",1,`item.${s}.strokeOpacity`,.05,!1),this.initSlider("fillOpacity",1,`item.${s}.fillOpacity`,.05,!1),this.initItemLabels(s)}initSlider(s,c,h,g=1,f=!1){let S=this.chartMenuUtils.getDefaultSliderParams(h,s,c,f);S.step=g;let w=this.seriesItemsGroup.createManagedBean(new T.AgSlider(S));this.seriesItemsGroup.addItem(w),this.activePanels.push(w)}initItemLabels(s){let c=this.chartMenuUtils.getDefaultFontPanelParams(`item.${s}.label`,"seriesItemLabels"),h=this.createBean(new b.FontPanel(c));this.seriesItemsGroup.addItem(h),this.activePanels.push(h)}destroyActivePanels(){this.activePanels.forEach(s=>{(0,E._removeFromParent)(s.getGui()),this.destroyBean(s)})}destroy(){this.destroyActivePanels(),super.destroy()}}p.SeriesItemsPanel=C},2496:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SeriesPanel=void 0;let E=A(6624),z=A(1421),T=A(1296),b=A(5e3),C=A(4237),d=A(3786),s=A(7730),c=A(6279),h=A(2948),g=A(1428),f=A(1902),S=A(1730),w=A(1307),M=A(1919),P=A(4880),O=A(991),G="tooltips",j="strokeWidth",Y="lineDash",J="lineOpacity",ne="fillOpacity",ce="labels",fe="shadow";class xe extends E.Component{wireBeans(_e){this.chartTranslation=_e.chartTranslation}constructor(_e){super(),this.options=_e,this.seriesGroup=E.RefPlaceholder,this.activePanels=[],this.widgetFuncs={lineWidth:()=>this.initStrokeWidth("lineWidth"),[j]:()=>this.initStrokeWidth("strokeWidth"),lineColor:()=>this.initLineColor(),[Y]:()=>this.initLineDash(),[J]:()=>this.initOpacity("strokeOpacity"),[ne]:()=>this.initOpacity("fillOpacity"),markers:()=>new f.MarkersPanel(this.chartMenuUtils),[ce]:()=>this.initLabels(),sectorLabels:()=>this.initSectorLabels(),[fe]:()=>new M.ShadowPanel(this.chartMenuUtils),[G]:()=>this.initTooltips(),bins:()=>this.initBins(),whiskers:()=>new O.WhiskersPanel(this.chartMenuUtils),caps:()=>new h.CapsPanel(this.chartMenuUtils),connectorLine:()=>new g.ConnectorLinePanel(this.chartMenuUtils),seriesItems:()=>new S.SeriesItemsPanel(this.chartMenuUtils),tileSpacing:()=>new P.TileSpacingPanel(this.chartMenuUtils),shape:()=>this.initShape(),size:()=>this.initSize("size","size"),minSize:()=>this.initSize("size","minSize"),maxSize:()=>this.initSize("maxSize","maxSize")},this.seriesWidgetMappings={bar:[G,j,Y,J,ne,ce,fe],pie:[G,j,J,ne,ce,"sectorLabels",fe],donut:[G,j,J,ne,ce,"sectorLabels",fe],line:[G,"lineWidth",Y,J,"markers",ce],scatter:[G,"shape","size",j,ce],bubble:[G,"shape","minSize","maxSize",j,ce],area:[G,"lineWidth",Y,J,ne,"markers",ce,fe],histogram:[G,"bins",j,Y,J,ne,ce,fe],"radial-column":[G,j,Y,J,ne,ce],"radial-bar":[G,j,Y,J,ne,ce],"radar-line":[G,j,Y,J,"markers",ce],"radar-area":[G,j,Y,J,ne,"markers",ce],nightingale:[G,j,Y,J,ne,ce],"box-plot":[G,j,Y,J,ne,"whiskers","caps"],"range-bar":[G,j,Y,J,ne,ce],"range-area":[G,"lineWidth",Y,J,ne,"markers",ce,fe],treemap:[G,"tileSpacing"],sunburst:[G],heatmap:[G,ce,"lineColor","lineWidth",J],waterfall:[G,"connectorLine","seriesItems"]},this.seriesType=_e.seriesType}postConstruct(){let{isExpandedOnInit:_e,chartOptionsService:Fe,chartController:We,registerGroupComponent:it}=this.options,tt={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.translate("series"),expanded:_e,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="seriesGroup">
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector],{seriesGroup:tt}),it(this.seriesGroup),this.chartMenuUtils=this.createManagedBean(new d.ChartMenuParamsFactory(Fe.getSeriesOptionsProxy(()=>this.seriesType))),this.addManagedListeners(We,{chartSeriesChartTypeChanged:this.refreshWidgets.bind(this)}),this.refreshWidgets()}refreshWidgets(){let{chartController:_e}=this.options;this.destroyActivePanels(),_e.getChartProxy().getChart().waitForUpdate().then(()=>{var it;this.isAlive()&&(_e.isComboChart()&&(this.updateSeriesType(),this.initSeriesSelect()),((it=this.seriesWidgetMappings[this.seriesType])!=null?it:[]).forEach(tt=>{let ot=this.widgetFuncs[tt](),st;if(Array.isArray(ot)){let St=this.createBean(ot[0]);st=St,ot[1](St)}else st=this.createBean(ot);this.seriesGroup.addItem(st),this.activePanels.push(st)}))}).catch(We=>(0,E._error)(105,{e:We}))}initSeriesSelect(){let _e=this.createBean(new E.AgSelect(this.chartMenuUtils.getDefaultSelectParamsWithoutValueParams("seriesType",this.getSeriesSelectOptions(),`${this.seriesType}`,Fe=>{this.seriesType=Fe,this.refreshWidgets()})));this.seriesGroup.addItem(_e),this.activePanels.push(_e)}initTooltips(){return new E.AgToggleButton(this.chartMenuUtils.addValueParams("tooltip.enabled",{label:this.translate("tooltips"),labelAlignment:"left",labelWidth:"flex",inputWidth:"flex"}))}initLineColor(){return new T.AgColorPicker(this.chartMenuUtils.getDefaultColorPickerParams("stroke","strokeColor"))}initStrokeWidth(_e){return new b.AgSlider(this.chartMenuUtils.getDefaultSliderParams("strokeWidth",_e,10))}initLineDash(){return new b.AgSlider(this.chartMenuUtils.getDefaultSliderParams("lineDash","lineDash",30,!0))}initOpacity(_e){let Fe=this.chartMenuUtils.getDefaultSliderParams(_e,_e,1);return Fe.step=.05,new b.AgSlider(Fe)}initLabels(){let _e=(0,C.isPieChartSeries)(this.seriesType),Fe=_e?"calloutLabel":"label",We=_e?"calloutLabels":"labels",it=this.chartMenuUtils.getDefaultFontPanelParams(Fe,We);return[new s.FontPanel(it),st=>{if(_e){let St=st.createManagedBean(new c.CalloutPanel(this.chartMenuUtils));st.addItem(St),this.activePanels.push(St)}if(this.seriesType==="range-bar"){let St=[{value:"inside",text:this.translate("inside")},{value:"outside",text:this.translate("outside")}],Xe=st.createManagedBean(new E.AgSelect(this.chartMenuUtils.getDefaultSelectParams("label.placement","labelPlacement",St)));st.addItem(Xe),this.activePanels.push(Xe);let Ke=st.createManagedBean(new b.AgSlider(this.chartMenuUtils.getDefaultSliderParams("label.padding","padding",200)));st.addItem(Ke),this.activePanels.push(Ke)}}]}initSectorLabels(){let _e=this.chartMenuUtils.getDefaultFontPanelParams("sectorLabel","sectorLabels");return[new s.FontPanel(_e),it=>{let tt=this.chartMenuUtils.getDefaultSliderParams("sectorLabel.positionRatio","positionRatio",1);tt.step=.05;let ot=it.createManagedBean(new b.AgSlider(tt));it.addItem(ot)}]}initBins(){var it;let _e=this.chartMenuUtils.getDefaultSliderParams("binCount","histogramBinCount",20),Fe=this.chartMenuUtils.getChartOptions(),We=((it=Fe.getValue("bins"))!=null?it:Fe.getValue("calculatedBins",!0)).length;return _e.value=`${We}`,_e.maxValue=Math.max(We,20),new b.AgSlider(_e)}initShape(){return new E.AgSelect(this.chartMenuUtils.getDefaultSelectParams("shape","shape",(0,w.getShapeSelectOptions)(this.chartTranslation)))}initSize(_e,Fe){return new b.AgSlider(this.chartMenuUtils.getDefaultSliderParams(_e,Fe,60))}getSeriesSelectOptions(){let _e=this.getActiveSeriesTypes();return["area","bar","line"].filter(Fe=>_e.includes(Fe)).map(Fe=>({value:Fe,text:this.translate(Fe)}))}updateSeriesType(){let _e=this.getActiveSeriesTypes();!_e.includes(this.seriesType)&&_e.length>0&&(this.seriesType=_e[0])}getActiveSeriesTypes(){return this.options.chartController.getActiveSeriesChartTypes().map(_e=>(0,C.getSeriesType)(_e.chartType))}translate(_e){return this.chartTranslation.translate(_e)}destroyActivePanels(){this.activePanels.forEach(_e=>{(0,E._removeFromParent)(_e.getGui()),this.destroyBean(_e)})}destroy(){this.destroyActivePanels(),super.destroy()}}p.SeriesPanel=xe},1307:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getShapeSelectOptions=void 0;function A(E){return["square","circle","cross","diamond","plus","triangle","heart"].map(z=>({value:z,text:E.translate(z)}))}p.getShapeSelectOptions=A},1919:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ShadowPanel=void 0;let E=A(6624),z=A(1421),T=A(1296),b=A(5e3);class C extends E.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s,c="shadow"){super(),this.chartMenuUtils=s,this.propertyKey=c}postConstruct(){let s=this.propertyKey,c=this.chartMenuUtils.addEnableParams(`${s}.enabled`,{cssIdentifier:"charts-format-sub-level",direction:"vertical",suppressOpenCloseIcons:!0,title:this.chartTranslation.translate("shadow"),suppressEnabledCheckbox:!0,useToggle:!0}),h=this.chartMenuUtils.getDefaultColorPickerParams(`${s}.color`);this.setTemplate(`<div>
            <ag-group-component data-ref="shadowGroup">
                <ag-color-picker data-ref="shadowColorPicker"></ag-color-picker>
                <ag-slider data-ref="shadowBlurSlider"></ag-slider>
                <ag-slider data-ref="shadowXOffsetSlider"></ag-slider>
                <ag-slider data-ref="shadowYOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,T.AgColorPickerSelector,b.AgSliderSelector],{shadowGroup:c,shadowColorPicker:h,shadowBlurSlider:this.getSliderParams("blur",0,20),shadowXOffsetSlider:this.getSliderParams("xOffset",-10,10),shadowYOffsetSlider:this.getSliderParams("yOffset",-10,10)})}getSliderParams(s,c,h){let g=`${this.propertyKey}.${s}`,f=this.chartMenuUtils.getDefaultSliderParams(g,s,h);return f.minValue=c,f}}p.ShadowPanel=C},4880:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TileSpacingPanel=void 0;let E=A(6624),z=A(1421),T=A(5e3);class b extends E.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d){super(),this.chartMenuUtils=d}postConstruct(){let d={cssIdentifier:"charts-format-sub-level",direction:"vertical",enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="groupSpacing">
                <ag-slider data-ref="groupPaddingSlider"></ag-slider>
                <ag-slider data-ref="groupSpacingSlider"></ag-slider>
            </ag-group-component>
            <ag-group-component data-ref="tileSpacing">
                <ag-slider data-ref="tilePaddingSlider"></ag-slider>
                <ag-slider data-ref="tileSpacingSlider"></ag-slider>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,T.AgSliderSelector],{groupSpacing:He(ge({},d),{title:this.chartTranslation.translate("group")}),tileSpacing:He(ge({},d),{title:this.chartTranslation.translate("tile")}),groupPaddingSlider:this.getSliderParams("padding","group.padding"),groupSpacingSlider:this.getSliderParams("spacing","group.gap"),tilePaddingSlider:this.getSliderParams("padding","tile.padding"),tileSpacingSlider:this.getSliderParams("spacing","tile.gap")})}getSliderParams(d,s){return this.chartMenuUtils.getDefaultSliderParams(s,d,10)}}p.TileSpacingPanel=b},991:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WhiskersPanel=void 0;let E=A(6624),z=A(1421),T=A(1296),b=A(5e3);class C extends E.Component{wireBeans(s){this.chartTranslation=s.chartTranslation}constructor(s){super(),this.chartMenuUtils=s}postConstruct(){let s={cssIdentifier:"charts-format-sub-level",direction:"vertical",title:this.chartTranslation.translate("whisker"),enabled:!0,suppressOpenCloseIcons:!0,suppressEnabledCheckbox:!0};this.setTemplate(`<div>
            <ag-group-component data-ref="whiskersGroup">
                <ag-color-picker data-ref="whiskerColorPicker"></ag-color-picker>
                <ag-slider data-ref="whiskerThicknessSlider"></ag-slider>
                <ag-slider data-ref="whiskerOpacitySlider"></ag-slider>
                <ag-slider data-ref="whiskerLineDashSlider"></ag-slider>
                <ag-slider data-ref="whiskerLineDashOffsetSlider"></ag-slider>
            </ag-group-component>
        </div>`,[z.AgGroupComponentSelector,T.AgColorPickerSelector,b.AgSliderSelector],{whiskersGroup:s,whiskerColorPicker:this.chartMenuUtils.getDefaultColorPickerParams("whisker.stroke"),whiskerThicknessSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.strokeWidth","strokeWidth",10),whiskerOpacitySlider:this.chartMenuUtils.getDefaultSliderParams("whisker.strokeOpacity","strokeOpacity",1),whiskerLineDashSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.lineDash","lineDash",30,!0),whiskerLineDashOffsetSlider:this.chartMenuUtils.getDefaultSliderParams("whisker.lineDashOffset","lineDashOffset",30)})}}p.WhiskersPanel=C},3179:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartTitlePanel=void 0;let E=A(9375);class z extends E.TitlePanel{wireBeans(b){super.wireBeans(b),this.chartMenuSvc=b.chartMenuSvc}postConstruct(){this.titlePlaceholder=this.chartTranslation.translate("titlePlaceholder"),super.postConstruct(),this.addManagedEventListeners({chartTitleEdit:()=>{this.fontPanel.setEnabled(this.hasTitle())}})}getTextInputParams(){let b=super.getTextInputParams();return this.shouldOverrideTextWithPlaceholder(b.value)&&(b.value=this.titlePlaceholder),b}getSpacingSliderParams(){let b=super.getSpacingSliderParams();return b.value="10",b}onEnableChange(b){if(this.chartMenuSvc.doesChartToolbarExist()){let d=this.chartOptions.getValue("padding.top");this.chartOptions.setValue("padding.top",b?d-20:d+20)}this.chartOptions.setValue(`${this.key}.enabled`,b);let C=this.chartOptions.getValue(`${this.key}.text`);b&&this.shouldOverrideTextWithPlaceholder(C)&&this.chartOptions.setValue(`${this.key}.text`,this.titlePlaceholder)}shouldOverrideTextWithPlaceholder(b){return b==="Title"||(b==null?void 0:b.trim().length)===0}}p.ChartTitlePanel=z},9375:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TitlePanel=void 0;let E=A(6624),z=A(5e3),T=A(7730);class b extends E.Component{wireBeans(d){this.chartTranslation=d.chartTranslation}constructor(d,s,c){super("<div></div>"),this.chartMenuUtils=d,this.name=s,this.key=c,this.chartOptions=d.getChartOptions()}postConstruct(){this.initFontPanel()}hasTitle(){let d=this.chartOptions.getValue(this.key);return d&&d.enabled&&d.text&&d.text.length>0}initFontPanel(){let d=this.hasTitle(),s={name:this.chartTranslation.translate(this.name),enabled:d,suppressEnabledCheckbox:!1,chartMenuParamsFactory:this.chartMenuUtils,keyMapper:c=>`${this.key}.${c}`,onEnableChange:c=>this.onEnableChange(c)};this.fontPanel=this.createManagedBean(new T.FontPanel(s)),this.fontPanel.addItem(this.createBean(new E.AgInputTextField(this.getTextInputParams())),!0),this.fontPanel.addItem(this.createBean(new z.AgSlider(this.getSpacingSliderParams()))),this.getGui().appendChild(this.fontPanel.getGui())}getTextInputParams(){return this.chartMenuUtils.addValueParams(`${this.key}.text`,{label:this.chartTranslation.translate("title"),labelAlignment:"top"})}getSpacingSliderParams(){return this.chartMenuUtils.getDefaultSliderParams(`${this.key}.spacing`,"spacing",100)}onEnableChange(d){this.chartOptions.setValue(`${this.key}.enabled`,d)}}p.TitlePanel=b},5272:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TitlesPanel=void 0;let E=A(6624),z=A(1421),T=A(4237),b=A(3786),C=A(3179),d=A(9375);class s extends E.Component{wireBeans(h){this.chartTranslation=h.chartTranslation}constructor(h){super(),this.options=h,this.titleGroup=E.RefPlaceholder}postConstruct(){let{chartMenuParamsFactory:h,chartAxisMenuParamsFactory:g,chartOptionsService:f,seriesType:S,isExpandedOnInit:w=!1,registerGroupComponent:M}=this.options,P=[];if((0,T.isCartesian)(S)){let G=j=>this.createManagedBean(new b.ChartMenuParamsFactory(f.getCartesianAxisThemeOverridesProxy(j)));P.push(this.createManagedBean(new d.TitlePanel(G("xAxis"),"horizontalAxisTitle","title"))),P.push(this.createManagedBean(new d.TitlePanel(G("yAxis"),"verticalAxisTitle","title")))}else(0,T.isPolar)(S)&&P.push(this.createManagedBean(new d.TitlePanel(g,"polarAxisTitle","title")));let O={cssIdentifier:"charts-format-top-level",direction:"vertical",title:this.chartTranslation.translate("chartTitles"),expanded:w,suppressEnabledCheckbox:!0,items:[this.createManagedBean(new C.ChartTitlePanel(h,"chartTitle","title")),this.createManagedBean(new d.TitlePanel(h,"chartSubtitle","subtitle")),...P]};this.setTemplate(`<div>
            <ag-group-component data-ref="titleGroup"></ag-group-component>
        </div>`,[z.AgGroupComponentSelector],{titleGroup:O}),M(this.titleGroup)}}p.TitlesPanel=s},6604:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartSettingsPanel=void 0;let E=A(6624),z=A(8987),T=A(6692);class b extends E.Component{constructor(d){super(`<div class="ag-chart-settings-wrapper">
            <div data-ref="eMiniChartsContainer" class="ag-chart-settings-mini-charts-container ag-scrollable-container"></div>
            <div data-ref="eNavBar" class="ag-chart-settings-nav-bar">
                <div data-ref="ePrevBtn" class="ag-chart-settings-prev">
                    <button type="button" class="ag-button ag-chart-settings-prev-button"></button>
                </div>
                <div data-ref="eCardSelector" class="ag-chart-settings-card-selector"></div>
                <div data-ref="eNextBtn" class="ag-chart-settings-next">
                    <button type="button" class="ag-button ag-chart-settings-next-button"></button>
                </div>
            </div>
        </div>`),this.chartController=d,this.eMiniChartsContainer=E.RefPlaceholder,this.eNavBar=E.RefPlaceholder,this.eCardSelector=E.RefPlaceholder,this.ePrevBtn=E.RefPlaceholder,this.eNextBtn=E.RefPlaceholder,this.miniChartsContainers=[],this.cardItems=[],this.activePaletteIndex=0,this.palettes=[],this.themes=[]}postConstruct(){this.resetPalettes(),this.ePrevBtn.insertAdjacentElement("afterbegin",(0,E._createIconNoSpan)("chartsThemePrevious",this.beans)),this.eNextBtn.insertAdjacentElement("afterbegin",(0,E._createIconNoSpan)("chartsThemeNext",this.beans)),this.addManagedElementListeners(this.ePrevBtn,{click:()=>this.setActivePalette(this.getPrev(),"left")}),this.addManagedElementListeners(this.eNextBtn,{click:()=>this.setActivePalette(this.getNext(),"right")});let d=()=>this.resetPalettes(!0);this.addManagedListeners(this.chartController,{chartTypeChanged:d,chartApiUpdate:d}),this.scrollSelectedIntoView()}scrollSelectedIntoView(){setTimeout(()=>{let d=h=>!h.getGui().classList.contains("ag-hidden"),c=this.miniChartsContainers.find(d).getGui().querySelector(".ag-selected");if(c){let h=c.offsetParent;h&&this.eMiniChartsContainer.scrollTo(0,h.offsetTop)}},250)}resetPalettes(d){var f,S;let s=this.chartController.getPalettes(),c=this.chartController.getThemeTemplateParameters(),h=(S=(f=this.gos.get("chartToolPanelsDef"))==null?void 0:f.settingsPanel)==null?void 0:S.chartGroupsDef;if((0,E._areEqual)(s,this.palettes)&&!d||this.isAnimating)return;this.palettes=s,this.themes=this.chartController.getThemeNames(),this.activePaletteIndex=this.themes.findIndex(w=>w===this.chartController.getChartThemeName()),this.cardItems=[],(0,E._clearElement)(this.eCardSelector),this.destroyMiniCharts();let{themes:g}=this;this.palettes.forEach((w,M)=>{let P=this.activePaletteIndex===M,{fills:O=[],strokes:G=[]}=w,j=g[M],Y=!(0,z.isStockTheme)(j,this.beans.agChartsExports._Theme),J=this.createBean(new T.MiniChartsContainer(this.chartController,O,G,c[M],Y,h));this.miniChartsContainers.push(J),this.eMiniChartsContainer.appendChild(J.getGui()),this.addCardLink(M),P?J.updateSelectedMiniChart():J.setDisplayed(!1)}),(0,E._setDisplayed)(this.eNavBar,this.palettes.length>1),(0,E._radioCssClass)(this.cardItems[this.activePaletteIndex],"ag-selected","ag-not-selected")}addCardLink(d){let s=document.createElement("div");s.classList.add("ag-chart-settings-card-item"),this.addManagedElementListeners(s,{click:()=>{this.setActivePalette(d,d<this.activePaletteIndex?"left":"right")}}),this.eCardSelector.appendChild(s),this.cardItems.push(s)}getPrev(){let d=this.activePaletteIndex-1;return d<0&&(d=this.palettes.length-1),d}getNext(){let d=this.activePaletteIndex+1;return d>=this.palettes.length&&(d=0),d}setActivePalette(d,s){if(this.isAnimating||this.activePaletteIndex===d)return;(0,E._radioCssClass)(this.cardItems[d],"ag-selected","ag-not-selected");let c=this.miniChartsContainers[this.activePaletteIndex],h=c.getGui(),g=this.miniChartsContainers[d],f=g.getGui();c.updateSelectedMiniChart(),g.updateSelectedMiniChart();let S=s==="left"?-1:1,w=f.style.left=`${(0,E._getAbsoluteWidth)(this.getGui())*S}px`;this.activePaletteIndex=d,this.isAnimating=!0;let M="ag-animating";g.setDisplayed(!0),c.addCssClass(M),g.addCssClass(M),this.chartController.setChartThemeName(this.themes[d]),window.setTimeout(()=>{h.style.left=`${-parseFloat(w)}px`,f.style.left="0px"},0),window.setTimeout(()=>{this.isAnimating=!1,c.removeCssClass(M),g.removeCssClass(M),c.setDisplayed(!1)},300)}destroyMiniCharts(){(0,E._clearElement)(this.eMiniChartsContainer),this.miniChartsContainers=this.destroyBeans(this.miniChartsContainers)}destroy(){this.destroyMiniCharts(),super.destroy()}}p.ChartSettingsPanel=b},3564:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniArea=void 0;let E=A(7526),z=A(9004),T=A(1408);class b extends T.MiniChartWithAxes{constructor(d,s,c,h,g,f,S=b.data,w="groupedAreaTooltip",M=!1){super(d,s,w),this.areas=(0,z.createAreaPaths)(s._Scene,this.root,S,this.size,this.padding,M),this.updateColors(c,h)}updateColors(d,s){this.areas.forEach((c,h)=>{c.fill=d[h],c.stroke=s[h],c.strokeWidth=1,c.strokeOpacity=.75,c.fillOpacity=.7})}}p.MiniArea=b,b.chartType="area",b.data=E.MiniLine.data},6249:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniNormalizedArea=void 0;let E=A(9004),z=A(5133);class T extends z.MiniStackedArea{constructor(C,d,s,c,h,g,f=T.data,S="normalizedAreaTooltip"){super(C,d,s,c,h,g,f,S)}}p.MiniNormalizedArea=T,T.chartType="normalizedArea",T.data=(0,E.normalizeStackData)(z.MiniStackedArea.data)},5133:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniStackedArea=void 0;let E=A(9004),z=A(3564);class T extends z.MiniArea{constructor(C,d,s,c,h,g,f=T.data,S="stackedAreaTooltip"){super(C,d,s,c,h,g,f,S,!0)}updateColors(C,d){this.areas.forEach((s,c)=>{s.fill=C[c],s.stroke=d[c]})}}p.MiniStackedArea=T,T.chartType="stackedArea",T.data=(0,E.stackData)(z.MiniArea.data)},702:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniBar=void 0;let E=A(1408);class z extends E.MiniChartWithAxes{constructor(b,C,d,s){super(b,C,"groupedBarTooltip");let{_Scene:c}=C,h=this.padding,g=this.size,f=[2,3,4],S=new c.BandScale;S.domain=[0,1,2],S.range=[h,g-h],S.paddingInner=.3,S.paddingOuter=.3;let w=new c.LinearScale;w.domain=[0,4],w.range=[g-h,h];let M=w.convert(0),P=S.bandwidth;this.bars=f.map((O,G)=>{let j=new c.Rect;return j.x=h,j.y=S.convert(G),j.width=M-w.convert(O),j.height=P,j.strokeWidth=0,j.crisp=!0,j}),this.updateColors(d,s),this.root.append(this.bars)}updateColors(b,C){this.bars.forEach((d,s)=>{d.fill=b[s],d.stroke=C[s]})}}p.MiniBar=z,z.chartType="groupedBar"},3245:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniNormalizedBar=void 0;let E=A(4161);class z extends E.MiniStackedBar{constructor(b,C,d,s,c,h){super(b,C,d,s,c,h,z.data,[0,10],"normalizedBarTooltip")}}p.MiniNormalizedBar=z,z.chartType="normalizedBar",z.data=[[10,10,10],[6,7,8],[2,4,6]]},4161:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniStackedBar=void 0;let E=A(1408);class z extends E.MiniChartWithAxes{constructor(b,C,d,s,c,h,g=z.data,f=[0,16],S="stackedBarTooltip"){super(b,C,S);let{_Scene:w}=C,M=this.size,P=this.padding,O=new w.BandScale;O.domain=[0,1,2],O.range=[P,M-P],O.paddingInner=.3,O.paddingOuter=.3;let G=new w.LinearScale;G.domain=f,G.range=[M-P,P];let j=G.convert(0),Y=O.bandwidth;this.bars=g.map(J=>J.map((ne,ce)=>{let fe=new w.Rect;return fe.x=P,fe.y=O.convert(ce),fe.width=j-G.convert(ne),fe.height=Y,fe.strokeWidth=0,fe.crisp=!0,fe})),this.updateColors(d,s),this.root.append([].concat.apply([],this.bars))}updateColors(b,C){this.bars.forEach((d,s)=>d.forEach(c=>{c.fill=b[s],c.stroke=C[s]}))}}p.MiniStackedBar=z,z.chartType="stackedBar",z.data=[[8,12,16],[6,9,12],[2,3,4]]},1990:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniColumn=void 0;let E=A(9004),z=A(1408);class T extends z.MiniChartWithAxes{constructor(C,d,s,c){super(C,d,"groupedColumnTooltip"),this.columnData=[2,3,4];let{root:h,columnData:g,size:f,padding:S}=this;this.columns=(0,E.createColumnRects)({stacked:!1,root:h,data:g,size:f,padding:S,xScaleDomain:[0,1,2],yScaleDomain:[0,4],xScalePadding:.3,agChartsExports:d}),h.append(this.columns),this.updateColors(s,c)}updateColors(C,d){this.columns.forEach((s,c)=>{s.fill=C[c],s.stroke=d[c]})}}p.MiniColumn=T,T.chartType="groupedColumn"},2115:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniNormalizedColumn=void 0;let E=A(2397);class z extends E.MiniStackedColumn{constructor(b,C,d,s,c,h){super(b,C,d,s,c,h,z.data,[0,10],"normalizedColumnTooltip")}}p.MiniNormalizedColumn=z,z.chartType="normalizedColumn",z.data=[[10,10,10],[6,7,8],[2,4,6]]},2397:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniStackedColumn=void 0;let E=A(9004),z=A(1408);class T extends z.MiniChartWithAxes{constructor(C,d,s,c,h,g,f=T.data,S=[0,16],w="stackedColumnTooltip"){super(C,d,w);let{root:M,size:P,padding:O}=this;this.stackedColumns=(0,E.createColumnRects)({stacked:!0,root:M,data:f,size:P,padding:O,xScaleDomain:[0,1,2],yScaleDomain:S,xScalePadding:.3,agChartsExports:d}),M.append([].concat.apply([],this.stackedColumns)),this.updateColors(s,c)}updateColors(C,d){this.stackedColumns.forEach((s,c)=>s.forEach(h=>{h.fill=C[c],h.stroke=d[c]}))}}p.MiniStackedColumn=T,T.chartType="stackedColumn",T.data=[[8,12,16],[6,9,12],[2,3,4]]},539:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniAreaColumnCombo=void 0;let E=A(9004),z=A(1408);class T extends z.MiniChartWithAxes{constructor(C,d,s,c){super(C,d,"areaColumnComboTooltip"),this.columnData=[3,4.5],this.areaData=[[5,4,6,5,4]];let{root:h,columnData:g,areaData:f,size:S,padding:w,agChartsExports:{_Scene:M}}=this;this.columns=(0,E.createColumnRects)({stacked:!1,root:h,data:g,size:S,padding:w,xScaleDomain:[0,1],yScaleDomain:[0,6],xScalePadding:.5,agChartsExports:d});let P=new M.BandScale;P.range=[w,S-w],P.domain=[0,1,2,3,4],P.paddingInner=1,P.paddingOuter=0;let O=new M.LinearScale;O.range=[S-w,w],O.domain=[0,6];let G=[],j=O.convert(0),Y=P.convert(0);f.forEach((ce,fe)=>{let xe=G[fe]||(G[fe]=[]);ce.forEach((_e,Fe)=>{let We=_e,it=Fe,tt=P.convert(it),ot=O.convert(We);xe[Fe]={x:tt,y:ot}});let Le=P.convert(ce.length-1);G[fe].push({x:Le,y:j},{x:Y,y:j})}),this.areas=G.map(ce=>{let fe=new M.Path;fe.strokeWidth=0,fe.fillOpacity=.8;let xe=fe.path;return ce.forEach((Le,_e)=>xe[_e>0?"lineTo":"moveTo"](Le.x,Le.y)),fe});let J=new M.Group;J.setClipRect(new M.BBox(w,w,S-w*2,S-w*2));let ne=new M.Group;ne.setClipRect(new M.BBox(w,w,S-w*2,S-w*2)),J.append(this.areas),ne.append(this.columns),h.append(J),h.append(ne),this.updateColors(s,c)}updateColors(C,d){this.areas.forEach((s,c)=>{s.fill=C[c],s.stroke=d[c]}),this.columns.forEach((s,c)=>{s.fill=C[c+1],s.stroke=d[c+1]})}}p.MiniAreaColumnCombo=T,T.chartType="areaColumnCombo"},6042:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniColumnLineCombo=void 0;let E=A(9004),z=A(1408);class T extends z.MiniChartWithAxes{constructor(C,d,s,c){super(C,d,"columnLineComboTooltip"),this.columnData=[3,4],this.lineData=[[5,4,6,5,4]];let{root:h,columnData:g,lineData:f,size:S,padding:w}=this;this.columns=(0,E.createColumnRects)({stacked:!1,root:h,data:g,size:S,padding:w,xScaleDomain:[0,1],yScaleDomain:[0,4],xScalePadding:.5,agChartsExports:d}),h.append(this.columns),this.lines=(0,E.createLinePaths)(d,h,f,S,w),this.updateColors(s,c)}updateColors(C,d){this.columns.forEach((s,c)=>{s.fill=C[c],s.stroke=d[c]}),this.lines.forEach((s,c)=>{s.stroke=C[c+2]})}}p.MiniColumnLineCombo=T,T.chartType="columnLineCombo"},1655:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniCustomCombo=void 0;let E=A(2893),z=A(9004);class T extends E.MiniChart{constructor(C,d,s,c){super(C,d,"customComboTooltip"),this.columnData=[3,4],this.lineData=[[5,4,6,5,4]];let{root:h,columnData:g,lineData:f,size:S,padding:w,agChartsExports:{_Scene:M}}=this;this.columns=(0,z.createColumnRects)({stacked:!1,root:h,data:g,size:S,padding:w,xScaleDomain:[0,1],yScaleDomain:[0,4],xScalePadding:.5,agChartsExports:d}),h.append(this.columns),this.lines=(0,z.createLinePaths)(this.agChartsExports,h,f,S,w);let P="grey",O=3,G=new M.Line;G.x1=w,G.y1=w,G.x2=w,G.y2=S-w+O,G.stroke=P;let j=new M.Line;j.x1=w-O+1,j.y1=S-w,j.x2=S-w+1,j.y2=S-w,j.stroke=P;let Y=new M.Path;this.buildPenIconPath(Y),Y.fill="whitesmoke",Y.stroke="darkslategrey",Y.strokeWidth=1,h.append([j,G,Y]),this.updateColors(s,c)}updateColors(C,d){this.columns.forEach((s,c)=>{s.fill=C[c],s.stroke=d[c]}),this.lines.forEach((s,c)=>{s.stroke=C[c+2]})}buildPenIconPath(C){let{path:d}=C;d.moveTo(25.76,43.46),d.lineTo(31.27,48.53),d.moveTo(49.86,22),d.lineTo(49.86,22),d.cubicCurveTo(49.01994659053345,21.317514933510974,47.89593834348529,21.09645997825817,46.86,21.41),d.lineTo(46.86,21.41),d.cubicCurveTo(45.55460035985361,21.77260167850787,44.38777081121966,22.517979360321792,43.51,23.55),d.lineTo(25.51,43.8),d.lineTo(25.43,43.89),d.lineTo(23.01,51.89),d.lineTo(22.83,52.46),d.lineTo(31.02,48.86),d.lineTo(49.02,28.52),d.lineTo(49.02,28.52),d.cubicCurveTo(49.940716461596224,27.521914221246085,50.54302631059587,26.2720342455763,50.75,24.93),d.lineTo(50.75,24.93),d.cubicCurveTo(50.95363374988308,23.866379846512814,50.62080640232334,22.77066734274871,49.86,22),d.closePath(),d.moveTo(41.76,25.5),d.lineTo(47.34,30.5),d.moveTo(40.74,26.65),d.lineTo(46.25,31.71)}}p.MiniCustomCombo=T,T.chartType="customCombo"},5717:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniSunburst=void 0;let E=A(2220);class z extends E.MiniChartWithPolarAxes{constructor(b,C,d,s){super(b,C,"sunburstTooltip"),this.data=[[[],[]],[[],[]],[[],[]]],this.angleOffset=-Math.PI/2,this.innerRadiusRatio=0,this.showRadiusAxisLine=!1,this.showAngleAxisLines=!1;let{data:c,size:h,padding:g,angleOffset:f,innerRadiusRatio:S,agChartsExports:{_Scene:w}}=this,M=(h-g*2)/2,P=[f+0,f+2*Math.PI],O=Math.abs(P[1]-P[0]),G=[M*S,M],j=Math.abs(G[1]-G[0]),Y=0,J=(Le,_e)=>{Le.forEach(Fe=>{let We=_e+1;Y=Math.max(Y,We),J(Fe,We)})};J(c,0);let ne=j/Y,ce=this.size/2,fe=P[0];this.series=[];let xe=(Le,_e,Fe,We,it)=>{if(!Array.isArray(Le))return;let ot=_e+1,st=Fe;Le.forEach((St,Xe,Ke)=>{let Ye=it;Ye||(Ye=new w.Group,this.series.push(Ye));let Ze=G[0]+_e*ne,Pe=G[0]+ot*ne,ct=1/Ke.length,dt=st,bt=dt+We*ct,Pt=new w.Sector;Pt.centerX=ce,Pt.centerY=ce,Pt.innerRadius=Ze,Pt.outerRadius=Pe,Pt.startAngle=dt,Pt.endAngle=bt,Pt.stroke=void 0,Pt.strokeWidth=0,Pt.inset=.75,st=bt,Ye.append(Pt),xe(St,ot,dt,Math.abs(bt-dt),Ye)})};xe(c,0,fe,O),this.root.append(this.series),this.updateColors(d,s)}updateColors(b,C){this.series.forEach((d,s)=>{for(let c of d.children())c.fill=b[s%b.length],c.stroke=C[s%C.length]})}}p.MiniSunburst=z,z.chartType="sunburst"},7439:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniTreemap=void 0;let E=A(2893);class z extends E.MiniChart{constructor(b,C,d,s,c,h){super(b,C,"treemapTooltip");let{size:g,padding:f,agChartsExports:{_Scene:S}}=this,w=[[1,1],[3,2,1]],P=w.length%2===0?.3:.2,O=[f,g-f],G=w.length,j=G*(G+1)/2,Y=P/(G-1),J=O[1]-O[0],ne=J-P,ce=O[0];this.rects=w.reduce((xe,Le,_e)=>{xe!=null||(xe=[]);let Fe=(G-_e)/j,We=ne*Fe,it=Le.length,tt=Le.reduce((Ke,Ye)=>Ke+=Ye,0),ot=P/(it-1||1),st=it>1?J-P:J,St=O[0],Xe=Le.map(Ke=>{let Ye=new S.Rect,Ze=st*Ke/tt;return Ye.x=ce,Ye.y=St,Ye.width=We,Ye.height=Ze,Ye.strokeWidth=.75,Ye.crisp=!0,St+=Ze+ot,Ye});return ce+=We+Y,xe.push(...Xe),xe},[]),this.updateColors(d,s,c,h);let fe=new S.Group;fe.setClipRect(new S.BBox(f,f,g-f,g-f)),fe.append(this.rects),this.root.append(fe)}updateColors(b,C,d,s){var g;let c=d==null?void 0:d.get(this.agChartsExports._Theme.themeSymbols.DEFAULT_BACKGROUND_COLOUR),h=(g=Array.isArray(c)?c[0]:c)!=null?g:"white";this.rects.forEach((f,S)=>{f.fill=b[S%C.length],f.stroke=s?C[S%C.length]:h})}}p.MiniTreemap=z,z.chartType="treemap"},5626:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniHistogram=void 0;let E=A(1408);class z extends E.MiniChartWithAxes{constructor(b,C,d,s){super(b,C,"histogramTooltip");let{padding:c,size:h,agChartsExports:{_Scene:g}}=this,f=[2,5,11,13,10,6,1],S=new g.LinearScale;S.domain=[0,f.length],S.range=[c,h-c];let w=new g.LinearScale;w.domain=[0,f.reduce((P,O)=>Math.max(P,O),0)],w.range=[h-c,c];let M=w.convert(0);this.bars=f.map((P,O)=>{let G=w.convert(P),j=S.convert(O),Y=S.convert(O+1),J=new g.Rect;return J.x=j,J.y=G,J.width=Y-j,J.height=M-G,J.strokeWidth=1,J.strokeOpacity=.75,J.crisp=!0,J}),this.updateColors(d,s),this.root.append(this.bars)}updateColors([b],[C]){this.bars.forEach(d=>{d.fill=b,d.stroke=C})}}p.MiniHistogram=z,z.chartType="histogram"},6544:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(5608);E.__exportStar(A(1990),p),E.__exportStar(A(2397),p),E.__exportStar(A(2115),p),E.__exportStar(A(702),p),E.__exportStar(A(4161),p),E.__exportStar(A(3245),p),E.__exportStar(A(210),p),E.__exportStar(A(7716),p),E.__exportStar(A(7526),p),E.__exportStar(A(9005),p),E.__exportStar(A(8051),p),E.__exportStar(A(434),p),E.__exportStar(A(3268),p),E.__exportStar(A(3564),p),E.__exportStar(A(5133),p),E.__exportStar(A(6249),p),E.__exportStar(A(5626),p),E.__exportStar(A(781),p),E.__exportStar(A(9702),p),E.__exportStar(A(5520),p),E.__exportStar(A(8660),p),E.__exportStar(A(2036),p),E.__exportStar(A(4823),p),E.__exportStar(A(7049),p),E.__exportStar(A(1819),p),E.__exportStar(A(7439),p),E.__exportStar(A(5717),p),E.__exportStar(A(795),p),E.__exportStar(A(3209),p),E.__exportStar(A(6042),p),E.__exportStar(A(539),p),E.__exportStar(A(1655),p)},7526:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniLine=void 0;let E=A(9004),z=A(1408);class T extends z.MiniChartWithAxes{constructor(C,d,s,c,h,g,f=T.data,S="lineTooltip"){super(C,d,S);let{size:w,padding:M,root:P}=this;this.lines=(0,E.createLinePaths)(d,P,f,w,M),this.updateColors(s,c)}updateColors(C,d){this.lines.forEach((s,c)=>{s.stroke=C[c]})}}p.MiniLine=T,T.chartType="line",T.data=[[1,3,5],[2,6,4],[5,3,1]]},8051:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniNormalizedLine=void 0;let E=A(9004),z=A(7526),T=A(9005);class b extends z.MiniLine{constructor(d,s,c,h,g,f,S=b.data,w="normalizedLineTooltip"){super(d,s,c,h,g,f,S,w)}}p.MiniNormalizedLine=b,b.chartType="normalizedLine",b.data=(0,E.normalizeStackData)(T.MiniStackedLine.data)},9005:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniStackedLine=void 0;let E=A(9004),z=A(7526);class T extends z.MiniLine{constructor(C,d,s,c,h,g,f=T.data,S="stackedLineTooltip"){super(C,d,s,c,h,g,f,S)}}p.MiniStackedLine=T,T.chartType="stackedLine",T.data=(0,E.stackData)(z.MiniLine.data)},2893:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniChart=void 0;let E=A(6624),z="ag-chart-mini-thumbnail-canvas";class T extends E.Component{wireBeans(C){this.chartTranslation=C.chartTranslation}constructor(C,d,s){super(),this.agChartsExports=d,this.tooltipName=s,this.size=58,this.padding=5;let{_Scene:c}=d;this.root=new c.Group;let h=new c.Scene({width:this.size,height:this.size});h.canvas.element.classList.add(z),h.setRoot(this.root),h.setContainer(C),this.scene=h}postConstruct(){this.scene.canvas.element.title=this.chartTranslation.translate(this.tooltipName);try{this.scene.render()}catch(C){(0,E._error)(108,{e:C})}}}p.MiniChart=T},9004:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.accumulateData=p.createPolarPaths=p.normalizeStackData=p.stackData=p.createAreaPaths=p.createLinePaths=p.closePathViaOrigin=p.closePathViaPreviousSeries=p.createAreaPathCommands=p.createPath=p.createPathCommands=p.prepareLinearScene=p.createColumnRects=void 0;let E=A(6624);function z(P){let{stacked:O,size:G,padding:j,xScalePadding:Y,xScaleDomain:J,yScaleDomain:ne,agChartsExports:{_Scene:ce}}=P,fe=new ce.BandScale;fe.domain=J,fe.range=[j,G-j],fe.paddingInner=Y,fe.paddingOuter=Y;let xe=new ce.LinearScale;xe.domain=ne,xe.range=[G-j,j];let Le=(_e,Fe,We)=>_e.map((it,tt)=>{let ot=We.convert(it),st=new ce.Rect;return st.x=Fe.convert(tt),st.y=ot,st.width=Fe.bandwidth,st.height=We.convert(0)-ot,st.strokeWidth=0,st.crisp=!0,st});return O?P.data.map(_e=>Le(_e,fe,xe)):Le(P.data,fe,xe)}p.createColumnRects=z;function T(P,O,G,j){let Y=[0,O[0].length-1],J=O.reduce((fe,xe)=>(xe.forEach(Le=>{Le<fe[0]&&(fe[0]=Le),Le>fe[1]&&(fe[1]=Le)}),fe),[1/0,-1/0]);J[0]--,J[J.length-1]++;let ne=new P.LinearScale;ne.domain=Y,ne.range=[j,G-j];let ce=new P.LinearScale;return ce.domain=J,ce.range=[G-j,j],{xScale:ne,yScale:ce}}p.prepareLinearScene=T;function b(P,O,G){return P.map(j=>j.map((Y,J)=>[J>0?"lineTo":"moveTo",O.convert(J),G.convert(Y)]))}p.createPathCommands=b;function C(P,O){let G=new P.Path;return O.forEach(([j,Y,J])=>G.path[j](Y,J)),G}p.createPath=C;function d(P,O,G){return P.map((j,Y,J)=>{let ce=[...G?s(J,Y,O):c(j,O)].reverse().map(([Le,_e,Fe])=>["lineTo",_e,Fe]),fe=j[0],xe=(0,E._last)(ce);return(fe[1]!==xe[1]||fe[2]!==xe[2])&&ce.push(["lineTo",fe[1],fe[2]]),[...j,...ce]})}p.createAreaPathCommands=d;function s(P,O,G){return O===0?c(P[O],G):[...P[O-1]]}p.closePathViaPreviousSeries=s;function c(P,O){return P.map(([G,j])=>[G,j,O.convert(0)])}p.closePathViaOrigin=c;function h({_Scene:P},O,G,j,Y){let{xScale:J,yScale:ne}=T(P,G,j,Y),fe=b(G,J,ne).map(Le=>{let _e=C(P,Le);return _e.strokeWidth=3,_e.lineCap="round",_e.fill=void 0,_e}),xe=new P.Group;return xe.setClipRect(new P.BBox(Y,Y,j-Y*2,j-Y*2)),xe.append(fe),O.append(xe),fe}p.createLinePaths=h;function g(P,O,G,j,Y,J=!1){let{xScale:ne,yScale:ce}=T(P,G,j,Y),fe=d(b(G,ne,ce),ce,J),xe=new P.Group;xe.setClipRect(new P.BBox(Y,Y,j-Y*2,j-Y*2));let Le=fe.map(_e=>C(P,_e));return xe.append(Le),O.append(xe),Le}p.createAreaPaths=g;function f(P){return P.map((O,G,j)=>O.map((Y,J)=>j.slice(0,G+1).reduce((ne,ce)=>ne+ce[J],0)))}p.stackData=f;function S(P){let O=P.map((G,j)=>P.reduce((Y,J)=>Math.max(Y,J[j]),0));return P.map(G=>G.map((j,Y)=>j/O[Y]*19))}p.normalizeStackData=S;function w(P,O,G,j,Y,J,ne=0){let{_Scene:ce}=P,fe=new ce.LinearScale;fe.domain=[0,7],fe.range=[-Math.PI,Math.PI].map(it=>it+Math.PI/2);let xe=new ce.LinearScale;xe.domain=[0,10],xe.range=[Y,J];let Le=[],_e=j/2,Fe=G.map(it=>{let tt=new ce.Path;return tt.strokeWidth=1,tt.strokeOpacity=.5,tt.lineCap="round",tt.fill=void 0,tt.fillOpacity=.8,it.forEach((ot,st)=>{let St=fe.convert(st),Xe=Y+J-xe.convert(ot),Ke=Xe*Math.cos(St)+_e,Ye=Xe*Math.sin(St)+_e;if(tt.path[st>0?"lineTo":"moveTo"](Ke,Ye),ne>0){let Ze=new ce.Circle;Ze.x=Ke,Ze.y=Ye,Ze.size=ne,Le.push(Ze)}}),tt.path.closePath(),tt}),We=new ce.Group;return We.append([...Fe,...Le]),O.append(We),{paths:Fe,markers:Le}}p.createPolarPaths=w;function M(P){let[O,G]=[1/0,-1/0];return{processedData:P.reduce((Y,J,ne)=>{var xe;let ce=ne>0?Y[ne-1]:void 0;(xe=Y[ne])!=null||(Y[ne]=[]);let fe=Y[ne];return J.forEach((Le,_e)=>{ce&&(Le+=ce[_e]),fe[_e]=Le,fe[_e]<O&&(O=fe[_e]),fe[_e]>G&&(G=fe[_e])}),Y},[]),min:O,max:G}}p.accumulateData=M},1408:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniChartWithAxes=void 0;let E=A(2893);class z extends E.MiniChart{constructor(b,C,d){super(b,C,d),this.stroke="gray",this.axisOvershoot=3}postConstruct(){let{_Scene:b}=this.agChartsExports,C=this.size,d=this.padding,s=new b.Line;s.x1=d,s.y1=d,s.x2=d,s.y2=C-d+this.axisOvershoot,s.stroke=this.stroke;let c=new b.Line;c.x1=d-this.axisOvershoot+1,c.y1=C-d,c.x2=C-d+1,c.y2=C-d,c.stroke=this.stroke;let h=this.root;h.append(s),h.append(c),super.postConstruct()}}p.MiniChartWithAxes=z},2220:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniChartWithPolarAxes=void 0;let E=A(2893);class z extends E.MiniChart{constructor(b,C,d){super(b,C,d),this.stroke="gray",this.showRadiusAxisLine=!0,this.showAngleAxisLines=!0}postConstruct(){let{_Scene:b}=this.agChartsExports,C=this.size,d=this.padding,s=d*2,c=(C-s)/2,h=this.showAngleAxisLines?[c,c*.8,c*.6,c*.4]:[],g=new b.Line;g.x1=C/2,g.y1=d,g.x2=C/2,g.y2=C-d-c-h[h.length-1],g.stroke=this.stroke,g.strokeOpacity=.5,g.fill=void 0,g.visible=this.showRadiusAxisLine;let f=d+c;this.gridLines=h.map((w,M)=>{let P=new b.Path;return P.path.arc(f,f,w,0,2*Math.PI),P.strokeWidth=1,P.stroke=this.stroke,P.strokeOpacity=M===0?.5:.2,P.fill=void 0,P});let S=this.root;S.append(g),this.gridLines.length>0&&S.append(this.gridLines),super.postConstruct()}}p.MiniChartWithPolarAxes=z},7716:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniDonut=void 0;let E=A(2893);class z extends E.MiniChart{constructor(b,C,d,s,c,h,g=.6,f="donutTooltip"){super(b,C,f);let{size:S,padding:w,agChartsExports:{_Scene:M}}=this,P=(S-w*2)/2,O=P+w,G=M.toRadians,j=[[G(-90),G(30)],[G(30),G(120)],[G(120),G(180)],[G(180),G(210)],[G(210),G(240)],[G(240),G(270)]];this.sectors=j.map(([Y,J])=>{let ne=new M.Sector;return ne.centerX=O,ne.centerY=O,ne.innerRadius=P*g,ne.outerRadius=P,ne.startAngle=Y,ne.endAngle=J,ne.stroke=void 0,ne.strokeWidth=0,ne.inset=.75,ne}),this.updateColors(d,s),this.root.append(this.sectors)}updateColors(b,C){this.sectors.forEach((d,s)=>{d.fill=b[s%b.length],d.stroke=C[s%C.length]})}}p.MiniDonut=z,z.chartType="donut"},210:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniPie=void 0;let E=A(7716);class z extends E.MiniDonut{constructor(b,C,d,s,c,h){super(b,C,d,s,c,h,0,"pieTooltip")}}p.MiniPie=z,z.chartType="pie"},2036:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniNightingale=void 0;let E=A(9004),z=A(2220);class T extends z.MiniChartWithPolarAxes{constructor(C,d,s,c){super(C,d,"nightingaleTooltip"),this.data=[[6,10,9,8,7,8],[4,6,5,4,5,5],[3,5,4,3,4,7]],this.showRadiusAxisLine=!1;let{size:h,padding:g,data:f,agChartsExports:{_Scene:S}}=this,w=(h-g*2)/2,M=new S.BandScale;M.domain=f[0].map((J,ne)=>ne),M.range=[-Math.PI,Math.PI],M.paddingInner=0,M.paddingOuter=0;let P=M.bandwidth*.7,{processedData:O,max:G}=(0,E.accumulateData)(f),j=new S.LinearScale;j.domain=[0,G],j.range=[0,w];let Y=h/2;this.series=O.map((J,ne)=>{let ce=ne<0?void 0:O[ne-1],fe=new S.Group({zIndex:1e6}),xe=J.map((Le,_e)=>{let Fe=ce==null?void 0:ce[_e],We=j.convert(Le),it=j.convert(Fe!=null?Fe:0),tt=M.convert(_e),ot=tt+P,st=new S.Sector;return st.centerX=Y,st.centerY=Y,st.innerRadius=it,st.outerRadius=We,st.startAngle=tt,st.endAngle=ot,st.stroke=void 0,st.strokeWidth=0,st});return fe.append(xe),fe}),this.root.append(this.series),this.updateColors(s,c)}updateColors(C,d){this.series.forEach((s,c)=>{for(let h of s.children())h.fill=C[c%C.length],h.stroke=d[c%d.length]})}}p.MiniNightingale=T,T.chartType="nightingale"},8660:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRadarArea=void 0;let E=A(9004),z=A(2220);class T extends z.MiniChartWithPolarAxes{constructor(C,d,s,c){super(C,d,"radarAreaTooltip"),this.data=[[8,10,5,7,4,1,5,8],[1,1,2,7,7,8,10,1],[4,5,9,9,4,2,3,4]];let{size:h,padding:g,root:f,data:S}=this;this.showRadiusAxisLine=!1;let w=(h-g*2)/2,M=w-h*.3;this.areas=(0,E.createPolarPaths)(d,f,S,h,w,M).paths,this.updateColors(s,c)}updateColors(C,d){this.areas.forEach((s,c)=>{s.fill=C[c],s.stroke=d[c]})}}p.MiniRadarArea=T,T.chartType="radarArea"},5520:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRadarLine=void 0;let E=A(9004),z=A(2220);class T extends z.MiniChartWithPolarAxes{constructor(C,d,s,c){super(C,d,"radarLineTooltip"),this.markerSize=4,this.data=[[8,7,8,7,8,8,7,8],[6,8,5,10,6,7,4,6],[0,3,3,5,4,4,2,0]],this.showRadiusAxisLine=!1;let{size:h,padding:g,root:f,data:S}=this,w=(h-g*2)/2,M=0,{paths:P,markers:O}=(0,E.createPolarPaths)(d,f,S,h,w,M,this.markerSize);this.lines=P,this.markers=O,this.updateColors(s,c)}updateColors(C,d){this.lines.forEach((s,c)=>{let h=this.data[c].length;s.stroke=C[c];let g=c*h,f=g+h;this.markers.slice(g,f).forEach(w=>{w.stroke=d[c],w.fill=C[c]})})}}p.MiniRadarLine=T,T.chartType="radarLine"},9702:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRadialBar=void 0;let E=A(9004),z=A(2220);class T extends z.MiniChartWithPolarAxes{constructor(C,d,s,c){super(C,d,"radialBarTooltip"),this.data=[[6,8,10],[4,4,3],[5,4,2]],this.showRadiusAxisLine=!1;let{size:h,padding:g,data:f,agChartsExports:{_Scene:S}}=this,w=(h-g)/2,P=w*.4,O=new S.BandScale;O.domain=f[0].map((xe,Le)=>Le),O.range=[P,w],O.paddingInner=.5,O.paddingOuter=0;let G=O.bandwidth,{processedData:j,max:Y}=(0,E.accumulateData)(f),J=new S.LinearScale;J.domain=[0,Math.ceil(Y*1.5)];let ne=3/2*Math.PI,ce=ne+2*Math.PI;J.range=[ne,ce];let fe=h/2;this.series=j.map((xe,Le)=>{let _e=Le<0?void 0:j[Le-1],Fe=new S.Group({zIndex:1e6}),We=xe.map((it,tt)=>{var Ze;let ot=(Ze=_e==null?void 0:_e[tt])!=null?Ze:0,st=O.convert(tt),St=st-G,Xe=J.convert(ot),Ke=J.convert(it),Ye=new S.Sector;return Ye.centerX=fe,Ye.centerY=fe,Ye.innerRadius=St,Ye.outerRadius=st,Ye.startAngle=Xe,Ye.endAngle=Ke,Ye.stroke=void 0,Ye.strokeWidth=0,Ye});return Fe.append(We),Fe}),this.root.append(this.series),this.updateColors(s,c)}updateColors(C,d){this.series.forEach((s,c)=>{for(let h of s.children())h.fill=C[c%C.length],h.stroke=d[c%d.length]})}}p.MiniRadialBar=T,T.chartType="radialBar"},781:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRadialColumn=void 0;let E=A(9004),z=A(2220);class T extends z.MiniChartWithPolarAxes{constructor(C,d,s,c){super(C,d,"radialColumnTooltip"),this.data=[[6,8,10,2,6,5],[4,4,3,6,4,4],[5,4,2,9,8,9]],this.showRadiusAxisLine=!1;let{padding:h,size:g,data:f,agChartsExports:{_Scene:S}}=this,w=(g-h*2)/2,P=w*.4,O=new S.BandScale;O.domain=f[0].map((ce,fe)=>fe),O.range=[0,2*Math.PI],O.paddingInner=0,O.paddingOuter=0;let G=O.bandwidth*.7,{processedData:j,max:Y}=(0,E.accumulateData)(f),J=new S.LinearScale;J.domain=[0,Y],J.range=[P,w];let ne=this.size/2;this.series=j.map((ce,fe)=>{let Le=fe===0?void 0:j[fe-1],_e=new S.TranslatableGroup({zIndex:1e6}),Fe=ce.map((We,it)=>{let tt=Le==null?void 0:Le[it],ot=J.convert(We),st=J.convert(tt!=null?tt:0),St=O.convert(it),Xe=St+G,Ke=S.getRadialColumnWidth(St,Xe,w,.5,.5),Ye=new S.RadialColumnShape;return Ye.columnWidth=Ke,Ye.innerRadius=st,Ye.outerRadius=ot,Ye.startAngle=St,Ye.endAngle=Xe,Ye.isBeveled=!0,Ye.axisInnerRadius=P,Ye.axisOuterRadius=w,Ye.stroke=void 0,Ye.strokeWidth=0,Ye});return _e.append(Fe),_e.translationX=ne,_e.translationY=ne,_e}),this.root.append(this.series),this.updateColors(s,c)}updateColors(C,d){this.series.forEach((s,c)=>{for(let h of s.children())h.fill=C[c%C.length],h.stroke=d[c%d.length]})}}p.MiniRadialColumn=T,T.chartType="radialColumn"},3268:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniBubble=void 0;let E=A(1408);class z extends E.MiniChartWithAxes{constructor(b,C,d,s){super(b,C,"bubbleTooltip");let{size:c,padding:h,agChartsExports:{_Scene:g}}=this,f=[[[.1,.3,5],[.5,.4,7],[.2,.8,7]],[[.8,.7,5],[.7,.3,9]]],S=new g.LinearScale;S.domain=[0,1],S.range=[h*2,c-h];let w=new g.LinearScale;w.domain=[0,1],w.range=[c-h,h];let M=[];f.forEach(O=>{O.forEach(([G,j,Y])=>{let J=new g.Arc;J.strokeWidth=0,J.centerX=S.convert(G),J.centerY=w.convert(j),J.radius=Y,J.fillOpacity=.7,M.push(J)})}),this.points=M,this.updateColors(d,s);let P=new g.Group;P.setClipRect(new g.BBox(h,h,c-h*2,c-h*2)),P.append(this.points),this.root.append(P)}updateColors(b,C){this.points.forEach((d,s)=>{d.stroke=C[s%C.length],d.fill=b[s%b.length]})}}p.MiniBubble=z,z.chartType="bubble"},434:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniScatter=void 0;let E=A(1408);class z extends E.MiniChartWithAxes{constructor(b,C,d,s){super(b,C,"scatterTooltip");let{size:c,padding:h,agChartsExports:{_Scene:g}}=this,f=[[[.3,3],[1.1,.9],[2,.4],[3.4,2.4]],[[0,.3],[1,2],[2.4,1.4],[3,0]]],S=new g.LinearScale;S.domain=[-.5,4],S.range=[h*2,c-h];let w=new g.LinearScale;w.domain=[-.5,3.5],w.range=[c-h,h];let M=[];f.forEach(O=>{O.forEach(([G,j])=>{let Y=new g.Arc;Y.strokeWidth=0,Y.centerX=S.convert(G),Y.centerY=w.convert(j),Y.radius=2.5,M.push(Y)})}),this.points=M,this.updateColors(d,s);let P=new g.Group;P.setClipRect(new g.BBox(h,h,c-h*2,c-h*2)),P.append(this.points),this.root.append(P)}updateColors(b,C){this.points.forEach((d,s)=>{d.stroke=C[s%C.length],d.fill=b[s%b.length]})}}p.MiniScatter=z,z.chartType="scatter"},795:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniHeatmap=void 0;let E=A(2893);class z extends E.MiniChart{constructor(b,C,d,s,c,h){var ne,ce;super(b,C,"heatmapTooltip");let{size:g,padding:f,agChartsExports:{_Scene:S}}=this,w=3,M=Array.from({length:w},(fe,xe)=>Array.from({length:w},(Le,_e)=>_e)),P=M.map((fe,xe)=>xe),O=new S.BandScale;O.domain=P,O.range=[f,g-f],O.paddingInner=.01,O.paddingOuter=.1;let G=new S.BandScale;G.domain=P,G.range=[f,g-f],G.paddingInner=.01,G.paddingOuter=.1;let j=(ne=O.bandwidth)!=null?ne:0,Y=(ce=G.bandwidth)!=null?ce:0;this.rects=M.reduce((fe,xe,Le)=>{fe!=null||(fe=[]);let _e=xe.map((Fe,We)=>{let it=new S.Rect;return it.x=O.convert(Le),it.y=G.convert(We),it.width=j,it.height=Y,it.strokeWidth=0,it.crisp=!0,it});return fe.push(..._e),fe},[]),this.updateColors(d,s,c,h);let J=new S.Group;J.setClipRect(new S.BBox(f,f,g-f,g-f)),J.append(this.rects),this.root.append(J)}updateColors(b,C,d,s){var O;let{_Theme:c,_Util:h}=this.agChartsExports,g=d==null?void 0:d.get(c.themeSymbols.DEFAULT_DIVERGING_SERIES_COLOR_RANGE),f=d==null?void 0:d.get(c.themeSymbols.DEFAULT_BACKGROUND_COLOUR),S=(O=Array.isArray(f)?f[0]:f)!=null?O:"white",w=s?[b[0],b[1]]:g,M=s?C[0]:S,P=h.interpolateColor(w[0],w[1]);this.rects.forEach((G,j)=>{G.fill=P(j*.2),G.stroke=M})}}p.MiniHeatmap=z,z.chartType="heatmap"},3209:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniWaterfall=void 0;let E=A(9004),z=A(1408);class T extends z.MiniChartWithAxes{constructor(C,d,s,c,h,g){super(C,d,"waterfallTooltip"),this.data=[4,3,-3,6,-3],this.bars=this.createWaterfall(this.root,this.data,this.size,this.padding,"vertical").bars,this.updateColors(s,c,h,g)}updateColors(C,d,s,c){let{data:h,agChartsExports:{_Theme:{themeSymbols:g}}}=this,f={fill:c?C[0]:s==null?void 0:s.get(g.PALETTE_ALT_UP_FILL),stroke:c?d[0]:s==null?void 0:s.get(g.PALETTE_ALT_UP_STROKE)},S={fill:c?C[1]:s==null?void 0:s.get(g.PALETTE_ALT_DOWN_FILL),stroke:c?d[1]:s==null?void 0:s.get(g.PALETTE_ALT_DOWN_STROKE)};this.bars.forEach((w,M)=>{let P=h[M]>=0;w.fill=P?f.fill:S.fill,w.stroke=P?f.stroke:S.stroke})}createWaterfall(C,d,s,c,h){let g=2*c,{processedData:f,min:S,max:w}=(0,E.accumulateData)(d.map(xe=>[xe])),M=f.reduce((xe,Le)=>xe.concat(Le),[]),{_Scene:P}=this.agChartsExports,O=new P.LinearScale;O.domain=[Math.min(S,0),w],O.range=[s-g,g];let G=new P.BandScale;G.domain=d.map((xe,Le)=>Le),G.range=[c,s-c],G.paddingInner=.2,G.paddingOuter=.3;let j=G.bandwidth,Y=new P.Path;Y.stroke="#575757",Y.strokeWidth=0;let J=Math.floor(Y.strokeWidth)%2/2,ne=Y.path;ne.clear();let ce=h==="horizontal",fe=M.map((xe,Le)=>{let _e=Le>0?M[Le-1]:0,We=d[Le]>0,it=Math.round(O.convert(xe)),tt=Math.round(O.convert(_e)),ot=(We?it:tt)-J,st=(We?tt:it)+J,St=Math.abs(st-ot),Xe=G.convert(Le),Ke=new P.Rect;Ke.x=ce?ot:Xe,Ke.y=ce?Xe:ot,Ke.width=ce?St:j,Ke.height=ce?j:St,Ke.strokeWidth=0,Ke.crisp=!0;let Ye=it+J,Ze=tt+J;if(Le>0){let dt=ce?Ze:Ke.x,bt=ce?Ke.y:Ze;ne.lineTo(dt,bt)}let Pe=ce?Ye:Ke.x,ct=ce?Ke.y:Ye;return ne.moveTo(Pe,ct),Ke});return C.append([Y,...fe]),{bars:fe}}}p.MiniWaterfall=T,T.chartType="waterfall"},1819:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniBoxPlot=void 0;let E=A(1408);class z extends E.MiniChartWithAxes{constructor(b,C,d,s,c,h){super(b,C,"boxPlotTooltip");let{size:g,padding:f,agChartsExports:{_Scene:S}}=this,w=[11,11.5,10.5],M=1.2,P=1.1,O=.9,G=.8,j=new S.LinearScale;j.domain=[w.reduce((ce,fe)=>Math.min(ce,fe),1/0)*G,w.reduce((ce,fe)=>Math.max(ce,fe),0)*M],j.range=[g-1.5*f,f];let Y=new S.BandScale;Y.domain=w.map((ce,fe)=>fe),Y.range=[f,g-f],Y.paddingInner=.4,Y.paddingOuter=.2;let J=Math.round(Y.bandwidth),ne=Math.round(Y.bandwidth/2);this.boxPlotGroups=w.map((ce,fe)=>{let[xe,Le,_e,Fe]=[ce*G,ce*O,ce*P,ce*M],We=Math.round(j.convert(_e)),it=Math.round(Y.convert(fe)),tt=Math.round(it+J),ot=Math.round(j.convert(Le)),st=Math.round(j.convert(xe)),St=Math.round(j.convert(ce)),Xe=Math.round(j.convert(Fe)),Ke=it+ne,Ye=new S.Group,Ze=new S.Rect,Pe=new S.Line,ct=new S.Line,dt=new S.Line,bt=new S.Line,Pt=new S.Line;return Ze.x=it,Ze.y=We,Ze.width=J,Ze.height=ot-We,Ze.strokeWidth=1,Ze.strokeOpacity=.75,Ze.crisp=!0,this.setLineProperties(Pe,it,tt,St,St),this.setLineProperties(ct,Ke,Ke,Xe,We),this.setLineProperties(dt,Ke,Ke,st,ot),this.setLineProperties(bt,it,tt,Xe,Xe),this.setLineProperties(Pt,it,tt,st,st),Ye.append([Ze,Pe,ct,dt,bt,Pt]),Ye}),this.updateColors(d,s,c,h),this.root.append(this.boxPlotGroups)}updateColors(b,C,d,s){var S;let{agChartsExports:{_Util:c,_Theme:h}}=this,g=d==null?void 0:d.get(h.themeSymbols.DEFAULT_BACKGROUND_COLOUR),f=(S=Array.isArray(g)?g[0]:g)!=null?S:"white";this.boxPlotGroups.forEach((w,M)=>{for(let P of w.children()){let O=b[M%b.length];P.fill=s?O:c.interpolateColor(O,f)(.7),P.stroke=C[M%C.length]}})}setLineProperties(b,C,d,s,c){b.x1=C,b.x2=d,b.y1=s,b.y2=c,b.strokeOpacity=.75}}p.MiniBoxPlot=z,z.chartType="boxPlot"},7049:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRangeArea=void 0;let E=A(1408);class z extends E.MiniChartWithAxes{constructor(s,c,h,g){super(s,c,"rangeAreaTooltip");let f=4,S=[T({offset:.375*f,length:f,pattern:{low:3,high:5,period:f}}),T({offset:.375*f,length:f,pattern:{low:2.25,high:4.25,period:f}}),T({offset:.75*f,length:f,pattern:{low:2.5,high:4.5,period:f}})],w=1.75,M=S.map(G=>G.map(([j,Y])=>({x:j,low:Y-.5*w,high:Y+.5*w}))),{lines:P,areas:O}=this.createRangeArea(this.root,M,this.size,this.padding);this.lines=P,this.areas=O,this.updateColors(h,g)}updateColors(s,c){s=C(s,1,2),c=C(c,1,2),this.lines.forEach(([h,g],f)=>{h.fill=void 0,h.stroke=c[f],g.fill=void 0,g.stroke=c[f]}),this.areas.forEach((h,g)=>{h.fill=s[g]})}createRangeArea(s,c,h,g){let f=c.reduce((ce,fe)=>fe.reduce((xe,{x:Le})=>Math.min(xe,Le),ce),1/0),S=c.reduce((ce,fe)=>fe.reduce((xe,{x:Le})=>Math.max(xe,Le),ce),-1/0),w=c.reduce((ce,fe)=>fe.reduce((xe,{low:Le})=>Math.min(xe,Le),ce),1/0),M=c.reduce((ce,fe)=>fe.reduce((xe,{high:Le})=>Math.max(xe,Le),ce),-1/0),{_Scene:P}=this.agChartsExports,O=new P.LinearScale;O.domain=[f,S],O.range=[g,h-g];let G=2*g,j=new P.LinearScale;j.domain=[w,M],j.range=[h-G,G];let Y=[],J=[];return c.map(ce=>{let fe=new P.Path,xe=new P.Path,Le=new P.Path;return Y.push([fe,xe]),J.push(Le),fe.strokeWidth=0,xe.strokeWidth=0,Le.strokeWidth=0,Le.fillOpacity=.8,fe.path.clear(),xe.path.clear(),Le.path.clear(),ce.map((_e,Fe)=>{let{x:We,low:it,high:tt}=_e,ot=O.convert(We),st=j.convert(it),St=j.convert(tt),Xe=Fe>0?"lineTo":"moveTo";return fe.path[Xe](ot,St),xe.path[Xe](ot,st),Le.path[Xe](ot,St),[ot,st]})}).forEach((ce,fe)=>{let xe=ce.length-1,Le=J[fe];for(let _e=xe;_e>=0;_e--){let[Fe,We]=ce[_e];Le.path.lineTo(Fe,We)}}),s.append(J.concat(...Y)),{lines:Y,areas:J}}}p.MiniRangeArea=z,z.chartType="rangeArea";function T(d){let{offset:s,length:c,pattern:h}=d,g=w(s,c,h),f=0,S=c;return(g.length===0||g[0][0]!==f)&&g.unshift(M(f,s,h)),g[g.length-1][0]!==S&&g.push(M(S,s,h)),g;function w(O,G,j){let{period:Y}=j,J=O/Y,ce=[0,.5].map(xe=>xe-J).map(b).sort((xe,Le)=>xe-Le);return Array.from({length:Math.floor(ce.length*(Y/G))},(xe,Le)=>ce[Le%ce.length]+Math.floor(Le/ce.length)).map(xe=>xe*Y).map(xe=>M(xe,O,j))}function M(O,G,j){return[O,P(G+O,j)]}function P(O,G){let{low:j,high:Y,period:J}=G,ne=b(O/J),ce=ne>.5?1-2*(ne-.5):2*ne;return j+(Y-j)*ce}}function b(d){let s=d%1;return s<0?s+1:s}function C(d,s,c){let h=[...d],g=h[s];return h[s]=h[c],h[c]=g,h}},4823:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniRangeBar=void 0;let E=A(1408);class z extends E.MiniChartWithAxes{constructor(b,C,d,s){super(b,C,"rangeBarTooltip");let c=[3,3.5,3];this.bars=this.createRangeBar(this.root,c,this.size,this.padding,"vertical"),this.updateColors(d,s)}updateColors(b,C){this.bars.forEach((d,s)=>{d.fill=b[s],d.stroke=C[s]})}createRangeBar(b,C,d,s,c){let h=c==="horizontal",g=2*s,{_Scene:f}=this.agChartsExports,S=new f.BandScale;S.domain=C.map((j,Y)=>Y),S.range=[s,d-s],S.paddingInner=.3,S.paddingOuter=.3;let w=.7,M=1.3,P=new f.LinearScale;P.domain=[C.reduce((j,Y)=>Math.min(j,Y),1/0)*w,C.reduce((j,Y)=>Math.max(j,Y),0)*M],P.range=[g,d-g];let O=S.bandwidth,G=C.map((j,Y)=>{let[J,ne]=[j*w,j*M],ce=S.convert(Y),fe=P.convert(J),xe=P.convert(ne)-fe,Le=new f.Rect;return Le.x=h?fe:ce,Le.y=h?ce:fe,Le.width=h?xe:O,Le.height=h?O:xe,Le.strokeWidth=0,Le.crisp=!0,Le});return b.append(G),G}}p.MiniRangeBar=z,z.chartType="rangeBar"},6692:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MiniChartsContainer=void 0;let E=A(6624),z=A(1421),T=A(4237),b=A(6544),C={columnGroup:{column:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniColumn},stackedColumn:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniStackedColumn},normalizedColumn:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniNormalizedColumn}},barGroup:{bar:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniBar},stackedBar:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniStackedBar},normalizedBar:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniNormalizedBar}},pieGroup:{pie:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniPie},donut:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniDonut},doughnut:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniDonut}},lineGroup:{line:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniLine},stackedLine:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniStackedLine},normalizedLine:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniNormalizedLine}},scatterGroup:{scatter:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniScatter},bubble:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniBubble}},areaGroup:{area:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniArea},stackedArea:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniStackedArea},normalizedArea:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniNormalizedArea}},polarGroup:{radarLine:{range:!0,pivot:!1,enterprise:!0,icon:b.MiniRadarLine},radarArea:{range:!0,pivot:!1,enterprise:!0,icon:b.MiniRadarArea},nightingale:{range:!0,pivot:!1,enterprise:!0,icon:b.MiniNightingale},radialColumn:{range:!0,pivot:!1,enterprise:!0,icon:b.MiniRadialColumn},radialBar:{range:!0,pivot:!1,enterprise:!0,icon:b.MiniRadialBar}},statisticalGroup:{boxPlot:{range:!0,pivot:!1,enterprise:!0,icon:b.MiniBoxPlot},histogram:{range:!0,pivot:!1,enterprise:!1,icon:b.MiniHistogram},rangeBar:{range:!0,pivot:!1,enterprise:!0,icon:b.MiniRangeBar},rangeArea:{range:!0,pivot:!1,enterprise:!0,icon:b.MiniRangeArea}},hierarchicalGroup:{treemap:{range:!0,pivot:!0,enterprise:!0,icon:b.MiniTreemap},sunburst:{range:!0,pivot:!0,enterprise:!0,icon:b.MiniSunburst}},specializedGroup:{heatmap:{range:!0,pivot:!1,enterprise:!0,icon:b.MiniHeatmap},waterfall:{range:!0,pivot:!1,enterprise:!0,icon:b.MiniWaterfall}},combinationGroup:{columnLineCombo:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniColumnLineCombo},areaColumnCombo:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniAreaColumnCombo},customCombo:{range:!0,pivot:!0,enterprise:!1,icon:b.MiniCustomCombo}}},d={columnGroup:["column","stackedColumn","normalizedColumn"],barGroup:["bar","stackedBar","normalizedBar"],pieGroup:["pie","donut"],lineGroup:["line","stackedLine","normalizedLine"],areaGroup:["area","stackedArea","normalizedArea"],scatterGroup:["scatter","bubble"],polarGroup:["radarLine","radarArea","nightingale","radialColumn","radialBar"],statisticalGroup:["boxPlot","histogram","rangeBar","rangeArea"],hierarchicalGroup:["treemap","sunburst"],specializedGroup:["heatmap","waterfall"],combinationGroup:["columnLineCombo","areaColumnCombo","customCombo"]};class s extends E.Component{wireBeans(h){this.chartTranslation=h.chartTranslation}constructor(h,g,f,S,w,M=d){super('<div class="ag-chart-settings-mini-wrapper"></div>'),this.wrappers=new Map,this.chartController=h,this.fills=g,this.strokes=f,this.themeTemplateParameters=S,this.isCustomTheme=w,this.chartGroups=ge({},M)}postConstruct(){!this.chartController.customComboExists()&&this.chartGroups.combinationGroup&&(this.chartGroups.combinationGroup=this.chartGroups.combinationGroup.filter(M=>M!=="customCombo"));let h=this.getGui(),g=this.chartController.isEnterprise(),f=this.chartController.isPivotChart(),S=!f,w=Object.keys(this.chartGroups).map(M=>{var j;let P=M in C?C[M]:void 0;if(!P)return(0,E._warn)(148,{group:M}),null;let G=((j=this.chartGroups[M])!=null?j:[]).map(Y=>{let J=Y in P?P[Y]:void 0;return J?!g&&J.enterprise?null:S&&J.range||f&&J.pivot?J:null:((0,E._warn)(149,{group:M,chartType:Y}),null)}).filter(Y=>Y!=null);return G.length===0?null:{label:this.chartTranslation.translate(M),items:G}}).filter(M=>M!=null);for(let{label:M,items:P}of w){let O=this.createBean(new z.AgGroupComponent({title:M,suppressEnabledCheckbox:!0,enabled:!0,suppressOpenCloseIcons:!0,cssIdentifier:"charts-settings",direction:"horizontal",suppressKeyboardNavigation:!0}));for(let G of P){let j=G.icon,Y=document.createElement("div");Y.classList.add("ag-chart-mini-thumbnail"),Y.setAttribute("tabindex","0"),Y.setAttribute("role","button");let J=j.chartType,ne=()=>{this.chartController.setChartType(J),this.updateSelectedMiniChart()};this.addManagedListeners(Y,{click:ne,keydown:ce=>{(ce.key==E.KeyCode.ENTER||ce.key===E.KeyCode.SPACE)&&(ce.preventDefault(),ne())}}),this.wrappers.set(J,Y),this.createBean(new j(Y,this.beans.agChartsExports,this.fills,this.strokes,this.themeTemplateParameters,this.isCustomTheme)),O.addItem(Y)}h.appendChild(O.getGui())}this.updateSelectedMiniChart()}updateSelectedMiniChart(){let h=this.chartController.getChartType();this.wrappers.forEach((g,f)=>{let S=f===h;g.classList.toggle("ag-selected",S);let w=this.chartTranslation.translate((0,T.getFullChartNameTranslationKey)(f)),M=S?`${w}. ${this.chartTranslation.translate("ariaChartSelected")}`:w;(0,E._setAriaLabel)(g,M)})}destroy(){this.wrappers.clear(),super.destroy()}}p.MiniChartsContainer=s},5518:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TabbedChartMenu=void 0;let E=A(6624),z=A(5875),T=A(1504),b=A(3160),C=A(6604),d="data",s="format";class c extends E.Component{wireBeans(g){this.chartTranslation=g.chartTranslation}constructor(g,f){super(),this.panels=g,this.chartMenuContext=f,this.tabs=[]}postConstruct(){this.panels.forEach(g=>{let f=g.replace("chart","").toLowerCase(),S=this.createPanel(f),w=this.createTab(g,f,S);this.tabs.push(w),this.addDestroyFunc(()=>this.destroyBean(S))}),this.tabbedLayout=new z.TabbedLayout({items:this.tabs,cssClass:"ag-chart-tabbed-menu",keepScrollPosition:!0,suppressFocusBodyOnOpen:!0,suppressTrapFocus:!0,enableCloseButton:!0,closeButtonAriaLabel:this.chartTranslation.translate("ariaChartMenuClose"),onCloseClicked:()=>{var g;(g=this.eventSource)==null||g.focus({preventScroll:!0}),this.dispatchLocalEvent({type:"closed"})}}),this.createBean(this.tabbedLayout)}createTab(g,f,S){let w=document.createElement("div");w.classList.add("ag-chart-tab",`ag-chart-${f}`),this.createBean(S),w.appendChild(S.getGui());let M=document.createElement("div"),P=this.chartTranslation.translate(f);return M.innerText=P,{title:M,titleLabel:P,bodyPromise:E.AgPromise.resolve(w),getScrollableContainer:()=>w.querySelector(".ag-scrollable-container")||w,name:g}}showTab(g){let f=this.tabs[g];this.tabbedLayout.showItem(f)}getGui(){return this.tabbedLayout&&this.tabbedLayout.getGui()}showMenu(g,f){var S;this.eventSource=g,f||(S=this.tabbedLayout)==null||S.focusHeader(!0)}destroy(){this.parentComponent&&this.parentComponent.isAlive()&&this.destroyBean(this.parentComponent),super.destroy()}createPanel(g){switch(g){case d:return new T.ChartDataPanel(this.chartMenuContext);case s:return new b.FormatPanel(this.chartMenuContext);default:return new C.ChartSettingsPanel(this.chartMenuContext.chartController)}}}p.TabbedChartMenu=c},8592:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartDataModel=p.DEFAULT_CHART_CATEGORY=void 0;let E=A(6624),z=A(9208),T=A(8919),b=A(4237),C=A(2474);p.DEFAULT_CHART_CATEGORY="AG-GRID-DEFAULT-CATEGORY";class d extends E.BeanStub{wireBeans(c){this.rangeSvc=c.rangeSvc,this.chartTranslation=c.chartTranslation}constructor(c){super(),this.unlinked=!1,this.chartData=[],this.valueColState=[],this.dimensionColState=[],this.colNames={},this.crossFiltering=!1,this.grouping=!1,this.params=c,this.chartId=c.chartId,this.setParams(c)}setParams(c){let{chartType:h,pivotChart:g,chartThemeName:f,switchCategorySeries:S,aggFunc:w,cellRange:M,suppressChartRanges:P,unlinkChart:O,crossFiltering:G,seriesGroupType:j}=c;this.chartType=h,this.pivotChart=g!=null?g:!1,this.chartThemeName=f,this.switchCategorySeries=!!S,this.aggFunc=w,this.referenceCellRange=M,this.suppliedCellRange=M,this.suppressChartRanges=P!=null?P:!1,this.unlinked=!!O,this.crossFiltering=!!G,this.seriesGroupType=j}postConstruct(){this.datasource=this.createManagedBean(new z.ChartDatasource),this.chartColSvc=this.createManagedBean(new T.ChartColumnService),this.comboChartModel=this.createManagedBean(new C.ComboChartModel(this)),this.updateCellRanges({setColsFromRange:!0}),this.updateData()}updateModel(c){let{cellRange:h,seriesChartTypes:g}=c;h!==this.suppliedCellRange&&(this.dimensionCellRange=void 0,this.valueCellRange=void 0),this.setParams(c),this.updateSelectedDimensions(h==null?void 0:h.columns),this.updateCellRanges({setColsFromRange:!0}),(this.isComboChart()||g)&&this.comboChartModel.update(g),this.unlinked||this.updateData()}updateCellRanges(c){let{updatedColState:h,resetOrder:g,maintainColState:f,setColsFromRange:S}=c!=null?c:{};this.valueCellRange&&(this.referenceCellRange=this.valueCellRange);let{dimensionCols:w,valueCols:M}=this.chartColSvc.getChartColumns(),P=this.getAllColumnsFromRanges();h&&this.updateColumnState(h,g),this.setDimensionCellRange(w,P,h),this.setValueCellRange(M,P,S),!h&&!f&&(this.resetColumnState(),this.syncDimensionCellRange()),this.comboChartModel.updateSeriesChartTypes()}updateData(){let{startRow:c,endRow:h}=this.getRowIndexes();this.pivotChart&&this.resetColumnState(),this.grouping=this.isGrouping();let g={aggFunc:this.aggFunc,dimensionCols:this.getSelectedDimensions(),grouping:this.grouping,pivoting:this.isPivotActive(),crossFiltering:this.crossFiltering,valueCols:this.getSelectedValueCols(),startRow:c,endRow:h,isScatter:["scatter","bubble"].includes(this.chartType)},{chartData:f,colNames:S,groupChartData:w}=this.datasource.getData(g);this.chartData=f,this.groupChartData=w,this.colNames=S,this.categoryAxisType=void 0}isGrouping(){let c=this.gos.get("treeData"),h=c?null:this.chartColSvc.getRowGroupColumns(),g=c||h&&h.length>0,f=this.getSelectedDimensions().map(({colId:M})=>M),w=this.chartColSvc.getGroupDisplayColumns().map(M=>M.getColId()).some(M=>f.includes(M));return!!g&&w}getSelectedValueCols(){return this.valueColState.filter(c=>c.selected).map(c=>c.column)}getSelectedDimensions(){return this.dimensionColState.filter(c=>c.selected)}getColDisplayName(c,h){return this.chartColSvc.getColDisplayName(c,h)}isPivotMode(){return this.chartColSvc.isPivotMode()}getChartDataType(c){let h=this.chartColSvc.getColumn(c);return h?h.getColDef().chartDataType:void 0}isPivotActive(){return this.chartColSvc.isPivotActive()}createCellRange(c,...h){return{id:this.chartId,startRow:this.referenceCellRange.startRow,endRow:this.referenceCellRange.endRow,columns:h,startColumn:c===E.CellRangeType.DIMENSION||this.referenceCellRange.startColumn==null?h[0]:this.referenceCellRange.startColumn,type:c}}getAllColumnsFromRanges(){if(this.pivotChart)return new Set(this.chartColSvc.getAllDisplayedColumns());let c=this.dimensionCellRange||this.valueCellRange?[]:this.referenceCellRange.columns;return this.dimensionCellRange&&c.push(...this.dimensionCellRange.columns),this.valueCellRange&&c.push(...this.valueCellRange.columns),new Set(c)}getRowIndexes(){let c=0,h=0,{rangeSvc:g,valueCellRange:f,dimensionCellRange:S}=this,w=f||S;if(g&&w){c=g.getRangeStartRow(w).rowIndex;let M=g.getRangeEndRow(w);h=M.rowPinned==="bottom"?-1:M.rowIndex}return{startRow:c,endRow:h}}resetColumnState(){let{dimensionCols:c,valueCols:h}=this.chartColSvc.getChartColumns(),g=this.getAllColumnsFromRanges(),f=this.valueColState.length<1;this.dimensionColState=[],this.valueColState=[];let S=(0,b.isHierarchical)((0,b.getSeriesType)(this.chartType)),w=!1,M=1,P=this.suppliedCellRange.columns[0];c.forEach(j=>{let Y=j.getColId()==="ag-Grid-AutoColumn",J=!1;this.crossFiltering&&this.aggFunc?P.getColId()===j.getColId()&&(J=!0):J=Y?!0:(!w||S)&&g.has(j),this.dimensionColState.push({column:j,colId:j.getColId(),displayName:this.getColDisplayName(j),selected:J,order:M++}),J&&(w=!0)});let O={colId:p.DEFAULT_CHART_CATEGORY,displayName:this.chartTranslation.translate("defaultCategory"),selected:!w,order:0};this.dimensionColState.unshift(O);let G=this.referenceCellRange.columns.filter(j=>h.has(j));h.forEach(j=>{f&&this.referenceCellRange.columns.includes(j)&&(j=G.shift()),this.valueColState.push({column:j,colId:j.getColId(),displayName:this.getColDisplayName(j),selected:g.has(j),order:M++})})}updateColumnState(c,h){let g=G=>G.colId===c.colId,{dimensionColState:f,valueColState:S}=this,w=f.find(g),M=S.find(g);if(w)if((0,b.isHierarchical)((0,b.getSeriesType)(this.chartType)))w.selected=c.selected;else{let j=c.selected?w:f.filter(Y=>Y!==w).find(({selected:Y})=>Y);f.forEach(Y=>Y.selected=Y===j)}else M&&(M.selected=c.selected);let P=[...f,...S],O=[];h||(P.forEach((G,j)=>{j===c.order&&O.push(c.colId),G.colId!==c.colId&&O.push(G.colId)}),P.forEach(G=>{let j=O.indexOf(G.colId);G.order=j>=0?O.indexOf(G.colId):P.length-1})),this.reorderColState()}reorderColState(){let c=(h,g)=>h.order-g.order;this.dimensionColState.sort(c),this.valueColState.sort(c)}setDimensionCellRange(c,h,g){this.dimensionCellRange=void 0;let f=(0,b.isHierarchical)((0,b.getSeriesType)(this.chartType));if(!g&&!this.dimensionColState.length){let P=new Array;c.forEach(O=>{P.length>0&&!f||!h.has(O)||P.push(O)}),P.length>0&&(this.dimensionCellRange=this.createCellRange(E.CellRangeType.DIMENSION,...P));return}let S=g?[g]:[];if(this.crossFiltering&&this.aggFunc){let P=this.suppliedCellRange.columns[0];S=this.dimensionColState.filter(O=>O.colId===P.getColId())}else(f||S.length===0||S.some(({column:P})=>!P||!c.has(P)))&&(S=this.dimensionColState.filter(P=>P.selected));let w=S.length===1?S[0].colId===p.DEFAULT_CHART_CATEGORY:!1,M=S.map(({column:P})=>P).filter(P=>P!=null);M.length>0&&!w&&(this.dimensionCellRange=this.createCellRange(E.CellRangeType.DIMENSION,...M))}setValueCellRange(c,h,g){this.valueCellRange=void 0;let f=[],S=(0,b.getMaxNumSeries)(this.chartType),w=0;if(c.forEach(M=>{g?(S==null||w<S)&&h.has(M)&&(f.push(M),w++):this.valueColState.some(P=>P.selected&&P.colId===M.getColId())&&f.push(M)}),f.length>0){let M=[];this.valueColState.length>0?M=this.valueColState.map(P=>P.colId):h.forEach(P=>M.push(P.getColId())),f.sort((P,O)=>M.indexOf(P.getColId())-M.indexOf(O.getColId())),this.valueCellRange=this.createCellRange(E.CellRangeType.VALUE,...f)}}resetCellRanges(c,h){if(!c&&!h)return;let{dimensionCols:g,valueCols:f}=this.chartColSvc.getChartColumns(),S=this.getAllColumnsFromRanges();c&&this.setDimensionCellRange(g,S),h&&this.setValueCellRange(f,S)}updateSelectedDimensions(c){let h=new Set(c.map(f=>f.getColId()));if((0,b.isHierarchical)((0,b.getSeriesType)(this.chartType))){let f=this.dimensionColState.filter(w=>h.has(w.colId)),S=new Set(f.map(w=>w.colId));this.dimensionColState=this.dimensionColState.map(w=>He(ge({},w),{selected:S.has(w.colId)}))}else{let S=(this.dimensionColState.find(w=>h.has(w.colId))||this.dimensionColState[0]).colId;this.dimensionColState=this.dimensionColState.map(w=>He(ge({},w),{selected:w.colId===S}))}}syncDimensionCellRange(){let c=this.getSelectedDimensions();if(c.length===0)return;let h=c.map(({column:g})=>g).filter(g=>g!=null);h.length>0&&(this.dimensionCellRange=this.createCellRange(E.CellRangeType.DIMENSION,...h))}isComboChart(c){return(0,b.isComboChart)(c!=null?c:this.chartType)}}p.ChartDataModel=d},2474:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ComboChartModel=void 0;let E=A(6624),z=new Set(["line","groupedColumn","stackedColumn","area","stackedArea"]);class T extends E.BeanStub{constructor(C){var d;super(),this.suppressComboChartWarnings=!1,this.chartDataModel=C,this.seriesChartTypes=(d=C.params.seriesChartTypes)!=null?d:[]}postConstruct(){this.initComboCharts()}update(C){this.seriesChartTypes=C!=null?C:this.seriesChartTypes,this.initComboCharts(),this.updateSeriesChartTypes()}initComboCharts(){let C=this.seriesChartTypes&&this.seriesChartTypes.length>0;(this.chartDataModel.chartType==="customCombo"||C)&&(this.chartDataModel.chartType="customCombo",this.savedCustomSeriesChartTypes=this.seriesChartTypes||[])}updateSeriesChartTypes(){if(this.chartDataModel.isComboChart()){if(this.seriesChartTypes=this.seriesChartTypes.map(C=>{let d=["groupedColumn","stackedColumn","stackedArea"].includes(C.chartType);return C.secondaryAxis=d?!1:C.secondaryAxis,C}),this.chartDataModel.chartType==="customCombo"){this.updateSeriesChartTypesForCustomCombo();return}this.updateChartSeriesTypesForBuiltInCombos()}}updateSeriesChartTypesForCustomCombo(){!(this.seriesChartTypes&&this.seriesChartTypes.length>0)&&!this.suppressComboChartWarnings&&(0,E._warn)(150),this.seriesChartTypes=this.seriesChartTypes.map(c=>(z.has(c.chartType)||((0,E._warn)(151,{chartType:c.chartType}),c.chartType="line"),c));let d=c=>{(!this.savedCustomSeriesChartTypes||this.savedCustomSeriesChartTypes.length===0)&&(this.savedCustomSeriesChartTypes=this.seriesChartTypes);let h=this.savedCustomSeriesChartTypes.find(g=>g.colId===c.colId);return h||(c.selected&&!this.suppressComboChartWarnings&&(0,E._warn)(152,{colId:c.colId}),{colId:c.colId,chartType:"line",secondaryAxis:!1})},s=this.chartDataModel.valueColState.map(d);this.seriesChartTypes=s,this.savedCustomSeriesChartTypes=s,this.suppressComboChartWarnings=!0}updateChartSeriesTypesForBuiltInCombos(){let{chartType:C,valueColState:d}=this.chartDataModel,s=C==="columnLineCombo"?"groupedColumn":"stackedArea",c=C==="columnLineCombo"?"line":"groupedColumn",h=d.filter(f=>f.selected),g=Math.ceil(h.length/2);this.seriesChartTypes=h.map((f,S)=>{let w=S>=g?c:s;return{colId:f.colId,chartType:w,secondaryAxis:!1}})}}p.ComboChartModel=T},8919:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartColumnService=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="chartColSvc",this.valueColsWithoutSeriesType=new Set}wireBeans(b){this.colModel=b.colModel,this.colNames=b.colNames,this.valueSvc=b.valueSvc}postConstruct(){let b=()=>this.valueColsWithoutSeriesType.clear();this.addManagedEventListeners({newColumnsLoaded:b,rowDataUpdated:b})}getColumn(b){return this.colModel.getColDefCol(b)}getAllDisplayedColumns(){return this.beans.visibleCols.allCols}getColDisplayName(b,C){let d="chart",s=this.colNames.getDisplayNameForColumn(b,d);if(C){let c=[s],h=g=>{if(!g)return;let f=this.colNames.getDisplayNameForColumnGroup(g,d);f!=null&&f.length&&(c.unshift(f),h(g.getParent()))};return h(b.getParent()),c.join(" - ")}return s}getRowGroupColumns(){var b,C;return(C=(b=this.beans.rowGroupColsSvc)==null?void 0:b.columns)!=null?C:[]}getGroupDisplayColumns(){var b,C;return(C=(b=this.beans.showRowGroupCols)==null?void 0:b.getShowRowGroupCols())!=null?C:[]}isPivotMode(){return this.colModel.isPivotMode()}isPivotActive(){return this.colModel.isPivotActive()}getChartColumns(){let b=this.colModel.getCols(),C=new Set,d=new Set;return b.forEach(s=>{let c=s.getColDef(),h=c.chartDataType;if(h)switch(h){case"category":case"time":C.add(s);return;case"series":d.add(s);return;case"excluded":return;default:(0,E._warn)(153,{chartDataType:h});break}if(c.colId==="ag-Grid-AutoColumn"){C.add(s);return}if(!s.isPrimary()){d.add(s);return}(this.isInferredValueCol(s)?d:C).add(s)}),{dimensionCols:C,valueCols:d}}isInferredValueCol(b){let C=b.getColId();if(C==="ag-Grid-AutoColumn")return!1;let d=(0,E._getRowNode)(this.beans,{rowIndex:0,rowPinned:null});if(!d)return this.valueColsWithoutSeriesType.has(C);let s=this.valueSvc.getValue(b,d);s==null&&(s=this.extractLeafData(d,b)),s!=null&&typeof s.toNumber=="function"&&(s=s.toNumber());let c=typeof s=="number";return c&&this.valueColsWithoutSeriesType.add(C),c}extractLeafData(b,C){if(!b.allLeafChildren)return null;for(let d=0;d<b.allLeafChildren.length;d++){let s=b.allLeafChildren[d],c=this.valueSvc.getValue(C,s);if(c!=null)return c}return null}destroy(){this.valueColsWithoutSeriesType.clear(),super.destroy()}}p.ChartColumnService=z},8769:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartCrossFilterService=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="chartCrossFilterSvc"}wireBeans(b){this.colModel=b.colModel,this.valueSvc=b.valueSvc,this.filterManager=b.filterManager,(0,E._isClientSideRowModel)(this.gos,b.rowModel)&&(this.clientSideRowModel=b.rowModel)}filter(b,C=!1){var c,h;let d=(h=(c=this.filterManager)==null?void 0:c.getFilterModel())!=null?h:{};if(C){this.resetFilters(d);return}let s=this.extractFilterColId(b);this.isValidColumnFilter(s)?this.updateFilters(d,b,s):(0,E._warn)(154,{colId:s})}resetFilters(b){var d,s;Object.keys(b).length>0&&((d=this.filterManager)==null||d.setFilterModel(null),(s=this.filterManager)==null||s.onFilterChanged({source:"api"}))}updateFilters(b,C,d){var g;let s=this.extractFilterColId(C),c=C.datum[s];if(c===void 0)return;let h=c.toString();if(C.event.metaKey||C.event.ctrlKey){let f=this.getCurrentGridValuesForCategory(d),S=f.includes(h),w;S?w=f.filter(M=>M!==h):(w=f,w.push(h)),b[d]=this.getUpdatedFilterModel(d,w)}else{let f=[h];b={[d]:this.getUpdatedFilterModel(d,f)}}(g=this.filterManager)==null||g.setFilterModel(b)}getUpdatedFilterModel(b,C){return this.getColumnFilterType(b)==="agMultiColumnFilter"?{filterType:"multi",filterModels:[null,{filterType:"set",values:C}]}:{filterType:"set",values:C}}getCurrentGridValuesForCategory(b){var s;let C=[],d=this.getColumnById(b);return(s=this.clientSideRowModel)==null||s.forEachNodeAfterFilter(c=>{if(d&&!c.group){let h=this.valueSvc.getValue(d,c)+"";C.includes(h)||C.push(h)}}),C}extractFilterColId(b){return b.xKey||b.calloutLabelKey}isValidColumnFilter(b){b.indexOf("-filtered-out")&&(b=b.replace("-filtered-out",""));let C=this.getColumnFilterType(b);return typeof C=="boolean"?C:["agSetColumnFilter","agMultiColumnFilter"].includes(C)}getColumnFilterType(b){let C=this.getColumnById(b);if(C)return C.getColDef().filter}getColumnById(b){return this.colModel.getCol(b)}}p.ChartCrossFilterService=z},7492:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartMenuService=p.CHART_TOOL_PANEL_MENU_OPTIONS=void 0;let E=A(6624),z=["chartUnlink","chartLink","chartDownload","chartMenu"];p.CHART_TOOL_PANEL_MENU_OPTIONS={settings:"chartSettings",data:"chartData",format:"chartFormat"};class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="chartMenuSvc"}wireBeans(C){this.advSettingsMenuFactory=C.advSettingsMenuFactory}downloadChart(C,d,s,c){C.chartController.getChartProxy().downloadChart(d,s,c)}toggleLinked(C){C.chartController.detachChartRange()}openAdvancedSettings(C,d){var s;(s=this.advSettingsMenuFactory)==null||s.showMenu(C,d)}hideAdvancedSettings(){var C;(C=this.advSettingsMenuFactory)==null||C.hideMenu()}getChartToolbarOptions(){let C=["chartMenu"],d=this.gos.getCallback("getChartToolbarItems");return d?d({defaultItems:C}).filter(c=>z.includes(c)?!0:((0,E._warn)(155,{option:c}),!1)):C}getChartToolPanels(C){var f;let d=this.gos.get("chartToolPanelsDef"),s=(f=d==null?void 0:d.panels)==null?void 0:f.map(S=>{let w=p.CHART_TOOL_PANEL_MENU_OPTIONS[S];return w||(0,E._warn)(156,{panel:S}),w}).filter(S=>!!S),c=s!=null?s:Object.values(p.CHART_TOOL_PANEL_MENU_OPTIONS);C.isPivotChart()&&(c=c.filter(S=>S!=="chartData"));let h=d==null?void 0:d.defaultToolPanel,g=h&&p.CHART_TOOL_PANEL_MENU_OPTIONS[h]||c[0];return{panels:c,defaultPanel:g}}doesChartToolbarExist(){return this.getChartToolbarOptions().length>0}doChartToolPanelsExist(C){let{panels:d}=this.getChartToolPanels(C);return d.length>0}}p.ChartMenuService=T},6297:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartOptionsService=void 0;let E=A(6624),z=A(2210),T=A(4237),b=["number","category","time","grouped-category"],C=["angle-category","angle-number","radius-category","radius-number"],d=[...b,...C];class s extends E.BeanStub{constructor(g){super(),this.chartController=g}getChartThemeOverridesProxy(){return{getValue:g=>this.getChartOption(g),setValue:(g,f)=>this.setChartThemeOverrides([{expression:g,value:f}]),setValues:g=>this.setChartThemeOverrides(g)}}getAxisThemeOverridesProxy(){return{getValue:g=>this.getAxisProperty(g),setValue:(g,f)=>this.setAxisThemeOverrides([{expression:g,value:f}]),setValues:g=>this.setAxisThemeOverrides(g)}}getCartesianAxisOptionsProxy(g){return{getValue:f=>this.getCartesianAxisProperty(g,f),setValue:(f,S)=>this.setCartesianAxisOptions(g,[{expression:f,value:S}]),setValues:f=>this.setCartesianAxisOptions(g,f)}}getCartesianAxisThemeOverridesProxy(g){return{getValue:f=>this.getCartesianAxisProperty(g,f),setValue:(f,S)=>this.setCartesianAxisThemeOverrides(g,[{expression:f,value:S}]),setValues:f=>this.setCartesianAxisThemeOverrides(g,f)}}getCartesianAxisAppliedThemeOverridesProxy(g){return{getValue:f=>this.getCartesianAxisThemeOverride(g,f==="*"?null:f),setValue:(f,S)=>this.setCartesianAxisThemeOverrides(g,[{expression:f==="*"?null:f,value:S}]),setValues:f=>this.setCartesianAxisThemeOverrides(g,f)}}getSeriesOptionsProxy(g){return{getValue:(f,S)=>this.getSeriesOption(g(),f,S),setValue:(f,S)=>this.setSeriesOptions(g(),[{expression:f,value:S}]),setValues:f=>this.setSeriesOptions(g(),f)}}getPersistedChartThemeOverrides(g,f,S,w){let M=this.getRetainedChartThemeOverrideKeys(S,w),P=this.getRetainedChartAxisThemeOverrideKeys(null,S,w),O=this.createChartOptions();for(let G of M){let j=this.retrieveChartOptionsThemeOverride(g,S,G);j!==void 0&&this.assignChartOptionsThemeOverride(O,w,G,j)}return f&&this.assignPersistedAxisOverrides({existingAxes:f,retainedChartAxisThemeOverrideKeys:P,existingChartOptions:g,targetChartOptions:O,existingChartType:S,targetChartType:w}),O.theme.overrides}assignPersistedAxisOverrides(g){let{existingAxes:f,retainedChartAxisThemeOverrideKeys:S,existingChartOptions:w,targetChartOptions:M,existingChartType:P,targetChartType:O}=g;for(let{expression:G,targetAxisTypes:j}of S)for(let Y of f.map(J=>J.type)){let J=this.retrieveChartOptionsThemeOverride(w,P,["axes",Y,G].join("."));if(J!==void 0)for(let ne of j)this.assignChartOptionsThemeOverride(M,O,["axes",ne,G].join("."),J)}}getRetainedChartThemeOverrideKeys(g,f){let S=["animation"],w=["zoom","navigator"],M=((P,O)=>{let G=new Array;return(0,T.isCartesian)((0,T.getSeriesType)(P))&&(0,T.isCartesian)((0,T.getSeriesType)(O))&&G.push(...w),G})(g,f);return[...S,...M]}getRetainedChartAxisThemeOverrideKeys(g,f,S){return(0,T.isCartesian)((0,T.getSeriesType)(f))&&(0,T.isCartesian)((0,T.getSeriesType)(S))?this.getRetainedCartesianAxisThemeOverrideKeys(g).map(M=>({expression:M,targetAxisTypes:b})):[]}getRetainedCartesianAxisThemeOverrideKeys(g){let f=g==="xAxis"?["",".top",".bottom"]:g==="yAxis"?["",".left",".right"]:["",".left",".right",".top",".bottom"],S=["crosshair"],w=new Array;for(let M of S)for(let P of f)w.push(`${M}${P}`);return w}getChartOption(g){return(0,z.get)(this.getChart(),g,void 0)}setChartThemeOverrides(g){let f=this.getChartType(),S=this.createChartOptions();for(let{expression:w,value:M}of g)this.assignChartOptionsThemeOverride(S,f,w,M);this.applyChartOptions(S)}applyChartOptions(g,f){if(Object.keys(g).length===0)return;this.updateChart(g),!(f!=null&&f.silent)&&this.raiseChartOptionsChangedEvent()}awaitChartOptionUpdate(g){this.chartController.getChartProxy().getChart().waitForUpdate().then(()=>g()).catch(S=>(0,E._error)(108,{e:S}))}getAxisProperty(g){var f;return(0,z.get)((f=this.getChart().axes)==null?void 0:f[0],g,void 0)}setAxisThemeOverrides(g){var M;let f=this.getChart(),S=this.getChartType(),w=this.createChartOptions();for(let{expression:P,value:O}of g){let G=(M=f.axes)==null?void 0:M.filter(j=>{let Y=P.split("."),J=j;for(let ne of Y){if(!(ne in J))return!1;J=J[ne]}return!0});if(G)for(let j of G)this.isValidAxisType(j)&&this.assignChartAxisThemeOverride(w,S,j.type,null,P,O)}this.applyChartOptions(w)}getCartesianAxisProperty(g,f){let S=this.getChartAxes(),w=this.getCartesianAxis(S,g);return(0,z.get)(w,f,void 0)}getCartesianAxisThemeOverride(g,f){let S=this.getChartAxes(),w=this.getCartesianAxis(S,g);if(!w||!this.isValidAxisType(w))return;let M=this.getChartType(),P=this.getChart().getOptions();return this.retrieveChartAxisThemeOverride(P,M,w.type,g==="yAxis"?["left","right"]:["bottom","top"],f)}setCartesianAxisThemeOverrides(g,f){let S=this.getChartAxes(),w=this.getCartesianAxis(S,g);if(!w||!this.isValidAxisType(w))return;let M=this.getChartType(),P=this.createChartOptions();for(let{expression:O,value:G}of f)this.assignChartAxisThemeOverride(P,M,w.type,g==="yAxis"?["left","right"]:["bottom","top"],O,G);this.applyChartOptions(P)}setCartesianAxisOptions(g,f){this.updateCartesianAxisOptions(g,(S,w,M)=>{let P=w.indexOf(M);for(let{expression:O,value:G}of f)this.assignChartOption(S,`axes.${P}.${O}`,G)})}updateCartesianAxisOptions(g,f){let S=this.getChart().getOptions(),w="axes"in S?S.axes:void 0;if(!S||!w)return;let M=this.getChartAxes(),P=this.getCartesianAxis(M,g);if(!P)return;let O=this.createChartOptions();O.axes=w,f(O,M,P,S),this.applyChartOptions(O)}setCartesianCategoryAxisType(g,f){this.updateCartesianAxisOptions(g,(S,w,M,P)=>{let O=this.getChartType();this.assignPersistedAxisOverrides({existingAxes:[M],retainedChartAxisThemeOverrideKeys:this.getRetainedChartAxisThemeOverrideKeys(g,O,O),existingChartOptions:P,targetChartOptions:S,existingChartType:O,targetChartType:O}),this.assignChartOption(S,"axes.0.type",f),this.chartController.setCategoryAxisType(f)})}getCartesianAxis(g,f){if(!(g.length<2))switch(f){case"xAxis":return g[0].direction==="x"?g[0]:g[1];case"yAxis":return g[1].direction==="y"?g[1]:g[0]}}getSeriesOption(g,f,S){let w=this.getChart().series.find(M=>c(g,M));return(0,z.get)(S?w:w==null?void 0:w.properties.toJson(),f,void 0)}setSeriesOptions(g,f){let S=this.createChartOptions();for(let{expression:w,value:M}of f)this.assignChartOptionsSeriesThemeOverride(S,g,`series.${w}`,M);this.applyChartOptions(S)}getPairedMode(){return this.chartController.getChartProxy().isPaired()}setPairedMode(g){this.chartController.getChartProxy().setPaired(g)}getChartAxes(){var f;return(f=this.getChart().axes)!=null?f:[]}retrieveChartAxisThemeOverride(g,f,S,w,M){if(w)for(let P of w){let O=this.retrieveChartOptionsThemeOverride(g,f,["axes",S,P,...M?[M]:[]].join("."));if(O!==void 0)return O}else return this.retrieveChartOptionsThemeOverride(g,f,["axes",S,...M?[M]:[]].join("."))}assignChartAxisThemeOverride(g,f,S,w,M,P){if(w)for(let O of w)this.assignChartOptionsThemeOverride(g,f,["axes",S,O,...M?[M]:[]].join("."),P);else this.assignChartOptionsThemeOverride(g,f,["axes",S,...M?[M]:[]].join("."),P)}isValidAxisType(g){return d.includes(g.type)}getChartType(){return this.chartController.getChartType()}getChart(){return this.chartController.getChartProxy().getChart()}updateChart(g){let f=this.chartController.getChartProxy().getChartRef();f.skipAnimations(),f.updateDelta(g)}createChartOptions(){return{theme:{overrides:{}}}}retrieveChartOptionsThemeOverride(g,f,S){let w=this.getChartThemeOverridesSeriesTypeKeys(f);for(let M of w){let P=this.retrieveChartOptionsSeriesThemeOverride(g,M,S);if(P!==void 0)return P}}assignChartOptionsThemeOverride(g,f,S,w){let M=this.getChartThemeOverridesSeriesTypeKeys(f);for(let P of M)this.assignChartOptionsSeriesThemeOverride(g,P,S,w)}retrieveChartOptionsSeriesThemeOverride(g,f,S){return this.retrieveChartOption(g,["theme","overrides",f,...S?[S]:[]].join("."))}assignChartOptionsSeriesThemeOverride(g,f,S,w){this.assignChartOption(g,["theme","overrides",f,...S?[S]:[]].join("."),w)}getChartThemeOverridesSeriesTypeKeys(g){let f=this.chartController.getChartSeriesTypes(g);return this.chartController.isComboChart()&&f.push("common"),f}retrieveChartOption(g,f){return(0,z.get)(g,f,void 0)}assignChartOption(g,f,S){(0,z.set)(g,f,S)}raiseChartOptionsChangedEvent(){let g=this.chartController.getChartModel();this.eventSvc.dispatchEvent({type:"chartOptionsChanged",chartId:g.chartId,chartType:g.chartType,chartThemeName:this.chartController.getChartThemeName(),chartOptions:g.chartOptions})}destroy(){super.destroy()}}p.ChartOptionsService=s;function c(h,g){return(0,T.isSeriesType)(h)&&g.type===h}},93:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartTranslationService=p.DEFAULT_CHART_TRANSLATIONS=void 0;let E=A(6624);p.DEFAULT_CHART_TRANSLATIONS={pivotChartTitle:"Pivot Chart",rangeChartTitle:"Range Chart",settings:"Chart",data:"Set Up",format:"Customize",categories:"Categories",defaultCategory:"(None)",series:"Series",switchCategorySeries:"Switch Category / Series",categoryValues:"Category Values",seriesLabels:"Series Labels",aggregate:"Aggregate",xyValues:"X Y Values",paired:"Paired Mode",axis:"Axis",xAxis:"Horizontal Axis",yAxis:"Vertical Axis",polarAxis:"Polar Axis",radiusAxis:"Radius Axis",navigator:"Navigator",zoom:"Zoom",animation:"Animation",crosshair:"Crosshair",color:"Color",thickness:"Thickness",preferredLength:"Preferred Length",xType:"X Type",axisType:"Axis Type",automatic:"Automatic",category:"Category",number:"Number",time:"Time",timeFormat:"Time Format",autoRotate:"Auto Rotate",labelRotation:"Rotation",circle:"Circle",polygon:"Polygon",square:"Square",cross:"Cross",diamond:"Diamond",plus:"Plus",triangle:"Triangle",heart:"Heart",orientation:"Orientation",fixed:"Fixed",parallel:"Parallel",perpendicular:"Perpendicular",radiusAxisPosition:"Position",ticks:"Ticks",gridLines:"Grid Lines",width:"Width",height:"Height",length:"Length",padding:"Padding",spacing:"Spacing",chartStyle:"Chart Style",title:"Title",chartTitles:"Titles",chartTitle:"Chart Title",chartSubtitle:"Subtitle",horizontalAxisTitle:"Horizontal Axis Title",verticalAxisTitle:"Vertical Axis Title",polarAxisTitle:"Polar Axis Title",titlePlaceholder:"Chart Title",background:"Background",font:"Font",weight:"Weight",top:"Top",right:"Right",bottom:"Bottom",left:"Left",labels:"Labels",calloutLabels:"Callout Labels",sectorLabels:"Sector Labels",positionRatio:"Position Ratio",size:"Size",shape:"Shape",minSize:"Minimum Size",maxSize:"Maximum Size",legend:"Legend",position:"Position",markerSize:"Marker Size",markerStroke:"Marker Stroke",markerPadding:"Marker Padding",itemSpacing:"Item Spacing",itemPaddingX:"Item Padding X",itemPaddingY:"Item Padding Y",layoutHorizontalSpacing:"Horizontal Spacing",layoutVerticalSpacing:"Vertical Spacing",strokeWidth:"Stroke Width",offset:"Offset",offsets:"Offsets",tooltips:"Tooltips",callout:"Callout",markers:"Markers",shadow:"Shadow",blur:"Blur",xOffset:"X Offset",yOffset:"Y Offset",lineWidth:"Line Width",lineDash:"Line Dash",lineDashOffset:"Dash Offset",scrollingZoom:"Scrolling",scrollingStep:"Scrolling Step",selectingZoom:"Selecting",durationMillis:"Duration (ms)",crosshairLabel:"Label",crosshairSnap:"Snap to Node",normal:"Normal",bold:"Bold",italic:"Italic",boldItalic:"Bold Italic",predefined:"Predefined",fillOpacity:"Fill Opacity",strokeColor:"Line Color",strokeOpacity:"Line Opacity",miniChart:"Mini-Chart",histogramBinCount:"Bin count",connectorLine:"Connector Line",seriesItems:"Series Items",seriesItemType:"Item Type",seriesItemPositive:"Positive",seriesItemNegative:"Negative",seriesItemLabels:"Item Labels",columnGroup:"Column",barGroup:"Bar",pieGroup:"Pie",lineGroup:"Line",scatterGroup:"X Y (Scatter)",areaGroup:"Area",polarGroup:"Polar",statisticalGroup:"Statistical",hierarchicalGroup:"Hierarchical",specializedGroup:"Specialized",combinationGroup:"Combination",groupedColumnTooltip:"Grouped",stackedColumnTooltip:"Stacked",normalizedColumnTooltip:"100% Stacked",groupedBarTooltip:"Grouped",stackedBarTooltip:"Stacked",normalizedBarTooltip:"100% Stacked",pieTooltip:"Pie",donutTooltip:"Donut",lineTooltip:"Line",stackedLineTooltip:"Stacked",normalizedLineTooltip:"100% Stacked",groupedAreaTooltip:"Area",stackedAreaTooltip:"Stacked",normalizedAreaTooltip:"100% Stacked",scatterTooltip:"Scatter",bubbleTooltip:"Bubble",histogramTooltip:"Histogram",radialColumnTooltip:"Radial Column",radialBarTooltip:"Radial Bar",radarLineTooltip:"Radar Line",radarAreaTooltip:"Radar Area",nightingaleTooltip:"Nightingale",rangeBarTooltip:"Range Bar",rangeAreaTooltip:"Range Area",boxPlotTooltip:"Box Plot",treemapTooltip:"Treemap",sunburstTooltip:"Sunburst",waterfallTooltip:"Waterfall",heatmapTooltip:"Heatmap",columnLineComboTooltip:"Column & Line",areaColumnComboTooltip:"Area & Column",customComboTooltip:"Custom Combination",innerRadius:"Inner Radius",startAngle:"Start Angle",endAngle:"End Angle",reverseDirection:"Reverse Direction",groupPadding:"Group Padding",seriesPadding:"Series Padding",tile:"Tile",whisker:"Whisker",cap:"Cap",capLengthRatio:"Length Ratio",labelPlacement:"Placement",inside:"Inside",outside:"Outside",noDataToChart:"No data available to be charted.",pivotChartRequiresPivotMode:"Pivot Chart requires Pivot Mode enabled.",chartSettingsToolbarTooltip:"Menu",chartLinkToolbarTooltip:"Linked to Grid",chartUnlinkToolbarTooltip:"Unlinked from Grid",chartDownloadToolbarTooltip:"Download Chart",chartMenuToolbarTooltip:"Menu",chartEdit:"Edit Chart",chartAdvancedSettings:"Advanced Settings",chartLink:"Link to Grid",chartUnlink:"Unlink from Grid",chartDownload:"Download Chart",histogramFrequency:"Frequency",seriesChartType:"Series Chart Type",seriesType:"Series Type",secondaryAxis:"Secondary Axis",seriesAdd:"Add a series",categoryAdd:"Add a category",bar:"Bar",column:"Column",histogram:"Histogram",advancedSettings:"Advanced Settings",direction:"Direction",horizontal:"Horizontal",vertical:"Vertical",seriesGroupType:"Group Type",groupedSeriesGroupType:"Grouped",stackedSeriesGroupType:"Stacked",normalizedSeriesGroupType:"100% Stacked",legendEnabled:"Enabled",invalidColor:"Color value is invalid",groupedColumnFull:"Grouped Column",stackedColumnFull:"Stacked Column",normalizedColumnFull:"100% Stacked Column",groupedBarFull:"Grouped Bar",stackedBarFull:"Stacked Bar",normalizedBarFull:"100% Stacked Bar",stackedAreaFull:"Stacked Area",normalizedAreaFull:"100% Stacked Area",stackedLineFull:"Stacked Line",normalizedLineFull:"100% Stacked Line",customCombo:"Custom Combination",groupedColumn:"Grouped",stackedColumn:"Stacked",pie:"Pie",donut:"Donut",line:"Line",scatter:"Scatter",bubble:"Bubble",area:"Area",stackedArea:"Stacked",radarLine:"Radar Line",radarArea:"Radar Area",nightingale:"Nightingale",radialColumn:"Radial Column",radialBar:"Radial Bar",boxPlot:"Box Plot",rangeBar:"Range Bar",rangeArea:"Range Area",treemap:"Treemap",sunburst:"Sunburst",waterfall:"Waterfall",heatmap:"Heatmap",columnLineCombo:"Column & Line",AreaColumnCombo:"Area & Column",ariaChartMenuClose:"Close Chart Edit Menu",ariaChartSelected:"Selected",group:"Group",timeFormatSlashesDDMMYYYY:"DD/MM/YYYY",timeFormatSlashesMMDDYYYY:"MM/DD/YYYY",timeFormatSlashesDDMMYY:"DD/MM/YY",timeFormatSlashesMMDDYY:"MM/DD/YY",timeFormatDotsDDMYY:"DD.M.YY",timeFormatDotsMDDYY:"M.DD.YY",timeFormatDashesYYYYMMDD:"YYYY-MM-DD",timeFormatSpacesDDMMMMYYYY:"DD MMMM YYYY",timeFormatHHMMSS:"HH:MM:SS",timeFormatHHMMSSAmPm:"HH:MM:SS AM/PM",sum:"Sum",first:"First",last:"Last",min:"Min",max:"Max",count:"Count",avg:"Average"};class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="chartTranslation"}translate(b){let C=this.getLocaleTextFunc(),d=p.DEFAULT_CHART_TRANSLATIONS[b];return C(b,d)}}p.ChartTranslationService=z},1480:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.flatMap=p.partition=void 0;function A(z,T){return z.reduce((b,C)=>{let d=T(C),s=b.get(d);return b.set(d,s?[...s,C]:[C])},new Map)}p.partition=A;function E(z,T){return z.reduce((b,C,d,s)=>b.concat(T(C,d,s)),new Array)}p.flatMap=E},2753:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getLegacyAxisType=p.ALL_AXIS_TYPES=void 0,p.ALL_AXIS_TYPES=["number","category","grouped-category","log","time"];function A(E){switch(E){case"bar":case"stackedBar":case"normalizedBar":return["number","category"];case"groupedBar":return["number","grouped-category"];case"column":case"stackedColumn":case"normalizedColumn":case"line":case"stackedLine":case"normalizedLine":case"area":case"stackedArea":case"normalizedArea":case"histogram":return["category","number"];case"groupedColumn":return["grouped-category","number"];case"scatter":case"bubble":return["number","number"];default:return}}p.getLegacyAxisType=A},8889:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.validateCreateParams=p.validateUpdateParams=void 0;let E=A(6624),z=A(4237),T=Fe=>We=>We==null?!0:Fe(We),b=Fe=>typeof Fe=="string",C=Fe=>typeof Fe=="boolean",d=Fe=>typeof Fe=="object",s=(Fe,We)=>it=>`AG Grid - unable to update chart as invalid params supplied:  \`${Fe}: ${it}\`, expected ${We}.`,c=Fe=>`${Fe} is not supported in AG Charts Community ('ag-charts-enterprise' hasn't been loaded). See https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/ for more details.`,h=["doughnut"],g=["type","chartId","chartType","chartThemeName","chartThemeOverrides","unlinkChart"];function f(Fe){return!!(0,z.getSeriesTypeIfExists)(Fe)||(0,z.isComboChart)(Fe)}function S(Fe){return h.includes(Fe)}let w=T(Fe=>{if(f(Fe))return!0;if(S(Fe)){let We=(0,z.getCanonicalChartType)(Fe);return(0,E._warnOnce)(`The chart type '${Fe}' has been deprecated. Please use '${We}' instead.`),We}return!1}),M=T(Fe=>typeof Fe=="object"),P=T(Fe=>typeof Fe=="object"),O=T(Fe=>typeof Fe=="string"||typeof Fe=="function"),G=Fe=>({property:"chartType",validationFn:T(We=>Fe||!We||!(0,z.isEnterpriseChartType)(We)),warnMessage:We=>c(`The '${We}' chart type`)}),j=Fe=>({property:"switchCategorySeries",validationFn:T(We=>{if(!We||Fe)return!0}),warnMessage:()=>c("'switchCategorySeries' has been ignored as it"),warnIfFixed:!0}),Y=()=>[{property:"chartId",validationFn:b,warnMessage:s("chartId","string")},{property:"chartType",validationFn:w,warnMessage:s("chartType","ChartType")},{property:"chartThemeName",validationFn:b,warnMessage:s("chartThemeName","string")},{property:"chartThemeOverrides",validationFn:M,warnMessage:s("chartThemeOverrides","AgChartThemeOverrides")},{property:"unlinkChart",validationFn:C,warnMessage:s("unlinkChart","boolean")}],J=Fe=>[{property:"cellRange",validationFn:P,warnMessage:s("cellRange","ChartParamsCellRange")},{property:"suppressChartRanges",validationFn:C,warnMessage:s("suppressChartRanges","boolean")},{property:"aggFunc",validationFn:O,warnMessage:s("aggFunc","string or IAggFunc")},j(Fe)];function ne(Fe,We){switch(Fe.type){case"rangeChartUpdate":return fe(Fe,We);case"pivotChartUpdate":return xe(Fe);case"crossFilterChartUpdate":return Le(Fe,We);default:return(0,E._warnOnce)(`Invalid value supplied for 'type': ${Fe.type}. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.`),!1}}p.validateUpdateParams=ne;function ce(Fe,We){return _e(Fe,[G(We),j(We)])}p.validateCreateParams=ce;function fe(Fe,We){let it=[...Y(),G(We),...J(We),{property:"seriesChartTypes",validationFn:tt=>tt===void 0||Array.isArray(tt)&&tt.every(d),warnMessage:s("seriesChartTypes","Array of SeriesChartType")}];return _e(Fe,it,[...g,"cellRange","suppressChartRanges","switchCategorySeries","aggFunc","seriesChartTypes","seriesGroupType"],"UpdateRangeChartParams")}function xe(Fe){let We=[...Y()];return _e(Fe,We,[...g],"UpdatePivotChartParams")}function Le(Fe,We){let it=[...Y(),...J(We)];return _e(Fe,it,[...g,"cellRange","suppressChartRanges","aggFunc"],"UpdateCrossFilterChartParams")}function _e(Fe,We,it,tt){let ot;for(let st of We){let{property:St,validationFn:Xe,warnMessage:Ke,warnIfFixed:Ye}=st;if(St in Fe){let Ze=Fe[St],Pe=Xe(Ze);if(Pe===!0)continue;if(Pe===!1)return(0,E._warnOnce)(Ke(Ze)),!1;ot=ot||ge({},Fe),ot[St]=Pe,Ye&&(0,E._warnOnce)(Ke(Ze))}}if(it){for(let st of Object.keys(Fe))if(!it.includes(st))return(0,E._warnOnce)(`Unexpected property supplied. ${tt} does not contain: \`${st}\`.`),!1}return ot||!0}},3610:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.hexToRGBA=void 0;function A(E,z){let T=parseInt(E.slice(1,3),16),b=parseInt(E.slice(3,5),16),C=parseInt(E.slice(5,7),16);return z?`rgba(${T}, ${b}, ${C}, ${z})`:`rgba(${T}, ${b}, ${C})`}p.hexToRGBA=A},9687:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.deproxy=void 0;function A(E){return E.chart!=null?E.chart:E}p.deproxy=A},2210:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.set=p.get=void 0;function A(z,T,b){if(z==null)return b;let C=T.split("."),d=z;for(;C.length>1;)if(d=d[C.shift()],d==null)return b;let s=d[C[0]];return s!=null?s:b}p.get=A;function E(z,T,b){if(z==null)return;let C=T.split("."),d=z;C.forEach((s,c)=>{d[s]||(d[s]={}),c<C.length-1&&(d=d[s])}),d[C[C.length-1]]=b}p.set=E},4237:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getFullChartNameTranslationKey=p.canSwitchDirection=p.supportsInvertedCategorySeries=p.getMaxNumSeries=p.getMaxNumCategories=p.isPieChartSeries=p.getSeriesType=p.getSeriesTypeIfExists=p.getCanonicalChartType=p.isHierarchical=p.isRadial=p.isPolar=p.isCartesian=p.isStacked=p.isEnterpriseChartType=p.isComboChart=p.isSeriesType=p.SERIES_GROUP_TYPES=void 0;let A={column:"bar",groupedColumn:"bar",stackedColumn:"bar",normalizedColumn:"bar",bar:"bar",groupedBar:"bar",stackedBar:"bar",normalizedBar:"bar",line:"line",stackedLine:"line",normalizedLine:"line",scatter:"scatter",bubble:"bubble",pie:"pie",donut:"donut",doughnut:"donut",area:"area",stackedArea:"area",normalizedArea:"area",histogram:"histogram",radarLine:"radar-line",radarArea:"radar-area",nightingale:"nightingale",radialColumn:"radial-column",radialBar:"radial-bar",sunburst:"sunburst",rangeBar:"range-bar",rangeArea:"range-area",boxPlot:"box-plot",treemap:"treemap",heatmap:"heatmap",waterfall:"waterfall"},E=new Set(["columnLineCombo","areaColumnCombo","customCombo"]);p.SERIES_GROUP_TYPES=["grouped","stacked","normalized"];let z={area:{isCartesian:!0,canInvert:!0},bar:{isCartesian:!0,canInvert:!0},histogram:{isCartesian:!0},line:{isCartesian:!0,canInvert:!0},pie:{isPie:!0},donut:{isPie:!0,canInvert:!0},scatter:{isCartesian:!0},bubble:{isCartesian:!0},"radial-column":{isPolar:!0,isEnterprise:!0,isRadial:!0,canInvert:!0},"radial-bar":{isPolar:!0,isEnterprise:!0,isRadial:!0,canInvert:!0},"radar-line":{isPolar:!0,isEnterprise:!0,canInvert:!0},"radar-area":{isPolar:!0,isEnterprise:!0,canInvert:!0},nightingale:{isPolar:!0,isEnterprise:!0,canInvert:!0},"range-bar":{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},"range-area":{isCartesian:!0,isEnterprise:!0},"box-plot":{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0},treemap:{isEnterprise:!0,isHierarchical:!0},sunburst:{isEnterprise:!0,isHierarchical:!0},heatmap:{isCartesian:!0,isEnterprise:!0},waterfall:{isCartesian:!0,isEnterprise:!0,canSwitchDirection:!0}};function T(fe){return!!z[fe]}p.isSeriesType=T;function b(fe){return E.has(fe)}p.isComboChart=b;function C(fe,xe){var Le;return!!((Le=z[fe])!=null&&Le[xe])}function d(fe){return C(P(fe),"isEnterprise")}p.isEnterpriseChartType=d;let s=new Set(["stackedColumn","normalizedColumn","stackedBar","normalizedBar"]);function c(fe){return s.has(fe)}p.isStacked=c;function h(fe){return C(fe,"isCartesian")}p.isCartesian=h;function g(fe){return C(fe,"isPolar")}p.isPolar=g;function f(fe){return C(fe,"isRadial")}p.isRadial=f;function S(fe){return C(fe,"isHierarchical")}p.isHierarchical=S;function w(fe){return fe==="doughnut"?"donut":fe}p.getCanonicalChartType=w;function M(fe){return A[fe]}p.getSeriesTypeIfExists=M;function P(fe){var xe;return(xe=M(fe))!=null?xe:"line"}p.getSeriesType=P;function O(fe){return C(fe,"isPie")}p.isPieChartSeries=O;function G(fe){return fe==="pie"||fe==="waterfall"||fe==="histogram"}function j(fe){return S(P(fe))?void 0:1}p.getMaxNumCategories=j;function Y(fe){return S(P(fe))?2:G(fe)?1:void 0}p.getMaxNumSeries=Y;function J(fe){return!b(fe)&&C(P(fe),"canInvert")}p.supportsInvertedCategorySeries=J;function ne(fe){return C(P(fe),"canSwitchDirection")}p.canSwitchDirection=ne;function ce(fe){switch(fe){case"groupedColumn":case"stackedColumn":case"normalizedColumn":case"groupedBar":case"stackedBar":case"normalizedBar":case"stackedLine":case"normalizedLine":case"stackedArea":case"normalizedArea":return`${fe}Full`;case"doughnut":return"donut";case"areaColumnCombo":return"AreaColumnCombo";default:return fe}}p.getFullChartNameTranslationKey=ce},6476:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.heuristicVersionDetection=p.upgradeChartModel=void 0;let E=A(6624),z=A(7205),T=A(2753),b=A(4237),C=!1;function d(Pe){let ct=Pe.version;return Pe.version==null&&(Pe.version=fe(Pe)),Pe=xe("23.0.0",Pe,s),Pe=xe("24.0.0",Pe,c),Pe=xe("25.1.0",Pe,h),Pe=xe("26.0.0",Pe,g),Pe=xe("26.1.0",Pe,f),Pe=xe("26.2.0",Pe,S),Pe=xe("28.0.0",Pe,w),Pe=xe("28.2.0",Pe,M),Pe=xe("29.0.0",Pe,P),Pe=xe("29.1.0",Pe,O),Pe=xe("29.2.0",Pe,G),Pe=xe("30.0.0",Pe,j),Pe=xe("31.0.0",Pe,Y),Pe=xe("32.0.0",Pe,J),Pe=xe("33.0.0",Pe,ne),Pe=ce(Pe),Pe=xe(z.VERSION,Pe,dt=>dt),C&&ct!==Pe.version&&console.log("AG Grid: ChartModel migration complete",{model:Pe}),Pe}p.upgradeChartModel=d;function s(Pe){return Pe=st("chartOptions.legend.item.marker.type","shape",Pe),Pe=st("chartOptions.seriesDefaults.marker.type","shape",Pe),Pe=st("chartOptions.legend.padding","spacing",Pe),Pe}function c(Pe){var ln;Pe=St("chartOptions.seriesDefaults.marker.minSize",Pe);let $t=Pe,{chartType:ct,chartPalette:dt,chartOptions:Ii}=$t,zi=Ii,{xAxis:bt,yAxis:Pt}=zi,Nt=wi(zi,["xAxis","yAxis"]),ft=wi($t,["chartType","chartPalette","chartOptions"]),Lt=(0,T.getLegacyAxisType)(ct),Vt=Lt==null?void 0:Lt.map((ha,Gn)=>ge({type:ha},Gn===0?bt:Pt));return ge({chartType:ct,chartThemeName:(ln={borneo:"ag-default",material:"ag-material",bright:"ag-vivid"}[dt])!=null?ln:"ag-default",chartOptions:He(ge({},Nt),{axes:Vt,xAxis:bt,yAxis:Pt})},ft)}function h(Pe){return Pe=st("chartOptions.seriesDefaults.label.minRequiredAngle","minAngle",Pe),Pe}function g(Pe){return Pe=Ke("chartOptions.seriesDefaults.highlightStyle",Pe,Pt=>{var Nt=Pt,{dimOpacity:dt}=Nt,bt=wi(Nt,["dimOpacity"]);return ge(ge({},bt),dt!=null?{series:{dimOpacity:dt}}:{})}),Pe=St("chart",Pe),Pe=St("chartOptions.seriesDefaults.tooltipClass",Pe),Pe=St("chartOptions.seriesDefaults.tooltipTracking",Pe),Pe=Fe("chartOptions.axes[].label.rotation",0,Pe),Pe=Fe("chartOptions.axes[].label.rotation",335,Pe),Pe}function f(Pe){let ct=Nt=>{var ft=Nt,{item:dt,series:bt}=ft,Pt=wi(ft,["item","series"]);return ge({item:ge(ge({},Pt),dt)},bt?{series:bt}:{})};return Pe=Ke("chartOptions.seriesDefaults.highlightStyle",Pe,ct),Pe=Ke("chartOptions.series[].highlightStyle",Pe,ct),Pe}function S(Pe){Pe=tt("chartOptions.seriesDefaults.fill.opacity","chartOptions.seriesDefaults.fillOpacity",Pe),Pe=tt("chartOptions.seriesDefaults.stroke.opacity","chartOptions.seriesDefaults.strokeOpacity",Pe),Pe=tt("chartOptions.seriesDefaults.stroke.width","chartOptions.seriesDefaults.strokeWidth",Pe),Pe=St("chartOptions.seriesDefaults.fill",Pe),Pe=St("chartOptions.seriesDefaults.stroke",Pe),Pe=St("chartOptions.seriesDefaults.callout.colors",Pe),Pe=St("chartOptions.xAxis",Pe),Pe=St("chartOptions.yAxis",Pe);let zi=Pe,{chartType:ct,chartOptions:ln}=zi,ha=ln,{axes:dt,series:bt,seriesDefaults:Pt}=ha,Nt=wi(ha,["axes","series","seriesDefaults"]),ft=wi(zi,["chartType","chartOptions"]),Lt=(0,b.getCanonicalChartType)(ct),Vt=(0,b.getSeriesType)(Lt),Jt=[Vt],$t={};if(!(0,b.isPieChartSeries)(Vt)){let Gn={top:{},bottom:{},left:{},right:{}},qn=dt.map(fo=>{var Yl=fo,{type:Qn}=Yl,na=wi(Yl,["type"]);return{[Qn]:ge(ge({},Gn),na)}}).reduce(Ze,{});T.ALL_AXIS_TYPES.filter(Qn=>qn[Qn]==null).forEach(Qn=>{qn[Qn]=ge({},Gn)}),$t.axes=qn}let Ii=Jt.map(Gn=>({[Gn]:ge(He(ge({},$t),{series:Pt}),Nt)})).reduce(Ze,{});return Pe=He(ge({},ft),{chartType:Lt,chartOptions:Ii}),Pe}function w(Pe){return Pe=St("chartOptions.*.title.padding",Pe),Pe=St("chartOptions.*.subtitle.padding",Pe),Pe=St("chartOptions.*.axes.*.title.padding",Pe),Pe=We("chartOptions.*.axes.*.title.enabled",!1,Pe),Pe}function M(Pe){return Pe=st("chartOptions.pie.series.callout","calloutLine",Pe),Pe=st("chartOptions.pie.series.label","calloutLabel",Pe),Pe=st("chartOptions.pie.series.labelKey","sectorLabelKey",Pe),Pe=st("chartOptions.pie.series.labelName","sectorLabelName",Pe),Pe=st("chartOptions.donut.series.callout","calloutLine",Pe),Pe=st("chartOptions.donut.series.label","calloutLabel",Pe),Pe=st("chartOptions.donut.series.labelKey","sectorLabelKey",Pe),Pe=st("chartOptions.donut.series.labelName","sectorLabelName",Pe),Pe}function P(Pe){return Pe=ot("chartOptions.scatter.series.fill","chartOptions.scatter.series.marker.fill",Pe),Pe=ot("chartOptions.scatter.series.fillOpacity","chartOptions.scatter.series.marker.fillOpacity",Pe),Pe=ot("chartOptions.scatter.series.stroke","chartOptions.scatter.series.marker.stroke",Pe),Pe=ot("chartOptions.scatter.series.strokeOpacity","chartOptions.scatter.series.marker.strokeOpacity",Pe),Pe=ot("chartOptions.scatter.series.strokeWidth","chartOptions.scatter.series.marker.strokeWidth",Pe),Pe=tt("chartOptions.scatter.series.paired","chartOptions.scatter.paired",Pe),Pe}function O(Pe){return Pe=St("chartOptions.axes[].tick.count",Pe),Pe}function G(Pe){return Pe=Ke("chartOptions.*.tooltip",Pe,Pt=>{var Nt=Pt,{tracking:dt}=Nt,bt=wi(Nt,["tracking"]);var Lt,Vt,Jt,$t;let ft=ge({},bt);return dt===!1?((Lt=ft.position)!=null||(ft.position={type:"pointer"}),(Vt=ft.range)!=null||(ft.range="nearest")):dt===!0&&((Jt=ft.position)!=null||(ft.position={type:"node"}),($t=ft.range)!=null||(ft.range="nearest")),ft}),Pe}function j(Pe){return Pe=st("chartOptions.pie.series.labelKey","sectorLabelKey",Pe),Pe=st("chartOptions.pie.series.labelName","sectorLabelName",Pe),Pe=O(Pe),Pe=G(Pe),Pe=St("chartOptions.*.series.flipXY",Pe),Pe=it("chartOptions.common.legend.enabled",!0,Pe),Pe=We("chartOptions.common.legend.position","right",Pe),Pe}function Y(Pe){let ct={"ag-pastel":"ag-sheets","ag-solar":"ag-polychroma"},dt=st("chartOptions.column","bar",Pe),bt=ct[dt.chartThemeName]||dt.chartThemeName;return He(ge({},dt),{chartThemeName:bt})}function J(Pe){return Pe=Xe("chartOptions.*.autoSize",!0,Pe,(ct,dt)=>{ct[dt]===!0||ct[dt]===!1&&(ct.minHeight=600,ct.minWidth=300),delete ct[dt]}),Pe}function ne(Pe){return Pe=St("chartOptions.*.axes.category.label.format",Pe),Pe=St("chartOptions.*.axes.category.crosshair.label.format",Pe),Pe=St("chartOptions.*.axes.angle-category.label.format",Pe),Pe=St("chartOptions.*.axes.radius-category.label.format",Pe),Pe=st("chartOptions.*.axes.*.label.padding","spacing",Pe),Pe=st("chartOptions.*.navigator.miniChart.label.padding","spacing",Pe),Pe=St("chartOptions.*.axes.*.crossLines.label.className",Pe),Pe=Xe("chartOptions.*.axes.*.crossLines.label.position",!0,Pe,(ct,dt)=>{typeof ct[dt]=="string"&&(ct[dt]=ct[dt].replace(/([A-Z])/,"-$1").toLowerCase())}),Pe=St("chartOptions.bullet",Pe),Pe=Ye("chartOptions.bar.series.label.placement",Pe,{inside:"inside-center",outside:"inside-end"}),Pe=Ye("chartOptions.waterfall.series.item.*.label.placement",Pe,{inside:"inside-center",start:"outside-start",end:"outside-end"}),Pe=St("chartOptions.*.navigator.min",Pe),Pe=St("chartOptions.*.navigator.max",Pe),Pe=St("chartOptions.*.zoom.ratioX",Pe),Pe=St("chartOptions.*.zoom.ratioY",Pe),Pe=St("chartOptions.*.zoom.rangeX",Pe),Pe=St("chartOptions.*.zoom.rangeY",Pe),Pe}function ce(Pe){return Pe=St("chartOptions.*.width",Pe),Pe=St("chartOptions.*.height",Pe),Pe=We("chartOptions.*.axes.category.label.autoRotate",!0,Pe),Pe}function fe(Pe){var Jt,$t;let ct=Pe;if(Pe.version!=null)return Pe.version;let dt=(Ii,...zi)=>Object.keys(Ii||{}).some(ln=>zi.includes(ln)),bt=ct.chartOptions,Pt=dt(bt,"seriesDefaults")?bt==null?void 0:bt.seriesDefaults:bt==null?void 0:bt[Object.keys(bt)[0]],Nt={"27.0.0":dt(ct,"seriesChartTypes"),"26.2.0":!dt(bt,"seriesDefaults"),"26.1.0":dt(Pt==null?void 0:Pt.highlightStyle,"item"),"26.0.0":dt(Pt==null?void 0:Pt.highlightStyle,"series"),"25.1.0":dt(Pt==null?void 0:Pt.label,"minAngle"),"25.0.0":dt(ct,"modelType","aggFunc","unlinkChart","suppressChartRanges")||dt(Pt,"lineDash","lineDashOffset"),"24.0.0":dt(ct,"chartThemeName","chart")||dt(bt,"series"),"23.2.0":dt(bt,"navigator"),"23.0.0":dt(($t=(Jt=bt==null?void 0:bt.legend)==null?void 0:Jt.item)==null?void 0:$t.marker,"shape"),"22.1.0":dt(ct,"chartPalette","chartType")},ft="27.1.0",Lt=Object.entries(Nt).filter(([Ii,zi])=>zi);C&&console.log("AG Grid: ChartModel migration",{heuristicVersionCandidates:Lt});let[Vt=ft]=Lt[0];return C&&console.log("AG Grid: ChartModel migration",{heuristicVersion:Vt}),Vt}p.heuristicVersionDetection=fe;function xe(Pe,ct,dt){if(_e(Pe)>_e(ct.version)){C&&console.log("AG Grid: ChartModel migration",{migratingTo:Pe});let bt=dt(ct);return bt.version=Pe,C&&console.log("AG Grid: ChartModel migration",{migratedTo:Pe,result:bt}),bt}return ct}function Le(Pe){let ct=Pe.includes("-beta")?Pe.replace(/-beta.*/,""):Pe,dt=typeof ct=="string"?ct.split(".").map(bt=>Number(bt)):[];if(dt.length!==3||dt.some(bt=>isNaN(bt)))throw new Error((0,E._errMsg)(253,{version:ct}));return{major:dt[0],minor:dt[1],patch:dt[2]}}function _e(Pe){let{major:ct,minor:dt,patch:bt}=Le(Pe);return ct*1e4+dt*100+bt}function Fe(Pe,ct,dt){return Xe(Pe,!0,dt,(bt,Pt)=>{bt[Pt]===ct&&delete bt[Pt]})}function We(Pe,ct,dt){return Xe(Pe,!1,dt,(bt,Pt)=>{bt[Pt]==null&&(bt[Pt]=ct)})}function it(Pe,ct,dt){var Nt;typeof Pe=="string"&&(Pe=Pe.split("."));let bt=Pe[0];return Pe.length>1&&(dt[bt]=it(Pe.slice(1),ct,(Nt=dt[bt])!=null?Nt:{})),Object.keys(dt).includes(bt)||(dt[bt]=ct),dt}function tt(Pe,ct,dt){let bt,Pt=!1;return dt=Xe(Pe,!0,dt,(Nt,ft)=>{Pt=!0,bt=Nt[ft],delete Nt[ft]}),Pt?Xe(ct,!1,dt,(Nt,ft)=>{Nt[ft]=bt}):dt}function ot(Pe,ct,dt){let bt,Pt=!1;return dt=Xe(Pe,!0,dt,(Nt,ft)=>{Pt=!0,bt=Nt[ft],delete Nt[ft]}),Pt?Xe(ct,!1,dt,(Nt,ft)=>{Nt[ft]===void 0&&(Nt[ft]=bt)}):dt}function st(Pe,ct,dt){return Xe(Pe,!0,dt,(bt,Pt)=>{bt[ct]=bt[Pt],delete bt[Pt]})}function St(Pe,ct){return Xe(Pe,!0,ct,(dt,bt)=>delete dt[bt])}function Xe(Pe,ct,dt,bt){let Pt=Pe instanceof Array?Pe:Pe.split("."),Nt=Pt.slice(0,Pt.length-1),ft=Pt[Pt.length-1];return Ke(Nt,dt,Lt=>{let Vt=Object.keys(Lt).includes(ft);if(ct&&!Vt)return Lt;let Jt=ge({},Lt);return bt(Jt,ft),Jt})}function Ke(Pe,ct,dt){let bt=Pe instanceof Array?Pe:Pe.split(".");if(ct=ge({},ct),bt.length===0)return dt(ct);if(bt[0].startsWith("{")){let Pt=bt[0].substring(1,bt[0].lastIndexOf("}")).split(",");for(let Nt of Pt)ct[Nt]!=null&&(ct[Nt]=Ke(bt.slice(1),ct[Nt],dt))}else if(bt[0].endsWith("[]")){let Pt=bt[0].substring(0,Pe[0].indexOf("["));ct[Pt]instanceof Array&&(ct[Pt]=ct[Pt].map(Nt=>Ke(bt.slice(1),Nt,dt)))}else if(bt[0]==="*")for(let Pt of Object.keys(ct))ct[Pt]=Ke(bt.slice(1),ct[Pt],dt);else ct[bt[0]]!=null&&(ct[bt[0]]=Ke(bt.slice(1),ct[bt[0]],dt));return ct}function Ye(Pe,ct,dt){return Xe(Pe,!0,ct,(bt,Pt)=>{var Nt;typeof bt[Pt]=="string"&&(bt[Pt]=(Nt=dt[Pt])!=null?Nt:Pt)})}let Ze=(Pe,ct)=>ge(ge({},Pe),ct)},100:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartService=void 0;let E=A(6624),z=A(7205),T=A(7760),b=A(8889),C=A(4237),d=A(6476);class s extends E.BeanStub{constructor(){super(...arguments),this.beanName="chartSvc",this.activeCharts=new Set,this.activeChartComps=new Set,this.crossFilteringContext={lastSelectedChartId:""},this.isEnterprise=()=>this.agChartsExports.isEnterprise}wireBeans(h){this.visibleCols=h.visibleCols,this.rangeSvc=h.rangeSvc,this.agChartsExports=h.agChartsExports}updateChart(h){if(this.activeChartComps.size===0){(0,E._warn)(124);return}let g=[...this.activeChartComps].find(f=>f.getChartId()===h.chartId);if(!g){(0,E._warn)(125,{chartId:h.chartId});return}g.update(h)}getChartModels(){let h=[],g=f=>He(ge({},f),{version:z.VERSION});return this.activeChartComps.forEach(f=>h.push(g(f.getChartModel()))),h}getChartRef(h){let g;return this.activeCharts.forEach(f=>{f.chartId===h&&(g=f)}),g}getChartComp(h){let g;return this.activeChartComps.forEach(f=>{f.getChartId()===h&&(g=f)}),g}getChartImageDataURL(h){let g;return this.activeChartComps.forEach(f=>{f.getChartId()===h.chartId&&(g=f.getChartImageDataURL(h.fileFormat))}),g}downloadChart(h){let g=Array.from(this.activeChartComps).find(f=>f.getChartId()===h.chartId);g==null||g.downloadChart(h.dimensions,h.fileName,h.fileFormat)}openChartToolPanel(h){let g=Array.from(this.activeChartComps).find(f=>f.getChartId()===h.chartId);g==null||g.openChartToolPanel(h.panel)}closeChartToolPanel(h){let g=Array.from(this.activeChartComps).find(f=>f.getChartId()===h);g==null||g.closeChartToolPanel()}createChartFromCurrentRange(h="groupedColumn",g){let f=this.getSelectedRange();return this.createChart({cellRange:f,chartType:h,focusDialogOnOpen:!g})}restoreChart(h,g){if(!h){(0,E._warn)(126);return}h.version!==z.VERSION&&(h=(0,d.upgradeChartModel)(h));let f,S,w,M;if(h.modelType==="pivot"?(this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"}),f=this.createCellRange(void 0,!0),S=!0,w=!0):(f=this.createCellRange(h.cellRange),M=h.chartPalette,w=h.suppressChartRanges),!!f)return this.createChart(He(ge({},h),{cellRange:f,pivotChart:S,suppressChartRanges:w,chartContainer:g,chartOptionsToRestore:h.chartOptions,chartPaletteToRestore:M}))}createRangeChart(h,g){let f=this.createCellRange(h.cellRange);if(f)return this.createChart(He(ge({},h),{cellRange:f,focusDialogOnOpen:!g}))}createPivotChart(h,g){this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"});let f=this.createCellRange(void 0,!0);if(f)return this.createChart(He(ge({},h),{cellRange:f,pivotChart:!0,suppressChartRanges:!0,focusDialogOnOpen:!g}))}createCrossFilterChart(h,g){let f=this.createCellRange(h.cellRange);if(!f)return;let w=typeof h.suppressChartRanges!="undefined"&&h.suppressChartRanges!==null?h.suppressChartRanges:!0;return this.createChart(He(ge({},h),{cellRange:f,suppressChartRanges:w,crossFiltering:!0,focusDialogOnOpen:!g}))}createChart(h){let g=(0,b.validateCreateParams)(h,this.agChartsExports.isEnterprise);if(!g)return;h=g===!0?h:g;let{chartType:f,chartContainer:S}=h,w=this.gos.getCallback("createChartContainer"),M=He(ge({},h),{chartId:this.generateId(),chartType:(0,C.getCanonicalChartType)(f),insideDialog:!(S||w),crossFilteringContext:this.crossFilteringContext,crossFilteringResetCallback:()=>this.activeChartComps.forEach(G=>G.crossFilteringReset())}),P=new T.GridChartComp(M);this.createBean(P);let O=this.createChartRef(P);return S?S.appendChild(O.chartElement):w?w(O):P.addEventListener("destroyed",()=>{this.activeChartComps.delete(P),this.activeCharts.delete(O)}),O}createChartRef(h){let g={destroyChart:()=>{this.activeCharts.has(g)&&(this.destroyBean(h),this.activeChartComps.delete(h),this.activeCharts.delete(g))},focusChart:()=>{(0,E._focusInto)(h.getGui())},chartElement:h.getGui(),chart:h.getUnderlyingChart(),chartId:h.getChartModel().chartId};return this.activeCharts.add(g),this.activeChartComps.add(h),g}getSelectedRange(){var g,f;let h=(f=(g=this.rangeSvc)==null?void 0:g.getCellRanges())!=null?f:[];return h.length>0?h[0]:{columns:[]}}generateId(){return`id-${Math.random().toString(36).substring(2,18)}`}createCellRange(h,g){var w;let f=g?{rowStartIndex:null,rowStartPinned:void 0,rowEndIndex:null,rowEndPinned:void 0,columns:this.visibleCols.allCols.map(M=>M.getColId())}:h,S=f&&((w=this.rangeSvc)==null?void 0:w.createPartialCellRangeFromRangeParams(f,!0));return S||(0,E._warn)(127,{allRange:g}),S}destroy(){this.activeCharts.forEach(h=>h.destroyChart()),super.destroy()}}p.ChartService=s},4604:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.restoreChart=p.updateChart=p.createCrossFilterChart=p.createPivotChart=p.createRangeChart=p.closeChartToolPanel=p.openChartToolPanel=p.downloadChart=p.getChartImageDataURL=p.getChartRef=p.getChartModels=void 0;function A(f){return f.frameworkOverrides.wrapIncoming(()=>{var S;return(S=f.chartSvc)==null?void 0:S.getChartModels()})}p.getChartModels=A;function E(f,S){return f.frameworkOverrides.wrapIncoming(()=>{var w;return(w=f.chartSvc)==null?void 0:w.getChartRef(S)})}p.getChartRef=E;function z(f,S){return f.frameworkOverrides.wrapIncoming(()=>{var w;return(w=f.chartSvc)==null?void 0:w.getChartImageDataURL(S)})}p.getChartImageDataURL=z;function T(f,S){return f.frameworkOverrides.wrapIncoming(()=>{var w;return(w=f.chartSvc)==null?void 0:w.downloadChart(S)})}p.downloadChart=T;function b(f,S){return f.frameworkOverrides.wrapIncoming(()=>{var w;return(w=f.chartSvc)==null?void 0:w.openChartToolPanel(S)})}p.openChartToolPanel=b;function C(f,S){return f.frameworkOverrides.wrapIncoming(()=>{var w;return(w=f.chartSvc)==null?void 0:w.closeChartToolPanel(S.chartId)})}p.closeChartToolPanel=C;function d(f,S){return f.frameworkOverrides.wrapIncoming(()=>{var w;return(w=f.chartSvc)==null?void 0:w.createRangeChart(S,!0)})}p.createRangeChart=d;function s(f,S){return f.frameworkOverrides.wrapIncoming(()=>{var w;return(w=f.chartSvc)==null?void 0:w.createPivotChart(S,!0)})}p.createPivotChart=s;function c(f,S){return f.frameworkOverrides.wrapIncoming(()=>{var w;return(w=f.chartSvc)==null?void 0:w.createCrossFilterChart(S,!0)})}p.createCrossFilterChart=c;function h(f,S){return f.frameworkOverrides.wrapIncoming(()=>{var w;return(w=f.chartSvc)==null?void 0:w.updateChart(S)})}p.updateChart=h;function g(f,S,w){return f.frameworkOverrides.wrapIncoming(()=>{var M;return(M=f.chartSvc)==null?void 0:M.restoreChart(S,w)})}p.restoreChart=g},4806:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.integratedChartsModuleCSS=void 0,p.integratedChartsModuleCSS=`.ag-chart{display:flex;height:100%;position:relative;width:100%}.ag-chart-components-wrapper{display:flex}.ag-chart-canvas-wrapper,.ag-chart-components-wrapper{flex:1 1 auto;position:relative}.ag-chart-menu{background:var(--ag-background-color);background-color:color-mix(in srgb,transparent,var(--ag-background-color) 30%);border-radius:var(--ag-border-radius);display:flex;flex-direction:row;gap:20px;padding:4px 2px;position:absolute;top:8px;width:auto;--ag-icon-size:20px}:where(.ag-ltr) .ag-chart-menu{justify-content:right;right:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}:where(.ag-rtl) .ag-chart-menu{justify-content:left;left:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}:where(.ag-chart) .ag-chart-menu{display:none}:where(.ag-chart-menu-hidden:hover) .ag-chart-menu{display:block}.ag-chart-docked-container{min-width:var(--ag-chart-menu-panel-width);position:relative}:where(.ag-chart-menu-hidden)~.ag-chart-docked-container{display:none}.ag-chart-tabbed-menu{display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.ag-chart-tabbed-menu-header{cursor:default;flex:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-tabbed-menu-body{align-items:stretch;display:flex;flex:1 1 auto;overflow:hidden;position:relative;&:after{background:linear-gradient(var(--ag-background-color),transparent);content:"";display:block;height:16px;left:0;position:absolute;right:0;top:0}}.ag-chart-tab{overflow:hidden;overflow-y:auto;width:100%}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;width:100%}.ag-chart-settings-nav-bar{align-items:center;border-top:1px solid var(--ag-border-color);display:flex;height:30px;padding:0 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-chart-settings-card-selector{align-items:center;display:flex;flex:1 1 auto;height:100%;justify-content:space-around;padding:0 10px}.ag-chart-settings-card-item{background-color:var(--ag-foreground-color);border-radius:4px;cursor:pointer;height:8px;position:relative;width:8px;&.ag-not-selected{opacity:.2}&:before{background-color:transparent;content:" ";display:block;height:20px;left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;width:20px}&.ag-selected{background-color:var(--ag-accent-color)}}.ag-chart-settings-next,.ag-chart-settings-prev{flex:none;position:relative;&:focus-within{border-radius:1px;box-shadow:var(--ag-focus-shadow)}}.ag-chart-settings-next-button,.ag-chart-settings-prev-button{cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}.ag-chart-settings-mini-charts-container{flex:1 1 auto;overflow:hidden auto;position:relative}.ag-chart-settings-mini-wrapper{display:flex;flex-direction:column;left:0;min-height:100%;overflow:hidden;padding-bottom:var(--ag-widget-container-vertical-padding);position:absolute;top:0;width:100%;&.ag-animating{transition:left .3s;transition-timing-function:ease-in-out}}.ag-chart-mini-thumbnail{border:1px solid var(--ag-border-color);border-radius:5px;cursor:pointer;&.ag-selected{border-color:var(--ag-accent-color);border-width:2px}&:focus-visible{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}}.ag-chart-mini-thumbnail-canvas{display:block}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper,.ag-chart-format-wrapper{display:flex;flex-direction:column;padding-bottom:16px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper{height:100%;overflow-y:auto}.ag-chart-advanced-settings{background-color:var(--ag-chrome-background-color)}.ag-chart-advanced-settings,.ag-chart-advanced-settings-wrapper{width:100%}.ag-chart-advanced-settings-wrapper{padding-bottom:0}.ag-chart-advanced-settings-section{border-bottom:1px solid var(--ag-border-color);display:flex;margin:0;padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding)}.ag-chart-empty-text{align-items:center;background-color:var(--ag-background-color);display:flex;height:100%;justify-content:center;top:0;width:100%}.ag-charts-font-size-color{align-self:stretch;display:flex;justify-content:space-between}.ag-charts-data-group-item{padding-bottom:var(--ag-widget-container-vertical-padding);position:relative}.ag-charts-data-group-item:where(:not(:last-child)){margin-bottom:var(--ag-spacing)}.ag-chart-menu-icon{border-radius:var(--ag-border-radius);cursor:pointer;margin:2px 0;opacity:.8;&:hover{opacity:1}}.ag-chart-menu-toolbar-button{background-color:unset;border:0;border-radius:1px;padding:0 2px}.ag-chart-data-column-drag-handle{margin-left:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-title-bar{background-color:unset;position:relative}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding)*.5) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group-item:where(:not(.ag-charts-format-sub-level-group,.ag-pill-select,.ag-select)){height:var(--ag-list-item-height)}.ag-charts-data-group-item:where(.ag-picker-field){margin-top:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-container,.ag-charts-format-top-level-group-container{margin-left:calc(var(--ag-spacing)*2);padding:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-item,.ag-charts-format-top-level-group-item{margin:var(--ag-spacing) 0}.ag-charts-format-sub-level-group-container{display:flex;flex-direction:column;padding:var(--ag-widget-vertical-spacing) 0}.ag-charts-settings-group-container{display:grid;grid-template-columns:60px 1fr 60px 1fr 60px;padding:var(--ag-spacing);row-gap:8px;:where(.ag-chart-mini-thumbnail:nth-child(3n+1)){grid-column:1}:where(.ag-chart-mini-thumbnail:nth-child(3n+2)){grid-column:3}:where(.ag-chart-mini-thumbnail:nth-child(3n+3)){grid-column:5}}.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0;:where(.ag-label:not(.ag-group-title-bar)){color:var(--ag-chart-menu-label-color)}:where(.ag-label-align-top .ag-label){margin-bottom:var(--ag-widget-vertical-spacing);margin-top:calc(var(--ag-widget-vertical-spacing)*.5)}:where(.ag-slider.ag-label-align-top .ag-label){margin-bottom:0}:where(label){display:inline-block}}.ag-chart-menu-panel{--ag-panel-background-color:var(--ag-chrome-background-color)}:where(.ag-ltr) .ag-chart-menu-panel{border-left:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-chart-menu-panel{border-right:1px solid var(--ag-border-color)}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar{border-top:none;font-weight:500;padding:0 calc(var(--ag-spacing)*1.5)}.ag-charts-format-sub-level-group-title-bar{background:none;font-weight:500;padding:var(--ag-widget-vertical-spacing) 0}.ag-chart-data-wrapper,.ag-chart-format-wrapper,.ag-charts-data-group-container,.ag-charts-data-group-title-bar,.ag-charts-format-sub-level-group,.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-group-item:last-child,.ag-charts-format-top-level-group,.ag-charts-format-top-level-group-item,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container{margin:0;padding:0}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-title-bar{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:relative}.ag-charts-data-group,.ag-charts-format-top-level-group{border-top:1px solid var(--ag-border-color)}:where(.ag-charts-data-group) .ag-charts-data-group-container,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container,:where(.ag-charts-settings-group) .ag-charts-settings-group-container{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-no-header-group-container>*,.ag-charts-format-top-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-advanced-settings-top-level-group-container{margin:0}:where(.ag-charts-advanced-settings-top-level-group){.ag-charts-advanced-settings-top-level-group-container,.ag-charts-advanced-settings-top-level-group-title-bar{padding:0 var(--ag-widget-container-horizontal-padding)}}.ag-charts-advanced-settings-top-level-group-item{margin-bottom:0;margin-top:calc(var(--ag-widget-vertical-spacing)*2)}.ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-angle-select{align-items:center;display:flex}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-border-color);border-radius:12px;display:block;height:24px;position:relative;width:24px}.ag-angle-select-child-circle{background-color:var(--ag-foreground-color);border-radius:3px;height:6px;left:12px;margin-left:-3px;margin-top:-4px;position:absolute;top:4px;width:6px}.ag-slider-wrapper{display:flex;:where(.ag-input-field){flex:1 1 auto}}.ag-color-panel{display:flex;flex-direction:column;padding:var(--ag-spacing);text-align:center;width:100%}.ag-spectrum-color{cursor:default;flex:1 1 auto;overflow:visible;position:relative}.ag-spectrum-fill{inset:0;position:absolute}.ag-spectrum-val{background-image:linear-gradient(0deg,#000,hsla(20,42%,65%,0));cursor:pointer}.ag-spectrum-dragger{background:#000;border:3px solid #fff;border-radius:18px;box-shadow:0 0 2px 0 rgba(0,0,0,.24);cursor:pointer;height:18px;pointer-events:none;position:absolute;width:18px}.ag-spectrum-alpha,.ag-spectrum-hue{cursor:default}.ag-spectrum-hue-background{background:linear-gradient(270deg,red 3%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);height:100%;width:100%}.ag-spectrum-alpha-background{background:linear-gradient(to right,var(--ag-internal-spectrum-alpha-color-from),var(--ag-internal-spectrum-alpha-color-to)),url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>') 0 0 /4px 4px;height:100%;width:100%}.ag-spectrum-tool{border-radius:2px;cursor:pointer;height:11px;margin-bottom:10px;position:relative}.ag-spectrum-slider{border:2px solid #fff;border-radius:13px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:13px;margin-top:-12px;pointer-events:none;position:absolute;width:13px}:where(.ag-spectrum-alpha) .ag-spectrum-slider{background:linear-gradient(to bottom,var(--ag-internal-spectrum-alpha-color),var(--ag-internal-spectrum-alpha-color)) var(--ag-background-color)}.ag-recent-colors{display:flex;gap:6px;margin-bottom:2px;margin-left:var(--ag-spacing);margin-right:var(--ag-spacing)}.ag-recent-color{border:1px solid var(--ag-border-color);cursor:pointer}.ag-angle-select[disabled]{opacity:.5;pointer-events:none}:where(.ag-ltr) .ag-angle-select-field,:where(.ag-ltr) .ag-slider-field{margin-right:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-angle-select-field,:where(.ag-rtl) .ag-slider-field{margin-left:calc(var(--ag-spacing)*2)}.ag-color-dialog{border-radius:5px}:where(.ag-color-picker){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}.ag-picker-field-display{align-items:center;display:flex;flex-direction:row;min-height:var(--ag-list-item-height)}}:where(.ag-ltr) .ag-color-picker-color,:where(.ag-ltr) .ag-color-picker-value{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-color-picker-color,:where(.ag-rtl) .ag-color-picker-value{margin-left:var(--ag-spacing)}.ag-spectrum-tools{padding-bottom:0;padding-left:0;padding-right:0}.ag-spectrum-alpha-background,.ag-spectrum-hue-background{border-radius:2px}.ag-color-input-color,.ag-color-picker-color,.ag-recent-color{border-radius:4px}.ag-spectrum-sat{background-image:linear-gradient(90deg,#fff,hsla(20,42%,65%,0))}.ag-recent-color,.ag-spectrum-color,.ag-spectrum-slider{&:where(:not(:disabled,[readonly])):focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-color-input-color,.ag-color-picker-color{border:1px solid var(--ag-border-color);border-radius:2px;height:var(--ag-icon-size);width:var(--ag-icon-size)}:where(.ag-color-input){.ag-color-input-color{position:absolute}}:where(.ag-ltr) :where(.ag-color-input){.ag-input-field-input{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-color-input){.ag-input-field-input{padding-right:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-right:var(--ag-spacing)}}.ag-range-field{align-items:center;display:flex;:where(.ag-input-wrapper){height:100%}}.ag-range-field-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;height:100%;overflow:visible;padding:0;width:100%;&:disabled{opacity:.5}}.ag-range-field-input{&::-webkit-slider-runnable-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-webkit-slider-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-webkit-slider-runnable-track{background-color:var(--ag-accent-color)}}.ag-range-field-input{&::-moz-range-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-moz-ag-range-thumb{-moz-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-moz-ag-range-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-moz-ag-range-track{background-color:var(--ag-accent-color)}}`},1527:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.IntegratedChartsModule=p.GridChartsModule=void 0;let E=A(6624),z=A(9206),T=A(6565),b=A(266),C=A(7205),d=A(3375),s=A(2459),c=A(7879),h=A(6353),g=A(6292),f=A(8769),S=A(7492),w=A(93),M=A(100),P=A(4604),O=A(4806),G=A(3504),j={linked:"linked",unlinked:"unlinked",chartsMenu:"menu-alt",chartsDownload:"save",chartsMenuEdit:"chart",chartsMenuAdvancedSettings:"settings",chartsMenuAdd:"plus",chartsColorPicker:"small-down",chartsThemePrevious:"previous",chartsThemeNext:"next"},Y={getChartModels:P.getChartModels,getChartRef:P.getChartRef,getChartImageDataURL:P.getChartImageDataURL,downloadChart:P.downloadChart,openChartToolPanel:P.openChartToolPanel,closeChartToolPanel:P.closeChartToolPanel,createRangeChart:P.createRangeChart,createPivotChart:P.createPivotChart,createCrossFilterChart:P.createCrossFilterChart,updateChart:P.updateChart,restoreChart:P.restoreChart},J=[b.CellSelectionModule,z.EnterpriseCoreModule,E._SharedDragAndDropModule,E._PopupModule,d.MenuItemModule],ne="IntegratedCharts";p.GridChartsModule={moduleName:"GridCharts",version:C.VERSION,dependsOn:J,validate:()=>({isValid:!1,message:`AG Grid: As of v33, the "GridChartsModule" has been deprecated. Please use "IntegratedChartsModule.with(...)" instead.
 ${(0,E._preInitErrMsg)(257)}`})},p.IntegratedChartsModule={moduleName:ne,version:C.VERSION,dependsOn:J,validate:()=>({isValid:!1,message:(0,E._preInitErrMsg)(257)}),with:ce=>{var fe;if(ce.setup(),(fe=ce.setGridContext)==null||fe.call(ce,!0),ce.isEnterprise&&ce.setLicenseKey){let xe={setLicenseKey:ce.setLicenseKey};T.LicenseManager.setChartsLicenseManager(xe)}return{moduleName:ne,version:C.VERSION,icons:j,apiFunctions:Y,dependsOn:J,css:[O.integratedChartsModuleCSS],validate:()=>(0,G.validGridChartsVersion)({gridVersion:C.VERSION,chartsVersion:ce.VERSION}),beans:[s.AgChartsExports.bind(null,ce),M.ChartService,w.ChartTranslationService,f.ChartCrossFilterService,g.ChartMenuListFactory,S.ChartMenuService,c.EnterpriseChartProxyFactory,h.AdvancedSettingsMenuFactory]}}}},3504:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.validGridChartsVersion=p.validGridChartsVersionErrorMessage=p.gridChartVersion=void 0;let A=28,E=6;function z(s){return s&&s.match(/\d+\.\d+\.\d+/)}function T({gridMajorVersion:s,chartsMajorVersion:c}){let h=parseInt(s,10),g=parseInt(c,10),f=h-A,S=g-E,w=f>=0;return f===S&&w}function b(s){if(!s||!z(s))return;let[c,h]=s.split(".")||[],g=`${c}.${h}.x`,S=parseInt(c,10)-A+E;if(S<0)return;let M=`${S}.${h}.x`;return{gridMajorMinor:g,chartsMajorMinor:M}}p.gridChartVersion=b;function C({type:s,gridVersion:c,chartsVersion:h}){let g="AG Grid: AG Grid version is incompatible. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.";if(!c)return g;let f=b(c);if(!f)return g;let{gridMajorMinor:S,chartsMajorMinor:w}=f;return s==="incompatible"?`AG Grid version ${c} and AG Charts version ${h} is not supported. AG Grid version ${S} should be used with AG Chart ${w}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:s==="invalidCharts"?`AG Grid version ${S} should be used with AG Chart ${w} not ${h}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:g}p.validGridChartsVersionErrorMessage=C;function d({gridVersion:s,chartsVersion:c}){if(!z(c))return{isValid:!1,message:C({type:"invalidCharts",gridVersion:s,chartsVersion:c})};if(!z(s))return{isValid:!1,message:C({type:"invalidGrid",gridVersion:s,chartsVersion:c})};let[h,g]=s.split(".")||[],[f,S,w]=c.split(".")||[],M=T({gridMajorVersion:h,chartsMajorVersion:f});return M&&g===S||w.includes("beta")?{isValid:!0}:!M||g!==S?{isValid:!1,message:C({type:"incompatible",gridVersion:s,chartsVersion:c})}:{isValid:!1,message:C({type:"invalid",gridVersion:s,chartsVersion:c})}}p.validGridChartsVersion=d},1750:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgAngleSelect=void 0;let E=A(6624);class z extends E.AgAbstractLabel{wireBeans(b){this.dragSvc=b.dragSvc}constructor(b){super(b,`<div class="ag-angle-select">
            <div data-ref="eLabel"></div>
            <div class="ag-wrapper ag-angle-select-wrapper">
                <div class="ag-angle-select-field">
                    <div data-ref="eParentCircle" class="ag-angle-select-parent-circle">
                        <div data-ref="eChildCircle" class="ag-angle-select-child-circle"></div>
                    </div>
                </div>
                <ag-input-number-field data-ref="eAngleValue"></ag-input-number-field>
            </div>
        </div>`,[E.AgInputNumberFieldSelector]),this.eLabel=E.RefPlaceholder,this.eParentCircle=E.RefPlaceholder,this.eChildCircle=E.RefPlaceholder,this.eAngleValue=E.RefPlaceholder,this.radius=0,this.offsetX=0,this.offsetY=0}postConstruct(){var d;super.postConstruct();let{value:b,onValueChange:C}=this.config;b!=null&&this.setValue(b,void 0,!0),C!=null&&this.onValueChange(C),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:()=>{this.parentCircleRect=this.eParentCircle.getBoundingClientRect()},onDragging:s=>this.calculateAngleDrag(s),onDragStop:()=>{}},(d=this.dragSvc)==null||d.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(`${this.degrees}`).onValueChange(s=>{(s==null||s==="")&&(s="0"),s=this.eAngleValue.normalizeValue(s);let c=parseFloat(s);c>180&&(c=c-360),this.setValue(c)}),this.updateNumberInput(),(0,E._exists)(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListeners(this,{fieldValueChanged:()=>{this.eAngleValue.getInputElement().contains((0,E._getActiveDomElement)(this.beans))||this.updateNumberInput()}})}updateNumberInput(){let b=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(b.toString())}positionChildCircle(b){let C=this.parentCircleRect||{width:24,height:24},d=this.eChildCircle,s=C.width/2,c=C.height/2;d.style.left=`${s+Math.cos(b)*8}px`,d.style.top=`${c+Math.sin(b)*8}px`}calculatePolar(){let b=this.offsetX,C=this.offsetY,d=Math.atan2(C,b);this.degrees=this.toDegrees(d),this.radius=Math.sqrt(b*b+C*C),this.positionChildCircle(d)}calculateCartesian(){let b=this.toRadians(this.getValue()),C=this.getRadius();this.setOffsetX(Math.cos(b)*C).setOffsetY(Math.sin(b)*C)}setOffsetX(b){return this.offsetX!==b&&(this.offsetX=b,this.calculatePolar()),this}setOffsetY(b){return this.offsetY!==b&&(this.offsetY=b,this.calculatePolar()),this}calculateAngleDrag(b){let C=this.parentCircleRect,d=C.width/2,s=C.height/2,c=b.clientX-C.left,h=b.clientY-C.top,g=c-d,f=h-s,S=Math.atan2(f,g);this.setValue(S,!0)}toDegrees(b){return b/Math.PI*180}toRadians(b){return b/180*Math.PI}normalizeNegativeValue(b){return b<0?360+b:b}normalizeAngle180(b){return b%=Math.PI*2,b<-Math.PI?b+=Math.PI*2:b>=Math.PI&&(b-=Math.PI*2),b}getRadius(){return this.radius}setRadius(b){return this.radius===b?this:(this.radius=b,this.calculateCartesian(),this)}onValueChange(b){return this.addManagedListeners(this,{fieldValueChanged:()=>{b(this.degrees)}}),this}getValue(b){return b?this.toRadians(this.degrees):this.degrees}setValue(b,C,d){let s;return C?s=b:s=this.normalizeAngle180(this.toRadians(b)),b=this.toDegrees(s),this.degrees!==b&&(this.degrees=Math.floor(b),this.calculateCartesian(),this.positionChildCircle(s),d||this.dispatchLocalEvent({type:"fieldValueChanged"})),this}setWidth(b){return(0,E._setFixedWidth)(this.getGui(),b),this}setDisabled(b){return super.setDisabled(b),this.eAngleValue.setDisabled(b),this}destroy(){var b;(b=this.dragSvc)==null||b.removeDragSource(this.dragListener),super.destroy()}}p.AgAngleSelect=z},7699:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgColorInputSelector=p.AgColorInput=void 0;let E=A(6624);class z extends E.AgInputTextField{wireBeans(b){this.chartTranslation=b.chartTranslation,this.color=b.agChartsExports._Util.Color}constructor(){super({template:`
            <div role="presentation" class="ag-color-input">
                <div data-ref="eLabel" class="ag-input-field-label"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
                    <input data-ref="eInput" class="ag-input-field-input">
                    <div data-ref="eColor" class="ag-color-input-color"></div>
                </div>
            </div>`}),this.eColor=E.RefPlaceholder}setColor(b){let C=b.toRgbaString();this.setValue(this.color.fromString(C).toHexString().toUpperCase(),!0),this.eColor.style.backgroundColor=C}setValue(b,C){let d=this.color.validColorString(b!=null?b:"");return this.eInput.setCustomValidity(d?"":this.chartTranslation.translate("invalidColor")),super.setValue(b,C),d&&!C&&this.dispatchLocalEvent({type:"colorChanged"}),this}onColorChanged(b){this.addManagedListeners(this,{colorChanged:()=>b(this.color.fromString(this.value))})}}p.AgColorInput=z,p.AgColorInputSelector={selector:"AG-COLOR-INPUT",component:z}},7434:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgColorPanel=void 0;let E=A(6624),z=A(7699),T=8,b=[];class C extends E.Component{constructor(s){super(`<div class="ag-color-panel" tabindex="-1">
            <div data-ref="spectrumColor" class="ag-spectrum-color">
                <div class="ag-spectrum-sat ag-spectrum-fill">
                    <div data-ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">
                        <div data-ref="spectrumDragger" class="ag-spectrum-dragger"></div>
                    </div>
                </div>
            </div>
            <div class="ag-spectrum-tools">
                <div data-ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">
                    <div class="ag-spectrum-hue-background"></div>
                    <div data-ref="spectrumHueSlider" class="ag-spectrum-slider"></div>
                </div>
                <div data-ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">
                    <div class="ag-spectrum-alpha-background"></div>
                    <div data-ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>
                </div>
                <ag-color-input data-ref="colorInput"></ag-color-input>
                <div data-ref="recentColors" class="ag-recent-colors"></div>
            </div>
        </div>`,[z.AgColorInputSelector]),this.H=1,this.S=1,this.B=1,this.A=1,this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1,this.colorChanged=!1,this.spectrumColor=E.RefPlaceholder,this.spectrumVal=E.RefPlaceholder,this.spectrumDragger=E.RefPlaceholder,this.spectrumHue=E.RefPlaceholder,this.spectrumHueSlider=E.RefPlaceholder,this.spectrumAlpha=E.RefPlaceholder,this.spectrumAlphaSlider=E.RefPlaceholder,this.colorInput=E.RefPlaceholder,this.recentColors=E.RefPlaceholder,this.picker=s.picker}wireBeans(s){this._Color=s.agChartsExports._Util.Color}postConstruct(){this.initTabIndex(),this.initRecentColors(),this.addGuiEventListener("focus",()=>this.spectrumColor.focus()),this.addGuiEventListener("keydown",s=>{s.key===E.KeyCode.ENTER&&!s.defaultPrevented&&this.destroy()}),this.addManagedListeners(this.spectrumColor,{keydown:s=>this.moveDragger(s)}),this.addManagedListeners(this.spectrumAlphaSlider,{keydown:s=>this.moveAlphaSlider(s)}),this.addManagedListeners(this.spectrumHueSlider,{keydown:s=>this.moveHueSlider(s)}),this.addManagedListeners(this.spectrumVal,{mousedown:this.onSpectrumDraggerDown.bind(this)}),this.addManagedListeners(this.spectrumHue,{mousedown:this.onSpectrumHueDown.bind(this)}),this.addManagedListeners(this.spectrumAlpha,{mousedown:this.onSpectrumAlphaDown.bind(this)}),this.addGuiEventListener("mousemove",s=>{this.onSpectrumDraggerMove(s),this.onSpectrumHueMove(s),this.onSpectrumAlphaMove(s)}),this.addManagedListeners(document,{mouseup:this.onMouseUp.bind(this)}),this.colorInput.onColorChanged(this.setColor.bind(this)),this.addManagedListeners(this.recentColors,{click:this.onRecentColorClick.bind(this),keydown:s=>{(s.key===E.KeyCode.ENTER||s.key===E.KeyCode.SPACE)&&(s.preventDefault(),this.onRecentColorClick(s))}})}initTabIndex(){let s=this.tabIndex=this.gos.get("tabIndex").toString();this.spectrumColor.setAttribute("tabindex",s),this.spectrumHueSlider.setAttribute("tabindex",s),this.spectrumAlphaSlider.setAttribute("tabindex",s)}refreshSpectrumRect(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()}refreshHueRect(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()}refreshAlphaRect(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()}onSpectrumDraggerDown(s){s.preventDefault(),this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(s)}onSpectrumDraggerMove(s){this.isSpectrumDragging&&this.moveDragger(s)}onSpectrumHueDown(s){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(s)}onSpectrumHueMove(s){this.isSpectrumHueDragging&&this.moveHueSlider(s)}onSpectrumAlphaDown(s){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(s)}onSpectrumAlphaMove(s){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(s)}onMouseUp(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1}moveDragger(s){let c=this.spectrumValRect;if(!c)return;let h,g;if(s instanceof MouseEvent)h=s.clientX-c.left,g=s.clientY-c.top;else{let f=s.key===E.KeyCode.LEFT,S=s.key===E.KeyCode.RIGHT,w=s.key===E.KeyCode.UP,M=s.key===E.KeyCode.DOWN,P=w||M,O=f||S;if(!P&&!O)return;s.preventDefault();let{x:G,y:j}=this.getSpectrumValue();h=G+(O?f?-5:5:0),g=j+(P?w?-5:5:0)}h=Math.max(h,0),h=Math.min(h,c.width),g=Math.max(g,0),g=Math.min(g,c.height),this.setSpectrumValue(h/c.width,1-g/c.height)}moveHueSlider(s){let c=this.spectrumHueRect;if(!c)return;let h=this.moveSlider(this.spectrumHueSlider,s);h!=null&&(this.H=1-h/c.width,this.update())}moveAlphaSlider(s){let c=this.spectrumAlphaRect;if(!c)return;let h=this.moveSlider(this.spectrumAlphaSlider,s);h!=null&&(this.A=h/c.width,this.update())}moveSlider(s,c){var w;let h=s.getBoundingClientRect(),g=(w=s.parentElement)==null?void 0:w.getBoundingClientRect();if(!s||!g)return null;let f=h.width/2,S;if(c instanceof MouseEvent)S=Math.floor(c.clientX-g.left);else{let M=c.key===E.KeyCode.LEFT,P=c.key===E.KeyCode.RIGHT;if(!M&&!P)return null;c.preventDefault();let O=M?-5:5;S=parseFloat(s.style.left)+f+O}return S=Math.max(S,0),S=Math.min(S,g.width),s.style.left=S-f+"px",S}update(s){let{A:c,S:h,B:g,H:f,_Color:S}=this,w=f*360,M=S.fromHSB(w,h,g,c),P=M.toRgbaString(),G=S.fromHSB(w,h,g).toRgbaString(),Y=S.fromHSB(w,1,1).toRgbaString(),J=this.picker;S.fromString(J.getValue()).toRgbaString()!==P&&(this.colorChanged=!0),J.setValue(P),this.spectrumColor.style.backgroundColor=Y,this.spectrumDragger.style.backgroundColor=G,this.spectrumHueSlider.style.backgroundColor=Y,this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color-from",S.fromHSB(w,h,g,0).toRgbaString()),this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color-to",G),this.spectrumAlpha.style.setProperty("--ag-internal-spectrum-alpha-color",P),s||this.colorInput.setColor(M)}setSpectrumValue(s,c,h){let g=this.spectrumValRect||this.refreshSpectrumRect();if(g==null)return;let f=this.spectrumDragger,S=f.getBoundingClientRect();s=Math.max(0,s),s=Math.min(1,s),c=Math.max(0,c),c=Math.min(1,c),this.S=s,this.B=c,f.style.left=s*g.width-S.width/2+"px",f.style.top=(1-c)*g.height-S.height/2+"px",this.update(h)}getSpectrumValue(){let s=this.spectrumDragger,c=s.getBoundingClientRect(),h=parseFloat(s.style.left)+c.width/2,g=parseFloat(s.style.top)+c.height/2;return{x:h,y:g}}initRecentColors(){let s=b,c=s.map((h,g)=>`<div class="ag-recent-color" id=${g} style="background-color: ${h}; width: 15px; height: 15px;" recent-color="${h}" tabIndex="${this.tabIndex}"></div>`);this.recentColors.innerHTML=c.join(""),(0,E._setDisplayed)(this.recentColors,!!s.length)}setValue(s){let c=this._Color.fromString(s);this.setColor(c,!0)}setColor(s,c){let[h,g,f]=s.toHSB();this.H=(isNaN(h)?0:h)/360,this.A=s.a;let S=this.spectrumHueRect||this.refreshHueRect(),w=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=`${(this.H-1)*-S.width-this.spectrumHueSlider.getBoundingClientRect().width/2}px`,this.spectrumAlphaSlider.style.left=`${this.A*w.width-this.spectrumAlphaSlider.getBoundingClientRect().width/2}px`,this.setSpectrumValue(g,f,!c)}onRecentColorClick(s){let c=s.target;if(!(0,E._exists)(c.id))return;let h=parseInt(c.id,10);this.setValue(b[h]),this.destroy()}addRecentColor(){let c=this._Color.fromHSB(this.H*360,this.S,this.B,this.A).toRgbaString(),h=b;!this.colorChanged||h[0]===c||(h=h.filter(g=>g!=c),h=[c].concat(h),h.length>T&&(h=h.slice(0,T)),b=h)}destroy(){this.addRecentColor(),super.destroy()}}p.AgColorPanel=C},1296:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgColorPickerSelector=p.AgColorPicker=void 0;let E=A(6624),z=A(8775),T=A(7434);class b extends E.AgPickerField{constructor(d){super(ge({pickerAriaLabelKey:"ariaLabelColorPicker",pickerAriaLabelValue:"Color Picker",pickerType:"ag-list",className:"ag-color-picker",pickerIcon:"chartsColorPicker"},d))}postConstruct(){let d=(0,E._getDocument)(this.beans);this.eDisplayFieldColor=d.createElement("span"),this.eDisplayFieldColor.classList.add("ag-color-picker-color"),this.eDisplayFieldText=d.createElement("span"),this.eDisplayFieldText.classList.add("ag-color-picker-value"),this.eDisplayField.appendChild(this.eDisplayFieldColor),this.eDisplayField.appendChild(this.eDisplayFieldText),super.postConstruct(),this.value&&this.setValue(this.value)}createPickerComponent(){var h;let d=this.eWrapper.getBoundingClientRect(),s=this.beans.popupSvc.getParentRect();return this.createBean(new z.AgDialog({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:d.right-s.left-190,y:d.top-s.top-250-((h=this.config.pickerGap)!=null?h:0),postProcessPopupParams:{type:"colorPicker",eventSource:this.eWrapper}}))}renderAndPositionPicker(){let d=this.pickerComponent,s=this.createBean(new T.AgColorPanel({picker:this}));return d.addCssClass("ag-color-dialog"),s.addDestroyFunc(()=>{d.isAlive()&&this.destroyBean(d)}),d.setParentComponent(this),d.setBodyComponent(s),s.setValue(this.getValue()),s.getGui().focus(),d.addDestroyFunc(()=>{this.isDestroyingPicker?this.isDestroyingPicker=!1:(this.beforeHidePicker(),this.isDestroyingPicker=!0,s.isAlive()&&this.destroyBean(s),this.isAlive()&&this.getFocusableElement().focus())}),()=>{var c;return(c=this.pickerComponent)==null?void 0:c.close()}}setValue(d){return this.value===d?this:(this.eDisplayFieldColor.style.backgroundColor=d,this.eDisplayFieldText.textContent=this.beans.agChartsExports._Util.Color.fromString(d).toHexString().toUpperCase(),super.setValue(d))}getValue(){return this.value}}p.AgColorPicker=b,p.AgColorPickerSelector={selector:"AG-COLOR-PICKER",component:b}},5748:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgInputRangeSelector=p.AgInputRange=void 0;let E=A(6624);class z extends E.AgAbstractInputField{constructor(b){super(b,"ag-range-field","range")}postConstruct(){super.postConstruct();let{min:b,max:C,step:d}=this.config;b!=null&&this.setMinValue(b),C!=null&&this.setMaxValue(C),this.setStep(d||1)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:b=>{let C=b.target.value;this.setValue(C)}})}setMinValue(b){return this.min=b,this.eInput.setAttribute("min",b.toString()),this}setMaxValue(b){return this.max=b,this.eInput.setAttribute("max",b.toString()),this}setStep(b){return this.eInput.setAttribute("step",b.toString()),this}setValue(b,C){this.min!=null&&(b=Math.max(parseFloat(b),this.min).toString()),this.max!=null&&(b=Math.min(parseFloat(b),this.max).toString());let d=super.setValue(b,C);return this.eInput.value=b,d}}p.AgInputRange=z,p.AgInputRangeSelector={selector:"AG-INPUT-RANGE",component:z}},8239:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agPillSelectCSS=void 0,p.agPillSelectCSS=".ag-pill-select{display:flex;flex-direction:column}:where(.ag-pill-select){.ag-column-drop-list{padding:0}.ag-select{padding-top:var(--ag-spacing)}.ag-picker-field-wrapper{background-color:transparent;border:0}.ag-picker-field-display{cursor:pointer;font-weight:500}.ag-picker-field-display,.ag-picker-field-icon{color:var(--ag-chart-menu-label-color)}}"},2406:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPillSelect=void 0;let E=A(6624),z=A(3173),T=A(9733),b=A(8239);class C extends E.Component{constructor(h){super('<div class="ag-pill-select" role="presentation"></div>'),this.config=h!=null?h:{};let{selectedValueList:g,valueFormatter:f,valueList:S}=this.config;this.selectedValues=g!=null?g:[],this.valueList=S!=null?S:[],this.valueFormatter=f!=null?f:w=>(0,E._escapeString)(w),this.registerCSS(b.agPillSelectCSS)}postConstruct(){let{ariaLabel:h,onValuesChange:g,dragSourceId:f}=this.config;this.dropZonePanel=this.createManagedBean(new s({getValues:()=>this.selectedValues,setValues:w=>this.updateValues(w),isDraggable:()=>this.selectedValues.length>1},w=>this.valueFormatter(w),h,f)),this.getGui().appendChild(this.dropZonePanel.getGui()),this.initSelect(),g!=null&&(this.onValuesChange=g)}setValues(h,g){let{added:f,removed:S,updated:w}=this.getChanges(this.valueList,h),M=!1;return(f.length||S.length||w.length)&&(M=!0),this.valueList=h,this.updateValues(g,M,!0),this}setValueFormatter(h){return this.valueFormatter=h,this}initSelect(){let h=this.createSelectOptions();if(!h.length)return!1;let{selectPlaceholder:g}=this.config;return this.eSelect=this.createBean(new E.AgSelect({options:h,placeholder:g,onValueChange:f=>this.addValue(f),pickerIcon:"chartsMenuAdd"})),this.getGui().appendChild(this.eSelect.getGui()),!0}createSelectOptions(){let h=[],{maxSelection:g}=this.config;return g&&this.selectedValues.length>=g||this.valueList.forEach(f=>{this.selectedValues.includes(f)||h.push({value:f,text:this.valueFormatter(f)})}),h}addValue(h){this.dropZonePanel.addItem(h)}updateValues(h,g,f){var Y,J,ne,ce,fe;let S=this.selectedValues;this.selectedValues=h;let w=this.getChanges(S,h),M=g||w.added.length||w.removed.length,P=(0,E._getActiveDomElement)(this.beans),O=(Y=this.eSelect)==null?void 0:Y.getGui().contains(P),G=(J=this.dropZonePanel)==null?void 0:J.getGui().contains(P);f||(ne=this.onValuesChange)==null||ne.call(this,w);let j=M?!this.refreshSelect():!1;this.dropZonePanel.refreshGui(),M&&O&&(j?this.dropZonePanel.focusList(!0):(ce=this.eSelect)==null||ce.getFocusableElement().focus()),G&&!h.length&&((fe=this.eSelect)==null||fe.getFocusableElement().focus())}getChanges(h,g){let f=g.filter(M=>!h.includes(M)),S=h.filter(M=>!g.includes(M)),w=g.filter((M,P)=>h[P]!==M);return{added:f,removed:S,updated:w,selected:g}}refreshSelect(){if(!this.eSelect)return this.initSelect();let h=this.createSelectOptions();return h.length?(this.eSelect.clearOptions().addOptions(h).setValue(void 0,!0),!0):((0,E._removeFromParent)(this.eSelect.getGui()),this.eSelect=this.destroyBean(this.eSelect),!1)}destroy(){this.destroyBean(this.eSelect),super.destroy()}}p.AgPillSelect=C;class d extends z.PillDragComp{constructor(h,g,f,S,w,M){super(g,f,!1),this.value=h,this.valueFormatter=S,this.draggable=w,this.sourceId=M}getItem(){return this.value}getDisplayName(){return this.valueFormatter(this.value)}getAriaDisplayName(){return this.getDisplayName()}getTooltip(){}createGetDragItem(){return()=>({value:this.value})}getDragSourceType(){return E.DragSourceType.ChartPanel}getDragSourceId(){return this.sourceId}isDraggable(){return this.draggable}}class s extends T.PillDropZonePanel{constructor(h,g,f,S){super(!1),this.model=h,this.valueFormatter=g,this.ariaLabel=f,this.sourceId=S}postConstruct(){super.init()}isItemDroppable(h,g){return this.isSourceEventFromTarget(g)||this.sourceId!=null&&this.sourceId===g.dragSource.sourceId}updateItems(h){this.model.setValues(h)}getExistingItems(){return this.model.getValues()}getIconName(){return this.isPotentialDndItems()?"move":"notAllowed"}getAriaLabel(){return this.ariaLabel}createPillComponent(h,g,f){return new d(h,g,f,this.valueFormatter,this.model.isDraggable(),this.sourceId)}getItems(h){return[h.value]}isInterestedIn(h){return h===E.DragSourceType.ChartPanel}}},5e3:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgSliderSelector=p.AgSlider=void 0;let E=A(6624),z=A(5748);class T extends E.AgAbstractLabel{constructor(C){super(C,`<div class="ag-slider">
            <label data-ref="eLabel"></label>
            <div class="ag-wrapper ag-slider-wrapper">
                <ag-input-range data-ref="eSlider"></ag-input-range>
                <ag-input-number-field data-ref="eText"></ag-input-number-field>
            </div>
        </div>`,[z.AgInputRangeSelector,E.AgInputNumberFieldSelector]),this.eLabel=E.RefPlaceholder,this.eSlider=E.RefPlaceholder,this.eText=E.RefPlaceholder,this.labelAlignment="top"}postConstruct(){super.postConstruct(),this.eSlider.addCssClass("ag-slider-field");let{minValue:C,maxValue:d,textFieldWidth:s,step:c,value:h,onValueChange:g}=this.config;C!=null&&this.setMinValue(C),d!=null&&this.setMaxValue(d),s!=null&&this.setTextFieldWidth(s),c!=null&&this.setStep(c),h!=null&&this.setValue(h),g!=null&&this.onValueChange(g)}onValueChange(C){return this.addManagedListeners(this.eText,{fieldValueChanged:()=>{let d=parseFloat(this.eText.getValue());this.eSlider.setValue(d.toString(),!0),C(d||0)}}),this.addManagedListeners(this.eSlider,{fieldValueChanged:()=>{let d=this.eSlider.getValue();this.eText.setValue(d,!0),C(parseFloat(d))}}),this}setSliderWidth(C){return this.eSlider.setWidth(C),this}setTextFieldWidth(C){return this.eText.setWidth(C),this}setMinValue(C){return this.eSlider.setMinValue(C),this.eText.setMin(C),this}setMaxValue(C){return this.eSlider.setMaxValue(C),this.eText.setMax(C),this}getValue(){return this.eText.getValue()}setValue(C,d){return this.getValue()===C?this:(this.eText.setValue(C,!0),this.eSlider.setValue(C,!0),d||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}setStep(C){return this.eSlider.setStep(C),this.eText.setStep(C),this}}p.AgSlider=T,p.AgSliderSelector={selector:"AG-SLIDER",component:T}},9112:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.pasteFromClipboard=p.copySelectedRangeDown=p.copySelectedRangeToClipboard=p.copySelectedRowsToClipboard=p.cutToClipboard=p.copyToClipboard=void 0;function A(d,s){var c;(c=d.clipboardSvc)==null||c.copyToClipboard(s)}p.copyToClipboard=A;function E(d,s){var c;(c=d.clipboardSvc)==null||c.cutToClipboard(s)}p.cutToClipboard=E;function z(d,s){var c;(c=d.clipboardSvc)==null||c.copySelectedRowsToClipboard(s)}p.copySelectedRowsToClipboard=z;function T(d,s){var c;(c=d.clipboardSvc)==null||c.copySelectedRangeToClipboard(s)}p.copySelectedRangeToClipboard=T;function b(d){var s;(s=d.clipboardSvc)==null||s.copyRangeDown()}p.copySelectedRangeDown=b;function C(d){var s;(s=d.clipboardSvc)==null||s.pasteFromClipboard()}p.pasteFromClipboard=C},3766:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClipboardModule=void 0;let E=A(6624),z=A(9206),T=A(7205),b=A(9112),C=A(5519);p.ClipboardModule={moduleName:"Clipboard",version:T.VERSION,beans:[C.ClipboardService],apiFunctions:{copyToClipboard:b.copyToClipboard,cutToClipboard:b.cutToClipboard,copySelectedRowsToClipboard:b.copySelectedRowsToClipboard,copySelectedRangeToClipboard:b.copySelectedRangeToClipboard,copySelectedRangeDown:b.copySelectedRangeDown,pasteFromClipboard:b.pasteFromClipboard},dependsOn:[z.EnterpriseCoreModule,E.CsvExportModule,E._KeyboardNavigationModule,E.HighlightChangesModule]}},5519:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClipboardService=p.stringToArray=void 0;let E=A(6624),z="paste",T="dragCopy",b="clipboard";var C;(function(c){c[c.CellRange=0]="CellRange",c[c.SelectedRows=1]="SelectedRows",c[c.FocusedCell=2]="FocusedCell"})(C||(C={}));function d(c,h=","){let g=[],f=w=>w==="\r"||w===`
`,S=!1;if(c==="")return[[""]];for(let w=0,M=0,P=0;P<c.length;P++){let O=c[P-1],G=c[P],j=c[P+1],Y=()=>{g[w]||(g[w]=[]),g[w][M]||(g[w][M]="")};if(Y(),G==='"'&&(S?j==='"'?(g[w][M]+='"',P++):S=!1:(O===void 0||O===h||f(O))&&(S=!0)),!S&&G!=='"'){if(G===h){M++,Y();continue}else if(f(G)){M=0,w++,Y(),G==="\r"&&j===`
`&&P++;continue}}g[w][M]+=G}return g}p.stringToArray=d;class s extends E.BeanStub{constructor(){super(...arguments),this.beanName="clipboardSvc",this.clientSideRowModel=null,this.gridCtrl=null,this.lastPasteOperationTime=0,this.navigatorApiFailed=!1}postConstruct(){let{gos:h,rowModel:g,ctrlsSvc:f}=this.beans;(0,E._isClientSideRowModel)(h,g)&&(this.clientSideRowModel=g),f.whenReady(this,S=>{this.gridCtrl=S.gridCtrl})}destroy(){super.destroy(),this.clientSideRowModel=null,this.gridCtrl=null}pasteFromClipboard(){!this.gos.get("suppressClipboardApi")&&!this.navigatorApiFailed&&navigator.clipboard&&navigator.clipboard.readText?navigator.clipboard.readText().then(this.processClipboardData.bind(this)).catch(g=>{(0,E._warn)(40,{e:g,method:"readText"}),this.navigatorApiFailed=!0,this.pasteFromClipboardLegacy()}):this.pasteFromClipboardLegacy()}pasteFromClipboardLegacy(){let h=!1,g=f=>{let S=new Date().getTime();S-this.lastPasteOperationTime<50&&(h=!0,f.preventDefault()),this.lastPasteOperationTime=S};this.executeOnTempElement(f=>{f.addEventListener("paste",g),f.focus({preventScroll:!0})},f=>{let S=f.value;h?this.refocusLastFocusedCell():this.processClipboardData(S),f.removeEventListener("paste",g)})}refocusLastFocusedCell(){let{focusSvc:h}=this.beans,g=h.getFocusedCell();g&&h.setFocusedCell({rowIndex:g.rowIndex,column:g.column,rowPinned:g.rowPinned,forceBrowserFocus:!0})}getClipboardDelimiter(){let h=this.gos.get("clipboardDelimiter");return(0,E._exists)(h)?h:"	"}processClipboardData(h){if(h==null)return;let g=d(h,this.getClipboardDelimiter()),f=this.gos.getCallback("processDataFromClipboard");if(f&&(g=f({data:g})),g==null)return;this.gos.get("suppressLastEmptyLineOnPaste")&&this.removeLastLineIfBlank(g);let{rangeSvc:S}=this.beans,w=(M,P,O,G)=>{(S==null?void 0:S.isMoreThanOneCell())&&!this.hasOnlyOneValueToPaste(g)?this.pasteIntoActiveRange(S,g,M,P,G):this.pasteStartingFromFocusedCell(g,M,P,O,G)};this.doPasteOperation(w)}doPasteOperation(h){let g="clipboard",{eventSvc:f,focusSvc:S,rowRenderer:w,gos:M}=this.beans;f.dispatchEvent({type:"pasteStart",source:g});let{clientSideRowModel:P}=this,O=P==null?void 0:P.rootNode,G=O&&new E.ChangedPath(M.get("aggregateOnlyChangedColumns"),O),j={},Y=[],J=S.getFocusedCell();h(j,Y,J,G);let ne=[...Y];G&&(P.doAggregate(G),G.forEachChangedNodeDepthFirst(ce=>{ne.push(ce)})),w.refreshCells({rowNodes:ne}),this.dispatchFlashCells(j),this.fireRowChanged(Y),this.refocusLastFocusedCell(),f.dispatchEvent({type:"pasteEnd",source:g})}pasteIntoActiveRange(h,g,f,S,w){let M=this.getRangeSize(h)%g.length!=0,P=0,O=0,G=(j,Y,J,ne)=>{if(ne-P>=g.length){if(M)return;P+=O,O=0}let fe=g[ne-P];S.push(Y);let xe=this.gos.getCallback("processCellFromClipboard");J.forEach((Le,_e)=>{if(!Le.isCellEditable(Y)||Le.isSuppressPaste(Y))return;_e>=fe.length&&(_e=_e%fe.length);let Fe=this.processCell(Y,Le,fe[_e],T,xe,!0);Y.setDataValue(Le,Fe,z),w&&w.addParentNode(Y.parent,[Le]);let{rowIndex:We,rowPinned:it}=j,tt=(0,E._createCellId)({rowIndex:We,column:Le,rowPinned:it});f[tt]=!0}),O++};this.iterateActiveRanges(!1,G)}getDisplayedColumnsStartingAt(h){let g=h,f=[],S=this.beans.visibleCols;for(;g!=null;)f.push(g),g=S.getColAfter(g);return f}pasteStartingFromFocusedCell(h,g,f,S,w){if(!S)return;let M={rowIndex:S.rowIndex,rowPinned:S.rowPinned},P=this.getDisplayedColumnsStartingAt(S.column);this.isPasteSingleValueIntoRange(h)?this.pasteSingleValueIntoRange(h,f,g,w):this.pasteMultipleValues(h,M,f,P,g,b,w)}isPasteSingleValueIntoRange(h){let g=this.beans.rangeSvc;return this.hasOnlyOneValueToPaste(h)&&!!g&&!g.isEmpty()}pasteSingleValueIntoRange(h,g,f,S){let w=h[0][0],M=(P,O,G)=>{g.push(O),G.forEach(j=>this.updateCellValue(O,j,w,f,b,S))};this.iterateActiveRanges(!1,M)}hasOnlyOneValueToPaste(h){return h.length===1&&h[0].length===1}copyRangeDown(){let{rangeSvc:h,gos:g,valueSvc:f}=this.beans;if(!h||h.isEmpty())return;let S=[],w=(M,P,O,G)=>{let j=g.getCallback("processCellForClipboard"),Y=g.getCallback("processCellFromClipboard"),J=(ne,ce,fe)=>{S.length?(P.push(ce),fe.forEach((xe,Le)=>{if(!xe.isCellEditable(ce)||xe.isSuppressPaste(ce))return;let _e=this.processCell(ce,xe,S[Le],T,Y,!0);ce.setDataValue(xe,_e,z),G&&G.addParentNode(ce.parent,[xe]);let{rowIndex:Fe,rowPinned:We}=ne,it=(0,E._createCellId)({rowIndex:Fe,column:xe,rowPinned:We});M[it]=!0})):fe.forEach(xe=>{let Le=this.processCell(ce,xe,f.getValue(xe,ce),T,j,!1,!0);S.push(Le)})};this.iterateActiveRanges(!0,J)};this.doPasteOperation(w)}removeLastLineIfBlank(h){let g=(0,E._last)(h);if(g&&g.length===1&&g[0]===""){if(h.length===1)return;(0,E._removeFromArray)(h,g)}}fireRowChanged(h){this.gos.get("editType")==="fullRow"&&h.forEach(g=>{this.eventSvc.dispatchEvent({type:"rowValueChanged",node:g,data:g.data,rowIndex:g.rowIndex,rowPinned:g.rowPinned})})}pasteMultipleValues(h,g,f,S,w,M,P){let O=g,G=this.beans,{gos:j,cellNavigation:Y}=G,J=this.clientSideRowModel!=null&&!j.get("enableGroupEdit")&&!j.get("treeData"),ne=()=>{for(;;){if(!O)return null;let ce=(0,E._getRowNode)(G,O);if(O=Y.getRowBelow({rowPinned:O.rowPinned,rowIndex:O.rowIndex}),ce==null)return null;if(!(ce.detail||ce.footer||J&&ce.group))return ce}};h.forEach(ce=>{let fe=ne();fe&&(ce.forEach((xe,Le)=>this.updateCellValue(fe,S[Le],xe,w,M,P)),f.push(fe))})}updateCellValue(h,g,f,S,w,M){if(!h||!g||!g.isCellEditable(h)||g.isSuppressPaste(h))return;let P=this.processCell(h,g,f,w,this.gos.getCallback("processCellFromClipboard"),!0);h.setDataValue(g,P,z);let{rowIndex:O,rowPinned:G}=h,j=(0,E._createCellId)({rowIndex:O,column:g,rowPinned:G});S[j]=!0,M&&M.addParentNode(h.parent,[g])}copyToClipboard(h={}){this.copyOrCutToClipboard(h)}cutToClipboard(h={},g="api"){this.gos.get("suppressCutToClipboard")||(this.eventSvc.dispatchEvent({type:"cutStart",source:g}),this.copyOrCutToClipboard(h,!0),this.eventSvc.dispatchEvent({type:"cutEnd",source:g}))}copyOrCutToClipboard(h,g){let{includeHeaders:f,includeGroupHeaders:S}=h,{gos:w,focusSvc:M}=this.beans;f==null&&(f=w.get("copyHeadersToClipboard")),S==null&&(S=w.get("copyGroupHeadersToClipboard"));let P={includeHeaders:f,includeGroupHeaders:S},O=w.get("rowSelection"),G=w.get("cellSelection"),j=null;this.shouldCopyCells(G,O)?(this.copySelectedRangeToClipboard(P),j=C.CellRange):this.shouldCopyRows(O)?(this.copySelectedRowsToClipboard(P),j=C.SelectedRows):M.isAnyCellFocused()&&(this.copyFocusedCellToClipboard(P),j=C.FocusedCell),g&&j!==null&&this.clearCellsAfterCopy(j)}shouldCopyCells(h,g){let{rangeSvc:f,selectionSvc:S,gos:w}=this.beans;if(!f||f.isEmpty())return!1;if(h)return!(typeof g=="object"&&g.copySelectedRows&&!(S!=null&&S.isEmpty()));{let M=w.get("suppressCopySingleCellRanges");return!(!f.isMoreThanOneCell()&&M)}}shouldCopyRows(h){var S,w;let{selectionSvc:g,gos:f}=this.beans;return(S=g==null?void 0:g.isEmpty())==null||S?!1:h&&typeof h!="string"?(w=h.copySelectedRows)!=null?w:!1:!f.get("suppressCopyRowsToClipboard")}clearCellsAfterCopy(h){let g=this.beans,{rangeSvc:f,focusSvc:S,eventSvc:w}=g;if(w.dispatchEvent({type:"keyShortcutChangedCellStart"}),h===C.CellRange)f.clearCellRangeCellValues({cellEventSource:"clipboardSvc"});else if(h===C.SelectedRows)this.clearSelectedRows();else{let M=S.getFocusedCell();if(M==null)return;let P=(0,E._getRowNode)(g,M);P&&this.clearCellValue(P,M.column)}w.dispatchEvent({type:"keyShortcutChangedCellEnd"})}clearSelectedRows(){var w;let{selectionSvc:h,visibleCols:g}=this.beans,f=(w=h==null?void 0:h.getSelectedNodes())!=null?w:[],S=g.allCols;for(let M of f)for(let P of S)this.clearCellValue(M,P)}clearCellValue(h,g){if(!g.isCellEditable(h))return;let f=this.beans.valueSvc.getDeleteValue(g,h);h.setDataValue(g,f,"clipboardSvc")}iterateActiveRanges(h,g,f){let S=this.beans.rangeSvc;if(!S||S.isEmpty())return;let w=S.getCellRanges();h?this.iterateActiveRange(w[0],g,f,!0):w.forEach((M,P)=>this.iterateActiveRange(M,g,f,P===w.length-1))}iterateActiveRange(h,g,f,S){let{rangeSvc:w,cellNavigation:M}=this.beans;if(!w)return;let P=w.getRangeStartRow(h),O=w.getRangeEndRow(h);f&&h.columns&&f(h.columns);let G=0,j=!1;for(;!j&&P!=null;){let Y=(0,E._getRowNode)(this.beans,P);j=(0,E._isSameRow)(P,O),g(P,Y,h.columns,G++,j&&S),P=M.getRowBelow(P)}}copySelectedRangeToClipboard(h={}){let g=this.beans.rangeSvc;if(!g||g.isEmpty())return;let f=g.areAllRangesAbleToMerge(),{data:S,cellsToFlash:w}=f?this.buildDataFromMergedRanges(g,h):this.buildDataFromRanges(g,h);this.copyDataToClipboard(S),this.dispatchFlashCells(w)}buildDataFromMergedRanges(h,g){let f=new Set,S=h.getCellRanges(),w=new Map,M=[],P={};S.forEach(Y=>{Y.columns.forEach(ce=>f.add(ce));let{rowPositions:J,cellsToFlash:ne}=this.getRangeRowPositionsAndCellsToFlash(h,Y);J.forEach(ce=>{let fe=`${ce.rowIndex}-${ce.rowPinned||"null"}`;w.get(fe)||(w.set(fe,!0),M.push(ce))}),Object.assign(P,ne)});let O=this.beans.visibleCols.allCols,G=Array.from(f);return G.sort((Y,J)=>{let ne=O.indexOf(Y),ce=O.indexOf(J);return ne-ce}),{data:this.buildExportParams({columns:G,rowPositions:M,includeHeaders:g.includeHeaders,includeGroupHeaders:g.includeGroupHeaders}),cellsToFlash:P}}buildDataFromRanges(h,g){let f=h.getCellRanges(),S=[],w={};return f.forEach(M=>{let{rowPositions:P,cellsToFlash:O}=this.getRangeRowPositionsAndCellsToFlash(h,M);Object.assign(w,O),S.push(this.buildExportParams({columns:M.columns,rowPositions:P,includeHeaders:g.includeHeaders,includeGroupHeaders:g.includeGroupHeaders}))}),{data:S.join(`
`),cellsToFlash:w}}getRangeRowPositionsAndCellsToFlash(h,g){let f=[],S={},w=h.getRangeStartRow(g),M=h.getRangeEndRow(g),P=w;for(;P&&(f.push(P),g.columns.forEach(O=>{let{rowIndex:G,rowPinned:j}=P,Y=(0,E._createCellId)({rowIndex:G,column:O,rowPinned:j});S[Y]=!0}),!(0,E._isSameRow)(P,M));)P=this.beans.cellNavigation.getRowBelow(P);return{rowPositions:f,cellsToFlash:S}}getCellsToFlashFromRowNodes(h){let g=this.beans.visibleCols.allCols,f={};for(let S=0;S<h.length;S++){let{level:w,rowIndex:M,rowPinned:P,sibling:O}=h[S],G=w===-1?O.rowIndex:M;if(G!=null)for(let j=0;j<g.length;j++){let Y=g[j],J=(0,E._createCellId)({rowIndex:G,column:Y,rowPinned:P});f[J]=!0}}return f}copyFocusedCellToClipboard(h={}){let g=this.beans.focusSvc.getFocusedCell();if(g==null)return;let f=(0,E._createCellId)(g),S={rowPinned:g.rowPinned,rowIndex:g.rowIndex},w=g.column,M=this.buildExportParams({columns:[w],rowPositions:[S],includeHeaders:h.includeHeaders,includeGroupHeaders:h.includeGroupHeaders});this.copyDataToClipboard(M),this.dispatchFlashCells({[f]:!0})}copySelectedRowsToClipboard(h={}){var P;let{columnKeys:g,includeHeaders:f,includeGroupHeaders:S}=h,w=this.buildExportParams({columns:g,includeHeaders:f,includeGroupHeaders:S});this.copyDataToClipboard(w);let M=((P=this.beans.selectionSvc)==null?void 0:P.getSelectedNodes())||[];this.dispatchFlashCells(this.getCellsToFlashFromRowNodes(M))}buildExportParams(h){let{columns:g,rowPositions:f,includeHeaders:S=!1,includeGroupHeaders:w=!1}=h,{gos:M,csvCreator:P}=this.beans,O={columnKeys:g,rowPositions:f,skipColumnHeaders:!S,skipColumnGroupHeaders:!w,suppressQuotes:!0,columnSeparator:this.getClipboardDelimiter(),onlySelected:!f,processCellCallback:M.getCallback("processCellForClipboard"),processRowGroupCallback:G=>this.processRowGroupCallback(G),processHeaderCallback:M.getCallback("processHeaderForClipboard"),processGroupHeaderCallback:M.getCallback("processGroupHeaderForClipboard")};return P.getDataAsCsv(O,!0)}processRowGroupCallback({node:h,column:g}){let{gos:f,valueSvc:S,rowGroupColsSvc:w}=this.beans,M=f.get("treeData"),O=(()=>{var Y,J;if(M||!g)return h.key;let j=(Y=h.groupData)==null?void 0:Y[g.getId()];return!j||!h.rowGroupColumn||h.rowGroupColumn.getColDef().useValueFormatterForExport===!1?j:(J=S.formatValue(h.rowGroupColumn,h,j))!=null?J:j})();if(h.footer){let j="";O&&O.length&&(j=` ${O}`),O=`Total${j}`}let G=f.getCallback("processCellForClipboard");if(G){let j=h.rowGroupColumn;return!j&&h.footer&&h.level===-1&&w&&(j=w.columns[0]),G({value:O,node:h,column:j,type:"clipboard",formatValue:Y=>{var J;return(J=S.formatValue(j,h,Y))!=null?J:Y},parseValue:Y=>S.parseValue(j,h,Y,S.getValue(j,h))})}return O}dispatchFlashCells(h){window.setTimeout(()=>{this.eventSvc.dispatchEvent({type:"flashCells",cells:h})},0)}processCell(h,g,f,S,w,M,P){var G;let O=this.beans.valueSvc;return w?w({column:g,node:h,value:f,type:S,formatValue:Y=>{var J;return(J=O.formatValue(g,h!=null?h:null,Y))!=null?J:Y},parseValue:Y=>O.parseValue(g,h!=null?h:null,Y,O.getValue(g,h))}):M&&g.getColDef().useValueParserForImport!==!1?O.parseValue(g,h!=null?h:null,f,O.getValue(g,h)):P&&g.getColDef().useValueFormatterForExport!==!1&&(G=O.formatValue(g,h!=null?h:null,f))!=null?G:f}copyDataToClipboard(h){let g=this.gos.getCallback("sendToClipboard");if(g){g({data:h});return}if(!this.gos.get("suppressClipboardApi")&&navigator.clipboard){navigator.clipboard.writeText(h).catch(S=>{(0,E._warn)(40,{e:S,method:"writeText"}),this.copyDataToClipboardLegacy(h)});return}this.copyDataToClipboardLegacy(h)}copyDataToClipboardLegacy(h){this.executeOnTempElement(g=>{let f=(0,E._getDocument)(this.beans),S=(0,E._getActiveDomElement)(this.beans);g.value=h||" ",g.select(),g.focus({preventScroll:!0}),f.execCommand("copy")||(0,E._warn)(41),S!=null&&S.focus!=null&&S.focus({preventScroll:!0})})}executeOnTempElement(h,g){if(!this.gridCtrl)return;let f=(0,E._getDocument)(this.beans),S=f.createElement("textarea"),w=S.style;w.width="1px",w.height="1px";let M=f.documentElement;w.top=M.scrollTop+"px",w.left=M.scrollLeft+"px",w.position="absolute",w.opacity="0";let P=this.gridCtrl.getGui();P.appendChild(S);try{h(S)}catch(O){(0,E._warn)(42)}g?window.setTimeout(()=>{g(S),P.removeChild(S)},100):P.removeChild(S)}getRangeSize(h){let g=h.getCellRanges(),f=0,S=0;return g.length>0&&(f=h.getRangeStartRow(g[0]).rowIndex,S=h.getRangeEndRow(g[0]).rowIndex),f-S+1}}p.ClipboardService=s},2664:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agPrimaryColsCSS=void 0,p.agPrimaryColsCSS=".ag-column-select{display:flex;flex:3 1 0px;flex-direction:column;overflow:hidden;position:relative}.ag-column-select-header{align-items:center;display:flex;flex:none;gap:var(--ag-widget-horizontal-spacing);height:var(--ag-header-height);padding-left:var(--ag-widget-container-horizontal-padding);padding-right:var(--ag-widget-container-horizontal-padding);position:relative}.ag-column-select-column,.ag-column-select-column-group{align-items:center;display:flex;gap:var(--ag-widget-horizontal-spacing);height:100%;position:relative;&:where(:not(:last-child)){margin-bottom:var(--ag-widget-vertical-spacing)}}:where(.ag-ltr) .ag-column-select-column,:where(.ag-ltr) .ag-column-select-column-group{padding-left:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}:where(.ag-rtl) .ag-column-select-column,:where(.ag-rtl) .ag-column-select-column-group{padding-right:calc(var(--ag-indentation-level)*var(--ag-column-select-indent-size))}.ag-column-select-header-icon{border-radius:var(--ag-border-radius);cursor:pointer;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);&:focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-column-select-header-filter-wrapper{flex:1 1 auto}.ag-column-select-header-filter{width:100%}.ag-column-select-list{flex:1 1 0px;overflow:hidden}:where(.ag-ltr) .ag-column-select-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}:where(.ag-rtl) .ag-column-select-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-spacing)*1.5)}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly{opacity:.5;pointer-events:none}.ag-column-select-virtual-list-viewport{padding:calc(var(--ag-widget-container-vertical-padding)*.5) 0}.ag-column-select-virtual-list-item{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-column-select-column-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-select-checkbox{display:flex}"},1269:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPrimaryColsSelector=p.AgPrimaryCols=void 0;let E=A(6624),z=A(2664),T=A(4312),b=A(5853);class C extends E.Component{constructor(){super(`<div class="ag-column-select">
            <ag-primary-cols-header data-ref="primaryColsHeaderPanel"></ag-primary-cols-header>
            <ag-primary-cols-list data-ref="primaryColsListPanel"></ag-primary-cols-list>
        </div>`,[T.AgPrimaryColsHeaderSelector,b.AgPrimaryColsListSelector]),this.primaryColsHeaderPanel=E.RefPlaceholder,this.primaryColsListPanel=E.RefPlaceholder,this.registerCSS(z.agPrimaryColsCSS)}init(s,c,h){let{primaryColsHeaderPanel:g,primaryColsListPanel:f}=this;g.init(c);let S=c.suppressColumnFilter,w=c.suppressColumnSelectAll;c.suppressColumnExpandAll&&S&&w&&g.setDisplayed(!1),this.addManagedListeners(f,{groupExpanded:P=>{g.setExpandState(P.state),c.onStateUpdated()},selectionChanged:P=>g.setSelectionState(P.state)}),f.init(c,s,h),this.addManagedListeners(g,{expandAll:f.doSetExpandedAll.bind(f,!0),collapseAll:f.doSetExpandedAll.bind(f,!1),selectAll:f.doSetSelectedAll.bind(f,!0),unselectAll:f.doSetSelectedAll.bind(f,!1),filterChanged:P=>f.setFilterText(P.filterText)}),this.positionableFeature=this.createManagedBean(new E.PositionableFeature(this.getGui(),{minHeight:100}))}toggleResizable(s){this.positionableFeature.setResizable(s?{bottom:!0}:!1)}expandGroups(s){this.primaryColsListPanel.setGroupsExpanded(!0,s)}collapseGroups(s){this.primaryColsListPanel.setGroupsExpanded(!1,s)}setColumnLayout(s){this.primaryColsListPanel.setColumnLayout(s)}syncLayoutWithGrid(){this.primaryColsListPanel.onColumnsChanged()}getExpandedGroups(){return this.primaryColsListPanel.getExpandedGroups()}}p.AgPrimaryCols=C,p.AgPrimaryColsSelector={selector:"AG-PRIMARY-COLS",component:C}},4312:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPrimaryColsHeaderSelector=p.AgPrimaryColsHeader=p.ExpandState=void 0;let E=A(6624);var z;(function(C){C[C.EXPANDED=0]="EXPANDED",C[C.COLLAPSED=1]="COLLAPSED",C[C.INDETERMINATE=2]="INDETERMINATE"})(z||(p.ExpandState=z={}));let T=300;class b extends E.Component{constructor(){super(`<div class="ag-column-select-header" role="presentation">
            <div data-ref="eExpand" class="ag-column-select-header-icon"></div>
            <ag-checkbox data-ref="eSelect" class="ag-column-select-header-checkbox"></ag-checkbox>
            <ag-input-text-field class="ag-column-select-header-filter-wrapper" data-ref="eFilterTextField"></ag-input-text-field>
        </div>`,[E.AgCheckboxSelector,E.AgInputTextFieldSelector]),this.eExpand=E.RefPlaceholder,this.eSelect=E.RefPlaceholder,this.eFilterTextField=E.RefPlaceholder}postConstruct(){this.createExpandIcons(),this.addManagedListeners(this.eExpand,{click:this.onExpandClicked.bind(this),keydown:s=>{s.key===E.KeyCode.SPACE&&(s.preventDefault(),this.onExpandClicked())}}),this.addManagedElementListeners(this.eSelect.getInputElement(),{click:this.onSelectClicked.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",()=>this.onFunctionsReadOnlyPropChanged()),this.eFilterTextField.setAutoComplete(!1).onValueChange(()=>this.onFilterTextChanged()),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideOptions.bind(this)});let d=this.getLocaleTextFunc();this.eSelect.setInputAriaLabel(d("ariaColumnSelectAll","Toggle All Columns Visibility")),this.eFilterTextField.setInputAriaLabel(d("ariaFilterColumnsInput","Filter Columns Input")),this.activateTabIndex([this.eExpand])}onFunctionsReadOnlyPropChanged(){let d=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(d),this.eSelect.addOrRemoveCssClass("ag-column-select-column-readonly",d)}init(d){this.params=d;let s=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(s),this.eSelect.addOrRemoveCssClass("ag-column-select-column-readonly",s),this.beans.colModel.ready&&this.showOrHideOptions()}createExpandIcons(){let d=this.beans;this.eExpand.appendChild(this.eExpandChecked=(0,E._createIconNoSpan)("columnSelectOpen",d)),this.eExpand.appendChild(this.eExpandUnchecked=(0,E._createIconNoSpan)("columnSelectClosed",d)),this.eExpand.appendChild(this.eExpandIndeterminate=(0,E._createIconNoSpan)("columnSelectIndeterminate",d)),this.setExpandState(z.EXPANDED)}showOrHideOptions(){var S;let d=this.params,s=!d.suppressColumnFilter,c=!d.suppressColumnSelectAll,h=!d.suppressColumnExpandAll,g=!!((S=this.beans.colModel.colDefCols)!=null&&S.treeDepth),f=this.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(f("searchOoo","Search...")),(0,E._setDisplayed)(this.eFilterTextField.getGui(),s),(0,E._setDisplayed)(this.eSelect.getGui(),c),(0,E._setDisplayed)(this.eExpand,h&&g)}onFilterTextChanged(){this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=(0,E._debounce)(this,()=>{let d=this.eFilterTextField.getValue();this.dispatchLocalEvent({type:"filterChanged",filterText:d})},T)),this.onFilterTextChangedDebounced()}onSelectClicked(){this.dispatchLocalEvent({type:this.selectState?"unselectAll":"selectAll"})}onExpandClicked(){this.dispatchLocalEvent({type:this.expandState===z.EXPANDED?"collapseAll":"expandAll"})}setExpandState(d){this.expandState=d,(0,E._setDisplayed)(this.eExpandChecked,d===z.EXPANDED),(0,E._setDisplayed)(this.eExpandUnchecked,d===z.COLLAPSED),(0,E._setDisplayed)(this.eExpandIndeterminate,d===z.INDETERMINATE)}setSelectionState(d){this.selectState=d,this.eSelect.setValue(this.selectState)}}p.AgPrimaryColsHeader=b,p.AgPrimaryColsHeaderSelector={selector:"AG-PRIMARY-COLS-HEADER",component:b}},5853:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPrimaryColsListSelector=p.AgPrimaryColsList=void 0;let E=A(6624),z=A(6092),T=A(7904),b=A(4312),C=A(2176),d=A(4781),s=A(3234),c=A(4545),h=A(4224);class g{constructor(M){this.items=M}getRowCount(){return this.items.length}getRow(M){return this.items[M]}}let f="ag-column-select-list";class S extends E.Component{wireBeans(M){this.colModel=M.colModel}constructor(){super(`<div class="${f}" role="presentation"></div>`),this.destroyColumnItemFuncs=[],this.hasLoadedInitialState=!1,this.isInitialState=!1}destroy(){this.destroyColumnTree(),super.destroy()}destroyColumnTree(){this.allColsTree=[],this.destroyColumnItemFuncs.forEach(M=>M()),this.destroyColumnItemFuncs=[]}init(M,P,O){this.params=M,this.allowDragging=P,this.eventType=O,M.suppressSyncLayoutWithGrid||this.addManagedEventListeners({columnMoved:this.onColumnsChanged.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.onColumnsChanged.bind(this)});let G=this.fireSelectionChangedEvent.bind(this);this.addManagedEventListeners({columnPivotChanged:G,columnPivotModeChanged:G,columnRowGroupChanged:G,columnValueChanged:G,columnVisible:G,newColumnsLoaded:G}),this.expandGroupsByDefault=!M.contractColumnSelection;let j=this.createManagedBean(new T.VirtualList({cssIdentifier:"column-select",ariaRole:"tree"}));this.virtualList=j,this.appendChild(j.getGui()),j.setComponentCreator((Y,J)=>((0,E._setAriaLevel)(J,Y.depth+1),this.createComponentFromItem(Y,J))),this.colModel.ready&&this.onColumnsChanged(),!M.suppressColumnMove&&this.createManagedBean(new s.PrimaryColsListPanelItemDragFeature(this,j))}createComponentFromItem(M,P){let O=this.allowDragging;if(M.group){let j=new h.ToolPanelColumnGroupComp(M,O,this.eventType,P);return this.createBean(j),j}let G=new c.ToolPanelColumnComp(M,O,this.groupsExist,P);return this.createBean(G),G}onColumnsChanged(){let M=this.params;this.hasLoadedInitialState||(this.hasLoadedInitialState=!0,this.isInitialState=!!M.initialState);let P=this.getExpandedStates(),O=this.colModel.isPivotMode();!M.suppressSyncLayoutWithGrid&&!O?this.buildTreeFromWhatGridIsDisplaying():this.buildTreeFromProvidedColumnDefs(),this.setExpandedStates(P),this.markFilteredColumns(),this.flattenAndFilterModel(),this.isInitialState=!1}getDisplayedColsList(){return this.displayedColsList}getExpandedStates(){let M={};if(this.isInitialState){let{expandedGroupIds:P}=this.params.initialState;return P.forEach(O=>{M[O]=!0}),M}return this.allColsTree?(this.forEachItem(P=>{if(!P.group)return;let O=P.columnGroup;O&&(M[O.getId()]=P.expanded)}),M):{}}setExpandedStates(M){if(!this.allColsTree)return;let{isInitialState:P}=this;this.forEachItem(O=>{if(!O.group)return;let G=O.columnGroup;if(G){let j=M[G.getId()];(j!=null||P)&&(O.expanded=!!j)}})}buildTreeFromWhatGridIsDisplaying(){(0,z.syncLayoutWithGrid)(this.colModel,this.setColumnLayout.bind(this))}setColumnLayout(M){let P=(0,z.toolPanelCreateColumnTree)(this.colModel,M);this.buildListModel(P),this.groupsExist=M.some(O=>O&&typeof O.children!="undefined"),this.markFilteredColumns(),this.flattenAndFilterModel()}buildTreeFromProvidedColumnDefs(){var P;let M=this.colModel;this.buildListModel(M.getColDefColTree()),this.groupsExist=!!((P=M.colDefCols)!=null&&P.treeDepth)}buildListModel(M){let P=this.onColumnExpanded.bind(this),O=ne=>{ne.addEventListener("expandedChanged",P);let ce=ne.removeEventListener.bind(ne,"expandedChanged",P);this.destroyColumnItemFuncs.push(ce)},G=this.beans.colNames,j=(ne,ce,fe)=>{ne.forEach(xe=>{(0,E.isProvidedColumnGroup)(xe)?Y(xe,ce,fe):J(xe,ce,fe)})},Y=(ne,ce,fe)=>{let xe=ne.getColGroupDef();if(xe&&xe.suppressColumnsToolPanel)return;if(ne.isPadding()){j(ne.getChildren(),ce,fe);return}let _e=G.getDisplayNameForProvidedColumnGroup(null,ne,"columnToolPanel"),Fe=new C.ColumnModelItem(_e,ne,ce,!0,this.expandGroupsByDefault);fe.push(Fe),O(Fe),j(ne.getChildren(),ce+1,Fe.children)},J=(ne,ce,fe)=>{if(ne.getColDef()&&ne.getColDef().suppressColumnsToolPanel)return;let Le=G.getDisplayNameForColumn(ne,"columnToolPanel");fe.push(new C.ColumnModelItem(Le,ne,ce))};this.destroyColumnTree(),j(M,0,this.allColsTree)}onColumnExpanded(){this.flattenAndFilterModel()}flattenAndFilterModel(){this.displayedColsList=[];let M=G=>{G.passesFilter&&(this.displayedColsList.push(G),G.group&&G.expanded&&G.children.forEach(M))},P=this.virtualList;this.allColsTree.forEach(M),P.setModel(new g(this.displayedColsList));let O=P.getLastFocusedRow();P.refresh(),O!=null&&this.focusRowIfAlive(O),this.notifyListeners(),this.refreshAriaLabel()}refreshAriaLabel(){let M=this.getLocaleTextFunc(),P=M("ariaColumnPanelList","Column List"),O=M("columns","Columns"),G=this.displayedColsList.length;(0,E._setAriaLabel)(this.virtualList.getAriaElement(),`${P} ${G} ${O}`)}focusRowIfAlive(M){window.setTimeout(()=>{this.isAlive()&&this.virtualList.focusRow(M)},0)}forEachItem(M){let P=G=>{G.forEach(j=>{M(j),j.group&&P(j.children)})},O=this.allColsTree;O&&P(O)}doSetExpandedAll(M){this.forEachItem(P=>{P.group&&(P.expanded=M)})}setGroupsExpanded(M,P){if(!P){this.doSetExpandedAll(M);return}let O=[];this.forEachItem(j=>{if(!j.group)return;let Y=j.columnGroup.getId();P.indexOf(Y)>=0&&(j.expanded=M,O.push(Y))});let G=P.filter(j=>!O.includes(j));G.length>0&&(0,E._warn)(157,{unrecognisedGroupIds:G})}getExpandState(){let M=0,P=0;return this.forEachItem(O=>{O.group&&(O.expanded?M++:P++)}),M>0&&P>0?b.ExpandState.INDETERMINATE:P>0?b.ExpandState.COLLAPSED:b.ExpandState.EXPANDED}doSetSelectedAll(M){(0,d.selectAllChildren)(this.beans,this.allColsTree,M,this.eventType)}getSelectionState(){let M=0,P=0,O=this.colModel.isPivotMode();if(this.forEachItem(G=>{if(G.group||!G.passesFilter)return;let j=G.column,Y=j.getColDef(),J;if(O){if(!j.isAllowPivot()&&!j.isAllowRowGroup()&&!j.isAllowValue())return;J=j.isValueActive()||j.isPivotActive()||j.isRowGroupActive()}else{if(Y.lockVisible)return;J=j.isVisible()}J?M++:P++}),!(M>0&&P>0))return!(M===0||P>0)}setFilterText(M){this.filterText=(0,E._exists)(M)?M.toLowerCase():null,this.markFilteredColumns(),this.flattenAndFilterModel()}markFilteredColumns(){let M=O=>{if(!(0,E._exists)(this.filterText))return!0;let G=O.displayName;return G==null||G.toLowerCase().indexOf(this.filterText)!==-1},P=(O,G)=>{let j=!1;if(O.group){let J=M(O);O.children.forEach(ne=>{let ce=P(ne,J||G);ce&&(j=ce)})}let Y=G||j?!0:M(O);return O.passesFilter=Y,Y};this.allColsTree.forEach(O=>P(O,!1))}notifyListeners(){this.fireGroupExpandedEvent(),this.fireSelectionChangedEvent()}fireGroupExpandedEvent(){let M=this.getExpandState();this.dispatchLocalEvent({type:"groupExpanded",state:M})}fireSelectionChangedEvent(){if(!this.allColsTree)return;let M=this.getSelectionState();this.dispatchLocalEvent({type:"selectionChanged",state:M})}getExpandedGroups(){let M=[];return this.allColsTree&&this.forEachItem(P=>{P.group&&P.expanded&&M.push(P.columnGroup.getId())}),M}}p.AgPrimaryColsList=S,p.AgPrimaryColsListSelector={selector:"AG-PRIMARY-COLS-LIST",component:S}},2176:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnModelItem=void 0;let E=A(6624);class z{constructor(b,C,d,s=!1,c){this.displayName=b,this.depth=d,this.group=s,this.localEventService=new E.LocalEventService,s?(this.columnGroup=C,this._expanded=c,this.children=[]):this.column=C}get expanded(){return!!this._expanded}set expanded(b){b!==this._expanded&&(this._expanded=b,this.localEventService.dispatchEvent({type:"expandedChanged"}))}addEventListener(b,C){this.localEventService.addEventListener(b,C)}removeEventListener(b,C){this.localEventService.removeEventListener(b,C)}}p.ColumnModelItem=z},7367:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.columnToolPanelCSS=void 0,p.columnToolPanelCSS=".ag-column-panel{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.ag-pivot-mode-panel{display:flex;height:var(--ag-header-height)}.ag-pivot-mode-select{align-items:center;display:flex}:where(.ag-ltr) .ag-pivot-mode-select{margin-left:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-pivot-mode-select{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-column-panel-column-select{border-bottom:var(--ag-tool-panel-separator-border)}.ag-column-panel-column-select:where(:nth-child(n+2 of :not(.ag-hidden))){border-top:var(--ag-tool-panel-separator-border)}:where(.ag-column-panel) .ag-column-drop-vertical{flex:1 1 0px;min-height:50px;&:where(:not(.ag-last-column-drop)){border-bottom:var(--ag-tool-panel-separator-border)}}"},4142:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnToolPanel=void 0;let E=A(6624),z=A(1269),T=A(7367);class b extends E.Component{constructor(){super('<div class="ag-column-panel"></div>'),this.initialised=!1,this.childDestroyFuncs=[],this.registerCSS(T.columnToolPanelCSS)}wireBeans(d){this.colToolPanelFactory=d.colToolPanelFactory}setVisible(d){super.setDisplayed(d),d&&!this.initialised&&this.init(this.params)}init(d){let s=this.gos.addGridCommonParams({suppressColumnMove:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1}),c=ge(ge({},s),d);this.params=c;let{childDestroyFuncs:h,colToolPanelFactory:g,gos:f}=this,S=f.isModuleRegistered("SharedPivot"),w=S||f.isModuleRegistered("SharedRowGrouping");!c.suppressPivotMode&&g&&S&&(this.pivotModePanel=g.createPivotModePanel(this,h));let M=this.createBean(new z.AgPrimaryCols);if(this.primaryColsPanel=M,h.push(()=>this.destroyBean(this.primaryColsPanel)),M.init(!0,c,"toolPanelUi"),M.addCssClass("ag-column-panel-column-select"),this.appendChild(M),g){!c.suppressRowGroups&&w&&(this.rowGroupDropZonePanel=g.createRowGroupPanel(this,h)),!c.suppressValues&&w&&(this.valuesDropZonePanel=g.createValuesPanel(this,h)),!c.suppressPivots&&S&&(this.pivotDropZonePanel=g.createPivotPanel(this,h)),this.setLastVisible();let[P]=this.addManagedEventListeners({columnPivotModeChanged:()=>{this.resetChildrenHeight(),this.setLastVisible()}});h.push(()=>P())}this.initialised=!0}setPivotModeSectionVisible(d){let s=this.colToolPanelFactory;s&&(this.pivotModePanel=s.setPanelVisible(this.pivotModePanel,d,s.createPivotModePanel.bind(s,this,this.childDestroyFuncs,!0)),this.setLastVisible())}setRowGroupsSectionVisible(d){let s=this.colToolPanelFactory;s&&(this.rowGroupDropZonePanel=s.setPanelVisible(this.rowGroupDropZonePanel,d,s.createRowGroupPanel.bind(s,this,this.childDestroyFuncs)),this.setLastVisible())}setValuesSectionVisible(d){let s=this.colToolPanelFactory;s&&(this.valuesDropZonePanel=s.setPanelVisible(this.valuesDropZonePanel,d,s.createValuesPanel.bind(s,this,this.childDestroyFuncs)),this.setLastVisible())}setPivotSectionVisible(d){var c;let s=this.colToolPanelFactory;s&&(this.pivotDropZonePanel=s.setPanelVisible(this.pivotDropZonePanel,d,s.createPivotPanel.bind(s,this,this.childDestroyFuncs)),(c=this.pivotDropZonePanel)==null||c.setDisplayed(d),this.setLastVisible())}setResizers(){[this.primaryColsPanel,this.rowGroupDropZonePanel,this.valuesDropZonePanel,this.pivotDropZonePanel].forEach(d=>{if(!d)return;let s=d.getGui();d.toggleResizable(!s.classList.contains("ag-last-column-drop")&&!s.classList.contains("ag-hidden"))})}setLastVisible(){let d=this.getGui();Array.prototype.slice.call(d.querySelectorAll(".ag-column-drop")).forEach(g=>g.classList.remove("ag-last-column-drop"));let c=d.querySelectorAll(".ag-column-drop:not(.ag-hidden)"),h=(0,E._last)(c);h&&h.classList.add("ag-last-column-drop"),this.setResizers()}resetChildrenHeight(){let s=this.getGui().children;for(let c=0;c<s.length;c++){let{style:h}=s[c];h.removeProperty("height"),h.removeProperty("flex")}}expandColumnGroups(d){this.primaryColsPanel.expandGroups(d)}collapseColumnGroups(d){this.primaryColsPanel.collapseGroups(d)}setColumnLayout(d){this.primaryColsPanel.setColumnLayout(d)}syncLayoutWithGrid(){this.primaryColsPanel.syncLayoutWithGrid()}destroyChildren(){let d=this.childDestroyFuncs;d.forEach(s=>s()),d.length=0,(0,E._clearElement)(this.getGui())}refresh(d){return this.destroyChildren(),this.init(d),!0}getState(){return{expandedGroupIds:this.primaryColsPanel.getExpandedGroups()}}destroy(){this.destroyChildren(),super.destroy()}}p.ColumnToolPanel=b},8698:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnToolPanelFactory=void 0;let E=A(6624),z=A(6491),T=A(4552),b=A(3392),C=A(4465);class d extends E.BeanStub{constructor(){super(...arguments),this.beanName="colToolPanelFactory"}setPanelVisible(c,h,g){return c?c.setDisplayed(h):h&&(c=g()),c}createRowGroupPanel(c,h){return this.createPanel(c,h,new T.RowGroupDropZonePanel(!1))}createValuesPanel(c,h){return this.createPanel(c,h,new b.ValuesDropZonePanel(!1))}createPivotPanel(c,h){return this.createPanel(c,h,new z.PivotDropZonePanel(!1))}createPivotModePanel(c,h,g){return this.createPanel(c,h,new C.PivotModePanel,g)}createPanel(c,h,g,f){return g=c.createBean(g),h.push(()=>c.destroyBean(g)),f?c.prependChild(g):c.appendChild(g),g}}p.ColumnToolPanelFactory=d},6455:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnsToolPanelModule=void 0;let E=A(6624),z=A(9206),T=A(6358),b=A(7205),C=A(3375),d=A(4142),s=A(8698);p.ColumnsToolPanelModule={moduleName:"ColumnsToolPanel",version:b.VERSION,beans:[s.ColumnToolPanelFactory],userComponents:{agColumnsToolPanel:d.ColumnToolPanel},icons:{columnsToolPanel:"columns",menuAddRowGroup:"group",menuRemoveRowGroup:"group",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate"},dependsOn:[z.EnterpriseCoreModule,T.SideBarModule,E._ColumnMoveModule,E._SharedDragAndDropModule,E._PopupModule,C.MenuItemModule]}},4781:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createPivotState=p.updateColumns=p.setAllColumns=p.selectAllChildren=void 0;let E=A(6624);function z(g,f,S,w){let M=b(f);T(g,M,S,w)}p.selectAllChildren=z;function T(g,f,S,w){g.colModel.isPivotMode()?d(g,f,S,w):C(g,f,S,w)}p.setAllColumns=T;function b(g){let f=[],S=w=>{w.forEach(M=>{M.passesFilter&&(M.group?S(M.children):f.push(M.column))})};return S(g),f}function C(g,f,S,w){var P;let M=[];f.forEach(O=>{O.getColDef().lockVisible||O.isVisible()!=S&&M.push({colId:O.getId(),hide:!S})}),M.length>0&&(0,E._applyColumnState)(g,{state:M},w),(P=g.selectionColSvc)==null||P.refreshVisibility(w)}function d(g,f,S,w){s(g,f,S,w)}function s(g,f,S,w){let M=[],G=S?j=>{var Y;if(!j.isAnyFunctionActive())if(j.isAllowValue()){let J=typeof j.getAggFunc()=="string"?j.getAggFunc():(Y=g.aggFuncSvc)==null?void 0:Y.getDefaultAggFunc(j);M.push({colId:j.getId(),aggFunc:J})}else j.isAllowRowGroup()?M.push({colId:j.getId(),rowGroup:!0}):j.isAllowPivot()&&M.push({colId:j.getId(),pivot:!0})}:j=>{(j.isPivotActive()||j.isRowGroupActive()||j.isValueActive())&&M.push({colId:j.getId(),pivot:!1,rowGroup:!1,aggFunc:null})};f.forEach(G),M.length>0&&(0,E._applyColumnState)(g,{state:M},w)}function c(g,f){let{columns:S,visibleState:w,pivotState:M,eventType:P}=f,O=S.map(G=>{let j=G.getColId();if(g.colModel.isPivotMode()){let Y=M==null?void 0:M[j];return{colId:j,pivot:Y==null?void 0:Y.pivot,rowGroup:Y==null?void 0:Y.rowGroup,aggFunc:Y==null?void 0:Y.aggFunc}}else return{colId:j,hide:!(w!=null&&w[j])}});(0,E._applyColumnState)(g,{state:O},P)}p.updateColumns=c;function h(g){return{pivot:g.isPivotActive(),rowGroup:g.isRowGroupActive(),aggFunc:g.isValueActive()?g.getAggFunc():void 0}}p.createPivotState=h},4465:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotModePanel=void 0;let E=A(6624);class z extends E.Component{constructor(){super(...arguments),this.cbPivotMode=E.RefPlaceholder}createTemplate(){return`<div class="ag-pivot-mode-panel">
                <ag-toggle-button data-ref="cbPivotMode" class="ag-pivot-mode-select"></ag-toggle-button>
            </div>`}postConstruct(){this.setTemplate(this.createTemplate(),[E.AgToggleButtonSelector]);let b=this.cbPivotMode,{colModel:C,ctrlsSvc:d,gos:s}=this.beans;b.setValue(C.isPivotMode());let c=this.getLocaleTextFunc();b.setLabel(c("pivotMode","Pivot Mode"));let h=()=>{let f=!!b.getValue();f!==C.isPivotMode()&&(s.updateGridOptions({options:{pivotMode:f},source:"toolPanelUi"}),d.getHeaderRowContainerCtrls().forEach(S=>S.refresh()))},g=()=>{let f=C.isPivotMode();b.setValue(f)};this.addManagedListeners(b,{fieldValueChanged:h}),this.addManagedEventListeners({newColumnsLoaded:g,columnPivotModeChanged:g})}}p.PivotModePanel=z},3234:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PrimaryColsListPanelItemDragFeature=void 0;let E=A(6624),z=A(5760),T=A(4224);class b extends E.BeanStub{constructor(d,s){super(),this.comp=d,this.virtualList=s}postConstruct(){this.createManagedBean(new z.VirtualListDragFeature(this.comp,this.virtualList,{dragSourceType:E.DragSourceType.ToolPanel,listItemDragStartEvent:"columnPanelItemDragStart",listItemDragEndEvent:"columnPanelItemDragEnd",eventSource:this.eventSvc,getCurrentDragValue:d=>this.getCurrentDragValue(d),isMoveBlocked:d=>this.isMoveBlocked(d),getNumRows:d=>d.getDisplayedColsList().length,moveItem:(d,s)=>this.moveItem(this.getCurrentColumnsBeingMoved(d),s)}))}getCurrentDragValue(d){return d.column}getCurrentColumnsBeingMoved(d){return(0,E.isProvidedColumnGroup)(d)?d.getLeafColumns():d?[d]:[]}isMoveBlocked(d){return this.gos.get("suppressMovableColumns")?!0:!!this.getCurrentColumnsBeingMoved(d).find(g=>{let f=g.getColDef();return!!f.suppressMovable||!!f.lockPosition})}moveItem(d,s){var S;if(!s)return;let{component:c}=s,h=null,g=s.position==="top";if(c instanceof T.ToolPanelColumnGroupComp?(h=c.getColumns()[0],g=!0):c&&(h=c.column),!h)return;let f=this.getMoveTargetIndex({currentColumns:d,lastHoveredColumn:h,isBefore:g});f!=null&&((S=this.beans.colMoves)==null||S.moveColumns(d,f,"toolPanelUi"))}getMoveTargetIndex(d){let{currentColumns:s,lastHoveredColumn:c,isBefore:h}=d;if(!c||!s)return null;let g=this.beans.colModel.getCols(),f=g.indexOf(c),S=h?f:f+1,w=this.getMoveDiff(g,s,S);return S-w}getMoveDiff(d,s,c){if(!s)return 0;let h=s[0],g=s.length;return d.indexOf(h)<c?g:0}}p.PrimaryColsListPanelItemDragFeature=b},4545:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelColumnComp=void 0;let E=A(6624),z=A(4781),T=A(334);class b extends E.Component{constructor(d,s,c,h){super(),this.allowDragging=s,this.groupsExist=c,this.focusWrapper=h,this.eLabel=E.RefPlaceholder,this.cbSelect=E.RefPlaceholder,this.processingColumnStateChange=!1;let{column:g,depth:f,displayName:S}=d;this.column=g,this.columnDept=f,this.displayName=S}postConstruct(){this.setTemplate(`<div class="ag-column-select-column">
                <ag-checkbox data-ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>
                <span class="ag-column-select-column-label" data-ref="eLabel"></span>
            </div>`,[E.AgCheckboxSelector]);let{beans:d,cbSelect:s,displayName:c,eLabel:h,columnDept:g,groupsExist:f,column:S,gos:w,focusWrapper:M}=this,P=(0,E._createIconNoSpan)("columnDrag",d);this.eDragHandle=P,P.classList.add("ag-drag-handle","ag-column-select-column-drag-handle");let O=s.getGui(),G=s.getInputElement();O.insertAdjacentElement("afterend",P),G.setAttribute("tabindex","-1");let j=(0,E._escapeString)(c);h.innerHTML=j,f&&this.addCssClass("ag-column-select-add-group-indent"),this.addCssClass(`ag-column-select-indent-${g}`),this.getGui().style.setProperty("--ag-indentation-level",String(g)),this.tooltipFeature=this.createOptionalManagedBean(d.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"columnToolPanelColumn",getColDef:()=>S.getColDef(),shouldDisplayTooltip:(0,E._getShouldDisplayTooltip)(w,()=>h)})),this.setupDragging();let Y=this.onColumnStateChanged.bind(this);this.addManagedEventListeners({columnPivotModeChanged:Y}),this.addManagedListeners(S,{columnValueChanged:Y,columnPivotChanged:Y,columnRowGroupChanged:Y,visibleChanged:Y}),this.addManagedListeners(M,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addManagedListeners(s,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedElementListeners(h,{click:this.onLabelClicked.bind(this)}),this.onColumnStateChanged(),this.refreshAriaLabel(),this.setupTooltip(),(0,E._getToolPanelClassesFromColDef)(S.getColDef(),w,S,null).forEach(ne=>this.addOrRemoveCssClass(ne,!0))}getColumn(){return this.column}setupTooltip(){let d=()=>{var s;return(s=this.tooltipFeature)==null?void 0:s.setTooltipAndRefresh(this.column.getColDef().headerTooltip)};d(),this.addManagedEventListeners({newColumnsLoaded:d})}onContextMenu(d){let{column:s,gos:c}=this;if(c.get("functionsReadOnly"))return;let h=this.createBean(new T.ToolPanelContextMenu(s,d,this.focusWrapper));this.addDestroyFunc(()=>{h.isAlive()&&this.destroyBean(h)})}handleKeyDown(d){d.key===E.KeyCode.SPACE&&(d.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected()))}onLabelClicked(){if(this.gos.get("functionsReadOnly"))return;let d=!this.cbSelect.getValue();this.onChangeCommon(d)}onCheckboxChanged(d){this.onChangeCommon(d.selected)}onChangeCommon(d){this.cbSelect.isReadOnly()||(this.refreshAriaLabel(),!this.processingColumnStateChange&&(0,z.setAllColumns)(this.beans,[this.column],d,"toolPanelUi"))}refreshAriaLabel(){let{cbSelect:d,focusWrapper:s,displayName:c}=this,h=this.getLocaleTextFunc(),g=h("ariaColumn","Column"),f=d.getValue()?h("ariaVisible","visible"):h("ariaHidden","hidden"),S=h("ariaToggleVisibility","Press SPACE to toggle visibility");(0,E._setAriaLabel)(s,`${c} ${g}`),this.cbSelect.setInputAriaLabel(`${S} (${f})`),(0,E._setAriaDescribedBy)(s,d.getInputElement().id)}setupDragging(){let d=this.eDragHandle;if(!this.allowDragging){(0,E._setDisplayed)(d,!1);return}let s=this.beans,{gos:c,eventSvc:h,dragAndDrop:g}=s,f=!c.get("suppressDragLeaveHidesColumns"),S={type:E.DragSourceType.ToolPanel,eElement:d,dragItemName:this.displayName,getDefaultIconName:()=>f?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{f=!c.get("suppressDragLeaveHidesColumns"),h.dispatchEvent({type:"columnPanelItemDragStart",column:this.column})},onDragStopped:()=>{h.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:w=>{f&&(0,z.updateColumns)(s,{columns:[this.column],visibleState:w==null?void 0:w.visibleState,pivotState:w==null?void 0:w.pivotState,eventType:"toolPanelUi"})},onGridExit:()=>{f&&this.onChangeCommon(!1)}};g.addDragSource(S,!0),this.addDestroyFunc(()=>g.removeDragSource(S))}createDragItem(){let d=this.column.getColId(),s={[d]:this.column.isVisible()},c={[d]:(0,z.createPivotState)(this.column)};return{columns:[this.column],visibleState:s,pivotState:c}}onColumnStateChanged(){this.processingColumnStateChange=!0;let d=this.beans.colModel.isPivotMode();if(d){let h=this.column.isAnyFunctionActive();this.cbSelect.setValue(h)}else this.cbSelect.setValue(this.column.isVisible());let s=!0,c=!0;if(d){let h=this.gos.get("functionsReadOnly"),g=!this.column.isAnyFunctionAllowed();s=!h&&!g,c=s}else{let{enableRowGroup:h,enableValue:g,lockPosition:f,suppressMovable:S,lockVisible:w}=this.column.getColDef(),M=!!h||!!g,P=!!f||!!S;s=!w,c=M||!P}this.cbSelect.setReadOnly(!s),this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!c),this.addOrRemoveCssClass("ag-column-select-column-readonly",!c&&!s),this.cbSelect.setPassive(!1),this.processingColumnStateChange=!1}getDisplayName(){return this.displayName}onSelectAllChanged(d){let s=this.cbSelect;d!==s.getValue()&&(s.isReadOnly()||s.toggle())}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}isExpandable(){return!1}setExpanded(d){(0,E._warn)(158)}}p.ToolPanelColumnComp=b},4224:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelColumnGroupComp=void 0;let E=A(6624),z=A(4781),T=A(334);class b extends E.Component{constructor(d,s,c,h){super(),this.modelItem=d,this.allowDragging=s,this.eventType=c,this.focusWrapper=h,this.cbSelect=E.RefPlaceholder,this.eLabel=E.RefPlaceholder,this.eGroupOpenedIcon=E.RefPlaceholder,this.eGroupClosedIcon=E.RefPlaceholder,this.eColumnGroupIcons=E.RefPlaceholder,this.processingColumnStateChange=!1;let{columnGroup:g,depth:f,displayName:S}=d;this.columnGroup=g,this.columnDepth=f,this.displayName=S}postConstruct(){this.setTemplate(`<div class="ag-column-select-column-group">
                <span class="ag-column-group-icons" data-ref="eColumnGroupIcons" >
                    <span class="ag-column-group-closed-icon" data-ref="eGroupClosedIcon"></span>
                    <span class="ag-column-group-opened-icon" data-ref="eGroupOpenedIcon"></span>
                </span>
                <ag-checkbox data-ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>
                <span class="ag-column-select-column-label" data-ref="eLabel"></span>
            </div>`,[E.AgCheckboxSelector]);let{beans:d,cbSelect:s,eLabel:c,displayName:h,columnDepth:g,modelItem:f,focusWrapper:S,columnGroup:w}=this,{registry:M,gos:P}=d,O=(0,E._createIconNoSpan)("columnDrag",d);this.eDragHandle=O,O.classList.add("ag-drag-handle","ag-column-select-column-group-drag-handle");let G=s.getGui(),j=s.getInputElement();G.insertAdjacentElement("afterend",O),j.setAttribute("tabindex","-1"),c.innerHTML=h!=null?h:"",this.setupExpandContract(),this.addCssClass("ag-column-select-indent-"+g),this.getGui().style.setProperty("--ag-indentation-level",String(g)),this.tooltipFeature=this.createOptionalManagedBean(M.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"columnToolPanelColumnGroup",shouldDisplayTooltip:(0,E._getShouldDisplayTooltip)(P,()=>c)})),this.addManagedEventListeners({columnPivotModeChanged:this.onColumnStateChanged.bind(this)}),this.addManagedElementListeners(c,{click:this.onLabelClicked.bind(this)}),this.addManagedListeners(s,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedListeners(f,{expandedChanged:this.onExpandChanged.bind(this)}),this.addManagedListeners(S,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),this.refreshAriaExpanded(),this.refreshAriaLabel(),this.setupTooltip(),(0,E._getToolPanelClassesFromColDef)(w.getColGroupDef(),P,null,w).forEach(J=>this.addOrRemoveCssClass(J,!0))}getColumns(){return this.columnGroup.getLeafColumns()}setupTooltip(){let d=this.columnGroup.getColGroupDef();if(!d)return;let s=()=>{var c;return(c=this.tooltipFeature)==null?void 0:c.setTooltipAndRefresh(d.headerTooltip)};s(),this.addManagedEventListeners({newColumnsLoaded:s})}handleKeyDown(d){switch(d.key){case E.KeyCode.LEFT:d.preventDefault(),this.modelItem.expanded=!1;break;case E.KeyCode.RIGHT:d.preventDefault(),this.modelItem.expanded=!0;break;case E.KeyCode.SPACE:d.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected());break}}onContextMenu(d){let{columnGroup:s,gos:c}=this;if(c.get("functionsReadOnly"))return;let h=this.createBean(new T.ToolPanelContextMenu(s,d,this.focusWrapper));this.addDestroyFunc(()=>{h.isAlive()&&this.destroyBean(h)})}addVisibilityListenersToAllChildren(){let d=this.onColumnStateChanged.bind(this);this.columnGroup.getLeafColumns().forEach(s=>{this.addManagedListeners(s,{visibleChanged:d,columnValueChanged:d,columnPivotChanged:d,columnRowGroupChanged:d})})}setupDragging(){if(!this.allowDragging){(0,E._setDisplayed)(this.eDragHandle,!1);return}let d=this.beans,{gos:s,eventSvc:c,dragAndDrop:h}=d,g=!s.get("suppressDragLeaveHidesColumns"),f={type:E.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,getDefaultIconName:()=>g?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{g=!s.get("suppressDragLeaveHidesColumns"),c.dispatchEvent({type:"columnPanelItemDragStart",column:this.columnGroup})},onDragStopped:()=>{c.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:S=>{g&&(0,z.updateColumns)(d,{columns:this.columnGroup.getLeafColumns(),visibleState:S==null?void 0:S.visibleState,pivotState:S==null?void 0:S.pivotState,eventType:this.eventType})},onGridExit:()=>{g&&this.onChangeCommon(!1)}};h.addDragSource(f,!0),this.addDestroyFunc(()=>h.removeDragSource(f))}createDragItem(){let d=this.columnGroup.getLeafColumns(),s={},c={};return d.forEach(h=>{let g=h.getId();s[g]=h.isVisible(),c[g]=(0,z.createPivotState)(h)}),{columns:d,visibleState:s,pivotState:c}}setupExpandContract(){let{beans:d,eGroupClosedIcon:s,eGroupOpenedIcon:c,eColumnGroupIcons:h}=this;s.appendChild((0,E._createIcon)("columnSelectClosed",d,null)),c.appendChild((0,E._createIcon)("columnSelectOpen",d,null));let g=this.onExpandOrContractClicked.bind(this);this.addManagedElementListeners(s,{click:g}),this.addManagedElementListeners(c,{click:g});let f=new E.TouchListener(h,!0);this.addManagedListeners(f,{tap:g}),this.addDestroyFunc(f.destroy.bind(f))}onLabelClicked(){let d=!this.cbSelect.getValue();this.onChangeCommon(d)}onCheckboxChanged(d){this.onChangeCommon(d.selected)}getVisibleLeafColumns(){let d=[],s=c=>{c.forEach(h=>{h.passesFilter&&(h.group?s(h.children):d.push(h.column))})};return s(this.modelItem.children),d}onChangeCommon(d){this.refreshAriaLabel(),!this.processingColumnStateChange&&(0,z.selectAllChildren)(this.beans,this.modelItem.children,d,this.eventType)}refreshAriaLabel(){let{cbSelect:d,focusWrapper:s,displayName:c}=this,h=this.getLocaleTextFunc(),g=h("ariaColumnGroup","Column Group"),f=d.getValue(),S=f===void 0?h("ariaIndeterminate","indeterminate"):f?h("ariaVisible","visible"):h("ariaHidden","hidden"),w=h("ariaToggleVisibility","Press SPACE to toggle visibility");(0,E._setAriaLabel)(s,`${c} ${g}`),d.setInputAriaLabel(`${w} (${S})`),(0,E._setAriaDescribedBy)(s,d.getInputElement().id)}onColumnStateChanged(){let d=this.workOutSelectedValue(),s=this.workOutReadOnlyValue();this.processingColumnStateChange=!0;let c=this.cbSelect;c.setValue(d),c.setReadOnly(s),this.addOrRemoveCssClass("ag-column-select-column-group-readonly",s),this.processingColumnStateChange=!1}workOutSelectedValue(){let d=this.beans.colModel.isPivotMode(),s=this.getVisibleLeafColumns(),c=0,h=0;if(s.forEach(g=>{!d&&g.getColDef().lockVisible||(this.isColumnChecked(g,d)?c++:h++)}),!(c>0&&h>0))return c>0}workOutReadOnlyValue(){let d=this.beans.colModel.isPivotMode(),s=0;return this.columnGroup.getLeafColumns().forEach(c=>{d?c.isAnyFunctionAllowed()&&s++:c.getColDef().lockVisible||s++}),s===0}isColumnChecked(d,s){if(s){let c=d.isPivotActive(),h=d.isRowGroupActive(),g=d.isValueActive();return c||h||g}return d.isVisible()}onExpandOrContractClicked(){let d=this.modelItem,s=d.expanded;d.expanded=!s}onExpandChanged(){this.setOpenClosedIcons(),this.refreshAriaExpanded()}setOpenClosedIcons(){let d=this.modelItem.expanded;(0,E._setDisplayed)(this.eGroupClosedIcon,!d),(0,E._setDisplayed)(this.eGroupOpenedIcon,d)}refreshAriaExpanded(){(0,E._setAriaExpanded)(this.focusWrapper,this.modelItem.expanded)}getDisplayName(){return this.displayName}onSelectAllChanged(d){let s=this.cbSelect,c=s.getValue();!s.isReadOnly()&&(d&&!c||!d&&c)&&s.toggle()}isSelected(){return this.cbSelect.getValue()}isSelectable(){return!this.cbSelect.isReadOnly()}setSelected(d){this.cbSelect.setValue(d,!0)}}p.ToolPanelColumnGroupComp=b},334:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelContextMenu=void 0;let E=A(6624),z=A(8105),T=A(9476);class b extends E.Component{constructor(d,s,c){super('<div class="ag-menu"></div>'),this.column=d,this.mouseEvent=s,this.parentEl=c,this.displayName=null}postConstruct(){let{column:d,beans:{colNames:s}}=this;this.initializeProperties(d);let c;if((0,E.isColumn)(d)?c=s.getDisplayNameForColumn(d,"columnToolPanel"):c=s.getDisplayNameForProvidedColumnGroup(null,d,"columnToolPanel"),this.displayName=c,this.buildMenuItemMap(),this.isActive()){this.mouseEvent.preventDefault();let h=this.getMappedMenuItems();if(h.length===0)return;this.displayContextMenu(h)}}initializeProperties(d){let s;(0,E.isProvidedColumnGroup)(d)?s=d.getLeafColumns():s=[d],this.columns=s,this.allowGrouping=s.some(c=>c.isPrimary()&&c.isAllowRowGroup()),this.allowValues=s.some(c=>c.isPrimary()&&c.isAllowValue()),this.allowPivoting=this.beans.colModel.isPivotMode()&&s.some(c=>c.isPrimary()&&c.isAllowPivot())}buildMenuItemMap(){let d=this.getLocaleTextFunc(),{beans:s,displayName:c}=this,{rowGroupColsSvc:h,valueColsSvc:g,pivotColsSvc:f,colModel:S}=s,w=new Map;this.menuItemMap=w,w.set("rowGroup",{allowedFunction:M=>M.isPrimary()&&M.isAllowRowGroup()&&!(0,z.isRowGroupColLocked)(M,s),activeFunction:M=>M.isRowGroupActive(),activateLabel:()=>`${d("groupBy","Group by")} ${c}`,deactivateLabel:()=>`${d("ungroupBy","Un-Group by")} ${c}`,activateFunction:()=>h==null?void 0:h.setColumns(this.addColumnsToList(h.columns),"toolPanelUi"),deActivateFunction:()=>h==null?void 0:h.setColumns(this.removeColumnsFromList(h.columns),"toolPanelUi"),addIcon:"menuAddRowGroup",removeIcon:"menuRemoveRowGroup"}),w.set("value",{allowedFunction:M=>M.isPrimary()&&M.isAllowValue(),activeFunction:M=>M.isValueActive(),activateLabel:()=>d("addToValues",`Add ${c} to values`,[c]),deactivateLabel:()=>d("removeFromValues",`Remove ${c} from values`,[c]),activateFunction:()=>g==null?void 0:g.setColumns(this.addColumnsToList(g.columns),"toolPanelUi"),deActivateFunction:()=>g==null?void 0:g.setColumns(this.removeColumnsFromList(g.columns),"toolPanelUi"),addIcon:"valuePanel",removeIcon:"valuePanel"}),w.set("pivot",{allowedFunction:M=>S.isPivotMode()&&M.isPrimary()&&M.isAllowPivot(),activeFunction:M=>M.isPivotActive(),activateLabel:()=>d("addToLabels",`Add ${c} to labels`,[c]),deactivateLabel:()=>d("removeFromLabels",`Remove ${c} from labels`,[c]),activateFunction:()=>f==null?void 0:f.setColumns(this.addColumnsToList(f.columns),"toolPanelUi"),deActivateFunction:()=>f==null?void 0:f.setColumns(this.removeColumnsFromList(f.columns),"toolPanelUi"),addIcon:"pivotPanel",removeIcon:"pivotPanel"})}addColumnsToList(d){return[...d].concat(this.columns.filter(s=>d.indexOf(s)===-1))}removeColumnsFromList(d){return d.filter(s=>this.columns.indexOf(s)===-1)}displayContextMenu(d){let s=this.getGui(),c=this.createBean(new T.AgMenuList),h=this.getLocaleTextFunc(),g=()=>{};s.appendChild(c.getGui()),c.addMenuItems(d),c.addManagedListeners(c,{closeMenu:()=>{this.parentEl.focus(),g()}});let f=this.beans.popupSvc,S=f.addPopup({modal:!0,eChild:s,closeOnEsc:!0,afterGuiAttached:()=>(0,E._focusInto)(c.getGui()),ariaLabel:h("ariaLabelContextMenu","Context Menu"),closedCallback:w=>{w instanceof KeyboardEvent&&this.parentEl.focus(),this.destroyBean(c)}});S&&(g=S.hideFunc),f.positionPopupUnderMouseEvent({type:"columnContextMenu",mouseEvent:this.mouseEvent,ePopup:s})}isActive(){return this.allowGrouping||this.allowValues||this.allowPivoting}getMappedMenuItems(){let d=[],{menuItemMap:s,columns:c,displayName:h,beans:g}=this;for(let f of s.values()){let S=c.some(M=>f.allowedFunction(M)&&!f.activeFunction(M)),w=c.some(M=>f.allowedFunction(M)&&f.activeFunction(M));S&&d.push({name:f.activateLabel(h),icon:(0,E._createIconNoSpan)(f.addIcon,g,null),action:()=>f.activateFunction()}),w&&d.push({name:f.deactivateLabel(h),icon:(0,E._createIconNoSpan)(f.removeIcon,g,null),action:()=>f.deActivateFunction()})}return d}}p.ToolPanelContextMenu=b},2805:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.numberFormatMap=p.INCH_TO_EMU=void 0,p.INCH_TO_EMU=9525,p.numberFormatMap={0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49}},1842:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.convertLegacyVerticalAlignment=p.convertLegacyHorizontalAlignment=p.convertLegacyBorder=p.convertLegacyColor=p.convertLegacyPattern=void 0;let A=f=>{switch(f){case 1:return"thin";case 2:return"medium";case 3:return"thick";default:return"hair"}},E={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot",Continuous:"Continuous"},z=["Dashed","DashDot","DashDotDot"],T={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinDiagStripe:"lightUp",ThinHorzCross:"lightGrid",ThinDiagCross:"lightTrellis",Gray125:"gray125",Gray0625:"gray0625"},b={Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"},C={Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"},d=f=>f?T[f]||f:"none";p.convertLegacyPattern=d;let s=f=>f==null?f:(f.charAt(0)==="#"&&(f=f.substring(1)),f.length===6?"FF"+f:f);p.convertLegacyColor=s;let c=(f,S)=>{if(!f)return"thin";let w=A(S);if(f==="Continuous")return w;let M=E[f];return w==="medium"&&z.some(P=>P===M)?`medium${M}`:`${M.charAt(0).toLowerCase()}${M.substring(1)}`};p.convertLegacyBorder=c;let h=f=>b[f]||"general";p.convertLegacyHorizontalAlignment=h;let g=f=>C[f]||void 0;p.convertLegacyVerticalAlignment=g},3237:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.buildSharedString=p.replaceInvisibleCharacters=p.getExcelColumnName=p.createXmlPart=p.setExcelImageTotalHeight=p.setExcelImageTotalWidth=p.getHeightFromProperty=p.getFontFamilyId=p.pixelsToEMU=p.pointsToPixel=void 0;let E=A(6624),z=A(2805),T=A(5048),b=M=>Math.round(M*96/72);p.pointsToPixel=b;let C=M=>Math.ceil(M*z.INCH_TO_EMU);p.pixelsToEMU=C;let d=M=>{if(M===void 0)return;let O=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(M||"Automatic");return Math.max(O,0)};p.getFontFamilyId=d;let s=(M,P)=>{if(!P)return;let O;return typeof P=="number"?O=P:O=P({rowIndex:M}),O};p.getHeightFromProperty=s;let c=(M,P)=>{let{colSpan:O,column:G}=M.position;if(M.width)if(O){let j=P.slice(G-1,G+O-1),Y=0;for(let J=0;J<j.length;J++){let ne=j[J].getActualWidth();if(M.width<Y+ne){M.position.colSpan=J+1,M.totalWidth=M.width,M.width=M.totalWidth-Y;break}Y+=ne}}else M.totalWidth=M.width};p.setExcelImageTotalWidth=c;let h=(M,P)=>{let{rowSpan:O,row:G}=M.position;if(M.height)if(O){let j=0,Y=0;for(let J=G;J<G+O;J++){let ne=(0,p.pointsToPixel)((0,p.getHeightFromProperty)(J,P)||20);if(M.height<j+ne){M.position.rowSpan=Y+1,M.totalHeight=M.height,M.height=M.totalHeight-j;break}j+=ne,Y++}}else M.totalHeight=M.height};p.setExcelImageTotalHeight=h;let g=(M,P)=>{let O=(0,T.createXmlHeader)({encoding:"UTF-8",standalone:"yes"}),G=(0,T.createXml)(M);return P?G:`${O}${G}`};p.createXmlPart=g;let f=M=>{let G=String.fromCharCode,j=Math.floor(M/26),Y=M%26;return!j||M===26?G(65+M-1):Y?j<26?G(65+j-1)+G(65+Y-1):(0,p.getExcelColumnName)(j)+G(65+Y-1):(0,p.getExcelColumnName)(j-1)+"Z"};p.getExcelColumnName=f;let S=M=>{if(M==null)return null;let P="";for(let O=0;O<M.length;O++){let G=M.charCodeAt(O);if(G>=0&&G<=31&&G!==10){let J=`_x${G.toString(16).toUpperCase().padStart(4,"0")}_`;P+=J}else P+=M[O]}return P};p.replaceInvisibleCharacters=S;let w=M=>{let P=[];for(let O of M.keys()){let G=O.toString(),j={name:"t",textNode:(0,E._escapeString)((0,p.replaceInvisibleCharacters)(G),!1)};G.trim().length!==G.length&&(j.properties={rawMap:{"xml:space":"preserve"}}),P.push({name:"si",children:[j]})}return P};p.buildSharedString=w},5048:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createXml=p.createXmlHeader=void 0;let A=`\r
`;function E(b,C,d){if(!C&&C!==""&&C!==0)return"";let s=C;return typeof C=="boolean"&&d&&(s=d(C)),` ${b}="${s}"`}function z(b={}){let C="<?",d="?>",s=["version"];b.version||(b.version="1.0"),b.encoding&&s.push("encoding"),b.standalone&&s.push("standalone");let c=s.map(h=>`${h}="${b[h]}"`).join(" ");return`${C}xml ${c} ${d}`}p.createXmlHeader=z;function T(b,C){let d="";b.properties&&(b.properties.prefixedAttributes&&b.properties.prefixedAttributes.forEach(c=>{Object.keys(c.map).forEach(h=>{d+=E(c.prefix+h,c.map[h],C)})}),b.properties.rawMap&&Object.keys(b.properties.rawMap).forEach(c=>{d+=E(c,b.properties.rawMap[c],C)}));let s="<"+b.name+d;return!b.children&&b.textNode==null?s+"/>"+A:b.textNode!=null?s+">"+b.textNode+"</"+b.name+">"+A:(s+=">"+A,b.children&&b.children.forEach(c=>{s+=T(c,C)}),s+"</"+b.name+">"+A)}p.createXml=T},1790:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExcelCreator=p.exportMultipleSheetsAsExcel=p.getMultipleSheetsAsExcel=void 0;let E=A(6624),z=A(5103),T=A(7165),b=A(541),C=A(5950),d=G=>{if(G.addFolders(["_rels/","docProps/","xl/","xl/theme/","xl/_rels/","xl/worksheets/"]),!T.XLSX_IMAGES.size)return;G.addFolders(["xl/worksheets/_rels","xl/drawings/","xl/drawings/_rels","xl/media/"]);let j=0;T.XLSX_IMAGES.forEach(Y=>{let J=Y[0].image[0],{base64:ne,imageType:ce}=J;G.addFile(`xl/media/image${++j}.${(0,b._normaliseImageExtension)(ce)}`,ne,!0)})},s=(G,j)=>{let Y=0,J=0;for(let ne=0;ne<j.length;ne++){let ce=j[ne];G.addFile(`xl/worksheets/sheet${ne+1}.xml`,ce,!1);let fe=T.XLSX_IMAGES.size>0&&T.XLSX_WORKSHEET_IMAGES.has(ne),xe=T.XLSX_WORKSHEET_DATA_TABLES.size>0&&T.XLSX_WORKSHEET_DATA_TABLES.get(ne),Le=T.XLSX_IMAGES.size&&T.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.has(ne);if(!fe&&!xe&&!Le)continue;let _e,Fe,We;fe&&(c(G,ne,Y),Fe=Y,Y++),Le&&(h(G,ne,J),We=J,J++),xe&&(_e=xe.name);let it=`xl/worksheets/_rels/sheet${ne+1}.xml.rels`;G.addFile(it,(0,T.createXlsxRelationships)({tableName:_e,drawingIndex:Fe,vmlDrawingIndex:We}))}},c=(G,j,Y)=>{let J="xl/drawings",ne=`${J}/drawing${Y+1}.xml`,ce=`${J}/_rels/drawing${Y+1}.xml.rels`;G.addFile(ce,(0,T.createXlsxDrawingRel)(j)),G.addFile(ne,(0,T.createXlsxDrawing)(j))},h=(G,j,Y)=>{let J="xl/drawings",ne=`${J}/vmlDrawing${Y+1}.vml`,ce=`${J}/_rels/vmlDrawing${Y+1}.vml.rels`;G.addFile(ne,(0,T.createXlsxVmlDrawing)(j)),G.addFile(ce,(0,T.createXlsxVmlDrawingRel)(j))},g=G=>{let j=T.XLSX_WORKSHEET_DATA_TABLES,Y=Array.from(j.keys());for(let J=0;J<Y.length;J++){let ne=Y[J],ce=j.get(ne);ce&&G.addFile(`xl/tables/${ce.name}.xml`,(0,T.createXlsxTable)(ce,J))}},f=(G,j,Y,J,ne)=>{G.addFile("xl/workbook.xml",(0,T.createXlsxWorkbook)(ne)),G.addFile("xl/styles.xml",(0,T.createXlsxStylesheet)(j)),G.addFile("xl/sharedStrings.xml",(0,T.createXlsxSharedStrings)()),G.addFile("xl/theme/theme1.xml",(0,T.createXlsxTheme)()),G.addFile("xl/_rels/workbook.xml.rels",(0,T.createXlsxWorkbookRels)(J)),G.addFile("docProps/core.xml",(0,T.createXlsxCore)(Y)),G.addFile("[Content_Types].xml",(0,T.createXlsxContentTypes)(J)),G.addFile("_rels/.rels",(0,T.createXlsxRels)())},S=(G,j,Y={})=>{if(!j||j.length===0)return(0,E._warn)(159),(0,T.resetXlsxFactory)(),!1;let{fontSize:J=11,author:ne="AG Grid",activeTab:ce=0}=Y,fe=j.length,xe=Math.max(Math.min(ce,fe-1),0);return d(G),g(G),s(G,j),f(G,J,ne,fe,xe),(0,T.resetXlsxFactory)(),!0},w=G=>{let{data:j,fontSize:Y,author:J,activeSheetIndex:ne}=G,ce=G.mimeType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",fe=new C.ZipContainer;return S(fe,j,{author:J,fontSize:Y,activeTab:ne})?fe.getZipFile(ce):Promise.resolve(void 0)},M=G=>{let{data:j,fontSize:Y,author:J,activeSheetIndex:ne}=G,ce=G.mimeType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",fe=new C.ZipContainer;if(S(fe,j,{author:J,fontSize:Y,activeTab:ne}))return fe.getUncompressedZipFile(ce)};p.getMultipleSheetsAsExcel=M;let P=G=>{let{fileName:j="export.xlsx"}=G;w(G).then(Y=>{if(Y){let J=typeof j=="function"?j():j;(0,E._downloadFile)(J,Y)}})};p.exportMultipleSheetsAsExcel=P;class O extends E.BaseCreator{constructor(){super(...arguments),this.beanName="excelCreator"}getMergedParams(j){let Y=this.gos.get("defaultExcelExportParams");return Object.assign({},Y,j)}export(j){if(this.isExportSuppressed()){(0,E._warn)(160);return}let Y=this.getMergedParams(j),ne={data:[this.getData(Y)],fontSize:Y.fontSize,author:Y.author,mimeType:Y.mimeType};this.packageCompressedFile(ne).then(ce=>{if(ce){let{fileName:fe}=Y,xe=typeof fe=="function"?fe(this.gos.getGridCommonParams()):fe;(0,E._downloadFile)(this.getFileName(xe),ce)}})}exportDataAsExcel(j){this.export(j)}getDataAsExcel(j){let Y=this.getMergedParams(j),ne={data:[this.getData(Y)],fontSize:Y.fontSize,author:Y.author,mimeType:Y.mimeType};return this.packageFile(ne)}setFactoryMode(j){(0,T.setXlsxFactoryMode)(j)}getFactoryMode(){return(0,T.getXlsxFactoryMode)()}getSheetDataForExcel(j){let Y=this.getMergedParams(j);return this.getData(Y)}getMultipleSheetsAsExcel(j){return(0,p.getMultipleSheetsAsExcel)(j)}exportMultipleSheetsAsExcel(j){(0,p.exportMultipleSheetsAsExcel)(j)}getDefaultFileExtension(){return"xlsx"}createSerializingSession(j){var Le;let{colModel:Y,colNames:J,rowGroupColsSvc:ne,valueSvc:ce,gos:fe}=this.beans,xe=He(ge({},j),{colModel:Y,colNames:J,rowGroupColsSvc:ne,valueSvc:ce,gos:fe,suppressRowOutline:j.suppressRowOutline||j.skipRowGroups,headerRowHeight:j.headerRowHeight||j.rowHeight,baseExcelStyles:fe.get("excelStyles")||[],rightToLeft:(Le=j.rightToLeft)!=null?Le:fe.get("enableRtl"),styleLinker:this.styleLinker.bind(this)});return new z.ExcelSerializingSession(xe)}styleLinker(j){let{rowType:Y,rowIndex:J,value:ne,column:ce,columnGroup:fe,node:xe}=j,Le=Y==="HEADER",_e=Y==="HEADER_GROUPING",Fe=Le?ce:fe,We=[],{gos:it,cellStyles:tt}=this.beans;if(Le||_e)return We.push("header"),_e&&We.push("headerGroup"),Fe&&(We=We.concat((0,E._getHeaderClassesFromColDef)(Fe.getDefinition(),it,ce||null,fe||null))),We;let ot=it.get("excelStyles"),st=["cell"];if(!ot||!ot.length)return st;let St=ot.map(Ke=>Ke.id),Xe=ce.getDefinition();return tt==null||tt.processAllCellClasses(Xe,it.addGridCommonParams({value:ne,data:xe.data,node:xe,colDef:Xe,column:ce,rowIndex:J}),Ke=>{St.indexOf(Ke)>-1&&st.push(Ke)}),st.sort((Ke,Ye)=>St.indexOf(Ke)<St.indexOf(Ye)?-1:1)}isExportSuppressed(){return this.gos.get("suppressExcelExport")}packageCompressedFile(j){return w(j)}packageFile(j){return(0,p.getMultipleSheetsAsExcel)(j)}}p.ExcelCreator=O},4760:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.exportMultipleSheetsAsExcel=p.getMultipleSheetsAsExcel=p.getSheetDataForExcel=p.exportDataAsExcel=p.getDataAsExcel=void 0;let E=A(6624);function z(c){var h;return((h=c.excelCreator)==null?void 0:h.getFactoryMode())==="MULTI_SHEET"?((0,E._warn)(161),!1):!0}function T(c,h){var g;if(z(c))return(g=c.excelCreator)==null?void 0:g.getDataAsExcel(h)}p.getDataAsExcel=T;function b(c,h){var g;z(c)&&((g=c.excelCreator)==null||g.exportDataAsExcel(h))}p.exportDataAsExcel=b;function C(c,h){var g,f;return(g=c.excelCreator)==null||g.setFactoryMode("MULTI_SHEET"),(f=c.excelCreator)==null?void 0:f.getSheetDataForExcel(h)}p.getSheetDataForExcel=C;function d(c,h){var g;return(g=c.excelCreator)==null?void 0:g.getMultipleSheetsAsExcel(h)}p.getMultipleSheetsAsExcel=d;function s(c,h){var g;(g=c.excelCreator)==null||g.exportMultipleSheetsAsExcel(h)}p.exportMultipleSheetsAsExcel=s},2886:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExcelExportModule=void 0;let E=A(6624),z=A(9206),T=A(7205),b=A(1790),C=A(4760);p.ExcelExportModule={moduleName:"ExcelExport",version:T.VERSION,beans:[b.ExcelCreator],apiFunctions:{getDataAsExcel:C.getDataAsExcel,exportDataAsExcel:C.exportDataAsExcel,getSheetDataForExcel:C.getSheetDataForExcel,getMultipleSheetsAsExcel:C.getMultipleSheetsAsExcel,exportMultipleSheetsAsExcel:C.exportMultipleSheetsAsExcel},dependsOn:[E._SharedExportModule,z.EnterpriseCoreModule]}},5103:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExcelSerializingSession=void 0;let E=A(6624),z=A(3237),T=A(7165);class b extends E.BaseGridSerializingSession{constructor(d){super(d),this.mixedStyles={},this.mixedStyleCounter=0,this.rows=[],this.frozenRowCount=0,this.skipFrozenRows=!1,this.frozenColumnCount=0,this.skipFrozenColumns=!1,this.config=Object.assign({},d),this.stylesByIds={},this.config.baseExcelStyles.forEach(s=>{this.stylesByIds[s.id]=s}),this.excelStyles=[...this.config.baseExcelStyles,{id:"_quotePrefix",quotePrefix:1}]}addCustomContent(d){d.forEach(s=>{let c=this.rows.length+1,h;!this.config.suppressRowOutline&&s.outlineLevel!=null&&(h=s.outlineLevel);let g={height:(0,z.getHeightFromProperty)(c,s.height||this.config.rowHeight),cells:(s.cells||[]).map((f,S)=>{var j,Y,J;let w=this.addImage(c,this.columnsToExport[S],(j=f.data)==null?void 0:j.value),M=null;f.styleId&&(M=typeof f.styleId=="string"?[f.styleId]:f.styleId);let P=this.getStyleId(M);if(w)return this.createCell(P,this.getDataTypeForValue(w.value),w.value==null?"":w.value);let O=(J=(Y=f.data)==null?void 0:Y.value)!=null?J:"",G=this.getDataTypeForValue(O);return f.mergeAcross?this.createMergedCell(P,G,O,f.mergeAcross):this.createCell(P,G,O)}),outlineLevel:h};s.collapsed!=null&&(g.collapsed=s.collapsed),s.hidden!=null&&(g.hidden=s.hidden),this.rows.push(g)})}onNewHeaderGroupingRow(){let d=[],{freezeRows:s,headerRowHeight:c}=this.config;return this.rows.push({cells:d,height:(0,z.getHeightFromProperty)(this.rows.length+1,c)}),s&&this.frozenRowCount++,{onColumn:(h,g,f,S,w)=>{let M=this.config.styleLinker({rowType:"HEADER_GROUPING",rowIndex:1,value:`grouping-${g}`,columnGroup:h});d.push(He(ge({},this.createMergedCell(this.getStyleId(M),this.getDataTypeForValue("string"),g,S)),{collapsibleRanges:w}))}}}onNewHeaderRow(){let{freezeRows:d,headerRowHeight:s}=this.config;return d&&this.frozenRowCount++,this.onNewRow(this.onNewHeaderColumn,s)}onNewBodyRow(d){let{freezeRows:s,rowHeight:c}=this.config;this.skipFrozenRows||(s==="headersAndPinnedRows"&&(d==null?void 0:d.rowPinned)==="top"?this.frozenRowCount++:typeof s=="function"?s(He(ge({},this.gos.getGridCommonParams()),{node:d}))?this.frozenRowCount++:this.skipFrozenRows=!0:this.skipFrozenRows=!0);let h=this.onNewRow(this.onNewBodyColumn,c);return d&&this.addRowOutlineIfNecessary(d),h}prepare(d){super.prepare(d),this.columnsToExport=[...d],this.cols=d.map((s,c)=>this.convertColumnToExcel(s,c))}parse(){let d=this.rows.reduce((g,f)=>Math.max(g,f.cells.length),0);for(;this.cols.length<d;)this.cols.push(this.convertColumnToExcel(null,this.cols.length+1));let{config:s}=this,c;if(s.sheetName!=null){let{sheetName:g}=s,f=typeof g=="function"?g(this.gos.getGridCommonParams()):g;c=String(f).substring(0,31)}else c="ag-grid";let h={name:c,table:{columns:this.cols,rows:this.rows}};return this.createExcel(h)}addRowOutlineIfNecessary(d){let{gos:s,suppressRowOutline:c,rowGroupExpandState:h="expanded"}=this.config;if(s.get("groupHideOpenParents")||c||d.level==null)return;let f=d.footer?1:0,S=(0,E._last)(this.rows),w=Math.min(d.level+f,7);if(S.outlineLevel=w,h==="expanded")return;let M=h==="collapsed";if(d.isExpandable()){let P=!M&&d.expanded;S.collapsed=!P}S.hidden=!!d.parent&&d.parent.level!==-1&&(M||this.isAnyParentCollapsed(d.parent))}isAnyParentCollapsed(d){for(;d&&d.level!==-1;){if(!d.expanded)return!0;d=d.parent}return!1}convertColumnToExcel(d,s){let c=this.config.columnWidth,h=d?this.extractHeaderValue(d):void 0,g=h!=null?h:"",f=d?d.isFilterAllowed():!1;return c?typeof c=="number"?{width:c,displayName:g,filterAllowed:f}:{width:c({column:d,index:s}),displayName:g,filterAllowed:f}:d?{width:Math.max(d.getActualWidth(),75),displayName:g,filterAllowed:f}:{displayName:g,filterAllowed:f}}onNewHeaderColumn(d,s){return c=>{let h=this.extractHeaderValue(c),g=this.config.styleLinker({rowType:"HEADER",rowIndex:d,value:h,column:c});s.push(this.createCell(this.getStyleId(g),this.getDataTypeForValue("string"),h))}}onNewBodyColumn(d,s){let c=0,{freezeColumns:h,rightToLeft:g}=this.config;return(f,S,w)=>{if(c>0){c-=1;return}if(!this.skipFrozenColumns){let J=f.getPinned();h==="pinned"&&J&&(J===!0||J==="left")!==g?this.frozenColumnCount++:typeof h=="function"&&h(He(ge({},this.gos.getGridCommonParams()),{column:f}))?this.frozenColumnCount++:this.skipFrozenColumns=!0}let{value:M,valueFormatted:P}=this.extractRowCellValue(f,S,d,"excel",w),O=this.config.styleLinker({rowType:"BODY",rowIndex:d,value:M,column:f,node:w}),G=this.getStyleId(O),j=f.getColSpan(w),Y=this.addImage(d,f,M);Y?s.push(this.createCell(G,this.getDataTypeForValue(Y.value),Y.value==null?"":Y.value)):j>1?(c=j-1,s.push(this.createMergedCell(G,this.getDataTypeForValue(M),M,j-1))):s.push(this.createCell(G,this.getDataTypeForValue(M),M,P))}}onNewRow(d,s){let c=[];return this.rows.push({cells:c,height:(0,z.getHeightFromProperty)(this.rows.length+1,s)}),{onColumn:d.bind(this,this.rows.length,c)()}}createExcel(d){let{excelStyles:s,config:c}=this;return this.frozenColumnCount&&(c.frozenColumnCount=this.frozenColumnCount),this.frozenRowCount&&(c.frozenRowCount=this.frozenRowCount),(0,T.createXlsxExcel)(s,d,c)}getDataTypeForValue(d){return d===void 0?"empty":this.isNumerical(d)?"n":"s"}getTypeFromStyle(d,s){if(this.isFormula(s))return"f";if(d&&d.dataType)switch(d.dataType.toLocaleLowerCase()){case"formula":return"f";case"string":return"s";case"number":return"n";case"datetime":return"d";case"error":return"e";case"boolean":return"b";default:(0,E._warn)(162,{id:d.id,dataType:d.dataType})}return null}addImage(d,s,c){if(!this.config.addImageToCell)return;let h=this.config.addImageToCell(d,s,c);if(h)return(0,T.addXlsxBodyImageToMap)(h.image,d,s,this.columnsToExport,this.config.rowHeight),h}createCell(d,s,c,h){let g=this.getStyleById(d);!(g!=null&&g.dataType)&&s==="s"&&h&&(c=h);let f=this.getTypeFromStyle(g,c)||s,{value:S,escaped:w}=this.getCellValue(f,c),M=[];return g&&M.push(d),w&&M.push("_quotePrefix"),d=this.getStyleId(M)||void 0,{styleId:d,data:{type:f,value:S}}}createMergedCell(d,s,c,h){let g=c==null?"":c;return{styleId:this.getStyleById(d)?d:void 0,data:{type:s,value:s==="s"?(0,T.getXlsxStringPosition)(g).toString():c},mergeAcross:h}}getCellValue(d,s){let c=!1;if(s==null||d==="s"&&s==="")return{value:"",escaped:!1};if(d==="s")s&&s[0]==="'"&&(c=!0,s=s.slice(1)),s=(0,T.getXlsxStringPosition)(s).toString();else if(d==="f")s=s.slice(1);else if(d==="n"){let h=Number(s);isNaN(h)?s="":s!==""&&(s=h.toString())}return{value:s,escaped:c}}getStyleId(d){if(!d||!d.length)return null;if(d.length===1)return d[0];let s=d.join("-");return this.mixedStyles[s]||this.addNewMixedStyle(d),this.mixedStyles[s].excelID}deepCloneObject(d){return JSON.parse(JSON.stringify(d))}addNewMixedStyle(d){this.mixedStyleCounter+=1;let s=`mixedStyle${this.mixedStyleCounter}`,c={};for(let g of d)for(let f of this.excelStyles)f.id===g&&(0,E._mergeDeep)(c,this.deepCloneObject(f));c.id=s;let h=d.join("-");this.mixedStyles[h]={excelID:s,key:h,result:c},this.excelStyles.push(c),this.stylesByIds[s]=c}isFormula(d){return d==null?!1:this.config.autoConvertFormulas&&d.toString().startsWith("=")}isNumerical(d){return typeof d=="bigint"?!0:isFinite(d)&&d!==""&&!isNaN(parseFloat(d))}getStyleById(d){return d==null?null:this.stylesByIds[d]||null}}p.ExcelSerializingSession=b},7165:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createXlsxRelationships=p.createXlsxVmlDrawingRel=p.createXlsxVmlDrawing=p.createXlsxDrawingRel=p.createXlsxDrawing=p.createXlsxWorkbookRels=p.createXlsxTable=p.createXlsxTheme=p.createXlsxRels=p.createXlsxContentTypes=p.createXlsxCore=p.createXlsxSharedStrings=p.createXlsxStylesheet=p.createXlsxWorkbook=p.resetXlsxFactory=p.getXlsxStringPosition=p.addXlsxBodyImageToMap=p.addXlsxHeaderFooterImageToMap=p.addXlsxTableToSheet=p.getXlsxSanitizedTableName=p.showExcelTableNonCompatibleFeaturesWarning=p.createXlsxExcel=p.setXlsxFactoryMode=p.getXlsxFactoryMode=p.DEFAULT_TABLE_DISPLAY_NAME=p.XLSX_WORKSHEET_DATA_TABLES=p.XLSX_WORKSHEET_IMAGE_IDS=p.XLSX_WORKBOOK_IMAGE_IDS=p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES=p.XLSX_WORKSHEET_IMAGES=p.XLSX_IMAGES=void 0;let E=A(5608),z=A(6624),T=A(3237),b=E.__importStar(A(541)),C=E.__importDefault(A(1528)),d=E.__importDefault(A(6161)),s=E.__importDefault(A(7348)),c=E.__importDefault(A(1126)),h=E.__importStar(A(3056)),g=E.__importDefault(A(859)),f=E.__importDefault(A(6316)),S=E.__importDefault(A(5592)),w=E.__importDefault(A(2519)),M=E.__importDefault(A(559)),P=new Map,O=[];p.XLSX_IMAGES=new Map,p.XLSX_WORKSHEET_IMAGES=new Map,p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES=new Map,p.XLSX_WORKBOOK_IMAGE_IDS=new Map,p.XLSX_WORKSHEET_IMAGE_IDS=new Map,p.XLSX_WORKSHEET_DATA_TABLES=new Map,p.DEFAULT_TABLE_DISPLAY_NAME="AG-GRID-TABLE";let G="SINGLE_SHEET";function j(){return G}p.getXlsxFactoryMode=j;function Y(Vt){G=Vt}p.setXlsxFactoryMode=Y;function J(Vt,Jt,$t){We(Jt),(0,h.registerStyles)(Vt,O.length);let Ii=Object.assign({},$t);return $t.exportAsExcelTable&&($t.colModel.isPivotActive()&&(ne("pivot mode"),Ii.exportAsExcelTable=!1),$t.gos.get("masterDetail")&&(ne("master/detail"),Ii.exportAsExcelTable=!1)),xe(Jt,Ii),Lt(Jt,Ii)}p.createXlsxExcel=J;function ne(Vt){(0,z._warn)(163,{featureName:Vt})}p.showExcelTableNonCompatibleFeaturesWarning=ne;function ce(Vt){return Vt.replace(/^[^a-zA-Z_]+/,"_").replace(/\s/g,"_").replace(/[^a-zA-Z0-9_]/g,"_")}p.getXlsxSanitizedTableName=ce;function fe(Vt,Jt){if(p.XLSX_WORKSHEET_DATA_TABLES.has(Vt)){(0,z._warn)(164);return}p.XLSX_WORKSHEET_DATA_TABLES.set(Vt,Jt)}p.addXlsxTableToSheet=fe;function xe(Vt,Jt){var hl;let{exportAsExcelTable:$t,prependContent:Ii,appendContent:zi,colModel:ln}=Jt;if(!$t)return;let ha=typeof $t=="boolean"?{}:$t,{name:Gn,showColumnStripes:qn,showRowStripes:Qn,showFilterButton:na,highlightFirstColumn:fo,highlightLastColumn:Yl}=ha,Wu=ce(Gn||p.DEFAULT_TABLE_DISPLAY_NAME),Kd=O.length-1,{table:To}=Vt,{rows:nd,columns:Qi}=To,Nr=(0,z._getHeaderRowCount)(ln),Rs=Ii?Ii.length:0,Uu=zi?zi.length:0,Vn=nd.length,qd=Qi.length,Ps=[],is=[];for(let Sa=0;Sa<qd;Sa++){let cr=Qi[Sa];Ps.push(cr.displayName||""),is.push(na==="match"||na===void 0?(hl=cr.filterAllowed)!=null?hl:!1:na)}if(!Ps||!Ps.length||!Vn||!Wu){(0,z._warn)(165);return}fe(Kd,{name:`table${p.XLSX_WORKSHEET_DATA_TABLES.size+1}`,displayName:Wu,columns:Ps,showFilterButtons:is,rowRange:[Nr+Rs,Nr+(Vn-Nr)-Uu],showRowStripes:Qn!=null?Qn:!0,showColumnStripes:qn!=null?qn:!1,highlightFirstColumn:fo!=null?fo:!1,highlightLastColumn:Yl!=null?Yl:!1})}function Le(Vt,Jt){let $t=O.length-1,Ii=Vt;Ii.headerFooterPosition=Jt,Fe({imageToAdd:Ii,idx:$t});let zi=p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.get($t);zi||(zi=[],p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.set($t,zi)),zi.find(ln=>ln.id===Vt.id)||zi.push(Vt)}p.addXlsxHeaderFooterImageToMap=Le;function _e(Vt,Jt,$t,Ii,zi){let ln=O.length,{row:ha,column:Gn}=Vt.position||{},qn=Vt;Ii&&(Jt!=null&&$t!=null&&(!ha||!Gn)&&(Vt.position||(Vt.position={}),Vt.position=Object.assign({},Vt.position,{row:Jt,column:Ii.indexOf($t)+1})),(0,T.setExcelImageTotalWidth)(qn,Ii),(0,T.setExcelImageTotalHeight)(qn,zi)),Fe({imageToAdd:qn,idx:ln});let Qn=p.XLSX_WORKSHEET_IMAGE_IDS.get(ln);Qn||(Qn=new Map,p.XLSX_WORKSHEET_IMAGE_IDS.set(ln,Qn));let na=p.XLSX_WORKSHEET_IMAGES.get(ln);na?na.push(qn):p.XLSX_WORKSHEET_IMAGES.set(ln,[qn]),Qn.get(Vt.id)||Qn.set(Vt.id,{index:Qn.size,type:Vt.imageType})}p.addXlsxBodyImageToMap=_e;function Fe(Vt){let{imageToAdd:Jt,idx:$t}=Vt,Ii=p.XLSX_IMAGES.get(Jt.id);if(Ii){let zi=Ii.find(ln=>ln.sheetId===$t);zi?zi.image.push(Jt):Ii.push({sheetId:$t,image:[Jt]})}else p.XLSX_IMAGES.set(Jt.id,[{sheetId:$t,image:[Jt]}]),p.XLSX_WORKBOOK_IMAGE_IDS.set(Jt.id,{type:Jt.imageType,index:p.XLSX_WORKBOOK_IMAGE_IDS.size})}function We(Vt){let Jt=(0,z._escapeString)(Vt.name)||"",$t="";for(;O.indexOf(`${Jt}${$t}`)!==-1;)$t===""?$t="_1":$t=`_${parseInt($t.slice(1),10)+1}`;Vt.name=`${Jt}${$t}`,O.push(Vt.name)}function it(Vt){return P.has(Vt)?P.get(Vt):(P.set(Vt,P.size),P.size-1)}p.getXlsxStringPosition=it;function tt(){P.clear(),p.XLSX_IMAGES.clear(),p.XLSX_WORKSHEET_IMAGES.clear(),p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.clear(),p.XLSX_WORKBOOK_IMAGE_IDS.clear(),p.XLSX_WORKSHEET_IMAGE_IDS.clear(),p.XLSX_WORKSHEET_DATA_TABLES.clear(),O=[],G="SINGLE_SHEET"}p.resetXlsxFactory=tt;function ot(Vt){return(0,T.createXmlPart)(w.default.getTemplate(O,Vt))}p.createXlsxWorkbook=ot;function st(Vt){return(0,T.createXmlPart)(h.default.getTemplate(Vt))}p.createXlsxStylesheet=st;function St(){return(0,T.createXmlPart)(c.default.getTemplate(P))}p.createXlsxSharedStrings=St;function Xe(Vt){return(0,T.createXmlPart)(C.default.getTemplate(Vt))}p.createXlsxCore=Xe;function Ke(Vt){return(0,T.createXmlPart)(b.default.getTemplate(Vt))}p.createXlsxContentTypes=Ke;function Ye(){let Vt=s.default.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"}]);return(0,T.createXmlPart)(Vt)}p.createXlsxRels=Ye;function Ze(){return(0,T.createXmlPart)(f.default.getTemplate())}p.createXlsxTheme=Ze;function Pe(Vt,Jt){return(0,T.createXmlPart)(g.default.getTemplate(Vt,Jt))}p.createXlsxTable=Pe;function ct(Vt){let Jt=new Array(Vt).fill(void 0).map((Ii,zi)=>({Id:`rId${zi+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:`worksheets/sheet${zi+1}.xml`})),$t=s.default.getTemplate([...Jt,{Id:`rId${Vt+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"},{Id:`rId${Vt+2}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"},{Id:`rId${Vt+3}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"}]);return(0,T.createXmlPart)($t)}p.createXlsxWorkbookRels=ct;function dt(Vt){return(0,T.createXmlPart)(d.default.getTemplate({sheetIndex:Vt}))}p.createXlsxDrawing=dt;function bt(Vt){let Jt=p.XLSX_WORKSHEET_IMAGE_IDS.get(Vt)||[],$t=[];for(let[Ii,zi]of Jt){let{index:ln,type:ha}=zi;$t.push({Id:`rId${ln+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/image${p.XLSX_WORKBOOK_IMAGE_IDS.get(Ii).index+1}.${(0,b._normaliseImageExtension)(ha)}`})}return(0,T.createXmlPart)(s.default.getTemplate($t))}p.createXlsxDrawingRel=bt;function Pt(Vt){return(0,T.createXmlPart)(S.default.getTemplate({sheetIndex:Vt}),!0)}p.createXlsxVmlDrawing=Pt;function Nt(Vt){let Jt=p.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.get(Vt)||[],$t=[];for(let Ii=0;Ii<Jt.length;Ii++){let zi=Jt[Ii],ln=p.XLSX_WORKBOOK_IMAGE_IDS.get(zi.id);if(!ln)continue;let{index:ha,type:Gn}=ln;$t.push({Id:`rId${Ii+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/image${ha+1}.${(0,b._normaliseImageExtension)(Gn)}`})}return(0,T.createXmlPart)(s.default.getTemplate($t))}p.createXlsxVmlDrawingRel=Nt;function ft({drawingIndex:Vt,vmlDrawingIndex:Jt,tableName:$t}={}){if(Vt===void 0&&Jt===void 0&&$t===void 0)return"";let Ii=[];Vt!=null&&Ii.push({Id:`rId${Ii.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/drawing${Vt+1}.xml`}),Jt!=null&&Ii.push({Id:`rId${Ii.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Target:`../drawings/vmlDrawing${Jt+1}.vml`}),$t!=null&&Ii.push({Id:`rId${Ii.length+1}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",Target:`../tables/${$t}.xml`});let zi=s.default.getTemplate(Ii);return(0,T.createXmlPart)(zi)}p.createXlsxRelationships=ft;function Lt(Vt,Jt){return(0,T.createXmlPart)(M.default.getTemplate({worksheet:Vt,currentSheet:O.length-1,config:Jt}))}},3391:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(6624),z=A(3237),T=A(3056),b=d=>{let s=d.charAt(0).toLowerCase();return s==="s"?"inlineStr":s},C={getTemplate(d,s,c){let{ref:h,data:g,styleId:f}=d,{type:S,value:w}=g||{type:"empty",value:null},M=S;S==="f"?M="str":S.charAt(0)===S.charAt(0).toUpperCase()&&(M=b(S));let P={name:"c",properties:{rawMap:{r:h,t:M==="empty"?void 0:M,s:f?(0,T.getStyleId)(f,c):void 0}}};if(M==="empty")return P;let O;return M==="str"&&S==="f"?O=[{name:"f",textNode:(0,E._escapeString)((0,z.replaceInvisibleCharacters)(w),!1)}]:M==="inlineStr"?O=[{name:"is",children:[{name:"t",textNode:(0,E._escapeString)((0,z.replaceInvisibleCharacters)(w),!1)}]}]:O=[{name:"v",textNode:w}],Object.assign({},P,{children:O})}};p.default=C},3285:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=z=>Math.ceil((z-12)/7+1),E={getTemplate(z){let{min:T,max:b,outlineLevel:C,s:d,width:s,hidden:c,bestFit:h}=z,g=1,f="0";return s>1&&(g=A(s),f="1"),{name:"col",properties:{rawMap:{min:T,max:b,outlineLevel:C!=null?C:void 0,width:g,style:d,hidden:c?"1":"0",bestFit:h?"1":"0",customWidth:f}}}}};p.default=E},2654:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A={getTemplate(E){let{name:z,ContentType:T,Extension:b,PartName:C}=E;return{name:z,properties:{rawMap:{Extension:b,PartName:C,ContentType:T}}}}};p.default=A},541:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p._normaliseImageExtension=void 0;let E=A(5608),z=A(7165),T=E.__importDefault(A(2654)),b=d=>d==="jpg"?"jpeg":d;p._normaliseImageExtension=b;let C={getTemplate(d){let s=new Array(d).fill(void 0).map((P,O)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:`/xl/worksheets/sheet${O+1}.xml`})),c=z.XLSX_WORKSHEET_IMAGES.size,h=z.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.size,g={};z.XLSX_WORKBOOK_IMAGE_IDS.forEach(P=>{g[(0,p._normaliseImageExtension)(P.type)]=!0});let f=new Array(c).fill(void 0).map((P,O)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml",PartName:`/xl/drawings/drawing${O+1}.xml`})),S=[];z.XLSX_WORKSHEET_DATA_TABLES.forEach(({name:P})=>{S.push({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",PartName:`/xl/tables/${P}.xml`})});let w=Object.keys(g).map(P=>({name:"Default",ContentType:`image/${P}`,Extension:P}));h&&w.push({name:"Default",Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"});let M=[...w,{name:"Default",Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"},{name:"Default",ContentType:"application/xml",Extension:"xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",PartName:"/xl/workbook.xml"},...s,{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml",PartName:"/xl/theme/theme1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",PartName:"/xl/styles.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",PartName:"/xl/sharedStrings.xml"},...f,...S,{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"}].map(P=>T.default.getTemplate(P));return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:M}}};p.default=C},1528:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A={getTemplate(E){let T=new Date().toJSON();return{name:"cp:coreProperties",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"}}]},children:[{name:"dc:creator",textNode:E},{name:"dc:title",textNode:"Workbook"},{name:"dcterms:created",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:T},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:T}]}}};p.default=A},6161:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(3237),z=A(7165),T=(w,M)=>({name:`xdr:${w}`,children:[{name:"xdr:col",textNode:M.col.toString()},{name:"xdr:colOff",textNode:M.offsetX.toString()},{name:"xdr:row",textNode:M.row.toString()},{name:"xdr:rowOff",textNode:M.offsetY.toString()}]}),b=w=>{let M=[{name:"a:ext",properties:{rawMap:{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}},children:[{name:"a16:creationId",properties:{rawMap:{id:"{822E6D20-D7BC-2841-A643-D49A6EF008A2}","xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main"}}}]}];switch(w.recolor&&w.recolor.toLowerCase()){case"grayscale":case"sepia":case"washout":M.push({name:"a:ext",properties:{rawMap:{uri:"{C183D7F6-B498-43B3-948B-1728B52AA6E4}"}},children:[{name:"adec:decorative",properties:{rawMap:{val:"0","xmlns:adec":"http://schemas.microsoft.com/office/drawing/2017/decorative"}}}]})}return{name:"a:extLst",children:M}},C=(w,M)=>({name:"xdr:nvPicPr",children:[{name:"xdr:cNvPr",properties:{rawMap:{id:M,name:w.id,descr:w.altText!=null?w.altText:void 0}},children:[b(w)]},{name:"xdr:cNvPicPr",properties:{rawMap:{preferRelativeResize:"0"}},children:[{name:"a:picLocks"}]}]}),d=w=>{if(!w.saturation&&!w.tint)return;let M=[];return w.saturation&&M.push({name:"a:satMod",properties:{rawMap:{val:w.saturation*1e3}}}),w.tint&&M.push({name:"a:tint",properties:{rawMap:{val:w.tint*1e3}}}),M},s=(w,M)=>({name:"a:duotone",children:[{name:"a:prstClr",properties:{rawMap:{val:w.color}},children:d(w)},{name:"a:srgbClr",properties:{rawMap:{val:M.color}},children:d(M)}]}),c=(w,M)=>{let P;if(w.transparency){let O=Math.min(Math.max(w.transparency,0),100);P=[{name:"a:alphaModFix",properties:{rawMap:{amt:1e5-Math.round(O*1e3)}}}]}if(w.recolor)switch(P||(P=[]),w.recolor.toLocaleLowerCase()){case"grayscale":P.push({name:"a:grayscl"});break;case"sepia":P.push(s({color:"black"},{color:"D9C3A5",tint:50,saturation:180}));break;case"washout":P.push({name:"a:lum",properties:{rawMap:{bright:"70000",contrast:"-70000"}}});break;default:}return{name:"xdr:blipFill",children:[{name:"a:blip",properties:{rawMap:{cstate:"print","r:embed":`rId${M}`,"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}},children:P},{name:"a:stretch",children:[{name:"a:fillRect"}]}]}},h=(w,M)=>{let P={name:"a:xfrm",children:[{name:"a:off",properties:{rawMap:{x:0,y:0}}},{name:"a:ext",properties:{rawMap:{cx:M.width,cy:M.height}}}]};if(w.rotation){let j=w.rotation;P.properties={rawMap:{rot:Math.min(Math.max(j,0),360)*6e4}}}return{name:"xdr:spPr",children:[P,{name:"a:prstGeom",properties:{rawMap:{prst:"rect"}},children:[{name:"a:avLst"}]}]}},g=w=>{w.fitCell=!!w.fitCell||!w.width||!w.height;let{position:M={},fitCell:P,width:O=0,height:G=0,totalHeight:j,totalWidth:Y}=w,{offsetX:J=0,offsetY:ne=0,row:ce=1,rowSpan:fe=1,column:xe=1,colSpan:Le=1}=M;return{from:{row:ce-1,col:xe-1,offsetX:(0,E.pixelsToEMU)(J),offsetY:(0,E.pixelsToEMU)(ne)},to:{row:ce-1+(P?1:fe-1),col:xe-1+(P?1:Le-1),offsetX:(0,E.pixelsToEMU)(O+J),offsetY:(0,E.pixelsToEMU)(G+ne)},height:(0,E.pixelsToEMU)(j||G),width:(0,E.pixelsToEMU)(Y||O)}},f=(w,M,P,O)=>({name:"xdr:pic",children:[C(w,M+1),c(w,P+1),h(w,O)]}),S={getTemplate(w){let{sheetIndex:M}=w,P=z.XLSX_WORKSHEET_IMAGES.get(M),O=z.XLSX_WORKSHEET_IMAGE_IDS.get(M),G=P.map((j,Y)=>{let J=g(j);return{name:"xdr:twoCellAnchor",properties:{rawMap:{editAs:"absolute"}},children:[T("from",J.from),T("to",J.to),f(j,Y,O.get(j.id).index,J),{name:"xdr:clientData"}]}});return{name:"xdr:wsDr",properties:{rawMap:{"xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"}},children:G}}};p.default=S},1775:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A={getTemplate(E){return{name:"mergeCell",properties:{rawMap:{ref:E}}}}};p.default=A},637:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A={getTemplate(E){let{Id:z,Type:T,Target:b}=E;return{name:"Relationship",properties:{rawMap:{Id:z,Type:T,Target:b}}}}};p.default=A},7348:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let z=A(5608).__importDefault(A(637)),T={getTemplate(b){let C=b.map(d=>z.default.getTemplate(d));return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:C}}};p.default=T},7067:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(5608),z=A(3237),T=E.__importDefault(A(3391)),b=(s,c)=>{let h=[],g=0;for(let f=0;f<s.length;f++){let S=s[f];S.mergeAcross&&(h.push({pos:f,excelPos:g}),g+=S.mergeAcross),g++}if(h.length)for(let f=h.length-1;f>=0;f--){let S=[],w=s[h[f].pos];for(let M=1;M<=w.mergeAcross;M++)S.push({ref:`${(0,z.getExcelColumnName)(h[f].excelPos+1+M)}${c+1}`,styleId:w.styleId,data:{type:"empty",value:null}});S.length&&s.splice(h[f].pos+1,0,...S)}},C=s=>{var c;return((c=s.data)==null?void 0:c.value)!==""||s.styleId!==void 0},d={getTemplate(s,c,h){let{collapsed:g,hidden:f,height:S,outlineLevel:w,cells:M=[]}=s;b(M,c);let P=M.filter(C).map((O,G)=>T.default.getTemplate(O,G,h));return{name:"row",properties:{rawMap:{r:c+1,collapsed:g?"1":"0",hidden:f?"1":"0",ht:S,customHeight:S!=null?"1":"0",spans:"1:1",outlineLevel:w||void 0}},children:P}}};p.default=d},1126:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(3237),z={getTemplate(T){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:T.size,uniqueCount:T.size}},children:(0,E.buildSharedString)(T)}}};p.default=z},7440:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A={getTemplate(E,z){let T=(z+1).toString();return{name:"sheet",properties:{rawMap:{name:E,sheetId:T,"r:id":`rId${T}`}}}}};p.default=A},2023:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let z=A(5608).__importDefault(A(7440)),T={getTemplate(b){return{name:"sheets",children:b.map((C,d)=>z.default.getTemplate(C,d))}}};p.default=T},1951:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(1842),z=b=>{let d=["Context","LeftToRight","RightToLeft"].indexOf(b);return Math.max(d,0)},T={getTemplate(b){let{horizontal:C,indent:d,readingOrder:s,rotate:c,shrinkToFit:h,vertical:g,wrapText:f}=b;return{name:"alignment",properties:{rawMap:{horizontal:C&&(0,E.convertLegacyHorizontalAlignment)(C),indent:d,readingOrder:s&&z(s),textRotation:c,shrinkToFit:h,vertical:g&&(0,E.convertLegacyVerticalAlignment)(g),wrapText:f}}}}};p.default=T},3142:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(1842),z=b=>({name:"color",properties:{rawMap:{rgb:(0,E.convertLegacyColor)(b||"#000000")}}}),T={getTemplate(b){let{left:C,right:d,top:s,bottom:c,diagonal:h}=b,g=C?[z(C.color)]:void 0,f=d?[z(d.color)]:void 0,S=s?[z(s.color)]:void 0,w=c?[z(c.color)]:void 0,M=h?[z(h.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:C&&C.style}},children:g},{name:"right",properties:{rawMap:{style:d&&d.style}},children:f},{name:"top",properties:{rawMap:{style:s&&s.style}},children:S},{name:"bottom",properties:{rawMap:{style:c&&c.style}},children:w},{name:"diagonal",properties:{rawMap:{style:h&&h.style}},children:M}]}}};p.default=T},773:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let z=A(5608).__importDefault(A(3142)),T={getTemplate(b){return{name:"borders",properties:{rawMap:{count:b.length}},children:b.map(C=>z.default.getTemplate(C))}}};p.default=T},5271:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A={getTemplate(E){let{builtinId:z,name:T,xfId:b}=E;return{name:"cellStyle",properties:{rawMap:{builtinId:z,name:T,xfId:b}}}}};p.default=A},4100:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let z=A(5608).__importDefault(A(7234)),T={getTemplate(b){return{name:"cellStyleXfs",properties:{rawMap:{count:b.length}},children:b.map(C=>z.default.getTemplate(C))}}};p.default=T},3246:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let z=A(5608).__importDefault(A(5271)),T={getTemplate(b){return{name:"cellStyles",properties:{rawMap:{count:b.length}},children:b.map(C=>z.default.getTemplate(C))}}};p.default=T},4473:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let z=A(5608).__importDefault(A(7234)),T={getTemplate(b){return{name:"cellXfs",properties:{rawMap:{count:b.length}},children:b.map(C=>z.default.getTemplate(C))}}};p.default=T},3153:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A={getTemplate(E){let{patternType:z,fgTheme:T,fgTint:b,fgRgb:C,bgRgb:d,bgIndexed:s}=E,c={name:"patternFill",properties:{rawMap:{patternType:z}}};return(T||b||C)&&(c.children=[{name:"fgColor",properties:{rawMap:{theme:T,tint:b,rgb:C}}}]),(s||d)&&(c.children||(c.children=[]),c.children.push({name:"bgColor",properties:{rawMap:{indexed:s,rgb:d}}})),{name:"fill",children:[c]}}};p.default=A},9392:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let z=A(5608).__importDefault(A(3153)),T={getTemplate(b){return{name:"fills",properties:{rawMap:{count:b.length}},children:b.map(C=>z.default.getTemplate(C))}}};p.default=T},585:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A={getTemplate(E){let{size:z,colorTheme:T,color:b="FF000000",fontName:C="Calibri",family:d,scheme:s,italic:c,bold:h,strikeThrough:g,outline:f,shadow:S,underline:w,verticalAlign:M}=E,P=[{name:"sz",properties:{rawMap:{val:z}}},{name:"color",properties:{rawMap:{theme:T,rgb:b}}},{name:"name",properties:{rawMap:{val:C}}}];return d&&P.push({name:"family",properties:{rawMap:{val:d}}}),s&&P.push({name:"scheme",properties:{rawMap:{val:s}}}),c&&P.push({name:"i"}),h&&P.push({name:"b"}),g&&P.push({name:"strike"}),f&&P.push({name:"outline"}),S&&P.push({name:"shadow"}),w&&P.push({name:"u",properties:{rawMap:{val:w}}}),M&&P.push({name:"vertAlign",properties:{rawMap:{val:M}}}),{name:"font",children:P}}};p.default=A},3704:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let z=A(5608).__importDefault(A(585)),T={getTemplate(b){return{name:"fonts",properties:{rawMap:{count:b.length}},children:b.map(C=>z.default.getTemplate(C))}}};p.default=T},7282:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(6624);function z(b){let C=b.split(/(\[[^\]]*\])/);for(let d=0;d<C.length;d++){let s=C[d];s.length&&(s.startsWith("[")||(s=s.replace(/\$/g,'"$"')),C[d]=(0,E._escapeString)(s))}return C.join("")}let T={getTemplate(b){let{formatCode:C,numFmtId:d}=b;return C.length&&(C=z(C)),{name:"numFmt",properties:{rawMap:{formatCode:C,numFmtId:d}}}}};p.default=T},5305:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let z=A(5608).__importDefault(A(7282)),T={getTemplate(b){return{name:"numFmts",properties:{rawMap:{count:b.length}},children:b.map(C=>z.default.getTemplate(C))}}};p.default=T},8187:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A={getTemplate(E){let z=E.protected===!1?0:1;return{name:"protection",properties:{rawMap:{hidden:E.hideFormula===!0?1:0,locked:z}}}}};p.default=A},3056:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.registerStyles=p.getStyleId=void 0;let E=A(5608),z=A(2805),T=A(1842),b=A(3237),C=E.__importDefault(A(773)),d=E.__importDefault(A(4100)),s=E.__importDefault(A(3246)),c=E.__importDefault(A(4473)),h=E.__importDefault(A(9392)),g=E.__importDefault(A(3704)),f=E.__importDefault(A(5305)),S,w,M,P,O,G,j,Y,J,ne=(ot,st)=>(ot.indexOf("mixedStyle")!==-1&&st>1&&(ot+=`_${st}`),ot),ce=()=>{S={base:0},w=[],M=[{fontName:"Calibri",colorTheme:"1",family:"2",scheme:"minor"}],P=[{patternType:"none"},{patternType:"gray125"}],O=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],G=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],j=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],Y=[{builtinId:0,name:"Normal",xfId:0}]},fe=ot=>{let st=(0,T.convertLegacyPattern)(ot.pattern),St=(0,T.convertLegacyColor)(ot.color),Xe=(0,T.convertLegacyColor)(ot.patternColor),Ke=P.findIndex(Ye=>{let{patternType:Ze,fgRgb:Pe,bgRgb:ct}=Ye;return!(Ze!=st||Pe!=St||ct!=Xe)});return Ke===-1&&(Ke=P.length,P.push({patternType:st,fgRgb:St,bgRgb:Xe})),Ke},xe=ot=>{if(z.numberFormatMap[ot])return z.numberFormatMap[ot];let st=w.findIndex(St=>St.formatCode===ot);return st===-1?(st=w.length+164,w.push({formatCode:ot,numFmtId:st})):st=w[st].numFmtId,st},Le=ot=>{let{borderBottom:st,borderTop:St,borderLeft:Xe,borderRight:Ke}=ot,Ye,Ze,Pe,ct,dt,bt,Pt,Nt;Xe&&(Pe=(0,T.convertLegacyBorder)(Xe.lineStyle,Xe.weight),Pt=(0,T.convertLegacyColor)(Xe.color)),Ke&&(ct=(0,T.convertLegacyBorder)(Ke.lineStyle,Ke.weight),Nt=(0,T.convertLegacyColor)(Ke.color)),st&&(Ye=(0,T.convertLegacyBorder)(st.lineStyle,st.weight),dt=(0,T.convertLegacyColor)(st.color)),St&&(Ze=(0,T.convertLegacyBorder)(St.lineStyle,St.weight),bt=(0,T.convertLegacyColor)(St.color));let ft=O.findIndex(Lt=>{let{left:Vt,right:Jt,top:$t,bottom:Ii}=Lt;if(!Vt&&(Pe||Pt)||!Jt&&(ct||Nt)||!$t&&(Ze||bt)||!Ii&&(Ye||dt))return!1;let{style:zi,color:ln}=Vt||{},{style:ha,color:Gn}=Jt||{},{style:qn,color:Qn}=$t||{},{style:na,color:fo}=Ii||{};return!(zi!=Pe||ln!=Pt||ha!=ct||Gn!=Nt||qn!=Ze||Qn!=bt||na!=Ye||fo!=dt)});return ft===-1&&(ft=O.length,O.push({left:{style:Pe,color:Pt},right:{style:ct,color:Nt},top:{style:Ze,color:bt},bottom:{style:Ye,color:dt},diagonal:{style:void 0,color:void 0}})),ft},_e=ot=>{let{fontName:st="Calibri",color:St,size:Xe,bold:Ke,italic:Ye,outline:Ze,shadow:Pe,strikeThrough:ct,underline:dt,family:bt,verticalAlign:Pt}=ot,Nt=(0,T.convertLegacyColor)(St),ft=(0,b.getFontFamilyId)(bt),Lt=dt?dt.toLocaleLowerCase():void 0,Vt=Pt?Pt.toLocaleLowerCase():void 0,Jt=M.findIndex($t=>!($t.fontName!=st||$t.color!=Nt||$t.size!=Xe||$t.bold!=Ke||$t.italic!=Ye||$t.outline!=Ze||$t.shadow!=Pe||$t.strikeThrough!=ct||$t.underline!=Lt||$t.verticalAlign!=Vt||$t.family!=ft));return Jt===-1&&(Jt=M.length,M.push({fontName:st,color:Nt,size:Xe,bold:Ke,italic:Ye,outline:Ze,shadow:Pe,strikeThrough:ct,underline:Lt,verticalAlign:Vt,family:ft!=null?ft.toString():void 0})),Jt},Fe=ot=>{let{alignment:st,borders:St,font:Xe,interior:Ke,numberFormat:Ye,protection:Ze,quotePrefix:Pe}=ot,{id:ct}=ot,dt=0,bt=0,Pt=0,Nt=0;ct&&(ct=ne(ct,J),S[ct]==null&&(Ke&&(dt=fe(Ke)),St&&(bt=Le(St)),Xe&&(Pt=_e(Xe)),Ye&&(Nt=xe(Ye.format)),S[ct]=j.length,j.push({alignment:st,borderId:bt||0,fillId:dt||0,fontId:Pt||0,numFmtId:Nt||0,protection:Ze,quotePrefix:Pe,xfId:0})))},We={getTemplate(ot){let st=f.default.getTemplate(w),St=g.default.getTemplate(M.map(ct=>He(ge({},ct),{size:ct.size!=null?ct.size:ot}))),Xe=h.default.getTemplate(P),Ke=C.default.getTemplate(O),Ye=d.default.getTemplate(G),Ze=c.default.getTemplate(j),Pe=s.default.getTemplate(Y);return ce(),{name:"styleSheet",properties:{rawMap:{"mc:Ignorable":"x14ac x16r2 xr",xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision"}},children:[st,St,Xe,Ke,Ye,Ze,Pe,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}}},it=(ot,st)=>S[ne(ot,st)]||0;p.getStyleId=it;let tt=(ot,st)=>{J=st,J===1&&ce(),ot.forEach(Fe)};p.registerStyles=tt,p.default=We},7234:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(5608),z=E.__importDefault(A(1951)),T=E.__importDefault(A(8187)),b={getTemplate(C){let{alignment:d,borderId:s,fillId:c,fontId:h,numFmtId:g,protection:f,quotePrefix:S,xfId:w}=C,M=[];return d&&M.push(z.default.getTemplate(d)),f&&M.push(T.default.getTemplate(f)),{name:"xf",properties:{rawMap:{applyAlignment:d?1:void 0,applyProtection:f?1:void 0,applyBorder:s?1:void 0,applyFill:c?1:void 0,borderId:s,fillId:c,applyFont:h?1:void 0,fontId:h,applyNumberFormat:g?1:void 0,numFmtId:g,quotePrefix:S?1:void 0,xfId:w}},children:M.length?M:void 0}}};p.default=b},859:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(3237),z={getTemplate(T,b){let{name:C,columns:d,rowRange:s,displayName:c,showRowStripes:h,showColumnStripes:g,showFilterButtons:f,highlightFirstColumn:S,highlightLastColumn:w}=T||{},M=!s||s[0]-s[1]===0;if(!T||!C||!Array.isArray(d)||!d.length||M)return{name:"table"};let P=d.map((ne,ce)=>({name:"filterColumn",properties:{rawMap:{colId:ce.toString(),hiddenButton:f[ce]?0:1}}})),O=`A${s[0]}`,G=`${(0,E.getExcelColumnName)(d.length)}${s[1]}`,j=`${O}:${G}`,Y=`${b+1}`,J=b?`${c}_${Y}`:c;return{name:"table",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3",name:C,displayName:J,ref:j,totalsRowShown:0,id:Y}},children:[{name:"autoFilter",properties:{rawMap:{ref:j}},children:P},{name:"tableColumns",properties:{rawMap:{count:d.length}},children:d.map((ne,ce)=>({name:"tableColumn",properties:{rawMap:{id:(ce+1).toString(),name:ne,dataCellStyle:"Normal"}}}))},{name:"tableStyleInfo",properties:{rawMap:{name:"TableStyleLight1",showFirstColumn:S?1:0,showLastColumn:w?1:0,showRowStripes:h?1:0,showColumnStripes:g?1:0}}}]}}};p.default=z},6316:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let z=A(5608).__importDefault(A(2119)),T={getTemplate(){return{name:"a:theme",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{a:"http://schemas.openxmlformats.org/drawingml/2006/main"}}],rawMap:{name:"Office Theme"}},children:[z.default.getTemplate(),{name:"a:objectDefaults"},{name:"a:extraClrSchemeLst"}]}}};p.default=T},9119:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=z=>{let[T,b,C,d]=z;return{name:`a:${T}`,children:[{name:`a:${b}`,properties:{rawMap:{val:C,lastClr:d}}}]}},E={getTemplate(){return{name:"a:clrScheme",properties:{rawMap:{name:"Office"}},children:[A(["dk1","sysClr","windowText","000000"]),A(["lt1","sysClr","window","FFFFFF"]),A(["dk2","srgbClr","44546A"]),A(["lt2","srgbClr","E7E6E6"]),A(["accent1","srgbClr","4472C4"]),A(["accent2","srgbClr","ED7D31"]),A(["accent3","srgbClr","A5A5A5"]),A(["accent4","srgbClr","FFC000"]),A(["accent5","srgbClr","5B9BD5"]),A(["accent6","srgbClr","70AD47"]),A(["hlink","srgbClr","0563C1"]),A(["folHlink","srgbClr","954F72"])]}}};p.default=E},221:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=z=>{let[T,b,C,d]=z;return{name:`a:${T}`,properties:{rawMap:{script:C,typeface:b,panose:d}}}},E={getTemplate(){return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[A(["latin","Calibri Light",void 0,"020F0302020204030204"]),A(["ea",""]),A(["cs",""]),A(["font","\u6E38\u30B4\u30B7\u30C3\u30AF Light","Jpan"]),A(["font","\uB9D1\uC740 \uACE0\uB515","Hang"]),A(["font","\u7B49\u7EBF Light","Hans"]),A(["font","\u65B0\u7D30\u660E\u9AD4","Hant"]),A(["font","Times New Roman","Arab"]),A(["font","Times New Roman","Hebr"]),A(["font","Tahoma","Thai"]),A(["font","Nyala","Ethi"]),A(["font","Vrinda","Beng"]),A(["font","Shruti","Gujr"]),A(["font","MoolBoran","Khmr"]),A(["font","Tunga","Knda"]),A(["font","Raavi","Guru"]),A(["font","Euphemia","Cans"]),A(["font","Plantagenet Cherokee","Cher"]),A(["font","Microsoft Yi Baiti","Yiii"]),A(["font","Microsoft Himalaya","Tibt"]),A(["font","MV Boli","Thaa"]),A(["font","Mangal","Deva"]),A(["font","Gautami","Telu"]),A(["font","Latha","Taml"]),A(["font","Estrangelo Edessa","Syrc"]),A(["font","Kalinga","Orya"]),A(["font","Kartika","Mlym"]),A(["font","DokChampa","Laoo"]),A(["font","Iskoola Pota","Sinh"]),A(["font","Mongolian Baiti","Mong"]),A(["font","Times New Roman","Viet"]),A(["font","Microsoft Uighur","Uigh"]),A(["font","Sylfaen","Geor"]),A(["font","Arial","Armn"]),A(["font","Leelawadee UI","Bugi"]),A(["font","Microsoft JhengHei","Bopo"]),A(["font","Javanese Text","Java"]),A(["font","Segoe UI","Lisu"]),A(["font","Myanmar Text","Mymr"]),A(["font","Ebrima","Nkoo"]),A(["font","Nirmala UI","Olck"]),A(["font","Ebrima","Osma"]),A(["font","Phagspa","Phag"]),A(["font","Estrangelo Edessa","Syrn"]),A(["font","Estrangelo Edessa","Syrj"]),A(["font","Estrangelo Edessa","Syre"]),A(["font","Nirmala UI","Sora"]),A(["font","Microsoft Tai Le","Tale"]),A(["font","Microsoft New Tai Lue","Talu"]),A(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[A(["latin","Calibri",void 0,"020F0502020204030204"]),A(["ea",""]),A(["cs",""]),A(["font","\u6E38\u30B4\u30B7\u30C3\u30AF","Jpan"]),A(["font","\uB9D1\uC740 \uACE0\uB515","Hang"]),A(["font","\u7B49\u7EBF","Hans"]),A(["font","\u65B0\u7D30\u660E\u9AD4","Hant"]),A(["font","Arial","Arab"]),A(["font","Arial","Hebr"]),A(["font","Tahoma","Thai"]),A(["font","Nyala","Ethi"]),A(["font","Vrinda","Beng"]),A(["font","Shruti","Gujr"]),A(["font","DaunPenh","Khmr"]),A(["font","Tunga","Knda"]),A(["font","Raavi","Guru"]),A(["font","Euphemia","Cans"]),A(["font","Plantagenet Cherokee","Cher"]),A(["font","Microsoft Yi Baiti","Yiii"]),A(["font","Microsoft Himalaya","Tibt"]),A(["font","MV Boli","Thaa"]),A(["font","Mangal","Deva"]),A(["font","Gautami","Telu"]),A(["font","Latha","Taml"]),A(["font","Estrangelo Edessa","Syrc"]),A(["font","Kalinga","Orya"]),A(["font","Kartika","Mlym"]),A(["font","DokChampa","Laoo"]),A(["font","Iskoola Pota","Sinh"]),A(["font","Mongolian Baiti","Mong"]),A(["font","Arial","Viet"]),A(["font","Microsoft Uighur","Uigh"]),A(["font","Sylfaen","Geor"]),A(["font","Arial","Armn"]),A(["font","Leelawadee UI","Bugi"]),A(["font","Microsoft JhengHei","Bopo"]),A(["font","Javanese Text","Java"]),A(["font","Segoe UI","Lisu"]),A(["font","Myanmar Text","Mymr"]),A(["font","Ebrima","Nkoo"]),A(["font","Nirmala UI","Olck"]),A(["font","Ebrima","Osma"]),A(["font","Phagspa","Phag"]),A(["font","Estrangelo Edessa","Syrn"]),A(["font","Estrangelo Edessa","Syrj"]),A(["font","Estrangelo Edessa","Syre"]),A(["font","Nirmala UI","Sora"]),A(["font","Microsoft Tai Le","Tale"]),A(["font","Microsoft New Tai Lue","Talu"]),A(["font","Ebrima","Tfng"])]}]}}};p.default=E},1203:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let A=(f,S,w)=>({name:`a:${f}`,properties:{rawMap:{val:S}},children:w}),E=f=>{let[S,w,M,P,O,G]=f,j=[];return j.push(A("satMod",M)),P&&j.push(A("lumMod",P)),O&&j.push(A("tint",O)),G&&j.push(A("shade",G)),{name:"a:gs",properties:{rawMap:{pos:S}},children:[{name:"a:schemeClr",properties:{rawMap:{val:w}},children:j}]}},z=(f,S)=>({name:"a:solidFill",children:[A("schemeClr",f,S)]}),T=f=>{let[S,w,M,P,O]=f,[G,j]=O;return{name:"a:gradFill",properties:{rawMap:{rotWithShape:S}},children:[{name:"a:gsLst",children:[E(w),E(M),E(P)]},{name:"a:lin",properties:{rawMap:{ang:G,scaled:j}}}]}},b=f=>{let[S,w,M,P]=f;return{name:"a:ln",properties:{rawMap:{w:S,cap:w,cmpd:M,algn:P}},children:[z("phClr"),A("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]}},C=f=>{let S=[];if(f){let[w,M,P,O,G]=f;S.push({name:"a:outerShdw",properties:{rawMap:{blurRad:w,dist:M,dir:P,algn:O,rotWithShape:G}},children:[A("srgbClr","000000",[A("alpha","63000")])]})}return{name:"a:effectStyle",children:[Object.assign({},{name:"a:effectLst"},S.length?{children:S}:{})]}},d=()=>({name:"a:fillStyleLst",children:[z("phClr"),T(["1",["0","phClr","105000","110000","67000"],["50000","phClr","103000","105000","73000"],["100000","phClr","109000","105000","81000"],["5400000","0"]]),T(["1",["0","phClr","103000","102000","94000"],["50000","phClr","110000","100000",void 0,"100000"],["100000","phClr","120000","99000",void 0,"78000"],["5400000","0"]])]}),s=()=>({name:"a:lnStyleLst",children:[b(["6350","flat","sng","ctr"]),b(["12700","flat","sng","ctr"]),b(["19050","flat","sng","ctr"])]}),c=()=>({name:"a:effectStyleLst",children:[C(),C(),C(["57150","19050","5400000","ctr","0"])]}),h=()=>({name:"a:bgFillStyleLst",children:[z("phClr"),z("phClr",[A("tint","95000"),A("satMod","170000")]),T(["1",["0","phClr","150000","102000","93000","98000"],["50000","phClr","130000","103000","98000","90000"],["100000","phClr","120000",void 0,void 0,"63000"],["5400000","0"]])]}),g={getTemplate(){return{name:"a:fmtScheme",properties:{rawMap:{name:"Office"}},children:[d(),s(),c(),h()]}}};p.default=g},2119:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(5608),z=E.__importDefault(A(9119)),T=E.__importDefault(A(221)),b=E.__importDefault(A(1203)),C={getTemplate(){return{name:"a:themeElements",children:[z.default.getTemplate(),T.default.getTemplate(),b.default.getTemplate()]}}};p.default=C},5592:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(7165),z=()=>({name:"o:shapelayout",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}]},children:[{name:"o:idmap",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}],rawMap:{data:"1"}}}]}),T=()=>({name:"v:stroke",properties:{rawMap:{joinstyle:"miter"}}}),b=w=>({name:"v:formulas",children:w.map(M=>({name:"v:f",properties:{rawMap:{eqn:M}}}))}),C=()=>({name:"v:path",properties:{prefixedAttributes:[{prefix:"o:",map:{connecttype:"rect",extrusionok:"f"}}],rawMap:{gradientshapeok:"t"}}}),d=w=>{let{aspectratio:M,rotation:P}=w||{},O={};return M&&(O.aspectratio="t"),P&&(O.rotation="t"),{name:"o:lock",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}],rawMap:O}}};function s(w,M,P,O,G){return(w-M)/(P-M)*(G-O)+O}let c=(w,M)=>{let P,{recolor:O,brightness:G,contrast:j,id:Y}=w;if(O&&(P={},(O==="Washout"||O==="Grayscale")&&(P.gain="19661f",P.blacklevel="22938f"),(O==="Black & White"||O==="Grayscale")&&(P.grayscale="t",O==="Black & White"&&(P.bilevel="t"))),!O||O==="Grayscale"){if(P||(P={}),j!=null&&j!==50){let J="1";j>=0&&(j<50?J=String(j/50):j<100?J=String(50/(100-j)):j===100&&(J="2147483647f")),P.gain=J}G!=null&&G!==50&&(P.blacklevel=s(G,0,100,-.5,.5).toString())}return{name:"v:imagedata",properties:{prefixedAttributes:[{prefix:"o:",map:{relid:`rId${M}`,title:Y}}],rawMap:P}}},h=()=>{let w=["if lineDrawn pixelLineWidth 0","sum @0 1 0","sum 0 0 @1","prod @2 1 2","prod @3 21600 pixelWidth","prod @3 21600 pixelHeight","sum @0 0 1","prod @6 1 2","prod @7 21600 pixelWidth","sum @8 21600 0","prod @7 21600 pixelHeight","sum @10 21600 0"];return{name:"v:shapetype",properties:{prefixedAttributes:[{prefix:"o:",map:{spt:"75",preferrelative:"t"}}],rawMap:{coordsize:"21600,21600",filled:"f",id:"_x0000_t75",path:"m@4@5l@4@11@9@11@9@5xe",stroked:"f"}},children:[T(),b(w),C(),d({aspectratio:!0})]}},g=w=>Math.floor((w!=null?w:0)*.74999943307122),f=(w,M)=>{let{width:P=0,height:O=0,altText:G}=w,j=g(P),Y=g(O);return{name:"v:shape",properties:{rawMap:{id:w.headerFooterPosition,"o:spid":"_x0000_s1025",style:`position: absolute; margin-left: 0; margin-top: 10in; margin-bottom: 0; margin-right: 0; width: ${j}pt; height: ${Y}pt; z-index: ${M+1}`,type:"#_x0000_t75",alt:G}},children:[c(w,M+1),d({rotation:!0})]}},S={getTemplate(w){let M=E.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.get(w.sheetIndex)||[],P=[z(),h(),...M.map((O,G)=>f(O,G))];return{name:"xml",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{v:"urn:schemas-microsoft-com:vml",o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel"}}]},children:P}}};p.default=S},2519:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let z=A(5608).__importDefault(A(2023)),T={getTemplate(b,C){return{name:"workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[{name:"bookViews",children:[{name:"workbookView",properties:{rawMap:{activeTab:C}}}]},z.default.getTemplate(b)]}}};p.default=T},559:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0});let E=A(5608),z=A(6624),T=A(3237),b=A(7165),C=E.__importDefault(A(3285)),d=E.__importDefault(A(1775)),s=E.__importDefault(A(7067)),c=(tt,ot,st)=>{let St=[],Xe=[];tt.forEach((Ze,Pe)=>{let ct=Ze.cells,dt=0,bt;ct.forEach((Pt,Nt)=>{let ft=Nt+dt+1,Lt=(0,T.getExcelColumnName)(ft),Vt=Pe+1;if(Pt.mergeAcross){dt+=Pt.mergeAcross;let $t=(0,T.getExcelColumnName)(Nt+dt+1);St.push(`${Lt}${Vt}:${$t}${Vt}`)}ot[ft-1]||(ot[ft-1]={});let{collapsibleRanges:Jt}=Pt;Jt&&Jt.forEach($t=>{Xe.push([ft+$t[0],ft+$t[1]])}),bt=ot[ft-1],bt.min=ft,bt.max=ft,Pt.ref=`${Lt}${Vt}`})}),Xe.sort((Ze,Pe)=>Ze[0]!==Pe[0]?Ze[0]-Pe[0]:Pe[1]-Ze[1]);let Ke=new Map,Ye=new Map;return Xe.filter(Ze=>{let Pe=Ze.toString();return Ke.get(Pe)?!1:(Ke.set(Pe,!0),!0)}).forEach(Ze=>{let Pe=ot.find(dt=>dt.min==Ze[0]&&dt.max==Ze[1]),ct=Ye.get(Ze[0]);ot.push({min:Ze[0],max:Ze[1],outlineLevel:st?void 0:ct||1,width:(Pe||{width:100}).width}),Ye.set(Ze[0],(ct||0)+1)}),St},h=tt=>!tt||tt!=="Portrait"&&tt!=="Landscape"?"portrait":tt.toLocaleLowerCase(),g=tt=>{if(tt==null)return 1;let st=["Letter","Letter Small","Tabloid","Ledger","Legal","Statement","Executive","A3","A4","A4 Small","A5","A6","B4","B5","Folio","Envelope","Envelope DL","Envelope C5","Envelope B5","Envelope C3","Envelope C4","Envelope C6","Envelope Monarch","Japanese Postcard","Japanese Double Postcard"].indexOf(tt);return st===-1?1:st+1},f=tt=>(Object.entries({"&[Page]":"&P","&[Pages]":"&N","&[Date]":"&D","&[Time]":"&T","&[Tab]":"&A","&[Path]":"&Z","&[File]":"&F","&[Picture]":"&G"}).forEach(([st,St])=>{tt=tt.replace(st,St)}),tt),S=tt=>tt==="Center"?"C":tt==="Right"?"R":"L",w=(tt,ot)=>(ot&&(tt+="&amp;&quot;",tt+=ot.fontName||"Calibri",ot.bold!==ot.italic?tt+=ot.bold?",Bold":",Italic":ot.bold?tt+=",Bold Italic":tt+=",Regular",tt+="&quot;",ot.size&&(tt+=`&amp;${ot.size}`),ot.strikeThrough&&(tt+="&amp;S"),ot.underline&&(tt+=`&amp;${ot.underline==="Double"?"E":"U"}`),ot.color&&(tt+=`&amp;K${ot.color.replace("#","").toUpperCase()}`)),tt),M=(tt,ot,st)=>tt.reduce((St,Xe,Ke)=>{let Ye=S(Xe.position),Ze=w(`${St}&amp;${Ye}`,Xe.font),Pe=["Left","Center","Right"];Xe.position||(Xe.position=Pe[Ke]);let{image:ct}=Xe;if(Xe.value==="&[Picture]"&&ct){let dt=`${Ye}${ot}${st}`;(0,b.addXlsxHeaderFooterImageToMap)(ct,dt)}return`${Ze}${(0,z._escapeString)(f(Xe.value))}`},""),P=tt=>{let ot=["all","first","even"],st=[];return ot.forEach(St=>{let Xe=tt[St],Ke=St==="all"?"odd":St;if(Xe)for(let[Ye,Ze]of Object.entries(Xe)){let Pe=`${Ye.charAt(0).toUpperCase()}${Ye.slice(1)}`,ct=Ye[0].toUpperCase();if(Ze){let dt=St==="all"?"":St.toUpperCase();st.push({name:`${Ke}${Pe}`,properties:{rawMap:{"xml:space":"preserve"}},textNode:M(Ze,ct,dt)})}}}),st},O=tt=>ot=>(tt.length&&ot.children.push({name:"cols",children:tt.map(st=>C.default.getTemplate(st))}),ot),G=(tt,ot)=>st=>(tt.length&&st.children.push({name:"sheetData",children:tt.map((St,Xe)=>s.default.getTemplate(St,Xe,ot))}),st),j=tt=>ot=>(tt.length&&ot.children.push({name:"mergeCells",properties:{rawMap:{count:tt.length}},children:tt.map(st=>d.default.getTemplate(st))}),ot),Y=tt=>ot=>{let{top:st=.75,right:St=.7,bottom:Xe=.75,left:Ke=.7,header:Ye=.3,footer:Ze=.3}=tt;return ot.children.push({name:"pageMargins",properties:{rawMap:{bottom:Xe,footer:Ze,header:Ye,left:Ke,right:St,top:st}}}),ot},J=tt=>ot=>(tt&&ot.children.push({name:"pageSetup",properties:{rawMap:{horizontalDpi:0,verticalDpi:0,orientation:h(tt.orientation),paperSize:g(tt.pageSize)}}}),ot),ne=tt=>ot=>{if(!tt)return ot;let st=tt.first!=null?1:0,St=tt.even!=null?1:0;return ot.children.push({name:"headerFooter",properties:{rawMap:{differentFirst:st,differentOddEven:St}},children:P(tt)}),ot},ce=tt=>ot=>(tt&&ot.children.push({name:"tableParts",properties:{rawMap:{count:"1"}},children:[{name:"tablePart",properties:{rawMap:{"r:id":`rId${++ot.rIdCounter}`}}}]}),ot),fe=tt=>ot=>{let st=b.XLSX_WORKSHEET_IMAGES.get(tt);return st!=null&&st.length&&ot.children.push({name:"drawing",properties:{rawMap:{"r:id":`rId${++ot.rIdCounter}`}}}),ot},xe=tt=>ot=>(b.XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.get(tt)&&ot.children.push({name:"legacyDrawingHF",properties:{rawMap:{"r:id":`rId${++ot.rIdCounter}`}}}),ot),Le=(tt=0,ot=0)=>{let st=tt>0||ot>0;return st?[{name:"pane",properties:{rawMap:{state:st?"frozen":void 0,topLeftCell:st?`${(0,T.getExcelColumnName)(tt+1)}${ot+1}`:void 0,xSplit:tt===0?void 0:tt,ySplit:ot===0?void 0:ot}}}]:void 0},_e=(tt=!1,ot,st)=>St=>(St.children.push({name:"sheetViews",children:[{name:"sheetView",properties:{rawMap:{rightToLeft:tt===!0?"1":"0",workbookViewId:"0"}},children:Le(ot,st)}]}),St),Fe=()=>tt=>(tt.children.push({name:"sheetPr",children:[{name:"outlinePr",properties:{rawMap:{summaryBelow:0}}}]}),tt),We=tt=>ot=>{let st=tt.reduce((St,Xe)=>Xe.outlineLevel&&Xe.outlineLevel>St?Xe.outlineLevel:St,0);return ot.children.push({name:"sheetFormatPr",properties:{rawMap:{baseColWidth:10,defaultRowHeight:16,outlineLevelRow:st||void 0}}}),ot},it={getTemplate(tt){let{worksheet:ot,currentSheet:st,config:St}=tt,{margins:Xe={},pageSetup:Ke,headerFooterConfig:Ye,suppressColumnOutline:Ze,rightToLeft:Pe,frozenRowCount:ct,frozenColumnCount:dt}=St,{table:bt}=ot,{rows:Pt,columns:Nt}=bt,ft=Nt&&Nt.length?c(Pt,Nt,!!Ze):[],Lt=b.XLSX_WORKSHEET_DATA_TABLES.get(st),{children:Vt}=[Fe(),_e(Pe,dt,ct),We(Pt),O(Nt),G(Pt,st+1),j(ft),Y(Xe),J(Ke),ne(Ye),fe(st),xe(st),ce(Lt)].reduce((Jt,$t)=>$t(Jt),{children:[],rIdCounter:0});return{name:"worksheet",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:Vt}}};p.default=it},5552:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.deflateLocalFile=void 0;let A=async z=>{let T=0,b=[],C=new WritableStream({write:c=>{b.push(c),T+=c.length}}),d=new ReadableStream({start:c=>{let h=new FileReader;h.onload=g=>{var f;(f=g.target)!=null&&f.result&&c.enqueue(g.target.result),c.close()},h.readAsArrayBuffer(z)}}),s=new window.CompressionStream("deflate-raw");return await d.pipeThrough(s).pipeTo(C),{size:T,content:new Blob(b)}},E=async z=>{let T=new Blob([z]),{size:b,content:C}=await A(T),d=new Uint8Array(await C.arrayBuffer());return{size:b,content:d}};p.deflateLocalFile=E},4557:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.convertDecToHex=p.convertDate=p.convertTime=void 0;let A=T=>{let b=T.getHours();return b<<=6,b=b|T.getMinutes(),b<<=5,b=b|T.getSeconds()/2,b};p.convertTime=A;let E=T=>{let b=T.getFullYear()-1980;return b<<=4,b=b|T.getMonth()+1,b<<=5,b=b|T.getDate(),b};p.convertDate=E;function z(T,b){let C="";for(let d=0;d<b;d++)C+=String.fromCharCode(T&255),T>>>=8;return C}p.convertDecToHex=z},758:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getCrcFromCrc32Table=void 0;let A=T=>{if(!T.length)return 0;let b=-1,C=0,d=0,s=0;for(let c=0;c<T.length;c++)C=T[c],d=(b^C)&255,s=z[d],b=b>>>8^s;return b^-1},E=T=>T.length?A(typeof T=="string"?new TextEncoder().encode(T):T):0;p.getCrcFromCrc32Table=E;let z=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117])},5950:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ZipContainer=void 0;let E=A(6090);class z{constructor(){this.folders=[],this.files=[]}addFolders(b){b.forEach(this.addFolder.bind(this))}addFolder(b){this.folders.push({path:b,created:new Date,isBase64:!1,type:"folder"})}addFile(b,C,d=!1){this.files.push({path:b,created:new Date,content:d?C:new TextEncoder().encode(C),isBase64:d,type:"file"})}async getZipFile(b="application/zip"){let C=await this.buildCompressedFileStream();return this.clearStream(),new Blob([C],{type:b})}getUncompressedZipFile(b="application/zip"){let C=this.buildFileStream();return this.clearStream(),new Blob([C],{type:b})}clearStream(){this.folders=[],this.files=[]}packageFiles(b){let C=0,d=0;for(let w of b){let{localFileHeader:M,centralDirectoryHeader:P,content:O}=w;C+=M.length+O.length,d+=P.length}let s=new Uint8Array(C),c=new Uint8Array(d),h=0,g=0;for(let w of b){let{localFileHeader:M,centralDirectoryHeader:P,content:O}=w;s.set(M,h),h+=M.length,s.set(O,h),h+=O.length,c.set(P,g),g+=P.length}let f=(0,E.buildCentralDirectoryEnd)(b.length,d,C),S=new Uint8Array(s.length+c.length+f.length);return S.set(s),S.set(c,s.length),S.set(f,s.length+c.length),S}async buildCompressedFileStream(){let b=[...this.folders,...this.files],C=[],d=0;for(let s of b){let c=await(0,E.getDeflatedHeaderAndContent)(s,d),{localFileHeader:h,content:g}=c;C.push(c),d+=h.length+g.length}return this.packageFiles(C)}buildFileStream(){let b=[...this.folders,...this.files],C=[],d=0;for(let s of b){let c=(0,E.getHeaderAndContent)(s,d),{localFileHeader:h,content:g}=c;C.push(c),d+=h.length+g.length}return this.packageFiles(C)}}p.ZipContainer=z},6090:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.buildCentralDirectoryEnd=p.getHeaderAndContent=p.getDeflatedHeaderAndContent=void 0;let E=A(6624),z=A(5552),T=A(4557),b=A(758);function C(f){let S=String.fromCharCode;function w(ce){let fe=[];if(!ce)return[];let xe=ce.length,Le=0,_e,Fe;for(;Le<xe;)_e=ce.charCodeAt(Le++),_e>=55296&&_e<=56319&&Le<xe?(Fe=ce.charCodeAt(Le++),(Fe&64512)==56320?fe.push(((_e&1023)<<10)+(Fe&1023)+65536):(fe.push(_e),Le--)):fe.push(_e);return fe}function M(ce){if(ce>=55296&&ce<=57343)throw Error((0,E._errMsg)(255,{point:ce}))}function P(ce,fe){return S(ce>>fe&63|128)}function O(ce){if(!(ce&4294967168))return S(ce);let fe="";return ce&4294965248?ce&4294901760?ce&4292870144||(fe=S(ce>>18&7|240),fe+=P(ce,12),fe+=P(ce,6)):(M(ce),fe=S(ce>>12&15|224),fe+=P(ce,6)):fe=S(ce>>6&31|192),fe+=S(ce&63|128),fe}let G=w(f),j=G.length,Y=-1,J,ne="";for(;++Y<j;)J=G[Y],ne+=O(J);return ne}let d=(f,S,w,M,P,O)=>{let{content:G,path:j,created:Y}=f,J=(0,T.convertTime)(Y),ne=(0,T.convertDate)(Y),ce=(0,b.getCrcFromCrc32Table)(P),fe=O!==void 0?O:M,xe=C(j),Le=xe!==j,_e="";if(Le){let tt=(0,T.convertDecToHex)(1,1)+(0,T.convertDecToHex)((0,b.getCrcFromCrc32Table)(xe),4)+xe;_e="up"+(0,T.convertDecToHex)(tt.length,2)+tt}let Fe="\0"+(Le?"\0\b":"\0\0")+(0,T.convertDecToHex)(S?8:0,2)+(0,T.convertDecToHex)(J,2)+(0,T.convertDecToHex)(ne,2)+(0,T.convertDecToHex)(fe?ce:0,4)+(0,T.convertDecToHex)(O!=null?O:M,4)+(0,T.convertDecToHex)(M,4)+(0,T.convertDecToHex)(xe.length,2)+(0,T.convertDecToHex)(_e.length,2),We="PK"+Fe+xe+_e,it="PK\0"+Fe+"\0\0\0\0\0\0"+(G?"\0\0\0\0":"\0\0\0")+(0,T.convertDecToHex)(w,4)+xe+_e;return{localFileHeader:Uint8Array.from(We,tt=>tt.charCodeAt(0)),centralDirectoryHeader:Uint8Array.from(it,tt=>tt.charCodeAt(0))}},s=f=>{let S;if(typeof f=="string"){let w=atob(f.split(";base64,")[1]);S=Uint8Array.from(w,M=>M.charCodeAt(0))}else S=f;return{size:S.length,content:S}},c=async(f,S)=>{let{content:w}=f,{size:M,content:P}=w?s(w):{size:0,content:Uint8Array.from([])},O,G,j=!1;if(f.type==="file"&&P&&M>0){let ne=await(0,z.deflateLocalFile)(P);O=ne.content,G=ne.size,j=!0}let J=d(f,j,S,M,P,G);return He(ge({},J),{content:O||P,isCompressed:j})};p.getDeflatedHeaderAndContent=c;let h=(f,S)=>{let{content:w}=f,{content:M}=w?s(w):{content:Uint8Array.from([])},P=d(f,!1,S,M.length,M,void 0);return He(ge({},P),{content:M,isCompressed:!1})};p.getHeaderAndContent=h;let g=(f,S,w)=>{let M="PK\0\0\0\0"+(0,T.convertDecToHex)(f,2)+(0,T.convertDecToHex)(f,2)+(0,T.convertDecToHex)(S,4)+(0,T.convertDecToHex)(w,4)+"\0\0";return Uint8Array.from(M,P=>P.charCodeAt(0))};p.buildCentralDirectoryEnd=g},5760:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.VirtualListDragFeature=void 0;let E=A(6624),z="ag-list-item-hovered";class T extends E.BeanStub{wireBeans(C){this.dragAndDrop=C.dragAndDrop}constructor(C,d,s){super(),this.comp=C,this.virtualList=d,this.params=s,this.currentDragValue=null,this.lastHoveredListItem=null}postConstruct(){this.addManagedListeners(this.params.eventSource,{[this.params.listItemDragStartEvent]:this.listItemDragStart.bind(this),[this.params.listItemDragEndEvent]:this.listItemDragEnd.bind(this)}),this.createDropTarget(),this.createAutoScrollService()}listItemDragStart(C){this.currentDragValue=this.params.getCurrentDragValue(C),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)}listItemDragEnd(){window.setTimeout(()=>{this.currentDragValue=null,this.moveBlocked=!1},10)}createDropTarget(){var d;let C={isInterestedIn:s=>s===this.params.dragSourceType,getIconName:()=>this.moveBlocked?"pinned":"move",getContainer:()=>this.comp.getGui(),onDragging:s=>this.onDragging(s),onDragStop:()=>this.onDragStop(),onDragLeave:()=>this.onDragLeave(),onDragCancel:()=>this.onDragCancel()};(d=this.dragAndDrop)==null||d.addDropTarget(C)}createAutoScrollService(){let C=this.virtualList.getGui();this.autoScrollService=new E.AutoScrollService({scrollContainer:C,scrollAxis:"y",getVerticalPosition:()=>C.scrollTop,setVerticalPosition:d=>C.scrollTop=d})}onDragging(C){if(!this.currentDragValue||this.moveBlocked)return;let d=this.getListDragItem(C),s=this.virtualList.getComponentAt(d.rowIndex);if(!s)return;let c=s.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===d.rowIndex&&this.lastHoveredListItem.position===d.position||(this.autoScrollService.check(C.event),this.clearHoveredItems(),this.lastHoveredListItem=d,(0,E._radioCssClass)(c,z),(0,E._radioCssClass)(c,`ag-item-highlight-${d.position}`))}getListDragItem(C){let d=this.virtualList.getGui(),s=parseFloat(window.getComputedStyle(d).paddingTop),c=this.virtualList.getRowHeight(),h=this.virtualList.getScrollTop(),g=Math.max(0,(C.y-s+h)/c),f=this.params.getNumRows(this.comp)-1,S=Math.min(f,g)|0;return{rowIndex:S,position:Math.round(g)>g||g>f?"bottom":"top",component:this.virtualList.getComponentAt(S)}}onDragStop(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearDragProperties())}onDragCancel(){this.clearDragProperties()}onDragLeave(){this.clearDragProperties()}clearDragProperties(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()}clearHoveredItems(){this.virtualList.getGui().querySelectorAll(`.${z}`).forEach(d=>{[z,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(s=>{d.classList.remove(s)})}),this.lastHoveredListItem=null}}p.VirtualListDragFeature=T},8046:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgFiltersToolPanelHeaderSelector=p.AgFiltersToolPanelHeader=p.EXPAND_STATE=void 0;let E=A(6624);var z;(function(b){b[b.EXPANDED=0]="EXPANDED",b[b.COLLAPSED=1]="COLLAPSED",b[b.INDETERMINATE=2]="INDETERMINATE"})(z||(p.EXPAND_STATE=z={}));class T extends E.Component{constructor(){super(...arguments),this.eExpand=E.RefPlaceholder,this.eFilterTextField=E.RefPlaceholder}postConstruct(){this.setTemplate(`<div class="ag-filter-toolpanel-search" role="presentation">
                <div data-ref="eExpand" class="ag-filter-toolpanel-expand"></div>
                <ag-input-text-field data-ref="eFilterTextField" class="ag-filter-toolpanel-search-input"></ag-input-text-field>
            </div>`,[E.AgInputTextFieldSelector]);let C=this.getLocaleTextFunc();this.eFilterTextField.setAutoComplete(!1).setInputAriaLabel(C("ariaFilterColumnsInput","Filter Columns Input")).onValueChange(this.onSearchTextChanged.bind(this)),this.createExpandIcons(),this.setExpandState(z.EXPANDED),this.addManagedElementListeners(this.eExpand,{click:this.onExpandClicked.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideOptions.bind(this)})}init(C){this.params=C,this.beans.colModel.ready&&this.showOrHideOptions()}createExpandIcons(){let{eExpand:C,beans:d}=this;C.appendChild(this.eExpandChecked=(0,E._createIconNoSpan)("accordionOpen",d)),C.appendChild(this.eExpandUnchecked=(0,E._createIconNoSpan)("accordionClosed",d)),C.appendChild(this.eExpandIndeterminate=(0,E._createIconNoSpan)("accordionIndeterminate",d))}showOrHideOptions(){let{params:C,eFilterTextField:d}=this,s=!C.suppressFilterSearch,c=!C.suppressExpandAll,h=this.getLocaleTextFunc();d.setInputPlaceholder(h("searchOoo","Search..."));let g=S=>S.getOriginalParent()&&S.isFilterAllowed(),f=this.beans.colModel.getCols().some(g);(0,E._setDisplayed)(d.getGui(),s),(0,E._setDisplayed)(this.eExpand,c&&f)}onSearchTextChanged(){this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=(0,E._debounce)(this,()=>this.dispatchLocalEvent({type:"searchChanged",searchText:this.eFilterTextField.getValue()}),300)),this.onSearchTextChangedDebounced()}onExpandClicked(){let C=this.currentExpandState===z.EXPANDED?{type:"collapseAll"}:{type:"expandAll"};this.dispatchLocalEvent(C)}setExpandState(C){this.currentExpandState=C,(0,E._setDisplayed)(this.eExpandChecked,C===z.EXPANDED),(0,E._setDisplayed)(this.eExpandUnchecked,C===z.COLLAPSED),(0,E._setDisplayed)(this.eExpandIndeterminate,C===z.INDETERMINATE)}}p.AgFiltersToolPanelHeader=T,p.AgFiltersToolPanelHeaderSelector={selector:"AG-FILTERS-TOOL-PANEL-HEADER",component:T}},7291:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgFiltersToolPanelListSelector=p.AgFiltersToolPanelList=void 0;let E=A(6624),z=A(6092),T=A(8046),b=A(3905),C=A(5296);class d extends E.Component{wireBeans(c){this.colModel=c.colModel}constructor(){super('<div class="ag-filter-list-panel"></div>'),this.initialised=!1,this.hasLoadedInitialState=!1,this.isInitialState=!1,this.filterGroupComps=[],this.suppressOnColumnsChanged=!1,this.onColumnsChangedPending=!1}init(c){this.initialised=!0;let h=this.gos.addGridCommonParams({suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1});(0,E._mergeDeep)(h,c),this.params=h,h.suppressSyncLayoutWithGrid||this.addManagedEventListeners({columnMoved:()=>this.onColumnsChanged()}),this.addManagedEventListeners({newColumnsLoaded:()=>this.onColumnsChanged(),toolPanelVisibleChanged:g=>{g.key==="filters"&&this.refreshFilters(g.visible)},dragStarted:()=>{this.suppressOnColumnsChanged=!0},dragStopped:()=>{this.suppressOnColumnsChanged=!1,this.onColumnsChangedPending&&(this.onColumnsChangedPending=!1,this.onColumnsChanged())}}),this.colModel.ready&&this.onColumnsChanged()}onColumnsChanged(){if(this.suppressOnColumnsChanged){this.onColumnsChangedPending=!0;return}let c=this.colModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!c?this.syncFilterLayout():this.buildTreeFromProvidedColumnDefs(),this.refreshAriaLabel()}syncFilterLayout(){(0,z.syncLayoutWithGrid)(this.colModel,this.setFiltersLayout.bind(this)),this.refreshAriaLabel()}buildTreeFromProvidedColumnDefs(){let c=this.colModel.getColDefColTree();this.recreateFilters(c)}setFiltersLayout(c){let h=(0,z.toolPanelCreateColumnTree)(this.colModel,c);this.recreateFilters(h)}recreateFilters(c){let h=(0,E._getActiveDomElement)(this.beans);this.hasLoadedInitialState||(this.hasLoadedInitialState=!0,this.isInitialState=!!this.params.initialState);let g=this.getExpansionState();this.destroyFilters();let f=this.recursivelyAddComps(c,0,g);this.filterGroupComps=f;let S=f.length;S&&(f.forEach(M=>this.appendChild(M)),this.setFirstAndLastVisible(0,S-1));let w=this.searchFilterText;(0,E._exists)(w)&&this.searchFilters(w),this.fireExpandedEvent(),this.getGui().contains(h)&&h.focus(),this.isInitialState=!1,this.refreshAriaLabel()}recursivelyAddComps(c,h,g){return c.map(f=>{var O,G;if((0,E.isProvidedColumnGroup)(f))return(G=(O=this.recursivelyAddFilterGroupComps(f,h,g))==null?void 0:O.flatMap(j=>j))!=null?G:[];let S=f;if(!this.shouldDisplayFilter(S))return[];let w=h===0,M=new b.ToolPanelFilterComp(w,()=>this.onFilterExpanded());if(this.createBean(M),M.setColumn(S),g.get(S.getId())&&M.expand(),h>0)return M;let P=this.createBean(new C.ToolPanelFilterGroupComp(S,[M],this.onGroupExpanded.bind(this),h,!0));return P.addCssClassToTitleBar("ag-filter-toolpanel-header"),g.get(P.getFilterGroupId())||P.collapse(),P}).flatMap(f=>f)}refreshAriaLabel(){let c=this.getLocaleTextFunc(),h=c("ariaFilterPanelList","Filter List"),g=c("filters","Filters"),f=this.getGui(),S=".ag-filter-toolpanel-group-wrapper",w=".ag-filter-toolpanel-group-item",M=".ag-hidden",O=f.querySelectorAll(`${w}:not(${S}, ${M})`).length;(0,E._setAriaLabel)(this.getAriaElement(),`${h} ${O} ${g}`)}recursivelyAddFilterGroupComps(c,h,g){if(!this.filtersExistInChildren(c.getChildren()))return;let f=c.getColGroupDef();if(f&&f.suppressFiltersToolPanel)return[];let S=c.isPadding()?h:h+1,w=this.recursivelyAddComps(c.getChildren(),S,g).flatMap(O=>O);if(c.isPadding())return w;let M=new C.ToolPanelFilterGroupComp(c,w,this.onGroupExpanded.bind(this),h,!1);this.createBean(M),M.addCssClassToTitleBar("ag-filter-toolpanel-header");let P=g.get(M.getFilterGroupId());return(this.isInitialState&&!P||P===!1)&&M.collapse(),[M]}filtersExistInChildren(c){return c.some(h=>(0,E.isProvidedColumnGroup)(h)?this.filtersExistInChildren(h.getChildren()):this.shouldDisplayFilter(h))}shouldDisplayFilter(c){let h=c.getColDef()&&c.getColDef().suppressFiltersToolPanel;return c.isFilterAllowed()&&!h}getExpansionState(){let c=new Map;if(this.isInitialState){let{expandedColIds:g,expandedGroupIds:f}=this.params.initialState;return g.forEach(S=>c.set(S,!0)),f.forEach(S=>c.set(S,!0)),c}let h=g=>{c.set(g.getFilterGroupId(),g.isExpanded()),g.getChildren().forEach(f=>{f instanceof C.ToolPanelFilterGroupComp?h(f):c.set(f.getColumn().getId(),f.isExpanded())})};return this.filterGroupComps.forEach(h),c}refresh(){}setVisible(c){super.setDisplayed(c),c&&!this.initialised&&this.init(this.params)}expandFilterGroups(c,h){let g=[],f=S=>{let w=S.getFilterGroupId();(!h||h.includes(w))&&(c&&S.isColumnGroup()?S.expand():S.collapse(),g.push(w)),S.getChildren().forEach(P=>{P instanceof C.ToolPanelFilterGroupComp&&f(P)})};if(this.filterGroupComps.forEach(f),this.onGroupExpanded(),h){let S=h.filter(w=>g.indexOf(w)<0);S.length>0&&(0,E._warn)(166,{unrecognisedGroupIds:S})}}expandFilters(c,h){let g=[],f=S=>{if(S instanceof C.ToolPanelFilterGroupComp){let P=!1;return S.getChildren().forEach(O=>{f(O)&&(c?(S.expand(),P=!0):S.isColumnGroup()||S.collapse())}),P}let w=S.getColumn().getColId(),M=!h||h.includes(w);return M&&(c?S.expand():S.collapse(),g.push(w)),M};if(this.filterGroupComps.forEach(f),this.onGroupExpanded(),h){let S=h.filter(w=>g.indexOf(w)<0);S.length>0&&(0,E._warn)(167,{unrecognisedColIds:S})}}onGroupExpanded(){this.fireExpandedEvent()}onFilterExpanded(){this.dispatchLocalEvent({type:"filterExpanded"})}fireExpandedEvent(){let c=0,h=0,g=S=>{S.isColumnGroup()&&(S.isExpanded()?c++:h++,S.getChildren().forEach(w=>{w instanceof C.ToolPanelFilterGroupComp&&g(w)}))};this.filterGroupComps.forEach(g);let f;c>0&&h>0?f=T.EXPAND_STATE.INDETERMINATE:h>0?f=T.EXPAND_STATE.COLLAPSED:f=T.EXPAND_STATE.EXPANDED,this.dispatchLocalEvent({type:"groupExpanded",state:f})}performFilterSearch(c){this.searchFilterText=(0,E._exists)(c)?c.toLowerCase():null,this.searchFilters(this.searchFilterText)}searchFilters(c){let h=w=>!(0,E._exists)(c)||w.toLowerCase().indexOf(c)!==-1,g=(w,M)=>{if(!(w instanceof C.ToolPanelFilterGroupComp))return h(w.getColumnFilterName()||"");let P=w.getChildren(),O=h(w.getFilterGroupName()),G=M||O;if(G){w.hideGroup(!1);for(let Y=0;Y<P.length;Y++)g(P[Y],G),w.hideGroupItem(!1,Y);return!0}let j=!1;return P.forEach((Y,J)=>{let ne=g(Y,M);w.hideGroupItem(!ne,J),ne&&(j=!0)}),w.hideGroup(!j),j},f,S;this.filterGroupComps.forEach((w,M)=>{g(w,!1),f===void 0?w.containsCssClass("ag-hidden")||(f=M,S=M):!w.containsCssClass("ag-hidden")&&S!==M&&(S=M)}),this.setFirstAndLastVisible(f,S),this.refreshAriaLabel()}setFirstAndLastVisible(c,h){this.filterGroupComps.forEach((g,f)=>{g.removeCssClass("ag-first-group-visible"),g.removeCssClass("ag-last-group-visible"),f===c&&g.addCssClass("ag-first-group-visible"),f===h&&g.addCssClass("ag-last-group-visible")})}refreshFilters(c){this.filterGroupComps.forEach(h=>h.refreshFilters(c))}getExpandedFiltersAndGroups(){let c=[],h=new Set,g=f=>{if(f instanceof C.ToolPanelFilterGroupComp){f.getChildren().forEach(w=>g(w));let S=f.getFilterGroupId();f.isExpanded()&&!h.has(S)&&c.push(S)}else f.isExpanded()&&h.add(f.getColumn().getColId())};return this.filterGroupComps.forEach(g),{expandedGroupIds:c,expandedColIds:Array.from(h)}}destroyFilters(){this.filterGroupComps=this.destroyBeans(this.filterGroupComps),(0,E._clearElement)(this.getGui())}destroy(){this.destroyFilters(),super.destroy()}}p.AgFiltersToolPanelList=d,p.AgFiltersToolPanelListSelector={selector:"AG-FILTERS-TOOL-PANEL-LIST",component:d}},662:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.filtersToolPanelCSS=void 0,p.filtersToolPanelCSS=".ag-filter-toolpanel{flex:1 1 0px;min-width:0}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{align-items:center;color:var(--ag-header-text-color);display:flex;font-weight:500;padding:0 var(--ag-spacing);>*{align-items:center;display:flex}}.ag-filter-toolpanel-header{padding-bottom:var(--ag-spacing);padding-top:var(--ag-spacing);position:relative;&:focus-visible{border-radius:var(--ag-border-radius);box-shadow:inset var(--ag-focus-shadow)}}:where(.ag-ltr) .ag-filter-toolpanel-group-instance-header-icon,:where(.ag-ltr) .ag-filter-toolpanel-instance-header-icon{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-group-instance-header-icon,:where(.ag-rtl) .ag-filter-toolpanel-instance-header-icon{margin-right:var(--ag-spacing)}.ag-filter-toolpanel-search{margin-bottom:var(--ag-spacing);margin-top:var(--ag-widget-container-vertical-padding)}:where(.ag-filter-toolpanel-group:not(.ag-has-filter)>.ag-group-title-bar) .ag-filter-toolpanel-group-instance-header-icon{display:none}.ag-filter-toolpanel-search-input{flex-grow:1;height:calc(var(--ag-spacing)*4)}:where(.ag-ltr) .ag-filter-toolpanel-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-group-title-bar-icon{margin-left:var(--ag-spacing)}.ag-filter-toolpanel-expand{cursor:pointer}:where(.ag-ltr) .ag-filter-toolpanel-expand{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-filter-toolpanel-expand{margin-left:var(--ag-spacing)}:where(.ag-ltr) .ag-filter-toolpanel-group-title-bar,:where(.ag-ltr) .ag-filter-toolpanel-instance-header{padding-left:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-filter-toolpanel-group-title-bar,:where(.ag-rtl) .ag-filter-toolpanel-instance-header{padding-right:calc(var(--ag-spacing) + var(--ag-filter-tool-panel-group-indent)*var(--ag-indentation-level))}:where(.ag-ltr) .ag-filter-toolpanel-instance-body{margin-left:var(--ag-filter-tool-panel-group-indent)}:where(.ag-rtl) .ag-filter-toolpanel-instance-body{margin-right:var(--ag-filter-tool-panel-group-indent)}.ag-filter-toolpanel-instance-filter{background-color:var(--ag-chrome-background-color)}.ag-filter-toolpanel-group-level-0{border-top:none}"},983:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FiltersToolPanel=void 0;let E=A(6624),z=A(8046),T=A(7291),b=A(662);class C extends E.Component{constructor(){super(`<div class="ag-filter-toolpanel">
            <ag-filters-tool-panel-header data-ref="filtersToolPanelHeaderPanel"></ag-filters-tool-panel-header>
            <ag-filters-tool-panel-list data-ref="filtersToolPanelListPanel"></ag-filters-tool-panel-list>
         </div>`,[z.AgFiltersToolPanelHeaderSelector,T.AgFiltersToolPanelListSelector]),this.filtersToolPanelHeaderPanel=E.RefPlaceholder,this.filtersToolPanelListPanel=E.RefPlaceholder,this.initialised=!1,this.listenerDestroyFuncs=[],this.registerCSS(b.filtersToolPanelCSS)}init(s){this.initialised&&(this.listenerDestroyFuncs.forEach(M=>M()),this.listenerDestroyFuncs=[]),this.initialised=!0;let c=this.gos.addGridCommonParams({suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1}),h=ge(ge({},c),s);this.params=h;let{filtersToolPanelHeaderPanel:g,filtersToolPanelListPanel:f}=this;g.init(h),f.init(h);let S=h.suppressExpandAll,w=h.suppressFilterSearch;S&&w&&g.setDisplayed(!1),this.listenerDestroyFuncs.push(...this.addManagedListeners(g,{expandAll:()=>f.expandFilterGroups(!0),collapseAll:()=>f.expandFilterGroups(!1),searchChanged:M=>f.performFilterSearch(M.searchText)}),...this.addManagedListeners(f,{filterExpanded:h.onStateUpdated,groupExpanded:M=>{g.setExpandState(M.state),h.onStateUpdated()}}))}setVisible(s){super.setDisplayed(s),s&&!this.initialised&&this.init(this.params)}setFilterLayout(s){this.filtersToolPanelListPanel.setFiltersLayout(s)}expandFilterGroups(s){this.filtersToolPanelListPanel.expandFilterGroups(!0,s)}collapseFilterGroups(s){this.filtersToolPanelListPanel.expandFilterGroups(!1,s)}expandFilters(s){this.filtersToolPanelListPanel.expandFilters(!0,s)}collapseFilters(s){this.filtersToolPanelListPanel.expandFilters(!1,s)}syncLayoutWithGrid(){this.filtersToolPanelListPanel.syncFilterLayout()}refresh(s){return this.init(s),!0}getState(){return this.filtersToolPanelListPanel.getExpandedFiltersAndGroups()}}p.FiltersToolPanel=C},2515:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FiltersToolPanelModule=void 0;let E=A(6624),z=A(9206),T=A(6358),b=A(7205),C=A(983);p.FiltersToolPanelModule={moduleName:"FiltersToolPanel",version:b.VERSION,userComponents:{agFiltersToolPanel:C.FiltersToolPanel},icons:{filtersToolPanel:"filter"},dependsOn:[T.SideBarModule,z.EnterpriseCoreModule,E._ColumnFilterModule]}},3905:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelFilterComp=void 0;let E=A(6624);class z extends E.Component{constructor(b,C){super(`
            <div class="ag-filter-toolpanel-instance">
                <div class="ag-filter-toolpanel-header ag-filter-toolpanel-instance-header" data-ref="eFilterToolPanelHeader" role="button" aria-expanded="false">
                    <div data-ref="eExpand" class="ag-filter-toolpanel-expand"></div>
                    <span data-ref="eFilterName" class="ag-header-cell-text"></span>
                    <span data-ref="eFilterIcon" class="ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon" aria-hidden="true"></span>
                </div>
                <div class="ag-filter-toolpanel-instance-body ag-filter" data-ref="agFilterToolPanelBody"></div>
            </div>`),this.hideHeader=b,this.expandedCallback=C,this.eFilterToolPanelHeader=E.RefPlaceholder,this.eFilterName=E.RefPlaceholder,this.agFilterToolPanelBody=E.RefPlaceholder,this.eFilterIcon=E.RefPlaceholder,this.eExpand=E.RefPlaceholder,this.expanded=!1}postConstruct(){let{beans:b,eExpand:C}=this,d=(0,E._createIconNoSpan)("accordionOpen",b);this.eExpandChecked=d;let s=(0,E._createIconNoSpan)("accordionClosed",b);this.eExpandUnchecked=s,C.appendChild(d),C.appendChild(s)}setColumn(b){this.column=b;let{beans:C,eFilterToolPanelHeader:d,eFilterIcon:s,eExpandChecked:c,hideHeader:h}=this;this.eFilterName.innerText=C.colNames.getDisplayNameForColumn(b,"filterToolPanel",!1)||"",this.addManagedListeners(d,{click:this.toggleExpanded.bind(this),keydown:this.onKeyDown.bind(this)}),this.addManagedEventListeners({filterOpened:this.onFilterOpened.bind(this)}),this.addInIcon("filterActive",s,b),(0,E._setDisplayed)(s,this.isFilterActive(),{skipAriaHidden:!0}),(0,E._setDisplayed)(c,!1),h?((0,E._setDisplayed)(d,!1),d.removeAttribute("tabindex")):d.setAttribute("tabindex","0"),this.addManagedListeners(b,{filterChanged:this.onFilterChanged.bind(this)})}onKeyDown(b){let{key:C}=b,{ENTER:d,SPACE:s,LEFT:c,RIGHT:h}=E.KeyCode;C!==d&&C!==s&&C!==c&&C!==h||(b.preventDefault(),C===d||C===s?this.toggleExpanded():C===E.KeyCode.LEFT?this.collapse():this.expand())}getColumn(){return this.column}getColumnFilterName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"filterToolPanel",!1)}addCssClassToTitleBar(b){this.eFilterToolPanelHeader.classList.add(b)}addInIcon(b,C,d){if(C==null)return;let s=(0,E._createIconNoSpan)(b,this.beans,d);C.appendChild(s)}isFilterActive(){var b;return!!((b=this.beans.filterManager)!=null&&b.isFilterActive(this.column))}onFilterChanged(){(0,E._setDisplayed)(this.eFilterIcon,this.isFilterActive(),{skipAriaHidden:!0}),this.dispatchLocalEvent({type:"filterChanged"})}toggleExpanded(){this.expanded?this.collapse():this.expand()}expand(){this.expanded||(this.expanded=!0,(0,E._setAriaExpanded)(this.eFilterToolPanelHeader,!0),(0,E._setDisplayed)(this.eExpandChecked,!0),(0,E._setDisplayed)(this.eExpandUnchecked,!1),this.addFilterElement(),this.expandedCallback())}addFilterElement(b){var s;let C=(0,E._loadTemplate)('<div class="ag-filter-toolpanel-instance-filter"></div>'),d=this.createManagedBean(new E.FilterWrapperComp(this.column,"TOOLBAR"));this.filterWrapperComp=d,d.hasFilter()&&((s=d.getFilter())==null||s.then(c=>{this.underlyingFilter=c,c&&(C.appendChild(d.getGui()),this.agFilterToolPanelBody.appendChild(C),d.afterGuiAttached({container:"toolPanel",suppressFocus:b}))}))}collapse(){if(!this.expanded)return;this.expanded=!1,(0,E._setAriaExpanded)(this.eFilterToolPanelHeader,!1),this.removeFilterElement(),(0,E._setDisplayed)(this.eExpandChecked,!1),(0,E._setDisplayed)(this.eExpandUnchecked,!0);let b=this.filterWrapperComp;b==null||b.afterGuiDetached(),this.destroyBean(b),this.expandedCallback()}removeFilterElement(){(0,E._clearElement)(this.agFilterToolPanelBody)}isExpanded(){return this.expanded}refreshFilter(b){var d;if(!this.expanded)return;let C=this.underlyingFilter;C&&(b?typeof C.refreshVirtualList=="function"&&C.refreshVirtualList():(d=C.afterGuiDetached)==null||d.call(C))}onFilterOpened(b){b.source==="COLUMN_MENU"&&b.column===this.column&&this.expanded&&this.collapse()}}p.ToolPanelFilterComp=z},5296:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelFilterGroupComp=void 0;let E=A(6624),z=A(1421),T=A(3905);class b extends E.Component{constructor(d,s,c,h,g){super(),this.columnGroup=d,this.childFilterComps=s,this.expandedCallback=c,this.depth=h,this.showingColumn=g,this.filterGroupComp=E.RefPlaceholder}postConstruct(){let d={cssIdentifier:"filter-toolpanel",direction:"vertical"};this.setTemplate(`<div class="ag-filter-toolpanel-group-wrapper">
            <ag-group-component data-ref="filterGroupComp"></ag-group-component>
        </div>`,[z.AgGroupComponentSelector],{filterGroupComp:d}),this.setGroupTitle();let{filterGroupComp:s,depth:c,childFilterComps:h,gos:g}=this;s.setAlignItems("stretch"),s.addCssClass(`ag-filter-toolpanel-group-level-${c}`),s.getGui().style.setProperty("--ag-indentation-level",String(c)),s.addCssClassToTitleBar(`ag-filter-toolpanel-group-level-${c}-header`),h.forEach(f=>{s.addItem(f),f.addCssClassToTitleBar(`ag-filter-toolpanel-group-level-${c+1}-header`),f.getGui().style.setProperty("--ag-indentation-level",String(c+1))}),this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getLocation:()=>"filterToolPanelColumnGroup",shouldDisplayTooltip:(0,E._getShouldDisplayTooltip)(g,()=>s.getGui().querySelector(".ag-group-title"))})),this.refreshFilterClass(),this.addExpandCollapseListeners(),this.addFilterChangedListeners(),this.setupTooltip(),this.addInIcon("filterActive")}setupTooltip(){if(!this.showingColumn)return;let d=()=>{var s;(s=this.tooltipFeature)==null||s.setTooltipAndRefresh(this.columnGroup.getColDef().headerTooltip)};d(),this.addManagedEventListeners({newColumnsLoaded:d})}addCssClassToTitleBar(d){this.filterGroupComp.addCssClassToTitleBar(d)}refreshFilters(d){this.childFilterComps.forEach(s=>{s instanceof b?s.refreshFilters(d):s.refreshFilter(d)})}isColumnGroup(){return(0,E.isProvidedColumnGroup)(this.columnGroup)}isExpanded(){return this.filterGroupComp.isExpanded()}getChildren(){return this.childFilterComps}getFilterGroupName(){var d;return(d=this.filterGroupName)!=null?d:""}getFilterGroupId(){return this.columnGroup.getId()}hideGroupItem(d,s){this.filterGroupComp.hideItem(d,s)}hideGroup(d){this.setDisplayed(!d)}addInIcon(d){let s=(0,E._createIconNoSpan)(d,this.beans);s&&s.classList.add("ag-filter-toolpanel-group-instance-header-icon"),this.filterGroupComp.addTitleBarWidget(s)}forEachToolPanelFilterChild(d){this.childFilterComps.forEach(s=>{s instanceof T.ToolPanelFilterComp&&d(s)})}addExpandCollapseListeners(){let d=this.isColumnGroup()?()=>this.expandedCallback():()=>this.forEachToolPanelFilterChild(c=>c.expand()),s=this.isColumnGroup()?()=>this.expandedCallback():()=>this.forEachToolPanelFilterChild(c=>c.collapse());this.addManagedListeners(this.filterGroupComp,{expanded:d,collapsed:s})}getColumns(){return(0,E.isProvidedColumnGroup)(this.columnGroup)?this.columnGroup.getLeafColumns():[this.columnGroup]}addFilterChangedListeners(){this.getColumns().forEach(d=>{this.addManagedListeners(d,{filterChanged:()=>this.refreshFilterClass()})}),(0,E.isProvidedColumnGroup)(this.columnGroup)||this.addManagedEventListeners({filterOpened:this.onFilterOpened.bind(this)})}refreshFilterClass(){let d=this.getColumns(),s=()=>d.some(c=>c.isFilterActive());this.filterGroupComp.addOrRemoveCssClass("ag-has-filter",s())}onFilterOpened(d){d.source==="COLUMN_MENU"&&d.column===this.columnGroup&&this.isExpanded()&&this.collapse()}expand(){this.filterGroupComp.toggleGroupExpand(!0)}collapse(){this.filterGroupComp.toggleGroupExpand(!1)}setGroupTitle(){let d=this.columnGroup,s=(0,E.isProvidedColumnGroup)(d)?this.getColumnGroupName(d):this.getColumnName(d);this.filterGroupName=s,this.filterGroupComp.setTitle(s||"")}getColumnGroupName(d){return this.beans.colNames.getDisplayNameForProvidedColumnGroup(null,d,"filterToolPanel")}getColumnName(d){return this.beans.colNames.getDisplayNameForColumn(d,"filterToolPanel",!1)}destroyFilters(){this.childFilterComps=this.destroyBeans(this.childFilterComps),(0,E._clearElement)(this.getGui())}destroy(){this.destroyFilters(),super.destroy()}}p.ToolPanelFilterGroupComp=b},3159:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GridLicenseManager=void 0;let E=A(6624),z=A(6565),T=A(3879);class b extends E.BeanStub{constructor(){super(...arguments),this.beanName="licenseManager"}postConstruct(){this.validateLicense()}validateLicense(){this.licenseManager=new z.LicenseManager((0,E._getDocument)(this.beans)),this.licenseManager.validateLicense()}static getLicenseDetails(d){return new z.LicenseManager(null).getLicenseDetails(d)}getWatermarkSelector(){return T.AgWatermarkSelector}isDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}getWatermarkMessage(){return this.licenseManager.getWatermarkMessage()}static setLicenseKey(d){z.LicenseManager.setLicenseKey(d)}static setChartsLicenseManager(d){z.LicenseManager.setChartsLicenseManager(d)}}p.GridLicenseManager=b},6565:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LicenseManager=void 0;let E=A(1555),z={"01":"GRID","02":"CHARTS","0102":"BOTH"},T="https://ag-grid.com/licensing/";class b{constructor(d){this.watermarkMessage=void 0,this.totalMessageLength=124,this.document=d,this.md5=new E.MD5,this.md5.init()}validateLicense(){let d=this.getLicenseDetails(b.licenseKey),s=`AG Grid ${d.currentLicenseType==="BOTH"?"and AG Charts ":""}Enterprise`,c=d.suppliedLicenseType===void 0?"":`AG ${d.suppliedLicenseType==="BOTH"?"Grid and AG Charts":d.suppliedLicenseType==="GRID"?"Grid":"Charts"} Enterprise`;if(d.missing)(!this.isWebsiteUrl()||this.isForceWatermark())&&this.outputMissingLicenseKey(s);else if(d.expired){let h=b.getGridReleaseDate(),g=b.formatDate(h);this.outputExpiredKey(d.expiry,g,s,c)}else d.valid?d.isTrial&&d.trialExpired&&this.outputExpiredTrialKey(d.expiry,s,c):this.outputInvalidLicenseKey(!!d.incorrectLicenseType,s,c)}static extractExpiry(d){let s=d.substring(d.lastIndexOf("_")+1,d.length);return new Date(parseInt(b.decode(s),10))}static extractLicenseComponents(d){let s=d.replace(/[\u200B-\u200D\uFEFF]/g,"");if(s=s.replace(/\r?\n|\r/g,""),d.length<=32)return{md5:null,license:d,version:null,isTrial:null};let c=s.length-32,h=s.substring(c),g=s.substring(0,c),[f,S,w]=b.extractBracketedInformation(s);return{md5:h,license:g,version:f,isTrial:S,type:w}}getLicenseDetails(d){let s=b.chartsLicenseManager?"BOTH":"GRID";if(!(d!=null&&d.length))return{licenseKey:d,valid:!1,missing:!0,currentLicenseType:s};let c=b.getGridReleaseDate(),{md5:h,license:g,version:f,isTrial:S,type:w}=b.extractLicenseComponents(d),M=h===this.md5.md5(g)&&d.indexOf("For_Trialing_ag-Grid_Only")===-1,P,O,G=null,j=!1,Y;function J(){P=G<new Date,O=void 0}if(M&&(G=b.extractExpiry(g),M=!isNaN(G.getTime()),M))switch(O=c>G,f){case"legacy":case"2":{S&&J();break}case"3":w!=null&&w.length?(Y=w,w!==z["01"]&&w!==z["0102"]||s==="BOTH"&&Y!=="BOTH"?(M=!1,j=!0):S&&J()):M=!1}return M?{licenseKey:d,valid:M,expiry:b.formatDate(G),expired:O,version:f,isTrial:S,trialExpired:P,incorrectLicenseType:j,currentLicenseType:s,suppliedLicenseType:Y}:{licenseKey:d,valid:M,incorrectLicenseType:j,currentLicenseType:s,suppliedLicenseType:Y}}isDisplayWatermark(){var d;return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!!((d=this.watermarkMessage)!=null&&d.length)}getWatermarkMessage(){return this.watermarkMessage||""}getHostname(){let s=(this.document.defaultView||window).location,{hostname:c=""}=s;return c}isForceWatermark(){let s=(this.document.defaultView||window).location,{pathname:c}=s;return c?c.indexOf("forceWatermark")!==-1:!1}isWebsiteUrl(){return this.getHostname().match(/^((?:[\w-]+\.)?ag-grid\.com)$/)!==null}isLocalhost(){return this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)!==null}static formatDate(d){let s=["January","February","March","April","May","June","July","August","September","October","November","December"],c=d.getDate(),h=d.getMonth(),g=d.getFullYear();return c+" "+s[h]+" "+g}static getGridReleaseDate(){return new Date(parseInt(b.decode(b.RELEASE_INFORMATION),10))}static decode(d){let s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",h,g,f,S,w,M,P,O=0,G=d.replace(/[^A-Za-z0-9+/=]/g,"");for(;O<G.length;)S=s.indexOf(G.charAt(O++)),w=s.indexOf(G.charAt(O++)),M=s.indexOf(G.charAt(O++)),P=s.indexOf(G.charAt(O++)),h=S<<2|w>>4,g=(w&15)<<4|M>>2,f=(M&3)<<6|P,c=c+String.fromCharCode(h),M!=64&&(c=c+String.fromCharCode(g)),P!=64&&(c=c+String.fromCharCode(f));return c=b.utf8_decode(c),c}static utf8_decode(d){d=d.replace(/rn/g,"n");let s="";for(let c=0;c<d.length;c++){let h=d.charCodeAt(c);h<128?s+=String.fromCharCode(h):h>127&&h<2048?(s+=String.fromCharCode(h>>6|192),s+=String.fromCharCode(h&63|128)):(s+=String.fromCharCode(h>>12|224),s+=String.fromCharCode(h>>6&63|128),s+=String.fromCharCode(h&63|128))}return s}static setChartsLicenseManager(d){this.chartsLicenseManager=d}static setLicenseKey(d){var s;this.licenseKey=d,(s=this.chartsLicenseManager)==null||s.setLicenseKey(d,!0)}static extractBracketedInformation(d){if(!d.includes("["))return["legacy",!1,void 0];let s=d.match(/\[(.*?)\]/g).map(S=>S.replace("[","").replace("]",""));if(!s||s.length===0)return["legacy",!1,void 0];let c=s.filter(S=>S==="TRIAL").length===1,h=s.filter(S=>S.indexOf("v")===0)[0],g=h?h.replace("v",""):"legacy",f=z[s.filter(S=>z[S])[0]];return[g,c,f]}centerPadAndOutput(d){let s=this.totalMessageLength-d.length;console.error(d.padStart(s/2+d.length,"*").padEnd(this.totalMessageLength,"*"))}padAndOutput(d,s="*",c=""){console.error(d.padEnd(this.totalMessageLength-c.length,s)+c)}outputInvalidLicenseKey(d,s,c){d?(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Incompatible License Key "),this.padAndOutput(`* Your license key is for ${c} only and does not cover you for ${s}.`," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${T}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")):(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Invalid License Key "),this.padAndOutput("* Your license key is not valid."," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${T}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="Invalid License"}outputExpiredTrialKey(d,s,c){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Trial Period Expired. "),this.padAndOutput(`* Your trial only license for ${c} expired on ${d}.`," ","*"),this.padAndOutput("* Please email info@ag-grid.com to purchase a license."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="Trial Period Expired"}outputMissingLicenseKey(d){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${d} License `),this.centerPadAndOutput(" License Key Not Found "),this.padAndOutput(`* All ${d} features are unlocked for trial.`," ","*"),this.padAndOutput("* If you want to hide the watermark please email info@ag-grid.com for a trial license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="For Trial Use Only"}outputExpiredKey(d,s,c,h){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${c} License `),this.centerPadAndOutput(" Incompatible Software Version "),this.padAndOutput(`* Your license key works with versions of ${h} released before ${d}.`," ","*"),this.padAndOutput(`* The version you are trying to use was released on ${s}.`," ","*"),this.padAndOutput("* Please contact info@ag-grid.com to renew your license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="License Expired"}}p.LicenseManager=b,b.RELEASE_INFORMATION="MTczMzc1NjY3OTc2Mw=="},1555:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MD5=void 0;class A{constructor(){this.ieCompatibility=!1}init(){this.ieCompatibility=this.md5("hello")!="5d41402abc4b2a76b9719d911017c592"}md5cycle(z,T){let b=z[0],C=z[1],d=z[2],s=z[3];b=this.ff(b,C,d,s,T[0],7,-680876936),s=this.ff(s,b,C,d,T[1],12,-389564586),d=this.ff(d,s,b,C,T[2],17,606105819),C=this.ff(C,d,s,b,T[3],22,-1044525330),b=this.ff(b,C,d,s,T[4],7,-176418897),s=this.ff(s,b,C,d,T[5],12,1200080426),d=this.ff(d,s,b,C,T[6],17,-1473231341),C=this.ff(C,d,s,b,T[7],22,-45705983),b=this.ff(b,C,d,s,T[8],7,1770035416),s=this.ff(s,b,C,d,T[9],12,-1958414417),d=this.ff(d,s,b,C,T[10],17,-42063),C=this.ff(C,d,s,b,T[11],22,-1990404162),b=this.ff(b,C,d,s,T[12],7,1804603682),s=this.ff(s,b,C,d,T[13],12,-40341101),d=this.ff(d,s,b,C,T[14],17,-1502002290),C=this.ff(C,d,s,b,T[15],22,1236535329),b=this.gg(b,C,d,s,T[1],5,-165796510),s=this.gg(s,b,C,d,T[6],9,-1069501632),d=this.gg(d,s,b,C,T[11],14,643717713),C=this.gg(C,d,s,b,T[0],20,-373897302),b=this.gg(b,C,d,s,T[5],5,-701558691),s=this.gg(s,b,C,d,T[10],9,38016083),d=this.gg(d,s,b,C,T[15],14,-660478335),C=this.gg(C,d,s,b,T[4],20,-405537848),b=this.gg(b,C,d,s,T[9],5,568446438),s=this.gg(s,b,C,d,T[14],9,-1019803690),d=this.gg(d,s,b,C,T[3],14,-187363961),C=this.gg(C,d,s,b,T[8],20,1163531501),b=this.gg(b,C,d,s,T[13],5,-1444681467),s=this.gg(s,b,C,d,T[2],9,-51403784),d=this.gg(d,s,b,C,T[7],14,1735328473),C=this.gg(C,d,s,b,T[12],20,-1926607734),b=this.hh(b,C,d,s,T[5],4,-378558),s=this.hh(s,b,C,d,T[8],11,-2022574463),d=this.hh(d,s,b,C,T[11],16,1839030562),C=this.hh(C,d,s,b,T[14],23,-35309556),b=this.hh(b,C,d,s,T[1],4,-1530992060),s=this.hh(s,b,C,d,T[4],11,1272893353),d=this.hh(d,s,b,C,T[7],16,-155497632),C=this.hh(C,d,s,b,T[10],23,-1094730640),b=this.hh(b,C,d,s,T[13],4,681279174),s=this.hh(s,b,C,d,T[0],11,-358537222),d=this.hh(d,s,b,C,T[3],16,-722521979),C=this.hh(C,d,s,b,T[6],23,76029189),b=this.hh(b,C,d,s,T[9],4,-640364487),s=this.hh(s,b,C,d,T[12],11,-421815835),d=this.hh(d,s,b,C,T[15],16,530742520),C=this.hh(C,d,s,b,T[2],23,-995338651),b=this.ii(b,C,d,s,T[0],6,-198630844),s=this.ii(s,b,C,d,T[7],10,1126891415),d=this.ii(d,s,b,C,T[14],15,-1416354905),C=this.ii(C,d,s,b,T[5],21,-57434055),b=this.ii(b,C,d,s,T[12],6,1700485571),s=this.ii(s,b,C,d,T[3],10,-1894986606),d=this.ii(d,s,b,C,T[10],15,-1051523),C=this.ii(C,d,s,b,T[1],21,-2054922799),b=this.ii(b,C,d,s,T[8],6,1873313359),s=this.ii(s,b,C,d,T[15],10,-30611744),d=this.ii(d,s,b,C,T[6],15,-1560198380),C=this.ii(C,d,s,b,T[13],21,1309151649),b=this.ii(b,C,d,s,T[4],6,-145523070),s=this.ii(s,b,C,d,T[11],10,-1120210379),d=this.ii(d,s,b,C,T[2],15,718787259),C=this.ii(C,d,s,b,T[9],21,-343485551),z[0]=this.add32(b,z[0]),z[1]=this.add32(C,z[1]),z[2]=this.add32(d,z[2]),z[3]=this.add32(s,z[3])}cmn(z,T,b,C,d,s){return T=this.add32(this.add32(T,z),this.add32(C,s)),this.add32(T<<d|T>>>32-d,b)}ff(z,T,b,C,d,s,c){return this.cmn(T&b|~T&C,z,T,d,s,c)}gg(z,T,b,C,d,s,c){return this.cmn(T&C|b&~C,z,T,d,s,c)}hh(z,T,b,C,d,s,c){return this.cmn(T^b^C,z,T,d,s,c)}ii(z,T,b,C,d,s,c){return this.cmn(b^(T|~C),z,T,d,s,c)}md51(z){let T=z.length,b=[1732584193,-271733879,-1732584194,271733878],C;for(C=64;C<=z.length;C+=64)this.md5cycle(b,this.md5blk(z.substring(C-64,C)));z=z.substring(C-64);let d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(C=0;C<z.length;C++)d[C>>2]|=z.charCodeAt(C)<<(C%4<<3);if(d[C>>2]|=128<<(C%4<<3),C>55)for(this.md5cycle(b,d),C=0;C<16;C++)d[C]=0;return d[14]=T*8,this.md5cycle(b,d),b}md5blk(z){let T=[];for(let b=0;b<64;b+=4)T[b>>2]=z.charCodeAt(b)+(z.charCodeAt(b+1)<<8)+(z.charCodeAt(b+2)<<16)+(z.charCodeAt(b+3)<<24);return T}rhex(z){let T="0123456789abcdef".split(""),b="",C=0;for(;C<4;C++)b+=T[z>>C*8+4&15]+T[z>>C*8&15];return b}hex(z){for(let T=0;T<z.length;T++)z[T]=this.rhex(z[T]);return z.join("")}md5(z){return this.hex(this.md51(z))}add32(z,T){return this.ieCompatibility?this.add32Compat(z,T):this.add32Std(z,T)}add32Std(z,T){return z+T&4294967295}add32Compat(z,T){let b=(z&65535)+(T&65535);return(z>>16)+(T>>16)+(b>>16)<<16|b&65535}}p.MD5=A},454:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.watermarkCSS=void 0,p.watermarkCSS='.ag-watermark{bottom:20px;color:#9b9b9b;opacity:.7;position:absolute;transition:opacity 1s ease-out 3s;&:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDkiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMDkgMzYiPjxwYXRoIGZpbGw9IiM5QjlCOUIiIGQ9Ik0xOTIuOTkzIDIzLjY1OHYtNy45NDZoLTEzLjU0MWwtNy45NDcgNy45NDZ6TTIwOC4yNSAzLjk1aC0xNi45NzRsLTguMDEgNy45NDdoMjQuOTg0ek0xNjMuNjIyIDMxLjYwNWw0LjA2OS00LjA2OWgxMy43MzJ2Ny45NDdoLTE3LjgwMXoiLz48cGF0aCBmaWxsPSIjOUI5QjlCIiBkPSJNMTY2LjYxIDE5Ljc4aDguNzczbDguMDEtNy45NDZIMTY2LjYxek0xNTcuMDExIDMxLjYwNWg2LjYxMWw3Ljg4My03Ljk0N2gtMTQuNDk0ek0xOTEuMjc2IDMuOTVsLTQuMDY4IDQuMDdIMTYxLjI3Vi4wNzJoMzAuMDA2ek0yMC44NCAzMC4yMDZIOC4zNzhsLTIuMTYyIDUuMzRILjc1TDEyLjI1NyA4LjU5Mmg0Ljc2OEwyOC41MyAzNS41NDZoLTUuNTN6bS0xLjcxNy00LjI2TDE0LjYwOSAxNC45NWwtNC41MTQgMTAuOTk4ek0xMDQuNDM3IDE4LjUwOWMxLjU4OS0yLjM1MiA1LjU5NC0yLjYwNyA3LjI0Ny0yLjYwN3Y0LjU3OGMtMi4wMzQgMC00LjA2OS4wNjMtNS4yNzcuOTUzLTEuMjA3Ljg5LTEuODQzIDIuMDk4LTEuODQzIDMuNTZ2MTAuNTUzaC00Ljk1OVYxNS45MDJoNC43Njh6TTExOS4zNzYgMTUuOTAyaC00Ljk1OHYxOS42NDRoNC45NTh6TTExOS4zNzYgNy4xM2gtNC45NTh2NS44NDhoNC45NTh6TTE0My45NzkgNy4xM3YyOC40MTZoLTQuNzY4bC0uMTI3LTIuOTg4YTguMyA4LjMgMCAwIDEtMi42NyAyLjQ4Yy0xLjA4MS41NzItMi40MTYuODktMy45NDIuODktMS4zMzUgMC0yLjYwNi0uMjU1LTMuNjg3LS43LTEuMTQ0LS41MDgtMi4xNjItMS4xNDQtMi45ODgtMi4wMzRhOS42IDkuNiAwIDAgMS0xLjk3MS0zLjE3OWMtLjUwOC0xLjIwNy0uNjk5LTIuNjA2LS42OTktNC4xMzJzLjI1NC0yLjkyNC42OTktNC4xOTZjLjUwOS0xLjI3MSAxLjE0NS0yLjM1MiAxLjk3MS0zLjI0MnMxLjg0NC0xLjU4OSAyLjk4OC0yLjA5OCAyLjM1Mi0uNzYzIDMuNjg3LS43NjNjMS41MjYgMCAyLjc5Ny4yNTUgMy44NzguODI3czEuOTcxIDEuMzM1IDIuNjcgMi40MTZWNy4xOTNoNC45NTl6bS0xMC40MjYgMjQuNTM4YzEuNjUzIDAgMi45MjQtLjU3MiAzLjk0MS0xLjY1M3MxLjUyNi0yLjU0MyAxLjUyNi00LjMyMy0uNTA5LTMuMTc4LTEuNTI2LTQuMzIyYy0xLjAxNy0xLjA4MS0yLjI4OC0xLjY1My0zLjk0MS0xLjY1My0xLjU5IDAtMi45MjUuNTcyLTMuODc4IDEuNjUzLTEuMDE3IDEuMDgtMS41MjYgMi41NDMtMS41MjYgNC4zMjIgMCAxLjc4LjUwOSAzLjE4IDEuNTI2IDQuMjYgMS4wMTcgMS4xNDQgMi4yODggMS43MTYgMy44NzggMS43MTZNNTcuMjAyIDIwLjM1M0g0NC45MzN2NC4yNTloNi45OTNjLS4xOSAyLjE2MS0xLjAxNyAzLjgxNC0yLjQxNiA1LjE1LTEuMzk4IDEuMjctMy4xNzggMS45MDYtNS40NjcgMS45MDYtMS4yNzEgMC0yLjQ4LS4yNTQtMy40OTYtLjY5OWE3IDcgMCAwIDEtMi43MzQtMS45N2MtLjc2My0uODI3LTEuMzM1LTEuODQ0LTEuNzgtMy4wNTJzLS42MzYtMi40OC0uNjM2LTMuOTQyLjE5LTIuNzMzLjYzNi0zLjk0MWMuMzgxLTEuMjA4IDEuMDE3LTIuMTYyIDEuNzgtMy4wNTIuNzYzLS44MjYgMS42NTMtMS40NjIgMi43MzMtMS45N2E5LjEgOS4xIDAgMCAxIDMuNTYtLjdxNC4wMDUgMCA2LjEwMyAxLjkwN2wzLjMwNi0zLjMwNWMtMi40OC0xLjkwNy01LjY1OC0yLjkyNS05LjQwOS0yLjkyNS0yLjA5NyAwLTQuMDA0LjMxOC01LjcyMSAxLjAxOC0xLjcxNi42OTktMy4xNzkgMS41ODktNC4zODYgMi43OTdBMTIuMSAxMi4xIDAgMCAwIDMxLjIgMTYuMjJjLS42MzUgMS43MTctLjk1MyAzLjYyNC0uOTUzIDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1NyAxLjAxNyAyLjAzNSAwIDMuODc4LS4zMTggNS41MzEtMS4wMTcgMS42NTMtLjcgMy4wNTItMS41OSA0LjE5Ni0yLjc5N3ExLjcxNi0xLjgxMiAyLjY3LTQuMzg3Yy42MzYtMS43MTYuOTU0LTMuNjIzLjk1NC01LjY1OHYtLjgyNmMtLjE5MS0uMTI3LS4yNTUtLjQ0NS0uMjU1LS43TTk1Ljk4MiAyMC4zNTNoLTEyLjI3djQuMjU5aDYuOTkzYy0uMTkgMi4xNjEtMS4wMTcgMy44MTQtMi40MTYgNS4xNS0xLjM5OCAxLjI3LTMuMTc4IDEuOTA2LTUuNDY3IDEuOTA2LTEuMjcxIDAtMi40OC0uMjU0LTMuNDk2LS42OTlhNyA3IDAgMCAxLTIuNzM0LTEuOTdjLS43NjMtLjgyNy0xLjMzNS0xLjg0NC0xLjc4LTMuMDUycy0uNjM2LTIuNDgtLjYzNi0zLjk0Mi4xOS0yLjczMy42MzYtMy45NDFjLjM4MS0xLjIwOCAxLjAxNy0yLjE2MiAxLjc4LTMuMDUyLjc2My0uODI2IDEuNjUzLTEuNDYyIDIuNzM0LTEuOTdhOS4xIDkuMSAwIDAgMSAzLjU2LS43cTQuMDA1IDAgNi4xMDMgMS45MDdsMy4zMDUtMy4zMDVjLTIuNDc5LTEuOTA3LTUuNjU4LTIuOTI1LTkuNDA4LTIuOTI1LTIuMDk4IDAtNC4wMDUuMzE4LTUuNzIyIDEuMDE4LTEuNzE2LjY5OS0zLjE3OCAxLjU4OS00LjM4NiAyLjc5N2ExMi4xIDEyLjEgMCAwIDAtMi43OTcgNC4zODZjLS42MzYgMS43MTctLjk1NCAzLjYyNC0uOTU0IDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1OCAxLjAxNyAyLjAzNCAwIDMuODc4LS4zMTggNS41My0xLjAxNyAxLjY1My0uNyAzLjA1Mi0xLjU5IDQuMTk2LTIuNzk3cTEuNzE4LTEuODEyIDIuNjctNC4zODdjLjYzNi0xLjcxNi45NTQtMy42MjMuOTU0LTUuNjU4di0uODI2Yy0uMTktLjEyNy0uMjU1LS40NDUtLjI1NS0uNyIvPjwvc3ZnPg==");background-repeat:no-repeat;background-size:170px 40px;content:"";display:block;height:40px;width:170px}}:where(.ag-ltr) .ag-watermark{right:25px}:where(.ag-rtl) .ag-watermark{left:25px}.ag-watermark-text{font-family:Impact,sans-serif;font-size:19px;font-weight:700;opacity:.5}:where(.ag-ltr) .ag-watermark-text{padding-left:.7rem}:where(.ag-rtl) .ag-watermark-text{padding-right:.7rem}'},3879:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgWatermarkSelector=p.AgWatermark=void 0;let E=A(6624),z=A(454);class T extends E.Component{wireBeans(C){this.licenseManager=C.licenseManager}constructor(){super(`<div class="ag-watermark">
                <div data-ref="eLicenseTextRef" class="ag-watermark-text"></div>
            </div>`),this.eLicenseTextRef=E.RefPlaceholder,this.registerCSS(z.watermarkCSS)}postConstruct(){let C=this.shouldDisplayWatermark();this.setDisplayed(C),C&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout(()=>this.addCssClass("ag-opacity-zero"),0),window.setTimeout(()=>this.setDisplayed(!1),5e3))}shouldDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}}p.AgWatermark=T,p.AgWatermarkSelector={selector:"AG-WATERMARK",component:T}},6825:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createGrid=void 0;let E=A(6624),z=A(6624),T=A(12);function b(){var c;let d=globalThis==null?void 0:globalThis.agCharts,s=(c=d==null?void 0:d.AgChartsEnterpriseModule)!=null?c:d==null?void 0:d.AgChartsCommunityModule;s&&E.ModuleRegistry.registerModules([T.IntegratedChartsModule.with(s),T.SparklinesModule.with(s)])}function C(d,s,c){return b(),(0,z.createGrid)(d,s,c)}p.createGrid=C},9058:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createGrid=void 0;let E=A(5608);A(8510),A(2685),A(5151),A(9681),A(2883),A(3543),A(1109),A(1601),A(8755),A(3713),A(9029),A(7628),A(2559),A(9893);let z=A(6624),T=A(12);z.ModuleRegistry.registerModules([T.AllEnterpriseModule]),E.__exportStar(A(6624),p),E.__exportStar(A(12),p);var b=A(6825);Object.defineProperty(p,"createGrid",{enumerable:!0,get:function(){return b.createGrid}})},12:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AllEnterpriseModule=p.IntegratedChartsModule=p.GridChartsModule=p.PivotModule=p.AggregationModule=p.TreeDataModule=p.SparklinesModule=p.ServerSideRowModelApiModule=p.ServerSideRowModelModule=p.RangeSelectionModule=p.CellSelectionModule=p.MasterDetailModule=p.FiltersToolPanelModule=p.ClipboardModule=p.ViewportRowModelModule=p.SideBarModule=p.RowGroupingModule=p.RowGroupingPanelModule=p.GroupFilterModule=p.MultiFilterModule=p.ExcelExportModule=p.StatusBarModule=p.SetFilterModule=p.RichSelectModule=p.ContextMenuModule=p.ColumnMenuModule=p.MenuModule=p.ColumnsToolPanelModule=p.AdvancedFilterModule=p.exportMultipleSheetsAsExcel=p.getMultipleSheetsAsExcel=p.LicenseManager=void 0;let E=A(5608);var z=A(3159);Object.defineProperty(p,"LicenseManager",{enumerable:!0,get:function(){return z.GridLicenseManager}});var T=A(1790);Object.defineProperty(p,"getMultipleSheetsAsExcel",{enumerable:!0,get:function(){return T.getMultipleSheetsAsExcel}}),Object.defineProperty(p,"exportMultipleSheetsAsExcel",{enumerable:!0,get:function(){return T.exportMultipleSheetsAsExcel}});var b=A(7976);Object.defineProperty(p,"AdvancedFilterModule",{enumerable:!0,get:function(){return b.AdvancedFilterModule}});var C=A(6455);Object.defineProperty(p,"ColumnsToolPanelModule",{enumerable:!0,get:function(){return C.ColumnsToolPanelModule}});var d=A(7130);Object.defineProperty(p,"MenuModule",{enumerable:!0,get:function(){return d.MenuModule}}),Object.defineProperty(p,"ColumnMenuModule",{enumerable:!0,get:function(){return d.ColumnMenuModule}}),Object.defineProperty(p,"ContextMenuModule",{enumerable:!0,get:function(){return d.ContextMenuModule}});var s=A(9327);Object.defineProperty(p,"RichSelectModule",{enumerable:!0,get:function(){return s.RichSelectModule}});var c=A(9002);Object.defineProperty(p,"SetFilterModule",{enumerable:!0,get:function(){return c.SetFilterModule}});var h=A(8450);Object.defineProperty(p,"StatusBarModule",{enumerable:!0,get:function(){return h.StatusBarModule}});var g=A(2886);Object.defineProperty(p,"ExcelExportModule",{enumerable:!0,get:function(){return g.ExcelExportModule}});var f=A(5434);Object.defineProperty(p,"MultiFilterModule",{enumerable:!0,get:function(){return f.MultiFilterModule}});var S=A(1442);Object.defineProperty(p,"GroupFilterModule",{enumerable:!0,get:function(){return S.GroupFilterModule}}),Object.defineProperty(p,"RowGroupingPanelModule",{enumerable:!0,get:function(){return S.RowGroupingPanelModule}}),Object.defineProperty(p,"RowGroupingModule",{enumerable:!0,get:function(){return S.RowGroupingModule}});var w=A(6358);Object.defineProperty(p,"SideBarModule",{enumerable:!0,get:function(){return w.SideBarModule}});var M=A(7794);Object.defineProperty(p,"ViewportRowModelModule",{enumerable:!0,get:function(){return M.ViewportRowModelModule}});var P=A(3766);Object.defineProperty(p,"ClipboardModule",{enumerable:!0,get:function(){return P.ClipboardModule}});var O=A(2515);Object.defineProperty(p,"FiltersToolPanelModule",{enumerable:!0,get:function(){return O.FiltersToolPanelModule}});var G=A(1594);Object.defineProperty(p,"MasterDetailModule",{enumerable:!0,get:function(){return G.MasterDetailModule}});var j=A(266);Object.defineProperty(p,"CellSelectionModule",{enumerable:!0,get:function(){return j.CellSelectionModule}}),Object.defineProperty(p,"RangeSelectionModule",{enumerable:!0,get:function(){return j.RangeSelectionModule}});var Y=A(9074);Object.defineProperty(p,"ServerSideRowModelModule",{enumerable:!0,get:function(){return Y.ServerSideRowModelModule}}),Object.defineProperty(p,"ServerSideRowModelApiModule",{enumerable:!0,get:function(){return Y.ServerSideRowModelApiModule}});var J=A(2949);Object.defineProperty(p,"SparklinesModule",{enumerable:!0,get:function(){return J.SparklinesModule}});var ne=A(9428);Object.defineProperty(p,"TreeDataModule",{enumerable:!0,get:function(){return ne.TreeDataModule}});var ce=A(7032);Object.defineProperty(p,"AggregationModule",{enumerable:!0,get:function(){return ce.AggregationModule}});var fe=A(5470);Object.defineProperty(p,"PivotModule",{enumerable:!0,get:function(){return fe.PivotModule}});var xe=A(1527);Object.defineProperty(p,"GridChartsModule",{enumerable:!0,get:function(){return xe.GridChartsModule}}),Object.defineProperty(p,"IntegratedChartsModule",{enumerable:!0,get:function(){return xe.IntegratedChartsModule}});var Le=A(1809);Object.defineProperty(p,"AllEnterpriseModule",{enumerable:!0,get:function(){return Le.AllEnterpriseModule}}),E.__exportStar(A(6624),p)},3763:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DetailCellRenderer=void 0;let E=A(6624),z=A(3210),T=A(7324);class b extends E.Component{constructor(){super(...arguments),this.eDetailGrid=E.RefPlaceholder}wireBeans(d){this.context=d.context}init(d){this.params=d,this.selectAndSetTemplate();let s={addOrRemoveCssClass:(c,h)=>this.addOrRemoveCssClass(c,h),addOrRemoveDetailGridCssClass:(c,h)=>this.eDetailGrid.classList.toggle(c,h),setDetailGrid:c=>this.setDetailGrid(c),setRowData:c=>this.setRowData(c),getGui:()=>this.eDetailGrid};this.ctrl=this.createManagedBean(new z.DetailCellRendererCtrl),this.ctrl.init(s,d)}refresh(){return this.ctrl&&this.ctrl.refresh()}selectAndSetTemplate(){let d=this.params;if(d.pinned){this.setTemplate('<div class="ag-details-row"></div>');return}let s=()=>{this.setTemplate(`<div class="ag-details-row" role="gridcell">
                <div data-ref="eDetailGrid" class="ag-details-grid" role="presentation"></div>
            </div>`)};if((0,E._missing)(d.template))s();else if(typeof d.template=="string")this.setTemplate(d.template,[]);else if(typeof d.template=="function"){let c=d.template,h=c(d);this.setTemplate(h,[])}else(0,E._warn)(168),s();this.eDetailGrid==null&&(0,E._warn)(169)}setDetailGrid(d){var f;if(!this.eDetailGrid)return;let s=this.context.getBean("frameworkCompWrapper"),c=new T.DetailFrameworkComponentWrapper(s),{frameworkOverrides:h}=this.beans,g=(0,E.createGrid)(this.eDetailGrid,d,{frameworkOverrides:h,providedBeanInstances:{frameworkCompWrapper:c},modules:(0,E._getGridRegisteredModules)(this.params.api.getGridId(),(f=d.rowModelType)!=null?f:"clientSide")});this.detailApi=g,this.ctrl.registerDetailWithMaster(g),this.addDestroyFunc(()=>{g==null||g.destroy()})}setRowData(d){var s;(s=this.detailApi)==null||s.setGridOption("rowData",d)}}p.DetailCellRenderer=b},3210:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DetailCellRendererCtrl=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.loadRowDataVersion=0}init(b,C){this.params=C,this.comp=b,C.pinned==null&&(this.setAutoHeightClasses(),this.setupRefreshStrategy(),this.createDetailGrid(),this.loadRowData(),this.addManagedEventListeners({fullWidthRowFocused:this.onFullWidthRowFocused.bind(this)}))}onFullWidthRowFocused(b){let C=this.params,d={rowIndex:C.node.rowIndex,rowPinned:C.node.rowPinned},s={rowIndex:b.rowIndex,rowPinned:b.rowPinned};(0,E._isSameRow)(d,s)&&(0,E._focusInto)(this.comp.getGui(),b.fromBelow)}setAutoHeightClasses(){let b=this.gos.get("detailRowAutoHeight"),C=b?"ag-details-row-auto-height":"ag-details-row-fixed-height",d=b?"ag-details-grid-auto-height":"ag-details-grid-fixed-height",s=this.comp;s.addOrRemoveCssClass(C,!0),s.addOrRemoveDetailGridCssClass(d,!0)}setupRefreshStrategy(){let b=this.params.refreshStrategy;if(b=="everything"||b=="nothing"||b=="rows"){this.refreshStrategy=b;return}b!=null&&(0,E._warn)(170,{providedStrategy:b}),this.refreshStrategy="rows"}createDetailGrid(){let{params:b,gos:C}=this;if((0,E._missing)(b.detailGridOptions)){(0,E._warn)(171);return}let d=ge({},b.detailGridOptions);C.get("detailRowAutoHeight")&&(d.domLayout="autoHeight"),d.theme||(d.theme=C.get("theme")),this.comp.setDetailGrid(d)}registerDetailWithMaster(b){let C=this.params,d=C.node.id,s=C.api,c={id:d,api:b},h=C.node;s.isDestroyed()||(s.addDetailGridInfo(d,c),h.detailGridInfo=c,this.addDestroyFunc(()=>{h.detailGridInfo===c&&(s.isDestroyed()||s.removeDetailGridInfo(d),h.detailGridInfo=null)}))}loadRowData(){var h,g,f;this.loadRowDataVersion++;let b=this.loadRowDataVersion,C=this.params;if(((h=C.detailGridOptions)==null?void 0:h.rowModelType)==="serverSide"){(f=(g=C.node.detailGridInfo)==null?void 0:g.api)==null||f.refreshServerSide({purge:!0});return}let d=C.getDetailRowData;if(!d){(0,E._warn)(172);return}let s=S=>{this.loadRowDataVersion===b&&this.comp.setRowData(S)},c={node:C.node,data:C.node.data,successCallback:s,context:this.gos.getGridCommonParams().context};d(c)}refresh(){switch(this.refreshStrategy){case"nothing":return!0;case"everything":return!1}return this.loadRowData(),!0}}p.DetailCellRendererCtrl=z},7324:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DetailFrameworkComponentWrapper=void 0;class A{constructor(z){this.parentWrapper=z}wrap(z,T,b,C){return this.parentWrapper.wrap(z,T,b,C)}}p.DetailFrameworkComponentWrapper=A},4276:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.forEachDetailGridInfo=p.getDetailGridInfo=p.removeDetailGridInfo=p.addDetailGridInfo=void 0;function A(C,d){var c;let s=(c=C.masterDetailSvc)==null?void 0:c.store;return s?d(s):void 0}function E(C,d,s){A(C,c=>{c[d]=s})}p.addDetailGridInfo=E;function z(C,d){A(C,s=>{delete s[d]})}p.removeDetailGridInfo=z;function T(C,d){return A(C,s=>s[d])}p.getDetailGridInfo=T;function b(C,d){A(C,s=>{let c=0;Object.values(s).forEach(h=>{h&&d(h,c++)})})}p.forEachDetailGridInfo=b},2283:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.masterDetailModuleCSS=void 0,p.masterDetailModuleCSS=".ag-details-row{width:100%}.ag-details-row-fixed-height{height:100%}.ag-details-grid{width:100%}.ag-details-grid-fixed-height{height:100%}"},1594:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MasterDetailModule=p.SharedMasterDetailModule=void 0;let E=A(9206),z=A(6858),T=A(7205),b=A(3763),C=A(3210),d=A(4276),s=A(2283),c=A(2771);p.SharedMasterDetailModule={moduleName:"SharedMasterDetail",version:T.VERSION,beans:[c.MasterDetailService],userComponents:{agDetailCellRenderer:b.DetailCellRenderer},dynamicBeans:{detailCellRendererCtrl:C.DetailCellRendererCtrl},apiFunctions:{addDetailGridInfo:d.addDetailGridInfo,removeDetailGridInfo:d.removeDetailGridInfo,getDetailGridInfo:d.getDetailGridInfo,forEachDetailGridInfo:d.forEachDetailGridInfo},dependsOn:[E.EnterpriseCoreModule,z.GroupCellRendererModule,z.StickyRowModule],css:[s.masterDetailModuleCSS]},p.MasterDetailModule={moduleName:"MasterDetail",version:T.VERSION,dependsOn:[p.SharedMasterDetailModule,z.ClientSideRowModelHierarchyModule]}},2771:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MasterDetailService=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="masterDetailSvc",this.store={}}isEnabled(){let b=this.gos;return b.get("masterDetail")&&!b.get("treeData")}postConstruct(){(0,E._isClientSideRowModel)(this.gos)&&(this.enabled=this.isEnabled(),this.addManagedEventListeners({beforeRefreshModel:this.beforeRefreshModel.bind(this)}))}beforeRefreshModel({params:b}){if(b.changedProps){let C=this.isEnabled();if(this.enabled!==C){this.setMasters(null);return}}b.rowDataUpdated&&this.setMasters(b.changedRowNodes)}setMasters(b){var g,f;let C=this.isEnabled();this.enabled=C;let d=this.gos,s=d.get("isRowMaster"),c=d.get("groupDefaultExpanded"),h=(S,w,M)=>{var G,j;let P=S.master,O=C;if(C)if(w||M){if(s){let Y=S.data;O=!!Y&&!!s(Y)}}else O=P;if(O&&w)if(c===-1)S.expanded=!0;else{let Y=(j=(G=this.beans.rowGroupColsSvc)==null?void 0:G.columns.length)!=null?j:0;S.expanded=Y<c}else!O&&P&&(S.expanded=!1);O!==P&&(S.master=O,S.dispatchRowEvent("masterChanged"))};if(b){let S=b.updates;for(let w of S.keys()){let M=S.get(w);h(w,M,!M)}}else{let S=(f=(g=(0,E._getClientSideRowModel)(this.beans))==null?void 0:g.rootNode)==null?void 0:f.allLeafChildren;if(S)for(let w=0,M=S.length;w<M;++w)h(S[w],!0,!1)}}getDetail(b){if(!b.master||!b.expanded)return null;let C=b.detailNode;return C||(C=new E.RowNode(this.beans),C.detail=!0,C.selectable=!1,C.parent=b,(0,E._exists)(b.id)&&(C.id="detail_"+b.id),C.data=b.data,C.level=b.level+1,b.detailNode=C,C)}setupDetailRowAutoHeight(b,C){let{gos:d,beans:s}=this;if(!d.get("detailRowAutoHeight"))return;let c=()=>{let g=C.clientHeight;if(g!=null&&g>0){let f=()=>{let{rowModel:S}=this.beans,{rowNode:w}=b;w.setRowHeight(g),((0,E._isClientSideRowModel)(d,S)||(0,E._isServerSideRowModel)(d,S))&&S.onRowHeightChanged()};window.setTimeout(f,0)}},h=(0,E._observeResize)(s,C,c);b.addDestroyFunc(h),c()}destroy(){this.store={},super.destroy()}}p.MasterDetailService=z},5636:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ChartMenuItemMapper=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="chartMenuItemMapper"}getChartItems(d){var P,O;let s=this.beans,c=s.chartSvc,h=d==="pivotChart";if(!c)return null;let g=this.getLocaleTextFunc.bind(this),f=h?new T(s,c,g):new b(s,c,g),S=c.isEnterprise(),w=f.getMenuItem();if(w&&w.subMenu&&!S){let G=j=>{var Y;return He(ge({},j),{subMenu:(Y=j.subMenu)==null?void 0:Y.filter(J=>!J._enterprise).map(J=>G(J))})};w=G(w)}let M=(O=(P=this.gos.get("chartToolPanelsDef"))==null?void 0:P.settingsPanel)==null?void 0:O.chartGroupsDef;return M&&(w=this.filterAndOrderChartMenu(w,M,f.getConfigLookup())),this.cleanInternals(w)}cleanInternals(d){if(!d)return d;let s=c=>{var h;return c==null||delete c._key,c==null||delete c._enterprise,(h=c==null?void 0:c.subMenu)==null||h.forEach(g=>s(g)),c};return s(d)}buildLookup(d){let s={},c=h=>{s[h._key]=h,h.subMenu&&h.subMenu.forEach(g=>c(g))};return c(d),s}filterAndOrderChartMenu(d,s,c){var f;let h=this.buildLookup(d),g=He(ge({},d),{subMenu:[]});return Object.entries(s).forEach(([S,w])=>{var O,G;let M=c[S];if(M===null)return;if(M==null){(0,E._warn)(173,{group:S});return}let P=h[M._key];if(P)if(P.subMenu){let j=w.map(Y=>{let J=M[Y];if(J==null){(0,E._warn)(174,{group:S,chartType:Y});return}return h[J]}).filter(Y=>Y!==void 0);j.length>0&&(P.subMenu=j,(O=g.subMenu)==null||O.push(P))}else(G=g.subMenu)==null||G.push(P)}),((f=g.subMenu)==null?void 0:f.length)==0?null:g}}p.ChartMenuItemMapper=z;class T{constructor(d,s,c){this.beans=d,this.chartSvc=s,this.getLocaleTextFunc=c}getMenuItem(){let d=this.getLocaleTextFunc(),s=(c,h,g,f,S=!1)=>({name:d(c,h),action:()=>this.chartSvc.createPivotChart({chartType:g}),_key:f,_enterprise:S});return{name:d("pivotChart","Pivot Chart"),_key:"pivotChart",subMenu:[{_key:"pivotColumnChart",name:d("columnChart","Column"),subMenu:[s("groupedColumn","Grouped&lrm;","groupedColumn","pivotGroupedColumn"),s("stackedColumn","Stacked&lrm;","stackedColumn","pivotStackedColumn"),s("normalizedColumn","100% Stacked&lrm;","normalizedColumn","pivotNormalizedColumn")]},{_key:"pivotBarChart",name:d("barChart","Bar"),subMenu:[s("groupedBar","Grouped&lrm;","groupedBar","pivotGroupedBar"),s("stackedBar","Stacked&lrm;","stackedBar","pivotStackedBar"),s("normalizedBar","100% Stacked&lrm;","normalizedBar","pivotNormalizedBar")]},{_key:"pivotPieChart",name:d("pieChart","Pie"),subMenu:[s("pie","Pie&lrm;","pie","pivotPie"),s("donut","Donut&lrm;","donut","pivotDonut")]},{_key:"pivotLineChart",name:d("lineChart","Line"),subMenu:[s("lineChart","Line&lrm;","line","pivotLineChart"),s("stackedLine","Stacked&lrm;","stackedLine","pivotStackedLine"),s("normalizedLine","100% Stacked&lrm;","normalizedLine","pivotNormalizedLine")]},{_key:"pivotAreaChart",name:d("areaChart","Area"),subMenu:[s("areaChart","Area&lrm;","area","pivotArea"),s("stackedArea","Stacked&lrm;","stackedArea","pivotStackedArea"),s("normalizedArea","100% Stacked&lrm;","normalizedArea","pivotNormalizedArea")]},{_key:"pivotXYChart",name:d("xyChart","X Y (Scatter)"),subMenu:[s("scatter","Scatter&lrm;","scatter","pivotScatter"),s("bubble","Bubble&lrm;","bubble","pivotBubble")]},{_key:"pivotStatisticalChart",_enterprise:!1,name:d("statisticalChart","Statistical"),subMenu:[s("histogramChart","Histogram&lrm;","histogram","pivotHistogram",!1)]},{_key:"pivotHierarchicalChart",_enterprise:!0,name:d("hierarchicalChart","Hierarchical"),subMenu:[s("treemapChart","Treemap&lrm;","treemap","pivotTreemap",!0),s("sunburstChart","Sunburst&lrm;","sunburst","pivotSunburst",!0)]},{_key:"pivotCombinationChart",name:d("combinationChart","Combination"),subMenu:[s("columnLineCombo","Column & Line&lrm;","columnLineCombo","pivotColumnLineCombo"),s("AreaColumnCombo","Area & Column&lrm;","areaColumnCombo","pivotAreaColumnCombo")]}],icon:(0,E._createIconNoSpan)("chart",this.beans,void 0)}}getConfigLookup(){return{columnGroup:{_key:"pivotColumnChart",column:"pivotGroupedColumn",stackedColumn:"pivotStackedColumn",normalizedColumn:"pivotNormalizedColumn"},barGroup:{_key:"pivotBarChart",bar:"pivotGroupedBar",stackedBar:"pivotStackedBar",normalizedBar:"pivotNormalizedBar"},pieGroup:{_key:"pivotPieChart",pie:"pivotPie",donut:"pivotDonut",doughnut:"pivotDonut"},lineGroup:{_key:"pivotLineChart",line:"pivotLineChart",stackedLine:"pivotStackedLine",normalizedLine:"pivotNormalizedLine"},areaGroup:{_key:"pivotAreaChart",area:"pivotArea",stackedArea:"pivotStackedArea",normalizedArea:"pivotNormalizedArea"},scatterGroup:{_key:"pivotXYChart",bubble:"pivotBubble",scatter:"pivotScatter"},combinationGroup:{_key:"pivotCombinationChart",columnLineCombo:"pivotColumnLineCombo",areaColumnCombo:"pivotAreaColumnCombo",customCombo:null},hierarchicalGroup:{_key:"pivotHierarchicalChart",treemap:"pivotTreemap",sunburst:"pivotSunburst"},statisticalGroup:{_key:"pivotStatisticalChart",histogram:"pivotHistogram",rangeBar:null,rangeArea:null,boxPlot:null},polarGroup:null,specializedGroup:null}}}class b{constructor(d,s,c){this.beans=d,this.chartSvc=s,this.getLocaleTextFunc=c}getMenuItem(){let d=this.getLocaleTextFunc(),s=(c,h,g,f,S=!1)=>({name:d(c,h),action:()=>this.chartSvc.createChartFromCurrentRange(g),_key:f,_enterprise:S});return{name:d("chartRange","Chart Range"),_key:"chartRange",subMenu:[{name:d("columnChart","Column"),subMenu:[s("groupedColumn","Grouped&lrm;","groupedColumn","rangeGroupedColumn"),s("stackedColumn","Stacked&lrm;","stackedColumn","rangeStackedColumn"),s("normalizedColumn","100% Stacked&lrm;","normalizedColumn","rangeNormalizedColumn")],_key:"rangeColumnChart"},{name:d("barChart","Bar"),subMenu:[s("groupedBar","Grouped&lrm;","groupedBar","rangeGroupedBar"),s("stackedBar","Stacked&lrm;","stackedBar","rangeStackedBar"),s("normalizedBar","100% Stacked&lrm;","normalizedBar","rangeNormalizedBar")],_key:"rangeBarChart"},{name:d("pieChart","Pie"),subMenu:[s("pie","Pie&lrm;","pie","rangePie"),s("donut","Donut&lrm;","donut","rangeDonut")],_key:"rangePieChart"},{name:d("lineChart","Line"),subMenu:[s("lineChart","Line&lrm;","line","rangeLineChart"),s("stackedLine","Stacked&lrm;","stackedLine","rangeStackedLine"),s("normalizedLine","100% Stacked&lrm;","normalizedLine","rangeNormalizedLine")],_key:"rangeLineChart"},{name:d("areaChart","Area"),subMenu:[s("areaChart","Area&lrm;","area","rangeArea"),s("stackedArea","Stacked&lrm;","stackedArea","rangeStackedArea"),s("normalizedArea","100% Stacked&lrm;","normalizedArea","rangeNormalizedArea")],_key:"rangeAreaChart"},{name:d("xyChart","X Y (Scatter)"),subMenu:[s("scatter","Scatter&lrm;","scatter","rangeScatter"),s("bubble","Bubble&lrm;","bubble","rangeBubble")],_key:"rangeXYChart"},{name:d("polarChart","Polar"),subMenu:[s("radarLine","Radar Line&lrm;","radarLine","rangeRadarLine"),s("radarArea","Radar Area&lrm;","radarArea","rangeRadarArea"),s("nightingale","Nightingale&lrm;","nightingale","rangeNightingale"),s("radialColumn","Radial Column&lrm;","radialColumn","rangeRadialColumn"),s("radialBar","Radial Bar&lrm;","radialBar","rangeRadialBar")],_key:"rangePolarChart",_enterprise:!0},{name:d("statisticalChart","Statistical"),subMenu:[s("boxPlot","Box Plot&lrm;","boxPlot","rangeBoxPlot",!0),s("histogramChart","Histogram&lrm;","histogram","rangeHistogram",!1),s("rangeBar","Range Bar&lrm;","rangeBar","rangeRangeBar",!0),s("rangeArea","Range Area&lrm;","rangeArea","rangeRangeArea",!0)],_key:"rangeStatisticalChart",_enterprise:!1},{name:d("hierarchicalChart","Hierarchical"),subMenu:[s("treemap","Treemap&lrm;","treemap","rangeTreemap"),s("sunburst","Sunburst&lrm;","sunburst","rangeSunburst")],_key:"rangeHierarchicalChart",_enterprise:!0},{name:d("specializedChart","Specialized"),subMenu:[s("heatmap","Heatmap&lrm;","heatmap","rangeHeatmap"),s("waterfall","Waterfall&lrm;","waterfall","rangeWaterfall")],_key:"rangeSpecializedChart",_enterprise:!0},{name:d("combinationChart","Combination"),subMenu:[s("columnLineCombo","Column & Line&lrm;","columnLineCombo","rangeColumnLineCombo"),s("AreaColumnCombo","Area & Column&lrm;","areaColumnCombo","rangeAreaColumnCombo")],_key:"rangeCombinationChart"}],icon:(0,E._createIconNoSpan)("chart",this.beans,void 0)}}getConfigLookup(){return{columnGroup:{_key:"rangeColumnChart",column:"rangeGroupedColumn",stackedColumn:"rangeStackedColumn",normalizedColumn:"rangeNormalizedColumn"},barGroup:{_key:"rangeBarChart",bar:"rangeGroupedBar",stackedBar:"rangeStackedBar",normalizedBar:"rangeNormalizedBar"},pieGroup:{_key:"rangePieChart",pie:"rangePie",donut:"rangeDonut",doughnut:"rangeDonut"},lineGroup:{_key:"rangeLineChart",line:"rangeLineChart",stackedLine:"rangeStackedLine",normalizedLine:"rangeNormalizedLine"},areaGroup:{_key:"rangeAreaChart",area:"rangeArea",stackedArea:"rangeStackedArea",normalizedArea:"rangeNormalizedArea"},scatterGroup:{_key:"rangeXYChart",bubble:"rangeBubble",scatter:"rangeScatter"},polarGroup:{_key:"rangePolarChart",radarLine:"rangeRadarLine",radarArea:"rangeRadarArea",nightingale:"rangeNightingale",radialColumn:"rangeRadialColumn",radialBar:"rangeRadialBar"},statisticalGroup:{_key:"rangeStatisticalChart",boxPlot:"rangeBoxPlot",histogram:"rangeHistogram",rangeBar:"rangeRangeBar",rangeArea:"rangeRangeArea"},hierarchicalGroup:{_key:"rangeHierarchicalChart",treemap:"rangeTreemap",sunburst:"rangeSunburst"},specializedGroup:{_key:"rangeSpecializedChart",heatmap:"rangeHeatmap",waterfall:"rangeWaterfall"},combinationGroup:{_key:"rangeCombinationChart",columnLineCombo:"rangeColumnLineCombo",areaColumnCombo:"rangeAreaColumnCombo",customCombo:null}}}}},9262:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnChooserFactory=void 0;let E=A(6624),z=A(1269),T=A(8775);class b extends E.BeanStub{constructor(){super(...arguments),this.beanName="colChooserFactory"}createColumnSelectPanel(d,s,c,h){var j;let g=d.createManagedBean(new z.AgPrimaryCols),f=(j=h!=null?h:s==null?void 0:s.getColDef().columnChooserParams)!=null?j:{},{contractColumnSelection:S,suppressColumnExpandAll:w,suppressColumnFilter:M,suppressColumnSelectAll:P,suppressSyncLayoutWithGrid:O,columnLayout:G}=f;return g.init(!!c,this.gos.addGridCommonParams({suppressColumnMove:!1,suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!!S,suppressColumnExpandAll:!!w,suppressColumnFilter:!!M,suppressColumnSelectAll:!!P,suppressSyncLayoutWithGrid:!!G||!!O,onStateUpdated:()=>{}}),"columnMenu"),G&&g.setColumnLayout(G),g}showColumnChooser({column:d,chooserParams:s,eventSource:c}){this.hideActiveColumnChooser();let h=this.createColumnSelectPanel(this,d,!0,s),g=this.getLocaleTextFunc(),f=this.beans,{visibleCols:S,focusSvc:w,menuUtils:M}=f,P=S.allCols.indexOf(d),O=d?w.focusedHeader:null;this.activeColumnChooserDialog=this.createBean(new T.AgDialog({title:g("chooseColumns","Choose Columns"),component:h,width:300,height:300,resizable:!0,movable:!0,centered:!0,closable:!0,afterGuiAttached:()=>{var G;(G=(0,E._findNextFocusableElement)(f,h.getGui()))==null||G.focus({preventScroll:!0}),this.dispatchVisibleChangedEvent(!0,d)},closedCallback:G=>{let j=this.activeColumnChooser.getGui();this.destroyBean(this.activeColumnChooser),this.activeColumnChooser=void 0,this.activeColumnChooserDialog=void 0,this.dispatchVisibleChangedEvent(!1,d),d&&M.restoreFocusOnClose({column:d,headerPosition:O,columnIndex:P,eventSource:c},j,G,!0)},postProcessPopupParams:{type:"columnChooser",column:d,eventSource:c}})),this.activeColumnChooser=h}hideActiveColumnChooser(){this.destroyBean(this.activeColumnChooserDialog)}dispatchVisibleChangedEvent(d,s){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:d,switchingTab:!1,key:"columnChooser",column:s!=null?s:null})}}p.ColumnChooserFactory=b},5884:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColumnMenuFactory=void 0;let E=A(6624),z=A(8105),T=A(9476),b=A(1708);class C extends E.BeanStub{constructor(){super(...arguments),this.beanName="colMenuFactory"}createMenu(s,c,h,g){let f=s.createManagedBean(new T.AgMenuList(0,{column:h!=null?h:null,node:null,value:null})),S=this.beans.menuItemMapper.mapWithStockItems(c,h!=null?h:null,g,"columnMenu");return f.addMenuItems(S),f}getMenuItems(s=null,c=null){var S,w;let h=this.getDefaultMenuOptions(s),g,f=(w=(S=s==null?void 0:s.getColDef())!=null?S:c==null?void 0:c.getColGroupDef())==null?void 0:w.mainMenuItems;if(Array.isArray(f))g=f;else if(typeof f=="function")g=f(this.gos.addGridCommonParams({column:s,columnGroup:c,defaultItems:h}));else{let M=this.gos.getCallback("getMainMenuItems");M?g=M({column:s,columnGroup:c,defaultItems:h}):g=h}return(0,b._removeRepeatsFromArray)(g,b.MENU_ITEM_SEPARATOR),g}getDefaultMenuOptions(s){var We;let c=[],{beans:h,gos:g}=this,{colChooserFactory:f,rowGroupColsSvc:S,colModel:w,expansionSvc:M,sortSvc:P,menuSvc:O,pinnedCols:G,aggFuncSvc:j,colAutosize:Y}=h,J=(0,E._isLegacyMenuEnabled)(g),ne=()=>{!J&&f&&c.push("columnChooser"),c.push("resetColumns")};if(!s)return ne(),c;let{colDef:ce}=s,fe=G&&!ce.lockPinned,xe=(We=S==null?void 0:S.columns.length)!=null?We:0,Le=xe>0,_e=s.isPrimary(),Fe=j&&_e&&Le&&s.isAllowValue()||!_e;if(P&&!J&&s.isSortable()){let it=s.getSort();it!=="asc"&&c.push("sortAscending"),it!=="desc"&&c.push("sortDescending"),it&&c.push("sortUnSort"),c.push(b.MENU_ITEM_SEPARATOR)}if(O!=null&&O.isFilterMenuItemEnabled(s)&&(c.push("columnFilter"),c.push(b.MENU_ITEM_SEPARATOR)),fe&&c.push("pinSubMenu"),Fe&&c.push("valueAggSubMenu"),(fe||Fe)&&c.push(b.MENU_ITEM_SEPARATOR),Y&&(c.push("autoSizeThis"),c.push("autoSizeAll"),c.push(b.MENU_ITEM_SEPARATOR)),S&&g.isModuleRegistered("SharedRowGrouping")){let it=c.length;ce.showRowGroup?c.push("rowUnGroup"):s.isAllowRowGroup()&&_e&&(s.isRowGroupActive()?(0,z.isRowGroupColLocked)(s,h)||c.push("rowUnGroup"):c.push("rowGroup")),c.length>it&&c.push(b.MENU_ITEM_SEPARATOR)}return ne(),M&&(0,E._isClientSideRowModel)(g)&&(g.get("treeData")||xe>(w.isPivotMode()?1:0))&&(c.push("expandAll"),c.push("contractAll")),c}}p.ColumnMenuFactory=C},3461:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ContextMenuService=void 0;let E=A(6624),z=A(9476),T="ag-menu",b="ag-context-menu-open",C="ag-context-menu-loading-icon";class d extends E.BeanStub{constructor(){super(...arguments),this.beanName="contextMenuSvc",this.destroyLoadingSpinner=null,this.lastPromise=0}hideActiveMenu(){this.destroyBean(this.activeMenu)}getMenuItems(h,g,f,S){let w=[],{clipboardSvc:M,chartSvc:P,csvCreator:O,excelCreator:G,colModel:j,rangeSvc:Y,gos:J}=this.beans;if((0,E._exists)(h)&&M&&g&&(J.get("suppressCutToClipboard")||w.push("cut"),w.push("copy","copyWithHeaders","copyWithGroupHeaders","paste","separator")),J.get("enableCharts")&&P&&(j.isPivotMode()&&w.push("pivotChart"),Y&&!Y.isEmpty()&&w.push("chartRange")),(0,E._exists)(h)){let xe=J.get("suppressExcelExport")||!G,Le=J.get("suppressCsvExport")||!O;!(0,E._isIOSUserAgent)()&&(!xe||!Le)&&w.push("export")}let ne=w.length?w:void 0,ce=g==null?void 0:g.getColDef().contextMenuItems;if(Array.isArray(ce))return ce;if(typeof ce=="function")return ce(J.addGridCommonParams({column:g,node:h,value:f,defaultItems:ne,event:S}));let fe=J.getCallback("getContextMenuItems");return fe?fe({column:g,node:h,value:f,defaultItems:ne,event:S}):w}getContextMenuPosition(h,g){let f=this.getRowCtrl(h),S=this.getCellGui(f,g);if(!S)return f?{x:0,y:f.getRowYPosition()}:{x:0,y:0};let w=S.getBoundingClientRect();return{x:w.x+w.width/2,y:w.y+w.height/2}}showContextMenu(h){var M,P;let g=h.rowNode,f=h.column,{anchorToElement:S,value:w}=h;g&&f&&w==null&&(w=this.beans.valueSvc.getValueForDisplay(f,g)),S==null&&(S=this.getContextMenuAnchorElement(g,f)),this.onContextMenu((M=h.mouseEvent)!=null?M:null,(P=h.touchEvent)!=null?P:null,g!=null?g:null,f!=null?f:null,w,S)}handleContextMenuMouseEvent(h,g,f,S){var J,ne;let w=(J=f==null?void 0:f.rowNode)!=null?J:null,M=(ne=S==null?void 0:S.column)!=null?ne:null,P=null,{valueSvc:O,ctrlsSvc:G}=this.beans;if(M){let ce=h||g;S.dispatchCellContextMenuEvent(ce!=null?ce:null),P=O.getValue(M,w)}let j=G.getGridBodyCtrl(),Y=S?S.eGui:j.eGridBody;this.showContextMenu({mouseEvent:h,touchEvent:g,rowNode:w,column:M,value:P,anchorToElement:Y})}onContextMenu(h,g,f,S,w,M){this.beans.menuUtils.onContextMenu(h,g,P=>this.showMenu(f,S,w,P,M))}showMenu(h,g,f,S,w){let M=this.getMenuItems(h,g,f,S);if((0,E._isPromise)(M)){let P=this.lastPromise+1;return this.lastPromise=P,this.destroyLoadingSpinner||this.createLoadingIcon(S),M.then(O=>{var j;if(this.lastPromise!==P)return;O&&O.length&&(0,E._isVisible)(S.target)&&!((j=this.beans.overlays)!=null&&j.isExclusive())&&this.createContextMenu({menuItems:O,node:h,column:g,value:f,mouseEvent:S,anchorToElement:w}),this.destroyLoadingSpinner&&this.destroyLoadingSpinner()}),!0}return M===void 0||!(M!=null&&M.length)?!1:(this.createContextMenu({menuItems:M,node:h,column:g,value:f,mouseEvent:S,anchorToElement:w}),!0)}createLoadingIcon(h){var G;let{beans:g}=this,f=this.getLocaleTextFunc(),S=(0,E._createIconNoSpan)("loadingMenuItems",g),w=document.createElement("div");w.classList.add(C),w.appendChild(S);let M=(0,E._getRootNode)(g),P=(0,E._getPageBody)(g);if(!P){(0,E._warn)(54);return}P.appendChild(w),(G=g.ariaAnnounce)==null||G.announceValue(f("ariaLabelLoadingContextMenu","Loading Context Menu"),"contextmenu"),g.environment.applyThemeClasses(w),(0,E._anchorElementToMouseMoveEvent)(w,h,g);let O=j=>{(0,E._anchorElementToMouseMoveEvent)(w,j,g)};M.addEventListener("mousemove",O),this.destroyLoadingSpinner=()=>{M.removeEventListener("mousemove",O),P.removeChild(w),this.destroyLoadingSpinner=null}}createContextMenu(h){let{menuItems:g,node:f,column:S,value:w,mouseEvent:M,anchorToElement:P}=h,{ctrlsSvc:O,focusSvc:G,popupSvc:j}=this.beans,Y=O.getGridBodyCtrl().eGridBody,J=new s(g,S,f,w);this.createBean(J);let ne=J.getGui();S||G.clearFocusedCell();let ce={column:S,rowNode:f,type:"contextMenu",mouseEvent:M,ePopup:ne,nudgeY:1},fe=this.getLocaleTextFunc(),xe=j.addPopup({modal:!0,eChild:ne,closeOnEsc:!0,closedCallback:_e=>{Y.classList.remove(b),this.destroyBean(J),this.dispatchVisibleChangedEvent(!1,_e===void 0?"api":"ui")},click:M,positionCallback:()=>{let _e=this.gos.get("enableRtl");j.positionPopupUnderMouseEvent(He(ge({},ce),{nudgeX:_e?(ne.offsetWidth+1)*-1:1}))},anchorToElement:P,ariaLabel:fe("ariaLabelContextMenu","Context Menu")});xe&&(Y.classList.add(b),J.afterGuiAttached({container:"contextMenu",hidePopup:xe.hideFunc})),this.activeMenu&&this.hideActiveMenu(),this.activeMenu=J,J.addEventListener("destroyed",()=>{this.activeMenu===J&&(this.activeMenu=null)}),xe&&J.addEventListener("closeMenu",_e=>{var Fe,We;return xe.hideFunc({mouseEvent:(Fe=_e.mouseEvent)!=null?Fe:void 0,keyboardEvent:(We=_e.keyboardEvent)!=null?We:void 0,forceHide:!0})});let Le=M&&M instanceof MouseEvent&&M.type==="mousedown";this.dispatchVisibleChangedEvent(!0,Le?"api":"ui")}dispatchVisibleChangedEvent(h,g="ui"){this.eventSvc.dispatchEvent({type:"contextMenuVisibleChanged",visible:h,source:g})}getRowCtrl(h){let{rowIndex:g,rowPinned:f}=h||{};if(g!=null)return this.beans.rowRenderer.getRowByPosition({rowIndex:g,rowPinned:f})||void 0}getCellGui(h,g){if(!h||!g)return;let f=h.getCellCtrl(g);return(f==null?void 0:f.eGui)||void 0}getContextMenuAnchorElement(h,g){let f=this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody,S=this.getRowCtrl(h);if(!S)return f;let w=this.getCellGui(S,g);return w||(S.isFullWidth()?S.getFullWidthElement():f)}destroy(){var h;(h=this.destroyLoadingSpinner)==null||h.call(this),super.destroy()}}p.ContextMenuService=d;class s extends E.Component{constructor(h,g,f,S){super(`<div class="${T}" role="presentation"></div>`),this.menuItems=h,this.column=g,this.node=f,this.value=S,this.menuList=null,this.focusedCell=null}postConstruct(){let h=this.createManagedBean(new z.AgMenuList(0,{column:this.column,node:this.node,value:this.value})),g=this.beans.menuItemMapper.mapWithStockItems(this.menuItems,null,()=>this.getGui(),"contextMenu");h.addMenuItems(g),this.appendChild(h),this.menuList=h,h.addEventListener("closeMenu",f=>this.dispatchLocalEvent(f))}afterGuiAttached(h){h.hidePopup&&this.addDestroyFunc(h.hidePopup),this.focusedCell=this.beans.focusSvc.getFocusedCell();let g=this.menuList;g&&(0,E._focusInto)(g.getGui())}restoreFocusedCell(){let{beans:h,focusedCell:g}=this,f=h.focusSvc,S=f.getFocusedCell();if(S&&g&&(0,E._areCellsEqual)(S,g)){let{rowIndex:w,rowPinned:M,column:P}=g;(0,E._isNothingFocused)(h)&&f.setFocusedCell({rowIndex:w,column:P,rowPinned:M,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!(0,E._isKeyboardMode)()})}}destroy(){this.restoreFocusedCell(),super.destroy()}}},6345:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.EnterpriseMenuFactory=void 0;let E=A(6624),z=A(5875),T="filterMenuTab",b="generalMenuTab",C="columnsMenuTab",d=[b,T,C];class s extends E.BeanStub{constructor(){super(...arguments),this.beanName="enterpriseMenuFactory"}hideActiveMenu(){this.destroyBean(this.activeMenu)}showMenuAfterMouseEvent(f,S,w,M){let{column:P,columnGroup:O}=this.splitColumnOrGroup(f),G=M?"filterMenuTab":void 0;this.showMenu(P,O,j=>{var J;let Y=j.getGui();this.beans.popupSvc.positionPopupUnderMouseEvent({type:w,column:P,mouseEvent:S,ePopup:Y}),G&&((J=j.showTab)==null||J.call(j,G)),this.dispatchVisibleChangedEvent(!0,!1,P,O,G)},w,G,void 0,S.target)}splitColumnOrGroup(f){let S=f&&(0,E.isColumn)(f);return{column:S?f:void 0,columnGroup:S?void 0:f}}showMenuAfterButtonClick(f,S,w,M){let P=-1,O="left";this.gos.get("enableRtl")&&(P=1,O="right");let G=M?"filterMenuTab":void 0,j=G?[G]:void 0,Y=(0,E._isLegacyMenuEnabled)(this.gos),J=(Y?9:4)*P,ne=Y?-23:4,{column:ce,columnGroup:fe}=this.splitColumnOrGroup(f);this.showMenu(ce,fe,xe=>{var _e;let Le=xe.getGui();this.beans.popupSvc.positionPopupByComponent({type:w,column:ce,eventSource:S,ePopup:Le,alignSide:O,nudgeX:J,nudgeY:ne,position:"under",keepWithinBounds:!0}),G&&((_e=xe.showTab)==null||_e.call(xe,G)),this.dispatchVisibleChangedEvent(!0,!1,ce,fe,G)},w,G,j,S)}showMenu(f,S,w,M,P,O,G){var Fe;let j=this.getMenuParams(f,S,O,G);if(!j)return;let{menu:Y,eMenuGui:J,anchorToElement:ne,restoreFocusParams:ce}=j,fe=[],{menuUtils:xe,popupSvc:Le}=this.beans;fe.push(We=>{let it=Y.getGui();this.destroyBean(Y),f&&((0,E._setColMenuVisible)(f,!1,"contextMenu"),xe.restoreFocusOnClose(ce,it,We))});let _e=this.getLocaleTextFunc();if(Le.addPopup({modal:!0,eChild:J,closeOnEsc:!0,closedCallback:We=>{fe.forEach(it=>it(We)),this.dispatchVisibleChangedEvent(!1,!1,f,S,P)},afterGuiAttached:We=>Y.afterGuiAttached(Object.assign({},{container:M},We)),positionCallback:P?()=>w(Y):void 0,ariaLabel:_e("ariaLabelColumnMenu","Column Menu")}),P||((Fe=Y.showTabBasedOnPreviousSelection)==null||Fe.call(Y),w(Y)),(0,E._isColumnMenuAnchoringEnabled)(this.gos)){let We=Le.setPopupPositionRelatedToElement(J,ne);We&&f&&this.addStopAnchoring(We,f,fe)}Y.addEventListener("tabSelected",We=>{this.dispatchVisibleChangedEvent(!1,!0,f),this.lastSelectedTab=We.key,this.dispatchVisibleChangedEvent(!0,!0,f)}),f&&(0,E._setColMenuVisible)(f,!0,"contextMenu"),this.activeMenu=Y,Y.addEventListener("destroyed",()=>{this.activeMenu===Y&&(this.activeMenu=null)})}addStopAnchoring(f,S,w){f.then(M=>{S.addEventListener("leftChanged",M),S.addEventListener("visibleChanged",M),w.push(()=>{S.removeEventListener("leftChanged",M),S.removeEventListener("visibleChanged",M)})})}getMenuParams(f,S,w,M){let{focusSvc:P,visibleCols:O,ctrlsSvc:G}=this.beans,j={column:f,headerPosition:P.focusedHeader,columnIndex:O.allCols.indexOf(f),eventSource:M},Y=this.createMenu(f,S,j,w,M);return Y?{menu:Y,eMenuGui:Y.getGui(),anchorToElement:M||G.getGridBodyCtrl().eGridBody,restoreFocusParams:j}:void 0}createMenu(f,S,w,M,P){if((0,E._isLegacyMenuEnabled)(this.gos))return this.createBean(new c(f,w,this.lastSelectedTab,M,P));{let O=this.beans.colMenuFactory.getMenuItems(f,S);return O.length?this.createBean(new h(O,f,w,P)):void 0}}dispatchVisibleChangedEvent(f,S,w,M,P){var O,G;this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:f,switchingTab:S,key:(G=(O=this.lastSelectedTab)!=null?O:P)!=null?G:(0,E._isLegacyMenuEnabled)(this.gos)?b:"columnMenu",column:w!=null?w:null,columnGroup:M!=null?M:null})}isMenuEnabled(f){var P,O;if(!(0,E._isLegacyMenuEnabled)(this.gos))return!0;let S=!((P=this.beans.filterManager)!=null&&P.isFilterAllowed(f)),w=(O=f.getColDef().menuTabs)!=null?O:d;return(S&&w.includes(T)?w.length-1:w.length)>0}showMenuAfterContextMenuEvent(f,S,w){this.beans.menuUtils.onContextMenu(S,w,M=>(this.showMenuAfterMouseEvent(f,M,"columnMenu"),!0))}}p.EnterpriseMenuFactory=s;class c extends E.BeanStub{constructor(f,S,w,M,P){super(),this.column=f,this.restoreFocusParams=S,this.initialSelection=w,this.restrictTo=M,this.sourceElement=P,this.tabFactories={},this.includeChecks={};let{tabFactories:O,includeChecks:G}=this;O[b]=this.createMainPanel.bind(this),O[T]=this.createFilterPanel.bind(this),O[C]=this.createColumnsPanel.bind(this),G[b]=()=>!0,G[T]=()=>{var j;return f?!!((j=this.beans.filterManager)!=null&&j.isFilterAllowed(f)):!1},G[C]=()=>!0}postConstruct(){var w;let f=this.getTabsToCreate().map(M=>this.createTab(M)),S=new z.TabbedLayout({items:f,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)});this.tabbedLayout=this.createBean(S),(w=this.mainMenuList)==null||w.setParentComponent(S),this.addDestroyFunc(()=>this.destroyBean(S))}getTabsToCreate(){var f,S;return this.restrictTo?this.restrictTo:((S=(f=this.column)==null?void 0:f.getColDef().menuTabs)!=null?S:d).filter(w=>this.isValidMenuTabItem(w)&&this.isNotSuppressed(w))}isValidMenuTabItem(f){let S=!0,w=d;return this.restrictTo!=null&&(S=this.restrictTo.indexOf(f)>-1,w=this.restrictTo),S=S&&d.indexOf(f)>-1,S||(0,E._warn)(175,{menuTabName:f,itemsToConsider:w}),S}isNotSuppressed(f){return this.includeChecks[f]()}createTab(f){return this.tabFactories[f]()}showTabBasedOnPreviousSelection(){this.showTab(this.initialSelection)}showTab(f){let{tabItemColumns:S,tabbedLayout:w,tabItemFilter:M,tabItemGeneral:P}=this;S&&f===C?w.showItem(S):M&&f===T?w.showItem(M):P&&f===b?w.showItem(P):w.showFirstItem()}onTabItemClicked(f){let S=null;switch(f.item){case this.tabItemColumns:S=C;break;case this.tabItemFilter:S=T;break;case this.tabItemGeneral:S=b;break}S&&this.activateTab(S)}activateTab(f){let S={type:"tabSelected",key:f};this.dispatchLocalEvent(S)}createMainPanel(){let{beans:f,column:S}=this,w=f.colMenuFactory,M=w.createMenu(this,w.getMenuItems(S),this.column,()=>{var O;return(O=this.sourceElement)!=null?O:this.getGui()});this.mainMenuList=M,M.addEventListener("closeMenu",this.onHidePopup.bind(this));let P={title:(0,E._createIconNoSpan)("legacyMenu",f,S),titleLabel:b.replace("MenuTab",""),bodyPromise:E.AgPromise.resolve(M.getGui()),name:b};return this.tabItemGeneral=P,P}onHidePopup(f){this.beans.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,f)}createFilterPanel(){let f=this.column?this.createBean(new E.FilterWrapperComp(this.column,"COLUMN_MENU")):null;this.filterComp=f,f!=null&&f.hasFilter()||(0,E._error)(119);let S=M=>f==null?void 0:f.afterGuiAttached(M),w=()=>f==null?void 0:f.afterGuiDetached();return this.tabItemFilter={title:(0,E._createIconNoSpan)("filterTab",this.beans,this.column),titleLabel:T.replace("MenuTab",""),bodyPromise:E.AgPromise.resolve(f==null?void 0:f.getGui()),afterAttachedCallback:S,afterDetachedCallback:w,name:T},this.tabItemFilter}createColumnsPanel(){let f=document.createElement("div");f.classList.add("ag-menu-column-select-wrapper");let{beans:S,column:w}=this,P=S.colChooserFactory.createColumnSelectPanel(this,w).getGui();P.classList.add("ag-menu-column-select"),f.appendChild(P);let O={title:(0,E._createIconNoSpan)("columns",S,w),titleLabel:C.replace("MenuTab",""),bodyPromise:E.AgPromise.resolve(f),name:C};return this.tabItemColumns=O,O}afterGuiAttached(f){let{container:S,hidePopup:w}=f;this.tabbedLayout.setAfterAttachedParams({container:S,hidePopup:w}),w&&(this.hidePopupFunc=w,this.addDestroyFunc(w))}getGui(){return this.tabbedLayout.getGui()}destroy(){super.destroy(),this.destroyBean(this.filterComp)}}class h extends E.Component{constructor(f,S,w,M){super(`
            <div data-ref="eColumnMenu" role="presentation" class="ag-menu ag-column-menu"></div>
        `),this.menuItems=f,this.column=S,this.restoreFocusParams=w,this.sourceElement=M,this.eColumnMenu=E.RefPlaceholder}postConstruct(){let f=this.beans.colMenuFactory.createMenu(this,this.menuItems,this.column,()=>{var S;return(S=this.sourceElement)!=null?S:this.getGui()});this.mainMenuList=f,f.addEventListener("closeMenu",this.onHidePopup.bind(this)),this.eColumnMenu.appendChild(f.getGui())}onHidePopup(f){this.beans.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,f)}afterGuiAttached({hidePopup:f}){f&&(this.hidePopupFunc=f,this.addDestroyFunc(f)),(0,E._focusInto)(this.mainMenuList.getGui())}}},8228:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.hideColumnChooser=p.showColumnChooser=p.showContextMenu=void 0;function A(T,b){let{contextMenuSvc:C}=T;if(!C)return;let{rowNode:d,column:s,value:c,x:h,y:g}=b||{},{x:f,y:S}=C.getContextMenuPosition(d,s);h!=null&&(f=h),g!=null&&(S=g),C.showContextMenu({mouseEvent:new MouseEvent("mousedown",{clientX:f,clientY:S}),rowNode:d,column:s,value:c})}p.showContextMenu=A;function E(T,b){var C;(C=T.colChooserFactory)==null||C.showColumnChooser({chooserParams:b})}p.showColumnChooser=E;function z(T){var b;(b=T.colChooserFactory)==null||b.hideActiveColumnChooser()}p.hideColumnChooser=z},1708:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MenuItemMapper=p._removeRepeatsFromArray=p.MENU_ITEM_SEPARATOR=void 0;let E=A(6624),z=A(8105);p.MENU_ITEM_SEPARATOR="separator";function T(d,s){if(d)for(let c=d.length-2;c>=0;c--){let h=d[c]===s,g=d[c+1]===s;h&&g&&d.splice(c+1,1)}}p._removeRepeatsFromArray=T;class b extends E.BeanStub{constructor(){super(...arguments),this.beanName="menuItemMapper"}mapWithStockItems(s,c,h,g){if(!s)return[];let f=[],S=this.getLocaleTextFunc(),{beans:w,gos:M}=this,{validation:P,pinnedCols:O,colAutosize:G,aggFuncSvc:j,rowGroupColsSvc:Y,colNames:J,colModel:ne,clipboardSvc:ce,expansionSvc:fe,focusSvc:xe,csvCreator:Le,excelCreator:_e,menuSvc:Fe,colChooserFactory:We,sortSvc:it,chartMenuItemMapper:tt,valueColsSvc:ot}=w,st=(St,Xe,Ke,Ye)=>{var Ze;switch(P==null||P.validateMenuItem(St),St){case"pinSubMenu":return O&&Xe?{name:S("pinColumn","Pin Column"),icon:(0,E._createIconNoSpan)("menuPin",w,null),subMenu:["clearPinned","pinLeft","pinRight"]}:null;case"pinLeft":return O&&Xe?{name:S("pinLeft","Pin Left"),action:()=>O.setColsPinned([Xe],"left",Ye),checked:!!Xe&&Xe.isPinnedLeft()}:null;case"pinRight":return O&&Xe?{name:S("pinRight","Pin Right"),action:()=>O.setColsPinned([Xe],"right",Ye),checked:!!Xe&&Xe.isPinnedRight()}:null;case"clearPinned":return O&&Xe?{name:S("noPin","No Pin"),action:()=>O.setColsPinned([Xe],null,Ye),checked:!!Xe&&!Xe.isPinned()}:null;case"valueAggSubMenu":return j&&ot&&(Xe!=null&&Xe.isPrimary()||Xe!=null&&Xe.getColDef().pivotValueColumn)?{name:S("valueAggregation","Value Aggregation"),icon:(0,E._createIconNoSpan)("menuValue",w,null),subMenu:C(Xe,j,ot,S),disabled:M.get("functionsReadOnly")}:null;case"autoSizeThis":return G?{name:S("autosizeThisColumn","Autosize This Column"),action:()=>G.autoSizeColumn(Xe,Ye,M.get("skipHeaderOnAutoSize"))}:null;case"autoSizeAll":return G?{name:S("autosizeAllColumns","Autosize All Columns"),action:()=>G.autoSizeAllColumns(Ye,M.get("skipHeaderOnAutoSize"))}:null;case"rowGroup":return Y?{name:S("groupBy","Group by")+" "+(0,E._escapeString)(J.getDisplayNameForColumn(Xe,"header")),disabled:M.get("functionsReadOnly")||(Xe==null?void 0:Xe.isRowGroupActive())||!(Xe!=null&&Xe.getColDef().enableRowGroup),action:()=>Y.addColumns([Xe],Ye),icon:(0,E._createIconNoSpan)("menuAddRowGroup",w,null)}:null;case"rowUnGroup":if(Y&&M.isModuleRegistered("SharedRowGrouping")){let Pe=Xe==null?void 0:Xe.getColDef().showRowGroup,ct=M.get("groupLockGroupColumns"),dt,bt,Pt;if(Pe===!0)dt=S("ungroupAll","Un-Group All"),bt=M.get("functionsReadOnly")||ct===-1||ct>=((Ze=Y.columns.length)!=null?Ze:0),Pt=()=>Y.setColumns(Y.columns.slice(0,ct),Ye);else if(typeof Pe=="string"){let Nt=ne.getColDefCol(Pe),ft=Nt!=null?(0,E._escapeString)(J.getDisplayNameForColumn(Nt,"header")):Pe;dt=S("ungroupBy","Un-Group by")+" "+ft,bt=M.get("functionsReadOnly")||(0,z.isRowGroupColLocked)(Nt,w),Pt=()=>{Y.removeColumns([Pe],Ye)}}else dt=S("ungroupBy","Un-Group by")+" "+(0,E._escapeString)(J.getDisplayNameForColumn(Xe,"header")),bt=M.get("functionsReadOnly")||!(Xe!=null&&Xe.isRowGroupActive())||!(Xe!=null&&Xe.getColDef().enableRowGroup)||(0,z.isRowGroupColLocked)(Xe,w),Pt=()=>Y.removeColumns([Xe],Ye);return{name:dt,disabled:bt,action:Pt,icon:(0,E._createIconNoSpan)("menuRemoveRowGroup",w,null)}}else return null;case"resetColumns":return{name:S("resetColumns","Reset Columns"),action:()=>(0,E._resetColumnState)(w,Ye)};case"expandAll":return fe?{name:S("expandAll","Expand All Row Groups"),action:()=>fe.expandAll(!0)}:null;case"contractAll":return fe?{name:S("collapseAll","Collapse All Row Groups"),action:()=>fe.expandAll(!1)}:null;case"copy":return ce?{name:S("copy","Copy"),shortcut:S("ctrlC","Ctrl+C"),icon:(0,E._createIconNoSpan)("clipboardCopy",w,null),action:()=>ce.copyToClipboard()}:null;case"copyWithHeaders":return ce?{name:S("copyWithHeaders","Copy with Headers"),icon:(0,E._createIconNoSpan)("clipboardCopy",w,null),action:()=>ce.copyToClipboard({includeHeaders:!0})}:null;case"copyWithGroupHeaders":return ce?{name:S("copyWithGroupHeaders","Copy with Group Headers"),icon:(0,E._createIconNoSpan)("clipboardCopy",w,null),action:()=>ce.copyToClipboard({includeHeaders:!0,includeGroupHeaders:!0})}:null;case"cut":if(ce){let Pe=xe.getFocusedCell(),ct=Pe?(0,E._getRowNode)(w,Pe):null,dt=ct?Pe==null?void 0:Pe.column.isCellEditable(ct):!1;return{name:S("cut","Cut"),shortcut:S("ctrlX","Ctrl+X"),icon:(0,E._createIconNoSpan)("clipboardCut",w,null),disabled:!dt||M.get("suppressCutToClipboard"),action:()=>ce.cutToClipboard(void 0,"contextMenu")}}else return null;case"paste":return ce?{name:S("paste","Paste"),shortcut:S("ctrlV","Ctrl+V"),disabled:!0,icon:(0,E._createIconNoSpan)("clipboardPaste",w,null),action:()=>ce.pasteFromClipboard()}:null;case"export":{let Pe=[];return!M.get("suppressCsvExport")&&Le&&Pe.push("csvExport"),!M.get("suppressExcelExport")&&_e&&Pe.push("excelExport"),Pe.length?{name:S("export","Export"),subMenu:Pe,icon:(0,E._createIconNoSpan)("save",w,null)}:null}case"csvExport":return Le?{name:S("csvExport","CSV Export"),icon:(0,E._createIconNoSpan)("csvExport",w,null),action:()=>Le.exportDataAsCsv()}:null;case"excelExport":return _e?{name:S("excelExport","Excel Export"),icon:(0,E._createIconNoSpan)("excelExport",w,null),action:()=>_e.exportDataAsExcel()}:null;case"separator":return"separator";case"pivotChart":case"chartRange":return tt.getChartItems(St);case"columnFilter":return Fe&&Xe?{name:S("columnFilter","Column Filter"),icon:(0,E._createIconNoSpan)("filter",w,null),action:()=>Fe.showFilterMenu({column:Xe,buttonElement:Ke(),containerType:"columnFilter",positionBy:"button"})}:null;case"columnChooser":return We?{name:S("columnChooser","Choose Columns"),icon:(0,E._createIconNoSpan)("columns",w,null),action:()=>We.showColumnChooser({column:Xe,eventSource:Ke()})}:null;case"sortAscending":return it?{name:S("sortAscending","Sort Ascending"),icon:(0,E._createIconNoSpan)("sortAscending",w,null),action:()=>it.setSortForColumn(Xe,"asc",!1,Ye)}:null;case"sortDescending":return it?{name:S("sortDescending","Sort Descending"),icon:(0,E._createIconNoSpan)("sortDescending",w,null),action:()=>it.setSortForColumn(Xe,"desc",!1,Ye)}:null;case"sortUnSort":return it?{name:S("sortUnSort","Clear Sort"),icon:(0,E._createIconNoSpan)("sortUnSort",w,null),action:()=>it.setSortForColumn(Xe,null,!1,Ye)}:null;default:return(0,E._warn)(176,{key:St}),null}};return s.forEach(St=>{let Xe;if(typeof St=="string"?Xe=st(St,c,h,g):Xe=ge({},St),!Xe)return;let Ke=Xe,{subMenu:Ye}=Ke;Ye&&Ye instanceof Array&&(Ke.subMenu=this.mapWithStockItems(Ye,c,h,g)),Xe!=null&&f.push(Xe)}),T(f,p.MENU_ITEM_SEPARATOR),f}}p.MenuItemMapper=b;function C(d,s,c,h){let g;if(d.isPrimary())g=d;else{let S=d.getColDef().pivotValueColumn;g=(0,E._exists)(S)?S:void 0}let f=[];if(g){let S=g.isValueActive(),w=s.getFuncNames(g);f.push({name:h("noAggregation","None"),action:()=>{c.removeColumns([g],"contextMenu"),c.setColumnAggFunc(g,void 0,"contextMenu")},checked:!S}),w.forEach(M=>{f.push({name:h(M,s.getDefaultFuncLabel(M)),action:()=>{c.setColumnAggFunc(g,M,"contextMenu"),c.addColumns([g],"contextMenu")},checked:S&&g.getAggFunc()===M})})}return f}},7130:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MenuModule=p.ContextMenuModule=p.ColumnMenuModule=p.MenuCoreModule=void 0;let E=A(6624),z=A(9206),T=A(7205),b=A(3375),C=A(5636),d=A(9262),s=A(5884),c=A(3461),h=A(6345),g=A(8228),f=A(1708),S=A(3569);p.MenuCoreModule={moduleName:"MenuCore",version:T.VERSION,beans:[f.MenuItemMapper,C.ChartMenuItemMapper,S.MenuUtils],icons:{chart:"chart",columns:"columns",loadingMenuItems:"loading",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",save:"save",csvExport:"csv",excelExport:"excel",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"},dependsOn:[z.EnterpriseCoreModule,E._PopupModule,E._SharedMenuModule,b.MenuItemModule]},p.ColumnMenuModule={moduleName:"ColumnMenu",version:T.VERSION,beans:[h.EnterpriseMenuFactory,s.ColumnMenuFactory,d.ColumnChooserFactory],icons:{legacyMenu:"menu",filterTab:"filter",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate"},apiFunctions:{showColumnChooser:g.showColumnChooser,hideColumnChooser:g.hideColumnChooser},dependsOn:[p.MenuCoreModule,E._SharedDragAndDropModule,E._ColumnMoveModule]},p.ContextMenuModule={moduleName:"ContextMenu",version:T.VERSION,beans:[c.ContextMenuService],apiFunctions:{showContextMenu:g.showContextMenu},dependsOn:[p.MenuCoreModule]},p.MenuModule={moduleName:"Menu",version:T.VERSION,dependsOn:[p.ColumnMenuModule,p.ContextMenuModule]}},3569:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MenuUtils=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="menuUtils"}restoreFocusOnClose(b,C,d,s){let{eventSource:c}=b,h=d instanceof KeyboardEvent;if(!s&&!h||!c)return;let g=(0,E._getActiveDomElement)(this.beans);!C.contains(g)&&!(0,E._isNothingFocused)(this.beans)||this.focusHeaderCell(b)}closePopupAndRestoreFocusOnSelect(b,C,d){let s;d&&d.keyboardEvent&&(s=d.keyboardEvent),b(s&&{keyboardEvent:s});let c=this.beans,h=c.focusSvc,g=h.getFocusedCell();if((0,E._isNothingFocused)(c))if(g){let{rowIndex:f,rowPinned:S,column:w}=g;h.setFocusedCell({rowIndex:f,column:w,rowPinned:S,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}else this.focusHeaderCell(C)}onContextMenu(b,C,d){if(!this.gos.get("allowContextMenuWithControlKey")&&b&&(b.ctrlKey||b.metaKey)||(b&&this.blockMiddleClickScrollsIfNeeded(b),this.gos.get("suppressContextMenu")))return;let s=b!=null?b:C.touches[0];if(d(s)){let c=b!=null?b:C;c&&c.cancelable&&c.preventDefault()}}async focusHeaderCell(b){let{column:C,columnIndex:d,headerPosition:s,eventSource:c}=b,{visibleCols:h,headerNavigation:g,focusSvc:f}=this.beans,S=await h.allCols.some(w=>w===C);if(!(C&&!C.isAlive())){if(S&&c&&(0,E._isVisible)(c)){let w=(0,E._findTabbableParent)(c);w&&(C&&(g==null||g.scrollToColumn(C)),w.focus())}else if(s&&d!==-1){let w=h.allCols,M=w[d]||(0,E._last)(w);M&&f.focusHeaderPosition({headerPosition:{headerRowIndex:s.headerRowIndex,column:M}})}}}blockMiddleClickScrollsIfNeeded(b){this.gos.get("suppressMiddleClickScrolls")&&b.which===2&&b.preventDefault()}}p.MenuUtils=z},6242:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.isTargetUnderManagedComponent=p.findFocusableElementBeforeTabGuard=void 0;let E=A(6624);function z(b,C){if(!C)return null;let d=(0,E._findFocusableElements)(b),s=d.indexOf(C);if(s===-1)return null;let c=-1;for(let h=s-1;h>=0;h--)if(d[h].classList.contains(E.TabGuardClassNames.TAB_GUARD_TOP)){c=h;break}return c<=0?null:d[c-1]}p.findFocusableElementBeforeTabGuard=z;function T(b,C){if(!C)return!1;let d=b.querySelectorAll(`.${E._FOCUS_MANAGED_CLASS}`);if(!d.length)return!1;for(let s=0;s<d.length;s++)if(d[s].contains(C))return!0;return!1}p.isTargetUnderManagedComponent=T},9038:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MultiFilter=p.getMultiFilterDefs=void 0;let E=A(6624),z=A(1421),T=A(7040),b=A(3360);function C(h){let{filters:g}=h;return g&&g.length>0?g:[{filter:"agTextColumnFilter"},{filter:"agSetColumnFilter"}]}p.getMultiFilterDefs=C;function d(h,g){if(h!=null)for(let f=h.length-1;f>=0;f--)g(h[f],f)}function s(h,g){return g.title!=null?g.title:h instanceof E.ProvidedFilter?h.getFilterTitle():"Filter"}class c extends E.TabGuardComp{constructor(){super('<div class="ag-multi-filter ag-menu-list-compact"></div>'),this.filterType="multi",this.filterDefs=[],this.filters=[],this.guiDestroyFuncs=[],this.filterGuis=[],this.activeFilterIndices=[],this.lastActivatedMenuItem=null,this.afterFiltersReadyFuncs=[]}postConstruct(){this.initialiseTabGuard({onFocusIn:g=>this.onFocusIn(g)})}init(g){this.params=g,this.filterDefs=C(g);let{column:f,filterChangedCallback:S}=g;this.column=f,this.filterChangedCallback=S;let w=[];return this.filterDefs.forEach((M,P)=>{let O=this.createFilter(M,P);O!=null&&w.push(O)}),new E.AgPromise(M=>{E.AgPromise.all(w).then(P=>{this.filters=P,this.refreshGui("columnMenu").then(()=>{M()})})}).then(()=>{this.afterFiltersReadyFuncs.forEach(M=>M()),this.afterFiltersReadyFuncs.length=0})}refreshGui(g){return g===this.lastOpenedInContainer?E.AgPromise.resolve():(this.tabGuardFeature.removeAllChildrenExceptTabGuards(),this.destroyChildren(),E.AgPromise.all(this.filters.map((f,S)=>{let w=this.filterDefs[S],M=s(f,w),P;if(w.display==="subMenu"&&g!=="toolPanel")P=this.insertFilterMenu(f,M).then(O=>O.getGui());else if(w.display==="subMenu"||w.display==="accordion"){let O=this.insertFilterGroup(f,M);P=E.AgPromise.resolve(O.getGui())}else P=E.AgPromise.resolve(f.getGui());return P})).then(f=>{f.forEach((S,w)=>{w>0&&this.appendChild((0,E._loadTemplate)('<div class="ag-filter-separator"></div>')),this.appendChild(S)}),this.filterGuis=f,this.lastOpenedInContainer=g}))}destroyChildren(){this.guiDestroyFuncs.forEach(g=>g()),this.guiDestroyFuncs.length=0,this.filterGuis.length=0}insertFilterMenu(g,f){let S=this.createBean(new T.AgMenuItemComponent);return S.init({menuItemDef:{name:f,subMenu:[],cssClasses:["ag-multi-filter-menu-item"],menuItem:b.AgMenuItemRenderer,menuItemParams:{cssClassPrefix:"ag-compact-menu-option",isCompact:!0}},level:0,isAnotherSubMenuOpen:()=>!1,childComponent:g,contextParams:{column:null,node:null,value:null}}).then(()=>{S.setParentComponent(this),this.guiDestroyFuncs.push(()=>this.destroyBean(S)),this.addManagedListeners(S,{menuItemActivated:M=>{this.lastActivatedMenuItem&&this.lastActivatedMenuItem!==M.menuItem&&this.lastActivatedMenuItem.deactivate(),this.lastActivatedMenuItem=M.menuItem}});let w=S.getGui();return S.addManagedElementListeners(w,{keydown:M=>{let{key:P}=M;switch(P){case E.KeyCode.UP:case E.KeyCode.RIGHT:case E.KeyCode.DOWN:case E.KeyCode.LEFT:M.preventDefault(),P===E.KeyCode.RIGHT&&S.openSubMenu(!0);break}},focusin:()=>S.activate(),focusout:()=>{!S.isSubMenuOpen()&&!S.isSubMenuOpening()&&S.deactivate()}}),S})}insertFilterGroup(g,f){let S=this.createBean(new z.AgGroupComponent({title:f,cssIdentifier:"multi-filter"}));return this.guiDestroyFuncs.push(()=>this.destroyBean(S)),S.addItem(g.getGui()),S.toggleGroupExpand(!1),g.afterGuiAttached&&S.addManagedListeners(S,{expanded:()=>g.afterGuiAttached({container:this.lastOpenedInContainer,suppressFocus:!0,hidePopup:this.hidePopup})}),S}isFilterActive(){return this.filters.some(g=>g.isFilterActive())}getLastActiveFilterIndex(){let g=this.activeFilterIndices;return g.length>0?g[g.length-1]:null}doesFilterPass(g,f){let S=!0;return this.filters.forEach(w=>{!S||w===f||!w.isFilterActive()||(S=w.doesFilterPass(g))}),S}getModelFromUi(){return{filterType:this.filterType,filterModels:this.filters.map(f=>{let S=f;return typeof S.getModelFromUi=="function"?S.getModelFromUi():null})}}getModel(){return this.isFilterActive()?{filterType:this.filterType,filterModels:this.filters.map(f=>f.isFilterActive()?f.getModel():null)}:null}setModel(g){let f=(w,M)=>new E.AgPromise(P=>{let O=w.setModel(M);O?O.then(()=>P()):P()}),S=[];return g==null?S=this.filters.map((w,M)=>f(w,null).then(()=>{this.updateActiveList(M)})):this.filters.forEach((w,M)=>{let P=g.filterModels.length>M?g.filterModels[M]:null,O=f(w,P).then(()=>{this.updateActiveList(M)});S.push(O)}),E.AgPromise.all(S).then(()=>{})}applyModel(g="api"){let f=!1;return this.filters.forEach(S=>{S instanceof E.ProvidedFilter&&(f=S.applyModel(g)||f)}),f}getChildFilterInstance(g){return this.filters[g]}afterGuiAttached(g){let f;g?(this.hidePopup=g.hidePopup,f=this.refreshGui(g.container)):(this.hidePopup=void 0,f=E.AgPromise.resolve());let S=g==null?void 0:g.suppressFocus;f.then(()=>{let{filterDefs:w,filters:M,filterGuis:P,beans:O}=this,G=!!S;w&&d(w,(Y,J)=>{let ne=J===0,ce=Y.display&&Y.display!=="inline",fe=S||!ne||ce,xe=He(ge({},g!=null?g:{}),{suppressFocus:fe}),Le=M==null?void 0:M[J];if(Le&&(this.executeFunctionIfExistsOnFilter(Le,"afterGuiAttached",xe),ne&&!fe&&(G=!0)),!S&&ne&&ce){let _e=P[J];_e&&((0,E._focusInto)(_e)||_e.focus({preventScroll:!0}),G=!0)}});let j=(0,E._getActiveDomElement)(O);!G&&((0,E._isNothingFocused)(O)||this.getGui().contains(j))&&this.forceFocusOutOfContainer(!0)})}afterGuiDetached(){this.executeFunctionIfExists("afterGuiDetached")}onAnyFilterChanged(){this.executeFunctionIfExists("onAnyFilterChanged")}onNewRowsLoaded(){this.executeFunctionIfExists("onNewRowsLoaded")}destroy(){this.filters.forEach(g=>this.destroyBean(g)),this.filters.length=0,this.destroyChildren(),this.hidePopup=void 0,super.destroy()}executeFunctionIfExists(g,...f){d(this.filters,S=>{this.executeFunctionIfExistsOnFilter(S,g,f)})}executeFunctionIfExistsOnFilter(g,f,...S){let w=g[f];typeof w=="function"&&w.apply(g,S)}createFilter(g,f){let{filterModifiedCallback:S,doesRowPassOtherFilter:w}=this.params,{filterManager:M,userCompFactory:P}=this.beans,O,G=He(ge({},M.createFilterParams(this.column,this.column.getColDef())),{filterModifiedCallback:S,filterChangedCallback:J=>{this.executeWhenAllFiltersReady(()=>this.filterChanged(f,J))},doesRowPassOtherFilter:J=>w(J)&&this.doesFilterPass({node:J,data:J.data},O)}),j=(0,E._getFilterDetails)(P,g,G,"agTextColumnFilter");if(!j)return null;let Y=j.newAgStackInstance();return Y.then(J=>O=J),Y}executeWhenAllFiltersReady(g){var f,S;((S=(f=this.filters)==null?void 0:f.length)!=null?S:0)>0?g():this.afterFiltersReadyFuncs.push(g)}updateActiveList(g){let{filters:f,activeFilterIndices:S}=this,w=f[g];(0,E._removeFromArray)(S,g),w.isFilterActive()&&S.push(g)}filterChanged(g,f){this.updateActiveList(g),this.filterChangedCallback(f);let S=this.filters[g];this.filters.forEach(w=>{w!==S&&typeof w.onAnyFilterChanged=="function"&&w.onAnyFilterChanged()})}onFocusIn(g){let f=this.lastActivatedMenuItem;f!=null&&!f.getGui().contains(g.target)&&(f.deactivate(),this.lastActivatedMenuItem=null)}getModelAsString(g){var w,M,P,O;if(!this.filters||!((w=g==null?void 0:g.filterModels)!=null&&w.length))return"";let f=(M=this.getLastActiveFilterIndex())!=null?M:0,S=this.filters[f];return(O=(P=S.getModelAsString)==null?void 0:P.call(S,g.filterModels[f]))!=null?O:""}}p.MultiFilter=c},5434:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MultiFilterModule=void 0;let E=A(6624),z=A(9206),T=A(7205),b=A(3375),C=A(9038),d=A(2335);p.MultiFilterModule={moduleName:"MultiFilter",version:T.VERSION,userComponents:{agMultiColumnFilter:C.MultiFilter,agMultiColumnFloatingFilter:d.MultiFloatingFilterComp},dependsOn:[z.EnterpriseCoreModule,E._ColumnFilterModule,b.MenuItemModule]}},2335:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MultiFloatingFilterComp=void 0;let E=A(6624),z=A(9038);class T extends E.Component{constructor(){super('<div class="ag-multi-floating-filter ag-floating-filter-input"></div>'),this.floatingFilters=[],this.compDetailsList=[]}init(C){this.params=C;let{compDetailsList:d}=this.getCompDetailsList(C);return this.setParams(d)}setParams(C){let d=[];return C.forEach(s=>{let c=s==null?void 0:s.newAgStackInstance();c!=null&&(this.compDetailsList.push(s),d.push(c))}),E.AgPromise.all(d).then(s=>{s.forEach((c,h)=>{this.floatingFilters.push(c);let g=c.getGui();this.appendChild(g),h>0&&(0,E._setDisplayed)(g,!1)})})}refresh(C){this.params=C;let{compDetailsList:d,floatingFilterParamsList:s}=this.getCompDetailsList(C);d.length===this.compDetailsList.length&&d.every((h,g)=>{var f;return!((f=this.beans.filterManager)!=null&&f.areFilterCompsDifferent(this.compDetailsList[g],h))})?s.forEach((h,g)=>{var S;let f=this.floatingFilters[g];(S=f.refresh)==null||S.call(f,h)}):((0,E._clearElement)(this.getGui()),this.destroyBeans(this.floatingFilters),this.floatingFilters=[],this.compDetailsList=[],this.setParams(d))}getCompDetailsList(C){let d=[],s=[],c=C.filterParams,h=C.currentParentModel;return(0,z.getMultiFilterDefs)(c).forEach((g,f)=>{let S=He(ge({},C),{parentFilterInstance:M=>{this.parentMultiFilterInstance(P=>{let O=P.getChildFilterInstance(f);O!=null&&M(O)})},currentParentModel:()=>{var M,P,O;return(O=(P=(M=h())==null?void 0:M.filterModels)==null?void 0:P[f])!=null?O:null}});(0,E._mergeDeep)(S.filterParams,g.filterParams);let w=this.getCompDetails(g,S);w&&(d.push(w),s.push(S))}),{compDetailsList:d,floatingFilterParamsList:s}}onParentModelChanged(C,d){d&&d.afterFloatingFilter||this.parentMultiFilterInstance(s=>{if(C==null)this.floatingFilters.forEach((c,h)=>{c.onParentModelChanged(null,d),(0,E._setDisplayed)(c.getGui(),h===0)});else{let c=s.getLastActiveFilterIndex();this.floatingFilters.forEach((h,g)=>{let f=C.filterModels.length>g?C.filterModels[g]:null;h.onParentModelChanged(f,d);let S=c==null?g===0:g===c;(0,E._setDisplayed)(h.getGui(),S)})}})}destroy(){this.destroyBeans(this.floatingFilters),this.floatingFilters.length=0,super.destroy()}getCompDetails(C,d){var f;let{filterManager:s,frameworkOverrides:c,userCompFactory:h}=this.beans,g=(f=(0,E._getDefaultFloatingFilterType)(c,C,()=>s.getDefaultFloatingFilter(this.params.column)))!=null?f:"agReadOnlyFloatingFilter";return(0,E._getFloatingFilterCompDetails)(h,C,d,g)}parentMultiFilterInstance(C){this.params.parentFilterInstance(d=>{d instanceof z.MultiFilter||(0,E._error)(120),C(d)})}}p.MultiFloatingFilterComp=T},5792:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getPivotResultColumns=p.setPivotResultColumns=p.getPivotColumns=p.addPivotColumns=p.removePivotColumns=p.setPivotColumns=p.addValueColumns=p.removeValueColumns=p.getValueColumns=p.setValueColumns=p.getPivotResultColumn=p.isPivotMode=void 0;function A(S){return S.colModel.isPivotMode()}p.isPivotMode=A;function E(S,w,M){var P,O;return(O=(P=S.pivotResultCols)==null?void 0:P.lookupPivotResultCol(w,M))!=null?O:null}p.getPivotResultColumn=E;function z(S,w){var M;(M=S.valueColsSvc)==null||M.setColumns(w,"api")}p.setValueColumns=z;function T(S){var w,M;return(M=(w=S.valueColsSvc)==null?void 0:w.columns)!=null?M:[]}p.getValueColumns=T;function b(S,w){var M;(M=S.valueColsSvc)==null||M.removeColumns(w,"api")}p.removeValueColumns=b;function C(S,w){var M;(M=S.valueColsSvc)==null||M.addColumns(w,"api")}p.addValueColumns=C;function d(S,w){var M;(M=S.pivotColsSvc)==null||M.setColumns(w,"api")}p.setPivotColumns=d;function s(S,w){var M;(M=S.pivotColsSvc)==null||M.removeColumns(w,"api")}p.removePivotColumns=s;function c(S,w){var M;(M=S.pivotColsSvc)==null||M.addColumns(w,"api")}p.addPivotColumns=c;function h(S){var w,M;return(M=(w=S.pivotColsSvc)==null?void 0:w.columns)!=null?M:[]}p.getPivotColumns=h;function g(S,w){var M;(M=S.pivotResultCols)==null||M.setPivotResultCols(w,"api")}p.setPivotResultColumns=g;function f(S){var M;let w=(M=S.pivotResultCols)==null?void 0:M.getPivotResultCols();return w?w.list:null}p.getPivotResultColumns=f},6616:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotColDefService=void 0;let E=A(6624),z="PivotRowTotal_";class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="pivotColDefSvc"}wireBeans(C){this.colModel=C.colModel,this.pivotColsSvc=C.pivotColsSvc,this.valueColsSvc=C.valueColsSvc,this.colNames=C.colNames}postConstruct(){let C=()=>{var s;return(s=this.gos.get("serverSidePivotResultFieldSeparator"))!=null?s:"_"};this.fieldSeparator=C(),this.addManagedPropertyListener("serverSidePivotResultFieldSeparator",()=>{this.fieldSeparator=C()});let d=()=>this.gos.get("pivotDefaultExpanded");this.pivotDefaultExpanded=d(),this.addManagedPropertyListener("pivotDefaultExpanded",()=>{this.pivotDefaultExpanded=d()})}createPivotColumnDefs(C){let d=this.createPivotColumnsFromUniqueValues(C);function s(g,f=[]){return g.forEach(S=>{S.children!==void 0?s(S.children,f):f.push(S)}),f}let c=s(d);this.addRowGroupTotals(d,c),this.addExpandablePivotGroups(d,c),this.addPivotTotalsToGroups(d,c);let h=c.map(g=>ge({},g));return{pivotColumnGroupDefs:d,pivotColumnDefs:h}}createPivotColumnsFromUniqueValues(C){var h,g;let d=(g=(h=this.pivotColsSvc)==null?void 0:h.columns)!=null?g:[],s=d.length;return this.recursivelyBuildGroup(0,C,[],s,d)}recursivelyBuildGroup(C,d,s,c,h){var M;let g=(M=this.valueColsSvc)==null?void 0:M.columns;if(C>=c)return this.buildMeasureCols(s);let f=h[C].getColDef(),S=this.headerNameComparator.bind(this,f.pivotComparator);if((g==null?void 0:g.length)===1&&this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&C===c-1){let P=[];for(let O of Object.keys(d)){let G=[...s,O],j=this.createColDef(g[0],O,G);j.columnGroupShow="open",P.push(j)}return P.sort(S),P}let w=[];for(let[P,O]of Object.entries(d)){let G=this.pivotDefaultExpanded===-1||C<this.pivotDefaultExpanded,j=[...s,P];w.push({children:this.recursivelyBuildGroup(C+1,O,j,c,h),headerName:P,pivotKeys:j,columnGroupShow:"open",openByDefault:G,groupId:this.generateColumnGroupId(j)})}return w.sort(S),w}buildMeasureCols(C){var s,c;let d=(c=(s=this.valueColsSvc)==null?void 0:s.columns)!=null?c:[];return d.length===0?[this.createColDef(null,"-",C)]:d.map(h=>{let g=this.colNames.getDisplayNameForColumn(h,"header");return He(ge({},this.createColDef(h,g,C)),{columnGroupShow:"open"})})}addExpandablePivotGroups(C,d){let s=this.gos.get("suppressExpandablePivotGroups");if(s||this.gos.get("pivotColumnGroupTotals"))return;let c=(h,g,f)=>{var M;if("children"in h){let P=new Map;h.children.forEach(G=>{c(G,g,P)});let O=!h.children.some(G=>G.children);(M=this.valueColsSvc)==null||M.columns.forEach(G=>{let j=this.colNames.getDisplayNameForColumn(G,"header"),Y=this.createColDef(G,j,h.pivotKeys);Y.pivotTotalColumnIds=P.get(G.getColId()),Y.columnGroupShow=s?"open":"closed",Y.aggFunc=G.getAggFunc(),O||(h.children.push(Y),g.push(Y))}),this.merge(f,P);return}if(!h.pivotValueColumn)return;let S=h.pivotValueColumn.getColId();f.has(S)?f.get(S).push(h.colId):f.set(S,[h.colId])};C.forEach(h=>{c(h,d,new Map)})}addPivotTotalsToGroups(C,d){var g;if(!this.gos.get("pivotColumnGroupTotals"))return;let s=this.gos.get("pivotColumnGroupTotals")==="after",c=(g=this.valueColsSvc)==null?void 0:g.columns,h=c==null?void 0:c.map(f=>f.getAggFunc());if(!(!h||h.length<1||!this.sameAggFuncs(h))&&c){let f=c[0];C.forEach(S=>{this.recursivelyAddPivotTotal(S,d,f,s)})}}recursivelyAddPivotTotal(C,d,s,c){let h=C;if(!h.children){let f=C;return f.colId?[f.colId]:null}let g=[];if(h.children.forEach(f=>{let S=this.recursivelyAddPivotTotal(f,d,s,c);S&&(g=g.concat(S))}),h.children.length>1){let S=this.getLocaleTextFunc()("pivotColumnGroupTotals","Total"),w=this.createColDef(s,S,C.pivotKeys,!0);w.pivotTotalColumnIds=g,w.aggFunc=s.getAggFunc(),w.columnGroupShow=this.gos.get("suppressExpandablePivotGroups")?"open":void 0;let M=C.children;c?M.push(w):M.unshift(w),d.push(w)}return g}addRowGroupTotals(C,d){var f,S;if(!this.gos.get("pivotRowTotals"))return;let s=this.gos.get("pivotRowTotals")==="after",h=((S=(f=this.valueColsSvc)==null?void 0:f.columns)!=null?S:[]).slice();s||h.reverse();let g=h.length>1||!this.gos.get("removePivotHeaderRowWhenSingleValueColumn");for(let w=0;w<h.length;w++){let M=h[w],P=this.colNames.getDisplayNameForColumn(M,"header"),O=this.createColDef(M,P,[]),G=[];for(let Y=0;Y<d.length;Y++){let J=d[Y];J.pivotValueColumn===M&&G.push(J.colId)}O.pivotTotalColumnIds=G,O.colId=z+O.colId;let j=g?{children:[O],pivotKeys:[],groupId:`${z}_pivotGroup_${M.getColId()}`}:O;d.push(O),s?C.push(j):C.unshift(j)}}createColDef(C,d,s,c=!1){let h={};if(C){let g=C.getColDef();Object.assign(h,g),h.hide=!1}return h.headerName=d,h.colId=this.generateColumnId(s||[],C&&!c?C.getColId():""),h.field=h.colId,h.valueGetter=g=>{var f;return(f=g.data)==null?void 0:f[g.colDef.field]},h.pivotKeys=s,h.pivotValueColumn=C,h.filter===!0&&(h.filter="agNumberColumnFilter"),h}sameAggFuncs(C){if(C.length==1)return!0;for(let d=1;d<C.length;d++)if(C[d]!==C[0])return!1;return!0}headerNameComparator(C,d,s){return C?C(d.headerName,s.headerName):d.headerName&&!s.headerName?1:!d.headerName&&s.headerName?-1:!d.headerName||!s.headerName?0:d.headerName<s.headerName?-1:d.headerName>s.headerName?1:0}merge(C,d){d.forEach((s,c)=>{let g=[...C.has(c)?C.get(c):[],...s];C.set(c,g)})}generateColumnGroupId(C){var s,c;return`pivotGroup_${((c=(s=this.pivotColsSvc)==null?void 0:s.columns)!=null?c:[]).map(h=>h.getColId()).join("-")}_${C.join("-")}`}generateColumnId(C,d){var c,h;return`pivot_${((h=(c=this.pivotColsSvc)==null?void 0:c.columns)!=null?h:[]).map(g=>g.getColId()).join("-")}_${C.join("-")}_${d}`}createColDefsFromFields(C){let d={};for(let h=0;h<C.length;h++){let f=C[h].split(this.fieldSeparator),S=d;for(let w=0;w<f.length;w++){let M=f[w];S[M]==null&&(S[M]={}),S=S[M]}}let s=(h,g,f,S)=>{var O;let w=[];for(let G of Object.keys(f)){let j=f[G],Y=s(`${h}${this.fieldSeparator}${G}`,G,j,S+1);w.push(Y)}if(w.length===0){let G=this.colModel.getColDefCol(g);if(G){let Y=(O=this.colNames.getDisplayNameForColumn(G,"header"))!=null?O:g,J=this.createColDef(G,Y,void 0,!1);return J.colId=h,J.aggFunc=G.getAggFunc(),J.valueGetter=ne=>{var ce;return(ce=ne.data)==null?void 0:ce[h]},J}return{colId:h,headerName:g,valueGetter:Y=>{var J;return(J=Y.data)==null?void 0:J[h]}}}return this.gos.get("removePivotHeaderRowWhenSingleValueColumn")&&w.length===1&&"colId"in w[0]?(w[0].headerName=g,w[0]):{openByDefault:this.pivotDefaultExpanded===-1||S<this.pivotDefaultExpanded,groupId:h,headerName:g,children:w}},c=[];for(let h of Object.keys(d)){let g=d[h],f=s(h,h,g,0);c.push(f)}return c}}p.PivotColDefService=T},3227:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotColsSvc=void 0;let E=A(6624);class z extends E.BaseColsService{constructor(){super(...arguments),this.beanName="pivotColsSvc",this.eventName="columnPivotChanged",this.columnProcessors={set:(b,C,d)=>this.setColPivotActive(b,C,d),add:(b,C,d)=>this.setColPivotActive(b,!0,d),remove:(b,C,d)=>this.setColPivotActive(b,!1,d)},this.columnOrdering={enableProp:"pivot",initialEnableProp:"initialPivot",indexProp:"pivotIndex",initialIndexProp:"initialPivotIndex"},this.columnExtractors={setFlagFunc:(b,C,d)=>this.setColPivotActive(b,C,d),getIndexFunc:b=>b.pivotIndex,getInitialIndexFunc:b=>b.initialPivotIndex,getValueFunc:b=>b.pivot,getInitialValueFunc:b=>b.initialPivot},this.modifyColumnsNoEventsCallbacks={addCol:b=>this.columns.push(b),removeCol:b=>(0,E._removeFromArray)(this.columns,b)}}syncColumnWithState(b,C,d,s){let{value1:c,value2:h}=d("pivot","pivotIndex");(c!==void 0||h!==void 0)&&(typeof h=="number"||c?(b.isPivotActive()||(this.setColPivotActive(b,!0,C),this.modifyColumnsNoEventsCallbacks.addCol(b)),s&&typeof h=="number"&&(s[b.getId()]=h)):b.isPivotActive()&&(this.setColPivotActive(b,!1,C),this.modifyColumnsNoEventsCallbacks.removeCol(b)))}setColPivotActive(b,C,d){b.pivotActive!==C&&(b.pivotActive=C,b.dispatchColEvent("columnPivotChanged",d)),b.dispatchStateUpdatedEvent("pivot")}}p.PivotColsSvc=z},5470:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotModule=p.SharedPivotModule=void 0;let E=A(6624),z=A(1442),T=A(6858),b=A(7205),C=A(5792),d=A(6616),s=A(3227),c=A(6465),h=A(5374);p.SharedPivotModule={moduleName:"SharedPivot",version:b.VERSION,beans:[c.PivotResultColsService,d.PivotColDefService,s.PivotColsSvc],apiFunctions:{isPivotMode:C.isPivotMode,getPivotResultColumn:C.getPivotResultColumn,setValueColumns:C.setValueColumns,getValueColumns:C.getValueColumns,removeValueColumns:C.removeValueColumns,addValueColumns:C.addValueColumns,setPivotColumns:C.setPivotColumns,removePivotColumns:C.removePivotColumns,addPivotColumns:C.addPivotColumns,getPivotColumns:C.getPivotColumns,setPivotResultColumns:C.setPivotResultColumns,getPivotResultColumns:C.getPivotResultColumns},dependsOn:[z.SharedRowGroupingModule,E._ColumnGroupModule]},p.PivotModule={moduleName:"Pivot",version:b.VERSION,rowModels:["clientSide"],beans:[h.PivotStage],dependsOn:[p.SharedPivotModule,z.RowGroupingModule,T.ClientSideRowModelHierarchyModule]}},6465:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotResultColsService=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="pivotResultCols"}wireBeans(b){this.colModel=b.colModel,this.visibleCols=b.visibleCols}destroy(){var b;(0,E._destroyColumnTree)(this.beans,(b=this.pivotResultCols)==null?void 0:b.tree),super.destroy()}isPivotResultColsPresent(){return this.pivotResultCols!=null}lookupPivotResultCol(b,C){if(this.pivotResultCols==null)return null;let d=this.colModel.getColDefCol(C),s=null;return this.pivotResultCols.list.forEach(c=>{let h=c.getColDef().pivotKeys,g=c.getColDef().pivotValueColumn;(0,E._areEqual)(h,b)&&g===d&&(s=c)}),s}getPivotResultCols(){return this.pivotResultCols}getPivotResultCol(b){return this.pivotResultCols?this.colModel.getColFromCollection(b,this.pivotResultCols):null}setPivotResultCols(b,C){var d,s;if(this.colModel.ready&&!(b==null&&this.pivotResultCols==null)){if(b){this.processPivotResultColDef(b);let c=(0,E._createColumnTree)(this.beans,b,!1,((d=this.pivotResultCols)==null?void 0:d.tree)||this.previousPivotResultCols||void 0,C);(0,E._destroyColumnTree)(this.beans,(s=this.pivotResultCols)==null?void 0:s.tree,c.columnTree);let h=c.columnTree,g=c.treeDept,f=(0,E._getColumnsFromTree)(h),S={};this.pivotResultCols={tree:h,treeDepth:g,list:f,map:S},this.pivotResultCols.list.forEach(M=>this.pivotResultCols.map[M.getId()]=M);let w=!!this.previousPivotResultCols;this.previousPivotResultCols=null,this.colModel.refreshCols(!w)}else this.previousPivotResultCols=this.pivotResultCols?this.pivotResultCols.tree:null,this.pivotResultCols=null,this.colModel.refreshCols(!1);this.visibleCols.refresh(C)}}processPivotResultColDef(b){let C=this.gos.get("processPivotResultColDef"),d=this.gos.get("processPivotResultColGroupDef");if(!C&&!d)return;let s=c=>{c.forEach(h=>{if((0,E._exists)(h.children)){let f=h;d&&d(f),s(f.children)}else C&&C(h)})};b&&s(b)}}p.PivotResultColsService=z},5374:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotStage=void 0;let E=A(6624),z="Exceeded maximum allowed pivot column count.";class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="pivotStage",this.refreshProps=new Set(["removePivotHeaderRowWhenSingleValueColumn","pivotRowTotals","pivotColumnGroupTotals","suppressExpandablePivotGroups"]),this.step="pivot",this.uniqueValues={},this.lastTimeFailed=!1,this.maxUniqueValues=-1,this.currentUniqueCount=0}wireBeans(C){this.valueSvc=C.valueSvc,this.colModel=C.colModel,this.pivotResultCols=C.pivotResultCols,this.rowGroupColsSvc=C.rowGroupColsSvc,this.valueColsSvc=C.valueColsSvc,this.pivotColsSvc=C.pivotColsSvc,this.pivotColDefSvc=C.pivotColDefSvc}execute(C){let d=C.changedPath;this.colModel.isPivotActive()?this.executePivotOn(d):this.executePivotOff(d)}executePivotOff(C){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.pivotResultCols.isPivotResultColsPresent()&&(this.pivotResultCols.setPivotResultCols(null,"rowModelUpdated"),C&&(C.active=!1))}executePivotOn(C){var ce,fe,xe,Le,_e,Fe;let d=(fe=(ce=this.valueColsSvc)==null?void 0:ce.columns.length)!=null?fe:1,s=this.gos.get("pivotMaxGeneratedColumns");this.maxUniqueValues=s===-1?-1:s/d;let c;try{c=this.bucketUpRowNodes(C)}catch(We){if(We.message===z){this.pivotResultCols.setPivotResultCols([],"rowModelUpdated"),this.eventSvc.dispatchEvent({type:"pivotMaxColumnsExceeded",message:We.message}),this.lastTimeFailed=!0;return}throw We}let h=this.setUniqueValues(c),g=(Le=(xe=this.valueColsSvc)==null?void 0:xe.columns)!=null?Le:[],f=g.map(We=>`${We.getId()}-${We.getColDef().headerName}`).join("#"),S=g.map(We=>We.getAggFunc().toString()).join("#"),w=this.aggregationColumnsHashLastTime!==f,M=this.aggregationFuncsHashLastTime!==S;this.aggregationColumnsHashLastTime=f,this.aggregationFuncsHashLastTime=S;let P=((Fe=(_e=this.rowGroupColsSvc)==null?void 0:_e.columns)!=null?Fe:[]).map(We=>We.getId()).join("#"),O=P!==this.groupColumnsHashLastTime;this.groupColumnsHashLastTime=P;let G=this.gos.get("pivotRowTotals"),j=this.gos.get("pivotColumnGroupTotals"),Y=this.gos.get("suppressExpandablePivotGroups"),J=this.gos.get("removePivotHeaderRowWhenSingleValueColumn"),ne=G!==this.pivotRowTotalsLastTime||j!==this.pivotColumnGroupTotalsLastTime||Y!==this.suppressExpandablePivotGroupsLastTime||J!==this.removePivotHeaderRowWhenSingleValueColumnLastTime;if(this.pivotRowTotalsLastTime=G,this.pivotColumnGroupTotalsLastTime=j,this.suppressExpandablePivotGroupsLastTime=Y,this.removePivotHeaderRowWhenSingleValueColumnLastTime=J,this.lastTimeFailed||h||w||O||M||ne){let{pivotColumnGroupDefs:We,pivotColumnDefs:it}=this.pivotColDefSvc.createPivotColumnDefs(this.uniqueValues);this.pivotColumnDefs=it,this.pivotResultCols.setPivotResultCols(We,"rowModelUpdated"),C&&(C.active=!1)}this.lastTimeFailed=!1}setUniqueValues(C){let d=JSON.stringify(C),s=JSON.stringify(this.uniqueValues);return d!==s?(this.uniqueValues=C,!0):!1}bucketUpRowNodes(C){this.currentUniqueCount=0;let d={};C.forEachChangedNodeDepthFirst(c=>{c.leafGroup&&(c.childrenMapped=null)});let s=c=>{var h;c.leafGroup?this.bucketRowNode(c,d):(h=c.childrenAfterFilter)==null||h.forEach(s)};return C.executeFromRootNode(s),d}bucketRowNode(C,d){var c;let s=(c=this.pivotColsSvc)==null?void 0:c.columns;(s==null?void 0:s.length)===0?C.childrenMapped=null:C.childrenMapped=this.bucketChildren(C.childrenAfterFilter,s,0,d),C.sibling&&(C.sibling.childrenMapped=C.childrenMapped)}bucketChildren(C,d=[],s,c){let h={},g=d[s];if(C.forEach(f=>{let S=this.valueSvc.getKeyForNode(g,f);if((0,E._missing)(S)&&(S=""),!c[S]){this.currentUniqueCount+=1,c[S]={};let w=this.maxUniqueValues!==-1,M=this.currentUniqueCount>this.maxUniqueValues;if(w&&M)throw Error(z)}h[S]||(h[S]=[]),h[S].push(f)}),s===d.length-1)return h;{let f={};for(let[S,w]of Object.entries(h))f[S]=this.bucketChildren(w,d,s+1,c[S]);return f}}getPivotColumnDefs(){return this.pivotColumnDefs}}p.PivotStage=T},1037:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AbstractSelectionHandle=p.SelectionHandleType=void 0;let E=A(6624);var z;(function(b){b[b.FILL=0]="FILL",b[b.RANGE=1]="RANGE"})(z||(p.SelectionHandleType=z={}));class T extends E.Component{constructor(){super(...arguments),this.changedCalculatedValues=!1,this.dragging=!1,this.shouldDestroyOnEndDragging=!1}postConstruct(){let{dragSvc:C,rangeSvc:d}=this.beans;C.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:s=>{this.dragging=!0,d.autoScrollService.check(s),this.changedCalculatedValues&&(this.onDrag(s),this.changedCalculatedValues=!1)},onDragStop:s=>{this.dragging=!1,this.onDragEnd(s),this.clearDragProperties(),this.shouldDestroyOnEndDragging&&this.destroy()},onDragCancel:()=>{this.dragging=!1,this.onDragCancel(),this.clearDragProperties()}}),this.addManagedElementListeners(this.getGui(),{mousedown:this.preventRangeExtension.bind(this)})}getLastCellHovered(){return this.lastCellHovered}preventRangeExtension(C){C.stopPropagation()}onDragStart(C){[this.cellHoverListener]=this.addManagedElementListeners(this.beans.ctrlsSvc.get("gridCtrl").getGui(),{mousemove:this.updateValuesOnMove.bind(this)}),document.body.classList.add(this.getDraggingCssClass())}getDraggingCssClass(){return`ag-dragging-${this.type===z.FILL?"fill":"range"}-handle`}updateValuesOnMove(C){let d=(0,E._getCellPositionForEvent)(this.gos,C);!d||this.lastCellHovered&&(0,E._areCellsEqual)(d,this.lastCellHovered)||(this.lastCellHovered=d,this.changedCalculatedValues=!0)}clearDragProperties(){this.clearValues(),this.beans.rangeSvc.autoScrollService.ensureCleared(),document.body.classList.remove(this.getDraggingCssClass())}getType(){return this.type}refresh(C){let d=this.cellCtrl,s=this.getGui(),c=(0,E._last)(this.beans.rangeSvc.getCellRanges()),h=c.startRow,g=c.endRow;if(h&&g&&((0,E._isRowBefore)(g,h)?(this.rangeStartRow=g,this.rangeEndRow=h):(this.rangeStartRow=h,this.rangeEndRow=g)),d!==C||!(0,E._isVisible)(s)){this.cellCtrl=C;let f=C.comp.getParentOfValue();f&&f.appendChild(s)}this.cellRange=c}clearValues(){this.lastCellHovered=void 0,this.removeListeners()}removeListeners(){let C=this.cellHoverListener;C&&(C(),this.cellHoverListener=void 0)}destroy(){var d;if(!this.shouldDestroyOnEndDragging&&this.dragging){(0,E._setDisplayed)(this.getGui(),!1),this.shouldDestroyOnEndDragging=!0;return}this.shouldDestroyOnEndDragging=!1,super.destroy(),this.removeListeners();let C=this.getGui();(d=C.parentElement)==null||d.removeChild(C)}}p.AbstractSelectionHandle=T},9236:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgFillHandle=void 0;let E=A(6624),z=A(1037),T=A(3978);class b extends z.AbstractSelectionHandle{constructor(){super('<div class="ag-fill-handle"></div>'),this.markedCells=[],this.cellValues=[],this.isUp=!1,this.isLeft=!1,this.isReduce=!1,this.type=z.SelectionHandleType.FILL}updateValuesOnMove(d){super.updateValuesOnMove(d),this.initialXY||(this.initialXY=(0,E._getNormalisedMousePosition)(this.beans,d));let{x:s,y:c}=this.initialXY,{x:h,y:g}=(0,E._getNormalisedMousePosition)(this.beans,d),f=Math.abs(s-h),S=Math.abs(c-g),w=this.getFillHandleDirection(),M;w==="xy"?M=f>S?"x":"y":M=w,M!==this.dragAxis&&(this.dragAxis=M,this.changedCalculatedValues=!0)}onDrag(d){if(!this.initialPosition){let c=this.cellCtrl;if(!c)return;this.initialPosition=c.cellPosition}let s=this.getLastCellHovered();s&&this.markPathFrom(this.initialPosition,s)}onDragEnd(d){if(this.initialXY=null,!this.markedCells.length)return;let s=this.dragAxis==="x",{cellRange:c,rangeStartRow:h,rangeEndRow:g,beans:f}=this,S=c.columns.length,w,{rangeSvc:M,eventSvc:P}=f;if(!this.isUp&&!this.isLeft)w=M.createCellRangeFromCellRangeParams({rowStartIndex:h.rowIndex,rowStartPinned:h.rowPinned,columnStart:c.columns[0],rowEndIndex:s?g.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:s?g.rowPinned:this.lastCellMarked.rowPinned,columnEnd:s?this.lastCellMarked.column:c.columns[S-1]});else{let O=s?h:this.lastCellMarked;w=M.createCellRangeFromCellRangeParams({rowStartIndex:O.rowIndex,rowStartPinned:O.rowPinned,columnStart:s?this.lastCellMarked.column:c.columns[0],rowEndIndex:g.rowIndex,rowEndPinned:g.rowPinned,columnEnd:c.columns[S-1]})}w&&(P.dispatchEvent({type:"fillStart"}),this.handleValueChanged(c,w,d),M.setCellRanges([w]),P.dispatchEvent({type:"fillEnd",initialRange:c,finalRange:w}))}onDragCancel(){this.initialXY=null,this.markedCells.length&&this.clearMarkedPath()}getFillHandleDirection(){var s;let d=(s=(0,E._getFillHandle)(this.gos))==null?void 0:s.direction;return d?d!=="x"&&d!=="y"&&d!=="xy"?((0,E._warn)(177),"xy"):d:"xy"}handleValueChanged(d,s,c){var Fe;let{rangeSvc:h,gos:g,cellNavigation:f,valueSvc:S}=this.beans,w=h.getRangeEndRow(d),M=h.getRangeStartRow(d),P=h.getRangeEndRow(s),O=h.getRangeStartRow(s),G=this.dragAxis==="y";if(this.isReduce&&!((Fe=(0,E._getFillHandle)(g))!=null&&Fe.suppressClearOnFillReduction)){let We=G?d.columns:d.columns.filter(tt=>s.columns.indexOf(tt)<0),it=G?f.getRowBelow(P):O;it&&this.clearCellsInRange(it,w,We);return}let j=[],Y=[],J=[],ne=[],ce=!0,fe=0,xe=()=>{j.length=0,Y.length=0,J.length=0,ne.length=0,fe=0},Le=(We,it)=>{let tt=this.isUp?w:M,ot=!1;for(G&&(ce=!0,xe());!ot&&tt;){let st=(0,E._getRowNode)(this.beans,tt);if(!st)break;G&&We?_e(j,We,st,()=>!(0,E._isSameRow)(tt,this.isUp?M:w)):it&&(ce=!0,xe(),it.forEach(St=>_e(j,St,st,()=>St!==(this.isLeft?d.columns[0]:(0,E._last)(d.columns))))),ot=(0,E._isSameRow)(tt,this.isUp?O:P),tt=this.isUp?f.getRowAbove(tt):f.getRowBelow(tt)}},_e=(We,it,tt,ot)=>{let st,St=!1;if(ce)st=S.getValue(it,tt),Y.push(st),J.push(S.getValue(it,tt,!0)),ne.push(S.formatValue(it,tt,st)),ce=ot();else{let{value:Xe,fromUserFunction:Ke,sourceCol:Ye,sourceRowNode:Ze}=this.processValues({event:c,values:We,initialValues:Y,initialNonAggregatedValues:J,initialFormattedValues:ne,col:it,rowNode:tt,idx:fe++});if(st=Xe,it.isCellEditable(tt)){let Pe=S.getValue(it,tt);if(!Ke){if(Ye){let ct=Ye.getColDef();if(ct.useValueFormatterForExport!==!1&&ct.valueFormatter){let dt=S.formatValue(Ye,Ze,st);dt!=null&&(st=dt)}}it.getColDef().useValueParserForImport!==!1&&(st=S.parseValue(it,tt,Ye?st:(0,E._toStringOrNull)(st),Pe))}!Ke||Pe!==st?tt.setDataValue(it,st,"rangeSvc"):St=!0}}St||We.push({value:st,column:it,rowNode:tt})};if(G)d.columns.forEach(We=>{Le(We)});else{let We=this.isLeft?[...s.columns].reverse():s.columns;Le(void 0,We)}}clearCellsInRange(d,s,c){let h={startRow:d,endRow:s,columns:c,startColumn:c[0]};this.beans.rangeSvc.clearCellRangeCellValues({cellRanges:[h]})}processValues(d){var Y;let{event:s,values:c,initialValues:h,initialNonAggregatedValues:g,initialFormattedValues:f,col:S,rowNode:w,idx:M}=d,P=(Y=(0,E._getFillHandle)(this.gos))==null?void 0:Y.setFillValue,O=this.dragAxis==="y",G;if(O?G=this.isUp?"up":"down":G=this.isLeft?"left":"right",P){let J=this.gos.addGridCommonParams({event:s,values:c.map(({value:ce})=>ce),initialValues:h,initialNonAggregatedValues:g,initialFormattedValues:f,currentIndex:M,currentCellValue:this.beans.valueSvc.getValue(S,w),direction:G,column:S,rowNode:w}),ne=P(J);if(ne!==!1)return{value:ne,fromUserFunction:!0}}let j=!c.some(({value:J})=>{let ne=parseFloat(J);return isNaN(ne)||ne.toString()!==J.toString()});if(s.altKey||!j){if(j&&h.length===1){let fe=this.isUp||this.isLeft?-1:1;return{value:parseFloat((0,E._last)(c).value)+1*fe,fromUserFunction:!1}}let{value:J,column:ne,rowNode:ce}=c[M%c.length];return{value:J,fromUserFunction:!1,sourceCol:ne,sourceRowNode:ce}}return{value:(0,E._last)((0,T.findLineByLeastSquares)(c.map(({value:J})=>Number(J)))),fromUserFunction:!1}}clearValues(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,super.clearValues()}clearMarkedPath(){this.markedCells.forEach(d=>{if(!d.isAlive())return;let{comp:s}=d;s.addOrRemoveCssClass("ag-selection-fill-top",!1),s.addOrRemoveCssClass("ag-selection-fill-right",!1),s.addOrRemoveCssClass("ag-selection-fill-bottom",!1),s.addOrRemoveCssClass("ag-selection-fill-left",!1)}),this.markedCells.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1}clearCellValues(){this.cellValues.length=0}markPathFrom(d,s){if(this.clearMarkedPath(),this.clearCellValues(),this.dragAxis==="y"){if((0,E._isSameRow)(s,d))return;let c=(0,E._isRowBefore)(s,d),{rangeStartRow:h,rangeEndRow:g}=this;c&&(s.rowPinned==h.rowPinned&&s.rowIndex>=h.rowIndex||h.rowPinned!=g.rowPinned&&s.rowPinned==g.rowPinned&&s.rowIndex<=g.rowIndex)?(this.reduceVertical(d,s),this.isReduce=!0):(this.extendVertical(d,s,c),this.isReduce=!1)}else{let c=d.column,h=s.column;if(c===h)return;let g=this.beans.visibleCols.allCols,f=g.indexOf(c),S=g.indexOf(h);S<=f&&S>=g.indexOf(this.cellRange.columns[0])?(this.reduceHorizontal(d,s),this.isReduce=!0):(this.extendHorizontal(d,s,S<f),this.isReduce=!1)}this.lastCellMarked=s}extendVertical(d,s,c){let h=this.beans,{rangeSvc:g,cellNavigation:f}=h,S=d;do{let w=this.cellRange,M=w.columns.length;for(let P=0;P<M;P++){let O=w.columns[P],G={rowIndex:S.rowIndex,rowPinned:S.rowPinned},j=He(ge({},G),{column:O}),Y=g.isCellInSpecificRange(j,w),J=(0,E._isSameRow)(S,d);if(c&&(this.isUp=!0),!J){let ne=(0,E._getCellByPosition)(h,j);if(ne){this.markedCells.push(ne);let ce=ne.comp;Y||(ce.addOrRemoveCssClass("ag-selection-fill-left",P===0),ce.addOrRemoveCssClass("ag-selection-fill-right",P===M-1)),ce.addOrRemoveCssClass(c?"ag-selection-fill-top":"ag-selection-fill-bottom",(0,E._isSameRow)(S,s))}}}if((0,E._isSameRow)(S,s))break}while(S=c?f.getRowAbove(S):f.getRowBelow(S))}reduceVertical(d,s){let c=d,h=this.beans,g=h.cellNavigation;do{let f=this.cellRange,S=f.columns.length,w=(0,E._isSameRow)(c,s);for(let M=0;M<S;M++){let P={rowIndex:c.rowIndex,rowPinned:c.rowPinned},O=He(ge({},P),{column:f.columns[M]}),G=(0,E._getCellByPosition)(h,O);G&&(this.markedCells.push(G),G.comp.addOrRemoveCssClass("ag-selection-fill-bottom",(0,E._isSameRow)(c,s)))}if(w)break}while(c=g.getRowAbove(c))}extendHorizontal(d,s,c){let h=this.beans,{visibleCols:g,cellNavigation:f}=h,S=g.allCols,w=S.indexOf(c?s.column:d.column),M=S.indexOf(c?this.cellRange.columns[0]:s.column),P=c?0:1,O=S.slice(w+P,M+P),{rangeStartRow:G,rangeEndRow:j}=this;O.forEach(Y=>{let J=G,ne=!1;do{ne=(0,E._isSameRow)(J,j);let ce=(0,E._getCellByPosition)(h,{rowIndex:J.rowIndex,rowPinned:J.rowPinned,column:Y});if(ce){this.markedCells.push(ce);let fe=ce.comp;fe.addOrRemoveCssClass("ag-selection-fill-top",(0,E._isSameRow)(J,G)),fe.addOrRemoveCssClass("ag-selection-fill-bottom",(0,E._isSameRow)(J,j)),c?(this.isLeft=!0,fe.addOrRemoveCssClass("ag-selection-fill-left",Y===O[0])):fe.addOrRemoveCssClass("ag-selection-fill-right",Y===(0,E._last)(O))}J=f.getRowBelow(J)}while(!ne)})}reduceHorizontal(d,s){let c=this.beans,{visibleCols:h,cellNavigation:g}=c,f=h.allCols,S=f.indexOf(s.column),w=f.indexOf(d.column),M=f.slice(S,w),{rangeStartRow:P,rangeEndRow:O}=this;M.forEach(G=>{let j=P,Y=!1;do{Y=(0,E._isSameRow)(j,O);let J=(0,E._getCellByPosition)(this.beans,{rowIndex:j.rowIndex,rowPinned:j.rowPinned,column:G});J&&(this.markedCells.push(J),J.comp.addOrRemoveCssClass("ag-selection-fill-right",G===M[0])),j=g.getRowBelow(j)}while(!Y)})}refresh(d){let s=this.beans.rangeSvc.getCellRanges()[0];if(!s.startRow||!s.endRow){this.destroy();return}super.refresh(d)}}p.AgFillHandle=b},7724:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgRangeHandle=void 0;let E=A(6624),z=A(1037);class T extends z.AbstractSelectionHandle{constructor(){super('<div class="ag-range-handle"></div>'),this.type=z.SelectionHandleType.RANGE,this.rangeFixed=!1}onDrag(C){let d=this.getLastCellHovered();if(!d)return;let s=this.beans.rangeSvc,c=s.getCellRanges(),h=(0,E._last)(c);this.rangeFixed||(this.fixRangeStartEnd(h),this.rangeFixed=!0),this.endPosition={rowIndex:d.rowIndex,rowPinned:d.rowPinned,column:d.column},c.length===2&&c[0].type===E.CellRangeType.DIMENSION&&h.type===E.CellRangeType.VALUE&&!(0,E._isSameRow)(this.endPosition,s.getRangeEndRow(h))&&s.updateRangeEnd(c[0],He(ge({},this.endPosition),{column:c[0].columns[0]}),!0),s.extendLatestRangeToCell(this.endPosition)}onDragEnd(C){let d=(0,E._last)(this.beans.rangeSvc.getCellRanges());this.fixRangeStartEnd(d),this.rangeFixed=!1}onDragCancel(){this.rangeFixed=!1}fixRangeStartEnd(C){let d=this.beans.rangeSvc,s=d.getRangeStartRow(C),c=d.getRangeEndRow(C),h=C.columns[0];C.startRow=s,C.endRow=c,C.startColumn=h}}p.AgRangeHandle=T},4870:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CellRangeFeature=void 0;let E=A(6624),z=A(1037),T="ag-cell-range-selected",b="ag-cell-range-chart",C="ag-cell-range-single-cell",d="ag-cell-range-chart-category",s="ag-cell-range-handle",c="ag-cell-range-top",h="ag-cell-range-right",g="ag-cell-range-bottom",f="ag-cell-range-left";function S(P){var j;let O=P.get("cellSelection");return O!==void 0?typeof O!="boolean"?((j=O.handle)==null?void 0:j.mode)==="range":!1:P.get("enableRangeHandle")}function w(P){var j;let O=P.get("cellSelection");return O!==void 0?typeof O!="boolean"?((j=O.handle)==null?void 0:j.mode)==="fill":!1:P.get("enableFillHandle")}class M{constructor(O,G){this.beans=O,this.cellCtrl=G,this.rangeSvc=O.rangeSvc}setComp(O,G){this.cellComp=O,this.eGui=G,this.onCellSelectionChanged()}onCellSelectionChanged(){let O=this.cellComp;if(!O)return;let{rangeSvc:G,cellCtrl:j,eGui:Y}=this,J=G.getCellRangeCount(j.cellPosition);this.rangeCount=J;let ne=this.getHasChartRange();this.hasChartRange=ne,O.addOrRemoveCssClass(T,J!==0),O.addOrRemoveCssClass(`${T}-1`,J===1),O.addOrRemoveCssClass(`${T}-2`,J===2),O.addOrRemoveCssClass(`${T}-3`,J===3),O.addOrRemoveCssClass(`${T}-4`,J>=4),O.addOrRemoveCssClass(b,ne),(0,E._setAriaSelected)(Y,J>0?!0:void 0),O.addOrRemoveCssClass(C,this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle()}updateRangeBorders(){let O=this.getRangeBorders(),G=this.isSingleCell(),j=!G&&O.top,Y=!G&&O.right,J=!G&&O.bottom,ne=!G&&O.left,ce=this.cellComp;ce.addOrRemoveCssClass(c,j),ce.addOrRemoveCssClass(h,Y),ce.addOrRemoveCssClass(g,J),ce.addOrRemoveCssClass(f,ne)}isSingleCell(){let{rangeSvc:O}=this;return this.rangeCount===1&&!!O&&!O.isMoreThanOneCell()}getHasChartRange(){let{rangeSvc:O}=this;if(!this.rangeCount||!O)return!1;let G=O.getCellRanges();return G.length>0&&G.every(j=>[E.CellRangeType.DIMENSION,E.CellRangeType.VALUE].includes(j.type))}updateRangeBordersIfRangeCount(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())}getRangeBorders(){let O=this.beans.gos.get("enableRtl"),G=!1,j=!1,Y=!1,J=!1,{rangeSvc:ne,beans:{visibleCols:ce},cellCtrl:{cellPosition:fe}}=this,xe=fe.column,Le,_e;O?(Le=ce.getColAfter(xe),_e=ce.getColBefore(xe)):(Le=ce.getColBefore(xe),_e=ce.getColAfter(xe));let Fe=ne.getCellRanges().filter(We=>ne.isCellInSpecificRange(fe,We));Le||(J=!0),_e||(j=!0);for(let We=0;We<Fe.length&&!(G&&j&&Y&&J);We++){let it=Fe[We],tt=ne.getRangeStartRow(it),ot=ne.getRangeEndRow(it);!G&&(0,E._isSameRow)(tt,fe)&&(G=!0),!Y&&(0,E._isSameRow)(ot,fe)&&(Y=!0),!J&&Le&&it.columns.indexOf(Le)<0&&(J=!0),!j&&_e&&it.columns.indexOf(_e)<0&&(j=!0)}return{top:G,right:j,bottom:Y,left:J}}refreshHandle(){if(this.beans.context.isDestroyed())return;let O=this.shouldHaveSelectionHandle();this.selectionHandle&&!O&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),O&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass(s,!!this.selectionHandle)}shouldHaveSelectionHandle(){let O=this.beans.gos,G=this.rangeSvc,j=G.getCellRanges(),Y=j.length;if(this.rangeCount<1||Y<1)return!1;let J=(0,E._last)(j),{cellPosition:ne}=this.cellCtrl,ce=w(O)&&!this.cellCtrl.column.isSuppressFillHandle(),fe=S(O),xe=Y===1&&!this.cellCtrl.editing&&(ce||fe);if(this.hasChartRange){let _e=j[0].type===E.CellRangeType.DIMENSION&&G.isCellInSpecificRange(ne,j[0]);this.cellComp.addOrRemoveCssClass(d,_e),xe=J.type===E.CellRangeType.VALUE}return xe&&J.endRow!=null&&G.isContiguousRange(J)&&G.isBottomRightCell(J,ne)}addSelectionHandle(){var ne;let{beans:O,rangeSvc:G}=this,j=(0,E._last)(G.getCellRanges()).type,J=w(O.gos)&&(0,E._missing)(j)?z.SelectionHandleType.FILL:z.SelectionHandleType.RANGE;if(this.selectionHandle&&this.selectionHandle.getType()!==J&&(this.selectionHandle=O.context.destroyBean(this.selectionHandle)),!this.selectionHandle){let ce=O.registry.createDynamicBean(J===z.SelectionHandleType.FILL?"fillHandle":"rangeHandle",!1);ce&&(this.selectionHandle=O.context.createBean(ce))}(ne=this.selectionHandle)==null||ne.refresh(this.cellCtrl)}destroy(){this.beans.context.destroyBean(this.selectionHandle)}}p.CellRangeFeature=M},6527:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DragListenerFeature=void 0;let E=A(6624);class z extends E.BeanStub{constructor(b){super(),this.eContainer=b}postConstruct(){let{beans:b,gos:C,eContainer:d}=this,s=b.rangeSvc,c={eElement:d,onDragStart:s.onDragStart.bind(s),onDragStop:s.onDragStop.bind(s),onDragging:s.onDragging.bind(s)},h=b.dragSvc,g=h.addDragSource.bind(h,c),f=h.removeDragSource.bind(h,c);this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{(0,E._isCellSelectionEnabled)(C)?g():f()}),this.addDestroyFunc(f),(0,E._isCellSelectionEnabled)(C)&&g()}}p.DragListenerFeature=z},3799:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.rangeSelectionCSS=void 0,p.rangeSelectionCSS=".ag-body-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing),.ag-cell-range-selected.ag-cell-range-chart,.ag-cell-range-selected:not(.ag-cell-focus){background-color:var(--ag-range-selection-background-color);&.ag-cell-range-chart{background-color:var(--ag-range-selection-chart-background-color)!important;&.ag-cell-range-chart-category{background-color:var(--ag-range-selection-chart-category-background-color)!important}}}.ag-cell-range-selected-1.ag-cell-range-chart,.ag-cell-range-selected-1:not(.ag-cell-focus),.ag-root:not(.ag-context-menu-open) .ag-body-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected-2.ag-cell-range-chart,.ag-cell-range-selected-2:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-3.ag-cell-range-chart,.ag-cell-range-selected-3:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell-range-selected-4.ag-cell-range-chart,.ag-cell-range-selected-4:not(.ag-cell-focus){background-image:linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color)),linear-gradient(var(--ag-range-selection-background-color),var(--ag-range-selection-background-color))}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell){&.ag-cell-range-top{border-top-color:var(--ag-range-selection-border-color);border-top-style:var(--ag-range-selection-border-style)}&.ag-cell-range-right{border-right-color:var(--ag-range-selection-border-color);border-right-style:var(--ag-range-selection-border-style)}&.ag-cell-range-bottom{border-bottom-color:var(--ag-range-selection-border-color);border-bottom-style:var(--ag-range-selection-border-style)}&.ag-cell-range-left{border-left-color:var(--ag-range-selection-border-color);border-left-style:var(--ag-range-selection-border-style)}}.ag-cell.ag-selection-fill-top,.ag-cell.ag-selection-fill-top.ag-cell-range-selected{border-top:1px dashed;border-top-color:var(--ag-range-selection-border-color)}:where(.ag-ltr) .ag-cell.ag-selection-fill-right,:where(.ag-ltr) .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}:where(.ag-rtl) .ag-cell.ag-selection-fill-right,:where(.ag-rtl) .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-cell.ag-selection-fill-bottom,.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected{border-bottom:1px dashed;border-bottom-color:var(--ag-range-selection-border-color)}:where(.ag-ltr) .ag-cell.ag-selection-fill-left,:where(.ag-ltr) .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}:where(.ag-rtl) .ag-cell.ag-selection-fill-left,:where(.ag-rtl) .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-fill-handle,.ag-range-handle{background-color:var(--ag-range-selection-border-color);bottom:-1px;height:6px;position:absolute;width:6px}:where(.ag-ltr) .ag-fill-handle,:where(.ag-ltr) .ag-range-handle{right:-1px}:where(.ag-rtl) .ag-fill-handle,:where(.ag-rtl) .ag-range-handle{left:-1px}.ag-fill-handle{cursor:cell}:where(.ag-ltr) .ag-range-handle{cursor:nwse-resize}:where(.ag-rtl) .ag-range-handle{cursor:nesw-resize}"},7876:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.clearRangeSelection=p.addCellRange=p.getCellRanges=void 0;function A(T){var b,C;return(C=(b=T.rangeSvc)==null?void 0:b.getCellRanges())!=null?C:null}p.getCellRanges=A;function E(T,b){var C;(C=T.rangeSvc)==null||C.addCellRange(b)}p.addCellRange=E;function z(T){var b;(b=T.rangeSvc)==null||b.removeAllCellRanges()}p.clearRangeSelection=z},266:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RangeSelectionModule=p.CellSelectionModule=void 0;let E=A(6624),z=A(9206),T=A(7205),b=A(9236),C=A(7724),d=A(3799),s=A(7876),c=A(1455);p.CellSelectionModule={moduleName:"CellSelection",version:T.VERSION,beans:[c.RangeService],dynamicBeans:{fillHandle:b.AgFillHandle,rangeHandle:C.AgRangeHandle},apiFunctions:{getCellRanges:s.getCellRanges,addCellRange:s.addCellRange,clearRangeSelection:s.clearRangeSelection,clearCellSelection:s.clearRangeSelection},dependsOn:[z.EnterpriseCoreModule,E._KeyboardNavigationModule,E._DragModule],css:[d.rangeSelectionCSS]},p.RangeSelectionModule={moduleName:"RangeSelection",version:T.VERSION,dependsOn:[p.CellSelectionModule]}},1455:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RangeService=void 0;let E=A(6624),z=A(4870),T=A(6527);class b extends E.BeanStub{constructor(){super(...arguments),this.beanName="rangeSvc",this.cellRanges=[],this.bodyScrollListener=this.onBodyScroll.bind(this),this.dragging=!1,this.intersectionRange=!1}wireBeans(d){this.rowModel=d.rowModel,this.dragSvc=d.dragSvc,this.colModel=d.colModel,this.visibleCols=d.visibleCols,this.cellNavigation=d.cellNavigation,this.pinnedRowModel=d.pinnedRowModel,this.ctrlsSvc=d.ctrlsSvc}postConstruct(){let d=this.onColumnsChanged.bind(this),s=()=>this.removeAllCellRanges(),c=this.refreshLastRangeStart.bind(this);this.addManagedEventListeners({newColumnsLoaded:d,columnVisible:d,columnValueChanged:d,columnPivotModeChanged:s,columnRowGroupChanged:s,columnPivotChanged:s,columnGroupOpened:c,columnMoved:c,columnPinned:c}),this.ctrlsSvc.whenReady(this,h=>{let g=h.gridBodyCtrl;this.autoScrollService=new E.AutoScrollService({scrollContainer:g.eBodyViewport,scrollAxis:"xy",getVerticalPosition:()=>g.scrollFeature.getVScrollPosition().top,setVerticalPosition:f=>g.scrollFeature.setVerticalScrollPosition(f),getHorizontalPosition:()=>g.scrollFeature.getHScrollPosition().left,setHorizontalPosition:f=>g.scrollFeature.setHorizontalScrollPosition(f),shouldSkipVerticalScroll:()=>!(0,E._isDomLayout)(this.gos,"normal"),shouldSkipHorizontalScroll:()=>!g.scrollFeature.isHorizontalScrollShowing()})})}onColumnsChanged(){this.refreshLastRangeStart();let d=this.visibleCols.allCols;this.cellRanges.forEach(c=>{let h=c.columns;c.columns=c.columns.filter(f=>f.isVisible()&&d.indexOf(f)!==-1),!(0,E._areEqual)(h,c.columns)&&this.dispatchChangedEvent(!1,!0,c.id)});let s=this.cellRanges.length;this.cellRanges=this.cellRanges.filter(c=>c.columns.length>0),s>this.cellRanges.length&&this.dispatchChangedEvent(!1,!0)}refreshLastRangeStart(){let d=(0,E._last)(this.cellRanges);d&&this.refreshRangeStart(d)}isContiguousRange(d){let s=d.columns;if(!s.length)return!1;let c=this.visibleCols.allCols,h=s.map(g=>c.indexOf(g)).sort((g,f)=>g-f);return(0,E._last)(h)-h[0]+1===s.length}getRangeStartRow(d){var h,g;return d.startRow&&d.endRow?(0,E._isRowBefore)(d.startRow,d.endRow)?d.startRow:d.endRow:{rowIndex:0,rowPinned:((g=(h=this.pinnedRowModel)==null?void 0:h.getPinnedTopRowCount())!=null?g:0)>0?"top":null}}getRangeEndRow(d){var h,g;if(d.startRow&&d.endRow)return(0,E._isRowBefore)(d.startRow,d.endRow)?d.endRow:d.startRow;let s=(g=(h=this.pinnedRowModel)==null?void 0:h.getPinnedBottomRowCount())!=null?g:0;return s>0?{rowIndex:s-1,rowPinned:"bottom"}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}}setRangeToCell(d,s=!1){if(!(0,E._isCellSelectionEnabled)(this.gos))return;let c=this.calculateColumnsBetween(d.column,d.column);if(!c)return;((0,E._getSuppressMultiRanges)(this.gos)||!s||(0,E._missing)(this.cellRanges))&&this.removeAllCellRanges(!0);let g={rowIndex:d.rowIndex,rowPinned:d.rowPinned},f={startRow:g,endRow:g,columns:c,startColumn:d.column};this.cellRanges.push(f),this.setNewestRangeStartCell(d),this.onDragStop(),this.dispatchChangedEvent(!0,!0)}extendLatestRangeToCell(d){if(this.isEmpty()||!this.newestRangeStartCell)return;let s=(0,E._last)(this.cellRanges);this.updateRangeEnd(s,d)}updateRangeEnd(d,s,c=!1){let h=s.column,g=this.calculateColumnsBetween(d.startColumn,h);!g||this.isLastCellOfRange(d,s)||(d.columns=g,d.endRow={rowIndex:s.rowIndex,rowPinned:s.rowPinned},c||this.dispatchChangedEvent(!0,!0,d.id))}refreshRangeStart(d){let{startColumn:s,columns:c}=d,h=(M,P)=>{let O=d.columns.filter(G=>G!==M);M?(d.startColumn=M,d.columns=P?[M,...O]:[...O,M]):d.columns=O},{left:g,right:f}=this.getRangeEdgeColumns(d);if(s===c[0]&&s!==g){h(g,!0);return}if(s===(0,E._last)(c)&&s===f){h(f,!1);return}}getRangeEdgeColumns(d){let s=this.visibleCols.allCols,c=d.columns.map(h=>s.indexOf(h)).filter(h=>h>-1).sort((h,g)=>h-g);return{left:s[c[0]],right:s[(0,E._last)(c)]}}extendLatestRangeInDirection(d){if(this.isEmpty()||!this.newestRangeStartCell)return;let s=d.key,c=d.ctrlKey||d.metaKey,h=(0,E._last)(this.cellRanges),g=this.newestRangeStartCell,f=h.columns[0],S=(0,E._last)(h.columns),w=h.endRow.rowIndex,M=h.endRow.rowPinned,O={column:g.column===f?S:f,rowIndex:w,rowPinned:M},G=this.cellNavigation.getNextCellToFocus(s,O,c);if(G)return this.setCellRange({rowStartIndex:g.rowIndex,rowStartPinned:g.rowPinned,rowEndIndex:G.rowIndex,rowEndPinned:G.rowPinned,columnStart:g.column,columnEnd:G.column}),G}setCellRange(d){(0,E._isCellSelectionEnabled)(this.gos)&&(this.removeAllCellRanges(!0),this.addCellRange(d))}setCellRanges(d){(0,E._areEqual)(this.cellRanges,d)||this.verifyCellRanges(this.gos)&&(this.removeAllCellRanges(!0),d.forEach(s=>{s.columns&&s.startRow&&this.setNewestRangeStartCell({rowIndex:s.startRow.rowIndex,rowPinned:s.startRow.rowPinned,column:s.columns[0]}),this.cellRanges.push(s)}),this.dispatchChangedEvent(!1,!0))}setNewestRangeStartCell(d){this.newestRangeStartCell=d}clearCellRangeCellValues(d){let{cellRanges:s}=d,{cellEventSource:c="rangeSvc",dispatchWrapperEvents:h,wrapperEventSource:g="deleteKey"}=d;h&&(this.eventSvc.dispatchEvent({type:"cellSelectionDeleteStart",source:g}),this.eventSvc.dispatchEvent({type:"rangeDeleteStart",source:g})),s||(s=this.cellRanges),s.forEach(f=>{this.forEachRowInRange(f,S=>{let w=(0,E._getRowNode)(this.beans,S);if(w)for(let M=0;M<f.columns.length;M++){let P=this.colModel.getCol(f.columns[M]);if(!P||!P.isCellEditable(w))continue;let O=this.beans.valueSvc.getDeleteValue(P,w);w.setDataValue(P,O,c)}})}),h&&(this.eventSvc.dispatchEvent({type:"cellSelectionDeleteEnd",source:g}),this.eventSvc.dispatchEvent({type:"rangeDeleteEnd",source:g}))}createCellRangeFromCellRangeParams(d){return this.createPartialCellRangeFromRangeParams(d,!1)}createPartialCellRangeFromRangeParams(d,s){let c,h=!1;if(d.columns)c=d.columns.map(S=>this.colModel.getCol(S)).filter(S=>S);else{let S=this.colModel.getCol(d.columnStart),w=this.colModel.getCol(d.columnEnd);if(!S||!w)return;c=this.calculateColumnsBetween(S,w),c&&c.length&&(h=c[0]!==S)}if(!c||!s&&c.length===0)return;let g=d.rowStartIndex!=null?{rowIndex:d.rowStartIndex,rowPinned:d.rowStartPinned||null}:void 0,f=d.rowEndIndex!=null?{rowIndex:d.rowEndIndex,rowPinned:d.rowEndPinned||null}:void 0;return{startRow:g,endRow:f,columns:c,startColumn:h?(0,E._last)(c):c[0]}}verifyCellRanges(d){let s=(0,E._isUsingNewCellSelectionAPI)(d)&&(0,E._getSuppressMultiRanges)(d)&&this.cellRanges.length>0;return s&&(0,E._warn)(93),!s}addCellRange(d){let s=this.gos;if(!(0,E._isCellSelectionEnabled)(s)||!this.verifyCellRanges(s))return;let c=this.createCellRangeFromCellRangeParams(d);c&&(c.startRow&&this.setNewestRangeStartCell({rowIndex:c.startRow.rowIndex,rowPinned:c.startRow.rowPinned,column:c.startColumn}),this.cellRanges.push(c),this.dispatchChangedEvent(!1,!0,c.id))}getCellRanges(){return this.cellRanges}isEmpty(){return this.cellRanges.length===0}isMoreThanOneCell(){let d=this.cellRanges.length;if(d===0)return!1;if(d>1)return!0;let s=this.cellRanges[0],c=this.getRangeStartRow(s),h=this.getRangeEndRow(s);return c.rowPinned!==h.rowPinned||c.rowIndex!==h.rowIndex||s.columns.length!==1}areAllRangesAbleToMerge(){let d=new Map;if(this.cellRanges.length<=1)return!0;this.cellRanges.forEach(h=>{this.forEachRowInRange(h,g=>{let f=`${g.rowPinned||"normal"}_${g.rowIndex}`,S=d.get(f),w=h.columns.map(M=>M.getId());if(S){let M=w.filter(P=>S.indexOf(P)===-1);S.push(...M)}else d.set(f,w)})});let c;for(let h of d.values()){let g=h.sort().join();if(c===void 0){c=g;continue}if(c!==g)return!1}return!0}forEachRowInRange(d,s){let c=this.getRangeStartRow(d),h=this.getRangeEndRow(d),g=c;for(;g&&(s(g),!(0,E._isSameRow)(g,h));)g=this.cellNavigation.getRowBelow(g)}removeAllCellRanges(d){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,d||this.dispatchChangedEvent(!1,!0))}onBodyScroll(){this.dragging&&this.lastMouseEvent&&this.onDragging(this.lastMouseEvent)}isCellInAnyRange(d){return this.getCellRangeCount(d)>0}isCellInSpecificRange(d,s){let c=s.columns!==null&&s.columns.includes(d.column),h=this.isRowInRange(d.rowIndex,d.rowPinned,s);return c&&h}isLastCellOfRange(d,s){let{startRow:c,endRow:h}=d,g=(0,E._isRowBefore)(c,h)?h:c,f=s.rowIndex===g.rowIndex&&s.rowPinned===g.rowPinned,S=d.columns[0],w=(0,E._last)(d.columns),M=d.startColumn===S?w:S;return s.column===M&&f}isBottomRightCell(d,s){let c=this.visibleCols.allCols,h=d.columns.map(P=>c.indexOf(P)).sort((P,O)=>P-O),{startRow:g,endRow:f}=d,S=(0,E._isRowBefore)(g,f)?f:g,w=c.indexOf(s.column)===(0,E._last)(h),M=s.rowIndex===S.rowIndex&&(0,E._makeNull)(s.rowPinned)===(0,E._makeNull)(S.rowPinned);return w&&M}getCellRangeCount(d){return this.isEmpty()?0:this.cellRanges.filter(s=>this.isCellInSpecificRange(d,s)).length}isRowInRange(d,s,c){let h=this.getRangeStartRow(c),g=this.getRangeEndRow(c),f={rowIndex:d,rowPinned:s||null},S=f.rowIndex===h.rowIndex&&f.rowPinned==h.rowPinned,w=f.rowIndex===g.rowIndex&&f.rowPinned==g.rowPinned;if(S||w)return!0;let M=!(0,E._isRowBefore)(f,h),P=(0,E._isRowBefore)(f,g);return M&&P}getDraggingRange(){return this.draggingRange}onDragStart(d){var P;if(!(0,E._isCellSelectionEnabled)(this.gos))return;let{ctrlKey:s,metaKey:c,shiftKey:h}=d,g=s||c,S=!(0,E._getSuppressMultiRanges)(this.gos)?g:!1,w=h&&!!((P=this.cellRanges)!=null&&P.length);!S&&(!w||(0,E._exists)((0,E._last)(this.cellRanges).type))&&this.removeAllCellRanges(!0);let M=this.dragSvc.startTarget;if(M&&this.updateValuesOnMove(M),!!this.lastCellHovered){if(this.dragging=!0,this.lastMouseEvent=d,this.intersectionRange=S&&this.getCellRangeCount(this.lastCellHovered)>1,w||this.setNewestRangeStartCell(this.lastCellHovered),this.cellRanges.length>0)this.draggingRange=(0,E._last)(this.cellRanges);else{let O={rowIndex:this.lastCellHovered.rowIndex,rowPinned:this.lastCellHovered.rowPinned};this.draggingRange={startRow:O,endRow:O,columns:[this.lastCellHovered.column],startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.ctrlsSvc.getGridBodyCtrl().eBodyViewport.addEventListener("scroll",this.bodyScrollListener,{passive:!0}),this.dispatchChangedEvent(!0,!1,this.draggingRange.id)}}intersectLastRange(d){if(d&&this.dragging||(0,E._getSuppressMultiRanges)(this.gos)||this.isEmpty())return;let s=(0,E._last)(this.cellRanges),c=this.getRangeStartRow(s),h=this.getRangeEndRow(s),g=[];this.cellRanges.slice(0,-1).forEach(f=>{let S=this.getRangeStartRow(f),w=this.getRangeEndRow(f),M=f.columns,P=M.filter(G=>s.columns.indexOf(G)===-1);if(P.length===M.length){g.push(f);return}if((0,E._isRowBefore)(h,S)||(0,E._isRowBefore)(w,c)){g.push(f);return}let O=g.length;if((0,E._isRowBefore)(S,c)){let G={columns:[...M],startColumn:s.startColumn,startRow:ge({},S),endRow:this.cellNavigation.getRowAbove(c)};g.push(G)}if(P.length>0){let G={columns:P,startColumn:P.includes(s.startColumn)?s.startColumn:P[0],startRow:this.rowMax([ge({},c),ge({},S)]),endRow:this.rowMin([ge({},h),ge({},w)])};g.push(G)}(0,E._isRowBefore)(h,w)&&g.push({columns:[...M],startColumn:s.startColumn,startRow:this.cellNavigation.getRowBelow(h),endRow:ge({},w)}),g.length-O===1&&(g[g.length-1].id=f.id)}),this.cellRanges=g,d&&this.dispatchChangedEvent(!1,!0)}rowMax(d){let s;return d.forEach(c=>{(s===void 0||(0,E._isRowBefore)(s,c))&&(s=c)}),s}rowMin(d){let s;return d.forEach(c=>{(s===void 0||(0,E._isRowBefore)(c,s))&&(s=c)}),s}updateValuesOnMove(d){let s=(0,E._getCellCtrlForEventTarget)(this.gos,d),c=s==null?void 0:s.cellPosition;if(this.cellHasChanged=!1,!(!c||this.lastCellHovered&&(0,E._areCellsEqual)(c,this.lastCellHovered))){if(s!=null&&s.editing){this.dragSvc.cancelDrag(d);return}this.lastCellHovered&&(this.cellHasChanged=!0),this.lastCellHovered=c}}onDragging(d){if(!this.dragging||!d)return;this.updateValuesOnMove(d.target),this.lastMouseEvent=d;let s=this.lastCellHovered,c=f=>s&&s.rowPinned===f&&this.newestRangeStartCell.rowPinned===f,h=c("top")||c("bottom");if(this.autoScrollService.check(d,h),!this.cellHasChanged)return;let g=this.calculateColumnsBetween(this.newestRangeStartCell.column,s.column);g&&(this.draggingRange.endRow={rowIndex:s.rowIndex,rowPinned:s.rowPinned},this.draggingRange.columns=g,this.dispatchChangedEvent(!1,!1,this.draggingRange.id))}onDragStop(){if(!this.dragging)return;let{id:d}=this.draggingRange;this.autoScrollService.ensureCleared(),this.ctrlsSvc.getGridBodyCtrl().eBodyViewport.removeEventListener("scroll",this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.lastCellHovered=void 0,this.intersectionRange&&(this.intersectionRange=!1,this.intersectLastRange()),this.dispatchChangedEvent(!1,!0,d)}dispatchChangedEvent(d,s,c){this.eventSvc.dispatchEvent({type:"cellSelectionChanged",started:d,finished:s,id:c}),this.eventSvc.dispatchEvent({type:"rangeSelectionChanged",started:d,finished:s,id:c})}calculateColumnsBetween(d,s){let c=this.visibleCols.allCols,h=d===s,g=c.indexOf(d);if(g<0){(0,E._warn)(178,{colId:d.getId()});return}let f=h?g:c.indexOf(s);if(f<0){(0,E._warn)(178,{colId:s.getId()});return}if(h)return[d];let S=Math.min(g,f),w=S===g?f:g,M=[];for(let P=S;P<=w;P++)M.push(c[P]);return M}createDragListenerFeature(d){return new T.DragListenerFeature(d)}createCellRangeFeature(d,s){return new z.CellRangeFeature(d,s)}}p.RangeService=b},3978:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.findLineByLeastSquares=void 0;function A(E){let z=E.length,T=0;if(z<=1)return E;for(let S=0;S<E.length;S++){let w=E[S],M=w.toString().split("e-");if(M.length>1){T=Math.max(T,parseInt(M[1],10));continue}Math.floor(w)!==w&&(T=Math.max(T,w.toString().split(".")[1].length))}let b=0,C=0,d=0,s=0,c=0;for(let S=0;S<z;S++)c=E[S],b+=S,C+=c,s+=S*S,d+=S*c;let h=(z*d-b*C)/(z*s-b*b),g=C/z-h*b/z,f=[];for(let S=0;S<=z;S++)f.push(parseFloat((S*h+g).toFixed(T)));return f}p.findLineByLeastSquares=A},9617:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RichSelectCellEditor=void 0;let E=A(6624),z=A(2005);class T extends E.PopupComponent{constructor(){super('<div class="ag-cell-edit-wrapper"></div>')}init(C){this.params=C;let{cellStartedEdit:d,values:s}=C;(0,E._missing)(s)&&(0,E._warn)(180);let{params:c,valuesPromise:h}=this.buildRichSelectParams(),g=this.createManagedBean(new z.AgRichSelect(c));this.richSelect=g,g.addCssClass("ag-cell-editor"),this.appendChild(g),h&&h.then(f=>{g.setValueList({valueList:f,refresh:!0});let S=this.getSearchStringCallback(f);S&&g.setSearchStringCreator(S)}),this.addManagedListeners(g,{fieldPickerValueSelected:this.onEditorPickerValueSelected.bind(this)}),this.focusAfterAttached=d}onEditorPickerValueSelected(C){setTimeout(()=>this.params.stopEditing(!C.fromEnterKey))}buildRichSelectParams(){let C=this.params,{cellRenderer:d,cellHeight:s,value:c,values:h,formatValue:g,searchDebounceDelay:f,valueListGap:S,valueListMaxHeight:w,valueListMaxWidth:M,allowTyping:P,filterList:O,searchType:G,highlightMatch:j,valuePlaceholder:Y,eventKey:J,multiSelect:ne,suppressDeselectAll:ce,suppressMultiSelectPillRenderer:fe}=C,xe={value:c,cellRenderer:d,cellRowHeight:s,searchDebounceDelay:f,valueFormatter:g,pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"virtual-list",pickerGap:S,allowTyping:P,filterList:O,searchType:G,highlightMatch:j,maxPickerHeight:w,maxPickerWidth:M,placeholder:Y,initialInputValue:(J==null?void 0:J.length)===1?J:void 0,multiSelect:ne,suppressDeselectAll:ce,suppressMultiSelectPillRenderer:fe},Le,_e;return typeof h=="function"?Le=h(C):Le=h!=null?h:[],Array.isArray(Le)?(xe.valueList=Le,xe.searchStringCreator=this.getSearchStringCallback(Le)):_e=Le,ne&&P&&(C.allowTyping=xe.allowTyping=!1,(0,E._warn)(181)),{params:xe,valuesPromise:_e}}getSearchStringCallback(C){let d=this.params,{colDef:s}=d;if(typeof C[0]!="object"||!s.keyCreator)return;let{column:c,node:h,data:g}=d;return f=>f.map(S=>{let w=this.gos.addGridCommonParams({value:S,colDef:s,column:c,node:h,data:g});return s.keyCreator(w)})}afterGuiAttached(){let{focusAfterAttached:C,params:d}=this;setTimeout(()=>{if(!this.isAlive())return;let s=this.richSelect;if(C){let h=s.getFocusableElement();h.focus();let{allowTyping:g,eventKey:f}=this.params;g&&(!f||f.length!==1)&&h.select()}s.showPicker();let{eventKey:c}=d;c&&(c==null?void 0:c.length)===1&&s.searchTextFromString(c)})}focusIn(){this.richSelect.getFocusableElement().focus()}getValue(){return this.richSelect.getValue()}isPopup(){return!1}}p.RichSelectCellEditor=T},9327:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RichSelectModule=void 0;let E=A(6624),z=A(9206),T=A(7205),b=A(9617);p.RichSelectModule={moduleName:"RichSelect",version:T.VERSION,beans:[],userComponents:{agRichSelect:b.RichSelectCellEditor,agRichSelectCellEditor:b.RichSelectCellEditor},icons:{richSelectOpen:"small-down",richSelectRemove:"cancel"},dependsOn:[z.EnterpriseCoreModule,E._EditCoreModule]}},9449:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgGridHeaderDropZonesSelector=p.AgGridHeaderDropZones=void 0;let E=A(6624),z=A(6491),T=A(4552);class b extends E.Component{constructor(){super()}postConstruct(){this.setGui(this.createNorthPanel());let d=this.onRowGroupChanged.bind(this);this.addManagedEventListeners({columnRowGroupChanged:d,newColumnsLoaded:d}),this.addManagedPropertyListener("rowGroupPanelShow",d),this.addManagedPropertyListener("pivotPanelShow",()=>this.onPivotPanelShow()),this.onRowGroupChanged()}createNorthPanel(){let d=document.createElement("div");d.classList.add("ag-column-drop-wrapper"),(0,E._setAriaRole)(d,"presentation");let s=new T.RowGroupDropZonePanel(!0);this.rowGroupComp=this.createManagedBean(s);let c=new z.PivotDropZonePanel(!0);this.pivotComp=this.createManagedBean(c),d.appendChild(s.getGui()),d.appendChild(c.getGui());let h=this.onDropPanelVisible.bind(this);return this.addManagedListeners(s,{displayChanged:h}),this.addManagedListeners(c,{displayChanged:h}),this.onDropPanelVisible(),d}onDropPanelVisible(){let{rowGroupComp:d,pivotComp:s}=this,c=d.isDisplayed()&&s.isDisplayed(),h="ag-column-drop-horizontal-half-width";d.addOrRemoveCssClass(h,c),s.addOrRemoveCssClass(h,c)}onRowGroupChanged(){var c,h;let d=this.rowGroupComp;if(!d)return;let s=this.gos.get("rowGroupPanelShow");if(s==="always")d.setDisplayed(!0);else if(s==="onlyWhenGrouping"){let g=((h=(c=this.beans.rowGroupColsSvc)==null?void 0:c.columns)==null?void 0:h.length)!==0;d.setDisplayed(g)}else d.setDisplayed(!1)}onPivotPanelShow(){let d=this.pivotComp;if(!d)return;let s=this.gos.get("pivotPanelShow");if(s==="always")d.setDisplayed(!0);else if(s==="onlyWhenPivoting"){let c=this.beans.colModel.isPivotActive();d.setDisplayed(c)}else d.setDisplayed(!1)}}p.AgGridHeaderDropZones=b,p.AgGridHeaderDropZonesSelector={selector:"AG-GRID-HEADER-DROP-ZONES",component:b}},8322:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseDropZonePanel=void 0;let E=A(6624),z=A(9733),T=A(3154);class b extends z.PillDropZonePanel{constructor(d,s){super(d),this.dropZonePurpose=s,this.addElementClasses(this.getGui(),this.dropZonePurpose.toLowerCase())}init(d){super.init(d),this.addManagedEventListeners({newColumnsLoaded:this.refreshGui.bind(this)}),this.addManagedPropertyListeners(["functionsReadOnly","rowGroupPanelSuppressSort","groupLockGroupColumns"],this.refreshGui.bind(this))}getItems(d){var s;return(s=d.columns)!=null?s:[]}isInterestedIn(d){return d===E.DragSourceType.HeaderCell||d===E.DragSourceType.ToolPanel}minimumAllowedNewInsertIndex(){var g;let{gos:d,rowGroupColsSvc:s}=this.beans,c=d.get("groupLockGroupColumns"),h=(g=s==null?void 0:s.columns.length)!=null?g:0;return c===-1?h:Math.min(c,h)}showOrHideColumnOnExit(d){return this.isRowGroupPanel()&&(0,E._shouldUpdateColVisibilityAfterGroup)(this.gos,!0)&&!d.fromNudge}handleDragEnterEnd(d){if(this.showOrHideColumnOnExit(d)){let h=d.dragSource.getDragItem().columns;this.setColumnsVisible(h,!1,"uiColumnDragged")}}handleDragLeaveEnd(d){if(this.showOrHideColumnOnExit(d)){let c=d.dragSource.getDragItem();this.setColumnsVisible(c.columns,!0,"uiColumnDragged")}}setColumnsVisible(d,s,c){if(d){let h=d.filter(g=>!g.getColDef().lockVisible);this.beans.colModel.setColsVisible(h,s,c)}}isRowGroupPanel(){return this.dropZonePurpose==="rowGroup"}createPillComponent(d,s,c,h){return new T.DropZoneColumnComp(d,s,c,this.dropZonePurpose,h)}}p.BaseDropZonePanel=b},3154:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DropZoneColumnComp=void 0;let E=A(6624),z=A(3173),T=A(7904),b=A(8105);class C extends z.PillDragComp{constructor(c,h,g,f,S){super(h,g,S),this.column=c,this.dropZonePurpose=f,this.eSortIndicator=E.RefPlaceholder,this.popupShowing=!1}postConstruct(){let{sortSvc:c,colNames:h}=this.beans;this.template=`
            <span role="option">
                <span data-ref="eDragHandle" class="ag-drag-handle ag-column-drop-cell-drag-handle" role="presentation"></span>
                <span data-ref="eText" class="ag-column-drop-cell-text" aria-hidden="true"></span>
                ${c?'<ag-sort-indicator data-ref="eSortIndicator"></ag-sort-indicator>':""}
                <span data-ref="eButton" class="ag-column-drop-cell-button" role="presentation"></span>
            </span>
        `,c&&(this.agComponents=[c.getSortIndicatorSelector()]),this.displayName=h.getDisplayNameForColumn(this.column,"columnDrop"),super.postConstruct(),c&&(this.setupSort(),this.addManagedEventListeners({sortChanged:()=>{this.setupAria()}})),this.isGroupingZone()&&this.addManagedPropertyListener("groupLockGroupColumns",()=>{this.refreshRemove(),this.refreshDraggable(),this.setupAria()})}getItem(){return this.column}getDisplayName(){return this.displayName}getTooltip(){return this.column.getColDef().headerTooltip}addAdditionalAriaInstructions(c,h){let g=this.gos.get("rowGroupPanelSuppressSort"),f=this.gos.get("functionsReadOnly");if(this.isAggregationZone()&&!f){let S=h("ariaDropZoneColumnValueItemDescription","Press ENTER to change the aggregation type");c.push(S)}if(this.isGroupingZone()&&this.column.isSortable()&&!g){let S=h("ariaDropZoneColumnGroupItemDescription","Press ENTER to sort");c.push(S)}super.addAdditionalAriaInstructions(c,h)}isDraggable(){return this.isReadOnly()}isRemovable(){return this.isReadOnly()}isReadOnly(){return!this.isGroupingAndLocked()&&!this.gos.get("functionsReadOnly")}getAriaDisplayName(){let c=this.getLocaleTextFunc(),{name:h,aggFuncName:g}=this.getColumnAndAggFuncName(),f=c("ariaDropZoneColumnComponentAggFuncSeparator"," of "),S={asc:c("ariaDropZoneColumnComponentSortAscending","ascending"),desc:c("ariaDropZoneColumnComponentSortDescending","descending")},w=this.column.getSort(),M=this.gos.get("rowGroupPanelSuppressSort");return[g&&`${g}${f}`,h,this.isGroupingZone()&&!M&&w&&`, ${S[w]}`].filter(P=>!!P).join("")}getColumnAndAggFuncName(){let c=this.displayName,h="";if(this.isAggregationZone()){let g=this.column.getAggFunc(),f=typeof g=="string"?g:"agg";h=this.getLocaleTextFunc()(f,f)}return{name:c,aggFuncName:h}}setupSort(){if(!(!this.column.isSortable()||!this.isGroupingZone())&&!this.gos.get("rowGroupPanelSuppressSort")){this.eSortIndicator.setupSort(this.column,!0);let c=h=>{h.preventDefault(),this.beans.sortSvc.progressSortFromEvent(this.column,h)};this.addGuiEventListener("click",c),this.addGuiEventListener("keydown",h=>{h.key===E.KeyCode.ENTER&&this.isGroupingZone()&&c(h)})}}getDefaultIconName(){return"hide"}createGetDragItem(){let{column:c}=this;return()=>{let h={};return h[c.getId()]=c.isVisible(),{columns:[c],visibleState:h}}}setupComponents(){super.setupComponents(),this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))}onKeyDown(c){super.onKeyDown(c),c.key===E.KeyCode.ENTER&&this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&(c.preventDefault(),this.onShowAggFuncSelection())}getDisplayValue(){let{name:c,aggFuncName:h}=this.getColumnAndAggFuncName();return this.isAggregationZone()?`${h}(${c})`:c}onShowAggFuncSelection(){if(this.popupShowing)return;this.popupShowing=!0;let{aggFuncSvc:c,popupSvc:h}=this.beans,g=new T.VirtualList({cssIdentifier:"select-agg-func"}),f=c.getFuncNames(this.column),S=this.getGui(),w=g.getGui();g.setModel({getRow:function(J){return f[J]},getRowCount:function(){return f.length}}),this.createBean(g);let M=(0,E._loadTemplate)('<div class="ag-select-agg-func-popup"></div>');M.style.top="0px",M.style.left="0px",M.appendChild(w),M.style.width=`${S.clientWidth}px`;let[P]=this.addManagedElementListeners(M,{focusout:J=>{!M.contains(J.relatedTarget)&&j&&j.hideFunc()}}),O=J=>{this.destroyBean(g),this.popupShowing=!1,(J==null?void 0:J.key)==="Escape"&&S.focus(),P&&P()},G=this.getLocaleTextFunc(),j=h.addPopup({modal:!0,eChild:M,closeOnEsc:!0,closedCallback:O,ariaLabel:G("ariaLabelAggregationFunction","Aggregation Function")});j&&g.setComponentCreator(this.createAggSelect.bind(this,j.hideFunc)),g.addGuiEventListener("keydown",J=>{if(J.key===E.KeyCode.ENTER||J.key===E.KeyCode.SPACE){let ne=g.getLastFocusedRow();if(ne==null)return;let ce=g.getComponentAt(ne);ce&&ce.selectItem()}}),h.positionPopupByComponent({type:"aggFuncSelect",eventSource:S,ePopup:M,keepWithinBounds:!0,column:this.column,position:"under"}),g.refresh();let Y=f.findIndex(J=>J===this.column.getAggFunc());Y===-1&&(Y=0),g.focusRow(Y)}createAggSelect(c,h){let g=()=>{var P,O;c(),this.getGui().focus(),(O=(P=this.beans.valueColsSvc)==null?void 0:P.setColumnAggFunc)==null||O.call(P,this.column,h,"toolPanelDragAndDrop")},f=this.getLocaleTextFunc(),S=h.toString(),w=f(S,S);return new d(g,w)}isGroupingAndLocked(){return this.isGroupingZone()&&(0,b.isRowGroupColLocked)(this.column,this.beans)}isAggregationZone(){return this.dropZonePurpose==="aggregation"}isGroupingZone(){return this.dropZonePurpose==="rowGroup"}getDragSourceType(){return E.DragSourceType.ToolPanel}destroy(){super.destroy(),this.column=null}}p.DropZoneColumnComp=C;class d extends E.Component{constructor(c,h){super('<div class="ag-select-agg-func-item"/>'),this.selectItem=c,this.getGui().innerText=h,this.addGuiEventListener("click",this.selectItem)}}},6491:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PivotDropZonePanel=void 0;let E=A(6624),z=A(8322);class T extends z.BaseDropZonePanel{constructor(C){super(C,"pivot")}postConstruct(){let C=this.getLocaleTextFunc(),d=C("pivotColumnsEmptyMessage","Drag here to set column labels"),s=C("pivots","Column Labels");super.init({icon:(0,E._createIconNoSpan)("pivotPanel",this.beans,null),emptyMessage:d,title:s}),this.addManagedEventListeners({newColumnsLoaded:this.refresh.bind(this),columnPivotChanged:this.refresh.bind(this),columnPivotModeChanged:this.checkVisibility.bind(this)}),this.refresh()}getAriaLabel(){return this.getLocaleTextFunc()("ariaPivotDropZonePanelLabel","Column Labels")}refresh(){this.checkVisibility(),this.refreshGui()}checkVisibility(){let C=this.beans.colModel,d=C.isPivotMode();if(this.horizontal)switch(this.gos.get("pivotPanelShow")){case"always":this.setDisplayed(d);break;case"onlyWhenPivoting":{let s=C.isPivotActive();this.setDisplayed(d&&s);break}default:this.setDisplayed(!1);break}else this.setDisplayed(d)}isItemDroppable(C,d){return this.gos.get("functionsReadOnly")||!C.isPrimary()?!1:C.isAllowPivot()&&(!C.isPivotActive()||this.isSourceEventFromTarget(d))}updateItems(C){var d;(d=this.beans.pivotColsSvc)==null||d.setColumns(C,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"pivot":"notAllowed"}getExistingItems(){var C,d;return(d=(C=this.beans.pivotColsSvc)==null?void 0:C.columns)!=null?d:[]}}p.PivotDropZonePanel=T},4552:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RowGroupDropZonePanel=void 0;let E=A(6624),z=A(8322);class T extends z.BaseDropZonePanel{constructor(C){super(C,"rowGroup")}postConstruct(){let C=this.getLocaleTextFunc(),d=C("rowGroupColumnsEmptyMessage","Drag here to set row groups"),s=C("groups","Row Groups");super.init({icon:(0,E._createIconNoSpan)("rowGroupPanel",this.beans,null),emptyMessage:d,title:s}),this.addManagedEventListeners({columnRowGroupChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.getLocaleTextFunc()("ariaRowGroupDropZonePanelLabel","Row Groups")}isItemDroppable(C,d){return this.gos.get("functionsReadOnly")||!C.isPrimary()?!1:C.isAllowRowGroup()&&(!C.isRowGroupActive()||this.isSourceEventFromTarget(d))}updateItems(C){var d;(d=this.beans.rowGroupColsSvc)==null||d.setColumns(C,"toolPanelUi")}getIconName(){return this.isPotentialDndItems()?"group":"notAllowed"}getExistingItems(){var C,d;return(d=(C=this.beans.rowGroupColsSvc)==null?void 0:C.columns)!=null?d:[]}}p.RowGroupDropZonePanel=T},3392:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ValuesDropZonePanel=void 0;let E=A(6624),z=A(8322);class T extends z.BaseDropZonePanel{constructor(C){super(C,"aggregation")}postConstruct(){let C=this.getLocaleTextFunc(),d=C("valueColumnsEmptyMessage","Drag here to aggregate"),s=C("values","Values");super.init({icon:(0,E._createIconNoSpan)("valuePanel",this.beans,null),emptyMessage:d,title:s}),this.addManagedEventListeners({columnValueChanged:this.refreshGui.bind(this)})}getAriaLabel(){return this.getLocaleTextFunc()("ariaValuesDropZonePanelLabel","Values")}getIconName(){return this.isPotentialDndItems()?"aggregate":"notAllowed"}isItemDroppable(C,d){return this.gos.get("functionsReadOnly")||!C.isPrimary()?!1:C.isAllowValue()&&(!C.isValueActive()||this.isSourceEventFromTarget(d))}updateItems(C){var d;(d=this.beans.valueColsSvc)==null||d.setColumns(C,"toolPanelUi")}getExistingItems(){var C,d;return(d=(C=this.beans.valueColsSvc)==null?void 0:C.columns)!=null?d:[]}}p.ValuesDropZonePanel=T},4700:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupFilter=void 0;let E=A(6624);class z extends E.TabGuardComp{wireBeans(b){this.filterManager=b.filterManager,this.showRowGroupCols=b.showRowGroupCols}constructor(){super(`
            <div class="ag-group-filter">
                <div data-ref="eGroupField"></div>
                <div data-ref="eUnderlyingFilter"></div>
            </div>
        `),this.eGroupField=E.RefPlaceholder,this.eUnderlyingFilter=E.RefPlaceholder}postConstruct(){this.initialiseTabGuard({})}init(b){return this.updateParams(b).then(()=>{this.addManagedEventListeners({columnRowGroupChanged:()=>this.onColumnRowGroupChanged(),filterDestroyed:C=>this.onFilterDestroyed(C)})})}refresh(b){return this.updateParams(b),!0}updateParams(b){return this.params=b,this.validateParams(),this.updateGroups()}validateParams(){let{colDef:b}=this.params;b.field&&(0,E._warn)(234),b.filterValueGetter&&(0,E._warn)(235),b.filterParams&&(0,E._warn)(236)}updateGroups(){let b=this.updateGroupField();return this.getUnderlyingFilters(b)}getSourceColumns(){var C;if(this.groupColumn=this.params.column,this.gos.get("treeData"))return(0,E._warn)(237),[];let b=(C=this.showRowGroupCols)==null?void 0:C.getSourceColumnsForGroupColumn(this.groupColumn);return b||((0,E._warn)(183),[])}updateGroupField(){let b=this.eGroupField;(0,E._clearElement)(b),this.eGroupFieldSelect&&this.destroyBean(this.eGroupFieldSelect);let C=this.getSourceColumns(),d=C.filter(s=>s.isFilterAllowed());return d.length?(C.length===1?(this.selectedColumn=d[0],(0,E._setDisplayed)(b,!1)):((!this.selectedColumn||!d.some(s=>s.getId()===this.selectedColumn.getId()))&&(this.selectedColumn=d[0]),this.createGroupFieldSelectElement(d),b.appendChild(this.eGroupFieldSelect.getGui()),b.appendChild((0,E._loadTemplate)('<div class="ag-filter-separator"></div>')),(0,E._setDisplayed)(b,!0)),d):(this.selectedColumn=void 0,(0,E._setDisplayed)(b,!1),null)}createGroupFieldSelectElement(b){let C=this.createManagedBean(new E.AgSelect);this.eGroupFieldSelect=C;let d=this.getLocaleTextFunc();C.setLabel(d("groupFilterSelect","Select field:")),C.setLabelAlignment("top"),C.addOptions(b.map(s=>{var c;return{value:s.getId(),text:(c=this.beans.colNames.getDisplayNameForColumn(s,"groupFilter",!1))!=null?c:void 0}})),C.setValue(this.selectedColumn.getId()),C.onValueChange(s=>this.updateSelectedColumn(s)),C.addCssClass("ag-group-filter-field-select-wrapper"),b.length===1&&C.setDisabled(!0)}getUnderlyingFilters(b){var s;if(!b)return this.filterColumnPairs=void 0,this.selectedFilter=void 0,(s=this.beans.colFilter)==null||s.setColFilterActive(this.groupColumn,!1,"columnRowGroupChanged"),E.AgPromise.resolve();let C=[],d=[];return b.forEach(c=>{let h=this.filterManager.getOrCreateFilterWrapper(c);h!=null&&h.filterPromise&&C.push(h.filterPromise.then(g=>(g&&d.push({filter:g,column:c}),c.getId()===this.selectedColumn.getId()&&(this.selectedFilter=g!=null?g:void 0),g)))}),E.AgPromise.all(C).then(()=>{var c;this.filterColumnPairs=d,(c=this.beans.colFilter)==null||c.setColFilterActive(this.groupColumn,this.isFilterActive(),"columnRowGroupChanged")})}addUnderlyingFilterElement(){var C,d;if((0,E._clearElement)(this.eUnderlyingFilter),!this.selectedColumn)return E.AgPromise.resolve();let b=this.createManagedBean(new E.FilterWrapperComp(this.selectedColumn,"COLUMN_MENU"));return this.filterWrapperComp=b,b.hasFilter()?(this.eUnderlyingFilter.appendChild(b.getGui()),(d=(C=b.getFilter())==null?void 0:C.then(()=>{var s,c;(s=b.afterGuiAttached)==null||s.call(b,this.afterGuiAttachedParams),!((c=this.afterGuiAttachedParams)!=null&&c.suppressFocus)&&this.eGroupFieldSelect&&!this.eGroupFieldSelect.isDisabled()&&this.eGroupFieldSelect.getFocusableElement().focus()}))!=null?d:E.AgPromise.resolve()):E.AgPromise.resolve()}updateSelectedColumn(b){var d;if(!b)return;(d=this.filterWrapperComp)==null||d.afterGuiDetached(),this.destroyBean(this.filterWrapperComp);let C=this.getFilterColumnPair(b);this.selectedColumn=C==null?void 0:C.column,this.selectedFilter=C==null?void 0:C.filter,this.dispatchLocalEvent({type:"selectedColumnChanged"}),this.addUnderlyingFilterElement()}isFilterActive(){var b;return!!((b=this.filterColumnPairs)!=null&&b.some(({filter:C})=>C.isFilterActive()))}doesFilterPass(){return!0}getModel(){return null}setModel(){return E.AgPromise.resolve()}afterGuiAttached(b){this.afterGuiAttachedParams=b,this.addUnderlyingFilterElement()}afterGuiDetached(){var b,C;(0,E._clearElement)(this.eUnderlyingFilter),(C=(b=this.selectedFilter)==null?void 0:b.afterGuiDetached)==null||C.call(b)}onColumnRowGroupChanged(){this.updateGroups().then(()=>{this.dispatchLocalEvent({type:"columnRowGroupChanged"})})}onFilterDestroyed({column:b,source:C}){var s;if(C==="gridDestroyed")return;let d=b.getColId();(s=this.filterColumnPairs)!=null&&s.some(({column:c})=>c.getColId()===d)&&setTimeout(()=>{this.isAlive()&&this.updateGroups()})}getFilterColumnPair(b){var C;if(b)return(C=this.filterColumnPairs)==null?void 0:C.find(({column:d})=>d.getId()===b)}getSelectedFilter(){return this.selectedFilter}getSelectedColumn(){return this.selectedColumn}isFilterAllowed(){return!!this.selectedColumn}}p.GroupFilter=z},7250:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupFloatingFilterComp=void 0;let E=A(6624);class z extends E.Component{wireBeans(b){this.filterManager=b.filterManager}constructor(){super(`
            <div data-ref="eFloatingFilter" class="ag-group-floating-filter ag-floating-filter-input" role="presentation"></div>
        `),this.eFloatingFilter=E.RefPlaceholder,this.haveAddedColumnListeners=!1}init(b){this.params=b;let C=this.gos.get("groupDisplayType")==="multipleColumns";return new E.AgPromise(d=>{this.params.parentFilterInstance(s=>{this.parentFilterInstance=s,C?this.setupUnderlyingFloatingFilterElement().then(()=>d()):(this.setupReadOnlyFloatingFilterElement(),d())})}).then(()=>{let d=this.onColChange.bind(this);this.addManagedListeners(this.parentFilterInstance,{selectedColumnChanged:d,columnRowGroupChanged:d})})}refresh(b){this.params=b,this.setParams()}setParams(){var d;let b=this.beans.colNames.getDisplayNameForColumn(this.params.column,"header",!0),C=this.getLocaleTextFunc();(d=this.eFloatingFilterText)==null||d.setInputAriaLabel(`${b} ${C("ariaFilterInput","Filter Input")}`)}setupReadOnlyFloatingFilterElement(){this.eFloatingFilterText||(this.eFloatingFilterText=this.createManagedBean(new E.AgInputTextField),this.eFloatingFilterText.setDisabled(!0).addGuiEventListener("click",()=>this.params.showParentFilter()),this.setParams()),this.updateDisplayedValue(),this.eFloatingFilter.appendChild(this.eFloatingFilterText.getGui())}setupUnderlyingFloatingFilterElement(){this.showingUnderlyingFloatingFilter=!1,this.underlyingFloatingFilter=void 0,(0,E._clearElement)(this.eFloatingFilter);let b=this.parentFilterInstance.getSelectedColumn();if(b&&!b.isVisible()){let C=this.filterManager.getFloatingFilterCompDetails(b,this.params.showParentFilter);if(C)return this.haveAddedColumnListeners||(this.haveAddedColumnListeners=!0,this.addManagedListeners(b,{visibleChanged:this.onColumnVisibleChanged.bind(this),colDefChanged:this.onColDefChanged.bind(this)})),C.newAgStackInstance().then(d=>{var s,c;this.underlyingFloatingFilter=d,(c=this.underlyingFloatingFilter)==null||c.onParentModelChanged((s=this.parentFilterInstance.getSelectedFilter())==null?void 0:s.getModel()),this.appendChild(d.getGui()),this.showingUnderlyingFloatingFilter=!0})}return this.setupReadOnlyFloatingFilterElement(),E.AgPromise.resolve()}onColumnVisibleChanged(){this.setupUnderlyingFloatingFilterElement()}onColDefChanged(b){var d,s;if(!b.column)return;let C=this.filterManager.getFloatingFilterCompDetails(b.column,this.params.showParentFilter);C&&((s=(d=this.underlyingFloatingFilter)==null?void 0:d.refresh)==null||s.call(d,C.params))}onParentModelChanged(b,C){var d,s;this.showingUnderlyingFloatingFilter?(s=this.underlyingFloatingFilter)==null||s.onParentModelChanged((d=this.parentFilterInstance.getSelectedFilter())==null?void 0:d.getModel(),C):this.updateDisplayedValue()}updateDisplayedValue(){let{eFloatingFilterText:b,parentFilterInstance:C}=this;if(!C||!b)return;let d=C.getSelectedFilter();if(!d){b.setValue(""),b.setDisplayed(!1);return}if(b.setDisplayed(!0),d.getModelAsString){let s=d.getModel();b.setValue(s==null?"":d.getModelAsString(s))}else b.setValue("")}onColChange(){this.showingUnderlyingFloatingFilter||this.updateDisplayedValue()}}p.GroupFloatingFilterComp=z},8628:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupHideOpenParentsService=void 0;let E=A(6624),z=A(8105);class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="groupHideOpenParentsSvc"}updateGroupDataForHideOpenParents(C){if(!this.gos.get("groupHideOpenParents")||this.gos.get("treeData"))return;let d=s=>{this.pullDownGroupDataForHideOpenParents(s.childrenAfterSort,!1),s.childrenAfterSort.forEach(c=>{c.hasChildren()&&d(c)})};C&&C.executeFromRootNode(s=>d(s))}pullDownGroupDataForHideOpenParents(C,d){if(!this.gos.get("groupHideOpenParents")||(0,E._missing)(C))return;let{colModel:s,showRowGroupCols:c}=this.beans;C.forEach(h=>{var f;((f=c==null?void 0:c.getShowRowGroupCols())!=null?f:[]).forEach(S=>{let w=S.getColDef().showRowGroup;if(typeof w!="string"){(0,E._error)(110);return}let M=w,P=s.getColDefCol(M);if(P!==h.rowGroupColumn)if(d)(0,z.setRowNodeGroupValue)(h,s,S.getId(),void 0);else{let G=this.getFirstChildOfFirstChild(h,P);G&&(0,z.setRowNodeGroupValue)(h,s,S.getId(),G.key)}})})}isShowingValueForOpenedParent(C,d){if(!this.gos.get("groupHideOpenParents")||!C.groupData)return!1;if(C.rowGroupColumn!=null){let c=C.rowGroupColumn.getId();if(d.isRowGroupDisplayed(c))return!1}return C.groupData[d.getId()]!=null}getFirstChildOfFirstChild(C,d){let s=C;for(;s;){let c=s.parent;if(c!=null&&c.childrenAfterSort&&s===c.childrenAfterSort[0]){if(c.rowGroupColumn===d)return c}else return null;s=c}return null}}p.GroupHideOpenParentsService=T},1645:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BatchRemover=void 0;class A{constructor(){this.allSets={},this.allParents=[]}removeFromChildrenAfterGroup(z,T){let b=this.getSet(z);b.removeFromChildrenAfterGroup[T.id]=!0}isRemoveFromAllLeafChildren(z,T){return!!this.getSet(z).removeFromAllLeafChildren[T.id]}preventRemoveFromAllLeafChildren(z,T){let b=this.getSet(z);delete b.removeFromAllLeafChildren[T.id]}removeFromAllLeafChildren(z,T){let b=this.getSet(z);b.removeFromAllLeafChildren[T.id]=!0}getSet(z){return this.allSets[z.id]||(this.allSets[z.id]={removeFromAllLeafChildren:{},removeFromChildrenAfterGroup:{}},this.allParents.push(z)),this.allSets[z.id]}getAllParents(){return this.allParents}flush(){this.allParents.forEach(z=>{var C,d;let T=this.allSets[z.id];z.childrenAfterGroup=z.childrenAfterGroup.filter(s=>!T.removeFromChildrenAfterGroup[s.id]),z.allLeafChildren=(d=(C=z.allLeafChildren)==null?void 0:C.filter(s=>!T.removeFromAllLeafChildren[s.id]))!=null?d:null,z.updateHasChildren();let b=z.sibling;b&&(b.childrenAfterGroup=z.childrenAfterGroup,b.allLeafChildren=z.allLeafChildren)}),this.allSets={},this.allParents.length=0}}p.BatchRemover=A},4216:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupStage=void 0;let E=A(6624),z=A(8105),T=A(1645),b=A(4831);class C extends E.BeanStub{constructor(){super(...arguments),this.beanName="groupStage",this.refreshProps=new Set(["groupDefaultExpanded","groupAllowUnbalanced","initialGroupOrderComparator","groupHideOpenParents","groupDisplayType"]),this.step="group"}wireBeans(s){this.colModel=s.colModel,this.rowGroupColsSvc=s.rowGroupColsSvc,this.valueSvc=s.valueSvc,this.selectionSvc=s.selectionSvc,this.showRowGroupCols=s.showRowGroupCols}execute(s){var g;let c=this.createGroupingDetails(s);if(c.transactions)this.handleTransaction(c);else{let f=s.afterColumnsChanged===!0;this.shotgunResetEverything(c,f)}let h=s.changedPath;this.positionLeafsAndGroups(h),this.orderGroups(c),(g=this.selectionSvc)==null||g.updateSelectableAfterGrouping(h)}positionLeafsAndGroups(s){s.forEachChangedNodeDepthFirst(c=>{if(c.childrenAfterGroup){let h=[],g=[],f;c.childrenAfterGroup.forEach(S=>{var w;(w=S.childrenAfterGroup)!=null&&w.length?S.key===""&&!f?f=S:g.push(S):h.push(S)}),f&&g.push(f),c.childrenAfterGroup=[...h,...g]}},!1)}createGroupingDetails(s){var M,P,O;let{rowNode:c,changedPath:h,rowNodeTransactions:g,rowNodesOrderChanged:f}=s,S=(M=this.rowGroupColsSvc)==null?void 0:M.columns;return{expandByDefault:this.gos.get("groupDefaultExpanded"),groupedCols:S,rootNode:c,pivotMode:this.colModel.isPivotMode(),groupedColCount:(P=S==null?void 0:S.length)!=null?P:0,transactions:g,rowNodesOrderChanged:!!f,changedPath:h,groupAllowUnbalanced:this.gos.get("groupAllowUnbalanced"),isGroupOpenByDefault:this.gos.getCallback("isGroupOpenByDefault"),initialGroupOrderComparator:this.gos.getCallback("initialGroupOrderComparator"),keyCreators:(O=S==null?void 0:S.map(G=>G.getColDef().keyCreator))!=null?O:[]}}handleTransaction(s){s.transactions.forEach(c=>{var f,S,w;let h=new T.BatchRemover;(f=c.remove)!=null&&f.length&&this.removeNodes(c.remove,s,h),(S=c.update)!=null&&S.length&&this.moveNodesInWrongPath(c.update,s,h),(w=c.add)!=null&&w.length&&this.insertNodes(c.add,s);let g=h.getAllParents().slice();h.flush(),this.removeEmptyGroups(g,s)}),s.rowNodesOrderChanged&&this.sortChildren(s)}sortChildren(s){s.changedPath.forEachChangedNodeDepthFirst(c=>{(0,b.sortGroupChildren)(c.childrenAfterGroup)&&s.changedPath.addParentNode(c)},!1,!0)}orderGroups(s){let c=s.initialGroupOrderComparator;(0,E._exists)(c)&&h(s.rootNode);function h(g){(0,E._exists)(g.childrenAfterGroup)&&!g.leafGroup&&(g.childrenAfterGroup.sort((S,w)=>c({nodeA:S,nodeB:w})),g.childrenAfterGroup.forEach(S=>h(S)))}}getExistingPathForNode(s,c){let h=[],g=s.parent;for(;g&&g!==c.rootNode;)h.push({key:g.key,rowGroupColumn:g.rowGroupColumn,field:g.field}),g=g.parent;return h.reverse(),h}moveNodesInWrongPath(s,c,h){s.forEach(g=>{c.changedPath.active&&c.changedPath.addParentNode(g.parent);let f=P=>P.key,S=this.getExistingPathForNode(g,c).map(f),w=this.getGroupInfo(g,c).map(f);(0,E._areEqual)(S,w)||this.moveNode(g,c,h)})}moveNode(s,c,h){if(this.removeNodesFromParents([s],c,h),this.insertOneNode(s,c,h),s.setData(s.data),c.changedPath.active){let g=s.parent;c.changedPath.addParentNode(g)}}removeNodes(s,c,h){this.removeNodesFromParents(s,c,h),c.changedPath.active&&s.forEach(g=>c.changedPath.addParentNode(g.parent))}forEachParentGroup(s,c,h){let g=c;for(;g&&g!==s.rootNode;)h(g),g=g.parent}removeNodesFromParents(s,c,h){let g=h==null,f=h||new T.BatchRemover;s.forEach(S=>{this.removeFromParent(S,f),this.forEachParentGroup(c,S.parent,w=>{f.removeFromAllLeafChildren(w,S)})}),g&&f.flush()}removeEmptyGroups(s,c){let h=!0,g=f=>{var P,O;let S=this.getChildrenMappedKey(f.key,f.rowGroupColumn),w=f.parent;return(w!=null&&w.childrenMapped?!w.childrenMapped[S]:!0)?!1:!!f.group&&((O=(P=f.childrenAfterGroup)==null?void 0:P.length)!=null?O:0)===0};for(;h;){h=!1;let f=new T.BatchRemover;s.forEach(S=>{this.forEachParentGroup(c,S,w=>{var M;g(w)&&(h=!0,this.removeFromParent(w,f),(M=this.selectionSvc)==null||M.setNodesSelected({nodes:[w],newValue:!1,source:"rowGroupChanged"}))})}),f.flush()}}removeFromParent(s,c){var g;s.parent&&(c?c.removeFromChildrenAfterGroup(s.parent,s):((0,E._removeFromArray)(s.parent.childrenAfterGroup,s),s.parent.updateHasChildren()));let h=this.getChildrenMappedKey(s.key,s.rowGroupColumn);(g=s.parent)!=null&&g.childrenMapped&&delete s.parent.childrenMapped[h],s.setRowTop(null),s.setRowIndex(null)}addToParent(s,c){let h=this.getChildrenMappedKey(s.key,s.rowGroupColumn);c!=null&&c.childrenMapped&&c.childrenMapped[h]!==s&&(c.childrenMapped[h]=s,c.childrenAfterGroup.push(s),(0,z.setRowNodeGroup)(c,this.beans,!0))}areGroupColsEqual(s,c){return s==null||c==null||s.pivotMode!==c.pivotMode?!1:(0,E._areEqual)(s.groupedCols,c.groupedCols)&&(0,E._areEqual)(s.keyCreators,c.keyCreators)}checkAllGroupDataAfterColsChanged(s){let c=h=>{h&&h.forEach(g=>{var w;if(!g.group)return;let S={field:g.field,key:g.key,rowGroupColumn:g.rowGroupColumn,leafNode:(w=g.allLeafChildren)==null?void 0:w[0]};this.setGroupData(g,S),c(g.childrenAfterGroup)})};c(s.rootNode.childrenAfterGroup)}shotgunResetEverything(s,c){var S,w;if(this.noChangeInGroupingColumns(s,c))return;(w=(S=this.selectionSvc)==null?void 0:S.filterFromSelection)==null||w.call(S,M=>!M.group);let{groupedCols:h}=s,g=s.rootNode;g.leafGroup=h.length===0,g.childrenAfterGroup=[],g.childrenMapped={},g.updateHasChildren();let f=g.sibling;f&&(f.childrenAfterGroup=g.childrenAfterGroup,f.childrenMapped=g.childrenMapped),this.insertNodes(g.allLeafChildren,s)}noChangeInGroupingColumns(s,c){let h=!1,g=this.showRowGroupCols.getShowRowGroupCols(),f=g?g.map(S=>S.getId()).join("-"):"";return c&&(h=this.areGroupColsEqual(s,this.oldGroupingDetails),this.oldGroupDisplayColIds!==f&&this.checkAllGroupDataAfterColsChanged(s)),this.oldGroupingDetails=s,this.oldGroupDisplayColIds=f,h}insertNodes(s,c){s.forEach(h=>{this.insertOneNode(h,c),c.changedPath.active&&c.changedPath.addParentNode(h.parent)})}insertOneNode(s,c,h){let g=this.getGroupInfo(s,c),f=this.findParentForNode(s,g,c,h);f.group||(0,E._warn)(184,{parentGroupData:f.data,childNodeData:s.data}),s.parent=f,s.level=g.length,f.childrenAfterGroup.push(s),f.updateHasChildren()}findParentForNode(s,c,h,g){let f=h.rootNode;return c.forEach((S,w)=>{f=this.getOrCreateNextNode(f,S,w,h),g!=null&&g.isRemoveFromAllLeafChildren(f,s)?g==null||g.preventRemoveFromAllLeafChildren(f,s):f.allLeafChildren.push(s)}),f}getOrCreateNextNode(s,c,h,g){var w;let f=this.getChildrenMappedKey(c.key,c.rowGroupColumn),S=(w=s==null?void 0:s.childrenMapped)==null?void 0:w[f];return S||(S=this.createGroup(c,s,h,g),this.addToParent(S,s)),S}createGroup(s,c,h,g){let f=new E.RowNode(this.beans);return f.group=!0,f.field=s.field,f.rowGroupColumn=s.rowGroupColumn,this.setGroupData(f,s),f.key=s.key,f.id=this.createGroupId(f,c,h),f.level=h,f.leafGroup=h===g.groupedColCount-1,f.allLeafChildren=[],f.setAllChildrenCount(0),f.rowGroupIndex=h,f.childrenAfterGroup=[],f.childrenMapped={},f.updateHasChildren(),f.parent=c,this.setExpandedInitialValue(g,f),f}createGroupId(s,c,h){let g=(f,S)=>{if(!f.rowGroupColumn)return null;let w=S?g(S,S.parent,0):null;return`${w==null?"":w+"-"}${f.rowGroupColumn.getColId()}-${f.key}`};return E._ROW_ID_PREFIX_ROW_GROUP+g(s,c,h)}setGroupData(s,c){s.groupData={},this.showRowGroupCols.getShowRowGroupCols().forEach(g=>{let f=s.rowGroupColumn;f!==null&&g.isRowGroupDisplayed(f.getId())&&(s.groupData[g.getColId()]=this.valueSvc.getValue(f,c.leafNode))})}getChildrenMappedKey(s,c){return c?c.getId()+"-"+s:s}setExpandedInitialValue(s,c){if(s.pivotMode&&c.leafGroup){c.expanded=!1;return}let h=s.isGroupOpenByDefault;if(h){let g={rowNode:c,field:c.field,key:c.key,level:c.level,rowGroupColumn:c.rowGroupColumn};c.expanded=h(g)==!0;return}if(s.expandByDefault===-1){c.expanded=!0;return}c.expanded=c.level<s.expandByDefault}getGroupInfo(s,c){let h=[];return c.groupedCols.forEach(g=>{let f=this.valueSvc.getKeyForNode(g,s),S=f!=null&&f!=="";if((c.pivotMode||!c.groupAllowUnbalanced)&&!S&&(f="",S=!0),S){let M={key:f,field:g.getColDef().field,rowGroupColumn:g,leafNode:s};h.push(M)}}),h}}p.GroupStage=C},4831:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.sortGroupChildren=void 0;function A(z){if(!z)return!1;let T=z.length;if(T<2)return!1;let b=!1;for(let C=1;C<T;C++)if(E(z[C-1],z[C])>0){b=!0;break}return b?(z.sort(E),!0):!1}p.sortGroupChildren=A;function E(z,T){let b=z.sourceRowIndex,C=T.sourceRowIndex,d=b>=0,s=C>=0,c=d&&s,h=!d&&!s;return c?b-C:h?z.__objectId-T.__objectId:d?1:-1}},4357:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RowGroupColsSvc=void 0;let E=A(6624);class z extends E.BaseColsService{constructor(){super(...arguments),this.beanName="rowGroupColsSvc",this.eventName="columnRowGroupChanged",this.columnProcessors={set:(b,C,d)=>this.setActive(C,b,d),add:(b,C,d)=>this.setActive(!0,b,d),remove:(b,C,d)=>this.setActive(!1,b,d)},this.columnOrdering={enableProp:"rowGroup",initialEnableProp:"initialRowGroup",indexProp:"rowGroupIndex",initialIndexProp:"initialRowGroupIndex"},this.columnExtractors={setFlagFunc:(b,C,d)=>this.setColRowGroupActive(b,C,d),getIndexFunc:b=>b.rowGroupIndex,getInitialIndexFunc:b=>b.initialRowGroupIndex,getValueFunc:b=>b.rowGroup,getInitialValueFunc:b=>b.initialRowGroup},this.modifyColumnsNoEventsCallbacks={addCol:b=>this.columns.push(b),removeCol:b=>(0,E._removeFromArray)(this.columns,b)}}moveColumn(b,C,d){if(this.columns.length===0)return;let s=this.columns[b],c=this.columns.slice(b,C);this.columns.splice(b,1),this.columns.splice(C,0,s),this.eventSvc.dispatchEvent({type:this.eventName,columns:c,column:c.length===1?c[0]:null,source:d})}syncColumnWithState(b,C,d,s){let{value1:c,value2:h}=d("rowGroup","rowGroupIndex");(c!==void 0||h!==void 0)&&(typeof h=="number"||c?(b.isRowGroupActive()||(this.setColRowGroupActive(b,!0,C),this.modifyColumnsNoEventsCallbacks.addCol(b)),s&&typeof h=="number"&&(s[b.getId()]=h)):b.isRowGroupActive()&&(this.setColRowGroupActive(b,!1,C),this.modifyColumnsNoEventsCallbacks.removeCol(b)))}setActive(b,C,d){b!==C.isRowGroupActive()&&(this.setColRowGroupActive(C,b,d),(0,E._shouldUpdateColVisibilityAfterGroup)(this.gos,b)&&this.colModel.setColsVisible([C],!b,d))}setColRowGroupActive(b,C,d){b.rowGroupActive!==C&&(b.rowGroupActive=C,b.dispatchColEvent("columnRowGroupChanged",d)),b.dispatchStateUpdatedEvent("rowGroup")}}p.RowGroupColsSvc=z},3516:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getRowGroupColumns=p.moveRowGroupColumn=p.addRowGroupColumns=p.removeRowGroupColumns=p.setRowGroupColumns=void 0;function A(C,d){var s;(s=C.rowGroupColsSvc)==null||s.setColumns(d,"api")}p.setRowGroupColumns=A;function E(C,d){var s;(s=C.rowGroupColsSvc)==null||s.removeColumns(d,"api")}p.removeRowGroupColumns=E;function z(C,d){var s;(s=C.rowGroupColsSvc)==null||s.addColumns(d,"api")}p.addRowGroupColumns=z;function T(C,d,s){var c,h;(h=(c=C.rowGroupColsSvc)==null?void 0:c.moveColumn)==null||h.call(c,d,s,"api")}p.moveRowGroupColumn=T;function b(C){var d,s;return(s=(d=C.rowGroupColsSvc)==null?void 0:d.columns)!=null?s:[]}p.getRowGroupColumns=b},1442:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupFilterModule=p.RowGroupingPanelModule=p.RowGroupingModule=p.SharedRowGroupingModule=void 0;let E=A(6624),z=A(9206),T=A(7032),b=A(6858),C=A(7205),d=A(9449),s=A(4700),c=A(7250),h=A(8628),g=A(4216),f=A(3516);p.SharedRowGroupingModule={moduleName:"SharedRowGrouping",version:C.VERSION,beans:[h.GroupHideOpenParentsService],apiFunctions:{setRowGroupColumns:f.setRowGroupColumns,removeRowGroupColumns:f.removeRowGroupColumns,addRowGroupColumns:f.addRowGroupColumns,getRowGroupColumns:f.getRowGroupColumns,moveRowGroupColumn:f.moveRowGroupColumn},dependsOn:[z.EnterpriseCoreModule,T.SharedAggregationModule,b.GroupColumnModule,b.StickyRowModule]},p.RowGroupingModule={moduleName:"RowGrouping",version:C.VERSION,beans:[g.GroupStage],rowModels:["clientSide"],dependsOn:[p.SharedRowGroupingModule,T.AggregationModule,b.ClientSideRowModelHierarchyModule]},p.RowGroupingPanelModule={moduleName:"RowGroupingPanel",version:C.VERSION,selectors:[d.AgGridHeaderDropZonesSelector],icons:{pivotPanel:"pivot",rowGroupPanel:"group",panelDelimiter:"small-right",panelDelimiterRtl:"small-left"},dependsOn:[z.EnterpriseCoreModule,E._PopupModule]},p.GroupFilterModule={moduleName:"GroupFilter",version:C.VERSION,userComponents:{agGroupColumnFilter:s.GroupFilter,agGroupColumnFloatingFilter:c.GroupFloatingFilterComp},dependsOn:[z.EnterpriseCoreModule,E._ColumnFilterModule]}},8105:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.isRowGroupColLocked=p.setRowNodeGroup=p.setRowNodeGroupValue=void 0;function A(T,b,C,d){let s=b.getCol(C);T.groupData||(T.groupData={});let c=s.getColId(),h=T.groupData[c];h!==d&&(T.groupData[c]=d,T.dispatchCellChangedEvent(s,d,h))}p.setRowNodeGroupValue=A;function E(T,b,C){var d;T.group!==C&&(T.group&&!C&&(T.expanded=!1),T.group=C,T.updateHasChildren(),(d=b.selectionSvc)==null||d.updateRowSelectable(T),T.dispatchRowEvent("groupChanged"))}p.setRowNodeGroup=E;function z(T,b){let{gos:C,rowGroupColsSvc:d}=b;if(!d||!T)return!1;let s=C.get("groupLockGroupColumns");if(!T.isRowGroupActive()||s===0)return!1;if(s===-1)return!0;let c=d.columns.findIndex(h=>h.getColId()===T.getColId());return s>c}p.isRowGroupColLocked=z},5995:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AutoColService=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="autoColSvc"}postConstruct(){this.addManagedPropertyListener("autoGroupColumnDef",b=>this.onAutoGroupColumnDefChanged((0,E._convertColumnEventSourceType)(b.source)))}addAutoCols(b){this.autoCols!=null&&(b.list=this.autoCols.list.concat(b.list),b.tree=this.autoCols.tree.concat(b.tree),(0,E._updateColsMap)(b))}createAutoCols(b,C){var _e,Fe,We;let d=this.beans,{colModel:s,gos:c,rowGroupColsSvc:h,colGroupSvc:g}=d,f=s.isPivotMode(),S=(0,E._isGroupUseEntireRow)(c,f),w=f?c.get("pivotSuppressAutoColumn"):this.isSuppressAutoCol(),M=h==null?void 0:h.columns,O=!(M&&M.length>0||c.get("treeData"))||w||S,G=()=>{this.autoCols&&((0,E._destroyColumnTree)(d,this.autoCols.tree),this.autoCols=null)};if(O){G();return}let j=this.generateAutoCols(M),Y=(0,E._areColIdsEqual)(j,((_e=this.autoCols)==null?void 0:_e.list)||null),J=b.treeDepth,ce=(this.autoCols?this.autoCols.treeDepth:-1)==J;if(Y&&ce)return;G();let fe=(Fe=g==null?void 0:g.findDepth(b.tree))!=null?Fe:0,xe=(We=g==null?void 0:g.balanceTreeForAutoCols(j,fe))!=null?We:[];this.autoCols={list:j,tree:xe,treeDepth:fe,map:{}},C(it=>{if(!it)return null;let tt=it.filter(ot=>!(0,E.isColumnGroupAutoCol)(ot));return[...j,...tt]})}getAutoCol(b){var C,d;return(d=(C=this.autoCols)==null?void 0:C.list.find(s=>(0,E._columnsMatch)(s,b)))!=null?d:null}getAutoCols(){var b,C;return(C=(b=this.autoCols)==null?void 0:b.list)!=null?C:null}generateAutoCols(b=[]){let C=[],d=this.gos.get("treeData"),s=(0,E._isGroupMultiAutoColumn)(this.gos);return d&&s&&((0,E._warn)(182),s=!1),s?b.forEach((c,h)=>{C.push(this.createOneAutoCol(c,h))}):C.push(this.createOneAutoCol()),C}updateAutoCols(b){var C;(C=this.autoCols)==null||C.list.forEach((d,s)=>this.updateOneAutoCol(d,s,b))}isSuppressAutoCol(){let b=this.gos;return b.get("groupDisplayType")==="custom"?!0:b.get("treeDataDisplayType")==="custom"}createOneAutoCol(b,C){let d;b?d=`${E.GROUP_AUTO_COLUMN_ID}-${b.getId()}`:d=E.GROUP_AUTO_COLUMN_ID;let s=this.createAutoColDef(d,b,C);s.colId=d;let c=new E.AgColumn(s,null,d,!0);return this.createBean(c),c}updateOneAutoCol(b,C,d){let s=b.getColDef(),c=typeof s.showRowGroup=="string"?s.showRowGroup:void 0,h=this.beans,g=c!=null?h.colModel.getColDefCol(c):void 0,f=this.createAutoColDef(b.getId(),g!=null?g:void 0,C);b.setColDef(f,null,d),(0,E._updateColumnState)(h,b,f,d)}createAutoColDef(b,C,d){let s=this.createBaseColDef(C),c=this.gos.get("autoGroupColumnDef");(0,E._mergeDeep)(s,c),s=(0,E._addColumnDefaultAndTypes)(this.beans,s,b,!0),this.gos.get("treeData")||(0,E._missing)(s.field)&&(0,E._missing)(s.valueGetter)&&(0,E._missing)(s.filterValueGetter)&&s.filter!=="agGroupColumnFilter"&&(s.filter=!1),d&&d>0&&(s.headerCheckboxSelection=!1);let h=(0,E._isColumnsSortingCoupledToGroup)(this.gos),g=s.valueGetter||s.field!=null;return h&&!g&&(s.sortIndex=void 0,s.initialSort=void 0),s}createBaseColDef(b){let C=this.gos.get("autoGroupColumnDef"),s={headerName:this.getLocaleTextFunc()("group","Group")};if(C&&(C.cellRenderer||C.cellRendererSelector)||(s.cellRenderer="agGroupCellRenderer"),b){let h=b.getColDef();Object.assign(s,{headerName:this.beans.colNames.getDisplayNameForColumn(b,"header"),headerValueGetter:h.headerValueGetter}),h.cellRenderer&&Object.assign(s,{cellRendererParams:{innerRenderer:h.cellRenderer,innerRendererParams:h.cellRendererParams}}),s.showRowGroup=b.getColId()}else s.showRowGroup=!0;return s}onAutoGroupColumnDefChanged(b){this.updateAutoCols(b)}destroy(){var b;(0,E._destroyColumnTree)(this.beans,(b=this.autoCols)==null?void 0:b.tree),super.destroy()}}p.AutoColService=z},2560:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseExpansionService=void 0;let E=A(6624);class z extends E.BeanStub{addExpandedCss(b,C){C.isExpandable()&&(b.push("ag-row-group"),b.push(C.expanded?"ag-row-group-expanded":"ag-row-group-contracted"))}getRowExpandedListeners(b){let{rowNode:C}=b,d=this.updateExpandedCss.bind(this,b,C);return{expandedChanged:d,hasChildrenChanged:d}}setExpanded(b,C,d,s){if(b.expanded===C)return;b.expanded=C,b.dispatchRowEvent("expandedChanged");let c=He(ge({},(0,E._createGlobalRowEvent)(b,this.gos,"rowGroupOpened")),{expanded:C,event:d||null});this.dispatchExpandedEvent(c,s),this.beans.rowRenderer.refreshCells({rowNodes:[b]})}isExpandable(b){return b.footer?!1:this.beans.colModel.isPivotMode()?b.hasChildren()&&!b.leafGroup:b.hasChildren()||b.master}updateExpandedCss(b,C){let d=C.isExpandable(),s=C.expanded==!0;b.forEachGui(void 0,c=>{let h=c.rowComp;h.addOrRemoveCssClass("ag-row-group",d),h.addOrRemoveCssClass("ag-row-group-expanded",d&&s),h.addOrRemoveCssClass("ag-row-group-contracted",d&&!s),(0,E._setAriaExpanded)(c.element,d&&s)})}}p.BaseExpansionService=z},4449:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClientSideExpansionService=void 0;let E=A(6624),z=A(2560);class T extends z.BaseExpansionService{constructor(){super(...arguments),this.beanName="expansionSvc",this.events=[]}wireBeans(C){this.rowModel=C.rowModel}expandRows(C){let d=new Set(C);this.rowModel.forEachNode(s=>{s.id&&d.has(s.id)&&(s.expanded=!0)}),this.onGroupExpandedOrCollapsed()}expandAll(C){let{gos:d,colModel:s,eventSvc:c}=this.beans,h=this.rowModel,g=d.get("treeData"),f=s.isPivotActive(),S=M=>{M&&M.forEach(P=>{let O=()=>{P.expanded=C,S(P.childrenAfterGroup)};if(g){(0,E._exists)(P.childrenAfterGroup)&&O();return}if(f){!P.leafGroup&&O();return}P.group&&O()})},w=h.rootNode;w&&S(w.childrenAfterGroup),h.refreshModel({step:"map"}),c.dispatchEvent({type:"expandOrCollapseAll",source:C?"expandAll":"collapseAll"})}onGroupExpandedOrCollapsed(){this.rowModel.refreshModel({step:"map"})}dispatchExpandedEvent(C,d){this.events.push(C);let s=()=>{this.rowModel.onRowGroupOpened(),this.events.forEach(c=>this.eventSvc.dispatchEvent(c)),this.events=[]};d?s():(this.dispatchExpandedDebounced==null&&(this.dispatchExpandedDebounced=this.debounce(s)),this.dispatchExpandedDebounced())}debounce(C){let d=this.beans.animationFrameSvc;if(!d)return()=>window.setTimeout(C,0);let s=!1;return()=>{if(!d.active){window.setTimeout(C,0);return}s||(s=!0,d.addDestroyTask(()=>{s=!1,C()}))}}}p.ClientSideExpansionService=T},257:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FlattenStage=void 0;let E=A(6624),z=A(6432);class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="flattenStage",this.refreshProps=new Set(["groupHideParentOfSingleChild","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","groupTotalRow","masterDetail"]),this.step="map"}execute(C){let d=C.rowNode,s=[],c=this.beans.colModel.isPivotMode(),h=c&&d.leafGroup,g=h?[d]:d.childrenAfterSort,f=this.getFlattenDetails();this.recursivelyAddToRowsToDisplay(f,g,s,c,0);let S=s.length>0;if(!h&&S&&f.grandTotalRow){(0,z._createRowNodeFooter)(d,this.beans);let M=f.grandTotalRow==="top";this.addRowNodeToRowsToDisplay(f,d.sibling,s,0,M)}return s}getFlattenDetails(){let C=this.gos.get("groupHideParentOfSingleChild");return C||(C=this.gos.get("groupRemoveSingleChildren"),!C&&this.gos.get("groupRemoveLowestSingleChildren")&&(C="leafGroupsOnly")),{groupHideParentOfSingleChild:C,isGroupMultiAutoColumn:(0,E._isGroupMultiAutoColumn)(this.gos),hideOpenParents:this.gos.get("groupHideOpenParents"),grandTotalRow:(0,E._getGrandTotalRow)(this.gos),groupTotalRow:(0,E._getGroupTotalRowCallback)(this.gos)}}recursivelyAddToRowsToDisplay(C,d,s,c,h){var g;if(d!=null&&d.length)for(let f=0;f<d.length;f++){let S=d[f],w=S.hasChildren(),M=c&&!w,P=C.groupHideParentOfSingleChild===!0&&w&&S.childrenAfterGroup.length===1,O=C.groupHideParentOfSingleChild==="leafGroupsOnly"&&w&&S.leafGroup&&S.childrenAfterGroup.length===1,G=c&&S.leafGroup,j=C.hideOpenParents&&S.expanded&&!S.master&&!G;if(!M&&!j&&!P&&!O&&this.addRowNodeToRowsToDisplay(C,S,s,h),!(c&&S.leafGroup))if(w){let J=P||O;if(S.expanded||J){let ne=C.groupTotalRow({node:S});ne||(0,z._destroyRowNodeFooter)(S);let ce=J?h:h+1;ne==="top"&&((0,z._createRowNodeFooter)(S,this.beans),this.addRowNodeToRowsToDisplay(C,S.sibling,s,ce)),this.recursivelyAddToRowsToDisplay(C,S.childrenAfterSort,s,c,ce),ne==="bottom"&&((0,z._createRowNodeFooter)(S,this.beans),this.addRowNodeToRowsToDisplay(C,S.sibling,s,ce))}}else{let J=(g=this.beans.masterDetailSvc)==null?void 0:g.getDetail(S);J&&this.addRowNodeToRowsToDisplay(C,J,s,h)}}}addRowNodeToRowsToDisplay(C,d,s,c,h){h?s.unshift(d):s.push(d),d.setUiLevel(C.isGroupMultiAutoColumn?0:c)}}p.FlattenStage=T},1982:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupCellRenderer=void 0;let E=A(6624),z=A(5471),T=`<span class="ag-cell-wrapper">
        <span class="ag-group-expanded" data-ref="eExpanded"></span>
        <span class="ag-group-contracted" data-ref="eContracted"></span>
        <span class="ag-group-checkbox ag-invisible" data-ref="eCheckbox"></span>
        <span class="ag-group-value" data-ref="eValue"></span>
        <span class="ag-group-child-count" data-ref="eChildCount"></span>
    </span>`;class b extends E.Component{constructor(){super(T),this.eExpanded=E.RefPlaceholder,this.eContracted=E.RefPlaceholder,this.eCheckbox=E.RefPlaceholder,this.eValue=E.RefPlaceholder,this.eChildCount=E.RefPlaceholder}init(d){let s={setInnerRenderer:(f,S)=>this.setRenderDetails(f,S),setChildCount:f=>this.eChildCount.textContent=f,addOrRemoveCssClass:(f,S)=>this.addOrRemoveCssClass(f,S),setContractedDisplayed:f=>(0,E._setDisplayed)(this.eContracted,f),setExpandedDisplayed:f=>(0,E._setDisplayed)(this.eExpanded,f),setCheckboxVisible:f=>this.eCheckbox.classList.toggle("ag-invisible",!f)},c=this.createManagedBean(new z.GroupCellRendererCtrl),h=!d.colDef,g=this.getGui();c.init(s,g,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,d),h&&(0,E._setAriaRole)(g,c.getCellAriaRole())}setRenderDetails(d,s){d?d.newAgStackInstance().then(c=>{if(!c)return;let h=()=>this.destroyBean(c);this.isAlive()?(this.eValue.appendChild(c.getGui()),this.addDestroyFunc(h)):h()}):this.eValue.innerText=s}destroy(){this.destroyBean(this.innerCellRenderer),super.destroy()}refresh(){return!1}}p.GroupCellRenderer=b},5471:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupCellRendererCtrl=void 0;let E=A(6624);class z extends E.BeanStub{wireBeans(b){this.expressionSvc=b.expressionSvc,this.valueSvc=b.valueSvc,this.colModel=b.colModel,this.visibleCols=b.visibleCols,this.userCompFactory=b.userCompFactory,this.ctrlsSvc=b.ctrlsSvc,this.rowGroupColsSvc=b.rowGroupColsSvc,this.selectionSvc=b.selectionSvc,this.groupHideOpenParentsSvc=b.groupHideOpenParentsSvc}init(b,C,d,s,c,h,g){var M,P,O;this.params=g,this.eGui=C,this.eCheckbox=d,this.eExpanded=s,this.eContracted=c,this.comp=b,this.compClass=h;let{node:f,colDef:S}=g,w=this.isTopLevelFooter();if(!w){if(this.isEmbeddedRowMismatch())return;if(f.footer&&this.gos.get("groupHideOpenParents")){let j=S==null?void 0:S.showRowGroup,Y=(M=f.rowGroupColumn)==null?void 0:M.getColId();if(j!==Y)return}}if(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),!w){let G=this.rowGroupColsSvc&&f.footer&&f.rowGroupIndex===this.rowGroupColsSvc.columns.findIndex(xe=>xe.getColId()===(S==null?void 0:S.showRowGroup)),Y=this.gos.get("groupDisplayType")!="multipleColumns"||this.gos.get("treeData")||this.gos.get("showOpenedGroup")&&this.rowGroupColsSvc&&!f.footer&&(!f.group||f.rowGroupIndex!=null&&f.rowGroupIndex>((P=this.rowGroupColsSvc)==null?void 0:P.columns.findIndex(xe=>xe.getColId()===(S==null?void 0:S.showRowGroup)))),J=!f.group&&((S==null?void 0:S.field)||(S==null?void 0:S.valueGetter)),ne=this.isExpandable(),ce=this.colModel.isPivotMode()&&f.leafGroup&&((O=f.rowGroupColumn)==null?void 0:O.getColId())===(S==null?void 0:S.showRowGroup);if(!this.showingValueForOpenedParent&&!ne&&!J&&!Y&&!G&&!ce)return}this.addExpandAndContract(),this.addFullWidthRowDraggerIfNeeded(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded(),this.addManagedPropertyListener("rowSelection",({currentValue:G,previousValue:j})=>{let Y=typeof G=="object"?G:void 0,J=typeof j=="object"?j:void 0;(Y==null?void 0:Y.checkboxLocation)!==(J==null?void 0:J.checkboxLocation)&&this.refreshCheckbox()})}getCellAriaRole(){var d,s;let b=(d=this.params.colDef)==null?void 0:d.cellAriaRole,C=(s=this.params.column)==null?void 0:s.getColDef().cellAriaRole;return b||C||"gridcell"}destroy(){super.destroy(),this.expandListener=null,this.destroyCheckbox()}refreshAriaExpanded(){let{node:b,eGridCell:C}=this.params;if(this.expandListener&&(this.expandListener=this.expandListener()),!this.isExpandable()){(0,E._removeAriaExpanded)(C);return}let d=()=>{(0,E._setAriaExpanded)(C,this.showingValueForOpenedParent||!!b.expanded)};[this.expandListener]=this.addManagedListeners(b,{expandedChanged:d})||null,d()}isTopLevelFooter(){var c;if(!(0,E._getGrandTotalRow)(this.gos)||this.params.value!=null||this.params.node.level!=-1)return!1;let C=this.params.colDef;if(C==null||C.showRowGroup===!0)return!0;let s=(c=this.rowGroupColsSvc)==null?void 0:c.columns;return!s||s.length===0?!0:s[0].getId()===C.showRowGroup}isEmbeddedRowMismatch(){if(!this.params.fullWidth||!this.gos.get("embedFullWidthRows"))return!1;let b=this.params.pinned==="left",C=this.params.pinned==="right",d=!b&&!C;return this.gos.get("enableRtl")?this.visibleCols.isPinningLeft()?!C:!d:this.visibleCols.isPinningLeft()?!b:!d}findDisplayedGroupNode(){let b=this.params.column,C=this.params.node;if(this.showingValueForOpenedParent){let d=C.parent;for(;d!=null;){if(d.rowGroupColumn&&b.isRowGroupDisplayed(d.rowGroupColumn.getId())){this.displayedGroupNode=d;break}d=d.parent}}(0,E._missing)(this.displayedGroupNode)&&(this.displayedGroupNode=C)}setupShowingValueForOpenedParent(){var b,C;this.showingValueForOpenedParent=(C=(b=this.groupHideOpenParentsSvc)==null?void 0:b.isShowingValueForOpenedParent(this.params.node,this.params.column))!=null?C:!1}addValueElement(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())}addGroupValue(){var h;let b=this.adjustParamsWithDetailsFromRelatedColumn(),C=this.getInnerCompDetails(b),{valueFormatted:d,value:s}=b,c=d;if(c==null){let g=this.displayedGroupNode.rowGroupColumn&&((h=this.params.column)==null?void 0:h.isRowGroupDisplayed(this.displayedGroupNode.rowGroupColumn.getId()));this.displayedGroupNode.key===""&&this.displayedGroupNode.group&&g?c=this.getLocaleTextFunc()("blanks","(Blanks)"):c=s!=null?s:null}this.comp.setInnerRenderer(C,c)}adjustParamsWithDetailsFromRelatedColumn(){let b=this.displayedGroupNode.rowGroupColumn,C=this.params.column;if(!b)return this.params;if(C!=null&&!C.isRowGroupDisplayed(b.getId()))return this.params;let s=this.params,{value:c,node:h}=this.params,g=this.valueSvc.formatValue(b,h,c);return He(ge({},s),{valueFormatted:g})}addFooterValue(){let b=this.params.totalValueGetter,C="";if(b){let s=He(ge({},this.params),{value:this.params.value});typeof b=="function"?C=b(s):typeof b=="string"?C=this.expressionSvc?this.expressionSvc.evaluate(b,s):"":(0,E._warn)(179)}else C=this.getLocaleTextFunc()("footerTotal","Total")+" "+(this.params.value!=null?this.params.value:"");let d=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(d,C)}getInnerCompDetails(b){if(b.fullWidth)return(0,E._getInnerCellRendererDetails)(this.userCompFactory,this.gos.get("groupRowRendererParams"),b);let C=(0,E._getInnerCellRendererDetails)(this.userCompFactory,b,b),d=g=>g&&g.componentClass==this.compClass;if(C&&!d(C))return C;let s=this.displayedGroupNode.rowGroupColumn,c=s==null?void 0:s.getColDef();if(!c)return;let h=(0,E._getCellRendererDetails)(this.userCompFactory,c,b);if(h&&!d(h))return h;if(d(h)&&c.cellRendererParams&&c.cellRendererParams.innerRenderer)return(0,E._getInnerCellRendererDetails)(this.userCompFactory,c.cellRendererParams,b)}addChildCount(){this.params.suppressCount||(this.addManagedListeners(this.displayedGroupNode,{allChildrenCountChanged:this.updateChildCount.bind(this)}),this.updateChildCount())}updateChildCount(){let b=this.displayedGroupNode.allChildrenCount,s=this.isShowRowGroupForThisRow()&&b!=null&&b>=0?`(${b})`:"";this.comp.setChildCount(s)}isShowRowGroupForThisRow(){if(this.gos.get("treeData"))return!0;let b=this.displayedGroupNode.rowGroupColumn;if(!b)return!1;let C=this.params.column;return C==null||C.isRowGroupDisplayed(b.getId())}addExpandAndContract(){var h;let b=this.params,C=(g,f)=>{let S=(0,E._createIconNoSpan)(g,this.beans,null);S&&(f.appendChild(S),this.addDestroyFunc(()=>f.removeChild(S)))};C("groupExpanded",this.eExpanded),C("groupContracted",this.eContracted);let d=b.eGridCell;!(((h=this.params.column)==null?void 0:h.isCellEditable(b.node))&&this.gos.get("enableGroupEdit"))&&this.isExpandable()&&!b.suppressDoubleClickExpand&&this.addManagedListeners(d,{dblclick:this.onCellDblClicked.bind(this)}),this.addManagedListeners(this.eExpanded,{click:this.onExpandClicked.bind(this)}),this.addManagedListeners(this.eContracted,{click:this.onExpandClicked.bind(this)}),this.addManagedListeners(d,{keydown:this.onKeyDown.bind(this)}),this.addManagedListeners(b.node,{expandedChanged:this.showExpandAndContractIcons.bind(this)}),this.showExpandAndContractIcons();let c=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListeners(this.displayedGroupNode,{allChildrenCountChanged:c,masterChanged:c,groupChanged:c,hasChildrenChanged:c})}onExpandClicked(b){(0,E._isStopPropagationForAgGrid)(b)||((0,E._stopPropagationForAgGrid)(b),this.onExpandOrContract(b))}onExpandOrContract(b){let C=this.displayedGroupNode,d=!C.expanded;!d&&C.sticky&&this.scrollToStickyNode(C),C.setExpanded(d,b)}scrollToStickyNode(b){this.ctrlsSvc.getScrollFeature().setVerticalScrollPosition(b.rowTop-b.stickyRowTop)}isExpandable(){if(this.showingValueForOpenedParent)return!0;let b=this.displayedGroupNode,C=this.colModel.isPivotMode()&&b.leafGroup;if(!(b.isExpandable()&&!b.footer&&!C))return!1;let s=this.params.column;return s!=null&&typeof s.getColDef().showRowGroup=="string"?this.isShowRowGroupForThisRow():!0}showExpandAndContractIcons(){let{params:b,displayedGroupNode:C,colModel:d}=this,{node:s}=b,c=this.isExpandable();if(c){let w=this.showingValueForOpenedParent?!0:s.expanded;this.comp.setExpandedDisplayed(w),this.comp.setContractedDisplayed(!w)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);let h=d.isPivotMode(),g=h&&C.leafGroup,f=c&&!g,S=s.footer&&s.level===-1;this.comp.addOrRemoveCssClass("ag-cell-expandable",f),this.comp.addOrRemoveCssClass("ag-row-group",f),h?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",!!g):S||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!f)}onRowNodeIsExpandableChanged(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()}setupIndent(){let b=this.params.node;this.params.suppressPadding||(this.addManagedListeners(b,{uiLevelChanged:this.setIndent.bind(this)}),this.setIndent())}setIndent(){if(this.gos.get("groupHideOpenParents"))return;let b=this.params,C=b.node,d=!!b.colDef,s=this.gos.get("treeData"),h=!d||s||b.colDef.showRowGroup===!0?C.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+h,this.comp.addOrRemoveCssClass(this.indentClass,!0),this.eGui.style.setProperty("--ag-indentation-level",String(h))}addFullWidthRowDraggerIfNeeded(){if(!this.params.fullWidth||!this.params.rowDrag||!this.rowDragSvc)return;let b=this.rowDragSvc.createRowDragComp(()=>this.params.value,this.params.node);this.createManagedBean(b),this.eGui.insertAdjacentElement("afterbegin",b.getGui())}addCheckboxIfNeeded(){let b=this.displayedGroupNode,C=this.gos.get("rowSelection"),d=(0,E._getCheckboxLocation)(C),s=typeof C=="object"?d==="autoGroupColumn"&&(0,E._getCheckboxes)(C):this.params.checkbox,h=(typeof s=="function"||s===!0)&&!b.footer&&!b.rowPinned&&!b.detail&&!!this.selectionSvc&&(0,E._isRowSelection)(this.gos);if(h){let g=this.selectionSvc.createCheckboxSelectionComponent();this.cbComp=g,this.createBean(g),g.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:s,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(g.getGui())}this.comp.setCheckboxVisible(h)}destroyCheckbox(){this.cbComp&&this.eCheckbox.removeChild(this.cbComp.getGui()),this.cbComp=this.destroyBean(this.cbComp)}refreshCheckbox(){this.destroyCheckbox(),this.addCheckboxIfNeeded()}onKeyDown(b){!(b.key===E.KeyCode.ENTER)||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(b)}onCellDblClicked(b){if((0,E._isStopPropagationForAgGrid)(b))return;(0,E._isElementInEventPath)(this.eExpanded,b)||(0,E._isElementInEventPath)(this.eContracted,b)||this.onExpandOrContract(b)}}p.GroupCellRendererCtrl=z},6858:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StickyRowModule=p.ClientSideRowModelHierarchyModule=p.GroupColumnModule=p.GroupCellRendererModule=void 0;let E=A(9206),z=A(7926),T=A(3227),b=A(4357),C=A(7205),d=A(5995),s=A(4449),c=A(257),h=A(1982),g=A(5471),f=A(4685),S=A(1998);p.GroupCellRendererModule={moduleName:"GroupCellRenderer",version:C.VERSION,userComponents:{agGroupRowRenderer:h.GroupCellRenderer,agGroupCellRenderer:h.GroupCellRenderer},dynamicBeans:{groupCellRendererCtrl:g.GroupCellRendererCtrl},icons:{groupContracted:"tree-closed",groupExpanded:"tree-open"},dependsOn:[E.EnterpriseCoreModule]},p.GroupColumnModule={moduleName:"GroupColumn",version:C.VERSION,beans:[d.AutoColService,f.ShowRowGroupColsService,b.RowGroupColsSvc,T.PivotColsSvc,z.ValueColsSvc],dependsOn:[E.EnterpriseCoreModule,p.GroupCellRendererModule]},p.ClientSideRowModelHierarchyModule={moduleName:"ClientSideRowModelHierarchy",version:C.VERSION,rowModels:["clientSide"],beans:[c.FlattenStage,s.ClientSideExpansionService],dependsOn:[E.EnterpriseCoreModule]},p.StickyRowModule={moduleName:"StickyRow",version:C.VERSION,beans:[S.StickyRowService]}},4685:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ShowRowGroupColsService=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="showRowGroupCols"}refresh(){this.showRowGroupCols=[],this.showRowGroupColsMap={};let{colModel:b,rowGroupColsSvc:C}=this.beans;b.getCols().forEach(d=>{let c=d.getColDef().showRowGroup,h=typeof c=="string";!h&&!(c===!0)||(this.showRowGroupCols.push(d),h?this.showRowGroupColsMap[c]=d:C&&C.columns.forEach(f=>{this.showRowGroupColsMap[f.getId()]=d}))})}getShowRowGroupCols(){return this.showRowGroupCols}getShowRowGroupCol(b){return this.showRowGroupColsMap[b]}getSourceColumnsForGroupColumn(b){let C=b.getColDef().showRowGroup;if(!C)return null;let{rowGroupColsSvc:d,colModel:s}=this.beans;if(C===!0&&d)return d.columns.slice(0);let c=s.getColDefCol(C);return c?[c]:null}isRowGroupDisplayed(b,C){let{colDef:d}=b;if((d==null?void 0:d.showRowGroup)==null)return!1;let s=d.showRowGroup===!0,c=d.showRowGroup===C;return s||c}}p.ShowRowGroupColsService=z},80:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StickyRowFeature=void 0;let E=A(6624);class z extends E.BeanStub{constructor(d,s){super(),this.createRowCon=d,this.destroyRowCtrls=s,this.stickyTopRowCtrls=[],this.stickyBottomRowCtrls=[],this.extraTopHeight=0,this.extraBottomHeight=0}postConstruct(){this.isClientSide=(0,E._isClientSideRowModel)(this.gos),this.beans.ctrlsSvc.whenReady(this,d=>{this.gridBodyCtrl=d.gridBodyCtrl}),this.resetStickyContainers()}setOffsetTop(d){this.extraTopHeight!==d&&(this.extraTopHeight=d,this.eventSvc.dispatchEvent({type:"stickyTopOffsetChanged",offset:d}))}setOffsetBottom(d){this.extraBottomHeight!==d&&(this.extraBottomHeight=d)}resetOffsets(){this.setOffsetBottom(0),this.setOffsetTop(0)}getLastPixelOfGroup(d){return this.isClientSide?b(d):T(d)}getFirstPixelOfGroup(d){return d.footer?d.sibling.rowTop+d.sibling.rowHeight-1:d.hasChildren()?d.rowTop-1:0}updateStickyRows(d){let s=d==="top",c=0;if(!this.canRowsBeSticky())return this.refreshNodesAndContainerHeight(d,new Set,c);let{rowModel:h,rowRenderer:g}=this.beans,f=s?g.firstVisibleVPixel-this.extraTopHeight:g.lastVisibleVPixel-this.extraTopHeight,S=new Set,w=G=>{if(S.add(G),s){let j=this.getLastPixelOfGroup(G),Y=f+c+G.rowHeight;j<Y?G.stickyRowTop=c+(j-Y):G.stickyRowTop=c}else{let j=this.getFirstPixelOfGroup(G),Y=f-(c+G.rowHeight);j>Y?G.stickyRowTop=c-(j-Y):G.stickyRowTop=c}c=0,S.forEach(j=>{let Y=j.stickyRowTop+j.rowHeight;c<Y&&(c=Y)})},M=this.areFooterRowsStickySuppressed(),P=this.gos.get("suppressGroupRowsSticky"),O=G=>{if(!G.displayed)return!1;if(G.footer){if(M===!0||M==="grand"&&G.level===-1||M==="group"&&G.level>-1)return!1;let j=G.sibling.rowIndex?G.sibling.rowIndex+1===G.rowIndex:!1;return d==="bottom"&&j?!1:!S.has(G)}return G.isExpandable()?P===!0||d==="bottom"?!1:!S.has(G)&&G.expanded:!1};for(let G=0;G<100;G++){let j=f+c;s||(j=f-c);let Y=h.getRowIndexAtPixel(j),J=h.getRow(Y);if(J==null)break;let ce=this.getStickyAncestors(J).find(xe=>(s?xe.rowIndex<Y:xe.rowIndex>Y)&&O(xe));if(ce){w(ce);continue}if((s?J.rowTop<j:J.rowTop+J.rowHeight>j)&&O(J)){w(J);continue}break}return s||S.forEach(G=>{G.stickyRowTop=c-(G.stickyRowTop+G.rowHeight)}),this.refreshNodesAndContainerHeight(d,S,c)}areFooterRowsStickySuppressed(){let d=this.gos.get("suppressStickyTotalRow");if(d===!0)return!0;let s=d==="group",c=d==="grand";return s&&c?!0:c?"grand":s?"group":!1}canRowsBeSticky(){let d=(0,E._isGroupRowsSticky)(this.gos),s=this.areFooterRowsStickySuppressed(),c=this.gos.get("suppressGroupRowsSticky");return d&&(!s||!c)}getStickyAncestors(d){let s=[],c=d.footer?d.sibling:d.parent;for(;c;)c.sibling&&s.push(c.sibling),s.push(c),c=c.parent;return s.reverse()}checkStickyRows(){let d=this.updateStickyRows("top"),s=this.updateStickyRows("bottom");return d||s}destroyStickyCtrls(){this.resetStickyContainers()}resetStickyContainers(){this.refreshNodesAndContainerHeight("top",new Set,0),this.refreshNodesAndContainerHeight("bottom",new Set,0)}refreshStickyNode(d){let s=new Set;if(this.stickyTopRowCtrls.some(c=>c.rowNode===d)){for(let c=0;c<this.stickyTopRowCtrls.length;c++){let h=this.stickyTopRowCtrls[c].rowNode;h!==d&&s.add(h)}this.refreshNodesAndContainerHeight("top",s,this.topContainerHeight)&&this.checkStickyRows();return}for(let c=0;c<this.stickyBottomRowCtrls.length;c++){let h=this.stickyBottomRowCtrls[c].rowNode;h!==d&&s.add(h)}this.refreshNodesAndContainerHeight("bottom",s,this.bottomContainerHeight)&&this.checkStickyRows()}refreshNodesAndContainerHeight(d,s,c){let h=d==="top",g=h?this.stickyTopRowCtrls:this.stickyBottomRowCtrls,f={},S=[];for(let Y=0;Y<g.length;Y++){let J=g[Y].rowNode;if(!s.has(J)){f[J.id]=g[Y],J.sticky=!1;continue}S.push(g[Y])}let w=new Set;for(let Y=0;Y<S.length;Y++)w.add(S[Y].rowNode);let M=[];s.forEach(Y=>{w.has(Y)||(Y.sticky=!0,M.push(this.createRowCon(Y,!1,!1)))});let P=!!M.length||S.length!==g.length;h?this.topContainerHeight!==c&&(this.topContainerHeight=c,this.gridBodyCtrl.setStickyTopHeight(c),P=!0):this.bottomContainerHeight!==c&&(this.bottomContainerHeight=c,this.gridBodyCtrl.setStickyBottomHeight(c),P=!0),this.destroyRowCtrls(f,!1);let O=[...S,...M];O.sort((Y,J)=>J.rowNode.rowIndex-Y.rowNode.rowIndex),h||O.reverse(),O.forEach(Y=>Y.setRowTop(Y.rowNode.stickyRowTop));let G=this.beans.pageBounds,j=0;return h?(s.forEach(Y=>{Y.rowIndex<G.getFirstRow()&&(j+=Y.rowHeight)}),j>this.topContainerHeight&&(j=this.topContainerHeight),this.setOffsetTop(j)):(s.forEach(Y=>{Y.rowIndex>G.getLastRow()&&(j+=Y.rowHeight)}),j>this.bottomContainerHeight&&(j=this.bottomContainerHeight),this.setOffsetBottom(j)),P?(h?this.stickyTopRowCtrls=O:this.stickyBottomRowCtrls=O,!0):!1}ensureRowHeightsValid(){let d=!1,s=c=>{let h=c.rowNode;if(h.rowHeightEstimated){let g=(0,E._getRowHeightForNode)(this.beans,h);h.setRowHeight(g.height),d=!0}};return this.stickyTopRowCtrls.forEach(s),this.stickyBottomRowCtrls.forEach(s),d}}p.StickyRowFeature=z;function T(C){var d,s,c,h;if(C.isExpandable()||C.footer){if(C.master)return C.detailNode.rowTop+C.detailNode.rowHeight;if(!C.sibling||Math.abs(C.sibling.rowIndex-C.rowIndex)===1){let f=(d=C.childStore)==null?void 0:d.getStoreBounds();return C.footer&&(f=(s=C.sibling.childStore)==null?void 0:s.getStoreBounds()),((c=f==null?void 0:f.heightPx)!=null?c:0)+((h=f==null?void 0:f.topPx)!=null?h:0)}return C.footer?C.rowTop+C.rowHeight:C.sibling.rowTop+C.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}function b(C){if(C.isExpandable()||C.footer){if(C.footer&&C.rowIndex===0)return Number.MAX_SAFE_INTEGER;if(!C.sibling||Math.abs(C.sibling.rowIndex-C.rowIndex)===1){let c=C.footer?C.sibling:C;for(;c.isExpandable()&&c.expanded;)if(c.master)c=c.detailNode;else if(c.childrenAfterSort){if(c.childrenAfterSort.length===0)break;c=(0,E._last)(c.childrenAfterSort)}return c.rowTop+c.rowHeight}return C.footer?C.rowTop+C.rowHeight:C.sibling.rowTop+C.sibling.rowHeight}return Number.MAX_SAFE_INTEGER}},1998:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StickyRowService=void 0;let E=A(6624),z=A(80);class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="stickyRowSvc"}createStickyRowFeature(C,d,s){let c=this.gos;if((0,E._isGroupRowsSticky)(c)&&(0,E._isClientSideRowModel)(c)||(0,E._isServerSideRowModel)(c))return C.createManagedBean(new z.StickyRowFeature(d,s))}}p.StickyRowService=T},1538:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BlockUtils=p.GROUP_MISSING_KEY_ID=void 0;let E=A(6624),z=A(6432);p.GROUP_MISSING_KEY_ID="ag-Grid-MissingKey";class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="ssrmBlockUtils"}wireBeans(C){this.valueSvc=C.valueSvc,this.showRowGroupCols=C.showRowGroupCols,this.nodeManager=C.ssrmNodeManager,this.expansionSvc=C.expansionSvc,this.serverSideRowModel=C.rowModel,this.storeFactory=C.ssrmStoreFactory}createRowNode(C){let d=new E.RowNode(this.beans),s=C.rowHeight!=null?C.rowHeight:(0,E._getRowHeightAsNumber)(this.beans);return d.setRowHeight(s),d.group=C.group,d.leafGroup=C.leafGroup,d.level=C.level,d.uiLevel=C.level,d.parent=C.parent,d.stub=!0,d.__needsRefreshWhenVisible=!1,d.group&&(d.expanded=!1,d.field=C.field,d.rowGroupColumn=C.rowGroupColumn),d}destroyRowNode(C,d=!1){C.childStore&&!d&&(this.destroyBean(C.childStore),C.childStore=null),C.sibling&&!C.footer&&this.destroyRowNode(C.sibling,!1),C.clearRowTopAndRowIndex(),C.id!=null&&this.nodeManager.removeNode(C)}setTreeGroupInfo(C){C.updateHasChildren();let d=this.gos.get("getServerSideGroupKey"),s=C.hasChildren();s&&d!=null&&(C.key=d(C.data)),!s&&C.childStore!=null&&(this.destroyBean(C.childStore),C.childStore=null,C.expanded=!1)}setRowGroupInfo(C){if(C.key=this.valueSvc.getValue(C.rowGroupColumn,C),(C.key===null||C.key===void 0)&&(0,E._doOnce)(()=>{var h;(0,E._warn)(190,{rowGroupId:(h=C.rowGroupColumn)==null?void 0:h.getId(),data:C.data})},"SSBlock-BadKey"),this.gos.get("groupAllowUnbalanced")&&C.key===""){let h=this.serverSideRowModel.getParams();C.childStore=this.createBean(this.storeFactory.createStore(h,C))}(0,E._getGroupTotalRowCallback)(this.beans.gos)({node:C})&&((0,z._createRowNodeFooter)(C,this.beans),C.sibling&&(C.sibling.uiLevel=C.uiLevel+1))}setMasterDetailInfo(C){let d=this.gos.get("isRowMaster");d!=null?C.master=d(C.data):C.master=!0}updateDataIntoRowNode(C,d){C.updateData(d),this.gos.get("treeData")?(this.setTreeGroupInfo(C),this.setChildCountIntoRowNode(C)):C.group?(this.setChildCountIntoRowNode(C),C.footer||((0,E._getGroupTotalRowCallback)(this.beans.gos)({node:C})?C.sibling?C.sibling.updateData(d):(0,z._createRowNodeFooter)(C,this.beans):C.sibling&&(0,z._destroyRowNodeFooter)(C))):this.gos.get("masterDetail")}setDataIntoRowNode(C,d,s,c){var g;C.stub=!1;let h=this.gos.get("treeData");C.setDataAndId(d,s),h?this.setTreeGroupInfo(C):C.group?this.setRowGroupInfo(C):this.gos.get("masterDetail")&&this.setMasterDetailInfo(C),(h||C.group)&&(this.setGroupDataIntoRowNode(C),this.setChildCountIntoRowNode(C)),(0,E._exists)(d)&&(C.setRowHeight((0,E._getRowHeightForNode)(this.beans,C,!1,c).height),(g=C.sibling)==null||g.setRowHeight((0,E._getRowHeightForNode)(this.beans,C.sibling,!1,c).height))}setChildCountIntoRowNode(C){let d=this.gos.get("getChildCount");d&&C.setAllChildrenCount(d(C.data))}setGroupDataIntoRowNode(C){var c,h;let d=(h=(c=this.showRowGroupCols)==null?void 0:c.getShowRowGroupCols())!=null?h:[],s=this.gos.get("treeData");d.forEach(g=>{if(C.groupData==null&&(C.groupData={}),s)C.groupData[g.getColId()]=C.key;else if(g.isRowGroupDisplayed(C.rowGroupColumn.getId())){let f=this.valueSvc.getValue(C.rowGroupColumn,C);C.groupData[g.getColId()]=f}})}clearDisplayIndex(C){var c;C.clearRowTopAndRowIndex(),C.hasChildren()&&!!C.childStore&&((c=C.childStore)==null||c.clearDisplayIndexes()),C.master&&C.detailNode&&C.detailNode.clearRowTopAndRowIndex()}setDisplayIndex(C,d,s,c){let h=this.gos.get("groupAllowUnbalanced")&&C.group&&C.key==="";if(this.gos.get("groupHideOpenParents")&&C.group&&C.expanded||h?(C.setRowIndex(null),C.setRowTop(null)):(C.setRowIndex(d.value++),C.setRowTop(s.value),s.value+=C.rowHeight),C.setUiLevel(c),C.footer)return;if(C.master&&(C.expanded&&C.detailNode?(C.detailNode.setRowIndex(d.value++),C.detailNode.setRowTop(s.value),s.value+=C.detailNode.rowHeight):C.detailNode&&C.detailNode.clearRowTopAndRowIndex()),C.hasChildren()&&!!C.childStore){let w=C.childStore;C.expanded||h?w.setDisplayIndexes(d,s,h?c:c+1):w.clearDisplayIndexes()}}extractRowBounds(C,d){let s=c=>({rowHeight:c.rowHeight,rowTop:c.rowTop});if(C.rowIndex===d)return s(C);if(C.hasChildren()&&C.expanded&&C.childStore){let c=C.childStore;if(c.isDisplayIndexInStore(d))return c.getRowBounds(d)}else if(C.master&&C.expanded&&C.detailNode&&C.detailNode.rowIndex===d)return s(C.detailNode)}isPixelInNodeRange(C,d){return!(0,E._exists)(C.rowTop)||!(0,E._exists)(C.rowHeight)?!1:d>=C.rowTop&&d<C.rowTop+C.rowHeight}getIndexAtPixel(C,d){if(this.isPixelInNodeRange(C,d))return C.rowIndex;let s=C.master&&C.expanded,c=C.detailNode;if(s&&c&&this.isPixelInNodeRange(c,d))return C.detailNode.rowIndex;if(C.hasChildren()&&C.expanded&&C.childStore){let h=C.childStore;if(h.isPixelInRange(d))return h.getRowIndexAtPixel(d)}return null}createNodeIdPrefix(C){let d=[],s=C;for(;s&&s.level>=0;)s.key===""?d.push(p.GROUP_MISSING_KEY_ID):d.push(s.key),s=s.parent;if(d.length>0)return d.reverse().join("-")}checkOpenByDefault(C){var d;return(d=this.expansionSvc)==null?void 0:d.checkOpenByDefault(C)}}p.BlockUtils=T},8089:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExpandListener=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="ssrmExpandListener"}wireBeans(b){this.serverSideRowModel=b.rowModel,this.storeFactory=b.ssrmStoreFactory}postConstruct(){(0,E._isServerSideRowModel)(this.gos)&&this.addManagedEventListeners({rowGroupOpened:this.onRowGroupOpened.bind(this)})}onRowGroupOpened(b){let C=b.node;if(C.expanded){if(C.master)this.createDetailNode(C);else if((0,E._missing)(C.childStore)){let d=this.serverSideRowModel.getParams();C.childStore=this.createBean(this.storeFactory.createStore(d,C))}}else this.gos.get("purgeClosedRowNodes")&&(0,E._exists)(C.childStore)&&(C.childStore=this.destroyBean(C.childStore));this.eventSvc.dispatchEvent({type:"storeUpdated"})}createDetailNode(b){if((0,E._exists)(b.detailNode))return b.detailNode;let C=new E.RowNode(this.beans);C.detail=!0,C.selectable=!1,C.parent=b,(0,E._exists)(b.id)&&(C.id="detail_"+b.id),C.data=b.data,C.level=b.level+1;let d=200,s=(0,E._getRowHeightForNode)(this.beans,C).height;return C.rowHeight=s||d,b.detailNode=C,C}}p.ExpandListener=z},1999:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FilterListener=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="ssrmFilterListener"}wireBeans(b){this.serverSideRowModel=b.rowModel,this.filterManager=b.filterManager,this.listenerUtils=b.ssrmListenerUtils}postConstruct(){(0,E._isServerSideRowModel)(this.gos)&&this.addManagedEventListeners({advancedFilterEnabledChanged:()=>this.onFilterChanged(!0),filterChanged:()=>this.onFilterChanged()})}onFilterChanged(b){var S,w,M;let C=this.serverSideRowModel.getParams();if(!C)return;let d=C.filterModel,s,c;if((S=this.filterManager)!=null&&S.isAdvFilterEnabled()){s=this.filterManager.getAdvFilterModel();let P=b?Object.keys(d!=null?d:{}):this.getAdvancedFilterColumns(d),O=this.getAdvancedFilterColumns(s);P.forEach(G=>O.add(G)),c=Array.from(O)}else if(s=(M=(w=this.filterManager)==null?void 0:w.getFilterModel())!=null?M:{},b){let P=this.getAdvancedFilterColumns(d);Object.keys(s).forEach(O=>P.add(O)),c=Array.from(P)}else c=this.findChangedColumns(d,s);let h=this.listenerUtils.isSortingWithValueColumn(c),g=this.listenerUtils.isSortingWithSecondaryColumn(c),f={valueColChanged:h,secondaryColChanged:g,changedColumns:c};this.serverSideRowModel.refreshAfterFilter(s,f)}findChangedColumns(b,C){let d={};Object.keys(b).forEach(c=>d[c]=!0),Object.keys(C).forEach(c=>d[c]=!0);let s=[];return Object.keys(d).forEach(c=>{let h=JSON.stringify(b[c]),g=JSON.stringify(C[c]);h!=g&&s.push(c)}),s}getAdvancedFilterColumns(b){let C=new Set;if(!b)return C;let d=s=>{s.filterType==="join"?s.conditions.forEach(c=>d(c)):C.add(s.colId)};return d(b),C}}p.FilterListener=z},5956:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ListenerUtils=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="ssrmListenerUtils"}wireBeans(b){this.pivotResultCols=b.pivotResultCols,this.valueColsSvc=b.valueColsSvc}isSortingWithValueColumn(b){var d,s;let C=((s=(d=this.valueColsSvc)==null?void 0:d.columns)!=null?s:[]).map(c=>c.getColId());for(let c=0;c<b.length;c++)if(C.indexOf(b[c])>-1)return!0;return!1}isSortingWithSecondaryColumn(b){var s;let C=(s=this.pivotResultCols)==null?void 0:s.getPivotResultCols();if(!C)return!1;let d=C.list.map(c=>c.getColId());for(let c=0;c<b.length;c++)if(d.indexOf(b[c])>-1)return!0;return!1}}p.ListenerUtils=z},6533:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SortListener=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="ssrmSortSvc"}wireBeans(b){this.sortSvc=b.sortSvc,this.serverSideRowModel=b.rowModel,this.listenerUtils=b.ssrmListenerUtils}postConstruct(){(0,E._isServerSideRowModel)(this.gos)&&this.addManagedEventListeners({sortChanged:this.onSortChanged.bind(this)})}onSortChanged(){let b=this.serverSideRowModel.getParams();if(!b)return;let C=this.sortSvc.getSortModel(),d=b.sortModel,s=this.findChangedColumnsInSort(C,d),c=this.listenerUtils.isSortingWithValueColumn(s),h=this.listenerUtils.isSortingWithSecondaryColumn(s),g={valueColChanged:c,secondaryColChanged:h,changedColumns:s};this.serverSideRowModel.refreshAfterSort(C,g)}findChangedColumnsInSort(b,C){let d=[];[b,C].forEach(h=>{if(h){let g=h.map(f=>f.colId);d=d.concat(g)}});let s=(h,g)=>{let f=h?h.sort:null,S=g?g.sort:null;return f!==S},c=(h,g)=>{let f=h?C.indexOf(h):-1,S=g?b.indexOf(g):-1;return f!==S};return d.filter(h=>{let g=C.find(S=>S.colId===h),f=b.find(S=>S.colId===h);return s(g,f)||c(g,f)})}}p.SortListener=z},9140:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.NodeManager=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="ssrmNodeManager",this.rowNodes={}}addRowNode(b){let C=b.id;this.rowNodes[C]&&(0,E._warn)(187,{rowId:C,firstData:this.rowNodes[C].data,secondData:b.data}),this.rowNodes[C]=b}removeNode(b){let C=b.id;this.rowNodes[C]&&(this.rowNodes[C]=void 0)}destroy(){this.clear(),super.destroy()}clear(){this.rowNodes={},super.destroy()}}p.NodeManager=z},8646:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ServerSideRowModel=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="rowModel",this.onRowHeightChanged_debounced=(0,E._debounce)(this,this.onRowHeightChanged.bind(this),100),this.pauseStoreUpdateListening=!1,this.started=!1,this.managingPivotResultColumns=!1}wireBeans(b){this.colModel=b.colModel,this.colNames=b.colNames,this.pivotResultCols=b.pivotResultCols,this.rowGroupColsSvc=b.rowGroupColsSvc,this.pivotColsSvc=b.pivotColsSvc,this.valueColsSvc=b.valueColsSvc,this.filterManager=b.filterManager,this.sortSvc=b.sortSvc,this.rowRenderer=b.rowRenderer,this.nodeManager=b.ssrmNodeManager,this.storeFactory=b.ssrmStoreFactory,this.pivotColDefSvc=b.pivotColDefSvc}ensureRowHeightsValid(){return!1}start(){this.started=!0,this.updateDatasource()}destroyDatasource(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=void 0)}postConstruct(){let b=this.resetRootStore.bind(this);this.addManagedEventListeners({newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.onStoreUpdated.bind(this),columnValueChanged:b,columnPivotChanged:b,columnRowGroupChanged:b,columnPivotModeChanged:b}),this.addManagedPropertyListeners(["masterDetail","treeData","removePivotHeaderRowWhenSingleValueColumn","cacheBlockSize"],b),this.addManagedPropertyListener("groupAllowUnbalanced",()=>this.onStoreUpdated()),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights()),this.verifyProps(),this.addManagedPropertyListener("serverSideDatasource",()=>this.updateDatasource())}updateDatasource(){let b=this.gos.get("serverSideDatasource");b&&this.setDatasource(b)}verifyProps(){(0,E._isRowSelection)(this.gos)&&!this.gos.exists("getRowId")&&(0,E._warn)(188)}setDatasource(b){this.started&&(this.destroyDatasource(),this.datasource=b,this.resetRootStore())}applyRowData(b,C,d){let s=this.getRootStore();if(!s)return;let c=s.getChildStore(d);c&&c.applyRowData(b,C,b.rowData.length)}isLastRowIndexKnown(){let b=this.getRootStore();return b?b.isLastRowIndexKnown():!1}onColumnEverything(){var w,M,P,O,G;if(!this.storeParams){this.resetRootStore();return}let b=this.columnsToValueObjects((w=this.rowGroupColsSvc)==null?void 0:w.columns),C=this.columnsToValueObjects((M=this.valueColsSvc)==null?void 0:M.columns),d=this.columnsToValueObjects((P=this.pivotColsSvc)==null?void 0:P.columns),s=j=>{let Y={};j.oldCols.forEach(ce=>Y[ce.id]=ce);let J=j.newCols.every(ce=>{let fe=Y[ce.id];return fe&&delete Y[ce.id],fe&&fe.field===ce.field&&fe.aggFunc===ce.aggFunc}),ne=!j.allowRemovedColumns&&!!Object.values(Y).length;return J&&!ne},c=!(0,E._jsonEquals)(this.storeParams.sortModel,(G=(O=this.sortSvc)==null?void 0:O.getSortModel())!=null?G:[]),h=!s({oldCols:this.storeParams.rowGroupCols,newCols:b}),g=!s({oldCols:this.storeParams.pivotCols,newCols:d}),f=!!(b!=null&&b.length)&&!s({oldCols:this.storeParams.valueCols,newCols:C,allowRemovedColumns:!0});if(c||h||g||f)this.resetRootStore();else{let j=this.createStoreParams();this.storeParams.rowGroupCols=j.rowGroupCols,this.storeParams.pivotCols=j.pivotCols,this.storeParams.valueCols=j.valueCols}}destroyRootStore(){!this.rootNode||!this.rootNode.childStore||(this.rootNode.childStore=this.destroyBean(this.rootNode.childStore),this.nodeManager.clear())}refreshAfterSort(b,C){this.storeParams&&(this.storeParams.sortModel=b);let d=this.getRootStore();d&&(d.refreshAfterSort(C),this.onStoreUpdated())}generateSecondaryColumns(b){var d;if(!this.pivotColDefSvc){this.gos.assertModuleRegistered("SharedPivot",2);return}let C=this.pivotColDefSvc.createColDefsFromFields(b);this.managingPivotResultColumns=!0,(d=this.pivotResultCols)==null||d.setPivotResultCols(C,"rowModelUpdated")}resetRowHeights(){let b=this.resetRowHeightsForAllRowNodes(),C=(0,E._getRowHeightForNode)(this.beans,this.rootNode);if(this.rootNode.setRowHeight(C.height,C.estimated),this.rootNode.sibling){let d=(0,E._getRowHeightForNode)(this.beans,this.rootNode.sibling);this.rootNode.sibling.setRowHeight(d.height,d.estimated)}b&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let b=!1;return this.forEachNode(C=>{let d=(0,E._getRowHeightForNode)(this.beans,C);C.setRowHeight(d.height,d.estimated);let s=C.detailNode;if(s){let c=(0,E._getRowHeightForNode)(this.beans,s);s.setRowHeight(c.height,c.estimated)}if(C.sibling){let c=(0,E._getRowHeightForNode)(this.beans,C.sibling);s.setRowHeight(c.height,c.estimated)}b=!0}),b}resetRootStore(){var b;this.destroyRootStore(),this.rootNode=new E.RowNode(this.beans),this.rootNode.group=!0,this.rootNode.level=-1,this.datasource&&(this.storeParams=this.createStoreParams(),this.rootNode.childStore=this.createBean(this.storeFactory.createStore(this.storeParams,this.rootNode)),this.updateRowIndexesAndBounds()),this.managingPivotResultColumns&&((b=this.pivotResultCols)==null||b.setPivotResultCols(null,"api"),this.managingPivotResultColumns=!1),this.dispatchModelUpdated(!0)}columnsToValueObjects(b=[]){return b.map(C=>({id:C.getId(),aggFunc:C.getAggFunc(),displayName:this.colNames.getDisplayNameForColumn(C,"model"),field:C.getColDef().field}))}createStoreParams(){var h,g,f,S,w,M,P,O,G;let b=this.columnsToValueObjects((h=this.rowGroupColsSvc)==null?void 0:h.columns),C=this.columnsToValueObjects((g=this.valueColsSvc)==null?void 0:g.columns),d=this.columnsToValueObjects((f=this.pivotColsSvc)==null?void 0:f.columns),s=(0,E._isGetRowHeightFunction)(this.gos);return{valueCols:C,rowGroupCols:b,pivotCols:d,pivotMode:this.colModel.isPivotMode(),filterModel:(S=this.filterManager)!=null&&S.isAdvFilterEnabled()?(w=this.filterManager)==null?void 0:w.getAdvFilterModel():(P=(M=this.filterManager)==null?void 0:M.getFilterModel())!=null?P:{},sortModel:(G=(O=this.sortSvc)==null?void 0:O.getSortModel())!=null?G:[],datasource:this.datasource,lastAccessedSequence:{value:0},dynamicRowHeight:s}}getParams(){return this.storeParams}dispatchModelUpdated(b=!1){this.eventSvc.dispatchEvent({type:"modelUpdated",animate:!b,keepRenderedRows:!b,newPage:!1,newData:!1})}onStoreUpdated(){this.pauseStoreUpdateListening||(this.updateRowIndexesAndBounds(),this.dispatchModelUpdated())}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}onRowHeightChanged(){this.updateRowIndexesAndBounds(),this.dispatchModelUpdated()}updateRowIndexesAndBounds(){let b=this.getRootStore();b&&b.setDisplayIndexes({value:0},{value:0},0)}retryLoads(){let b=this.getRootStore();b&&(b.retryLoads(),this.onStoreUpdated())}getRow(b){let C=this.getRootStore();if(C)return C.getRowUsingDisplayIndex(b)}setPaused(b){this.pauseStoreUpdateListening=b}expandAll(b){this.pauseStoreUpdateListening=!0,this.forEachNode(C=>{C.stub||C.hasChildren()&&C.setExpanded(b)}),this.pauseStoreUpdateListening=!1,this.onStoreUpdated()}refreshAfterFilter(b,C){this.storeParams&&(this.storeParams.filterModel=b);let d=this.getRootStore();d&&(d.refreshAfterFilter(C),this.onStoreUpdated())}getRootStore(){var b;return(b=this.rootNode)==null?void 0:b.childStore}getRowCount(){let b=this.getRootStore();return b?b.getDisplayIndexEnd():0}getTopLevelRowCount(){let b=this.getRootStore();return b?b.getRowCount():1}getTopLevelRowDisplayedIndex(b){let C=this.getRootStore();return C?C.getTopLevelRowDisplayedIndex(b):b}getRowBounds(b){let C=this.getRootStore();return C?C.getRowBounds(b):{rowTop:0,rowHeight:(0,E._getRowHeightAsNumber)(this.beans)}}getBlockStates(){let b=this.getRootStore();if(!b)return;let C={};return b.forEachStoreDeep(d=>{Object.entries(d.getBlockStates()).forEach(([s,c])=>{C[s]=c})}),C}getRowIndexAtPixel(b){let C=this.getRootStore();return b<=0||!C?0:C.getRowIndexAtPixel(b)}isEmpty(){return!1}isRowsToRender(){return this.getRootStore()!=null&&this.getRowCount()>0}getType(){return"serverSide"}forEachNode(b){let C=this.getRootStore();C&&C.forEachNodeDeep(b)}forEachNodeAfterFilterAndSort(b,C=!1){let d=this.getRootStore();d&&d.forEachNodeDeepAfterFilterAndSort(b,void 0,C)}executeOnStore(b,C){if(!this.started)return!1;let d=this.getRootStore();if(!d)return!0;let s=d.getChildStore(b);return s&&C(s),!0}refreshStore(b={}){let C=b.route?b.route:[];this.executeOnStore(C,d=>d.refreshStore(b.purge==!0))}getStoreState(){let b=[],C=this.getRootStore();return C&&C.addStoreStates(b),b}getNodesInRangeForSelection(b,C){let d=b.rowIndex,s=C.rowIndex;if(d===null&&s===null)return[];if(s===null)return b?[b]:[];if(d===null)return[C];let c=[],[h,g]=[d,s].sort((f,S)=>f-S);return this.forEachNode(f=>{let S=f.rowIndex;S==null||f.stub||S>=h&&S<=g&&c.push(f)}),c.length!==g-h+1?null:c}getRowNode(b){let C;return this.forEachNode(d=>{d.id===b&&(C=d),d.detailNode&&d.detailNode.id===b&&(C=d.detailNode)}),C}isRowPresent(b){return!!this.getRowNode(b.id)}setRowCount(b,C){let d=this.getRootStore();d&&d.setRowCount(b,C)}destroy(){this.destroyDatasource(),this.destroyRootStore(),super.destroy()}}p.ServerSideRowModel=z},5868:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getServerSideGroupLevelState=p.refreshServerSide=p.flushServerSideAsyncTransactions=p.retryServerSideLoads=p.applyServerSideTransactionAsync=p.applyServerSideRowData=p.applyServerSideTransaction=p.setServerSideSelectionState=p.getServerSideSelectionState=void 0;let E=A(6624);function z(f){var S,w;return(w=(S=f.selectionSvc)==null?void 0:S.getSelectionState())!=null?w:null}p.getServerSideSelectionState=z;function T(f,S){var w;(w=f.selectionSvc)==null||w.setSelectionState(S,"api")}p.setServerSideSelectionState=T;function b(f,S){var w;return(w=f.ssrmTxnManager)==null?void 0:w.applyTransaction(S)}p.applyServerSideTransaction=b;function C(f,S){var P,O,G;let w=(P=S.startRow)!=null?P:0,M=(O=S.route)!=null?O:[];if(w<0){(0,E._warn)(189,{startRow:w});return}(G=(0,E._getServerSideRowModel)(f))==null||G.applyRowData(S.successParams,w,M)}p.applyServerSideRowData=C;function d(f,S,w){var M;return(M=f.ssrmTxnManager)==null?void 0:M.applyTransactionAsync(S,w)}p.applyServerSideTransactionAsync=d;function s(f){var S;(S=(0,E._getServerSideRowModel)(f))==null||S.retryLoads()}p.retryServerSideLoads=s;function c(f){var S;return(S=f.ssrmTxnManager)==null?void 0:S.flushAsyncTransactions()}p.flushServerSideAsyncTransactions=c;function h(f,S){var w;(w=(0,E._getServerSideRowModel)(f))==null||w.refreshStore(S)}p.refreshServerSide=h;function g(f){var S,w;return(w=(S=(0,E._getServerSideRowModel)(f))==null?void 0:S.getStoreState())!=null?w:[]}p.getServerSideGroupLevelState=g},9074:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ServerSideRowModelApiModule=p.ServerSideRowModelModule=void 0;let E=A(6624),z=A(9206),T=A(7672),b=A(5470),C=A(9428),d=A(7205),s=A(1538),c=A(8089),h=A(1999),g=A(5956),f=A(6533),S=A(9140),w=A(8646),M=A(5868),P=A(2758),O=A(8299),G=A(3803),j=A(8865),Y=A(2697),J=A(2234),ne=A(7332);p.ServerSideRowModelModule={moduleName:"ServerSideRowModel",version:d.VERSION,rowModels:["serverSide"],beans:[w.ServerSideRowModel,c.ExpandListener,J.StoreUtils,s.BlockUtils,S.NodeManager,ne.TransactionManager,h.FilterListener,Y.StoreFactory,g.ListenerUtils,O.ServerSideSelectionService,j.LazyBlockLoadingService,G.SsrmRowChildrenService,P.ServerSideExpansionService,f.SortListener],dependsOn:[z.EnterpriseCoreModule,E._SortModule,E._SharedRowSelectionModule,b.SharedPivotModule,C.SharedTreeDataModule,T.LoadingCellRendererModule,T.SkeletonCellRendererModule]},p.ServerSideRowModelApiModule={moduleName:"ServerSideRowModelApi",version:d.VERSION,rowModels:["serverSide"],apiFunctions:{getServerSideSelectionState:M.getServerSideSelectionState,setServerSideSelectionState:M.setServerSideSelectionState,applyServerSideTransaction:M.applyServerSideTransaction,applyServerSideTransactionAsync:M.applyServerSideTransactionAsync,applyServerSideRowData:M.applyServerSideRowData,retryServerSideLoads:M.retryServerSideLoads,flushServerSideAsyncTransactions:M.flushServerSideAsyncTransactions,refreshServerSide:M.refreshServerSide,getServerSideGroupLevelState:M.getServerSideGroupLevelState},dependsOn:[z.EnterpriseCoreModule,E._CsrmSsrmSharedApiModule,E._SsrmInfiniteSharedApiModule]}},2147:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DefaultStrategy=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.selectedState={selectAll:!1,toggledNodes:new Set},this.selectAllUsed=!1,this.selectedNodes={}}wireBeans(b){this.rowModel=b.rowModel,this.selectionSvc=b.selectionSvc}getSelectedState(){return{selectAll:this.selectedState.selectAll,toggledNodes:[...this.selectedState.toggledNodes]}}setSelectedState(b){if(typeof b!="object"){(0,E._error)(115);return}if(!("selectAll"in b)){(0,E._error)(116);return}if(typeof b.selectAll!="boolean"){(0,E._error)(117);return}if(!("toggledNodes"in b)||!Array.isArray(b.toggledNodes))return(0,E._warn)(197);let C={selectAll:b.selectAll,toggledNodes:new Set};b.toggledNodes.forEach(s=>{typeof s=="string"?C.toggledNodes.add(s):(0,E._warn)(196,{key:s})});let d=C.selectAll||C.toggledNodes.size>1;if((0,E._isUsingNewRowSelectionAPI)(this.gos)&&!(0,E._isMultiRowSelection)(this.gos)&&d){(0,E._warn)(198);return}this.selectedState=C}deleteSelectionStateFromParent(b,C){if(this.selectedState.toggledNodes.size===0)return!1;let d=!1;return C.forEach(s=>{this.selectedState.toggledNodes.delete(s)&&(d=!0)}),d}setNodesSelected(b){let{nodes:C,clearSelection:d,newValue:s}=b;if(C.length===0)return 0;let c=d&&s;if(!(0,E._isMultiRowSelection)(this.gos)||c){if(C.length>1)return(0,E._error)(241),0;let g=C[0],f=g.footer?g.sibling:g;return s&&f.selectable?(this.selectedNodes={[f.id]:f},this.selectedState={selectAll:!1,toggledNodes:new Set([f.id])}):(this.selectedNodes={},this.selectedState={selectAll:!1,toggledNodes:new Set}),1}let h=(g,f=s)=>{let S=g.footer?g.sibling:g;f&&S.selectable?this.selectedNodes[S.id]=S:delete this.selectedNodes[S.id],f===this.selectedState.selectAll||!S.selectable?this.selectedState.toggledNodes.delete(S.id):this.selectedState.toggledNodes.add(S.id)};return C.forEach(g=>h(g)),1}processNewRow(b){this.selectedNodes[b.id]&&(this.selectedNodes[b.id]=b)}isNodeSelected(b){let C=this.selectedState.toggledNodes.has(b.id);return this.selectedState.selectAll?!C:C}getSelectedNodes(){return this.selectAllUsed&&(0,E._warn)(199),Object.values(this.selectedNodes)}getSelectedRows(){return this.getSelectedNodes().map(b=>b.data)}getSelectionCount(){return this.selectedState.selectAll?-1:this.selectedState.toggledNodes.size}isEmpty(){var b;return!this.selectedState.selectAll&&!((b=this.selectedState.toggledNodes)!=null&&b.size)}selectAllRowNodes(){this.selectedState={selectAll:!0,toggledNodes:new Set},this.selectedNodes={},this.selectAllUsed=!0}deselectAllRowNodes(){this.selectedState={selectAll:!1,toggledNodes:new Set},this.selectedNodes={}}getSelectAllState(){return this.selectedState.selectAll?this.selectedState.toggledNodes.size>0?null:!0:this.selectedState.toggledNodes.size>0?null:!1}}p.DefaultStrategy=z},9149:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GroupSelectsChildrenStrategy=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.selectedState={selectAllChildren:!1,toggledNodes:new Map}}wireBeans(b){this.rowModel=b.rowModel,this.rowGroupColsSvc=b.rowGroupColsSvc,this.filterManager=b.filterManager,this.selectionSvc=b.selectionSvc}postConstruct(){this.addManagedEventListeners({modelUpdated:()=>this.removeRedundantState(),columnRowGroupChanged:()=>this.selectionSvc.reset("rowGroupChanged")})}getSelectedState(){let b=this.gos.get("treeData"),C=(d,s,c)=>{var g;let h={nodeId:c};if((b||this.rowGroupColsSvc&&s<=((g=this.rowGroupColsSvc)==null?void 0:g.columns.length))&&(h.selectAllChildren=d.selectAllChildren),d.toggledNodes.size){let f=[];d.toggledNodes.forEach((S,w)=>{let M=C(S,s+1,w);f.push(M)}),h.toggledNodes=f}return h};return C(this.selectedState,0)}setSelectedState(b){if("selectAll"in b){(0,E._error)(111);return}let C=(d,s)=>{var f,S;if(typeof d!="object")throw(0,E._error)(243),new Error;if("selectAllChildren"in d&&typeof d.selectAllChildren!="boolean")throw(0,E._error)(244),new Error;if("toggledNodes"in d){if(!Array.isArray(d.toggledNodes))throw(0,E._error)(245),new Error;if(!d.toggledNodes.every(M=>typeof M=="object"&&"nodeId"in M&&typeof M.nodeId=="string"))throw(0,E._error)(246),new Error}let c=(f=d.selectAllChildren)!=null?f:!s,h=(S=d.toggledNodes)==null?void 0:S.map(w=>[w.nodeId,C(w,c)]);if(h==null?void 0:h.some(([,w])=>c===w.selectAllChildren&&w.toggledNodes.size===0))throw(0,E._error)(247),new Error;return{selectAllChildren:c,toggledNodes:new Map(h)}};try{this.selectedState=C(b,!!b.selectAllChildren)}catch(d){}}deleteSelectionStateFromParent(b,C){let d=this.selectedState,s=[...b];for(;d&&s.length;)d=d.toggledNodes.get(s.pop());if(!d)return!1;let c=!1;return C.forEach(h=>{d!=null&&d.toggledNodes.delete(h)&&(c=!0)}),c&&this.removeRedundantState(),c}setNodesSelected({nodes:b,newValue:C,clearSelection:d}){if(b.length===0)return 0;let s=d&&C;if(!(0,E._isMultiRowSelection)(this.gos)||s){if(b.length>1)return(0,E._error)(241),0;this.deselectAllRowNodes()}return b.forEach(c=>{let h=c.footer?c.sibling:c,g=this.getRouteToNode(h);this.recursivelySelectNode(g,this.selectedState,C)}),this.removeRedundantState(),1}isNodeSelected(b){let C=this.getRouteToNode(b);return this.isNodePathSelected(C,this.selectedState)}isNodePathSelected([b,...C],d){if(C.length===0){let s=d.toggledNodes.has(b.id);if(b.hasChildren()){let c=d.toggledNodes.get(b.id);if(c&&c.toggledNodes.size)return}return d.selectAllChildren?!s:s}if(d.toggledNodes.has(b.id)){let s=d.toggledNodes.get(b.id);if(s)return this.isNodePathSelected(C,s)}return d.selectAllChildren}getRouteToNode(b){let C=[],d=b;for(;d.parent;)C.push(d),d=d.parent;return C.reverse()}removeRedundantState(){var C;if((C=this.filterManager)!=null&&C.isAnyFilterPresent())return;let b=(d=this.selectedState,s,c)=>{if(d.toggledNodes.forEach((f,S)=>{b(f,S,d)}),s){let f=this.rowModel.getRowNode(s),S=f==null?void 0:f.childStore;if((S==null?void 0:S.isLastRowIndexKnown())&&d.toggledNodes.size>=S.getRowCount()){for(let P of d.toggledNodes.entries()){let[O,G]=P;if(G.toggledNodes.size>0||!this.rowModel.getRowNode(O))return}d.selectAllChildren=!d.selectAllChildren,d.toggledNodes.clear()}}let h=d.toggledNodes.size===0,g=(c==null?void 0:c.selectAllChildren)===d.selectAllChildren;h&&g&&(c==null||c.toggledNodes.delete(s))};b()}recursivelySelectNode([b,...C],d,s){var f;if(!b)return;if(!C.length){let S=b.selectable;if(d.selectAllChildren===s||!S){d.toggledNodes.delete(b.id);return}let M={selectAllChildren:s,toggledNodes:new Map};d.toggledNodes.set(b.id,M);return}let h=d.toggledNodes.has(b.id),g=(f=d.toggledNodes.get(b.id))!=null?f:{selectAllChildren:d.selectAllChildren,toggledNodes:new Map};h||d.toggledNodes.set(b.id,g),this.recursivelySelectNode(C,g,s),d.selectAllChildren===g.selectAllChildren&&g.toggledNodes.size===0&&d.toggledNodes.delete(b.id)}getSelectedNodes(){(0,E._warn)(202);let b=[];return this.rowModel.forEachNode(C=>{C.isSelected()&&b.push(C)}),b}processNewRow(){}getSelectedRows(){return this.getSelectedNodes().map(b=>b.data)}getSelectionCount(){return-1}isEmpty(){var b;return!this.selectedState.selectAllChildren&&!((b=this.selectedState.toggledNodes)!=null&&b.size)}selectAllRowNodes(){this.selectedState={selectAllChildren:!0,toggledNodes:new Map}}deselectAllRowNodes(){this.selectedState={selectAllChildren:!1,toggledNodes:new Map}}getSelectAllState(){return this.selectedState.selectAllChildren?this.selectedState.toggledNodes.size>0?null:!0:this.selectedState.toggledNodes.size>0?null:!1}}p.GroupSelectsChildrenStrategy=z},2758:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ServerSideExpansionService=void 0;let E=A(2560);class z extends E.BaseExpansionService{constructor(){super(...arguments),this.beanName="expansionSvc",this.queuedRowIds=new Set}wireBeans(b){this.serverSideRowModel=b.rowModel}postConstruct(){this.addManagedEventListeners({columnRowGroupChanged:()=>{this.queuedRowIds.clear()}})}checkOpenByDefault(b){if(!b.isExpandable())return;if(this.queuedRowIds.has(b.id)){this.queuedRowIds.delete(b.id),b.setExpanded(!0);return}let C=this.gos.getCallback("isServerSideGroupOpenByDefault");if(!C)return;let d={data:b.data,rowNode:b};C(d)&&b.setExpanded(!0)}expandRows(b){b.forEach(C=>{let d=this.serverSideRowModel.getRowNode(C);d?d.setExpanded(!0):this.queuedRowIds.add(C)})}expandAll(b){this.serverSideRowModel.expandAll(b)}onGroupExpandedOrCollapsed(){}dispatchExpandedEvent(b){this.eventSvc.dispatchEvent(b)}}p.ServerSideExpansionService=z},8299:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ServerSideSelectionService=void 0;let E=A(6624),z=A(2147),T=A(9149);class b extends E.BaseSelectionService{constructor(){super(...arguments),this.beanName="selectionSvc"}postConstruct(){super.postConstruct(),this.addManagedPropertyListeners(["groupSelectsChildren","rowSelection"],()=>{let h=(0,E._getGroupSelectsDescendants)(this.gos),g=h&&this.selectionStrategy instanceof z.DefaultStrategy?T.GroupSelectsChildrenStrategy:!h&&this.selectionStrategy instanceof T.GroupSelectsChildrenStrategy?z.DefaultStrategy:void 0;g&&(this.destroyBean(this.selectionStrategy),this.selectionStrategy=this.createManagedBean(new g),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api"))}),this.addManagedPropertyListeners(["rowSelection"],()=>{let h=(0,E._getRowSelectionMode)(this.gos);h!==this.selectionMode&&(this.selectionMode=h,this.deselectAllRowNodes({source:"api"}))}),this.selectionMode=(0,E._getRowSelectionMode)(this.gos);let c=(0,E._getGroupSelectsDescendants)(this.gos)?T.GroupSelectsChildrenStrategy:z.DefaultStrategy;this.selectionStrategy=this.createManagedBean(new c)}handleSelectionEvent(s,c,h){if(this.isRowSelectionBlocked(c))return 0;let g=0,f=this.inferNodeSelections(c,s.shiftKey,s.metaKey||s.ctrlKey,h);return f==null?0:("select"in f?(f.reset?this.selectionStrategy.deselectAllRowNodes({source:"api"}):this.selectionStrategy.setNodesSelected({nodes:f.deselect,newValue:!1,source:h}),g=this.selectionStrategy.setNodesSelected({nodes:f.select,newValue:!0,source:h})):g=this.selectionStrategy.setNodesSelected({nodes:[f.node],newValue:f.newValue,clearSelection:f.clearSelection,event:s,source:h}),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged(h),g)}getSelectionState(){return this.selectionStrategy.getSelectedState()}setSelectionState(s,c){if(!(0,E._isRowSelection)(this.gos)){(0,E._warn)(132);return}Array.isArray(s)||(this.selectionStrategy.setSelectedState(s),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged(c))}setNodesSelected(s){if(!(0,E._isRowSelection)(this.gos)&&s.newValue)return(0,E._warn)(132),0;let S=s,{nodes:c}=S,h=wi(S,["nodes"]);if(c.length>1&&this.selectionMode!=="multiRow")return(0,E._warn)(130),0;let g=ge({nodes:c.filter(w=>w.selectable)},h);if(!g.nodes.length)return 0;let f=this.selectionStrategy.setNodesSelected(g);return this.shotgunResetNodeSelectionState(g.source),this.dispatchSelectionChanged(g.source),f}deleteSelectionStateFromParent(s,c){this.selectionStrategy.deleteSelectionStateFromParent(s,c)&&(this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api"))}shotgunResetNodeSelectionState(s){this.beans.rowModel.forEachNode(c=>{if(c.stub)return;let h=this.selectionStrategy.isNodeSelected(c);h!==c.isSelected()&&this.selectRowNode(c,h,void 0,s)})}getSelectedNodes(){return this.selectionStrategy.getSelectedNodes()}getSelectedRows(){return this.selectionStrategy.getSelectedRows()}getSelectionCount(){return this.selectionStrategy.getSelectionCount()}syncInRowNode(s){this.selectionStrategy.processNewRow(s);let c=this.selectionStrategy.isNodeSelected(s);if(c!=!1&&!s.selectable){this.selectionStrategy.setNodesSelected({nodes:[s],newValue:!1,source:"api"}),this.shotgunResetNodeSelectionState(),this.dispatchSelectionChanged("api");return}s.__selected=c}reset(){this.selectionStrategy.deselectAllRowNodes({source:"api"}),this.selectionCtx.reset()}isEmpty(){return this.selectionStrategy.isEmpty()}hasNodesToSelect(){return!0}selectAllRowNodes(s){if(!(0,E._isRowSelection)(this.gos)){(0,E._warn)(132);return}if(C(s),(0,E._isUsingNewRowSelectionAPI)(this.gos)&&!(0,E._isMultiRowSelection)(this.gos))return(0,E._warn)(130);this.selectionStrategy.selectAllRowNodes(s),this.selectionCtx.reset(),this.beans.rowModel.forEachNode(c=>{c.stub||this.selectRowNode(c,!0,void 0,s.source)}),this.dispatchSelectionChanged(s.source)}deselectAllRowNodes(s){C(s),this.selectionStrategy.deselectAllRowNodes(s),this.selectionCtx.reset(),this.beans.rowModel.forEachNode(c=>{c.stub||this.selectRowNode(c,!1,void 0,s.source)}),this.dispatchSelectionChanged(s.source)}getSelectAllState(s){return this.selectionStrategy.getSelectAllState(s)}getBestCostNodeSelection(){return(0,E._warn)(194,{method:"getBestCostNodeSelection"})}updateSelectable(){if(!(0,E._isRowSelection)(this.gos))return;let s=[];this.beans.rowModel.forEachNode(c=>{!this.updateRowSelectable(c,!0)&&c.isSelected()&&s.push(c)}),s.length&&this.setNodesSelected({nodes:s,newValue:!1,source:"selectableChanged"})}updateSelectableAfterGrouping(){return(0,E._error)(194,{method:"updateSelectableAfterGrouping"})}}p.ServerSideSelectionService=b;function C({selectAll:d}){(d==="filtered"||d==="currentPage")&&(0,E._warn)(195,{justCurrentPage:d==="currentPage"})}},3803:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SsrmRowChildrenService=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="rowChildrenSvc"}getHasChildrenValue(b){let C=this.gos.get("treeData"),d=this.gos.get("isServerSideGroup");return!b.stub&&!b.footer&&(C?!!d&&d(b.data):!!b.group)}}p.SsrmRowChildrenService=z},8865:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LazyBlockLoadingService=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="lazyBlockLoadingSvc",this.outboundRequests=0,this.cacheLoadingNodesMap=new Map,this.isCheckQueued=!1,this.nextBlockToLoad=void 0}wireBeans(b){this.rowRenderer=b.rowRenderer,this.rowModel=b.rowModel}postConstruct(){this.maxOutboundRequests=(0,E._getMaxConcurrentDatasourceRequests)(this.gos)}subscribe(b){this.cacheLoadingNodesMap.set(b,new Set)}unsubscribe(b){this.cacheLoadingNodesMap.delete(b)}queueLoadCheck(){this.isCheckQueued||(this.isCheckQueued=!0,window.queueMicrotask(()=>{this.queueLoadAction(),this.isCheckQueued=!1}))}onLoadComplete(){this.outboundRequests-=1,this.queueLoadCheck()}hasAvailableLoadBandwidth(){return this.maxOutboundRequests===void 0?!0:this.outboundRequests<this.maxOutboundRequests}queueLoadAction(){let b=this.getBlockToLoad();if(!b)return;let C=this.nextBlockToLoad&&this.nextBlockToLoad.cache===b.cache&&this.nextBlockToLoad.index===b.index;if(!C&&(!this.nextBlockToLoad||!C)){this.nextBlockToLoad=b,window.clearTimeout(this.loaderTimeout);let d=Number(this.nextBlockToLoad.index),s=this.nextBlockToLoad.cache,c=b.index+b.cache.getBlockSize();this.loaderTimeout=window.setTimeout(()=>{s.isAlive()&&(this.loaderTimeout=void 0,this.attemptLoad(s,d,c),this.nextBlockToLoad=void 0)},this.gos.get("blockLoadDebounceMillis"))}}attemptLoad(b,C,d){this.hasAvailableLoadBandwidth()&&(this.executeLoad(b,C,d),this.queueLoadCheck())}executeLoad(b,C,d){var P,O;let s=b.getSsrmParams(),c={startRow:C,endRow:d,rowGroupCols:s.rowGroupCols,valueCols:s.valueCols,pivotCols:s.pivotCols,pivotMode:s.pivotMode,groupKeys:(P=b.store.getParentNode().getRoute())!=null?P:[],filterModel:s.filterModel,sortModel:s.sortModel},h=this.cacheLoadingNodesMap.get(b),g=()=>{for(let G=0;G<d-C;G++)h.delete(C+G)},f=()=>{for(let G=0;G<d-C;G++)h.add(C+G)},S=G=>{this.onLoadComplete(),b.onLoadSuccess(C,d-C,G),g()},w=()=>{this.onLoadComplete(),b.onLoadFailed(C,d-C),g()},M=this.gos.addGridCommonParams({request:c,success:S,fail:w,parentNode:b.store.getParentNode()});f(),this.outboundRequests+=1,(O=b.getSsrmParams().datasource)==null||O.getRows(M)}getBlockToLoad(){var f,S;let b=this.rowRenderer.firstRenderedRow,C=this.rowRenderer.lastRenderedRow;for(let w=b;w<=C;w++){let M=this.rowModel.getRow(w);if(!M)continue;let P=(f=M.parent)==null?void 0:f.childStore;if(!P)continue;let O=P.getCache(),G=O.getNodes().getBy("node",M);if(!G)continue;let j=this.cacheLoadingNodesMap.get(O);if(!(j!=null&&j.has(G.index))&&(M.__needsRefreshWhenVisible||M.stub&&!M.failedLoad))return{cache:O,index:O.getBlockStartIndex(G.index)}}let d=null,s=null,c=Number.MAX_SAFE_INTEGER;for(let w of this.cacheLoadingNodesMap.keys())w.getNodesToRefresh().forEach(P=>{if(P.rowIndex==null){s=P,d=w;return}let O=w.getNodes().getBy("node",P);if(!O)return;let G=this.cacheLoadingNodesMap.get(w);if(G!=null&&G.has(O.index))return;let j=Math.abs(b-P.rowIndex),Y=Math.abs(P.rowIndex-C);j<c&&(s=P,c=j,d=w),Y<c&&(s=P,c=Y,d=w)});if(!d)return;let h=d,g=(S=h.getNodes().getBy("node",s))==null?void 0:S.index;return g==null?void 0:{cache:h,index:h.getBlockStartIndex(g)}}isRowLoading(b,C){var d,s;return(s=(d=this.cacheLoadingNodesMap.get(b))==null?void 0:d.has(C))!=null?s:!1}}p.LazyBlockLoadingService=z},4905:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LazyCache=void 0;let E=A(6624),z=A(8105),T=A(2314),b=100;class C extends E.BeanStub{wireBeans(s){this.rowRenderer=s.rowRenderer,this.blockUtils=s.ssrmBlockUtils,this.focusSvc=s.focusSvc,this.nodeManager=s.ssrmNodeManager,this.serverSideRowModel=s.rowModel,this.rowNodeSorter=s.rowNodeSorter,this.sortSvc=s.sortSvc,this.lazyBlockLoadingSvc=s.lazyBlockLoadingSvc,this.colModel=s.colModel}constructor(s,c,h,g){super(),this.live=!0,this.removedNodeCache=new Map,this.store=s,this.numberOfRows=c,this.isLastRowKnown=h,this.storeParams=g}postConstruct(){this.lazyBlockLoadingSvc.subscribe(this),this.nodeMap=new T.MultiIndexMap("index","id","node"),this.nodeDisplayIndexMap=new Map,this.nodesToRefresh=new Set,this.defaultNodeIdPrefix=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),this.getRowIdFunc=(0,E._getRowIdCallback)(this.gos),this.isMasterDetail=this.gos.get("masterDetail")}destroy(){this.lazyBlockLoadingSvc.unsubscribe(this),this.numberOfRows=0,this.nodeMap.forEach(s=>this.blockUtils.destroyRowNode(s.node)),this.nodeMap.clear(),this.nodeDisplayIndexMap.clear(),this.nodesToRefresh.clear(),this.live=!1,super.destroy()}getRowByDisplayIndex(s){var P,O,G,j,Y;if(!this.store.isDisplayIndexInStore(s))return;let c=this.nodeDisplayIndexMap.get(s);if(c)return(c.stub||c.__needsRefreshWhenVisible)&&this.lazyBlockLoadingSvc.queueLoadCheck(),c;if(this.gos.get("groupHideOpenParents")||this.gos.get("groupAllowUnbalanced")){let J=this.nodeMap.find(ne=>{var ce;return!!((ce=ne.node.childStore)!=null&&ce.isDisplayIndexInStore(s))});if(J)return(P=J.node.childStore)==null?void 0:P.getRowUsingDisplayIndex(s)}if(s===this.store.getDisplayIndexStart())return this.createStubNode(0,s);let g=this.nodeDisplayIndexMap.get(s-1);if(g){if(this.isMasterDetail&&g.master&&g.expanded)return g.detailNode;if(g.expanded&&((O=g.childStore)!=null&&O.isDisplayIndexInStore(s)))return(G=g.childStore)==null?void 0:G.getRowUsingDisplayIndex(s);let J=this.nodeMap.getBy("node",g);return this.createStubNode(J.index+1,s)}let f=this.getSurroundingNodesByDisplayIndex(s);if(f==null){let J=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-s);return this.createStubNode(J,s)}let{previousNode:S,nextNode:w}=f;if(S&&S.node.expanded&&((j=S.node.childStore)!=null&&j.isDisplayIndexInStore(s)))return(Y=S.node.childStore)==null?void 0:Y.getRowUsingDisplayIndex(s);if(w){let J=w.node.rowIndex-s,ne=w.index-J;return this.createStubNode(ne,s)}let M=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-s);return this.createStubNode(M,s)}createStubNode(s,c){let h=this.store.getRowBounds(c),g=this.createRowAtIndex(s,null,f=>{f.setRowIndex(c),f.setRowTop(h.rowTop),this.nodeDisplayIndexMap.set(c,f)});if(s===0&&this.gos.get("groupHideOpenParents")){let f=this.store.getParentNode().groupData;if(f)for(let S of Object.keys(f))(0,z.setRowNodeGroupValue)(g,this.colModel,S,f[S])}return this.lazyBlockLoadingSvc.queueLoadCheck(),g}getRowByStoreIndex(s){var c;return(c=this.nodeMap.getBy("index",s))==null?void 0:c.node}skipDisplayIndexes(s,c,h){if(s===0)return;let g=(0,E._getRowHeightAsNumber)(this.beans);c.value+=s,h.value+=s*g}setDisplayIndexes(s,c,h){this.nodeDisplayIndexMap.clear();let g={};this.nodeMap.forEach(w=>{g[w.index]=w.node});let f=-1;for(let w of Object.keys(g)){let M=g[w],P=Number(w),O=P-1-f;this.skipDisplayIndexes(O,s,c);let G=P===0;if(M.setFirstChild(G),G&&this.gos.get("groupHideOpenParents")){let j=this.store.getParentNode().groupData;if(j)for(let Y of Object.keys(j))(0,z.setRowNodeGroupValue)(M,this.colModel,Y,G?j[Y]:void 0)}this.blockUtils.setDisplayIndex(M,s,c,h),M.rowIndex!=null&&this.nodeDisplayIndexMap.set(M.rowIndex,M),f=P}let S=this.numberOfRows-1-f;this.skipDisplayIndexes(S,s,c),this.purgeExcessRows()}getRowCount(){return this.numberOfRows}setRowCount(s,c){this.numberOfRows=s,c!=null&&(this.isLastRowKnown=c,c===!1&&(this.numberOfRows+=1)),this.fireStoreUpdatedEvent()}getNodes(){return this.nodeMap}getNodeCachedByDisplayIndex(s){var c;return(c=this.nodeDisplayIndexMap.get(s))!=null?c:null}getNodesToRefresh(){return this.nodesToRefresh}getSurroundingNodesByDisplayIndex(s){let c,h;return this.nodeMap.forEach(g=>{if(s>g.node.rowIndex){(h==null||h.node.rowIndex<g.node.rowIndex)&&(h=g);return}if(c==null||c.node.rowIndex>g.node.rowIndex){c=g;return}}),!h&&!c?null:{previousNode:h,nextNode:c}}getDisplayIndexFromStoreIndex(s){var w,M;let c=this.nodeMap.getBy("index",s);if(c)return c.node.rowIndex;let h,g;if(this.nodeMap.forEach(P=>{if(s>P.index){(g==null||g.index<P.index)&&(g=P);return}if(h==null||h.index>P.index){h=P;return}}),!h)return this.store.getDisplayIndexEnd()-(this.numberOfRows-s);if(!g)return this.store.getDisplayIndexStart()+s;let f=s-g.index;return((M=(w=g.node.childStore)==null?void 0:w.getDisplayIndexEnd())!=null?M:g.node.rowIndex)+f}createRowAtIndex(s,c,h){var S,w;let g=this.nodeMap.getBy("index",s);if(g){let{node:M}=g;if(M.__needsRefreshWhenVisible=!1,this.doesNodeMatch(c,M))return this.blockUtils.updateDataIntoRowNode(M,c),this.nodesToRefresh.delete(M),M;if(this.getRowIdFunc==null&&M.hasChildren()&&M.expanded)return this.nodesToRefresh.delete(M),M;this.destroyRowAtIndex(s)}if(c&&this.getRowIdFunc!=null){let M=this.getRowId(c),P=M&&((S=this.removedNodeCache)==null?void 0:S.get(M));if(P)return(w=this.removedNodeCache)==null||w.delete(M),this.blockUtils.updateDataIntoRowNode(P,c),this.nodeMap.set({id:P.id,node:P,index:s}),this.nodesToRefresh.delete(P),P.__needsRefreshWhenVisible=!1,P;let O=this.nodeMap.getBy("id",M);if(O){this.nodeMap.delete(O);let{node:G,index:j}=O;return this.blockUtils.updateDataIntoRowNode(G,c),this.nodeMap.set({id:G.id,node:G,index:s}),this.nodesToRefresh.delete(G),G.__needsRefreshWhenVisible=!1,this.getBlockStartIndex(j)===this.getBlockStartIndex(s)||this.markBlockForVerify(j),G}}let f=this.blockUtils.createRowNode(this.store.getRowDetails());if(c!=null){let M=this.getPrefixedId(this.store.getIdSequence().value++);this.blockUtils.setDataIntoRowNode(f,c,M,void 0),this.serverSideRowModel.setPaused(!0),this.blockUtils.checkOpenByDefault(f),this.serverSideRowModel.setPaused(!1),this.nodeManager.addRowNode(f)}return this.nodeMap.set({id:f.id,node:f,index:s}),h&&h(f),f}getBlockStates(){let s={},c={};this.nodeMap.forEach(({node:S,index:w})=>{var O;let M=this.getBlockStartIndex(w);!S.stub&&!S.failedLoad&&(s[M]=((O=s[M])!=null?O:0)+1);let P="loaded";S.failedLoad?P="failed":this.lazyBlockLoadingSvc.isRowLoading(this,M)?P="loading":(this.nodesToRefresh.has(S)||S.stub)&&(P="needsLoading"),c[M]||(c[M]=new Set),c[M].add(P)});let h={loading:4,failed:3,needsLoading:2,loaded:1},g=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),f={};return Object.entries(c).forEach(([S,w])=>{var j;let P=[...w].sort((Y,J)=>{var ne,ce;return((ne=h[Y])!=null?ne:0)-((ce=h[J])!=null?ce:0)})[0],O=Number(S)/this.getBlockSize(),G=g?`${g}-${O}`:String(O);f[G]={blockNumber:O,startRow:Number(S),endRow:Number(S)+this.getBlockSize(),pageStatus:P,loadedRowCount:(j=s[S])!=null?j:0}}),f}destroyRowAtIndex(s){let c=this.nodeMap.getBy("index",s);c&&(this.nodeMap.delete(c),this.nodeDisplayIndexMap.delete(c.node.rowIndex),this.nodesToRefresh.size>0?this.removedNodeCache.set(c.node.id,c.node):this.blockUtils.destroyRowNode(c.node),this.nodesToRefresh.delete(c.node))}getSsrmParams(){return this.store.getSsrmParams()}getPrefixedId(s){return this.defaultNodeIdPrefix?this.defaultNodeIdPrefix+"-"+s:s.toString()}markBlockForVerify(s){let[c,h]=this.getBlockBounds(s);this.nodeMap.filter(f=>f.index>=c&&f.index<h).forEach(({node:f})=>{f.__needsRefreshWhenVisible=!0})}doesNodeMatch(s,c){if(c.stub)return!1;let h=this.getRowId(s);return h===null?c.data===s:c.id===h}purgeStubsOutsideOfViewport(){let{firstRenderedRow:s,lastRenderedRow:c}=this.rowRenderer,h=this.getBlockStartIndex(s),[,g]=this.getBlockBounds(c);this.nodeMap.forEach(f=>{this.lazyBlockLoadingSvc.isRowLoading(this,f.index)||f.node.failedLoad||f.node.stub&&(f.index<h||f.index>g)&&this.destroyRowAtIndex(f.index)})}getBlocksDistanceFromRow(s,c){let h={};return s.forEach(({node:g,index:f})=>{let[S,w]=this.getBlockBounds(f);if(S in h)return;let M=Math.abs(g.rowIndex-c),P,O=this.nodeMap.getBy("index",[w-1]);O&&(P=Math.abs(O.node.rowIndex-c));let G=P==null||M<P?M:P;h[S]=G}),Object.entries(h)}purgeExcessRows(){var J;if(this.purgeStubsOutsideOfViewport(),this.store.getDisplayIndexEnd()==null||this.storeParams.maxBlocksInCache==null)return;let{firstRenderedRow:s,lastRenderedRow:c}=this.rowRenderer,h=new Set,g=new Set;this.nodeMap.forEach(({index:ne,node:ce})=>{let fe=this.getBlockStartIndex(ne);h.add(fe),ce.rowIndex>=s&&ce.rowIndex<=c&&g.add(fe)});let f=Math.max(g.size,(J=this.storeParams.maxBlocksInCache)!=null?J:0),w=h.size-f;if(w<=0)return;let M=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER;g.forEach(ne=>{M>ne&&(M=ne),P<ne&&(P=ne)});let O=this.nodeMap.filter(({node:ne,index:ce})=>{let fe=this.getBlockStartIndex(ce);return!(fe>=M&&fe<=P)&&!this.isNodeCached(ne)});if(O.length===0)return;let G=s+(c-s)/2,j=this.getBlocksDistanceFromRow(O,G),Y=this.getBlockSize();j.sort((ne,ce)=>Math.sign(ce[1]-ne[1]));for(let ne=0;ne<Math.min(w,j.length);ne++){let ce=Number(j[ne][0]);for(let fe=ce;fe<ce+Y;fe++){let xe=this.nodeMap.getBy("index",fe);!xe||this.isNodeCached(xe.node)||this.destroyRowAtIndex(fe)}}}isNodeFocused(s){let c=this.focusSvc.getFocusCellToUseAfterRefresh();return!c||c.rowPinned!=null?!1:c.rowIndex===s.rowIndex}isNodeCached(s){let c=this.gos.get("groupAllowUnbalanced")&&s.key==="";return s.isExpandable()&&s.expanded||this.isNodeFocused(s)||c}extractDuplicateIds(s){if(this.getRowIdFunc==null)return[];let c=new Set,h=new Set;return s.forEach(g=>{let f=this.getRowId(g);if(c.has(f)){h.add(f);return}c.add(f)}),[...h]}onLoadSuccess(s,c,h){if(!this.live)return;let g=h.groupLevelInfo;if(this.store.setStoreInfo(g),this.getRowIdFunc!=null){let w=this.extractDuplicateIds(h.rowData);if(w.length>0){let M=w.join(", ");(0,E._warn)(205,{duplicateIdText:M}),this.onLoadFailed(s,c);return}}h.pivotResultFields&&this.serverSideRowModel.generateSecondaryColumns(h.pivotResultFields);let f=this.nodesToRefresh.size>0;if(h.rowData.forEach((w,M)=>{var G;let P=s+M,O=this.nodeMap.getBy("index",P);if((G=O==null?void 0:O.node)!=null&&G.stub){this.createRowAtIndex(P,w);return}if(O&&this.doesNodeMatch(w,O.node)){this.blockUtils.updateDataIntoRowNode(O.node,w),this.nodesToRefresh.delete(O.node),O.node.__needsRefreshWhenVisible=!1;return}this.createRowAtIndex(P,w)}),h.rowCount!=null&&h.rowCount!==-1)this.numberOfRows=h.rowCount,this.isLastRowKnown=!0;else if(c>h.rowData.length)this.numberOfRows=s+h.rowData.length,this.isLastRowKnown=!0;else if(!this.isLastRowKnown){let w=s+h.rowData.length+1;w>this.numberOfRows&&(this.numberOfRows=w)}this.isLastRowKnown&&this.nodeMap.filter(M=>M.index>=this.numberOfRows).forEach(M=>this.destroyRowAtIndex(M.index)),this.fireStoreUpdatedEvent();let S=this.nodesToRefresh.size===0;f&&S&&this.fireRefreshFinishedEvent()}fireRefreshFinishedEvent(){this.nodesToRefresh.size===0&&(this.removedNodeCache.forEach(c=>{this.blockUtils.destroyRowNode(c)}),this.removedNodeCache=new Map,this.store.fireRefreshFinishedEvent())}isStoreFullyLoaded(){let s=this.isLastRowKnown,c=this.nodeMap.getSize()===this.numberOfRows;if(!s||!c||this.nodesToRefresh.size>0)return;let h=-1;return this.nodeMap.find(f=>(h+=1,!!(f.index!==h||f.node.__needsRefreshWhenVisible||f.node.stub)))==null}isLastRowIndexKnown(){return this.isLastRowKnown}onLoadFailed(s,c){var f;if(!this.live)return;let h=this.nodesToRefresh.size>0;for(let S=s;S<s+c&&S<this.getRowCount();S++){let{node:w}=(f=this.nodeMap.getBy("index",S))!=null?f:{};w&&this.nodesToRefresh.delete(w),(!w||!w.stub)&&(w&&!w.stub&&this.destroyRowAtIndex(S),w=this.createRowAtIndex(S)),w.__needsRefreshWhenVisible=!1,w.failedLoad=!0}let g=this.nodesToRefresh.size===0;h&&g&&this.fireRefreshFinishedEvent(),this.fireStoreUpdatedEvent()}markNodesForRefresh(){this.nodeMap.forEach(s=>{s.node.stub&&!s.node.failedLoad||this.nodesToRefresh.add(s.node)}),this.lazyBlockLoadingSvc.queueLoadCheck(),this.isLastRowKnown&&this.numberOfRows===0&&(this.numberOfRows=1,this.isLastRowKnown=!1,this.fireStoreUpdatedEvent())}isNodeInCache(s){return!!this.nodeMap.getBy("id",s)}fireStoreUpdatedEvent(){this.live&&this.store.fireStoreUpdatedEvent()}getRowId(s){var g;if(this.getRowIdFunc==null)return null;let{level:c}=this.store.getRowDetails(),h=(g=this.store.getParentNode().getRoute())!=null?g:[];return this.getRowIdFunc({data:s,parentKeys:h.length>0?h:void 0,level:c})}getOrderedNodeMap(){let s={};return this.nodeMap.forEach(c=>s[c.index]=c),s}clearDisplayIndexes(){this.nodeDisplayIndexMap.clear()}clientSideSortRows(){var f,S;let s=(S=(f=this.sortSvc)==null?void 0:f.getSortOptions())!=null?S:[];if(!s.some(w=>w.sort!=null)||!this.rowNodeSorter)return;let h=new Array(this.nodeMap.getSize());this.nodeMap.forEach(w=>h[w.index]=w.node),this.nodeMap.clear(),this.rowNodeSorter.doFullSort(h,s).forEach((w,M)=>{this.nodeMap.set({id:w.id,node:w,index:M})})}updateRowNodes(s){let c=[];return s.forEach(h=>{let g=this.getRowId(h),f=this.nodeMap.getBy("id",g);f&&(this.blockUtils.updateDataIntoRowNode(f.node,h),c.push(f.node))}),c}insertRowNodes(s,c){let h=this.store.getRowCount()-(this.store.getParentNode().sibling?1:0),g=c==null&&this.isLastRowKnown?h:c;if(g==null||h<g)return[];let f={};s.forEach(P=>{let O=this.getRowId(P);O&&this.isNodeInCache(O)||(f[O]=P)});let S=Object.values(f),w=S.length;if(w===0)return[];let M=this.nodeMap.filter(P=>P.index>=g);return M.forEach(P=>this.nodeMap.delete(P)),M.forEach(P=>{this.nodeMap.set({node:P.node,index:P.index+w,id:P.id})}),this.numberOfRows+=w,S.map((P,O)=>this.createRowAtIndex(g+O,P))}removeRowNodes(s){let c=[],h=[],g=0,f=[...s],S=this.getOrderedNodeMap(),w=-1;for(let M of Object.keys(S)){w+=1;let P=S[M],O=f.findIndex(j=>j===P.id);if(O!==-1){f.splice(O,1),this.destroyRowAtIndex(Number(M)),c.push(P.node),g+=1;continue}if(g===0)continue;let G=Number(M);w!==G&&h.push(P.node),this.nodeMap.delete(P),this.nodeMap.set({id:P.id,node:P.node,index:G-g})}return this.numberOfRows-=this.isLastRowIndexKnown()?s.length:g,f.length>0&&h.length>0&&(h.forEach(M=>M.__needsRefreshWhenVisible=!0),this.lazyBlockLoadingSvc.queueLoadCheck()),c}getBlockSize(){return this.storeParams.cacheBlockSize||b}getBlockStartIndex(s){let c=this.getBlockSize();return s-s%c}getBlockBounds(s){let c=this.getBlockStartIndex(s),h=this.getBlockSize();return[c,c+h]}}p.LazyCache=C},5330:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LazyStore=void 0;let E=A(6624),z=A(6432),T=A(4905);class b extends E.BeanStub{wireBeans(d){this.blockUtils=d.ssrmBlockUtils,this.storeUtils=d.ssrmStoreUtils,this.selectionSvc=d.selectionSvc,this.rowGroupColsSvc=d.rowGroupColsSvc}constructor(d,s,c){super(),this.idSequence={value:0},this.ssrmParams=d,this.parentRowNode=c,this.storeParams=s,this.level=c.level+1,this.group=d.rowGroupCols?this.level<d.rowGroupCols.length:!1,this.leafGroup=d.rowGroupCols?this.level===d.rowGroupCols.length-1:!1,this.info={}}postConstruct(){var c;let d=1;if(this.level===0&&(d=(c=this.storeUtils.getServerSideInitialRowCount())!=null?c:1,this.eventSvc.dispatchEventOnce({type:"rowCountReady"})),this.cache=this.createManagedBean(new T.LazyCache(this,d,!1,this.storeParams)),!this.gos.get("treeData")&&this.group&&this.rowGroupColsSvc){let h=this.ssrmParams.rowGroupCols[this.level];this.groupField=h.field,this.rowGroupColumn=this.rowGroupColsSvc.columns[this.level]}}destroy(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.destroyBean(this.cache),super.destroy()}applyRowData(d,s,c){this.cache.onLoadSuccess(s,c,d)}applyTransaction(d){var O,G,j;let s=(0,E._getRowIdCallback)(this.gos);if(!s)return(0,E._warn)(206),{status:E.ServerSideTransactionResultStatus.Cancelled};let c=this.gos.getCallback("isApplyServerSideTransaction");if(c){let Y={transaction:d,parentNode:this.parentRowNode,groupLevelInfo:this.info};if(!c(Y))return{status:E.ServerSideTransactionResultStatus.Cancelled}}let h=this.cache.isStoreFullyLoaded(),g;(O=d.update)!=null&&O.length&&(g=this.cache.updateRowNodes(d.update));let f;if((G=d.add)!=null&&G.length){let Y=d.addIndex;Y!=null&&Y<0&&(Y=void 0),f=this.cache.insertRowNodes(d.add,Y)}let S;if((j=d.remove)!=null&&j.length){let Y=d.remove.map(ne=>{var ce;return s({level:this.level,parentKeys:(ce=this.parentRowNode.getRoute())!=null?ce:[],data:ne})}),J=[...new Set(Y)];S=this.cache.removeRowNodes(J)}let w=this.gos.get("serverSideEnableClientSideSort"),M=(g==null?void 0:g.length)||(f==null?void 0:f.length);return h&&w&&M&&this.cache.clientSideSortRows(),this.updateSelectionAfterTransaction(g,S),{status:E.ServerSideTransactionResultStatus.Applied,update:g,add:f,remove:S}}updateSelectionAfterTransaction(d,s){if(!this.selectionSvc)return;let c=[];d==null||d.forEach(h=>{h.isSelected()&&!h.selectable&&c.push(h)}),s==null||s.forEach(h=>{h.isSelected()&&c.push(h)}),c.length&&this.selectionSvc.setNodesSelected({newValue:!1,clearSelection:!1,nodes:c,source:"rowDataChanged"})}clearDisplayIndexes(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.cache.getNodes().forEach(d=>this.blockUtils.clearDisplayIndex(d.node)),this.parentRowNode.sibling&&this.blockUtils.clearDisplayIndex(this.parentRowNode.sibling),this.cache.clearDisplayIndexes()}getDisplayIndexStart(){return this.displayIndexStart}getDisplayIndexEnd(){return this.displayIndexEnd}getRowCount(){return this.parentRowNode.sibling?this.cache.getRowCount()+1:this.cache.getRowCount()}setRowCount(d,s){this.cache.setRowCount(d,s)}isDisplayIndexInStore(d){return this.cache.getRowCount()===0?!1:this.displayIndexStart<=d&&d<this.getDisplayIndexEnd()}setDisplayIndexes(d,s,c){this.displayIndexStart=d.value,this.topPx=s.value;let h=this.parentRowNode.level>-1&&(0,E._getGroupTotalRowCallback)(this.gos)({node:this.parentRowNode});h||(0,z._destroyRowNodeFooter)(this.parentRowNode),h==="top"&&((0,z._createRowNodeFooter)(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,d,s,c)),this.cache.setDisplayIndexes(d,s,c),h==="bottom"&&((0,z._createRowNodeFooter)(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,d,s,c)),this.displayIndexEnd=d.value,this.heightPx=s.value-this.topPx}forEachStoreDeep(d,s={value:0}){d(this,s.value++),this.cache.getNodes().forEach(c=>{let h=c.node.childStore;h&&h.forEachStoreDeep(d,s)})}forEachNodeDeep(d,s={value:0}){this.cache.getNodes().forEach(c=>{d(c.node,s.value++);let h=c.node.childStore;h&&h.forEachNodeDeep(d,s)})}forEachNodeDeepAfterFilterAndSort(d,s={value:0},c=!1){let h=this.parentRowNode.level>-1&&(0,E._getGroupTotalRowCallback)(this.gos)({node:this.parentRowNode});h==="top"&&d(this.parentRowNode.sibling,s.value++);let g=this.cache.getOrderedNodeMap();for(let f of Object.values(g)){d(f.node,s.value++);let S=f.node.childStore;S&&S.forEachNodeDeepAfterFilterAndSort(d,s,c)}h==="bottom"&&d(this.parentRowNode.sibling,s.value++)}retryLoads(){this.cache.getNodes().forEach(({node:d})=>{d.failedLoad&&(d.failedLoad=!1,d.__needsRefreshWhenVisible=!0,d.stub=!0)}),this.forEachChildStoreShallow(d=>d.retryLoads()),this.fireStoreUpdatedEvent()}getRowUsingDisplayIndex(d){return this.parentRowNode.sibling&&d===this.parentRowNode.sibling.rowIndex?this.parentRowNode.sibling:this.cache.getRowByDisplayIndex(d)}getRowBounds(d){var w;if(!this.isDisplayIndexInStore(d))return null;let s=this.cache.getNodeCachedByDisplayIndex(d);if(s){let M=this.blockUtils.extractRowBounds(s,d);if(M)return M}let{previousNode:c,nextNode:h}=(w=this.cache.getSurroundingNodesByDisplayIndex(d))!=null?w:{};if(c){let M=this.blockUtils.extractRowBounds(c.node,d);if(M!=null)return M}let g=(0,E._getRowHeightAsNumber)(this.beans);if(h){let M=(h.node.rowIndex-d)*g;return{rowTop:h.node.rowTop-M,rowHeight:g}}let f=this.topPx+this.heightPx,S=(this.getDisplayIndexEnd()-d)*g;return{rowTop:f-S,rowHeight:g}}isPixelInRange(d){return d>=this.topPx&&d<this.topPx+this.heightPx}getRowIndexAtPixel(d){if(d<this.topPx)return this.getDisplayIndexStart();if(d>=this.topPx+this.heightPx)return this.getDisplayIndexEnd()-1;if(this.parentRowNode.sibling&&d>this.parentRowNode.sibling.rowTop&&d<this.parentRowNode.sibling.rowTop+this.parentRowNode.sibling.rowHeight)return this.parentRowNode.sibling.rowIndex;let s=Number.MAX_SAFE_INTEGER,c=null,h=Number.MAX_SAFE_INTEGER,g=null;if(this.cache.getNodes().forEach(({node:M})=>{let P=Math.abs(d-M.rowTop);if(M.rowTop<d){P<s&&(s=P,c=M);return}P<h&&(h=P,g=M)}),c=c,g=g,c){let M=this.blockUtils.getIndexAtPixel(c,d);if(M!=null)return M}let f=(0,E._getRowHeightAsNumber)(this.beans);if(g){let M=g.rowTop,P=Math.ceil((M-d)/f);return g.rowIndex-P}let S=this.topPx+this.heightPx,w=Math.floor((S-d)/f);return this.getDisplayIndexEnd()-w}getChildStore(d){return this.storeUtils.getChildStore(d,this,s=>{let c=this.cache.getNodes().find(h=>h.node.key==s);return c?c.node:null})}forEachChildStoreShallow(d){this.cache.getNodes().forEach(({node:s})=>{s.childStore&&d(s.childStore)})}refreshAfterSort(d){if(this.storeUtils.isServerSideSortAllLevels()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,d)){let c=this.cache.isStoreFullyLoaded(),h=this.gos.get("serverSideEnableClientSideSort");if(!(c&&h)){let f=this.cache.getRowCount(),S=this.cache.isLastRowIndexKnown();this.destroyBean(this.cache),this.cache=this.createManagedBean(new T.LazyCache(this,f,S,this.storeParams));return}this.cache.clientSideSortRows()}this.forEachChildStoreShallow(c=>c.refreshAfterSort(d))}refreshAfterFilter(d){if(!this.storeUtils.isServerSideOnlyRefreshFilteredGroups()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,d)){this.refreshStore(!0);return}this.forEachChildStoreShallow(c=>c.refreshAfterFilter(d))}refreshStore(d){if(d){this.destroyBean(this.cache),this.cache=this.createManagedBean(new T.LazyCache(this,1,!1,this.storeParams)),this.fireStoreUpdatedEvent();return}this.cache.markNodesForRefresh()}getTopLevelRowDisplayedIndex(d){let s=this.cache.getDisplayIndexFromStoreIndex(d);return s!=null?s:d}isLastRowIndexKnown(){return this.cache.isLastRowIndexKnown()}getRowNodesInRange(d,s){return this.cache.getNodes().filter(({node:c})=>c.rowIndex>=d.rowIndex&&c.rowIndex<=s.rowIndex).map(({node:c})=>c)}addStoreStates(d){var s;d.push({route:(s=this.parentRowNode.getRoute())!=null?s:[],rowCount:this.getRowCount(),lastRowIndexKnown:this.isLastRowIndexKnown(),info:this.info,maxBlocksInCache:this.storeParams.maxBlocksInCache,cacheBlockSize:this.storeParams.cacheBlockSize}),this.forEachChildStoreShallow(c=>c.addStoreStates(d))}getIdSequence(){return this.idSequence}getParentNode(){return this.parentRowNode}getRowDetails(){return{field:this.groupField,group:this.group,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn}}getSsrmParams(){return this.ssrmParams}setStoreInfo(d){d&&Object.assign(this.info,d)}fireStoreUpdatedEvent(){this.eventSvc.dispatchEvent({type:"storeUpdated"})}fireRefreshFinishedEvent(){this.eventSvc.dispatchEvent({type:"storeRefreshed",route:this.parentRowNode.getRoute()})}getBlockStates(){return this.cache.getBlockStates()}getStoreBounds(){return{topPx:this.topPx,heightPx:this.heightPx}}getCache(){return this.cache}}p.LazyStore=b},2314:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MultiIndexMap=void 0;class A{constructor(...z){this.indexes=z,this.maps=new Map(this.indexes.map(T=>[T,new Map]))}getSize(){return this.maps.get(this.indexes[0]).size}getBy(z,T){return this.maps.get(z).get(T)}set(z){this.indexes.forEach(T=>{this.maps.get(T).set(z[T],z)})}delete(z){this.indexes.forEach(T=>{this.maps.get(T).delete(z[T])})}clear(){this.maps.forEach(z=>z.clear())}getIterator(z){return this.maps.get(z).values()}forEach(z){let T=this.getIterator(this.indexes[0]),b;for(;(b=T.next())&&!b.done;)z(b.value)}find(z){let T=this.getIterator(this.indexes[0]),b;for(;(b=T.next())&&!b.done;)if(z(b.value))return b.value}filter(z){let T=this.getIterator(this.indexes[0]),b,C=[];for(;(b=T.next())&&!b.done;)z(b.value)&&C.push(b.value);return C}}p.MultiIndexMap=A},2697:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StoreFactory=void 0;let E=A(6624),z=A(5330);class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="ssrmStoreFactory"}wireBeans(C){this.colModel=C.colModel,this.rowGroupColsSvc=C.rowGroupColsSvc,this.pivotColsSvc=C.pivotColsSvc,this.rowAutoHeight=C.rowAutoHeight}createStore(C,d){let s=this.getStoreParams(C,d);return new z.LazyStore(C,s,d)}getStoreParams(C,d){let s=this.getLevelSpecificParams(d),c=this.getBlockSize(s),h=this.getMaxBlocksInCache(C,s);return{cacheBlockSize:c,maxBlocksInCache:h}}getMaxBlocksInCache(C,d){var h;let s=d&&d.maxBlocksInCache!=null?d.maxBlocksInCache:this.gos.get("maxBlocksInCache");if(s!=null&&s>=0){if(C.dynamicRowHeight){(0,E._warn)(203);return}if((h=this.rowAutoHeight)!=null&&h.active){(0,E._warn)(204);return}return s}}getBlockSize(C){let d=C&&C.cacheBlockSize!=null?C.cacheBlockSize:this.gos.get("cacheBlockSize");return d!=null&&d>0?d:100}getLevelSpecificParams(C){var h,g,f,S;let d=this.gos.getCallback("getServerSideGroupLevelParams");if(!d)return;let s={level:C.level+1,parentRowNode:C.level>=0?C:void 0,rowGroupColumns:(g=(h=this.rowGroupColsSvc)==null?void 0:h.columns)!=null?g:[],pivotColumns:(S=(f=this.pivotColsSvc)==null?void 0:f.columns)!=null?S:[],pivotMode:this.colModel.isPivotMode()};return d(s)}}p.StoreFactory=T},2234:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StoreUtils=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="ssrmStoreUtils"}wireBeans(b){this.colModel=b.colModel,this.serverSideRowModel=b.rowModel,this.storeFactory=b.ssrmStoreFactory}getChildStore(b,C,d){if(!(b!=null&&b.length))return C;let s=b[0],c=d(s);if(c){if(b.length===1&&!c.childStore){let f=this.serverSideRowModel.getParams();c.childStore=this.createBean(this.storeFactory.createStore(f,c))}let h=b.slice(1,b.length),g=c.childStore;return g?g.getChildStore(h):null}return null}isServerRefreshNeeded(b,C,d){if(d.valueColChanged||d.secondaryColChanged)return!0;let s=b.level+1;if(!(s<C.length))return!0;let g=C[s].id;return d.changedColumns.indexOf(g)>-1?!0:this.colModel.getCols().filter(M=>M.getColDef().showRowGroup&&d.changedColumns.includes(M.getId())).map(M=>M.getColDef().showRowGroup).some(M=>M===!0||M===g)}getServerSideInitialRowCount(){return this.gos.get("serverSideInitialRowCount")}isServerSideSortAllLevels(){return this.gos.get("serverSideSortAllLevels")&&(0,E._isServerSideRowModel)(this.gos)}isServerSideOnlyRefreshFilteredGroups(){return this.gos.get("serverSideOnlyRefreshFilteredGroups")&&(0,E._isServerSideRowModel)(this.gos)}}p.StoreUtils=z},7332:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TransactionManager=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="ssrmTxnManager",this.asyncTransactions=[]}wireBeans(b){this.valueCache=b.valueCache,this.serverSideRowModel=b.rowModel,this.selectionSvc=b.selectionSvc}postConstruct(){(0,E._isServerSideRowModel)(this.gos)}applyTransactionAsync(b,C){this.asyncTransactionsTimeout==null&&this.scheduleExecuteAsync(),this.asyncTransactions.push({transaction:b,callback:C})}scheduleExecuteAsync(){let b=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimeout=window.setTimeout(()=>{this.executeAsyncTransactions()},b)}executeAsyncTransactions(){var c;if(!this.asyncTransactions)return;let b=[],C=[],d=[],s=!1;this.asyncTransactions.forEach(h=>{let g;if(this.serverSideRowModel.executeOnStore(h.transaction.route,w=>{g=w.applyTransaction(h.transaction)})?g==null&&(g={status:E.ServerSideTransactionResultStatus.StoreNotFound}):g={status:E.ServerSideTransactionResultStatus.StoreNotStarted},C.push(g),g.status==E.ServerSideTransactionResultStatus.StoreLoading){d.push(h);return}h.callback&&b.push(()=>h.callback(g)),g.status===E.ServerSideTransactionResultStatus.Applied&&(s=!0)}),b.length>0&&window.setTimeout(()=>{b.forEach(h=>h())},0),this.asyncTransactionsTimeout=void 0,this.asyncTransactions=d,s&&((c=this.valueCache)==null||c.onDataChanged(),this.eventSvc.dispatchEvent({type:"storeUpdated"})),C.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:C})}flushAsyncTransactions(){this.asyncTransactionsTimeout!=null&&clearTimeout(this.asyncTransactionsTimeout),this.executeAsyncTransactions()}applyTransaction(b){var s;let C;if(this.serverSideRowModel.executeOnStore(b.route,c=>{C=c.applyTransaction(b)}))if(C){if((s=this.valueCache)==null||s.onDataChanged(),C.remove&&this.selectionSvc){let c=C.remove.map(h=>h.id);this.selectionSvc.deleteSelectionStateFromParent(b.route||[],c)}return this.eventSvc.dispatchEvent({type:"storeUpdated"}),C}else return{status:E.ServerSideTransactionResultStatus.StoreNotFound};else return{status:E.ServerSideTransactionResultStatus.StoreNotStarted}}}p.TransactionManager=z},4737:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClientSideValuesExtractor=void 0;let E=A(6624),z=A(2270);class T{constructor(C,d,s,c,h,g,f,S,w,M){this.rowModel=C,this.filterParams=d,this.createKey=s,this.caseFormat=c,this.valueSvc=h,this.treeDataOrGrouping=g,this.treeData=f,this.groupAllowUnbalanced=S,this.addManagedEventListeners=w,this.rowGroupColsSvc=M}extractUniqueValuesAsync(C,d){return new E.AgPromise(s=>{if(this.rowModel.isRowDataLoaded())s(this.extractUniqueValues(C,d));else{let[c]=this.addManagedEventListeners({rowCountReady:()=>{c==null||c(),s(this.extractUniqueValues(C,d))}})}})}extractUniqueValues(C,d){var w;let s=new Map,c=this.extractExistingFormattedKeys(d),h=new Set,g=this.treeData,f=(w=this.rowGroupColsSvc)==null?void 0:w.columns,S=(M,P)=>{let O=this.caseFormat(M);if(!h.has(O)){h.add(O);let G=M,j=(0,E._makeNull)(P),Y=c==null?void 0:c.get(O);Y!=null&&(G=Y,j=d.get(Y)),s.set(G,j)}};return this.rowModel.forEachLeafNode(M=>{if(!M.data||!C(M))return;if(this.treeDataOrGrouping){this.addValueForTreeDataOrGrouping(M,g,f,S);return}let P=this.getValue(M);P!=null&&Array.isArray(P)?(P.forEach(O=>{S(this.createKey(O,M),O)}),P.length===0&&S(null,null)):S(this.createKey(P,M),P)}),s}addValueForTreeDataOrGrouping(C,d,s=[],c){var f,S,w;let h;if(d){if((f=C.childrenAfterGroup)!=null&&f.length)return;h=(w=C.getRoute())!=null?w:[(S=C.key)!=null?S:C.id]}else h=s.map(M=>this.valueSvc.getKeyForNode(M,C)),h.push(this.getValue(C));let g=(0,z.processDataPath)(h,d,this.groupAllowUnbalanced);c(this.createKey(g),g)}getValue(C){return this.filterParams.getValue(C)}extractExistingFormattedKeys(C){if(!C)return null;let d=new Map;return C.forEach((s,c)=>{d.set(this.caseFormat(c),c)}),d}}p.ClientSideValuesExtractor=T},4510:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetValueModelFilteringKeys=void 0;class A{constructor({caseFormat:z}){this.filteringKeys=null,this.filteringKeysCaseFormatted=null,this.hasNoAppliedFilteringKeys=!1,this.caseFormat=z}allFilteringKeys(){return this.filteringKeys}allFilteringKeysCaseFormatted(){return this.filteringKeysCaseFormatted}setFilteringKeys(z){this.filteringKeys=new Set(z),this.hasNoAppliedFilteringKeys=!this.filteringKeys||this.filteringKeys.size===0,this.filteringKeysCaseFormatted=new Set,this.filteringKeys.forEach(T=>this.filteringKeysCaseFormatted.add(this.caseFormat(T)))}addFilteringKey(z){this.filteringKeys==null&&(this.filteringKeys=new Set,this.filteringKeysCaseFormatted=new Set),this.filteringKeys.add(z),this.filteringKeysCaseFormatted.add(this.caseFormat(z)),this.hasNoAppliedFilteringKeys&&(this.hasNoAppliedFilteringKeys=!1)}hasCaseFormattedFilteringKey(z){return this.filteringKeysCaseFormatted.has(this.caseFormat(z))}hasFilteringKey(z){return this.filteringKeys.has(z)}reset(){this.filteringKeys=null,this.filteringKeysCaseFormatted=null,this.hasNoAppliedFilteringKeys=!1}}p.SetValueModelFilteringKeys=A},8053:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FlatSetDisplayValueModel=void 0;let E=A(3335);class z{constructor(b,C,d,s){this.valueSvc=b,this.valueFormatter=C,this.formatter=d,this.column=s,this.displayedKeys=[]}updateDisplayedValuesToAllAvailable(b,C,d){this.displayedKeys=Array.from(d)}updateDisplayedValuesToMatchMiniFilter(b,C,d,s,c){this.displayedKeys=[];for(let h of d)if(h==null)c&&this.displayedKeys.push(h);else{let g=b(h),f=this.valueSvc.formatValue(this.column,null,g,this.valueFormatter,!1),S=this.formatter(f);s(S)&&this.displayedKeys.push(h)}}getDisplayedValueCount(){return this.displayedKeys.length}getDisplayedItem(b){return this.displayedKeys[b]}getSelectAllItem(){return E.SET_FILTER_SELECT_ALL}getAddSelectionToFilterItem(){return E.SET_FILTER_ADD_SELECTION_TO_FILTER}getDisplayedKeys(){return this.displayedKeys}forEachDisplayedKey(b){this.displayedKeys.forEach(b)}someDisplayedKey(b){return this.displayedKeys.some(b)}hasGroups(){return!1}refresh(){}}p.FlatSetDisplayValueModel=z},3335:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SET_FILTER_ADD_SELECTION_TO_FILTER=p.SET_FILTER_SELECT_ALL=void 0,p.SET_FILTER_SELECT_ALL="__AG_SELECT_ALL__",p.SET_FILTER_ADD_SELECTION_TO_FILTER="__AG_ADD_SELECTION_TO_FILTER__"},3003:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DEFAULT_LOCALE_TEXT=void 0,p.DEFAULT_LOCALE_TEXT={loadingOoo:"Loading...",blanks:"(Blanks)",searchOoo:"Search...",selectAll:"(Select All)",selectAllSearchResults:"(Select All Search Results)",addCurrentSelectionToFilter:"Add current selection to filter",noMatches:"No matches."}},2734:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetFilter=void 0;let E=A(6624),z=A(7904),T=A(3335),b=A(3003),C=A(105),d=A(5355),s=A(2270),c=A(4366);class h extends E.ProvidedFilter{wireBeans(M){this.rowGroupColsSvc=M.rowGroupColsSvc,this.valueSvc=M.valueSvc,this.dataTypeSvc=M.dataTypeSvc}constructor(){super("setFilter"),this.filterType="set",this.eMiniFilter=E.RefPlaceholder,this.eFilterLoading=E.RefPlaceholder,this.eSetFilterList=E.RefPlaceholder,this.eFilterNoMatches=E.RefPlaceholder,this.caseSensitive=!1,this.treeDataTreeList=!1,this.groupingTreeList=!1,this.hardRefreshVirtualList=!1,this.noValueFormatterSupplied=!1,this.filterModelFormatter=new d.SetFilterModelFormatter,this.updateSetFilterOnParamsChange=M=>{var G,j;this.setFilterParams=M,this.caseSensitive=!!M.caseSensitive;let P=(G=M.keyCreator)!=null?G:M.colDef.keyCreator;this.setValueFormatter(M.valueFormatter,P,!!M.treeList,!!M.colDef.refData);let O=M.column.getId().startsWith(E.GROUP_AUTO_COLUMN_ID);this.treeDataTreeList=this.gos.get("treeData")&&!!M.treeList&&O,this.groupingTreeList=!!((j=this.rowGroupColsSvc)!=null&&j.columns.length)&&!!M.treeList&&O,this.createKey=this.generateCreateKey(P,this.treeDataTreeList||this.groupingTreeList)}}postConstruct(){super.postConstruct()}updateUiVisibility(){}createBodyTemplate(){return`
            <div class="ag-set-filter">
                <div data-ref="eFilterLoading" class="ag-filter-loading ag-hidden">${this.translateForSetFilter("loadingOoo")}</div>
                <ag-input-text-field class="ag-mini-filter" data-ref="eMiniFilter"></ag-input-text-field>
                <div data-ref="eFilterNoMatches" class="ag-filter-no-matches ag-hidden">${this.translateForSetFilter("noMatches")}</div>
                <div data-ref="eSetFilterList" class="ag-set-filter-list" role="presentation"></div>
            </div>`}getAgComponents(){return[E.AgInputTextFieldSelector]}handleKeyDown(M){if(super.handleKeyDown(M),!M.defaultPrevented)switch(M.key){case E.KeyCode.SPACE:this.handleKeySpace(M);break;case E.KeyCode.ENTER:this.handleKeyEnter(M);break;case E.KeyCode.LEFT:this.handleKeyLeft(M);break;case E.KeyCode.RIGHT:this.handleKeyRight(M);break}}handleKeySpace(M){var P;(P=this.getComponentForKeyEvent(M))==null||P.toggleSelected()}handleKeyEnter(M){let{excelMode:P,readOnly:O}=this.setFilterParams;!P||O||(M.preventDefault(),this.onBtApply(!1,!1,M),this.setFilterParams.excelMode==="mac"&&this.eMiniFilter.getInputElement().select())}handleKeyLeft(M){var P;(P=this.getComponentForKeyEvent(M))==null||P.setExpanded(!1)}handleKeyRight(M){var P;(P=this.getComponentForKeyEvent(M))==null||P.setExpanded(!0)}getComponentForKeyEvent(M){if(!this.eSetFilterList.contains((0,E._getActiveDomElement)(this.beans)))return;let P=this.virtualList.getLastFocusedRow();if(P==null)return;let O=this.virtualList.getComponentAt(P);if(O==null)return;M.preventDefault();let{readOnly:G}=this.setFilterParams;if(!G)return O}getCssIdentifier(){return"set-filter"}setModel(M){return M==null&&this.valueModel.getModel()==null?(this.setMiniFilter(null),E.AgPromise.resolve()):super.setModel(M)}refresh(M){if(this.applyExcelModeOptions(M),!super.refresh(M))return!1;let P=this.setFilterParams;return["treeList","treeListPathGetter","caseSensitive","comparator","excelMode"].some(G=>M[G]!==(P==null?void 0:P[G]))||this.haveColDefParamsChanged(M)?!1:(super.updateParams(M),this.updateSetFilterOnParamsChange(M),this.updateMiniFilter(),M.suppressSelectAll!==(P==null?void 0:P.suppressSelectAll)&&this.createVirtualListModel(M),this.valueModel.updateOnParamsChange(M).then(()=>{this.refreshFilterValues()}),!0)}haveColDefParamsChanged(M){let{colDef:P,keyCreator:O}=M,{colDef:G,keyCreator:j}=this.setFilterParams,Y=O!=null?O:P.keyCreator,J=j!=null?j:G==null?void 0:G.keyCreator,ne=P.filterValueGetter!==(G==null?void 0:G.filterValueGetter),ce=Y!==J,fe=!!this.dataTypeSvc&&!!Y&&this.dataTypeSvc.getFormatValue(P.cellDataType)===Y&&P.valueFormatter!==(G==null?void 0:G.valueFormatter);return ne||ce||fe}setModelAndRefresh(M){return this.valueModel.setModel(M).then(()=>{this.isAlive()&&this.checkAndRefreshVirtualList()})}resetUiToDefaults(){return this.setMiniFilter(null),this.setModelAndRefresh(null)}setModelIntoUi(M){this.setMiniFilter(null);let P=M==null?null:M.values;return this.setModelAndRefresh(P)}getModelFromUi(){let M=this.valueModel.getModel();return M?{values:M,filterType:this.filterType}:null}getValueModel(){return this.valueModel}areModelsEqual(M,P){return M==null&&P==null?!0:M!=null&&P!=null&&(0,E._areEqual)(M.values,P.values)}setParams(M){var O;this.applyExcelModeOptions(M),super.setParams(M),this.updateSetFilterOnParamsChange(M);let P=(O=M.keyCreator)!=null?O:M.colDef.keyCreator;this.valueModel=new c.SetValueModel({filterParams:M,setIsLoading:G=>this.setIsLoading(G),translate:G=>this.translateForSetFilter(G),caseFormat:G=>this.caseFormat(G),createKey:this.createKey,valueFormatter:this.valueFormatter,usingComplexObjects:!!P,gos:this.gos,rowGroupColsSvc:this.rowGroupColsSvc,valueSvc:this.valueSvc,treeDataTreeList:this.treeDataTreeList,groupingTreeList:this.groupingTreeList,addManagedEventListeners:G=>this.addManagedEventListeners(G)}),this.initialiseFilterBodyUi(),this.addEventListenersForDataChanges()}onAddCurrentSelectionToFilterChange(M){this.valueModel.setAddCurrentSelectionToFilter(M)}setValueFormatter(M,P,O,G){let j=M;if(!j){if(P&&!O){(0,E._error)(249);return}this.noValueFormatterSupplied=!0,G||(j=Y=>(0,E._toStringOrNull)(Y.value))}this.valueFormatter=j}generateCreateKey(M,P){return P&&!M?((0,E._error)(250),()=>null):M?(O,G=null)=>{let j=this.getKeyCreatorParams(O,G);return(0,E._makeNull)(M(j))}:O=>(0,E._makeNull)((0,E._toStringOrNull)(O))}getFormattedValue(M){var G;let P=this.valueModel.getValue(M);this.noValueFormatterSupplied&&(this.treeDataTreeList||this.groupingTreeList)&&Array.isArray(P)&&(P=(0,E._last)(P));let O=this.valueSvc.formatValue(this.setFilterParams.column,null,P,this.valueFormatter,!1);return(G=O==null?(0,E._toStringOrNull)(P):O)!=null?G:this.translateForSetFilter("blanks")}applyExcelModeOptions(M){M.excelMode==="windows"?(M.buttons||(M.buttons=["apply","cancel"]),M.closeOnApply==null&&(M.closeOnApply=!0)):M.excelMode==="mac"&&(M.buttons||(M.buttons=["reset"]),M.applyMiniFilterWhileTyping==null&&(M.applyMiniFilterWhileTyping=!0),M.debounceMs==null&&(M.debounceMs=500)),M.excelMode&&M.defaultToNothingSelected&&(M.defaultToNothingSelected=!1,(0,E._warn)(207))}addEventListenersForDataChanges(){this.isValuesTakenFromGrid()&&(this.addManagedPropertyListeners(["groupAllowUnbalanced"],()=>{this.syncAfterDataChange()}),this.addManagedEventListeners({cellValueChanged:M=>{M.column===this.setFilterParams.column&&this.syncAfterDataChange()}}))}syncAfterDataChange(){return this.valueModel.refreshValues().then(()=>{this.checkAndRefreshVirtualList(),(!this.applyActive||this.areModelsEqual(this.getModel(),this.getModelFromUi()))&&this.onBtApply(!1,!0)})}setIsLoading(M){(0,E._setDisplayed)(this.eFilterLoading,M),M||(this.hardRefreshVirtualList=!0)}initialiseFilterBodyUi(){this.initVirtualList(),this.initMiniFilter()}initVirtualList(){let P=this.getLocaleTextFunc()("ariaFilterList","Filter List"),O=!!this.setFilterParams.treeList,G=this.virtualList=this.createBean(new z.VirtualList({cssIdentifier:"filter",ariaRole:O?"tree":"listbox",listName:P})),j=this.eSetFilterList;O&&j.classList.add("ag-set-filter-tree-list"),j&&j.appendChild(G.getGui());let{cellHeight:Y}=this.setFilterParams;Y!=null&&G.setRowHeight(Y);let J=(ce,fe)=>this.createSetListItem(ce,O,fe);G.setComponentCreator(J);let ne=(ce,fe)=>this.updateSetListItem(ce,fe);G.setComponentUpdater(ne),this.createVirtualListModel(this.setFilterParams)}createVirtualListModel(M){let P;M.suppressSelectAll?P=new g(this.valueModel):P=new f(this.valueModel,()=>this.isSelectAllSelected()),M.treeList&&(P=new S(P)),this.virtualList.setModel(P)}getSelectAllLabel(){let M=this.valueModel.getMiniFilter()==null||!this.setFilterParams.excelMode?"selectAll":"selectAllSearchResults";return this.translateForSetFilter(M)}getAddSelectionToFilterLabel(){return this.translateForSetFilter("addCurrentSelectionToFilter")}createSetListItem(M,P,O){let G=this.valueModel.hasGroups(),{isSelected:j,isExpanded:Y}=this.isSelectedExpanded(M),{value:J,depth:ne,isGroup:ce,hasIndeterminateExpandState:fe,selectedListener:xe,expandedListener:Le}=this.newSetListItemAttributes(M),_e={focusWrapper:O,value:J,params:this.setFilterParams,translate:We=>this.translateForSetFilter(We),valueFormatter:this.valueFormatter,item:M,isSelected:j,isTree:P,depth:ne,groupsExist:G,isGroup:ce,isExpanded:Y,hasIndeterminateExpandState:fe},Fe=this.createBean(new C.SetFilterListItem(_e));return Fe.addEventListener("selectionChanged",xe),Le&&Fe.addEventListener("expandedChanged",Le),Fe}newSetTreeItemAttributes(M){var O,G,j,Y,J,ne;let P=this.valueModel.hasGroups();return M.key===T.SET_FILTER_SELECT_ALL?{value:()=>this.getSelectAllLabel(),isGroup:P,depth:M.depth,hasIndeterminateExpandState:!0,selectedListener:ce=>this.onSelectAll(ce.isSelected),expandedListener:ce=>this.onExpandAll(ce.item,ce.isExpanded)}:M.key===T.SET_FILTER_ADD_SELECTION_TO_FILTER?{value:()=>this.getAddSelectionToFilterLabel(),depth:M.depth,isGroup:!1,hasIndeterminateExpandState:!1,selectedListener:ce=>{this.onAddCurrentSelectionToFilterChange(ce.isSelected)}}:M.children?{value:(j=(G=(O=this.setFilterParams).treeListFormatter)==null?void 0:G.call(O,M.treeKey,M.depth,M.parentTreeKeys))!=null?j:M.treeKey,depth:M.depth,isGroup:!0,selectedListener:ce=>this.onGroupItemSelected(ce.item,ce.isSelected),expandedListener:ce=>this.onExpandedChanged(ce.item,ce.isExpanded)}:{value:(ne=(J=(Y=this.setFilterParams).treeListFormatter)==null?void 0:J.call(Y,M.treeKey,M.depth,M.parentTreeKeys))!=null?ne:M.treeKey,depth:M.depth,selectedListener:ce=>this.onItemSelected(ce.item.key,ce.isSelected)}}newSetListItemAttributes(M){return this.isSetFilterModelTreeItem(M)?this.newSetTreeItemAttributes(M):M===T.SET_FILTER_SELECT_ALL?{value:()=>this.getSelectAllLabel(),selectedListener:P=>this.onSelectAll(P.isSelected)}:M===T.SET_FILTER_ADD_SELECTION_TO_FILTER?{value:()=>this.getAddSelectionToFilterLabel(),selectedListener:P=>{this.onAddCurrentSelectionToFilterChange(P.isSelected)}}:{value:this.valueModel.getValue(M),selectedListener:P=>this.onItemSelected(P.item,P.isSelected)}}updateSetListItem(M,P){let{isSelected:O,isExpanded:G}=this.isSelectedExpanded(M);P.refresh(M,O,G)}isSelectedExpanded(M){let P,O;return this.isSetFilterModelTreeItem(M)?(O=M.expanded,M.key===T.SET_FILTER_SELECT_ALL?P=this.isSelectAllSelected():M.key===T.SET_FILTER_ADD_SELECTION_TO_FILTER?P=this.valueModel.isAddCurrentSelectionToFilterChecked():M.children?P=this.areAllChildrenSelected(M):P=this.valueModel.isKeySelected(M.key)):M===T.SET_FILTER_SELECT_ALL?P=this.isSelectAllSelected():M===T.SET_FILTER_ADD_SELECTION_TO_FILTER?P=this.valueModel.isAddCurrentSelectionToFilterChecked():P=this.valueModel.isKeySelected(M),{isSelected:P,isExpanded:O}}isSetFilterModelTreeItem(M){return(M==null?void 0:M.treeKey)!==void 0}initMiniFilter(){let{eMiniFilter:M}=this,P=this.getLocaleTextFunc();M.setDisplayed(!this.setFilterParams.suppressMiniFilter),M.setValue(this.valueModel.getMiniFilter()),M.onValueChange(()=>this.onMiniFilterInput()),M.setInputAriaLabel(P("ariaSearchFilterValues","Search filter values")),this.addManagedElementListeners(M.getInputElement(),{keydown:O=>this.onMiniFilterKeyDown(O)})}updateMiniFilter(){let{eMiniFilter:M}=this;M.isDisplayed()!==!this.setFilterParams.suppressMiniFilter&&M.setDisplayed(!this.setFilterParams.suppressMiniFilter);let P=this.valueModel.getMiniFilter();M.getValue()!==P&&M.setValue(P)}afterGuiAttached(M){super.afterGuiAttached(M),this.resetExpansion(),this.refreshVirtualList();let{eMiniFilter:P}=this;P.setInputPlaceholder(this.translateForSetFilter("searchOoo")),(!M||!M.suppressFocus)&&(P.isDisplayed()?P.getFocusableElement().focus():this.virtualList.awaitStable(()=>this.virtualList.focusRow(0)))}afterGuiDetached(){super.afterGuiDetached(),this.setFilterParams.excelMode&&this.resetMiniFilter();let M=this.getModel();(this.setFilterParams.excelMode||!this.areModelsEqual(M,this.getModelFromUi()))&&(this.resetUiToActiveModel(M),this.showOrHideResults())}applyModel(M="api"){this.setFilterParams.excelMode&&M!=="rowDataUpdated"&&this.valueModel.isEverythingVisibleSelected()&&this.valueModel.selectAllMatchingMiniFilter();let P=this.valueModel.showAddCurrentSelectionToFilter()&&this.valueModel.isAddCurrentSelectionToFilterChecked();if(P&&!this.getModel())return!1;let O=super.applyModel(M),G=this.getModel();return G?(P||this.valueModel.setAppliedModelKeys(new Set),G.values.forEach(j=>{this.valueModel.addToAppliedModelKeys(j)})):P||this.valueModel.setAppliedModelKeys(null),O}isModelValid(M){return this.setFilterParams.excelMode?M==null||M.values.length>0:!0}doesFilterPass(M){if(!this.valueModel.getCaseFormattedAppliedModelKeys())return!0;if(!this.valueModel.hasAnyAppliedModelKey())return!1;let{node:P}=M;if(this.treeDataTreeList)return this.doesFilterPassForTreeData(P);if(this.groupingTreeList)return this.doesFilterPassForGrouping(P);let O=this.getValueFromNode(P);return O!=null&&Array.isArray(O)?O.length===0?this.valueModel.hasAppliedModelKey(null):O.some(G=>this.isInAppliedModel(this.createKey(G,P))):this.isInAppliedModel(this.createKey(O,P))}doesFilterPassForTreeData(M){var P,O,G;return(P=M.childrenAfterGroup)!=null&&P.length?!1:this.isInAppliedModel(this.createKey((0,s.processDataPath)((G=M.getRoute())!=null?G:[(O=M.key)!=null?O:M.id],!0,this.gos.get("groupAllowUnbalanced"))))}doesFilterPassForGrouping(M){var O,G;let P=((G=(O=this.rowGroupColsSvc)==null?void 0:O.columns)!=null?G:[]).map(j=>this.valueSvc.getKeyForNode(j,M));return P.push(this.getValueFromNode(M)),this.isInAppliedModel(this.createKey((0,s.processDataPath)(P,!1,this.gos.get("groupAllowUnbalanced"))))}isInAppliedModel(M){return this.valueModel.hasAppliedModelKey(M)}getValueFromNode(M){return this.setFilterParams.getValue(M)}getKeyCreatorParams(M,P=null){let{colDef:O,column:G,api:j,context:Y}=this.setFilterParams;return{value:M,colDef:O,column:G,node:P,data:P==null?void 0:P.data,api:j,context:Y}}onNewRowsLoaded(){this.isValuesTakenFromGrid()&&this.syncAfterDataChange()}isValuesTakenFromGrid(){return this.valueModel.getValuesType()===c.SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES}setFilterValues(M){this.valueModel.overrideValues(M).then(()=>{this.checkAndRefreshVirtualList(),this.onUiChanged()})}resetFilterValues(){this.valueModel.setValuesType(c.SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES),this.syncAfterDataChange()}refreshFilterValues(){this.valueModel.isInitialised()&&this.valueModel.refreshValues().then(()=>{this.hardRefreshVirtualList=!0,this.checkAndRefreshVirtualList(),this.onUiChanged()})}onAnyFilterChanged(){setTimeout(()=>{this.isAlive()&&this.valueModel.refreshAfterAnyFilterChanged().then(M=>{M&&(this.checkAndRefreshVirtualList(),this.showOrHideResults())})},0)}onMiniFilterInput(){if(!this.valueModel.setMiniFilter(this.eMiniFilter.getValue()))return;let{applyMiniFilterWhileTyping:M,readOnly:P}=this.setFilterParams;!P&&M?this.filterOnAllVisibleValues(!1):this.updateUiAfterMiniFilterChange()}updateUiAfterMiniFilterChange(){let{excelMode:M,readOnly:P}=this.setFilterParams;M==null||P?this.checkAndRefreshVirtualList():this.valueModel.getMiniFilter()==null?this.resetUiToActiveModel(this.getModel()):(this.valueModel.selectAllMatchingMiniFilter(!0),this.checkAndRefreshVirtualList(),this.onUiChanged()),this.showOrHideResults()}showOrHideResults(){let M=this.valueModel.getMiniFilter()!=null&&this.valueModel.getDisplayedValueCount()<1;(0,E._setDisplayed)(this.eFilterNoMatches,M),(0,E._setDisplayed)(this.eSetFilterList,!M)}resetMiniFilter(){this.eMiniFilter.setValue(null,!0),this.valueModel.setMiniFilter(null)}resetUiToActiveModel(M,P){this.setModelAndRefresh(M==null?null:M.values).then(()=>{this.onUiChanged(!1,"prevent"),P==null||P()})}handleCancelEnd(M){this.setMiniFilter(null),super.handleCancelEnd(M)}onMiniFilterKeyDown(M){let{excelMode:P,readOnly:O}=this.setFilterParams;M.key===E.KeyCode.ENTER&&!P&&!O&&this.filterOnAllVisibleValues()}filterOnAllVisibleValues(M=!0){this.valueModel.selectAllMatchingMiniFilter(!0),this.checkAndRefreshVirtualList(),this.onUiChanged(!1,M?"immediately":"debounce"),this.showOrHideResults()}focusRowIfAlive(M){M!=null&&window.setTimeout(()=>{this.isAlive()&&this.virtualList.focusRow(M)},0)}onSelectAll(M){M?this.valueModel.selectAllMatchingMiniFilter():this.valueModel.deselectAllMatchingMiniFilter(),this.refreshAfterSelection()}onGroupItemSelected(M,P){let O=G=>{G.children?G.children.forEach(j=>O(j)):this.selectItem(G.key,P)};O(M),this.refreshAfterSelection()}onItemSelected(M,P){this.selectItem(M,P),this.refreshAfterSelection()}selectItem(M,P){P?this.valueModel.selectKey(M):this.valueModel.deselectKey(M)}onExpandAll(M,P){let O=G=>{G.filterPasses&&G.available&&G.children&&(G.children.forEach(j=>O(j)),G.expanded=P)};O(M),this.refreshAfterExpansion()}onExpandedChanged(M,P){M.expanded=P,this.refreshAfterExpansion()}refreshAfterExpansion(){let M=this.virtualList.getLastFocusedRow();this.valueModel.updateDisplayedValues("expansion"),this.checkAndRefreshVirtualList(),this.focusRowIfAlive(M)}refreshAfterSelection(){let M=this.virtualList.getLastFocusedRow();this.checkAndRefreshVirtualList(),this.onUiChanged(),this.focusRowIfAlive(M)}setMiniFilter(M){this.eMiniFilter.setValue(M),this.onMiniFilterInput()}getMiniFilter(){return this.valueModel.getMiniFilter()}checkAndRefreshVirtualList(){this.virtualList.refresh(!this.hardRefreshVirtualList),this.hardRefreshVirtualList&&(this.hardRefreshVirtualList=!1)}getFilterKeys(){return this.valueModel.getKeys()}getFilterValues(){return this.valueModel.getValues()}getValues(){return this.getFilterKeys()}refreshVirtualList(){this.setFilterParams.refreshValuesOnOpen?this.refreshFilterValues():this.checkAndRefreshVirtualList()}translateForSetFilter(M){return this.getLocaleTextFunc()(M,b.DEFAULT_LOCALE_TEXT[M])}isSelectAllSelected(){if(this.setFilterParams.defaultToNothingSelected){if(this.valueModel.hasSelections()&&this.valueModel.isEverythingVisibleSelected())return!0;if(this.valueModel.isNothingVisibleSelected())return!1}else{if(this.valueModel.hasSelections()&&this.valueModel.isNothingVisibleSelected())return!1;if(this.valueModel.isEverythingVisibleSelected())return!0}}areAllChildrenSelected(M){let P=O=>{if(O.children){let G=!1,j=!1;return O.children.some(J=>{if(!J.filterPasses||!J.available)return!1;let ne=P(J);return ne===void 0?!0:(ne?G=!0:j=!0,G&&j)})?void 0:G}else return this.valueModel.isKeySelected(O.key)};return this.setFilterParams.defaultToNothingSelected?this.valueModel.hasSelections()&&P(M):P(M)}destroy(){this.virtualList=this.destroyBean(this.virtualList),super.destroy()}caseFormat(M){return M==null||typeof M!="string"||this.caseSensitive?M:M.toUpperCase()}resetExpansion(){if(!this.setFilterParams.treeList)return;let M=this.valueModel.getSelectAllItem();if(this.isSetFilterModelTreeItem(M)){let P=O=>{O.children&&(O.children.forEach(G=>P(G)),O.expanded=!1)};P(M),this.valueModel.updateDisplayedValues("expansion")}}getModelAsString(M){return this.filterModelFormatter.getModelAsString(M,this)}getPositionableElement(){return this.eSetFilterList}}p.SetFilter=h;class g{constructor(M){this.model=M}getRowCount(){return this.model.getDisplayedValueCount()}getRow(M){return this.model.getDisplayedItem(M)}areRowsEqual(M,P){return M===P}}class f{constructor(M,P){this.model=M,this.isSelectAllSelected=P}getRowCount(){let P=this.model.showAddCurrentSelectionToFilter()?2:1;return this.model.getDisplayedValueCount()+P}getRow(M){if(M===0)return this.model.getSelectAllItem();let P=this.model.showAddCurrentSelectionToFilter(),O=P?2:1;return M===1&&P?this.model.getAddSelectionToFilterItem():this.model.getDisplayedItem(M-O)}areRowsEqual(M,P){return M===P}}class S{constructor(M){this.model=M}getRowCount(){return this.model.getRowCount()}getRow(M){return this.model.getRow(M)}areRowsEqual(M,P){return M==null&&P==null?!0:M!=null&&P!=null&&M.treeKey===P.treeKey&&M.depth===P.depth}}},105:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetFilterListItem=void 0;let E=A(6624);class z extends E.Component{constructor(b){var C;super(b.isGroup?`
            <div class="ag-set-filter-item" aria-hidden="true">
                <span class="ag-set-filter-group-icons">
                    <span class="ag-set-filter-group-closed-icon" data-ref="eGroupClosedIcon"></span>
                    <span class="ag-set-filter-group-opened-icon" data-ref="eGroupOpenedIcon"></span>
                    <span class="ag-set-filter-group-indeterminate-icon" data-ref="eGroupIndeterminateIcon"></span>
                </span>
                <ag-checkbox data-ref="eCheckbox" class="ag-set-filter-item-checkbox"></ag-checkbox>
            </div>`:`
            <div class="ag-set-filter-item">
                <ag-checkbox data-ref="eCheckbox" class="ag-set-filter-item-checkbox"></ag-checkbox>
            </div>`,[E.AgCheckboxSelector]),this.eCheckbox=E.RefPlaceholder,this.eGroupOpenedIcon=E.RefPlaceholder,this.eGroupClosedIcon=E.RefPlaceholder,this.eGroupIndeterminateIcon=E.RefPlaceholder,this.formattedValue=null,this.focusWrapper=b.focusWrapper,this.value=b.value,this.params=b.params,this.translate=b.translate,this.valueFormatter=b.valueFormatter,this.item=b.item,this.isSelected=b.isSelected,this.isTree=b.isTree,this.depth=(C=b.depth)!=null?C:0,this.isGroup=b.isGroup,this.groupsExist=b.groupsExist,this.isExpanded=b.isExpanded,this.hasIndeterminateExpandState=b.hasIndeterminateExpandState}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getColDef:()=>this.params.colDef,getColumn:()=>this.params.column,getLocation:()=>"setFilterValue",shouldDisplayTooltip:()=>{var b,C;return(C=(b=this.shouldDisplayTooltip)==null?void 0:b.call(this))!=null?C:!0},getValueFormatted:()=>this.formattedValue,getAdditionalParams:()=>this.isTree?{level:this.depth}:{}})),this.addDestroyFunc(()=>{var b;return(b=this.destroyCellRendererComponent)==null?void 0:b.call(this)}),this.render(),this.eCheckbox.setLabelEllipsis(!0).setValue(this.isSelected,!0).setDisabled(!!this.params.readOnly).getInputElement().setAttribute("tabindex","-1"),this.refreshVariableAriaLabels(),this.isTree&&(this.depth>0&&(this.addCssClass("ag-set-filter-indent-"+this.depth),this.getGui().style.setProperty("--ag-indentation-level",String(this.depth))),this.isGroup?this.setupExpansion():this.groupsExist&&this.addCssClass("ag-set-filter-add-group-indent"),(0,E._setAriaLevel)(this.getAriaElement(),this.depth+1)),this.refreshAriaChecked(),!this.params.readOnly&&this.eCheckbox.onValueChange(b=>this.onCheckboxChanged(!!b))}getFocusableElement(){return this.focusWrapper}setupExpansion(){let{eGroupClosedIcon:b,eGroupOpenedIcon:C,eGroupIndeterminateIcon:d,hasIndeterminateExpandState:s,beans:c}=this;b.appendChild((0,E._createIcon)("setFilterGroupClosed",c,null)),C.appendChild((0,E._createIcon)("setFilterGroupOpen",c,null));let h=this.onExpandOrContractClicked.bind(this);this.addManagedElementListeners(b,{click:h}),this.addManagedElementListeners(C,{click:h}),s&&(d.appendChild((0,E._createIcon)("setFilterGroupIndeterminate",c,null)),this.addManagedElementListeners(d,{click:h})),this.setExpandedIcons(),this.refreshAriaExpanded()}onExpandOrContractClicked(){this.setExpanded(!this.isExpanded)}setExpanded(b,C){if(this.isGroup&&b!==this.isExpanded){this.isExpanded=b;let d={type:"expandedChanged",isExpanded:!!b,item:this.item};C||this.dispatchLocalEvent(d),this.setExpandedIcons(),this.refreshAriaExpanded()}}setExpandedIcons(){let{isExpanded:b,hasIndeterminateExpandState:C,eGroupClosedIcon:d,eGroupOpenedIcon:s,eGroupIndeterminateIcon:c}=this;(0,E._setDisplayed)(d,C?b===!1:!b),(0,E._setDisplayed)(s,b===!0),C&&(0,E._setDisplayed)(c,b===void 0)}onCheckboxChanged(b){this.isSelected=b;let C={type:"selectionChanged",isSelected:b,item:this.item};this.dispatchLocalEvent(C),this.refreshVariableAriaLabels(),this.refreshAriaChecked()}toggleSelected(){this.params.readOnly||this.setSelected(!this.isSelected)}setSelected(b,C){this.isSelected=b,this.eCheckbox.setValue(b,C),this.refreshAriaChecked()}refreshVariableAriaLabels(){if(!this.isTree)return;let b=this.getLocaleTextFunc(),C=this.eCheckbox.getValue(),d=C===void 0?b("ariaIndeterminate","indeterminate"):C?b("ariaVisible","visible"):b("ariaHidden","hidden"),s=b("ariaToggleVisibility","Press SPACE to toggle visibility");(0,E._setAriaLabelledBy)(this.eCheckbox.getInputElement(),void 0),this.eCheckbox.setInputAriaLabel(`${s} (${d})`)}setupFixedAriaLabels(b){if(!this.isTree)return;let d=this.getLocaleTextFunc()("ariaFilterValue","Filter Value"),s=this.getAriaElement();(0,E._setAriaLabel)(s,`${b} ${d}`),(0,E._setAriaDescribedBy)(s,this.eCheckbox.getInputElement().id)}refreshAriaChecked(){let b=this.getAriaElement();(0,E._setAriaChecked)(b,this.eCheckbox.getValue())}refreshAriaExpanded(){(0,E._setAriaExpanded)(this.getAriaElement(),!!this.isExpanded)}refresh(b,C,d){var f,S;this.item=b,C!==this.isSelected&&this.setSelected(C,!0),this.setExpanded(d,!0);let{cellRendererComponent:s,cellRendererParams:c,beans:h,params:g}=this;if(this.valueFunction){let w=this.valueFunction();this.setTooltipAndCellRendererParams(w,w),s||this.renderCellWithoutCellRenderer()}if(s){let w=(0,E._getCellRendererDetails)(h.userCompFactory,g,c);if(!((S=s.refresh)==null?void 0:S.call(s,(f=w==null?void 0:w.params)!=null?f:c))){let P=s;this.renderCell(),this.destroyBean(P)}}}render(){let{params:{column:b}}=this,{value:C}=this,d=null;typeof C=="function"?(this.valueFunction=C,d=this.valueFunction(),C=d):this.isTree?d=(0,E._toStringOrNull)(C):d=this.getFormattedValue(b,C),this.formattedValue=d,this.setTooltipAndCellRendererParams(C,d),this.renderCell()}setTooltipAndCellRendererParams(b,C){var s;let d=this.gos;if(this.params.showTooltips&&(!(0,E._isShowTooltipWhenTruncated)(d)||!this.params.cellRenderer)){let c=C!=null?C:(0,E._toStringOrNull)(b);this.shouldDisplayTooltip=(0,E._getShouldDisplayTooltip)(d,()=>this.eCheckbox.getGui().querySelector(".ag-label")),(s=this.tooltipFeature)==null||s.setTooltipAndRefresh(c)}this.cellRendererParams=d.addGridCommonParams({value:b,valueFormatted:C,colDef:this.params.colDef,column:this.params.column,setTooltip:(c,h)=>{var g;d.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=h,(g=this.tooltipFeature)==null||g.setTooltipAndRefresh(c)}})}getFormattedValue(b,C){return this.beans.valueSvc.formatValue(b,null,C,this.valueFormatter,!1)}renderCell(){let b=(0,E._getCellRendererDetails)(this.beans.userCompFactory,this.params,this.cellRendererParams),C=b==null?void 0:b.newAgStackInstance();if(C==null){this.renderCellWithoutCellRenderer();return}C.then(d=>{d&&(this.cellRendererComponent=d,this.eCheckbox.setLabel(d.getGui()),this.destroyCellRendererComponent=()=>this.destroyBean(d))})}renderCellWithoutCellRenderer(){var s;let{valueFormatted:b,value:C}=this.cellRendererParams,d=(s=b==null?C:b)!=null?s:this.translate("blanks");typeof d!="string"&&((0,E._warn)(208),d=""),this.eCheckbox.setLabel(d),this.setupFixedAriaLabels(d)}getComponentHolder(){return this.params.column.getColDef()}}p.SetFilterListItem=z},5355:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetFilterModelFormatter=void 0;class A{getModelAsString(z,T){let{values:b}=z||T.getModel()||{},C=T.getValueModel();if(b==null||C==null)return"";let d=b.filter(h=>C.isKeyAvailable(h)),s=d.length,c=d.slice(0,10).map(h=>T.getFormattedValue(h));return`(${s}) ${c.join(",")}${s>10?",...":""}`}}p.SetFilterModelFormatter=A},9002:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetFilterModule=void 0;let E=A(6624),z=A(9206),T=A(7205),b=A(2734),C=A(4716);p.SetFilterModule={moduleName:"SetFilter",version:T.VERSION,userComponents:{agSetColumnFilter:b.SetFilter,agSetColumnFloatingFilter:C.SetFloatingFilterComp},icons:{setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate"},dependsOn:[z.EnterpriseCoreModule,E._ColumnFilterModule]}},2270:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.processDataPath=void 0;let E=A(6624);function z(T,b,C){let d=T;return d?(d=d.map(s=>(0,E._toStringOrNull)((0,E._makeNull)(s))),!b&&C&&d.some(s=>s==null)?(0,E._last)(d)==null?null:d.filter(s=>s!=null):d):null}p.processDataPath=z},4716:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetFloatingFilterComp=void 0;let E=A(6624),z=A(2734),T=A(5355);class b extends E.Component{wireBeans(d){this.colNames=d.colNames}constructor(){super(`
            <div class="ag-floating-filter-input ag-set-floating-filter-input" role="presentation">
                <ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field>
            </div>`,[E.AgInputTextFieldSelector]),this.eFloatingFilterText=E.RefPlaceholder,this.availableValuesListenerAdded=!1,this.filterModelFormatter=new T.SetFilterModelFormatter}init(d){this.params=d,this.eFloatingFilterText.setDisabled(!0).addGuiEventListener("click",()=>this.params.showParentFilter()),this.setParams(d)}setParams(d){let s=this.colNames.getDisplayNameForColumn(d.column,"header",!0),c=this.getLocaleTextFunc();this.eFloatingFilterText.setInputAriaLabel(`${s} ${c("ariaFilterInput","Filter Input")}`)}refresh(d){this.params=d,this.setParams(d)}onParentModelChanged(d){this.updateFloatingFilterText(d)}parentSetFilterInstance(d){this.params.parentFilterInstance(s=>{if(!(s instanceof z.SetFilter)){(0,E._error)(248);return}d(s)})}addAvailableValuesListener(){this.parentSetFilterInstance(d=>{let s=d.getValueModel();s&&this.addManagedListeners(s,{availableValuesChanged:()=>this.updateFloatingFilterText()})}),this.availableValuesListenerAdded=!0}updateFloatingFilterText(d){this.availableValuesListenerAdded||this.addAvailableValuesListener(),this.parentSetFilterInstance(s=>{this.eFloatingFilterText.setValue(this.filterModelFormatter.getModelAsString(d,s))})}}p.SetFloatingFilterComp=b},4366:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SetValueModel=p.SetFilterModelValuesType=void 0;let E=A(6624),z=A(4737),T=A(4510),b=A(8053),C=A(5546);var d;(function(c){c[c.PROVIDED_LIST=0]="PROVIDED_LIST",c[c.PROVIDED_CALLBACK=1]="PROVIDED_CALLBACK",c[c.TAKEN_FROM_GRID_VALUES=2]="TAKEN_FROM_GRID_VALUES"})(d||(p.SetFilterModelValuesType=d={}));class s{constructor(h){this.localEventService=new E.LocalEventService,this.miniFilterText=null,this.addCurrentSelectionToFilter=!1,this.providedValues=null,this.allValues=new Map,this.availableKeys=new Set,this.selectedKeys=new Set,this.initialised=!1;let{usingComplexObjects:g,rowGroupColsSvc:f,valueSvc:S,treeDataTreeList:w,groupingTreeList:M,filterParams:P,gos:O,valueFormatter:G,addManagedEventListeners:j}=h,{column:Y,colDef:J,textFormatter:ne,doesRowPassOtherFilter:ce,suppressSorting:fe,comparator:xe,rowModel:Le,values:_e,caseSensitive:Fe,treeList:We,treeListPathGetter:it,treeListFormatter:tt}=P;this.filterParams=P,this.gos=O,this.setIsLoading=h.setIsLoading,this.translate=h.translate,this.caseFormat=h.caseFormat,this.createKey=h.createKey,this.usingComplexObjects=!!h.usingComplexObjects,this.formatter=ne!=null?ne:Xe=>Xe!=null?Xe:null,this.doesRowPassOtherFilters=ce,this.suppressSorting=fe||!1,this.filteringKeys=new T.SetValueModelFilteringKeys({caseFormat:this.caseFormat});let ot=xe!=null?xe:J.comparator,st=!!w||!!M;this.compareByValue=!!(g&&ot||st||We&&!it),st&&!ot?this.entryComparator=this.createTreeDataOrGroupingComparator():We&&!it&&!ot?this.entryComparator=([Xe,Ke],[Ye,Ze])=>(0,E._defaultComparator)(Ke,Ze):this.entryComparator=([Xe,Ke],[Ye,Ze])=>ot(Ke,Ze),this.keyComparator=ot!=null?ot:E._defaultComparator,this.caseSensitive=!!Fe;let St=O.get("groupAllowUnbalanced");(0,E._isClientSideRowModel)(O,Le)&&(this.clientSideValuesExtractor=new z.ClientSideValuesExtractor(Le,this.filterParams,this.createKey,this.caseFormat,S,st,!!w,St,j,f)),_e==null?this.valuesType=d.TAKEN_FROM_GRID_VALUES:(this.valuesType=Array.isArray(_e)?d.PROVIDED_LIST:d.PROVIDED_CALLBACK,this.providedValues=_e),this.displayValueModel=We?new C.TreeSetDisplayValueModel(this.formatter,it,tt,w||M):new b.FlatSetDisplayValueModel(S,G,this.formatter,Y),this.updateAllValues().then(Xe=>this.resetSelectionState(Xe||[]))}addEventListener(h,g,f){this.localEventService.addEventListener(h,g,f)}removeEventListener(h,g,f){this.localEventService.removeEventListener(h,g,f)}updateOnParamsChange(h){return new E.AgPromise(g=>{let{values:f,textFormatter:S,suppressSorting:w,treeListFormatter:M}=h,P=this.providedValues,O=this.suppressSorting;if(this.filterParams=h,this.formatter=S!=null?S:G=>G!=null?G:null,this.suppressSorting=w||!1,this.providedValues=f!=null?f:null,this.displayValueModel instanceof C.TreeSetDisplayValueModel&&this.displayValueModel.updateOnParamsChange(M),this.providedValues!==P||this.suppressSorting!==O){!f||f.length===0?(this.valuesType=d.TAKEN_FROM_GRID_VALUES,this.providedValues=null):this.valuesType=Array.isArray(f)?d.PROVIDED_LIST:d.PROVIDED_CALLBACK;let G=this.getModel();this.updateAllValues().then(()=>{this.setModel(G).then(()=>g())})}else g()})}refreshValues(){return new E.AgPromise(h=>{this.allValuesPromise.then(()=>{let g=this.getModel();this.updateAllValues(),this.setModel(g).then(()=>h())})})}overrideValues(h){return new E.AgPromise(g=>{this.allValuesPromise.then(()=>{this.valuesType=d.PROVIDED_LIST,this.providedValues=h,this.refreshValues().then(()=>g())})})}refreshAfterAnyFilterChanged(){return this.showAvailableOnly()?this.allValuesPromise.then(h=>(this.updateAvailableKeys(h!=null?h:[],"otherFilter"),!0)):E.AgPromise.resolve(!1)}isInitialised(){return this.initialised}updateAllValues(){return this.allValuesPromise=new E.AgPromise(h=>{switch(this.valuesType){case d.TAKEN_FROM_GRID_VALUES:this.getValuesFromRowsAsync(!1).then(g=>h(this.processAllValues(g)));break;case d.PROVIDED_LIST:{h(this.processAllValues(this.uniqueValues(this.validateProvidedValues(this.providedValues))));break}case d.PROVIDED_CALLBACK:{this.setIsLoading(!0);let g=this.providedValues,{column:f,colDef:S}=this.filterParams,w=this.gos.addGridCommonParams({success:M=>{this.setIsLoading(!1),h(this.processAllValues(this.uniqueValues(this.validateProvidedValues(M))))},colDef:S,column:f});window.setTimeout(()=>g(w),0);break}}}),this.allValuesPromise.then(h=>this.updateAvailableKeys(h||[],"reload")).then(()=>this.initialised=!0),this.allValuesPromise}processAllValues(h){let g=this.sortKeys(h);return this.allValues=h!=null?h:new Map,g}validateProvidedValues(h){if(this.usingComplexObjects&&(h!=null&&h.length)){let g=h[0];g&&typeof g!="object"&&typeof g!="function"&&(this.createKey(g)==null?(0,E._warn)(209):(0,E._warn)(210))}return h}setValuesType(h){this.valuesType=h}getValuesType(){return this.valuesType}isKeyAvailable(h){return this.availableKeys.has(h)}showAvailableOnly(){return this.valuesType===d.TAKEN_FROM_GRID_VALUES}updateAvailableKeys(h,g){let f=this.showAvailableOnly()?this.sortKeys(this.getValuesFromRows(!0)):h;this.availableKeys=new Set(f),this.localEventService.dispatchEvent({type:"availableValuesChanged"}),this.updateDisplayedValues(g,h)}sortKeys(h){let g=h!=null?h:new Map;if(this.suppressSorting)return Array.from(g.keys());let f;return this.compareByValue?f=Array.from(g.entries()).sort(this.entryComparator).map(([S])=>S):f=Array.from(g.keys()).sort(this.keyComparator),this.filterParams.excelMode&&g.has(null)&&(f=f.filter(S=>S!=null),f.push(null)),f}getParamsForValuesFromRows(h=!1){if(!this.clientSideValuesExtractor)return(0,E._error)(113),null;let g=S=>!h||this.doesRowPassOtherFilters(S),f=h&&!this.caseSensitive?this.allValues:void 0;return{predicate:g,existingValues:f}}getValuesFromRows(h=!1){let g=this.getParamsForValuesFromRows(h);return g?this.clientSideValuesExtractor.extractUniqueValues(g.predicate,g.existingValues):null}getValuesFromRowsAsync(h=!1){let g=this.getParamsForValuesFromRows(h);return g?this.clientSideValuesExtractor.extractUniqueValuesAsync(g.predicate,g.existingValues):E.AgPromise.resolve(null)}setMiniFilter(h){return h=(0,E._makeNull)(h),this.miniFilterText===h?!1:(h===null&&this.setAddCurrentSelectionToFilter(!1),this.miniFilterText=h,this.updateDisplayedValues("miniFilter"),!0)}getMiniFilter(){return this.miniFilterText}updateDisplayedValues(h,g){if(h==="expansion"){this.displayValueModel.refresh();return}if(this.miniFilterText==null){this.displayValueModel.updateDisplayedValuesToAllAvailable(M=>this.getValue(M),g,this.availableKeys,h);return}let f=this.caseFormat(this.formatter(this.miniFilterText)||""),S=M=>M!=null&&this.caseFormat(M).indexOf(f)>=0,w=!!this.filterParams.excelMode&&S(this.translate("blanks"));this.displayValueModel.updateDisplayedValuesToMatchMiniFilter(M=>this.getValue(M),g,this.availableKeys,S,w,h)}getDisplayedValueCount(){return this.displayValueModel.getDisplayedValueCount()}getDisplayedItem(h){return this.displayValueModel.getDisplayedItem(h)}getSelectAllItem(){return this.displayValueModel.getSelectAllItem()}getAddSelectionToFilterItem(){return this.displayValueModel.getAddSelectionToFilterItem()}hasSelections(){return this.filterParams.defaultToNothingSelected?this.selectedKeys.size>0:this.allValues.size!==this.selectedKeys.size}getKeys(){return Array.from(this.allValues.keys())}getValues(){return Array.from(this.allValues.values())}getValue(h){return this.allValues.get(h)}setAddCurrentSelectionToFilter(h){this.addCurrentSelectionToFilter=h}isInWindowsExcelMode(){return this.filterParams.excelMode==="windows"}isAddCurrentSelectionToFilterChecked(){return this.isInWindowsExcelMode()&&this.addCurrentSelectionToFilter}showAddCurrentSelectionToFilter(){return this.isInWindowsExcelMode()&&(0,E._exists)(this.miniFilterText)&&this.miniFilterText.length>0}selectAllMatchingMiniFilter(h=!1){this.miniFilterText==null?this.selectedKeys=new Set(this.allValues.keys()):(h&&this.selectedKeys.clear(),this.displayValueModel.forEachDisplayedKey(g=>this.selectedKeys.add(g)))}deselectAllMatchingMiniFilter(){this.miniFilterText==null?this.selectedKeys.clear():this.displayValueModel.forEachDisplayedKey(h=>this.selectedKeys.delete(h))}selectKey(h){this.selectedKeys.add(h)}deselectKey(h){this.filterParams.excelMode&&this.isEverythingVisibleSelected()&&this.resetSelectionState(this.displayValueModel.getDisplayedKeys()),this.selectedKeys.delete(h)}isKeySelected(h){return this.selectedKeys.has(h)}isEverythingVisibleSelected(){return!this.displayValueModel.someDisplayedKey(h=>!this.isKeySelected(h))}isNothingVisibleSelected(){return!this.displayValueModel.someDisplayedKey(h=>this.isKeySelected(h))}getModel(){if(!this.hasSelections())return null;let h=this.isAddCurrentSelectionToFilterChecked()?this.filteringKeys.allFilteringKeys():null;if(h&&h.size>0){if(this.selectedKeys){let g=new Set([...Array.from(h),...Array.from(this.selectedKeys).filter(f=>!h.has(f))]);return Array.from(g)}return Array.from(h)}return Array.from(this.selectedKeys)}setModel(h){return this.allValuesPromise.then(g=>{if(h==null)this.resetSelectionState(g!=null?g:[]);else{this.selectedKeys.clear();let f=new Map;this.allValues.forEach((S,w)=>{f.set(this.caseFormat(w),w)}),h.forEach(S=>{let w=this.caseFormat((0,E._makeNull)(S)),M=f.get(w);M!==void 0&&this.selectKey(M)})}})}uniqueValues(h){let g=new Map,f=new Set;return(h!=null?h:[]).forEach(S=>{let w=(0,E._makeNull)(S),M=this.createKey(w),P=this.caseFormat(M);f.has(P)||(f.add(P),g.set(M,w))}),g}resetSelectionState(h){this.filterParams.defaultToNothingSelected?this.selectedKeys.clear():this.selectedKeys=new Set(h)}hasGroups(){return this.displayValueModel.hasGroups()}createTreeDataOrGroupingComparator(){return([h,g],[f,S])=>{if(g==null)return S==null?0:-1;if(S==null)return 1;for(let w=0;w<g.length;w++){if(w>=S.length)return 1;let M=(0,E._defaultComparator)(g[w],S[w]);if(M!==0)return M}return 0}}setAppliedModelKeys(h){this.filteringKeys.setFilteringKeys(h)}addToAppliedModelKeys(h){this.filteringKeys.addFilteringKey(h)}getAppliedModelKeys(){return this.filteringKeys.allFilteringKeys()}getCaseFormattedAppliedModelKeys(){return this.filteringKeys.allFilteringKeysCaseFormatted()}hasAppliedModelKey(h){return this.filteringKeys.hasCaseFormattedFilteringKey(h)}hasAnyAppliedModelKey(){return!this.filteringKeys.hasNoAppliedFilteringKeys}}p.SetValueModel=s},5546:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TreeSetDisplayValueModel=void 0;let E=A(6624),z=A(3335),T=C=>C?[String(C.getFullYear()),String(C.getMonth()+1),String(C.getDate())]:null;class b{constructor(d,s,c,h){this.formatter=d,this.treeListPathGetter=s,this.treeListFormatter=c,this.treeDataOrGrouping=h,this.allDisplayedItemsTree=[],this.activeDisplayedItemsFlat=[],this.selectAllItem={depth:0,filterPasses:!0,available:!0,treeKey:z.SET_FILTER_SELECT_ALL,children:this.allDisplayedItemsTree,expanded:!0,key:z.SET_FILTER_SELECT_ALL,parentTreeKeys:[]},this.addSelectionToFilterItem={depth:0,filterPasses:!0,available:!0,treeKey:z.SET_FILTER_ADD_SELECTION_TO_FILTER,expanded:!0,key:z.SET_FILTER_ADD_SELECTION_TO_FILTER,parentTreeKeys:[]}}updateOnParamsChange(d){this.treeListFormatter=d}updateDisplayedValuesToAllAvailable(d,s,c,h){h==="reload"?this.generateItemTree(d,s,c):h==="otherFilter"?(this.updateAvailable(c),this.updateExpandAll()):h==="miniFilter"&&(this.resetFilter(),this.updateExpandAll()),this.flattenItems()}updateDisplayedValuesToMatchMiniFilter(d,s,c,h,g,f){f==="reload"?this.generateItemTree(d,s,c):f==="otherFilter"&&this.updateAvailable(c),this.updateFilter(h,g),this.updateExpandAll(),this.flattenItems()}generateItemTree(d,s,c){var g;this.allDisplayedItemsTree=[],this.groupsExist=!1;let h=this.getTreeListPathGetter(d,c);for(let f of s){let S=d(f),w=(g=h(S))!=null?g:[null];w.length>1&&(this.groupsExist=!0);let M=c.has(f),P=this.allDisplayedItemsTree,O,G=[];w.forEach((j,Y)=>{P||(P=[],O.children=P),O=P.find(J=>{var ne;return((ne=J.treeKey)==null?void 0:ne.toUpperCase())===(j==null?void 0:j.toUpperCase())}),O||(O={treeKey:j,depth:Y,filterPasses:!0,expanded:!1,available:M,parentTreeKeys:G},Y===w.length-1&&(O.key=f),P.push(O)),P=O.children,G=[...G,j]})}this.updateAvailable(c),this.selectAllItem.children=this.allDisplayedItemsTree,this.selectAllItem.expanded=!1}getTreeListPathGetter(d,s){if(this.treeListPathGetter)return this.treeListPathGetter;if(this.treeDataOrGrouping)return h=>h;let c=!1;for(let h of s){let g=d(h);if(g instanceof Date){c=!0;break}else if(g!=null)break}return c?T:((0,E._warn)(211),h=>[String(h)])}flattenItems(){this.activeDisplayedItemsFlat=[];let d=s=>{s.forEach(c=>{!c.filterPasses||!c.available||(this.activeDisplayedItemsFlat.push(c),c.children&&c.expanded&&d(c.children))})};d(this.allDisplayedItemsTree)}resetFilter(){let d=s=>{s.children&&s.children.forEach(c=>{d(c)}),s.filterPasses=!0};this.allDisplayedItemsTree.forEach(s=>d(s))}updateFilter(d,s){let c=h=>h.available?h.treeKey==null?s:d(this.formatter(this.treeListFormatter?this.treeListFormatter(h.treeKey,h.depth,h.parentTreeKeys):h.treeKey)):!1;this.allDisplayedItemsTree.forEach(h=>this.recursiveItemCheck(h,!1,c,"filterPasses"))}getDisplayedValueCount(){return this.activeDisplayedItemsFlat.length}getDisplayedItem(d){return this.activeDisplayedItemsFlat[d]}getSelectAllItem(){return this.selectAllItem}getAddSelectionToFilterItem(){return this.addSelectionToFilterItem}getDisplayedKeys(){let d=[];return this.forEachDisplayedKey(s=>d.push(s)),d}forEachDisplayedKey(d){let s=(c,h)=>{c.children?(!c.expanded||!h)&&c.children.forEach(g=>{g.filterPasses&&s(g,!1)}):d(c.key)};this.activeDisplayedItemsFlat.forEach(c=>s(c,!0))}someDisplayedKey(d){let s=(c,h)=>{if(c.children){if(!c.expanded||!h)return c.children.some(g=>g.filterPasses?s(g,!1):!1)}else return d(c.key);return!1};return this.activeDisplayedItemsFlat.some(c=>s(c,!0))}hasGroups(){return this.groupsExist}refresh(){this.updateExpandAll(),this.flattenItems()}updateExpandAll(){let d=(c,h,g)=>{for(let f of c){if(!f.filterPasses||!f.available||!f.children)continue;if(h=h||!!f.expanded,g=g||!f.expanded,h&&g)return;let S=d(f.children,h,g);if(S===void 0)return;S?h=!0:g=!0}return h&&g?void 0:h},s=this.getSelectAllItem();s.expanded=d(s.children,!1,!1)}recursiveItemCheck(d,s,c,h){let g=!1;d.children&&d.children.forEach(S=>{let w=this.recursiveItemCheck(S,s||c(d),c,h);g=g||w});let f=s||g||c(d);return d[h]=f,f}updateAvailable(d){let s=c=>d.has(c.key);this.allDisplayedItemsTree.forEach(c=>this.recursiveItemCheck(c,!1,s,"available"))}}p.TreeSetDisplayValueModel=b},9172:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgHorizontalResize=void 0;let E=A(6624);class z extends E.Component{constructor(){super('<div class="ag-tool-panel-horizontal-resize"></div>'),this.minWidth=100,this.maxWidth=null}postConstruct(){let b=this.beans.horizontalResizeSvc.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(b),this.inverted=this.gos.get("enableRtl")}dispatchResizeEvent(b,C,d){this.eventSvc.dispatchEvent({type:"toolPanelSizeChanged",width:d,started:b,ended:C})}onResizeStart(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)}onResizeEnd(b){return this.onResizing(b,!0)}onResizing(b,C=!1){let d=this.inverted?-1:1,s=Math.max(this.minWidth,Math.floor(this.startingWidth-b*d));this.maxWidth!=null&&(s=Math.min(this.maxWidth,s)),this.elementToResize.style.width=`${s}px`,this.dispatchResizeEvent(!1,C,s)}}p.AgHorizontalResize=z},911:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agSideBarCSS=void 0,p.agSideBarCSS='.ag-tool-panel-wrapper{cursor:default;display:flex;overflow:hidden auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-side-bar-panel-width)}.ag-select-agg-func-item{align-items:center;display:flex;flex:1 1 auto;flex-flow:row nowrap;height:100%;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;>*{flex:none}}.ag-tool-panel-horizontal-resize{cursor:ew-resize;height:100%;position:absolute;top:0;width:5px;z-index:1}.ag-side-bar{background-color:var(--ag-side-bar-background-color);display:flex;flex-direction:row-reverse;position:relative}:where(.ag-ltr) :where(.ag-side-bar-left) .ag-tool-panel-horizontal-resize{right:-3px}:where(.ag-rtl) :where(.ag-side-bar-left) .ag-tool-panel-horizontal-resize{left:-3px}:where(.ag-ltr) :where(.ag-side-bar-right) .ag-tool-panel-horizontal-resize{left:-3px}:where(.ag-rtl) :where(.ag-side-bar-right) .ag-tool-panel-horizontal-resize{right:-3px}.ag-side-bar-left{flex-direction:row;order:-1}.ag-side-buttons{background-color:var(--ag-side-button-bar-background-color);padding-top:var(--ag-side-button-bar-top-padding);position:relative}.ag-side-button{background-color:var(--ag-side-button-background-color);border-bottom:var(--ag-side-button-selected-border);border-bottom-color:transparent;border-top:var(--ag-side-button-selected-border);border-top-color:transparent;color:var(--ag-side-button-text-color);position:relative;&:before{background-color:transparent;bottom:0;content:"";display:block;position:absolute;top:0;transition:background-color var(--ag-side-button-selected-underline-transition-duration);width:var(--ag-side-button-selected-underline-width)}&:hover{background-color:var(--ag-side-button-hover-background-color);color:var(--ag-side-button-hover-text-color)}&.ag-selected{background-color:var(--ag-side-button-selected-background-color);border-bottom:var(--ag-side-button-selected-border);color:var(--ag-side-button-selected-text-color);&:where(:not(:first-of-type)){border-top:var(--ag-side-button-selected-border)}&:before{background-color:var(--ag-side-button-selected-underline-color)}}}:where(.ag-ltr) .ag-side-button{&:before{left:0}}:where(.ag-rtl) .ag-side-button{&:before{right:0}}.ag-side-button-button{align-items:center;cursor:pointer;display:flex;flex-direction:column;gap:var(--ag-spacing);position:relative;white-space:nowrap;width:100%;&:focus{box-shadow:none}}:where(.ag-ltr) .ag-side-button-button{padding:var(--ag-side-button-vertical-padding) var(--ag-side-button-right-padding) var(--ag-side-button-vertical-padding) var(--ag-side-button-left-padding)}:where(.ag-rtl) .ag-side-button-button{padding:var(--ag-side-button-vertical-padding) var(--ag-side-button-left-padding) var(--ag-side-button-vertical-padding) var(--ag-side-button-right-padding)}.ag-side-button-button:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-side-button-label{writing-mode:vertical-lr}@media (resolution <= 1.5x){.ag-side-button-label{font-family:"Segoe UI",var(--ag-font-family)}:where(.ag-ltr) .ag-side-button-label{transform:rotate(.05deg)}:where(.ag-rtl) .ag-side-button-label{transform:rotate(-.05deg)}}:where(.ag-ltr) .ag-side-bar-left,:where(.ag-rtl) .ag-side-bar-right{border-right:var(--ag-side-panel-border);:where(.ag-tool-panel-wrapper){border-left:var(--ag-side-panel-border)}}:where(.ag-ltr) .ag-side-bar-right,:where(.ag-rtl) .ag-side-bar-left{border-left:var(--ag-side-panel-border);:where(.ag-tool-panel-wrapper){border-right:var(--ag-side-panel-border)}}'},3814:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgSideBarSelector=p.AgSideBar=void 0;let E=A(6624),z=A(6242),T=A(911),b=A(7861),C=A(8124),d=A(6443);class s extends E.Component{constructor(){super(`<div class="ag-side-bar ag-unselectable">
                <ag-side-bar-buttons data-ref="sideBarButtons"></ag-side-bar-buttons>
            </div>`,[b.AgSideBarButtonsSelector]),this.sideBarButtons=E.RefPlaceholder,this.toolPanelWrappers=[],this.registerCSS(T.agSideBarCSS)}postConstruct(){var w;this.sideBarButtons.addEventListener("sideBarButtonClicked",this.onToolPanelButtonClicked.bind(this));let{beans:h,gos:g}=this,{sideBar:f}=(w=g.get("initialState"))!=null?w:{};this.setSideBarDef({sideBarDef:(0,C.parseSideBarDef)(g.get("sideBar")),sideBarState:f}),this.addManagedPropertyListener("sideBar",this.onSideBarUpdated.bind(this)),h.sideBar.comp=this;let S=this.getFocusableElement();this.createManagedBean(new E.ManagedFocusFeature(S,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),(0,E._addFocusableContainerListener)(h,this,S)}onTabKeyDown(h){if(h.defaultPrevented)return;let{beans:g,sideBarButtons:f}=this,S=this.getGui(),w=f.getGui(),M=(0,E._getActiveDomElement)(g),P=S.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),O=h.target;if(!P)return(0,E._focusNextGridCoreContainer)(g,h.shiftKey,!0);if(w.contains(M)){(0,E._focusInto)(P,h.shiftKey)&&h.preventDefault();return}if(!h.shiftKey)return;let G=null;P.contains(M)?G=(0,E._findNextFocusableElement)(g,P,void 0,!0):(0,z.isTargetUnderManagedComponent)(P,O)&&h.shiftKey&&(G=(0,z.findFocusableElementBeforeTabGuard)(P,O)),G||(G=w.querySelector(".ag-selected button")),G&&G!==h.target&&(h.preventDefault(),G.focus())}handleKeyDown(h){let g=(0,E._getActiveDomElement)(this.beans),f=this.sideBarButtons;if(!f.getGui().contains(g))return;let S=f.getGui(),w=Array.prototype.slice.call(S.querySelectorAll(".ag-side-button")),M=w.findIndex(G=>G.contains(g)),P=null;switch(h.key){case E.KeyCode.LEFT:case E.KeyCode.UP:P=Math.max(0,M-1);break;case E.KeyCode.RIGHT:case E.KeyCode.DOWN:P=Math.min(M+1,w.length-1);break}if(P===null)return;let O=w[P].querySelector("button");O&&(O.focus(),h.preventDefault())}onToolPanelButtonClicked(h){let g=h.toolPanelId;this.openedItem()===g?this.openToolPanel(void 0,"sideBarButtonClicked"):this.openToolPanel(g,"sideBarButtonClicked")}clearDownUi(){this.sideBarButtons.clearButtons(),this.destroyToolPanelWrappers()}setSideBarDef({sideBarDef:h,sideBarState:g,existingToolPanelWrappers:f}){if(this.setDisplayed(!1),this.sideBar=h,h&&h.toolPanels){let S=h.toolPanels;if(this.createToolPanelsAndSideButtons(S,g,f),!this.toolPanelWrappers.length)return;let w=g?g.visible:!h.hiddenByDefault;if(this.setDisplayed(w),this.setSideBarPosition(g?g.position:h.position),w)if(g){let{openToolPanel:M}=g;M&&this.openToolPanel(M,"sideBarInitializing")}else this.openToolPanel(h.defaultToolPanel,"sideBarInitializing")}}getDef(){return this.sideBar}setSideBarPosition(h){h||(h="right"),this.position=h;let g=h==="left",f=g?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",g),this.addOrRemoveCssClass("ag-side-bar-right",!g),this.toolPanelWrappers.forEach(S=>{S.setResizerSizerSide(f)}),this.dispatchSideBarUpdated(),this}setDisplayed(h,g){super.setDisplayed(h,g),this.dispatchSideBarUpdated()}getState(){let h={};return this.toolPanelWrappers.forEach(g=>{var f,S;h[g.getToolPanelId()]=(S=(f=g.getToolPanelInstance())==null?void 0:f.getState)==null?void 0:S.call(f)}),{visible:this.isDisplayed(),position:this.position,openToolPanel:this.openedItem(),toolPanels:h}}createToolPanelsAndSideButtons(h,g,f){var S;for(let w of h)this.createToolPanelAndSideButton(w,(S=g==null?void 0:g.toolPanels)==null?void 0:S[w.id],f==null?void 0:f[w.id])}validateDef(h){var g;return h.id==null?((0,E._warn)(212),!1):h.toolPanel==="agFiltersToolPanel"&&(g=this.beans.filterManager)!=null&&g.isAdvFilterEnabled()?((0,E._warn)(213),!1):!0}createToolPanelAndSideButton(h,g,f){if(!this.validateDef(h))return;let S;if(f)S=f;else if(S=this.createBean(new d.ToolPanelWrapper),!S.setToolPanelDef(h,{initialState:g,onStateUpdated:()=>this.dispatchSideBarUpdated()}))return;S.setDisplayed(!1);let w=S.getGui();this.appendChild(w),this.toolPanelWrappers.push(S);let M=this.sideBarButtons.addButtonComp(h);(0,E._setAriaControls)(M.eToggleButton,w)}refresh(){this.toolPanelWrappers.forEach(h=>h.refresh())}openToolPanel(h,g="api"){let f=this.openedItem();if(f===h)return;this.toolPanelWrappers.forEach(M=>{let P=h===M.getToolPanelId();M.setDisplayed(P)});let S=this.openedItem();f!==S&&(this.sideBarButtons.setActiveButton(h),this.raiseToolPanelVisibleEvent(h,f!=null?f:void 0,g))}getToolPanelInstance(h){let g=this.toolPanelWrappers.filter(f=>f.getToolPanelId()===h)[0];if(!g){(0,E._warn)(214,{key:h});return}return g.getToolPanelInstance()}raiseToolPanelVisibleEvent(h,g,f){let S=!!h&&!!g,w=this.eventSvc;g&&w.dispatchEvent({type:"toolPanelVisibleChanged",source:f,key:g,visible:!1,switchingToolPanel:S}),h&&w.dispatchEvent({type:"toolPanelVisibleChanged",source:f,key:h,visible:!0,switchingToolPanel:S})}close(h="api"){this.openToolPanel(void 0,h)}isToolPanelShowing(){return!!this.openedItem()}openedItem(){let h=null;return this.toolPanelWrappers.forEach(g=>{g.isDisplayed()&&(h=g.getToolPanelId())}),h}onSideBarUpdated(){var f;let h=(0,C.parseSideBarDef)(this.gos.get("sideBar")),g={};h&&this.sideBar&&((f=h.toolPanels)==null||f.forEach(S=>{var j,Y,J;let{id:w}=S;if(!w)return;let M=(j=this.sideBar.toolPanels)==null?void 0:j.find(ne=>ne.id===w);if(!M||S.toolPanel!==M.toolPanel)return;let P=this.toolPanelWrappers.find(ne=>ne.getToolPanelId()===w);if(!P)return;let O=this.gos.addGridCommonParams(He(ge({},(Y=S.toolPanelParams)!=null?Y:{}),{onStateUpdated:()=>this.dispatchSideBarUpdated()}));((J=P.getToolPanelInstance())==null?void 0:J.refresh(O))===!0&&(this.toolPanelWrappers=this.toolPanelWrappers.filter(ne=>ne!==P),(0,E._removeFromParent)(P.getGui()),g[w]=P)})),this.clearDownUi(),this.setSideBarDef({sideBarDef:h,existingToolPanelWrappers:g})}dispatchSideBarUpdated(){this.eventSvc.dispatchEvent({type:"sideBarUpdated"})}destroyToolPanelWrappers(){this.toolPanelWrappers.forEach(h=>{(0,E._removeFromParent)(h.getGui()),this.destroyBean(h)}),this.toolPanelWrappers.length=0}destroy(){this.destroyToolPanelWrappers(),super.destroy()}}p.AgSideBar=s,p.AgSideBarSelector={selector:"AG-SIDE-BAR",component:s}},7861:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgSideBarButtonsSelector=p.AgSideBarButtons=void 0;let E=A(6624),z=A(3945);class T extends E.Component{constructor(){super('<div class="ag-side-buttons" role="tablist"></div>'),this.buttonComps=[]}postConstruct(){this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(C){if(!(C.key!==E.KeyCode.TAB||!C.shiftKey)){if((0,E._focusNextGridCoreContainer)(this.beans,!0)){C.preventDefault();return}(0,E._stopPropagationForAgGrid)(C)}}setActiveButton(C){this.buttonComps.forEach(d=>{d.setSelected(C===d.getToolPanelId())})}addButtonComp(C){let d=this.createBean(new z.SideBarButtonComp(C));return this.buttonComps.push(d),this.appendChild(d),d.addEventListener("toggleButtonClicked",()=>{this.dispatchLocalEvent({type:"sideBarButtonClicked",toolPanelId:C.id})}),d}clearButtons(){this.buttonComps=this.destroyBeans(this.buttonComps),(0,E._clearElement)(this.getGui()),super.destroy()}destroy(){this.clearButtons(),super.destroy()}}p.AgSideBarButtons=T,p.AgSideBarButtonsSelector={selector:"AG-SIDE-BAR-BUTTONS",component:T}},9705:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.mergeLeafPathTrees=p.isColGroupDef=void 0;let E=A(6624);function z(d){return!!d&&typeof d.children!="undefined"}p.isColGroupDef=z;function T(d){return z(d)?d.groupId:d.colId}function b(d,s,c){let h=(S,w)=>{let P=S.children.map(T).includes(T(w)),O=(0,E._last)(S.children),G=O&&T(O)!==T(w);return P&&G};if(!z(d))return!0;let g=d,f=c;if(h(g,f)||g.groupId===s&&!g.children.map(T).includes(T(f)))return g.children.push(f),!0;for(let S=g.children.length-1;S>=0&&!b(g.children[S],s,c);S--);return!1}function C(d){let s=(g,f)=>z(g)&&z(f)&&T(g)===T(f),c=(g,f)=>{if(!z(f))return g;let S=g,w=f;return w.children&&w.groupId&&b(S,w.groupId,w.children[0])||w.children.forEach(M=>c(S,M)),S},h=[];for(let g=1;g<=d.length;g++){let f=d[g-1],S=d[g];s(f,S)?d[g]=c(f,S):h.push(f)}return h}p.mergeLeafPathTrees=C},6092:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.syncLayoutWithGrid=p.toolPanelCreateColumnTree=void 0;let E=A(6624),z=A(9705);function T(d,s){let c=[],h=(f,S)=>{if((0,z.isColGroupDef)(f)){let w=f,M=typeof w.groupId!="undefined"?w.groupId:w.headerName,P=new E.AgProvidedColumnGroup(w,M,!1,S),O=[];return w.children.forEach(G=>{let j=h(G,S+1);j&&O.push(j)}),P.setChildren(O),P}else{let w=f,M=w.colId?w.colId:w.field,P=d.getColDefCol(M);return P||c.push(w),P}},g=[];return s.forEach(f=>{let S=h(f,0);S&&g.push(S)}),c.length>0&&(0,E._warn)(217,{invalidColIds:c}),g}p.toolPanelCreateColumnTree=T;function b(d,s){let c=C(d),h=(0,z.mergeLeafPathTrees)(c);s(h)}p.syncLayoutWithGrid=b;function C(d){let s=(g,f)=>{let S;if((0,E.isProvidedColumnGroup)(g))if(g.isPadding())S=f;else{let M=Object.assign({},g.getColGroupDef());M.groupId=g.getGroupId(),M.children=[f],S=M}else{let M=Object.assign({},g.getColDef());M.colId=g.getColId(),S=M}let w=g.getOriginalParent();return w?s(w,S):S};return d.getCols().filter(g=>{let f=g.getColDef();return g.isPrimary()&&!f.showRowGroup}).map(g=>s(g,g.getColDef()))}},2024:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getSideBar=p.getToolPanelInstance=p.isToolPanelShowing=p.refreshToolPanel=p.getOpenedToolPanel=p.closeToolPanel=p.openToolPanel=p.setSideBarPosition=p.setSideBarVisible=p.isSideBarVisible=void 0;let E=A(6624);function z(S){var w,M;return(M=(w=S.sideBar)==null?void 0:w.comp.isDisplayed())!=null?M:!1}p.isSideBarVisible=z;function T(S,w){var M;(M=S.sideBar)==null||M.comp.setDisplayed(w)}p.setSideBarVisible=T;function b(S,w){var M;(M=S.sideBar)==null||M.comp.setSideBarPosition(w)}p.setSideBarPosition=b;function C(S,w){var M;(M=S.sideBar)==null||M.comp.openToolPanel(w,"api")}p.openToolPanel=C;function d(S){var w;(w=S.sideBar)==null||w.comp.close("api")}p.closeToolPanel=d;function s(S){var w,M;return(M=(w=S.sideBar)==null?void 0:w.comp.openedItem())!=null?M:null}p.getOpenedToolPanel=s;function c(S){var w;(w=S.sideBar)==null||w.comp.refresh()}p.refreshToolPanel=c;function h(S){var w,M;return(M=(w=S.sideBar)==null?void 0:w.comp.isToolPanelShowing())!=null?M:!1}p.isToolPanelShowing=h;function g(S,w){var P;let M=(P=S.sideBar)==null?void 0:P.comp.getToolPanelInstance(w);return(0,E._unwrapUserComp)(M)}p.getToolPanelInstance=g;function f(S){var w;return(w=S.sideBar)==null?void 0:w.comp.getDef()}p.getSideBar=f},3945:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SideBarButtonComp=void 0;let E=A(6624);class z extends E.Component{constructor(b){super(),this.toolPanelDef=b,this.eToggleButton=E.RefPlaceholder,this.eIconWrapper=E.RefPlaceholder,this.eLabel=E.RefPlaceholder}getToolPanelId(){return this.toolPanelDef.id}postConstruct(){let b=this.createTemplate();this.setTemplate(b,[]),this.setLabel(),this.setIcon(),this.addManagedElementListeners(this.eToggleButton,{click:this.onButtonPressed.bind(this)}),this.eToggleButton.setAttribute("id",`ag-${this.getCompId()}-button`)}createTemplate(){return`<div class="ag-side-button" role="presentation">
                <button type="button" data-ref="eToggleButton" tabindex="-1" role="tab" aria-expanded="false" class="ag-button ag-side-button-button">
                    <div data-ref="eIconWrapper" class="ag-side-button-icon-wrapper" aria-hidden="true"></div>
                    <span data-ref="eLabel" class="ag-side-button-label"></span>
                </button>
            </div>`}setLabel(){let b=this.getLocaleTextFunc(),C=this.toolPanelDef,d=b(C.labelKey,C.labelDefault);this.eLabel.innerText=d}setIcon(){this.eIconWrapper.insertAdjacentElement("afterbegin",(0,E._createIconNoSpan)(this.toolPanelDef.iconKey,this.beans))}onButtonPressed(){this.dispatchLocalEvent({type:"toggleButtonClicked"})}setSelected(b){this.addOrRemoveCssClass("ag-selected",b),(0,E._setAriaExpanded)(this.eToggleButton,b)}}p.SideBarButtonComp=z},8124:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.parseSideBarDef=void 0;let E=A(6624),z={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columnsToolPanel",toolPanel:"agColumnsToolPanel"},T={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filtersToolPanel",toolPanel:"agFiltersToolPanel"},b={columns:z,filters:T};function C(s){if(!s)return;if(s===!0)return{toolPanels:[z,T],defaultToolPanel:"columns"};if(typeof s=="string")return C([s]);if(Array.isArray(s)){let h=[];return s.forEach(g=>{let f=b[g];if(!f){(0,E._warn)(215,{key:g,defaultByKey:b});return}h.push(f)}),h.length===0?void 0:{toolPanels:h,defaultToolPanel:h[0].id}}return{toolPanels:d(s.toolPanels),defaultToolPanel:s.defaultToolPanel,hiddenByDefault:s.hiddenByDefault,position:s.position}}p.parseSideBarDef=C;function d(s){let c=[];return s&&s.forEach(h=>{let g=null;if(typeof h=="string"){let f=b[h];if(!f){(0,E._warn)(215,{key:h,defaultByKey:b});return}g=f}else g=h;c.push(g)}),c}},6358:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SideBarModule=void 0;let E=A(6624),z=A(9206),T=A(7205),b=A(2024),C=A(6191);p.SideBarModule={moduleName:"SideBar",version:T.VERSION,beans:[C.SideBarService],apiFunctions:{isSideBarVisible:b.isSideBarVisible,setSideBarVisible:b.setSideBarVisible,setSideBarPosition:b.setSideBarPosition,openToolPanel:b.openToolPanel,closeToolPanel:b.closeToolPanel,getOpenedToolPanel:b.getOpenedToolPanel,refreshToolPanel:b.refreshToolPanel,isToolPanelShowing:b.isToolPanelShowing,getToolPanelInstance:b.getToolPanelInstance,getSideBar:b.getSideBar},dependsOn:[z.EnterpriseCoreModule,E._HorizontalResizeModule]}},6191:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SideBarService=void 0;let E=A(6624),z=A(3814);class T extends E.BeanStub{constructor(){super(...arguments),this.beanName="sideBar"}getSelector(){return z.AgSideBarSelector}}p.SideBarService=T},6443:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ToolPanelWrapper=void 0;let E=A(6624),z=A(9172);function T(d,s,c){return d.getCompDetails(s,b,void 0,c,!0)}let b={name:"toolPanel",optionalMethods:["refresh","getState"]};class C extends E.Component{constructor(){super('<div class="ag-tool-panel-wrapper" role="tabpanel"/>')}postConstruct(){let s=this.getGui(),c=this.resizeBar=this.createManagedBean(new z.AgHorizontalResize);s.setAttribute("id",`ag-${this.getCompId()}`),c.elementToResize=s,this.appendChild(c)}getToolPanelId(){return this.toolPanelId}setToolPanelDef(s,c){let{id:h,minWidth:g,maxWidth:f,width:S}=s;this.toolPanelId=h,this.width=S;let w=T(this.beans.userCompFactory,s,c);if(w==null)return!1;let M=w.newAgStackInstance();this.params=w.params,M.then(this.setToolPanelComponent.bind(this));let P=this.resizeBar;return g!=null&&(P.minWidth=g),f!=null&&(P.maxWidth=f),!0}setToolPanelComponent(s){this.toolPanelCompInstance=s,this.appendChild(s.getGui()),this.addDestroyFunc(()=>{this.destroyBean(s)});let c=this.width;c&&(this.getGui().style.width=`${c}px`)}getToolPanelInstance(){return this.toolPanelCompInstance}setResizerSizerSide(s){let c=this.gos.get("enableRtl"),h=s==="left",g=c?h:!h;this.resizeBar.inverted=g}refresh(){var s;(s=this.toolPanelCompInstance)==null||s.refresh(this.params)}}p.ToolPanelWrapper=C},4087:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.sparklineCSS=void 0,p.sparklineCSS=".ag-sparkline-wrapper{height:100%;left:0;position:absolute;top:0;width:100%}.ag-sparkline-wrapper :where(canvas){position:absolute}"},2437:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SparklineCellRenderer=p.DEFAULT_THEMES=void 0;let E=A(6624),z=A(6464);p.DEFAULT_THEMES=["ag-default","ag-material","ag-sheets","ag-polychroma","ag-vivid"];class T extends E.Component{constructor(){super(`<div class="ag-sparkline-wrapper">
            <span data-ref="eSparkline"></span>
        </div>`),this.eSparkline=E.RefPlaceholder}postConstruct(){this.addManagedPropertyListeners(["chartThemeOverrides","chartThemes"],C=>this.refresh(this.params))}init(C){this.refresh(C);let d=(0,E._observeResize)(this.beans,this.getGui(),()=>this.refresh(C));this.addDestroyFunc(()=>d())}getThemeName(){return(this.gos.get("chartThemes")||p.DEFAULT_THEMES)[0]}refresh(C){var c,h,g,f,S;this.params=C;let{clientWidth:d,clientHeight:s}=this.getGui();if(!this.sparklineInstance&&C&&d>0&&s){this.sparklineOptions=He(ge({container:this.eSparkline,width:d,height:s},C.sparklineOptions),{data:this.processData(C.value)}),(c=this.sparklineOptions.tooltip)!=null&&c.renderer?this.wrapTooltipRenderer():this.sparklineOptions.tooltip=He(ge({},this.sparklineOptions.tooltip),{renderer:M=>({content:this.createDefaultContent(M)})});let w=(h=this.sparklineOptions)==null?void 0:h.theme;return this.sparklineOptions.type==="bar"&&this.sparklineOptions.itemStyler?this.wrapItemStyler(this.sparklineOptions):(S=(f=(g=w==null?void 0:w.overrides)==null?void 0:g.bar)==null?void 0:f.series)!=null&&S.itemStyler&&this.wrapItemStyler(w.overrides.bar.series),this.updateTheme(this.sparklineOptions),this.sparklineInstance=C.createSparkline(this.sparklineOptions),!0}else if(this.sparklineInstance){let w=C==null?void 0:C.value;return this.sparklineOptions.width=d,this.sparklineOptions.height=s,this.sparklineOptions.data=this.processData(w),this.updateTheme(this.sparklineOptions),this.sparklineInstance.updateDelta(this.sparklineOptions),!0}return!1}updateTheme(C){let d=this.getThemeName();typeof C.theme=="string"||!C.theme?C.theme=d:C.theme&&(C.theme.baseTheme=d)}processData(C=[]){return C.length===0?C:C.filter(d=>d!=null)}createContext(){var C,d;return{data:(C=this.params)==null?void 0:C.data,cellData:(d=this.params)==null?void 0:d.value}}createDefaultContent(C,d){var f;let s=d==null?void 0:d.title,c=this.sparklineOptions.xKey,h=Array.isArray((f=this.sparklineOptions.data)==null?void 0:f[0]);return`${!s&&(c||h)?`${C.xValue} `:""}${C.yValue}`}wrapItemStyler(C){C.itemStyler=(0,z.wrapFn)(C.itemStyler,(d,s)=>d(He(ge({},s),{context:this.createContext()})))}wrapTooltipRenderer(){this.sparklineOptions.tooltip=He(ge({},this.sparklineOptions.tooltip),{renderer:(0,z.wrapFn)(this.sparklineOptions.tooltip.renderer,(C,d)=>{let s=C(He(ge({},d),{context:this.createContext()}));return typeof s=="string"?s:ge({content:this.createDefaultContent(d,s)},s)})})}destroy(){var C;super.destroy(),(C=this.sparklineInstance)==null||C.destroy()}}p.SparklineCellRenderer=T},2949:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SparklinesModule=void 0;let E=A(6624),z=A(9206),T=A(7205),b=A(4087),C=A(2437),d="Sparklines";p.SparklinesModule={moduleName:d,version:T.VERSION,dependsOn:[z.EnterpriseCoreModule],validate:()=>({isValid:!1,message:(0,E._preInitErrMsg)(258)}),with:s=>(s.setup(),{moduleName:d,version:T.VERSION,dependsOn:[z.EnterpriseCoreModule],css:[b.sparklineCSS],userComponents:{agSparklineCellRenderer:{classImp:C.SparklineCellRenderer,params:{createSparkline:s.createSparkline}}},validate:()=>({isValid:!0})})}},6464:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.wrapFn=void 0;let A=Symbol("WrappedFunctionMarker"),E=(z,T)=>{if(z[A])return z;let b=(...C)=>T(z,...C);return b[A]=A,b};p.wrapFn=E},2875:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agStatusBarCSS=void 0,p.agStatusBarCSS=".ag-status-bar{border-top:var(--ag-footer-row-border);display:flex;justify-content:space-between;line-height:1.5;overflow:hidden;padding-left:calc(var(--ag-spacing)*4);padding-right:calc(var(--ag-spacing)*4)}.ag-status-panel{display:inline-flex}.ag-status-name-value{font-weight:500;margin-left:var(--ag-spacing);margin-right:var(--ag-spacing);padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding);white-space:nowrap}.ag-status-bar-left{display:inline-flex}.ag-status-bar-center{display:inline-flex;text-align:center}.ag-status-bar-right{display:inline-flex}"},1866:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgStatusBarSelector=p.AgStatusBar=void 0;let E=A(6624),z=A(2875);function T(d,s,c){return d.getCompDetails(s,b,void 0,c,!0)}let b={name:"statusPanel",optionalMethods:["refresh"]};class C extends E.Component{wireBeans(s){this.userCompFactory=s.userCompFactory,this.statusBarSvc=s.statusBarSvc}constructor(){super(`<div class="ag-status-bar">
            <div data-ref="eStatusBarLeft" class="ag-status-bar-left" role="status"></div>
            <div data-ref="eStatusBarCenter" class="ag-status-bar-center" role="status"></div>
            <div data-ref="eStatusBarRight" class="ag-status-bar-right" role="status"></div>
        </div>`),this.updateQueued=!1,this.panelsPromise=E.AgPromise.resolve(),this.eStatusBarLeft=E.RefPlaceholder,this.eStatusBarCenter=E.RefPlaceholder,this.eStatusBarRight=E.RefPlaceholder,this.compDestroyFunctions={},this.registerCSS(z.agStatusBarCSS)}postConstruct(){this.processStatusPanels(new Map),this.addManagedPropertyListeners(["statusBar"],this.handleStatusBarChanged.bind(this))}processStatusPanels(s){var h;let c=(h=this.gos.get("statusBar"))==null?void 0:h.statusPanels;if(c){let g=c.filter(w=>w.align==="left"),f=c.filter(w=>w.align==="center"),S=c.filter(w=>!w.align||w.align==="right");this.panelsPromise=E.AgPromise.all([this.createAndRenderComponents(g,this.eStatusBarLeft,s),this.createAndRenderComponents(f,this.eStatusBarCenter,s),this.createAndRenderComponents(S,this.eStatusBarRight,s)])}else this.setDisplayed(!1)}handleStatusBarChanged(){this.updateQueued||(this.updateQueued=!0,this.panelsPromise.then(()=>{this.updateStatusBar(),this.updateQueued=!1}))}updateStatusBar(){var g;let s=(g=this.gos.get("statusBar"))==null?void 0:g.statusPanels,c=Array.isArray(s)&&s.length>0;this.setDisplayed(c);let h=new Map;c&&s.forEach(f=>{var M,P;let S=(M=f.key)!=null?M:f.statusPanel,w=this.statusBarSvc.getStatusPanel(S);if(w!=null&&w.refresh){let O=this.gos.addGridCommonParams((P=f.statusPanelParams)!=null?P:{});w.refresh(O)&&(h.set(S,w),delete this.compDestroyFunctions[S],(0,E._removeFromParent)(w.getGui()))}}),this.resetStatusBar(),c&&this.processStatusPanels(h)}resetStatusBar(){this.eStatusBarLeft.innerHTML="",this.eStatusBarCenter.innerHTML="",this.eStatusBarRight.innerHTML="",this.destroyComponents(),this.statusBarSvc.unregisterAllComponents()}destroy(){this.destroyComponents(),super.destroy()}destroyComponents(){Object.values(this.compDestroyFunctions).forEach(s=>s()),this.compDestroyFunctions={}}createAndRenderComponents(s,c,h){let g=[];return s.forEach(f=>{let S=f.key||f.statusPanel,w=h.get(S),M;if(w)M=E.AgPromise.resolve(w);else{let P={},O=T(this.userCompFactory,f,P);if(O==null)return;M=O.newAgStackInstance()}g.push({key:S,promise:M})}),E.AgPromise.all(g.map(f=>f.promise)).then(()=>{g.forEach(f=>{f.promise.then(S=>{let w=()=>{this.destroyBean(S)};this.isAlive()?(this.statusBarSvc.registerStatusPanel(f.key,S),c.appendChild(S.getGui()),this.compDestroyFunctions[f.key]=w):w()})})})}}p.AgStatusBar=C,p.AgStatusBarSelector={selector:"AG-STATUS-BAR",component:C}},3910:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgNameValueSelector=p.AgNameValue=void 0;let E=A(6624);class z extends E.Component{constructor(){super(`<div class="ag-status-name-value">
            <span data-ref="eLabel"></span>:&nbsp;
            <span data-ref="eValue" class="ag-status-name-value-value"></span>
        </div>`),this.eLabel=E.RefPlaceholder,this.eValue=E.RefPlaceholder}setLabel(b,C){this.setDisplayed(!1);let d=this.getLocaleTextFunc();this.eLabel.innerHTML=d(b,C)}setValue(b){this.eValue.innerHTML=b}}p.AgNameValue=z,p.AgNameValueSelector={selector:"AG-NAME-VALUE",component:z}},8999:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AggregationComp=void 0;let E=A(6624),z=A(3910);function T(C,d){return typeof C!="number"?"":(0,E._formatNumberCommas)(Math.round(C*100)/100,d)}class b extends E.Component{constructor(){super(`<div class="ag-status-panel ag-status-panel-aggregations">
            <ag-name-value data-ref="avgAggregationComp"></ag-name-value>
            <ag-name-value data-ref="countAggregationComp"></ag-name-value>
            <ag-name-value data-ref="minAggregationComp"></ag-name-value>
            <ag-name-value data-ref="maxAggregationComp"></ag-name-value>
            <ag-name-value data-ref="sumAggregationComp"></ag-name-value>
        </div>`,[z.AgNameValueSelector]),this.sumAggregationComp=E.RefPlaceholder,this.countAggregationComp=E.RefPlaceholder,this.minAggregationComp=E.RefPlaceholder,this.maxAggregationComp=E.RefPlaceholder,this.avgAggregationComp=E.RefPlaceholder}postConstruct(){if(!(0,E._isClientSideRowModel)(this.gos)&&!(0,E._isServerSideRowModel)(this.gos)){(0,E._warn)(221);return}this.avgAggregationComp.setLabel("avg","Average"),this.countAggregationComp.setLabel("count","Count"),this.minAggregationComp.setLabel("min","Min"),this.maxAggregationComp.setLabel("max","Max"),this.sumAggregationComp.setLabel("sum","Sum"),this.addManagedEventListeners({cellSelectionChanged:this.onCellSelectionChanged.bind(this),modelUpdated:this.onCellSelectionChanged.bind(this)})}init(d){this.refresh(d)}refresh(d){return this.params=d,this.onCellSelectionChanged(),!0}setAggregationComponentValue(d,s,c){var g;let h=this.getAllowedAggregationValueComponent(d);(0,E._exists)(h)&&h?(h.setValue(T(s,this.getLocaleTextFunc.bind(this))),h.setDisplayed(c)):(g=this.getAggregationValueComponent(d))==null||g.setDisplayed(!1)}getAllowedAggregationValueComponent(d){let{aggFuncs:s}=this.params;return!s||s.includes(d)?this.getAggregationValueComponent(d):null}getAggregationValueComponent(d){let s=`${d}AggregationComp`;return this[s]}onCellSelectionChanged(){let d=this.beans,{rangeSvc:s,valueSvc:c,cellNavigation:h}=d,g=s==null?void 0:s.getCellRanges(),f=0,S=0,w=0,M=null,P=null,O={};if(g!=null&&g.length&&s)for(let Y=0;Y<g.length;Y++){let J=g[Y],ne=s.getRangeStartRow(J),ce=s.getRangeEndRow(J);for(;!((0,E._missing)(ne)||!ne||(0,E._isRowBefore)(ce,ne)||!ne||!J.columns);)J.columns.forEach(xe=>{if(ne===null)return;let Le=(0,E._createCellId)({rowPinned:ne.rowPinned,column:xe,rowIndex:ne.rowIndex});if(O[Le])return;O[Le]=!0;let _e=(0,E._getRowNode)(d,ne);if((0,E._missing)(_e))return;let Fe=c.getValue(xe,_e);(0,E._missing)(Fe)||Fe===""||(S++,!(typeof Fe=="object"&&"value"in Fe&&(Fe=Fe.value,Fe===""))&&(typeof Fe=="string"&&(Fe=Number(Fe)),typeof Fe=="number"&&!isNaN(Fe)&&(f+=Fe,(P===null||Fe>P)&&(P=Fe),(M===null||Fe<M)&&(M=Fe),w++)))}),ne=h.getRowBelow(ne)}let G=S>1,j=w>1;this.setAggregationComponentValue("count",S,G),this.setAggregationComponentValue("sum",f,j),this.setAggregationComponentValue("min",M,j),this.setAggregationComponentValue("max",P,j),this.setAggregationComponentValue("avg",f/w,j)}}p.AggregationComp=b},1741:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.FilteredRowsComp=void 0;let E=A(6624),z=A(3910);class T extends z.AgNameValue{postConstruct(){if(this.setLabel("filteredRows","Filtered"),!(0,E._isClientSideRowModel)(this.gos)){(0,E._warn)(222);return}this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-filtered-row-count"),this.setDisplayed(!0);let C=this.onDataChanged.bind(this);this.addManagedEventListeners({modelUpdated:C}),C()}onDataChanged(){let C=this.getTotalRowCountValue(),d=this.getFilteredRowCountValue();this.setValue((0,E._formatNumberCommas)(d,this.getLocaleTextFunc.bind(this))),this.setDisplayed(C!==d)}getTotalRowCountValue(){let C=0;return this.beans.rowModel.forEachNode(()=>C+=1),C}getFilteredRowCountValue(){let C=0;return this.beans.rowModel.forEachNodeAfterFilter(d=>{d.group||(C+=1)}),C}init(){}refresh(){return!0}}p.FilteredRowsComp=T},8123:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SelectedRowsComp=void 0;let E=A(6624),z=A(3910);class T extends z.AgNameValue{postConstruct(){let C=this.gos;if(!(0,E._isClientSideRowModel)(C)&&!(0,E._isServerSideRowModel)(C)){(0,E._warn)(223);return}this.setLabel("selectedRows","Selected"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-selected-row-count"),this.onRowSelectionChanged();let d=this.onRowSelectionChanged.bind(this);this.addManagedEventListeners({modelUpdated:d,selectionChanged:d})}onRowSelectionChanged(){var d,s;let C=(s=(d=this.beans.selectionSvc)==null?void 0:d.getSelectionCount())!=null?s:0;if(C<0){this.setValue("?"),this.setDisplayed(!0);return}this.setValue((0,E._formatNumberCommas)(C,this.getLocaleTextFunc.bind(this))),this.setDisplayed(C>0)}init(){}refresh(){return!0}}p.SelectedRowsComp=T},1646:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TotalAndFilteredRowsComp=void 0;let E=A(6624),z=A(3910);class T extends z.AgNameValue{postConstruct(){if(!(0,E._isClientSideRowModel)(this.gos)){(0,E._warn)(224);return}this.setLabel("totalAndFilteredRows","Rows"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-and-filtered-row-count"),this.setDisplayed(!0),this.addManagedEventListeners({modelUpdated:this.onDataChanged.bind(this)}),this.onDataChanged()}onDataChanged(){let C=this.getLocaleTextFunc.bind(this),d=(0,E._formatNumberCommas)(this.getFilteredRowCountValue(),C),s=(0,E._formatNumberCommas)(this.getTotalRowCount(),C);if(d===s)this.setValue(d);else{let c=this.getLocaleTextFunc();this.setValue(`${d} ${c("of","of")} ${s}`)}}getFilteredRowCountValue(){let C=0;return this.beans.rowModel.forEachNodeAfterFilter(d=>{d.group||C++}),C}getTotalRowCount(){let C=0;return this.beans.rowModel.forEachNode(d=>{d.group||C++}),C}init(){}refresh(){return!0}}p.TotalAndFilteredRowsComp=T},2042:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TotalRowsComp=void 0;let E=A(6624),z=A(3910);class T extends z.AgNameValue{postConstruct(){if(this.setLabel("totalRows","Total Rows"),!(0,E._isClientSideRowModel)(this.gos)){(0,E._warn)(225);return}this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-row-count"),this.setDisplayed(!0),this.addManagedEventListeners({modelUpdated:this.onDataChanged.bind(this)}),this.onDataChanged()}onDataChanged(){this.setValue((0,E._formatNumberCommas)(this.getRowCountValue(),this.getLocaleTextFunc.bind(this)))}getRowCountValue(){let C=0;return this.beans.rowModel.forEachLeafNode(()=>C+=1),C}init(){}refresh(){return!0}}p.TotalRowsComp=T},9516:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getStatusPanel=void 0;let E=A(6624);function z(T,b){var d;let C=(d=T.statusBarSvc)==null?void 0:d.getStatusPanel(b);return(0,E._unwrapUserComp)(C)}p.getStatusPanel=z},8450:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StatusBarModule=void 0;let E=A(6624),z=A(9206),T=A(7205),b=A(1866),C=A(8999),d=A(1741),s=A(8123),c=A(1646),h=A(2042),g=A(9516),f=A(7947);p.StatusBarModule={moduleName:"StatusBar",version:T.VERSION,beans:[f.StatusBarService],userComponents:{agAggregationComponent:C.AggregationComp,agTotalRowCountComponent:h.TotalRowsComp,agFilteredRowCountComponent:d.FilteredRowsComp,agTotalAndFilteredRowCountComponent:c.TotalAndFilteredRowsComp,agSelectedRowCountComponent:s.SelectedRowsComp},selectors:[b.AgStatusBarSelector],apiFunctions:{getStatusPanel:g.getStatusPanel},dependsOn:[z.EnterpriseCoreModule,E._KeyboardNavigationModule]}},7947:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.StatusBarService=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(),this.beanName="statusBarSvc",this.comps=new Map}registerStatusPanel(b,C){this.comps.set(b,C)}unregisterStatusPanel(b){this.comps.delete(b)}unregisterAllComponents(){this.comps.clear()}getStatusPanel(b){return this.comps.get(b)}destroy(){this.unregisterAllComponents(),super.destroy()}}p.StatusBarService=z},987:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AbstractClientSideTreeNodeManager=void 0;let E=A(6624),z=A(8105),T=A(5012),b=A(2546),C=(s,c,h)=>{if(c!==h&&c!==null&&c.group&&(0,b.isTreeRowExpandedInitialized)(c)&&!s.isGroupOpenByDefault)return c.expanded;let g=s.isGroupOpenByDefault;return g?g({rowNode:h,field:h.field,key:h.key,level:h.level,rowGroupColumn:h.rowGroupColumn})==!0:s.expandByDefault===-1||h.level<s.expandByDefault};class d extends E.AbstractClientSideNodeManager{constructor(){super(...arguments),this.oldGroupDisplayColIds="",this.rowsPendingDestruction=null,this.treeRoot=null}activate(c){var h;super.activate(c),((h=this.treeRoot)!=null?h:this.treeRoot=new T.TreeNode(null,"",-1)).setRow(c)}destroy(){super.destroy(),this.treeRoot=null,this.rowsPendingDestruction=null,this.oldGroupDisplayColIds=""}deactivate(){let c=this.treeRoot;if(c){let h=c.row;h!==null&&(c.removeRow(h),(0,b.clearTreeRowFlags)(h)),this.treeDestroy(c)}this.commitDestroyedRows(),super.deactivate(),this.treeRoot=null,this.oldGroupDisplayColIds=""}treeSetRow(c,h,g){var M;let{level:f,row:S}=c;if(f<0)return!1;let w=!1;if(S!==h){let P=h.treeNode;P!==null&&P!==c&&(P.removeRow(h),P.invalidate()),S===null?(c.setRow(h),w=!0):S.data?c.addDuplicateRow(h)&&(w=!0):(c.setRow(h),this.destroyRow(S,!0),w=!0)}return!g&&!(0,b.isTreeRowUpdated)(h)&&((0,b.setTreeRowUpdated)(h),w=!0),w&&c.invalidate(),(M=this.rowsPendingDestruction)==null||M.delete(h),w}treeRemove(c,h){let{parent:g,level:f}=c;if(f<0)return;let S=!1;c.removeRow(h)&&(S=!0,g&&(g.childrenChanged=!0),this.destroyRow(h,!h.data)),S&&c.invalidate()}treeCommit(c){var M,P;let{treeRoot:h,rootNode:g}=this;if(!h||!g)return;let f=this.treeData,S={rootNode:g,changedPath:c,treeData:f,expandByDefault:this.gos.get("groupDefaultExpanded"),isGroupOpenByDefault:this.gos.getCallback("isGroupOpenByDefault")};this.treeCommitChildren(S,h,!1);let w=h.row;w&&(f&&(w.leafGroup=!1),h.childrenChanged&&h.updateChildrenAfterGroup(f)&&(0,b.markTreeRowPathChanged)(w),(0,b.isTreeRowPathChanged)(w)&&(M=S.changedPath)!=null&&M.active&&S.changedPath.addParentNode(w),(0,b.markTreeRowCommitted)(w),w.updateHasChildren()),this.commitDestroyedRows(),(P=this.beans.selectionSvc)==null||P.updateSelectableAfterGrouping(c)}treeCommitChildren(c,h,g){var f,S,w;for(;;){let M=h.dequeueInvalidated();if(M===null)break;M.parent===h&&this.treeCommitChild(c,M,g||!((S=(f=h.row)==null?void 0:f.expanded)==null||S))}h.childrenChanged||(h.childrenChanged=(c.treeData?h.size:0)!==((w=h.row.childrenAfterGroup)==null?void 0:w.length))}treeCommitChild(c,h,g){if(h.isEmptyFillerNode()){this.treeClear(h);return}if(this.treeCommitPreOrder(c,h),this.treeCommitChildren(c,h,g),h.isEmptyFillerNode()){this.treeClear(h);return}this.treeCommitPostOrder(c,h,g)}treeCommitPreOrder(c,h){let g=h.row;if(g===null?(g=this.createFillerRow(h),h.setRow(g)):(g=h.sortFirstDuplicateRow(),g.allChildrenCount===void 0&&(g.allChildrenCount=null)),c.treeData){if(g.parent=h.parent.row,h.oldRow!==g)for(let S of h.enumChildren()){let w=S.row;w!==null&&(w.parent=g)}let f=h.key;g.key!==f?(g.key=f,(0,b.setTreeRowKeyChanged)(g),this.setGroupData(g,f)):g.groupData||this.setGroupData(g,f)}else g.key=h.key,g.parent=c.rootNode}treeCommitPostOrder(c,h,g){var J,ne,ce;let f=h.parent,S=h.row,w=h.oldRow,M=c.treeData;h.childrenChanged&&h.updateChildrenAfterGroup(M)&&(0,b.markTreeRowPathChanged)(S),h.leafChildrenChanged&&h.updateAllLeafChildren();let P=!!((J=S.childrenAfterGroup)!=null&&J.length),O=P||!S.data,G=S.group;G!==O?((0,b.markTreeRowPathChanged)(S),(0,z.setRowNodeGroup)(S,this.beans,O),!O&&!S.expanded&&(0,b.setTreeRowExpandedInitialized)(S,!1)):S.hasChildren()!==P&&((0,b.markTreeRowPathChanged)(S),S.updateHasChildren()),O&&!(0,b.isTreeRowExpandedInitialized)(S)&&(S.expanded=C(c,w,S),(0,b.setTreeRowExpandedInitialized)(S,!0)),(0,b.isTreeRowUpdated)(S)&&((0,b.markTreeRowPathChanged)(f.row),(0,b.isTreeRowKeyChanged)(S)&&S.setData(S.data)),w!==S&&(h.oldRow=S,w!==null&&(G||h.size!==0)&&(0,b.markTreeRowPathChanged)(S),f.childrenChanged=!0,(0,b.markTreeRowPathChanged)(f.row)),(0,b.isTreeRowPathChanged)(S)&&(M&&((ne=c.changedPath)!=null&&ne.active)?c.changedPath.addParentNode(S):(0,b.markTreeRowPathChanged)(c.rootNode)),(0,b.markTreeRowCommitted)(S),(ce=h.duplicateRows)!=null&&ce.size&&!h.duplicateRowsWarned&&(h.duplicateRowsWarned=!0,(0,E._warn)(186,{rowId:S.id,rowData:S.data,duplicateRowsData:Array.from(h.duplicateRows).map(fe=>fe.data)})),g&&S.rowIndex!==null&&S.clearRowTopAndRowIndex();let j=h.getNewSourceIdx(),Y=h.sourceIdx;Y!==j&&(h.sourceIdx=j,Y!==-1&&(f.childrenChanged=!0))}createFillerRow(c){let h=new E.RowNode(this.beans);h.key=c.key,h.group=!0,h.field=null,h.leafGroup=!1,h.rowGroupIndex=null,h.allChildrenCount=null;let g=c.level+"-"+c.key,f=c.parent;for(;f!==null;){let S=f.parent;if(S===null)break;g=`${f.level}-${f.key}-${g}`,f=S}return h.id=E._ROW_ID_PREFIX_ROW_GROUP+g,h}setGroupData(c,h){var S;let g={};c.groupData=g;let f=(S=this.beans.showRowGroupCols)==null?void 0:S.getShowRowGroupCols();if(f)for(let w of f)g[w.getColId()]=h}treeClear(c){let{parent:h,oldRow:g,row:f,level:S}=c;if(h!==null&&g!==null&&(h.childrenChanged=!0,h.row!==null&&(0,b.markTreeRowPathChanged)(h.row)),f!==null&&S>=0){let w=c.row;for(;w!==null&&c.removeRow(w);)this.destroyRow(w,!w.data),w=c.row}for(let w of c.enumChildren())this.treeClear(w);c.destroy()}treeDestroy(c){let{row:h,level:g,duplicateRows:f}=c;if(h&&(g>=0&&!h.data?this.destroyRow(h,!0):(0,b.clearTreeRowFlags)(h)),f)for(let S of f)g>=0&&!S.data?this.destroyRow(S,!0):(0,b.clearTreeRowFlags)(S);for(let S of c.enumChildren())this.treeDestroy(S);c.destroy()}destroyRow(c,h){var g;if(c.isSelected())h=!1;else if(!(0,b.isTreeRowCommitted)(c)){(0,b.clearTreeRowFlags)(c);return}if(!h){((g=this.rowsPendingDestruction)!=null?g:this.rowsPendingDestruction=new Set).add(c);return}(0,b.clearTreeRowFlags)(c),c.clearRowTopAndRowIndex(),c.groupData=null}commitDestroyedRows(){let{rowsPendingDestruction:c}=this,h=null;if(c!==null){for(let g of c)this.destroyRow(g,!0),g.isSelected()&&(h!=null?h:h=[]).push(g);this.rowsPendingDestruction=null}h&&this.deselectNodes(h)}refreshModel(c){var h,g,f,S,w;if(c.afterColumnsChanged)if(this.treeData){let M=(f=(g=(h=this.beans.showRowGroupCols)==null?void 0:h.getShowRowGroupCols())==null?void 0:g.map(P=>P.getId()).join("-"))!=null?f:"";if(this.oldGroupDisplayColIds!==M){this.oldGroupDisplayColIds=M;let P=(S=this.rootNode)==null?void 0:S.childrenAfterGroup;if(P)for(let O=0,G=(w=P.length)!=null?w:0;O<G;++O){let j=P[O],Y=j.treeNode;Y&&this.setGroupData(j,Y.key)}}}else this.oldGroupDisplayColIds=""}}p.AbstractClientSideTreeNodeManager=d},4352:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClientSideChildrenTreeNodeManager=void 0;let E=A(6624),z=A(987),T=A(7084);class b extends z.AbstractClientSideTreeNodeManager{constructor(){super(...arguments),this.beanName="csrmChildrenTreeNodeSvc",this.childrenGetter=null}get treeData(){return this.gos.get("treeData")}extractRowData(){let d=this.treeRoot;return d&&Array.from(d.enumChildren(),s=>s.row.data)}destroy(){super.destroy(),this.childrenGetter=null}activate(d){let s=this.childrenGetter,c=this.gos.get("treeDataChildrenField");(!s||s.path!==c)&&(this.childrenGetter=(0,T.makeFieldPathGetter)(c)),super.activate(d)}loadNewRowData(d){let s=this.treeRoot,c=this.rootNode,h=this.childrenGetter,g=new Map,f=[];c.allLeafChildren=f,this.treeClear(s),s.setRow(c);let S=(w,M)=>{let P=g.get(M);if(P!==void 0){(0,E._error)(2,{nodeId:P.id});return}P=this.createRowNode(M,f.length),g.set(M,P),f.push(P),w=w.upsertKey(P.id),this.treeSetRow(w,P,!0);let O=h==null?void 0:h(M);if(O)for(let G=0,j=O.length;G<j;++G)S(w,O[G])};for(let w=0,M=d.length;w<M;++w)S(s,d[w]);this.treeCommit()}setImmutableRowData(d,s){let c=this.gos,h=this.treeRoot,g=this.rootNode,f=this.childrenGetter,S=(0,E._getRowIdCallback)(c),w=!c.get("suppressMaintainUnsortedOrder"),M=new Map,P=new E.ChangedPath(!1,g);d.changedPath=P;let O=d.changedRowNodes,G=g.allLeafChildren,j=[],Y=[],J=!1,ne=!1,xe=w?(Fe,We)=>{let it=We==null?void 0:We.length,tt=!0,ot=-1;for(let st=0;st<it;++st){let St=Le(Fe,We[st]);St>=0&&(St<ot&&(tt=!1),ot=St)}tt||(J=!0,Fe.childrenChanged||(Fe.childrenChanged=!0,Fe.invalidate()))}:(Fe,We)=>{for(let it=0,tt=We.length;it<tt;++it)Le(Fe,We[it])},Le=(Fe,We)=>{let it=M.get(We);if(it!==void 0)return(0,E._warn)(2,{nodeId:it.id}),-1;let tt=S({data:We,level:Fe.level+1}),ot=!1;it=this.getRowNode(tt),it?it.data!==We&&(O.update(it),it.updateData(We),!it.selectable&&it.isSelected()&&Y.push(it)):(it=this.createRowNode(We,-1),O.add(it),ot=!0),M.set(We,it);let st,St;w?(St=Fe.appendKey(it.id),st=it.sourceRowIndex,it.sourceRowIndex=j.push(it)-1):(St=Fe.upsertKey(it.id),st=-1),this.treeSetRow(St,it,ot)&&(ne=!0);let Xe=f==null?void 0:f(We);return Xe&&xe(St,Xe),st};if(xe(h,s),G)for(let Fe=0,We=G.length;Fe<We;++Fe){let it=G[Fe],tt=it.treeNode;if(tt){let ot=it.data;ot&&!M.has(ot)&&(O.remove(it),this.treeRemove(tt,it))}}if(!w){let Fe=We=>{for(let it of We.enumChildren()){let tt=it.row;tt&&(tt.sourceRowIndex=j.push(tt)-1,Fe(it))}};Fe(h)}g.allLeafChildren=j,h.allLeafChildren=j,Y.length&&this.deselectNodes(Y),this.treeCommit(P);let _e=g.sibling;_e&&(_e.allLeafChildren=j),(ne||J)&&(d.step="group",d.rowDataUpdated=!0,d.rowNodesOrderChanged=J)}refreshModel(d){var h,g;let{rootNode:s,treeRoot:c}=this;if(c){if((h=d.changedProps)!=null&&h.has("treeData")&&!d.newData){c.setRow(s);let f=s==null?void 0:s.allLeafChildren;if(f)for(let S=0,w=f.length;S<w;++S){let M=f[S];M.groupData=null,(g=M.treeNode)==null||g.invalidate()}this.treeCommit()}super.refreshModel(d)}}}p.ClientSideChildrenTreeNodeManager=b},4292:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ClientSidePathTreeNodeManager=void 0;let E=A(6624),z=A(987);class T extends z.AbstractClientSideTreeNodeManager{constructor(){super(...arguments),this.beanName="csrmPathTreeNodeSvc"}loadNewRowData(C){let d=this.rootNode,s=this.treeRoot;this.treeClear(s),s.setRow(d),super.loadNewRowData(C);let c=d.allLeafChildren,h=this.gos.get("getDataPath");for(let g=0,f=c.length;g<f;++g)this.addOrUpdateRow(h,c[g],!0);this.treeCommit()}get treeData(){let C=this.gos;return C.get("treeData")&&!!C.get("getDataPath")}refreshModel(C){let d=C.changedRowNodes;d&&this.executeTransactions(d,C.changedPath,C.rowNodesOrderChanged),super.refreshModel(C)}executeTransactions(C,d,s){var S;let c=this.treeRoot;if(!c)return;c.setRow(this.rootNode);for(let w of C.removals){let M=w.treeNode;M&&this.treeRemove(M,w)}let h=C.updates,g=this.gos.get("getDataPath");for(let w of h.keys())this.addOrUpdateRow(g,w,h.get(w));let f=(S=c.row)==null?void 0:S.allLeafChildren;if(s&&f)for(let w=0,M=f.length;w<M;++w){let P=f[w].treeNode;P&&P.sourceIdx!==w&&P.invalidateOrder()}this.treeCommit(d)}addOrUpdateRow(C,d,s){let c=this.treeRoot;if(!this.treeData){this.treeSetRow(c.upsertKey(d.id),d,s);return}let h=C==null?void 0:C(d.data),g=h==null?void 0:h.length;if(!g)(0,E._warn)(185,{data:d.data});else{let f=0,S=c;do S=S.upsertKey(h[f++]);while(f<g);this.treeSetRow(S,d,s)}}}p.ClientSidePathTreeNodeManager=T},7084:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.makeFieldPathGetter=void 0;let A=z=>{if(typeof z!="string"||!z.length)return[];let T=z.split(".");return T.includes("__proto__")?[]:T},E=z=>{let T=A(z),b=null,C=T.length-1;return C===0?b=d=>d==null?void 0:d[z]:C>0?b=d=>{let s=d;for(let c=0;c<=C&&s!==null&&s!==void 0;++c)if(s=s[T[c]],c<C&&typeof s!="object"&&s!==void 0)return null;return s}:b=()=>{},b.path=z,b};p.makeFieldPathGetter=E},9428:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TreeDataModule=p.SharedTreeDataModule=void 0;let E=A(9206),z=A(7032),T=A(6858),b=A(7205),C=A(4352),d=A(4292);p.SharedTreeDataModule={moduleName:"SharedTreeData",version:b.VERSION,dependsOn:[E.EnterpriseCoreModule,z.SharedAggregationModule,T.GroupColumnModule,T.StickyRowModule]},p.TreeDataModule={moduleName:"TreeData",version:b.VERSION,beans:[d.ClientSidePathTreeNodeManager,C.ClientSideChildrenTreeNodeManager],rowModels:["clientSide"],dependsOn:[p.SharedTreeDataModule,z.AggregationModule,T.ClientSideRowModelHierarchyModule]}},5012:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TreeNode=void 0;let E=A(6624),z=(d,s)=>d.treeNode.sourceIdx-s.treeNode.sourceIdx,T=E._EmptyArray.values(),b=(d,s)=>{d.parent=null,d.treeNode=null,s?d.childrenAfterGroup=[]:(d.level=0,d.childrenAfterGroup=null,d.allLeafChildren=null)};class C{constructor(s,c,h){this.parent=s,this.key=c,this.level=h,this.children=null,this.invalidatedHead=null,this.invalidatedNext=void 0,this.row=null,this.oldRow=null,this.duplicateRows=null,this.childrenAfterGroup=E._EmptyArray,this.allLeafChildren=E._EmptyArray,this.childrenChanged=!1,this.leafChildrenChanged=!1,this.sourceIdx=-1}get size(){var s,c;return(c=(s=this.children)==null?void 0:s.size)!=null?c:0}isEmptyFillerNode(){var s,c;return!((s=this.row)!=null&&s.data)&&!((c=this.children)!=null&&c.size)}enumChildren(){var s,c;return(c=(s=this.children)==null?void 0:s.values())!=null?c:T}upsertKey(s){var h,g,f;typeof s!="string"&&(s=String(s));let c=(h=this.children)==null?void 0:h.get(s);return c||(c=new C(this,s,this.level+1),(f=(g=this.children)!=null?g:this.children=new Map)==null||f.set(c.key,c)),c}appendKey(s){var g,f;let c=this.children;typeof s!="string"&&(s=String(s));let h=c==null?void 0:c.get(s);return h?(c.delete(s),c.set(s,h)):(h=new C(this,s,this.level+1),(f=(g=this.children)!=null?g:this.children=new Map)==null||f.set(h.key,h)),h}destroy(){var h;let{row:s,parent:c}=this;c!==null&&((h=c==null?void 0:c.children)==null||h.delete(this.key),s!==null&&b(s,!0),this.parent=null)}setRow(s){var f,S,w;let{level:c,row:h,childrenAfterGroup:g}=this;if(c<0)h!==null&&h!==s&&b(h,!0);else{if(h===s)return!1;h!==null?(s!==null&&(s.allLeafChildren=(S=(f=h.allLeafChildren)!=null?f:this.allLeafChildren)!=null?S:E._EmptyArray),b(h,!1)):s!==null&&(s.allLeafChildren=(w=this.allLeafChildren)!=null?w:E._EmptyArray)}return s!==null&&(s.level=c,s.childrenAfterGroup=g,s.treeNode=this),this.row=s,!0}removeRow(s){var S,w;let{level:c,row:h,duplicateRows:g,childrenAfterGroup:f}=this;if(h===s){let M=this.popDuplicateRow();M?(this.row=M,M.childrenAfterGroup=f,c>=0&&(M.allLeafChildren=(w=(S=h.allLeafChildren)!=null?S:this.allLeafChildren)!=null?w:E._EmptyArray)):this.row=null}else{if(!(g!=null&&g.delete(s)))return!1;g.size===0&&(this.duplicateRows=null)}return b(s,c<0),!0}addDuplicateRow(s){let{level:c}=this,h=this.duplicateRows;if(h===null)h=new Set,this.duplicateRows=h;else if(h.has(s))return!1;return h.add(s),s.treeNode=this,s.level=c,c>=0&&(s.allLeafChildren=E._EmptyArray),s.childrenAfterGroup=E._EmptyArray,!0}sortFirstDuplicateRow(){var g,f;let s=this.duplicateRows,c=this.row;if(!c||!s)return c;let h=c;for(let S of s)S.sourceRowIndex<h.sourceRowIndex&&(h=S);return h!==c&&(h.childrenAfterGroup=this.childrenAfterGroup,h.allLeafChildren=(f=(g=c.allLeafChildren)!=null?g:this.allLeafChildren)!=null?f:E._EmptyArray,c.childrenAfterGroup=E._EmptyArray,c.allLeafChildren=E._EmptyArray,s.delete(h),s.add(c),this.row=h),h}popDuplicateRow(){let s=null,c=this.duplicateRows;return c!==null&&(s=c.values().next().value,s!==null&&c.delete(s)&&c.size===0&&(this.duplicateRows=null)),s}dequeueInvalidated(){var c;let s=this.invalidatedHead;return s!==null&&(this.invalidatedHead=(c=s.invalidatedNext)!=null?c:null,s.invalidatedNext=void 0),s}invalidate(){let s=this,c=this.parent;for(;c!==null&&s.invalidatedNext===void 0;)s.invalidatedNext=c.invalidatedHead,c.invalidatedHead=s,s=c,c=s.parent}invalidateOrder(){var c,h,g;let s=this.parent;s!==null&&!s.childrenChanged&&(((h=(c=this.children)==null?void 0:c.size)!=null?h:0)>1||!((g=s.row)!=null&&g.data))&&(s.childrenChanged=!0,s.invalidate())}getNewSourceIdx(){var c,h,g;let s=this.row;return s!=null&&s.data?s.sourceRowIndex:(g=(h=(c=this.childrenAfterGroup[0])==null?void 0:c.treeNode)==null?void 0:h.sourceIdx)!=null?g:this.sourceIdx}updateChildrenAfterGroup(s){var M;this.childrenChanged=!1;let c=s&&((M=this.children)==null?void 0:M.size)||0;if(c===0)return this.row.childrenAfterGroup=E._EmptyArray,this.childrenAfterGroup.length===0?!1:(this.leafChildrenChanged=!0,this.childrenAfterGroup=E._EmptyArray,!0);let h=!1,g=this.childrenAfterGroup;g===E._EmptyArray?(g=new Array(c),this.childrenAfterGroup=g,this.row.childrenAfterGroup=g,h=!0):g.length!==c&&(g.length=c,h=!0);let f=0,S=-1,w=!1;for(let P of this.enumChildren()){let O=P.getNewSourceIdx();O<S&&(w=!0),S=O,P.sourceIdx=O;let G=P.row;g[f]!==G&&(g[f]=G,h=!0),++f}return h&&(this.leafChildrenChanged=!0),w&&this.reorderChildrenList(g),h||w}reorderChildrenList(s){let c=s.length,h=this.children;s.sort(z),h.clear();for(let g=0;g<c;++g){let f=s[g].treeNode;h.set(f.key,f)}}updateAllLeafChildren(){var S,w;let{parent:s,row:c,childrenAfterGroup:h}=this;this.leafChildrenChanged=!1;let g=!1,f=h.length;if(f===0)g=((S=c.allLeafChildren)==null?void 0:S.length)!==0,c.allLeafChildren=E._EmptyArray,this.allLeafChildren=E._EmptyArray;else if(f===1&&((w=h[0].allLeafChildren)!=null&&w.length))c.allLeafChildren=h[0].allLeafChildren,this.allLeafChildren=null,g=!0;else{let M=this.allLeafChildren;(M===E._EmptyArray||M===null)&&(M=[],this.allLeafChildren=M);let P=M.length,O=0;for(let G=0;G<f;++G){let j=h[G],Y=j.allLeafChildren,J=Y.length;if(J)for(let ne=0;ne<J;++ne){let ce=Y[ne];(O>=P||M[O]!==ce)&&(M[O]=ce,g=!0),++O}else(O>=P||M[O]!==j)&&j&&(M[O]=j,g=!0),++O}P!==O&&(M.length=O,g=!0),c.allLeafChildren!==M&&(c.allLeafChildren=M,g=!0)}g&&s&&(s.leafChildrenChanged=!0)}}p.TreeNode=C},2546:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.clearTreeRowFlags=p.markTreeRowCommitted=p.markTreeRowPathChanged=p.setTreeRowKeyChanged=p.setTreeRowUpdated=p.setTreeRowExpandedInitialized=p.isTreeRowPathChanged=p.isTreeRowKeyChanged=p.isTreeRowUpdated=p.isTreeRowExpandedInitialized=p.isTreeRowCommitted=void 0;let A=f=>(f.treeNodeFlags&1)!==0;p.isTreeRowCommitted=A;let E=f=>(f.treeNodeFlags&2)!==0;p.isTreeRowExpandedInitialized=E;let z=f=>(f.treeNodeFlags&4)!==0;p.isTreeRowUpdated=z;let T=f=>(f.treeNodeFlags&8)!==0;p.isTreeRowKeyChanged=T;let b=f=>(f.treeNodeFlags&16)!==0;p.isTreeRowPathChanged=b;let C=(f,S)=>{S?f.treeNodeFlags|=2:f.treeNodeFlags&=-3};p.setTreeRowExpandedInitialized=C;let d=f=>{let S=f.treeNodeFlags;S&1&&(f.treeNodeFlags=S|4)};p.setTreeRowUpdated=d;let s=f=>{let S=f.treeNodeFlags;S&1&&(f.treeNodeFlags=S|12)};p.setTreeRowKeyChanged=s;let c=f=>{f.treeNodeFlags|=16};p.markTreeRowPathChanged=c;let h=f=>{let S=f.level<0,w=f.treeNodeFlags,M=(w&1)!==0;if(f.treeNodeFlags=1|w&-29,!M||S){let P=f.childrenAfterGroup;f.childrenAfterFilter=P,f.childrenAfterAggFilter=P,f.childrenAfterSort=P}if(S){let P=f.sibling;P&&(P.childrenAfterGroup=f.childrenAfterGroup,P.childrenMapped=f.childrenMapped)}};p.markTreeRowCommitted=h;let g=f=>{f.treeNodeFlags=0};p.clearTreeRowFlags=g},7205:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.VERSION=void 0,p.VERSION="33.0.1"},4790:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ViewportRowModel=void 0;let E=A(6624);class z extends E.BeanStub{constructor(){super(...arguments),this.beanName="rowModel",this.firstRow=-1,this.lastRow=-1,this.rowCount=-1,this.rowNodesByIndex={}}ensureRowHeightsValid(b,C,d,s){return!1}postConstruct(){let b=this.beans;this.rowHeight=(0,E._getRowHeightAsNumber)(b),this.addManagedEventListeners({viewportChanged:this.onViewportChanged.bind(this)}),this.addManagedPropertyListener("viewportDatasource",()=>this.updateDatasource()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=(0,E._getRowHeightAsNumber)(b),this.updateRowHeights()})}start(){this.updateDatasource()}isLastRowIndexKnown(){return!0}destroy(){this.destroyDatasource(),super.destroy()}destroyDatasource(){var C;let b=this.datasource;b&&((C=b.destroy)==null||C.call(b),this.beans.rowRenderer.datasourceChanged(),this.firstRow=-1,this.lastRow=-1)}updateDatasource(){let b=this.gos.get("viewportDatasource");b&&this.setViewportDatasource(b)}getPageSize(){return this.gos.get("viewportRowModelPageSize")}getBufferSize(){return this.gos.get("viewportRowModelBufferSize")}calculateFirstRow(b){let C=this.getBufferSize(),d=this.getPageSize(),s=b-C;return s<0?0:Math.floor(s/d)*d}calculateLastRow(b){if(b===-1)return b;let C=this.getBufferSize(),d=this.getPageSize(),s=b+C,c=Math.ceil(s/d)*d,h=this.rowCount-1;return Math.min(c,h)}onViewportChanged(b){var s;let C=this.calculateFirstRow(b.firstRow),d=this.calculateLastRow(b.lastRow);(this.firstRow!==C||this.lastRow!==d)&&(this.firstRow=C,this.lastRow=d,this.purgeRowsNotInViewport(),(s=this.datasource)==null||s.setViewportRange(this.firstRow,this.lastRow))}purgeRowsNotInViewport(){let b=this.rowNodesByIndex;Object.keys(b).forEach(C=>{let d=parseInt(C,10);if(d<this.firstRow||d>this.lastRow){if(this.isRowFocused(d))return;delete b[d]}})}isRowFocused(b){let C=this.beans.focusSvc.getFocusCellToUseAfterRefresh();return!C||C.rowPinned!=null?!1:C.rowIndex===b}setViewportDatasource(b){this.destroyDatasource(),this.datasource=b,this.rowCount=-1,b.init?b.init({setRowCount:this.setRowCount.bind(this),setRowData:this.setRowData.bind(this),getRow:this.getRow.bind(this)}):(0,E._warn)(226)}getType(){return"viewport"}getRow(b){return this.rowNodesByIndex[b]||(this.rowNodesByIndex[b]=this.createBlankRowNode(b)),this.rowNodesByIndex[b]}getRowNode(b){let C;return this.forEachNode(d=>{d.id===b&&(C=d)}),C}getRowCount(){return this.rowCount===-1?0:this.rowCount}getRowIndexAtPixel(b){return this.rowHeight!==0?Math.floor(b/this.rowHeight):0}getRowBounds(b){let C=this.rowHeight;return{rowHeight:C,rowTop:C*b}}updateRowHeights(){let b=this.rowHeight;this.forEachNode(C=>{C.setRowHeight(b),C.setRowTop(b*C.rowIndex)}),this.eventSvc.dispatchEvent({type:"modelUpdated",newData:!1,newPage:!1,keepRenderedRows:!0,animate:!1})}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(b){return b}isEmpty(){return this.rowCount>0}isRowsToRender(){return this.rowCount>0}getNodesInRangeForSelection(b,C){let d=b.rowIndex,s=C.rowIndex,c=d<this.firstRow||d>this.lastRow,h=s<this.firstRow||s>this.lastRow;if(c||h)return[];let g=[],f=d<=s?d:s,S=d<=s?s:d;for(let w=f;w<=S;w++)g.push(this.rowNodesByIndex[w]);return g}forEachNode(b){let C=0;Object.keys(this.rowNodesByIndex).forEach(d=>{let s=parseInt(d,10),c=this.rowNodesByIndex[s];b(c,C),C++})}setRowData(b){let C=this.rowNodesByIndex;for(let[d,s]of Object.entries(b)){let c=parseInt(d,10);if(c>=this.firstRow&&c<=this.lastRow){let h=C[c];(0,E._missing)(h)&&(h=this.createBlankRowNode(c),C[c]=h),h.setDataAndId(s,c.toString())}}}createBlankRowNode(b){let C=new E.RowNode(this.beans),d=this.rowHeight;return C.setRowHeight(d),C.setRowTop(d*b),C.setRowIndex(b),C}setRowCount(b,C=!1){if(b===this.rowCount)return;this.rowCount=b;let d=this.eventSvc;d.dispatchEventOnce({type:"rowCountReady"}),d.dispatchEvent({type:"modelUpdated",newData:!1,newPage:!1,keepRenderedRows:C,animate:!1})}isRowPresent(b){return!!this.getRowNode(b.id)}}p.ViewportRowModel=z},7794:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ViewportRowModelModule=void 0;let E=A(9206),z=A(7205),T=A(4790);p.ViewportRowModelModule={moduleName:"ViewportRowModel",version:z.VERSION,rowModels:["viewport"],beans:[T.ViewportRowModel],dependsOn:[E.EnterpriseCoreModule]}},7437:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPillContainer=void 0;let E=A(6624),z=A(3264);class T extends E.Component{constructor(){super(`
            <div class="ag-pill-container" role="listbox"></div>
            `),this.pills=[]}init(C){this.params=C,this.refresh()}refresh(){this.clearPills();let{params:C,onPillKeyDown:d}=this,s=C.getValue();if(!Array.isArray(s))return;let c=s.length;for(let h=0;h<c;h++){let g=s[h],f=this.createBean(new z.AgPill({onButtonClick:()=>this.onPillButtonClick(f),onKeyDown:d.bind(this)})),S=f.getGui();(0,E._setAriaPosInSet)(S,h+1),(0,E._setAriaSetSize)(S,c),C.onPillMouseDown&&f.addGuiEventListener("mousedown",C.onPillMouseDown),C.announceItemFocus&&f.addGuiEventListener("focus",C.announceItemFocus),f.setText(g),f.toggleCloseButtonClass("ag-icon-cancel",!0),this.appendChild(S),this.pills.push(f)}}onNavigationKeyDown(C){let{key:d}=C;if(!this.pills.length||d!==E.KeyCode.LEFT&&d!==E.KeyCode.RIGHT)return;C.preventDefault();let{params:s,beans:c}=this,h=(0,E._getActiveDomElement)(c),g=this.getGui();if(g.contains(h)){let f=(0,E._findNextFocusableElement)(c,g,!1,d===E.KeyCode.LEFT);f?f.focus():s.eWrapper&&s.eWrapper.focus()}else{let f=(0,E._findFocusableElements)(g);f.length>0&&f[d===E.KeyCode.RIGHT?0:f.length-1].focus()}}clearPills(){let C=this.getGui();C.contains((0,E._getActiveDomElement)(this.beans))&&this.params.eWrapper&&this.params.eWrapper.focus(),(0,E._clearElement)(C),this.destroyBeans(this.pills),this.pills=[]}onPillButtonClick(C){this.deletePill(C)}onPillKeyDown(C){let d=C.key;if(d!==E.KeyCode.DELETE&&d!==E.KeyCode.BACKSPACE)return;C.preventDefault();let s=(0,E._getDocument)(this.beans),c=this.pills.findIndex(g=>g.getGui().contains(s.activeElement));if(c===-1)return;let h=this.pills[c];h&&this.deletePill(h,c)}deletePill(C,d){let s=C.getText(),c=(this.params.getValue()||[]).filter(h=>h!==s);if(this.params.setValue(c),!c.length&&this.params.eWrapper)this.params.eWrapper.focus();else if(d!=null){let h=this.pills[Math.min(d,this.pills.length-1)];h&&h.getFocusableElement().focus()}}destroy(){this.clearPills(),super.destroy()}}p.AgPillContainer=T},8775:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgDialog=void 0;let E=A(6624),z=A(7325);class T extends z.AgPanel{wireBeans(C){this.popupSvc=C.popupSvc}constructor(C){super(He(ge({},C),{popup:!0})),this.isMaximizable=!1,this.isMaximized=!1,this.maximizeListeners=[],this.resizeListenerDestroy=null,this.lastPosition={x:0,y:0,width:0,height:0}}postConstruct(){var f;let C=this.getGui(),{movable:d,resizable:s,maximizable:c,modal:h,postProcessPopupParams:g}=this.config;if(this.addCssClass("ag-dialog"),super.postConstruct(),g){let{type:S,eventSource:w,column:M,mouseEvent:P,rowNode:O}=g;(f=this.popupSvc)==null||f.callPostProcessPopup(S,C,w,P,M,O)}if(this.tabGuardFeature=this.createManagedBean(new E.TabGuardFeature(this)),this.tabGuardFeature.initialiseTabGuard({isFocusableContainer:!0,onFocusIn:()=>{var S;(S=this.popupSvc)==null||S.bringPopupToFront(C)},onTabKeyDown:S=>{if(h)return;let w=S.shiftKey,M=(0,E._findNextFocusableElement)(this.beans,C,!1,w);(!M||this.tabGuardFeature.getTabGuardCtrl().isTabGuard(M))&&(0,E._focusNextGridCoreContainer)(this.beans,w)&&S.preventDefault()}}),d&&this.setMovable(d),c&&this.setMaximizable(c),s&&this.setResizable(s),!this.config.modal){let S=this.beans.ctrlsSvc.get("gridCtrl");S.addFocusableContainer(this),this.addDestroyFunc(()=>S.removeFocusableContainer(this))}}setAllowFocus(C){this.tabGuardFeature.getTabGuardCtrl().setAllowFocus(C)}renderComponent(){var S;let C=this.getGui(),{alwaysOnTop:d,modal:s,title:c,afterGuiAttached:h}=this.config,g=this.getLocaleTextFunc(),f=(S=this.popupSvc)==null?void 0:S.addPopup({modal:s,eChild:C,closeOnEsc:!0,closedCallback:this.onClosed.bind(this),alwaysOnTop:d,ariaLabel:c||g("ariaLabelDialog","Dialog"),afterGuiAttached:h});f&&(this.close=f.hideFunc)}onClosed(C){var d,s;this.destroy(),(s=(d=this.config).closedCallback)==null||s.call(d,C)}toggleMaximize(){let C=this.positionableFeature.getPosition();if(this.isMaximized){let{x:d,y:s,width:c,height:h}=this.lastPosition;this.setWidth(c),this.setHeight(h),this.positionableFeature.offsetElement(d,s)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=C.x,this.lastPosition.y=C.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()}refreshMaximizeIcon(){(0,E._setDisplayed)(this.maximizeIcon,!this.isMaximized),(0,E._setDisplayed)(this.minimizeIcon,this.isMaximized)}clearMaximizebleListeners(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(C=>C()),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)}destroy(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),super.destroy()}setResizable(C){this.positionableFeature.setResizable(C)}setMovable(C){this.positionableFeature.setMovable(C,this.eTitleBar)}setMaximizable(C){if(!C){this.clearMaximizebleListeners(),this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0);return}let d=this.eTitleBar;if(!d||C===this.isMaximizable)return;let s=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),s.addManagedElementListeners(s.getGui(),{click:this.toggleMaximize.bind(this)}),this.addTitleBarButton(s,0),this.maximizeListeners.push(...this.addManagedElementListeners(d,{dblclick:this.toggleMaximize.bind(this)})),[this.resizeListenerDestroy]=this.addManagedListeners(this.positionableFeature,{resize:()=>{this.isMaximized=!1,this.refreshMaximizeIcon()}})}buildMaximizeAndMinimizeElements(){let C=this.maximizeButtonComp=this.createBean(new E.Component('<div class="ag-dialog-button"></span>')),d=C.getGui();return this.maximizeIcon=(0,E._createIconNoSpan)("maximize",this.beans),d.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=(0,E._createIconNoSpan)("minimize",this.beans),d.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),C}}p.AgDialog=T},1421:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgGroupComponentSelector=p.AgGroupComponent=void 0;let E=A(6624);function z(s){let c=s.cssIdentifier||"default",h=s.direction||"vertical";return`
        <div class="ag-group ag-${c}-group" role="presentation">
            <div data-ref="eToolbar" class="ag-group-toolbar ag-${c}-group-toolbar">
                <ag-checkbox data-ref="cbGroupEnabled"></ag-checkbox>
            </div>
            <div data-ref="eContainer" class="ag-group-container ag-group-container-${h} ag-${c}-group-container"></div>
        </div>
    `}class T extends E.Component{constructor(c={}){super(z(c),[E.AgCheckboxSelector]),this.params=c,this.suppressEnabledCheckbox=!0,this.suppressToggleExpandOnEnableChange=!1,this.eToolbar=E.RefPlaceholder,this.cbGroupEnabled=E.RefPlaceholder,this.eContainer=E.RefPlaceholder;let{enabled:h,items:g,suppressEnabledCheckbox:f,expanded:S,suppressToggleExpandOnEnableChange:w,useToggle:M}=c;this.cssIdentifier=c.cssIdentifier||"default",this.enabled=h!=null?h:!0,this.items=g||[],this.useToggle=M!=null?M:!1,this.alignItems=c.alignItems||"center",this.expanded=S==null?!0:S,f!=null&&(this.suppressEnabledCheckbox=f),w!=null&&(this.suppressToggleExpandOnEnableChange=w)}postConstruct(){if(this.setupTitleBar(),this.items.length){let S=this.items;this.items=[],this.addItems(S)}let c=this.getLocaleTextFunc();this.cbGroupEnabled.setLabel(c("enabled","Enabled")),this.enabled&&this.setEnabled(this.enabled,void 0,!0),this.setAlignItems(this.alignItems);let{onEnableChange:h,onExpandedChange:g,suppressOpenCloseIcons:f}=this.params;this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(f!=null?f:!1),this.refreshChildDisplay(),(0,E._setDisplayed)(this.eContainer,this.expanded),this.cbGroupEnabled.onValueChange(S=>{this.setEnabled(S,!0,this.suppressToggleExpandOnEnableChange),this.dispatchEnableChangeEvent(S)}),h!=null&&this.onEnableChange(h),g!=null&&this.onExpandedChange(g)}refreshChildDisplay(){var c;(0,E._setDisplayed)(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),(c=this.eTitleBar)==null||c.refreshOnExpand(this.expanded)}isExpanded(){return this.expanded}setAlignItems(c){this.alignItems!==c&&this.removeCssClass(`ag-group-item-alignment-${this.alignItems}`),this.alignItems=c;let h=`ag-group-item-alignment-${this.alignItems}`;return this.addCssClass(h),this}toggleGroupExpand(c,h){var g;if((g=this.eTitleBar)!=null&&g.isSuppressCollapse()&&!this.useToggle)c=!0,h=!0;else if(c=c!=null?c:!this.expanded,this.expanded===c)return this;return this.expanded=c,this.refreshChildDisplay(),(0,E._setDisplayed)(this.eContainer,c),h||this.dispatchLocalEvent({type:c?"expanded":"collapsed"}),this}addItems(c){c.forEach(h=>this.addItem(h))}prependItem(c){this.insertItem(c,!0)}addItem(c){this.insertItem(c,!1)}insertItem(c,h){let g=this.eContainer,f=c instanceof E.Component?c.getGui():c;f.classList.add("ag-group-item",`ag-${this.cssIdentifier}-group-item`),h?(g.insertAdjacentElement("afterbegin",f),this.items.unshift(f)):(g.appendChild(f),this.items.push(f))}hideItem(c,h){let g=this.items[h];(0,E._setDisplayed)(g,!c)}getItemIndex(c){let h=c instanceof E.Component?c.getGui():c;return this.items.indexOf(h)}setTitle(c){var h;return(h=this.eTitleBar)==null||h.setTitle(c),this}addTitleBarWidget(c){var h;return(h=this.eTitleBar)==null||h.addWidget(c),this}addCssClassToTitleBar(c){var h;(h=this.eTitleBar)==null||h.addCssClass(c)}dispatchEnableChangeEvent(c){let h={type:"enableChange",enabled:c};this.dispatchLocalEvent(h)}setEnabled(c,h,g){var f;return this.enabled=c,this.refreshDisabledStyles(),g||this.toggleGroupExpand(c),h||(this.cbGroupEnabled.setValue(c),(f=this.eToggle)==null||f.setValue(c)),this}isEnabled(){return this.enabled}onEnableChange(c){return this.addManagedListeners(this,{enableChange:h=>c(h.enabled)}),this}onExpandedChange(c){return this.addManagedListeners(this,{expanded:()=>c(!0),collapsed:()=>c(!1)}),this}hideEnabledCheckbox(c){return this.suppressEnabledCheckbox=c,this.refreshChildDisplay(),this.refreshDisabledStyles(),this}hideOpenCloseIcons(c){var h;return(h=this.eTitleBar)==null||h.hideOpenCloseIcons(c),this}refreshDisabledStyles(){var h;let c=!this.enabled;this.eContainer.classList.toggle("ag-disabled",c),(h=this.eTitleBar)==null||h.refreshDisabledStyles(this.suppressEnabledCheckbox&&c),this.eContainer.classList.toggle("ag-disabled-group-container",c)}setupTitleBar(){let c=this.useToggle?this.createToggleTitleBar():this.createDefaultTitleBar();this.eToolbar.insertAdjacentElement("beforebegin",c.getGui())}createDefaultTitleBar(){let c=this.createManagedBean(new d(this.params));return this.eTitleBar=c,c.refreshOnExpand(this.expanded),this.addManagedListeners(c,{expandedChanged:h=>this.toggleGroupExpand(h.expanded)}),c}createToggleTitleBar(){var h;let c=this.createManagedBean(new E.AgToggleButton({value:this.enabled,label:this.params.title,labelAlignment:"left",labelWidth:"flex",onValueChange:g=>{this.setEnabled(g,!0),this.dispatchEnableChangeEvent(g)}}));return c.addCssClass("ag-group-title-bar"),c.addCssClass(`ag-${(h=this.params.cssIdentifier)!=null?h:"default"}-group-title-bar ag-unselectable`),this.eToggle=c,this.toggleGroupExpand(this.enabled),c}}p.AgGroupComponent=T;let b="ag-disabled-group-title-bar";function C(s){var g;let c=(g=s.cssIdentifier)!=null?g:"default",h=s.suppressKeyboardNavigation?"presentation":"role";return`
        <div class="ag-group-title-bar ag-${c}-group-title-bar ag-unselectable" role="${h}">
            <span class="ag-group-title-bar-icon ag-${c}-group-title-bar-icon" data-ref="eGroupOpenedIcon" role="presentation"></span>
            <span class="ag-group-title-bar-icon ag-${c}-group-title-bar-icon" data-ref="eGroupClosedIcon" role="presentation"></span>
            <span data-ref="eTitle" class="ag-group-title ag-${c}-group-title"></span>
        </div>
    `}class d extends E.Component{constructor(c={}){super(C(c)),this.suppressOpenCloseIcons=!1,this.suppressKeyboardNavigation=!1,this.eGroupOpenedIcon=E.RefPlaceholder,this.eGroupClosedIcon=E.RefPlaceholder,this.eTitle=E.RefPlaceholder;let{title:h,suppressOpenCloseIcons:g,suppressKeyboardNavigation:f}=c;h&&h.length>0&&(this.title=h),g!=null&&(this.suppressOpenCloseIcons=g),this.suppressKeyboardNavigation=f!=null?f:!1}postConstruct(){this.setTitle(this.title),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract()}setupExpandContract(){this.eGroupClosedIcon.appendChild((0,E._createIcon)("accordionClosed",this.beans,null)),this.eGroupOpenedIcon.appendChild((0,E._createIcon)("accordionOpen",this.beans,null)),this.addManagedElementListeners(this.getGui(),{click:()=>this.dispatchExpandChanged(),keydown:c=>{switch(c.key){case E.KeyCode.ENTER:case E.KeyCode.SPACE:c.preventDefault(),this.dispatchExpandChanged();break;case E.KeyCode.RIGHT:case E.KeyCode.LEFT:c.preventDefault(),this.dispatchExpandChanged(c.key===E.KeyCode.RIGHT);break}}})}refreshOnExpand(c){this.refreshAriaStatus(c),this.refreshOpenCloseIcons(c)}refreshAriaStatus(c){this.suppressOpenCloseIcons||(0,E._setAriaExpanded)(this.getGui(),c)}refreshOpenCloseIcons(c){let h=!this.suppressOpenCloseIcons;(0,E._setDisplayed)(this.eGroupOpenedIcon,h&&c),(0,E._setDisplayed)(this.eGroupClosedIcon,h&&!c)}isSuppressCollapse(){return this.suppressOpenCloseIcons}dispatchExpandChanged(c){let h={type:"expandedChanged",expanded:c};this.dispatchLocalEvent(h)}setTitle(c){let h=this.getGui(),g=!!c&&c.length>0;c=g?c:void 0,this.eTitle.textContent=c!=null?c:"",(0,E._setDisplayed)(h,g),c!==this.title&&(this.title=c);let f=h.classList.contains(b);return this.refreshDisabledStyles(f),this}addWidget(c){return this.getGui().appendChild(c),this}hideOpenCloseIcons(c){return this.suppressOpenCloseIcons=c,c&&this.dispatchExpandChanged(!0),this}refreshDisabledStyles(c){let h=this.getGui();c?(h.classList.add(b),h.removeAttribute("tabindex")):(h.classList.remove(b),typeof this.title=="string"&&!this.suppressKeyboardNavigation?h.setAttribute("tabindex","0"):h.removeAttribute("tabindex"))}}p.AgGroupComponentSelector={selector:"AG-GROUP-COMPONENT",component:T}},7040:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgMenuItemComponent=void 0;let E=A(6624),z=A(9476),T=A(568);function b(s,c,h){return s.getCompDetails(c,C,"agMenuItem",h,!0)}let C={name:"menuItem",optionalMethods:["setActive","select","setExpanded","configureDefaults"]};class d extends E.BeanStub{constructor(){super(...arguments),this.ACTIVATION_DELAY=80,this.isActive=!1,this.subMenuIsOpen=!1,this.subMenuIsOpening=!1,this.suppressRootStyles=!0,this.suppressAria=!0,this.suppressFocus=!0}wireBeans(c){this.popupSvc=c.popupSvc,this.userCompFactory=c.userCompFactory,this.registry=c.registry}init(c){var P,O,G;let{menuItemDef:h,isAnotherSubMenuOpen:g,level:f,childComponent:S,contextParams:w}=c;this.params=c.menuItemDef,this.level=f,this.isAnotherSubMenuOpen=g,this.childComponent=S,this.contextParams=w,this.cssClassPrefix=(O=(P=this.params.menuItemParams)==null?void 0:P.cssClassPrefix)!=null?O:"ag-menu-option";let M=b(this.userCompFactory,this.params,He(ge({},h),{level:f,isAnotherSubMenuOpen:g,openSubMenu:j=>this.openSubMenu(j),closeSubMenu:()=>this.closeSubMenu(),closeMenu:j=>this.closeMenu(j),updateTooltip:(j,Y)=>this.refreshTooltip(j,Y),onItemActivated:()=>this.onItemActivated()}));return(G=M==null?void 0:M.newAgStackInstance().then(j=>{var J;this.menuItemComp=j;let Y=(J=j.configureDefaults)==null?void 0:J.call(j);Y&&this.configureDefaults(Y===!0?void 0:Y)}))!=null?G:E.AgPromise.resolve()}addListeners(c,h){h!=null&&h.suppressClick||this.addManagedElementListeners(c,{click:g=>this.onItemSelected(g)}),h!=null&&h.suppressKeyboardSelect||this.addManagedElementListeners(c,{keydown:g=>{(g.key===E.KeyCode.ENTER||g.key===E.KeyCode.SPACE)&&(g.preventDefault(),this.onItemSelected(g))}}),h!=null&&h.suppressMouseDown||this.addManagedElementListeners(c,{mousedown:g=>{g.stopPropagation(),g.preventDefault()}}),h!=null&&h.suppressMouseOver||this.addManagedElementListeners(c,{mouseenter:()=>this.onMouseEnter(),mouseleave:()=>this.onMouseLeave()})}isDisabled(){return!!this.params.disabled}openSubMenu(c=!1,h){var G,j;if(this.closeSubMenu(),!this.params.subMenu)return;this.subMenuIsOpening=!0;let g=(0,E._loadTemplate)('<div class="ag-menu" role="presentation"></div>');this.eSubMenuGui=g;let f,S=()=>{this.subMenuIsOpening=!1};if(this.childComponent){let Y=this.createBean(new T.AgMenuPanel(this.childComponent));Y.setParentComponent(this);let J=Y.getGui(),ne="mouseenter",ce=()=>this.cancelDeactivate();J.addEventListener(ne,ce),f=()=>J.removeEventListener(ne,ce),g.appendChild(J),this.childComponent.afterGuiAttached&&(S=()=>{this.childComponent.afterGuiAttached(),this.subMenuIsOpening=!1})}else if(this.params.subMenu){let Y=this.createBean(new z.AgMenuList(this.level+1,this.contextParams));Y.setParentComponent(this),Y.addMenuItems(this.params.subMenu),g.appendChild(Y.getGui()),this.addManagedListeners(Y,{closeMenu:J=>this.dispatchLocalEvent(J)}),Y.addGuiEventListener("mouseenter",()=>this.cancelDeactivate()),f=()=>this.destroyBean(Y),c&&(S=()=>{Y.activateFirstItem(),this.subMenuIsOpening=!1})}let{popupSvc:w}=this,M=()=>{let Y=this.eGui;w==null||w.positionPopupForMenu({eventSource:Y,ePopup:g});let{column:J,node:ne}=this.contextParams;w==null||w.callPostProcessPopup("subMenu",g,Y,h instanceof MouseEvent?h:void 0,J,ne)},P=this.getLocaleTextFunc(),O=w==null?void 0:w.addPopup({modal:!0,eChild:g,positionCallback:M,anchorToElement:this.eGui,ariaLabel:P("ariaLabelSubMenu","SubMenu"),afterGuiAttached:S});this.subMenuIsOpen=!0,this.setAriaExpanded(!0),this.hideSubMenu=()=>{var Y,J;O&&O.hideFunc(),this.subMenuIsOpen=!1,this.setAriaExpanded(!1),f(),(J=(Y=this.menuItemComp).setExpanded)==null||J.call(Y,!1),this.eSubMenuGui=void 0},(j=(G=this.menuItemComp).setExpanded)==null||j.call(G,!0)}setAriaExpanded(c){this.suppressAria||(0,E._setAriaExpanded)(this.eGui,c)}closeSubMenu(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,this.setAriaExpanded(!1))}isSubMenuOpen(){return this.subMenuIsOpen}isSubMenuOpening(){return this.subMenuIsOpening}activate(c){var h,g;this.cancelActivate(),!this.params.disabled&&(this.isActive=!0,this.suppressRootStyles||this.eGui.classList.add(`${this.cssClassPrefix}-active`),(g=(h=this.menuItemComp).setActive)==null||g.call(h,!0),this.suppressFocus||this.eGui.focus({preventScroll:!0}),c&&this.params.subMenu&&window.setTimeout(()=>{this.isAlive()&&this.isActive&&this.openSubMenu()},300),this.onItemActivated())}deactivate(){var c,h;this.cancelDeactivate(),this.suppressRootStyles||this.eGui.classList.remove(`${this.cssClassPrefix}-active`),(h=(c=this.menuItemComp).setActive)==null||h.call(c,!1),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()}getGui(){return this.menuItemComp.getGui()}getParentComponent(){return this.parentComponent}setParentComponent(c){this.parentComponent=c}getSubMenuGui(){return this.eSubMenuGui}onItemSelected(c){var h,g;(g=(h=this.menuItemComp).select)==null||g.call(h),this.params.action?this.beans.frameworkOverrides.wrapOutgoing(()=>this.params.action(this.gos.addGridCommonParams(ge({},this.contextParams)))):this.openSubMenu(c&&c.type==="keydown",c),!(this.params.subMenu&&!this.params.action||this.params.suppressCloseOnSelect)&&this.closeMenu(c)}closeMenu(c){let h={type:"closeMenu"};c&&(c instanceof MouseEvent?h.mouseEvent=c:h.keyboardEvent=c),this.dispatchLocalEvent(h)}onItemActivated(){let c={type:"menuItemActivated",menuItem:this};this.dispatchLocalEvent(c)}cancelActivate(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)}cancelDeactivate(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)}onMouseEnter(){this.cancelDeactivate(),this.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(()=>this.activate(!0),this.ACTIVATION_DELAY):this.activate(!0)}onMouseLeave(){this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(()=>this.deactivate(),this.ACTIVATION_DELAY):this.deactivate()}configureDefaults(c){var O,G,j;if(!this.menuItemComp){setTimeout(()=>this.configureDefaults(c));return}let h=this.menuItemComp.getGui(),{suppressRootStyles:g,suppressTooltip:f,suppressAria:S,suppressTabIndex:w,suppressFocus:M}=c||{},P=(G=(O=this.menuItemComp).getRootElement)==null?void 0:G.call(O);P&&(g||h.classList.add("ag-menu-option-custom"),h=P),this.eGui=h,this.suppressRootStyles=!!g,this.suppressRootStyles||(h.classList.add(this.cssClassPrefix),(j=this.params.cssClasses)==null||j.forEach(Y=>h.classList.add(Y)),this.params.disabled&&h.classList.add(`${this.cssClassPrefix}-disabled`)),f||this.refreshTooltip(this.params.tooltip),this.suppressAria=!!S,this.suppressAria||((0,E._setAriaRole)(h,"treeitem"),(0,E._setAriaLevel)(h,this.level+1),this.params.disabled&&(0,E._setAriaDisabled)(h,!0)),w||h.setAttribute("tabindex","-1"),this.params.disabled||this.addListeners(h,c),this.suppressFocus=!!M}refreshTooltip(c,h){if(this.tooltip=c,this.tooltipFeature=this.destroyBean(this.tooltipFeature),!c||!this.menuItemComp)return;let g=this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),getTooltipValue:()=>this.tooltip,getLocation:()=>"menu",shouldDisplayTooltip:h});g&&(this.tooltipFeature=this.createBean(g))}destroy(){var c,h;this.tooltipFeature=this.destroyBean(this.tooltipFeature),(h=(c=this.menuItemComp)==null?void 0:c.destroy)==null||h.call(c),super.destroy()}}p.AgMenuItemComponent=d},3360:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgMenuItemRenderer=void 0;let E=A(6624);class z extends E.Component{constructor(){super(),this.setTemplate("<div></div>")}init(b){var C;this.params=b,this.cssClassPrefix=(C=this.params.cssClassPrefix)!=null?C:"ag-menu-option",this.addAriaAttributes(),this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu()}configureDefaults(){return!0}addAriaAttributes(){let{checked:b,subMenu:C}=this.params,d=this.getGui();b&&(0,E._setAriaChecked)(d,b),C&&(0,E._setAriaExpanded)(d,!1)}addIcon(){if(this.params.isCompact)return;let b=(0,E._loadTemplate)(`<span data-ref="eIcon" class="${this.getClassName("part")} ${this.getClassName("icon")}" role="presentation"></span>`),{checked:C,icon:d}=this.params;C?b.appendChild((0,E._createIconNoSpan)("check",this.beans)):d&&((0,E._isNodeOrElement)(d)?b.appendChild(d):typeof d=="string"?b.innerHTML=d:(0,E._warn)(227)),this.getGui().appendChild(b)}addName(){let b=(0,E._loadTemplate)(`<span data-ref="eName" class="${this.getClassName("part")} ${this.getClassName("text")}">${this.params.name||""}</span>`);this.getGui().appendChild(b)}addShortcut(){if(this.params.isCompact)return;let b=(0,E._loadTemplate)(`<span data-ref="eShortcut" class="${this.getClassName("part")} ${this.getClassName("shortcut")}">${this.params.shortcut||""}</span>`);this.getGui().appendChild(b)}addSubMenu(){let b=(0,E._loadTemplate)(`<span data-ref="ePopupPointer" class="${this.getClassName("part")} ${this.getClassName("popup-pointer")}"></span>`),C=this.getGui();if(this.params.subMenu){let d=this.gos.get("enableRtl")?"subMenuOpenRtl":"subMenuOpen";b.appendChild((0,E._createIconNoSpan)(d,this.beans))}C.appendChild(b)}getClassName(b){return`${this.cssClassPrefix}-${b}`}}p.AgMenuItemRenderer=z},9476:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgMenuList=void 0;let E=A(6624),z=A(7040);class T extends E.TabGuardComp{constructor(C=0,d){super('<div class="ag-menu-list" role="tree"></div>'),this.level=C,this.menuItems=[],this.params=d!=null?d:{column:null,node:null,value:null}}postConstruct(){this.initialiseTabGuard({onTabKeyDown:C=>this.onTabKeyDown(C),handleKeyDown:C=>this.handleKeyDown(C),onFocusIn:C=>this.handleFocusIn(C),onFocusOut:C=>this.handleFocusOut(C)})}onTabKeyDown(C){let d=this.getParentComponent(),s=d&&d.getGui();s&&s.classList.contains("ag-focus-managed")||C.preventDefault(),C.shiftKey&&this.closeIfIsChild(C)}handleKeyDown(C){switch(C.key){case E.KeyCode.UP:case E.KeyCode.RIGHT:case E.KeyCode.DOWN:case E.KeyCode.LEFT:C.preventDefault(),this.handleNavKey(C.key);break;case E.KeyCode.ESCAPE:this.closeIfIsChild()&&(0,E._stopPropagationForAgGrid)(C);break}}handleFocusIn(C){var s,c;let d=C.relatedTarget;!this.tabGuardFeature.getTabGuardCtrl().isTabGuard(d)&&(this.getGui().contains(d)||(c=(s=this.activeMenuItem)==null?void 0:s.getSubMenuGui())!=null&&c.contains(d))||(this.activeMenuItem?this.activeMenuItem.activate():this.activateFirstItem())}handleFocusOut(C){var s;let d=C.relatedTarget;!this.activeMenuItem||this.getGui().contains(d)||(s=this.activeMenuItem.getSubMenuGui())!=null&&s.contains(d)||this.activeMenuItem.isSubMenuOpening()||this.activeMenuItem.deactivate()}clearActiveItem(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)}addMenuItems(C){C!=null&&E.AgPromise.all(C.map(d=>d==="separator"?E.AgPromise.resolve({eGui:this.createSeparator()}):typeof d=="string"?((0,E._warn)(228,{menuItemOrString:d}),E.AgPromise.resolve({eGui:null})):this.addItem(d))).then(d=>{(d!=null?d:[]).forEach(s=>{s!=null&&s.eGui&&(this.appendChild(s.eGui),s.comp&&this.menuItems.push(s.comp))})})}addItem(C){let d=this.createManagedBean(new z.AgMenuItemComponent);return d.init({menuItemDef:C,isAnotherSubMenuOpen:()=>this.menuItems.some(s=>s.isSubMenuOpen()),level:this.level,contextParams:this.params}).then(()=>(d.setParentComponent(this),this.addManagedListeners(d,{closeMenu:s=>{this.dispatchLocalEvent(s)},menuItemActivated:s=>{this.activeMenuItem&&this.activeMenuItem!==s.menuItem&&this.activeMenuItem.deactivate(),this.activeMenuItem=s.menuItem}}),{comp:d,eGui:d.getGui()}))}activateFirstItem(){let C=this.menuItems.filter(d=>!d.isDisabled())[0];C&&C.activate()}createSeparator(){let C=`
            <div class="ag-menu-separator" aria-hidden="true">
                <div class="ag-menu-separator-part"></div>
                <div class="ag-menu-separator-part"></div>
                <div class="ag-menu-separator-part"></div>
                <div class="ag-menu-separator-part"></div>
            </div>`;return(0,E._loadTemplate)(C)}handleNavKey(C){switch(C){case E.KeyCode.UP:case E.KeyCode.DOWN:{let s=this.findNextItem(C===E.KeyCode.UP);s&&s!==this.activeMenuItem&&s.activate();return}}let d=this.gos.get("enableRtl")?E.KeyCode.RIGHT:E.KeyCode.LEFT;C===d?this.closeIfIsChild():this.openChild()}closeIfIsChild(C){let d=this.getParentComponent();return d&&d instanceof z.AgMenuItemComponent?(C&&C.preventDefault(),d.closeSubMenu(),d.getGui().focus(),!0):!1}openChild(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)}findNextItem(C){let d=this.menuItems.filter(h=>!h.isDisabled());if(!d.length)return;if(!this.activeMenuItem)return C?(0,E._last)(d):d[0];C&&d.reverse();let s,c=!1;for(let h=0;h<d.length;h++){let g=d[h];if(!c){g===this.activeMenuItem&&(c=!0);continue}s=g;break}return c&&!s?d[0]:s||this.activeMenuItem}destroy(){this.clearActiveItem(),super.destroy()}}p.AgMenuList=T},568:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgMenuPanel=void 0;let E=A(6624);class z extends E.TabGuardComp{constructor(b){super(),this.setTemplateFromElement(b.getGui(),void 0,void 0,!0)}postConstruct(){this.initialiseTabGuard({onTabKeyDown:b=>this.onTabKeyDown(b),handleKeyDown:b=>this.handleKeyDown(b)})}handleKeyDown(b){b.key===E.KeyCode.ESCAPE&&this.closePanel()}onTabKeyDown(b){b.defaultPrevented||(this.closePanel(),b.preventDefault())}closePanel(){let b=this.parentComponent;b.closeSubMenu(),setTimeout(()=>b.getGui().focus(),0)}}p.AgMenuPanel=z},7088:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agPanelCSS=void 0,p.agPanelCSS=".ag-panel{background-color:var(--ag-panel-background-color);display:flex;flex-direction:column;overflow:hidden;position:relative}.ag-dialog{border:var(--ag-dialog-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dialog-shadow);position:absolute}.ag-panel-title-bar{align-items:center;background-color:var(--ag-panel-title-bar-background-color);border-bottom:var(--ag-panel-title-bar-border);color:var(--ag-header-text-color);cursor:default;display:flex;flex:none;height:var(--ag-header-height);padding:var(--ag-spacing) var(--ag-cell-horizontal-padding)}.ag-panel-title-bar-button{cursor:pointer}:where(.ag-ltr) .ag-panel-title-bar-button{margin-left:calc(var(--ag-spacing)*2);margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-panel-title-bar-button{margin-left:var(--ag-spacing);margin-right:calc(var(--ag-spacing)*2)}.ag-panel-title-bar-title{color:var(--ag-header-text-color);flex:1 1 auto;font-weight:500}.ag-panel-title-bar-buttons{display:flex}.ag-panel-content-wrapper{display:flex;flex:1 1 auto;overflow:hidden;position:relative}:where(.ag-dragging-fill-handle) .ag-dialog,:where(.ag-dragging-range-handle) .ag-dialog{opacity:.7;pointer-events:none}"},7325:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPanel=void 0;let E=A(6624),z=A(7088);function T(d){let s=d.cssIdentifier||"default";return`<div class="ag-panel ag-${s}-panel" tabindex="-1">
        <div data-ref="eTitleBar" class="ag-panel-title-bar ag-${s}-panel-title-bar ag-unselectable">
            <span data-ref="eTitle" class="ag-panel-title-bar-title ag-${s}-panel-title-bar-title"></span>
            <div data-ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-${s}-panel-title-bar-buttons"></div>
        </div>
        <div data-ref="eContentWrapper" class="ag-panel-content-wrapper ag-${s}-panel-content-wrapper"></div>
    </div>`}let b='<div class="ag-button"></div>';class C extends E.Component{constructor(s){super(T(s)),this.config=s,this.closable=!0,this.eContentWrapper=E.RefPlaceholder,this.eTitleBar=E.RefPlaceholder,this.eTitleBarButtons=E.RefPlaceholder,this.eTitle=E.RefPlaceholder,this.registerCSS(z.agPanelCSS)}postConstruct(){let{component:s,closable:c,hideTitleBar:h,title:g,minWidth:f=250,width:S,minHeight:w=250,height:M,centered:P,popup:O,x:G,y:j}=this.config;this.positionableFeature=new E.PositionableFeature(this.getGui(),{minWidth:f,width:S,minHeight:w,height:M,centered:P,x:G,y:j,popup:O,calculateTopBuffer:()=>this.positionableFeature.getHeight()-this.getBodyHeight()}),this.createManagedBean(this.positionableFeature);let Y=this.getGui();s&&this.setBodyComponent(s),h?(0,E._setDisplayed)(this.eTitleBar,!1):(g&&this.setTitle(g),this.setClosable(c!=null?c:this.closable)),this.addManagedElementListeners(this.eTitleBar,{mousedown:J=>{if(Y.contains(J.relatedTarget)||Y.contains((0,E._getActiveDomElement)(this.beans))||this.eTitleBarButtons.contains(J.target)){J.preventDefault();return}let ne=this.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");ne&&ne.focus()}}),!(O&&this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")}renderComponent(){let s=this.getGui();s.focus(),this.close=()=>{s.parentElement.removeChild(s),this.destroy()}}getHeight(){return this.positionableFeature.getHeight()}setHeight(s){this.positionableFeature.setHeight(s)}getWidth(){return this.positionableFeature.getWidth()}setWidth(s){this.positionableFeature.setWidth(s)}setClosable(s){if(s!==this.closable&&(this.closable=s),s){let c=this.closeButtonComp=new E.Component(b);this.createBean(c);let h=c.getGui(),g=(0,E._createIconNoSpan)("close",this.beans);g.classList.add("ag-panel-title-bar-button-icon"),h.appendChild(g),this.addTitleBarButton(c),c.addManagedElementListeners(h,{click:this.onBtClose.bind(this)})}else if(this.closeButtonComp){let c=this.closeButtonComp.getGui();c.parentElement.removeChild(c),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}}setBodyComponent(s){s.setParentComponent(this),this.eContentWrapper.appendChild(s.getGui())}addTitleBarButton(s,c){let h=this.eTitleBarButtons,g=h.children,f=g.length;c==null&&(c=f),c=Math.max(0,Math.min(c,f)),s.addCssClass("ag-panel-title-bar-button");let S=s.getGui();c===0?h.insertAdjacentElement("afterbegin",S):c===f?h.insertAdjacentElement("beforeend",S):g[c-1].insertAdjacentElement("afterend",S),s.setParentComponent(this)}getBodyHeight(){return(0,E._getInnerHeight)(this.eContentWrapper)}getBodyWidth(){return(0,E._getInnerWidth)(this.eContentWrapper)}setTitle(s){this.eTitle.innerText=s}onBtClose(){this.close()}destroy(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));let s=this.getGui();s&&(0,E._isVisible)(s)&&this.close(),super.destroy()}}p.AgPanel=C},3264:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgPill=void 0;let E=A(6624),z=A(6624);class T extends z.Component{constructor(C){super(`
            <div class="ag-pill" role="option">
                <span class="ag-pill-text" data-ref="eText"></span>
                <span class="ag-button ag-pill-button" data-ref="eButton" role="presentation"></span>
            </div>
        `),this.config=C,this.eText=E.RefPlaceholder,this.eButton=E.RefPlaceholder}postConstruct(){let{config:C,eButton:d}=this,{onKeyDown:s,onButtonClick:c}=C;this.getGui().setAttribute("tabindex",String(this.gos.get("tabIndex"))),this.addGuiEventListener("focus",()=>{this.eButton.focus()}),s&&this.addGuiEventListener("keydown",s),c&&this.addManagedElementListeners(d,{click:c})}toggleCloseButtonClass(C,d){this.eButton.classList.toggle(C,d)}setText(C){this.eText.textContent=C}getText(){return this.eText.textContent}}p.AgPill=T},7720:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.agRichSelectCSS=void 0,p.agRichSelectCSS=".ag-rich-select{cursor:default;height:100%}.ag-rich-select-value{align-items:center;background-color:var(--ag-input-background-color);display:flex;height:100%;padding:var(--ag-spacing);:where(.ag-picker-field-display){overflow:hidden;text-overflow:ellipsis;&:where(.ag-display-as-placeholder){opacity:.5}}}.ag-rich-select-list{background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);box-shadow:var(--ag-dropdown-shadow);height:auto;position:relative;width:100%;:where(.ag-loading-text){padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}}.ag-rich-select-row{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;padding:0 var(--ag-spacing);white-space:nowrap}.ag-rich-select-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-rich-select-row-highlighted,.ag-rich-select-row:hover{background-image:linear-gradient(var(--ag-row-hover-color),var(--ag-row-hover-color))}.ag-rich-select-row-text-highlight{font-weight:700}.ag-rich-select-field-input{flex:1 1 auto;:where(.ag-input-field-input){border:none!important;box-shadow:none!important;padding:0!important;text-overflow:ellipsis;&::-moz-placeholder{opacity:.8}&::placeholder{opacity:.8}}}:where(.ag-ltr) .ag-rich-select-field-input{left:var(--ag-spacing)}:where(.ag-rtl) .ag-rich-select-field-input{right:var(--ag-spacing)}:where(.ag-popup-editor) .ag-rich-select-value{height:var(--ag-row-height);min-width:200px}.ag-rich-select-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-pill-container{display:flex;flex-wrap:nowrap;gap:.25rem}.ag-pill{align-items:center;background:var(--ag-select-cell-background-color);border:var(--ag-select-cell-border);border-radius:var(--ag-border-radius);display:flex;padding:0 .25rem;white-space:nowrap}.ag-pill-button{border:none;padding:0;&:hover{color:var(--ag-accent-color);cursor:pointer}}:where(.ag-ltr) .ag-pill-button{margin-left:var(--ag-spacing)}:where(.ag-rtl) .ag-pill-button{margin-right:var(--ag-spacing)}"},2005:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgRichSelect=void 0;let E=A(6624),z=A(7437),T=A(7720),b=A(5805);class C extends E.AgPickerField{wireBeans(s){this.userCompFactory=s.userCompFactory,this.ariaAnnounce=s.ariaAnnounce,this.registry=s.registry}constructor(s){var f,S;super(He(ge({pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"ag-list",className:"ag-rich-select",pickerIcon:"richSelectOpen",ariaRole:"combobox",template:(f=s==null?void 0:s.template)!=null?f:`
            <div class="ag-picker-field" role="presentation">
                <div data-ref="eLabel"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-rich-select-value ag-picker-collapsed">
                    <span data-ref="eDisplayField" class="ag-picker-field-display"></span>
                    <ag-input-text-field data-ref="eInput" class="ag-rich-select-field-input"></ag-input-text-field>
                    <span data-ref="eDeselect" class="ag-rich-select-deselect-button ag-picker-field-icon" role="presentation"></span>
                    <span data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></span>
                </div>
            </div>`,agComponents:[E.AgInputTextFieldSelector],modalPicker:!1},s),{maxPickerHeight:(S=s==null?void 0:s.maxPickerHeight)!=null?S:"calc(var(--ag-row-height) * 6.5)"})),this.searchString="",this.searchStringCreator=null,this.eInput=E.RefPlaceholder,this.eDeselect=E.RefPlaceholder,this.skipWrapperAnnouncement=!1;let{value:c,valueList:h,searchStringCreator:g}=s||{};c!==void 0&&(this.value=c),h!=null&&(this.values=h),g&&(this.searchStringCreator=g),this.registerCSS(T.agRichSelectCSS)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),shouldDisplayTooltip:()=>{var f,S;return(S=(f=this.shouldDisplayTooltip)==null?void 0:f.call(this))!=null?S:!0}})),super.postConstruct(),this.createListComponent(),this.eDeselect.appendChild((0,E._createIconNoSpan)("richSelectRemove",this.beans));let{allowTyping:s,placeholder:c,suppressDeselectAll:h}=this.config;this.eDeselect.classList.add("ag-hidden"),s?(this.eInput.setAutoComplete(!1).setInputPlaceholder(c),this.eDisplayField.classList.add("ag-hidden")):this.eInput.setDisplayed(!1),this.setupAriaProperties();let{searchDebounceDelay:g=300}=this.config;this.clearSearchString=(0,E._debounce)(this,this.clearSearchString.bind(this),g),this.renderSelectedValue(),s&&this.eInput.onValueChange(f=>this.searchTextFromString(f)),this.addManagedElementListeners(this.eWrapper,{focus:this.onWrapperFocus.bind(this)}),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)}),h||this.addManagedElementListeners(this.eDeselect,{mousedown:this.onDeselectAllMouseDown.bind(this),click:this.onDeselectAllClick.bind(this)})}setupAriaProperties(){let{eWrapper:s,gos:c}=this;s.tabIndex=c.get("tabIndex");let h=this.getLocaleTextFunc();this.ariaDeleteSelection=h("ariaLabelRichSelectDeleteSelection","Press DELETE to deselect item"),this.ariaDeselectAllItems=h("ariaLabelRichSelectDeselectAllItems","Press DELETE to deselect all items"),this.ariaToggleSelection=h("ariaLabelRichSelectToggleSelection","Press SPACE to toggle selection")}createListComponent(){this.listComponent=this.createBean(new b.AgRichSelectList(this.config,this.eWrapper,()=>this.searchString)),this.listComponent.setParentComponent(this),this.addManagedListeners(this.listComponent,{richSelectListRowSelected:s=>{this.onListValueSelected(s.value,s.fromEnterKey)}})}renderSelectedValue(){var J;let{value:s,eDisplayField:c,config:h,gos:g}=this,{allowTyping:f,cellRenderer:S,initialInputValue:w,multiSelect:M,suppressDeselectAll:P,suppressMultiSelectPillRenderer:O}=h,G=this.config.valueFormatter?this.config.valueFormatter(s):s;if(f){this.eInput.setValue(w!=null?w:G);return}if(M&&!P){let ne=s==null||Array.isArray(s)&&s.length===0;this.eDeselect.classList.toggle("ag-hidden",ne)}let j;if(M&&!O){this.createOrUpdatePillContainer(c);return}S&&(j=(0,E._getEditorRendererDetails)(this.userCompFactory,h,{value:s,valueFormatted:G,getValue:()=>this.getValue(),setValue:ne=>{this.setValue(ne,!0)},setTooltip:(ne,ce)=>{var fe;g.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=ce,(fe=this.tooltipFeature)==null||fe.setTooltipAndRefresh(ne)}}));let Y;if(j&&(Y=j.newAgStackInstance()),Y)(0,E._clearElement)(c),(0,E._bindCellRendererToHtmlElement)(Y,c),Y.then(ne=>{this.addDestroyFunc(()=>this.destroyBean(ne))});else{if((0,E._exists)(this.value))c.innerText=G,c.classList.remove("ag-display-as-placeholder");else{let{placeholder:ne}=h;(0,E._exists)(ne)?(c.innerHTML=`${(0,E._escapeString)(ne)}`,c.classList.add("ag-display-as-placeholder")):(0,E._clearElement)(c)}this.shouldDisplayTooltip=(0,E._shouldDisplayTooltip)(()=>this.eDisplayField),(J=this.tooltipFeature)==null||J.setTooltipAndRefresh(G!=null?G:null)}}createPickerComponent(){let{values:s}=this;return s&&this.setValueList({valueList:s}),this.listComponent}setSearchStringCreator(s){this.searchStringCreator=s}setValueList(s){let{valueList:c,refresh:h}=s;!this.listComponent||this.listComponent.getCurrentList()===c||(this.listComponent.setCurrentList(c),h&&(this.values?this.listComponent.refresh(!0):(this.values=c,this.isPickerDisplayed&&(this.listComponent.selectValue(this.value)||this.listComponent.refresh())),this.alignPickerToComponent()))}showPicker(){super.showPicker();let{listComponent:s,value:c}=this;if(!s)return;let h=null;this.value!=null&&(s.selectValue(this.value),h=s.getIndicesForValues(Array.isArray(c)?c:[c])[0]),h!=null?s.highlightIndex(h):s.refresh(),this.displayOrHidePicker()}beforeHidePicker(){super.beforeHidePicker()}createOrUpdatePillContainer(s){if(!this.pillContainer){let c=this.pillContainer=this.createBean(new z.AgPillContainer);this.addDestroyFunc(()=>{this.destroyBean(this.pillContainer),this.pillContainer=null}),(0,E._clearElement)(s),s.appendChild(c.getGui()),c.init({eWrapper:this.eWrapper,onPillMouseDown:h=>{h.stopImmediatePropagation()},announceItemFocus:()=>{this.announceAriaValue(this.ariaDeleteSelection)},getValue:()=>this.getValue(),setValue:h=>this.setValue(h,!0)})}this.doWhileBlockingAnnouncement(()=>{var c;return(c=this.pillContainer)==null?void 0:c.refresh()})}doWhileBlockingAnnouncement(s){this.skipWrapperAnnouncement=!0,s(),this.skipWrapperAnnouncement=!1}onWrapperFocus(){let{eInput:s,config:c}=this,{allowTyping:h,multiSelect:g,suppressDeselectAll:f}=c;if(h){let S=s.getFocusableElement();S.focus(),S.select()}else g&&!f&&!this.skipWrapperAnnouncement&&this.announceAriaValue(this.ariaDeselectAllItems)}onWrapperFocusOut(s){this.eWrapper.contains(s.relatedTarget)||this.hidePicker()}onDeselectAllMouseDown(s){s.stopImmediatePropagation()}onDeselectAllClick(){this.setValue([],!0)}buildSearchStringFromKeyboardEvent(s){let{key:c}=s;if(c===E.KeyCode.BACKSPACE)this.searchString=this.searchString.slice(0,-1),c="";else if(!(0,E._isEventFromPrintableCharacter)(s))return;s.preventDefault(),this.searchTextFromCharacter(c)}searchTextFromCharacter(s){this.searchString+=s,this.runSearch(),this.clearSearchString()}searchTextFromString(s){s==null&&(s=""),this.searchString=s,this.runSearch()}buildSearchStrings(s){let{valueFormatter:c=g=>g}=this.config,h;return typeof s[0]=="number"||typeof s[0]=="string"?h=s.map(g=>c(g)):typeof s[0]=="object"&&this.searchStringCreator&&(h=this.searchStringCreator(s)),h}filterListModel(s){let{filterList:c}=this.config;c&&this.setValueList({valueList:s,refresh:!0})}runSearch(){var O,G,j,Y,J;if(!this.listComponent)return;let{values:s}=this,c=this.buildSearchStrings(s);if(!c){this.listComponent.highlightIndex(-1);return}let{suggestions:h,filteredValues:g}=this.getSuggestionsAndFilteredValues(this.searchString,c),{filterList:f,highlightMatch:S,searchType:w="fuzzy"}=this.config,M=g.length,P=!!(f&&this.searchString!=="");if(this.filterListModel(P?g:s),h.length){let ne=P?0:c.indexOf(h[0]);(O=this.listComponent)==null||O.highlightIndex(ne)}else if((G=this.listComponent)==null||G.highlightIndex(-1),!P||M)(j=this.listComponent)==null||j.ensureIndexVisible(0);else if(P){this.getAriaElement().removeAttribute("data-active-option");let ne=(Y=this.listComponent)==null?void 0:Y.getAriaElement();ne&&(0,E._setAriaActiveDescendant)(ne,null)}S&&w!=="fuzzy"&&((J=this.listComponent)==null||J.highlightFilterMatch(this.searchString)),this.displayOrHidePicker()}getSuggestionsAndFilteredValues(s,c){let h=[],g=[];if(!s.length)return{suggestions:h,filteredValues:g};let{searchType:f="fuzzy",filterList:S}=this.config;if(f==="fuzzy"){let w=(0,E._fuzzySuggestions)({inputValue:s,allSuggestions:c,hideIrrelevant:!0,addSequentialWeight:!0});h=w.values;let M=w.indices;if(S&&M.length)for(let P=0;P<M.length;P++)g.push(this.values[M[P]])}else h=c.filter((w,M)=>{let P=w.toLocaleLowerCase(),O=this.searchString.toLocaleLowerCase(),G=f==="match"?P.startsWith(O):P.indexOf(O)!==-1;return S&&G&&g.push(this.values[M]),G});return{suggestions:h,filteredValues:g}}displayOrHidePicker(){if(!this.listComponent)return;let s=this.listComponent.getGui(),c=this.listComponent.getCurrentList(),h=c?c.length===0:!1;s.classList.toggle("ag-hidden",h)}clearSearchString(){this.searchString=""}setValue(s,c,h,g){var S,w;if(this.value===s)return this;let f=Array.isArray(s);if(s!=null){if(!f){let M=(S=this.listComponent)==null?void 0:S.getCurrentList();if((M?M.indexOf(s):-1)===-1)return this}h||(w=this.listComponent)==null||w.selectValue(s)}return super.setValue(s,c),g||this.renderSelectedValue(),this}onNavigationKeyDown(s,c,h){var f;s.preventDefault();let g=c===E.KeyCode.DOWN;if(!this.isPickerDisplayed&&g){this.showPicker();return}(f=this.listComponent)==null||f.onNavigationKeyDown(c,h)}onEnterKeyDown(s){var c;if(this.isPickerDisplayed&&(s.preventDefault(),(c=this.listComponent)!=null&&c.getCurrentList())){let h=this.listComponent.getLastItemHovered();this.config.multiSelect||h==null?this.dispatchPickerEventAndHidePicker(this.value,!0):this.onListValueSelected(new Set([h]),!0)}}onDeleteKeyDown(s){let{eWrapper:c,beans:h}=this;(0,E._getActiveDomElement)(h)===c&&(s.preventDefault(),this.setValue([],!0))}onTabKeyDown(){let{config:s,isPickerDisplayed:c,listComponent:h}=this,{multiSelect:g}=s;if(!(!c||!h)){if(g){let f=this.getValueFromSet(h.getSelectedItems());f&&this.setValue(f,!1,!0,!0)}else this.setValue(h.getLastItemHovered(),!1,!0);this.hidePicker()}}getValueFromSet(s){let{multiSelect:c}=this.config,h=null;for(let g of s){if(s.size===1&&!c){h=g;break}h||(h=[]),h.push(g)}return Array.isArray(h)&&h.sort(),h}onListValueSelected(s,c){let h=this.getValueFromSet(s);this.setValue(h,!1,!0),this.config.multiSelect||this.dispatchPickerEventAndHidePicker(h,c)}dispatchPickerEventAndHidePicker(s,c){let h={type:"fieldPickerValueSelected",fromEnterKey:c,value:s};this.dispatchLocalEvent(h),this.hidePicker()}getFocusableElement(){let{allowTyping:s}=this.config;return s?this.eInput.getFocusableElement():super.getFocusableElement()}onKeyDown(s){var O;let{key:c}=s,{isPickerDisplayed:h,config:g,listComponent:f,pickerComponent:S}=this,{allowTyping:w,multiSelect:M,suppressDeselectAll:P}=g;switch(c){case E.KeyCode.LEFT:case E.KeyCode.RIGHT:(!w||this.pillContainer)&&(s.preventDefault(),this.pillContainer&&((O=this.listComponent)==null||O.highlightIndex(-1),this.pillContainer.onNavigationKeyDown(s)));break;case E.KeyCode.PAGE_HOME:case E.KeyCode.PAGE_END:if(w){s.preventDefault();let G=this.eInput.getInputElement(),j=c===E.KeyCode.PAGE_HOME?0:G.value.length;G.setSelectionRange(j,j);break}case E.KeyCode.PAGE_UP:case E.KeyCode.PAGE_DOWN:s.preventDefault(),S&&(f==null||f.navigateToPage(c));break;case E.KeyCode.DOWN:case E.KeyCode.UP:this.onNavigationKeyDown(s,c,()=>{M&&(this.doWhileBlockingAnnouncement(()=>this.eWrapper.focus()),this.announceAriaValue(this.ariaToggleSelection))});break;case E.KeyCode.ESCAPE:h&&((0,E._isVisible)(this.listComponent.getGui())&&(s.preventDefault(),(0,E._stopPropagationForAgGrid)(s)),this.hidePicker());break;case E.KeyCode.ENTER:this.onEnterKeyDown(s);break;case E.KeyCode.SPACE:if(h&&M&&f){s.preventDefault();let G=f.getLastItemHovered();G&&f.toggleListItemSelection(G)}break;case E.KeyCode.TAB:this.onTabKeyDown();break;case E.KeyCode.DELETE:M&&!P&&this.onDeleteKeyDown(s);break;default:w||this.buildSearchStringFromKeyboardEvent(s)}}announceAriaValue(s){var c;(c=this.ariaAnnounce)==null||c.announceValue(s,"richSelect")}destroy(){this.listComponent&&(this.listComponent=this.destroyBean(this.listComponent)),super.destroy()}}p.AgRichSelect=C},5805:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AgRichSelectList=void 0;let E=A(6624),z=A(7793),T=A(7904),b="ag-rich-select-list",C="ag-rich-select-row";class d extends T.VirtualList{constructor(c,h,g){super({cssIdentifier:"rich-select"}),this.params=c,this.richSelectWrapper=h,this.getSearchString=g,this.lastRowHovered=-1,this.selectedItems=new Set,this.params=c,this.setComponentCreator(this.createRowComponent.bind(this)),this.setComponentUpdater(()=>{})}postConstruct(){super.postConstruct(),this.createLoadingElement();let{cellRowHeight:c,pickerAriaLabelKey:h,pickerAriaLabelValue:g}=this.params;c&&this.setRowHeight(c);let f=this.getGui(),S=this.getAriaElement();this.addManagedListeners(f,{mousemove:this.onMouseMove.bind(this),mouseout:this.onMouseOut.bind(this),mousedown:this.onMouseDown.bind(this),click:this.onClick.bind(this)}),f.classList.add(b);let w=`${b}-${this.getCompId()}`;S.setAttribute("id",w);let P=this.getLocaleTextFunc()(h,g);(0,E._setAriaLabel)(S,P),(0,E._setAriaControls)(this.richSelectWrapper,S)}navigateToPage(c){let h=super.navigateToPage(c,this.lastRowHovered);return h!=null&&(0,E._requestAnimationFrame)(this.beans,()=>{if(!this.isAlive())return null;this.highlightIndex(h)}),h}drawVirtualRows(c){super.drawVirtualRows(c),this.refreshSelectedItems()}highlightFilterMatch(c){this.forEachRenderedRow(h=>{h.highlightString(c)})}onNavigationKeyDown(c,h){(0,E._requestAnimationFrame)(this.beans,()=>{if(!this.currentList||!this.isAlive())return;let g=this.currentList.length,f=this.lastRowHovered,S=c===E.KeyCode.DOWN?1:-1,w=Math.min(Math.max(f===-1?0:f+S,0),g-1);this.highlightIndex(w),h()})}selectValue(c){var f,S;if(!this.currentList)return this.eLoading&&this.appendChild(this.eLoading),!1;if((f=this.eLoading)!=null&&f.offsetParent&&((S=this.eLoading.parentElement)==null||S.removeChild(this.eLoading)),c==null)return!1;let h=this.getIndicesForValues(c),g=h.length>0;return g&&(this.refresh(),this.ensureIndexVisible(h[0]),this.refresh(!0)),this.selectListItems(Array.isArray(c)?c:[c]),g}selectListItems(c,h=!1){h||this.selectedItems.clear();for(let g=0;g<c.length;g++){let f=c[g];this.selectedItems.has(f)||this.selectedItems.add(f)}this.refreshSelectedItems()}getCurrentList(){return this.currentList}setCurrentList(c){this.currentList=c,this.setModel({getRowCount:()=>c.length,getRow:h=>c[h],areRowsEqual:(h,g)=>h===g})}getSelectedItems(){return this.selectedItems}getLastItemHovered(){return this.currentList[this.lastRowHovered]}highlightIndex(c,h){this.currentList&&(c<0||c>=this.currentList.length?this.lastRowHovered=-1:(this.lastRowHovered=c,this.ensureIndexVisible(c,!h)&&!h&&this.refresh(!0)),this.forEachRenderedRow((g,f)=>{let S=c===f;if(g.toggleHighlighted(S),S){let w=`${C}-${g.getCompId()}`;(0,E._setAriaActiveDescendant)(this.richSelectWrapper,w),this.richSelectWrapper.setAttribute("data-active-option",w)}}))}getIndicesForValues(c){let{currentList:h}=this;if(!h||h.length===0||c==null)return[];if(Array.isArray(c)||(c=[c]),c.length===0)return[];let g=[];for(let f=0;f<c.length;f++){let S=h.indexOf(c[f]);S>=0&&g.push(S)}return g}toggleListItemSelection(c){this.selectedItems.has(c)?this.selectedItems.delete(c):this.selectedItems.add(c),this.refreshSelectedItems(),this.dispatchValueSelected()}refreshSelectedItems(){this.forEachRenderedRow(c=>{let h=this.selectedItems.has(c.getValue());c.updateSelected(h)})}createLoadingElement(){let c=(0,E._getDocument)(this.beans),h=this.getLocaleTextFunc(),g=c.createElement("div");g.classList.add("ag-loading-text"),g.innerText=h("loadingOoo","Loading..."),this.eLoading=g}createRowComponent(c,h){let g=new z.RichSelectRow(this.params);h.setAttribute("id",`${C}-${g.getCompId()}`),g.setParentComponent(this),this.createBean(g),g.setState(c);let{highlightMatch:f,searchType:S="fuzzy"}=this.params;return f&&S!=="fuzzy"&&g.highlightString(this.getSearchString()),g}getRowForMouseEvent(c){let g=this.getGui().getBoundingClientRect(),f=this.getScrollTop(),S=c.clientY-g.top+f;return Math.floor(S/this.getRowHeight())}onMouseMove(c){let h=this.getRowForMouseEvent(c);h!==-1&&h!=this.lastRowHovered&&(this.lastRowHovered=h,this.highlightIndex(h,!0))}onMouseDown(c){c.preventDefault()}onMouseOut(c){this.getGui().contains(c.relatedTarget)||this.highlightIndex(-1)}onClick(c){let{multiSelect:h}=this.params;if(!this.currentList)return;let g=this.getRowForMouseEvent(c),f=this.currentList[g];h?this.toggleListItemSelection(f):(this.selectListItems([f]),this.dispatchValueSelected())}dispatchValueSelected(){this.dispatchLocalEvent({type:"richSelectListRowSelected",fromEnterKey:!1,value:this.selectedItems})}destroy(){super.destroy(),this.eLoading=void 0}}p.AgRichSelectList=d},7793:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RichSelectRow=void 0;let E=A(6624);class z extends E.Component{wireBeans(b){this.userCompFactory=b.userCompFactory,this.registry=b.registry}constructor(b){super('<div class="ag-rich-select-row" role="presentation"></div>'),this.params=b}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui(),shouldDisplayTooltip:()=>{var b,C;return(C=(b=this.shouldDisplayTooltip)==null?void 0:b.call(this))!=null?C:!0}}))}setState(b){let C="",{params:d}=this;d.valueFormatter&&(C=d.valueFormatter(b)),this.populateWithRenderer(b,C)||this.populateWithoutRenderer(b,C),this.value=b}highlightString(b){let{parsedValue:C}=this;if(this.params.cellRenderer||!(0,E._exists)(C))return;let d=(0,E._exists)(b);if(d){let s=C==null?void 0:C.toLocaleLowerCase().indexOf(b.toLocaleLowerCase());if(s>=0){let c=s+b.length,h=(0,E._escapeString)(C.slice(0,s),!0),g=(0,E._escapeString)(C.slice(s,c),!0),f=(0,E._escapeString)(C.slice(c));this.renderValueWithoutRenderer(`${h}<span class="ag-rich-select-row-text-highlight">${g}</span>${f}`)}else d=!1}d||this.renderValueWithoutRenderer(C)}updateSelected(b){let C=this.getGui();(0,E._setAriaSelected)(C.parentElement,b),this.addOrRemoveCssClass("ag-rich-select-row-selected",b)}getValue(){return this.value}toggleHighlighted(b){this.addOrRemoveCssClass("ag-rich-select-row-highlighted",b)}populateWithoutRenderer(b,C){var g;let d=(0,E._getDocument)(this.beans),s=this.getGui(),c=d.createElement("span");c.style.overflow="hidden",c.style.textOverflow="ellipsis";let h=(0,E._escapeString)((0,E._exists)(C)?C:b,!0);this.parsedValue=(0,E._exists)(h)?h:null,s.appendChild(c),this.renderValueWithoutRenderer(h),this.shouldDisplayTooltip=(0,E._shouldDisplayTooltip)(()=>c),(g=this.tooltipFeature)==null||g.setTooltipAndRefresh(this.parsedValue)}renderValueWithoutRenderer(b){let C=this.getGui().querySelector("span");C&&(C.innerHTML=(0,E._exists)(b)?b:"&nbsp;")}populateWithRenderer(b,C){var c;let d,s;if(this.params.cellRenderer){let h=(c=this.getParentComponent())==null?void 0:c.getParentComponent();s=(0,E._getEditorRendererDetails)(this.userCompFactory,this.params,{value:b,valueFormatted:C,getValue:()=>h==null?void 0:h.getValue(),setValue:g=>{h==null||h.setValue(g,!0)},setTooltip:(g,f)=>{var S;this.gos.assertModuleRegistered("Tooltip",3),this.shouldDisplayTooltip=f,(S=this.tooltipFeature)==null||S.setTooltipAndRefresh(g)}})}return s&&(d=s.newAgStackInstance()),d&&(0,E._bindCellRendererToHtmlElement)(d,this.getGui()),d?(d.then(h=>{this.addDestroyFunc(()=>{this.destroyBean(h)})}),!0):!1}}p.RichSelectRow=z},7685:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.menuCSS=void 0,p.menuCSS='.ag-menu-list{cursor:default;display:table;padding:var(--ag-spacing) 0;width:100%}.ag-menu-option,.ag-menu-separator{display:table-row}.ag-menu-option-part,.ag-menu-separator-part{display:table-cell;vertical-align:middle}.ag-menu-option{cursor:pointer;font-weight:500}:where(.ag-ltr) :where(.ag-menu-option-popup-pointer) .ag-icon{text-align:right}:where(.ag-rtl) :where(.ag-menu-option-popup-pointer) .ag-icon{text-align:left}.ag-menu-option-text{white-space:nowrap}.ag-menu-option-custom{display:contents}.ag-compact-menu-option{display:flex;flex-wrap:nowrap;width:100%}.ag-compact-menu-option-text{flex:1 1 auto;white-space:nowrap}.ag-menu-separator{height:calc(var(--ag-spacing)*2 + 1px)}.ag-menu-separator-part:after{border-top:1px solid var(--ag-menu-separator-color);content:"";display:block}.ag-compact-menu-option-active,.ag-menu-option-active{background-color:var(--ag-row-hover-color)}.ag-compact-menu-option-part,.ag-menu-option-part{line-height:var(--ag-icon-size);padding:calc(var(--ag-spacing) + 2px) 0}.ag-compact-menu-option-disabled,.ag-menu-option-disabled{cursor:not-allowed;opacity:.5}.ag-compact-menu-option-icon,.ag-menu-option-icon{width:var(--ag-icon-size)}:where(.ag-ltr) .ag-compact-menu-option-icon,:where(.ag-ltr) .ag-menu-option-icon{padding-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-compact-menu-option-icon,:where(.ag-rtl) .ag-menu-option-icon{padding-right:calc(var(--ag-spacing)*2)}.ag-compact-menu-option-text,.ag-menu-option-text{padding-left:calc(var(--ag-spacing)*2);padding-right:calc(var(--ag-spacing)*2)}:where(.ag-ltr) .ag-compact-menu-option-shortcut,:where(.ag-ltr) .ag-menu-option-shortcut{padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-compact-menu-option-shortcut,:where(.ag-rtl) .ag-menu-option-shortcut{padding-left:var(--ag-spacing)}:where(.ag-ltr) .ag-compact-menu-option-popup-pointer,:where(.ag-ltr) .ag-menu-option-popup-pointer{padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-compact-menu-option-popup-pointer,:where(.ag-rtl) .ag-menu-option-popup-pointer{padding-left:var(--ag-spacing)}.ag-menu-column-select-wrapper{height:265px;overflow:auto;:where(.ag-column-select){height:100%}}.ag-menu:where(.ag-tabs){min-width:290px}.ag-context-menu-loading-icon{pointer-events:none;position:absolute}'},3375:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.MenuItemModule=void 0;let E=A(7205),z=A(3360),T=A(7685);p.MenuItemModule={moduleName:"MenuItem",version:E.VERSION,userComponents:{agMenuItem:z.AgMenuItemRenderer},icons:{check:"tick",subMenuOpen:"small-right",subMenuOpenRtl:"small-left"},css:[T.menuCSS]}},3173:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PillDragComp=void 0;let E=A(6624);class z extends E.Component{constructor(b,C,d,s,c){super(),this.dragSourceDropTarget=b,this.ghost=C,this.horizontal=d,this.template=s,this.agComponents=c,this.eText=E.RefPlaceholder,this.eDragHandle=E.RefPlaceholder,this.eButton=E.RefPlaceholder}postConstruct(){var h;this.setTemplate((h=this.template)!=null?h:`
            <span role="option">
              <span data-ref="eDragHandle" class="ag-drag-handle ag-column-drop-cell-drag-handle" role="presentation"></span>
              <span data-ref="eText" class="ag-column-drop-cell-text" aria-hidden="true"></span>
              <span data-ref="eButton" class="ag-column-drop-cell-button" role="presentation"></span>
            </span>`,this.agComponents);let b=this.getGui(),{beans:C,eDragHandle:d,eText:s,eButton:c}=this;this.addElementClasses(b),this.addElementClasses(d,"drag-handle"),this.addElementClasses(s,"text"),this.addElementClasses(c,"button"),d.appendChild((0,E._createIconNoSpan)("columnDrag",C)),c.appendChild((0,E._createIconNoSpan)("cancel",C)),this.tooltipFeature=this.createOptionalManagedBean(C.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.getGui()})),this.setupComponents(),!this.ghost&&this.isDraggable()&&this.addDragSource(),this.setupAria(),this.setupTooltip(),this.activateTabIndex(),this.refreshDraggable()}isDraggable(){return!0}refreshDraggable(){this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!this.isDraggable())}setupAria(){let b=this.getLocaleTextFunc(),C=[this.getAriaDisplayName()];this.addAdditionalAriaInstructions(C,b),(0,E._setAriaLabel)(this.getGui(),C.join(". "))}addAdditionalAriaInstructions(b,C){if(this.isRemovable()){let d=C("ariaDropZoneColumnComponentDescription","Press DELETE to remove");b.push(d)}}setupTooltip(){let b=()=>{var C;return(C=this.tooltipFeature)==null?void 0:C.setTooltipAndRefresh(this.getTooltip())};b(),this.addManagedEventListeners({newColumnsLoaded:b})}getDragSourceId(){}getDefaultIconName(){return"notAllowed"}addDragSource(){let{beans:{dragAndDrop:b},eDragHandle:C}=this,d=this.createGetDragItem(),s=this.getDefaultIconName(),c={type:this.getDragSourceType(),sourceId:this.getDragSourceId(),eElement:C,getDefaultIconName:()=>s,getDragItem:d,dragItemName:this.getDisplayName()};b==null||b.addDragSource(c,!0),this.addDestroyFunc(()=>b==null?void 0:b.removeDragSource(c))}setupComponents(){this.setTextValue(),this.setupRemove(),this.ghost&&this.addCssClass("ag-column-drop-cell-ghost")}isRemovable(){return!0}refreshRemove(){(0,E._setDisplayed)(this.eButton,this.isRemovable())}setupRemove(){this.refreshRemove();let b={type:"columnRemove"};this.addGuiEventListener("keydown",d=>this.onKeyDown(d)),this.addManagedElementListeners(this.eButton,{click:d=>{this.dispatchLocalEvent(b),d.stopPropagation()}});let C=new E.TouchListener(this.eButton);this.addManagedListeners(C,{tap:()=>this.dispatchLocalEvent(b)}),this.addDestroyFunc(C.destroy.bind(C))}onKeyDown(b){b.key===E.KeyCode.DELETE&&this.isRemovable()&&(b.preventDefault(),this.dispatchLocalEvent({type:"columnRemove"}))}getDisplayValue(){return this.getDisplayName()}setTextValue(){let b=this.getDisplayValue(),C=(0,E._escapeString)(b);this.eText.innerHTML=C}addElementClasses(b,C){C=C?`-${C}`:"";let d=this.horizontal?"horizontal":"vertical";b.classList.add(`ag-column-drop-cell${C}`,`ag-column-drop-${d}-cell${C}`)}destroy(){super.destroy(),this.dragSourceDropTarget=null}}p.PillDragComp=z},7496:function(x,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.pillDropZonePanelCSS=void 0,p.pillDropZonePanelCSS=".ag-column-drop{align-items:center;display:inline-flex;overflow:auto;position:relative;width:100%}.ag-column-drop-list{align-items:center;display:flex}.ag-column-drop-cell{align-items:center;background-color:var(--ag-column-drop-cell-background-color);border:var(--ag-column-drop-cell-border);border-radius:500px;color:var(--ag-column-drop-cell-text-color);display:flex;padding:calc(var(--ag-spacing)*.25);position:relative;&:focus-visible{box-shadow:var(--ag-focus-shadow)}:where(.ag-drag-handle){color:var(--ag-column-drop-cell-drag-handle-color)}}:where(.ag-ltr) .ag-column-drop-cell{padding-left:calc(var(--ag-spacing)*.75)}:where(.ag-rtl) .ag-column-drop-cell{padding-right:calc(var(--ag-spacing)*.75)}.ag-column-drop-cell-text{flex:1 1 auto;margin:0 var(--ag-spacing);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-drop-vertical{align-items:stretch;display:flex;flex-direction:column;min-height:75px;overflow:hidden}.ag-column-drop-vertical-title-bar{align-items:center;display:flex;flex:none;padding:var(--ag-widget-container-vertical-padding) calc(var(--ag-spacing)*2) 0}.ag-column-drop-vertical-list{align-items:stretch;flex-direction:column;flex-grow:1;overflow-x:auto;padding-bottom:var(--ag-spacing);padding-left:var(--ag-spacing);padding-right:var(--ag-spacing);position:relative;>*{flex:none}}:where(.ag-column-drop-empty) .ag-column-drop-vertical-list{overflow:hidden}.ag-column-drop-vertical-empty-message{align-items:center;border:1px dashed;border-color:var(--ag-border-color);display:flex;inset:0;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);overflow:hidden;padding:calc(var(--ag-spacing)*2);position:absolute}.ag-column-drop-cell-button{cursor:pointer;min-width:0;opacity:.75;&:hover{opacity:1}}.ag-column-drop-wrapper{display:flex}.ag-column-drop-horizontal-half-width{width:50%!important}.ag-column-drop-cell-ghost{opacity:.5}.ag-column-drop-horizontal{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;white-space:nowrap}:where(.ag-ltr) .ag-column-drop-horizontal{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-column-drop-horizontal{padding-right:var(--ag-cell-horizontal-padding)}.ag-column-drop-horizontal-list{gap:var(--ag-cell-widget-spacing)}.ag-column-drop-vertical-cell{margin-top:var(--ag-spacing)}:where(.ag-ltr) .ag-column-drop-vertical-icon{margin-right:var(--ag-widget-horizontal-spacing)}:where(.ag-rtl) .ag-column-drop-vertical-icon{margin-left:var(--ag-widget-horizontal-spacing)}.ag-select-agg-func-popup{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);height:calc(var(--ag-spacing)*5*3.5);padding:0;position:absolute}.ag-select-agg-func-virtual-list-item{cursor:default;&:hover{background-color:var(--ag-selected-row-background-color)}}:where(.ag-ltr) .ag-select-agg-func-virtual-list-item{padding-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-select-agg-func-virtual-list-item{padding-right:calc(var(--ag-spacing)*2)}:where(.ag-ltr) .ag-column-drop-horizontal-half-width:where(:not(:last-child)){border-right:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-column-drop-horizontal-half-width:where(:not(:last-child)){border-left:1px solid var(--ag-border-color)}"},9733:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PillDropZonePanel=void 0;let E=A(6624),z=A(7496);function T(C,d,s){C==null||d==null||C.splice(s,0,...d)}class b extends E.Component{constructor(d){super('<div class="ag-unselectable" role="presentation"></div>'),this.horizontal=d,this.state="notDragging",this.guiDestroyFunctions=[],this.childPillComponents=[],this.resizeEnabled=!1,this.addElementClasses(this.getGui()),this.ePillDropList=document.createElement("div"),this.addElementClasses(this.ePillDropList,"list"),(0,E._setAriaRole)(this.ePillDropList,"listbox"),this.registerCSS(z.pillDropZonePanelCSS)}toggleResizable(d){this.positionableFeature.setResizable(d?{bottom:!0}:!1),this.resizeEnabled=d}isSourceEventFromTarget(d){let{dropZoneTarget:s,dragSource:c}=d;return s.contains(c.eElement)}destroy(){this.destroyGui(),super.destroy()}destroyGui(){this.guiDestroyFunctions.forEach(d=>d()),this.guiDestroyFunctions.length=0,this.childPillComponents.length=0,(0,E._clearElement)(this.getGui()),(0,E._clearElement)(this.ePillDropList)}init(d){this.params=d!=null?d:{},this.createManagedBean(new E.ManagedFocusFeature(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.onKeyDown.bind(this)})),this.setupDropTarget(),this.positionableFeature=new E.PositionableFeature(this.getGui()),this.createManagedBean(this.positionableFeature),this.refreshGui(),(0,E._setAriaLabel)(this.ePillDropList,this.getAriaLabel())}onTabKeyDown(d){let s=(0,E._findFocusableElements)(this.getFocusableElement(),null,!0),c=s.length;if(c===0)return;let{shiftKey:h}=d,g=(0,E._getActiveDomElement)(this.beans),f=g===s[0],S=g===(0,E._last)(s);c===1||f&&h||S&&!h||s[h?0:c-1].focus()}onKeyDown(d){let{key:s}=d,c=!this.horizontal,h=s===E.KeyCode.DOWN,g=s===E.KeyCode.UP;if(!c){let S=this.gos.get("enableRtl");h=!S&&s===E.KeyCode.RIGHT||S&&s===E.KeyCode.LEFT,g=!S&&s===E.KeyCode.LEFT||S&&s===E.KeyCode.RIGHT}if(!h&&!g)return;let f=(0,E._findNextFocusableElement)(this.beans,this.getFocusableElement(),!1,g);f&&(d.preventDefault(),f.focus())}addElementClasses(d,s){s=s?`-${s}`:"";let c=this.horizontal?"horizontal":"vertical";d.classList.add(`ag-column-drop${s}`,`ag-column-drop-${c}${s}`)}setupDropTarget(){var d;this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),onDragCancel:this.onDragCancel.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},(d=this.beans.dragAndDrop)==null||d.addDropTarget(this.dropTarget)}minimumAllowedNewInsertIndex(){return 0}checkInsertIndex(d){let s=this.getNewInsertIndex(d);if(s<0)return!1;let c=this.minimumAllowedNewInsertIndex(),h=Math.max(c,s),g=h!==this.insertIndex;return g&&(this.insertIndex=h),g}getNewInsertIndex(d){let s=d.event,c=this.horizontal?s.clientX:s.clientY,h=this.childPillComponents.map(f=>f.getGui().getBoundingClientRect()),g=h.findIndex(f=>this.horizontal?f.right>c&&f.left<c:f.top<c&&f.bottom>c);if(g===-1){let f=this.gos.get("enableRtl");return h.every(M=>c>(this.horizontal?M.right:M.bottom))?f&&this.horizontal?0:this.childPillComponents.length:h.every(M=>c<(this.horizontal?M.left:M.top))?f&&this.horizontal?this.childPillComponents.length:0:this.insertIndex}return this.insertIndex<=g?g+1:g}checkDragStartedBySelf(d){this.state==="notDragging"&&(this.state="rearrangeItems",this.potentialDndItems=this.getItems(d.dragSource.getDragItem()),this.refreshGui(),this.checkInsertIndex(d),this.refreshGui())}onDragging(d){this.checkDragStartedBySelf(d),this.checkInsertIndex(d)&&this.refreshGui()}handleDragEnterEnd(d){}onDragEnter(d){let s=this.getItems(d.dragSource.getDragItem());this.state="newItemsIn";let c=s.filter(g=>this.isItemDroppable(g,d)),h=c.every(g=>this.childPillComponents.map(f=>f.getItem()).indexOf(g)!==-1);if(c.length!==0){if(this.potentialDndItems=c,h){this.state="notDragging";return}this.handleDragEnterEnd(d),this.checkInsertIndex(d),this.refreshGui()}}isPotentialDndItems(){var d;return!!((d=this.potentialDndItems)!=null&&d.length)}handleDragLeaveEnd(d){}onDragLeave(d){if(this.state==="rearrangeItems"){let s=this.getItems(d.dragSource.getDragItem());this.removeItems(s)}this.isPotentialDndItems()&&(this.handleDragLeaveEnd(d),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}onDragCancel(d){this.isPotentialDndItems()&&(this.state==="newItemsIn"&&this.handleDragLeaveEnd(d),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}onDragStop(){this.isPotentialDndItems()&&(this.state==="newItemsIn"?this.addItems(this.potentialDndItems):this.rearrangeItems(this.potentialDndItems),this.potentialDndItems=[],this.refreshGui()),this.state="notDragging"}removeItems(d){let s=this.getExistingItems().filter(c=>!d.includes(c));this.updateItems(s)}addItems(d){if(!d)return;let s=this.getExistingItems().slice(),c=d.filter(h=>s.indexOf(h)<0);T(s,c,this.insertIndex),this.updateItems(s)}addItem(d){this.insertIndex=this.getExistingItems().length,this.addItems([d]),this.refreshGui()}rearrangeItems(d){let s=this.getNonGhostItems().slice();return T(s,d,this.insertIndex),(0,E._areEqual)(s,this.getExistingItems())?!1:(this.updateItems(s),!0)}refreshGui(){let d=this.ePillDropList.scrollTop,s=this.resizeEnabled,c=this.getFocusedItem(),{eGridDiv:h}=this.beans,g=(0,E._findNextFocusableElement)(this.beans,h);g||(g=(0,E._findNextFocusableElement)(this.beans,h,!1,!0)),this.toggleResizable(!1),this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addItemsToGui(),this.horizontal||(this.ePillDropList.scrollTop=d),s&&this.toggleResizable(s),(0,E._isKeyboardMode)()&&this.restoreFocus(c,g)}getFocusedItem(){let d=this.getGui(),s=(0,E._getActiveDomElement)(this.beans);return d.contains(s)?Array.from(d.querySelectorAll(".ag-column-drop-cell")).indexOf(s):-1}restoreFocus(d,s){let c=this.getGui(),h=Array.from(c.querySelectorAll(".ag-column-drop-cell"));if(d===-1)return;h.length===0&&s.focus();let g=Math.min(h.length-1,d),f=h[g];f&&f.focus()}focusList(d){let s=d?this.childPillComponents.length-1:0;this.restoreFocus(s,this.getFocusableElement())}getNonGhostItems(){let d=this.getExistingItems();return this.isPotentialDndItems()?d.filter(s=>!this.potentialDndItems.includes(s)):d}addItemsToGui(){let s=this.getNonGhostItems().map(c=>this.createItemComponent(c,!1));if(this.isPotentialDndItems()){let c=this.potentialDndItems.map(h=>this.createItemComponent(h,!0));this.insertIndex>=s.length?s.push(...c):s.splice(this.insertIndex,0,...c)}this.appendChild(this.ePillDropList),s.forEach((c,h)=>{h>0&&this.addArrow(this.ePillDropList),this.ePillDropList.appendChild(c.getGui())}),this.addAriaLabelsToComponents()}addAriaLabelsToComponents(){this.childPillComponents.forEach((d,s)=>{let c=d.getGui();(0,E._setAriaPosInSet)(c,s+1),(0,E._setAriaSetSize)(c,this.childPillComponents.length)})}createItemComponent(d,s){let c=this.createPillComponent(d,this.dropTarget,s,this.horizontal);return c.addEventListener("columnRemove",this.removeItems.bind(this,[d])),this.createBean(c),this.guiDestroyFunctions.push(()=>this.destroyBean(c)),s||this.childPillComponents.push(c),c}addIconAndTitleToGui(){let{title:d,icon:s}=this.params;if(!d||!s)return;let c=document.createElement("div");if((0,E._setAriaHidden)(c,!0),this.addElementClasses(c,"title-bar"),this.addElementClasses(s,"icon"),this.addOrRemoveCssClass("ag-column-drop-empty",this.isExistingItemsEmpty()),c.appendChild(s),!this.horizontal){let h=document.createElement("span");this.addElementClasses(h,"title"),h.innerHTML=d,c.appendChild(h)}this.appendChild(c)}isExistingItemsEmpty(){return this.getExistingItems().length===0}addEmptyMessageToGui(){let{emptyMessage:d}=this.params;if(!d||!this.isExistingItemsEmpty()||this.isPotentialDndItems())return;let s=document.createElement("span");s.innerHTML=d,this.addElementClasses(s,"empty-message"),this.ePillDropList.appendChild(s)}addArrow(d){if(this.horizontal){let s=this.gos.get("enableRtl"),c=(0,E._createIconNoSpan)(s?"panelDelimiterRtl":"panelDelimiter",this.beans);this.addElementClasses(c,"cell-separator"),d.appendChild(c)}}}p.PillDropZonePanel=b},5875:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.TabbedLayout=void 0;let E=A(6624),z=A(6242);function T(C){return`<div class="ag-tabs ${C}">
        <div data-ref="eHeader"></div>
        <div data-ref="eBody" role="presentation" class="ag-tabs-body ${C?`${C}-body`:""}"></div>
    </div>`}class b extends E.TabGuardComp{constructor(d){super(T(d.cssClass)),this.eHeader=E.RefPlaceholder,this.eBody=E.RefPlaceholder,this.items=[],this.tabbedItemScrollMap=new Map,this.params=d}postConstruct(){this.setupHeader(),this.params.items&&this.params.items.forEach(d=>this.addItem(d)),this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),focusInnerElement:this.focusInnerElement.bind(this),focusTrapActive:!0}),this.addDestroyFunc(()=>{var d,s,c;return(c=(s=(d=this.activeItem)==null?void 0:d.tabbedItem)==null?void 0:s.afterDetachedCallback)==null?void 0:c.call(s)})}setupHeader(){let{enableCloseButton:d,cssClass:s}=this.params,c=(h,g)=>{h.classList.add(`ag-tabs-${g}`),s&&h.classList.add(`${s}-${g}`)};d?(this.setupCloseButton(c),this.eTabHeader=(0,E._getDocument)(this.beans).createElement("div"),c(this.eHeader,"header-wrapper"),(0,E._setAriaRole)(this.eHeader,"presentation"),this.eHeader.appendChild(this.eTabHeader)):this.eTabHeader=this.eHeader,(0,E._setAriaRole)(this.eTabHeader,"tablist"),c(this.eTabHeader,"header")}setupCloseButton(d){let s=(0,E._getDocument)(this.beans),c=s.createElement("button");d(c,"close-button");let h=(0,E._createIconNoSpan)("close",this.beans);(0,E._setAriaLabel)(c,this.params.closeButtonAriaLabel),c.appendChild(h),this.addManagedElementListeners(c,{click:()=>{var f,S;return(S=(f=this.params).onCloseClicked)==null?void 0:S.call(f)}});let g=s.createElement("div");d(g,"close-button-wrapper"),(0,E._setAriaRole)(g,"presentation"),g.appendChild(c),this.eHeader.appendChild(g),this.eCloseButton=c}handleKeyDown(d){switch(d.key){case E.KeyCode.RIGHT:case E.KeyCode.LEFT:{if(!this.eTabHeader.contains((0,E._getActiveDomElement)(this.beans)))return;let s=d.key===E.KeyCode.RIGHT,c=this.gos.get("enableRtl"),h=this.items.indexOf(this.activeItem),g=s!==c?Math.min(h+1,this.items.length-1):Math.max(h-1,0);if(h===g)return;d.preventDefault();let f=this.items[g];this.showItemWrapper(f),f.eHeaderButton.focus();break}case E.KeyCode.UP:case E.KeyCode.DOWN:d.stopPropagation();break}}onTabKeyDown(d){var j,Y,J,ne;if(d.defaultPrevented)return;let{beans:s,eHeader:c,eBody:h,activeItem:g,params:f}=this,{suppressTrapFocus:S,enableCloseButton:w}=f,M=(0,E._getActiveDomElement)(s),P=d.target,O=d.shiftKey;if(c.contains(M)){d.preventDefault(),w&&O&&!((j=this.eCloseButton)!=null&&j.contains(M))?(Y=this.eCloseButton)==null||Y.focus():S&&O?(J=(0,z.findFocusableElementBeforeTabGuard)((0,E._getDocument)(s).body,P))==null||J.focus():this.focusBody(d.shiftKey);return}let G=null;if((0,z.isTargetUnderManagedComponent)(h,P)&&(O&&(G=(0,z.findFocusableElementBeforeTabGuard)(h,P)),!G&&!S&&(G=g.eHeaderButton)),!G&&h.contains(M)&&(G=(0,E._findNextFocusableElement)(s,h,!1,O),!G)){S&&!O?this.forceFocusOutOfContainer(O):w&&!O?(d.preventDefault(),(ne=this.eCloseButton)==null||ne.focus()):(d.preventDefault(),this.focusHeader());return}G&&(d.preventDefault(),G.focus())}focusInnerElement(d){d?this.focusBody(!0):this.focusHeader()}focusHeader(d){this.activeItem.eHeaderButton.focus({preventScroll:d})}focusBody(d){(0,E._focusInto)(this.eBody,d)}setAfterAttachedParams(d){this.afterAttachedParams=d}showFirstItem(){this.items.length>0&&this.showItemWrapper(this.items[0])}addItem(d){let s=document.createElement("span");(0,E._setAriaRole)(s,"tab"),s.setAttribute("tabindex","-1"),s.appendChild(d.title),s.classList.add("ag-tab"),this.eTabHeader.appendChild(s),(0,E._setAriaLabel)(s,d.titleLabel);let c={tabbedItem:d,eHeaderButton:s};this.items.push(c),s.addEventListener("click",this.showItemWrapper.bind(this,c))}showItem(d){let s=this.items.find(c=>c.tabbedItem===d);s&&this.showItemWrapper(s)}showItemWrapper(d){var h,g,f,S,w,M;let{tabbedItem:s,eHeaderButton:c}=d;if((g=(h=this.params).onItemClicked)==null||g.call(h,{item:s}),this.activeItem===d){(S=(f=this.params).onActiveItemClicked)==null||S.call(f);return}this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),(0,E._clearElement)(this.eBody),s.bodyPromise.then(P=>{this.eBody.appendChild(P);let O=!(0,E._isKeyboardMode)();if(this.params.suppressFocusBodyOnOpen||(0,E._focusInto)(this.eBody,!1,O),s.afterAttachedCallback&&s.afterAttachedCallback(this.afterAttachedParams),this.params.keepScrollPosition){let G=s.getScrollableContainer&&s.getScrollableContainer()||P;[this.lastScrollListener]=this.addManagedElementListeners(G,{scroll:()=>{this.tabbedItemScrollMap.set(s.name,G.scrollTop)}});let j=this.tabbedItemScrollMap.get(s.name);j!==void 0&&setTimeout(()=>{G.scrollTop=j},0)}}),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),(M=(w=this.activeItem.tabbedItem).afterDetachedCallback)==null||M.call(w)),c.classList.add("ag-tab-selected"),this.activeItem=d}}p.TabbedLayout=b},7904:function(x,p,A){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.VirtualList=void 0;let E=A(6624);function z(b){return`<div class="ag-virtual-list-viewport ag-${b}-virtual-list-viewport" role="presentation">
            <div class="ag-virtual-list-container ag-${b}-virtual-list-container" data-ref="eContainer"></div>
        </div>`}class T extends E.TabGuardComp{wireBeans(C){this.environment=C.environment}constructor(C){super(z((C==null?void 0:C.cssIdentifier)||"default")),this.renderedRows=new Map,this.rowHeight=20,this.pageSize=-1,this.isScrolling=!1,this.isHeightFromTheme=!0,this.eContainer=E.RefPlaceholder,this.awaitStableCallbacks=[];let{cssIdentifier:d="default",ariaRole:s="listbox",listName:c}=C||{};this.cssIdentifier=d,this.ariaRole=s,this.listName=c}postConstruct(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:C=>this.onFocusIn(C),onFocusOut:C=>this.onFocusOut(C),focusInnerElement:C=>this.focusInnerElement(C),onTabKeyDown:C=>this.onTabKeyDown(C),handleKeyDown:C=>this.handleKeyDown(C)}),this.setAriaProperties(),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanged.bind(this)})}onGridStylesChanged(C){C.listItemHeightChanged&&(this.rowHeight=this.getItemHeight(),this.refresh())}setAriaProperties(){let d=this.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),s=this.eContainer;(0,E._setAriaRole)(s,this.ariaRole),(0,E._setAriaLabel)(s,d)}addResizeObserver(){let C=()=>(0,E._requestAnimationFrame)(this.beans,()=>this.drawVirtualRows()),d=(0,E._observeResize)(this.beans,this.getGui(),C);this.addDestroyFunc(d)}focusInnerElement(C){this.focusRow(C?this.model.getRowCount()-1:0)}onFocusIn(C){let d=C.target;d.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=(0,E._getAriaPosInSet)(d)-1)}onFocusOut(C){this.getFocusableElement().contains(C.relatedTarget)||(this.lastFocusedRowIndex=null)}handleKeyDown(C){switch(C.key){case E.KeyCode.UP:case E.KeyCode.DOWN:C.preventDefault(),this.navigate(C.key===E.KeyCode.UP);break;case E.KeyCode.PAGE_HOME:case E.KeyCode.PAGE_END:case E.KeyCode.PAGE_UP:case E.KeyCode.PAGE_DOWN:this.navigateToPage(C.key)!==null&&C.preventDefault();break}}onTabKeyDown(C){(0,E._stopPropagationForAgGrid)(C),this.forceFocusOutOfContainer(C.shiftKey)}navigate(C){if(this.lastFocusedRowIndex==null)return;let d=this.lastFocusedRowIndex+(C?-1:1);d<0||d>=this.model.getRowCount()||this.focusRow(d)}navigateToPage(C,d="focused"){let s=!1;d==="focused"&&(d=this.getLastFocusedRow(),s=!0);let c=this.model.getRowCount()-1,h=-1;return C===E.KeyCode.PAGE_HOME?h=0:C===E.KeyCode.PAGE_END?h=c:C===E.KeyCode.PAGE_DOWN?h=Math.min(d+this.pageSize,c):C===E.KeyCode.PAGE_UP&&(h=Math.max(d-this.pageSize,0)),h===-1?null:(s?this.focusRow(h):this.ensureIndexVisible(h),h)}getLastFocusedRow(){return this.lastFocusedRowIndex}focusRow(C){this.isScrolling||(this.isScrolling=!0,this.ensureIndexVisible(C),(0,E._requestAnimationFrame)(this.beans,()=>{if(this.isScrolling=!1,!this.isAlive())return;let d=this.renderedRows.get(C);d&&d.eDiv.focus()}))}getComponentAt(C){let d=this.renderedRows.get(C);return d&&d.rowComponent}forEachRenderedRow(C){this.renderedRows.forEach((d,s)=>C(d.rowComponent,s))}getItemHeight(){return this.isHeightFromTheme?this.environment.getDefaultListItemHeight():this.rowHeight}ensureIndexVisible(C,d=!0){let s=this.model.getRowCount();if(typeof C!="number"||C<0||C>=s)return(0,E._warn)(229,{index:C}),!1;let c=C*this.rowHeight,h=c+this.rowHeight,g=this.getGui(),f=g.scrollTop,S=g.offsetHeight,w=f+S,M=d?0:this.rowHeight,P=f>c+M,O=w<h-M;if(P)return g.scrollTop=c,!0;if(O){let G=h-S;return g.scrollTop=G,!0}return!1}setComponentCreator(C){this.componentCreator=C}setComponentUpdater(C){this.componentUpdater=C}getRowHeight(){return this.rowHeight}getScrollTop(){return this.getGui().scrollTop}setRowHeight(C){this.isHeightFromTheme=!1,this.rowHeight=C,this.refresh()}refresh(C){if(this.model==null||!this.isAlive())return;let d=this.model.getRowCount();this.eContainer.style.height=`${d*this.rowHeight}px`,this.awaitStable(()=>{this.isAlive()&&(this.canSoftRefresh(C)?this.drawVirtualRows(!0):(this.clearVirtualRows(),this.drawVirtualRows()))})}awaitStable(C){if(this.awaitStableCallbacks.push(C),this.awaitStableCallbacks.length>1)return;let d=this.model.getRowCount();(0,E._waitUntil)(()=>this.eContainer.clientHeight>=d*this.rowHeight,()=>{if(!this.isAlive())return;let s=this.awaitStableCallbacks;this.awaitStableCallbacks=[],s.forEach(c=>c())})}canSoftRefresh(C){return!!(C&&this.renderedRows.size&&typeof this.model.areRowsEqual=="function"&&this.componentUpdater)}clearVirtualRows(){this.renderedRows.forEach((C,d)=>this.removeRow(d))}drawVirtualRows(C){if(!this.isAlive()||!this.model)return;let d=this.getGui(),s=d.scrollTop,c=s+d.offsetHeight,h=Math.floor(s/this.rowHeight),g=Math.floor(c/this.rowHeight);this.pageSize=Math.floor((c-s)/this.rowHeight),this.ensureRowsRendered(h,g,C)}ensureRowsRendered(C,d,s){this.renderedRows.forEach((c,h)=>{(h<C||h>d)&&h!==this.lastFocusedRowIndex&&this.removeRow(h)}),s&&this.refreshRows();for(let c=C;c<=d;c++)this.renderedRows.has(c)||c<this.model.getRowCount()&&this.insertRow(c)}insertRow(C){let d=this.model.getRow(C),s=document.createElement("div");s.classList.add("ag-virtual-list-item",`ag-${this.cssIdentifier}-virtual-list-item`),(0,E._setAriaRole)(s,this.ariaRole==="tree"?"treeitem":"option"),(0,E._setAriaSetSize)(s,this.model.getRowCount()),(0,E._setAriaPosInSet)(s,C+1),s.setAttribute("tabindex","-1"),s.style.height=`${this.rowHeight}px`,s.style.top=`${this.rowHeight*C}px`;let c=this.componentCreator(d,s);c.addGuiEventListener("focusin",()=>this.lastFocusedRowIndex=C),s.appendChild(c.getGui()),this.renderedRows.has(C-1)?this.renderedRows.get(C-1).eDiv.insertAdjacentElement("afterend",s):this.renderedRows.has(C+1)?this.renderedRows.get(C+1).eDiv.insertAdjacentElement("beforebegin",s):this.eContainer.appendChild(s),this.renderedRows.set(C,{rowComponent:c,eDiv:s,value:d})}removeRow(C){let d=this.renderedRows.get(C);this.eContainer.removeChild(d.eDiv),this.destroyBean(d.rowComponent),this.renderedRows.delete(C)}refreshRows(){let C=this.model.getRowCount();this.renderedRows.forEach((d,s)=>{var c,h;if(s>=C)this.removeRow(s);else{let g=this.model.getRow(s);(h=(c=this.model).areRowsEqual)!=null&&h.call(c,d.value,g)?this.componentUpdater(g,d.rowComponent):this.removeRow(s)}})}addScrollListener(){this.addGuiEventListener("scroll",()=>this.drawVirtualRows(),{passive:!0})}setModel(C){this.model=C}getAriaElement(){return this.eContainer}destroy(){this.isAlive()&&(this.clearVirtualRows(),this.awaitStableCallbacks.length=0,super.destroy())}}p.VirtualList=T},6624:function(x){var eR,Lk;var p=Object.defineProperty,A=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,z=Object.prototype.hasOwnProperty,T=(i,o)=>{for(var v in o)p(i,v,{get:o[v],enumerable:!0})},b=(i,o,v,I)=>{if(o&&typeof o=="object"||typeof o=="function")for(let N of E(o))!z.call(i,N)&&N!==v&&p(i,N,{get:()=>o[N],enumerable:!(I=A(o,N))||I.enumerable});return i},C=i=>b(p({},"__esModule",{value:!0}),i),d={};T(d,{ALWAYS_SYNC_GLOBAL_EVENTS:()=>wd,AbstractClientSideNodeManager:()=>rp,AgAbstractInputField:()=>_c,AgAbstractLabel:()=>FI,AgCheckbox:()=>rb,AgCheckboxSelector:()=>Na,AgColumn:()=>Ns,AgColumnGroup:()=>XA,AgInputDateField:()=>zI,AgInputNumberField:()=>dv,AgInputNumberFieldSelector:()=>xl,AgInputTextArea:()=>sp,AgInputTextField:()=>fd,AgInputTextFieldSelector:()=>Tm,AgPickerField:()=>dD,AgPromise:()=>ds,AgProvidedColumnGroup:()=>Jl,AgRadioButton:()=>Lx,AgSelect:()=>Fx,AgSelectSelector:()=>$h,AgToggleButton:()=>ou,AgToggleButtonSelector:()=>cv,AlignedGridsModule:()=>C1,AllCommunityModule:()=>Qb,AutoScrollService:()=>xm,BaseColsService:()=>jn,BaseComponentWrapper:()=>uS,BaseCreator:()=>Pv,BaseGridSerializingSession:()=>Lb,BaseSelectionService:()=>sb,BeanStub:()=>jt,CellApiModule:()=>IM,CellRangeType:()=>S0,CellStyleModule:()=>$b,ChangedPath:()=>xd,CheckboxEditorModule:()=>ik,ClientSideRowModelApiModule:()=>fu,ClientSideRowModelModule:()=>mk,ColumnApiModule:()=>mh,ColumnAutoSizeModule:()=>ZT,ColumnHoverModule:()=>Pk,ColumnKeyCreator:()=>ZC,Component:()=>cn,CssClassManager:()=>Hh,CsvExportModule:()=>M1,CustomEditorModule:()=>ak,CustomFilterModule:()=>ZM,DateEditorModule:()=>tk,DateFilterModule:()=>u1,DragAndDropModule:()=>cb,DragSourceType:()=>wm,EventApiModule:()=>_p,ExternalFilterModule:()=>IT,FakeHScrollComp:()=>Ix,FakeVScrollComp:()=>Wi,FilterWrapperComp:()=>km,GROUP_AUTO_COLUMN_ID:()=>Zd,GridBodyCtrl:()=>Ex,GridCoreCreator:()=>JD,GridCtrl:()=>Bx,GridHeaderCtrl:()=>au,GridStateModule:()=>wk,GroupInstanceIdCreator:()=>jr,HeaderRowContainerCtrl:()=>pr,HighlightChangesModule:()=>Sk,InfiniteRowModelModule:()=>mf,KeyCode:()=>Bt,LargeTextEditorModule:()=>nk,LocalEventService:()=>s,LocaleModule:()=>KS,LocaleService:()=>PM,ManagedFocusFeature:()=>dh,ModuleRegistry:()=>dn,NumberEditorModule:()=>Ll,NumberFilterModule:()=>Dp,PaginationModule:()=>Id,PinnedRowModule:()=>Ik,PopupComponent:()=>hv,PositionableFeature:()=>$A,ProvidedFilter:()=>Mx,QuickFilterModule:()=>ET,RefPlaceholder:()=>fi,RenderApiModule:()=>Fp,RowApiModule:()=>yu,RowAutoHeightModule:()=>Cf,RowContainerCtrl:()=>Yh,RowDragModule:()=>D0,RowNode:()=>So,RowSelectionModule:()=>Sg,RowStyleModule:()=>WS,ScrollApiModule:()=>Lp,SelectEditorModule:()=>Wb,ServerSideTransactionResultStatus:()=>wl,TabGuardClassNames:()=>_x,TabGuardComp:()=>Nx,TabGuardCtrl:()=>uv,TabGuardFeature:()=>uD,TextEditorModule:()=>br,TextFilterModule:()=>SS,TooltipFeature:()=>ru,TooltipModule:()=>O1,TouchListener:()=>fs,UndoRedoEditModule:()=>qi,ValidationModule:()=>pS,ValueCacheModule:()=>XD,VanillaFrameworkOverrides:()=>w0,_ALL_EVENTS:()=>RM,_ALL_GRID_OPTIONS:()=>OM,_BOOLEAN_MIXED_GRID_OPTIONS:()=>dg,_ColumnFilterModule:()=>Rl,_ColumnGroupModule:()=>N0,_ColumnMoveModule:()=>qI,_CsrmSsrmSharedApiModule:()=>b1,_DragModule:()=>vD,_EditCoreModule:()=>mu,_EmptyArray:()=>ra,_EmptyBean:()=>ih,_FOCUS_MANAGED_CLASS:()=>QA,_FilterCoreModule:()=>pu,_FilterValueModule:()=>Go,_HorizontalResizeModule:()=>fv,_KeyboardNavigationModule:()=>VD,_PUBLIC_EVENTS:()=>e1,_PopupModule:()=>gg,_ROW_ID_PREFIX_ROW_GROUP:()=>Yy,_SharedDragAndDropModule:()=>db,_SharedExportModule:()=>pf,_SharedMenuModule:()=>Yr,_SharedRowSelectionModule:()=>v1,_SortModule:()=>DM,_SsrmInfiniteSharedApiModule:()=>ES,_addColumnDefaultAndTypes:()=>Zf,_addFocusableContainerListener:()=>Bn,_anchorElementToMouseMoveEvent:()=>um,_applyColumnState:()=>Ic,_areCellsEqual:()=>Ai,_areColIdsEqual:()=>on,_areEqual:()=>Gh,_asThemeImpl:()=>Gc,_bindCellRendererToHtmlElement:()=>Nh,_canSkipShowingRowGroup:()=>Kf,_clearElement:()=>Jn,_columnsMatch:()=>No,_combineAttributesAndGridOptions:()=>ja,_convertColumnEventSourceType:()=>Bs,_createCellId:()=>qy,_createColumnTree:()=>cs,_createGlobalRowEvent:()=>Xy,_createIcon:()=>Fc,_createIconNoSpan:()=>ma,_debounce:()=>dr,_defaultComparator:()=>$w,_destroyColumnTree:()=>fm,_doOnce:()=>ky,_downloadFile:()=>n1,_errMsg:()=>Po,_error:()=>aa,_escapeString:()=>yl,_exists:()=>mi,_findFocusableElements:()=>Kh,_findNextFocusableElement:()=>ni,_findTabbableParent:()=>Cn,_focusGridInnerElement:()=>Ar,_focusInto:()=>Jd,_focusNextGridCoreContainer:()=>Wr,_formatNumberCommas:()=>Qm,_fuzzySuggestions:()=>jc,_getAbsoluteHeight:()=>La,_getAbsoluteWidth:()=>Oh,_getActiveDomElement:()=>ga,_getAriaPosInSet:()=>O,_getCallbackForEvent:()=>Hi,_getCellByPosition:()=>io,_getCellCtrlForEventTarget:()=>Uy,_getCellPositionForEvent:()=>Ur,_getCellRendererDetails:()=>Gy,_getCheckboxLocation:()=>xa,_getCheckboxes:()=>Ec,_getClientSideRowModel:()=>Md,_getColumnsFromTree:()=>Xf,_getDefaultFloatingFilterType:()=>eD,_getDocument:()=>eo,_getEditorRendererDetails:()=>WA,_getFillHandle:()=>qC,_getFilterDetails:()=>$d,_getFloatingFilterCompDetails:()=>fx,_getFloatingFiltersHeight:()=>Hn,_getGlobalGridOption:()=>ws,_getGrandTotalRow:()=>AP,_getGridRegisteredModules:()=>Nn,_getGroupAggFiltering:()=>hm,_getGroupSelection:()=>Xu,_getGroupSelectsDescendants:()=>Ry,_getGroupTotalRowCallback:()=>DP,_getHeaderCheckbox:()=>pl,_getHeaderClassesFromColDef:()=>ka,_getHeaderRowCount:()=>v0,_getInnerCellRendererDetails:()=>hx,_getInnerHeight:()=>Sa,_getInnerWidth:()=>cr,_getIsRowSelectable:()=>Qg,_getLocaleTextFunc:()=>h,_getMaxConcurrentDatasourceRequests:()=>nx,_getNormalisedMousePosition:()=>r0,_getPageBody:()=>Ty,_getRootNode:()=>Wf,_getRowContainerOptions:()=>sv,_getRowHeightAsNumber:()=>Yu,_getRowHeightForNode:()=>qu,_getRowIdCallback:()=>Uf,_getRowNode:()=>nv,_getRowSelectionMode:()=>vo,_getServerSideRowModel:()=>cS,_getShouldDisplayTooltip:()=>Lo,_getSuppressMultiRanges:()=>ax,_getToolPanelClassesFromColDef:()=>a0,_isAnimateRows:()=>vn,_isCellSelectionEnabled:()=>Jo,_isClientSideRowModel:()=>so,_isColumnMenuAnchoringEnabled:()=>ml,_isColumnsSortingCoupledToGroup:()=>_s,_isDomLayout:()=>lo,_isElementInEventPath:()=>yn,_isEventFromPrintableCharacter:()=>Ws,_isGetRowHeightFunction:()=>rs,_isGroupMultiAutoColumn:()=>gI,_isGroupRowsSticky:()=>Mi,_isGroupUseEntireRow:()=>ix,_isIOSUserAgent:()=>na,_isKeyboardMode:()=>ei,_isLegacyMenuEnabled:()=>jo,_isMultiRowSelection:()=>pm,_isNodeOrElement:()=>_h,_isNothingFocused:()=>ki,_isPromise:()=>fl,_isRowBefore:()=>s0,_isRowSelection:()=>Ql,_isSameRow:()=>Tn,_isServerSideRowModel:()=>Dc,_isShowTooltipWhenTruncated:()=>Ir,_isStopPropagationForAgGrid:()=>Ri,_isUsingNewCellSelectionAPI:()=>KC,_isUsingNewRowSelectionAPI:()=>UC,_isVisible:()=>wa,_jsonEquals:()=>lm,_last:()=>Yn,_loadTemplate:()=>as,_makeNull:()=>kc,_mergeDeep:()=>yo,_missing:()=>Oa,_observeResize:()=>Xl,_parseDateTimeFromString:()=>Ml,_preInitErrMsg:()=>$l,_processOnChange:()=>Xd,_radioCssClass:()=>Qi,_removeAriaExpanded:()=>it,_removeAriaSort:()=>ct,_removeFromArray:()=>bo,_removeFromParent:()=>xc,_requestAnimationFrame:()=>tp,_resetColumnState:()=>Jg,_serialiseDate:()=>Er,_setAriaActiveDescendant:()=>Fe,_setAriaChecked:()=>bt,_setAriaColCount:()=>Ke,_setAriaColIndex:()=>Ye,_setAriaColSpan:()=>Ze,_setAriaControls:()=>Pt,_setAriaDescribedBy:()=>J,_setAriaDisabled:()=>Le,_setAriaExpanded:()=>We,_setAriaHidden:()=>_e,_setAriaLabel:()=>j,_setAriaLabelledBy:()=>Y,_setAriaLevel:()=>xe,_setAriaPosInSet:()=>ot,_setAriaRole:()=>M,_setAriaRowCount:()=>St,_setAriaRowIndex:()=>Xe,_setAriaSelected:()=>dt,_setAriaSetSize:()=>tt,_setAriaSort:()=>Pe,_setColMenuVisible:()=>Dr,_setDisabled:()=>Ps,_setDisplayed:()=>Vn,_setFixedWidth:()=>Mc,_setVisible:()=>qd,_shouldDisplayTooltip:()=>Pm,_shouldUpdateColVisibilityAfterGroup:()=>OA,_stopPropagationForAgGrid:()=>ur,_toStringOrNull:()=>zh,_unwrapUserComp:()=>oh,_updateColsMap:()=>xr,_updateColumnState:()=>sx,_waitUntil:()=>os,_warn:()=>ii,_warnOnce:()=>Ac,checkboxStyleDefault:()=>bb,colorSchemeDark:()=>sT,colorSchemeDarkBlue:()=>og,colorSchemeDarkWarm:()=>dM,colorSchemeLight:()=>cM,colorSchemeLightCold:()=>Sb,colorSchemeLightWarm:()=>Cb,colorSchemeVariable:()=>Dv,createGrid:()=>fL,createPart:()=>ao,createTheme:()=>yb,iconOverrides:()=>hM,iconSetAlpine:()=>mp,iconSetMaterial:()=>lL,iconSetQuartz:()=>sg,iconSetQuartzBold:()=>Ev,iconSetQuartzLight:()=>mM,iconSetQuartzRegular:()=>FD,inputStyleBase:()=>_D,inputStyleBordered:()=>X0,inputStyleUnderlined:()=>ND,isColumn:()=>In,isColumnGroup:()=>no,isColumnGroupAutoCol:()=>Co,isColumnSelectionCol:()=>ec,isProvidedColumnGroup:()=>ls,provideGlobalGridOptions:()=>Zm,tabStyleAlpine:()=>Vm,tabStyleBase:()=>zD,tabStyleMaterial:()=>Gm,tabStyleQuartz:()=>du,tabStyleRolodex:()=>yh,themeAlpine:()=>$0,themeBalham:()=>fp,themeQuartz:()=>uu}),x.exports=C(d);var s=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(i){this.frameworkOverrides=i}getListeners(i,o,v){let I=o?this.allAsyncListeners:this.allSyncListeners,N=I.get(i);return!N&&v&&(N=new Set,I.set(i,N)),N}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(i,o,v=!1){this.getListeners(i,v,!0).add(o)}removeEventListener(i,o,v=!1){let I=this.getListeners(i,v,!1);I&&(I.delete(o),I.size===0&&(v?this.allAsyncListeners:this.allSyncListeners).delete(i))}addGlobalListener(i,o=!1){(o?this.globalAsyncListeners:this.globalSyncListeners).add(i)}removeGlobalListener(i,o=!1){(o?this.globalAsyncListeners:this.globalSyncListeners).delete(i)}dispatchEvent(i){let o=i;this.dispatchToListeners(o,!0),this.dispatchToListeners(o,!1),this.firedEvents[o.type]=!0}dispatchEventOnce(i){this.firedEvents[i.type]||this.dispatchEvent(i)}dispatchToListeners(i,o){var ee;let v=i.type;if(o&&"event"in i){let le=i.event;le instanceof Event&&(i.eventPath=le.composedPath())}let I=(le,we)=>le.forEach(Ae=>{if(!we.has(Ae))return;let Ee=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>Ae(i)):()=>Ae(i);o?this.dispatchAsync(Ee):Ee()}),N=(ee=this.getListeners(v,o,!1))!=null?ee:new Set,W=new Set(N);W.size>0&&I(W,N),new Set(o?this.globalAsyncListeners:this.globalSyncListeners).forEach(le=>{let we=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>le(v,i)):()=>le(v,i);o?this.dispatchAsync(we):we()})}dispatchAsync(i){if(this.asyncFunctionsQueue.push(i),!this.scheduled){let o=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(o):o(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;let i=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],i.forEach(o=>o())}};function c(i,o){return o}function h(i){var o;return(o=i==null?void 0:i.getLocaleTextFunc())!=null?o:c}function g(i,o,v){v==null||typeof v=="string"&&v==""?S(i,o):f(i,o,v)}function f(i,o,v){i.setAttribute(w(o),v.toString())}function S(i,o){i.removeAttribute(w(o))}function w(i){return`aria-${i}`}function M(i,o){o?i.setAttribute("role",o):i.removeAttribute("role")}function P(i){let o;return i==="asc"?o="ascending":i==="desc"?o="descending":i==="mixed"?o="other":o="none",o}function O(i){return parseInt(i.getAttribute("aria-posinset"),10)}function G(i){return i.getAttribute("aria-label")}function j(i,o){g(i,"label",o)}function Y(i,o){g(i,"labelledby",o)}function J(i,o){g(i,"describedby",o)}function ne(i,o){g(i,"live",o)}function ce(i,o){g(i,"atomic",o)}function fe(i,o){g(i,"relevant",o)}function xe(i,o){g(i,"level",o)}function Le(i,o){g(i,"disabled",o)}function _e(i,o){g(i,"hidden",o)}function Fe(i,o){g(i,"activedescendant",o)}function We(i,o){f(i,"expanded",o)}function it(i){S(i,"expanded")}function tt(i,o){f(i,"setsize",o)}function ot(i,o){f(i,"posinset",o)}function st(i,o){f(i,"multiselectable",o)}function St(i,o){f(i,"rowcount",o)}function Xe(i,o){f(i,"rowindex",o)}function Ke(i,o){f(i,"colcount",o)}function Ye(i,o){f(i,"colindex",o)}function Ze(i,o){f(i,"colspan",o)}function Pe(i,o){f(i,"sort",o)}function ct(i){S(i,"sort")}function dt(i,o){g(i,"selected",o)}function bt(i,o){f(i,"checked",o===void 0?"mixed":o)}function Pt(i,o){g(i,"controls",o.id),Y(o,i.id)}function Nt(i,o){return o===void 0?i("ariaIndeterminate","indeterminate"):o===!0?i("ariaChecked","checked"):i("ariaUnchecked","unchecked")}var ft,Lt,Vt,Jt,$t,Ii,zi,ln;function ha(){return ft===void 0&&(ft=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),ft}function Gn(){if(Lt===void 0){let i=window;Lt=!!i.chrome&&(!!i.chrome.webstore||!!i.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Lt}function qn(){return Vt===void 0&&(Vt=/(firefox)/i.test(navigator.userAgent)),Vt}function Qn(){return Jt===void 0&&(Jt=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Jt}function na(){return $t===void 0&&($t=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),$t}function fo(i){if(!i)return null;let o=i.tabIndex,v=i.getAttribute("tabIndex");return o===-1&&(v===null||v===""&&!qn())?null:o.toString()}function Yl(){if(ln!==void 0)return ln;if(!document.body)return-1;let i=1e6,o=qn()?6e6:1e9,v=document.createElement("div");for(document.body.appendChild(v);;){let I=i*2;if(v.style.height=I+"px",I>o||v.clientHeight!==I)break;i=I}return document.body.removeChild(v),ln=i,i}function Wu(){return zi==null&&Kd(),zi}function Kd(){let i=document.body,o=document.createElement("div");o.style.width=o.style.height="100px",o.style.opacity="0",o.style.overflow="scroll",o.style.msOverflowStyle="scrollbar",o.style.position="absolute",i.appendChild(o);let v=o.offsetWidth-o.clientWidth;v===0&&o.clientWidth===0&&(v=null),o.parentNode&&o.parentNode.removeChild(o),v!=null&&(zi=v,Ii=v===0)}function To(){return Ii==null&&Kd(),Ii}var nd;function Qi(i,o,v){let I=i.parentElement,N=I&&I.firstChild;for(;N;)o&&N.classList.toggle(o,N===i),v&&N.classList.toggle(v,N!==i),N=N.nextSibling}var Nr="[tabindex], input, select, button, textarea, [href]",Rs="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Uu(i){let o=Element.prototype.matches||Element.prototype.msMatchesSelector,v="input, select, button, textarea",I=o.call(i,v),N=o.call(i,Rs),W=wa(i);return I&&!N&&W}function Vn(i,o,v={}){let{skipAriaHidden:I}=v;i.classList.toggle("ag-hidden",!o),I||_e(i,!o)}function qd(i,o,v={}){let{skipAriaHidden:I}=v;i.classList.toggle("ag-invisible",!o),I||_e(i,!o)}function Ps(i,o){let v="disabled",I=o?N=>N.setAttribute(v,""):N=>N.removeAttribute(v);I(i),Vf(i.querySelectorAll("input"),N=>I(N))}function is(i,o,v){let I=0;for(;i;){if(i.classList.contains(o))return!0;if(i=i.parentElement,typeof v=="number"){if(++I>v)break}else if(i===v)break}return!1}function hl(i){let{height:o,width:v,borderTopWidth:I,borderRightWidth:N,borderBottomWidth:W,borderLeftWidth:Z,paddingTop:ee,paddingRight:le,paddingBottom:we,paddingLeft:Ae,marginTop:Ee,marginRight:Ve,marginBottom:Je,marginLeft:gt,boxSizing:kt}=window.getComputedStyle(i);return{height:parseFloat(o||"0"),width:parseFloat(v||"0"),borderTopWidth:parseFloat(I||"0"),borderRightWidth:parseFloat(N||"0"),borderBottomWidth:parseFloat(W||"0"),borderLeftWidth:parseFloat(Z||"0"),paddingTop:parseFloat(ee||"0"),paddingRight:parseFloat(le||"0"),paddingBottom:parseFloat(we||"0"),paddingLeft:parseFloat(Ae||"0"),marginTop:parseFloat(Ee||"0"),marginRight:parseFloat(Ve||"0"),marginBottom:parseFloat(Je||"0"),marginLeft:parseFloat(gt||"0"),boxSizing:kt}}function Sa(i){let o=hl(i);return o.boxSizing==="border-box"?o.height-o.paddingTop-o.paddingBottom:o.height}function cr(i){let o=hl(i);return o.boxSizing==="border-box"?o.width-o.paddingLeft-o.paddingRight:o.width}function La(i){let{height:o,marginBottom:v,marginTop:I}=hl(i);return Math.floor(o+v+I)}function Oh(i){let{width:o,marginLeft:v,marginRight:I}=hl(i);return Math.floor(o+v+I)}function Fh(i){let o=i.getBoundingClientRect(),{borderTopWidth:v,borderLeftWidth:I,borderRightWidth:N,borderBottomWidth:W}=hl(i);return{top:o.top+(v||0),left:o.left+(I||0),right:o.right+(N||0),bottom:o.bottom+(W||0)}}function Ro(){if(typeof nd=="boolean")return nd;let i=document.createElement("div");return i.style.direction="rtl",i.style.width="1px",i.style.height="1px",i.style.position="fixed",i.style.top="0px",i.style.overflow="hidden",i.dir="rtl",i.innerHTML=`<div style="width: 2px">
            <span style="display: inline-block; width: 1px"></span>
            <span style="display: inline-block; width: 1px"></span>
        </div>`,document.body.appendChild(i),i.scrollLeft=1,nd=Math.floor(i.scrollLeft)===0,document.body.removeChild(i),nd}function Kg(i,o){let v=i.scrollLeft;return o&&(v=Math.abs(v),Gn()&&!Ro()&&(v=i.scrollWidth-i.getBoundingClientRect().width-v)),v}function gl(i,o,v){v&&(Ro()?o*=-1:(ha()||Gn())&&(o=i.scrollWidth-i.getBoundingClientRect().width-o)),i.scrollLeft=o}function Jn(i){for(;i&&i.firstChild;)i.removeChild(i.firstChild)}function xc(i){i&&i.parentNode&&i.parentNode.removeChild(i)}function ns(i){return!!i.offsetParent}function wa(i){let o=i;return o.checkVisibility?o.checkVisibility({checkVisibilityCSS:!0}):!(!ns(i)||window.getComputedStyle(i).visibility!=="visible")}function as(i){let o=document.createElement("div");return o.innerHTML=(i||"").trim(),o.firstChild}function ea(i,o,v){v&&v.nextSibling===o||(v?v.nextSibling?i.insertBefore(o,v.nextSibling):i.appendChild(o):i.firstChild&&i.firstChild!==o&&i.insertAdjacentElement("afterbegin",o))}function BC(i,o){for(let v=0;v<o.length;v++){let I=o[v],N=i.children[v];N!==I&&i.insertBefore(I,N)}}function LA(i,o,v){v?v.insertAdjacentElement("afterend",o):i.firstChild?i.insertAdjacentElement("afterbegin",o):i.appendChild(o)}function GC(i){return i.replace(/[A-Z]/g,o=>`-${o.toLocaleLowerCase()}`)}function Ku(i,o){if(o)for(let[v,I]of Object.entries(o)){if(!v||!v.length||I==null)continue;let N=GC(v),W=I.toString(),Z=W.replace(/\s*!important/g,""),ee=Z.length!=W.length?"important":void 0;i.style.setProperty(N,Z,ee)}}function Zw(i){return i.clientWidth<i.scrollWidth}function qg(i){return i.clientHeight<i.scrollHeight}function rm(i,o){o==="flex"?(i.style.removeProperty("width"),i.style.removeProperty("minWidth"),i.style.removeProperty("maxWidth"),i.style.flex="1 1 auto"):Mc(i,o)}function Mc(i,o){o=sm(o),i.style.width=o.toString(),i.style.maxWidth=o.toString(),i.style.minWidth=o.toString()}function mn(i,o){o=sm(o),i.style.height=o.toString(),i.style.maxHeight=o.toString(),i.style.minHeight=o.toString()}function sm(i){return typeof i=="number"?`${i}px`:i}function _h(i){return i instanceof Node||i instanceof HTMLElement}function ad(i){if(i==null)return[];let o=[];return Vf(i,v=>o.push(v)),o}function od(i,o){if(i)for(let v=0;v<i.length;v++){let I=i[v];o(I.name,I.value)}}function Ls(i,o,v){v==null||v===""?i.removeAttribute(o):i.setAttribute(o,v.toString())}function Vf(i,o){if(i!=null)for(let v=0;v<i.length;v++)o(i[v])}function Nh(i,o){i.then(v=>{let I=v.getGui();I!=null&&(typeof I=="object"?o.appendChild(I):o.innerHTML=I)})}function Xl(i,o,v){let N=WC(i).ResizeObserver,W=N?new N(v):null;return W==null||W.observe(o),()=>W==null?void 0:W.disconnect()}function kc(i){return i==null||i===""?null:i}function mi(i){return i!=null&&i!==""}function Oa(i){return!mi(i)}function zh(i){return i!=null&&typeof i.toString=="function"?i.toString():null}function lm(i,o){let v=i?JSON.stringify(i):null,I=o?JSON.stringify(o):null;return v===I}function $w(i,o,v=!1){let I=i==null,N=o==null;if(i&&i.toNumber&&(i=i.toNumber()),o&&o.toNumber&&(o=o.toNumber()),I&&N)return 0;if(I)return-1;if(N)return 1;function W(Z,ee){return Z>ee?1:Z<ee?-1:0}if(typeof i!="string"||!v)return W(i,o);try{return i.localeCompare(o)}catch(Z){return W(i,o)}}var Qw="https://www.ag-grid.com",Jw={};function ky(i,o){Jw[o]||(i(),Jw[o]=!0)}function rd(i,o,...v){i.get("debug")&&console.log("AG Grid: "+o,...v)}function Ac(i,...o){ky(()=>console.warn("AG Grid: "+i,...o),i+(o==null?void 0:o.join("")))}function sd(i,...o){ky(()=>console.error("AG Grid: "+i,...o),i+(o==null?void 0:o.join("")))}var Ay=[],VC=!1;function jf(i){Ay.push(i),!VC&&(VC=!0,window.setTimeout(()=>{let o=Ay.slice();Ay.length=0,VC=!1,o.forEach(v=>v())},0))}function dr(i,o,v){let I;return function(...N){let W=this;window.clearTimeout(I),I=window.setTimeout(function(){i.isAlive()&&o.apply(W,N)},v)}}function Dy(i,o){let v=0;return function(...I){let N=this,W=new Date().getTime();W-v<o||(v=W,i.apply(N,I))}}function os(i,o,v=100,I){let N=new Date().getTime(),W=null,Z=!1,ee=()=>{let le=new Date().getTime()-N>v;(i()||le)&&(o(),Z=!0,W!=null&&(window.clearInterval(W),W=null),le&&I&&Ac(I))};ee(),Z||(W=window.setInterval(ee,10))}var ri="33.0.1",ld=2e3,ex=100,Ey="_version_",Yg=null,jC=!1,cm=`${Qw}/javascript-data-grid`;function Iy(i){Yg=i}function vi(i){cm=i}function zr(i,o,v){var I;return(I=Yg==null?void 0:Yg.getConsoleMessage(i,o))!=null?I:[Zl(i,o,v)]}function Yd(i,o,v,I){jC||i(`error #${o}`,...zr(o,v,I))}function Fa(i){if(!i)return String(i);let o={};for(let v of Object.keys(i))typeof i[v]!="object"&&typeof i[v]!="function"&&(o[v]=i[v]);return JSON.stringify(o)}function Xg(i){let o=i;return i instanceof Error?o=i.toString():typeof i=="object"&&(o=Fa(i)),o}function Os(i){return i===void 0?"undefined":i===null?"null":i}function Bh(i,o){return`${i}?${o.toString()}`}function HC(i,o,v){let I=Array.from(o.entries()).sort((W,Z)=>Z[1].length-W[1].length),N=Bh(i,o);for(let[W,Z]of I){if(W===Ey)continue;let ee=N.length-v;if(ee<=0)break;let le="...",we=ee+le.length,Ae=Z.length-we>ex?Z.slice(0,Z.length-we)+le:Z.slice(0,ex)+le;o.set(W,Ae),N=Bh(i,o)}return N}function Hf(i,o){let v=new URLSearchParams;v.append(Ey,ri),o&&Object.entries(o).forEach(([W,Z])=>{v.append(W,Xg(Z))});let I=`${cm}/errors/${i}`,N=Bh(I,v);return N.length<=ld?N:HC(I,v,ld)}var Zl=(i,o,v)=>{let I=Hf(i,o);return`${v?v+` 
`:""}Visit ${I}${v?"":` 
  Alternatively register the ValidationModule to see the full message in the console.`}`};function ii(...i){Yd(Ac,i[0],i[1])}function aa(...i){Yd(sd,i[0],i[1])}function Zg(i,o,v){Yd(sd,i,o,v)}function $g(i,o){let v=o[0];return`error #${v} `+zr(v,o[1],i).join(" ")}function Po(...i){return $g(void 0,i)}function $l(...i){return $g(`
`,i)}function Fs(i,o){return i.get("rowModelType")===o}function so(i,o){return Fs(i,"clientSide")}function Dc(i,o){return Fs(i,"serverSide")}function lo(i,o){return i.get("domLayout")===o}function Ql(i){return vo(i)!==void 0}function rs(i){return typeof i.get("getRowHeight")=="function"}function kP(i,o){return o?!i.get("enableStrictPivotColumnOrder"):i.get("maintainColumnOrder")}function qu(i,o,v=!1,I){let{gos:N,environment:W}=i;if(I==null&&(I=W.getDefaultRowHeight()),rs(N)){if(v)return{height:I,estimated:!0};let le={node:o,data:o.data},we=N.getCallback("getRowHeight")(le);if(ss(we))return we===0&&ii(23),{height:Math.max(1,we),estimated:!1}}if(o.detail&&N.get("masterDetail"))return fn(N);let Z=N.get("rowHeight");return{height:Z&&ss(Z)?Z:I,estimated:!1}}function fn(i){if(i.get("detailRowAutoHeight"))return{height:1,estimated:!1};let o=i.get("detailRowHeight");return ss(o)?{height:o,estimated:!1}:{height:300,estimated:!1}}function Yu(i){let{environment:o,gos:v}=i,I=v.get("rowHeight");if(!I||Oa(I))return o.getDefaultRowHeight();let N=o.refreshRowHeightVariable();return N!==-1?N:(ii(24),o.getDefaultRowHeight())}function ss(i){return!isNaN(i)&&typeof i=="number"&&isFinite(i)}function dm(i,o,v){let I=o[i.getDomDataKey()];return I?I[v]:void 0}function cd(i,o,v,I){let N=i.getDomDataKey(),W=o[N];Oa(W)&&(W={},o[N]=W),W[v]=I}function eo(i){let{gos:o,eGridDiv:v}=i,I=null,N=o.get("getDocument");return N&&mi(N)?I=N():v&&(I=v.ownerDocument),I&&mi(I)?I:document}function WC(i){return eo(i).defaultView||window}function Wf(i){return i.eGridDiv.getRootNode()}function ga(i){return Wf(i).activeElement}function Ty(i){let o=null,v=null;try{o=eo(i).fullscreenElement}catch(I){}finally{o||(o=Wf(i));let I=o.querySelector("body");I?v=I:o instanceof ShadowRoot?v=o:o instanceof Document?v=o==null?void 0:o.documentElement:v=o}return v}function tx(i){var v;let o=Ty(i);return(v=o==null?void 0:o.clientWidth)!=null?v:window.innerHeight||-1}function gn(i){var v;let o=Ty(i);return(v=o==null?void 0:o.clientHeight)!=null?v:window.innerHeight||-1}function um(i,o,v){let N=i.getBoundingClientRect().height,W=tx(v)-2,Z=gn(v)-2;if(!i.offsetParent)return;let le=Fh(i.offsetParent),{clientY:we,clientX:Ae}=o,Ee=we-le.top-N/2,Ve=Ae-le.left-10,Je=eo(v),gt=Je.defaultView||window,kt=gt.pageYOffset||Je.documentElement.scrollTop,xt=gt.pageXOffset||Je.documentElement.scrollLeft;W>0&&Ve+i.clientWidth>W+xt&&(Ve=W+xt-i.clientWidth),Ve<0&&(Ve=0),Z>0&&Ee+i.clientHeight>Z+kt&&(Ee=Z+kt-i.clientHeight),Ee<0&&(Ee=0),i.style.left=`${Ve}px`,i.style.top=`${Ee}px`}function ki(i){let o=eo(i),v=ga(i);return v===null||v===o.body}function vn(i){return i.get("ensureDomOrder")?!1:i.get("animateRows")}function Mi(i){return!(i.get("paginateChildRows")||i.get("groupHideOpenParents")||lo(i,"print"))}function _s(i){let o=i.get("autoGroupColumnDef");return!(o!=null&&o.comparator)&&!i.get("treeData")}function hm(i){let o=i.get("groupAggFiltering");if(typeof o=="function")return i.getCallback("groupAggFiltering");if(o===!0)return()=>!0}function AP(i){return i.get("grandTotalRow")}function DP(i){let o=i.get("groupTotalRow");return typeof o=="function"?i.getCallback("groupTotalRow"):()=>o!=null?o:void 0}function gI(i){return i.exists("groupDisplayType")?i.get("groupDisplayType")==="multipleColumns":i.get("groupHideOpenParents")}function ix(i,o){return o?!1:i.get("groupDisplayType")==="groupRows"}function Uf(i){let o=i.getCallback("getRowId");return o===void 0?o:v=>{let I=o(v);return typeof I!="string"&&(ii(25,{id:I}),I=String(I)),I}}function Kf(i,o){let v=i.get("groupHideParentOfSingleChild");return!!(v===!0||v==="leafGroupsOnly"&&o.leafGroup||i.get("groupRemoveSingleChildren")||i.get("groupRemoveLowestSingleChildren")&&o.leafGroup)}function nx(i){let o=i.get("maxConcurrentDatasourceRequests");return o>0?o:void 0}function OA(i,o){let v=i.get("suppressGroupChangesColumnVisibility");if(v===!0||o&&v==="suppressHideOnGroup"||!o&&v==="suppressShowOnUngroup")return!1;let I=i.get("suppressRowGroupHidesColumns");if(o&&I===!0)return!1;let N=i.get("suppressMakeColumnVisibleAfterUnGroup");return!(!o&&N===!0)}function Ec(i){var o;return(o=i==null?void 0:i.checkboxes)!=null?o:!0}function pl(i){var o;return(i==null?void 0:i.mode)==="multiRow"&&((o=i.headerCheckbox)!=null?o:!0)}function xa(i){var o;if(typeof i=="object")return(o=i.checkboxLocation)!=null?o:"selectionColumn"}function gm(i){var o;return(o=i==null?void 0:i.hideDisabledCheckboxes)!=null?o:!1}function UC(i){return typeof i.get("rowSelection")!="string"}function KC(i){return i.get("cellSelection")!==void 0}function ax(i){var I;let o=i.get("cellSelection");return o!==void 0?typeof o!="boolean"&&(I=o==null?void 0:o.suppressMultiRanges)!=null?I:!1:i.get("suppressMultiRangeSelection")}function Jo(i){let o=i.get("cellSelection");return o!==void 0?!!o:i.get("enableRangeSelection")}function qC(i){var I;let o=i.get("cellSelection");return o!==void 0?typeof o!="boolean"&&((I=o.handle)==null?void 0:I.mode)==="fill"?o.handle:void 0:{mode:"fill",setFillValue:i.get("fillOperation"),direction:i.get("fillHandleDirection"),suppressClearOnFillReduction:i.get("suppressClearOnFillReduction")}}function pI(i){var v,I;let o=(v=i.get("rowSelection"))!=null?v:"single";if(typeof o=="string"){let N=i.get("suppressRowClickSelection"),W=i.get("suppressRowDeselection");return N&&W?!1:N?"enableDeselection":W?"enableSelection":!0}return(o.mode==="singleRow"||o.mode==="multiRow")&&(I=o.enableClickSelection)!=null?I:!1}function mI(i){let o=pI(i);return o===!0||o==="enableSelection"}function Br(i){let o=pI(i);return o===!0||o==="enableDeselection"}function Qg(i){let o=i.get("rowSelection");return typeof o=="string"?i.get("isRowSelectable"):o==null?void 0:o.isRowSelectable}function vo(i){let o=i.get("rowSelection");if(typeof o=="string")switch(o){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(o==null?void 0:o.mode){case"multiRow":case"singleRow":return o.mode;default:return}}function pm(i){return vo(i)==="multiRow"}function YC(i){var v;let o=i.get("rowSelection");return typeof o=="string"?i.get("rowMultiSelectWithClick"):(v=o==null?void 0:o.enableSelectionWithoutKeys)!=null?v:!1}function Xu(i){let o=i.get("rowSelection");if(typeof o=="string"){let v=i.get("groupSelectsChildren"),I=i.get("groupSelectsFiltered");return v&&I?"filteredDescendants":v?"descendants":"self"}return(o==null?void 0:o.mode)==="multiRow"?o.groupSelects:void 0}function FA(i,o=!0){let v=i.get("rowSelection");return typeof v!="object"?o?"all":void 0:v.mode==="multiRow"?v.selectAll:"all"}function Ry(i){let o=Xu(i);return o==="descendants"||o==="filteredDescendants"}function qf(i){return i.isModuleRegistered("SetFilter")&&!i.get("suppressSetFilterByDefault")}function jo(i){return i.get("columnMenu")==="legacy"}function ml(i){return!jo(i)}function Hi(i){return!i||i.length<2?i:"on"+i[0].toUpperCase()+i.substring(1)}function ja(i,o,v){typeof i!="object"&&(i={});let I=ge({},i);return v.forEach(N=>{let W=o[N];typeof W!="undefined"&&(I[N]=W)}),I}function Xd(i,o){if(!i)return;let v={},I=!1;if(Object.keys(i).forEach(Z=>{v[Z]=i[Z],I=!0}),!I)return;let N={type:"gridOptionsChanged",options:v};o.dispatchEvent(N);let W=ge({type:"componentStateChanged"},v);o.dispatchEvent(W)}var je="__ag_Grid_Stop_Propagation",dd=["touchstart","touchend","touchmove","touchcancel","scroll"],mm=["wheel"],Si={};function ur(i){i[je]=!0}function Ri(i){return i[je]===!0}var _a=(()=>{let i={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return v=>{if(typeof Si[v]=="boolean")return Si[v];let I=document.createElement(i[v]||"div");return v="on"+v,Si[v]=v in I}})();function Qt(i,o,v){let I=o;for(;I;){let N=dm(i,I,v);if(N)return N;I=I.parentElement}return null}function yn(i,o){return!o||!i?!1:XC(o).indexOf(i)>=0}function pa(i){let o=[],v=i.target;for(;v;)o.push(v),v=v.parentElement;return o}function XC(i){let o=i;return o.path?o.path:o.composedPath?o.composedPath():pa(o)}function bi(i,o,v,I){let N=oa(v),W;N!=null&&(W={passive:N}),i&&i.addEventListener&&i.addEventListener(o,v,I,W)}var oa=i=>{let o=dd.includes(i),v=mm.includes(i);if(o)return!0;if(v)return!1},jt=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(i){this.beans=i,this.stubContext=i.context,this.eventSvc=i.eventSvc,this.gos=i.gos}destroy(){let{destroyFunctions:i}=this;for(let o=0;o<i.length;o++)i[o]();i.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(i,o,v){this.localEventService||(this.localEventService=new s),this.localEventService.addEventListener(i,o,v)}removeEventListener(i,o,v){var I;(I=this.localEventService)==null||I.removeEventListener(i,o,v)}dispatchLocalEvent(i){var o;(o=this.localEventService)==null||o.dispatchEvent(i)}addManagedElementListeners(i,o){return this._setupListeners(i,o)}addManagedEventListeners(i){return this._setupListeners(this.eventSvc,i)}addManagedListeners(i,o){return this._setupListeners(i,o)}_setupListeners(i,o){let v=[];for(let I of Object.keys(o)){let N=o[I];N&&v.push(this._setupListener(i,I,N))}return v}_setupListener(i,o,v){if(this.destroyed)return()=>null;i instanceof HTMLElement?bi(this.beans.frameworkOverrides,i,o,v):i.addEventListener(o,v);let I=()=>(i.removeEventListener(o,v),null);return this.destroyFunctions.push(I),()=>(I(),this.destroyFunctions=this.destroyFunctions.filter(N=>N!==I),null)}setupGridOptionListener(i,o){let{gos:v}=this;v.addPropertyEventListener(i,o);let I=()=>(v.removePropertyEventListener(i,o),null);return this.destroyFunctions.push(I),()=>(I(),this.destroyFunctions=this.destroyFunctions.filter(N=>N!==I),null)}addManagedPropertyListener(i,o){return this.destroyed?()=>null:this.setupGridOptionListener(i,o)}addManagedPropertyListeners(i,o){if(this.destroyed)return;let v=i.join("-")+this.propertyListenerId++,I=N=>{if(N.changeSet){if(N.changeSet&&N.changeSet.id===this.lastChangeSetIdLookup[v])return;this.lastChangeSetIdLookup[v]=N.changeSet.id}let W={type:"gridPropertyChanged",changeSet:N.changeSet,source:N.source};o(W)};i.forEach(N=>this.setupGridOptionListener(N,I))}getLocaleTextFunc(){return h(this.beans.localeSvc)}addDestroyFunc(i){this.isAlive()?this.destroyFunctions.push(i):i()}createOptionalManagedBean(i,o){return i?this.createManagedBean(i,o):void 0}createManagedBean(i,o){let v=this.createBean(i,o);return this.addDestroyFunc(this.destroyBean.bind(this,i,o)),v}createBean(i,o,v){return(o||this.stubContext).createBean(i,v)}destroyBean(i,o){return(o||this.stubContext).destroyBean(i)}destroyBeans(i,o){return(o||this.stubContext).destroyBeans(i)}},Yf=new Set(["__proto__","constructor","prototype"]);function bn(i,o){if(i!=null){if(Array.isArray(i)){for(let v=0;v<i.length;v++)o(v.toString(),i[v]);return}for(let[v,I]of Object.entries(i))o(v,I)}}function yo(i,o,v=!0,I=!1){mi(o)&&bn(o,(N,W)=>{if(Yf.has(N))return;let Z=i[N];Z!==W&&(I&&Z==null&&W!=null&&typeof W=="object"&&W.constructor===Object&&(Z={},i[N]=Z),Py(W)&&Py(Z)&&!Array.isArray(Z)?yo(Z,W,v,I):(v||W!==void 0)&&(i[N]=W))})}function Zu(i,o,v){if(!o||!i)return;if(!v)return i[o];let I=o.split("."),N=i;for(let W=0;W<I.length;W++){if(N==null)return;N=N[I[W]]}return N}function Py(i){return typeof i=="object"&&i!==null}var En={resizable:!0,sortable:!0},Ly=0;function _A(){return Ly++}function In(i){return i instanceof Ns}var Ns=class extends jt{constructor(i,o,v,I){super(),this.colDef=i,this.userProvidedColDef=o,this.colId=v,this.primary=I,this.isColumn=!0,this.instanceId=_A(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new s,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null}getInstanceId(){return this.instanceId}setState(){let{colDef:i,beans:{sortSvc:o,pinnedCols:v,colFlex:I}}=this;o==null||o.initCol(this);let N=i.hide;N!==void 0?this.visible=!N:this.visible=!i.initialHide,v==null||v.initCol(this),I==null||I.initCol(this)}setColDef(i,o,v){this.colDef=i,this.userProvidedColDef=o,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.dispatchColEvent("colDefChanged",v)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()}initDotNotation(){let{gos:i,colDef:{field:o,tooltipField:v}}=this,I=i.get("suppressFieldDotNotation");this.fieldContainsDots=mi(o)&&o.indexOf(".")>=0&&!I,this.tooltipFieldContainsDots=mi(v)&&v.indexOf(".")>=0&&!I}initMinAndMaxWidths(){var o,v;let i=this.colDef;this.minWidth=(o=i.minWidth)!=null?o:this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=(v=i.maxWidth)!=null?v:Number.MAX_SAFE_INTEGER}initTooltip(){var i;(i=this.beans.tooltipSvc)==null||i.initCol(this)}resetActualWidth(i){let o=this.calculateColInitialWidth(this.colDef);this.setActualWidth(o,i,!0)}calculateColInitialWidth(i){let o,v=i.width,I=i.initialWidth;return v!=null?o=v:I!=null?o=I:o=200,Math.max(Math.min(o,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(i){var o,v;return(v=(o=this.beans.showRowGroupCols)==null?void 0:o.isRowGroupDisplayed(this,i))!=null?v:!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(i,o){var I,N,W,Z;this.frameworkEventListenerService=(N=(I=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:N.call(I,this.frameworkEventListenerService,this.colEventSvc);let v=(Z=(W=this.frameworkEventListenerService)==null?void 0:W.wrap(o))!=null?Z:o;this.colEventSvc.addEventListener(i,v)}removeEventListener(i,o){var I,N;let v=(N=(I=this.frameworkEventListenerService)==null?void 0:I.unwrap(o))!=null?N:o;this.colEventSvc.removeEventListener(i,v)}createColumnFunctionCallbackParams(i){return this.gos.addGridCommonParams({node:i,data:i.data,column:this,colDef:this.colDef})}isSuppressNavigable(i){var o,v;return(v=(o=this.beans.cellNavigation)==null?void 0:o.isSuppressNavigable(this,i))!=null?v:!1}isCellEditable(i){var o,v;return(v=(o=this.beans.editSvc)==null?void 0:o.isCellEditable(this,i))!=null?v:!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(i){return this.isColumnFunc(i,this.colDef.rowDrag)}isDndSource(i){return this.isColumnFunc(i,this.colDef.dndSource)}isCellCheckboxSelection(i){var o,v;return(v=(o=this.beans.selectionSvc)==null?void 0:o.isCellCheckboxSelection(this,i))!=null?v:!1}isSuppressPaste(i){var o,v;return this.isColumnFunc(i,(v=(o=this.colDef)==null?void 0:o.suppressPaste)!=null?v:null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(i){var o;return(o=this.colDef[i])!=null?o:En[i]}isColumnFunc(i,o){if(typeof o=="boolean")return o;if(typeof o=="function"){let v=this.createColumnFunctionCallbackParams(i);return o(v)}return!1}createColumnEvent(i,o){return this.gos.addGridCommonParams({type:i,column:this,columns:[this],source:o})}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 Oa(this.sort)}isSorting(){return mi(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(i,o){this.oldLeft=this.left,this.left!==i&&(this.left=i,this.dispatchColEvent("leftChanged",o))}isFilterActive(){return this.filterActive}isHovered(){var i;return ii(261),!!((i=this.beans.colHover)!=null&&i.isHovered(this))}setFirstRightPinned(i,o){this.firstRightPinned!==i&&(this.firstRightPinned=i,this.dispatchColEvent("firstRightPinnedChanged",o))}setLastLeftPinned(i,o){this.lastLeftPinned!==i&&(this.lastLeftPinned=i,this.dispatchColEvent("lastLeftPinnedChanged",o))}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(i,o){let v=i===!0;this.visible!==v&&(this.visible=v,this.dispatchColEvent("visibleChanged",o)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let i=this.getParent();if(!i||!i.isPadding())return{numberOfParents:0,isSpanningTotal:!1};let o=i.getPaddingLevel()+1,v=!0;for(;i;){if(!i.isPadding()){v=!1;break}i=i.getParent()}return{numberOfParents:o,isSpanningTotal:v}}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(i){let o=i!==this.autoHeaderHeight;return this.autoHeaderHeight=i,o}createBaseColDefParams(i){return this.gos.addGridCommonParams({node:i,data:i.data,colDef:this.colDef,column:this})}getColSpan(i){if(Oa(this.colDef.colSpan))return 1;let o=this.createBaseColDefParams(i),v=this.colDef.colSpan(o);return Math.max(v,1)}getRowSpan(i){if(Oa(this.colDef.rowSpan))return 1;let o=this.createBaseColDefParams(i),v=this.colDef.rowSpan(o);return Math.max(v,1)}setActualWidth(i,o,v=!1){i=Math.max(i,this.minWidth),i=Math.min(i,this.maxWidth),this.actualWidth!==i&&(this.actualWidth=i,this.flex&&o!=="flex"&&o!=="gridInitializing"&&(this.flex=null),v||this.fireColumnWidthChangedEvent(o)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(i){this.dispatchColEvent("widthChanged",i)}isGreaterThanMax(i){return i>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(i,o,v){let I=this.createColumnEvent(i,o);v&&yo(I,v),this.colEventSvc.dispatchEvent(I)}dispatchStateUpdatedEvent(i){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:i})}};function ls(i){return i instanceof Jl}var Jl=class extends jt{constructor(i,o,v,I){super(),this.colGroupDef=i,this.groupId=o,this.padding=v,this.level=I,this.isColumn=!1,this.expandable=!1,this.instanceId=_A(),this.expandableListenerRemoveCallback=null,this.expanded=!!(i!=null&&i.openByDefault)}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(i,o){this.colGroupDef=i,this.level=o,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(i=>i.isVisible()):!1}isPadding(){return this.padding}setExpanded(i){this.expanded=i===void 0?!1:i,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(i){this.children=i}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){let i=[];return this.addLeafColumns(i),i}addLeafColumns(i){this.children&&this.children.forEach(o=>{In(o)?i.push(o):ls(o)&&o.addLeafColumns(i)})}getColumnGroupShow(){let i=this.colGroupDef;if(i)return i.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();let i=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(o=>o.addEventListener("visibleChanged",i)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(o=>o.removeEventListener("visibleChanged",i)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let i=!1,o=!1,v=!1,I=this.findChildrenRemovingPadding();for(let W=0,Z=I.length;W<Z;W++){let ee=I[W];if(!ee.isVisible())continue;let le=ee.getColumnGroupShow();le==="open"?(i=!0,v=!0):le==="closed"?(o=!0,v=!0):(i=!0,o=!0)}let N=i&&o&&v;this.expandable!==N&&(this.expandable=N,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){let i=[],o=v=>{v.forEach(I=>{ls(I)&&I.isPadding()?o(I.children):i.push(I)})};return o(this.children),i}onColumnVisibilityChanged(){this.setExpandable()}},Oy={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},ZC=class{constructor(){this.existingKeys={}}addExistingKeys(i){for(let o=0;o<i.length;o++)this.existingKeys[i[o]]=!0}getUniqueKey(i,o){i=zh(i);let v=0;for(;;){let I=i!=null?i:o;if(I?v!==0&&(I+="_"+v):I=v,!this.existingKeys[I])return this.existingKeys[I]=!0,String(I);v++}}},ra=Object.freeze([]);function Yn(i){if(i!=null&&i.length)return i[i.length-1]}function Gh(i,o,v){return i==null&&o==null?!0:i!=null&&o!=null&&i.length===o.length&&i.every((I,N)=>v?v(I,o[N]):o[N]===I)}function fI(i){return i.sort((o,v)=>o-v)}function bo(i,o){let v=i.indexOf(o);v>=0&&i.splice(v,1)}function $C(i,o,v){for(let I=0;I<o.length;I++)bo(i,o[I]);for(let I=o.length-1;I>=0;I--)i.splice(v,0,o[I])}function $u(i,o){let v=[],I=[],N=[];return i.forEach(Z=>{let ee=Z.getColDef().lockPosition;ee==="right"?N.push(Z):ee==="left"||ee===!0?v.push(Z):I.push(Z)}),o.get("enableRtl")?[...N,...I,...v]:[...v,...I,...N]}function Qu(i,o){let v=!0;return Gs(null,o,I=>{if(!ls(I))return;let N=I,W=N.getColGroupDef();if(!(W&&W.marryChildren))return;let ee=[];N.getLeafColumns().forEach(Ve=>{let Je=i.indexOf(Ve);ee.push(Je)});let le=Math.max.apply(Math,ee),we=Math.min.apply(Math,ee),Ae=le-we,Ee=N.getLeafColumns().length-1;Ae>Ee&&(v=!1)}),v}function Fy(i,o){if(!i||i.length==0)return;let v=o(i[0]);for(let I=1;I<i.length;I++)if(v!==o(i[I]))return;return v}function QC(i,o,v){if(!o.length)return;let I=o.length===1?o[0]:null,N=Fy(o,W=>W.getPinned());i.dispatchEvent({type:"columnPinned",pinned:N!=null?N:null,columns:o,column:I,source:v})}function _y(i,o,v){if(!o.length)return;let I=o.length===1?o[0]:null,N=Fy(o,W=>W.isVisible());i.dispatchEvent({type:"columnVisible",visible:N,columns:o,column:I,source:v})}function vI(i,o,v,I){i.dispatchEvent({type:o,columns:v,column:v&&v.length==1?v[0]:null,source:I})}function Vh(i,o,v,I,N=null){o!=null&&o.length&&i.dispatchEvent({type:"columnResized",columns:o,column:o.length===1?o[0]:null,flexColumns:N,finished:v,source:I})}function Ic(i,o,v){var Wt,di;let{colModel:I,rowGroupColsSvc:N,pivotColsSvc:W,autoColSvc:Z,selectionColSvc:ee,colAnimation:le,visibleCols:we,pivotResultCols:Ae,environment:Ee,valueColsSvc:Ve,eventSvc:Je,gos:gt}=i,kt=I.getColDefCols()||[];if(!(kt!=null&&kt.length))return!1;if(o!=null&&o.state&&!o.state.forEach)return ii(32),!1;let xt=(Di,un,xn,va,Un)=>{var ya;if(!Di)return;let Ra=Ha(un,o.defaultState),Ui=Ra("flex").value1;if(Ny(i,Di,Ra("hide").value1,Ra("sort").value1,Ra("sortIndex").value1,Ra("pinned").value1,Ui,v),Ui==null){let or=Ra("width").value1;if(or!=null){let ba=(ya=Di.getColDef().minWidth)!=null?ya:Ee.getDefaultColumnMinWidth();ba!=null&&or>=ba&&Di.setActualWidth(or,v)}}Un||!Di.isPrimary()||(Ve==null||Ve.syncColumnWithState(Di,v,Ra),N==null||N.syncColumnWithState(Di,v,Ra,xn),W==null||W.syncColumnWithState(Di,v,Ra,va))},Ft=(Di,un,xn)=>{var Jb,Cu,Xc,Np;let va=jh(i,v),Un=un.slice(),Ra={},Ui={},ya=[],or=[],ba=[],_l=0,Ok=(Jb=N==null?void 0:N.columns.slice())!=null?Jb:[],IL=(Cu=W==null?void 0:W.columns.slice())!=null?Cu:[];Di.forEach(rr=>{let Su=rr.colId;if(Su.startsWith(Zd)){ya.push(rr),ba.push(rr);return}if(ec(Su)){or.push(rr),ba.push(rr);return}let uc=xn(Su);uc?(xt(uc,rr,Ra,Ui,!1),bo(Un,uc)):(ba.push(rr),_l+=1)});let qS=rr=>xt(rr,null,Ra,Ui,!1);Un.forEach(qS),N==null||N.sortColumns(to.bind(N,Ra,Ok)),W==null||W.sortColumns(to.bind(W,Ui,IL)),I.refreshCols(!1);let YS=(rr,Su,eC=[])=>{Su.forEach(uc=>{let qv=rr(uc.colId);bo(eC,qv),xt(qv,uc,null,null,!0)}),eC.forEach(qS)};return YS(rr=>{var Su;return(Su=Z==null?void 0:Z.getAutoCol(rr))!=null?Su:null},ya,(Xc=Z==null?void 0:Z.getAutoCols())==null?void 0:Xc.slice()),YS(rr=>{var Su;return(Su=ee==null?void 0:ee.getSelectionCol(rr))!=null?Su:null},or,(Np=ee==null?void 0:ee.getSelectionCols())==null?void 0:Np.slice()),ox(o,I,gt),we.refresh(v),Je.dispatchEvent({type:"columnEverythingChanged",source:v}),va(),{unmatchedAndAutoStates:ba,unmatchedCount:_l}};le==null||le.start();let{unmatchedAndAutoStates:Ht,unmatchedCount:Gt}=Ft(o.state||[],kt,Di=>I.getColDefCol(Di));if(Ht.length>0||mi(o.defaultState)){let Di=(di=(Wt=Ae==null?void 0:Ae.getPivotResultCols())==null?void 0:Wt.list)!=null?di:[];Gt=Ft(Ht,Di,un=>{var xn;return(xn=Ae==null?void 0:Ae.getPivotResultCol(un))!=null?xn:null}).unmatchedCount}return le==null||le.finish(),Gt===0}function Jg(i,o){let{colModel:v,autoColSvc:I}=i,N=v.getColDefCols();if(!(N!=null&&N.length))return;let W=v.getColDefColTree(),Z=Xf(W),ee=[],le=1e3,we=1e3,Ae=[],Ee=I==null?void 0:I.getAutoCols();Ee&&(Ae=Ae.concat(Ee)),Z&&(Ae=Ae.concat(Z)),Ae.forEach(Ve=>{let Je=JC(Ve);Oa(Je.rowGroupIndex)&&Je.rowGroup&&(Je.rowGroupIndex=le++),Oa(Je.pivotIndex)&&Je.pivot&&(Je.pivotIndex=we++),ee.push(Je)}),Ic(i,{state:ee,applyOrder:!0},o)}function jh(i,o){var Ee,Ve,Je;let{rowGroupColsSvc:v,pivotColsSvc:I,valueColsSvc:N,colModel:W,sortSvc:Z,eventSvc:ee}=i,le={rowGroupColumns:(Ee=v==null?void 0:v.columns.slice())!=null?Ee:[],pivotColumns:(Ve=I==null?void 0:I.columns.slice())!=null?Ve:[],valueColumns:(Je=N==null?void 0:N.columns.slice())!=null?Je:[]},we=Xn(i),Ae={};return we.forEach(gt=>{Ae[gt.colId]=gt}),()=>{var Un,Ra;let gt=W.getAllCols(),kt=(Ui,ya,or,ba)=>{let _l=ya.map(ba),Ok=or.map(ba);if(Gh(_l,Ok))return;let qS=new Set(ya);or.forEach(Jb=>{qS.delete(Jb)||qS.add(Jb)});let YS=[...qS];ee.dispatchEvent({type:Ui,columns:YS,column:YS.length===1?YS[0]:null,source:o})},xt=Ui=>{let ya=[];return gt.forEach(or=>{let ba=Ae[or.getColId()];ba&&Ui(ba,or)&&ya.push(or)}),ya},Ft=Ui=>Ui.getColId();kt("columnRowGroupChanged",le.rowGroupColumns,(Un=v==null?void 0:v.columns)!=null?Un:[],Ft),kt("columnPivotChanged",le.pivotColumns,(Ra=I==null?void 0:I.columns)!=null?Ra:[],Ft);let Gt=xt((Ui,ya)=>{let or=Ui.aggFunc!=null,ba=or!=ya.isValueActive(),_l=or&&Ui.aggFunc!=ya.getAggFunc();return ba||_l});Gt.length>0&&vI(ee,"columnValueChanged",Gt,o),Vh(ee,xt((Ui,ya)=>Ui.width!=ya.getActualWidth()),!0,o),QC(ee,xt((Ui,ya)=>Ui.pinned!=ya.getPinned()),o),_y(ee,xt((Ui,ya)=>Ui.hide==ya.isVisible()),o);let xn=xt((Ui,ya)=>Ui.sort!=ya.getSort()||Ui.sortIndex!=ya.getSortIndex());xn.length>0&&(Z==null||Z.dispatchSortChangedEvents(o,xn));let va=Xn(i);yI(we,va,o,W,ee)}}function Xn(i){let{colModel:o,rowGroupColsSvc:v,pivotColsSvc:I}=i,N=o.getColDefCols();if(Oa(N)||!o.isAlive())return[];let W=o.getAllCols(),Z=v==null?void 0:v.columns,ee=I==null?void 0:I.columns,le=Ee=>{var Ht;let Ve=Ee.isRowGroupActive()&&Z?Z.indexOf(Ee):null,Je=Ee.isPivotActive()&&ee?ee.indexOf(Ee):null,gt=Ee.isValueActive()?Ee.getAggFunc():null,kt=Ee.getSort()!=null?Ee.getSort():null,xt=Ee.getSortIndex()!=null?Ee.getSortIndex():null;return{colId:Ee.getColId(),width:Ee.getActualWidth(),hide:!Ee.isVisible(),pinned:Ee.getPinned(),sort:kt,sortIndex:xt,aggFunc:gt,rowGroup:Ee.isRowGroupActive(),rowGroupIndex:Ve,pivot:Ee.isPivotActive(),pivotIndex:Je,flex:(Ht=Ee.getFlex())!=null?Ht:null}},we=W.map(Ee=>le(Ee)),Ae=new Map(o.getCols().map((Ee,Ve)=>[Ee.getColId(),Ve]));return we.sort((Ee,Ve)=>{let Je=Ae.has(Ee.colId)?Ae.get(Ee.colId):-1,gt=Ae.has(Ve.colId)?Ae.get(Ve.colId):-1;return Je-gt}),we}function JC(i){let o=(gt,kt)=>gt!=null?gt:kt!=null?kt:null,v=i.getColDef(),I=o(v.sort,v.initialSort),N=o(v.sortIndex,v.initialSortIndex),W=o(v.hide,v.initialHide),Z=o(v.pinned,v.initialPinned),ee=o(v.width,v.initialWidth),le=o(v.flex,v.initialFlex),we=o(v.rowGroupIndex,v.initialRowGroupIndex),Ae=o(v.rowGroup,v.initialRowGroup);we==null&&(Ae==null||Ae==!1)&&(we=null,Ae=null);let Ee=o(v.pivotIndex,v.initialPivotIndex),Ve=o(v.pivot,v.initialPivot);Ee==null&&(Ve==null||Ve==!1)&&(Ee=null,Ve=null);let Je=o(v.aggFunc,v.initialAggFunc);return{colId:i.getColId(),sort:I,sortIndex:N,hide:W,pinned:Z,width:ee,flex:le,rowGroup:Ae,rowGroupIndex:we,pivot:Ve,pivotIndex:Ee,aggFunc:Je}}function ox(i,o,v){if(!i.applyOrder||!i.state)return;let I=[];i.state.forEach(N=>{N.colId!=null&&I.push(N.colId)}),Zn(o.cols,I,o,v)}function Zn(i,o,v,I){if(i==null)return;let N=[],W={};o.forEach(ee=>{if(W[ee])return;let le=i.map[ee];le&&(N.push(le),W[ee]=!0)});let Z=0;if(i.list.forEach(ee=>{let le=ee.getColId();if(W[le]!=null)return;le.startsWith(Zd)?N.splice(Z++,0,ee):N.push(ee)}),N=$u(N,I),!Qu(N,v.getColTree())){ii(39);return}i.list=N}function yI(i,o,v,I,N){let W={};o.forEach(Ae=>W[Ae.colId]=Ae);let Z={};i.forEach(Ae=>{W[Ae.colId]&&(Z[Ae.colId]=!0)});let ee=i.filter(Ae=>Z[Ae.colId]),le=o.filter(Ae=>Z[Ae.colId]),we=[];le.forEach((Ae,Ee)=>{let Ve=ee&&ee[Ee];if(Ve&&Ve.colId!==Ae.colId){let Je=I.getCol(Ve.colId);Je&&we.push(Je)}}),we.length&&N.dispatchEvent({type:"columnMoved",columns:we,column:we.length===1?we[0]:null,finished:!0,source:v})}var to=(i,o,v,I)=>{let N=i[v.getId()],W=i[I.getId()],Z=N!=null,ee=W!=null;if(Z&&ee)return N-W;if(Z)return-1;if(ee)return 1;let le=o.indexOf(v),we=o.indexOf(I),Ae=le>=0,Ee=we>=0;return Ae&&Ee?le-we:Ae?-1:1},Ju="ag-Grid-SelectionColumn",EP=class extends jt{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",i=>{this.onSelectionOptionsChanged(i.currentValue,i.previousValue,Bs(i.source))})}addSelectionCols(i){let o=this.selectionCols;o!=null&&(i.list=o.list.concat(i.list),i.tree=o.tree.concat(i.tree),xr(i))}createSelectionCols(i,o){var Ve,Je,gt,kt,xt,Ft;let v=()=>{var Ht;fm(this.beans,(Ht=this.selectionCols)==null?void 0:Ht.tree),this.selectionCols=null},I=i.treeDepth,W=((Je=(Ve=this.selectionCols)==null?void 0:Ve.treeDepth)!=null?Je:-1)==I,Z=this.generateSelectionCols();if(on(Z,(kt=(gt=this.selectionCols)==null?void 0:gt.list)!=null?kt:[])&&W)return;v();let{colGroupSvc:le}=this.beans,we=(xt=le==null?void 0:le.findDepth(i.tree))!=null?xt:0,Ae=(Ft=le==null?void 0:le.balanceTreeForAutoCols(Z,we))!=null?Ft:[];this.selectionCols={list:Z,tree:Ae,treeDepth:we,map:{}},o(Ht=>{if(!Ht)return null;let Gt=Ht.filter(Wt=>!ec(Wt));return[...Z,...Gt]})}isSelectionColumnEnabled(){var Z,ee,le;let{gos:i,beans:o}=this,v=i.get("rowSelection");if(typeof v!="object"||!Ql(i))return!1;let I=((le=(ee=(Z=o.autoColSvc)==null?void 0:Z.getAutoCols())==null?void 0:ee.length)!=null?le:0)>0;if(v.checkboxLocation==="autoGroupColumn"&&I)return!1;let N=!!Ec(v),W=pl(v);return N||W}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];let{gos:i,validation:o}=this.beans,v=i.get("selectionColumnDef"),I=i.get("enableRtl"),N=He(ge({width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:I?"right":"left",comparator(ee,le,we,Ae){let Ee=we.isSelected(),Ve=Ae.isSelected();return Ee===Ve?0:Ee?1:-1},editable:!1,suppressFillHandle:!0},v),{colId:Ju}),W=N.colId;o==null||o.validateColDef(N,W,!0);let Z=new Ns(N,null,W,!1);return this.createBean(Z),[Z]}putSelectionColsFirstInList(i,o){if(!o)return null;let v=o.filter(I=>!ec(I));return[...i,...v]}getSelectionCol(i){var o,v;return(v=(o=this.selectionCols)==null?void 0:o.list.find(I=>No(I,i)))!=null?v:null}getSelectionCols(){var i,o;return(o=(i=this.selectionCols)==null?void 0:i.list)!=null?o:null}onSelectionOptionsChanged(i,o,v){let I=o&&typeof o!="string"?Ec(o):void 0,N=i&&typeof i!="string"?Ec(i):void 0,W=I!==N,Z=o&&typeof o!="string"?pl(o):void 0,ee=i&&typeof i!="string"?pl(i):void 0,le=Z!==ee,we=xa(i),Ae=xa(o);(W||le||we!==Ae)&&this.beans.colModel.refreshAll(v)}destroy(){var i;fm(this.beans,(i=this.selectionCols)==null?void 0:i.tree),super.destroy()}refreshVisibility(i){var I;if(!this.isSelectionColumnEnabled())return;let o=this.beans,v=(I=o.visibleCols.getAllTrees())!=null?I:[];if(v.length!==0){if(!v.some(zs)){let N=Xn(o).find(W=>ec(W.colId));N&&Ic(o,{state:[{colId:N.colId,hide:!N.hide}]},i)}if(v.length===1){let N=v[0],W=Gr(N);if(!W)return;Ic(o,{state:[{colId:W.getColId(),hide:!0}]},i)}}}},zs=i=>{var o,v;return i.isColumn?ec(i):(v=(o=i.getChildren())==null?void 0:o.some(zs))!=null?v:!1};function Gr(i){var v;if(i.isColumn)return ec(i)?i:null;let o=(v=i.getChildren())!=null?v:[];for(let I of o){let N=Gr(I);if(N)return N}return null}var Zd="ag-Grid-AutoColumn";function Xf(i){let o=[],v=I=>{for(let N=0;N<I.length;N++){let W=I[N];In(W)?o.push(W):ls(W)&&v(W.getChildren())}};return v(i),o}function eh(i){return i.reduce((o,v)=>o+v.getActualWidth(),0)}function fm(i,o,v){let I={};if(!o)return;Gs(null,o,W=>{I[W.getInstanceId()]=W}),v&&Gs(null,v,W=>{I[W.getInstanceId()]=null});let N=Object.values(I).filter(W=>W!=null);i.context.destroyBeans(N)}function Co(i){return i.getId().startsWith(Zd)}function ec(i){var v;let o=typeof i=="string"?i:"getColId"in i?i.getColId():i.colId;return(v=o==null?void 0:o.startsWith(Ju))!=null?v:!1}function hi(i){let o=[];return i instanceof Array?o=i:typeof i=="string"&&(o=i.split(",")),o}function on(i,o){return Gh(i,o,(v,I)=>v.getColId()===I.getColId())}function xr(i){i.map={},i.list.forEach(o=>i.map[o.getId()]=o)}function Bs(i){return i==="gridOptionsUpdated"?"gridOptionsChanged":i}function No(i,o){let v=i===o,I=i.getColDef()===o,N=i.getColId()==o;return v||I||N}var Ha=(i,o)=>(v,I)=>{let N={value1:void 0,value2:void 0},W=!1;return i&&(i[v]!==void 0&&(N.value1=i[v],W=!0),mi(I)&&i[I]!==void 0&&(N.value2=i[I],W=!0)),!W&&o&&(o[v]!==void 0&&(N.value1=o[v]),mi(I)&&o[I]!==void 0&&(N.value2=o[I])),N};function cs(i,o=null,v,I,N){var gt;let W=new ZC,{existingCols:Z,existingGroups:ee,existingColKeys:le}=ep(I);W.addExistingKeys(le);let we=rx(i,o,0,v,Z,W,ee,N),{colGroupSvc:Ae}=i,Ee=(gt=Ae==null?void 0:Ae.findMaxDepth(we,0))!=null?gt:0,Ve=Ae?Ae.balanceColumnTree(we,0,Ee,W):we;return Gs(null,Ve,(kt,xt)=>{ls(kt)&&kt.setupExpandable(),kt.originalParent=xt}),{columnTree:Ve,treeDept:Ee}}function ep(i){let o=[],v=[],I=[];return i&&Gs(null,i,N=>{if(ls(N)){let W=N;v.push(W)}else{let W=N;I.push(W.getId()),o.push(W)}}),{existingCols:o,existingGroups:v,existingColKeys:I}}function rx(i,o,v,I,N,W,Z,ee){if(!o)return[];let{colGroupSvc:le}=i,we=new Array(o.length);for(let Ae=0;Ae<we.length;Ae++){let Ee=o[Ae];le&&Mr(Ee)?we[Ae]=le.createProvidedColumnGroup(I,Ee,v,N,W,Z,ee):we[Ae]=th(i,I,Ee,N,W,ee)}return we}function th(i,o,v,I,N,W){var le;let Z=lx(v,I);Z&&(I==null||I.splice(Z.idx,1));let ee=Z==null?void 0:Z.column;if(ee){let we=Zf(i,v,ee.getColId());ee.setColDef(we,v,W),sx(i,ee,we,W)}else{let we=N.getUniqueKey(v.colId,v.field),Ae=Zf(i,v,we);ee=new Ns(Ae,v,we,o),i.context.createBean(ee)}return(le=i.dataTypeSvc)==null||le.addColumnListeners(ee),ee}function Ny(i,o,v,I,N,W,Z,ee){let{sortSvc:le,pinnedCols:we,colFlex:Ae}=i;v!==void 0&&o.setVisible(!v,ee),le&&(le.updateColSort(o,I,ee),N!==void 0&&le.setColSortIndex(o,N)),W!==void 0&&(we==null||we.setColPinned(o,W)),Z!==void 0&&(Ae==null||Ae.setColFlex(o,Z))}function sx(i,o,v,I){Ny(i,o,v.hide,v.sort,v.sortIndex,v.pinned,v.flex,I);let N=o.getFlex();if(!(N!=null&&N>0))if(v.width!=null)o.setActualWidth(v.width,I);else{let W=o.getActualWidth();o.setActualWidth(W,I)}}function lx(i,o){if(o)for(let v=0;v<o.length;v++){let I=o[v].getUserProvidedColDef();if(!I)continue;if(i.colId!=null){if(o[v].getId()===i.colId)return{idx:v,column:o[v]};continue}if(i.field!=null){if(I.field===i.field)return{idx:v,column:o[v]};continue}if(I===i)return{idx:v,column:o[v]}}}function Zf(i,o,v,I){let{gos:N,dataTypeSvc:W,validation:Z}=i,ee={},le=N.get("defaultColDef");yo(ee,le,!1,!0);let we=bI(i,ee,o,v);we&&NA(i,we,ee),yo(ee,o,!1,!0);let Ae=N.get("autoGroupColumnDef"),Ee=_s(N);return o.rowGroup&&Ae&&Ee&&yo(ee,{sort:Ae.sort,initialSort:Ae.initialSort},!1,!0),W==null||W.validateColDef(ee),Z==null||Z.validateColDef(ee,v,I),ee}function bI(i,o,v,I){var Z,ee,le;let N=(Z=i.dataTypeSvc)==null?void 0:Z.updateColDefAndGetColumnType(o,v,I),W=(le=(ee=v.type)!=null?ee:N)!=null?le:o.type;return o.type=W,W?hi(W):void 0}function NA(i,o,v){if(!o.length)return;let I=Object.assign({},Oy),N=i.gos.get("columnTypes")||{};for(let[W,Z]of Object.entries(N))W in I?ii(34,{key:W}):(Z.type&&ii(35),I[W]=Z);o.forEach(W=>{let Z=I[W.trim()];Z?yo(v,Z,!1,!0):ii(36,{t:W})})}function Mr(i){return i.children!==void 0}function Gs(i,o,v){if(o)for(let I=0;I<o.length;I++){let N=o[I];ls(N)&&Gs(N,N.getChildren(),v),v(N,i)}}var Vr=class extends jt{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],i=>this.refreshAll(Bs(i.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],i=>this.recreateColumnDefs(Bs(i.source))),this.addManagedPropertyListener("pivotMode",i=>this.setPivotMode(this.gos.get("pivotMode"),Bs(i.source)))}createColsFromColDefs(i){var Ht,Gt,Wt;let{beans:o}=this,{valueCache:v,colAutosize:I,rowGroupColsSvc:N,pivotColsSvc:W,valueColsSvc:Z,visibleCols:ee,colViewport:le,eventSvc:we}=o,Ae=this.colDefs?jh(o,i):void 0;v==null||v.expire();let Ee=(Ht=this.colDefCols)==null?void 0:Ht.list,Ve=(Gt=this.colDefCols)==null?void 0:Gt.tree,Je=cs(o,this.colDefs,!0,Ve,i);fm(o,(Wt=this.colDefCols)==null?void 0:Wt.tree,Je.columnTree);let gt=Je.columnTree,kt=Je.treeDept,xt=Xf(gt),Ft={};xt.forEach(di=>Ft[di.getId()]=di),this.colDefCols={tree:gt,treeDepth:kt,list:xt,map:Ft},N==null||N.extractCols(i,Ee),W==null||W.extractCols(i,Ee),Z==null||Z.extractCols(i,Ee),this.ready=!0,this.refreshCols(!0),ee.refresh(i),le.checkViewportColumns(),we.dispatchEvent({type:"columnEverythingChanged",source:i}),Ae&&(this.changeEventsDispatching=!0,Ae(),this.changeEventsDispatching=!1),we.dispatchEvent({type:"newColumnsLoaded",source:i}),i==="gridInitializing"&&(I==null||I.applyAutosizeStrategy())}refreshCols(i){var gt;if(!this.colDefCols)return;let o=(gt=this.cols)==null?void 0:gt.tree;this.saveColOrder();let{autoColSvc:v,selectionColSvc:I,quickFilter:N,pivotResultCols:W,showRowGroupCols:Z,rowAutoHeight:ee,visibleCols:le,colViewport:we,eventSvc:Ae}=this.beans,Ee=this.selectCols(W,this.colDefCols);v==null||v.createAutoCols(Ee,kt=>{this.lastOrder=kt(this.lastOrder),this.lastPivotOrder=kt(this.lastPivotOrder)}),v==null||v.addAutoCols(Ee),I==null||I.createSelectionCols(Ee,kt=>{var xt,Ft;this.lastOrder=(xt=kt(this.lastOrder))!=null?xt:null,this.lastPivotOrder=(Ft=kt(this.lastPivotOrder))!=null?Ft:null}),I==null||I.addSelectionCols(Ee);let Ve=kP(this.gos,this.showingPivotResult);(!i||Ve)&&this.restoreColOrder(Ee),this.positionLockedCols(Ee),Z==null||Z.refresh(),N==null||N.refreshCols(),this.setColSpanActive(),ee==null||ee.setAutoHeightActive(Ee),le.clear(),we.clear(),!Gh(o,this.cols.tree)&&Ae.dispatchEvent({type:"gridColumnsChanged"})}selectCols(i,o){var ee;let v=(ee=i==null?void 0:i.getPivotResultCols())!=null?ee:null;this.showingPivotResult=v!=null;let{map:I,list:N,tree:W,treeDepth:Z}=v!=null?v:o;return this.cols={list:N.slice(),map:ge({},I),tree:W.slice(),treeDepth:Z},v&&(v.list.some(we=>{var Ae;return((Ae=this.cols)==null?void 0:Ae.map[we.getColId()])!==void 0})||(this.lastPivotOrder=null)),this.cols}getColsToShow(){var I;if(!this.cols)return[];let i=this.isPivotMode()&&!this.showingPivotResult,o=(I=this.beans.valueColsSvc)==null?void 0:I.columns;return this.cols.list.filter(N=>{let W=Co(N);if(i){let Z=o==null?void 0:o.includes(N);return W||Z}else return W||N.isVisible()})}refreshAll(i){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(i))}setColsVisible(i,o=!1,v){Ic(this.beans,{state:i.map(I=>({colId:typeof I=="string"?I:I.getColId(),hide:!o}))},v)}restoreColOrder(i){let o=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!o)return;let v=new Map(o.map((we,Ae)=>[we,Ae]));if(!i.list.some(we=>v.has(we)))return;let N=new Map(i.list.map(we=>[we,!0])),W=o.filter(we=>N.has(we)),Z=new Map(W.map(we=>[we,!0])),ee=i.list.filter(we=>!Z.has(we)),le=W.slice();ee.forEach(we=>{let Ae=we.getOriginalParent();if(!Ae){le.push(we);return}let Ee=[];for(;!Ee.length&&Ae;)Ae.getLeafColumns().forEach(kt=>{let xt=le.indexOf(kt)>=0,Ft=Ee.indexOf(kt)<0;xt&&Ft&&Ee.push(kt)}),Ae=Ae.getOriginalParent();if(!Ee.length){le.push(we);return}let Ve=Ee.map(gt=>le.indexOf(gt)),Je=Math.max(...Ve);le.splice(Je+1,0,we)}),i.list=le}positionLockedCols(i){i.list=$u(i.list,this.gos)}saveColOrder(){var i,o,v,I;this.showingPivotResult?this.lastPivotOrder=(o=(i=this.cols)==null?void 0:i.list)!=null?o:null:this.lastOrder=(I=(v=this.cols)==null?void 0:v.list)!=null?I:null}getColumnDefs(){var i,o,v;return this.colDefCols?(v=this.beans.colDefFactory)==null?void 0:v.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,(o=(i=this.cols)==null?void 0:i.list)!=null?o:[]):void 0}setColSpanActive(){var i;this.colSpanActive=!!((i=this.cols)!=null&&i.list.some(o=>o.getColDef().colSpan!=null))}isPivotMode(){return this.pivotMode}setPivotMode(i,o){if(i===this.pivotMode||(this.pivotMode=i,!this.ready))return;this.refreshCols(!1);let{visibleCols:v,eventSvc:I}=this.beans;v.refresh(o),I.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){var o;let i=(o=this.beans.pivotColsSvc)==null?void 0:o.columns;return this.pivotMode&&!!(i!=null&&i.length)}recreateColumnDefs(i){var o;this.cols&&((o=this.beans.autoColSvc)==null||o.updateAutoCols(i),this.createColsFromColDefs(i))}setColumnDefs(i,o){this.colDefs=i,this.createColsFromColDefs(o)}destroy(){var i;fm(this.beans,(i=this.colDefCols)==null?void 0:i.tree),super.destroy()}getColTree(){var i,o;return(o=(i=this.cols)==null?void 0:i.tree)!=null?o:[]}getColDefColTree(){var i,o;return(o=(i=this.colDefCols)==null?void 0:i.tree)!=null?o:[]}getColDefCols(){var i,o;return(o=(i=this.colDefCols)==null?void 0:i.list)!=null?o:null}getCols(){var i,o;return(o=(i=this.cols)==null?void 0:i.list)!=null?o:[]}getAllCols(){var N,W,Z,ee,le,we,Ae;let{pivotResultCols:i,autoColSvc:o,selectionColSvc:v}=this.beans,I=(N=i==null?void 0:i.getPivotResultCols())==null?void 0:N.list;return[(Z=(W=this.colDefCols)==null?void 0:W.list)!=null?Z:[],(le=(ee=o==null?void 0:o.autoCols)==null?void 0:ee.list)!=null?le:[],(Ae=(we=v==null?void 0:v.selectionCols)==null?void 0:we.list)!=null?Ae:[],I!=null?I:[]].flat()}getColsForKeys(i){return i?i.map(o=>this.getCol(o)).filter(o=>o!=null):[]}getColDefCol(i){var o;return(o=this.colDefCols)!=null&&o.list?this.getColFromCollection(i,this.colDefCols):null}getCol(i){return i==null?null:this.getColFromCollection(i,this.cols)}getColFromCollection(i,o){var N,W;if(o==null)return null;let{map:v,list:I}=o;if(typeof i=="string"&&v[i])return v[i];for(let Z=0;Z<I.length;Z++)if(No(I[Z],i))return I[Z];return(W=(N=this.beans.autoColSvc)==null?void 0:N.getAutoCol(i))!=null?W:null}},jn=class extends jt{constructor(){super(...arguments),this.dispatchColumnChangedEvent=vI,this.columns=[]}wireBeans(i){this.colModel=i.colModel,this.aggFuncSvc=i.aggFuncSvc,this.visibleCols=i.visibleCols}sortColumns(i){this.columns.sort(i)}setColumns(i,o){this.setColList(i,this.columns,this.eventName,!0,!0,this.columnProcessors.set,o)}addColumns(i,o){this.updateColList(i,this.columns,!0,!0,this.columnProcessors.add,this.eventName,o)}removeColumns(i,o){this.updateColList(i,this.columns,!1,!0,this.columnProcessors.remove,this.eventName,o)}setColList(i=[],o,v,I,N,W,Z){let ee=this.colModel.getCols();if(!ee||ee.length===0)return;let le=new Map;o.forEach((Ae,Ee)=>le.set(Ae,Ee)),o.length=0,mi(i)&&i.forEach(Ae=>{let Ee=this.colModel.getColDefCol(Ae);Ee&&o.push(Ee)}),o.forEach((Ae,Ee)=>{let Ve=le.get(Ae);if(Ve===void 0){le.set(Ae,0);return}I&&Ve!==Ee||le.delete(Ae)}),(this.colModel.getColDefCols()||[]).forEach(Ae=>{let Ee=o.indexOf(Ae)>=0;W(Ae,Ee,Z)}),N&&this.colModel.refreshCols(!1),this.visibleCols.refresh(Z),this.dispatchColumnChangedEvent(this.eventSvc,v,[...le.keys()],Z)}updateColList(i=[],o,v,I,N,W,Z){if(!i||i.length===0)return;let ee=!1,le=new Set;if(i.forEach(Ae=>{if(!Ae)return;let Ee=this.colModel.getColDefCol(Ae);if(Ee){if(le.add(Ee),v){if(o.indexOf(Ee)>=0)return;o.push(Ee)}else{let Ve=o.indexOf(Ee);if(Ve<0)return;for(let Je=Ve+1;Je<o.length;Je++)le.add(o[Je]);bo(o,Ee)}N(Ee,v,Z),ee=!0}}),!ee)return;I&&this.colModel.refreshCols(!1),this.visibleCols.refresh(Z);let we=Array.from(le);this.eventSvc.dispatchEvent({type:W,columns:we,column:we.length===1?we[0]:null,source:Z})}extractCols(i,o=[]){let v=this.columns,I=[],N=[],{setFlagFunc:W,getIndexFunc:Z,getInitialIndexFunc:ee,getValueFunc:le,getInitialValueFunc:we}=this.columnExtractors;(this.colModel.getColDefCols()||[]).forEach(Je=>{let gt=o.indexOf(Je)<0,kt=Je.getColDef(),xt=le(kt),Ft=we(kt),Ht=Z(kt),Gt=ee(kt),Wt;xt!==void 0?Wt=xt:Ht!==void 0?Ht===null?Wt=!1:Wt=Ht>=0:gt?Ft!==void 0?Wt=Ft:Gt!==void 0?Wt=Gt!=null&&Gt>=0:Wt=!1:Wt=v.indexOf(Je)>=0,Wt&&((gt?Ht!=null||Gt!=null:Ht!=null)?I.push(Je):N.push(Je))});let Ee=Je=>{let gt=Z(Je.getColDef()),kt=ee(Je.getColDef());return gt!=null?gt:kt};I.sort((Je,gt)=>{let kt=Ee(Je),xt=Ee(gt);return kt===xt?0:kt<xt?-1:1});let Ve=[].concat(I);return v.forEach(Je=>{N.indexOf(Je)>=0&&Ve.push(Je)}),N.forEach(Je=>{Ve.indexOf(Je)<0&&Ve.push(Je)}),v.forEach(Je=>{Ve.indexOf(Je)<0&&W(Je,!1,i)}),Ve.forEach(Je=>{v.indexOf(Je)<0&&W(Je,!0,i)}),this.columns=Ve}restoreColumnOrder(i,o){let v=this.columns,I=this.colModel.getColDefCols();if(!v.length||!I)return i;let N=Object.keys(o),W=new Set(N),Z=new Set(N),ee=new Set(v.map(Gt=>{let Wt=Gt.getColId();return Z.delete(Wt),Wt}).concat(N)),le=[],we={},Ae=0;for(let Gt=0;Gt<I.length;Gt++){let Wt=I[Gt].getColId();ee.has(Wt)&&(le.push(Wt),we[Wt]=Ae++)}let Ee=1e3,Ve=!1,Je=0,gt=this.columnOrdering.enableProp,kt=this.columnOrdering.initialEnableProp,xt=this.columnOrdering.indexProp,Ft=this.columnOrdering.initialIndexProp,Ht=Gt=>{let Wt=we[Gt];for(let di=Je;di<Wt;di++){let Di=le[di];Z.has(Di)&&(o[Di][xt]=Ee++,Z.delete(Di))}Je=Wt};return v.forEach(Gt=>{let Wt=Gt.getColId();if(W.has(Wt))Ht(Wt),o[Wt][xt]=Ee++;else{let di=Gt.getColDef();(di[xt]===null||di[xt]===void 0&&di[Ft]==null)&&(Ve||(di[gt]||di[gt]===void 0&&di[kt]?Ht(Wt):(Z.forEach(xn=>{o[xn][xt]=Ee+we[xn]}),Ee+=le.length,Ve=!0)),i[Wt]||(i[Wt]={colId:Wt}),i[Wt][xt]=Ee++)}}),i}},jr=class{constructor(){this.existingIds={}}getInstanceIdForKey(i){let o=this.existingIds[i],v;return typeof o!="number"?v=0:v=o+1,this.existingIds[i]=v,v}},ih=class extends jt{};function nh(i,o,v){return v&&i.addDestroyFunc(()=>o.destroyBean(v)),v!=null?v:i}var Hh=class{constructor(i){this.cssClassStates={},this.getGui=i}addCssClass(i){this.addOrRemoveCssClass(i,!0)}removeCssClass(i){this.addOrRemoveCssClass(i,!1)}containsCssClass(i){let o=this.getGui();return o?o.classList.contains(i):!1}addOrRemoveCssClass(i,o){if(!i)return;if(i.indexOf(" ")>=0){let I=(i||"").split(" ");if(I.length>1){I.forEach(N=>this.addOrRemoveCssClass(N,o));return}}if(this.cssClassStates[i]!==o&&i.length){let I=this.getGui();I&&I.classList.toggle(i,o),this.cssClassStates[i]=o}}},ah=0,fi=null,cn=class extends jt{constructor(i,o){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=ah++,this.cssClassManager=new Hh(()=>this.eGui),this.componentSelectors=new Map((o!=null?o:[]).map(v=>[v.selector,v])),i&&this.setTemplate(i)}preConstruct(){var o,v,I;this.wireTemplate(this.getGui());let i="component-"+((v=(o=Object.getPrototypeOf(this))==null?void 0:o.constructor)==null?void 0:v.name);(I=this.css)==null||I.forEach(N=>this.beans.environment.addGlobalCSS(N,i))}wireTemplate(i,o){i&&this.gos&&(this.applyElementsToComponent(i),this.createChildComponentsFromTags(i,o))}getCompId(){return this.compId}getDataRefAttribute(i){return i.getAttribute?i.getAttribute("data-ref"):null}applyElementsToComponent(i,o,v,I=null){if(o===void 0&&(o=this.getDataRefAttribute(i)),o){let N=this[o];if(N===fi)this[o]=I!=null?I:i;else{let W=v&&v[o];if(!this.suppressDataRefValidation&&!W)throw new Error(`data-ref: ${o} on ${this.constructor.name} with ${N}`)}}}createChildComponentsFromTags(i,o){ad(i.childNodes).forEach(I=>{if(!(I instanceof HTMLElement))return;let N=this.createComponentFromElement(I,W=>{W.getGui()&&this.copyAttributesFromNode(I,W.getGui())},o);if(N){if(N.addItems&&I.children.length){this.createChildComponentsFromTags(I,o);let W=Array.prototype.slice.call(I.children);N.addItems(W)}this.swapComponentForNode(N,i,I)}else I.childNodes&&this.createChildComponentsFromTags(I,o)})}createComponentFromElement(i,o,v){let I=i.nodeName,N=this.getDataRefAttribute(i),W=I.indexOf("AG-")===0,Z=W?this.componentSelectors.get(I):null,ee=null;if(Z){let le=v&&N?v[N]:void 0;ee=new Z.component(le),ee.setParentComponent(this),this.createBean(ee,null,o)}else if(W)throw new Error(`selector: ${I}`);return this.applyElementsToComponent(i,N,v,ee),ee}copyAttributesFromNode(i,o){od(i.attributes,(v,I)=>o.setAttribute(v,I))}swapComponentForNode(i,o,v){let I=i.getGui();o.replaceChild(I,v),o.insertBefore(document.createComment(v.nodeName),I),this.addDestroyFunc(this.destroyBean.bind(this,i))}activateTabIndex(i){let o=this.gos.get("tabIndex");i||(i=[]),i.length||i.push(this.getGui()),i.forEach(v=>v.setAttribute("tabindex",o.toString()))}setTemplate(i,o,v){let I=as(i);this.setTemplateFromElement(I,o,v)}setTemplateFromElement(i,o,v,I=!1){if(this.eGui=i,this.suppressDataRefValidation=I,o)for(let N=0;N<o.length;N++){let W=o[N];this.componentSelectors.set(W.selector,W)}this.wireTemplate(i,v)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(i){this.parentComponent=i}getParentComponent(){return this.parentComponent}setGui(i){this.eGui=i}queryForHtmlElement(i){return this.eGui.querySelector(i)}getContainerAndElement(i,o){let v=o;return i==null?null:(v||(v=this.eGui),_h(i)?{element:i,parent:v}:{element:i.getGui(),parent:v})}prependChild(i,o){let{element:v,parent:I}=this.getContainerAndElement(i,o)||{};!v||!I||I.insertAdjacentElement("afterbegin",v)}appendChild(i,o){let{element:v,parent:I}=this.getContainerAndElement(i,o)||{};!v||!I||I.appendChild(v)}isDisplayed(){return this.displayed}setVisible(i,o={}){if(i!==this.visible){this.visible=i;let{skipAriaHidden:v}=o;qd(this.eGui,i,{skipAriaHidden:v})}}setDisplayed(i,o={}){if(i!==this.displayed){this.displayed=i;let{skipAriaHidden:v}=o;Vn(this.eGui,i,{skipAriaHidden:v});let I={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(I)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(i,o,v){this.eGui.addEventListener(i,o,v),this.addDestroyFunc(()=>this.eGui.removeEventListener(i,o))}addCssClass(i){this.cssClassManager.addCssClass(i)}removeCssClass(i){this.cssClassManager.removeCssClass(i)}containsCssClass(i){return this.cssClassManager.containsCssClass(i)}addOrRemoveCssClass(i,o){this.cssClassManager.addOrRemoveCssClass(i,o)}registerCSS(i){this.css||(this.css=[]),this.css.push(i)}};function fl(i){return typeof i.then=="function"}var ds=class DO{constructor(o){this.status=0,this.resolution=null,this.waiters=[],o(v=>this.onDone(v),v=>this.onReject(v))}static all(o){return o.length?new DO(v=>{let I=o.length,N=new Array(I);o.forEach((W,Z)=>{W.then(ee=>{N[Z]=ee,I--,I===0&&v(N)})})}):DO.resolve()}static resolve(o=null){return new DO(v=>v(o))}then(o){return new DO(v=>{this.status===1?v(o(this.resolution)):this.waiters.push(I=>v(o(I)))})}onDone(o){this.status=1,this.resolution=o,this.waiters.forEach(v=>v(o))}onReject(o){}};function e0(i){return i?i.prototype&&"getGui"in i.prototype:!1}function zy(i,o,v,I){let{name:N}=v,W,Z,ee,le,we,Ae;if(o){let Ee=o,Ve=Ee[N+"Selector"],Je=Ve?Ve(I):null,gt=kt=>{typeof kt=="string"?W=kt:kt!=null&&kt!==!0&&(i.isFrameworkComponent(kt)?ee=kt:Z=kt)};Je?(gt(Je.component),le=Je.params,we=Je.popup,Ae=Je.popupPosition):gt(Ee[N])}return{compName:W,jsComp:Z,fwComp:ee,paramsFromSelector:le,popupFromSelector:we,popupPositionFromSelector:Ae}}var cx=class extends jt{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(i){this.agCompUtils=i.agCompUtils,this.registry=i.registry,this.frameworkCompWrapper=i.frameworkCompWrapper,this.gridOptions=i.gridOptions}getCompDetailsFromGridOptions(i,o,v,I=!1){return this.getCompDetails(this.gridOptions,i,o,v,I)}getCompDetails(i,o,v,I,N=!1){var Ht;let{name:W,cellRenderer:Z}=o,{compName:ee,jsComp:le,fwComp:we,paramsFromSelector:Ae,popupFromSelector:Ee,popupPositionFromSelector:Ve}=zy(this.beans.frameworkOverrides,i,o,I),Je,gt=Gt=>{let Wt=this.registry.getUserComponent(W,Gt);Wt&&(le=Wt.componentFromFramework?void 0:Wt.component,we=Wt.componentFromFramework?Wt.component:void 0,Je=Wt.params)};if(ee!=null&&gt(ee),le==null&&we==null&&v!=null&&gt(v),le&&Z&&!e0(le)&&(le=(Ht=this.agCompUtils)==null?void 0:Ht.adaptFunction(o,le)),!le&&!we){let{validation:Gt}=this.beans;N&&(ee!==v||!v)?ee?Gt!=null&&Gt.isProvidedUserComp(ee)||aa(50,{compName:ee}):v?Gt||aa(260,He(ge({},this.gos.getModuleErrorParams()),{propName:W,compName:v})):aa(216,{name:W}):v&&!Gt&&aa(146,{comp:v});return}let kt=this.mergeParams(i,o,I,Ae,Je),xt=le==null,Ft=le!=null?le:we;return{componentFromFramework:xt,componentClass:Ft,params:kt,type:o,popupFromSelector:Ee,popupPositionFromSelector:Ve,newAgStackInstance:()=>this.newAgStackInstance(Ft,xt,kt,o)}}newAgStackInstance(i,o,v,I){var ee;let N=!o,W;N?W=new i:W=this.frameworkCompWrapper.wrap(i,I.mandatoryMethods,I.optionalMethods,I),this.createBean(W);let Z=(ee=W.init)==null?void 0:ee.call(W,v);return Z==null?ds.resolve(W):Z.then(()=>W)}mergeParams(i,o,v,I=null,N){let W=this.gos.getGridCommonParams();yo(W,v),N&&yo(W,N);let Z=i,ee=Z&&Z[o.name+"Params"];if(typeof ee=="function"){let le=ee(v);yo(W,le)}else typeof ee=="object"&&yo(W,ee);return yo(W,I),W}},CI={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},zA={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},dx={name:"headerComponent",optionalMethods:["refresh"]},vm={name:"innerHeaderComponent"},BA={name:"innerHeaderGroupComponent"},SI={name:"headerGroupComponent"},wI={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},GA={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},ym={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"]},t0={name:"loadingCellRenderer",cellRenderer:!0},VA={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},i0={name:"loadingOverlayComponent",optionalMethods:["refresh"]},us={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},jA={name:"tooltipComponent"},ux={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},By={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},n0={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},Vs={name:"loadingCellRenderer",cellRenderer:!0},Wh={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},bm={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function $f(i,o){return i.getCompDetailsFromGridOptions(zA,"agDragAndDropImage",o,!0)}function hx(i,o,v){return i.getCompDetails(o,wI,void 0,v)}function Cm(i,o,v){return i.getCompDetails(o,dx,"agColumnHeader",v)}function gx(i,o,v){return i.getCompDetails(o,vm,void 0,v)}function Sm(i,o){let v=o.columnGroup.getColGroupDef();return i.getCompDetails(v,SI,"agColumnGroupHeader",o)}function Ho(i,o,v){return i.getCompDetails(o,BA,void 0,v)}function px(i,o){return i.getCompDetailsFromGridOptions(n0,void 0,o,!0)}function mx(i,o){return i.getCompDetailsFromGridOptions(Vs,"agLoadingCellRenderer",o,!0)}function HA(i,o){return i.getCompDetailsFromGridOptions(Wh,"agGroupRowRenderer",o,!0)}function Ji(i,o){return i.getCompDetailsFromGridOptions(bm,"agDetailCellRenderer",o,!0)}function Gy(i,o,v){return i.getCompDetails(o,GA,void 0,v)}function WA(i,o,v){return i.getCompDetails(o,ym,void 0,v)}function js(i,o,v){return i.getCompDetails(o,t0,"agSkeletonCellRenderer",v,!0)}function Qf(i,o,v){return i.getCompDetails(o,VA,"agCellEditor",v,!0)}function $d(i,o,v,I){return i.getCompDetails(o,ux,I,v,!0)}function Hr(i,o){return i.getCompDetailsFromGridOptions(CI,"agDateInput",o,!0)}function On(i,o){return i.getCompDetailsFromGridOptions(i0,"agLoadingOverlay",o,!0)}function ta(i,o){return i.getCompDetailsFromGridOptions(us,"agNoRowsOverlay",o,!0)}function Jf(i,o){return i.getCompDetails(o.colDef,jA,"agTooltipComponent",o,!0)}function fx(i,o,v,I){return i.getCompDetails(o,By,I,v)}function vx(i,o){return zy(i,o,ux)}function yx(i,o,v){return i.mergeParams(o,ux,v)}function oh(i){let o=i;return o!=null&&o.getFrameworkComponentInstance!=null?o.getFrameworkComponentInstance():i}var bx=new Set,ev={},kr={},Vy,Cx=!1;function Sx(i){let[o,v]=i.version.split(".")||[],[I,N]=Vy.split(".")||[];return o===I&&v===N}function IP(i){Vy||(Vy=i.version);let o=v=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${v} Please update all modules to the same version.`;if(i.version?Sx(i)||sd(o(`'${i.moduleName}' is version ${i.version} but the other modules are version ${Vy}.`)):sd(o(`'${i.moduleName}' is incompatible.`)),i.validate){let v=i.validate();v.isValid||sd(`${v.message}`)}}function jy(i,o){var N;IP(i);let v=(N=i.rowModels)!=null?N:["all"];bx.add(i);let I;o!==void 0?(Cx=!0,kr[o]===void 0&&(kr[o]={}),I=kr[o]):I=ev,v.forEach(W=>{I[W]===void 0&&(I[W]={}),I[W][i.moduleName]=i}),i.dependsOn&&i.dependsOn.forEach(W=>jy(W,o))}function TP(i){delete kr[i]}function Ma(i,o,v){let I=N=>{var W,Z,ee;return!!((W=ev[N])!=null&&W[i])||!!((ee=(Z=kr[o])==null?void 0:Z[N])!=null&&ee[i])};return I(v)||I("all")}function co(){return Cx}function zo(i,o){var I,N,W,Z,ee;let v=(I=kr[i])!=null?I:{};return[...Object.values((N=ev.all)!=null?N:{}),...Object.values((W=v.all)!=null?W:{}),...Object.values((Z=ev[o])!=null?Z:{}),...Object.values((ee=v[o])!=null?ee:{})]}function Qd(){return new Set(bx)}function Nn(i,o){var I,N,W;let v=(I=kr[i])!=null?I:{};return[...Object.values((N=v.all)!=null?N:{}),...Object.values((W=v[o])!=null?W:{})]}var dn=class{static register(i){jy(i,void 0)}static registerModules(i){i.forEach(o=>jy(o,void 0))}},Uh=class{constructor(i){this.beans={},this.createdBeans=[],this.destroyed=!1,!(!i||!i.beanClasses)&&(this.beanDestroyComparator=i.beanDestroyComparator,this.init(i))}init(i){var o;Object.entries(i.providedBeanInstances).forEach(([v,I])=>{this.beans[v]=I}),i.beanClasses.forEach(v=>{let I=new v;I.beanName?this.beans[I.beanName]=I:console.error(`Bean ${v.name} is missing beanName`),this.createdBeans.push(I)}),(o=i.derivedBeans)==null||o.forEach(v=>{let{beanName:I,bean:N}=v(this);this.beans[I]=N,this.createdBeans.push(N)}),i.beanInitComparator&&this.createdBeans.sort(i.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(i,o){if(!i)throw Error("null bean");return this.initBeans([i],o),i}initBeans(i,o){i.forEach(v=>{var I,N;(I=v.preWireBeans)==null||I.call(v,this.beans),(N=v.wireBeans)==null||N.call(v,this.beans)}),i.forEach(v=>{var I;return(I=v.preConstruct)==null?void 0:I.call(v)}),o&&i.forEach(o),i.forEach(v=>{var I;return(I=v.postConstruct)==null?void 0:I.call(v)})}getBeans(){return this.beans}getBean(i){return this.beans[i]}destroy(){if(this.destroyed)return;this.destroyed=!0;let i=this.getBeanInstances();this.beanDestroyComparator&&i.sort(this.beanDestroyComparator),this.destroyBeans(i),this.beans={},this.createdBeans=[]}destroyBean(i){var o;(o=i==null?void 0:i.destroy)==null||o.call(i)}destroyBeans(i){if(i)for(let o=0;o<i.length;o++)this.destroyBean(i[o]);return[]}isDestroyed(){return this.destroyed}},zn=class extends Uh{init(i){this.gridId=i.gridId,this.beans.context=this,this.destroyCallback=i.destroyCallback,super.init(i)}destroy(){var i;super.destroy(),TP(this.gridId),(i=this.destroyCallback)==null||i.call(this)}getGridId(){return this.gridId}},Ge="ag-column-first",uo="ag-column-last";function ka(i,o,v,I){return Oa(i)?[]:UA(i.headerClass,i,o,v,I)}function a0(i,o,v,I){return Oa(i)?[]:UA(i.toolPanelClass,i,o,v,I)}function Hy(i,o,v){i.addOrRemoveCssClass(Ge,v.isColAtEdge(o,"first")),i.addOrRemoveCssClass(uo,v.isColAtEdge(o,"last"))}function RP(i,o,v,I){return o.addGridCommonParams({colDef:i,column:v,columnGroup:I})}function UA(i,o,v,I,N){if(Oa(i))return[];let W;if(typeof i=="function"){let Z=RP(o,v,I,N);W=i(Z)}else W=i;return typeof W=="string"?[W]:Array.isArray(W)?[...W]:[]}function tp(i,o){let v=WC(i);v.requestAnimationFrame?v.requestAnimationFrame(o):v.webkitRequestAnimationFrame?v.webkitRequestAnimationFrame(o):v.setTimeout(o,0)}var KA=class extends jt{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastPage=0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}setScrollTop(i){var N;let{gos:o,pagination:v}=this.beans,I=o.get("pagination");if(this.scrollGoingDown=i>=this.lastScrollTop,I&&i===0){let W=(N=v==null?void 0:v.getCurrentPage())!=null?N:0;W!==this.lastPage&&(this.lastPage=W,this.scrollGoingDown=!0)}this.lastScrollTop=i}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame")}verifyAnimationFrameOn(i){this.active===!1&&ii(92,{methodName:i})}createTask(i,o,v){this.verifyAnimationFrameOn(v);let I={task:i,index:o,createOrder:++this.taskCount};this.addTaskToList(this[v],I),this.schedule()}cancelTask(i){this.cancelledTasks.add(i)}addTaskToList(i,o){i.list.push(o),i.sorted=!1}sortTaskList(i){if(i.sorted)return;let o=this.scrollGoingDown?1:-1;i.list.sort((v,I)=>v.index!==I.index?o*(I.index-v.index):I.createOrder-v.createOrder),i.sorted=!0}addDestroyTask(i){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(i),this.schedule()}executeFrame(i){this.verifyAnimationFrameOn("executeFrame");let o=this.createTasksP1,v=o.list,I=this.createTasksP2,N=I.list,W=this.destroyTasks,Z=new Date().getTime(),ee=new Date().getTime()-Z,le=i<=0,we=this.beans.ctrlsSvc.getScrollFeature();for(;le||ee<i;){if(!we.scrollGridIfNeeded()){let Ee;if(v.length)this.sortTaskList(o),Ee=v.pop().task;else if(N.length)this.sortTaskList(I),Ee=N.pop().task;else if(W.length)Ee=W.pop();else{this.cancelledTasks.clear();break}this.cancelledTasks.has(Ee)||Ee()}ee=new Date().getTime()-Z}v.length||N.length||W.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){let i=this.executeFrame.bind(this,60);tp(this.beans,i)}isQueueEmpty(){return!this.ticking}},Bt={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"},Hs=!1,rh=0;function Ei(i){rh>0||(i.addEventListener("keydown",Oi),i.addEventListener("mousedown",Oi))}function o0(i){rh>0||(i.removeEventListener("keydown",Oi),i.removeEventListener("mousedown",Oi))}function Oi(i){let o=Hs,v=i.type==="keydown";v&&(i.ctrlKey||i.metaKey||i.altKey)||o!==v&&(Hs=v)}function vl(i){let o=eo(i);return Ei(o),rh++,()=>{rh--,o0(o)}}function ei(){return Hs}function Bn(i,o,v){o.addManagedElementListeners(v,{keydown:I=>{if(!I.defaultPrevented&&I.key===Bt.TAB){let N=I.shiftKey;ni(i,v,!1,N)||Wr(i,N)&&I.preventDefault()}}})}function Kh(i,o,v=!1){let I=Nr,N=Rs;o&&(N+=", "+o),v&&(N+=', [tabindex="-1"]');let W=Array.prototype.slice.apply(i.querySelectorAll(I)).filter(le=>wa(le)),Z=Array.prototype.slice.apply(i.querySelectorAll(N));return Z.length?((le,we)=>le.filter(Ae=>we.indexOf(Ae)===-1))(W,Z):W}function Jd(i,o=!1,v=!1){let I=Kh(i,null,v),N=o?Yn(I):I[0];return N?(N.focus({preventScroll:!0}),!0):!1}function ni(i,o,v,I){let N=Kh(o,v?':not([tabindex="-1"])':null),W=ga(i),Z;v?Z=N.findIndex(le=>le.contains(W)):Z=N.indexOf(W);let ee=Z+(I?-1:1);return ee<0||ee>=N.length?null:N[ee]}function Cn(i,o=5){let v=0;for(;i&&fo(i)===null&&++v<=o;)i=i.parentElement;return fo(i)===null?null:i}function Ar(i,o){return i.ctrlsSvc.get("gridCtrl").focusInnerElement(o)}function sh(i){var o;return i.gos.get("suppressHeaderFocus")||!!((o=i.overlays)!=null&&o.isExclusive())}function ud(i){var o;return i.gos.get("suppressCellFocus")||!!((o=i.overlays)!=null&&o.isExclusive())}function Wr(i,o,v=!1){let I=i.ctrlsSvc.get("gridCtrl");return!v&&I.focusNextInnerContainer(o)?!0:((v||!o&&!I.isDetailGrid())&&I.forceFocusOutOfContainer(o),!1)}var tv=/[&<>"']/g,Wa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function yl(i,o){if(i==null)return null;let v=i.toString().toString();return o?v:v.replace(tv,I=>Wa[I])}function bl(i,o=!1){return i===Bt.DELETE?!0:!o&&i===Bt.BACKSPACE?Qn():!1}var hr=class extends jt{constructor(i,o,v,I){super(),this.cellCtrl=i,this.rowNode=v,this.rowCtrl=I,this.beans=o}setComp(i){this.eGui=i}onKeyDown(i){let o=i.key;switch(o){case Bt.ENTER:this.onEnterKeyDown(i);break;case Bt.F2:this.onF2KeyDown(i);break;case Bt.ESCAPE:this.onEscapeKeyDown(i);break;case Bt.TAB:this.onTabKeyDown(i);break;case Bt.BACKSPACE:case Bt.DELETE:this.onBackspaceOrDeleteKeyDown(o,i);break;case Bt.DOWN:case Bt.UP:case Bt.RIGHT:case Bt.LEFT:this.onNavigationKeyDown(i,o);break}}onNavigationKeyDown(i,o){var v;this.cellCtrl.editing||(i.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(i):(v=this.beans.navigation)==null||v.navigateToNextCell(i,o,this.cellCtrl.cellPosition,!0),i.preventDefault())}onShiftRangeSelect(i){let{rangeSvc:o,navigation:v}=this.beans;if(!o)return;let I=o.extendLatestRangeInDirection(i);I&&(v==null||v.ensureCellVisible(I))}onTabKeyDown(i){var o;(o=this.beans.navigation)==null||o.onTabKeyDown(this.cellCtrl,i)}onBackspaceOrDeleteKeyDown(i,o){var le;let{cellCtrl:v,beans:I,rowNode:N}=this,{gos:W,rangeSvc:Z,eventSvc:ee}=I;if(!v.editing){if(ee.dispatchEvent({type:"keyShortcutChangedCellStart"}),bl(i,W.get("enableCellEditingOnBackspace"))){if(Z&&Jo(W))Z.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(v.isCellEditable()){let{column:we}=v,Ae=this.beans.valueSvc.getDeleteValue(we,N);N.setDataValue(we,Ae,"cellClear")}}else(le=I.editSvc)==null||le.startRowOrCellEdit(v,i,o);ee.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(i){var I,N;let{cellCtrl:o,beans:v}=this;if(o.editing||this.rowCtrl.editing)o.stopEditingAndFocus(!1,i.shiftKey);else if(v.gos.get("enterNavigatesVertically")){let W=i.shiftKey?Bt.UP:Bt.DOWN;(I=v.navigation)==null||I.navigateToNextCell(null,W,o.cellPosition,!1)}else(N=v.editSvc)==null||N.startRowOrCellEdit(o,Bt.ENTER,i),o.editing&&i.preventDefault()}onF2KeyDown(i){var I;let{cellCtrl:o,beans:v}=this;o.editing||(I=v.editSvc)==null||I.startRowOrCellEdit(o,Bt.F2,i)}onEscapeKeyDown(i){var I;let{cellCtrl:o,beans:v}=this;o.editing&&((I=v.editSvc)==null||I.stopRowOrCellEdit(o,!0),o.focusCell(!0))}processCharacter(i){var N;if(i.target!==this.eGui||this.cellCtrl.editing)return;let I=i.key;I===Bt.SPACE?this.onSpaceKeyDown(i):(N=this.beans.editSvc)!=null&&N.startRowOrCellEdit(this.cellCtrl,I,i)&&i.preventDefault()}onSpaceKeyDown(i){var v;let{gos:o}=this.beans;!this.cellCtrl.editing&&Ql(o)&&((v=this.beans.selectionSvc)==null||v.handleSelectionEvent(i,this.rowNode,"spaceKey")),i.preventDefault()}destroy(){super.destroy()}},sa=class extends jt{constructor(i,o,v){super(),this.cellCtrl=i,this.column=v,this.beans=o}onMouseEvent(i,o){if(!Ri(o))switch(i){case"click":this.onCellClicked(o);break;case"mousedown":case"touchstart":this.onMouseDown(o);break;case"dblclick":this.onCellDoubleClicked(o);break;case"mouseout":this.onMouseOut(o);break;case"mouseover":this.onMouseOver(o);break}}onCellClicked(i){var we;if((we=this.beans.touchSvc)!=null&&we.handleCellDoubleClick(this,i))return;let{eventSvc:o,rangeSvc:v,gos:I,editSvc:N}=this.beans,W=i.ctrlKey||i.metaKey;v&&W&&v.getCellRangeCount(this.cellCtrl.cellPosition)>1&&v.intersectLastRange(!0);let Z=this.cellCtrl.createEvent(i,"cellClicked");o.dispatchEvent(Z);let ee=this.column.getColDef();ee.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{ee.onCellClicked(Z)})},0),(I.get("singleClickEdit")||ee.singleClickEdit)&&!I.get("suppressClickEdit")&&!(i.shiftKey&&(v==null?void 0:v.getCellRanges().length)!=0)&&(N==null||N.startRowOrCellEdit(this.cellCtrl))}onCellDoubleClicked(i){let{column:o,beans:v,cellCtrl:I}=this,{eventSvc:N,frameworkOverrides:W,gos:Z,editSvc:ee}=v,le=o.getColDef(),we=I.createEvent(i,"cellDoubleClicked");N.dispatchEvent(we),typeof le.onCellDoubleClicked=="function"&&window.setTimeout(()=>{W.wrapOutgoing(()=>{le.onCellDoubleClicked(we)})},0),!Z.get("singleClickEdit")&&!Z.get("suppressClickEdit")&&(ee==null||ee.startRowOrCellEdit(I,null,i))}onMouseDown(i){let{ctrlKey:o,metaKey:v,shiftKey:I}=i,N=i.target,{cellCtrl:W,beans:Z}=this,{eventSvc:ee,rangeSvc:le,focusSvc:we,gos:Ae}=Z;if(this.isRightClickInExistingRange(i))return;let Ee=le&&!le.isEmpty(),Ve=this.containsWidget(N),{cellPosition:Je}=W;if(!I||!Ee){let kt=Ae.get("enableCellTextSelection")&&i.defaultPrevented,xt=(ha()||kt)&&!W.editing&&!Uu(N)&&!Ve;W.focusCell(xt)}if(I&&Ee&&!we.isCellFocused(Je)){i.preventDefault();let gt=we.getFocusedCell();if(gt){let{column:kt,rowIndex:xt,rowPinned:Ft}=gt,Ht=Z.rowRenderer.getRowByPosition({rowIndex:xt,rowPinned:Ft}),Gt=Ht==null?void 0:Ht.getCellCtrl(kt);Gt!=null&&Gt.editing&&Gt.stopEditing(),we.setFocusedCell({column:kt,rowIndex:xt,rowPinned:Ft,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!Ve){if(le)if(I)le.extendLatestRangeToCell(Je);else{let gt=o||v;le.setRangeToCell(Je,gt)}ee.dispatchEvent(this.cellCtrl.createEvent(i,"cellMouseDown"))}}isRightClickInExistingRange(i){let{rangeSvc:o}=this.beans;if(o){let v=o.isCellInAnyRange(this.cellCtrl.cellPosition),I=i.button===2||i.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(v&&I)return!0}return!1}containsWidget(i){return is(i,"ag-selection-checkbox",3)||is(i,"ag-drag-handle",3)}onMouseOut(i){if(this.mouseStayingInsideCell(i))return;let{eventSvc:o,colHover:v}=this.beans;o.dispatchEvent(this.cellCtrl.createEvent(i,"cellMouseOut")),v==null||v.clearMouseOver()}onMouseOver(i){if(this.mouseStayingInsideCell(i))return;let{eventSvc:o,colHover:v}=this.beans;o.dispatchEvent(this.cellCtrl.createEvent(i,"cellMouseOver")),v==null||v.setMouseOver([this.column])}mouseStayingInsideCell(i){if(!i.target||!i.relatedTarget)return!1;let{eGui:o}=this.cellCtrl,v=o.contains(i.target),I=o.contains(i.relatedTarget);return v&&I}destroy(){super.destroy()}},hs=class extends jt{constructor(i,o){super(),this.cellCtrl=i,this.beans=o,this.column=i.column,this.rowNode=i.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}setComp(i){this.eGui=i,this.setupColSpan(),this.setupRowSpan(),this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()}onNewColumnsLoaded(){let i=this.column.getRowSpan(this.rowNode);this.rowSpan!==i&&(this.rowSpan=i,this.applyRowSpan(!0))}onDisplayColumnsChanged(){let i=this.getColSpanningList();Gh(this.colsSpanning,i)||(this.colsSpanning=i,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eGui)return;let i=this.getCellWidth();this.eGui.style.width=`${i}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((i,o)=>i+o.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){let{column:i,rowNode:o}=this,v=i.getColSpan(o),I=[];if(v===1)I.push(i);else{let N=i,W=i.getPinned();for(let Z=0;N&&Z<v&&(I.push(N),N=this.beans.visibleCols.getColAfter(N),!(!N||Oa(N)||W!==N.getPinned()));Z++);}return I}onLeftChanged(){if(!this.eGui)return;let i=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=i+"px"}getCellLeft(){let i;return this.beans.gos.get("enableRtl")&&this.colsSpanning?i=Yn(this.colsSpanning):i=this.column,i.getLeft()}modifyLeftForPrintLayout(i){if(!this.cellCtrl.printLayout||this.column.getPinned()==="left")return i;let{visibleCols:o}=this.beans,v=o.getColsLeftWidth();if(this.column.getPinned()==="right"){let I=o.bodyWidth;return v+I+(i||0)}return v+(i||0)}applyRowSpan(i){if(this.rowSpan===1&&!i)return;let v=Yu(this.beans)*this.rowSpan;this.eGui.style.height=`${v}px`,this.eGui.style.zIndex="1"}destroy(){super.destroy()}},xI="ag-cell",Wy="ag-cell-auto-height",qA="ag-cell-normal-height",MI="ag-cell-focus",wx="ag-cell-first-right-pinned",kI="ag-cell-last-left-pinned",AI="ag-cell-not-inline-editing",DI="ag-cell-wrap-text",hd="cellCtrl";function Uy(i,o){return Qt(i,o,hd)}var Tc=0,Rc=class extends jt{constructor(i,o,v,I){super(),this.column=i,this.rowNode=o,this.rowCtrl=I,this.rangeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.tooltipFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.beans=v,this.instanceId=i.getId()+"-"+Tc++,this.colIdSanitised=yl(this.column.getId()),this.createCellPosition(),this.updateAndFormatValue(!1)}shouldRestoreFocus(){return this.beans.focusSvc.shouldRestoreFocus(this.cellPosition)}onFocusOut(){this.beans.focusSvc.clearRestoreFocus()}addFeatures(){var I;let{beans:i}=this;this.positionFeature=new hs(this,i),this.customStyleFeature=(I=i.cellStyles)==null?void 0:I.createCellCustomStyleFeature(this,i),this.mouseListener=new sa(this,i,this.column),this.keyboardListener=new hr(this,i,this.rowNode,this.rowCtrl),this.column.isTooltipEnabled()&&this.enableTooltipFeature();let{rangeSvc:o}=i;o&&Jo(i.gos)&&(this.rangeFeature=o.createCellRangeFeature(i,this))}removeFeatures(){let i=this.beans.context;this.positionFeature=i.destroyBean(this.positionFeature),this.customStyleFeature=i.destroyBean(this.customStyleFeature),this.mouseListener=i.destroyBean(this.mouseListener),this.keyboardListener=i.destroyBean(this.keyboardListener),this.rangeFeature=i.destroyBean(this.rangeFeature),this.disableTooltipFeature()}enableTooltipFeature(i,o){var v;this.tooltipFeature=(v=this.beans.tooltipSvc)==null?void 0:v.enableCellTooltipFeature(this,i,o)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}setComp(i,o,v,I,N,W){var Z,ee,le,we,Ae;this.comp=i,this.eGui=o,this.printLayout=I,W!=null||(W=this),this.addDomData(W),this.addFeatures(),W.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(v,W),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),(Z=this.positionFeature)==null||Z.setComp(o),(ee=this.customStyleFeature)==null||ee.setComp(i),(le=this.tooltipFeature)==null||le.refreshTooltip(),(we=this.keyboardListener)==null||we.setComp(this.eGui),this.rangeFeature&&this.rangeFeature.setComp(i,o),N&&this.isCellEditable()?(Ae=this.beans.editSvc)==null||Ae.startEditing(this):this.showValue(),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach(Ee=>Ee()),this.onCompAttachedFuncs=[])}setupAutoHeight(i,o){var v;this.isAutoHeight=this.column.isAutoHeight(),!(!this.isAutoHeight||!i)&&((v=this.beans.rowAutoHeight)==null||v.setupCellAutoHeight(this,i,o))}getCellAriaRole(){var i;return(i=this.column.getColDef().cellAriaRole)!=null?i:"gridcell"}isCellRenderer(){let i=this.column.getColDef();return i.cellRenderer!=null||i.cellRendererSelector!=null}getValueToDisplay(){var i;return(i=this.valueFormatted)!=null?i:this.value}showValue(i=!1){var we;let{beans:o,column:v,rowNode:I,rangeFeature:N}=this,{userCompFactory:W}=o,Z=this.getValueToDisplay(),ee;if(I.stub&&((we=I.groupData)==null?void 0:we[v.getId()])==null){let Ae=this.createCellRendererParams();ee=js(W,v.getColDef(),Ae)}else if(this.isCellRenderer()){let Ae=this.createCellRendererParams();ee=Gy(W,v.getColDef(),Ae)}this.comp.setRenderDetails(ee,Z,i),N&&tp(o,()=>N==null?void 0:N.refreshHandle())}setupControlComps(){let i=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(i)),this.includeRowDrag=this.isIncludeControl(i.rowDrag),this.includeDndSource=this.isIncludeControl(i.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(i){return this.rowNode.rowPinned!=null?!1:typeof i=="function"||i===!0}isCheckboxSelection(i){let{rowSelection:o}=this.beans.gridOptions;return i.checkboxSelection||ec(this.column)&&o&&typeof o!="string"&&Ec(o)}refreshShouldDestroy(){let i=this.column.getColDef(),o=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(i)),v=this.includeRowDrag!=this.isIncludeControl(i.rowDrag),I=this.includeDndSource!=this.isIncludeControl(i.dndSource),N=this.isAutoHeight!=this.column.isAutoHeight();return o||v||I||N}onPopupEditorClosed(){this.editing&&this.stopEditingAndFocus()}stopEditing(i=!1){var o,v;return(v=(o=this.beans.editSvc)==null?void 0:o.stopEditing(this,i))!=null?v:!1}createCellRendererParams(){let{value:i,valueFormatted:o,column:v,rowNode:I,comp:N,eGui:W,beans:{valueSvc:Z,gos:ee}}=this;return ee.addGridCommonParams({value:i,valueFormatted:o,getValue:()=>Z.getValueForDisplay(v,I),setValue:we=>Z.setValue(I,v,we),formatValue:this.formatValue.bind(this),data:I.data,node:I,pinned:v.getPinned(),colDef:v.getColDef(),column:v,refreshCell:this.refreshCell.bind(this),eGridCell:W,eParentOfValue:N.getParentOfValue(),registerRowDragger:(we,Ae,Ee,Ve)=>this.registerRowDragger(we,Ae,Ve),setTooltip:(we,Ae)=>{var Ee;ee.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(we,Ae),(Ee=this.tooltipFeature)==null||Ee.refreshTooltip()}})}onCellChanged(i){i.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(i){var o;this.refreshShouldDestroy()?(o=this.rowCtrl)==null||o.recreateCell(this):this.refreshCell(i)}refreshCell(i){var we,Ae,Ee,Ve,Je,gt;if(this.suppressRefreshCell||this.editing)return;let o=this.column.getColDef(),v=i!=null&&!!i.newData,I=i!=null&&!!i.suppressFlash,N=o.field==null&&o.valueGetter==null&&o.showRowGroup==null,W=i&&i.forceRefresh||N||v,Z=!!this.comp,ee=this.updateAndFormatValue(Z),le=W||ee;if(Z){if(le){this.showValue(v);let kt=(we=this.beans.filterManager)==null?void 0:we.isSuppressFlashingCellsBecauseFiltering();!I&&!kt&&o.enableCellChangeFlash&&((Ae=this.beans.cellFlashSvc)==null||Ae.flashCell(this)),(Ee=this.customStyleFeature)==null||Ee.applyUserStyles(),(Ve=this.customStyleFeature)==null||Ve.applyClassesFromColDef()}(Je=this.tooltipFeature)==null||Je.refreshTooltip(),(gt=this.customStyleFeature)==null||gt.applyCellClassRules()}}stopEditingAndFocus(i=!1,o=!1){var v;(v=this.beans.editSvc)==null||v.stopEditingAndFocus(this,i,o)}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(i){var o;return(o=this.callValueFormatter(i))!=null?o:i}callValueFormatter(i){return this.beans.valueSvc.formatValue(this.column,this.rowNode,i)}updateAndFormatValue(i){let o=this.value,v=this.valueFormatted;return this.value=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),i?!this.valuesAreEqual(o,this.value)||this.valueFormatted!=v:!0}valuesAreEqual(i,o){let v=this.column.getColDef();return v.equals?v.equals(i,o):i===o}addDomData(i){let o=this.eGui;cd(this.beans.gos,o,hd,this),i.addDestroyFunc(()=>cd(this.beans.gos,o,hd,null))}createEvent(i,o){let{rowNode:v,column:I,value:N}=this;return this.beans.gos.addGridCommonParams({type:o,node:v,data:v.data,value:N,column:I,colDef:I.getColDef(),rowPinned:v.rowPinned,event:i,rowIndex:v.rowIndex})}processCharacter(i){var o;(o=this.keyboardListener)==null||o.processCharacter(i)}onKeyDown(i){var o;(o=this.keyboardListener)==null||o.onKeyDown(i)}onMouseEvent(i,o){var v;(v=this.mouseListener)==null||v.onMouseEvent(i,o)}getColSpanningList(){return this.positionFeature.getColSpanningList()}onLeftChanged(){var i;this.comp&&((i=this.positionFeature)==null||i.onLeftChanged())}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){let{comp:i,column:o,beans:v}=this;Hy(i,o,v.visibleCols)}refreshAriaColIndex(){let i=this.beans.visibleCols.getAriaColIndex(this.column);Ye(this.eGui,i)}onWidthChanged(){var i;return(i=this.positionFeature)==null?void 0:i.onWidthChanged()}getRowPosition(){let{rowIndex:i,rowPinned:o}=this.cellPosition;return{rowIndex:i,rowPinned:o}}updateRangeBordersIfRangeCount(){var i;this.comp&&((i=this.rangeFeature)==null||i.updateRangeBordersIfRangeCount())}onCellSelectionChanged(){var i;this.comp&&((i=this.rangeFeature)==null||i.onCellSelectionChanged())}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(i=!1){this.beans.focusSvc.setFocusedCell({rowIndex:this.cellPosition.rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:i})}onRowIndexChanged(){var i;this.createCellPosition(),this.onCellFocused(),(i=this.rangeFeature)==null||i.onCellSelectionChanged()}onSuppressCellFocusChanged(i){this.eGui&&Ls(this.eGui,"tabindex",i?void 0:-1)}onFirstRightPinnedChanged(){if(!this.comp)return;let i=this.column.isFirstRightPinned();this.comp.addOrRemoveCssClass(wx,i)}onLastLeftPinnedChanged(){if(!this.comp)return;let i=this.column.isLastLeftPinned();this.comp.addOrRemoveCssClass(kI,i)}onCellFocused(i){var N;let{beans:o}=this;if(ud(o))return;let v=o.focusSvc.isCellFocused(this.cellPosition);if(!this.comp){v&&(i!=null&&i.forceBrowserFocus)&&(this.focusEventToRestore=i);return}if(this.focusEventToRestore=void 0,this.comp.addOrRemoveCssClass(MI,v),v&&i&&i.forceBrowserFocus){let W=this.comp.getFocusableElement();if(this.editing){let Z=Kh(W,null,!0);Z.length&&(W=Z[0])}W.focus({preventScroll:!!i.preventScrollOnBrowserFocus})}let I=o.gos.get("editType")==="fullRow";!v&&!I&&this.editing&&((N=o.editSvc)==null||N.stopRowOrCellEdit(this)),v&&this.rowCtrl.announceDescription()}createCellPosition(){let{rowIndex:i,rowPinned:o}=this.rowNode;this.cellPosition={rowIndex:i,rowPinned:kc(o),column:this.column}}setInlineEditingCss(){var i;(i=this.beans.editSvc)==null||i.setInlineEditingCss(this.rowCtrl)}applyStaticCssClasses(){let{comp:i}=this;i.addOrRemoveCssClass(xI,!0),i.addOrRemoveCssClass(AI,!0);let o=this.column.isAutoHeight()==!0;i.addOrRemoveCssClass(Wy,o),i.addOrRemoveCssClass(qA,!o)}onColumnHover(){var i;(i=this.beans.colHover)==null||i.onCellColumnHover(this.column,this.comp)}onColDefChanged(){var i;this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?(i=this.beans.editSvc)==null||i.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0}))}setWrapText(){let i=this.column.getColDef().wrapText==!0;this.comp.addOrRemoveCssClass(DI,i)}dispatchCellContextMenuEvent(i){let o=this.column.getColDef(),v=this.createEvent(i,"cellContextMenu"),{beans:I}=this;I.eventSvc.dispatchEvent(v),o.onCellContextMenu&&window.setTimeout(()=>{I.frameworkOverrides.wrapOutgoing(()=>{o.onCellContextMenu(v)})},0)}getCellRenderer(){var i,o;return(o=(i=this.comp)==null?void 0:i.getCellRenderer())!=null?o:null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],super.destroy()}createSelectionCheckbox(){var o;let i=(o=this.beans.selectionSvc)==null?void 0:o.createCheckboxSelectionComponent();if(i)return this.beans.context.createBean(i),i.init({rowNode:this.rowNode,column:this.column}),i}createDndSource(){let i=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return i&&this.beans.context.createBean(i),i}registerRowDragger(i,o,v){if(this.customRowDragComp){this.customRowDragComp.setDragElement(i,o);return}let I=this.createRowDragComp(i,o,v);I&&(this.customRowDragComp=I,this.addDestroyFunc(()=>{this.beans.context.destroyBean(I),this.customRowDragComp=null}))}createRowDragComp(i,o,v){var N;let I=(N=this.beans.rowDragSvc)==null?void 0:N.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,i,o,v);if(I)return this.beans.context.createBean(I),I}cellEditorAttached(){this.onEditorAttachedFuncs.forEach(i=>i()),this.onEditorAttachedFuncs=[]}},iv="__ag_grid_instance";function Ky(i,o){o[iv]=i.gridInstanceId}function Pc(i,o){return xx(i,o.target)}function xx(i,o){let v=o;for(;v;){let I=v[iv];if(mi(I))return I===i.gridInstanceId;v=v.parentElement}return!1}function Ur(i,o){var v,I;return(I=(v=Uy(i,o.target))==null?void 0:v.cellPosition)!=null?I:null}function r0(i,o){let v=lo(i.gos,"normal"),I=o,N,W;if(I.clientX!=null||I.clientY!=null?(N=I.clientX,W=I.clientY):(N=I.x,W=I.y),v){let Z=i.ctrlsSvc.getScrollFeature(),ee=Z.getVScrollPosition(),le=Z.getHScrollPosition();N+=le.left,W+=ee.top}return{x:N,y:W}}var wm=(i=>(i[i.ToolPanel=0]="ToolPanel",i[i.HeaderCell=1]="HeaderCell",i[i.RowDrag=2]="RowDrag",i[i.ChartPanel=3]="ChartPanel",i[i.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",i))(wm||{}),lh=class extends jt{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(i){this.ctrlsSvc=i.ctrlsSvc,this.dragSvc=i.dragSvc,this.environment=i.environment,this.userCompFactory=i.userCompFactory}addDragSource(i,o=!1){let v={eElement:i.eElement,dragStartPixels:i.dragStartPixels,onDragStart:this.onDragStart.bind(this,i),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:o};this.dragSourceAndParamsList.push({params:v,dragSource:i}),this.dragSvc.addDragSource(v)}getDragAndDropImageComponent(){let{dragAndDropImageComp:i}=this;return!i||!i.comp?null:i.comp}removeDragSource(i){let{dragSourceAndParamsList:o,dragSvc:v}=this,I=o.find(N=>N.dragSource===i);I&&(v.removeDragSource(I.params),bo(o,I))}destroy(){let{dragSourceAndParamsList:i,dragSvc:o,dropTargets:v}=this;i.forEach(I=>o.removeDragSource(I.params)),i.length=0,v.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(i,o){var v;this.dragging=!0,this.dragSource=i,this.eventLastTime=o,this.dragItem=i.getDragItem(),(v=i.onDragStarted)==null||v.call(i),this.createDragAndDropImageComponent()}onDragStop(i){var v,I;(I=(v=this.dragSource)==null?void 0:v.onDragStopped)==null||I.call(v);let{lastDropTarget:o}=this;if(o!=null&&o.onDragStop){let N=this.createDropTargetEvent(o,i,null,null,!1);o.onDragStop(N)}this.clearDragAndDropProperties()}onDragCancel(){var v;let{dragSource:i,lastDropTarget:o}=this;(v=i==null?void 0:i.onDragCancelled)==null||v.call(i),o!=null&&o.onDragCancel&&o.onDragCancel(this.createDropTargetEvent(o,this.eventLastTime,null,null,!1)),this.clearDragAndDropProperties()}clearDragAndDropProperties(){this.eventLastTime=null,this.dragging=!1,this.lastDropTarget=void 0,this.dragItem=null,this.dragSource=null,this.removeDragAndDropImageComponent()}onDragging(i,o=!1){var Ae,Ee;let v=this.getHorizontalDirection(i),I=this.getVerticalDirection(i);this.eventLastTime=i,this.positionDragAndDropImageComp(i);let N=this.dropTargets.filter(Ve=>this.isMouseOnDropTarget(i,Ve)),W=this.findCurrentDropTarget(i,N),{lastDropTarget:Z,dragSource:ee,dragAndDropImageComp:le,dragItem:we}=this;if(W!==Z){if(this.leaveLastTargetIfExists(i,v,I,o),Z!==null&&W===null&&((Ae=ee==null?void 0:ee.onGridExit)==null||Ae.call(ee,we)),Z===null&&W!==null&&((Ee=ee==null?void 0:ee.onGridEnter)==null||Ee.call(ee,we)),this.enterDragTargetIfExists(W,i,v,I,o),W&&le){let{comp:Ve,promise:Je}=le;Ve?Ve.setIcon(W.getIconName?W.getIconName():null,!1):Je.then(gt=>{gt&&gt.setIcon(W.getIconName?W.getIconName():null,!1)})}this.lastDropTarget=W}else if(W&&W.onDragging){let Ve=this.createDropTargetEvent(W,i,v,I,o);W.onDragging(Ve)}}getAllContainersFromDropTarget(i){let o=i.getSecondaryContainers?i.getSecondaryContainers():null,v=[[i.getContainer()]];return o?v.concat(o):v}isMouseOnDropTarget(i,o){let v=this.getAllContainersFromDropTarget(o),I=!1,N=(ee,le)=>{for(let we of le){let{width:Ae,height:Ee,left:Ve,right:Je,top:gt,bottom:kt}=we.getBoundingClientRect();if(Ae===0||Ee===0)return!1;let xt=ee.clientX>=Ve&&ee.clientX<Je,Ft=ee.clientY>=gt&&ee.clientY<kt;if(!xt||!Ft)return!1}return!0};for(let ee of v)if(N(i,ee)){I=!0;break}let{eElement:W,type:Z}=this.dragSource;return o.targetContainsSource&&!o.getContainer().contains(W)?!1:I&&o.isInterestedIn(Z,W)}findCurrentDropTarget(i,o){let v=o.length;if(v===0)return null;if(v===1)return o[0];let N=Wf(this.beans).elementsFromPoint(i.clientX,i.clientY);for(let W of N)for(let Z of o)if(this.getAllContainersFromDropTarget(Z).flatMap(le=>le).indexOf(W)!==-1)return Z;return null}enterDragTargetIfExists(i,o,v,I,N){if(i&&i.onDragEnter){let W=this.createDropTargetEvent(i,o,v,I,N);i.onDragEnter(W)}}leaveLastTargetIfExists(i,o,v,I){let{lastDropTarget:N}=this;if(!N)return;if(N.onDragLeave){let Z=this.createDropTargetEvent(N,i,o,v,I);N.onDragLeave(Z)}let W=this.getDragAndDropImageComponent();W&&W.setIcon(null,!1)}addDropTarget(i){this.dropTargets.push(i)}removeDropTarget(i){this.dropTargets=this.dropTargets.filter(o=>o.getContainer()!==i.getContainer())}hasExternalDropZones(){return this.dropTargets.some(i=>i.external)}findExternalZone(i){return this.dropTargets.filter(v=>v.external).find(v=>v.getContainer()===i.getContainer())||null}isDropZoneWithinThisGrid(i){let v=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:I}=i;return v.contains(I)}getHorizontalDirection(i){var I;let o=(I=this.eventLastTime)==null?void 0:I.clientX,v=i.clientX;return o===v?null:o>v?"left":"right"}getVerticalDirection(i){var I;let o=(I=this.eventLastTime)==null?void 0:I.clientY,v=i.clientY;return o===v?null:o>v?"up":"down"}createDropTargetEvent(i,o,v,I,N){let W=i.getContainer(),Z=W.getBoundingClientRect(),{dragItem:ee,dragSource:le,gos:we}=this,Ae=o.clientX-Z.left,Ee=o.clientY-Z.top;return we.addGridCommonParams({event:o,x:Ae,y:Ee,vDirection:I,hDirection:v,dragSource:le,fromNudge:N,dragItem:ee,dropZoneTarget:W})}positionDragAndDropImageComp(i){let o=this.getDragAndDropImageComponent();o&&um(o.getGui(),i,this.beans)}removeDragAndDropImageComponent(){var o;let{dragAndDropImageComp:i}=this;if(i){let{comp:v}=i;if(v){let I=v.getGui();(o=this.dragAndDropImageParent)==null||o.removeChild(I),this.destroyBean(v)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){let{dragSource:i}=this;if(!i)return;let o=$f(this.userCompFactory,{dragSource:i});if(!o)return;let v=o.newAgStackInstance();this.dragAndDropImageComp={promise:v},v.then(I=>{!I||!this.isAlive()||(this.processDragAndDropImageComponent(I),this.dragAndDropImageComp.comp=I)})}processDragAndDropImageComponent(i){let{dragSource:o,environment:v}=this;if(!o)return;let I=i.getGui();I.style.setProperty("position","absolute"),I.style.setProperty("z-index","9999"),Ky(this.gos,I),v.applyThemeClasses(I),i.setIcon(null,!1);let{dragItemName:N}=o;typeof N=="function"&&(N=N()),i.setLabel(N||""),I.style.top="20px",I.style.left="20px";let W=Ty(this.beans);this.dragAndDropImageParent=W,W?W.appendChild(I):ii(54)}registerGridDropTarget(i,o){let v={getContainer:i,isInterestedIn:I=>I===1||I===0,getIconName:()=>"notAllowed"};this.addDropTarget(v),o.addDestroyFunc(()=>this.removeDropTarget(v))}},xm=class{constructor(i){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=i.scrollContainer,this.scrollHorizontally=i.scrollAxis.indexOf("x")!==-1,this.scrollVertically=i.scrollAxis.indexOf("y")!==-1,this.scrollByTick=i.scrollByTick!=null?i.scrollByTick:20,i.onScrollCallback&&(this.onScrollCallback=i.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=i.getVerticalPosition,this.setVerticalPosition=i.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=i.getHorizontalPosition,this.setHorizontalPosition=i.setHorizontalPosition),this.shouldSkipVerticalScroll=i.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=i.shouldSkipHorizontalScroll||(()=>!1)}check(i,o=!1){let v=o||this.shouldSkipVerticalScroll();if(v&&this.shouldSkipHorizontalScroll())return;let I=this.scrollContainer.getBoundingClientRect(),N=this.scrollByTick;this.tickLeft=i.clientX<I.left+N,this.tickRight=i.clientX>I.right-N,this.tickUp=i.clientY<I.top+N&&!v,this.tickDown=i.clientY>I.bottom-N&&!v,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;let i=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){let o=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(o-i),this.tickDown&&this.setVerticalPosition(o+i)}if(this.scrollHorizontally){let o=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(o-i),this.tickRight&&this.setHorizontalPosition(o+i)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}};function qy(i){let{rowIndex:o,rowPinned:v,column:I}=i;return`${o}.${v==null?"null":v}.${I.getId()}`}function Ai(i,o){let v=i.column===o.column,I=i.rowPinned===o.rowPinned,N=i.rowIndex===o.rowIndex;return v&&I&&N}function s0(i,o){switch(i.rowPinned){case"top":if(o.rowPinned!=="top")return!0;break;case"bottom":if(o.rowPinned!=="bottom")return!1;break;default:if(mi(o.rowPinned))return o.rowPinned!=="top";break}return i.rowIndex<o.rowIndex}function Tn(i,o){return!i&&!o?!0:i&&!o||!i&&o?!1:i.rowIndex===o.rowIndex&&i.rowPinned==o.rowPinned}function Cl(i){let o=0,v,{pinnedRowModel:I,rowModel:N,pageBounds:W}=i;return I!=null&&I.getPinnedTopRowCount()?v="top":N.getRowCount()?(v=null,o=W.getFirstRow()):I!=null&&I.getPinnedBottomRowCount()&&(v="bottom"),v===void 0?null:{rowIndex:o,rowPinned:v}}function ip(i){let o,v=null,{pinnedRowModel:I,pageBounds:N}=i,W=I==null?void 0:I.getPinnedBottomRowCount(),Z=I==null?void 0:I.getPinnedTopRowCount();return W?(v="bottom",o=W-1):i.rowModel.getRowCount()?(v=null,o=N.getLastRow()):Z&&(v="top",o=Z-1),o===void 0?null:{rowIndex:o,rowPinned:v}}function nv(i,o){var v,I;switch(o.rowPinned){case"top":return(v=i.pinnedRowModel)==null?void 0:v.getPinnedTopRow(o.rowIndex);case"bottom":return(I=i.pinnedRowModel)==null?void 0:I.getPinnedBottomRow(o.rowIndex);default:return i.rowModel.getRow(o.rowIndex)}}function io(i,o){let v=i.rowRenderer.getRowByPosition(o);return v?v.getCellCtrl(o.column):null}var Mm=class extends jt{constructor(i){super(),this.eContainer=i}postConstruct(){let{rowModel:i,gos:o,ctrlsSvc:v}=this.beans;so(o,i)&&(this.clientSideRowModel=i),v.whenReady(this,I=>{let N=I.gridBodyCtrl;this.autoScrollService=new xm({scrollContainer:N.eBodyViewport,scrollAxis:"y",getVerticalPosition:()=>N.scrollFeature.getVScrollPosition().top,setVerticalPosition:W=>N.scrollFeature.setVerticalScrollPosition(W),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})})}getContainer(){return this.eContainer}isInterestedIn(i){return i===2}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){var Z;let{rowGroupColsSvc:i,filterManager:o,sortSvc:v}=this.beans;return!!(((Z=i==null?void 0:i.columns)!=null?Z:[]).length||(o==null?void 0:o.isAnyFilterPresent())||(v==null?void 0:v.isSortActive()))}getRowNodes(i){var I,N;if(!this.isFromThisGrid(i))return i.dragItem.rowNodes||[];let o=i.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){let W=[...(N=(I=this.beans.selectionSvc)==null?void 0:I.getSelectedNodes())!=null?N:[]].sort((Z,ee)=>Z.rowIndex==null||ee.rowIndex==null?0:this.getRowIndexNumber(Z)-this.getRowIndexNumber(ee));if(W.indexOf(o)!==-1)return W}return[o]}onDragEnter(i){i.dragItem.rowNodes=this.getRowNodes(i),this.dispatchGridEvent("rowDragEnter",i),this.getRowNodes(i).forEach(o=>{this.setRowNodeDragging(o,!0)}),this.onEnterOrDragging(i)}onDragging(i){this.onEnterOrDragging(i)}isFromThisGrid(i){let{dragSourceDomDataKey:o}=i.dragSource;return o===this.gos.getDomDataKey()}onEnterOrDragging(i){this.dispatchGridEvent("rowDragMove",i),this.lastDraggingEvent=i;let o=r0(this.beans,i).y;this.gos.get("rowDragManaged")&&this.doManagedDrag(i,o),this.autoScrollService.check(i.event)}doManagedDrag(i,o){let{dragAndDrop:v,gos:I}=this.beans,N=this.isFromThisGrid(i),W=I.get("rowDragManaged"),Z=i.dragItem.rowNodes;W&&this.shouldPreventRowMove()||(I.get("suppressMoveWhenRowDragging")||!N?v.isDropZoneWithinThisGrid(i)&&this.clientSideRowModel.highlightRowAtPixel(Z[0],o):this.moveRows(Z,o))}getRowIndexNumber(i){let o=i.getRowIndexString();return parseInt(Yn(o.split("-")),10)}moveRowAndClearHighlight(i){let o=this.clientSideRowModel,v=o.getLastHighlightedRowNode(),I=v&&v.highlighted==="Below",N=r0(this.beans,i).y,W=i.dragItem.rowNodes,Z=I?1:0;if(this.isFromThisGrid(i))W.forEach(ee=>{ee.rowTop<N&&(Z-=1)}),this.moveRows(W,N,Z);else{let ee=Uf(this.gos),le=o.getRowIndexAtPixel(N)+1;o.getHighlightPosition(N)==="Above"&&le--,o.updateRowData({add:W.filter(we=>{var Ae;return!o.getRowNode((Ae=ee==null?void 0:ee({data:we.data,level:0,rowPinned:we.rowPinned}))!=null?Ae:we.data.id)}).map(we=>we.data),addIndex:le})}this.clearRowHighlight()}clearRowHighlight(){this.clientSideRowModel.highlightRowAtPixel(null)}moveRows(i,o,v=0){let I=this.beans.focusSvc,N=I.getFocusedCell(),W=N&&io(this.beans,N);this.clientSideRowModel.ensureRowsAtPixel(i,o,v)&&(W?W.focusCell():I.clearFocusedCell())}addRowDropZone(i){if(!i.getContainer()){ii(55);return}let o=this.beans.dragAndDrop;if(o.findExternalZone(i)){ii(56);return}let v={getContainer:i.getContainer};i.fromGrid?v=i:(i.onDragEnter&&(v.onDragEnter=N=>{i.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",N))}),i.onDragLeave&&(v.onDragLeave=N=>{i.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",N))}),i.onDragging&&(v.onDragging=N=>{i.onDragging(this.draggingToRowDragEvent("rowDragMove",N))}),i.onDragStop&&(v.onDragStop=N=>{i.onDragStop(this.draggingToRowDragEvent("rowDragEnd",N))}),i.onDragCancel&&(v.onDragCancel=N=>{i.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",N))}));let I=ge({isInterestedIn:N=>N===2,getIconName:()=>"move",external:!0},v);o.addDropTarget(I),this.addDestroyFunc(()=>o.removeDropTarget(I))}getRowDropZone(i){let o=this.getContainer.bind(this),v=this.onDragEnter.bind(this),I=this.onDragLeave.bind(this),N=this.onDragging.bind(this),W=this.onDragStop.bind(this),Z=this.onDragCancel.bind(this),ee;return i?ee={getContainer:o,onDragEnter:i.onDragEnter?le=>{v(le),i.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",le))}:v,onDragLeave:i.onDragLeave?le=>{I(le),i.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",le))}:I,onDragging:i.onDragging?le=>{N(le),i.onDragging(this.draggingToRowDragEvent("rowDragMove",le))}:N,onDragStop:i.onDragStop?le=>{W(le),i.onDragStop(this.draggingToRowDragEvent("rowDragEnd",le))}:W,onDragCancel:i.onDragCancel?le=>{Z(le),i.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",le))}:Z,fromGrid:!0}:ee={getContainer:o,onDragEnter:v,onDragLeave:I,onDragging:N,onDragStop:W,onDragCancel:Z,fromGrid:!0},ee}draggingToRowDragEvent(i,o){let v=this.beans,{pageBounds:I,rowModel:N,gos:W}=v,Z=r0(v,o).y,ee=Z>I.getCurrentPageHeight(),le=-1,we;return ee||(le=N.getRowIndexAtPixel(Z),we=N.getRow(le)),W.addGridCommonParams({type:i,event:o.event,node:o.dragItem.rowNode,nodes:o.dragItem.rowNodes,overIndex:le,overNode:we,y:Z,vDirection:o.vDirection})}dispatchGridEvent(i,o){let v=this.draggingToRowDragEvent(i,o);this.eventSvc.dispatchEvent(v)}onDragLeave(i){this.dispatchGridEvent("rowDragLeave",i),this.stopDragging(i),this.gos.get("rowDragManaged")&&this.clearRowHighlight()}onDragStop(i){this.dispatchGridEvent("rowDragEnd",i),this.stopDragging(i);let{dragAndDrop:o,gos:v}=this.beans;v.get("rowDragManaged")&&(v.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(i))&&o.isDropZoneWithinThisGrid(i)&&this.moveRowAndClearHighlight(i)}onDragCancel(i){this.dispatchGridEvent("rowDragCancel",i),this.stopDragging(i);let{dragAndDrop:o,gos:v}=this.beans;v.get("rowDragManaged")&&(v.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(i))&&o.isDropZoneWithinThisGrid(i)&&this.clearRowHighlight()}stopDragging(i){this.autoScrollService.ensureCleared(),this.getRowNodes(i).forEach(o=>{this.setRowNodeDragging(o,!1)})}setRowNodeDragging(i,o){i.dragging!==o&&(i.dragging=o,i.dispatchRowEvent("draggingChanged"))}};function l0(i,o,v){if(v===0)return!1;let I=Math.abs(i.clientX-o.clientX),N=Math.abs(i.clientY-o.clientY);return Math.max(I,N)<=v}var YA=class extends jt{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){let{dragSources:i}=this;i.forEach(this.removeListener.bind(this)),i.length=0,super.destroy()}removeListener(i){let o=i.dragSource.eElement,v=i.mouseDownListener;if(o.removeEventListener("mousedown",v),i.touchEnabled){let I=i.touchStartListener;o.removeEventListener("touchstart",I,{passive:!0})}}removeDragSource(i){let{dragSources:o}=this,v=o.find(I=>I.dragSource===i);v&&(this.removeListener(v),bo(o,v))}addDragSource(i){let o=this.onMouseDown.bind(this,i),{eElement:v,includeTouch:I,stopPropagationForTouch:N}=i;v.addEventListener("mousedown",o);let W=null,Z=this.gos.get("suppressTouch");I&&!Z&&(W=ee=>{Uu(ee.target)||(N&&ee.stopPropagation(),this.onTouchStart(i,ee))},v.addEventListener("touchstart",W,{passive:!1})),this.dragSources.push({dragSource:i,mouseDownListener:o,touchStartListener:W,touchEnabled:!!I})}onTouchStart(i,o){this.currentDragParams=i,this.dragging=!1;let v=o.touches[0];this.touchLastTime=v,this.touchStart=v;let I=le=>this.onTouchMove(le,i.eElement),N=le=>this.onTouchUp(le,i.eElement),W=le=>{le.cancelable&&le.preventDefault()},Z=o.target,ee=[{target:Wf(this.beans),type:"touchmove",listener:W,options:{passive:!1}},{target:Z,type:"touchmove",listener:I,options:{passive:!0}},{target:Z,type:"touchend",listener:N,options:{passive:!0}},{target:Z,type:"touchcancel",listener:N,options:{passive:!0}}];this.addTemporaryEvents(ee),i.dragStartPixels===0&&this.onCommonMove(v,this.touchStart,i.eElement)}onMouseDown(i,o){let v=o;if(i.skipMouseEvent&&i.skipMouseEvent(o)||v._alreadyProcessedByDragService||(v._alreadyProcessedByDragService=!0,o.button!==0))return;this.shouldPreventMouseEvent(o)&&o.preventDefault(),this.currentDragParams=i,this.dragging=!1,this.mouseStartEvent=o,this.startTarget=o.target;let I=we=>this.onMouseMove(we,i.eElement),N=we=>this.onMouseUp(we,i.eElement),W=we=>we.preventDefault(),Z=we=>{we.key===Bt.ESCAPE&&this.cancelDrag(i.eElement)},ee=Wf(this.beans),le=[{target:ee,type:"mousemove",listener:I},{target:ee,type:"mouseup",listener:N},{target:ee,type:"contextmenu",listener:W},{target:ee,type:"keydown",listener:Z}];this.addTemporaryEvents(le),i.dragStartPixels===0&&this.onMouseMove(o,i.eElement)}addTemporaryEvents(i){i.forEach(o=>{let{target:v,type:I,listener:N,options:W}=o;v.addEventListener(I,N,W)}),this.dragEndFunctions.push(()=>{i.forEach(o=>{let{target:v,type:I,listener:N,options:W}=o;v.removeEventListener(I,N,W)})})}isEventNearStartEvent(i,o){let{dragStartPixels:v}=this.currentDragParams,I=mi(v)?v:4;return l0(i,o,I)}getFirstActiveTouch(i){for(let o=0;o<i.length;o++)if(i[o].identifier===this.touchStart.identifier)return i[o];return null}onCommonMove(i,o,v){var I;if(!this.dragging){if(this.isEventNearStartEvent(i,o))return;if(this.dragging=!0,this.eventSvc.dispatchEvent({type:"dragStarted",target:v}),this.currentDragParams.onDragStart(o),!this.currentDragParams){this.dragging=!1;return}this.currentDragParams.onDragging(o)}(I=this.currentDragParams)==null||I.onDragging(i)}onTouchMove(i,o){let v=this.getFirstActiveTouch(i.touches);v&&this.onCommonMove(v,this.touchStart,o)}onMouseMove(i,o){var v;ha()&&((v=eo(this.beans).getSelection())==null||v.removeAllRanges()),this.shouldPreventMouseEvent(i)&&i.preventDefault(),this.onCommonMove(i,this.mouseStartEvent,o)}shouldPreventMouseEvent(i){let{gos:o}=this,v=o.get("enableCellTextSelection"),I=i.type==="mousemove",N=W=>{let Z=W.target,ee=Z==null?void 0:Z.tagName.toLocaleLowerCase();return!!(ee!=null&&ee.match("^a$|textarea|input|select|button"))};return v&&I&&i.cancelable&&Pc(o,i)&&!N(i)}onTouchUp(i,o){let v=this.getFirstActiveTouch(i.changedTouches);v||(v=this.touchLastTime),this.onUpCommon(v,o)}onMouseUp(i,o){this.onUpCommon(i,o)}onUpCommon(i,o){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(i),this.eventSvc.dispatchEvent({type:"dragStopped",target:o})),this.resetDragProperties()}cancelDrag(i){var o,v;this.eventSvc.dispatchEvent({type:"dragCancelled",target:i}),(v=(o=this.currentDragParams)==null?void 0:o.onDragCancel)==null||v.call(o),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;let{dragEndFunctions:i}=this;i.forEach(o=>o()),i.length=0}};function av(i,o){return i+"_"+o}function no(i){return i instanceof XA}var XA=class extends jt{constructor(i,o,v,I){super(),this.providedColumnGroup=i,this.groupId=o,this.partId=v,this.pinned=I,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return av(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){let i=this.getProvidedColumnGroup().getLeafColumns();return!i||i.length===0?!1:i.every(o=>o.isMoving())}checkLeft(){if(this.displayedChildren.forEach(i=>{no(i)&&i.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){let o=Yn(this.displayedChildren).getLeft();this.setLeft(o)}else{let i=this.displayedChildren[0].getLeft();this.setLeft(i)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(i){this.oldLeft=this.left,this.left!==i&&(this.left=i,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){var o;let i=0;return(o=this.displayedChildren)==null||o.forEach(v=>{i+=v.getActualWidth()}),i}isResizable(){if(!this.displayedChildren)return!1;let i=!1;return this.displayedChildren.forEach(o=>{o.isResizable()&&(i=!0)}),i}getMinWidth(){let i=0;return this.displayedChildren.forEach(o=>{i+=o.getMinWidth()}),i}addChild(i){this.children||(this.children=[]),this.children.push(i)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){let i=[];return this.addLeafColumns(i),i}getDisplayedLeafColumns(){let i=[];return this.addDisplayedLeafColumns(i),i}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(i){this.providedColumnGroup.setExpanded(i)}isAutoHeaderHeight(){var i;return!!((i=this.getColGroupDef())!=null&&i.autoHeaderHeight)}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(i){let o=i!==this.autoHeaderHeight;return this.autoHeaderHeight=i,o}addDisplayedLeafColumns(i){this.displayedChildren.forEach(o=>{In(o)?i.push(o):no(o)&&o.addDisplayedLeafColumns(i)})}addLeafColumns(i){this.children.forEach(o=>{In(o)?i.push(o):no(o)&&o.addLeafColumns(i)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){let i=this.getParent();return!this.isPadding()||!i||!i.isPadding()?0:1+i.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let i=this;for(;i!=null&&i.isPadding();)i=i.getParent();if(!(i?i.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(v=>{if(no(v)&&(!v.displayedChildren||!v.displayedChildren.length))return;switch(v.getColumnGroupShow()){case"open":i.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(v);break;case"closed":i.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(v);break;default:this.displayedChildren.push(v);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},Yy="row-group-",c0="t-",Ua="b-",ch=0,So=class{constructor(i){this.master=!1,this.detail=void 0,this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=ch++,this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.__selected=!1,this.beans=i}setData(i){this.setDataCommon(i,!1)}updateData(i){this.setDataCommon(i,!0)}setDataCommon(i,o){var N,W,Z;let v=this.data;this.data=i,(N=this.beans.valueCache)==null||N.onDataChanged(),this.updateDataOnDetailNode(),(W=this.beans.selectionSvc)==null||W.updateRowSelectable(this),this.resetQuickFilterAggregateText();let I=this.createDataChangedEvent(i,v,o);(Z=this.__localEventService)==null||Z.dispatchEvent(I)}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(i,o,v){return{type:"dataChanged",node:this,oldData:o,newData:i,update:v}}getRowIndexString(){return this.rowIndex==null?(aa(13),null):this.rowPinned==="top"?c0+this.rowIndex:this.rowPinned==="bottom"?Ua+this.rowIndex:this.rowIndex.toString()}setDataAndId(i,o){var Z,ee;let{selectionSvc:v}=this.beans,I=(Z=v==null?void 0:v.createDaemonNode)==null?void 0:Z.call(v,this),N=this.data;this.data=i,this.updateDataOnDetailNode(),this.setId(o),v&&(v.updateRowSelectable(this),v.syncInRowNode(this,I));let W=this.createDataChangedEvent(i,N,!1);(ee=this.__localEventService)==null||ee.dispatchEvent(W)}setId(i){var v,I;let o=Uf(this.beans.gos);if(o)if(this.data){let N=(I=(v=this.parent)==null?void 0:v.getRoute())!=null?I:[];this.id=o({data:this.data,parentKeys:N.length>0?N:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(Yy)&&aa(14,{groupPrefix:Yy})}else this.id=void 0;else this.id=i}setRowTop(i){this.oldRowTop=this.rowTop,this.rowTop!==i&&(this.rowTop=i,this.dispatchRowEvent("topChanged"),this.setDisplayed(i!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(i){this.hovered=i}isHovered(){return this.hovered}setRowHeight(i,o=!1){this.rowHeight=i,this.rowHeightEstimated=o,this.dispatchRowEvent("heightChanged")}setExpanded(i,o,v){var I;(I=this.beans.expansionSvc)==null||I.setExpanded(this,i,o,v)}setDataValue(i,o,v){var Ae;let{colModel:I,valueSvc:N,gos:W,selectionSvc:Z}=this.beans,ee=typeof i!="string"?i:(Ae=I.getCol(i))!=null?Ae:I.getColDefCol(i);if(!ee)return!1;let le=N.getValueForDisplay(ee,this);if(W.get("readOnlyEdit")){let{beans:{eventSvc:Ee},data:Ve,rowIndex:Je,rowPinned:gt}=this;return Ee.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:Je,rowPinned:gt,column:ee,colDef:ee.colDef,data:Ve,node:this,oldValue:le,newValue:o,value:o,source:v}),!1}let we=N.setValue(this,ee,o,v);return this.dispatchCellChangedEvent(ee,o,le),Z==null||Z.updateRowSelectable(this),we}updateHasChildren(){let i=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0,{rowChildrenSvc:o}=this.beans;o&&(i=o.getHasChildrenValue(this)),i!==this.__hasChildren&&(this.__hasChildren=!!i,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(i,o,v){var N;let I={type:"cellChanged",node:this,column:i,newValue:o,oldValue:v};(N=this.__localEventService)==null||N.dispatchEvent(I)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){var i,o;return(o=(i=this.beans.expansionSvc)==null?void 0:i.isExpandable(this))!=null?o:!1}isSelected(){return this.footer?this.sibling.isSelected():this.__selected}depthFirstSearch(i){var o;(o=this.childrenAfterGroup)==null||o.forEach(v=>v.depthFirstSearch(i)),i(this)}dispatchRowEvent(i){var o;(o=this.__localEventService)==null||o.dispatchEvent({type:i,node:this})}setSelected(i,o=!1,v="api"){var I;(I=this.beans.selectionSvc)==null||I.setNodesSelected({nodes:[this],newValue:i,clearSelection:o,source:v})}isRowPinned(){return!!this.rowPinned}addEventListener(i,o){var I,N,W,Z,ee;(I=this.beans.validation)==null||I.checkRowEvents(i),this.__localEventService||(this.__localEventService=new s),this.frameworkEventListenerService=(W=(N=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:W.call(N,this.frameworkEventListenerService,this.__localEventService);let v=(ee=(Z=this.frameworkEventListenerService)==null?void 0:Z.wrap(o))!=null?ee:o;this.__localEventService.addEventListener(i,v)}removeEventListener(i,o){var I,N;if(!this.__localEventService)return;let v=(N=(I=this.frameworkEventListenerService)==null?void 0:I.unwrap(o))!=null?N:o;this.__localEventService.removeEventListener(i,v),this.__localEventService.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if(ii(61),this.detail)return!0;let i=this.beans.gos.getCallback("isFullWidthRow");return i?i({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;let i=[],o=this;for(;o&&o.key!=null;)i.push(o.key),o=o.parent;return i.reverse()}setFirstChild(i){this.firstChild!==i&&(this.firstChild=i,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(i){this.displayed!==i&&(this.displayed=i,this.dispatchRowEvent("displayedChanged"))}setRowIndex(i){this.rowIndex!==i&&(this.rowIndex=i,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(i){this.allChildrenCount!==i&&(this.allChildrenCount=i,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(i){this.uiLevel!==i&&(this.uiLevel=i,this.dispatchRowEvent("uiLevelChanged"))}};function Xy(i,o,v){return o.addGridCommonParams({type:v,node:i,data:i.data,rowIndex:i.rowIndex,rowPinned:i.rowPinned})}var km=class extends cn{constructor(i,o){super('<div class="ag-filter"></div>'),this.column=i,this.source=o,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){var i,o;return(o=(i=this.filterWrapper)==null?void 0:i.filterPromise)!=null?o:null}afterInit(){var i,o,v;return(v=(o=(i=this.filterWrapper)==null?void 0:i.filterPromise)==null?void 0:o.then(()=>{}))!=null?v:ds.resolve()}afterGuiAttached(i){var o,v;(v=(o=this.filterWrapper)==null?void 0:o.filterPromise)==null||v.then(I=>{var N;(N=I==null?void 0:I.afterGuiAttached)==null||N.call(I,i)})}afterGuiDetached(){var i,o;(o=(i=this.filterWrapper)==null?void 0:i.filterPromise)==null||o.then(v=>{var I;(I=v==null?void 0:v.afterGuiDetached)==null||I.call(v)})}createFilter(i){var I,N,W;let{column:o,source:v}=this;this.filterWrapper=(N=(I=this.beans.filterManager)==null?void 0:I.getOrCreateFilterWrapper(o))!=null?N:null,(W=this.filterWrapper)!=null&&W.filterPromise&&this.filterWrapper.filterPromise.then(Z=>{let ee=Z.getGui();mi(ee)||ii(69,{guiFromFilter:ee}),this.appendChild(ee),i&&this.eventSvc.dispatchEvent({type:"filterOpened",column:o,source:v,eGui:this.getGui()})})}onFilterDestroyed(i){(i.source==="api"||i.source==="paramsUpdated")&&i.column.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(Jn(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}},Lc="ag-resizer-wrapper",eu=(i,o)=>`<div data-ref="${i}Resizer" class="ag-resizer ag-resizer-${o}"></div>`,ZA=`<div class="${Lc}">
        ${eu("eTopLeft","topLeft")}
        ${eu("eTop","top")}
        ${eu("eTopRight","topRight")}
        ${eu("eRight","right")}
        ${eu("eBottomRight","bottomRight")}
        ${eu("eBottom","bottom")}
        ${eu("eBottomLeft","bottomLeft")}
        ${eu("eLeft","left")}
    </div>`,$A=class extends jt{constructor(i,o){super(),this.element=i,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},o)}wireBeans(i){this.popupSvc=i.popupSvc,this.dragSvc=i.dragSvc}center(){let{clientHeight:i,clientWidth:o}=this.offsetParent,v=o/2-this.getWidth()/2,I=i/2-this.getHeight()/2;this.offsetElement(v,I)}initialisePosition(){if(this.positioned)return;let{centered:i,forcePopupParentAsOffsetParent:o,minWidth:v,width:I,minHeight:N,height:W,x:Z,y:ee}=this.config;this.offsetParent||this.setOffsetParent();let le=0,we=0,Ae=wa(this.element);if(Ae){let Ee=this.findBoundaryElement(),Ve=window.getComputedStyle(Ee);if(Ve.minWidth!=null){let Je=Ee.offsetWidth-this.element.offsetWidth;we=parseInt(Ve.minWidth,10)-Je}if(Ve.minHeight!=null){let Je=Ee.offsetHeight-this.element.offsetHeight;le=parseInt(Ve.minHeight,10)-Je}}if(this.minHeight=N||le,this.minWidth=v||we,I&&this.setWidth(I),W&&this.setHeight(W),(!I||!W)&&this.refreshSize(),i)this.center();else if(Z||ee)this.offsetElement(Z,ee);else if(Ae&&o){let Ee=this.boundaryEl,Ve=!0;if(Ee||(Ee=this.findBoundaryElement(),Ve=!1),Ee){let Je=parseFloat(Ee.style.top),gt=parseFloat(Ee.style.left);Ve?this.offsetElement(isNaN(gt)?0:gt,isNaN(Je)?0:Je):this.setPosition(gt,Je)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(i,o){var I,N;if(!this.config.popup||i===this.movable)return;this.movable=i;let v=this.moveElementDragListener||{eElement:o,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};i?((I=this.dragSvc)==null||I.addDragSource(v),this.moveElementDragListener=v):((N=this.dragSvc)==null||N.removeDragSource(v),this.moveElementDragListener=void 0)}setResizable(i){if(this.clearResizeListeners(),i?this.addResizers():this.removeResizers(),typeof i=="boolean"){if(i===!1)return;i={topLeft:i,top:i,topRight:i,right:i,bottomRight:i,bottom:i,bottomLeft:i,left:i}}Object.keys(i).forEach(o=>{var Z;let I=!!i[o],N=this.getResizerElement(o),W={dragStartPixels:0,eElement:N,onDragStart:ee=>this.onResizeStart(ee,o),onDragging:this.onResize.bind(this),onDragStop:ee=>this.onResizeEnd(ee,o)};(I||!this.isAlive()&&!I)&&(I?((Z=this.dragSvc)==null||Z.addDragSource(W),this.resizeListeners.push(W),N.style.pointerEvents="all"):N.style.pointerEvents="none",this.resizable[o]=I)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";let{height:i,width:o}=this.lastSize;o!==-1&&(this.element.style.width=`${o}px`),i!==-1&&(this.element.style.height=`${i}px`)}getHeight(){return this.element.offsetHeight}setHeight(i){let{popup:o}=this.config,v=this.element,I=!1;if(typeof i=="string"&&i.indexOf("%")!==-1)mn(v,i),i=La(v),I=!0;else if(i=Math.max(this.minHeight,i),this.positioned){let N=this.getAvailableHeight();N&&i>N&&(i=N)}this.getHeight()!==i&&(I?(v.style.maxHeight="unset",v.style.minHeight="unset"):o?mn(v,i):(v.style.height=`${i}px`,v.style.flex="0 0 auto",this.lastSize.height=typeof i=="number"?i:parseFloat(i)))}getAvailableHeight(){let{popup:i,forcePopupParentAsOffsetParent:o}=this.config;this.positioned||this.initialisePosition();let{clientHeight:v}=this.offsetParent;if(!v)return null;let I=this.element.getBoundingClientRect(),N=this.offsetParent.getBoundingClientRect(),W=i?this.position.y:I.top,Z=i?0:N.top,ee=0;if(o){let we=this.element.parentElement;if(we){let{bottom:Ae}=we.getBoundingClientRect();ee=Ae-I.bottom}}return v+Z-W-ee}getWidth(){return this.element.offsetWidth}setWidth(i){let o=this.element,{popup:v}=this.config,I=!1;if(typeof i=="string"&&i.indexOf("%")!==-1)Mc(o,i),i=Oh(o),I=!0;else if(this.positioned){i=Math.max(this.minWidth,i);let{clientWidth:N}=this.offsetParent,W=v?this.position.x:this.element.getBoundingClientRect().left;N&&i+W>N&&(i=N-W)}this.getWidth()!==i&&(I?(o.style.maxWidth="unset",o.style.minWidth="unset"):this.config.popup?Mc(o,i):(o.style.width=`${i}px`,o.style.flex=" unset",this.lastSize.width=typeof i=="number"?i:parseFloat(i)))}offsetElement(i=0,o=0){var N;let{forcePopupParentAsOffsetParent:v}=this.config,I=v?this.boundaryEl:this.element;I&&((N=this.popupSvc)==null||N.positionPopup({ePopup:I,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:i,y:o})}),this.setPosition(parseFloat(I.style.left),parseFloat(I.style.top)))}constrainSizeToAvailableHeight(i){var v;if(!this.config.forcePopupParentAsOffsetParent)return;let o=()=>{let I=this.getAvailableHeight();this.element.style.setProperty("max-height",`${I}px`)};i&&this.popupSvc?this.resizeObserverSubscriber=Xl(this.beans,(v=this.popupSvc)==null?void 0:v.getPopupParent(),o):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(i,o){this.position.x=i,this.position.y=o}updateDragStartPosition(i,o){this.dragStartPosition={x:i,y:o}}calculateMouseMovement(i){let{e:o,isLeft:v,isTop:I,anywhereWithin:N,topBuffer:W}=i,Z=o.clientX-this.dragStartPosition.x,ee=o.clientY-this.dragStartPosition.y,le=this.shouldSkipX(o,!!v,!!N,Z)?0:Z,we=this.shouldSkipY(o,!!I,W,ee)?0:ee;return{movementX:le,movementY:we}}shouldSkipX(i,o,v,I){let N=this.element.getBoundingClientRect(),W=this.offsetParent.getBoundingClientRect(),Z=this.boundaryEl.getBoundingClientRect(),ee=this.config.popup?this.position.x:N.left,le=ee<=0&&W.left>=i.clientX||W.right<=i.clientX&&W.right<=Z.right;return le?!0:(o?le=I<0&&i.clientX>ee+W.left||I>0&&i.clientX<ee+W.left:v?le=I<0&&i.clientX>Z.right||I>0&&i.clientX<ee+W.left:le=I<0&&i.clientX>Z.right||I>0&&i.clientX<Z.right,le)}shouldSkipY(i,o,v=0,I){let N=this.element.getBoundingClientRect(),W=this.offsetParent.getBoundingClientRect(),Z=this.boundaryEl.getBoundingClientRect(),ee=this.config.popup?this.position.y:N.top,le=ee<=0&&W.top>=i.clientY||W.bottom<=i.clientY&&W.bottom<=Z.bottom;return le?!0:(o?le=I<0&&i.clientY>ee+W.top+v||I>0&&i.clientY<ee+W.top:le=I<0&&i.clientY>Z.bottom||I>0&&i.clientY<Z.bottom,le)}createResizeMap(){let i=this.element;this.resizerMap={topLeft:{element:i.querySelector("[data-ref=eTopLeftResizer]")},top:{element:i.querySelector("[data-ref=eTopResizer]")},topRight:{element:i.querySelector("[data-ref=eTopRightResizer]")},right:{element:i.querySelector("[data-ref=eRightResizer]")},bottomRight:{element:i.querySelector("[data-ref=eBottomRightResizer]")},bottom:{element:i.querySelector("[data-ref=eBottomResizer]")},bottomLeft:{element:i.querySelector("[data-ref=eBottomLeftResizer]")},left:{element:i.querySelector("[data-ref=eLeftResizer]")}}}addResizers(){if(this.resizersAdded)return;let i=this.element;if(!i)return;let v=new DOMParser().parseFromString(ZA,"text/html").body;i.appendChild(v.firstChild),this.createResizeMap(),this.resizersAdded=!0}removeResizers(){this.resizerMap=void 0;let i=this.element.querySelector(`.${Lc}`);i&&this.element.removeChild(i),this.resizersAdded=!1}getResizerElement(i){return this.resizerMap[i].element}onResizeStart(i,o){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!o.match(/top/i),isRight:!!o.match(/right/i),isBottom:!!o.match(/bottom/i),isLeft:!!o.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[o].element.classList.add("ag-active");let{popup:v,forcePopupParentAsOffsetParent:I}=this.config;!v&&!I&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(i.clientX,i.clientY)}getSiblings(){let o=this.element.parentElement;return o?Array.prototype.slice.call(o.children).filter(v=>!v.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){let i=this.getSiblings()||[],o=0,v=0;for(let I=0;I<i.length;I++){let N=i[I],W=!!N.style.flex&&N.style.flex!=="0 0 auto";if(N===this.element)continue;let Z=this.minHeight||0,ee=this.minWidth||0;if(W){let le=window.getComputedStyle(N);le.minHeight&&(Z=parseInt(le.minHeight,10)),le.minWidth&&(ee=parseInt(le.minWidth,10))}else Z=N.offsetHeight,ee=N.offsetWidth;o+=Z,v+=ee}return{height:o,width:v}}applySizeToSiblings(i){let o=null,v=this.getSiblings();if(v){for(let I=0;I<v.length;I++){let N=v[I];N!==o&&(i?N.style.height=`${N.offsetHeight}px`:N.style.width=`${N.offsetWidth}px`,N.style.flex="0 0 auto",N===this.element&&(o=v[I+1]))}o&&(o.style.removeProperty("height"),o.style.removeProperty("min-height"),o.style.removeProperty("max-height"),o.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(i=>i)}onResize(i){if(!this.isResizing||!this.currentResizer)return;let{popup:o,forcePopupParentAsOffsetParent:v}=this.config,{isTop:I,isRight:N,isBottom:W,isLeft:Z}=this.currentResizer,ee=N||Z,le=W||I,{movementX:we,movementY:Ae}=this.calculateMouseMovement({e:i,isLeft:Z,isTop:I}),Ee=this.position.x,Ve=this.position.y,Je=0,gt=0;if(ee&&we){let kt=Z?-1:1,xt=this.getWidth(),Ft=xt+we*kt,Ht=!1;Z&&(Je=xt-Ft,(Ee+Je<=0||Ft<=this.minWidth)&&(Ht=!0,Je=0)),Ht||this.setWidth(Ft)}if(le&&Ae){let kt=I?-1:1,xt=this.getHeight(),Ft=xt+Ae*kt,Ht=!1;I?(gt=xt-Ft,(Ve+gt<=0||Ft<=this.minHeight)&&(Ht=!0,gt=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&xt<Ft&&this.getMinSizeOfSiblings().height+Ft>this.element.parentElement.offsetHeight&&(Ht=!0),Ht||this.setHeight(Ft)}this.updateDragStartPosition(i.clientX,i.clientY),((o||v)&&Je||gt)&&this.offsetElement(Ee+Je,Ve+gt)}onResizeEnd(i,o){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[o].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){let i=this.element;this.config.popup&&(this.config.width||this.setWidth(i.offsetWidth),this.config.height||this.setHeight(i.offsetHeight))}onMoveStart(i){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(i.clientX,i.clientY)}onMove(i){if(!this.isMoving)return;let{x:o,y:v}=this.position,I;this.config.calculateTopBuffer&&(I=this.config.calculateTopBuffer());let{movementX:N,movementY:W}=this.calculateMouseMovement({e:i,isTop:!0,anywhereWithin:!0,topBuffer:I});this.offsetElement(o+N,v+W),this.updateDragStartPosition(i.clientX,i.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let i=this.element;for(;i;){if(window.getComputedStyle(i).position!=="static")return i;i=i.parentElement}return this.element}clearResizeListeners(){var i;for(;this.resizeListeners.length;){let o=this.resizeListeners.pop();(i=this.dragSvc)==null||i.removeDragSource(o)}}destroy(){var i;super.destroy(),this.moveElementDragListener&&((i=this.dragSvc)==null||i.removeDragSource(this.moveElementDragListener)),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},QA="ag-focus-managed",dh=class extends jt{constructor(i,o={}){super(),this.eFocusable=i,this.callbacks=o,this.callbacks=ge({shouldStopEventPropagation:()=>!1,onTabKeyDown:v=>{if(v.defaultPrevented)return;let I=ni(this.beans,this.eFocusable,!1,v.shiftKey);I&&(I.focus(),v.preventDefault())}},o)}postConstruct(){let{eFocusable:i,callbacks:{onFocusIn:o,onFocusOut:v}}=this;i.classList.add(QA),this.addKeyDownListeners(i),o&&this.addManagedElementListeners(i,{focusin:o}),v&&this.addManagedElementListeners(i,{focusout:v})}addKeyDownListeners(i){this.addManagedElementListeners(i,{keydown:o=>{if(o.defaultPrevented||Ri(o))return;let{callbacks:v}=this;if(v.shouldStopEventPropagation(o)){ur(o);return}o.key===Bt.TAB?v.onTabKeyDown(o):v.handleKeyDown&&v.handleKeyDown(o)}})}},JA={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"};function d0(i,o){let{debounceMs:v}=i;return Am(i)?(v!=null&&ii(71),0):v!=null?v:o}function Am(i){var o,v;return((v=(o=i.buttons)==null?void 0:o.indexOf("apply"))!=null?v:-1)>=0}var Mx=class extends cn{constructor(i){super(),this.filterNameKey=i,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=fi,this.buttonListeners=[],this.defaultDebounceMs=0}postConstruct(){this.resetTemplate(),this.createManagedBean(new dh(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new $A(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(i){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(i){let o=this.getGui();o&&o.removeEventListener("submit",this.onFormSubmit);let v=`
            <form class="ag-filter-wrapper">
                <div class="ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper" data-ref="eFilterBody">
                    ${this.createBodyTemplate()}
                </div>
            </form>`;this.setTemplate(v,this.getAgComponents(),i),o=this.getGui(),o==null||o.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.params.readOnly}init(i){this.setParams(i),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(i){this.params=i,this.applyActive=Am(i),this.resetButtonsPanel(i)}updateParams(i){this.params=i,this.applyActive=Am(i),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(i,o){let{buttons:v,readOnly:I}=o!=null?o:{},{buttons:N,readOnly:W}=i;if(I===W&&lm(v,N))return;let Z=N&&N.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(Jn(this.eButtonsPanel),this.buttonListeners.forEach(we=>we()),this.buttonListeners=[]):Z&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!Z){this.eButtonsPanel&&xc(this.eButtonsPanel);return}let ee=document.createDocumentFragment(),le=we=>{let Ae,Ee=we?this.translate(`${we}Filter`):void 0;switch(we){case"apply":Ae=gt=>this.onBtApply(!1,!1,gt);break;case"clear":Ae=()=>this.onBtClear();break;case"reset":Ae=()=>this.onBtReset();break;case"cancel":Ae=gt=>{this.onBtCancel(gt)};break;default:ii(75);return}let Je=as(`<button
                    type="${we==="apply"?"submit":"button"}"
                    data-ref="${we}FilterButton"
                    class="ag-button ag-standard-button ag-filter-apply-panel-button"
                >${Ee}
                </button>`);this.buttonListeners.push(...this.addManagedElementListeners(Je,{click:Ae})),ee.append(Je)};N.forEach(we=>le(we)),this.eButtonsPanel.append(ee),this.getGui().appendChild(this.eButtonsPanel)}setupOnBtApplyDebounce(){let i=d0(this.params,this.defaultDebounceMs),o=dr(this,this.checkApplyDebounce.bind(this),i);this.onBtApplyDebounce=()=>{this.debouncePending=!0,o()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){var i;return(i=this.appliedModel)!=null?i:null}setModel(i){return(i!=null?this.setModelIntoUi(i):this.resetUiToDefaults()).then(()=>{this.updateUiVisibility(),this.applyModel("api")})}onBtCancel(i){this.resetUiToActiveModel(this.getModel(),()=>{this.handleCancelEnd(i)})}handleCancelEnd(i){this.params.closeOnApply&&this.close(i)}resetUiToActiveModel(i,o){let v=()=>{this.onUiChanged(!1,"prevent"),o==null||o()};i!=null?this.setModelIntoUi(i).then(v):this.resetUiToDefaults().then(v)}onBtClear(){this.resetUiToDefaults().then(()=>this.onUiChanged())}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(i="api"){let o=this.getModelFromUi();if(!this.isModelValid(o))return!1;let v=this.appliedModel;return this.appliedModel=o,!this.areModelsEqual(v,o)}isModelValid(i){return!0}onFormSubmit(i){i.preventDefault()}onBtApply(i=!1,o=!1,v){if(v&&v.preventDefault(),this.applyModel(o?"rowDataUpdated":"ui")){let N="columnFilter";this.params.filterChangedCallback({afterFloatingFilter:i,afterDataChange:o,source:N})}let{closeOnApply:I}=this.params;I&&this.applyActive&&!i&&!o&&this.close(v)}onNewRowsLoaded(){}close(i){if(!this.hidePopup)return;let o=i,v=o&&o.key,I;(v==="Enter"||v==="Space")&&(I={keyboardEvent:o}),this.hidePopup(I),this.hidePopup=null}onUiChanged(i=!1,o){if(this.updateUiVisibility(),this.params.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){let v=this.isModelValid(this.getModelFromUi()),I=this.queryForHtmlElement('[data-ref="applyFilterButton"]');I&&Ps(I,!v)}i&&!o||o==="immediately"?this.onBtApply(i):(!this.applyActive&&!o||o==="debounce")&&this.onBtApplyDebounce()}afterGuiAttached(i){i&&(this.hidePopup=i.hidePopup),this.refreshFilterResizer(i==null?void 0:i.container)}refreshFilterResizer(i){let{positionableFeature:o,gos:v}=this;if(!o||i==="toolPanel")return;i==="floatingFilter"||i==="columnFilter"?(o.restoreLastSize(),o.setResizable(v.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(o.removeSizeFromEl(),o.setResizable(!1)),o.constrainSizeToAvailableHeight(!0)}afterGuiDetached(){var i;this.checkApplyDebounce(),(i=this.positionableFeature)==null||i.constrainSizeToAvailableHeight(!1)}refresh(i){let o=this.params;return this.params=i,this.resetButtonsPanel(i,o),!0}destroy(){let i=this.getGui();i&&i.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(i){return this.getLocaleTextFunc()(i,JA[i])}getCellValue(i){return this.params.getValue(i)}getPositionableElement(){return this.eFilterBody}};function eD(i,o,v){if(o==null)return null;let I=null,{compName:N,jsComp:W,fwComp:Z}=vx(i,o);return N?I={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[N]:W==null&&Z==null&&o.filter===!0&&(I=v()),I}var gd={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},Zy=class extends jt{constructor(i){super(),this.view=i}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){let i=this.gos.get("domLayout"),o={autoHeight:i==="autoHeight",normal:i==="normal",print:i==="print"},v=o.autoHeight?gd.AUTO_HEIGHT:o.print?gd.PRINT:gd.NORMAL;this.view.updateLayoutClasses(v,o)}},pd="Viewport",$y="fakeVScrollComp",tD=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],u0=class extends jt{constructor(i){super(),this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.scrollTimer=0,this.needsRefreshedScrollPosition=!0,this.eBodyViewport=i,this.resetLastHScrollDebounced=dr(this,()=>this.lastScrollSource[1]=null,500),this.resetLastVScrollDebounced=dr(this,()=>this.lastScrollSource[0]=null,500)}wireBeans(i){this.ctrlsSvc=i.ctrlsSvc,this.animationFrameSvc=i.animationFrameSvc,this.visibleCols=i.visibleCols}destroy(){super.destroy(),window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");let i=this.requireUpdatedScrollPosition.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),gridSizeChanged:i}),this.addManagedElementListeners(this.eBodyViewport,{scroll:i}),this.ctrlsSvc.whenReady(this,o=>{this.centerRowsCtrl=o.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}requireUpdatedScrollPosition(){this.needsRefreshedScrollPosition=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,pd)});for(let i of tD){let o=this.ctrlsSvc.get(i);this.registerScrollPartner(o,this.onHScroll.bind(this,i))}}addVerticalScrollListeners(){let i=this.ctrlsSvc.get("fakeVScrollComp"),o=this.gos.get("debounceVerticalScrollbar"),v=o?dr(this,this.onVScroll.bind(this,pd),100):this.onVScroll.bind(this,pd),I=o?dr(this,this.onVScroll.bind(this,$y),100):this.onVScroll.bind(this,$y);this.addManagedElementListeners(this.eBodyViewport,{scroll:v}),this.registerScrollPartner(i,I)}registerScrollPartner(i,o){i.onScrollCallback(o)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(i){this.centerRowsCtrl!=null&&(i===void 0&&(i=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(i)))}setScrollLeftForAllContainersExceptCurrent(i){for(let o of[...tD,pd]){if(this.lastScrollSource[1]===o)continue;let v=this.getViewportForSource(o);gl(v,i,this.enableRtl)}}getViewportForSource(i){return i===pd?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(i).eViewport}isControllingScroll(i,o){return this.lastScrollSource[o]==null?(o===0?this.lastScrollSource[0]=i:this.lastScrollSource[1]=i,!0):this.lastScrollSource[o]===i}onHScroll(i){if(!this.isControllingScroll(i,1))return;let o=this.centerRowsCtrl.eViewport,{scrollLeft:v}=o;if(this.shouldBlockScrollUpdate(1,v,!0))return;let I=Kg(this.getViewportForSource(i),this.enableRtl);this.doHorizontalScroll(I),this.resetLastHScrollDebounced()}onVScroll(i){if(!this.isControllingScroll(i,0))return;let o;if(i===pd?o=this.eBodyViewport.scrollTop:o=this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,o,!0))return;let{animationFrameSvc:v}=this;v==null||v.setScrollTop(o),this.nextScrollTop=o,i===pd?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(o):this.eBodyViewport.scrollTop=o,!v||this.gos.get("suppressAnimationFrame")?this.scrollGridIfNeeded():v.schedule(),this.resetLastVScrollDebounced()}doHorizontalScroll(i){let o=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===i&&i===o||(this.scrollLeft=i,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(i),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(i){let o={type:"bodyScroll",direction:i===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventSvc.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.eventSvc.dispatchEvent(He(ge({},o),{type:"bodyScrollEnd"}))},100)}shouldBlockScrollUpdate(i,o,v=!1){return v&&!na()?!1:i===0?this.shouldBlockVerticalScroll(o):this.shouldBlockHorizontalScroll(o)}shouldBlockVerticalScroll(i){let o=Sa(this.eBodyViewport),{scrollHeight:v}=this.eBodyViewport;return i<0||i+o>v}shouldBlockHorizontalScroll(i){let o=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:v}=this.centerRowsCtrl.eViewport;if(this.enableRtl&&Ro()){if(i>0)return!0}else if(i<0)return!0;return Math.abs(i)+o>v}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScroll(pd)}scrollGridIfNeeded(){let i=this.scrollTop!=this.nextScrollTop;return i&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),i}setHorizontalScrollPosition(i,o=!1){let I=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!o&&this.shouldBlockScrollUpdate(1,i)&&(this.enableRtl&&Ro()?i=i>0?0:I:i=Math.min(Math.max(i,0),I)),gl(this.centerRowsCtrl.eViewport,Math.abs(i),this.enableRtl),this.doHorizontalScroll(i)}setVerticalScrollPosition(i){this.eBodyViewport.scrollTop=i}getVScrollPosition(){if(!this.needsRefreshedScrollPosition){let{lastOffsetHeight:v,lastScrollTop:I}=this;return{top:I,bottom:I+v}}this.needsRefreshedScrollPosition=!1;let{scrollTop:i,offsetHeight:o}=this.eBodyViewport;return this.lastScrollTop=i,this.lastOffsetHeight=o,{top:i,bottom:i+o}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.centerRowsCtrl.isHorizontalScrollShowing()}scrollHorizontally(i){let o=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(o+i),this.centerRowsCtrl.eViewport.scrollLeft-o}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(i,o=null){let{rowModel:v}=this.beans,I=v.getRowCount(),N=-1;for(let W=0;W<I;W++){let Z=v.getRow(W);if(typeof i=="function"){if(Z&&i(Z)){N=W;break}}else if(i===Z||i===Z.data){N=W;break}}N>=0&&this.ensureIndexVisible(N,o)}ensureIndexVisible(i,o){if(lo(this.gos,"print"))return;let{rowModel:v}=this.beans,I=v.getRowCount();if(typeof i!="number"||i<0||i>=I){ii(88,{index:i});return}let W=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel"),{frameworkOverrides:Z,pagination:ee,pageBounds:le,rowContainerHeight:we,rowRenderer:Ae}=this.beans;Z.wrapIncoming(()=>{var xt;W||ee==null||ee.goToPageWithIndex(i);let Ee=this.ctrlsSvc.getGridBodyCtrl(),Ve=Ee.stickyTopHeight,Je=Ee.stickyBottomHeight,gt=v.getRow(i),kt;do{let Ft=gt.rowTop,Ht=gt.rowHeight,Gt=le.getPixelOffset(),Wt=gt.rowTop-Gt,di=Wt+gt.rowHeight,Di=this.getVScrollPosition(),un=we.divStretchOffset,xn=Di.top+un,va=Di.bottom+un,Un=va-xn,Ra=we.getScrollPositionForPixel(Wt),Ui=we.getScrollPositionForPixel(di-Un),ya=Math.min((Ra+Ui)/2,Wt),or=xn+Ve>Wt,ba=va-Je<di,_l=null;o==="top"?_l=Ra:o==="bottom"?_l=Ui:o==="middle"?_l=ya:or?_l=Ra-Ve:ba&&(_l=Ui+Je),_l!==null&&(this.setVerticalScrollPosition(_l),Ae.redraw({afterScroll:!0})),kt=Ft!==gt.rowTop||Ht!==gt.rowHeight}while(kt);(xt=this.animationFrameSvc)==null||xt.flushAllFrames()})}ensureColumnVisible(i,o="auto"){let{colModel:v,frameworkOverrides:I}=this.beans,N=v.getCol(i);if(!N||N.isPinned()||!this.visibleCols.isColDisplayed(N))return;let W=this.getPositionedHorizontalScroll(N,o);I.wrapIncoming(()=>{var Z;W!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(W),this.centerRowsCtrl.onHorizontalViewportChanged(),(Z=this.animationFrameSvc)==null||Z.flushAllFrames()})}getPositionedHorizontalScroll(i,o){let{columnBeforeStart:v,columnAfterEnd:I}=this.isColumnOutsideViewport(i),N=this.centerRowsCtrl.getCenterWidth()<i.getActualWidth(),W=this.centerRowsCtrl.getCenterWidth(),Z=this.enableRtl,ee=(Z?v:I)||N,le=Z?I:v;o!=="auto"&&(ee=o==="start",le=o==="end");let we=o==="middle";if(ee||le||we){let{colLeft:Ae,colMiddle:Ee,colRight:Ve}=this.getColumnBounds(i);return we?Ee-W/2:ee?Z?Ve:Ae:Z?Ae-W:Ve-W}return null}isColumnOutsideViewport(i){let{start:o,end:v}=this.getViewportBounds(),{colLeft:I,colRight:N}=this.getColumnBounds(i),W=this.enableRtl,Z=W?o>N:v<N,ee=W?v<I:o>I;return{columnBeforeStart:Z,columnAfterEnd:ee}}getColumnBounds(i){let o=this.enableRtl,v=this.visibleCols.bodyWidth,I=i.getActualWidth(),N=i.getLeft(),W=o?-1:1,Z=o?v-N:N,ee=Z+I*W,le=Z+I/2*W;return{colLeft:Z,colMiddle:le,colRight:ee}}getViewportBounds(){let i=this.centerRowsCtrl.getCenterWidth(),o=this.centerRowsCtrl.getCenterViewportScrollLeft(),v=o,I=i+o;return{start:v,end:I,width:i}}},Dm=class extends jt{constructor(i,o=!1){super(),this.callback=i,this.addSpacer=o}postConstruct(){let i=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",i),this.addManagedEventListeners({columnContainerWidthChanged:i,displayedColumnsChanged:i,leftPinnedWidthChanged:i}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:i,scrollVisibilityChanged:i,scrollbarWidthChanged:i}),this.setWidth()}setWidth(){let i=lo(this.gos,"print"),{visibleCols:o,scrollVisibleSvc:v}=this.beans,I=o.bodyWidth,N=o.getColsLeftWidth(),W=o.getDisplayedColumnsRightWidth(),Z;i?Z=I+N+W:(Z=I,this.addSpacer&&(this.gos.get("enableRtl")?N:W)===0&&v.verticalScrollShowing&&(Z+=v.getScrollbarWidth())),this.callback(Z)}},PP=class extends jt{constructor(i){super(),this.centerContainerCtrl=i}wireBeans(i){this.scrollVisibleSvc=i.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.gridBodyCtrl=i.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){let{beans:i,centerContainerCtrl:o,gridBodyCtrl:v}=this,I=()=>{tp(i,()=>{this.onCenterViewportResized()})};o.registerViewportResizeListener(I),v.registerBodyViewportResizeListener(I)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){let{pinnedCols:i,colFlex:o}=this.beans;i==null||i.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();let v=this.centerContainerCtrl.getCenterWidth();v!==this.centerWidth&&(this.centerWidth=v,o==null||o.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){let i=this.gridBodyCtrl.eBodyViewport,o=Sa(i);this.bodyHeight!==o&&(this.bodyHeight=o,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){let i={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(i)}onHorizontalViewportChanged(){let i=this.centerContainerCtrl.getCenterWidth(),o=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(i,o)}};function h0(i,o,v,I,N,W){if(v==null&&o==null)return;let Z={},ee={},le=(we,Ae)=>{we.split(" ").forEach(Ee=>{Ee.trim()!=""&&Ae(Ee)})};if(v){let we=Object.keys(v);for(let Ae=0;Ae<we.length;Ae++){let Ee=we[Ae],Ve=v[Ee],Je;typeof Ve=="string"?Je=i?i.evaluate(Ve,I):!0:typeof Ve=="function"&&(Je=Ve(I)),le(Ee,gt=>{Je?Z[gt]=!0:ee[gt]=!0})}}o&&W&&Object.keys(o).forEach(we=>le(we,Ae=>{Z[Ae]||(ee[Ae]=!0)})),W&&Object.keys(ee).forEach(W),Object.keys(Z).forEach(N)}function wo(i){if(i.group)return i.level;let o=i.parent;return o?o.level+1:0}var ov=class extends jt{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(i,o){let v=this.gos,I=Z=>{typeof Z=="string"?i.push(Z):Array.isArray(Z)&&Z.forEach(ee=>i.push(ee))},N=v.get("rowClass");N&&I(N);let W=v.getCallback("getRowClass");if(W){let Z={data:o.data,node:o,rowIndex:o.rowIndex},ee=W(Z);I(ee)}}preProcessRowClassRules(i,o){this.processRowClassRules(o,v=>{i.push(v)},()=>{})}processRowClassRules(i,o,v){let{gos:I,expressionSvc:N}=this.beans,W=I.addGridCommonParams({data:i.data,node:i,rowIndex:i.rowIndex});h0(N,void 0,I.get("rowClassRules"),W,o,v)}processStylesFromGridOptions(i){let o=this.gos,v=o.get("rowStyle"),I=o.getCallback("getRowStyle"),N;if(I){let W={data:i.data,node:i,rowIndex:i.rowIndex};N=I(W)}if(N||v)return Object.assign({},v,N)}},kx=0,tu="renderedRow",g0=class extends jt{constructor(i,o,v,I,N){var W,Z;super(),this.rowNode=i,this.useAnimationFrameForCreate=I,this.printLayout=N,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=o,this.gos=o.gos,this.paginationPage=(Z=(W=o.pagination)==null?void 0:W.getCurrentPage())!=null?Z:0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=i.id+"-"+kx++,this.rowId=yl(i.id),this.initRowBusinessKey(),this.rowFocused=o.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=wo(this.rowNode),this.setRowType(),this.setAnimateFlags(v),this.rowStyles=this.processStylesFromGridOptions(),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;let i=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=yl(i)}updateGui(i,o){i==="left"?this.leftGui=o:i==="right"?this.rightGui=o:i==="fullWidth"?this.fullWidthGui=o:this.centerGui=o}setComp(i,o,v,I){I=nh(this,this.beans.context,I);let N={rowComp:i,element:o,containerType:v,compBean:I};this.allRowGuis.push(N),this.updateGui(v,N),this.initialiseRowComp(N),this.rowType!=="FullWidthLoading"&&!this.rowNode.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()}unsetComp(i){this.allRowGuis=this.allRowGuis.filter(o=>o.containerType!==i),this.updateGui(i,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(i){let o=i?"none":"";this.allRowGuis.forEach(v=>v.element.style.display=o)}initialiseRowComp(i){var N;let o=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(i),(N=this.beans.rowAutoHeight)==null||N.checkAutoHeights(this.rowNode),this.onRowHeightChanged(i),this.updateRowIndexes(i),this.setFocusedClasses(i),this.setStylesFromGridOptions(!1,i),Ql(o)&&this.rowNode.selectable&&this.onRowSelected(i),this.updateColumnLists(!this.useAnimationFrameForCreate);let v=i.rowComp;this.getInitialRowClasses(i.containerType).forEach(W=>v.addOrRemoveCssClass(W,!0)),this.executeSlideAndFadeAnimations(i),this.rowNode.group&&We(i.element,this.rowNode.expanded==!0),this.setRowCompRowId(v),this.setRowCompRowBusinessKey(v),cd(o,i.element,tu,this),i.compBean.addDestroyFunc(()=>cd(o,i.element,tu,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,i),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(i),this.isFullWidth()&&this.setupFullWidth(i),o.get("rowDragEntireRow")&&this.addRowDraggerToRow(i),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&i.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(i){this.businessKey!=null&&i.setRowBusinessKey(this.businessKey)}setRowCompRowId(i){let o=yl(this.rowNode.id);this.rowId=o,o!=null&&i.setRowId(o)}executeSlideAndFadeAnimations(i){let{containerType:o}=i;this.slideInAnimation[o]&&(jf(()=>{this.onTopChanged()}),this.slideInAnimation[o]=!1),this.fadeInAnimation[o]&&(jf(()=>{i.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[o]=!1)}addRowDraggerToRow(i){var I;let o=(I=this.beans.rowDragSvc)==null?void 0:I.createRowDragCompForRow(this.rowNode,i.element);if(!o)return;let v=this.createBean(o,this.beans.context);this.rowDragComps.push(v),i.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(N=>N!==v),this.destroyBean(v,this.beans.context)})}setupFullWidth(i){let o=this.getPinnedForContainer(i.containerType),v=this.createFullWidthCompDetails(i.element,o);i.rowComp.showFullWidth(v)}getFullWidthCellRenderers(){var i,o;return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(v=>{var I;return(I=v==null?void 0:v.rowComp)==null?void 0:I.getFullWidthCellRenderer()}):[(o=(i=this.fullWidthGui)==null?void 0:i.rowComp)==null?void 0:o.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){let i=this.gos.getCallback("processRowPostCreate");if(!i||!this.areAllContainersReady())return;let o={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};i(o)}areAllContainersReady(){let{leftGui:i,centerGui:o,rightGui:v,beans:{visibleCols:I}}=this,N=!!i||!I.isPinningLeft(),W=!!o,Z=!!v||!I.isPinningRight();return N&&W&&Z}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;let i=this.beans.gos.getCallback("isFullWidthRow");return i?i({rowNode:this.rowNode}):!1}setRowType(){let i=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),o=this.isNodeFullWidthCell(),v=this.gos.get("masterDetail")&&this.rowNode.detail,I=this.beans.colModel.isPivotMode(),W=!!this.rowNode.group&&!this.rowNode.footer&&ix(this.gos,I);i?this.rowType="FullWidthLoading":v?this.rowType="FullWidthDetail":o?this.rowType="FullWidth":W?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(i=!1,o=!1){if(this.isFullWidth())return;let{animationFrameSvc:v}=this.beans;if(!v||i||this.gos.get("suppressAnimationFrame")||this.printLayout){this.updateColumnListsImpl(o);return}this.updateColumnListsPending||(v.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}createCellCtrls(i,o,v=null){let I={list:[],map:{}},N=(W,Z)=>{I.list.push(Z),I.map[W]=Z};return o.forEach(W=>{let Z=W.getInstanceId(),ee=i.map[Z];ee||(ee=new Rc(W,this.rowNode,this.beans,this)),N(Z,ee)}),i.list.forEach(W=>{let Z=W.column.getInstanceId();if(I.map[Z]!=null)return;if(!this.isCellEligibleToBeRemoved(W,v)){N(Z,W);return}W.destroy()}),I}updateColumnListsImpl(i){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(i)}setCellCtrls(i){this.allRowGuis.forEach(o=>{let v=this.getCellCtrlsForContainer(o.containerType);o.rowComp.setCellCtrls(v,i)})}getCellCtrlsForContainer(i){switch(i){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){let i=this.beans.colViewport,o=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{let v=i.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,v);let I=o.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,I,"left");let N=o.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,N,"right")}}isCellEligibleToBeRemoved(i,o){let{column:N}=i;if(N.getPinned()!=o)return!0;let{editing:W,cellPosition:Z}=i,{focusSvc:ee,visibleCols:le}=this.beans,we=ee.isCellFocused(Z);return W||we?!(le.allCols.indexOf(N)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||lo(this.gos,"print")}listenOnDomOrder(i){let o=()=>{i.rowComp.setDomOrder(this.getDomOrder())};i.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],o)}setAnimateFlags(i){if(this.rowNode.sticky||!i)return;let o=mi(this.rowNode.oldRowTop),{visibleCols:v}=this.beans,I=v.isPinningLeft(),N=v.isPinningRight();if(o){let{slideInAnimation:W}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){W.fullWidth=!0;return}W.center=!0,W.left=I,W.right=N}else{let{fadeInAnimation:W}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){W.fullWidth=!0;return}W.center=!0,W.left=I,W.right=N}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){let i=(Z,ee)=>Z?Z.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(Z.element,ee).params):!0,o=i(this.fullWidthGui,null),v=i(this.centerGui,null),I=i(this.leftGui,"left"),N=i(this.rightGui,"right");return o&&v&&I&&N}addListeners(){var i,o;this.addManagedListeners(this.rowNode,ge({heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this)},(o=(i=this.beans.expansionSvc)==null?void 0:i.getRowExpandedListeners(this))!=null?o:{})),this.rowNode.detail&&this.addManagedListeners(this.rowNode.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(this.rowNode,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this)}),this.addManagedListeners(this.beans.eventSvc,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(this.gos.get("rowDragEntireRow")){this.allRowGuis.forEach(I=>{this.addRowDraggerToRow(I)});return}this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{this.getAllCellCtrls().forEach(i=>i.onRowIndexChanged())},cellChanged:i=>{this.getAllCellCtrls().forEach(o=>o.onCellChanged(i))}})}onRowNodeDataChanged(i){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(v=>v.refreshCell({suppressFlash:!i.update,newData:!i.update})),this.allRowGuis.forEach(v=>{this.setRowCompRowId(v.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(v.rowComp)}),this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){let i=this.rowNode.highlighted;this.allRowGuis.forEach(o=>{let v=i==="Above",I=i==="Below";o.rowComp.addOrRemoveCssClass("ag-row-highlight-above",v),o.rowComp.addOrRemoveCssClass("ag-row-highlight-below",I)})}postProcessRowDragging(){let i=this.rowNode.dragging;this.allRowGuis.forEach(o=>o.rowComp.addOrRemoveCssClass("ag-row-dragging",i))}onDisplayedColumnsChanged(){var i;this.updateColumnLists(!0),(i=this.beans.rowAutoHeight)==null||i.checkAutoHeights(this.rowNode)}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:kc(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}findFullWidthRowGui(i){return this.allRowGuis.find(o=>o.element.contains(i))}onKeyboardNavigate(i){var we;let o=this.findFullWidthRowGui(i.target);if(!((o?o.element:null)===i.target))return;let N=this.rowNode,{focusSvc:W,navigation:Z}=this.beans,ee=W.getFocusedCell(),le={rowIndex:N.rowIndex,rowPinned:N.rowPinned,column:(we=ee==null?void 0:ee.column)!=null?we:this.getColumnForFullWidth(o)};Z==null||Z.navigateToNextCell(i,i.key,le,!0),i.preventDefault()}onTabKeyDown(i){var ee;if(i.defaultPrevented||Ri(i))return;let o=this.allRowGuis.find(le=>le.element.contains(i.target)),v=o?o.element:null,I=v===i.target,N=ga(this.beans),W=!1;v&&N&&(W=v.contains(N)&&N.classList.contains("ag-cell"));let Z=null;!I&&!W&&(Z=ni(this.beans,v,!1,i.shiftKey)),(this.isFullWidth()&&I||!Z)&&((ee=this.beans.navigation)==null||ee.onTabKeyDown(this,i))}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){var o;let i=(o=this.allRowGuis.find(v=>wa(v.element)))==null?void 0:o.element;return i?i.getBoundingClientRect().top:0}onSuppressCellFocusChanged(i){let o=this.isFullWidth()&&i?void 0:-1;this.allRowGuis.forEach(v=>{Ls(v.element,"tabindex",o)})}onFullWidthRowFocused(i){var N;let o=this.rowNode,v=i?this.isFullWidth()&&i.rowIndex===o.rowIndex&&i.rowPinned==o.rowPinned:!1,I=this.fullWidthGui?this.fullWidthGui.element:(N=this.centerGui)==null?void 0:N.element;I&&(I.classList.toggle("ag-full-width-focus",v),v&&(i!=null&&i.forceBrowserFocus)&&I.focus({preventScroll:!0}))}recreateCell(i){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,i),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,i),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,i),i.destroy(),this.updateColumnLists()}removeCellCtrl(i,o){let v={list:[],map:{}};return i.list.forEach(I=>{I!==o&&(v.list.push(I),v.map[I.column.getInstanceId()]=I)}),v}onMouseEvent(i,o){switch(i){case"dblclick":this.onRowDblClick(o);break;case"click":this.onRowClick(o);break;case"touchstart":case"mousedown":this.onRowMouseDown(o);break}}createRowEvent(i,o){let{rowNode:v}=this;return this.gos.addGridCommonParams({type:i,node:v,data:v.data,rowIndex:v.rowIndex,rowPinned:v.rowPinned,event:o})}createRowEventWithSource(i,o){let v=this.createRowEvent(i,o);return v.source=this,v}onRowDblClick(i){Ri(i)||this.beans.eventSvc.dispatchEvent(this.createRowEventWithSource("rowDoubleClicked",i))}getColumnForFullWidth(i){let{visibleCols:o}=this.beans;switch(i==null?void 0:i.containerType){case"center":return o.centerCols[0];case"left":return o.leftCols[0];case"right":return o.rightCols[0];default:return o.allCols[0]}}onRowMouseDown(i){if(this.lastMouseDownOnDragger=is(i.target,"ag-row-drag",3),!this.isFullWidth())return;let o=this.rowNode,{rangeSvc:v,focusSvc:I}=this.beans;v==null||v.removeAllCellRanges();let N=this.findFullWidthRowGui(i.target),W=N==null?void 0:N.element,Z=i.target,ee=!0;W&&W.contains(Z)&&Uu(Z)&&(ee=!1),I.setFocusedCell({rowIndex:o.rowIndex,column:this.getColumnForFullWidth(N),rowPinned:o.rowPinned,forceBrowserFocus:ee})}onRowClick(i){if(Ri(i)||this.lastMouseDownOnDragger)return;let{eventSvc:v,selectionSvc:I}=this.beans;v.dispatchEvent(this.createRowEventWithSource("rowClicked",i)),I==null||I.handleSelectionEvent(i,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(i){var o;this.rowType==="FullWidthDetail"&&((o=this.beans.masterDetailSvc)==null||o.setupDetailRowAutoHeight(this,i))}createFullWidthCompDetails(i,o){let{gos:v,rowNode:I}=this,N=v.addGridCommonParams({fullWidth:!0,data:I.data,node:I,value:I.key,valueFormatted:I.key,eGridCell:i,eParentOfValue:i,pinned:o,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(Z,ee,le,we)=>this.addFullWidthRowDragging(Z,ee,le,we),setTooltip:(Z,ee)=>{v.assertModuleRegistered("Tooltip",3),this.refreshRowTooltip(Z,ee)}}),W=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return Ji(W,N);case"FullWidthGroup":return HA(W,N);case"FullWidthLoading":return mx(W,N);default:return px(W,N)}}refreshRowTooltip(i,o){var v;this.fullWidthGui&&(this.tooltipFeature=(v=this.beans.tooltipSvc)==null?void 0:v.refreshRowTooltip(this.tooltipFeature,this,i,o))}addFullWidthRowDragging(i,o,v="",I){let{rowDragSvc:N,context:W}=this.beans;if(!N||!this.isFullWidth())return;let Z=N.createRowDragComp(()=>v,this.rowNode,void 0,i,o,I);this.createBean(Z,W),this.addDestroyFunc(()=>{this.destroyBean(Z,W)})}onUiLevelChanged(){let i=wo(this.rowNode);if(this.rowLevel!=i){let o="ag-row-level-"+i,v="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(I=>{I.rowComp.addOrRemoveCssClass(o,!0),I.rowComp.addOrRemoveCssClass(v,!1)})}this.rowLevel=i}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){let i=this.isFirstRowOnPage(),o=this.isLastRowOnPage();this.firstRowOnPage!==i&&(this.firstRowOnPage=i,this.allRowGuis.forEach(v=>v.rowComp.addOrRemoveCssClass("ag-row-first",i))),this.lastRowOnPage!==o&&(this.lastRowOnPage=o,this.allRowGuis.forEach(v=>v.rowComp.addOrRemoveCssClass("ag-row-last",o)))}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){var o;let i=[];(o=this.beans.rowStyleSvc)==null||o.processClassesFromGridOptions(i,this.rowNode),i.length&&i.forEach(v=>{this.allRowGuis.forEach(I=>I.rowComp.addOrRemoveCssClass(v,!0))})}postProcessRowClassRules(){var i;(i=this.beans.rowStyleSvc)==null||i.processRowClassRules(this.rowNode,o=>{this.allRowGuis.forEach(v=>v.rowComp.addOrRemoveCssClass(o,!0))},o=>{this.allRowGuis.forEach(v=>v.rowComp.addOrRemoveCssClass(o,!1))})}setStylesFromGridOptions(i,o){i&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(o,v=>v.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(i){return i==="left"||i==="right"?i:null}getInitialRowClasses(i){var ee;let o=this.getPinnedForContainer(i),v=this.isFullWidth(),{rowNode:I,beans:N}=this,W=[];W.push("ag-row"),W.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[i]&&W.push("ag-opacity-zero"),W.push(I.rowIndex%2===0?"ag-row-even":"ag-row-odd"),I.isRowPinned()&&W.push("ag-row-pinned"),I.isSelected()&&W.push("ag-row-selected"),I.footer&&W.push("ag-row-footer"),W.push("ag-row-level-"+this.rowLevel),I.stub&&W.push("ag-row-loading"),v&&W.push("ag-full-width-row"),(ee=N.expansionSvc)==null||ee.addExpandedCss(W,I),I.dragging&&W.push("ag-row-dragging");let{rowStyleSvc:Z}=N;return Z&&(Z.processClassesFromGridOptions(W,I),Z.preProcessRowClassRules(W,I)),W.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&W.push("ag-row-first"),this.isLastRowOnPage()&&W.push("ag-row-last"),v&&(o==="left"&&W.push("ag-cell-last-left-pinned"),o==="right"&&W.push("ag-cell-first-right-pinned")),W}processStylesFromGridOptions(){var i,o;return(o=(i=this.beans.rowStyleSvc)==null?void 0:i.processStylesFromGridOptions(this.rowNode))!=null?o:this.emptyStyle}onRowSelected(i){var o;(o=this.beans.selectionSvc)==null||o.onRowCtrlSelected(this,v=>{(v===this.centerGui||v===this.fullWidthGui)&&this.announceDescription()},i)}announceDescription(){var i;(i=this.beans.selectionSvc)==null||i.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(i){if(!this.active)return;let{element:o,compBean:v}=i,{rowNode:I,beans:N,gos:W}=this;v.addManagedListeners(o,{mouseenter:()=>I.dispatchRowEvent("mouseEnter"),mouseleave:()=>I.dispatchRowEvent("mouseLeave")}),v.addManagedListeners(I,{mouseEnter:()=>{var Z;!((Z=N.dragSvc)!=null&&Z.dragging)&&!W.get("suppressRowHoverHighlight")&&(o.classList.add("ag-row-hover"),I.setHovered(!0))},mouseLeave:()=>{o.classList.remove("ag-row-hover"),I.setHovered(!1)}})}roundRowTopToBounds(i){let o=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),v=this.applyPaginationOffset(o.top,!0)-100,I=this.applyPaginationOffset(o.bottom,!0)+100;return Math.min(Math.max(v,i),I)}forEachGui(i,o){i?o(i):this.allRowGuis.forEach(o)}onRowHeightChanged(i){if(this.rowNode.rowHeight==null)return;let o=this.rowNode.rowHeight,v=this.beans.environment.getDefaultRowHeight(),N=rs(this.gos)?qu(this.beans,this.rowNode).height:void 0,W=N?`${Math.min(v,N)-2}px`:void 0;this.forEachGui(i,Z=>{Z.element.style.height=`${o}px`,W&&Z.element.style.setProperty("--ag-line-height",W)})}destroyFirstPass(i=!1){this.active=!1;let{rowNode:o}=this;if(!i&&vn(this.gos)&&!o.sticky)if(o.rowTop!=null){let N=this.roundRowTopToBounds(o.rowTop);this.setRowTop(N)}else this.allRowGuis.forEach(N=>N.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0));o.setHovered(!1);let v=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(v),this.beans.eventSvc.dispatchEvent(v),super.destroy()}destroySecondPass(){var o;this.allRowGuis.length=0,(o=this.beans.editSvc)==null||o.stopRowEditing(this);let i=v=>(v.list.forEach(I=>I.destroy()),{list:[],map:{}});this.centerCellCtrls=i(this.centerCellCtrls),this.leftCellCtrls=i(this.leftCellCtrls),this.rightCellCtrls=i(this.rightCellCtrls)}setFocusedClasses(i){this.forEachGui(i,o=>{o.rowComp.addOrRemoveCssClass("ag-row-focus",this.rowFocused),o.rowComp.addOrRemoveCssClass("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){let{focusSvc:i,editSvc:o}=this.beans,v=i.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);v!==this.rowFocused&&(this.rowFocused=v,this.setFocusedClasses()),!v&&this.editing&&(o==null||o.stopRowEditing(this,!1))}onPaginationChanged(){var o,v;let i=(v=(o=this.beans.pagination)==null?void 0:o.getCurrentPage())!=null?v:0;this.paginationPage!==i&&(this.paginationPage=i,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(i,o=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return i;let v=this.beans.pageBounds.getPixelOffset();return i+v*(o?1:-1)}setRowTop(i){if(!this.printLayout&&mi(i)){let o=this.applyPaginationOffset(i),N=`${this.rowNode.isRowPinned()||this.rowNode.sticky?o:this.beans.rowContainerHeight.getRealPixelPosition(o)}px`;this.setRowTopStyle(N)}}getInitialRowTop(i){return this.suppressRowTransform?this.getInitialRowTopShared(i):void 0}getInitialTransform(i){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(i)})`}getInitialRowTopShared(i){if(this.printLayout)return"";let o=this.rowNode,v;if(o.sticky)v=o.stickyRowTop;else{let I=this.slideInAnimation[i]?this.roundRowTopToBounds(o.oldRowTop):o.rowTop,N=this.applyPaginationOffset(I);v=o.isRowPinned()?N:this.beans.rowContainerHeight.getRealPixelPosition(N)}return v+"px"}setRowTopStyle(i){this.allRowGuis.forEach(o=>this.suppressRowTransform?o.rowComp.setTop(i):o.rowComp.setTransform(`translateY(${i})`))}getCellCtrl(i,o=!1){let v=null;return this.getAllCellCtrls().forEach(I=>{I.column==i&&(v=I)}),v!=null||o||this.getAllCellCtrls().forEach(I=>{I.getColSpanningList().indexOf(i)>=0&&(v=I)}),v}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(i){var W,Z,ee,le;let o=this.rowNode.getRowIndexString();if(o===null)return;let v=((Z=(W=this.beans.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:W.getRowCount())!=null?Z:0)+((le=(ee=this.beans.filterManager)==null?void 0:ee.getHeaderRowCount())!=null?le:0),I=this.rowNode.rowIndex%2===0,N=v+this.rowNode.rowIndex+1;this.forEachGui(i,we=>{we.rowComp.setRowIndex(o),we.rowComp.addOrRemoveCssClass("ag-row-even",I),we.rowComp.addOrRemoveCssClass("ag-row-odd",!I),Xe(we.element,N)})}};function Ws(i){var v;return i.altKey||i.ctrlKey||i.metaKey?!1:((v=i.key)==null?void 0:v.length)===1}function gs(i,o,v,I,N){let W=I?I.getColDef().suppressKeyboardEvent:void 0;if(!W)return!1;let Z=i.addGridCommonParams({event:o,editing:N,column:I,node:v,data:v.data,colDef:I.getColDef()});return!!(W&&W(Z))}var iD=65,EI=67,LP=86,p0=68,qh=90,nD=89;function OP(i){let{keyCode:o}=i,v;switch(o){case iD:v=Bt.A;break;case EI:v=Bt.C;break;case LP:v=Bt.V;break;case p0:v=Bt.D;break;case qh:v=Bt.Z;break;case nD:v=Bt.Y;break;default:v=i.code}return v}var II=class extends jt{constructor(i){super(),this.element=i}postConstruct(){var i;this.addKeyboardListeners(),this.addMouseListeners(),(i=this.beans.touchSvc)==null||i.mockRowContextMenu(this)}addKeyboardListeners(){let i="keydown",o=this.processKeyboardEvent.bind(this,i);this.addManagedElementListeners(this.element,{[i]:o})}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",_a("touchstart")?"touchstart":"mousedown"].forEach(v=>{let I=this.processMouseEvent.bind(this,v);this.addManagedElementListeners(this.element,{[v]:I})})}processMouseEvent(i,o){var N;if(!Pc(this.gos,o)||Ri(o))return;let{cellCtrl:v,rowCtrl:I}=this.getControlsForEventTarget(o.target);i==="contextmenu"?(N=this.beans.contextMenuSvc)==null||N.handleContextMenuMouseEvent(o,void 0,I,v):(v&&v.onMouseEvent(i,o),I&&I.onMouseEvent(i,o))}getControlsForEventTarget(i){let{gos:o}=this;return{cellCtrl:Uy(o,i),rowCtrl:Qt(o,i,tu)}}processKeyboardEvent(i,o){let{cellCtrl:v,rowCtrl:I}=this.getControlsForEventTarget(o.target);o.defaultPrevented||(v?this.processCellKeyboardEvent(v,i,o):I&&I.isFullWidth()&&this.processFullWidthRowKeyboardEvent(I,i,o))}processCellKeyboardEvent(i,o,v){var ee;let{rowNode:I,column:N,editing:W}=i;!gs(this.gos,v,I,N,W)&&o==="keydown"&&(!W&&((ee=this.beans.navigation)!=null&&ee.handlePageScrollingKey(v))||i.onKeyDown(v),this.doGridOperations(v,i.editing),Ws(v)&&i.processCharacter(v)),o==="keydown"&&this.eventSvc.dispatchEvent(i.createEvent(v,"cellKeyDown"))}processFullWidthRowKeyboardEvent(i,o,v){let{rowNode:I}=i,{focusSvc:N,navigation:W}=this.beans,Z=N.getFocusedCell(),ee=Z&&Z.column;if(!gs(this.gos,v,I,ee,!1)){let we=v.key;if(o==="keydown")switch(we){case Bt.PAGE_HOME:case Bt.PAGE_END:case Bt.PAGE_UP:case Bt.PAGE_DOWN:W==null||W.handlePageScrollingKey(v,!0);break;case Bt.UP:case Bt.DOWN:i.onKeyboardNavigate(v);break;case Bt.TAB:i.onTabKeyDown(v);break;default:}}o==="keydown"&&this.eventSvc.dispatchEvent(i.createRowEvent("cellKeyDown",v))}doGridOperations(i,o){if(!i.ctrlKey&&!i.metaKey||o||!Pc(this.gos,i))return;let v=OP(i),{clipboardSvc:I,undoRedo:N}=this.beans;if(v===Bt.A)return this.onCtrlAndA(i);if(v===Bt.C)return this.onCtrlAndC(I,i);if(v===Bt.D)return this.onCtrlAndD(I,i);if(v===Bt.V)return this.onCtrlAndV(I,i);if(v===Bt.X)return this.onCtrlAndX(I,i);if(v===Bt.Y)return this.onCtrlAndY(N);if(v===Bt.Z)return this.onCtrlAndZ(N,i)}onCtrlAndA(i){var ee,le,we;let{beans:{pinnedRowModel:o,rowModel:v,visibleCols:I,rangeSvc:N,selectionSvc:W},gos:Z}=this;if(N&&Jo(Z)&&v.isRowsToRender()){let[Ae,Ee]=[(ee=o==null?void 0:o.isEmpty("top"))!=null?ee:!0,(le=o==null?void 0:o.isEmpty("bottom"))!=null?le:!0],Ve=Ae?null:"top",Je,gt;Ee?(Je=null,gt=v.getRowCount()-1):(Je="bottom",gt=(we=o==null?void 0:o.getPinnedBottomRowCount())!=null?we:0-1);let kt=I.allCols;if(!(kt!=null&&kt.length))return;N.setCellRange({rowStartIndex:0,rowStartPinned:Ve,rowEndIndex:gt,rowEndPinned:Je,columnStart:kt[0],columnEnd:Yn(kt)})}else W&&(W==null||W.selectAllRowNodes({source:"keyboardSelectAll",selectAll:FA(Z)}));i.preventDefault()}onCtrlAndC(i,o){if(!i||this.gos.get("enableCellTextSelection"))return;let{cellCtrl:v,rowCtrl:I}=this.getControlsForEventTarget(o.target);v!=null&&v.editing||I!=null&&I.editing||(o.preventDefault(),i.copyToClipboard())}onCtrlAndX(i,o){if(!i||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;let{cellCtrl:v,rowCtrl:I}=this.getControlsForEventTarget(o.target);v!=null&&v.editing||I!=null&&I.editing||(o.preventDefault(),i.cutToClipboard(void 0,"ui"))}onCtrlAndV(i,o){let{cellCtrl:v,rowCtrl:I}=this.getControlsForEventTarget(o.target);v!=null&&v.editing||I!=null&&I.editing||i&&!this.gos.get("suppressClipboardPaste")&&i.pasteFromClipboard()}onCtrlAndD(i,o){i&&!this.gos.get("suppressClipboardPaste")&&i.copyRangeDown(),o.preventDefault()}onCtrlAndZ(i,o){!this.gos.get("undoRedoCellEditing")||!i||(o.preventDefault(),o.shiftKey?i.redo("ui"):i.undo("ui"))}onCtrlAndY(i){i==null||i.redo("ui")}},Ax=class extends jt{constructor(i,o){super(),this.eContainer=i,this.eViewport=o}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(i){let o=i.uiContainerHeight,v=o!=null?`${o}px`:"";this.eContainer.style.height=v,this.eViewport&&(this.eViewport.style.height=v)}},m0=i=>i.topRowCtrls,rv=i=>i.getStickyTopRowCtrls(),Qy=i=>i.getStickyBottomRowCtrls(),np=i=>i.bottomRowCtrls,tc=i=>i.allRowCtrls,Jy={center:{type:"center",container:"ag-center-cols-container",viewport:"ag-center-cols-viewport",getRowCtrls:tc},left:{type:"left",container:"ag-pinned-left-cols-container",pinnedType:"left",getRowCtrls:tc},right:{type:"right",container:"ag-pinned-right-cols-container",pinnedType:"right",getRowCtrls:tc},fullWidth:{type:"fullWidth",container:"ag-full-width-container",fullWidth:!0,getRowCtrls:tc},topCenter:{type:"center",container:"ag-floating-top-container",viewport:"ag-floating-top-viewport",getRowCtrls:m0},topLeft:{type:"left",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:m0},topRight:{type:"right",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:m0},topFullWidth:{type:"fullWidth",container:"ag-floating-top-full-width-container",fullWidth:!0,getRowCtrls:m0},stickyTopCenter:{type:"center",container:"ag-sticky-top-container",viewport:"ag-sticky-top-viewport",getRowCtrls:rv},stickyTopLeft:{type:"left",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:rv},stickyTopRight:{type:"right",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:rv},stickyTopFullWidth:{type:"fullWidth",container:"ag-sticky-top-full-width-container",fullWidth:!0,getRowCtrls:rv},stickyBottomCenter:{type:"center",container:"ag-sticky-bottom-container",viewport:"ag-sticky-bottom-viewport",getRowCtrls:Qy},stickyBottomLeft:{type:"left",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:Qy},stickyBottomRight:{type:"right",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:Qy},stickyBottomFullWidth:{type:"fullWidth",container:"ag-sticky-bottom-full-width-container",fullWidth:!0,getRowCtrls:Qy},bottomCenter:{type:"center",container:"ag-floating-bottom-container",viewport:"ag-floating-bottom-viewport",getRowCtrls:np},bottomLeft:{type:"left",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:np},bottomRight:{type:"right",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:np},bottomFullWidth:{type:"fullWidth",container:"ag-floating-bottom-full-width-container",fullWidth:!0,getRowCtrls:np}};function sv(i){return Jy[i]}var FP=["topCenter","topLeft","topRight"],eb=["bottomCenter","bottomLeft","bottomRight"],aD=["center","left","right"],Dx=["center","left","right","fullWidth"],iu=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],oD=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],Oc=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],gr=["stickyTopCenter","stickyTopLeft","stickyTopRight"],lv=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],nu=[...gr,"stickyTopFullWidth",...lv,"stickyBottomFullWidth"],md=[...FP,...eb,...aD,...gr,...lv],Yh=class extends jt{constructor(i){super(),this.name=i,this.visible=!0,this.EMPTY_CTRLS=[],this.options=sv(i)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new PP(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(i){this.comp.setOffsetTop(`${i.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(i,o){i.indexOf(this.name)>=0&&o()}setComp(i,o,v){this.comp=i,this.eContainer=o,this.eViewport=v,this.createManagedBean(new II(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();let{pinnedCols:I,rangeSvc:N}=this.beans,W=()=>this.onPinnedWidthChanged();this.forContainers(oD,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(I==null?void 0:I.createPinnedWidthFeature(this.eContainer,!0)),this.addManagedEventListeners({leftPinnedWidthChanged:W})}),this.forContainers(Oc,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(I==null?void 0:I.createPinnedWidthFeature(this.eContainer,!1)),this.addManagedEventListeners({rightPinnedWidthChanged:W})}),this.forContainers(Dx,()=>this.createManagedBean(new Ax(this.eContainer,this.name==="center"?v:void 0))),N&&this.forContainers(md,()=>this.createManagedBean(N.createDragListenerFeature(this.eContainer))),this.forContainers(iu,()=>this.createManagedBean(new Dm(Z=>this.comp.setContainerWidth(`${Z}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(i){this.addManagedElementListeners(this.eViewport,{scroll:i})}addListeners(){this.addManagedEventListeners({displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onDisplayedColumnsChanged.bind(this),displayedRowsChanged:i=>this.onDisplayedRowsChanged(i.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedRowsChanged()}listenOnDomOrder(){if(nu.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}let o=()=>{let v=this.gos.get("ensureDomOrder"),I=lo(this.gos,"print");this.comp.setDomOrder(v||I)};this.addManagedPropertyListener("domLayout",o),o()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){let{dragSvc:i}=this.beans;if(!i)return;let o=v=>{i.dragging&&v.cancelable&&v.preventDefault()};this.eContainer.addEventListener("touchmove",o,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",o))}onHorizontalViewportChanged(i=!1){let o=this.getCenterWidth(),v=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(o,v,i)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return cr(this.eViewport)}getCenterViewportScrollLeft(){return Kg(this.eViewport,this.enableRtl)}registerViewportResizeListener(i){let o=Xl(this.beans,this.eViewport,i);this.addDestroyFunc(()=>o())}isViewportInTheDOMTree(){return ns(this.eViewport)}getViewportScrollLeft(){return Kg(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||Zw(this.eViewport)}setHorizontalScroll(i){this.comp.setHorizontalScroll(i)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(i){gl(this.eViewport,i,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){let i=this.isContainerVisible();this.visible!=i&&(this.visible=i,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(i=!1){let o=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||o.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}let v=lo(this.gos,"print"),N=this.gos.get("embedFullWidthRows")||v,W=o.filter(Z=>{let ee=Z.isFullWidth();return this.options.fullWidth?!N&&ee:N||!ee});this.comp.setRowCtrls({rowCtrls:W,useFlushSync:i})}},tb="ag-force-vertical-scroll",Wo="ag-selectable",Sl="ag-column-moving",Ex=class extends jt{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(i){this.ctrlsSvc=i.ctrlsSvc,this.colModel=i.colModel,this.scrollVisibleSvc=i.scrollVisibleSvc,this.pinnedRowModel=i.pinnedRowModel,this.filterManager=i.filterManager,this.rowGroupColsSvc=i.rowGroupColsSvc}setComp(i,o,v,I,N,W,Z){var ee,le;this.comp=i,this.eGridBody=o,this.eBodyViewport=v,this.eTop=I,this.eBottom=N,this.eStickyTop=W,this.eStickyBottom=Z,this.eCenterColsViewport=v.querySelector(`.${sv("center").viewport}`),this.eFullWidthContainer=v.querySelector(`.${sv("fullWidth").container}`),this.eStickyTopFullWidthContainer=W.querySelector(`.${sv("stickyTopFullWidth").container}`),this.eStickyBottomFullWidthContainer=Z.querySelector(`.${sv("stickyBottomFullWidth").container}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",we=>this.setCellTextSelection(we.currentValue)),this.createManagedBean(new Zy(this.comp)),this.scrollFeature=this.createManagedBean(new u0(this.eBodyViewport)),(ee=this.beans.rowDragSvc)==null||ee.setupRowDrag(this.eBodyViewport,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([I,v,N,W,Z]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),(le=this.filterManager)==null||le.setupAdvFilterHeaderComp(I),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){let i=this.setFloatingHeights.bind(this),o=this.setGridRootRole.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:i,pinnedHeightChanged:i,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:o,columnPivotChanged:o}),this.addManagedPropertyListener("treeData",o)}onGridColumnsChanged(){let i=this.beans.colModel.getCols();this.comp.setColumnCount(i.length)}onScrollVisibilityChanged(){let{scrollVisibleSvc:i}=this,o=i.verticalScrollShowing;this.setVerticalScrollPaddingVisible(o),this.setStickyWidth(o),this.setStickyBottomOffsetBottom();let v=o&&i.getScrollbarWidth()||0,I=To()?16:0,N=`calc(100% + ${v+I}px)`;tp(this.beans,()=>this.comp.setBodyViewportWidth(N)),this.updateScrollingClasses()}setGridRootRole(){let{rowGroupColsSvc:i,colModel:o}=this,v=this.gos.get("treeData");if(!v){let I=o.isPivotMode();v=(i?i.columns.length:0)>=(I?2:1)}this.comp.setGridRootRole(v?"treegrid":"grid")}addFocusListeners(i){i.forEach(o=>{this.addManagedElementListeners(o,{focusin:v=>{let{target:I}=v,N=is(I,"ag-root",o);o.classList.toggle("ag-has-focus",!N)},focusout:v=>{let{target:I,relatedTarget:N}=v,W=o.contains(N),Z=is(N,"ag-root",o);is(I,"ag-root",o)||(!W||Z)&&o.classList.remove("ag-has-focus")}})})}setColumnMovingCss(i){this.comp.setColumnMovingCss(Sl,i)}setCellTextSelection(i=!1){this.comp.setCellSelectableCss(Wo,i)}updateScrollingClasses(){let{eGridBody:{classList:i},scrollVisibleSvc:o}=this;i.toggle("ag-body-vertical-content-no-gap",!o.verticalScrollGap),i.toggle("ag-body-horizontal-content-no-gap",!o.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:i=>{if(i.target instanceof HTMLImageElement)return i.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){var i;(i=this.beans.editSvc)==null||i.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){var N,W,Z,ee;let i=((W=(N=this.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:N.getRowCount())!=null?W:0)+((ee=(Z=this.filterManager)==null?void 0:Z.getHeaderRowCount())!=null?ee:0),{rowModel:o}=this.beans,v=o.isLastRowIndexKnown()?o.getRowCount():-1,I=v===-1?-1:i+v;this.comp.setRowCount(I)}registerBodyViewportResizeListener(i){this.comp.registerBodyViewportResizeListener(i)}setVerticalScrollPaddingVisible(i){let o=i?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(o)}isVerticalScrollShowing(){let i=this.gos.get("alwaysShowVerticalScroll"),o=i?tb:null,v=lo(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(o,i),i||v&&qg(this.eBodyViewport)}setupRowAnimationCssClass(){let{rowContainerHeight:i,environment:o}=this.beans,v=o.sizesMeasured,I=()=>{let N=v&&vn(this.gos)&&!i.stretching,W=N?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(W,N)};I(),this.addManagedEventListeners({heightScaleChanged:I}),this.addManagedPropertyListener("animateRows",I),this.addManagedEventListeners({gridStylesChanged:()=>{!v&&o.sizesMeasured&&(v=!0,I())}})}addBodyViewportListener(){let{popupSvc:i,touchSvc:o}=this.beans,v=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(this.eBodyViewport,{contextmenu:v}),o==null||o.mockBodyContextMenu(this,v),this.addManagedElementListeners(this.eBodyViewport,{wheel:this.onBodyViewportWheel.bind(this,i)}),this.addManagedElementListeners(this.eStickyTop,{wheel:this.onStickyWheel.bind(this)}),this.addManagedElementListeners(this.eStickyBottom,{wheel:this.onStickyWheel.bind(this)}),this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:i=>this.onFullWidthContainerWheel(i)})}onFullWidthContainerWheel(i){let{deltaX:o,deltaY:v,shiftKey:I}=i;(I||Math.abs(o)>Math.abs(v))&&Pc(this.gos,i)&&this.scrollGridBodyToMatchEvent(i)}onStickyWheel(i){let{deltaX:o,deltaY:v,shiftKey:I}=i,N=I||Math.abs(o)>Math.abs(v),W=i.target;N?(this.eStickyTopFullWidthContainer.contains(W)||this.eStickyBottomFullWidthContainer.contains(W))&&this.scrollGridBodyToMatchEvent(i):(i.preventDefault(),this.scrollVertically(v))}scrollGridBodyToMatchEvent(i){let{deltaX:o,deltaY:v}=i;i.preventDefault(),this.eCenterColsViewport.scrollBy({left:o||v})}onBodyViewportContextMenu(i,o,v){var N;if(!i&&!v)return;this.gos.get("preventDefaultOnContextMenu")&&(i||v).preventDefault();let{target:I}=i||o;(I===this.eBodyViewport||I===this.ctrlsSvc.get("center").eViewport)&&((N=this.beans.contextMenuSvc)==null||N.showContextMenu({mouseEvent:i,touchEvent:v,value:null,anchorToElement:this.eGridBody}))}onBodyViewportWheel(i,o){this.gos.get("suppressScrollWhenPopupsAreOpen")&&i!=null&&i.hasAnchoredPopup()&&o.preventDefault()}scrollVertically(i){let o=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(o+i),this.eBodyViewport.scrollTop-o}setFloatingHeights(){var I,N;let{pinnedRowModel:i}=this,o=(I=i==null?void 0:i.getPinnedTopTotalHeight())!=null?I:0,v=(N=i==null?void 0:i.getPinnedBottomTotalHeight())!=null?N:0;this.comp.setTopHeight(o),this.comp.setBottomHeight(v),this.comp.setTopDisplay(o?"inherit":"none"),this.comp.setBottomDisplay(v?"inherit":"none"),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(i=0){this.comp.setStickyTopHeight(`${i}px`),this.stickyTopHeight=i}setStickyBottomHeight(i=0){this.comp.setStickyBottomHeight(`${i}px`),this.stickyBottomHeight=i}setStickyWidth(i){if(!i)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{let o=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${o}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${o}px)`)}}setStickyTopOffsetTop(){var N,W,Z,ee;let o=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+((W=(N=this.filterManager)==null?void 0:N.getHeaderHeight())!=null?W:0),v=(ee=(Z=this.pinnedRowModel)==null?void 0:Z.getPinnedTopTotalHeight())!=null?ee:0,I=0;o>0&&(I+=o),v>0&&(I+=v),I>0&&(I+=1),this.comp.setStickyTopTop(`${I}px`)}setStickyBottomOffsetBottom(){var ee;let{pinnedRowModel:i,scrollVisibleSvc:o,comp:v}=this,I=(ee=i==null?void 0:i.getPinnedBottomTotalHeight())!=null?ee:0,W=o.horizontalScrollShowing&&o.getScrollbarWidth()||0,Z=I+W;v.setStickyBottomBottom(`${Z}px`)}},ib=class extends cn{constructor(i,o){super(),this.direction=o,this.eViewport=fi,this.eContainer=fi,this.hideTimeout=0,this.setTemplate(i)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",Qn()||na())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=To(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){let i=this.getGui(),o=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!0),v=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!1);this.addManagedListeners(i,{mouseenter:o,mousedown:o,touchstart:o,mouseleave:v,touchend:v})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),tp(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:i=>{i.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(i){let o=this.eViewport;os(()=>wa(o),()=>this.setScrollPosition(i),100)}onScrollCallback(i){this.addManagedElementListeners(this.eViewport,{scroll:i})}},Ix=class extends ib{constructor(){super(`<div class="ag-body-horizontal-scroll" aria-hidden="true">
            <div class="ag-horizontal-left-spacer" data-ref="eLeftSpacer"></div>
            <div class="ag-body-horizontal-scroll-viewport" data-ref="eViewport">
                <div class="ag-body-horizontal-scroll-container" data-ref="eContainer"></div>
            </div>
            <div class="ag-horizontal-right-spacer" data-ref="eRightSpacer"></div>
        </div>`,"horizontal"),this.eLeftSpacer=fi,this.eRightSpacer=fi,this.setScrollVisibleDebounce=0}wireBeans(i){this.visibleCols=i.visibleCols,this.scrollVisibleSvc=i.scrollVisibleSvc}postConstruct(){super.postConstruct();let i=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:i,displayedColumnsWidthChanged:i,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",i),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new Dm(o=>this.eContainer.style.width=`${o}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){var o,v;if(!this.invisibleScrollbar)return;let i=(v=(o=this.beans.pinnedRowModel)==null?void 0:o.getPinnedBottomTotalHeight())!=null?v:0;this.getGui().style.bottom=`${i}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){let i=this.scrollVisibleSvc.verticalScrollShowing,o=this.visibleCols.getDisplayedColumnsRightWidth(),v=!this.enableRtl&&i,I=this.scrollVisibleSvc.getScrollbarWidth();v&&(o+=I),Mc(this.eRightSpacer,o),this.eRightSpacer.classList.toggle("ag-scroller-corner",o<=I);let N=this.visibleCols.getColsLeftWidth();this.enableRtl&&i&&(N+=I),Mc(this.eLeftSpacer,N),this.eLeftSpacer.classList.toggle("ag-scroller-corner",N<=I)}setScrollVisible(){let i=this.scrollVisibleSvc.horizontalScrollShowing,o=this.invisibleScrollbar,v=this.gos.get("suppressHorizontalScroll"),I=i&&this.scrollVisibleSvc.getScrollbarWidth()||0,W=v?0:I===0&&o?16:I,Z=()=>{this.setScrollVisibleDebounce=0,this.addOrRemoveCssClass("ag-scrollbar-invisible",o),mn(this.getGui(),W),mn(this.eViewport,W),mn(this.eContainer,W),this.setDisplayed(i,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),i?this.setScrollVisibleDebounce=window.setTimeout(Z,100):Z()}getScrollPosition(){return Kg(this.eViewport,this.enableRtl)}setScrollPosition(i){wa(this.eViewport)||this.attemptSettingScrollPosition(i),gl(this.eViewport,i,this.enableRtl)}},f0={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:Ix},Wi=class extends ib{constructor(){super(`<div class="ag-body-vertical-scroll" aria-hidden="true">
            <div class="ag-body-vertical-scroll-viewport" data-ref="eViewport">
                <div class="ag-body-vertical-scroll-container" data-ref="eContainer"></div>
            </div>
        </div>`,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new Ax(this.eContainer));let{ctrlsSvc:i}=this.beans;i.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,i)})}setScrollVisible(){let{scrollVisibleSvc:i}=this.beans,o=i.verticalScrollShowing,v=this.invisibleScrollbar,I=o&&i.getScrollbarWidth()||0,N=I===0&&v?16:I;this.addOrRemoveCssClass("ag-scrollbar-invisible",v),Mc(this.getGui(),N),Mc(this.eViewport,N),Mc(this.eContainer,N),this.setDisplayed(o,{skipAriaHidden:!0})}onRowContainerHeightChanged(i){let v=i.getGridBodyCtrl().eBodyViewport,I=this.getScrollPosition(),N=v.scrollTop;I!=N&&this.setScrollPosition(N,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(i,o){!o&&!wa(this.eViewport)&&this.attemptSettingScrollPosition(i),this.eViewport.scrollTop=i}},TI={selector:"AG-FAKE-VERTICAL-SCROLL",component:Wi};function v0(i){return i.cols?i.cols.treeDepth+1:-1}function Aa(i){var o,v;return(v=(o=i.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:o.getRowCount())!=null?v:0}function Xh(i){let o=[],v=i.ctrlsSvc.getHeaderRowContainerCtrls();for(let I of v){if(!I)continue;let N=I.getGroupRowCount()||0;for(let W=0;W<N;W++){let Z=I.getGroupRowCtrlAtIndex(W),ee=o[W];if(Z){let le=xo(i,Z);(ee==null||le>ee)&&(o[W]=le)}}}return o}function xo(i,o){let v=i.colModel.isPivotMode()?rD(i):ap(i),I=0,N=o.getHeaderCtrls();for(let W of N){let{column:Z}=W;if(Z.isAutoHeaderHeight()){let ee=Z.getAutoHeaderHeight();ee!=null&&ee>I&&(I=ee)}}return Math.max(v,I)}function Uo(i){let o=i.colModel.isPivotMode()?y0(i):ia(i),I=i.visibleCols.allCols.filter(N=>N.isAutoHeaderHeight()).map(N=>N.getAutoHeaderHeight()||0);return Math.max(o,...I)}function ia(i){var o;return(o=i.gos.get("headerHeight"))!=null?o:i.environment.getDefaultHeaderHeight()}function Hn(i){var o;return(o=i.gos.get("floatingFiltersHeight"))!=null?o:ia(i)}function ap(i){var o;return(o=i.gos.get("groupHeaderHeight"))!=null?o:ia(i)}function y0(i){var o;return(o=i.gos.get("pivotHeaderHeight"))!=null?o:ia(i)}function rD(i){var o;return(o=i.gos.get("pivotGroupHeaderHeight"))!=null?o:ap(i)}var au=class extends jt{setComp(i,o,v){this.comp=i,this.eGui=o;let{beans:I}=this,{headerNavigation:N,touchSvc:W,ctrlsSvc:Z}=I;N&&this.createManagedBean(new dh(v,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,I),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,I)}),this.onPivotModeChanged(I),this.setupHeaderHeight();let ee=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:ee}),W==null||W.mockHeaderContextMenu(this,ee),Z.register("gridHeaderCtrl",this)}setupHeaderHeight(){let i=this.setHeaderHeight.bind(this);i(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],i),this.addManagedEventListeners({displayedColumnsChanged:i,columnHeaderHeightChanged:i,columnGroupHeaderHeightChanged:()=>tp(this.beans,()=>i()),gridStylesChanged:i,advancedFilterEnabledChanged:i})}setHeaderHeight(){var W;let{beans:i}=this,o=0,v=Xh(i).reduce((Z,ee)=>Z+ee,0),I=Uo(i);if((W=i.filterManager)!=null&&W.hasFloatingFilters()&&(o+=Hn(i)),o+=v,o+=I,this.headerHeight===o)return;this.headerHeight=o;let N=`${o+1}px`;this.comp.setHeightAndMinHeight(N),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(i){let o=i.colModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",o),this.comp.addOrRemoveCssClass("ag-pivot-off",!o)}onDisplayedColumnsChanged(i){let v=i.visibleCols.allCols.some(I=>I.isSpanHeaderHeight());this.comp.addOrRemoveCssClass("ag-header-allow-overflow",v)}onTabKeyDown(i){let o=this.gos.get("enableRtl"),v=i.shiftKey,I=v!==o?"LEFT":"RIGHT",{beans:N}=this,{headerNavigation:W,focusSvc:Z}=N;(W.navigateHorizontally(I,!0,i)||!v&&Z.focusOverlay(!1)||Wr(N,v,!0))&&i.preventDefault()}handleKeyDown(i){let o=null,{headerNavigation:v}=this.beans;switch(i.key){case Bt.LEFT:o="LEFT";case Bt.RIGHT:{mi(o)||(o="RIGHT"),v.navigateHorizontally(o,!1,i)&&i.preventDefault();break}case Bt.UP:o="UP";case Bt.DOWN:{mi(o)||(o="DOWN"),v.navigateVertically(o,null,i)&&i.preventDefault();break}default:return}}onFocusOut(i){let{relatedTarget:o}=i,{eGui:v,beans:I}=this;!o&&v.contains(ga(I))||v.contains(o)||(I.focusSvc.focusedHeader=null)}onHeaderContextMenu(i,o,v){var Z;let{menuSvc:I,ctrlsSvc:N}=this.beans;if(!i&&!v||!(I!=null&&I.isHeaderContextMenuEnabled()))return;let{target:W}=i!=null?i:o;(W===this.eGui||W===((Z=N.getHeaderRowContainerCtrl())==null?void 0:Z.eViewport))&&I.showHeaderContextMenu(void 0,i,v)}},Em=class extends cn{constructor(i,o){super(i),this.ctrl=o}getCtrl(){return this.ctrl}},RI=class extends Em{constructor(i){super(`<div class="ag-header-cell" role="columnheader">
            <div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
            <div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
        </div>`,i),this.eResize=fi,this.eHeaderCompWrapper=fi,this.headerCompVersion=0}postConstruct(){let i=this.getGui();((N,W)=>{W!=null&&W!=""?i.setAttribute(N,W):i.removeAttribute(N)})("col-id",this.ctrl.column.getColId());let v={setWidth:N=>i.style.width=N,addOrRemoveCssClass:(N,W)=>this.addOrRemoveCssClass(N,W),setAriaSort:N=>N?Pe(i,N):ct(i),setUserCompDetails:N=>this.setUserCompDetails(N),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(v,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0);let I=this.ctrl.getSelectAllGui();I&&this.eResize.insertAdjacentElement("afterend",I)}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(i){this.headerCompVersion++;let o=this.headerCompVersion;i.newAgStackInstance().then(v=>this.afterCompCreated(o,v))}afterCompCreated(i,o){if(i!=this.headerCompVersion||!this.isAlive()){this.destroyBean(o);return}this.destroyHeaderComp(),this.headerComp=o,this.headerCompGui=o.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},_P=class extends Em{constructor(i){super(`<div class="ag-header-group-cell" role="columnheader">
            <div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
            <div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
        </div>`,i),this.eResize=fi,this.eHeaderCompWrapper=fi}postConstruct(){let i=this.getGui(),o=(I,N)=>N!=null?i.setAttribute(I,N):i.removeAttribute(I);i.setAttribute("col-id",this.ctrl.column.getUniqueId());let v={addOrRemoveCssClass:(I,N)=>this.addOrRemoveCssClass(I,N),setHeaderWrapperHidden:I=>{I?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:I=>{I!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${I}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",I!=null)},setResizableDisplayed:I=>Vn(this.eResize,I),setWidth:I=>i.style.width=I,setAriaExpanded:I=>o("aria-expanded",I),setUserCompDetails:I=>this.setUserCompDetails(I),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(v,i,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(i){i.newAgStackInstance().then(o=>this.afterHeaderCompCreated(o))}afterHeaderCompCreated(i){let o=()=>this.destroyBean(i);if(!this.isAlive()){o();return}let v=this.getGui(),I=i.getGui();this.eHeaderCompWrapper.appendChild(I),this.addDestroyFunc(o),this.headerGroupComp=i,this.ctrl.setDragSource(v)}addOrRemoveHeaderWrapperStyle(i,o){let{eHeaderCompWrapper:v}=this;o?v.style.setProperty(i,o):v.style.removeProperty(i)}},PI=class extends Em{constructor(i){super(`<div class="ag-header-cell ag-floating-filter" role="gridcell">
            <div data-ref="eFloatingFilterBody" role="presentation"></div>
            <div class="ag-floating-filter-button ag-hidden" data-ref="eButtonWrapper" role="presentation">
                <button type="button" class="ag-button ag-floating-filter-button-button" data-ref="eButtonShowMainFilter" tabindex="-1"></button>
            </div>
        </div>`,i),this.eFloatingFilterBody=fi,this.eButtonWrapper=fi,this.eButtonShowMainFilter=fi}postConstruct(){let i=this.getGui(),o={addOrRemoveCssClass:(v,I)=>this.addOrRemoveCssClass(v,I),addOrRemoveBodyCssClass:(v,I)=>this.eFloatingFilterBody.classList.toggle(v,I),setButtonWrapperDisplayed:v=>Vn(this.eButtonWrapper,v),setCompDetails:v=>this.setCompDetails(v),getFloatingFilterComp:()=>this.compPromise,setWidth:v=>i.style.width=v,setMenuIcon:v=>this.eButtonShowMainFilter.appendChild(v)};this.ctrl.setComp(o,i,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(i){if(!i){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=i.newAgStackInstance(),this.compPromise.then(o=>this.afterCompCreated(o))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(i){if(i){if(!this.isAlive()){this.destroyBean(i);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=i,this.eFloatingFilterBody.appendChild(i.getGui()),i.afterGuiAttached&&i.afterGuiAttached()}}},op=class extends cn{constructor(i){super(),this.headerComps={},this.ctrl=i,this.setTemplate(`<div class="${this.ctrl.headerRowClass}" role="row"></div>`)}postConstruct(){Xe(this.getGui(),this.ctrl.getAriaRowIndex());let i={setHeight:o=>this.getGui().style.height=o,setTop:o=>this.getGui().style.top=o,setHeaderCtrls:(o,v)=>this.setHeaderCtrls(o,v),setWidth:o=>this.getGui().style.width=o};this.ctrl.setComp(i,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(i,o){if(!this.isAlive())return;let v=this.headerComps;if(this.headerComps={},i.forEach(I=>{let N=I.instanceId,W=v[N];delete v[N],W==null&&(W=this.createHeaderComp(I),this.getGui().appendChild(W.getGui())),this.headerComps[N]=W}),Object.values(v).forEach(I=>{this.getGui().removeChild(I.getGui()),this.destroyBean(I)}),o){let I=Object.values(this.headerComps);I.sort((W,Z)=>{let ee=W.getCtrl().column.getLeft(),le=Z.getCtrl().column.getLeft();return ee-le});let N=I.map(W=>W.getGui());BC(this.getGui(),N)}}createHeaderComp(i){let o;switch(this.ctrl.type){case"group":o=new _P(i);break;case"filter":o=new PI(i);break;default:o=new RI(i);break}return this.createBean(o),o.setParentComponent(this),o}},nb=class extends jt{constructor(i,o,v,I){super(),this.columnOrGroup=i,this.eCell=o,this.colsSpanning=I,this.columnOrGroup=i,this.ariaEl=o.querySelector("[role=columnheader]")||o,this.beans=v}setColsSpanning(i){this.colsSpanning=i,this.onLeftChanged()}getColumnOrGroup(){let{beans:i,colsSpanning:o}=this;return i.gos.get("enableRtl")&&o?Yn(o):this.columnOrGroup}postConstruct(){let i=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:i}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:i}),this.addManagedPropertyListener("domLayout",i)}setLeftFirstTime(){let{gos:i,colAnimation:o}=this.beans,v=i.get("suppressColumnMoveAnimation"),I=mi(this.columnOrGroup.getOldLeft());(o==null?void 0:o.isActive())&&I&&!v?this.animateInLeft():this.onLeftChanged()}animateInLeft(){let i=this.getColumnOrGroup(),o=this.modifyLeftForPrintLayout(i,i.getOldLeft()),v=this.modifyLeftForPrintLayout(i,i.getLeft());this.setLeft(o),this.actualLeft=v,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===v&&this.setLeft(v)})}onLeftChanged(){let i=this.getColumnOrGroup(),o=i.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(i,o),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(i,o){let{gos:v,visibleCols:I}=this.beans;if(!lo(v,"print")||i.getPinned()==="left")return o;let W=I.getColsLeftWidth();if(i.getPinned()==="right"){let Z=I.bodyWidth;return W+Z+o}return W+o}setLeft(i){if(mi(i)&&(this.eCell.style.left=`${i}px`),no(this.columnOrGroup)){let o=this.columnOrGroup.getLeafColumns();if(!o.length)return;o.length>1&&Ze(this.ariaEl,o.length)}}},uh=0,Tx="headerCtrl",Rn=class extends jt{constructor(i,o){super(),this.column=i,this.rowCtrl=o,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.instanceId=i.getUniqueId()+"-"+uh++}postConstruct(){let i=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],i),this.addManagedEventListeners({overlayExclusiveChanged:i})}shouldStopEventPropagation(i){let{headerRowIndex:o,column:v}=this.beans.focusSvc.focusedHeader,I=v.getDefinition(),N=I&&I.suppressHeaderKeyboardEvent;if(!mi(N))return!1;let W=this.gos.addGridCommonParams({colDef:I,column:v,headerRowIndex:o,event:i});return!!N(W)}getWrapperHasFocus(){return ga(this.beans)===this.eGui}setGui(i,o){this.eGui=i,this.addDomData(o),o.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),o.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(i){let{wrapperElement:o,checkMeasuringCallback:v,compBean:I}=i,{beans:N}=this,W=Ee=>{if(!this.isAlive()||!I.isAlive())return;let{paddingTop:Ve,paddingBottom:Je,borderBottomWidth:gt,borderTopWidth:kt}=hl(this.eGui),xt=Ve+Je+gt+kt,Ht=o.offsetHeight+xt;if(Ee<5){let Gt=eo(N),Wt=!Gt||!Gt.contains(o),di=Ht==0;if(Wt||di){tp(N,()=>W(Ee+1));return}}this.setColHeaderHeight(this.column,Ht)},Z=!1,ee,le=()=>{let Ee=this.column.isAutoHeaderHeight();Ee&&!Z&&we(),!Ee&&Z&&Ae()},we=()=>{Z=!0,W(0),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),ee=Xl(this.beans,o,()=>W(0))},Ae=()=>{Z=!1,ee&&ee(),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),ee=void 0};le(),I.addDestroyFunc(()=>Ae()),I.addManagedListeners(this.column,{widthChanged:()=>Z&&W(0)}),I.addManagedEventListeners({sortChanged:()=>{Z&&window.setTimeout(()=>W(0))}}),v&&v(le)}onDisplayedColumnsChanged(){let{comp:i,column:o,beans:v,eGui:I}=this;!i||!o||!I||(Hy(i,o,v.visibleCols),Ye(I,v.visibleCols.getAriaColIndex(o)))}addResizeAndMoveKeyboardListeners(i){i.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){let i=sh(this.beans);this.eGui&&Ls(this.eGui,"tabindex",i?null:"-1")}onGuiKeyDown(i){var W;let o=ga(this.beans),v=i.key===Bt.LEFT||i.key===Bt.RIGHT;if(this.isResizing&&(i.preventDefault(),i.stopImmediatePropagation()),o!==this.eGui||!i.shiftKey&&!i.altKey||((this.isResizing||v)&&(i.preventDefault(),i.stopImmediatePropagation()),!v))return;let N=i.key===Bt.LEFT!==this.gos.get("enableRtl")?"left":"right";if(i.altKey){this.isResizing=!0,this.resizeMultiplier+=1;let Z=this.getViewportAdjustedResizeDiff(i);this.resizeHeader(Z,i.shiftKey),(W=this.resizeFeature)==null||W.toggleColumnResizing(!0)}else this.moveHeader(N)}moveHeader(i){var o;(o=this.beans.colMoves)==null||o.moveHeader(i,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(i){let o=this.getResizeDiff(i),{pinnedCols:v}=this.beans;return v?v.getHeaderResizeDiff(o,this.column):o}getResizeDiff(i){let{gos:o,column:v}=this,I=i.key===Bt.LEFT!==o.get("enableRtl"),N=v.getPinned(),W=o.get("enableRtl");return N&&W!==(N==="right")&&(I=!I),(I?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{var i;(i=this.resizeFeature)==null||i.toggleColumnResizing(!1)},150))}handleKeyDown(i){let o=this.getWrapperHasFocus();switch(i.key){case Bt.PAGE_DOWN:case Bt.PAGE_UP:case Bt.PAGE_HOME:case Bt.PAGE_END:o&&i.preventDefault()}}addDomData(i){let o=Tx,{eGui:v,gos:I}=this;cd(I,v,o,this),i.addDestroyFunc(()=>cd(I,v,o,null))}focus(i){let{eGui:o}=this;return o?(this.lastFocusEvent=i||null,o.focus(),!0):!1}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){var i;this.dragSource&&((i=this.beans.dragAndDrop)==null||i.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(i,o,v){let I=i!=null?i:o,{menuSvc:N,gos:W}=this.beans;W.get("preventDefaultOnContextMenu")&&I.preventDefault(),N!=null&&N.isHeaderContextMenuEnabled(v)&&N.showHeaderContextMenu(v,i,o),this.dispatchColumnMouseEvent("columnHeaderContextMenu",v)}dispatchColumnMouseEvent(i,o){this.eventSvc.dispatchEvent({type:i,column:o})}setColHeaderHeight(i,o){if(!i.setAutoHeaderHeight(o))return;let{eventSvc:v}=this;i.isColumn?v.dispatchEvent({type:"columnHeaderHeightChanged",column:i,columns:[i],source:"autosizeColumnHeaderHeight"}):v.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:i,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},Rx=class extends Rn{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}setComp(i,o,v,I,N){this.comp=i;let{colResize:W,context:Z,colHover:ee}=this.beans,le=nh(this,Z,N);this.setGui(o,le),this.updateState(),this.setupWidth(le),this.setupMovingCss(le),this.setupMenuClass(le),this.setupSortableClass(le),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:I,checkMeasuringCallback:Ae=>this.setRefreshFunction("measuring",Ae),compBean:le}),this.addColumnHoverListener(le),this.setupFilterClass(le),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(le),this.setupSelectAll(le),this.setupUserComp(),this.refreshAria(),W?this.resizeFeature=le.createManagedBean(W.createResizeFeature(this.rowCtrl.pinned,this.column,v,i,this)):Vn(v,!1),ee==null||ee.createHoverFeature(le,[this.column],o),le.createManagedBean(new nb(this.column,o,this.beans)),le.createManagedBean(new dh(o,{shouldStopEventPropagation:Ae=>this.shouldStopEventPropagation(Ae),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(le),le.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],()=>this.refresh()),le.addManagedListeners(this.column,{colDefChanged:()=>this.refresh()}),le.addManagedListeners(this.column,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});let we=()=>this.checkDisplayName();le.addManagedEventListeners({columnValueChanged:we,columnRowGroupChanged:we,columnPivotChanged:we,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),le.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(i,o){var v;(v=this.beans.colResize)==null||v.resizeHeader(this.column,i,o)}setupUserComp(){let i=this.lookupUserCompDetails();i&&this.setCompDetails(i)}setCompDetails(i){this.userCompDetails=i,this.comp.setUserCompDetails(i)}lookupUserCompDetails(){let i=this.createParams(),o=this.column.getColDef();return Cm(this.beans.userCompFactory,o,i)}createParams(){let{menuSvc:i,sortSvc:o,colFilter:v,gos:I}=this.beans;return I.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!(i!=null&&i.isHeaderFilterButtonEnabled(this.column)),enableFilterIcon:!!v&&(!this.openFilterEnabled||jo(this.gos)),showColumnMenu:W=>{i==null||i.showColumnMenu({column:this.column,buttonElement:W,positionBy:"button"})},showColumnMenuAfterMouseClick:W=>{i==null||i.showColumnMenu({column:this.column,mouseEvent:W,positionBy:"mouse"})},showFilter:W=>{i==null||i.showFilterMenu({column:this.column,buttonElement:W,containerType:"columnFilter",positionBy:"button"})},progressSort:W=>{o==null||o.progressSort(this.column,!!W,"uiColumnSorted")},setSort:(W,Z)=>{o==null||o.setSortForColumn(this.column,W,!!Z,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(W,Z)=>{I.assertModuleRegistered("Tooltip",3),this.setupTooltip(W,Z)}})}setupSelectAll(i){let{selectionSvc:o}=this.beans;o&&(this.selectAllFeature=i.createManagedBean(o.createSelectAllFeature(this.column)),this.selectAllFeature.setComp(this))}getSelectAllGui(){var i;return(i=this.selectAllFeature)==null?void 0:i.getCheckboxGui()}handleKeyDown(i){var o;super.handleKeyDown(i),i.key===Bt.SPACE&&((o=this.selectAllFeature)==null||o.onSpaceKeyDown(i)),i.key===Bt.ENTER&&this.onEnterKeyDown(i),i.key===Bt.DOWN&&i.altKey&&this.showMenuOnKeyPress(i,!1)}onEnterKeyDown(i){var o;i.ctrlKey||i.metaKey?this.showMenuOnKeyPress(i,!0):this.sortable&&((o=this.beans.sortSvc)==null||o.progressSort(this.column,i.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(i,o){let v=this.comp.getUserCompInstance();b0(v)&&v.onMenuKeyboardShortcut(o)&&i.preventDefault()}onFocusIn(i){this.eGui.contains(i.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),ei()&&this.setActiveHeader(!0)}onFocusOut(i){this.eGui.contains(i.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(i,o){var v;this.tooltipFeature=(v=this.beans.tooltipSvc)==null?void 0:v.setupHeaderTooltip(this.tooltipFeature,this,i,o)}setupClassesFromColDef(){let i=()=>{let o=this.column.getColDef(),v=ka(o,this.gos,this.column,null),I=this.userHeaderClasses;this.userHeaderClasses=new Set(v),v.forEach(N=>{I.has(N)?I.delete(N):this.comp.addOrRemoveCssClass(N,!0)}),I.forEach(N=>this.comp.addOrRemoveCssClass(N,!1))};this.setRefreshFunction("headerClasses",i),i()}setDragSource(i){var o,v;this.dragSourceElement=i,this.removeDragSource(),!(!i||!this.draggable)&&(this.dragSource=(v=(o=this.beans.colMoves)==null?void 0:o.setDragSourceForHeader(i,this.column,this.displayName))!=null?v:null)}updateState(){let{menuSvc:i}=this.beans;this.menuEnabled=!!(i!=null&&i.isColumnMenuInHeaderEnabled(this.column)),this.openFilterEnabled=!!(i!=null&&i.isFilterMenuInHeaderEnabled(this.column)),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(i,o){this.refreshFunctions[i]=o}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),Object.values(this.refreshFunctions).forEach(i=>i())}refreshHeaderComp(){let i=this.lookupUserCompDetails();if(!i)return;(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==i.componentClass?this.attemptHeaderCompRefresh(i.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(i)}attemptHeaderCompRefresh(i){let o=this.comp.getUserCompInstance();return!o||!o.refresh?!1:o.refresh(i)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){let i=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!i.suppressMovable&&!i.lockPosition)||!!i.enableRowGroup||!!i.enablePivot}setupWidth(i){let o=()=>{let v=this.column.getActualWidth();this.comp.setWidth(`${v}px`)};i.addManagedListeners(this.column,{widthChanged:o}),o()}setupMovingCss(i){let o=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving())};i.addManagedListeners(this.column,{movingChanged:o}),o()}setupMenuClass(i){let o=()=>{this.comp.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())};i.addManagedListeners(this.column,{menuVisibleChanged:o}),o()}setupSortableClass(i){let o=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!this.sortable)};o(),this.setRefreshFunction("updateSortable",o),i.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(i){let o=()=>{let v=this.column.isFilterActive();this.comp.addOrRemoveCssClass("ag-header-cell-filtered",v),this.refreshAria()};i.addManagedListeners(this.column,{filterActiveChanged:o}),o()}setupWrapTextClass(){let i=()=>{let o=!!this.column.getColDef().wrapHeaderText;this.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",o)};i(),this.setRefreshFunction("wrapText",i)}onHeaderHighlightChanged(){let i=this.column.getHighlighted(),o=i===0,v=i===1;this.comp.addOrRemoveCssClass("ag-header-highlight-before",o),this.comp.addOrRemoveCssClass("ag-header-highlight-after",v)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){let{eGui:i,column:o,comp:v,beans:I}=this,N=Xh(this.beans),W=N.reduce((Ae,Ee)=>Ae+=Ee,0)===0;if(v.addOrRemoveCssClass("ag-header-parent-hidden",W),!o.isSpanHeaderHeight()){i.style.removeProperty("top"),i.style.removeProperty("height"),v.addOrRemoveCssClass("ag-header-span-height",!1),v.addOrRemoveCssClass("ag-header-span-total",!1);return}let{numberOfParents:Z,isSpanningTotal:ee}=this.column.getColumnGroupPaddingInfo();v.addOrRemoveCssClass("ag-header-span-height",Z>0);let le=Uo(I);if(Z===0){v.addOrRemoveCssClass("ag-header-span-total",!1),i.style.setProperty("top","0px"),i.style.setProperty("height",`${le}px`);return}v.addOrRemoveCssClass("ag-header-span-total",ee);let we=0;for(let Ae=0;Ae<Z;Ae++)we+=N[N.length-1-Ae];i.style.setProperty("top",`${-we}px`),i.style.setProperty("height",`${le+we}px`)}refreshAriaSort(){var i;if(this.sortable){let o=this.getLocaleTextFunc(),v=((i=this.beans.sortSvc)==null?void 0:i.getDisplaySortForColumn(this.column))||null;this.comp.setAriaSort(P(v)),this.setAriaDescriptionProperty("sort",o("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)}refreshAriaMenu(){if(this.menuEnabled){let i=this.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",i("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!jo(this.gos)){let i=this.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",i("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)}refreshAriaFiltered(){let i=this.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",i("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)}setAriaDescriptionProperty(i,o){o!=null?this.ariaDescriptionProperties.set(i,o):this.ariaDescriptionProperties.delete(i)}announceAriaDescription(){var o;if(!this.eGui.contains(ga(this.beans)))return;let i=Array.from(this.ariaDescriptionProperties.keys()).sort((v,I)=>v==="filter"?-1:I.charCodeAt(0)-v.charCodeAt(0)).map(v=>this.ariaDescriptionProperties.get(v)).join(". ");(o=this.beans.ariaAnnounce)==null||o.announceValue(i,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(i){var o;(o=this.beans.colHover)==null||o.addHeaderColumnHoverListener(i,this.comp,this.column)}addActiveHeaderMouseListeners(i){let o=N=>this.handleMouseOverChange(N.type==="mouseenter"),v=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column),I=N=>this.handleContextMenuMouseEvent(N,void 0,this.column);i.addManagedListeners(this.eGui,{mouseenter:o,mouseleave:o,click:v,contextmenu:I})}handleMouseOverChange(i){this.setActiveHeader(i),this.eventSvc.dispatchEvent({type:i?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(i){this.comp.addOrRemoveCssClass("ag-header-active",i)}getAnchorElementForMenu(i){let o=this.comp.getUserCompInstance();return b0(o)?o.getAnchorElementForMenu(i):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function b0(i){return typeof i.getAnchorElementForMenu=="function"&&typeof i.onMenuKeyboardShortcut=="function"}var LI=0,la=class extends jt{constructor(i,o,v){super(),this.rowIndex=i,this.pinned=o,this.type=v,this.instanceId=LI++;let I=v=="group"?"ag-header-row-column-group":v=="filter"?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${I}`}postConstruct(){this.isPrintLayout=lo(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.getHeaderCellCtrls().every(i=>i.eGui!=null):!1}setComp(i,o,v=!0){this.comp=i,o=nh(this,this.beans.context,o),v&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(o)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(i){let o=this.onRowHeightChanged.bind(this);i.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:v=>this.onVirtualColumnsChanged(v.afterScroll),columnGroupHeaderHeightChanged:o,columnHeaderHeightChanged:o,gridStylesChanged:o,advancedFilterEnabledChanged:o}),i.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),i.addManagedPropertyListener("ensureDomOrder",v=>this.isEnsureDomOrder=v.currentValue),i.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],o)}getHeaderCellCtrl(i){if(this.headerCellCtrls){for(let o of this.headerCellCtrls.values())if(o.column===i)return o}}onDisplayedColumnsChanged(){this.isPrintLayout=lo(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){let i=this.getWidthForRow();this.comp.setWidth(`${i}px`)}getWidthForRow(){let{visibleCols:i}=this.beans;return this.isPrintLayout?this.pinned!=null?0:i.getContainerWidth("right")+i.getContainerWidth("left")+i.getContainerWidth(null):i.getContainerWidth(this.pinned)}onRowHeightChanged(){let{topOffset:i,rowHeight:o}=this.getTopAndHeight();this.comp.setTop(i+"px"),this.comp.setHeight(o+"px")}getTopAndHeight(){let{filterManager:i}=this.beans,o=[],v=Xh(this.beans),I=Uo(this.beans);o.push(...v),o.push(I),i!=null&&i.hasFloatingFilters()&&o.push(Hn(this.beans));let N=0;for(let Z=0;Z<this.rowIndex;Z++)N+=o[Z];let W=o[this.rowIndex];return{topOffset:N,rowHeight:W}}onVirtualColumnsChanged(i=!1){let o=this.getHeaderCtrls(),v=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(o,v,i)}getHeaderCtrls(){let i=this.headerCellCtrls;this.headerCellCtrls=new Map;let o=this.getColumnsInViewport();for(let I of o)this.recycleAndCreateHeaderCtrls(I,i);let v=I=>{let{focusSvc:N,visibleCols:W}=this.beans;return N.isHeaderWrapperFocused(I)?W.isVisible(I.column):!1};if(i)for(let[I,N]of i)v(N)?this.headerCellCtrls.set(I,N):this.destroyBean(N);return this.getHeaderCellCtrls()}getHeaderCellCtrls(){var i,o;return Array.from((o=(i=this.headerCellCtrls)==null?void 0:i.values())!=null?o:[])}recycleAndCreateHeaderCtrls(i,o){if(!this.headerCellCtrls||i.isEmptyGroup())return;let v=i.getUniqueId(),I;if(o&&(I=o.get(v),o.delete(v)),I&&I.column!=i&&(this.destroyBean(I),I=void 0),I==null)switch(this.type){case"filter":{I=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,i,this));break}case"group":I=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,i,this));break;default:I=this.createBean(new Rx(i,this));break}this.headerCellCtrls.set(v,I)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(this.pinned!=null)return[];let i=[],o=this.getActualDepth(),{colViewport:v}=this.beans;return["left",null,"right"].forEach(I=>{let N=v.getHeadersToRender(I,o);i=i.concat(N)}),i}getActualDepth(){return this.type=="filter"?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.colViewport.getHeadersToRender(this.pinned,this.getActualDepth())}findHeaderCellCtrl(i){if(!this.headerCellCtrls)return;let o=this.getHeaderCellCtrls(),v;return typeof i=="function"?v=o.find(i):v=o.find(I=>I.column==i),v}focusHeader(i,o){let v=this.findHeaderCellCtrl(i);return v?v.focus(o):!1}destroy(){var i;(i=this.headerCellCtrls)==null||i.forEach(o=>{this.destroyBean(o)}),this.headerCellCtrls=void 0,super.destroy()}},pr=class extends jt{constructor(i){super(),this.pinned=i,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(i,o){this.comp=i,this.eViewport=o;let{pinnedCols:v,ctrlsSvc:I,colModel:N,colMoves:W,filterManager:Z}=this.beans;this.setupCenterWidth(),v==null||v.setupHeaderPinnedWidth(this),this.setupDragAndDrop(W,this.eViewport);let ee=this.onDisplayedColumnsChanged.bind(this,Z);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:ee,advancedFilterEnabledChanged:ee});let le=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;I.register(le,this),N.ready&&this.refresh()}getAllCtrls(){let i=[...this.groupsRowCtrls];return this.columnsRowCtrl&&i.push(this.columnsRowCtrl),this.filtersRowCtrl&&i.push(this.filtersRowCtrl),i}refresh(i=!1){let{focusSvc:o,colModel:v,filterManager:I}=this.beans,N=0,W=o.getFocusHeaderToUseAfterRefresh(),Z=()=>{let Ae=v0(v)-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let Ee=0;Ee<Ae;Ee++){let Ve=this.createBean(new la(N++,this.pinned,"group"));this.groupsRowCtrls.push(Ve)}},ee=()=>{let Ae=N++,Ee=!this.hidden&&(this.columnsRowCtrl==null||!i||this.columnsRowCtrl.rowIndex!==Ae);(Ee||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),Ee&&(this.columnsRowCtrl=this.createBean(new la(Ae,this.pinned,"column")))},le=()=>{this.includeFloatingFilter=!!(I!=null&&I.hasFloatingFilters())&&!this.hidden;let Ae=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){Ae();return}let Ee=N++;if(this.filtersRowCtrl){let Ve=this.filtersRowCtrl.rowIndex!==Ee;(!i||Ve)&&Ae()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new la(Ee,this.pinned,"filter")))};Z(),ee(),le();let we=this.getAllCtrls();this.comp.setCtrls(we),this.restoreFocusOnHeader(o,W)}getHeaderCtrlForColumn(i){var o;if(In(i))return(o=this.columnsRowCtrl)==null?void 0:o.getHeaderCellCtrl(i);if(this.groupsRowCtrls.length!==0)for(let v=0;v<this.groupsRowCtrls.length;v++){let I=this.groupsRowCtrls[v].getHeaderCellCtrl(i);if(I)return I}}getHtmlElementForColumnHeader(i){var o,v;return(v=(o=this.getHeaderCtrlForColumn(i))==null?void 0:o.eGui)!=null?v:null}getRowType(i){var o;return(o=this.getAllCtrls()[i])==null?void 0:o.type}focusHeader(i,o,v){let N=this.getAllCtrls()[i];return N?N.focusHeader(o,v):!1}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(i){return this.groupsRowCtrls[i]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(i){this.comp.setViewportScrollLeft(i)}onScrollCallback(i){this.addManagedElementListeners(this.eViewport,{scroll:i})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(i,o){let v=i==null?void 0:i.createBodyDropTarget(this.pinned,o);v&&this.createManagedBean(v)}restoreFocusOnHeader(i,o){if(!o)return;let{column:v}=o;v.getPinned()==this.pinned&&i.focusHeaderPosition({headerPosition:o})}onGridColumnsChanged(){this.refresh(!0)}onDisplayedColumnsChanged(i){let o=!!(i!=null&&i.hasFloatingFilters())&&!this.hidden;this.includeFloatingFilter!==o&&this.refresh(!0)}setupCenterWidth(){this.pinned==null&&this.createManagedBean(new Dm(i=>this.comp.setCenterWidth(`${i}px`),!0))}},er=class extends jt{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){let{enterpriseMenuFactory:i,filterMenuFactory:o}=this.beans;this.activeMenuFactory=i!=null?i:o}showColumnMenu(i){this.showColumnMenuCommon(this.activeMenuFactory,i,"columnMenu")}showFilterMenu(i){let{enterpriseMenuFactory:o,filterMenuFactory:v}=this.beans,I=o&&jo(this.gos)?o:v;this.showColumnMenuCommon(I,i,i.containerType,!0)}showHeaderContextMenu(i,o,v){var I;(I=this.activeMenuFactory)==null||I.showMenuAfterContextMenuEvent(i,o,v)}hidePopupMenu(){var i,o;(i=this.beans.contextMenuSvc)==null||i.hideActiveMenu(),(o=this.activeMenuFactory)==null||o.hideActiveMenu()}isColumnMenuInHeaderEnabled(i){var v;let{suppressHeaderMenuButton:o}=i.getColDef();return!o&&!!((v=this.activeMenuFactory)!=null&&v.isMenuEnabled(i))&&(jo(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(i){var o;return!i.getColDef().suppressHeaderFilterButton&&!!((o=this.beans.filterManager)!=null&&o.isFilterAllowed(i))}isHeaderContextMenuEnabled(i){let o=i&&In(i)?i.getColDef():i==null?void 0:i.getColGroupDef();return!(o!=null&&o.suppressHeaderContextMenu)&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){let i=!this.isSuppressMenuHide();return!(na()&&i)}isHeaderFilterButtonEnabled(i){return this.isFilterMenuInHeaderEnabled(i)&&!jo(this.gos)&&!this.isFloatingFilterButtonDisplayed(i)}isFilterMenuItemEnabled(i){var o;return!!((o=this.beans.filterManager)!=null&&o.isFilterAllowed(i))&&!jo(this.gos)&&!this.isFilterMenuInHeaderEnabled(i)&&!this.isFloatingFilterButtonDisplayed(i)}isFloatingFilterButtonEnabled(i){return!i.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(i){return!!i.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(i)}isSuppressMenuHide(){let i=this.gos,o=i.get("suppressMenuHide");return jo(i)?i.exists("suppressMenuHide")?o:!1:o}showColumnMenuCommon(i,o,v,I){let{positionBy:N}=o,W=o.column;if(N==="button"){let{buttonElement:Z}=o;i==null||i.showMenuAfterButtonClick(W,Z,v,I)}else if(N==="mouse"){let{mouseEvent:Z}=o;i==null||i.showMenuAfterMouseEvent(W,Z,v,I)}else if(W){let Z=this.beans,ee=Z.ctrlsSvc;ee.getScrollFeature().ensureColumnVisible(W,"auto"),tp(Z,()=>{var we;let le=(we=ee.getHeaderRowContainerCtrl(W.getPinned()))==null?void 0:we.getHeaderCtrlForColumn(W);le&&(i==null||i.showMenuAfterButtonClick(W,le.getAnchorElementForMenu(I),v,!0))})}}};function Dr(i,o,v){i.menuVisible!==o&&(i.menuVisible=o,i.dispatchColEvent("menuVisibleChanged",v))}var Fn=class extends cn{constructor(){super()}},Px=class extends Fn{init(){var o;let i=kc((o=this.gos.get("overlayLoadingTemplate"))==null?void 0:o.trim());if(this.setTemplate(i!=null?i:'<span aria-live="polite" aria-atomic="true" class="ag-overlay-loading-center"></span>'),!i){let v=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=v("loadingOoo","Loading...")})}}},ab=class extends Fn{init(){var o;let i=kc((o=this.gos.get("overlayNoRowsTemplate"))==null?void 0:o.trim());if(this.setTemplate(i!=null?i:'<span class="ag-overlay-no-rows-center"></span>'),!i){let v=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=v("noRowsToShow","No Rows To Show")})}}};function Fc(i,o,v){let I=ma(i,o,v);if(I){let{className:W}=I;if(typeof W=="string"&&W.indexOf("ag-icon")>-1||typeof W=="object"&&W["ag-icon"])return I}let N=document.createElement("span");return N.appendChild(I),N}function ma(i,o,v){var W;let I=null;i==="smallDown"?ii(262):i==="smallLeft"?ii(263):i==="smallRight"&&ii(264);let N=v&&v.getColDef().icons;if(N&&(I=N[i]),o.gos&&!I){let Z=o.gos.get("icons");Z&&(I=Z[i])}if(I){let Z;if(typeof I=="function")Z=I();else if(typeof I=="string")Z=I;else{ii(38,{iconName:i});return}if(typeof Z=="string")return as(Z);if(_h(Z))return Z;ii(133,{iconName:i});return}else{let Z=document.createElement("span"),ee=o.registry.getIcon(i);ee||(W=o.validation)==null||W.validateIcon(i);let le=ee!=null?ee:i;return Z.setAttribute("class",`ag-icon ag-icon-${le}`),Z.setAttribute("unselectable","on"),M(Z,"presentation"),Z}}var OI=".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}",NP=class extends cn{constructor(){super(),this.dragSource=null,this.eIcon=fi,this.eLabel=fi,this.registerCSS(OI)}postConstruct(){let i=o=>Fc(o,this.beans,null);this.dropIconMap={pinned:i("columnMovePin"),hide:i("columnMoveHide"),move:i("columnMoveMove"),left:i("columnMoveLeft"),right:i("columnMoveRight"),group:i("columnMoveGroup"),aggregate:i("columnMoveValue"),pivot:i("columnMovePivot"),notAllowed:i("dropNotAllowed")}}init(i){this.dragSource=i.dragSource,this.setTemplate(`<div class="ag-dnd-ghost ag-unselectable">
                <span data-ref="eIcon" class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>
                <div data-ref="eLabel" class="ag-dnd-ghost-label"></div>
            </div>`)}destroy(){this.dragSource=null,super.destroy()}setIcon(i,o){let{eIcon:v,dragSource:I,dropIconMap:N,gos:W}=this;Jn(v);let Z=null;i||(i=I!=null&&I.getDefaultIconName?I.getDefaultIconName():"notAllowed"),Z=N[i],v.classList.toggle("ag-shake-left-to-right",o),!(Z===N.hide&&W.get("suppressDragLeaveHidesColumns"))&&Z&&v.appendChild(Z)}setLabel(i){this.eLabel.textContent=yl(i)}},ob=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",FI=class extends cn{constructor(i,o,v){super(o,v),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=i||{},this.registerCSS(ob)}postConstruct(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");let{labelSeparator:i,label:o,labelWidth:v,labelAlignment:I,disabled:N}=this.config;N!=null&&this.setDisabled(N),i!=null&&this.setLabelSeparator(i),o!=null&&this.setLabel(o),v!=null&&this.setLabelWidth(v),this.setLabelAlignment(I||this.labelAlignment),this.refreshLabel()}refreshLabel(){let{label:i,eLabel:o}=this;Jn(o),typeof i=="string"?o.innerText=i+this.labelSeparator:i&&o.appendChild(i),i===""?(Vn(o,!1),M(o,"presentation")):(Vn(o,!0),M(o,null))}setLabelSeparator(i){return this.labelSeparator===i?this:(this.labelSeparator=i,this.label!=null&&this.refreshLabel(),this)}getLabelId(){let i=this.eLabel;return i.id=i.id||`ag-${this.getCompId()}-label`,i.id}getLabel(){return this.label}setLabel(i){return this.label===i?this:(this.label=i,this.refreshLabel(),this)}setLabelAlignment(i){let v=this.getGui().classList;return v.toggle("ag-label-align-left",i==="left"),v.toggle("ag-label-align-right",i==="right"),v.toggle("ag-label-align-top",i==="top"),this}setLabelEllipsis(i){return this.eLabel.classList.toggle("ag-label-ellipsis",i),this}setLabelWidth(i){return this.label==null?this:(rm(this.eLabel,i),this)}setDisabled(i){i=!!i;let o=this.getGui();return Ps(o,i),o.classList.toggle("ag-disabled",i),this.disabled=i,this}isDisabled(){return!!this.disabled}},sD=class extends FI{constructor(i,o,v,I){super(i,o,v),this.className=I}postConstruct(){super.postConstruct();let{width:i,value:o,onValueChange:v}=this.config;i!=null&&this.setWidth(i),o!=null&&this.setValue(o),v!=null&&this.onValueChange(v),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()}setLabel(i){return super.setLabel(i),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){let i=this.getAriaElement(),o=this.getLabelId(),v=this.getLabel();v==null||v==""||G(i)!==null?Y(i,""):Y(i,o!=null?o:"")}setAriaLabel(i){return j(this.getAriaElement(),i),this.refreshAriaLabelledBy(),this}onValueChange(i){return this.addManagedListeners(this,{fieldValueChanged:()=>i(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(i){return Mc(this.getGui(),i),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(i,o){return this.value===i?this:(this.previousValue=this.value,this.value=i,o||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}},_c=class extends sD{constructor(i,o,v="text",I="input"){var N;super(i,(N=i==null?void 0:i.template)!=null?N:`
            <div role="presentation">
                <div data-ref="eLabel" class="ag-input-field-label"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
                    <${I} data-ref="eInput" class="ag-input-field-input"></${I}>
                </div>
            </div>`,[],o),this.inputType=v,this.displayFieldTag=I,this.eLabel=fi,this.eWrapper=fi,this.eInput=fi}postConstruct(){super.postConstruct(),this.setInputType();let{eLabel:i,eWrapper:o,eInput:v,className:I}=this;i.classList.add(`${I}-label`),o.classList.add(`${I}-input-wrapper`),v.classList.add(`${I}-input`),this.addCssClass("ag-input-field"),v.id=v.id||`ag-${this.getCompId()}-input`;let{inputName:N,inputWidth:W}=this.config;N!=null&&this.setInputName(N),W!=null&&this.setInputWidth(W),this.addInputListeners(),this.activateTabIndex([v])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:i=>this.setValue(i.target.value)})}setInputType(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(i){return rm(this.eWrapper,i),this}setInputName(i){return this.getInputElement().setAttribute("name",i),this}getFocusableElement(){return this.eInput}setMaxLength(i){let o=this.eInput;return o.maxLength=i,this}setInputPlaceholder(i){return Ls(this.eInput,"placeholder",i),this}setInputAriaLabel(i){return j(this.eInput,i),this.refreshAriaLabelledBy(),this}setDisabled(i){return Ps(this.eInput,i),super.setDisabled(i)}setAutoComplete(i){if(i===!0)Ls(this.eInput,"autocomplete",null);else{let o=typeof i=="string"?i:"off";Ls(this.eInput,"autocomplete",o)}return this}},rb=class extends _c{constructor(i,o="ag-checkbox",v="checkbox"){super(i,o,v),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();let{readOnly:i,passive:o}=this.config;typeof i=="boolean"&&this.setReadOnly(i),typeof o=="boolean"&&this.setPassive(o)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(i){this.passive=i}isReadOnly(){return this.readOnly}setReadOnly(i){this.eWrapper.classList.toggle("ag-disabled",i),this.eInput.disabled=i,this.readOnly=i}setDisabled(i){return this.eWrapper.classList.toggle("ag-disabled",i),super.setDisabled(i)}toggle(){if(this.eInput.disabled)return;let i=this.isSelected(),o=this.getNextValue();this.passive?this.dispatchChange(o,i):this.setValue(o)}getValue(){return this.isSelected()}setValue(i,o){return this.refreshSelectedClass(i),this.setSelected(i,o),this}setName(i){let o=this.getInputElement();return o.name=i,this}isSelected(){return this.selected}setSelected(i,o){if(this.isSelected()===i)return;this.previousValue=this.isSelected(),i=this.selected=typeof i=="boolean"?i:void 0;let v=this.eInput;v.checked=i,v.indeterminate=i===void 0,o||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(i,o,v){this.dispatchLocalEvent({type:"fieldValueChanged",selected:i,previousValue:o,event:v});let I=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:I.id,name:I.name,selected:i,previousValue:o})}onCheckboxClick(i){if(this.passive||this.eInput.disabled)return;let o=this.isSelected(),v=this.selected=i.target.checked;this.refreshSelectedClass(v),this.dispatchChange(v,o,i)}refreshSelectedClass(i){let o=this.eWrapper.classList;o.toggle("ag-checked",i===!0),o.toggle("ag-indeterminate",i==null)}},Na={selector:"AG-CHECKBOX",component:rb},Im=".ag-checkbox-cell{height:100%}",Ka=class extends cn{constructor(){super(`
            <div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[Na]),this.eCheckbox=fi,this.registerCSS(Im)}init(i){this.refresh(i);let{eCheckbox:o,beans:v}=this,I=o.getInputElement();I.setAttribute("tabindex","-1"),ne(I,"polite"),this.addManagedListeners(I,{click:N=>{if(ur(N),o.isDisabled())return;let W=o.getValue();this.onCheckboxChanged(W)},dblclick:N=>{ur(N)}}),this.addManagedElementListeners(i.eGridCell,{keydown:N=>{if(N.key===Bt.SPACE&&!o.isDisabled()){i.eGridCell===ga(v)&&o.toggle();let W=o.getValue();this.onCheckboxChanged(W),N.preventDefault()}}})}refresh(i){return this.params=i,this.updateCheckbox(i),!0}updateCheckbox(i){var Ee;let o,v=!0,{value:I,column:N,node:W}=i;if(W.group&&N)if(typeof I=="boolean")o=I;else{let Ve=N.getColId();Ve.startsWith(Zd)?o=I==null||I===""?void 0:I==="true":W.aggData&&W.aggData[Ve]!==void 0?o=I!=null?I:void 0:v=!1}else o=I!=null?I:void 0;let{eCheckbox:Z}=this;if(!v){Z.setDisplayed(!1);return}Z.setValue(o);let ee=(Ee=i.disabled)!=null?Ee:!(N!=null&&N.isCellEditable(W));Z.setDisabled(ee);let le=this.getLocaleTextFunc(),we=Nt(le,o),Ae=ee?we:`${le("ariaToggleCellValue","Press SPACE to toggle cell value")} (${we})`;Z.setInputAriaLabel(Ae)}onCheckboxChanged(i){let{eventSvc:o,params:v}=this,{column:I,node:N,value:W}=v,Z={column:I,colDef:I.getColDef(),data:N.data,node:N,rowIndex:N.rowIndex,rowPinned:N.rowPinned,value:W};o.dispatchEvent(ge({type:"cellEditingStarted"},Z));let ee=N.setDataValue(I,i,"edit");o.dispatchEvent(He(ge({type:"cellEditingStopped"},Z),{oldValue:W,newValue:i,valueChanged:ee})),ee||this.updateCheckbox(v)}},Ko="ROOT_NODE_ID",rp=class extends jt{constructor(){super(...arguments),this.nextId=0,this.allNodesMap={},this.rootNode=null}get treeData(){return!1}getRowNode(i){return this.allNodesMap[i]}extractRowData(){var i,o;return(o=(i=this.rootNode)==null?void 0:i.allLeafChildren)==null?void 0:o.map(v=>v.data)}activate(i){this.rootNode=i,i.group=!0,i.level=-1,i.id=Ko,i.allLeafChildren=[],i.childrenAfterGroup=[],i.childrenAfterSort=[],i.childrenAfterAggFilter=[],i.childrenAfterFilter=[],this.updateRootSiblingArrays(i)}deactivate(){this.rootNode&&(this.allNodesMap={},this.rootNode=null)}destroy(){super.destroy(),this.allNodesMap={},this.rootNode=null}setNewRowData(i){let o=this.rootNode;o&&(this.dispatchRowDataUpdateStartedEvent(i),o.childrenAfterFilter=null,o.childrenAfterGroup=null,o.childrenAfterAggFilter=null,o.childrenAfterSort=null,o.childrenMapped=null,o.updateHasChildren(),this.allNodesMap={},this.nextId=0,this.loadNewRowData(i),this.updateRootSiblingArrays(o))}updateRootSiblingArrays(i){let o=i.sibling;o&&(o.childrenAfterFilter=i.childrenAfterFilter,o.childrenAfterGroup=i.childrenAfterGroup,o.childrenAfterAggFilter=i.childrenAfterAggFilter,o.childrenAfterSort=i.childrenAfterSort,o.childrenMapped=i.childrenMapped,o.allLeafChildren=i.allLeafChildren)}loadNewRowData(i){var o;this.rootNode.allLeafChildren=(o=i==null?void 0:i.map((v,I)=>this.createRowNode(v,I)))!=null?o:[]}setImmutableRowData(i,o){let v=this.createTransactionForRowData(o),I=this.updateRowData(v,i.changedRowNodes),N=!1;this.gos.get("suppressMaintainUnsortedOrder")||(N=this.updateRowOrderFromRowData(o));let{rowNodeTransaction:W,rowsInserted:Z}=I,{add:ee,remove:le,update:we}=W;(Z||N||ee.length||le.length||we.length)&&(i.step="group",i.rowDataUpdated=!0,i.rowNodeTransactions=[W],i.rowNodesOrderChanged=Z||N)}updateRowData(i,o){this.dispatchRowDataUpdateStartedEvent(i.add);let v={changedRowNodes:o,rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},I=[],N=Uf(this.gos);return this.executeRemove(N,i,v,I),this.executeUpdate(N,i,v,I),this.executeAdd(i,v),this.deselectNodes(I),v}createTransactionForRowData(i){let o=Uf(this.gos),v=ge({},this.allNodesMap),I=[],N=[],W=[];mi(i)&&i.forEach(Z=>{let ee=o({data:Z,level:0}),le=v[ee];le?(le.data!==Z&&N.push(Z),v[ee]=void 0):W.push(Z)});for(let Z of Object.values(v))Z&&I.push(Z.data);return{remove:I,update:N,add:W}}updateRowOrderFromRowData(i){var Z,ee;let o=(Z=this.rootNode)==null?void 0:Z.allLeafChildren,v=(ee=o==null?void 0:o.length)!=null?ee:0,I=new Map,N=-1,W=-1;for(let le=0;le<v;++le){let we=o[le],Ae=we.data;Ae!==i[le]&&(W<0&&(N=le),W=le,I.set(Ae,we))}if(N<0)return!1;for(let le=N;le<=W;++le){let we=I.get(i[le]);we!==void 0&&(o[le]=we,we.sourceRowIndex=le)}return!0}executeAdd(i,o){let v=i.add;if(!(v!=null&&v.length))return;let I=this.rootNode.allLeafChildren,N=I.length;if(typeof i.addIndex=="number"&&(N=this.sanitizeAddIndex(i.addIndex),N>0&&this.gos.get("treeData")&&this.gos.get("getDataPath")))for(let Ee=0;Ee<I.length;Ee++){let Ve=I[Ee];if((Ve==null?void 0:Ve.rowIndex)==N-1){N=Ee+1;break}}let W=v.length,Z=o.changedRowNodes,ee=new Array(W);for(let Ae=0;Ae<W;Ae++){let Ee=this.createRowNode(v[Ae],N+Ae);Z.add(Ee),ee[Ae]=Ee}let le=this.rootNode;if(N<I.length){let Ae=I.slice(0,N),Ee=I.slice(N,I.length),Ve=Ae.length+ee.length;for(let Je=0,gt=Ee.length;Je<gt;++Je)Ee[Je].sourceRowIndex=Ve+Je;I=[...Ae,...ee,...Ee],o.rowsInserted=!0}else I=I.concat(ee);le.allLeafChildren=I;let we=le.sibling;we&&(we.allLeafChildren=I),o.rowNodeTransaction.add=ee}executeRemove(i,o,{changedRowNodes:v,rowNodeTransaction:I},N){var we,Ae,Ee;let{remove:W}=o;if(!(W!=null&&W.length))return;let Z={};W.forEach(Ve=>{let Je=this.lookupRowNode(i,Ve);Je&&(Je.isSelected()&&N.push(Je),Je.clearRowTopAndRowIndex(),Z[Je.id]=!0,delete this.allNodesMap[Je.id],I.remove.push(Je),v.remove(Je))});let ee=this.rootNode;ee.allLeafChildren=(Ae=(we=ee.allLeafChildren)==null?void 0:we.filter(Ve=>!Z[Ve.id]))!=null?Ae:null,(Ee=ee.allLeafChildren)==null||Ee.forEach((Ve,Je)=>{Ve.sourceRowIndex=Je});let le=ee.sibling;le&&(le.allLeafChildren=ee.allLeafChildren)}executeUpdate(i,o,{changedRowNodes:v,rowNodeTransaction:I},N){let{update:W}=o;W!=null&&W.length&&W.forEach(Z=>{let ee=this.lookupRowNode(i,Z);ee&&(ee.updateData(Z),!ee.selectable&&ee.isSelected()&&N.push(ee),I.update.push(ee),v.update(ee))})}dispatchRowDataUpdateStartedEvent(i){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:i!=null&&i.length?i[0]:null})}deselectNodes(i){var N;let o="rowDataChanged",v=this.beans.selectionSvc,I=i.length>0;I&&(v==null||v.setNodesSelected({newValue:!1,nodes:i,suppressFinishActions:!0,source:o})),(N=v==null?void 0:v.updateGroupsFromChildrenSelections)==null||N.call(v,o),I&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:o})}sanitizeAddIndex(i){var v,I;let o=(I=(v=this.rootNode.allLeafChildren)==null?void 0:v.length)!=null?I:0;return i<0||i>=o||Number.isNaN(i)?o:Math.ceil(i)}createRowNode(i,o){let v=new So(this.beans);return v.parent=this.rootNode,v.level=0,v.group=!1,v.expanded=!1,v.sourceRowIndex=o,v.setDataAndId(i,String(this.nextId)),this.allNodesMap[v.id]&&ii(2,{nodeId:v.id}),this.allNodesMap[v.id]=v,this.nextId++,v}lookupRowNode(i,o){var I,N;let v;if(i){let W=i({data:o,level:0});if(v=this.allNodesMap[W],!v)return aa(4,{id:W}),null}else if(v=(N=(I=this.rootNode)==null?void 0:I.allLeafChildren)==null?void 0:N.find(W=>W.data===o),!v)return aa(5,{data:o}),null;return v||null}},wl=(i=>(i.Applied="Applied",i.StoreNotFound="StoreNotFound",i.StoreLoading="StoreLoading",i.StoreWaitingToLoad="StoreWaitingToLoad",i.StoreLoadingFailed="StoreLoadingFailed",i.StoreWrongType="StoreWrongType",i.Cancelled="Cancelled",i.StoreNotStarted="StoreNotStarted",i))(wl||{}),zP=class extends cn{constructor(){super(`
            <div class="ag-selection-checkbox" role="presentation">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[Na]),this.eCheckbox=fi}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){let i=this.getLocaleTextFunc(),{rowNode:o,eCheckbox:v}=this,I=o.isSelected(),N=Nt(i,I),[W,Z]=o.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],ee=i(W,Z);v.setValue(I,!0),v.setInputAriaLabel(`${ee} (${N})`)}init(i){if(this.rowNode=i.rowNode,this.column=i.column,this.overrides=i.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:ur,click:I=>{var N;ur(I),(N=this.beans.selectionSvc)==null||N.handleSelectionEvent(I,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:I,previousValue:N})=>{let W=typeof I=="object"?gm(I):void 0,Z=typeof N=="object"?gm(N):void 0;W!==Z&&this.onSelectableChanged()}),Qg(this.gos)||typeof this.getIsVisible()=="function"){let I=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:I}),this.addManagedListeners(this.rowNode,{dataChanged:I,cellChanged:I}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){let{column:i,rowNode:o,overrides:v,gos:I}=this,N=o.selectable,W=this.getIsVisible();if(N)if(typeof W=="function"){let le=v==null?void 0:v.callbackParams;if(!i)N=W(He(ge({},le),{node:o,data:o.data}));else{let we=i.createColumnFunctionCallbackParams(o);N=W(ge(ge({},le),we))}}else N=W!=null?W:!1;let Z=I.get("rowSelection");if(Z&&typeof Z!="string"?!gm(Z):i==null?void 0:i.getColDef().showDisabledCheckboxes){this.eCheckbox.setDisabled(!N),this.setVisible(!0),this.setDisplayed(!0);return}if(v!=null&&v.removeHidden){this.setDisplayed(N);return}this.setVisible(N)}getIsVisible(){var v,I;let i=this.overrides;if(i)return i.isVisible;let o=this.gos.get("rowSelection");return o&&typeof o!="string"?Ec(o):(I=(v=this.column)==null?void 0:v.getColDef())==null?void 0:I.checkboxSelection}},lD=class{constructor(i){this.rootId=null,this.endId=null,this.cachedRange=[],this.rowModel=i}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(i){this.rootId=i.id,this.endId=null,this.cachedRange.length=0}setEndRange(i){this.endId=i.id,this.cachedRange.length=0}getRange(){var i;if(this.cachedRange.length===0){let o=this.getRoot(),v=this.getEnd();if(o==null||v==null)return this.cachedRange;this.cachedRange=(i=this.rowModel.getNodesInRangeForSelection(o,v))!=null?i:[]}return this.cachedRange}isInRange(i){return this.rootId===null?!1:this.getRange().some(o=>o.id===i.id)}getRoot(){var i;return this.rootId&&(i=this.rowModel.getRowNode(this.rootId))!=null?i:null}getEnd(){var i;return this.endId&&(i=this.rowModel.getRowNode(this.endId))!=null?i:null}truncate(i){let o=this.getRange();if(o.length===0)return{keep:[],discard:[]};let v=o[0].id===this.rootId,I=o.findIndex(N=>N.id===i.id);if(I>-1){let N=o.slice(0,I),W=o.slice(I+1);return this.setEndRange(i),v?{keep:N,discard:W}:{keep:W,discard:N}}else return{keep:o,discard:[]}}extend(i,o=!1){let v=this.getRoot();if(v==null){let N=this.getRange().slice();return o&&i.depthFirstSearch(W=>!W.group&&N.push(W)),N.push(i),this.setRoot(i),{keep:N,discard:[]}}let I=this.rowModel.getNodesInRangeForSelection(v,i);if(!I)return this.setRoot(i),{keep:[i],discard:[]};if(I.find(N=>N.id===this.endId))return this.setEndRange(i),{keep:this.getRange(),discard:[]};{let N=this.getRange().slice();return this.setEndRange(i),{keep:this.getRange(),discard:N}}}},hh=class extends jt{constructor(i){super(),this.column=i,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(i){let o=this.cbSelectAll;o.isDisplayed()&&!o.getGui().contains(ga(this.beans))&&(i.preventDefault(),o.setValue(!o.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(i){this.headerCellCtrl=i;let o=this.createManagedBean(new rb);this.cbSelectAll=o,o.addCssClass("ag-header-select-all"),M(o.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideSelectAll.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:this.onSelectionChanged.bind(this),paginationChanged:this.onSelectionChanged.bind(this),modelUpdated:this.onModelChanged.bind(this)}),this.addManagedListeners(o,{fieldValueChanged:this.onCbSelectAll.bind(this)}),o.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(){this.isAlive()&&this.showOrHideSelectAll()}showOrHideSelectAll(){let i=this.isCheckboxSelection();this.cbSelectAllVisible=i,this.cbSelectAll.setDisplayed(i),i&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()}onModelChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}onSelectionChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}updateStateOfCheckbox(){if(this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;let i=this.getSelectAllMode(),o=this.beans.selectionSvc,v=this.cbSelectAll,I=o.getSelectAllState(i);v.setValue(I);let N=o.hasNodesToSelect(i);v.setDisabled(!N),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(){let i=this.getLocaleTextFunc(),{headerCellCtrl:o,cbSelectAll:v,cbSelectAllVisible:I}=this,W=v.getValue()?i("ariaChecked","checked"):i("ariaUnchecked","unchecked"),Z=i("ariaRowSelectAll","Press Space to toggle all rows selection");o.setAriaDescriptionProperty("selectAll",I?`${Z} (${W})`:null),v.setInputAriaLabel(i("ariaHeaderSelection","Column with Header Selection")),o.announceAriaDescription()}checkSelectionType(i){return pm(this.gos)?!0:(ii(128,{feature:i}),!1)}checkRightRowModelType(i){let{gos:o,rowModel:v}=this.beans;return so(o)||Dc(o)?!0:(ii(129,{feature:i,rowModel:v.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;let i=this.cbSelectAll.getValue(),o=this.getSelectAllMode(),v="uiSelectAll";o==="currentPage"?v="uiSelectAllCurrentPage":o==="filtered"&&(v="uiSelectAllFiltered");let I={source:v,selectAll:o},N=this.beans.selectionSvc;i?N.selectAllRowNodes(I):N.deselectAllRowNodes(I)}isCheckboxSelection(){var we;let{column:i,gos:o,beans:v}=this,I=o.get("rowSelection"),N=i.getColDef(),{headerCheckboxSelection:W}=N,Z=!1,ee=typeof I=="object";if(ee){let Ae=ec(i),Ee=Co(i);(xa(I)==="autoGroupColumn"&&Ee||Ae&&((we=v.selectionColSvc)!=null&&we.isSelectionColumnEnabled()))&&(Z=pl(I))}else typeof W=="function"?Z=W(o.addGridCommonParams({column:i,colDef:N})):Z=!!W;let le=ee?"headerCheckbox":"headerCheckboxSelection";return Z&&this.checkRightRowModelType(le)&&this.checkSelectionType(le)}getSelectAllMode(){let i=FA(this.gos,!1);if(i)return i;let{headerCheckboxSelectionCurrentPageOnly:o,headerCheckboxSelectionFilteredOnly:v}=this.column.getColDef();return o?"currentPage":v?"filtered":"all"}},sb=class extends jt{postConstruct(){let{gos:i,beans:o}=this;this.selectionCtx=new lD(o.rowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{let v=Qg(i);v!==this.isRowSelectable&&(this.isRowSelectable=v,this.updateSelectable())}),this.isRowSelectable=Qg(i)}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new zP}createSelectAllFeature(i){return new hh(i)}isMultiSelect(){return pm(this.gos)}onRowCtrlSelected(i,o,v){let I=!!i.rowNode.isSelected();i.forEachGui(v,N=>{N.rowComp.addOrRemoveCssClass("ag-row-selected",I);let W=N.element;dt(W,I),W.contains(ga(this.beans))&&o(N)})}announceAriaRowSelection(i){var N;if(this.isRowSelectionBlocked(i))return;let o=i.isSelected();if(o&&!Br(this.gos))return;let I=this.getLocaleTextFunc()(o?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${o?"deselect":"select"} this row`);(N=this.beans.ariaAnnounce)==null||N.announceValue(I,"rowSelection")}dispatchSelectionChanged(i){this.eventSvc.dispatchEvent({type:"selectionChanged",source:i})}isRowSelectionBlocked(i){return!i.selectable||!!i.rowPinned||!Ql(this.gos)}updateRowSelectable(i,o){var I,N;let v=(N=(I=this.isRowSelectable)==null?void 0:I.call(this,i))!=null?N:!0;return this.setRowSelectable(i,v,o),v}setRowSelectable(i,o,v){if(i.selectable!==o){if(i.selectable=o,i.dispatchRowEvent("selectableChanged"),v)return;if(Ry(this.gos)){let N=this.calculateSelectedFromChildren(i);this.setNodesSelected({nodes:[i],newValue:N!=null?N:!1,source:"selectableChanged"});return}i.isSelected()&&!i.selectable&&this.setNodesSelected({nodes:[i],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(i){var I;let o=!1,v=!1;if(!((I=i.childrenAfterGroup)!=null&&I.length))return i.selectable?i.__selected:null;for(let N=0;N<i.childrenAfterGroup.length;N++){let W=i.childrenAfterGroup[N],Z=W.isSelected();if(!W.selectable){let ee=this.calculateSelectedFromChildren(W);if(ee===null)continue;Z=ee}switch(Z){case!0:o=!0;break;case!1:v=!0;break;default:return}}if(!(o&&v))return o?!0:v?!1:i.selectable?i.__selected:null}selectRowNode(i,o,v,I="api"){let N=!i.selectable&&o,W=i.__selected===o;if(N||W)return!1;i.__selected=o,i.dispatchRowEvent("rowSelected");let Z=i.sibling;return Z&&Z.footer&&Z.__localEventService&&Z.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent(He(ge({},Xy(i,this.gos,"rowSelected")),{event:v||null,source:I})),!0}isCellCheckboxSelection(i,o){let v=this.gos.get("rowSelection");if(v&&typeof v!="string"){let I=ec(i)&&Ec(v);return i.isColumnFunc(o,I)}else return i.isColumnFunc(o,i.colDef.checkboxSelection)}inferNodeSelections(i,o,v,I){let{gos:N,selectionCtx:W}=this,Z=i.isSelected(),ee=Ry(N),le=mI(N),we=Br(N),Ae=I==="rowClicked";if(Ae&&ee&&i.group||Ae&&!(le||we))return null;if(o&&v&&this.isMultiSelect()){let Ee=W.getRoot();if(Ee)if(Ee.isSelected()){let Ve=W.isInRange(i)?W.truncate(i):W.extend(i,ee);return{deselect:Ve.discard,select:Ve.keep,reset:!1}}else{let Ve=W.extend(i,ee);return{select:[],deselect:Ve.keep,reset:!1}}else return null}else if(o&&this.isMultiSelect()){let Ee=W.getRoot(),Ve=W.isInRange(i)?W.truncate(i):W.extend(i,ee);return{select:Ve.keep,deselect:Ve.discard,reset:!!(Ee&&!Ee.isSelected())}}else{if(v)return W.setRoot(i),Ae&&Z&&!we?null:{node:i,newValue:!Z,clearSelection:!this.isMultiSelect()};{W.setRoot(i);let Ee=YC(N),Ve=Xu(N)==="filteredDescendants",Je=Ae&&(!Ee||!le);if(Ve&&Z===void 0&&so(N))return{node:i,newValue:!1,clearSelection:!this.isMultiSelect()||Je};if(Ae){let gt=Z?!Ee:le;return gt===Z?null:{node:i,newValue:gt,clearSelection:!this.isMultiSelect()||Je}}return{node:i,newValue:!Z,clearSelection:!this.isMultiSelect()||Je}}}}},Lx=class extends rb{constructor(i){super(i,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(i){let o=this.eInput;i.selected&&i.name&&o.name&&o.name===i.name&&i.id&&o.id!==i.id&&this.setValue(!1,!0)}},_I='.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height)*.5);flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;transition:background-color .1s;:where(.ag-toggle-button-input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-toggle-button-height);margin:0;max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);opacity:0}&:before{background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;content:"";display:block;height:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2);left:var(--ag-toggle-button-switch-inset);pointer-events:none;position:absolute;top:var(--ag-toggle-button-switch-inset);transition:left .1s;width:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2)}&.ag-checked{background-color:var(--ag-toggle-button-on-background-color);&:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-switch-inset))}}&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{opacity:.5}}',ou=class extends rb{constructor(i){super(i,"ag-toggle-button"),this.registerCSS(_I)}setValue(i,o){return super.setValue(i,o),this.addOrRemoveCssClass("ag-selected",this.getValue()),this}},cv={selector:"AG-TOGGLE-BUTTON",component:ou},fd=class extends _c{constructor(i,o="ag-text-field",v="text"){super(i,o,v)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(i,o){let v=this.eInput;return v.value!==i&&(v.value=mi(i)?i:""),super.setValue(i,o)}setStartValue(i){this.setValue(i,!0)}preventDisallowedCharacters(){let i=new RegExp(`[${this.config.allowedCharPattern}]`),o=v=>{Ws(v)&&v.key&&!i.test(v.key)&&v.preventDefault()};this.addManagedListeners(this.eInput,{keydown:o,paste:v=>{var N;let I=(N=v.clipboardData)==null?void 0:N.getData("text");I&&I.split("").some(W=>!i.test(W))&&v.preventDefault()}})}},Tm={selector:"AG-INPUT-TEXT-FIELD",component:fd},sp=class extends _c{constructor(i){super(i,"ag-text-area",null,"textarea")}setValue(i,o){let v=super.setValue(i,o);return this.eInput.value=i,v}setCols(i){return this.eInput.cols=i,this}setRows(i){return this.eInput.rows=i,this}},NI={selector:"AG-INPUT-TEXT-AREA",component:sp},dv=class extends fd{constructor(i){super(i,"ag-number-field","number")}postConstruct(){super.postConstruct();let i=this.eInput;this.addManagedListeners(i,{blur:()=>{let W=parseFloat(i.value),Z=isNaN(W)?"":this.normalizeValue(W.toString());this.value!==Z&&this.setValue(Z)},wheel:this.onWheel.bind(this)}),i.step="any";let{precision:o,min:v,max:I,step:N}=this.config;typeof o=="number"&&this.setPrecision(o),typeof v=="number"&&this.setMin(v),typeof I=="number"&&this.setMax(I),typeof N=="number"&&this.setStep(N)}onWheel(i){ga(this.beans)===this.eInput&&i.preventDefault()}normalizeValue(i){if(i==="")return"";this.precision!=null&&(i=this.adjustPrecision(i));let o=parseFloat(i),{min:v,max:I}=this;return v!=null&&o<v?i=v.toString():I!=null&&o>I&&(i=I.toString()),i}adjustPrecision(i,o){let v=this.precision;if(v==null)return i;if(o){let N=parseFloat(i).toFixed(v);return parseFloat(N).toString()}let I=String(i).split(".");if(I.length>1){if(I[1].length<=v)return i;if(v>0)return`${I[0]}.${I[1].slice(0,v)}`}return I[0]}setMin(i){return this.min===i?this:(this.min=i,Ls(this.eInput,"min",i),this)}setMax(i){return this.max===i?this:(this.max=i,Ls(this.eInput,"max",i),this)}setPrecision(i){return this.precision=i,this}setStep(i){return this.step===i?this:(this.step=i,Ls(this.eInput,"step",i),this)}setValue(i,o){return this.setValueOrInputValue(v=>super.setValue(v,o),()=>this,i)}setStartValue(i){return this.setValueOrInputValue(o=>super.setValue(o,!0),o=>{this.eInput.value=o},i)}setValueOrInputValue(i,o,v){if(mi(v)){let I=this.isScientificNotation(v);if(I&&this.eInput.validity.valid)return i(v);if(!I){v=this.adjustPrecision(v);let N=this.normalizeValue(v);I=v!=N}if(I)return o(v)}return i(v)}getValue(){let i=this.eInput;if(!i.validity.valid)return;let o=i.value;return this.isScientificNotation(o)?this.adjustPrecision(o,!0):super.getValue()}isScientificNotation(i){return typeof i=="string"&&i.includes("e")}},xl={selector:"AG-INPUT-NUMBER-FIELD",component:dv};function ps(i,o){return i.toString().padStart(o,"0")}function Er(i,o=!0,v="-"){if(!i)return null;let I=[i.getFullYear(),i.getMonth()+1,i.getDate()].map(N=>ps(N,2)).join(v);return o&&(I+=" "+[i.getHours(),i.getMinutes(),i.getSeconds()].map(N=>ps(N,2)).join(":")),I}var ms=i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function vd(i,o="YYYY-MM-DD"){let v=ps(i.getFullYear(),4),I=["January","February","March","April","May","June","July","August","September","October","November","December"],N=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],W={YYYY:()=>v.slice(v.length-4,v.length),YY:()=>v.slice(v.length-2,v.length),Y:()=>`${i.getFullYear()}`,MMMM:()=>I[i.getMonth()],MMM:()=>I[i.getMonth()].slice(0,3),MM:()=>ps(i.getMonth()+1,2),Mo:()=>`${i.getMonth()+1}${ms(i.getMonth()+1)}`,M:()=>`${i.getMonth()+1}`,Do:()=>`${i.getDate()}${ms(i.getDate())}`,DD:()=>ps(i.getDate(),2),D:()=>`${i.getDate()}`,dddd:()=>N[i.getDay()],ddd:()=>N[i.getDay()].slice(0,3),dd:()=>N[i.getDay()].slice(0,2),do:()=>`${i.getDay()}${ms(i.getDay())}`,d:()=>`${i.getDay()}`},Z=new RegExp(Object.keys(W).join("|"),"g");return o.replace(Z,ee=>ee in W?W[ee]():ee)}function Ml(i){if(!i)return null;let[o,v]=i.split(" ");if(!o)return null;let I=o.split("-").map(Ee=>parseInt(Ee,10));if(I.filter(Ee=>!isNaN(Ee)).length!==3)return null;let[N,W,Z]=I,ee=new Date(N,W-1,Z);if(ee.getFullYear()!==N||ee.getMonth()!==W-1||ee.getDate()!==Z)return null;if(!v||v==="00:00:00")return ee;let[le,we,Ae]=v.split(":").map(Ee=>parseInt(Ee,10));return le>=0&&le<24&&ee.setHours(le),we>=0&&we<60&&ee.setMinutes(we),Ae>=0&&Ae<60&&ee.setSeconds(Ae),ee}var zI=class extends fd{constructor(i){super(i,"ag-date-field","date")}postConstruct(){super.postConstruct();let i=ha();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||i||this.eInput.focus()}}),this.eInput.step="any"}onWheel(i){ga(this.beans)===this.eInput&&i.preventDefault()}setMin(i){var v;let o=i instanceof Date?(v=Er(i!=null?i:null,!1))!=null?v:void 0:i;return this.min===o?this:(this.min=o,Ls(this.eInput,"min",o),this)}setMax(i){var v;let o=i instanceof Date?(v=Er(i!=null?i:null,!1))!=null?v:void 0:i;return this.max===o?this:(this.max=o,Ls(this.eInput,"max",o),this)}setStep(i){return this.step===i?this:(this.step=i,Ls(this.eInput,"step",i),this)}getDate(){var i;if(this.eInput.validity.valid)return(i=Ml(this.getValue()))!=null?i:void 0}setDate(i,o){this.setValue(Er(i!=null?i:null,!1),o)}},C0={selector:"AG-INPUT-DATE-FIELD",component:zI},BI=1e3,Zh=1e3,Ox=100,ho,Rm=!1,Nc=class extends jt{constructor(i,o){super(),this.tooltipCtrl=i,this.getTooltipValue=o,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(i){this.popupSvc=i.popupSvc,this.userCompFactory=i.userCompFactory}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");let i=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(i,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(i,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(i,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(i,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(i){let o=this.gos.get(i);return Math.max(200,o)}getTooltipDelay(i){var o,v,I,N,W,Z;return i==="show"?(I=(v=(o=this.tooltipCtrl).getTooltipShowDelayOverride)==null?void 0:v.call(o))!=null?I:this.getGridOptionsTooltipDelay("tooltipShowDelay"):(Z=(W=(N=this.tooltipCtrl).getTooltipHideDelayOverride)==null?void 0:W.call(N))!=null?Z:this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){let i=this.gos.get("tooltipTrigger");return!i||i==="hover"?0:1}onMouseEnter(i){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!na()&&(Rm?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(i)},Ox):this.prepareToShowTooltip(i))}onMouseMove(i){this.lastMouseEvent&&(this.lastMouseEvent=i),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(i){var N;let o=i.relatedTarget,v=this.tooltipCtrl.getGui(),I=(N=this.tooltipComp)==null?void 0:N.getGui();this.isInteractingWithTooltip||v.contains(o)||this.interactionEnabled&&(I!=null&&I.contains(o))||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(i){if(this.state!=0||Rm)return;let o=0;i&&(o=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=i||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),o),this.state=1}isLastTooltipHiddenRecently(){return new Date().getTime()-ho<BI}setToDoNothing(i){!i&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.onColumnMovedEventCallback&&(this.onColumnMovedEventCallback(),this.onColumnMovedEventCallback=void 0),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){var Z,ee,le,we,Ae,Ee,Ve,Je,gt;let i=this.getTooltipValue(),o=this.tooltipCtrl;if(!mi(i)||o.shouldDisplayTooltip&&!o.shouldDisplayTooltip()){this.setToDoNothing();return}let v=(Z=o.getRowNode)==null?void 0:Z.call(o),I=ge({location:(le=(ee=o.getLocation)==null?void 0:ee.call(o))!=null?le:"UNKNOWN",colDef:(we=o.getColDef)==null?void 0:we.call(o),column:(Ae=o.getColumn)==null?void 0:Ae.call(o),rowIndex:(Ee=o.getRowIndex)==null?void 0:Ee.call(o),node:v,data:v==null?void 0:v.data,value:i,valueFormatted:(Ve=o.getValueFormatted)==null?void 0:Ve.call(o),hideTooltipCallback:()=>this.hideTooltip(!0)},(gt=(Je=o.getAdditionalParams)==null?void 0:Je.call(o))!=null?gt:{});this.state=2,this.tooltipInstanceCount++;let N=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),W=Jf(this.userCompFactory,I);W==null||W.newAgStackInstance().then(N)}hideTooltip(i){!i&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),ho=new Date().getTime()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),i&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(i,o){var Z;if(this.state!==2||this.tooltipInstanceCount!==i){this.destroyBean(o);return}let I=o.getGui();this.tooltipComp=o,I.classList.contains("ag-tooltip")||I.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&I.classList.add("ag-tooltip-animate"),this.interactionEnabled&&I.classList.add("ag-tooltip-interactive");let N=this.getLocaleTextFunc(),W=(Z=this.popupSvc)==null?void 0:Z.addPopup({eChild:I,ariaLabel:N("ariaLabelTooltip","Tooltip")});if(W&&(this.tooltipPopupDestroyFunc=W.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){let ee=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:ee,columnMoved:ee})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(I,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(eo(this.beans),{keydown:ee=>{I.contains(ee==null?void 0:ee.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(I,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:I,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){var v;let i=(v=this.tooltipComp)==null?void 0:v.getGui(),o=ga(this.beans);return!!i&&i.contains(o)}onTooltipFocusOut(i){let o=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,o.contains(i.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){var o,v;let i={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?(o=this.popupSvc)==null||o.positionPopupUnderMouseEvent(He(ge({},i),{mouseEvent:this.lastMouseEvent})):(v=this.popupSvc)==null||v.positionPopupByComponent(He(ge({},i),{eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5}))}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");let i=this.tooltipPopupDestroyFunc,o=this.tooltipComp,v=this.tooltipTrigger===0?Zh:0;window.setTimeout(()=>{i(),this.destroyBean(o)},v),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(i=>{i&&i()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){Rm=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},Ox)}unlockService(){Rm=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}};function Ir(i){return i.get("tooltipShowMode")==="whenTruncated"}function Lo(i,o){return Ir(i)?Pm(o):void 0}function Pm(i){return()=>{let o=i();return o?o.scrollWidth>o.clientWidth:!0}}var ru=class extends jt{constructor(i,o){super(),this.ctrl=i,o&&(this.beans=o)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(i){let o="title",v=this.ctrl.getGui();v&&(i!=null&&i!=""?v.setAttribute(o,i):v.removeAttribute(o))}updateTooltipText(){let{getTooltipValue:i}=this.ctrl;i&&(this.tooltip=i())}createTooltipFeatureIfNeeded(){this.tooltipManager==null&&(this.tooltipManager=this.createBean(new Nc(this.ctrl,()=>this.tooltip),this.beans.context))}setTooltipAndRefresh(i){this.tooltip=i,this.refreshTooltip()}refreshTooltip(){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(null),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},ic=class extends cn{constructor(i="default",o=!1){super(`<div class="ag-list ag-${i}-list" role="listbox"></div>`),this.cssIdentifier=i,this.unFocusable=o,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){let i=this.getGui();this.addManagedElementListeners(i,{mouseleave:()=>this.clearHighlighted()}),!this.unFocusable&&this.addManagedElementListeners(i,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(i){let o=i.key;switch(o){case Bt.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{let v=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(v)}break;case Bt.DOWN:case Bt.UP:i.preventDefault(),this.navigate(o);break;case Bt.PAGE_DOWN:case Bt.PAGE_UP:case Bt.PAGE_HOME:case Bt.PAGE_END:i.preventDefault(),this.navigateToPage(o);break}}navigate(i){let o=i===Bt.DOWN,v,{itemEls:I,highlightedEl:N}=this;if(!N)v=I[o?0:I.length-1];else{let Z=I.indexOf(N)+(o?1:-1);Z=Math.min(Math.max(Z,0),I.length-1),v=I[Z]}this.highlightItem(v)}navigateToPage(i){let{itemEls:o,highlightedEl:v}=this;if(!v||o.length===0)return;let I=o.indexOf(v),N=this.options.length-1,W=o[0].clientHeight,Z=Math.floor(this.getGui().clientHeight/W),ee=-1;i===Bt.PAGE_HOME?ee=0:i===Bt.PAGE_END?ee=N:i===Bt.PAGE_DOWN?ee=Math.min(I+Z,N):i===Bt.PAGE_UP&&(ee=Math.max(I-Z,0)),ee!==-1&&this.highlightItem(o[ee])}addOptions(i){return i.forEach(o=>this.addOption(o)),this}addOption(i){let{value:o,text:v}=i,I=v||o;return this.options.push({value:o,text:I}),this.renderOption(o,I),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach(i=>{xc(i)}),this.itemEls=[]}updateIndices(){let i=this.getGui().querySelectorAll(".ag-list-item");i.forEach((o,v)=>{ot(o,v+1),tt(o,i.length)})}renderOption(i,o){let v=eo(this.beans),I=v.createElement("div");M(I,"option"),I.classList.add("ag-list-item",`ag-${this.cssIdentifier}-list-item`);let N=v.createElement("span");I.appendChild(N),N.textContent=o,this.unFocusable||(I.tabIndex=-1),this.itemEls.push(I),this.addManagedListeners(I,{mouseover:()=>this.highlightItem(I),mousedown:W=>{W.preventDefault(),W.stopPropagation(),this.setValue(i)}}),this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getTooltipValue:()=>o,getGui:()=>I,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>N.scrollWidth>N.clientWidth})),this.getGui().appendChild(I)}setValue(i,o){if(this.value===i)return this.fireItemSelected(),this;if(i==null)return this.reset(o),this;let v=this.options.findIndex(I=>I.value===i);if(v!==-1){let I=this.options[v];this.value=I.value,this.displayValue=I.text,this.highlightItem(this.itemEls[v]),o||this.fireChangeEvent()}return this}setValueByIndex(i){return this.setValue(this.options[i].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();let i=this.options.findIndex(o=>o.value===this.value);i!==-1&&this.highlightItem(this.itemEls[i])}reset(i){this.value=null,this.displayValue=null,this.clearHighlighted(),i||this.fireChangeEvent()}highlightItem(i){if(!wa(i))return;this.clearHighlighted(),this.highlightedEl=i,i.classList.add(this.activeClass),dt(i,!0);let o=this.getGui(),{scrollTop:v,clientHeight:I}=o,{offsetTop:N,offsetHeight:W}=i;(N+W>v+I||N<v)&&i.scrollIntoView({block:"nearest"}),this.unFocusable||i.focus()}clearHighlighted(){let i=this.highlightedEl;!i||!wa(i)||(i.classList.remove(this.activeClass),dt(i,!1),this.highlightedEl=null)}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},cD=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:disabled{opacity:.5}&.ag-picker-has-focus,&:focus-within{border:var(--ag-input-focus-border);box-shadow:var(--ag-focus-shadow)}}.ag-picker-field-button{background-color:var(--ag-background-color)}",dD=class extends sD{constructor(i){if(super(i,(i==null?void 0:i.template)||`
            <div class="ag-picker-field" role="presentation">
                <div data-ref="eLabel"></div>
                <div data-ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed">
                    <div data-ref="eDisplayField" class="ag-picker-field-display"></div>
                    <div data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
                </div>
            </div>`,(i==null?void 0:i.agComponents)||[],i==null?void 0:i.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=fi,this.eWrapper=fi,this.eDisplayField=fi,this.eIcon=fi,this.registerCSS(cD),this.ariaRole=i==null?void 0:i.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!i)return;let{pickerGap:o,maxPickerHeight:v,variableWidth:I,minPickerWidth:N,maxPickerWidth:W}=i;o!=null&&(this.pickerGap=o),this.variableWidth=!!I,v!=null&&this.setPickerMaxHeight(v),N!=null&&this.setPickerMinWidth(N),W!=null&&this.setPickerMaxWidth(W)}postConstruct(){super.postConstruct(),this.setupAria();let i=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",i);let o=this.getAriaElement();this.addManagedElementListeners(o,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});let{pickerIcon:v,inputWidth:I}=this.config;if(v){let N=ma(v,this.beans);N&&this.eIcon.appendChild(N)}I!=null&&this.setInputWidth(I)}setupAria(){let i=this.getAriaElement();i.setAttribute("tabindex",this.gos.get("tabIndex").toString()),We(i,!1),this.ariaRole&&M(i,this.ariaRole)}onLabelOrWrapperMouseDown(i){if(i){let o=this.getFocusableElement();if(o!==this.eWrapper&&(i==null?void 0:i.target)===o)return;i.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(i){switch(i.key){case Bt.UP:case Bt.DOWN:case Bt.ENTER:case Bt.SPACE:i.preventDefault(),this.onLabelOrWrapperMouseDown();break;case Bt.ESCAPE:this.isPickerDisplayed&&(i.preventDefault(),i.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());let i=this.pickerComponent.getGui();i.addEventListener("focusin",this.onPickerFocusIn),i.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){let i=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));let o=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:v,pickerAriaLabelValue:I,modalPicker:N=!0},maxPickerHeight:W,minPickerWidth:Z,maxPickerWidth:ee,variableWidth:le,beans:we,eWrapper:Ae}=this,Ee={modal:N,eChild:i,closeOnEsc:!0,closedCallback:()=>{let kt=ki(we);this.beforeHidePicker(),kt&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:o(v,I),anchorToElement:Ae};i.style.position="absolute";let Ve=we.popupSvc,Je=Ve.addPopup(Ee);le?(Z&&(i.style.minWidth=Z),i.style.width=sm(Oh(Ae)),ee&&(i.style.maxWidth=ee)):rm(i,ee!=null?ee:Oh(Ae));let gt=W!=null?W:`${Sa(Ve.getPopupParent())}px`;return i.style.setProperty("max-height",gt),this.alignPickerToComponent(),Je.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;let{pickerGap:i,config:{pickerType:o},beans:{popupSvc:v,gos:I},eWrapper:N,pickerComponent:W}=this,Z=I.get("enableRtl")?"right":"left";v.positionPopupByComponent({type:o,eventSource:N,ePopup:W.getGui(),position:"under",alignSide:Z,keepWithinBounds:!0,nudgeY:i})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);let i=this.pickerComponent.getGui();i.removeEventListener("focusin",this.onPickerFocusIn),i.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(i){if(!this.isAlive())return;let o=this.getAriaElement();We(o,i);let v=this.eWrapper.classList;v.toggle("ag-picker-expanded",i),v.toggle("ag-picker-collapsed",!i)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(i){var o;(o=this.pickerComponent)!=null&&o.getGui().contains(i.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(i){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",i)}hidePicker(){var i;(i=this.hideCurrentPicker)==null||i.call(this)}setInputWidth(i){return rm(this.eWrapper,i),this}getFocusableElement(){return this.eWrapper}setPickerGap(i){return this.pickerGap=i,this}setPickerMinWidth(i){return typeof i=="number"&&(i=`${i}px`),this.minPickerWidth=i==null?void 0:i,this}setPickerMaxWidth(i){return typeof i=="number"&&(i=`${i}px`),this.maxPickerWidth=i==null?void 0:i,this}setPickerMaxHeight(i){return typeof i=="number"&&(i=`${i}px`),this.maxPickerHeight=i==null?void 0:i,this}destroy(){this.hidePicker(),super.destroy()}},BP=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}",Fx=class extends dD{constructor(i){super(ge({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox"},i)),this.registerCSS(BP)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:Pm(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");let{options:i,value:o,placeholder:v}=this.config;i!=null&&this.addOptions(i),o!=null&&this.setValue(o,!0),v&&o==null&&(this.eDisplayField.textContent=v),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(i){this.eWrapper.contains(i.relatedTarget)||this.hidePicker()}createListComponent(){let i=this.createBean(new ic("select",!0));this.listComponent=i,i.setParentComponent(this);let o=i.getAriaElement(),v=`ag-select-list-${i.getCompId()}`;o.setAttribute("id",v),Pt(this.getAriaElement(),o),i.addManagedListeners(i,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})}}),i.addManagedListeners(i,{fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(i){var v;let{key:o}=i;switch(o===Bt.TAB&&this.hidePicker(),o){case Bt.ENTER:case Bt.UP:case Bt.DOWN:case Bt.PAGE_UP:case Bt.PAGE_DOWN:case Bt.PAGE_HOME:case Bt.PAGE_END:i.preventDefault(),this.isPickerDisplayed?(v=this.listComponent)==null||v.handleKeyDown(i):super.onKeyDown(i);break;case Bt.ESCAPE:super.onKeyDown(i);break;case Bt.SPACE:this.isPickerDisplayed?i.preventDefault():super.onKeyDown(i);break}}showPicker(){let i=this.listComponent;i&&(super.showPicker(),i.refreshHighlighted())}addOptions(i){return i.forEach(o=>this.addOption(o)),this}addOption(i){return this.listComponent.addOption(i),this}clearOptions(){var i;return(i=this.listComponent)==null||i.clearOptions(),this}setValue(i,o,v){let{listComponent:I,config:{placeholder:N},eDisplayField:W,tooltipFeature:Z}=this;if(this.value===i||!I)return this;if(v||I.setValue(i,!0),I.getValue()===this.getValue())return this;let le=I.getDisplayValue();return le==null&&N&&(le=N),W.textContent=le,Z==null||Z.setTooltipAndRefresh(le!=null?le:null),super.setValue(i,o)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},$h={selector:"AG-SELECT",component:Fx},_x={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},uv=class extends jt{constructor(i){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;let{comp:o,eTopGuard:v,eBottomGuard:I,focusTrapActive:N,forceFocusOutWhenTabGuardsAreEmpty:W,isFocusableContainer:Z,focusInnerElement:ee,onFocusIn:le,onFocusOut:we,shouldStopEventPropagation:Ae,onTabKeyDown:Ee,handleKeyDown:Ve,eFocusableElement:Je}=i;this.comp=o,this.eTopGuard=v,this.eBottomGuard=I,this.providedFocusInnerElement=ee,this.eFocusableElement=Je,this.focusTrapActive=!!N,this.forceFocusOutWhenTabGuardsAreEmpty=!!W,this.isFocusableContainer=!!Z,this.providedFocusIn=le,this.providedFocusOut=we,this.providedShouldStopEventPropagation=Ae,this.providedOnTabKeyDown=Ee,this.providedHandleKeyDown=Ve}postConstruct(){this.createManagedBean(new dh(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:i=>this.onTabKeyDown(i),handleKeyDown:i=>this.handleKeyDown(i),onFocusIn:i=>this.onFocusIn(i),onFocusOut:i=>this.onFocusOut(i)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(i=>this.addManagedElementListeners(i,{focus:this.onFocus.bind(this)}))}handleKeyDown(i){this.providedHandleKeyDown&&this.providedHandleKeyDown(i)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;let i=this.gos.get("tabIndex");this.comp.setTabIndex(i.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(i){if(this.isFocusableContainer&&!this.eFocusableElement.contains(i.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(i.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&Kh(this.eFocusableElement,".ag-tab-guard").length===0){this.findNextElementOutsideAndFocus(i.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(i.relatedTarget))return;let o=i.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(o):this.focusInnerElement(o)}findNextElementOutsideAndFocus(i){var le;let o=eo(this.beans),v=Kh(o.body,null,!0),I=v.indexOf(i?this.eTopGuard:this.eBottomGuard);if(I===-1)return;let N,W;i?(N=0,W=I):(N=I+1,W=v.length);let Z=v.slice(N,W),ee=this.gos.get("tabIndex");Z.sort((we,Ae)=>{let Ee=parseInt(we.getAttribute("tabindex")||"0"),Ve=parseInt(Ae.getAttribute("tabindex")||"0");return Ve===ee?1:Ee===ee?-1:Ee===0?1:Ve===0?-1:Ee-Ve}),(le=Z[i?Z.length-1:0])==null||le.focus()}onFocusIn(i){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(i),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(i){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(i),this.eFocusableElement.contains(i.relatedTarget)||this.activateTabGuards())}onTabKeyDown(i){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(i);return}if(this.focusTrapActive||i.defaultPrevented)return;let o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();let v=this.getNextFocusableElement(i.shiftKey);o&&setTimeout(()=>this.activateTabGuards(),0),v&&(v.focus(),i.preventDefault())}focusInnerElement(i=!1){let o=Kh(this.eFocusableElement);this.tabGuardsAreActive()&&(o.splice(0,1),o.splice(o.length-1,1)),o.length&&o[i?o.length-1:0].focus({preventScroll:!0})}getNextFocusableElement(i){return ni(this.beans,this.eFocusableElement,!1,i)}forceFocusOutOfContainer(i=!1){if(this.forcingFocusOut)return;let o=i?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,o.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(i,o){return i===this.eTopGuard&&!o||i===this.eBottomGuard&&(o!=null?o:!0)}setAllowFocus(i){this.allowFocus=i}},uD=class extends jt{constructor(i){super(),this.comp=i}initialiseTabGuard(i){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();let{eTopGuard:o,eBottomGuard:v,eFocusableElement:I}=this,N=[o,v],W={setTabIndex:kt=>{N.forEach(xt=>kt!=null?xt.setAttribute("tabindex",kt):xt.removeAttribute("tabindex"))}};this.addTabGuards(o,v);let{focusTrapActive:Z=!1,onFocusIn:ee,onFocusOut:le,focusInnerElement:we,handleKeyDown:Ae,onTabKeyDown:Ee,shouldStopEventPropagation:Ve,forceFocusOutWhenTabGuardsAreEmpty:Je,isFocusableContainer:gt}=i;this.tabGuardCtrl=this.createManagedBean(new uv({comp:W,focusTrapActive:Z,eTopGuard:o,eBottomGuard:v,eFocusableElement:I,onFocusIn:ee,onFocusOut:le,focusInnerElement:we,handleKeyDown:Ae,onTabKeyDown:Ee,shouldStopEventPropagation:Ve,forceFocusOutWhenTabGuardsAreEmpty:Je,isFocusableContainer:gt}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(i){let o=eo(this.beans).createElement("div"),v=i==="top"?_x.TAB_GUARD_TOP:_x.TAB_GUARD_BOTTOM;return o.classList.add(_x.TAB_GUARD,v),M(o,"presentation"),o}addTabGuards(i,o){let v=this.eFocusableElement;v.insertAdjacentElement("afterbegin",i),v.insertAdjacentElement("beforeend",o)}removeAllChildrenExceptTabGuards(){let i=[this.eTopGuard,this.eBottomGuard];Jn(this.comp.getFocusableElement()),this.addTabGuards(...i)}forceFocusOutOfContainer(i=!1){this.tabGuardCtrl.forceFocusOutOfContainer(i)}appendChild(i,o,v){_h(o)||(o=o.getGui());let{eBottomGuard:I}=this;I?I.insertAdjacentElement("beforebegin",o):i(o,v)}},Nx=class extends cn{initialiseTabGuard(i){this.tabGuardFeature=this.createManagedBean(new uD(this)),this.tabGuardFeature.initialiseTabGuard(i)}forceFocusOutOfContainer(i=!1){this.tabGuardFeature.forceFocusOutOfContainer(i)}appendChild(i,o){this.tabGuardFeature.appendChild(super.appendChild.bind(this),i,o)}},hv=class extends cn{isPopup(){return!0}setParentComponent(i){i.addCssClass("ag-has-popup"),super.setParentComponent(i)}destroy(){let i=this.parentComponent;i&&i.isAlive()&&i.getGui().classList.remove("ag-has-popup"),super.destroy()}},fs=class{constructor(i,o=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new s,this.preventMouseClick=o;let v=this.onTouchStart.bind(this),I=this.onTouchMove.bind(this),N=this.onTouchEnd.bind(this);i.addEventListener("touchstart",v,{passive:!0}),i.addEventListener("touchmove",I,{passive:!0}),i.addEventListener("touchend",N,{passive:!1}),this.destroyFuncs.push(()=>{i.removeEventListener("touchstart",v,{passive:!0}),i.removeEventListener("touchmove",I,{passive:!0}),i.removeEventListener("touchend",N,{passive:!1})})}getActiveTouch(i){for(let o=0;o<i.length;o++)if(i[o].identifier===this.touchStart.identifier)return i[o];return null}addEventListener(i,o){this.localEventService.addEventListener(i,o)}removeEventListener(i,o){this.localEventService.removeEventListener(i,o)}onTouchStart(i){if(this.touching)return;this.touchStart=i.touches[0],this.touching=!0,this.moved=!1;let o=this.touchStart;window.setTimeout(()=>{let v=this.touchStart===o;if(this.touching&&v&&!this.moved){this.moved=!0;let I={type:"longTap",touchStart:this.touchStart,touchEvent:i};this.localEventService.dispatchEvent(I)}},500)}onTouchMove(i){if(!this.touching)return;let o=this.getActiveTouch(i.touches);if(!o)return;!l0(o,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(i){if(this.touching){if(!this.moved){let o={type:"tap",touchStart:this.touchStart};this.localEventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&i.cancelable&&i.preventDefault(),this.touching=!1}}checkForDoubleTap(){let i=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0)if(i-this.lastTapTime>this.DOUBLE_TAP_MILLIS){let v={type:"doubleTap",touchStart:this.touchStart};this.localEventService.dispatchEvent(v),this.lastTapTime=null}else this.lastTapTime=i;else this.lastTapTime=i}destroy(){this.destroyFuncs.forEach(i=>i())}},S0=(i=>(i[i.VALUE=0]="VALUE",i[i.DIMENSION=1]="DIMENSION",i))(S0||{}),w0=class{constructor(i="javascript"){this.frameworkName=i,this.renderingEngine="vanilla",this.wrapIncoming=o=>o(),this.wrapOutgoing=o=>o(),this.baseDocLink=`${Qw}/${this.frameworkName}-data-grid`,vi(this.baseDocLink)}setInterval(i,o){return new ds(v=>{v(window.setInterval(i,o))})}addEventListener(i,o,v,I){let N={};if(typeof I=="object"?N=I:typeof I=="boolean"&&(N={capture:I}),N.passive==null){let W=oa(o);W!=null&&(N.passive=W)}i.addEventListener(o,v,N)}frameworkComponent(i){return null}isFrameworkComponent(i){return!1}getDocLink(i){return`${this.baseDocLink}${i?`/${i}`:""}`}};function GI(i){return{beanName:"gridApi",bean:i.getBean("apiFunctionSvc").api}}var x0=["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","funcColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"],gh=Object.fromEntries(x0.map((i,o)=>[i,o]));function Qh(i,o){var N,W;let v=(N=i.beanName?gh[i.beanName]:void 0)!=null?N:Number.MAX_SAFE_INTEGER,I=(W=o.beanName?gh[o.beanName]:void 0)!=null?W:Number.MAX_SAFE_INTEGER;return v-I}function hD(i,o){return(i==null?void 0:i.beanName)==="gridDestroySvc"?-1:0}var Us='<div class="ag-pinned-left-header" role="rowgroup"></div>',GP='<div class="ag-pinned-right-header" role="rowgroup"></div>',M0=`<div class="ag-header-viewport" role="presentation">
        <div class="ag-header-container" data-ref="eCenterContainer" role="rowgroup"></div>
    </div>`,Jh=class extends cn{constructor(i){super(),this.eCenterContainer=fi,this.headerRowComps={},this.rowCompsList=[],this.pinned=i}postConstruct(){this.selectAndSetTemplate();let i={setDisplayed:v=>this.setDisplayed(v),setCtrls:v=>this.setCtrls(v),setCenterWidth:v=>this.eCenterContainer.style.width=v,setViewportScrollLeft:v=>this.getGui().scrollLeft=v,setPinnedContainerWidth:v=>{let I=this.getGui();I.style.width=v,I.style.maxWidth=v,I.style.minWidth=v}};this.createManagedBean(new pr(this.pinned)).setComp(i,this.getGui())}selectAndSetTemplate(){let i=this.pinned=="left",o=this.pinned=="right",v=i?Us:o?GP:M0;this.setTemplate(v),this.eRowContainer=this.eCenterContainer!==fi?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(i){this.destroyBean(i),this.eRowContainer.removeChild(i.getGui())}setCtrls(i){let o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];let v,I=N=>{let W=N.getGui();W.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(W),v&&ea(this.eRowContainer,W,v),v=W};i.forEach(N=>{let W=N.instanceId,Z=o[W];delete o[W];let ee=Z||this.createBean(new op(N));this.headerRowComps[W]=ee,this.rowCompsList.push(ee),I(ee)}),Object.values(o).forEach(N=>this.destroyRowComp(N))}},k0=class extends cn{constructor(){super('<div class="ag-header" role="presentation"/>')}postConstruct(){let i={addOrRemoveCssClass:(I,N)=>this.addOrRemoveCssClass(I,N),setHeightAndMinHeight:I=>{this.getGui().style.height=I,this.getGui().style.minHeight=I}};this.createManagedBean(new au).setComp(i,this.getGui(),this.getFocusableElement());let v=I=>{this.createManagedBean(I),this.appendChild(I)};v(new Jh("left")),v(new Jh(null)),v(new Jh("right"))}},zx={selector:"AG-HEADER-ROOT",component:k0},A0=class extends cn{constructor(i,o,v,I,N){super(),this.cellCtrl=o,this.rendererVersion=0,this.editorVersion=0,this.beans=i,this.column=o.column,this.rowNode=o.rowNode,this.eRow=I;let W=document.createElement("div");W.setAttribute("comp-id",`${this.getCompId()}`),this.setTemplateFromElement(W);let Z=this.getGui();this.forceWrapper=o.isForceWrapper(),this.refreshWrapper(!1),M(Z,o.getCellAriaRole()),Z.setAttribute("col-id",o.colIdSanitised);let ee={addOrRemoveCssClass:(le,we)=>this.addOrRemoveCssClass(le,we),setUserStyles:le=>Ku(Z,le),getFocusableElement:()=>this.getFocusableElement(),setIncludeSelection:le=>this.includeSelection=le,setIncludeRowDrag:le=>this.includeRowDrag=le,setIncludeDndSource:le=>this.includeDndSource=le,setRenderDetails:(le,we,Ae)=>this.setRenderDetails(le,we,Ae),setEditDetails:(le,we,Ae)=>this.setEditDetails(le,we,Ae),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue()};o.setComp(ee,this.getGui(),this.eCellWrapper,v,N,void 0)}getParentOfValue(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()}setRenderDetails(i,o,v){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=this.firstRender==null;let N=this.refreshWrapper(!1);this.refreshEditStyles(!1),i?!(v||N)&&this.refreshCellRenderer(i)||(this.destroyRenderer(),this.createCellRendererInstance(i)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(o))}setEditDetails(i,o,v){i?this.createCellEditorInstance(i,o,v):this.destroyEditor()}removeControls(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)}refreshWrapper(i){let o=this.includeRowDrag||this.includeDndSource||this.includeSelection,v=o||this.forceWrapper,I=v&&this.eCellWrapper==null;if(I){let we=document.createElement("div");we.setAttribute("role","presentation"),we.setAttribute("class","ag-cell-wrapper"),this.eCellWrapper=we,this.getGui().appendChild(this.eCellWrapper)}let N=!v&&this.eCellWrapper!=null;N&&(xc(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!v);let W=!i&&v,Z=W&&this.eCellValue==null;if(Z){let we=document.createElement("span");we.setAttribute("role","presentation"),we.setAttribute("class","ag-cell-value"),this.eCellValue=we,this.eCellWrapper.appendChild(this.eCellValue)}let ee=!W&&this.eCellValue!=null;ee&&(xc(this.eCellValue),this.eCellValue=void 0);let le=I||N||Z||ee;return le&&this.removeControls(),i||o&&this.addControls(),le}addControls(){this.includeRowDrag&&this.rowDraggingComp==null&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&this.dndSourceComp==null&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.dndSourceComp&&this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.checkboxSelectionComp&&this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))}createCellEditorInstance(i,o,v){let I=this.editorVersion,N=i.newAgStackInstance(),{params:W}=i;N.then(ee=>this.afterCellEditorCreated(I,ee,W,o,v)),Oa(this.cellEditor)&&W.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(i){let o=this.getParentOfValue();Jn(o);let v=i!=null?yl(i,!0):null;v!=null&&(o.textContent=v)}destroyEditorAndRenderer(){this.destroyRenderer(),this.destroyEditor()}destroyRenderer(){let{context:i}=this.beans;this.cellRenderer=i.destroyBean(this.cellRenderer),xc(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){let{context:i}=this.beans;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=i.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=i.destroyBean(this.cellEditorPopupWrapper),xc(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(i){if(this.cellRenderer==null||this.cellRenderer.refresh==null||this.cellRendererClass!==i.componentClass)return!1;let o=this.cellRenderer.refresh(i.params);return o===!0||o===void 0}createCellRendererInstance(i){let v=!this.beans.gos.get("suppressAnimationFrame")&&this.beans.animationFrameSvc,I=this.rendererVersion,{componentClass:N}=i,W=()=>{if(this.rendererVersion!==I||!this.isAlive())return;let ee=i.newAgStackInstance(),le=this.afterCellRendererCreated.bind(this,I,N);ee&&ee.then(le)};v&&this.firstRender?this.beans.animationFrameSvc.createTask(W,this.rowNode.rowIndex,"createTasksP2"):W()}afterCellRendererCreated(i,o,v){if(!this.isAlive()||i!==this.rendererVersion){this.beans.context.destroyBean(v);return}if(this.cellRenderer=v,this.cellRendererClass=o,this.cellRendererGui=this.cellRenderer.getGui(),this.cellRendererGui!=null){let N=this.getParentOfValue();Jn(N),N.appendChild(this.cellRendererGui)}}afterCellEditorCreated(i,o,v,I,N){if(i!==this.editorVersion){this.beans.context.destroyBean(o);return}if(o.isCancelBeforeStart&&o.isCancelBeforeStart()){this.beans.context.destroyBean(o),this.cellCtrl.stopEditing(!0);return}if(!o.getGui){ii(97,{colId:this.column.getId()}),this.beans.context.destroyBean(o);return}this.cellEditor=o,this.cellEditorGui=o.getGui();let ee=I||o.isPopup!==void 0&&o.isPopup();ee?this.addPopupCellEditor(v,N):this.addInCellEditor(),this.refreshEditStyles(!0,ee),o.afterGuiAttached&&o.afterGuiAttached(),this.cellCtrl.cellEditorAttached()}refreshEditStyles(i,o){this.addOrRemoveCssClass("ag-cell-inline-editing",i&&!o),this.addOrRemoveCssClass("ag-cell-popup-editing",i&&!!o),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!i||!!o),this.cellCtrl.setInlineEditingCss()}addInCellEditor(){let i=this.getGui();i.contains(ga(this.beans))&&i.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(i,o){var Ve,Je;this.beans.gos.get("editType")==="fullRow"&&ii(98);let v=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(this.beans.editSvc.createPopupEditorWrapper(i));let I=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&I.appendChild(this.cellEditorGui);let N=this.beans.popupSvc,W=this.beans.gos.get("stopEditingWhenCellsLoseFocus"),Z=o!=null?o:(Je=(Ve=v.getPopupPosition)==null?void 0:Ve.call(v))!=null?Je:"over",ee=this.beans.gos.get("enableRtl"),le={ePopup:I,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:Z,alignSide:ee?"right":"left",keepWithinBounds:!0},we=N.positionPopupByComponent.bind(N,le),Ae=h(this.beans.localeSvc),Ee=N.addPopup({modal:W,eChild:I,closeOnEsc:!0,closedCallback:()=>{this.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:we,ariaLabel:Ae("ariaLabelCellEditor","Cell Editor")});Ee&&(this.hideEditorPopup=Ee.hideFunc)}detach(){this.eRow.removeChild(this.getGui())}destroy(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),super.destroy()}clearParentOfValue(){let i=this.getGui();i.contains(ga(this.beans))&&i.focus({preventScroll:!0}),Jn(this.getParentOfValue())}},nc=class extends cn{constructor(i,o,v){super(),this.cellComps={},this.beans=o,this.rowCtrl=i;let I=document.createElement("div");I.setAttribute("comp-id",`${this.getCompId()}`),I.setAttribute("style",this.getInitialStyle(v)),this.setTemplateFromElement(I);let N=this.getGui(),W=N.style;this.domOrder=this.rowCtrl.getDomOrder(),M(N,"row");let Z={setDomOrder:ee=>this.domOrder=ee,setCellCtrls:ee=>this.setCellCtrls(ee),showFullWidth:ee=>this.showFullWidth(ee),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,addOrRemoveCssClass:(ee,le)=>this.addOrRemoveCssClass(ee,le),setUserStyles:ee=>Ku(N,ee),setTop:ee=>W.top=ee,setTransform:ee=>W.transform=ee,setRowIndex:ee=>N.setAttribute("row-index",ee),setRowId:ee=>N.setAttribute("row-id",ee),setRowBusinessKey:ee=>N.setAttribute("row-business-key",ee),refreshFullWidth:ee=>{var le,we,Ae;return(Ae=(we=(le=this.fullWidthCellRenderer)==null?void 0:le.refresh)==null?void 0:we.call(le,ee()))!=null?Ae:!1}};i.setComp(Z,this.getGui(),v,void 0),this.addDestroyFunc(()=>{i.unsetComp(v)})}getInitialStyle(i){let o=this.rowCtrl.getInitialTransform(i);return o?`transform: ${o}`:`top: ${this.rowCtrl.getInitialRowTop(i)}`}showFullWidth(i){let o=I=>{if(this.isAlive()){let N=I.getGui();this.getGui().appendChild(N),this.rowCtrl.setupDetailRowAutoHeight(N),this.setFullWidthRowComp(I)}else this.beans.context.destroyBean(I)};i.newAgStackInstance().then(o)}setCellCtrls(i){let o=Object.assign({},this.cellComps);i.forEach(I=>{let N=I.instanceId;this.cellComps[N]==null?this.newCellComp(I):o[N]=null});let v=Object.values(o).filter(I=>I!=null);this.destroyCells(v),this.ensureDomOrder(i)}ensureDomOrder(i){if(!this.domOrder)return;let o=[];i.forEach(v=>{let I=this.cellComps[v.instanceId];I&&o.push(I.getGui())}),BC(this.getGui(),o)}newCellComp(i){let o=new A0(this.beans,i,this.rowCtrl.printLayout,this.getGui(),this.rowCtrl.editing);this.cellComps[i.instanceId]=o,this.getGui().appendChild(o.getGui())}destroy(){super.destroy(),this.destroyAllCells()}destroyAllCells(){let i=Object.values(this.cellComps).filter(o=>o!=null);this.destroyCells(i)}setFullWidthRowComp(i){this.fullWidthCellRenderer=i,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer)})}destroyCells(i){i.forEach(o=>{if(!o)return;let v=o.cellCtrl.instanceId;this.cellComps[v]===o&&(o.detach(),o.destroy(),this.cellComps[v]=null)})}};function tr(i){let o;return i.type==="center"?o=`<div class="${i.viewport}" data-ref="eViewport" role="presentation">
                <div class="${i.container}" data-ref="eContainer"></div>
            </div>`:o=`<div class="${i.container}" data-ref="eContainer"></div>`,o}var VP=class extends cn{constructor(i){super(),this.eViewport=fi,this.eContainer=fi,this.rowComps={},this.name=i==null?void 0:i.name,this.options=sv(this.name),this.setTemplate(tr(this.options))}postConstruct(){let i={setHorizontalScroll:v=>this.eViewport.scrollLeft=v,setViewportHeight:v=>this.eViewport.style.height=v,setRowCtrls:({rowCtrls:v})=>this.setRowCtrls(v),setDomOrder:v=>{this.domOrder=v},setContainerWidth:v=>this.eContainer.style.width=v,setOffsetTop:v=>this.eContainer.style.transform=`translateY(${v})`};this.createManagedBean(new Yh(this.name)).setComp(i,this.eContainer,this.eViewport)}destroy(){this.setRowCtrls([]),super.destroy()}setRowCtrls(i){let o=ge({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;let v=I=>{let N=I.instanceId,W=o[N];if(W)this.rowComps[N]=W,delete o[N],this.ensureDomOrder(W.getGui());else{if(!I.rowNode.displayed)return;let Z=new nc(I,this.beans,this.options.type);this.rowComps[N]=Z,this.appendRow(Z.getGui())}};i.forEach(v),Object.values(o).forEach(I=>{this.eContainer.removeChild(I.getGui()),I.destroy()}),M(this.eContainer,"rowgroup")}appendRow(i){this.domOrder?LA(this.eContainer,i,this.lastPlacedElement):this.eContainer.appendChild(i),this.lastPlacedElement=i}ensureDomOrder(i){this.domOrder&&(ea(this.eContainer,i,this.lastPlacedElement),this.lastPlacedElement=i)}},Kr={selector:"AG-ROW-CONTAINER",component:VP};function vs(i,o){return o.map(v=>{let I=`e${v[0].toUpperCase()+v.substring(1)}RowContainer`;return i[I]={name:v},`<ag-row-container name="${v}" data-ref="${I}"></ag-row-container>`}).join("")}function gv(i){let o={},v=`<div class="ag-root ag-unselectable" data-ref="eGridRoot">
        <ag-header-root></ag-header-root>
        <div class="ag-floating-top" data-ref="eTop" role="presentation">
            ${vs(o,["topLeft","topCenter","topRight","topFullWidth"])}
        </div>
        <div class="ag-body" data-ref="eBody" role="presentation">
            <div class="ag-body-viewport" data-ref="eBodyViewport" role="presentation">
            ${vs(o,["left","center","right","fullWidth"])}
            </div>
            <ag-fake-vertical-scroll></ag-fake-vertical-scroll>
        </div>
        <div class="ag-sticky-top" data-ref="eStickyTop" role="presentation">
            ${vs(o,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])}
        </div>
        <div class="ag-sticky-bottom" data-ref="eStickyBottom" role="presentation">
            ${vs(o,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])}
        </div>
        <div class="ag-floating-bottom" data-ref="eBottom" role="presentation">
            ${vs(o,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])}
        </div>
        <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>
        ${i?"<ag-overlay-wrapper></ag-overlay-wrapper>":""}
    </div>`;return{paramsMap:o,template:v}}var ac=class extends cn{constructor(){super(...arguments),this.eGridRoot=fi,this.eBodyViewport=fi,this.eStickyTop=fi,this.eStickyBottom=fi,this.eTop=fi,this.eBottom=fi,this.eBody=fi}postConstruct(){let{overlays:i,rangeSvc:o}=this.beans,v=i==null?void 0:i.getOverlayWrapperSelector(),{paramsMap:I,template:N}=gv(!!v);this.setTemplate(N,[...v?[v]:[],f0,TI,zx,Kr],I);let W=(ee,le)=>{let we=`${ee}px`;le.style.minHeight=we,le.style.height=we},Z={setRowAnimationCssOnBodyViewport:(ee,le)=>this.setRowAnimationCssOnBodyViewport(ee,le),setColumnCount:ee=>Ke(this.getGui(),ee),setRowCount:ee=>St(this.getGui(),ee),setTopHeight:ee=>W(ee,this.eTop),setBottomHeight:ee=>W(ee,this.eBottom),setTopDisplay:ee=>this.eTop.style.display=ee,setBottomDisplay:ee=>this.eBottom.style.display=ee,setStickyTopHeight:ee=>this.eStickyTop.style.height=ee,setStickyTopTop:ee=>this.eStickyTop.style.top=ee,setStickyTopWidth:ee=>this.eStickyTop.style.width=ee,setStickyBottomHeight:ee=>{this.eStickyBottom.style.height=ee,this.eStickyBottom.classList.toggle("ag-hidden",ee==="0px")},setStickyBottomBottom:ee=>this.eStickyBottom.style.bottom=ee,setStickyBottomWidth:ee=>this.eStickyBottom.style.width=ee,setColumnMovingCss:(ee,le)=>this.addOrRemoveCssClass(ee,le),updateLayoutClasses:(ee,le)=>{[this.eBodyViewport.classList,this.eBody.classList].forEach(Ae=>{Ae.toggle(gd.AUTO_HEIGHT,le.autoHeight),Ae.toggle(gd.NORMAL,le.normal),Ae.toggle(gd.PRINT,le.print)}),this.addOrRemoveCssClass(gd.AUTO_HEIGHT,le.autoHeight),this.addOrRemoveCssClass(gd.NORMAL,le.normal),this.addOrRemoveCssClass(gd.PRINT,le.print)},setAlwaysVerticalScrollClass:(ee,le)=>this.eBodyViewport.classList.toggle(tb,le),registerBodyViewportResizeListener:ee=>{let le=Xl(this.beans,this.eBodyViewport,ee);this.addDestroyFunc(()=>le())},setPinnedTopBottomOverflowY:ee=>this.eTop.style.overflowY=this.eBottom.style.overflowY=ee,setCellSelectableCss:(ee,le)=>{[this.eTop,this.eBodyViewport,this.eBottom].forEach(we=>we.classList.toggle(ee,le))},setBodyViewportWidth:ee=>this.eBodyViewport.style.width=ee,setGridRootRole:ee=>M(this.eGridRoot,ee)};this.ctrl=this.createManagedBean(new Ex),this.ctrl.setComp(Z,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(o&&Jo(this.gos)||pm(this.gos))&&st(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(i,o){let v=this.eBodyViewport.classList;v.toggle("ag-row-animation",o),v.toggle("ag-row-no-animation",!o)}},VI={selector:"AG-GRID-BODY",component:ac},Bx=class extends jt{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(i,o,v){this.view=i,this.eGridHostDiv=o,this.eGui=v,this.eGui.setAttribute("grid-id",this.beans.context.getGridId());let{dragAndDrop:I,ctrlsSvc:N}=this.beans;I==null||I.registerGridDropTarget(()=>this.eGui,this),Ky(this.gos,o),this.createManagedBean(new Zy(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");let W=Xl(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>W()),N.register("gridCtrl",this)}isDetailGrid(){var o;let i=Cn(this.getGui());return((o=i==null?void 0:i.getAttribute("row-id"))==null?void 0:o.startsWith("detail"))||!1}getOptionalSelectors(){var o,v,I,N;let i=this.beans;return{paginationSelector:(o=i.pagination)==null?void 0:o.getPaginationSelector(),gridHeaderDropZonesSelector:i.registry.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:(v=i.sideBar)==null?void 0:v.getSelector(),statusBarSelector:(I=i.registry)==null?void 0:I.getSelector("AG-STATUS-BAR"),watermarkSelector:(N=i.licenseManager)==null?void 0:N.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(i){this.view.setCursor(i?"ew-resize":null)}disableUserSelect(i){this.view.setUserSelect(i?"none":null)}focusNextInnerContainer(i){let o=this.getFocusableContainers(),{indexWithFocus:v,nextIndex:I}=this.getNextFocusableIndex(o,i);if(I<0||I>=o.length)return!1;if(I===0){if(v>0){let{visibleCols:N,focusSvc:W}=this.beans,Z=N.allCols,ee=Yn(Z);if(W.focusGridView(ee,!0))return!0}return!1}return this.focusContainer(o[I],i)}focusInnerElement(i){let o=this.gos.getCallback("focusGridInnerElement");if(o&&o({fromBottom:!!i}))return!0;let v=this.getFocusableContainers(),{focusSvc:I,visibleCols:N}=this.beans,W=N.allCols;if(i){if(v.length>1)return this.focusContainer(Yn(v),!0);let Z=Yn(W);if(I.focusGridView(Z,!0))return!0}if(this.gos.get("headerHeight")===0||sh(this.beans)){if(I.focusGridView(W[0]))return!0;for(let Z=1;Z<v.length;Z++)if(Jd(v[Z].getGui()))return!0;return!1}return I.focusFirstHeader()}forceFocusOutOfContainer(i=!1){this.view.forceFocusOutOfContainer(i)}addFocusableContainer(i){this.additionalFocusableContainers.add(i)}removeFocusableContainer(i){this.additionalFocusableContainers.delete(i)}allowFocusForNextCoreContainer(i){var W;let o=this.view.getFocusableContainers(),{nextIndex:v,indexWithFocus:I}=this.getNextFocusableIndex(o,i);if(I===-1||v<0||v>=o.length)return;let N=o[v];(W=N.setAllowFocus)==null||W.call(N,!0),setTimeout(()=>{var Z;(Z=N.setAllowFocus)==null||Z.call(N,!1)})}getNextFocusableIndex(i,o){let v=ga(this.beans),I=i.findIndex(W=>W.getGui().contains(v)),N=I+(o?-1:1);return{indexWithFocus:I,nextIndex:N}}focusContainer(i,o){var I,N;(I=i.setAllowFocus)==null||I.call(i,!0);let v=Jd(i.getGui(),o);return(N=i.setAllowFocus)==null||N.call(i,!1),v}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},Gx=class extends Nx{constructor(i){super(),this.gridBody=fi,this.sideBar=fi,this.pagination=fi,this.rootWrapperBody=fi,this.eGridDiv=i}postConstruct(){let i={destroyGridUi:()=>this.destroyBean(this),setRtlClass:W=>this.addCssClass(W),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:W=>{this.getGui().style.userSelect=W!=null?W:"",this.getGui().style.webkitUserSelect=W!=null?W:""},setCursor:W=>{this.getGui().style.cursor=W!=null?W:""}},o=this.createManagedBean(new Bx),v=o.getOptionalSelectors(),I=this.createTemplate(v),N=[VI,...Object.values(v).filter(W=>!!W)];this.setTemplate(I,N),o.setComp(i,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:W=>o.focusInnerElement(W),forceFocusOutWhenTabGuardsAreEmpty:!0})}insertGridIntoDom(){let i=this.getGui();this.eGridDiv.appendChild(i),this.addDestroyFunc(()=>{this.eGridDiv.removeChild(i),rd(this.gos,"Grid removed from DOM")})}updateLayoutClasses(i,o){let v=this.rootWrapperBody.classList,{AUTO_HEIGHT:I,NORMAL:N,PRINT:W}=gd,{autoHeight:Z,normal:ee,print:le}=o;v.toggle(I,Z),v.toggle(N,ee),v.toggle(W,le),this.addOrRemoveCssClass(I,Z),this.addOrRemoveCssClass(N,ee),this.addOrRemoveCssClass(W,le)}createTemplate(i){let o=i.gridHeaderDropZonesSelector?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"",v=i.sideBarSelector?'<ag-side-bar data-ref="sideBar"></ag-side-bar>':"",I=i.statusBarSelector?"<ag-status-bar></ag-status-bar>":"",N=i.watermarkSelector?"<ag-watermark></ag-watermark>":"",W=i.paginationSelector?'<ag-pagination data-ref="pagination"></ag-pagination>':"";return`<div class="ag-root-wrapper" role="presentation">
                ${o}
                <div class="ag-root-wrapper-body" data-ref="rootWrapperBody" role="presentation">
                    <ag-grid-body data-ref="gridBody"></ag-grid-body>
                    ${v}
                </div>
                ${I}
                ${W}
                ${N}
            </div>`}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(i=!1){var o;if(!i&&((o=this.pagination)!=null&&o.isDisplayed())){this.pagination.forceFocusOutOfContainer(i);return}super.forceFocusOutOfContainer(i)}getFocusableContainers(){let i=[this.gridBody];return[this.sideBar,this.pagination].forEach(o=>{o&&i.push(o)}),i.filter(o=>wa(o.getGui()))}},an=(i,o)=>{for(let v of Object.keys(o))o[v]=i;return o},Vx=ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge(ge({dispatchEvent:"CommunityCore"},an("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0})),an("GridState",{getState:0})),an("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0})),an("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0})),an("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0})),an("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0})),an("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0})),an("ValueCache",{expireValueCache:0})),an("CellApi",{getCellValue:0})),an("SharedMenu",{showColumnMenu:0,hidePopupMenu:0})),an("Sort",{onSortChanged:0})),an("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0})),an("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0})),an("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0})),an("HighlightChanges",{flashCells:0})),an("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0})),an("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0})),an("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0})),an("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0})),an("ColumnMove",{moveColumnByIndex:0,moveColumns:0})),an("ColumnResize",{setColumnWidths:0})),an("ColumnHover",{isColumnHovered:0})),an("EditCore",{getCellEditorInstances:0,getEditingCells:0,stopEditing:0,startEditingCell:0})),an("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0})),an("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0})),an("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0})),an("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0})),an("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0})),an("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,onRowHeightChanged:0})),an("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0})),an("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,resetRowHeights:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0})),an("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0})),an("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0})),an("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0})),an("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0})),an("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0})),an("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0})),an("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0})),an("ContextMenu",{showContextMenu:0})),an("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0})),an("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0})),an("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0})),an("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0})),an("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0})),an("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0})),an("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0})),an("StatusBar",{getStatusPanel:0})),lb={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},lp=(i,o)=>i.eventSvc.dispatchEvent(o),jx=class{};Reflect.defineProperty(jx,"name",{value:"GridApi"});var pv=class extends jt{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new jx,this.fns=He(ge({},lb),{dispatchEvent:lp}),this.preDestroyLink="";let{api:i}=this;for(let o of Object.keys(Vx))i[o]=this.makeApi(o)[o]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(i,o){var N,W;let{fns:v,beans:I}=this;v!==lb&&(v[i]=(W=(N=I==null?void 0:I.validation)==null?void 0:N.validateApiFunction(i,o))!=null?W:o)}makeApi(i){return{[i]:(...o)=>{let{beans:v,fns:{[i]:I}}=this;return I?I(v,...o):this.apiNotFound(i)}}}apiNotFound(i){let{beans:o,gos:v,preDestroyLink:I}=this;if(!o)ii(26,{fnName:i,preDestroyLink:I});else{let N=Vx[i];v.assertModuleRegistered(N,`api.${i}`)&&ii(27,{fnName:i,module:N})}}destroy(){super.destroy(),this.fns=lb,this.beans=null}};function Hx(i){return i.context.getGridId()}function gD(i){i.gridDestroySvc.destroy()}function mv(i){return i.gridDestroySvc.destroyCalled}function pD(i,o){return i.gos.get(o)}function qa(i,o,v){cp(i,{[o]:v})}function cp(i,o){i.gos.updateGridOptions({options:o})}var oc=class extends cn{constructor(i,o,v){super('<div class="ag-drag-handle ag-row-drag" draggable="true"></div>'),this.rowNode=i,this.column=o,this.eCell=v}postConstruct(){this.getGui().appendChild(ma("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",o=>{o.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(i){let{rowNode:o,column:v,eCell:I,gos:N}=this,W=v.getColDef().dndSourceOnRowDrag,Z=i.dataTransfer;if(Z.setDragImage(I,0,0),W){let ee=N.addGridCommonParams({rowNode:o,dragEvent:i});W(ee)}else try{let ee=JSON.stringify(o.data);Z.setData("application/json",ee),Z.setData("text/plain",ee)}catch(ee){}}checkVisibility(){let i=this.column.isDndSource(this.rowNode);this.setDisplayed(i)}};function mD(i,o){var v,I;(I=(v=i.rowDragSvc)==null?void 0:v.rowDragFeature)==null||I.addRowDropZone(o)}function Lm(i,o){var I,N;let v=(I=i.dragAndDrop)==null?void 0:I.findExternalZone(o);v&&((N=i.dragAndDrop)==null||N.removeDropTarget(v))}function jI(i,o){var v,I;return(I=(v=i.rowDragSvc)==null?void 0:v.rowDragFeature)==null?void 0:I.getRowDropZone(o)}var HI=class extends jt{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(i){let o={dragStartPixels:i.dragStartPixels||0,eElement:i.eResizeBar,onDragStart:this.onDragStart.bind(this,i),onDragStop:this.onDragStop.bind(this,i),onDragging:this.onDragging.bind(this,i),onDragCancel:this.onDragStop.bind(this,i),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:v}=this.beans;return v.addDragSource(o),()=>v.removeDragSource(o)}onDragStart(i,o){this.dragStartX=o.clientX,this.setResizeIcons();let v=o instanceof MouseEvent&&o.shiftKey===!0;i.onResizeStart(v)}setResizeIcons(){let i=this.beans.ctrlsSvc.get("gridCtrl");i.setResizeCursor(!0),i.disableUserSelect(!0)}onDragStop(i){i.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){let i=this.beans.ctrlsSvc.get("gridCtrl");i.setResizeCursor(!1),i.disableUserSelect(!1)}onDragging(i,o){this.resizeAmount=o.clientX-this.dragStartX,i.onResizing(this.resizeAmount)}},fD=class extends cn{constructor(i,o,v,I,N,W){super(),this.cellValueFn=i,this.rowNode=o,this.column=v,this.customGui=I,this.dragStartPixels=N,this.suppressVisibilityChange=W,this.dragSource=null}isCustomGui(){return this.customGui!=null}postConstruct(){let{beans:i,rowNode:o,column:v,gos:I}=this;if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(ma("rowDrag",i,null)),this.addDragSource()),!this.suppressVisibilityChange){let N=I.get("rowDragManaged")?new yd(this,o,v):new mr(this,o,v);this.createManagedBean(N,this.beans.context)}}setDragElement(i,o){this.setTemplateFromElement(i,void 0,void 0,!0),this.addDragSource(o)}getSelectedNodes(){var I,N;let i=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[i];let v=(N=(I=this.beans.selectionSvc)==null?void 0:I.getSelectedNodes())!=null?N:[];return v.indexOf(i)!==-1?v:[i]}getDragItem(){let{column:i,rowNode:o}=this;return{rowNode:o,rowNodes:this.getSelectedNodes(),columns:i?[i]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(i){if(i){let o=i.getColDef();if(o.rowDragText)return o.rowDragText}return this.gos.get("rowDragText")}addDragSource(i=4){this.dragSource&&this.removeDragSource();let o=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(o,{mousedown:I=>{I==null||I.preventDefault()}})[0]);let v=this.getLocaleTextFunc();this.dragSource={type:2,eElement:o,dragItemName:()=>{var Z;let I=this.getDragItem(),N=((Z=I.rowNodes)==null?void 0:Z.length)||1,W=this.getRowDragText(this.column);return W?W(I,N):N===1?this.cellValueFn():`${N} ${v("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:i,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},Wx=class extends jt{constructor(i,o,v){super(),this.parent=i,this.rowNode=o,this.column=v}setDisplayedOrVisible(i){let o={skipAriaHidden:!0};if(i)this.parent.setDisplayed(!1,o);else{let v=!0,I=!1,{column:N,rowNode:W,parent:Z}=this;N&&(v=N.isRowDrag(W)||Z.isCustomGui(),I=typeof N.getColDef().rowDrag=="function"),I?(Z.setDisplayed(!0,o),Z.setVisible(v,o)):(Z.setDisplayed(v,o),Z.setVisible(!0,o))}}},mr=class extends Wx{postConstruct(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this));let i=this.workOutVisibility.bind(this);this.addManagedListeners(this.rowNode,{dataChanged:i,cellChanged:i}),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:i}),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let i=this.gos.get("suppressRowDrag");this.setDisplayedOrVisible(i)}},yd=class extends Wx{postConstruct(){let i=this.workOutVisibility.bind(this);this.addManagedListeners(this.beans.eventSvc,{sortChanged:i,filterChanged:i,columnRowGroupChanged:i,newColumnsLoaded:i}),this.addManagedListeners(this.rowNode,{dataChanged:i,cellChanged:i}),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()}onSuppressRowDrag(){this.workOutVisibility()}workOutVisibility(){let{rowDragSvc:i,dragAndDrop:o,gos:v}=this.beans,I=i.rowDragFeature,N=I&&I.shouldPreventRowMove(),W=v.get("suppressRowDrag"),Z=o.hasExternalDropZones(),ee=N&&!Z||W;this.setDisplayedOrVisible(ee)}},jP=class extends jt{constructor(){super(...arguments),this.beanName="rowDragSvc"}setupRowDrag(i,o){let v=o.createManagedBean(new Mm(i)),I=this.beans.dragAndDrop;I.addDropTarget(v),o.addDestroyFunc(()=>I.removeDropTarget(v)),this.rowDragFeature=v}createRowDragComp(i,o,v,I,N,W){return new fD(i,o,v,I,N,W)}createRowDragCompForRow(i,o){if(Jo(this.gos))return;let v=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${v("rowDragRow","row")}`,i,void 0,o,void 0,!0)}createRowDragCompForCell(i,o,v,I,N,W){let Z=this.gos;return Z.get("rowDragManaged")&&(!so(Z)||Z.get("pagination"))?void 0:this.createRowDragComp(v,i,o,I,N,W)}},vD={moduleName:"Drag",version:ri,beans:[YA]},cb={moduleName:"DragAndDrop",version:ri,dynamicBeans:{dndSourceComp:oc},icons:{rowDrag:"grip"}},db={moduleName:"SharedDragAndDrop",version:ri,beans:[lh],dependsOn:[vD],userComponents:{agDragAndDropImage:NP},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},D0={moduleName:"RowDrag",version:ri,beans:[jP],apiFunctions:{addRowDropZone:mD,removeRowDropZone:Lm,getRowDropZoneParams:jI},dependsOn:[db]},fv={moduleName:"HorizontalResize",version:ri,beans:[HI],dependsOn:[vD]},E0=":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}",Ux=class extends jt{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>this.gridBodyCtrl=i.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(i){this.suppressAnimation=i}start(){if(this.active)return;let{gos:i}=this;i.get("suppressColumnMoveAnimation")||i.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(i){this.activeNext?this.executeNextFuncs.push(i):i()}executeLaterVMTurn(i){this.active?this.executeLaterFuncs.push(i):i()}ensureAnimationCssClassPresent(){this.animationThreadCount++;let i=this.animationThreadCount,{gridBodyCtrl:o}=this;o.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===i&&o.setColumnMovingCss(!1)})}flush(i,o){let{executeNextFuncs:v,executeLaterFuncs:I}=this;if(v.length===0&&I.length===0){i(),o();return}let N=W=>{for(;W.length;){let Z=W.pop();Z&&Z()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{i(),N(v)},0),window.setTimeout(()=>{o(),N(I)},200)})}};function vv(i,o,v){var I;(I=i.colMoves)==null||I.moveColumnByIndex(o,v,"api")}function Kx(i,o,v){var I;(I=i.colMoves)==null||I.moveColumns(o,v,"api")}var yD=class extends jt{constructor(i){super(),this.pinned=i,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(i){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;let o=i.dragItem.columns;o&&o.forEach(v=>{v.isPrimary()&&(v.isAnyFunctionActive()||(v.isAllowValue()?this.columnsToAggregate.push(v):v.isAllowRowGroup()?this.columnsToGroup.push(v):v.isAllowPivot()&&this.columnsToPivot.push(v)))})}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(i){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(i){}onDragStop(i){let{valueColsSvc:o,rowGroupColsSvc:v,pivotColsSvc:I}=this.beans;this.columnsToAggregate.length>0&&(o==null||o.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop")),this.columnsToGroup.length>0&&(v==null||v.addColumns(this.columnsToGroup,"toolPanelDragAndDrop")),this.columnsToPivot.length>0&&(I==null||I.addColumns(this.columnsToPivot,"toolPanelDragAndDrop"))}onDragCancel(){this.clearColumnsList()}};function WI(i,o){!o||o.length<=1||o.filter(I=>i.indexOf(I)<0).length>0||o.sort((I,N)=>{let W=i.indexOf(I),Z=i.indexOf(N);return W-Z})}function qx(i){let{isFromHeader:o,fromLeft:v,xPosition:I,fromEnter:N,fakeEvent:W,pinned:Z,gos:ee,colModel:le,colMoves:we,visibleCols:Ae}=i,{allMovingColumns:Ee}=i;if(o){let di=[];Ee.forEach(Di=>{var va;let un=null,xn=Di.getParent();for(;xn!=null&&xn.getDisplayedLeafColumns().length===1;)un=xn,xn=xn.getParent();un!=null?(!!((va=un.getColGroupDef())!=null&&va.marryChildren)?un.getProvidedColumnGroup().getLeafColumns():un.getLeafColumns()).forEach(Ui=>{di.includes(Ui)||di.push(Ui)}):di.includes(Di)||di.push(Di)}),Ee=di}let Ve=Ee.slice();WI(le.getCols(),Ve);let Je=$x({movingCols:Ve,draggingRight:v,xPosition:I,pinned:Z,gos:ee,colModel:le,visibleCols:Ae}),gt=Yx(Ve,le);if(Je.length===0)return;let kt=Je[0],xt=gt!==null&&!N;if(o&&(xt=gt!==null),xt&&!W&&(!v&&kt>=gt||v&&kt<=gt))return;let Ft=Ae.allCols,Ht=[],Gt=null;for(let di=0;di<Je.length;di++){let Di=Je[di],un=we.getProposedColumnOrder(Ve,Di);if(!we.doesOrderPassRules(un))continue;let xn=un.filter(Un=>Ft.includes(Un));if(Gt===null)Gt=xn;else if(!Gh(xn,Gt))break;let va=Xx(un);Ht.push({move:Di,fragCount:va})}if(Ht.length===0)return;Ht.sort((di,Di)=>di.fragCount-Di.fragCount);let Wt=Ht[0].move;if(!(Wt>le.getCols().length-Ee.length))return{columns:Ee,toIndex:Wt}}function ub(i){let{columns:o,toIndex:v}=qx(i)||{},{finished:I,colMoves:N}=i;return!o||v==null?null:(N.moveColumns(o,v,"uiColumnMoved",I),I?null:{columns:o,toIndex:v})}function Yx(i,o){let v=o.getCols(),I=fI(i.map(le=>v.indexOf(le))),N=I[0];return Yn(I)-N!==I.length-1?null:N}function Xx(i){function o(I){let N=[],W=I.getOriginalParent();for(;W!=null;)N.push(W),W=W.getOriginalParent();return N}let v=0;for(let I=0;I<i.length-1;I++){let N=o(i[I]),W=o(i[I+1]);[N,W]=N.length>W.length?[N,W]:[W,N],N.forEach(Z=>{W.indexOf(Z)===-1&&v++})}return v}function Zx(i,o){switch(o){case"left":return i.leftCols;case"right":return i.rightCols;default:return i.centerCols}}function $x(i){let{movingCols:o,draggingRight:v,xPosition:I,pinned:N,gos:W,colModel:Z,visibleCols:ee}=i;if(W.get("suppressMovableColumns")||o.some(Gt=>Gt.getColDef().suppressMovable))return[];let we=Zx(ee,N),Ae=Z.getCols(),Ee=we.filter(Gt=>o.includes(Gt)),Ve=we.filter(Gt=>!o.includes(Gt)),Je=Ae.filter(Gt=>!o.includes(Gt)),gt=0,kt=I;if(v){let Gt=0;Ee.forEach(Wt=>Gt+=Wt.getActualWidth()),kt-=Gt}if(kt>0){for(let Gt=0;Gt<Ve.length;Gt++){let Wt=Ve[Gt];if(kt-=Wt.getActualWidth(),kt<0)break;gt++}v&&gt++}let xt;if(gt>0){let Gt=Ve[gt-1];xt=Je.indexOf(Gt)+1}else xt=Je.indexOf(Ve[0]),xt===-1&&(xt=0);let Ft=[xt],Ht=(Gt,Wt)=>Gt-Wt;if(v){let Gt=xt+1,Wt=Ae.length-1;for(;Gt<=Wt;)Ft.push(Gt),Gt++;Ft.sort(Ht)}else{let Gt=xt,Wt=Ae.length-1,di=Ae[Gt];for(;Gt<=Wt&&we.indexOf(di)<0;)Gt++,Ft.push(Gt),di=Ae[Gt];Gt=xt-1;let Di=0;for(;Gt>=Di;)Ft.push(Gt),Gt--;Ft.sort(Ht).reverse()}return Ft}function I0(i){var we;let{pinned:o,fromKeyboard:v,gos:I,ctrlsSvc:N,useHeaderRow:W,skipScrollPadding:Z}=i,ee=(we=N.getHeaderRowContainerCtrl(o))==null?void 0:we.eViewport,{x:le}=i;return ee?(v&&(le-=ee.getBoundingClientRect().left),I.get("enableRtl")&&(W&&(ee=ee.querySelector(".ag-header-row")),le=ee.clientWidth-le),o==null&&!Z&&(le+=N.get("center").getCenterViewportScrollLeft()),le):0}function T0(i,o){for(let v of i)v.moving=o,v.dispatchColEvent("movingChanged","uiColumnMoved")}var R0=7,P0=100,hb=P0/2,bD=5,Qx=100,kl=class extends jt{constructor(i){super(),this.pinned=i,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!mi(i)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.gridBodyCon=i.gridBodyCtrl})}getIconName(){var I;let{pinned:i,lastDraggingEvent:o}=this,v=(I=o==null?void 0:o.dragItem.columns)!=null?I:[];for(let N of v){let W=N.getPinned();if(N.getColDef().lockPinned){if(W==i)return"move";continue}if(W===i||!i)return"move";if(!W&&i)return"pinned"}return"notAllowed"}onDragEnter(i){let o=i.dragItem,v=o.columns;if(i.dragSource.type===0)this.setColumnsVisible(v,!0,"uiColumnDragged");else{let N=o.visibleState,W=(v||[]).filter(Z=>N[Z.getId()]);this.setColumnsVisible(W,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(v,this.pinned),this.onDragging(i,!0,!0)}onDragging(i=this.lastDraggingEvent,o=!1,v=!1,I=!1){let{gos:N,ctrlsSvc:W}=this.beans,Z=N.get("suppressMoveWhenColumnDragging");if(I&&!Z){this.finishColumnMoving();return}if(this.lastDraggingEvent=i,!i||!I&&Oa(i.hDirection))return;let ee=I0({x:i.x,pinned:this.pinned,gos:N,ctrlsSvc:W});o||this.checkCenterForScrolling(ee),Z?this.handleColumnDragWhileSuppressingMovement(i,o,v,ee,I):this.handleColumnDragWhileAllowingMovement(i,o,v,ee,I)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(i,o,v){if(!i)return;let I=i.filter(N=>!N.getColDef().lockVisible);this.beans.colModel.setColsVisible(I,o,v)}finishColumnMoving(){this.clearHighlighted();let i=this.lastMovedInfo;if(!i)return;let{columns:o,toIndex:v}=i;this.beans.colMoves.moveColumns(o,v,"uiColumnMoved",!0)}handleColumnDragWhileSuppressingMovement(i,o,v,I,N){let W=this.getAllMovingColumns(i,!0);if(N){let Z=this.isAttemptingToPin(W);Z&&this.attemptToPinColumns(W,void 0,!0);let{fromLeft:ee,xPosition:le}=this.getNormalisedXPositionInfo(W,Z)||{};if(ee==null||le==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:W,xPosition:le,fromEnter:o,fakeEvent:v,fromLeft:ee})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(i))return;this.highlightHoveredColumn(W,I)}}handleColumnDragWhileAllowingMovement(i,o,v,I,N){let W=this.getAllMovingColumns(i),Z=this.normaliseDirection(i.hDirection)==="right",ee=i.dragSource.type===1,le=this.getMoveColumnParams({allMovingColumns:W,isFromHeader:ee,xPosition:I,fromLeft:Z,fromEnter:o,fakeEvent:v}),we=ub(He(ge({},le),{finished:N}));we&&(this.lastMovedInfo=we)}getAllMovingColumns(i,o=!1){let v=i.dragSource.getDragItem(),I=null;o?(I=v.columnsInSplit,I||(I=v.columns)):I=v.columns;let N=W=>W.getColDef().lockPinned?W.getPinned()==this.pinned:!0;return I?I.filter(N):[]}getMoveColumnParams(i){let{allMovingColumns:o,isFromHeader:v,xPosition:I,fromLeft:N,fromEnter:W,fakeEvent:Z}=i,{gos:ee,colModel:le,colMoves:we,visibleCols:Ae}=this.beans;return{allMovingColumns:o,isFromHeader:v,fromLeft:N,xPosition:I,pinned:this.pinned,fromEnter:W,fakeEvent:Z,gos:ee,colModel:le,colMoves:we,visibleCols:Ae}}highlightHoveredColumn(i,o){var Ae;let{gos:v,colModel:I}=this.beans,N=v.get("enableRtl"),W=I.getCols().filter(Ee=>Ee.isVisible()&&Ee.getPinned()===this.pinned),Z=null,ee=null,le=null;for(let Ee of W){if(ee=Ee.getActualWidth(),Z=this.getNormalisedColumnLeft(Ee,0,N),Z!=null){let Ve=Z+ee;if(Z<=o&&Ve>=o){le=Ee;break}}Z=null,ee=null}if(le)i.indexOf(le)!==-1&&(le=null);else{for(let Ee=W.length-1;Ee>=0;Ee--){let Ve=W[Ee],Je=W[Ee].getParent();if(!Je){le=Ve;break}let gt=Je==null?void 0:Je.getDisplayedLeafColumns();if(gt.length){le=Yn(gt);break}}if(!le)return;Z=this.getNormalisedColumnLeft(le,0,N),ee=le.getActualWidth()}if(((Ae=this.lastHighlightedColumn)==null?void 0:Ae.column)!==le&&this.clearHighlighted(),le==null||Z==null||ee==null)return;let we;o-Z<ee/2!==N?we=0:we=1,ys(le,we),this.lastHighlightedColumn={column:le,position:we}}getNormalisedXPositionInfo(i,o){let{gos:v,visibleCols:I}=this.beans,N=v.get("enableRtl"),{firstMovingCol:W,column:Z,position:ee}=this.getColumnMoveAndTargetInfo(i,o,N);if(!W||!Z||ee==null)return;let le=I.allCols,we=le.indexOf(W),Ae=le.indexOf(Z),Ee=ee===0!==N,Ve=we<Ae||we===Ae&&!Ee,Je=0;if(Ee?Ve&&(Je-=1):Ve||(Je+=1),Ae+Je===we)return;let gt=le[Ae+Je];if(!gt)return;let kt=this.getNormalisedColumnLeft(gt,20,N);return{fromLeft:Ve,xPosition:kt}}getColumnMoveAndTargetInfo(i,o,v){let I=this.lastHighlightedColumn||{},{firstMovingCol:N,lastMovingCol:W}=HP(i);if(!N||!W||I.column||!o)return ge({firstMovingCol:N},I);let ee=this.getPinDirection()==="left";return{firstMovingCol:N,position:ee?1:0,column:ee!==v?N:W}}normaliseDirection(i){if(this.gos.get("enableRtl"))switch(i){case"left":return"right";case"right":return"left"}return i}getNormalisedColumnLeft(i,o,v){let{gos:I,ctrlsSvc:N}=this.beans,W=i.getLeft();if(W==null)return null;let Z=i.getActualWidth();return I0({x:v?W+Z-o:W+o,pinned:i.getPinned(),useHeaderRow:v,skipScrollPadding:!0,gos:I,ctrlsSvc:N})}isAttemptingToPin(i){let o=this.needToMoveLeft||this.needToMoveRight,v=this.failedMoveAttempts>R0;return o&&v||i.some(I=>I.getPinned()!==this.pinned)}moveColumnsAfterHighlight(i){let{allMovingColumns:o,xPosition:v,fromEnter:I,fakeEvent:N,fromLeft:W}=i,Z=this.getMoveColumnParams({allMovingColumns:o,isFromHeader:!0,xPosition:v,fromLeft:W,fromEnter:I,fakeEvent:N}),{columns:ee,toIndex:le}=qx(Z)||{};ee&&le!=null&&(this.lastMovedInfo={columns:ee,toIndex:le}),this.finishColumnMoving()}clearHighlighted(){let{lastHighlightedColumn:i}=this;i&&(ys(i.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(i){if(!this.isCenterContainer)return;let o=this.beans.ctrlsSvc.get("center"),v=o.getCenterViewportScrollLeft(),I=v+o.getCenterWidth(),N,W;this.gos.get("enableRtl")?(N=i<v+hb,W=i>I-hb):(W=i<v+hb,N=i>I-hb),this.needToMoveRight=N,this.needToMoveLeft=W,W||N?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){var i;this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),Qx),(i=this.beans.dragAndDrop.getDragAndDropImageComponent())==null||i.setIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){var i;this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,(i=this.beans.dragAndDrop.getDragAndDropImageComponent())==null||i.setIcon(this.getIconName(),!1))}moveInterval(){var I,N;let i;this.intervalCount++,i=10+this.intervalCount*bD,i>P0&&(i=P0);let o=null,v=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?o=v.scrollHorizontally(-i):this.needToMoveRight&&(o=v.scrollHorizontally(i)),o!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;let{pinnedCols:W,dragAndDrop:Z,gos:ee}=this.beans;if(this.failedMoveAttempts<=R0+1||!W)return;if((I=Z.getDragAndDropImageComponent())==null||I.setIcon("pinned",!1),!ee.get("suppressMoveWhenColumnDragging")){let le=(N=this.lastDraggingEvent)==null?void 0:N.dragItem.columns;this.attemptToPinColumns(le,void 0,!0)}}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(i,o,v=!1){let I=(i||[]).filter(Z=>!Z.getColDef().lockPinned);if(!I.length)return 0;v&&(o=this.getPinDirection());let{pinnedCols:N,dragAndDrop:W}=this.beans;return N==null||N.setColsPinned(I,o,"uiColumnDragged"),v&&W.nudge(),I.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function ys(i,o){i.highlighted!==o&&(i.highlighted=o,i.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function HP(i){let o=i.length,v,I;for(let N=0;N<=o;N++){if(!v){let W=i[N];W.getLeft()!=null&&(v=W)}if(!I){let W=i[o-1-N];W.getLeft()!=null&&(I=W)}if(v&&I)break}return{firstMovingCol:v,lastMovingCol:I}}var CD=class extends jt{constructor(i,o){super(),this.pinned=i,this.eContainer=o}postConstruct(){let{ctrlsSvc:i,dragAndDrop:o}=this.beans,v=this.pinned;i.whenReady(this,I=>{let N,W=I.gridBodyCtrl.eBodyViewport;switch(v){case"left":N=[[W,I.left.eContainer],[I.bottomLeft.eContainer],[I.topLeft.eContainer]];break;case"right":N=[[W,I.right.eContainer],[I.bottomRight.eContainer],[I.topRight.eContainer]];break;default:N=[[W,I.center.eViewport],[I.bottomCenter.eViewport],[I.topCenter.eViewport]];break}this.eSecondaryContainers=N}),this.moveColumnFeature=this.createManagedBean(new kl(v)),this.bodyDropPivotTarget=this.createManagedBean(new yD(v)),o.addDropTarget(this),this.addDestroyFunc(()=>o.removeDropTarget(this))}isInterestedIn(i){return i===1||i===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(i){return this.beans.colModel.isPivotMode()&&i.dragSource.type===0}onDragEnter(i){this.currentDropListener=this.isDropColumnInPivotMode(i)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(i)}onDragLeave(i){this.currentDropListener.onDragLeave(i)}onDragging(i){this.currentDropListener.onDragging(i)}onDragStop(i){this.currentDropListener.onDragStop(i)}onDragCancel(){this.currentDropListener.onDragCancel()}},Om=class extends jt{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(i,o,v){let I=this.beans.colModel.getCols();if(!I)return;let N=I[i];this.moveColumns([N],o,v)}moveColumns(i,o,v,I=!0){let{colModel:N,colAnimation:W,visibleCols:Z,eventSvc:ee}=this.beans,le=N.getCols();if(!le)return;if(o>le.length-i.length){ii(30,{toIndex:o});return}W==null||W.start();let we=N.getColsForKeys(i);this.doesMovePassRules(we,o)&&($C(N.getCols(),we,o),Z.refresh(v),ee.dispatchEvent({type:"columnMoved",columns:we,column:we.length===1?we[0]:null,toIndex:o,finished:I,source:v})),W==null||W.finish()}doesMovePassRules(i,o){let v=this.getProposedColumnOrder(i,o);return this.doesOrderPassRules(v)}doesOrderPassRules(i){let{colModel:o,gos:v}=this.beans;return!(!Qu(i,o.getColTree())||!(N=>{let W=we=>we?we==="left"||we===!0?-1:1:0,Z=v.get("enableRtl"),ee=Z?1:-1,le=!0;return N.forEach(we=>{let Ae=W(we.getColDef().lockPosition);Z?Ae>ee&&(le=!1):Ae<ee&&(le=!1),ee=Ae}),le})(i))}getProposedColumnOrder(i,o){let I=this.beans.colModel.getCols().slice();return $C(I,i,o),I}createBodyDropTarget(i,o){return new CD(i,o)}moveHeader(i,o,v,I,N){let{ctrlsSvc:W,gos:Z,colModel:ee,visibleCols:le,focusSvc:we}=this.beans,Ae=o.getBoundingClientRect(),Ee=Ae.left,Ve=no(v),Je=Ve?Ae.width:v.getActualWidth(),gt=i==="left"!==Z.get("enableRtl"),kt=I0({x:gt?Ee-20:Ee+Je+20,pinned:I,fromKeyboard:!0,gos:Z,ctrlsSvc:W}),xt=we.focusedHeader;ub({allMovingColumns:Ve?v.getLeafColumns():[v],isFromHeader:!0,fromLeft:i==="right",xPosition:kt,pinned:I,fromEnter:!1,fakeEvent:!1,gos:Z,colModel:ee,colMoves:this,visibleCols:le,finished:!0});let Ft;if(Ve){let Ht=v.getDisplayedLeafColumns();Ft=gt?Ht[0]:Yn(Ht)}else Ft=v;if(W.getScrollFeature().ensureColumnVisible(Ft,"auto"),(!N.isAlive()||Z.get("ensureDomOrder"))&&xt){let Ht;if(Ve){let Gt=v.getGroupId(),Wt=v.getLeafColumns();if(!Wt.length)return;let di=Wt[0].getParent();if(!di)return;Ht=UI(di,Gt)}else Ht=v;Ht&&we.focusHeaderPosition({headerPosition:He(ge({},xt),{column:Ht})})}}setDragSourceForHeader(i,o,v){let{gos:I,colModel:N,dragAndDrop:W,visibleCols:Z}=this.beans,ee=!I.get("suppressDragLeaveHidesColumns"),le=no(o),we=le?o.getProvidedColumnGroup().getLeafColumns():[o],Ee={type:1,eElement:i,getDefaultIconName:()=>ee?"hide":"notAllowed",getDragItem:le?()=>L0(o,Z.allCols):()=>KI(o),dragItemName:v,onDragStarted:()=>{ee=!I.get("suppressDragLeaveHidesColumns"),T0(we,!0)},onDragStopped:()=>T0(we,!1),onDragCancelled:()=>T0(we,!1),onGridEnter:Ve=>{if(ee){let{columns:Je=[],visibleState:gt}=Ve!=null?Ve:{},kt=le?Ft=>!gt||gt[Ft.getColId()]:()=>!0,xt=Je.filter(Ft=>!Ft.getColDef().lockVisible&&kt(Ft));N.setColsVisible(xt,!0,"uiColumnMoved")}},onGridExit:Ve=>{var Je;if(ee){let gt=((Je=Ve==null?void 0:Ve.columns)==null?void 0:Je.filter(kt=>!kt.getColDef().lockVisible))||[];N.setColsVisible(gt,!1,"uiColumnMoved")}}};return W.addDragSource(Ee,!0),Ee}};function UI(i,o){for(;i;){if(i.getGroupId()===o)return i;i=i.getParent()}}function KI(i){let o={};return o[i.getId()]=i.isVisible(),{columns:[i],visibleState:o}}function L0(i,o){let v=i.getProvidedColumnGroup().getLeafColumns(),I={};v.forEach(ee=>I[ee.getId()]=ee.isVisible());let N=[];o.forEach(ee=>{v.indexOf(ee)>=0&&(N.push(ee),bo(v,ee))}),v.forEach(ee=>N.push(ee));let W=[],Z=i.getLeafColumns();for(let ee of N)Z.indexOf(ee)!==-1&&W.push(ee);return{columns:N,columnsInSplit:W,visibleState:I}}var qI={moduleName:"ColumnMove",version:ri,beans:[Om,Ux],apiFunctions:{moveColumnByIndex:vv,moveColumns:Kx},dependsOn:[db],css:[E0]},Fm=class extends jt{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.centerRowContainerCtrl=i.center})}getPreferredWidthForColumn(i,o){let v=this.getHeaderCellForColumn(i);if(!v)return-1;let I=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(i);return o||I.push(v),this.addElementsToContainerAndGetWidth(I)}getPreferredWidthForColumnGroup(i){let o=this.getHeaderCellForColumn(i);return o?this.addElementsToContainerAndGetWidth([o]):-1}addElementsToContainerAndGetWidth(i){let o=document.createElement("form");o.style.position="fixed";let v=this.centerRowContainerCtrl.eContainer;i.forEach(W=>this.cloneItemIntoDummy(W,o)),v.appendChild(o);let I=o.offsetWidth;v.removeChild(o);let N=this.gos.get("autoSizePadding");return I+N}getHeaderCellForColumn(i){let o=null;return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().forEach(v=>{let I=v.getHtmlElementForColumnHeader(i);I!=null&&(o=I)}),o}cloneItemIntoDummy(i,o){let v=i.cloneNode(!0);v.style.width="",v.style.position="static",v.style.left="";let I=document.createElement("div"),N=I.classList;["ag-header-cell","ag-header-group-cell"].some(ee=>v.classList.contains(ee))?(N.add("ag-header","ag-header-row"),I.style.position="static"):N.add("ag-row");let Z=i.parentElement;for(;Z;){if(["ag-header-row","ag-row"].some(le=>Z.classList.contains(le))){for(let le=0;le<Z.classList.length;le++){let we=Z.classList[le];we!="ag-row-position-absolute"&&N.add(we)}break}Z=Z.parentElement}I.appendChild(v),o.appendChild(I)}},gb={moduleName:"AutoWidth",version:ri,beans:[Fm]};function WP(i,o,v=!0,I="api"){var N;(N=i.colResize)==null||N.setColumnWidths(o,!1,v,I)}var UP=class extends jt{constructor(i,o,v,I){super(),this.comp=i,this.eResize=o,this.pinned=v,this.columnGroup=I}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}let{horizontalResizeSvc:i,gos:o,colAutosize:v}=this.beans,I=i.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(I),!o.get("suppressAutoSize")&&v&&this.addDestroyFunc(v.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(i){let{columnsToResize:o,resizeStartWidth:v,resizeRatios:I,groupAfterColumns:N,groupAfterStartWidth:W,groupAfterRatios:Z}=this.getInitialValues(i);this.resizeCols=o,this.resizeStartWidth=v,this.resizeRatios=I,this.resizeTakeFromCols=N,this.resizeTakeFromStartWidth=W,this.resizeTakeFromRatios=Z,this.toggleColumnResizing(!0)}onResizing(i,o,v="uiColumnResized"){let I=this.normaliseDragChange(o),N=this.resizeStartWidth+I;this.resizeColumnsFromLocalValues(N,v,i)}getInitialValues(i){var le,we;let o=Ae=>Ae.reduce((Ee,Ve)=>Ee+Ve.getActualWidth(),0),v=(Ae,Ee)=>Ae.map(Ve=>Ve.getActualWidth()/Ee),I=this.getColumnsToResize(),N=o(I),W=v(I,N),Z={columnsToResize:I,resizeStartWidth:N,resizeRatios:W},ee=null;if(i&&(ee=(we=(le=this.beans.colGroupSvc)==null?void 0:le.getGroupAtDirection(this.columnGroup,"After"))!=null?we:null),ee){let Ae=ee.getDisplayedLeafColumns(),Ee=Z.groupAfterColumns=Ae.filter(Je=>Je.isResizable()),Ve=Z.groupAfterStartWidth=o(Ee);Z.groupAfterRatios=v(Ee,Ve)}else Z.groupAfterColumns=void 0,Z.groupAfterStartWidth=void 0,Z.groupAfterRatios=void 0;return Z}resizeLeafColumnsToFit(i){let o=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),v=this.getInitialValues();o>v.resizeStartWidth&&this.resizeColumns(v,o,i,!0)}resizeColumnsFromLocalValues(i,o,v=!0){if(!this.resizeCols||!this.resizeRatios)return;let I={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios};this.resizeColumns(I,i,o,v)}resizeColumns(i,o,v,I=!0){var Ee;let{columnsToResize:N,resizeStartWidth:W,resizeRatios:Z,groupAfterColumns:ee,groupAfterStartWidth:le,groupAfterRatios:we}=i,Ae=[];if(Ae.push({columns:N,ratios:Z,width:o}),ee){let Ve=o-W;Ae.push({columns:ee,ratios:we,width:le-Ve})}(Ee=this.beans.colResize)==null||Ee.resizeColumnSets({resizeSets:Ae,finished:I,source:v}),I&&this.toggleColumnResizing(!1)}toggleColumnResizing(i){this.comp.addOrRemoveCssClass("ag-column-resizing",i)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(o=>o.isResizable())}normaliseDragChange(i){let o=i;return this.gos.get("enableRtl")?this.pinned!=="left"&&(o*=-1):this.pinned==="right"&&(o*=-1),o}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},O0=class extends jt{constructor(i,o,v,I,N){super(),this.pinned=i,this.column=o,this.eResize=v,this.comp=I,this.ctrl=N}postConstruct(){let i=[],o,v,I=()=>{if(Vn(this.eResize,o),!o)return;let{horizontalResizeSvc:Z,colAutosize:ee}=this.beans,le=Z.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});i.push(le),v&&ee&&i.push(ee.addColumnAutosize(this.eResize,this.column))},N=()=>{i.forEach(Z=>Z()),i.length=0},W=()=>{let Z=this.column.isResizable(),ee=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(Z!==o||ee!==v)&&(o=Z,v=ee,N(),I())};W(),this.addDestroyFunc(N),this.ctrl.setRefreshFunction("resize",W)}onResizing(i,o){var Ve,Je;let{column:v,lastResizeAmount:I,resizeStartWidth:N,beans:W}=this,Z=this.normaliseResizeAmount(o),ee=N+Z,le=[{key:v,newWidth:ee}],{pinnedCols:we,ctrlsSvc:Ae,colResize:Ee}=W;if(this.column.getPinned()){let gt=(Ve=we==null?void 0:we.leftWidth)!=null?Ve:0,kt=(Je=we==null?void 0:we.rightWidth)!=null?Je:0,xt=cr(Ae.getGridBodyCtrl().eBodyViewport)-50;if(gt+kt+(Z-I)>xt)return}this.lastResizeAmount=Z,Ee==null||Ee.setColumnWidths(le,this.resizeWithShiftKey,i,"uiColumnResized"),i&&this.toggleColumnResizing(!1)}onResizeStart(i){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=i,this.toggleColumnResizing(!0)}toggleColumnResizing(i){this.comp.addOrRemoveCssClass("ag-column-resizing",i)}normaliseResizeAmount(i){let o=i,v=this.pinned!=="left",I=this.pinned==="right";return this.gos.get("enableRtl")?v&&(o*=-1):I&&(o*=-1),o}},YI=class extends jt{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(i,o,v,I){let N=[],{colModel:W,gos:Z,visibleCols:ee}=this.beans;i.forEach(le=>{let we=W.getColDefCol(le.key)||W.getCol(le.key);if(!we)return;if(N.push({width:le.newWidth,ratios:[1],columns:[we]}),Z.get("colResizeDefault")==="shift"&&(o=!o),o){let Ee=ee.getColAfter(we);if(!Ee)return;let Ve=we.getActualWidth()-le.newWidth,Je=Ee.getActualWidth()+Ve;N.push({width:Je,ratios:[1],columns:[Ee]})}}),N.length!==0&&this.resizeColumnSets({resizeSets:N,finished:v,source:I})}resizeColumnSets(i){var Ae;let{resizeSets:o,finished:v,source:I}=i;if(!(!o||o.every(Ee=>XI(Ee)))){if(v){let Ee=o&&o.length>0?o[0].columns:null;Vh(this.eventSvc,Ee,v,I)}return}let W=[],Z=[];o.forEach(Ee=>{let{width:Ve,columns:Je,ratios:gt}=Ee,kt={},xt={};Je.forEach(Gt=>Z.push(Gt));let Ft=!0,Ht=0;for(;Ft;){if(Ht++,Ht>1e3){aa(31);break}Ft=!1;let Gt=[],Wt=0,di=Ve;Je.forEach((un,xn)=>{if(xt[un.getId()])di-=kt[un.getId()];else{Gt.push(un);let Un=gt[xn];Wt+=Un}});let Di=1/Wt;Gt.forEach((un,xn)=>{let va=xn===Gt.length-1,Un;va?Un=di:(Un=Math.round(gt[xn]*Ve*Di),di-=Un);let Ra=un.getMinWidth(),Ui=un.getMaxWidth();Un<Ra?(Un=Ra,xt[un.getId()]=!0,Ft=!0):Ui>0&&Un>Ui&&(Un=Ui,xt[un.getId()]=!0,Ft=!0),kt[un.getId()]=Un})}Je.forEach(Gt=>{let Wt=kt[Gt.getId()];Gt.getActualWidth()!==Wt&&(Gt.setActualWidth(Wt,I),W.push(Gt))})});let ee=W.length>0,le=[];if(ee){let{colFlex:Ee,visibleCols:Ve,colViewport:Je}=this.beans;le=(Ae=Ee==null?void 0:Ee.refreshFlexedColumns({resizingCols:Z,skipSetLeft:!0}))!=null?Ae:[],Ve.setLeftValues(I),Ve.updateBodyWidths(),Je.checkViewportColumns()}let we=Z.concat(le);(ee||v)&&Vh(this.eventSvc,we,v,I,le)}resizeHeader(i,o,v){if(!i.isResizable())return;let I=i.getActualWidth(),N=i.getMinWidth(),W=i.getMaxWidth(),Z=Math.min(Math.max(I+o,N),W);this.setColumnWidths([{key:i,newWidth:Z}],v,!0,"uiColumnResized")}createResizeFeature(i,o,v,I,N){return new O0(i,o,v,I,N)}createGroupResizeFeature(i,o,v,I){return new UP(i,o,v,I)}};function XI(i){let{columns:o,width:v}=i,I=0,N=0,W=!0;o.forEach(le=>{let we=le.getMinWidth();I+=we||0;let Ae=le.getMaxWidth();Ae>0?N+=Ae:W=!1});let Z=v>=I,ee=!W||v<=N;return Z&&ee}var KP={moduleName:"ColumnResize",version:ri,beans:[YI],apiFunctions:{setColumnWidths:WP},dependsOn:[fv,gb]},SD=class extends jt{constructor(i,o){super(),this.removeChildListenersFuncs=[],this.columnGroup=o,this.comp=i}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();let i=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(o=>{o.addEventListener("widthChanged",i),o.addEventListener("visibleChanged",i),this.removeChildListenersFuncs.push(()=>{o.removeEventListener("widthChanged",i),o.removeEventListener("visibleChanged",i)})})}removeListenersOnChildrenColumns(){this.removeChildListenersFuncs.forEach(i=>i()),this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){let i=this.columnGroup.getActualWidth();this.comp.setWidth(`${i}px`),this.comp.addOrRemoveCssClass("ag-hidden",i===0)}},qP=class extends Rn{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}setComp(i,o,v,I,N){let{column:W,beans:Z}=this,{context:ee,colNames:le,colHover:we,colResize:Ae}=Z;this.comp=i,N=nh(this,ee,N),this.setGui(o,N),this.displayName=le.getDisplayNameForColumnGroup(W,"header"),this.addClasses(),this.setupMovingCss(N),this.setupExpandable(N),this.setupTooltip(),this.setupAutoHeight({wrapperElement:I,compBean:N}),this.setupUserComp(),this.addHeaderMouseListeners(N),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();let Ee=this.rowCtrl.pinned,Ve=W.getProvidedColumnGroup().getLeafColumns();we==null||we.createHoverFeature(N,Ve,o),N.createManagedBean(new nb(W,o,Z)),N.createManagedBean(new SD(i,W)),Ae?this.resizeFeature=N.createManagedBean(Ae.createGroupResizeFeature(i,v,Ee,W)):i.setResizableDisplayed(!1),N.createManagedBean(new dh(o,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(N,Ve),N.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(N),N.addDestroyFunc(()=>this.clearComponent())}refreshMaxHeaderHeight(){let{gos:i,comp:o}=this,v=i.get("groupHeaderHeight");v!=null?v===0?o.setHeaderWrapperHidden(!0):o.setHeaderWrapperMaxHeight(v):(o.setHeaderWrapperHidden(!1),o.setHeaderWrapperMaxHeight(null))}addHighlightListeners(i,o){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(let v of o)i.addManagedListeners(v,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,v)})}onLeafColumnHighlightChanged(i){let o=this.column.getDisplayedLeafColumns(),v=o[0]===i,I=Yn(o)===i;if(!v&&!I)return;let N=i.getHighlighted(),W=!!this.rowCtrl.findHeaderCellCtrl(le=>le.column.isMoving()),Z=!1,ee=!1;if(W){let le=this.beans.gos.get("enableRtl"),we=N===1,Ae=N===0;v&&(le?ee=we:Z=Ae),I&&(le?Z=Ae:ee=we)}this.comp.addOrRemoveCssClass("ag-header-highlight-before",Z),this.comp.addOrRemoveCssClass("ag-header-highlight-after",ee)}resizeHeader(i,o){let{resizeFeature:v}=this;if(!v)return;let I=v.getInitialValues(o);v.resizeColumns(I,I.resizeStartWidth+i,"uiColumnResized",!0)}resizeLeafColumnsToFit(i){var o;(o=this.resizeFeature)==null||o.resizeLeafColumnsToFit(i)}setupUserComp(){let{colGroupSvc:i,userCompFactory:o,gos:v}=this.beans,I=v.addGridCommonParams({displayName:this.displayName,columnGroup:this.column,setExpanded:W=>{i.setColumnGroupOpened(this.column.getProvidedColumnGroup(),W,"gridInitializing")},setTooltip:(W,Z)=>{v.assertModuleRegistered("Tooltip",3),this.setupTooltip(W,Z)}}),N=Sm(o,I);N&&this.comp.setUserCompDetails(N)}addHeaderMouseListeners(i){let o=N=>this.handleMouseOverChange(N.type==="mouseenter"),v=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column.getProvidedColumnGroup()),I=N=>this.handleContextMenuMouseEvent(N,void 0,this.column.getProvidedColumnGroup());i.addManagedListeners(this.eGui,{mouseenter:o,mouseleave:o,click:v,contextmenu:I})}handleMouseOverChange(i){this.eventSvc.dispatchEvent({type:i?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(i,o){var v;this.tooltipFeature=(v=this.beans.tooltipSvc)==null?void 0:v.setupHeaderGroupTooltip(this.tooltipFeature,this,i,o)}setupExpandable(i){let o=this.column.getProvidedColumnGroup();this.refreshExpanded();let v=this.refreshExpanded.bind(this);i.addManagedListeners(o,{expandedChanged:v,expandableChanged:v})}refreshExpanded(){let{column:i}=this;this.expandable=i.isExpandable();let o=i.isExpanded();this.expandable?this.comp.setAriaExpanded(o?"true":"false"):this.comp.setAriaExpanded(void 0)}addClasses(){let{column:i}=this,o=i.getColGroupDef(),v=ka(o,this.gos,null,i);i.isPadding()?(v.push("ag-header-group-cell-no-group"),i.getLeafColumns().every(N=>N.isSpanHeaderHeight())&&v.push("ag-header-span-height")):(v.push("ag-header-group-cell-with-group"),o!=null&&o.wrapHeaderText&&v.push("ag-header-cell-wrap-text")),v.forEach(I=>this.comp.addOrRemoveCssClass(I,!0))}setupMovingCss(i){let{column:o}=this,I=o.getProvidedColumnGroup().getLeafColumns(),N=()=>this.comp.addOrRemoveCssClass("ag-header-cell-moving",o.isMoving());I.forEach(W=>{i.addManagedListeners(W,{movingChanged:N})}),N()}onFocusIn(i){this.eGui.contains(i.relatedTarget)||this.focusThis()}handleKeyDown(i){super.handleKeyDown(i);let o=this.getWrapperHasFocus();if(!(!this.expandable||!o)&&i.key===Bt.ENTER){let v=this.column,I=!v.isExpanded();this.beans.colGroupSvc.setColumnGroupOpened(v.getProvidedColumnGroup(),I,"uiColumnExpanded")}}setDragSource(i){var o,v;!this.isAlive()||this.isSuppressMoving()||(this.removeDragSource(),i&&(this.dragSource=(v=(o=this.beans.colMoves)==null?void 0:o.setDragSourceForHeader(i,this.column,this.displayName))!=null?v:null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(i=>i.getColDef().suppressMovable||i.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function YP(i,o,v){var I;(I=i.colGroupSvc)==null||I.setColumnGroupOpened(o,v,"api")}function XP(i,o,v){var I,N;return(N=(I=i.colGroupSvc)==null?void 0:I.getColumnGroup(o,v))!=null?N:null}function wD(i,o){var v,I;return(I=(v=i.colGroupSvc)==null?void 0:v.getProvidedColGroup(o))!=null?I:null}function ZP(i,o,v){return i.colNames.getDisplayNameForColumnGroup(o,v)||""}function $P(i){var o,v;return(v=(o=i.colGroupSvc)==null?void 0:o.getColumnGroupState())!=null?v:[]}function QP(i,o){var v;(v=i.colGroupSvc)==null||v.setColumnGroupState(o,"api")}function ZI(i){var o;(o=i.colGroupSvc)==null||o.resetColumnGroupState("api")}function F0(i){return i.visibleCols.treeLeft}function $I(i){return i.visibleCols.treeCenter}function JP(i){return i.visibleCols.treeRight}function xD(i){return i.visibleCols.getAllTrees()}function eL(i,o){for(let v=0;v<o.length;v++){let I=i.indexOf(o[v]);I>=0&&(i[I]=i[i.length-1],i.pop())}}var QI=class extends jt{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(i,o=!1){var ee;let{colModel:v,colGroupSvc:I,colViewport:N}=this.beans;o||this.buildTrees(v,I),I==null||I.updateOpenClosedVisibility();let W=_0(this.treeLeft);this.leftCols=W,this.centerCols=_0(this.treeCenter);let Z=_0(this.treeRight);this.rightCols=Z,this.joinColsAriaOrder(v),this.joinCols(),this.setLeftValues(i),this.autoHeightCols=this.allCols.filter(le=>le.isAutoHeight()),(ee=this.beans.colFlex)==null||ee.refreshFlexedColumns(),this.updateBodyWidths(),N.checkViewportColumns(!1),this.setFirstRightAndLastLeftPinned(v,W,Z,i),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:i})}updateBodyWidths(){let i=eh(this.centerCols),o=eh(this.leftCols),v=eh(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==i,(this.bodyWidth!==i||this.leftWidth!==o||this.rightWidth!==v)&&(this.bodyWidth=i,this.leftWidth=o,this.rightWidth=v,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(i){this.setLeftValuesOfCols(i),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(i,o,v,I){let N,W;this.gos.get("enableRtl")?(N=o?o[0]:null,W=v?Yn(v):null):(N=o?Yn(o):null,W=v?v[0]:null),i.getCols().forEach(Z=>{Z.setLastLeftPinned(Z===N,I),Z.setFirstRightPinned(Z===W,I)})}buildTrees(i,o){let v=i.getColsToShow(),I=v.filter(le=>le.getPinned()=="left"),N=v.filter(le=>le.getPinned()=="right"),W=v.filter(le=>le.getPinned()!="left"&&le.getPinned()!="right"),Z=new jr,ee=le=>o?o.createColumnGroups(le):le.columns;this.treeLeft=ee({columns:I,idCreator:Z,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=ee({columns:N,idCreator:Z,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=ee({columns:W,idCreator:Z,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(i){let o=i.getCols(),v=[],I=[],N=[];for(let W of o){let Z=W.getPinned();Z?Z===!0||Z==="left"?v.push(W):N.push(W):I.push(W)}this.ariaOrderColumns=v.concat(I).concat(N)}getAriaColIndex(i){let o;return no(i)?o=i.getLeafColumns()[0]:o=i,this.ariaOrderColumns.indexOf(o)+1}setLeftValuesOfGroups(){[this.treeLeft,this.treeRight,this.treeCenter].forEach(i=>{i.forEach(o=>{no(o)&&o.checkLeft()})})}setLeftValuesOfCols(i){let{colModel:o}=this.beans;if(!o.getColDefCols())return;let I=o.getCols().slice(0),N=this.gos.get("enableRtl");[this.leftCols,this.rightCols,this.centerCols].forEach(W=>{if(N){let Z=eh(W);W.forEach(ee=>{Z-=ee.getActualWidth(),ee.setLeft(Z,i)})}else{let Z=0;W.forEach(ee=>{ee.setLeft(Z,i),Z+=ee.getActualWidth()})}eL(I,W)}),I.forEach(W=>{W.setLeft(null,i)})}joinCols(){this.gos.get("enableRtl")?this.allCols=this.rightCols.concat(this.centerCols).concat(this.leftCols):this.allCols=this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(i){return this.allCols.indexOf(i)>=0}getLeftColsForRow(i){let{leftCols:o,beans:{colModel:v}}=this;return v.colSpanActive?this.getColsForRow(i,o):o}getRightColsForRow(i){let{rightCols:o,beans:{colModel:v}}=this;return v.colSpanActive?this.getColsForRow(i,o):o}getColsForRow(i,o,v,I){let N=[],W=null;for(let Z=0;Z<o.length;Z++){let ee=o[Z],le=o.length-Z,we=Math.min(ee.getColSpan(i),le),Ae=[ee];if(we>1){let Ve=we-1;for(let Je=1;Je<=Ve;Je++)Ae.push(o[Z+Je]);Z+=Ve}let Ee;v?(Ee=!1,Ae.forEach(Ve=>{v(Ve)&&(Ee=!0)})):Ee=!0,Ee&&(N.length===0&&W&&(I&&I(ee))&&N.push(W),N.push(ee)),W=ee}return N}getContainerWidth(i){switch(i){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(i){let o=this.allCols,v=o.indexOf(i);return v>0?o[v-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};let i=o=>{this.colsAndGroupsMap[o.getUniqueId()]=o};dp(this.treeCenter,!1,i),dp(this.treeLeft,!1,i),dp(this.treeRight,!1,i)}isVisible(i){return this.colsAndGroupsMap[i.getUniqueId()]===i}getFirstColumn(){let i=this.gos.get("enableRtl"),o=["leftCols","centerCols","rightCols"];i&&o.reverse();for(let v=0;v<o.length;v++){let I=this[o[v]];if(I.length)return i?Yn(I):I[0]}return null}getColAfter(i){let o=this.allCols,v=o.indexOf(i);return v<o.length-1?o[v+1]:null}getColsLeftWidth(){return eh(this.leftCols)}getDisplayedColumnsRightWidth(){return eh(this.rightCols)}isColAtEdge(i,o){let v=this.allCols;if(!v.length)return!1;let I=o==="first",N;if(no(i)){let W=i.getDisplayedLeafColumns();if(!W.length)return!1;N=I?W[0]:Yn(W)}else N=i;return(I?v[0]:Yn(v))===N}};function dp(i,o,v){if(i)for(let I=0;I<i.length;I++){let N=i[I];if(no(N)){let W=o?N.getDisplayedChildren():N.getChildren();dp(W,o,v)}v(N)}}function _0(i){let o=[];return dp(i,!0,v=>{In(v)&&o.push(v)}),o}var _m=class extends jt{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){let i=[],o=this.beans.colModel.getColTree();return Gs(null,o,v=>{ls(v)&&i.push({groupId:v.getGroupId(),open:v.isExpanded()})}),i}resetColumnGroupState(i){let o=this.beans.colModel.getColDefColTree();if(!o)return;let v=[];Gs(null,o,I=>{if(ls(I)){let N=I.getColGroupDef(),W={groupId:I.getGroupId(),open:N?N.openByDefault:void 0};v.push(W)}}),this.setColumnGroupState(v,i)}setColumnGroupState(i,o){let{colModel:v,colAnimation:I,visibleCols:N,eventSvc:W}=this.beans;if(!v.getColTree())return;I==null||I.start();let ee=[];i.forEach(le=>{let we=le.groupId,Ae=le.open,Ee=this.getProvidedColGroup(we);Ee&&Ee.isExpanded()!==Ae&&(Ee.setExpanded(Ae),ee.push(Ee))}),N.refresh(o,!0),ee.length&&W.dispatchEvent({type:"columnGroupOpened",columnGroup:ee.length===1?ee[0]:void 0,columnGroups:ee}),I==null||I.finish()}setColumnGroupOpened(i,o,v){let I;ls(i)?I=i.getId():I=i||"",this.setColumnGroupState([{groupId:I,open:o}],v)}getProvidedColGroup(i){let o=null;return Gs(null,this.beans.colModel.getColTree(),v=>{ls(v)&&v.getId()===i&&(o=v)}),o}getGroupAtDirection(i,o){let v=i.getProvidedColumnGroup().getLevel()+i.getPaddingLevel(),I=i.getDisplayedLeafColumns(),N=o==="After"?Yn(I):I[0],W=`getCol${o}`;for(;;){let Z=this.beans.visibleCols[W](N);if(!Z)return null;let ee=this.getColGroupAtLevel(Z,v);if(ee!==i)return ee}}getColGroupAtLevel(i,o){let v=i.getParent(),I,N;for(;I=v.getProvidedColumnGroup().getLevel(),N=v.getPaddingLevel(),!(I+N<=o);)v=v.getParent();return v}updateOpenClosedVisibility(){let i=this.beans.visibleCols.getAllTrees();dp(i,!1,o=>{no(o)&&o.calculateDisplayedColumns()})}getColumnGroup(i,o){if(!i)return null;if(no(i))return i;let v=this.beans.visibleCols.getAllTrees(),I=typeof o=="number",N=null;return dp(v,!1,W=>{if(no(W)){let Z=W,ee;I?ee=i===Z.getGroupId()&&o===Z.getPartId():ee=i===Z.getGroupId(),ee&&(N=Z)}}),N}createColumnGroups(i){let{columns:o,idCreator:v,pinned:I,oldDisplayedGroups:N,isStandaloneStructure:W}=i,Z=this.mapOldGroupsById(N),ee=[],le=o;for(;le.length;){let we=le;le=[];let Ae=0,Ee=Ve=>{let Je=Ae;Ae=Ve;let gt=we[Je],xt=(no(gt)?gt.getProvidedColumnGroup():gt).getOriginalParent();if(xt==null){for(let Ht=Je;Ht<Ve;Ht++)ee.push(we[Ht]);return}let Ft=this.createColumnGroup(xt,v,Z,I,W);for(let Ht=Je;Ht<Ve;Ht++)Ft.addChild(we[Ht]);le.push(Ft)};for(let Ve=1;Ve<we.length;Ve++){let Je=we[Ve],kt=(no(Je)?Je.getProvidedColumnGroup():Je).getOriginalParent(),xt=we[Ae],Ht=(no(xt)?xt.getProvidedColumnGroup():xt).getOriginalParent();kt!==Ht&&Ee(Ve)}Ae<we.length&&Ee(we.length)}return W||this.setupParentsIntoCols(ee,null),ee}createProvidedColumnGroup(i,o,v,I,N,W,Z){let ee=N.getUniqueKey(o.groupId||null,null),le=this.createMergedColGroupDef(o,ee),we=new Jl(le,ee,!1,v);this.createBean(we);let Ae=this.findExistingGroup(o,W);Ae&&W.splice(Ae.idx,1);let Ee=Ae==null?void 0:Ae.group;Ee&&we.setExpanded(Ee.isExpanded());let Ve=rx(this.beans,le.children,v+1,i,I,N,W,Z);return we.setChildren(Ve),we}balanceColumnTree(i,o,v,I){let N=[];for(let W=0;W<i.length;W++){let Z=i[W];if(ls(Z)){let ee=Z,le=this.balanceColumnTree(ee.getChildren(),o+1,v,I);ee.setChildren(le),N.push(ee)}else{let ee,le;for(let we=v-1;we>=o;we--){let Ae=I.getUniqueKey(null,null),Ee=this.createMergedColGroupDef(null,Ae),Ve=new Jl(Ee,Ae,!0,o);this.createBean(Ve),le&&le.setChildren([Ve]),le=Ve,ee||(ee=le)}if(ee&&le)if(N.push(ee),i.some(Ae=>ls(Ae))){le.setChildren([Z]);continue}else{le.setChildren(i);break}N.push(Z)}}return N}findDepth(i){let o=0,v=i;for(;v&&v[0]&&ls(v[0]);)o++,v=v[0].getChildren();return o}findMaxDepth(i,o){let v=o;for(let I=0;I<i.length;I++){let N=i[I];if(ls(N)){let W=N,Z=this.findMaxDepth(W.getChildren(),o+1);v<Z&&(v=Z)}}return v}balanceTreeForAutoCols(i,o){let v=[];return i.forEach(I=>{let N=I;for(let W=o-1;W>=0;W--){let Z=new Jl(null,`FAKE_PATH_${I.getId()}}_${W}`,!0,W);this.createBean(Z),Z.setChildren([N]),N.originalParent=Z,N=Z}o===0&&(I.originalParent=null),v.push(N)}),v}createMergedColGroupDef(i,o){let v={},{gos:I,validation:N}=this.beans;return Object.assign(v,I.get("defaultColGroupDef")),Object.assign(v,i),N==null||N.validateColDef(v,o),v}findExistingGroup(i,o){if(i.groupId!=null)for(let I=0;I<o.length;I++){let N=o[I];if(N.getColGroupDef()&&N.getId()===i.groupId)return{idx:I,group:N}}}createColumnGroup(i,o,v,I,N){let W=i.getGroupId(),Z=o.getInstanceIdForKey(W),ee=av(W,Z),le=v[ee];return le&&le.getProvidedColumnGroup()!==i&&(le=null),mi(le)?le.reset():(le=new XA(i,W,Z,I),N||this.createBean(le)),le}mapOldGroupsById(i){let o={},v=I=>{I.forEach(N=>{if(no(N)){let W=N;o[N.getUniqueId()]=W,v(W.getChildren())}})};return i&&v(i),o}setupParentsIntoCols(i,o){i.forEach(v=>{if(v.parent=o,no(v)){let I=v;this.setupParentsIntoCols(I.getChildren(),I)}})}},N0={moduleName:"ColumnGroup",version:ri,dynamicBeans:{headerGroupCellCtrl:qP},beans:[_m],apiFunctions:{getAllDisplayedColumnGroups:xD,getCenterDisplayedColumnGroups:$I,getColumnGroup:XP,getColumnGroupState:$P,getDisplayNameForColumnGroup:ZP,getLeftDisplayedColumnGroups:F0,getProvidedColumnGroup:wD,getRightDisplayedColumnGroups:JP,resetColumnGroupState:ZI,setColumnGroupOpened:YP,setColumnGroupState:QP}},go={moduleName:"CheckboxCellRenderer",version:ri,userComponents:{agCheckboxCellRenderer:Ka}};function up(i,o){let v=i.colModel.getColDefCol(o);return v?v.getColDef():null}function eg(i){return i.colModel.getColumnDefs()}function tg(i,o,v){return i.colNames.getDisplayNameForColumn(o,v)||""}function yv(i,o){return i.colModel.getColDefCol(o)}function MD(i){return i.colModel.getColDefCols()}function su(i,o){return Ic(i,o,"api")}function JI(i){return Xn(i)}function Al(i){Jg(i,"api")}function kD(i){return i.visibleCols.isPinningLeft()||i.visibleCols.isPinningRight()}function pb(i){return i.visibleCols.isPinningLeft()}function z0(i){return i.visibleCols.isPinningRight()}function mb(i,o){return i.visibleCols.getColAfter(o)}function AD(i,o){return i.visibleCols.getColBefore(o)}function eT(i,o,v){i.colModel.setColsVisible(o,v,"api")}function B0(i,o,v){var I;(I=i.pinnedCols)==null||I.setColsPinned(o,v,"api")}function tT(i){return i.colModel.getCols()}function DD(i){return i.visibleCols.leftCols}function ED(i){return i.visibleCols.centerCols}function Jx(i){return i.visibleCols.rightCols}function bs(i){return i.visibleCols.allCols}function hp(i){return i.colViewport.getViewportColumns()}function G0(i,o){if(!i)return;let v=i,I={};return Object.keys(v).forEach(N=>{if(o&&o.indexOf(N)>=0||Yf.has(N))return;let W=v[N];typeof W=="object"&&W!==null&&W.constructor===Object?I[N]=G0(W):I[N]=W}),I}var ig=class extends jt{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(i){this.rowGroupColsSvc=i.rowGroupColsSvc,this.pivotColsSvc=i.pivotColsSvc}getColumnDefs(i,o,v,I){var ee,le;let N=i.slice();o?N.sort((we,Ae)=>v.indexOf(we)-v.indexOf(Ae)):v&&N.sort((we,Ae)=>I.indexOf(we)-I.indexOf(Ae));let W=(ee=this.rowGroupColsSvc)==null?void 0:ee.columns,Z=(le=this.pivotColsSvc)==null?void 0:le.columns;return this.buildColumnDefs(N,W,Z)}buildColumnDefs(i,o=[],v=[]){let I=[],N={};return i.forEach(W=>{let Z=this.createDefFromColumn(W,o,v),ee=!0,le=Z,we=W.getOriginalParent(),Ae=null;for(;we;){let Ee=null;if(we.isPadding()){we=we.getOriginalParent();continue}let Ve=N[we.getGroupId()];if(Ve){Ve.children.push(le),ee=!1;break}if(Ee=this.createDefFromGroup(we),Ee&&(Ee.children=[le],N[Ee.groupId]=Ee,le=Ee,we=we.getOriginalParent()),we!=null&&Ae===we){ee=!1;break}Ae=we}ee&&I.push(le)}),I}createDefFromGroup(i){let o=G0(i.getColGroupDef(),["children"]);return o&&(o.groupId=i.getGroupId()),o}createDefFromColumn(i,o,v){let I=G0(i.getColDef());return I.colId=i.getColId(),I.width=i.getActualWidth(),I.rowGroup=i.isRowGroupActive(),I.rowGroupIndex=i.isRowGroupActive()?o.indexOf(i):null,I.pivot=i.isPivotActive(),I.pivotIndex=i.isPivotActive()?v.indexOf(i):null,I.aggFunc=i.isValueActive()?i.getAggFunc():null,I.hide=i.isVisible()?void 0:!0,I.pinned=i.isPinned()?i.getPinned():null,I.sort=i.getSort()?i.getSort():null,I.sortIndex=i.getSortIndex()!=null?i.getSortIndex():null,I}},tL=class extends jt{constructor(){super(...arguments),this.beanName="colFlex"}refreshFlexedColumns(i={}){let o=i.source?i.source:"flex";i.viewportWidth!=null&&(this.flexViewportWidth=i.viewportWidth);let v=this.flexViewportWidth;if(!v)return[];let{visibleCols:I}=this.beans,N=I.centerCols,W=-1;if(i.resizingCols){let gt=new Set(i.resizingCols);for(let kt=N.length-1;kt>=0;kt--)if(gt.has(N[kt])){W=kt;break}}let Z=!1,ee=N.map((gt,kt)=>{let xt=gt.getFlex(),Ft=xt!=null&&xt>0&&kt>W;return Z||(Z=Ft),{col:gt,isFlex:Ft,flex:Math.max(0,xt!=null?xt:0),initialSize:gt.getActualWidth(),min:gt.getMinWidth(),max:gt.getMaxWidth(),targetSize:0}});if(!Z)return[];let le=ee.length,we=ee.reduce((gt,kt)=>gt+kt.flex,0),Ae=v,Ee=(gt,kt)=>{gt.frozenSize=kt,gt.col.setActualWidth(kt,o),Ae-=kt,we-=gt.flex,le-=1},Ve=gt=>gt.frozenSize!=null;for(let gt of ee)gt.isFlex||Ee(gt,gt.initialSize);for(;le>0;){let gt=Math.round(we<1?Ae*we:Ae),kt,xt=0,Ft=0;for(let Wt of ee){if(Ve(Wt))continue;kt=Wt,Ft+=gt*(Wt.flex/we);let di=Ft-xt,Di=Math.round(di);Wt.targetSize=Di,xt+=Di}kt&&(kt.targetSize+=gt-xt);let Ht=0;for(let Wt of ee){if(Ve(Wt))continue;let di=Wt.targetSize,Di=Math.min(Math.max(di,Wt.min),Wt.max);Ht+=Di-di,Wt.violationType=Di===di?void 0:Di<di?"max":"min",Wt.targetSize=Di}let Gt=Ht===0?"all":Ht>0?"min":"max";for(let Wt of ee)Ve(Wt)||(Gt==="all"||Wt.violationType===Gt)&&Ee(Wt,Wt.targetSize)}i.skipSetLeft||I.setLeftValues(o),i.updateBodyWidths&&I.updateBodyWidths();let Je=ee.filter(gt=>gt.isFlex&&!gt.violationType).map(gt=>gt.col);if(i.fireResizedEvent){let gt=ee.filter(xt=>xt.initialSize!==xt.frozenSize).map(xt=>xt.col),kt=ee.filter(xt=>xt.flex).map(xt=>xt.col);Vh(this.eventSvc,gt,!0,o,kt)}return Je}initCol(i){let{flex:o,initialFlex:v}=i.colDef;o!==void 0?i.flex=o:v!==void 0&&(i.flex=v)}setColFlex(i,o){i.flex=o!=null?o:null,i.dispatchStateUpdatedEvent("flex")}},eM=class extends jt{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[]}wireBeans(i){this.colModel=i.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",i=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(Bs(i.source))})}processDataTypeDefinitions(){var Z;let i=this.getDefaultDataTypes(),o={};this.dataTypeDefinitions=o;let v={};this.formatValueFuncs=v;let I=ee=>le=>{let{column:we,node:Ae,value:Ee}=le,Ve=we.getColDef().valueFormatter;return Ve===ee.groupSafeValueFormatter&&(Ve=ee.valueFormatter),this.beans.valueSvc.formatValue(we,Ae,Ee,Ve)};Object.entries(i).forEach(([ee,le])=>{let we=He(ge({},le),{groupSafeValueFormatter:Nm(le,this.gos)});o[ee]=we,v[ee]=I(we)});let N=(Z=this.gos.get("dataTypeDefinitions"))!=null?Z:{},W={};this.dataTypeMatchers=W,Object.entries(N).forEach(([ee,le])=>{let we=this.processDataTypeDefinition(le,N,[ee],i);we&&(o[ee]=we,le.dataTypeMatcher&&(W[ee]=le.dataTypeMatcher),v[ee]=I(we))}),this.checkObjectValueHandlers(i),["dateString","text","number","boolean","date"].forEach(ee=>{let le=W[ee];le&&delete W[ee],W[ee]=le!=null?le:i[ee].dataTypeMatcher})}processDataTypeDefinition(i,o,v,I){let N,W=i.extendsDataType;if(i.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),i.extendsDataType===i.baseDataType){let Z=I[W],ee=o[W];if(Z&&ee&&(Z=ee),!bv(i,Z,W))return;N=gp(Z,i)}else{if(v.includes(W)){ii(44);return}let Z=o[W];if(!bv(i,Z,W))return;let ee=this.processDataTypeDefinition(Z,o,[...v,W],I);if(!ee)return;N=gp(ee,i)}return He(ge({},N),{groupSafeValueFormatter:Nm(N,this.gos)})}updateColDefAndGetColumnType(i,o,v){let{cellDataType:I}=o,{field:N}=o;if(I===void 0&&(I=i.cellDataType),(I==null||I===!0)&&(I=this.canInferCellDataType(i,o)?this.inferCellDataType(N,v):!1),!I){i.cellDataType=!1;return}let W=this.dataTypeDefinitions[I];if(!W){ii(47,{cellDataType:I});return}return i.cellDataType=I,W.groupSafeValueFormatter&&(i.valueFormatter=W.groupSafeValueFormatter),W.valueParser&&(i.valueParser=W.valueParser),W.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(i,I,W,v),W.columnTypes}addColumnListeners(i){if(!this.isPendingInference)return;let o=this.columnStateUpdatesPendingInference[i.getColId()];if(!o)return;let v=I=>{o.add(I.key)};i.addEventListener("columnStateUpdated",v),this.columnStateUpdateListenerDestroyFuncs.push(()=>i.removeEventListener("columnStateUpdated",v))}canInferCellDataType(i,o){var W;let{gos:v}=this;if(!so(v))return!1;let I={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(zm(o,I))return!1;let N=o.type===null?i.type:o.type;if(N){let Z=(W=v.get("columnTypes"))!=null?W:{};if(hi(N).some(le=>{let we=Z[le.trim()];return we&&zm(we,I)}))return!1}return!zm(i,I)}inferCellDataType(i,o){var W;if(!i)return;let v,I=this.getInitialData();if(I){let Z=i.indexOf(".")>=0&&!this.gos.get("suppressFieldDotNotation");v=Zu(I,i,Z)}else this.initWaitForRowData(o);if(v==null)return;let[N]=(W=Object.entries(this.dataTypeMatchers).find(([Z,ee])=>ee(v)))!=null?W:["object"];return N}getInitialData(){var o;let i=this.gos.get("rowData");if(i!=null&&i.length)return i[0];if(this.initialData)return this.initialData;{let v=(o=this.beans.rowModel.rootNode)==null?void 0:o.allLeafChildren;if(v!=null&&v.length)return v[0].data}return null}initWaitForRowData(i){if(this.columnStateUpdatesPendingInference[i]=new Set,this.isPendingInference)return;this.isPendingInference=!0;let o=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:v,eventSvc:I}=this.beans;o&&v&&(v.shouldQueueResizeOperations=!0);let[N]=this.addManagedEventListeners({rowDataUpdateStarted:W=>{let{firstRowData:Z}=W;Z&&(N==null||N(),this.isPendingInference=!1,this.processColumnsPendingInference(Z,o),this.columnStateUpdatesPendingInference={},o&&(v==null||v.processResizeOperations()),I.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(i,o){this.initialData=i;let v=[];this.destroyColumnStateUpdateListeners();let I={},N={};Object.entries(this.columnStateUpdatesPendingInference).forEach(([W,Z])=>{let ee=this.colModel.getCol(W);if(!ee)return;let le=ee.getColDef();if(!this.resetColDefIntoCol(ee,"cellDataTypeInferred"))return;let we=ee.getColDef();if(o&&we.type&&we.type!==le.type){let Ae=V0(ee,Z);Ae.rowGroup&&Ae.rowGroupIndex==null&&(I[W]=Ae),Ae.pivot&&Ae.pivotIndex==null&&(N[W]=Ae),v.push(Ae)}}),o&&v.push(...this.generateColumnStateForRowGroupAndPivotIndexes(I,N)),v.length&&Ic(this.beans,{state:v},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(i,o){let v={},{rowGroupColsSvc:I,pivotColsSvc:N}=this.beans;return I==null||I.restoreColumnOrder(v,i),N==null||N.restoreColumnOrder(v,o),Object.values(v)}resetColDefIntoCol(i,o){let v=i.getUserProvidedColDef();if(!v)return!1;let I=Zf(this.beans,v,i.getColId());return i.setColDef(I,v,o),!0}checkObjectValueHandlers(i){let o=this.dataTypeDefinitions.object,v=i.object;this.hasObjectValueParser=o.valueParser!==v.valueParser,this.hasObjectValueFormatter=o.valueFormatter!==v.valueFormatter}getDateStringTypeDefinition(i){var v;let{dateString:o}=this.dataTypeDefinitions;return i&&(v=this.getDataTypeDefinition(i))!=null?v:o}getDateParserFunction(i){return this.getDateStringTypeDefinition(i).dateParser}getDateFormatterFunction(i){return this.getDateStringTypeDefinition(i).dateFormatter}getDataTypeDefinition(i){let o=i.getColDef();if(o.cellDataType)return this.dataTypeDefinitions[o.cellDataType]}getBaseDataType(i){var o;return(o=this.getDataTypeDefinition(i))==null?void 0:o.baseDataType}checkType(i,o){var I;if(o==null)return!0;let v=(I=this.getDataTypeDefinition(i))==null?void 0:I.dataTypeMatcher;return v?v(o):!0}validateColDef(i){let o=v=>ii(48,{property:v});if(i.cellDataType==="object"){let{object:v}=this.dataTypeDefinitions;i.valueFormatter===v.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&o("Formatter"),i.editable&&i.valueParser===v.valueParser&&!this.hasObjectValueParser&&o("Parser")}}getFormatValue(i){return this.formatValueFuncs[i]}isColPendingInference(i){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[i]}setColDefPropertiesForBaseDataType(i,o,v,I){var W;let N=this.formatValueFuncs[o];switch(v.baseDataType){case"number":{i.cellEditor="agNumberCellEditor";break}case"boolean":{i.cellEditor="agCheckboxCellEditor",i.cellRenderer="agCheckboxCellRenderer",i.suppressKeyboardEvent=Z=>!!Z.colDef.editable&&Z.event.key===Bt.SPACE;break}case"date":{i.cellEditor="agDateCellEditor",i.keyCreator=N;break}case"dateString":{i.cellEditor="agDateStringCellEditor",i.keyCreator=N;break}case"object":{i.cellEditorParams={useFormatter:!0},i.comparator=(Z,ee)=>{let le=this.colModel.getColDefCol(I),we=le==null?void 0:le.getColDef();if(!le||!we)return 0;let Ae=Z==null?"":N({column:le,node:null,value:Z}),Ee=ee==null?"":N({column:le,node:null,value:ee});return Ae===Ee?0:Ae>Ee?1:-1},i.keyCreator=N;break}}(W=this.beans.filterManager)==null||W.setColDefPropertiesForDataType(i,v,N)}getDefaultDataTypes(){let i=v=>!!v.match("^\\d{4}-\\d{2}-\\d{2}$"),o=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:v=>{var I,N;return((N=(I=v.newValue)==null?void 0:I.trim)==null?void 0:N.call(I))===""?null:Number(v.newValue)},valueFormatter:v=>v.value==null?"":typeof v.value!="number"||isNaN(v.value)?o("invalidNumber","Invalid Number"):String(v.value),dataTypeMatcher:v=>typeof v=="number"},text:{baseDataType:"text",valueParser:v=>v.newValue===""?null:zh(v.newValue),dataTypeMatcher:v=>typeof v=="string"},boolean:{baseDataType:"boolean",valueParser:v=>{var I,N;return v.newValue==null?v.newValue:((N=(I=v.newValue)==null?void 0:I.trim)==null?void 0:N.call(I))===""?null:String(v.newValue).toLowerCase()==="true"},valueFormatter:v=>v.value==null?"":String(v.value),dataTypeMatcher:v=>typeof v=="boolean"},date:{baseDataType:"date",valueParser:v=>Ml(v.newValue==null?null:String(v.newValue)),valueFormatter:v=>{var I;return v.value==null?"":!(v.value instanceof Date)||isNaN(v.value.getTime())?o("invalidDate","Invalid Date"):(I=Er(v.value,!1))!=null?I:""},dataTypeMatcher:v=>v instanceof Date},dateString:{baseDataType:"dateString",dateParser:v=>{var I;return(I=Ml(v))!=null?I:void 0},dateFormatter:v=>{var I;return(I=Er(v!=null?v:null,!1))!=null?I:void 0},valueParser:v=>i(String(v.newValue))?v.newValue:null,valueFormatter:v=>i(String(v.value))?v.value:"",dataTypeMatcher:v=>typeof v=="string"&&i(v)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:v=>{var I;return(I=zh(v.value))!=null?I:""}}}}destroyColumnStateUpdateListeners(){this.columnStateUpdateListenerDestroyFuncs.forEach(i=>i()),this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}};function gp(i,o){let v=ge(ge({},i),o);return i.columnTypes&&o.columnTypes&&o.appendColumnTypes&&(v.columnTypes=[...hi(i.columnTypes),...hi(o.columnTypes)]),v}function bv(i,o,v){return o?o.baseDataType!==i.baseDataType?(ii(46),!1):!0:(ii(45,{parentCellDataType:v}),!1)}function Nm(i,o){if(i.valueFormatter)return v=>{var I,N,W;if((I=v.node)!=null&&I.group){let Z=((N=v.colDef.pivotValueColumn)!=null?N:v.column).getAggFunc();if(Z){if(Z==="first"||Z==="last")return i.valueFormatter(v);if(i.baseDataType==="number"&&Z!=="count"){if(typeof v.value=="number")return i.valueFormatter(v);if(typeof v.value=="object"){if(!v.value)return;if("toNumber"in v.value)return i.valueFormatter(He(ge({},v),{value:v.value.toNumber()}));if("value"in v.value)return i.valueFormatter(He(ge({},v),{value:v.value.value}))}}return}if(o.get("groupDisplayType")==="groupRows"&&!o.get("treeData"))return}else if(o.get("groupHideOpenParents")&&v.column.isRowGroupActive()&&typeof v.value=="string"&&!((W=i.dataTypeMatcher)!=null&&W.call(i,v.value)))return;return i.valueFormatter(v)}}function Cv(i,o,v,I){if(!o[v])return!1;let N=i[v];return N===null?(o[v]=!1,!1):I===void 0?!!N:N===I}function zm(i,o){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([v,I])=>Cv(i,o,v,I))}function V0(i,o){let v=JC(i);return o.forEach(I=>{delete v[I],I==="rowGroup"?delete v.rowGroupIndex:I==="pivot"&&delete v.pivotIndex}),v}var ID={moduleName:"DataType",version:ri,beans:[eM],dependsOn:[go]},ph={moduleName:"ColumnFlex",version:ri,beans:[tL]},mh={moduleName:"ColumnApi",version:ri,beans:[ig],apiFunctions:{getColumnDef:up,getDisplayNameForColumn:tg,getColumn:yv,getColumns:MD,applyColumnState:su,getColumnState:JI,resetColumnState:Al,isPinning:kD,isPinningLeft:pb,isPinningRight:z0,getDisplayedColAfter:mb,getDisplayedColBefore:AD,setColumnsVisible:eT,setColumnsPinned:B0,getAllGridColumns:tT,getDisplayedLeftColumns:DD,getDisplayedCenterColumns:ED,getDisplayedRightColumns:Jx,getAllDisplayedColumns:bs,getAllDisplayedVirtualColumns:hp,getColumnDefs:eg}};function TD(i){if(!i||i==null)return null;let o=/([a-z])([A-Z])/g,v=/([A-Z]+)([A-Z])([a-z])/g;return i.replace(o,"$1 $2").replace(v,"$1 $2$3").replace(/\./g," ").split(" ").map(N=>N.substring(0,1).toUpperCase()+(N.length>1?N.substring(1,N.length):"")).join(" ")}var tM=class extends jt{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(i,o,v=!1){if(!i)return null;let I=this.getHeaderName(i.getColDef(),i,null,null,o),{aggColNameSvc:N}=this.beans;return v&&N?N.getHeaderName(i,I):I}getDisplayNameForProvidedColumnGroup(i,o,v){let I=o==null?void 0:o.getColGroupDef();return I?this.getHeaderName(I,null,i,o,v):null}getDisplayNameForColumnGroup(i,o){return this.getDisplayNameForProvidedColumnGroup(i,i.getProvidedColumnGroup(),o)}getHeaderName(i,o,v,I,N){var Z,ee;let W=i.headerValueGetter;if(W){let le=this.gos.addGridCommonParams({colDef:i,column:o,columnGroup:v,providedColumnGroup:I,location:N});return typeof W=="function"?W(le):typeof W=="string"?(ee=(Z=this.beans.expressionSvc)==null?void 0:Z.evaluate(W,le))!=null?ee:null:""}else{if(i.headerName!=null)return i.headerName;if(i.field)return TD(i.field)}return""}},iL=class extends jt{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={}}wireBeans(i){this.visibleCols=i.visibleCols,this.colModel=i.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(i,o,v=!1){let{visibleCols:I}=this,N=I.isBodyWidthDirty;if(!(i===this.scrollWidth&&o===this.scrollPosition&&!N)){if(this.scrollWidth=i,this.scrollPosition=o,I.isBodyWidthDirty=!0,this.gos.get("enableRtl")){let Z=I.bodyWidth;this.viewportLeft=Z-o-i,this.viewportRight=Z-o}else this.viewportLeft=o,this.viewportRight=i+o;this.colModel.ready&&this.checkViewportColumns(v)}}getHeadersToRender(i,o){let v;switch(i){case"left":v=this.rowsOfHeadersToRenderLeft[o];break;case"right":v=this.rowsOfHeadersToRenderRight[o];break;default:v=this.rowsOfHeadersToRenderCenter[o];break}return v||[]}extractViewportColumns(){let i=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=i,this.headerColsWithinViewport=i):(this.colsWithinViewport=i.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=i.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0}clear(i){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},i||(this.colsWithinViewportHash="")}isColumnInHeaderViewport(i){return i.isAutoHeaderHeight()||Mo(i)?!0:this.isColumnInRowViewport(i)}isColumnInRowViewport(i){if(i.isAutoHeight())return!0;let o=i.getLeft()||0,v=o+i.getActualWidth(),I=this.viewportLeft-200,N=this.viewportRight+200,W=o<I&&v<I,Z=o>N&&v>N;return!W&&!Z}getViewportColumns(){let{leftCols:i,rightCols:o}=this.visibleCols;return this.colsWithinViewport.concat(i).concat(o)}getColsWithinViewport(i){if(!this.colModel.colSpanActive)return this.colsWithinViewport;let o=W=>{let Z=W.getLeft();return mi(Z)&&Z>this.viewportLeft},v=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:I}=this,N=I.centerCols;return I.getColsForRow(i,N,v,o)}checkViewportColumns(i=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:i})}calculateHeaderRows(){this.clear(!0);let i={},{leftCols:o,rightCols:v,treeLeft:I,treeRight:N,treeCenter:W}=this.visibleCols;this.headerColsWithinViewport.concat(o).concat(v).forEach(le=>i[le.getId()]=!0);let ee=(le,we,Ae)=>{let Ee=!1;for(let Ve=0;Ve<le.length;Ve++){let Je=le[Ve],gt=!1;if(In(Je))gt=i[Je.getId()]===!0;else{let xt=Je.getDisplayedChildren();xt&&(gt=ee(xt,we,Ae+1))}gt&&(Ee=!0,we[Ae]||(we[Ae]=[]),we[Ae].push(Je))}return Ee};ee(I,this.rowsOfHeadersToRenderLeft,0),ee(N,this.rowsOfHeadersToRenderRight,0),ee(W,this.rowsOfHeadersToRenderCenter,0)}extractViewport(){let i=I=>`${I.getId()}-${I.getPinned()||"normal"}`;this.extractViewportColumns();let o=this.getViewportColumns().map(i).join("#"),v=this.colsWithinViewportHash!==o;return v&&(this.colsWithinViewportHash=o,this.calculateHeaderRows()),v}};function Mo(i){for(;i;){if(i.isAutoHeaderHeight())return!0;i=i.getParent()}return!1}var iT=class extends jt{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(i,o){if(!i.cellRenderer)return null;class v{refresh(){return!1}getGui(){return this.eGui}init(N){let W=o(N),Z=typeof W;if(Z==="string"||Z==="number"||Z==="boolean"){this.eGui=as("<span>"+W+"</span>");return}if(W==null){this.eGui=as("<span></span>");return}this.eGui=W}}return v}},j0={moduleName:"CellRendererFunction",version:ri,beans:[iT]},nT=class extends jt{constructor(){super(...arguments),this.beanName="registry",this.agGridDefaults={},this.agGridDefaultParams={},this.jsComps={},this.dynamicBeans={},this.selectors={},this.icons={}}postConstruct(){let i=this.gos.get("components");i!=null&&Object.entries(i).forEach(([o,v])=>{this.jsComps[o]=v})}registerModule(i){let{icons:o,userComponents:v,dynamicBeans:I,selectors:N}=i;if(v){let W=(Z,ee,le)=>{this.agGridDefaults[Z]=ee,le&&(this.agGridDefaultParams[Z]=le)};for(let Z of Object.keys(v)){let ee=v[Z];typeof ee=="object"?W(Z,ee.classImp,ee.params):W(Z,ee)}}if(I)for(let W of Object.keys(I))this.dynamicBeans[W]=I[W];if(N==null||N.forEach(W=>{this.selectors[W.selector]=W}),o)for(let W of Object.keys(o))this.icons[W]=o[W]}getUserComponent(i,o){var ee;let v=(le,we,Ae)=>({componentFromFramework:we,component:le,params:Ae}),{frameworkOverrides:I}=this.beans,N=I.frameworkComponent(o,this.gos.get("components"));if(N!=null)return v(N,!0);let W=this.jsComps[o];if(W){let le=I.isFrameworkComponent(W);return v(W,le)}let Z=this.agGridDefaults[o];return Z?v(Z,!1,this.agGridDefaultParams[o]):((ee=this.beans.validation)==null||ee.missingUserComponent(i,o,this.agGridDefaults,this.jsComps),null)}createDynamicBean(i,o,...v){let I=this.dynamicBeans[i];if(I==null){if(o)throw new Error(Po(256));return}return new I(...v)}getSelector(i){return this.selectors[i]}getIcon(i){return this.icons[i]}},fr=23,H0=class extends jt{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){var i,o,v;this.addEventListener("ready",()=>{this.updateReady(),this.ready&&(this.readyCallbacks.forEach(I=>I(this.params)),this.readyCallbacks.length=0)},(v=(o=(i=this.beans.frameworkOverrides).runWhenReadyAsync)==null?void 0:o.call(i))!=null?v:!1)}updateReady(){let i=Object.values(this.params);this.ready=i.length===fr&&i.every(o=>{var v;return(v=o==null?void 0:o.isAlive())!=null?v:!1})}whenReady(i,o){this.ready?o(this.params):this.readyCallbacks.push(o),i.addDestroyFunc(()=>{let v=this.readyCallbacks.indexOf(o);v>=0&&this.readyCallbacks.splice(v,1)})}register(i,o){this.params[i]=o,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),o.addDestroyFunc(()=>{this.updateReady()})}get(i){return this.params[i]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){let{leftHeader:i,centerHeader:o,rightHeader:v}=this.params;return[i,v,o]}getHeaderRowContainerCtrl(i){let o=this.params;switch(i){case"left":return o.leftHeader;case"right":return o.rightHeader;default:return o.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},nL=':where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none}}:where(.ag-root-wrapper,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-tab-guard{display:block;height:0;position:absolute;width:0}:where(.ag-virtual-list-viewport) .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport,.ag-virtual-list-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container,.ag-virtual-list-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value,.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom,.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}.ag-floating-bottom{border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block;&:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}}.ag-group{position:relative;width:100%}.ag-group-title-bar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-title{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-group-title-bar) .ag-group-title{cursor:default}.ag-group-toolbar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-disabled-group-container,.ag-disabled-group-title-bar{opacity:.5}.ag-group-container-horizontal{flex-flow:row wrap}.ag-group-container-vertical{flex-direction:column}.ag-group-title-bar-icon{cursor:pointer;flex:none}:where(.ag-ltr) .ag-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-group-title-bar-icon{margin-left:var(--ag-spacing)}:where(.ag-group-item-alignment-stretch) .ag-group-item{align-items:stretch}:where(.ag-group-item-alignment-start) .ag-group-item{align-items:flex-start}:where(.ag-group-item-alignment-end) .ag-group-item{align-items:flex-end}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-large-text-input{display:block}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row{background-color:var(--ag-background-color);border-bottom:var(--ag-row-border);color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);height:var(--ag-row-height);white-space:nowrap;width:100%;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px))}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after{background-color:var(--ag-range-selection-border-color);content:"";height:1px;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row-hover.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-accent-color);content:"";height:100%;position:absolute;width:1px}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-chart,.ag-dnd-ghost,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}:where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:var(--ag-border-radius);cursor:pointer;font-family:inherit;padding:var(--ag-spacing) calc(var(--ag-spacing)*2);&:hover{background-color:var(--ag-row-hover-color)}&:active{border-color:var(--ag-accent-color)}&:disabled{background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item{position:absolute;width:100%}.ag-select-list{background-color:var(--ag-background-color);border:var(--ag-input-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-list-item{align-items:center;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}.ag-list-item-hovered:after{background-color:var(--ag-accent-color);content:"";height:1px;left:0;position:absolute;right:0}.ag-item-highlight-top:after{top:0}.ag-item-highlight-bottom:after{bottom:0}.ag-column-select-column-group-readonly,.ag-column-select-column-readonly,.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-column-select-column-readonly{&.ag-icon-grip,.ag-icon-grip{opacity:.35}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{&:hover{background-color:var(--ag-icon-button-hover-color);border-radius:1px;box-shadow:0 0 0 4px var(--ag-icon-button-hover-color)}}.ag-filter-active{--ag-icon-button-hover-color:color-mix(in srgb,transparent,var(--ag-accent-color) 28%);background-color:color-mix(in srgb,transparent,var(--ag-accent-color) 14%);border-radius:1px;outline:solid 4px color-mix(in srgb,transparent,var(--ag-accent-color) 14%);position:relative;&:after{background-color:var(--ag-accent-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z")}}:where(.ag-ltr) .ag-filter-active{&:after{right:-1px}}:where(.ag-rtl) .ag-filter-active{&:after{left:-1px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto}.ag-menu,.ag-resizer{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-resizer{pointer-events:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}:where(.ag-ltr) :where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize}&.ag-resizer-topRight{cursor:nesw-resize}&.ag-resizer-bottomRight{cursor:nwse-resize}&.ag-resizer-bottomLeft{cursor:nesw-resize}}:where(.ag-rtl) :where(.ag-resizer){&.ag-resizer-topLeft{cursor:nesw-resize}&.ag-resizer-topRight{cursor:nwse-resize}&.ag-resizer-bottomRight{cursor:nesw-resize}&.ag-resizer-bottomLeft{cursor:nwse-resize}}',W0=typeof window!="object"||!((Lk=(eR=window==null?void 0:window.document)==null?void 0:eR.fonts)!=null&&Lk.forEach),U0=new WeakMap,Sv=(i,o,v)=>{if(W0)return;let I=o.getRootNode()===document?document.head:o,N=U0.get(I);if(N||(N={css:new Set},U0.set(I,N)),N.css.has(i))return;let W=document.createElement("style");W.dataset.agGlobalCss=v,W.textContent=i,N.last?N.last.insertAdjacentElement("afterend",W):I.insertBefore(W,I.querySelector(":not(title, meta)")),N.css.add(i),N.last=W},iM=i=>{Sv(nL,i,"core"),Array.from(Qd()).sort((o,v)=>o.moduleName.localeCompare(v.moduleName)).forEach(o=>{var v;return(v=o.css)==null?void 0:v.forEach(I=>Sv(I,i,`module-${o.moduleName}`))})},nM=new Set,aM=i=>{nM.add(i)},fh=i=>{if(nM.delete(i),nM.size===0){U0=new WeakMap;for(let o of document.head.querySelectorAll("style[data-ag-global-css]"))o.remove()}},ao=i=>new oM(i),rc="$default",wv=0,oM=class{constructor({feature:i,params:o,modeParams:v={},css:I,cssImports:N}){var W;this.feature=i,this.css=I,this.cssImports=N,this.modeParams=ge({[rc]:ge(ge({},(W=v[rc])!=null?W:{}),o!=null?o:{})},v)}use(i){var v,I;let o=this._inject;if(o==null){let{css:N}=this;if(N){let W=`ag-theme-${(v=this.feature)!=null?v:"part"}-${++wv}`;typeof N=="function"&&(N=N()),N=`:where(.${W}) {
${N}
}
`;for(let Z of(I=this.cssImports)!=null?I:[])N=`@import url(${JSON.stringify(Z)});
${N}`;o={css:N,class:W}}else o=!1;this._inject=o}return o&&i&&Sv(o.css,i,o.class),o?o.class:!1}},rM=i=>i.replace(/[A-Z]/g,o=>`-${o}`).toLowerCase(),fb=i=>`--ag-${rM(i)}`,lu=i=>`var(${fb(i)})`,vh=(i,o,v)=>Math.max(o,Math.min(v,i)),ng=i=>{let o=new Map;return v=>{let I=v;return o.has(I)||o.set(I,i(v)),o.get(I)}},Tr=i=>({ref:"accentColor",mix:i}),Bo=i=>({ref:"foregroundColor",mix:i}),Ks=i=>({ref:"foregroundColor",mix:i,onto:"backgroundColor"}),sM={ref:"foregroundColor"},Cs={ref:"accentColor"},zc={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:Bo(.15),chromeBackgroundColor:Ks(.02),browserColorScheme:"light"},aT=He(ge({},zc),{textColor:sM,accentColor:"#2196f3",invalidColor:"#e02525",wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:{ref:"backgroundColor"},sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},cellFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"backgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},subtleTextColor:{ref:"textColor",mix:.5},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:Cs,rangeSelectionBackgroundColor:Tr(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:Tr(.5),rowHoverColor:Tr(.08),columnHoverColor:Tr(.05),selectedRowBackgroundColor:Tr(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},oddRowBackgroundColor:{ref:"backgroundColor"},borderRadius:4,wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",spacing:8,fontSize:14,rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},dragAndDropImageBackgroundColor:{ref:"backgroundColor"},dragAndDropImageBorder:!0,dragAndDropImageShadow:{ref:"popupShadow"},dragHandleColor:Bo(.7),focusShadow:{spread:3,color:Tr(.5)},headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},listItemHeight:{calc:"iconSize + widgetVerticalSpacing"},iconSize:16,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:Cs,toggleButtonOffBackgroundColor:Ks(.3),toggleButtonSwitchBackgroundColor:{ref:"backgroundColor"},toggleButtonSwitchInset:2,menuBorder:{color:Bo(.2)},menuBackgroundColor:Ks(.03),menuTextColor:Ks(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:Bo(.8),iconButtonHoverColor:Bo(.1),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:Cs},cellEditingShadow:{ref:"cardShadow"},dialogBorder:{color:Bo(.2)},panelBackgroundColor:{ref:"backgroundColor"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipTextColor:{ref:"textColor"},tooltipBorder:!0,columnDropCellBackgroundColor:Bo(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:Bo(.13)},selectCellBackgroundColor:Bo(.07),selectCellBorder:{color:Bo(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterToolPanelGroupIndent:{ref:"spacing"},iconButtonHoverBackgroundColor:Bo(.1),rowLoadingSkeletonEffectColor:Bo(.15)}),Bm=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],vb=ng(i=>{var o;return i=i.toLowerCase(),(o=Bm.find(v=>i.endsWith(v.toLowerCase())))!=null?o:"length"}),xv=i=>typeof i=="string"?i:typeof i=="number"?String(i):!1,K0=i=>{if(typeof i=="string")return i;if(i&&"ref"in i){let o=lu(i.ref);return i.mix==null?o:`color-mix(in srgb, ${i.onto?lu(i.onto):"transparent"}, ${o} ${vh(i.mix*100,0,100)}%)`}return!1},aL=xv,cu=i=>typeof i=="string"?i:typeof i=="number"?`${i}px`:i&&"calc"in i?`calc(${i.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?[a-z][a-z0-9]*\b(?![-(])/gi,v=>v[0]==="-"?v:` ${lu(v)} `)})`:i&&"ref"in i?lu(i.ref):!1,q0=xv,Mv=(i,o)=>{var v,I,N;return typeof i=="string"?i:i===!0?"solid 1px var(--ag-border-color)":i===!1?o==="columnBorder"?"solid 1px transparent":"none":i&&"ref"in i?lu(i.ref):RD((v=i.style)!=null?v:"solid")+" "+cu((I=i.width)!=null?I:1)+" "+K0((N=i.color)!=null?N:{ref:"borderColor"})},oL=i=>{var o,v,I,N,W;return typeof i=="string"?i:i===!1?"none":i&&"ref"in i?lu(i.ref):[cu((o=i.offsetX)!=null?o:0),cu((v=i.offsetY)!=null?v:0),cu((I=i.radius)!=null?I:0),cu((N=i.spread)!=null?N:0),K0((W=i.color)!=null?W:{ref:"foregroundColor"})].join(" ")},RD=xv,PD=i=>typeof i=="string"?bd(i):i&&"googleFont"in i?PD(i.googleFont):i&&"ref"in i?lu(i.ref):Array.isArray(i)?i.map(o=>(typeof o=="object"&&"googleFont"in o&&(o=o.googleFont),bd(o))).join(", "):!1,bd=i=>/^[\w-]+$/.test(i)?i:JSON.stringify(i),oT=xv,Bc=i=>typeof i=="string"?i:i&&"url"in i?`url(${JSON.stringify(i.url)})`:i&&"svg"in i?Bc({url:`data:image/svg+xml,${encodeURIComponent(i.svg)}`}):i&&"ref"in i?lu(i.ref):!1,Ya=(i,o)=>typeof i=="string"?i:typeof i=="number"?(i>=10&&aa(104,{value:i,param:o}),`${i}s`):i&&"ref"in i?lu(i.ref):!1,ag={color:K0,colorScheme:aL,length:cu,scale:q0,border:Mv,borderStyle:RD,shadow:oL,image:Bc,fontFamily:PD,fontWeight:oT,duration:Ya},kv=(i,o)=>{let v=vb(i);return ag[v](o,i)},Gc=i=>{if(!(i instanceof Av))throw new Error("theme is not an object created by createTheme");return i},yb=()=>new Av,Av=class qX{constructor(o=[]){this.parts=o}withPart(o){return typeof o=="function"&&(o=o()),o instanceof oM?new qX([...this.parts,o]):(Zg(259,{part:o},"Invalid part"),this)}withoutPart(o){return this.withPart(ao({feature:o}))}withParams(o,v=rc){return this.withPart(ao({modeParams:{[v]:o}}))}_startUse({container:o,loadThemeGoogleFonts:v}){if(W0)return;pp(),iM(o);let I=rn(this);if(I.length>0)for(let N of I)v&&rL(N);for(let N of this.parts)N.use(o)}_getCssClass(){var o;return(o=this._cssClassCache)!=null?o:this._cssClassCache=vr(this.parts).map(v=>v.use()).filter(Boolean).join(" ")}_getModeParams(){var v;let o=this._paramsCache;if(!o){let I={[rc]:ge({},aT)};for(let N of vr(this.parts))for(let[W,Z]of Object.entries(N.modeParams))if(Z){let ee=(v=I[W])!=null?v:I[W]={},le=new Set;for(let[we,Ae]of Object.entries(Z))Ae!==void 0&&(ee[we]=Ae,le.add(we));if(W===rc){for(let[we,Ae]of Object.entries(I))if(we!==rc)for(let Ee of le)delete Ae[Ee]}}this._paramsCache=o=I}return o}_getPerGridCss(o){let v="##SELECTOR##",I=this._paramsCssCache;if(!I){let N="",W="";for(let[ee,le]of Object.entries(this._getModeParams())){if(ee!==rc){let Ae=`:where([data-ag-theme-mode="${typeof CSS=="object"?CSS.escape(ee):ee}"]) & {
`;N+=Ae,W+=Ae}for(let[we,Ae]of Object.entries(le)){let Ee=kv(we,Ae);if(Ee===!1)aa(107,{key:we,value:Ae});else{let Ve=fb(we),Je=Ve.replace("--ag-","--ag-inherited-");N+=`	${Ve}: var(${Je}, ${Ee});
`,W+=`	${Je}: var(${Ve});
`}}ee!==rc&&(N+=`}
`,W+=`}
`)}let Z=`${v} {
${N}}
`;Z+=`:has(> ${v}):not(${v}) {
${W}}
`,this._paramsCssCache=I=Z}return I.replaceAll(v,`:where(.${o})`)}},vr=i=>{let o=new Map;for(let I of i)o.set(I.feature,I);let v=[];for(let I of i)(!I.feature||o.get(I.feature)===I)&&v.push(I);return v},rn=i=>{let o=new Set,v=W=>{if(Array.isArray(W))W.forEach(v);else{let Z=W==null?void 0:W.googleFont;typeof Z=="string"&&o.add(Z)}};return Object.values(i._getModeParams()).flatMap(W=>Object.values(W)).forEach(v),Array.from(o).sort()},Dl=!1,pp=()=>{if(!Dl){Dl=!0;for(let i of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))i.remove()}},rT=new Set,rL=async i=>{rT.add(i);let o=`@import url('https://${sL}/css2?family=${encodeURIComponent(i)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
`;Sv(o,document.head,`googleFont:${i}`)},sL="fonts.googleapis.com",lM='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',bb=ao({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:{ref:"backgroundColor"},checkboxUncheckedBorderColor:Ks(.3),checkboxCheckedBackgroundColor:Cs,checkboxCheckedBorderColor:Cs,checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:{ref:"backgroundColor"},checkboxIndeterminateBackgroundColor:Ks(.3),checkboxIndeterminateBorderColor:Ks(.3),checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:{ref:"backgroundColor"},radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}},css:lM}),cM=ao({feature:"colorScheme",params:zc}),Cb=ao({feature:"colorScheme",params:He(ge({},zc),{foregroundColor:"#000000de",borderColor:"#60300026",chromeBackgroundColor:"#60300005"})}),Sb=ao({feature:"colorScheme",params:He(ge({},zc),{foregroundColor:"#000",chromeBackgroundColor:"#f3f8f8"})}),Y0=He(ge({},zc),{backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:Ks(.05),rowHoverColor:Tr(.15),selectedRowBackgroundColor:Tr(.2),menuBackgroundColor:Ks(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",checkboxUncheckedBorderColor:Ks(.4),toggleButtonOffBackgroundColor:Ks(.4)}),sT=ao({feature:"colorScheme",params:Y0}),dM=ao({feature:"colorScheme",params:{backgroundColor:"hsl(29, 10%, 17%)",foregroundColor:"#FFF",browserColorScheme:"dark"}}),Ss=He(ge({},Y0),{backgroundColor:"#1f2836"}),og=ao({feature:"colorScheme",params:Ss}),Dv=ao({feature:"colorScheme",params:zc,modeParams:{light:zc,dark:Y0,"dark-blue":Ss}}),rg=':where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}',uM=`.ag-icon-aggregation:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24 6H8v2l8 8-8 8v2h16v-2H11l8-8-8-8h13z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-arrows:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 11.171 2.687 16l4.828 4.829-1.414 1.414L-.142 16l6.243-6.243zm16.97 0 1.414-1.414L32.142 16l-6.243 6.243-1.414-1.414L29.313 16zM16.028 13.2l2.829 2.828-2.829 2.829-2.828-2.829zm-4.857 11.285L16 29.313l4.829-4.828 1.414 1.414L16 32.142l-6.243-6.243zm0-16.97L9.757 6.101 16-.142l6.243 6.243-1.414 1.414L16 2.687z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-asc:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-cancel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667A13.32 13.32 0 0 0 2.667 16c0 7.373 5.96 13.333 13.333 13.333S29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-chart:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M14 7h4v18h-4zM8 17h4v8H8zM20 13h4v12h-4z'/%3E%3C/g%3E%3C/svg%3E")}.ag-icon-color-picker:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-columns:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26 25H6V7h20zM12 11H8v12h4zm6 0h-4v12h4zm6 12V11h-4v12z' style='fill-rule:nonzero' transform='translate(0 -1)'/%3E%3C/svg%3E")}.ag-icon-contracted:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m12 6 10 10-10 10-2-2 8-8-8-8z'/%3E%3C/svg%3E")}.ag-icon-copy:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-cross:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.984 13.894 27.05 2.828l2.122 2.122-11.066 11.066 11.066 11.066-2.122 2.12-11.066-11.066L4.918 29.202l-2.12-2.12 11.066-11.066L2.798 4.95l2.12-2.122z'/%3E%3C/svg%3E")}.ag-icon-csv:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E")}.ag-icon-cut:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M13.775 15.198 3.835 2.945a1.501 1.501 0 0 1 2.33-1.89l14.997 18.488A6.003 6.003 0 0 1 29.657 25c0 3.311-2.688 6-6 6s-6-2.689-6-6c0-1.335.437-2.569 1.176-3.566l-3.127-3.855-3.001 3.7A5.97 5.97 0 0 1 14 25c0 3.311-2.689 6-6 6s-6-2.689-6-6a6.003 6.003 0 0 1 8.315-5.536zm9.882 6.702a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1M8 21.95a3.05 3.05 0 1 0 .001 6.101A3.05 3.05 0 0 0 8 21.95m9.63-11.505 1.932 2.381 8.015-9.881a1.5 1.5 0 0 0-2.329-1.89z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-excel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E")}.ag-icon-expanded:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 26 10 16 20 6l2 2-8 8 8 8z'/%3E%3C/svg%3E")}.ag-icon-eye-slash:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath fill='%23000' fill-rule='nonzero' d='M8.95 10.364 7 8.414 8.414 7l2.32 2.32A13.2 13.2 0 0 1 16.5 8c5.608 0 10.542 3.515 12.381 8.667L29 17l-.119.333a13 13 0 0 1-4.255 5.879l1.466 1.466-1.414 1.414-1.754-1.753A13.2 13.2 0 0 1 16.5 26c-5.608 0-10.542-3.515-12.381-8.667L4 17l.119-.333a13 13 0 0 1 4.83-6.303m1.445 1.445A11.02 11.02 0 0 0 6.148 17c1.646 4.177 5.728 7 10.352 7 1.76 0 3.441-.409 4.94-1.146l-1.878-1.878A5.06 5.06 0 0 1 16.5 22c-2.789 0-5.05-2.239-5.05-5 0-1.158.398-2.223 1.065-3.07zm1.855-.974 1.794 1.795A5.07 5.07 0 0 1 16.5 12c2.789 0 5.05 2.239 5.05 5 0 .9-.24 1.745-.661 2.474l2.305 2.306A11 11 0 0 0 26.852 17c-1.646-4.177-5.728-7-10.352-7-1.495 0-2.933.295-4.25.835'/%3E%3C/svg%3E")}.ag-icon-eye:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16.5 23c4.624 0 8.706-2.823 10.352-7-1.646-4.177-5.728-7-10.352-7s-8.706 2.823-10.352 7c1.646 4.177 5.728 7 10.352 7M4.119 15.667C5.958 10.515 10.892 7 16.5 7s10.542 3.515 12.381 8.667L29 16l-.119.333C27.042 21.485 22.108 25 16.5 25S5.958 21.485 4.119 16.333L4 16zM16.5 21c2.789 0 5.049-2.239 5.049-5s-2.26-5-5.049-5-5.049 2.239-5.049 5 2.26 5 5.049 5' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-filter:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m28 8-8 8v5l-6 6V16L6 8V6h22zM9 8l7 7v7l2-2v-5l7-7z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-first:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-group:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 7v1H9V7zm0-3v1H5.001V4zm-7 7H5v-1h2zm0-3H5V7h2zM3 5H1V4h2zm11 5v1H9v-1zm-7 4H5v-1h2zm7-1v1H9v-1z' style='fill-rule:nonzero' transform='matrix(2 0 0 2 0 -2)'/%3E%3C/svg%3E")}.ag-icon-last:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-linked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333a6.67 6.67 0 0 0-6.667 6.667 6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133 4.136 4.136 0 0 1-4.133 4.133h-5.333v2.533h5.333a6.67 6.67 0 0 0 6.667-6.667 6.67 6.67 0 0 0-6.667-6.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-loading:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M17 29h-2v-8h2zm-3.586-9L7 26.414 5.586 25 12 18.586zm13 5L25 26.414 18.586 20 20 18.586zM29 17h-8v-2h8zm-18 0H3v-2h8zm2.414-5L12 13.414 5.586 7 7 5.586zm13-5L20 13.414 18.586 12 25 5.586zM17 11h-2V3h2z' style='fill-rule:nonzero' transform='translate(-3.692 -3.692)scale(1.23077)'/%3E%3C/svg%3E")}.ag-icon-maximize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 30H2V18h2.828v7.05l8.254-8.252 2.12 2.12-8.252 8.254H14zm4-28h12v12h-2.828V6.95l-8.254 8.252-2.12-2.12 8.252-8.254H18z'/%3E%3C/svg%3E")}.ag-icon-menu:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 13H0v-2h20zm0-6H0V5h20zm0-6H0v-2h20z' style='fill-rule:nonzero' transform='translate(6 9)'/%3E%3C/svg%3E")}.ag-icon-menu-alt:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 27a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E")}.ag-icon-minimize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M2 18h12v12h-2.828v-7.05l-8.254 8.252-2.12-2.12 8.252-8.254H2zm28-4H18V2h2.828v7.05L29.082.798l2.12 2.12-8.252 8.254H30z'/%3E%3C/svg%3E")}.ag-icon-minus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-next:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.94 6 9.06 7.88 17.167 16 9.06 24.12 10.94 26l10-10z' style='fill-rule:nonzero' transform='translate(1)'/%3E%3C/svg%3E")}.ag-icon-none:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M23.708 14.645 16 6.939l-7.708 7.706 1.416 1.416L16 9.767l6.292 6.294zM23.708 20.355 16 28.061l-7.708-7.706 1.416-1.416L16 25.233l6.292-6.294z'/%3E%3C/g%3E%3C/svg%3E")}.ag-icon-not-allowed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-paste:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.334 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4M16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m10.78 19.777-4.668-4.666s.032-1 .67-1.87c1.366-1.86 4.052-1.96 6.056-1.572l3.158-3.108c-.7-2.342 3.352-5.046 3.352-5.046l9.166 9.168q-.334.447-.67.894c-1.074 1.426-2.538 2.63-4.272 2.338l-3.32 3.218c.046.344.042.03.118 1.152.144 2.13-.64 4.324-2.632 5.34l-.746.364-4.798-4.798-7.292 7.294-1.416-1.416zm8.24-13.672c-.688.568-1.416 1.45-1.024 2.072l.49.722-4.986 4.988c-1.988-.506-4.346-.636-5.156.614l9.02 9.032q.14-.099.272-.21c1.226-1.08.764-3.04.498-4.9l4.79-4.79s1.47.938 2.936-.776l-6.79-6.79q-.026.019-.05.038' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-pivot:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0m2.966 7.954H9.892v18.136c5.086.13 10.18.098 15.264-.096 1.48-.094 2.746-1.35 2.84-2.84.192-5.064.226-10.134.098-15.2M3.968 24.1q.015.528.036 1.056c.094 1.484 1.354 2.746 2.84 2.84l1.012.036V24.1zM22 15.414l-.292.294-1.416-1.416L23 11.586l2.708 2.706-1.416 1.416-.292-.294v3.592c-.032 2.604-2.246 4.892-4.872 4.992L15.414 24l.294.292-1.416 1.416L11.586 23l2.706-2.708 1.416 1.416-.322.32c3.372.03 6.578-.164 6.614-3.034zM3.88 18.038c.002 1.346.012 2.694.038 4.04h3.938v-4.04zm.05-6.062a681 681 0 0 0-.044 4.042h3.97v-4.042zm5.962-7.99Q8.449 3.999 7.006 4c-1.57.02-2.946 1.348-3.004 2.922q-.02 1.517-.042 3.034h3.896v-2.02h2.036zm14.244-.016v3.966h3.898q-.017-.546-.038-1.092c-.094-1.48-1.35-2.746-2.84-2.84q-.51-.019-1.02-.034m-8.14-.054q-2.035.022-4.07.048v3.972h4.07zm6.106.008a213 213 0 0 0-4.07-.022v4.034h4.07z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-plus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-previous:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.94 7.88 20.06 6l-10 10 10 10 1.88-1.88L13.833 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-save:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.708 2.355 8 10.061.292 2.355 1.708.939 8 7.233 14.292.939z' style='fill-rule:nonzero' transform='translate(8 14)'/%3E%3Cpath d='M5 26h22v2H5zM15 4h2v18h-2z'/%3E%3C/svg%3E")}.ag-icon-small-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 10.667 16 21.334l8.667-10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.333 7.334 10.666 16l10.667 8.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.667 24.666 21.334 16 10.667 7.333z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-small-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 21.333 16 10.666l8.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-tick:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M11.586 22.96 27.718 6.828 29.84 8.95 11.586 27.202 2.4 18.016l2.12-2.122z'/%3E%3C/svg%3E")}.ag-icon-tree-closed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m11.94 6-1.88 1.88L18.167 16l-8.107 8.12L11.94 26l10-10z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-tree-indeterminate:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6 13.5h20v3H6z'/%3E%3C/svg%3E")}.ag-icon-tree-open:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.12 9.06 16 17.167 7.88 9.06 6 10.94l10 10 10-10z' style='fill-rule:nonzero' transform='translate(0 1)'/%3E%3C/svg%3E")}.ag-icon-unlinked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-grip:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M8 24H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 18H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 12H6V8h2zm6 0h-2V8h2zm6 0h-2V8h2zm6 0h-2V8h2z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-settings:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E")}`,mp=ao({feature:"iconSet",css:()=>rg+uM}),LD=`.ag-icon-aggregation:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eaggregation%3C/title%3E%3Cpath d='M24 5.333H8V8l8.667 8L8 24v2.667h16v-4h-9.333L21.334 16l-6.667-6.667H24z'/%3E%3C/svg%3E")}.ag-icon-arrows:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='M13.333 11.556h5.333V8h3.556L16 1.778 9.778 8h3.556zm-1.777 1.777H8V9.777l-6.222 6.222L8 22.221v-3.556h3.556zM30.222 16 24 9.778v3.556h-3.556v5.333H24v3.556l6.222-6.222zm-11.555 4.444h-5.333V24H9.778L16 30.222 22.222 24h-3.556z'/%3E%3C/svg%3E")}.ag-icon-asc:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-cancel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 2.667C8.627 2.667 2.667 8.627 2.667 16S8.627 29.333 16 29.333 29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-chart:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%3E%3C/svg%3E")}.ag-icon-color-picker:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387H7.361zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667'/%3E%3C/svg%3E")}.ag-icon-columns:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M5.333 10.667h5.333V5.334H5.333zm8 16h5.333v-5.333h-5.333zm-8 0h5.333v-5.333H5.333zm0-8h5.333v-5.333H5.333zm8 0h5.333v-5.333h-5.333zm8-13.334v5.333h5.333V5.333zm-8 5.334h5.333V5.334h-5.333zm8 8h5.333v-5.333h-5.333zm0 8h5.333v-5.333h-5.333z'/%3E%3C/svg%3E")}.ag-icon-contracted:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-copy:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z'/%3E%3C/svg%3E")}.ag-icon-cross:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m25.333 8.547-1.88-1.88L16 14.12 8.547 6.667l-1.88 1.88L14.12 16l-7.453 7.453 1.88 1.88L16 17.88l7.453 7.453 1.88-1.88L17.88 16z'/%3E%3C/svg%3E")}.ag-icon-csv:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E")}.ag-icon-cut:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m19 3-6 6 2 2 7-7V3m-10 9.5a.503.503 0 0 1-.5-.5c0-.274.226-.5.5-.5s.5.226.5.5-.226.5-.5.5M6 20c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2M6 8c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2m3.64-.36c.23-.5.36-1.05.36-1.64 0-2.194-1.806-4-4-4S2 3.806 2 6s1.806 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.194 0-4 1.806-4 4s1.806 4 4 4 4-1.806 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1z' style='fill-rule:nonzero' transform='translate(4 4)'/%3E%3C/svg%3E")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Edesc%3C/title%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667L26.668 16z'/%3E%3C/svg%3E")}.ag-icon-excel:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='matrix(.06285 0 0 .06285 3.934 -.054)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E")}.ag-icon-expanded:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-eye-slash:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath d='M21.106 15.088A5.19 5.19 0 0 0 16 10.814a5.17 5.17 0 0 0-3.668 1.522L9.866 9.868a12.2 12.2 0 0 1 6.133-1.646c5.186 0 9.614 3.225 11.408 7.778a12.34 12.34 0 0 1-5.276 6.133l-2.468-2.466a5.17 5.17 0 0 0 1.449-2.802h-2.123c-.148.508-.42.964-.782 1.33l-1.33-1.33h-2.514l2.196 2.196q-.272.049-.56.05a3.11 3.11 0 0 1-2.99-2.245h-2.123a5.19 5.19 0 0 0 7.3 3.836l2.247 2.247a12.2 12.2 0 0 1-4.434.828c-5.186 0-9.614-3.225-11.408-7.778a12.3 12.3 0 0 1 3.781-5.111l2.924 2.924a5.1 5.1 0 0 0-.404 1.275h4.206l-1.296-1.296a3.1 3.1 0 0 1 2.196-.903c1.404 0 2.587.924 2.976 2.199h2.13z'/%3E%3C/svg%3E")}.ag-icon-eye:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16 8.222c-5.186 0-9.614 3.225-11.408 7.778 1.794 4.553 6.222 7.778 11.408 7.778S25.614 20.553 27.408 16C25.614 11.447 21.186 8.222 16 8.222m0 12.964c-2.862 0-5.186-2.324-5.186-5.186s2.324-5.186 5.186-5.186 5.186 2.324 5.186 5.186-2.324 5.186-5.186 5.186m0-8.297c-1.721 0-3.111 1.39-3.111 3.111s1.39 3.111 3.111 3.111 3.111-1.39 3.111-3.111-1.39-3.111-3.111-3.111'/%3E%3C/svg%3E")}.ag-icon-filter:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M13.333 24h5.333v-2.667h-5.333zM4 8v2.667h24V8zm4 9.333h16v-2.667H8z'/%3E%3C/svg%3E")}.ag-icon-first:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z'/%3E%3C/svg%3E")}.ag-icon-group:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%3E%3Cpath d='M18.667 21.333h8.889A3.555 3.555 0 0 1 24 24.889h-5.333zm8.888-7.111v3.556h-8.889v-3.556zM24 7.111a3.555 3.555 0 0 1 3.556 3.556h-16V7.111zm-8.889 17.778h-3.556v-3.556h3.556zm0-7.111h-3.556v-3.556h3.556zM8 10.667H4.444A3.555 3.555 0 0 1 8 7.111z'/%3E%3C/svg%3E")}.ag-icon-last:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z'/%3E%3C/svg%3E")}.ag-icon-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227v-2.667z'/%3E%3C/svg%3E")}.ag-icon-linked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333c-3.68 0-6.667 2.987-6.667 6.667s2.987 6.667 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333c2.28 0 4.133 1.853 4.133 4.133s-1.853 4.133-4.133 4.133h-5.333v2.533h5.333c3.68 0 6.667-2.987 6.667-6.667s-2.987-6.667-6.667-6.667z'/%3E%3C/svg%3E")}.ag-icon-loading:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%3E%3Cpath d='m17.778 11.708 3.25-3.251 2.516 2.516-3.251 3.25h4.597v3.556h-4.597l3.251 3.25-2.516 2.516-3.25-3.251v4.597h-3.556v-4.597l-3.25 3.251-2.516-2.516 3.251-3.25H7.11v-3.556h4.597l-3.251-3.25 2.516-2.516 3.25 3.251V7.111h3.556zm-3.251 7.847h2.944l2.084-2.084v-2.944l-2.084-2.084h-2.944l-2.084 2.084v2.944z'/%3E%3C/svg%3E")}.ag-icon-maximize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='M4 4h24v2.667H4z'/%3E%3C/svg%3E")}.ag-icon-menu:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M4 24h24v-2.667H4zm0-6.667h24v-2.667H4zM4 8v2.667h24V8z'/%3E%3C/svg%3E")}.ag-icon-menu-alt:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 26.667a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 24q0-1.1.784-1.883A2.57 2.57 0 0 1 16 21.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 16q0-1.1.784-1.883A2.57 2.57 0 0 1 16 13.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 8q0-1.1.784-1.883A2.57 2.57 0 0 1 16 5.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784'/%3E%3C/svg%3E")}.ag-icon-minimize:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='M8 25.333h16V28H8z'/%3E%3C/svg%3E")}.ag-icon-minus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-next:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-none:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cpath d='M4 24h16v-2.667H4zM4 8v2.667h24V8zm0 9.333h24v-2.667H4z'/%3E%3C/svg%3E")}.ag-icon-not-allowed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667'/%3E%3C/svg%3E")}.ag-icon-paste:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M25.333 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4zM16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z'/%3E%3C/svg%3E")}.ag-icon-pin:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%3E%3Cpath d='m11.106 22.093-4.444 4.444-1.259-1.259 4.444-4.444zm5.872-16.63 9.618 9.62-.962.962-.962-.962-7.694 3.847 1.924 1.924-2.74 2.74-7.696-7.696 2.741-2.74 1.924 1.925 3.847-7.696-.962-.962z'/%3E%3C/svg%3E")}.ag-icon-pivot:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%3E%3Cpath d='M26.667 30.223H5.334a3.556 3.556 0 0 1-3.556-3.556V5.334a3.556 3.556 0 0 1 3.556-3.556h21.333a3.556 3.556 0 0 1 3.556 3.556v21.333a3.556 3.556 0 0 1-3.556 3.556m-16-8.89H5.334v5.333h5.333zm16-7.11H12.444v12.444h14.223zm-9.15 6.85-2.039 2.037 2.039 2.039-1.257 1.257-3.295-3.296 3.295-3.295q.63.628 1.257 1.257zm-6.85-6.85H5.334v5.333h5.333zm15.74 3.816-1.257 1.256-2.039-2.037-2.037 2.037-1.257-1.256 3.295-3.296zM10.667 5.333H5.334v5.333h5.333zm8.889 0h-7.112v5.333h7.112zm7.111 0h-5.333v5.333h5.333z'/%3E%3C/svg%3E")}.ag-icon-plus:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-previous:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%3E%3C/svg%3E")}.ag-icon-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z'/%3E%3C/svg%3E")}.ag-icon-save:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%3E%3C/svg%3E")}.ag-icon-small-down:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M9.333 12.667 16 19.334l6.667-6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-small-left:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M19.333 9.333 12.666 16l6.667 6.667V9.334z'/%3E%3C/svg%3E")}.ag-icon-small-right:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='M12.667 22.667 19.334 16l-6.667-6.667v13.333z'/%3E%3C/svg%3E")}.ag-icon-small-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='M9.333 19.333 16 12.666l6.667 6.667H9.334z'/%3E%3C/svg%3E")}.ag-icon-tick:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='m11.727 21.167-5.56-5.56-1.893 1.88 7.453 7.453 16-16-1.88-1.88z'/%3E%3C/svg%3E")}.ag-icon-tree-closed:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%3E%3C/svg%3E")}.ag-icon-tree-indeterminate:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6.667 14.667h18.667v2.667H6.667z'/%3E%3C/svg%3E")}.ag-icon-tree-open:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M22.12 11.06 16 17.167 9.88 11.06 8 12.94l8 8 8-8z'/%3E%3C/svg%3E")}.ag-icon-unlinked:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z'/%3E%3C/svg%3E")}.ag-icon-up:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333z'/%3E%3C/svg%3E")}.ag-icon-grip:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%3E%3Cpath d='M26.667 12H5.334v2.667h21.333zM5.333 20h21.333v-2.667H5.333z'/%3E%3C/svg%3E")}.ag-icon-settings:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E")}`,lL=ao({feature:"iconSet",css:()=>rg+LD}),hM=i=>{let o=[rg];if(i.type==="image"){let{icons:v,mask:I}=i;for(let[N,W]of Object.entries(v)){let Z=Bc(W);I?o.push(`.ag-icon-${N}::before { mask-image: ${Z}; }`):o.push(`.ag-icon-${N}::before { background-image: ${Z}; ${gM} }`)}}if(i.type==="font"){let{family:v,weight:I,color:N,icons:W}=i,Z=gM;v&&(Z+=` font-family: ${PD(v)};`),I&&(Z+=` font-weight: ${oT(I)};`),N&&(Z+=` color: ${K0(N)};`);for(let[ee,le]of Object.entries(W))o.push(`.ag-icon-${ee}::before { content: ${JSON.stringify(le)}; ${Z} }`)}return ao({css:o.join(`;
`),cssImports:i.cssImports})},gM="background-color: unset; mask-image: unset; -webkit-mask-image: unset;",lT={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>'},wb={"small-down":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',"small-up":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>'},OD=(i={})=>{let o=rg;for(let v of[...Object.keys(lT),...Object.keys(wb)]){let I=pM(v,i.strokeWidth);o+=`.ag-icon-${v}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(I)}'); }
`}return o},pM=(i,o=1.5)=>{let v=wb[i];if(v)return v;let I=lT[i];if(!I)throw new Error(`Missing icon data for ${i}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${o}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+I+"</svg>"},sg=(i={})=>ao({feature:"iconSet",css:()=>OD(i)}),mM=sg({strokeWidth:1}),FD=sg(),Ev=sg({strokeWidth:2}),xb=':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}:where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) :where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) :where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){padding-right:var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}',Cd=":where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){&:focus{box-shadow:var(--ag-focus-shadow)}}",Iv=":where(input.ag-input-field-input:not([type]),input.ag-input-field-input[type=text],input.ag-input-field-input[type=number],input.ag-input-field-input[type=tel],input.ag-input-field-input[type=date],input.ag-input-field-input[type=datetime-local],textarea.ag-input-field-input){border-left:none;border-right:none;border-top:none}",Mb={inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPlaceholderTextColor:{ref:"inputTextColor",mix:.5},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"},inputIconColor:{ref:"inputTextColor"}},_D=ao({feature:"inputStyle",params:Mb,css:xb}),X0=ao({feature:"inputStyle",params:He(ge({},Mb),{inputBackgroundColor:{ref:"backgroundColor"},inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:Cs},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:Ks(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}}}),css:()=>xb+Cd}),ND=ao({feature:"inputStyle",params:He(ge({},Mb),{inputBorder:{width:2,color:Bo(.3)},inputPaddingStart:{ref:"spacing"},inputFocusBorder:"solid 2px var(--ag-accent-color)",inputDisabledTextColor:{ref:"textColor",mix:.5},inputDisabledBorder:"solid 1px var(--ag-border-color)",inputInvalidBorder:{width:2,color:{ref:"invalidColor",mix:.3}}}),css:()=>xb+Iv}),Z0='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:1px solid var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}}:where(.ag-ltr) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}}}:where(.ag-rtl) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}}}',qs=".ag-tab{border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;border-top:var(--ag-tab-selected-border-width) solid transparent;flex:0;&.ag-tab-selected{border-left-color:var(--ag-tab-selected-border-color);border-right-color:var(--ag-tab-selected-border-color);border-top-color:var(--ag-tab-selected-border-color);margin-bottom:-1px;padding-bottom:calc(var(--ag-tab-bottom-padding) + 1px)}}",kb={tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1},zD=ao({feature:"tabStyle",params:kb,css:Z0}),du=ao({feature:"tabStyle",params:He(ge({},kb),{tabBarBorder:!0,tabBarBackgroundColor:Bo(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),css:Z0}),Gm=ao({feature:"tabStyle",params:He(ge({},kb),{tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabSelectedUnderlineColor:{ref:"primaryColor"},tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:0}),css:Z0}),Vm=ao({feature:"tabStyle",params:He(ge({},kb),{tabBarBorder:!0,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabHoverTextColor:Cs,tabSelectedTextColor:Cs,tabSelectedUnderlineColor:Cs,tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:"0.3s"}),css:Z0}),yh=ao({feature:"tabStyle",params:He(ge({},kb),{tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabBarHorizontalPadding:{ref:"spacing"},tabBarTopPadding:{ref:"spacing"},tabBarBorder:!0,tabHorizontalPadding:{calc:"spacing * 2"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:{ref:"spacing"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),css:()=>Z0+qs}),uu=yb().withPart(bb).withPart(Dv).withPart(FD).withPart(du).withPart(()=>X0).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}),$0=yb().withPart(bb).withPart(Dv).withPart(mp).withPart(Vm).withPart(X0).withParams({accentColor:"#2196f3",selectedRowBackgroundColor:Tr(.3),inputFocusBorder:{color:Tr(.4)},fontSize:13,dataFontSize:14,headerFontWeight:700,borderRadius:3,wrapperBorderRadius:3,tabSelectedUnderlineColor:Cs,tabSelectedBorderWidth:2,tabSelectedUnderlineTransitionDuration:.3}),fp=yb().withPart(bb).withPart(Dv).withPart(mp).withPart(yh).withPart(X0).withParams({spacing:4,borderRadius:2,wrapperBorderRadius:2,headerColumnResizeHandleColor:"transparent",headerColumnBorder:!0,headerColumnBorderHeight:"50%",oddRowBackgroundColor:{ref:"chromeBackgroundColor",mix:.5},headerTextColor:Bo(.5),fontSize:12,headerFontWeight:"bold"}),Q0={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},fM={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},vM={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},yM={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:!0},cL=0,vp=class extends jt{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.paramsClass=`ag-theme-params-${++cL}`,this.globalCSS=[]}wireBeans(i){this.eGridDiv=i.eGridDiv}postConstruct(){this.addManagedPropertyListener("theme",()=>this.handleThemeGridOptionChange()),this.handleThemeGridOptionChange(),this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(Q0),this.getSizeEl(fM),this.getSizeEl(vM),this.getSizeEl(yM),this.refreshRowBorderWidthVariable(),this.addDestroyFunc(()=>fh(this))}getDefaultRowHeight(){return this.getCSSVariablePixelValue(Q0)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(fM)}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(vM)}getRowBorderWidth(){return this.getCSSVariablePixelValue(yM)}applyThemeClasses(i){let{gridTheme:o}=this,v="";if(o)v=`${this.paramsClass} ${o._getCssClass()}`;else{let I=this.eGridDiv;for(;I;){for(let N of Array.from(I.classList))N.startsWith("ag-theme-")&&(v=v?`${v} ${N}`:N);I=I.parentElement}}for(let I of Array.from(i.classList))I.startsWith("ag-theme-")&&i.classList.remove(I);if(v){let I=i.className;i.className=I+(I?" ":"")+v}}refreshRowHeightVariable(){let{eGridDiv:i}=this,o=i.style.getPropertyValue("--ag-line-height").trim(),v=this.gos.get("rowHeight");if(v==null||isNaN(v)||!isFinite(v))return o!==null&&i.style.setProperty("--ag-line-height",null),-1;let I=`${v}px`;return o!=I?(i.style.setProperty("--ag-line-height",I),v):o!=""?parseFloat(o):-1}addGlobalCSS(i,o){this.gridTheme?Sv(i,this.eGridDiv,o):this.globalCSS.push([i,o])}getCSSVariablePixelValue(i){let o=this.lastKnownValues.get(i);if(o!=null)return o;let v=this.measureSizeEl(i);return v==="detached"||v==="no-styles"?i.defaultValue:(this.lastKnownValues.set(i,v),v)}measureSizeEl(i){let o=this.getSizeEl(i);if(o.offsetParent==null)return"detached";let v=o.offsetWidth;return v===Ab?"no-styles":(this.sizesMeasured=!0,v)}getMeasurementContainer(){let i=this.eMeasurementContainer;return i||(i=this.eMeasurementContainer=document.createElement("div"),i.className="ag-measurement-container",this.eGridDiv.appendChild(i)),i}getSizeEl(i){let o=this.sizeEls.get(i);if(o)return o;let v=this.getMeasurementContainer();o=document.createElement("div");let{border:I}=i;I?(o.className="ag-measurement-element-border",o.style.setProperty("--ag-internal-measurement-border",`var(${i.cssName}, solid ${Ab}px`)):o.style.width=`var(${i.cssName}, ${Ab}px)`,v.appendChild(o),this.sizeEls.set(i,o);let N=this.measureSizeEl(i);N==="no-styles"&&ii(9,{variable:i});let W=Xl(this.beans,o,()=>{let Z=this.measureSizeEl(i);Z==="detached"||Z==="no-styles"||(this.lastKnownValues.set(i,Z),Z!==N&&(N=Z,this.fireGridStylesChangedEvent(i.changeKey)))});return this.addDestroyFunc(()=>W()),o}fireGridStylesChangedEvent(i){i==="rowBorderWidthChanged"&&this.refreshRowBorderWidthVariable(),this.eventSvc.dispatchEvent({type:"gridStylesChanged",[i]:!0})}refreshRowBorderWidthVariable(){let i=this.getCSSVariablePixelValue(yM);this.eGridDiv.style.setProperty("--ag-internal-row-border-width",`${i}px`)}handleThemeGridOptionChange(){let{gos:i,eGridDiv:o,globalCSS:v,gridTheme:I}=this,N=i.get("theme"),W;if(N==="legacy")W=void 0;else{let Z=N!=null?N:uu;Z instanceof Av?W=Z:aa(240,{theme:Z})}if(W!==I){if(W){aM(this),iM(o);for(let[ee,le]of v)Sv(ee,o,le);v.length=0}this.gridTheme=W,W==null||W._startUse({loadThemeGoogleFonts:i.get("loadThemeGoogleFonts"),container:o});let Z=this.eParamsStyle;Z||(Z=this.eParamsStyle=document.createElement("style"),o.appendChild(Z)),W0||(Z.textContent=(W==null?void 0:W._getPerGridCss(this.paramsClass))||""),this.applyThemeClasses(o),this.fireGridStylesChangedEvent("themeChanged")}W&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&aa(N?106:239)}},Ab=15538,bM=class extends jt{constructor(){super(...arguments),this.beanName="eventSvc",this.globalEventService=new s}postConstruct(){let{globalListener:i,globalSyncListener:o}=this.beans;i&&this.addGlobalListener(i,!0),o&&this.addGlobalListener(o,!1)}addEventListener(i,o,v){this.globalEventService.addEventListener(i,o,v)}removeEventListener(i,o,v){this.globalEventService.removeEventListener(i,o,v)}addGlobalListener(i,o=!1){this.globalEventService.addGlobalListener(i,o)}removeGlobalListener(i,o=!1){this.globalEventService.removeGlobalListener(i,o)}dispatchLocalEvent(){}dispatchEvent(i){this.globalEventService.dispatchEvent(this.gos.addGridCommonParams(i))}dispatchEventOnce(i){this.globalEventService.dispatchEventOnce(this.gos.addGridCommonParams(i))}};function J0(i){return i?i.getLeafColumns().some(o=>o.isSpanHeaderHeight()):!1}function CM(i,o){let v;if(no(i)&&J0(i)&&i.isPadding()){let I=i;v=I.getLeafColumns()[0];let N=v;for(;N!==I;)o++,N=N.getParent()}return{column:v||i,headerRowIndex:o}}var cT=class extends jt{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){let i=this.beans;i.ctrlsSvc.whenReady(this,v=>{this.gridBodyCon=v.gridBodyCtrl});let o=eo(i);this.addManagedElementListeners(o,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(i,o){var Je;let v,{colModel:I,colGroupSvc:N,ctrlsSvc:W}=this.beans;if(typeof i=="string"?(v=I.getCol(i),v||(v=(Je=N==null?void 0:N.getColumnGroup(i))!=null?Je:null)):v=i,!v)return null;let Z=W.getHeaderRowContainerCtrl(),ee=Z==null?void 0:Z.getAllCtrls(),le=Yn(ee||[]).type==="filter",we=Aa(this.beans)-1,Ae=-1,Ee=v;for(;Ee;)Ae++,Ee=Ee.getParent();let Ve=Ae;return o&&le&&Ve===we-1&&Ve++,Ve===-1?null:{headerRowIndex:Ve,column:v}}navigateVertically(i,o,v){let I=this.beans.focusSvc;if(o||(o=I.focusedHeader),!o)return!1;let{headerRowIndex:N}=o,W=o.column,Z=Aa(this.beans),ee=i==="UP",le=this.getHeaderRowType(N),{headerRowIndex:we,column:Ae,headerRowIndexWithoutSpan:Ee}=ee?dL(le,W,N):eS(le,W,N),Ve=!1;return we<0&&(we=0,Ae=W,Ve=!0),we>=Z?(we=-1,this.currentHeaderRowWithoutSpan=-1):Ee!==void 0&&(this.currentHeaderRowWithoutSpan=Ee),!Ve&&!Ae?!1:I.focusHeaderPosition({headerPosition:{headerRowIndex:we,column:Ae},allowUserOverride:!0,event:v})}navigateHorizontally(i,o=!1,v){let{focusSvc:I,gos:N}=this.beans,W=I.focusedHeader,Z,ee;if(this.currentHeaderRowWithoutSpan!==-1?W.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=W.headerRowIndex,i==="LEFT"!==N.get("enableRtl")?(ee="Before",Z=this.findHeader(W,ee)):(ee="After",Z=this.findHeader(W,ee)),Z||!o)return I.focusHeaderPosition({headerPosition:Z,direction:ee,fromTab:o,allowUserOverride:!0,event:v});if(o){let le=N.getCallback("tabToNextHeader");if(le)return I.focusHeaderPositionFromUserFunc({userFunc:le,headerPosition:Z,direction:ee})}return this.focusNextHeaderRow(W,ee,v)}focusNextHeaderRow(i,o,v){let I=i.headerRowIndex,N=null,W,Z=this.beans;if(o==="Before"?I>0&&(W=I-1,this.currentHeaderRowWithoutSpan-=1,N=this.findColAtEdgeForHeaderRow(W,"end")):(W=I+1,this.currentHeaderRowWithoutSpan<Aa(Z)?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1,N=this.findColAtEdgeForHeaderRow(W,"start")),!N)return!1;let{column:ee,headerRowIndex:le}=CM(N.column,N==null?void 0:N.headerRowIndex);return Z.focusSvc.focusHeaderPosition({headerPosition:{column:ee,headerRowIndex:le},direction:o,fromTab:!0,allowUserOverride:!0,event:v})}scrollToColumn(i,o="After"){if(i.getPinned())return;let v;if(no(i)){let I=i.getDisplayedLeafColumns();v=o==="Before"?Yn(I):I[0]}else v=i;this.gridBodyCon.scrollFeature.ensureColumnVisible(v)}findHeader(i,o){var we;let v,I,{colGroupSvc:N,visibleCols:W}=this.beans;if(no(i.column)?v=(we=N==null?void 0:N.getGroupAtDirection(i.column,o))!=null?we:void 0:(I=`getCol${o}`,v=W[I](i.column)),!v)return;let{headerRowIndex:Z}=i;if(this.getHeaderRowType(Z)!=="filter"){let Ae=[v];for(;v.getParent();)v=v.getParent(),Ae.push(v);v=Ae[Math.max(0,Ae.length-1-Z)]}let{column:ee,headerRowIndex:le}=CM(v,Z);return{column:ee,headerRowIndex:le}}getHeaderRowType(i){let o=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(o)return o.getRowType(i)}findColAtEdgeForHeaderRow(i,o){let{visibleCols:v,ctrlsSvc:I,colGroupSvc:N}=this.beans,W=v.allCols,Z=W[o==="start"?0:W.length-1];if(!Z)return;let ee=I.getHeaderRowContainerCtrl(Z.getPinned()),le=ee==null?void 0:ee.getRowType(i);if(le=="group"){let we=N==null?void 0:N.getColGroupAtLevel(Z,i);return{headerRowIndex:i,column:we}}return{headerRowIndex:le==null?-1:i,column:Z}}};function dL(i,o,v){let I=i==="filter",N=i==="column",W=I?o:o.getParent(),Z=v-1,ee=Z;if(N&&J0(o.getParent())){for(;W&&W.isPadding();)W=W.getParent(),Z--;ee=Z,Z<0&&(W=o,Z=v,ee=void 0)}return{column:W,headerRowIndex:Z,headerRowIndexWithoutSpan:ee}}function eS(i,o,v,I="After"){let N=o,W=v+1,Z=W;if(i==="group"){let ee=o.getDisplayedLeafColumns(),le=I==="After"?ee[0]:Yn(ee),we=[],Ae=le;for(;Ae.getParent()!==o;)Ae=Ae.getParent(),we.push(Ae);if(N=le,le.isSpanHeaderHeight())for(let Ee=we.length-1;Ee>=0;Ee--){let Ve=we[Ee];if(!Ve.isPadding()){N=Ve;break}W++}else N=Yn(we),N||(N=le)}return{column:N,headerRowIndex:W,headerRowIndexWithoutSpan:Z}}var Sd=class extends jt{constructor(){super(...arguments),this.beanName="focusSvc"}wireBeans(i){this.colModel=i.colModel,this.visibleCols=i.visibleCols,this.rowRenderer=i.rowRenderer,this.navigation=i.navigation,this.filterManager=i.filterManager,this.overlays=i.overlays}postConstruct(){let i=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:i,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:i,columnRowGroupChanged:i}),this.addDestroyFunc(vl(this.beans))}onColumnEverythingChanged(){if(!this.focusedCell)return;let i=this.focusedCell.column,o=this.colModel.getCol(i.getId());i!==o&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedCell||this.isDomDataMissingInHierarchy(ga(this.beans),tu)?null:this.focusedCell}getFocusHeaderToUseAfterRefresh(){return this.gos.get("suppressFocusAfterRefresh")||!this.focusedHeader||this.isDomDataMissingInHierarchy(ga(this.beans),Tx)?null:this.focusedHeader}isDomDataMissingInHierarchy(i,o){let v=i;for(;v;){if(dm(this.gos,v,o))return!1;v=v.parentNode}return!0}getFocusedCell(){return this.focusedCell}shouldRestoreFocus(i){return this.isCellRestoreFocused(i)?(setTimeout(()=>{this.restoredFocusedCell=null},0),!0):!1}clearRestoreFocus(){this.restoredFocusedCell=null,this.awaitRestoreFocusedCell=!1}restoreFocusedCell(i,o){this.awaitRestoreFocusedCell=!0,setTimeout(()=>{this.awaitRestoreFocusedCell&&(this.setRestoreFocusedCell(i),o())})}isCellRestoreFocused(i){return this.restoredFocusedCell==null?!1:Ai(i,this.restoredFocusedCell)}setRestoreFocusedCell(i){this.beans.frameworkOverrides.renderingEngine==="react"&&(this.restoredFocusedCell=i)}getFocusEventParams(i){let{rowIndex:o,rowPinned:v,column:I}=i,N={rowIndex:o,rowPinned:v,column:I,isFullWidthCell:!1},W=this.rowRenderer.getRowByPosition({rowIndex:o,rowPinned:v});return W&&(N.isFullWidthCell=W.isFullWidth()),N}clearFocusedCell(){if(this.restoredFocusedCell=null,this.focusedCell==null)return;let i=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent(ge({type:"cellFocusCleared"},i))}setFocusedCell(i){let{column:o,rowIndex:v,rowPinned:I,forceBrowserFocus:N=!1,preventScrollOnBrowserFocus:W=!1}=i,Z=this.colModel.getCol(o);if(!Z){this.focusedCell=null;return}this.focusedCell={rowIndex:v,rowPinned:kc(I),column:Z},this.eventSvc.dispatchEvent(He(ge({type:"cellFocused"},this.getFocusEventParams(this.focusedCell)),{forceBrowserFocus:N,preventScrollOnBrowserFocus:W}))}isCellFocused(i){return this.focusedCell==null?!1:Ai(i,this.focusedCell)}isRowNodeFocused(i){return this.isRowFocused(i.rowIndex,i.rowPinned)}isHeaderWrapperFocused(i){if(this.focusedHeader==null)return!1;let{column:o,rowCtrl:{rowIndex:v,pinned:I}}=i,{column:N,headerRowIndex:W}=this.focusedHeader;return o===N&&v===W&&I==N.getPinned()}focusHeaderPosition(i){var le;if(sh(this.beans))return!1;let{direction:o,fromTab:v,allowUserOverride:I,event:N,fromCell:W,rowWithoutSpanValue:Z}=i,{headerPosition:ee}=i;if(W&&((le=this.filterManager)!=null&&le.isAdvFilterHeaderActive()))return this.focusAdvancedFilter(ee);if(I){let we=this.focusedHeader,Ae=Aa(this.beans);if(v){let Ee=this.gos.getCallback("tabToNextHeader");Ee&&(ee=this.getHeaderPositionFromUserFunc({userFunc:Ee,direction:o,currentPosition:we,headerPosition:ee,headerRowCount:Ae}))}else{let Ee=this.gos.getCallback("navigateToNextHeader");if(Ee&&N){let Ve={key:N.key,previousHeaderPosition:we,nextHeaderPosition:ee,headerRowCount:Ae,event:N};ee=Ee(Ve)}}}return ee?this.focusProvidedHeaderPosition({headerPosition:ee,direction:o,event:N,fromCell:W,rowWithoutSpanValue:Z}):!1}focusHeaderPositionFromUserFunc(i){if(sh(this.beans))return!1;let{userFunc:o,headerPosition:v,direction:I,event:N}=i,W=this.focusedHeader,Z=Aa(this.beans),ee=this.getHeaderPositionFromUserFunc({userFunc:o,direction:I,currentPosition:W,headerPosition:v,headerRowCount:Z});return!!ee&&this.focusProvidedHeaderPosition({headerPosition:ee,direction:I,event:N})}getHeaderPositionFromUserFunc(i){let{userFunc:o,direction:v,currentPosition:I,headerPosition:N,headerRowCount:W}=i,ee=o({backwards:v==="Before",previousHeaderPosition:I,nextHeaderPosition:N,headerRowCount:W});return ee===!0?I:ee===!1?null:ee}focusProvidedHeaderPosition(i){let{headerPosition:o,direction:v,fromCell:I,rowWithoutSpanValue:N,event:W}=i,{column:Z,headerRowIndex:ee}=o,{filterManager:le,ctrlsSvc:we,headerNavigation:Ae}=this.beans;if(ee===-1)return le!=null&&le.isAdvFilterHeaderActive()?this.focusAdvancedFilter(o):this.focusGridView(Z);Ae==null||Ae.scrollToColumn(Z,v);let Ee=we.getHeaderRowContainerCtrl(Z.getPinned()),Ve=(Ee==null?void 0:Ee.focusHeader(o.headerRowIndex,Z,W))||!1;return Ae&&Ve&&(N!=null||I)&&(Ae.currentHeaderRowWithoutSpan=N!=null?N:-1),Ve}focusFirstHeader(){var I;if((I=this.overlays)!=null&&I.isExclusive()&&this.focusOverlay())return!0;let i=this.visibleCols.allCols[0];if(!i)return!1;let{colGroupSvc:o}=this.beans;o&&i.getParent()&&(i=o.getColGroupAtLevel(i,0));let v=CM(i,0);return this.focusHeaderPosition({headerPosition:v,rowWithoutSpanValue:0})}focusLastHeader(i){var I;if((I=this.overlays)!=null&&I.isExclusive()&&this.focusOverlay(!0))return!0;let o=Aa(this.beans)-1,v=Yn(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:o,column:v},rowWithoutSpanValue:-1,event:i})}focusPreviousFromFirstCell(i){var o;return(o=this.filterManager)!=null&&o.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(i)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(i,o){return this.focusedCell==null?!1:this.focusedCell.rowIndex===i&&this.focusedCell.rowPinned===kc(o)}focusOverlay(i){var v,I;let o=((v=this.overlays)==null?void 0:v.isVisible())&&((I=this.overlays.eWrapper)==null?void 0:I.getGui());return!!o&&Jd(o,i)}focusGridView(i,o=!1,v=!0){var N,W,Z,ee,le;if((N=this.overlays)!=null&&N.isExclusive())return v&&this.focusOverlay(o);if(ud(this.beans))return o&&!sh(this.beans)?this.focusLastHeader():v&&this.focusOverlay(o)?!0:Wr(this.beans,!1);let I=o?ip(this.beans):Cl(this.beans);if(I){let{rowIndex:we,rowPinned:Ae}=I;if(i!=null||(i=(W=this.focusedHeader)==null?void 0:W.column),i&&we!==void 0&&we!==null){if((Z=this.navigation)==null||Z.ensureCellVisible({rowIndex:we,column:i,rowPinned:Ae}),o){let Ee=this.rowRenderer.getRowByPosition(I);if(Ee!=null&&Ee.isFullWidth()&&((ee=this.navigation)!=null&&ee.tryToFocusFullWidthRow(I,o)))return!0}return this.setFocusedCell({rowIndex:we,column:i,rowPinned:kc(Ae),forceBrowserFocus:!0}),(le=this.beans.rangeSvc)==null||le.setRangeToCell({rowIndex:we,rowPinned:Ae,column:i}),!0}}return!!(v&&this.focusOverlay(o)||o&&this.focusLastHeader())}focusAdvancedFilter(i){var o,v;return this.advFilterFocusColumn=i==null?void 0:i.column,(v=(o=this.beans.advancedFilter)==null?void 0:o.getCtrl().focusHeaderComp())!=null?v:!1}focusNextFromAdvancedFilter(i,o){var I,N;let v=(N=o?void 0:this.advFilterFocusColumn)!=null?N:(I=this.visibleCols.allCols)==null?void 0:I[0];return i?this.focusHeaderPosition({headerPosition:{column:v,headerRowIndex:Aa(this.beans)-1}}):this.focusGridView(v)}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},jm=class extends jt{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(i){this.ctrlsSvc=i.ctrlsSvc,this.colAnimation=i.colAnimation}postConstruct(){this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){let{colAnimation:i}=this;i!=null&&i.isActive()?i.executeLaterVMTurn(()=>{i.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){var v;let i=this.ctrlsSvc.get("center");if(!i||(v=this.colAnimation)!=null&&v.isActive())return;let o={horizontalScrollShowing:i.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(o),this.updateScrollGap()}updateScrollGap(){let i=this.ctrlsSvc.get("center"),o=i.hasHorizontalScrollGap(),v=i.hasVerticalScrollGap();(this.horizontalScrollGap!==o||this.verticalScrollGap!==v)&&(this.horizontalScrollGap=o,this.verticalScrollGap=v,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(i){(this.horizontalScrollShowing!==i.horizontalScrollShowing||this.verticalScrollShowing!==i.verticalScrollShowing)&&(this.horizontalScrollShowing=i.horizontalScrollShowing,this.verticalScrollShowing=i.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(this.scrollbarWidth==null){let i=this.gos.get("scrollbarWidth"),v=typeof i=="number"&&i>=0?i:Wu();v!=null&&(this.scrollbarWidth=v,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},qr=class extends jt{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){var I,N;if(this.destroyCalled)return;let{stateSvc:i,ctrlsSvc:o,context:v}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:(I=i==null?void 0:i.getState())!=null?I:{}}),this.destroyCalled=!0,(N=o.get("gridCtrl"))==null||N.destroyGridUi(),v.destroy(),super.destroy()}},wd=new Set(["gridPreDestroyed","fillStart","pasteStart"]),BD={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,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},dT=0,uT=0,SM=class extends jt{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.gridInstanceId=uT++,this.propEventSvc=new s,this.globalEventHandlerFactory=i=>(o,v)=>{if(!this.isAlive())return;let I=wd.has(o);if(I&&!i||!I&&i)return;let N=Hi(o),W=this.gridOptions[N];typeof W=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{W(v)})}}wireBeans(i){this.gridOptions=i.gridOptions,this.validation=i.validation,this.api=i.gridApi,this.gridId=i.context.getGridId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:i})=>{this.updateGridOptions({options:i,force:!0,source:"gridOptionsUpdated"})}})}get(i){var o;return(o=this.gridOptions[i])!=null?o:BD[i]}getCallback(i){return this.mergeGridCommonParams(this.gridOptions[i])}exists(i){return mi(this.gridOptions[i])}mergeGridCommonParams(i){return i&&(v=>i(this.addGridCommonParams(v)))}updateGridOptions({options:i,force:o,source:v="api"}){let I={id:dT++,properties:[]},N=[],{gridOptions:W,validation:Z}=this;Object.entries(i).forEach(([ee,le])=>{Z==null||Z.warnOnInitialPropertyUpdate(v,ee);let we=o||typeof le=="object"&&v==="api",Ae=W[ee];if(we||Ae!==le){W[ee]=le;let Ee={type:ee,currentValue:le,previousValue:Ae,changeSet:I,source:v};N.push(Ee)}}),Z==null||Z.processGridOptions(this.gridOptions),I.properties=N.map(ee=>ee.type),N.forEach(ee=>{rd(this,`Updated property ${ee.type} from`,ee.previousValue," to ",ee.currentValue),this.propEventSvc.dispatchEvent(ee)})}addPropertyEventListener(i,o){this.propEventSvc.addEventListener(i,o)}removePropertyEventListener(i,o){this.propEventSvc.removeEventListener(i,o)}getDomDataKey(){return this.domDataKey}getGridCommonParams(){return{api:this.api,context:this.gridOptionsContext}}addGridCommonParams(i){let o=i;return o.api=this.api,o.context=this.gridOptionsContext,o}assertModuleRegistered(i,o){let v=Array.isArray(i)?i.some(I=>this.isModuleRegistered(I)):this.isModuleRegistered(i);return v||aa(200,He(ge({},this.getModuleErrorParams()),{moduleName:i,reasonOrId:o})),v}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:co(),rowModelType:this.get("rowModelType")}}isModuleRegistered(i){return Ma(i,this.gridId,this.get("rowModelType"))}};function wM(i){return`<div class="ag-cell-label-container" role="presentation">
        <span data-ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>
        <span data-ref="eFilterButton" class="ag-header-icon ag-header-cell-filter-button" aria-hidden="true"></span>
        <div data-ref="eLabel" class="ag-header-cell-label" role="presentation">
            <span data-ref="eText" class="ag-header-cell-text"></span>
            <span data-ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>
            ${i?'<ag-sort-indicator data-ref="eSortIndicator"></ag-sort-indicator>':""}
        </div>
    </div>`}var yp=class extends cn{constructor(){super(...arguments),this.eFilter=fi,this.eFilterButton=fi,this.eSortIndicator=fi,this.eMenu=fi,this.eLabel=fi,this.eText=fi,this.eSortOrder=fi,this.eSortAsc=fi,this.eSortDesc=fi,this.eSortMixed=fi,this.eSortNone=fi,this.isLoadingInnerComponent=!1}refresh(i){let o=this.params;return this.params=i,this.workOutTemplate()!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||i.enableSorting!=this.currentSort||this.currentSuppressMenuHide!=null&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||o.enableFilterButton!=i.enableFilterButton||o.enableFilterIcon!=i.enableFilterIcon?!1:(this.setDisplayName(i),!0)}workOutTemplate(){var I;let{params:i,beans:o}=this,v=(I=i.template)!=null?I:wM(!!o.sortSvc);return v!=null&&v.trim?v.trim():v}init(i){this.params=i;let{sortSvc:o,touchSvc:v,userCompFactory:I}=this.beans;this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate,o?[o.getSortIndicatorSelector()]:void 0),v==null||v.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(I,i),this.setDisplayName(i)}workOutInnerHeaderComponent(i,o){let v=gx(i,o,o);v&&(this.isLoadingInnerComponent=!0,v.newAgStackInstance().then(I=>{this.isLoadingInnerComponent=!1,I&&(this.isAlive()?(this.innerHeaderComponent=I,this.eText.appendChild(I.getGui())):this.destroyBean(I))}))}setDisplayName(i){let{displayName:o}=i,v=this.currentDisplayName;if(this.currentDisplayName=o,v===o||this.innerHeaderComponent||this.isLoadingInnerComponent)return;let I=yl(o,!0);this.eText.innerText=I}addInIcon(i,o,v){if(o==null)return;let I=ma(i,this.beans,v);I&&o.appendChild(I)}workOutShowMenu(){var i;return this.params.enableMenu&&!!((i=this.beans.menuSvc)!=null&&i.isHeaderMenuButtonEnabled())}shouldSuppressMenuHide(){var i;return!!((i=this.beans.menuSvc)!=null&&i.isHeaderMenuButtonAlwaysShowEnabled())}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){xc(this.eMenu),this.eMenu=void 0;return}let{gos:i,eMenu:o,params:v,currentSuppressMenuHide:I}=this,N=jo(i);this.addInIcon(N?"menu":"menuAlt",o,v.column),o.classList.toggle("ag-header-menu-icon",!N),this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedElementListeners(o,{click:()=>v.showColumnMenu(o)}),o.classList.toggle("ag-header-menu-always-show",I)}onMenuKeyboardShortcut(i){var le,we,Ae;let{params:o,gos:v,beans:I,eMenu:N,eFilterButton:W}=this,Z=o.column,ee=jo(v);if(i&&!ee){if((le=I.menuSvc)!=null&&le.isFilterMenuInHeaderEnabled(Z))return o.showFilter((we=W!=null?W:N)!=null?we:this.getGui()),!0}else if(o.enableMenu)return o.showColumnMenu((Ae=N!=null?N:W)!=null?Ae:this.getGui()),!0;return!1}setupSort(){let{sortSvc:i}=this.beans;if(!i)return;let{enableSorting:o,column:v}=this.params;if(this.currentSort=o,!this.eSortIndicator){this.eSortIndicator=this.createBean(i.createSortIndicator(!0));let{eSortIndicator:I,eSortOrder:N,eSortAsc:W,eSortDesc:Z,eSortMixed:ee,eSortNone:le}=this;I.attachCustomElements(N,W,Z,ee,le)}this.eSortIndicator.setupSort(v),this.currentSort&&i.setupHeader(this,v,this.eLabel)}setupFilterIcon(){let{eFilter:i,params:o}=this;i&&this.configureFilter(o.enableFilterIcon,i,this.onFilterChangedIcon.bind(this),"filterActive")}setupFilterButton(){let{eFilterButton:i,params:o}=this;if(!i)return;this.configureFilter(o.enableFilterButton,i,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(i,{click:()=>o.showFilter(i)}):this.eFilterButton=void 0}configureFilter(i,o,v,I){if(!i)return xc(o),!1;let N=this.params.column;return this.addInIcon(I,o,N),this.addManagedListeners(N,{filterChanged:v}),v(),!0}onFilterChangedIcon(){let i=this.params.column.isFilterActive();Vn(this.eFilter,i,{skipAriaHidden:!0})}onFilterChangedButton(){let i=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",i)}getAnchorElementForMenu(i){var I,N;let{eFilterButton:o,eMenu:v}=this;return i?(I=o!=null?o:v)!=null?I:this.getGui():(N=v!=null?v:o)!=null?N:this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent&&(this.destroyBean(this.innerHeaderComponent),this.innerHeaderComponent=void 0)}},tS=class extends cn{constructor(){super(`<div class="ag-header-group-cell-label" role="presentation">
            <span data-ref="agLabel" class="ag-header-group-text" role="presentation"></span>
            <span data-ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>
            <span data-ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>
        </div>`),this.agOpened=fi,this.agClosed=fi,this.agLabel=fi,this.isLoadingInnerComponent=!1}init(i){let{userCompFactory:o}=this.beans;this.params=i,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(o,i),this.setupLabel(i),this.addGroupExpandIcon(i),this.setupExpandIcons()}checkWarnings(){this.params.template&&ii(89)}workOutInnerHeaderGroupComponent(i,o){let v=Ho(i,o,o);v&&(this.isLoadingInnerComponent=!0,v.newAgStackInstance().then(I=>{this.isLoadingInnerComponent=!1,I&&(this.isAlive()?(this.innerHeaderGroupComponent=I,this.agLabel.appendChild(I.getGui())):this.destroyBean(I))}))}setupExpandIcons(){let{agOpened:i,agClosed:o,params:{columnGroup:v},beans:I}=this;this.addInIcon("columnGroupOpened",i),this.addInIcon("columnGroupClosed",o);let N=le=>{if(Ri(le))return;let we=!v.isExpanded();I.colGroupSvc.setColumnGroupOpened(v.getProvidedColumnGroup(),we,"uiColumnExpanded")};this.addTouchAndClickListeners(I,o,N),this.addTouchAndClickListeners(I,i,N);let W=le=>{ur(le)};this.addManagedElementListeners(o,{dblclick:W}),this.addManagedElementListeners(i,{dblclick:W}),this.addManagedElementListeners(this.getGui(),{dblclick:N}),this.updateIconVisibility();let Z=v.getProvidedColumnGroup(),ee=this.updateIconVisibility.bind(this);this.addManagedListeners(Z,{expandedChanged:ee,expandableChanged:ee})}addTouchAndClickListeners(i,o,v){var I;(I=i.touchSvc)==null||I.setupForHeaderGroup(this,o,v),this.addManagedElementListeners(o,{click:v})}updateIconVisibility(){let{agOpened:i,agClosed:o,params:{columnGroup:v}}=this;if(v.isExpandable()){let I=v.isExpanded();Vn(i,I),Vn(o,!I)}else Vn(i,!1),Vn(o,!1)}addInIcon(i,o){let v=ma(i,this.beans,null);v&&o.appendChild(v)}addGroupExpandIcon(i){if(!i.columnGroup.isExpandable()){let{agOpened:o,agClosed:v}=this;Vn(o,!1),Vn(v,!1);return}}setupLabel(i){var N;let{displayName:o,columnGroup:v}=i,I=this.innerHeaderGroupComponent||this.isLoadingInnerComponent;if(mi(o)&&!I){let W=yl(o,!0);this.agLabel.textContent=W}this.addOrRemoveCssClass("ag-sticky-label",!((N=v.getColGroupDef())!=null&&N.suppressStickyLabel))}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},hT={moduleName:"ColumnHeaderComp",version:ri,userComponents:{agColumnHeader:yp},icons:{menu:"menu",menuAlt:"menu-alt"}},xM={moduleName:"ColumnGroupHeaderComp",version:ri,userComponents:{agColumnGroupHeader:tS},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},Db={moduleName:"AnimationFrame",version:ri,beans:[KA]},Vc=class extends jt{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(i,o){this.mockContextMenu(i,i.eBodyViewport,o)}mockHeaderContextMenu(i,o){this.mockContextMenu(i,i.eGui,o)}mockRowContextMenu(i){if(!na())return;let o=(v,I,N)=>{var ee,le;let{rowCtrl:W,cellCtrl:Z}=i.getControlsForEventTarget((ee=N==null?void 0:N.target)!=null?ee:null);(le=this.beans.contextMenuSvc)==null||le.handleContextMenuMouseEvent(void 0,N,W,Z)};this.mockContextMenu(i,i.element,o)}handleCellDoubleClick(i,o){return(()=>{if(!na()||_a("dblclick"))return!1;let I=new Date().getTime(),N=I-i.lastIPadMouseClickEvent<200;return i.lastIPadMouseClickEvent=I,N})()?(i.onCellDoubleClicked(o),o.preventDefault(),!0):!1}setupForHeader(i){let{gos:o,sortSvc:v}=this.beans;if(o.get("suppressTouch"))return;let{params:I,eMenu:N,eFilterButton:W}=i,Z=new fs(i.getGui(),!0),ee=i.shouldSuppressMenuHide(),le=ee&&mi(N),we=le?new fs(N,!0):Z;if(I.enableMenu){let Ae=le?"tap":"longTap",Ee=Ve=>I.showColumnMenuAfterMouseClick(Ve.touchStart);i.addManagedListeners(we,{[Ae]:Ee})}if(I.enableSorting){let Ae=Ee=>{let Ve=Ee.touchStart.target;ee&&(N!=null&&N.contains(Ve)||W!=null&&W.contains(Ve))||v==null||v.progressSort(I.column,!1,"uiColumnSorted")};i.addManagedListeners(Z,{tap:Ae})}if(I.enableFilterButton&&W){let Ae=new fs(W,!0);i.addManagedListeners(Ae,{tap:()=>I.showFilter(W)}),i.addDestroyFunc(()=>Ae.destroy())}i.addDestroyFunc(()=>Z.destroy()),le&&i.addDestroyFunc(()=>we.destroy())}setupForHeaderGroup(i,o,v){let I=new fs(o,!0);i.addManagedListeners(I,{tap:v}),i.addDestroyFunc(()=>I.destroy())}mockContextMenu(i,o,v){if(!na())return;let I=new fs(o),N=W=>{v(void 0,W.touchStart,W.touchEvent)};i.addManagedListeners(I,{longTap:N}),i.addDestroyFunc(()=>I.destroy())}},lg={moduleName:"Touch",version:ri,beans:[Vc]},bp=class extends jt{constructor(){super(...arguments),this.beanName="cellNavigation"}getNextCellToFocus(i,o,v=!1){return v?this.getNextCellToFocusWithCtrlPressed(i,o):this.getNextCellToFocusWithoutCtrlPressed(i,o)}getNextCellToFocusWithCtrlPressed(i,o){let v=i===Bt.UP,I=i===Bt.DOWN,N=i===Bt.LEFT,W,Z,{pageBounds:ee,gos:le,visibleCols:we}=this.beans;if(v||I)Z=v?ee.getFirstRow():ee.getLastRow(),W=o.column;else{let Ae=we.allCols,Ee=le.get("enableRtl");Z=o.rowIndex,W=N!==Ee?Ae[0]:Yn(Ae)}return{rowIndex:Z,rowPinned:null,column:W}}getNextCellToFocusWithoutCtrlPressed(i,o){let v=o,I=!1;for(;!I;){switch(i){case Bt.UP:v=this.getCellAbove(v);break;case Bt.DOWN:v=this.getCellBelow(v);break;case Bt.RIGHT:v=this.gos.get("enableRtl")?this.getCellToLeft(v):this.getCellToRight(v);break;case Bt.LEFT:v=this.gos.get("enableRtl")?this.getCellToRight(v):this.getCellToLeft(v);break;default:v=null,ii(8,{key:i});break}v?I=this.isCellGoodToFocusOn(v):I=!0}return v}isCellGoodToFocusOn(i){let o=i.column,v,{pinnedRowModel:I,rowModel:N}=this.beans;switch(i.rowPinned){case"top":v=I==null?void 0:I.getPinnedTopRow(i.rowIndex);break;case"bottom":v=I==null?void 0:I.getPinnedBottomRow(i.rowIndex);break;default:v=N.getRow(i.rowIndex);break}return v?!this.isSuppressNavigable(o,v):!1}getCellToLeft(i){if(!i)return null;let o=this.beans.visibleCols.getColBefore(i.column);return o?{rowIndex:i.rowIndex,column:o,rowPinned:i.rowPinned}:null}getCellToRight(i){if(!i)return null;let o=this.beans.visibleCols.getColAfter(i.column);return o?{rowIndex:i.rowIndex,column:o,rowPinned:i.rowPinned}:null}getRowBelow(i){let o=i.rowIndex,v=i.rowPinned,I=!1,{pageBounds:N,pinnedRowModel:W,rowModel:Z}=this.beans;if(this.isLastRowInContainer(i))switch(v){case"bottom":return null;case"top":return Z.isRowsToRender()?{rowIndex:N.getFirstRow(),rowPinned:null}:W!=null&&W.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return W!=null&&W.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}else v&&(I=!0);let ee=Z.getRow(i.rowIndex),le=I?void 0:this.getNextStickyPosition(ee);return le||{rowIndex:o+1,rowPinned:v}}getNextStickyPosition(i,o){let{gos:v,rowRenderer:I}=this.beans;if(!Mi(v)||!i||!i.sticky)return;let N=I.getStickyTopRowCtrls().some(we=>we.rowNode.rowIndex===i.rowIndex),W=[];N?W=[...I.getStickyTopRowCtrls()].sort((we,Ae)=>we.rowNode.rowIndex-Ae.rowNode.rowIndex):W=[...I.getStickyBottomRowCtrls()].sort((we,Ae)=>Ae.rowNode.rowIndex-we.rowNode.rowIndex);let Z=o?-1:1,ee=W.findIndex(we=>we.rowNode.rowIndex===i.rowIndex),le=W[ee+Z];if(le)return{rowIndex:le.rowNode.rowIndex,rowPinned:null}}getCellBelow(i){if(!i)return null;let o=this.getRowBelow(i);return o?{rowIndex:o.rowIndex,column:i.column,rowPinned:o.rowPinned}:null}isLastRowInContainer(i){var Z,ee;let o=i.rowPinned,v=i.rowIndex,{pinnedRowModel:I,pageBounds:N}=this.beans;return o==="top"?((Z=I==null?void 0:I.getPinnedTopRowCount())!=null?Z:-1)<=v:o==="bottom"?((ee=I==null?void 0:I.getPinnedBottomRowCount())!=null?ee:-1)<=v:N.getLastRow()<=v}getRowAbove(i){let o=i.rowIndex,v=i.rowPinned,{pageBounds:I,pinnedRowModel:N,rowModel:W}=this.beans,Z=v?o===0:o===I.getFirstRow(),ee=!1,le=()=>{var Ve;return{rowIndex:(Ve=N==null?void 0:N.getPinnedTopRowCount())!=null?Ve:-1,rowPinned:"top"}};if(Z)return v==="top"?null:v&&W.isRowsToRender()?{rowIndex:I.getLastRow(),rowPinned:null}:N!=null&&N.isRowsToRender("top")?le():null;v&&(ee=!0);let we=W.getRow(i.rowIndex),Ae=ee?void 0:this.getNextStickyPosition(we,!0);return Ae||{rowIndex:o-1,rowPinned:v}}getCellAbove(i){if(!i)return null;let o=this.getRowAbove({rowIndex:i.rowIndex,rowPinned:i.rowPinned});return o?{rowIndex:o.rowIndex,column:i.column,rowPinned:o.rowPinned}:null}getNextTabbedCell(i,o){return o?this.getNextTabbedCellBackwards(i):this.getNextTabbedCellForwards(i)}getNextTabbedCellForwards(i){var ee;let{visibleCols:o,pagination:v}=this.beans,I=o.allCols,N=i.rowIndex,W=i.rowPinned,Z=o.getColAfter(i.column);if(!Z){Z=I[0];let le=this.getRowBelow(i);if(Oa(le)||!le.rowPinned&&!((ee=v==null?void 0:v.isRowInPage(le))==null||ee))return null;N=le?le.rowIndex:null,W=le?le.rowPinned:null}return{rowIndex:N,column:Z,rowPinned:W}}getNextTabbedCellBackwards(i){var ee;let{visibleCols:o,pagination:v}=this.beans,I=o.allCols,N=i.rowIndex,W=i.rowPinned,Z=o.getColBefore(i.column);if(!Z){Z=Yn(I);let le=this.getRowAbove({rowIndex:i.rowIndex,rowPinned:i.rowPinned});if(Oa(le)||!le.rowPinned&&!((ee=v==null?void 0:v.isRowInPage(le))==null||ee))return null;N=le?le.rowIndex:null,W=le?le.rowPinned:null}return{rowIndex:N,column:Z,rowPinned:W}}isSuppressNavigable(i,o){let{suppressNavigable:v}=i.colDef;if(typeof v=="boolean")return v;if(typeof v=="function"){let I=i.createColumnFunctionCallbackParams(o);return v(I)}return!1}};function MM(i){return i.focusSvc.getFocusedCell()}function Cp(i){return i.focusSvc.clearFocusedCell()}function iS(i,o,v,I){i.focusSvc.setFocusedCell({rowIndex:o,column:v,rowPinned:I,forceBrowserFocus:!0})}function Hm(i,o){var v,I;return(I=(v=i.navigation)==null?void 0:v.tabToNextCell(!1,o))!=null?I:!1}function GD(i,o){var v,I;return(I=(v=i.navigation)==null?void 0:v.tabToNextCell(!0,o))!=null?I:!1}function Eb(i,o,v=!1){var N;let I=(N=i.headerNavigation)==null?void 0:N.getHeaderPositionForColumn(o,v);I&&i.focusSvc.focusHeaderPosition({headerPosition:I})}var gT=class extends jt{constructor(){super(),this.beanName="navigation",this.onPageDown=Dy(this.onPageDown,100),this.onPageUp=Dy(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.gridBodyCon=i.gridBodyCtrl})}handlePageScrollingKey(i,o=!1){let v=i.key,I=i.altKey,N=i.ctrlKey||i.metaKey,W=!!this.beans.rangeSvc&&i.shiftKey,Z=Ur(this.gos,i),ee=!1;switch(v){case Bt.PAGE_HOME:case Bt.PAGE_END:!N&&!I&&(this.onHomeOrEndKey(v),ee=!0);break;case Bt.LEFT:case Bt.RIGHT:case Bt.UP:case Bt.DOWN:if(!Z)return!1;N&&!I&&!W&&(this.onCtrlUpDownLeftRight(v,Z),ee=!0);break;case Bt.PAGE_DOWN:case Bt.PAGE_UP:!N&&!I&&(ee=this.handlePageUpDown(v,Z,o));break}return ee&&i.preventDefault(),ee}handlePageUpDown(i,o,v){return v&&(o=this.beans.focusSvc.getFocusedCell()),o?(i===Bt.PAGE_UP?this.onPageUp(o):this.onPageDown(o),!0):!1}navigateTo(i){let{scrollIndex:o,scrollType:v,scrollColumn:I,focusIndex:N,focusColumn:W}=i,{scrollFeature:Z}=this.gridBodyCon;mi(I)&&!I.isPinned()&&Z.ensureColumnVisible(I),mi(o)&&Z.ensureIndexVisible(o,v),i.isAsync||Z.ensureIndexVisible(N);let{focusSvc:ee,rangeSvc:le}=this.beans;ee.setFocusedCell({rowIndex:N,column:W,rowPinned:null,forceBrowserFocus:!0}),le==null||le.setRangeToCell({rowIndex:N,rowPinned:null,column:W})}onPageDown(i){let o=this.beans,v=Tv(o),I=this.getViewportHeight(),{pageBounds:N,rowModel:W,rowAutoHeight:Z}=o,ee=N.getPixelOffset(),le=v.top+I,we=W.getRowIndexAtPixel(le+ee);Z!=null&&Z.active?this.navigateToNextPageWithAutoHeight(i,we):this.navigateToNextPage(i,we)}onPageUp(i){let o=this.beans,v=Tv(o),{pageBounds:I,rowModel:N,rowAutoHeight:W}=o,Z=I.getPixelOffset(),ee=v.top,le=N.getRowIndexAtPixel(ee+Z);W!=null&&W.active?this.navigateToNextPageWithAutoHeight(i,le,!0):this.navigateToNextPage(i,le,!0)}navigateToNextPage(i,o,v=!1){let{pageBounds:I,rowModel:N}=this.beans,W=this.getViewportHeight(),Z=I.getFirstRow(),ee=I.getLastRow(),le=I.getPixelOffset(),we=N.getRow(i.rowIndex),Ae=v?(we==null?void 0:we.rowHeight)-W-le:W-le,Ee=(we==null?void 0:we.rowTop)+Ae,Ve=N.getRowIndexAtPixel(Ee+le);if(Ve===i.rowIndex){let gt=v?-1:1;o=Ve=i.rowIndex+gt}let Je;v?(Je="bottom",Ve<Z&&(Ve=Z),o<Z&&(o=Z)):(Je="top",Ve>ee&&(Ve=ee),o>ee&&(o=ee)),this.isRowTallerThanView(N.getRow(Ve))&&(o=Ve,Je="top"),this.navigateTo({scrollIndex:o,scrollType:Je,scrollColumn:null,focusIndex:Ve,focusColumn:i.column})}navigateToNextPageWithAutoHeight(i,o,v=!1){this.navigateTo({scrollIndex:o,scrollType:v?"bottom":"top",scrollColumn:null,focusIndex:o,focusColumn:i.column}),setTimeout(()=>{let I=this.getNextFocusIndexForAutoHeight(i,v);this.navigateTo({scrollIndex:o,scrollType:v?"bottom":"top",scrollColumn:null,focusIndex:I,focusColumn:i.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(i,o=!1){var we;let v=o?-1:1,I=this.getViewportHeight(),{pageBounds:N,rowModel:W}=this.beans,Z=N.getLastRow(),ee=0,le=i.rowIndex;for(;le>=0&&le<=Z;){let Ae=W.getRow(le);if(Ae){let Ee=(we=Ae.rowHeight)!=null?we:0;if(ee+Ee>I)break;ee+=Ee}le+=v}return Math.max(0,Math.min(le,Z))}getViewportHeight(){let i=this.beans,o=Tv(i),v=this.beans.scrollVisibleSvc.getScrollbarWidth(),I=o.bottom-o.top;return i.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(I-=v),I}isRowTallerThanView(i){if(!i)return!1;let o=i.rowHeight;return typeof o!="number"?!1:o>this.getViewportHeight()}onCtrlUpDownLeftRight(i,o){let v=this.beans.cellNavigation.getNextCellToFocus(i,o,!0),{rowIndex:I}=v,N=v.column;this.navigateTo({scrollIndex:I,scrollType:null,scrollColumn:N,focusIndex:I,focusColumn:N})}onHomeOrEndKey(i){let o=i===Bt.PAGE_HOME,{visibleCols:v,pageBounds:I}=this.beans,N=v.allCols,W=o?N[0]:Yn(N),Z=o?I.getFirstRow():I.getLastRow();this.navigateTo({scrollIndex:Z,scrollType:null,scrollColumn:W,focusIndex:Z,focusColumn:W})}onTabKeyDown(i,o){let v=o.shiftKey,I=this.tabToNextCellCommon(i,v,o),N=this.beans,{ctrlsSvc:W,pageBounds:Z,focusSvc:ee,gos:le}=N;if(I!==!1){I?o.preventDefault():I===null&&W.get("gridCtrl").allowFocusForNextCoreContainer(v);return}if(v){let{rowIndex:we,rowPinned:Ae}=i.getRowPosition();(Ae?we===0:we===Z.getFirstRow())&&(le.get("headerHeight")===0||sh(N)?Wr(N,!0,!0):(o.preventDefault(),ee.focusPreviousFromFirstCell(o)))}else i instanceof Rc&&i.focusCell(!0),(!v&&ee.focusOverlay(!1)||Wr(N,v))&&o.preventDefault()}tabToNextCell(i,o){let v=this.beans,{focusSvc:I,rowRenderer:N}=v,W=I.getFocusedCell();if(!W)return!1;let Z=io(v,W);return!Z&&(Z=N.getRowByPosition(W),!Z||!Z.isFullWidth())?!1:!!this.tabToNextCellCommon(Z,i,o)}tabToNextCellCommon(i,o,v){let I=i.editing;if(!I&&i instanceof Rc){let Z=i.rowCtrl;Z&&(I=Z.editing)}let N;return I?this.gos.get("editType")==="fullRow"?N=this.moveToNextEditingRow(i,o,v):N=this.moveToNextEditingCell(i,o,v):N=this.moveToNextCellNotEditing(i,o),N===null?N:N||!!this.beans.focusSvc.focusedHeader}moveToNextEditingCell(i,o,v=null){var W;let I=i.cellPosition;i.eGui.focus(),i.stopEditing();let N=this.findNextCellToFocusOn(I,o,!0);return N===!1?null:N==null?!1:((W=this.beans.editSvc)==null||W.startEditing(N,null,!0,v),N.focusCell(!1),!0)}moveToNextEditingRow(i,o,v=null){let I=i.cellPosition,N=this.findNextCellToFocusOn(I,o,!0);if(N===!1)return null;if(N==null)return!1;let W=N.cellPosition,Z=this.isCellEditable(I),ee=this.isCellEditable(W),le=W&&I.rowIndex===W.rowIndex&&I.rowPinned===W.rowPinned,{editSvc:we,rowEditSvc:Ae}=this.beans;if(Z&&(we==null||we.setFocusOutOnEditor(i)),!le){let Ee=i.rowCtrl;we==null||we.stopRowEditing(Ee);let Ve=N.rowCtrl;Ae==null||Ae.startEditing(Ve,void 0,void 0,v)}return ee?(we==null||we.setFocusInOnEditor(N),N.focusCell()):N.focusCell(!0),!0}moveToNextCellNotEditing(i,o){let v=this.beans.visibleCols.allCols,I;i instanceof g0?I=He(ge({},i.getRowPosition()),{column:o?v[0]:Yn(v)}):I=i.cellPosition;let N=this.findNextCellToFocusOn(I,o,!1);if(N===!1)return null;if(N instanceof Rc)N.focusCell(!0);else if(N)return this.tryToFocusFullWidthRow(N.getRowPosition(),o);return mi(N)}findNextCellToFocusOn(i,o,v){let I=i,N=this.beans,{cellNavigation:W,gos:Z,focusSvc:ee,rowRenderer:le,rangeSvc:we}=N;for(;;){i!==I&&(i=I),o||(I=this.getLastCellOfColSpan(I)),I=W.getNextTabbedCell(I,o);let Ae=Z.getCallback("tabToNextCell");if(mi(Ae)){let gt=Ae({backwards:o,editing:v,previousCellPosition:i,nextCellPosition:I||null});if(gt===!0)I=i;else{if(gt===!1)return!1;I={rowIndex:gt.rowIndex,column:gt.column,rowPinned:gt.rowPinned}}}if(!I)return null;if(I.rowIndex<0){let Je=Aa(N);return ee.focusHeaderPosition({headerPosition:{headerRowIndex:Je+I.rowIndex,column:I.column},fromCell:!0}),null}let Ee=Z.get("editType")==="fullRow";if(v&&!Ee&&!this.isCellEditable(I))continue;this.ensureCellVisible(I);let Ve=io(N,I);if(!Ve){let Je=le.getRowByPosition(I);if(!Je||!Je.isFullWidth()||v)continue;return Je}if(!W.isSuppressNavigable(Ve.column,Ve.rowNode))return we==null||we.setRangeToCell(I),Ve}}isCellEditable(i){let o=this.lookupRowNodeForCell(i);return o?i.column.isCellEditable(o):!1}lookupRowNodeForCell({rowIndex:i,rowPinned:o}){let{pinnedRowModel:v,rowModel:I}=this.beans;return o==="top"?v==null?void 0:v.getPinnedTopRow(i):o==="bottom"?v==null?void 0:v.getPinnedBottomRow(i):I.getRow(i)}navigateToNextCell(i,o,v,I){let N=v,W=!1,Z=this.beans,{cellNavigation:ee,focusSvc:le,gos:we}=Z;for(;N&&(N===v||!this.isValidNavigateCell(N));)we.get("enableRtl")?o===Bt.LEFT&&(N=this.getLastCellOfColSpan(N)):o===Bt.RIGHT&&(N=this.getLastCellOfColSpan(N)),N=ee.getNextCellToFocus(o,N),W=Oa(N);if(W&&i&&i.key===Bt.UP&&(N={rowIndex:-1,rowPinned:null,column:v.column}),I){let Ee=we.getCallback("navigateToNextCell");if(mi(Ee)){let Je=Ee({key:o,previousCellPosition:v,nextCellPosition:N||null,event:i});mi(Je)?N={rowPinned:Je.rowPinned,rowIndex:Je.rowIndex,column:Je.column}:N=null}}if(!N)return;if(N.rowIndex<0){let Ee=Aa(Z);le.focusHeaderPosition({headerPosition:{headerRowIndex:Ee+N.rowIndex,column:v.column},event:i||void 0,fromCell:!0});return}let Ae=this.getNormalisedPosition(N);Ae?this.focusPosition(Ae):this.tryToFocusFullWidthRow(N)}getNormalisedPosition(i){this.ensureCellVisible(i);let o=io(this.beans,i);return o?(i=o.cellPosition,this.ensureCellVisible(i),i):null}tryToFocusFullWidthRow(i,o){let{visibleCols:v,rowRenderer:I,focusSvc:N,eventSvc:W}=this.beans,Z=v.allCols,ee=I.getRowByPosition(i);if(!ee||!ee.isFullWidth())return!1;let le=N.getFocusedCell(),we={rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:i.column||(o?Yn(Z):Z[0])};this.focusPosition(we);let Ae=o==null?le!=null&&s0(we,le):o;return W.dispatchEvent({type:"fullWidthRowFocused",rowIndex:we.rowIndex,rowPinned:we.rowPinned,column:we.column,isFullWidthCell:!0,fromBelow:Ae}),!0}focusPosition(i){let{focusSvc:o,rangeSvc:v}=this.beans;o.setFocusedCell({rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned,forceBrowserFocus:!0}),v==null||v.setRangeToCell(i)}isValidNavigateCell(i){return!!nv(this.beans,i)}getLastCellOfColSpan(i){let o=io(this.beans,i);if(!o)return i;let v=o.getColSpanningList();return v.length===1?i:{rowIndex:i.rowIndex,column:Yn(v),rowPinned:i.rowPinned}}ensureCellVisible(i){let o=Mi(this.gos),v=this.beans.rowModel.getRow(i.rowIndex),I=o&&(v==null?void 0:v.sticky),{scrollFeature:N}=this.gridBodyCon;!I&&Oa(i.rowPinned)&&N.ensureIndexVisible(i.rowIndex),i.column.isPinned()||N.ensureColumnVisible(i.column)}};function Tv(i){return i.ctrlsSvc.getScrollFeature().getVScrollPosition()}var VD={moduleName:"KeyboardNavigation",version:ri,beans:[gT,bp,cT],apiFunctions:{getFocusedCell:MM,clearFocusedCell:Cp,setFocusedCell:iS,setFocusedHeader:Eb,tabToNextCell:Hm,tabToPreviousCell:GD}},kM=class extends jt{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(i){var o,v,I,N,W;this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:(o=i==null?void 0:i.animate)!=null?o:!1,newData:(v=i==null?void 0:i.newData)!=null?v:!1,newPage:(I=i==null?void 0:i.newPage)!=null?I:!1,newPageSize:(N=i==null?void 0:i.newPageSize)!=null?N:!1,keepRenderedRows:(W=i==null?void 0:i.keepRenderedRows)!=null?W:!1})}calculatePages(){let{pageBounds:i,pagination:o,rowModel:v}=this.beans;o?o.calculatePages():i.calculateBounds(0,v.getRowCount()-1)}},uL=class extends jt{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){var i,o;return(o=(i=this.topRowBounds)==null?void 0:i.rowIndex)!=null?o:-1}getLastRow(){var i,o;return(o=(i=this.bottomRowBounds)==null?void 0:i.rowIndex)!=null?o:-1}getCurrentPageHeight(){let{topRowBounds:i,bottomRowBounds:o}=this;return!i||!o?0:Math.max(o.rowTop+o.rowHeight-i.rowTop,0)}getCurrentPagePixelRange(){var N;let{topRowBounds:i,bottomRowBounds:o}=this,v=(N=i==null?void 0:i.rowTop)!=null?N:0,I=o?o.rowTop+o.rowHeight:0;return{pageFirstPixel:v,pageLastPixel:I}}calculateBounds(i,o){let{rowModel:v}=this.beans,I=v.getRowBounds(i);I&&(I.rowIndex=i),this.topRowBounds=I;let N=v.getRowBounds(o);N&&(N.rowIndex=o),this.bottomRowBounds=N,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){var o,v;let i=(v=(o=this.topRowBounds)==null?void 0:o.rowTop)!=null?v:0;this.pixelOffset!==i&&(this.pixelOffset=i,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},hL=".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{display:inline-block;min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}",gL=class extends jt{constructor(i,o){super(),this.element=i,this.isLeft=o,this.getWidth=o?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[`${this.isLeft?"left":"right"}PinnedWidthChanged`]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){let i=this.getWidth(),o=i>0;Vn(this.element,o),Mc(this.element,i)}},Wm=class extends jt{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,o=>{this.gridBodyCtrl=o.gridBodyCtrl});let i=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:i,displayedColumnsWidthChanged:i}),this.addManagedPropertyListener("domLayout",i)}checkContainerWidths(){let{gos:i,visibleCols:o,eventSvc:v}=this.beans,I=lo(i,"print"),N=I?0:o.getColsLeftWidth(),W=I?0:o.getDisplayedColumnsRightWidth();N!=this.leftWidth&&(this.leftWidth=N,v.dispatchEvent({type:"leftPinnedWidthChanged"})),W!=this.rightWidth&&(this.rightWidth=W,v.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){let i=this.gridBodyCtrl.eBodyViewport,o=cr(i);if(o<=50)return;let v=this.getPinnedColumnsOverflowingViewport(o-50),I=this.gos.getCallback("processUnpinnedColumns");v.length&&(I&&(v=I({columns:v,viewportWidth:o})),this.setColsPinned(v,null,"viewportSizeFeature"))}createPinnedWidthFeature(i,o){return new gL(i,o)}setColsPinned(i,o,v){let{colModel:I,colAnimation:N,visibleCols:W,gos:Z}=this.beans;if(!I.cols||!(i!=null&&i.length))return;if(lo(Z,"print")){ii(37);return}N==null||N.start();let ee;o===!0||o==="left"?ee="left":o==="right"?ee="right":ee=null;let le=[];i.forEach(we=>{if(!we)return;let Ae=I.getCol(we);Ae&&Ae.getPinned()!==ee&&(this.setColPinned(Ae,ee),le.push(Ae))}),le.length&&(W.refresh(v),QC(this.eventSvc,le,v)),N==null||N.finish()}initCol(i){let{pinned:o,initialPinned:v}=i.colDef;o!==void 0?this.setColPinned(i,o):this.setColPinned(i,v)}setColPinned(i,o){o===!0||o==="left"?i.pinned="left":o==="right"?i.pinned="right":i.pinned=null,i.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(i){let{scrollVisibleSvc:o}=this.beans;if(i.pinned==null)return;let v=i.pinned==="left",I=i.pinned==="right";i.hidden=!0;let N=()=>{let W=v?this.leftWidth:this.rightWidth;if(W==null)return;let Z=W==0,ee=i.hidden!==Z,le=this.gos.get("enableRtl"),we=o.getScrollbarWidth(),Ee=o.verticalScrollShowing&&(le&&v||!le&&I)?W+we:W;i.comp.setPinnedContainerWidth(`${Ee}px`),i.comp.setDisplayed(!Z),ee&&(i.hidden=Z,i.refresh())};i.addManagedEventListeners({leftPinnedWidthChanged:N,rightPinnedWidthChanged:N,scrollVisibilityChanged:N,scrollbarWidthChanged:N})}getHeaderResizeDiff(i,o){if(o.getPinned()){let{leftWidth:I,rightWidth:N}=this,W=cr(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(I+N+i>W)if(W>I+N)i=W-I-N;else return 0}return i}getPinnedColumnsOverflowingViewport(i){var Ve,Je;let o=(Ve=this.rightWidth)!=null?Ve:0,v=(Je=this.leftWidth)!=null?Je:0,I=o+v;if(I<i)return[];let{visibleCols:N}=this.beans,W=[...N.leftCols],Z=[...N.rightCols],ee=0,le=0,we=0,Ae=[],Ee=I-we-i;for(;(le<W.length||ee<Z.length)&&Ee>0;){if(ee<Z.length){let gt=Z[ee++];Ee-=gt.getActualWidth(),Ae.push(gt)}if(le<W.length&&Ee>0){let gt=W[le++];Ee-=gt.getActualWidth(),Ae.push(gt)}}return Ae}},nS={moduleName:"PinnedColumn",version:ri,beans:[Wm],css:[hL]},Ys=class extends jt{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=dr(this,this.updateAnnouncement.bind(this),200)}postConstruct(){let i=this.beans,o=eo(i),v=this.descriptionContainer=o.createElement("div");v.classList.add("ag-aria-description-container"),ne(v,"polite"),fe(v,"additions text"),ce(v,!0),i.eGridDiv.appendChild(v)}announceValue(i,o){this.pendingAnnouncements.set(o,i),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;let i=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{if(this.isAlive()&&this.descriptionContainer){let o=i;this.lastAnnouncement===o&&(o=`${o}.`),this.lastAnnouncement=o,this.descriptionContainer.textContent=o}},50)}destroy(){var o;super.destroy();let{descriptionContainer:i}=this;i&&(Jn(i),(o=i.parentElement)==null||o.removeChild(i)),this.descriptionContainer=null,this.pendingAnnouncements.clear()}},aS={moduleName:"Aria",version:ri,beans:[Ys]};function pL(i){var o;(o=i.overlays)==null||o.showLoadingOverlay()}function jD(i){var o;(o=i.overlays)==null||o.showNoRowsOverlay()}function pT(i){var o;(o=i.overlays)==null||o.hideOverlay()}var HD=".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-overlay-loading-center{background:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);padding:var(--ag-spacing)}",Rv=class extends cn{constructor(){super(`
            <div class="ag-overlay" role="presentation">
                <div class="ag-overlay-panel" role="presentation">
                    <div class="ag-overlay-wrapper" data-ref="eOverlayWrapper" role="presentation"></div>
                </div>
            </div>`),this.eOverlayWrapper=fi,this.activePromise=null,this.activeOverlay=null,this.updateListenerDestroyFunc=null,this.activeCssClass=null,this.elToFocusAfter=null,this.registerCSS(HD)}handleKeyDown(i){if(i.key!==Bt.TAB||i.defaultPrevented||Ri(i))return;let o=this.beans;if(ni(o,this.eOverlayWrapper,!1,i.shiftKey))return;let I=!1;i.shiftKey?I=o.focusSvc.focusGridView(Yn(o.visibleCols.allCols),!0,!1):I=Wr(o,!1),I&&i.preventDefault()}updateLayoutClasses(i,o){let v=this.eOverlayWrapper.classList,{AUTO_HEIGHT:I,NORMAL:N,PRINT:W}=gd;v.toggle(I,o.autoHeight),v.toggle(N,o.normal),v.toggle(W,o.print)}postConstruct(){this.createManagedBean(new Zy(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setOverlayWrapperComp(this),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}setWrapperTypeClass(i){let o=this.eOverlayWrapper.classList;this.activeCssClass&&o.toggle(this.activeCssClass,!1),this.activeCssClass=i,o.toggle(i,!0)}showOverlay(i,o,v,I){if(this.setWrapperTypeClass(o),this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=i,!!i){if(this.setDisplayed(!0,{skipAriaHidden:!0}),v&&this.isGridFocused()){let N=ga(this.beans);N&&!ki(this.beans)&&(this.elToFocusAfter=N)}i.then(N=>{if(this.activePromise!==i){this.activeOverlay!==N&&(this.destroyBean(N),N=null);return}if(this.activePromise=null,!!N){if(this.activeOverlay!==N&&(this.eOverlayWrapper.appendChild(N.getGui()),this.activeOverlay=N,I)){let W=N;this.updateListenerDestroyFunc=this.addManagedPropertyListener(I,({currentValue:Z})=>{var ee;(ee=W.refresh)==null||ee.call(W,this.gos.addGridCommonParams(ge({},Z!=null?Z:{})))})}v&&this.isGridFocused()&&Jd(this.eOverlayWrapper)}})}}updateOverlayWrapperPaddingTop(i){this.eOverlayWrapper.style.setProperty("padding-top",`${i}px`)}destroyActiveOverlay(){var I;this.activePromise=null;let i=this.activeOverlay;if(!i)return;let o=this.elToFocusAfter;this.activeOverlay=null,this.elToFocusAfter=null,o&&!this.isGridFocused()&&(o=null);let v=this.updateListenerDestroyFunc;v&&(v(),this.updateListenerDestroyFunc=null),this.destroyBean(i),Jn(this.eOverlayWrapper),(I=o==null?void 0:o.focus)==null||I.call(o,{preventScroll:!0})}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){let i=ga(this.beans);return!!i&&this.beans.eGridDiv.contains(i)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setOverlayWrapperComp(void 0),super.destroy()}},oS={selector:"AG-OVERLAY-WRAPPER",component:Rv},WD=class extends jt{constructor(){super(...arguments),this.beanName="overlays",this.state=0,this.showInitialOverlay=!0,this.wrapperPadding=0}postConstruct(){this.isClientSide=so(this.gos);let i=()=>this.updateOverlayVisibility();this.addManagedEventListeners({newColumnsLoaded:i,rowDataUpdated:i,gridSizeChanged:this.refreshWrapperPadding.bind(this),rowCountReady:()=>{this.showInitialOverlay=!1,this.updateOverlayVisibility()}}),this.addManagedPropertyListener("loading",i)}setOverlayWrapperComp(i){this.eWrapper=i,this.updateOverlayVisibility()}isVisible(){return this.state!==0&&!!this.eWrapper}isExclusive(){return this.state===1&&!!this.eWrapper}showLoadingOverlay(){this.showInitialOverlay=!1;let i=this.gos,o=i.get("loading");!o&&(o!==void 0||i.get("suppressLoadingOverlay"))||this.doShowLoadingOverlay()}showNoRowsOverlay(){this.showInitialOverlay=!1;let i=this.gos;i.get("loading")||i.get("suppressNoRowsOverlay")||this.doShowNoRowsOverlay()}hideOverlay(){if(this.showInitialOverlay=!1,this.gos.get("loading")){ii(99);return}this.doHideOverlay()}getOverlayWrapperSelector(){return oS}getOverlayWrapperCompClass(){return Rv}updateOverlayVisibility(){if(!this.eWrapper){this.state=0;return}let{state:i,isClientSide:o,beans:{gos:v,colModel:I,rowModel:N}}=this,W=this.gos.get("loading");W!==void 0&&(this.showInitialOverlay=!1),this.showInitialOverlay&&W===void 0&&!v.get("suppressLoadingOverlay")&&(W=!v.get("columnDefs")||!I.ready||!v.get("rowData")&&o),W?i!==1&&this.doShowLoadingOverlay():(this.showInitialOverlay=!1,N.isEmpty()&&!v.get("suppressNoRowsOverlay")&&o?i!==2&&this.doShowNoRowsOverlay():i!==0&&this.doHideOverlay())}doShowLoadingOverlay(){this.eWrapper&&(this.state=1,this.showOverlay(On(this.beans.userCompFactory,{}),"ag-overlay-loading-wrapper","loadingOverlayComponentParams"),this.updateExclusive())}doShowNoRowsOverlay(){this.eWrapper&&(this.state=2,this.showOverlay(ta(this.beans.userCompFactory,{}),"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams"),this.updateExclusive())}doHideOverlay(){this.eWrapper&&(this.state=0,this.eWrapper.hideOverlay(),this.updateExclusive())}showOverlay(i,o,v){var N,W;let I=(N=i==null?void 0:i.newAgStackInstance())!=null?N:null;(W=this.eWrapper)==null||W.showOverlay(I,o,this.isExclusive(),v),this.refreshWrapperPadding()}updateExclusive(){let i=this.exclusive;this.exclusive=this.isExclusive(),this.exclusive!==i&&this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"})}refreshWrapperPadding(){let i=this.eWrapper;if(!i)return;let o=0;if(this.state===2){let v=this.beans.ctrlsSvc.get("gridHeaderCtrl");o=(v==null?void 0:v.headerHeight)||0}else this.wrapperPadding!==0&&(o=0);this.wrapperPadding!==o&&(this.wrapperPadding=o,i.updateOverlayWrapperPaddingTop(o))}},mT={moduleName:"Overlay",version:ri,userComponents:{agLoadingOverlay:Px,agNoRowsOverlay:ab},apiFunctions:{showLoadingOverlay:pL,showNoRowsOverlay:jD,hideOverlay:pT},beans:[WD]},UD=class extends jt{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=Yl(),rd(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;let i=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,o=this.getUiBodyHeight();(i!==this.scrollY||o!==this.uiBodyHeight)&&(this.scrollY=i,this.uiBodyHeight=o,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;let i=this.scrollY/this.maxScrollY,o=i*this.pixelsToShave;rd(this.gos,`RowContainerHeightService - Div Stretch Offset = ${o} (${this.pixelsToShave} * ${i})`),this.setDivStretchOffset(o)}setUiContainerHeight(i){i!==this.uiContainerHeight&&(this.uiContainerHeight=i,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(i){let o=typeof i=="number"?Math.floor(i):null;this.divStretchOffset!==o&&(this.divStretchOffset=o,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(i){this.modelHeight=i,this.stretching=i!=null&&this.maxDivHeight>0&&i>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(i){return i-this.divStretchOffset}getUiBodyHeight(){let i=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return i.bottom-i.top}getScrollPositionForPixel(i){if(this.pixelsToShave<=0)return i;let o=this.modelHeight-this.getUiBodyHeight(),v=i/o;return this.maxScrollY*v}},mL=400,KD=class extends jt{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{let i=()=>{this.getAllCellCtrls().forEach(W=>W.onCellSelectionChanged())},o=()=>{this.getAllCellCtrls().forEach(W=>W.updateRangeBordersIfRangeCount())},v=()=>{this.eventSvc.addEventListener("cellSelectionChanged",i),this.eventSvc.addEventListener("columnMoved",o),this.eventSvc.addEventListener("columnPinned",o),this.eventSvc.addEventListener("columnVisible",o)},I=()=>{this.eventSvc.removeEventListener("cellSelectionChanged",i),this.eventSvc.removeEventListener("columnMoved",o),this.eventSvc.removeEventListener("columnPinned",o),this.eventSvc.removeEventListener("columnVisible",o)};this.addDestroyFunc(()=>I()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{Jo(this.gos)?v():I()}),Jo(this.gos)&&v()}}wireBeans(i){this.pageBounds=i.pageBounds,this.colModel=i.colModel,this.pinnedRowModel=i.pinnedRowModel,this.rowModel=i.rowModel,this.focusSvc=i.focusSvc,this.rowContainerHeight=i.rowContainerHeight,this.ctrlsSvc=i.ctrlsSvc}postConstruct(){this.ctrlsSvc.whenReady(this,i=>{this.gridBodyCtrl=i.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",v=>this.onSuppressCellFocusChanged(v.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:v,previousValue:I})=>{(!I&&v||I&&!v)&&this.redrawRows()});let{stickyRowSvc:i,gos:o}=this.beans;if(i)this.stickyRowFeature=i.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{let v=this.gridBodyCtrl;v.setStickyTopHeight(0),v.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=lo(o,"print"),this.embedFullWidthRows=this.printLayout||o.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){let i=this.getKeepDetailRowsCount(),o=i!=null?i:3;this.cachedRowCtrls=new fT(o)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){var i,o;return(o=(i=this.stickyRowFeature)==null?void 0:i.stickyTopRowCtrls)!=null?o:[]}getStickyBottomRowCtrls(){var i,o;return(o=(i=this.stickyRowFeature)==null?void 0:i.stickyBottomRowCtrls)!=null?o:[]}updateAllRowCtrls(){var I,N;let i=Object.values(this.rowCtrlsByRowIndex),o=Object.values(this.zombieRowCtrls),v=(N=(I=this.cachedRowCtrls)==null?void 0:I.getEntries())!=null?N:[];o.length>0||v.length>0?this.allRowCtrls=[...i,...o,...v]:this.allRowCtrls=i}onCellFocusChanged(i){this.getAllCellCtrls().forEach(o=>o.onCellFocused(i)),this.getFullWidthRowCtrls().forEach(o=>o.onFullWidthRowFocused(i))}onSuppressCellFocusChanged(i){this.getAllCellCtrls().forEach(o=>o.onSuppressCellFocusChanged(i)),this.getFullWidthRowCtrls().forEach(o=>o.onSuppressCellFocusChanged(i))}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:i=>{this.onCellFocusChanged(i)},cellFocusCleared:()=>this.onCellFocusChanged(),flashCells:i=>{let{cellFlashSvc:o}=this.beans;o&&this.getAllCellCtrls().forEach(v=>o.onFlashCells(v,i))},columnHoverChanged:()=>{this.getAllCellCtrls().forEach(i=>i.onColumnHover())},displayedColumnsChanged:()=>{this.getAllCellCtrls().forEach(i=>i.onDisplayedColumnsChanged())},displayedColumnsWidthChanged:()=>{this.printLayout&&this.getAllCellCtrls().forEach(i=>i.onLeftChanged())}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){this.destroyFuncsForColumnListeners.forEach(i=>i()),this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners(),this.colModel.getCols().forEach(o=>{let v=le=>{this.getAllCellCtrls().forEach(we=>{we.column===o&&le(we)})},I=()=>{v(le=>le.onLeftChanged())},N=()=>{v(le=>le.onWidthChanged())},W=()=>{v(le=>le.onFirstRightPinnedChanged())},Z=()=>{v(le=>le.onLastLeftPinnedChanged())},ee=()=>{v(le=>le.onColDefChanged())};o.addEventListener("leftChanged",I),o.addEventListener("widthChanged",N),o.addEventListener("firstRightPinnedChanged",W),o.addEventListener("lastLeftPinnedChanged",Z),o.addEventListener("colDefChanged",ee),this.destroyFuncsForColumnListeners.push(()=>{o.removeEventListener("leftChanged",I),o.removeEventListener("widthChanged",N),o.removeEventListener("firstRightPinnedChanged",W),o.removeEventListener("lastLeftPinnedChanged",Z),o.removeEventListener("colDefChanged",ee)})})}onDomLayoutChanged(){let i=lo(this.gos,"print"),o=i||this.gos.get("embedFullWidthRows"),v=o!==this.embedFullWidthRows||this.printLayout!==i;this.printLayout=i,this.embedFullWidthRows=o,v&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;let i=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(i)}onPageLoaded(i){let o={recycleRows:i.keepRenderedRows,animate:i.animate,newData:i.newData,newPage:i.newPage,onlyBody:!0};this.redrawAfterModelUpdate(o)}getAllCellsNotSpanningForColumn(i){let o=[];return this.getAllRowCtrls().forEach(v=>{var N;let I=(N=v.getCellCtrl(i,!0))==null?void 0:N.eGui;I&&o.push(I)}),o}refreshFloatingRowComps(){this.refreshFloatingRows(this.topRowCtrls,"top"),this.refreshFloatingRows(this.bottomRowCtrls,"bottom")}refreshFloatingRows(i,o){var ee;let{pinnedRowModel:v,beans:I,printLayout:N}=this,W=Object.fromEntries(i.map(le=>[le.rowNode.id,le]));v==null||v.forEachPinnedRow(o,(le,we)=>{let Ae=i[we];Ae&&v.getPinnedRowById(Ae.rowNode.id,o)===void 0&&(Ae.destroyFirstPass(),Ae.destroySecondPass()),le.id in W?(i[we]=W[le.id],delete W[le.id]):i[we]=new g0(le,I,!1,!1,N)});let Z=(ee=o==="top"?v==null?void 0:v.getPinnedTopRowCount():v==null?void 0:v.getPinnedBottomRowCount())!=null?ee:0;i.length=Z}onPinnedRowDataChanged(){let i={recycleRows:!0};this.redrawAfterModelUpdate(i)}redrawRow(i,o=!1){var v,I;if(i.sticky)(v=this.stickyRowFeature)==null||v.refreshStickyNode(i);else if((I=this.cachedRowCtrls)!=null&&I.has(i)){this.cachedRowCtrls.removeRow(i);return}else{let N=W=>{let Z=W[i.rowIndex];Z&&Z.rowNode===i&&(Z.destroyFirstPass(),Z.destroySecondPass(),W[i.rowIndex]=this.createRowCon(i,!1,!1))};switch(i.rowPinned){case"top":N(this.topRowCtrls);break;case"bottom":N(this.bottomRowCtrls);break;default:N(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}o||this.dispatchDisplayedRowsChanged(!1)}redrawRows(i){if(i!=null){i==null||i.forEach(v=>this.redrawRow(v,!0)),this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}getCellToRestoreFocusToAfterRefresh(i){let o=i!=null&&i.suppressKeepFocus?null:this.focusSvc.getFocusCellToUseAfterRefresh();if(o==null)return null;let v=ga(this.beans),I=dm(this.gos,v,hd),N=dm(this.gos,v,tu);return I||N?o:null}redrawAfterModelUpdate(i={}){this.getLockOnRefresh();let o=this.getCellToRestoreFocusToAfterRefresh(i);this.updateContainerHeights(),this.scrollToTopIfNewData(i);let v=!i.domLayoutChanged&&!!i.recycleRows,I=i.animate&&vn(this.gos),N=v?this.getRowsToRecycle():null;v||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();let{stickyRowFeature:W}=this;if(W){W.checkStickyRows();let Z=W.extraTopHeight+W.extraBottomHeight;Z&&this.updateContainerHeights(Z)}this.recycleRows(N,I),this.gridBodyCtrl.updateRowCount(),i.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),o!=null&&this.restoreFocusedCell(o),this.releaseLockOnRefresh()}scrollToTopIfNewData(i){var I;let o=i.newData||i.newPage,v=this.gos.get("suppressScrollOnNewData");o&&!v&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),(I=this.stickyRowFeature)==null||I.resetOffsets())}updateContainerHeights(i=0){let{rowContainerHeight:o}=this;if(this.printLayout){o.setModelHeight(null);return}let v=this.pageBounds.getCurrentPageHeight();v===0&&(v=1),o.setModelHeight(v+i)}getLockOnRefresh(){var i,o;if(this.refreshInProgress)throw new Error(Po(252));this.refreshInProgress=!0,(o=(i=this.beans.frameworkOverrides).getLockOnRefresh)==null||o.call(i)}releaseLockOnRefresh(){var i,o;this.refreshInProgress=!1,(o=(i=this.beans.frameworkOverrides).releaseLockOnRefresh)==null||o.call(i)}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(i){i&&this.focusSvc.restoreFocusedCell(i,()=>{this.onCellFocusChanged(this.gos.addGridCommonParams({rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))})}getAllCellCtrls(){let i=[],o=this.getAllRowCtrls(),v=o.length;for(let I=0;I<v;I++){let N=o[I].getAllCellCtrls(),W=N.length;for(let Z=0;Z<W;Z++)i.push(N[Z])}return i}getAllRowCtrls(){let i=this.getStickyTopRowCtrls(),o=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...i,...o,...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(i,o,v){let I=this.rowCtrlsByRowIndex[o];I&&I.addEventListener(i,v)}refreshCells(i={}){let o={forceRefresh:i.force,newData:!1,suppressFlash:i.suppressFlash};for(let v of this.getCellCtrls(i.rowNodes,i.columns))v.refreshOrDestroyCell(o);this.refreshFullWidth(i.rowNodes)}refreshFullWidth(i){if(!i)return;let o=null;this.stickyRowFeature&&(o=this.getCellToRestoreFocusToAfterRefresh()||null);for(let v of this.getRowCtrls(i)){if(!v.isFullWidth())continue;v.refreshFullWidth()||this.redrawRow(v.rowNode,!0)}this.dispatchDisplayedRowsChanged(!1),o&&this.restoreFocusedCell(o)}getRowCtrls(i){let o=Xs(i),v=this.getAllRowCtrls();return!i||!o?v:v.filter(I=>{let N=I.rowNode;return kn(N,o)})}getCellCtrls(i,o){let v;mi(o)&&(v={},o.forEach(N=>{let W=this.colModel.getCol(N);mi(W)&&(v[W.getId()]=!0)}));let I=[];return this.getRowCtrls(i).forEach(N=>{N.getAllCellCtrls().forEach(W=>{let Z=W.column.getId();v&&!v[Z]||I.push(W)})}),I}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(i=!1){var v;let o=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(o,i),(v=this.stickyRowFeature)==null||v.destroyStickyCtrls()}getRowsToRecycle(){let i=[];for(let[v,I]of Object.entries(this.rowCtrlsByRowIndex))I.rowNode.id==null&&i.push(v);this.removeRowCtrls(i);let o={};for(let v of Object.values(this.rowCtrlsByRowIndex)){let I=v.rowNode;o[I.id]=v}return this.rowCtrlsByRowIndex={},o}removeRowCtrls(i,o=!1){i.forEach(v=>{let I=this.rowCtrlsByRowIndex[v];I&&(I.destroyFirstPass(o),I.destroySecondPass()),delete this.rowCtrlsByRowIndex[v]})}onBodyScroll(i){i.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(i={}){var le;let{afterScroll:o}=i,v,I=this.stickyRowFeature;I&&(v=this.getCellToRestoreFocusToAfterRefresh()||void 0);let N=this.firstRenderedRow,W=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let Z=!1;if(I){Z=I.checkStickyRows();let we=I.extraTopHeight+I.extraBottomHeight;we&&this.updateContainerHeights(we)}let ee=this.firstRenderedRow!==N||this.lastRenderedRow!==W;if(!(o&&!Z&&!ee)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,o),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(o&&!Z),v!=null)){let we=this.getCellToRestoreFocusToAfterRefresh();v!=null&&we==null&&((le=this.beans.animationFrameSvc)==null||le.flushAllFrames(),this.restoreFocusedCell(v))}}removeRowCompsNotToDraw(i,o){let v={};i.forEach(W=>v[W]=!0);let N=Object.keys(this.rowCtrlsByRowIndex).filter(W=>!v[W]);this.removeRowCtrls(N,o)}calculateIndexesToDraw(i){let o=[];for(let N=this.firstRenderedRow;N<=this.lastRenderedRow;N++)o.push(N);let v=N=>{let W=N.rowNode.rowIndex;W!=null&&(W<this.firstRenderedRow||W>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(N)&&o.push(W)};for(let N of Object.values(this.rowCtrlsByRowIndex))v(N);if(i)for(let N of Object.values(i))v(N);o.sort((N,W)=>N-W);let I=[];for(let N=0;N<o.length;N++){let W=o[N],Z=this.rowModel.getRow(W);Z&&!Z.sticky&&I.push(W)}return I}recycleRows(i,o=!1,v=!1){let I=this.calculateIndexesToDraw(i);(this.printLayout||v)&&(o=!1),this.removeRowCompsNotToDraw(I,!o);let N=[];if(I.forEach(W=>{let Z=this.createOrUpdateRowCtrl(W,i,o,v);mi(Z)&&N.push(Z)}),i){let{animationFrameSvc:W}=this.beans;W&&v&&!this.gos.get("suppressAnimationFrame")&&!this.printLayout?W.addDestroyTask(()=>{this.destroyRowCtrls(i,o),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(i,o)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(i=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:i})}onDisplayedColumnsChanged(){let{visibleCols:i}=this.beans,o=i.isPinningLeft(),v=i.isPinningRight();(this.pinningLeft!==o||v!==this.pinningRight)&&(this.pinningLeft=o,this.pinningRight=v,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){let i=[];this.getFullWidthRowCtrls().forEach(o=>{let v=o.rowNode.rowIndex;i.push(v.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(i),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(i){let o=Xs(i);return this.getAllRowCtrls().filter(v=>{if(!v.isFullWidth())return!1;let I=v.rowNode;return!(o!=null&&!kn(I,o))})}createOrUpdateRowCtrl(i,o,v,I){let N,W=this.rowCtrlsByRowIndex[i];if(W||(N=this.rowModel.getRow(i),mi(N)&&mi(o)&&o[N.id]&&N.alreadyRendered&&(W=o[N.id],o[N.id]=null)),!W)if(N||(N=this.rowModel.getRow(i)),mi(N))W=this.createRowCon(N,v,I);else return;return N&&(N.alreadyRendered=!0),this.rowCtrlsByRowIndex[i]=W,W}destroyRowCtrls(i,o){let v=[];if(i){for(let I of Object.values(i))if(I){if(this.cachedRowCtrls&&I.isCacheable()){this.cachedRowCtrls.addRow(I);continue}if(I.destroyFirstPass(!o),o){let N=I.instanceId;this.zombieRowCtrls[N]=I,v.push(()=>{I.destroySecondPass(),delete this.zombieRowCtrls[N]})}else I.destroySecondPass()}}o&&(v.push(()=>{this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}),window.setTimeout(()=>v.forEach(I=>I()),mL))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){let i=this.getRowBuffer(),o=Yu(this.beans);return i*o}workOutFirstAndLastRowsToRender(){let{rowContainerHeight:i,pageBounds:o,rowModel:v}=this;i.updateOffset();let I,N;if(!v.isRowsToRender())I=0,N=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),I=o.getFirstRow(),N=o.getLastRow();else{let Ae=this.getRowBufferInPixels(),Ee=this.ctrlsSvc.getScrollFeature(),Ve=this.gos.get("suppressRowVirtualisation"),Je=!1,gt,kt;do{let Wt=o.getPixelOffset(),{pageFirstPixel:di,pageLastPixel:Di}=o.getCurrentPagePixelRange(),un=i.divStretchOffset,xn=Ee.getVScrollPosition(),va=xn.top,Un=xn.bottom;Ve?(gt=di+un,kt=Di+un):(gt=Math.max(va+Wt-Ae,di)+un,kt=Math.min(Un+Wt+Ae,Di)+un),this.firstVisibleVPixel=Math.max(va+Wt,di)+un,this.lastVisibleVPixel=Math.min(Un+Wt,Di)+un,Je=this.ensureAllRowsInRangeHaveHeightsCalculated(gt,kt)}while(Je);let xt=v.getRowIndexAtPixel(gt),Ft=v.getRowIndexAtPixel(kt),Ht=o.getFirstRow(),Gt=o.getLastRow();xt<Ht&&(xt=Ht),Ft>Gt&&(Ft=Gt),I=xt,N=Ft}let W=lo(this.gos,"normal"),Z=this.gos.get("suppressMaxRenderedRowRestriction"),ee=Math.max(this.getRowBuffer(),500);W&&!Z&&N-I>ee&&(N=I+ee);let le=I!==this.firstRenderedRow,we=N!==this.lastRenderedRow;(le||we)&&(this.firstRenderedRow=I,this.lastRenderedRow=N,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:I,lastRow:N}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,window.requestAnimationFrame(()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(i,o){var ee,le;let v=(ee=this.pinnedRowModel)==null?void 0:ee.ensureRowHeightsValid(),I=(le=this.stickyRowFeature)==null?void 0:le.ensureRowHeightsValid(),{pageBounds:N,rowModel:W}=this,Z=W.ensureRowHeightsValid(i,o,N.getFirstRow(),N.getLastRow());return(Z||I)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),I||Z||v?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(i){let I=i.rowNode,N=this.focusSvc.isRowNodeFocused(I),W=i.editing,Z=I.detail;return N||W||Z?!!this.isRowPresent(I):!1}isRowPresent(i){var o,v;return this.rowModel.isRowPresent(i)?(v=(o=this.beans.pagination)==null?void 0:o.isRowPresent(i))!=null?v:!0:!1}createRowCon(i,o,v){var ee,le;let I=(le=(ee=this.cachedRowCtrls)==null?void 0:ee.getRow(i))!=null?le:null;if(I)return I;let N=this.gos.get("suppressAnimationFrame"),W=v&&!N&&!this.printLayout&&!!this.beans.animationFrameSvc;return new g0(i,this.beans,o,W,this.printLayout)}getRenderedNodes(){let i=this.rowCtrlsByRowIndex;return Object.values(i).map(o=>o.rowNode)}getRowByPosition(i){let o,{rowIndex:v}=i;switch(i.rowPinned){case"top":o=this.topRowCtrls[v];break;case"bottom":o=this.bottomRowCtrls[v];break;default:o=this.rowCtrlsByRowIndex[v],o||(o=this.getStickyTopRowCtrls().find(I=>I.rowNode.rowIndex===v)||null,o||(o=this.getStickyBottomRowCtrls().find(I=>I.rowNode.rowIndex===v)||null));break}return o}isRangeInRenderedViewport(i,o){if(i==null||o==null)return!1;let I=i>this.lastRenderedRow;return!(o<this.firstRenderedRow)&&!I}},fT=class{constructor(i){this.entriesMap={},this.entriesList=[],this.maxCount=i}addRow(i){if(this.entriesMap[i.rowNode.id]=i,this.entriesList.push(i),i.setCached(!0),this.entriesList.length>this.maxCount){let o=this.entriesList[0];o.destroyFirstPass(),o.destroySecondPass(),this.removeFromCache(o)}}getRow(i){if(i==null||i.id==null)return null;let o=this.entriesMap[i.id];return o?(this.removeFromCache(o),o.setCached(!1),o.rowNode!=i?null:o):null}has(i){return this.entriesMap[i.id]!=null}removeRow(i){let o=i.id,v=this.entriesMap[o];delete this.entriesMap[o],bo(this.entriesList,v)}removeFromCache(i){let o=i.rowNode.id;delete this.entriesMap[o],bo(this.entriesList,i)}getEntries(){return this.entriesList}};function Xs(i){if(!i)return;let o={top:{},bottom:{},normal:{}};return i.forEach(v=>{let I=v.id;switch(v.rowPinned){case"top":o.top[I]=v;break;case"bottom":o.bottom[I]=v;break;default:o.normal[I]=v;break}}),o}function kn(i,o){let v=i.id;switch(i.rowPinned){case"top":return o.top[v]!=null;case"bottom":return o.bottom[v]!=null;default:return o.normal[v]!=null}}var rS=class extends jt{constructor(){super(...arguments),this.beanName="rowNodeSorter"}postConstruct(){let{gos:i}=this;this.isAccentedSort=i.get("accentedSort"),this.primaryColumnsSortGroups=_s(i),this.addManagedPropertyListener("accentedSort",o=>this.isAccentedSort=o.currentValue),this.addManagedPropertyListener("autoGroupColumnDef",()=>this.primaryColumnsSortGroups=_s(i))}doFullSort(i,o){let v=i.map((I,N)=>({currentPos:N,rowNode:I}));return v.sort(this.compareRowNodes.bind(this,o)),v.map(I=>I.rowNode)}compareRowNodes(i,o,v){let I=o.rowNode,N=v.rowNode;for(let W=0,Z=i.length;W<Z;W++){let ee=i[W],le=ee.sort==="desc",we=this.getValue(I,ee.column),Ae=this.getValue(N,ee.column),Ee,Ve=this.getComparator(ee,I);if(Ve?Ee=Ve(we,Ae,I,N,le):Ee=$w(we,Ae,this.isAccentedSort),!isNaN(Ee)&&Ee!==0)return ee.sort==="asc"?Ee:Ee*-1}return o.currentPos-v.currentPos}getComparator(i,o){let v=i.column,I=v.getColDef().comparator;if(I!=null)return I;if(!v.getColDef().showRowGroup)return;let N=!o.group&&v.getColDef().field;if(!N)return;let W=this.beans.colModel.getColDefCol(N);if(W)return W.getColDef().comparator}getValue(i,o){var ee,le;let{valueSvc:v,colModel:I,showRowGroupCols:N,gos:W}=this.beans;if(!this.primaryColumnsSortGroups)return v.getValue(o,i,!1);if(i.rowGroupColumn===o){if(ix(W,I.isPivotActive())){let Ee=(ee=i.allLeafChildren)==null?void 0:ee[0];return Ee?v.getValue(o,Ee,!1):void 0}let Ae=N==null?void 0:N.getShowRowGroupCol(o.getId());return Ae?(le=i.groupData)==null?void 0:le[Ae.getId()]:void 0}if(!(i.group&&o.getColDef().showRowGroup))return v.getValue(o,i,!1)}};function sS(i){var o;(o=i.sortSvc)==null||o.onSortChanged("api")}function Sp(i,o){return`<span data-ref="eSort${i}" class="ag-sort-indicator-icon ag-sort-${o} ag-hidden" aria-hidden="true"></span>`}var wp=`<span class="ag-sort-indicator-container">
        ${Sp("Order","order")}
        ${Sp("Asc","ascending-icon")}
        ${Sp("Desc","descending-icon")}
        ${Sp("Mixed","mixed-icon")}
        ${Sp("None","none-icon")}
    </span>`,Um=class extends cn{constructor(i){super(),this.eSortOrder=fi,this.eSortAsc=fi,this.eSortDesc=fi,this.eSortMixed=fi,this.eSortNone=fi,i||this.setTemplate(wp)}attachCustomElements(i,o,v,I,N){this.eSortOrder=i,this.eSortAsc=o,this.eSortDesc=v,this.eSortMixed=I,this.eSortNone=N}setupSort(i,o=!1){if(this.column=i,this.suppressOrder=o,this.setupMultiSortIndicator(),!i.isSortable()&&!i.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,i),this.addInIcon("sortDescending",this.eSortDesc,i),this.addInIcon("sortUnSort",this.eSortNone,i);let v=this.updateIcons.bind(this),I=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",v),this.addManagedEventListeners({newColumnsLoaded:v,sortChanged:I,columnRowGroupChanged:I}),this.onSortChanged()}addInIcon(i,o,v){if(o==null)return;let I=ma(i,this.beans,v);I&&o.appendChild(I)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){let{eSortAsc:i,eSortDesc:o,eSortNone:v,column:I,gos:N,beans:W}=this,Z=W.sortSvc.getDisplaySortForColumn(I);if(i&&Vn(i,Z==="asc",{skipAriaHidden:!0}),o&&Vn(o,Z==="desc",{skipAriaHidden:!0}),v){let ee=!I.getColDef().unSortIcon&&!N.get("unSortIcon"),le=Z==null;Vn(v,!ee&&le,{skipAriaHidden:!0})}}setupMultiSortIndicator(){let{eSortMixed:i,column:o,gos:v}=this;this.addInIcon("sortUnSort",i,o);let I=o.getColDef().showRowGroup;_s(v)&&I&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){let{eSortMixed:i,beans:o,column:v}=this;if(i){let I=o.sortSvc.getDisplaySortForColumn(v)==="mixed";Vn(i,I,{skipAriaHidden:!0})}}updateSortOrder(){var ee;let{eSortOrder:i,column:o,beans:{sortSvc:v}}=this;if(!i)return;let I=v.getColumnsWithSortingOrdered(),N=(ee=v.getDisplaySortIndexForColumn(o))!=null?ee:-1,W=I.some(le=>{var we;return(we=v.getDisplaySortIndexForColumn(le))!=null?we:-1>=1}),Z=N>=0&&W;Vn(i,Z,{skipAriaHidden:!0}),N>=0?i.textContent=(N+1).toString():Jn(i)}},vT={selector:"AG-SORT-INDICATOR",component:Um},Ib=["asc","desc",null],AM=class extends jt{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(i,o,v){let I=this.getNextSortDirection(i);this.setSortForColumn(i,I,o,v)}progressSortFromEvent(i,o){let I=this.gos.get("multiSortKey")==="ctrl"?o.ctrlKey||o.metaKey:o.shiftKey;this.progressSort(i,I,"uiColumnSorted")}setSortForColumn(i,o,v,I){var Ae;o!=="asc"&&o!=="desc"&&(o=null);let{gos:N,showRowGroupCols:W}=this.beans,Z=_s(N),ee=[i];if(Z&&i.getColDef().showRowGroup){let Ee=(Ae=W==null?void 0:W.getSourceColumnsForGroupColumn)==null?void 0:Ae.call(W,i),Ve=Ee==null?void 0:Ee.filter(Je=>Je.isSortable());Ve&&(ee=[i,...Ve])}ee.forEach(Ee=>this.setColSort(Ee,o,I));let le=(v||N.get("alwaysMultiSort"))&&!N.get("suppressMultiSort"),we=[];if(!le){let Ee=this.clearSortBarTheseColumns(ee,I);we.push(...Ee)}this.updateSortIndex(i),we.push(...ee),this.dispatchSortChangedEvents(I,we)}updateSortIndex(i){let{gos:o,colModel:v,showRowGroupCols:I}=this.beans,N=_s(o),W=I==null?void 0:I.getShowRowGroupCol(i.getId()),Z=N&&W||i,ee=this.getColumnsWithSortingOrdered();v.getAllCols().forEach(Ae=>this.setColSortIndex(Ae,null));let le=ee.filter(Ae=>N&&Ae.getColDef().showRowGroup?!1:Ae!==Z);(Z.getSort()?[...le,Z]:le).forEach((Ae,Ee)=>this.setColSortIndex(Ae,Ee))}onSortChanged(i,o){this.dispatchSortChangedEvents(i,o)}isSortActive(){let o=this.beans.colModel.getAllCols().filter(v=>!!v.getSort());return o&&o.length>0}dispatchSortChangedEvents(i,o){let v={type:"sortChanged",source:i};o&&(v.columns=o),this.eventSvc.dispatchEvent(v)}clearSortBarTheseColumns(i,o){let v=[];return this.beans.colModel.getAllCols().forEach(I=>{i.includes(I)||(I.getSort()&&v.push(I),this.setColSort(I,void 0,o))}),v}getNextSortDirection(i){var W,Z;let o=(Z=(W=i.getColDef().sortingOrder)!=null?W:this.gos.get("sortingOrder"))!=null?Z:Ib,v=o.indexOf(i.getSort()),I=v<0,N=v==o.length-1;return I||N?o[0]:o[v+1]}getIndexedSortMap(){var we;let{gos:i,colModel:o,showRowGroupCols:v,rowGroupColsSvc:I}=this.beans,N=o.getAllCols().filter(Ae=>!!Ae.getSort());if(o.isPivotMode()){let Ae=_s(i);N=N.filter(Ee=>{let Ve=!!Ee.getAggFunc(),Je=!Ee.isPrimary(),gt=Ae?v==null?void 0:v.getShowRowGroupCol(Ee.getId()):Ee.getColDef().showRowGroup;return Ve||Je||gt})}let W=(we=I==null?void 0:I.columns.filter(Ae=>!!Ae.getSort()))!=null?we:[],Z={};N.forEach((Ae,Ee)=>Z[Ae.getId()]=Ee),N.sort((Ae,Ee)=>{let Ve=Ae.getSortIndex(),Je=Ee.getSortIndex();if(Ve!=null&&Je!=null)return Ve-Je;if(Ve==null&&Je==null){let gt=Z[Ae.getId()],kt=Z[Ee.getId()];return gt>kt?1:-1}else return Je==null?-1:1});let ee=_s(i)&&!!W.length;ee&&(N=[...new Set(N.map(Ae=>{var Ee;return(Ee=v==null?void 0:v.getShowRowGroupCol(Ae.getId()))!=null?Ee:Ae}))]);let le=new Map;return N.forEach((Ae,Ee)=>le.set(Ae,Ee)),ee&&W.forEach(Ae=>{let Ee=v.getShowRowGroupCol(Ae.getId());le.set(Ae,le.get(Ee))}),le}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([i,o],[v,I])=>o-I).map(([i])=>i)}getSortModel(){return this.getColumnsWithSortingOrdered().filter(i=>i.getSort()).map(i=>({sort:i.getSort(),colId:i.getId()}))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter(i=>i.getSort()).map(i=>({sort:i.getSort(),column:i}))}canColumnDisplayMixedSort(i){let o=_s(this.gos),v=!!i.getColDef().showRowGroup;return o&&v}getDisplaySortForColumn(i){var Z;let o=(Z=this.beans.showRowGroupCols)==null?void 0:Z.getSourceColumnsForGroupColumn(i);if(!this.canColumnDisplayMixedSort(i)||!(o!=null&&o.length))return i.getSort();let I=i.getColDef().field!=null||!!i.getColDef().valueGetter?[i,...o]:o,N=I[0].getSort();return I.every(ee=>ee.getSort()==N)?N:"mixed"}getDisplaySortIndexForColumn(i){return this.getIndexedSortMap().get(i)}setupHeader(i,o,v){let I=0;i.addManagedListeners(o,{movingChanged:()=>{I=new Date().getTime()}}),v&&i.addManagedElementListeners(v,{click:W=>{let Z=o.isMoving(),le=new Date().getTime()-I<50;Z||le||this.progressSortFromEvent(o,W)}});let N=()=>{var Z;let W=o.getSort();if(i.addOrRemoveCssClass("ag-header-cell-sorted-asc",W==="asc"),i.addOrRemoveCssClass("ag-header-cell-sorted-desc",W==="desc"),i.addOrRemoveCssClass("ag-header-cell-sorted-none",!W),o.getColDef().showRowGroup){let ee=(Z=this.beans.showRowGroupCols)==null?void 0:Z.getSourceColumnsForGroupColumn(o),we=!(ee==null?void 0:ee.every(Ae=>o.getSort()==Ae.getSort()));i.addOrRemoveCssClass("ag-header-cell-sorted-mixed",we)}};i.addManagedEventListeners({sortChanged:N,columnRowGroupChanged:N})}initCol(i){let{sort:o,initialSort:v,sortIndex:I,initialSortIndex:N}=i.colDef;o!==void 0?(o==="asc"||o==="desc")&&(i.sort=o):(v==="asc"||v==="desc")&&(i.sort=v),I!==void 0?I!==null&&(i.sortIndex=I):N!==null&&(i.sortIndex=N)}updateColSort(i,o,v){o!==void 0&&(o==="desc"||o==="asc"?this.setColSort(i,o,v):this.setColSort(i,void 0,v))}setColSort(i,o,v){i.sort!==o&&(i.sort=o,i.dispatchColEvent("sortChanged",v)),i.dispatchStateUpdatedEvent("sort")}setColSortIndex(i,o){i.sortIndex=o,i.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(i){return new Um(i)}getSortIndicatorSelector(){return vT}},DM={moduleName:"Sort",version:ri,beans:[AM,rS],apiFunctions:{onSortChanged:sS},userComponents:{agSortIndicator:Um},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"}},EM=class extends jt{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",i=>this.setColumnDefs(i))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{let i=this.gos.get("columnDefs");i?this.setColumnsAndData(i):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(i){let{colModel:o,rowModel:v}=this.beans;o.setColumnDefs(i!=null?i:[],"gridInitializing"),v.start()}gridReady(){let{eventSvc:i,gos:o}=this;i.dispatchEvent({type:"gridReady"}),rd(o,`initialised successfully, enterprise = ${o.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(i){let o=this.gos.get("columnDefs");if(o){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(o);return}this.beans.colModel.setColumnDefs(o,Bs(i.source))}}};function Tb(i){var o;(o=i.valueCache)==null||o.expire()}function qD(i,o){var ee;let{colKey:v,rowNode:I,useFormatter:N}=o,W=(ee=i.colModel.getColDefCol(v))!=null?ee:i.colModel.getCol(v);if(Oa(W))return null;let Z=i.valueSvc.getValueForDisplay(W,I);if(N){let le=i.valueSvc.formatValue(W,I,Z);return le!=null?le:yl(Z,!0)}return Z}var xd=class{constructor(i,o){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=i,this.pathRoot={rowNode:o,children:null},this.mapToItems[o.id]=this.pathRoot}depthFirstSearchChangedPath(i,o){let{rowNode:v,children:I}=i;if(I)for(let N=0;N<I.length;++N)this.depthFirstSearchChangedPath(I[N],o);o(v)}depthFirstSearchEverything(i,o,v){let I=i.childrenAfterGroup;if(I)for(let N=0,W=I.length;N<W;++N){let Z=I[N];Z.childrenAfterGroup?this.depthFirstSearchEverything(Z,o,v):v&&o(Z)}o(i)}forEachChangedNodeDepthFirst(i,o=!1,v=!1){this.active&&!v?this.depthFirstSearchChangedPath(this.pathRoot,i):this.depthFirstSearchEverything(this.pathRoot.rowNode,i,o)}executeFromRootNode(i){i(this.pathRoot.rowNode)}createPathItems(i){let o=i,v=0;for(;!this.mapToItems[o.id];){let I={rowNode:o,children:null};this.mapToItems[o.id]=I,v++,o=o.parent}return v}populateColumnsMap(i,o){if(!this.keepingColumns||!o)return;let v=i;for(;v;)this.nodeIdsToColumns[v.id]||(this.nodeIdsToColumns[v.id]={}),o.forEach(I=>this.nodeIdsToColumns[v.id][I.getId()]=!0),v=v.parent}linkPathItems(i,o){let v=i;for(let I=0;I<o;I++){let N=this.mapToItems[v.id],W=this.mapToItems[v.parent.id];W.children||(W.children=[]),W.children.push(N),v=v.parent}}addParentNode(i,o){if(!i||i.isRowPinned())return;let v=this.createPathItems(i);this.linkPathItems(i,v),this.populateColumnsMap(i,o)}canSkip(i){return this.active&&!this.mapToItems[i.id]}getValueColumnsForNode(i,o){if(!this.keepingColumns)return o;let v=this.nodeIdsToColumns[i.id];return o.filter(N=>v[N.getId()])}getNotValueColumnsForNode(i,o){if(!this.keepingColumns)return null;let v=this.nodeIdsToColumns[i.id];return o.filter(N=>!v[N.getId()])}},Km="paste",cg=class extends jt{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){let{gos:i,rowModel:o}=this.beans;so(i,o)&&(this.clientSideRowModel=o),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(i){let{gos:o,rowRenderer:v}=this.beans;if(i.source===Km||o.get("suppressChangeDetection"))return;let I=i.node,N=[I],W=this.clientSideRowModel,Z=W==null?void 0:W.rootNode;if(Z&&!I.isRowPinned()){let ee=o.get("aggregateOnlyChangedColumns"),le=new xd(ee,Z);le.addParentNode(I.parent,[i.column]),W.doAggregate(le),le.forEachChangedNodeDepthFirst(we=>{N.push(we)})}v.refreshCells({rowNodes:N})}},YD=class extends jt{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(i,o){if(typeof i=="string")return this.evaluateExpression(i,o);aa(15,{expression:i})}evaluateExpression(i,o){try{return this.createExpressionFunction(i)(o.value,o.context,o.oldValue,o.newValue,o.value,o.node,o.data,o.colDef,o.rowIndex,o.api,o.getValue,o.column,o.columnGroup)}catch(v){return aa(16,{expression:i,params:o,e:v}),null}}createExpressionFunction(i){let o=this.cache;if(o[i])return o[i];let v=this.createFunctionBody(i),I=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",v);return o[i]=I,I}createFunctionBody(i){return i.indexOf("return")>=0?i:"return "+i+";"}},qm=class extends jt{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){let i=this.gos;this.active=i.get("valueCache"),this.neverExpires=i.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(i,o,v){if(this.active){let I=this.cacheVersion;i.__cacheVersion!==I&&(i.__cacheVersion=I,i.__cacheData={}),i.__cacheData[o]=v}}getValue(i,o){if(!(!this.active||i.__cacheVersion!==this.cacheVersion))return i.__cacheData[o]}},XD={moduleName:"ValueCache",version:ri,beans:[qm],apiFunctions:{expireValueCache:Tb}},ZD={moduleName:"Expression",version:ri,beans:[YD]},$D={moduleName:"ChangeDetection",version:ri,beans:[cg]},IM={moduleName:"CellApi",version:ri,apiFunctions:{getCellValue:qD}},QD=class extends jt{constructor(){super(...arguments),this.beanName="valueSvc",this.initialised=!1,this.isSsrm=!1}wireBeans(i){this.expressionSvc=i.expressionSvc,this.colModel=i.colModel,this.valueCache=i.valueCache,this.dataTypeSvc=i.dataTypeSvc}postConstruct(){this.initialised||this.init()}init(){this.executeValueGetter=this.valueCache?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=Dc(this.gos),this.cellExpressions=this.gos.get("enableCellExpressions"),this.isTreeData=this.gos.get("treeData"),this.initialised=!0;let i=o=>this.callColumnCellValueChangedHandler(o);this.eventSvc.addEventListener("cellValueChanged",i,!0),this.addDestroyFunc(()=>this.eventSvc.removeEventListener("cellValueChanged",i,!0)),this.addManagedPropertyListener("treeData",o=>this.isTreeData=o.currentValue)}getValueForDisplay(i,o){let v=o.leafGroup&&this.colModel.isPivotMode(),I=o.group&&o.expanded&&!o.footer&&!v,N=this.gos.get("groupSuppressBlankHeader");if(!I||N)return this.getValue(i,o);let W=!1,Z=this.gos.get("groupTotalRow");typeof Z!="function"?W=!!Z:W=!!this.gos.getCallback("groupTotalRow")({node:this});let ee=I&&W;return this.getValue(i,o,ee)}getValue(i,o,v=!1){if(this.initialised||this.init(),!o)return;let I=i.getColDef(),N=I.field,W=i.getColId(),Z=o.data,ee,le=o.groupData&&o.groupData[W]!==void 0,we=!v&&o.aggData&&o.aggData[W]!==void 0,Ae=this.isSsrm&&v&&!!i.getColDef().aggFunc,Ee=this.isSsrm&&o.footer&&o.field&&(i.getColDef().showRowGroup===!0||i.getColDef().showRowGroup===o.field);if(this.isTreeData&&we?ee=o.aggData[W]:this.isTreeData&&I.valueGetter?ee=this.executeValueGetter(I.valueGetter,Z,i,o):this.isTreeData&&N&&Z?ee=Zu(Z,N,i.isFieldContainsDots()):le?ee=o.groupData[W]:we?ee=o.aggData[W]:I.valueGetter?ee=this.executeValueGetter(I.valueGetter,Z,i,o):Ee?ee=Zu(Z,o.field,i.isFieldContainsDots()):N&&Z&&!Ae&&(ee=Zu(Z,N,i.isFieldContainsDots())),this.cellExpressions&&typeof ee=="string"&&ee.indexOf("=")===0){let Ve=ee.substring(1);ee=this.executeValueGetter(Ve,Z,i,o)}if(ee==null){let Ve=this.getOpenedGroup(o,i);if(Ve!=null)return Ve}return ee}parseValue(i,o,v,I){var Z;let N=i.getColDef(),W=N.valueParser;if(mi(W)){let ee=this.gos.addGridCommonParams({node:o,data:o==null?void 0:o.data,oldValue:I,newValue:v,colDef:N,column:i});return typeof W=="function"?W(ee):(Z=this.expressionSvc)==null?void 0:Z.evaluate(W,ee)}return v}getDeleteValue(i,o){var v;return mi(i.getColDef().valueParser)&&(v=this.parseValue(i,o,"",this.getValueForDisplay(i,o)))!=null?v:null}formatValue(i,o,v,I,N=!0){let W=null,Z,ee=i.getColDef();if(I?Z=I:N&&(Z=ee.valueFormatter),Z){let le=this.gos.addGridCommonParams({value:v,node:o,data:o?o.data:null,colDef:ee,column:i});typeof Z=="function"?W=Z(le):W=this.expressionSvc?this.expressionSvc.evaluate(Z,le):null}else if(ee.refData)return ee.refData[v]||"";return W==null&&Array.isArray(v)&&(W=v.join(", ")),W}getOpenedGroup(i,o){if(!this.gos.get("showOpenedGroup")||!o.getColDef().showRowGroup)return;let I=o.getColDef().showRowGroup,N=i.parent;for(;N!=null;){if(N.rowGroupColumn&&(I===!0||I===N.rowGroupColumn.getColId()))return N.key;N=N.parent}}setValue(i,o,v,I){var Ae,Ee;let N=this.colModel.getColDefCol(o);if(!i||!N)return!1;Oa(i.data)&&(i.data={});let{field:W,valueSetter:Z}=N.getColDef();if(Oa(W)&&Oa(Z))return ii(17),!1;if(this.dataTypeSvc&&!this.dataTypeSvc.checkType(N,v))return ii(135),!1;let ee=this.gos.addGridCommonParams({node:i,data:i.data,oldValue:this.getValue(N,i),newValue:v,colDef:N.getColDef(),column:N});ee.newValue=v;let le;if(mi(Z)?typeof Z=="function"?le=Z(ee):le=(Ae=this.expressionSvc)==null?void 0:Ae.evaluate(Z,ee):le=this.setValueUsingField(i.data,W,v,N.isFieldContainsDots()),le===void 0&&(le=!0),!le)return!1;i.resetQuickFilterAggregateText(),(Ee=this.valueCache)==null||Ee.onDataChanged();let we=this.getValue(N,i);return this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:ee.column,colDef:ee.colDef,data:i.data,node:i,oldValue:ee.oldValue,newValue:we,value:we,source:I}),!0}callColumnCellValueChangedHandler(i){let o=i.colDef.onCellValueChanged;typeof o=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>{o({node:i.node,data:i.data,oldValue:i.oldValue,newValue:i.newValue,colDef:i.colDef,column:i.column,api:i.api,context:i.context})})}setValueUsingField(i,o,v,I){if(!o)return!1;let N=!1;if(!I)N=i[o]===v,N||(i[o]=v);else{let W=o.split("."),Z=i;for(;W.length>0&&Z;){let ee=W.shift();W.length===0?(N=Z[ee]===v,N||(Z[ee]=v)):Z=Z[ee]}}return!N}executeValueGetterWithValueCache(i,o,v,I){let N=v.getColId(),W=this.valueCache.getValue(I,N);if(W!==void 0)return W;let Z=this.executeValueGetterWithoutValueCache(i,o,v,I);return this.valueCache.setValue(I,N,Z),Z}executeValueGetterWithoutValueCache(i,o,v,I){var Z;let N=this.gos.addGridCommonParams({data:o,node:I,column:v,colDef:v.getColDef(),getValue:this.getValueCallback.bind(this,I)}),W;return typeof i=="function"?W=i(N):W=(Z=this.expressionSvc)==null?void 0:Z.evaluate(i,N),W}getValueCallback(i,o){let v=this.colModel.getColDefCol(o);return v?this.getValue(v,i):null}getKeyForNode(i,o){let v=this.getValue(i,o),I=i.getColDef().keyCreator,N=v;if(I){let W=this.gos.addGridCommonParams({value:v,colDef:i.getColDef(),column:i,node:o,data:o.data});N=I(W)}return typeof N=="string"||N==null||(N=String(N),N==="[object Object]"&&ii(121)),N}},Ym={moduleName:"CommunityCore",version:ri,beans:[qr,pv,nT,cx,UD,QI,bM,SM,Vr,uL,kM,KD,QD,Sd,vp,jm,H0,EM,tM,iL],icons:{selectOpen:"small-down",smallDown:"small-down",colorPicker:"color-picker",smallUp:"small-up",checkboxChecked:"small-up",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",smallLeft:"small-left",smallRight:"small-right"},apiFunctions:{getGridId:Hx,destroy:gD,isDestroyed:mv,getGridOption:pD,setGridOption:qa,updateGridOptions:cp},dependsOn:[ID,qI,KP,DM,hT,N0,xM,mT,$D,Db,VD,nS,aS,lg,j0,ph,ZD]},Rb=class rI{static applyGlobalGridOptions(o){if(!rI.gridOptions)return ge({},o);let v={};return yo(v,rI.gridOptions,!0,!0),rI.mergeStrategy==="deep"?yo(v,o,!0,!0):v=ge(ge({},v),o),rI.gridOptions.context&&(v.context=rI.gridOptions.context),o.context&&(rI.mergeStrategy==="deep"&&v.context&&yo(o.context,v.context,!0,!0),v.context=o.context),v}};Rb.gridOptions=void 0,Rb.mergeStrategy="shallow";var Xm=Rb;function Zm(i,o="shallow"){Xm.gridOptions=i,Xm.mergeStrategy=o}function ws(i){var o;return(o=Xm.gridOptions)==null?void 0:o[i]}function fL(i,o,v){if(!o)return aa(11),{};let I=v,N;if(!(I!=null&&I.setThemeOnGridDiv)){let Z=document.createElement("div");Z.style.height="100%",i.appendChild(Z),i=Z,N=()=>i.remove()}return new JD().create(i,o,Z=>{let ee=new Gx(i);Z.createBean(ee)},void 0,v,N)}var yT=1,JD=class{create(i,o,v,I,N,W){var gt,kt;let Z=Xm.applyGlobalGridOptions(o),ee=(gt=Z.gridId)!=null?gt:String(yT++),le=(kt=Z.rowModelType)!=null?kt:"clientSide",we=this.getRegisteredModules(N,ee,le),Ae=this.createBeansList(le,we,ee),Ee=this.createProvidedBeans(i,Z,N);if(!Ae)return;let Ve={providedBeanInstances:Ee,beanClasses:Ae,gridId:ee,beanInitComparator:Qh,beanDestroyComparator:hD,derivedBeans:[GI],destroyCallback:W},Je=new zn(Ve);return this.registerModuleFeatures(Je,we),v(Je),Je.getBean("syncSvc").start(),I&&I(Je),Je.getBean("gridApi")}getRegisteredModules(i,o,v){var I;return jy(Ym,void 0),(I=i==null?void 0:i.modules)==null||I.forEach(N=>jy(N,o)),zo(o,v)}registerModuleFeatures(i,o){let v=i.getBean("registry"),I=i.getBean("apiFunctionSvc");o.forEach(N=>{v.registerModule(N);let W=N.apiFunctions;W&&Object.keys(W).forEach(ee=>{I==null||I.addFunction(ee,W[ee])})})}createProvidedBeans(i,o,v){let I=v?v.frameworkOverrides:null;Oa(I)&&(I=new w0);let N={gridOptions:o,eGridDiv:i,globalListener:v?v.globalListener:null,globalSyncListener:v?v.globalSyncListener:null,frameworkOverrides:I};return v&&v.providedBeanInstances&&Object.assign(N,v.providedBeanInstances),N}createBeansList(i,o,v){let N={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"}[i];if(!N){Zg(201,{rowModelType:i},`Unknown rowModelType ${i}.`);return}if(!Ma(N,v,i)){Zg(200,{reasonOrId:`rowModelType = '${i}'`,moduleName:N,gridScoped:co(),gridId:v,rowModelType:i},`Missing module ${N}Module for rowModelType ${i}. 
If upgrading from before v33, see ${cm}/upgrading-to-ag-grid-33/#changes-to-modules/`);return}let W=new Set;return o.forEach(Z=>{var ee;return(ee=Z.beans)==null?void 0:ee.forEach(le=>W.add(le))}),Array.from(W)}};function Md(i){let o=i.rowModel;return o.getType()==="clientSide"?o:void 0}function lS(i){let o=i.rowModel;return o.getType()==="infinite"?o:void 0}function cS(i){let o=i.rowModel;return o.getType()==="serverSide"?o:void 0}var e1=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterOpened","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel"],TM=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","gridStylesChanged","storeUpdated","filterDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","overlayExclusiveChanged","beforeRefreshModel"],RM=[...e1,...TM],PM=class extends jt{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){let i=this.gos,o=i.getCallback("getLocaleText");if(o)return(I,N,W)=>o({key:I,defaultValue:N,variableValues:W});let v=i.get("localeText");return(I,N,W)=>{let Z=v&&v[I];if(Z&&W&&W.length){let ee=0;for(;!(ee>=W.length||Z.indexOf("${variable}")===-1);)Z=Z.replace("${variable}",W[ee++])}return Z!=null?Z:N}}},vL=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","grandTotalRow"],yL=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","initialState","autoSizeStrategy","selectionColumnDef"],hu=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"],Pb=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns"],LM=["theme","rowSelection"],dg=["cellSelection","sideBar","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild"],dS=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault"],t1=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter"],OM=[...hu,...yL,...vL,...Pb,...t1,...dS,...dg,...LM],uS=class{wrap(i,o,v,I){let N=this.createWrapper(i,I);return o==null||o.forEach(W=>{this.createMethod(N,W,!0)}),v==null||v.forEach(W=>{this.createMethod(N,W,!1)}),N}createMethod(i,o,v){i.addMethod(o,this.createMethodProxy(i,o,v))}createMethodProxy(i,o,v){return function(){return i.hasMethod(o)?i.callMethod(o,arguments):(v&&ii(49,{methodName:o}),null)}}},i1=class extends hv{constructor(){super('<div class="ag-tooltip"></div>')}init(i){let{value:o}=i;this.getGui().textContent=yl(o,!0)}};function jc(i){let{inputValue:o,allSuggestions:v,hideIrrelevant:I,filterByPercentageOfBestMatch:N,addSequentialWeight:W}=i,Z=v.map((we,Ae)=>({value:we,relevance:bT(o.toLowerCase(),we.toLocaleLowerCase(),W),idx:Ae}));if(Z.sort((we,Ae)=>Ae.relevance-we.relevance),I&&(Z=Z.filter(we=>we.relevance!==0)),Z.length>0&&N&&N>0){let Ae=Z[0].relevance*N;Z=Z.filter(Ee=>Ae-Ee.relevance<0)}let ee=[],le=[];for(let we of Z)ee.push(we.value),le.push(we.idx);return{values:ee,indices:le}}function $m(i){let o=[],v=i.length;for(let I=1;I<=v;I++)for(let N=0;N<=v-I;N++){let W=N+I-1;o.push(i.slice(N,W+1))}return o}function bT(i,o,v=!1){let I=i.replace(/\s/g,""),N=o.replace(/\s/g,""),W=I.length,Z=N.length,ee=new Array(W+1).fill(null).map(()=>new Array(Z+1).fill(0));for(let Ee=0;Ee<=W;Ee+=1)ee[Ee][0]=Ee;for(let Ee=0;Ee<=Z;Ee+=1)ee[0][Ee]=Ee;for(let Ee=1;Ee<=W;Ee++)for(let Ve=1;Ve<=Z;Ve++)I[Ee-1]===N[Ve-1]?ee[Ee][Ve]=ee[Ee-1][Ve-1]:ee[Ee][Ve]=1+Math.min(ee[Ee][Ve-1],Math.min(ee[Ee-1][Ve],ee[Ee-1][Ve-1]));let le=ee[W][Z],Ae=Math.max(W,Z)-le;if(v){let Ee=$m(I);for(let Ve=0;Ve<Ee.length;Ve++){let Je=Ee[Ve];N.indexOf(Je)!==-1&&(Ae+=1,Ae*=Je.length)}}return Ae}function Qm(i,o){if(typeof i!="number")return"";let v=o(),I=v("thousandSeparator",","),N=v("decimalSeparator",".");return i.toString().replace(".",N).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${I}`)}var Pv=class extends jt{getFileName(i){let o=this.getDefaultFileExtension();return(i==null||!i.length)&&(i=this.getDefaultFileName()),i.indexOf(".")===-1?`${i}.${o}`:i}getData(i){let o=this.createSerializingSession(i);return this.beans.gridSerializer.serialize(o,i)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},Lb=class{constructor(i){this.groupColumns=[];let{colModel:o,rowGroupColsSvc:v,colNames:I,valueSvc:N,gos:W,processCellCallback:Z,processHeaderCallback:ee,processGroupHeaderCallback:le,processRowGroupCallback:we}=i;this.colModel=o,this.rowGroupColsSvc=v,this.colNames=I,this.valueSvc=N,this.gos=W,this.processCellCallback=Z,this.processHeaderCallback=ee,this.processGroupHeaderCallback=le,this.processRowGroupCallback=we}prepare(i){this.groupColumns=i.filter(o=>!!o.getColDef().showRowGroup)}extractHeaderValue(i){let o=this.getHeaderName(this.processHeaderCallback,i);return o!=null?o:""}extractRowCellValue(i,o,v,I,N){let Z=(!this.gos.get("groupHideOpenParents")||N.footer)&&this.shouldRenderGroupSummaryCell(N,i,o)?this.createValueForGroupNode(i,N):this.valueSvc.getValue(i,N);return this.processCell({accumulatedRowIndex:v,rowNode:N,column:i,value:Z,processCellCallback:this.processCellCallback,type:I})}shouldRenderGroupSummaryCell(i,o,v){var Z,ee;if(!(i&&i.group))return!1;if(this.groupColumns.indexOf(o)!==-1){if(((Z=i.groupData)==null?void 0:Z[o.getId()])!==void 0||Dc(this.gos)&&i.group)return!0;if(i.footer&&i.level===-1){let le=o.getColDef();return le==null||le.showRowGroup===!0||le.showRowGroup===((ee=this.rowGroupColsSvc)==null?void 0:ee.columns[0].getId())}}let W=ix(this.gos,this.colModel.isPivotMode());return v===0&&W}getHeaderName(i,o){return i?i(this.gos.addGridCommonParams({column:o})):this.colNames.getDisplayNameForColumn(o,"csv",!0)}createValueForGroupNode(i,o){if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gos.addGridCommonParams({column:i,node:o}));let v=this.gos.get("treeData"),I=ee=>{var we,Ae;if(v)return ee.key;let le=(we=ee.groupData)==null?void 0:we[i.getId()];return!le||!ee.rowGroupColumn||ee.rowGroupColumn.getColDef().useValueFormatterForExport===!1?le:(Ae=this.valueSvc.formatValue(ee.rowGroupColumn,ee,le))!=null?Ae:le},N=o.footer,W=[I(o)];if(!gI(this.gos))for(;o.parent;)o=o.parent,W.push(I(o));let Z=W.reverse().join(" -> ");return N?`Total ${Z}`:Z}processCell(i){var ee;let{accumulatedRowIndex:o,rowNode:v,column:I,value:N,processCellCallback:W,type:Z}=i;return W?{value:(ee=W(this.gos.addGridCommonParams({accumulatedRowIndex:o,column:I,node:v,value:N,type:Z,parseValue:le=>this.valueSvc.parseValue(I,v,le,this.valueSvc.getValue(I,v)),formatValue:le=>{var we;return(we=this.valueSvc.formatValue(I,v,le))!=null?we:le}})))!=null?ee:""}:I.getColDef().useValueFormatterForExport!==!1?{value:N!=null?N:"",valueFormatted:this.valueSvc.formatValue(I,v,N)}:{value:N!=null?N:""}}};function n1(i,o){let v=document.defaultView||window;if(!v){ii(52);return}let I=document.createElement("a"),N=v.URL.createObjectURL(o);I.setAttribute("href",N),I.setAttribute("download",i),I.style.display="none",document.body.appendChild(I),I.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:v})),document.body.removeChild(I),v.setTimeout(()=>{v.URL.revokeObjectURL(N)},0)}var FM={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0},Zs="clientSide",za="serverSide",bh="infinite",hS={onGroupExpandedOrCollapsed:[Zs],refreshClientSideRowModel:[Zs],isRowDataEmpty:[Zs],forEachLeafNode:[Zs],forEachNodeAfterFilter:[Zs],forEachNodeAfterFilterAndSort:[Zs],resetRowHeights:[Zs],applyTransaction:[Zs],applyTransactionAsync:[Zs],flushAsyncTransactions:[Zs],getBestCostNodeSelection:[Zs],getServerSideSelectionState:[za],setServerSideSelectionState:[za],applyServerSideTransaction:[za],applyServerSideTransactionAsync:[za],applyServerSideRowData:[za],retryServerSideLoads:[za],flushServerSideAsyncTransactions:[za],refreshServerSide:[za],getServerSideGroupLevelState:[za],refreshInfiniteCache:[bh],purgeInfiniteCache:[bh],getInfiniteRowCount:[bh],isLastRowIndexKnown:[bh,za],expandAll:[Zs,za],collapseAll:[Zs,za],onRowHeightChanged:[Zs,za],setRowCount:[bh,za],getCacheBlockState:[bh,za]},CT={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}};function _M(i,o,v){let I=CT[i];if(I){let{version:W,new:Z,old:ee,message:le}=I,we=ee!=null?ee:i;return(...Ae)=>{let Ee=Z?`Please use ${Z} instead. `:"";return Ac(`Since ${W} api.${we} is deprecated. ${Ee}${le!=null?le:""}`),o.apply(o,Ae)}}let N=hS[i];return N?(...W)=>{let Z=v.rowModel.getType();if(!N.includes(Z)){sd(`api.${i} can only be called when gridOptions.rowModelType is ${N.join(" or ")}`);return}return o.apply(o,W)}:o}var ST={AdvancedFilter:1,AllEnterprise:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,Pivot:1,RangeSelection:1,RichSelect:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1},NM=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],bL={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:NM,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...NM,"QuickFilter","ExternalFilter","AdvancedFilter"],GroupCellRenderer:["RowGrouping","Pivot","TreeData","MasterDetail","ServerSideRowModel"],KeyboardNavigation:["AllCommunity"],LoadingCellRenderer:["ServerSideRowModel"],MenuCore:["ColumnMenu","ContextMenu"],MenuItem:["ColumnMenu","ContextMenu","MultiFilter","IntegratedCharts","ColumnsToolPanel"],Overlay:["AllCommunity"],PinnedColumn:["AllCommunity"],SharedAggregation:["RowGrouping","Pivot","TreeData","ServerSideRowModel"],SharedDragAndDrop:["AllCommunity"],SharedMasterDetail:["MasterDetail","ServerSideRowModel"],SharedMenu:[...NM,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},wT={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function Ob(i,o){let v=[];return(Array.isArray(i)?i:[i]).forEach(I=>{let N=bL[I];N?N.forEach(W=>{let Z=wT[W];(!Z||Z===o)&&v.push(W)}):v.push(I)}),v}var Hc={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agDateColumnFloatingFilter:"DateFilter",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar"},gS=i=>`import { ModuleRegistry } from 'ag-grid-community'; 
${i.map(v=>`import { ${Ch(v)} } from '${ST[v]?"ag-grid-enterprise":"ag-grid-community"}';`).join(` 
`)} 

ModuleRegistry.registerModules([ ${i.map(Ch).join(", ")} ]); 

For more info see: ${cm}/modules/`;function Ch(i){return`${i}Module`}var zM=({reasonOrId:i,moduleName:o,gridScoped:v,gridId:I,rowModelType:N,additionalText:W})=>{let Z=Ob(o,N);return`Unable to use ${typeof i=="string"?i:Lv[i]} as ${Z.length>1?"one of "+Z.map(Ch).join(", "):Ch(Z[0])} is not registered${v?" for gridId: "+I:""}. Check if you have registered the module:
${gS(Z)}`+(W?` 

${W}`:"")},BM=i=>`${i} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.

import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
import { ModuleRegistry } from 'ag-grid-community';
import { ${i} } from 'ag-grid-enterprise';
    
ModuleRegistry.registerModules([${i}.with(AgChartsEnterpriseModule)]);
    `,Jm=i=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${i}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`,ug={1:()=>"`rowData` must be an array",2:({nodeId:i})=>`Duplicate node id '${i}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:i})=>`Could not find row id=${i}, data item was not found for this id`,5:({data:i})=>["Could not find data item as object was not found.",i," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different columns in each grid.",8:({key:i})=>`Unknown key for navigation ${i}`,9:({variable:i})=>`No value for ${i.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${i.defaultValue} will be used and updated when styles load.`,10:({eventType:i})=>`As of v33, the '${i}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:i})=>["column ",i," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:i})=>`Row IDs cannot start with ${i}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:i})=>["value should be either a string or a function",i],16:({expression:i,params:o,e:v})=>["Processing of the expression failed","Expression = ",i,"Params = ",o,"Exception = ",v],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>`You may want to configure via a callback to avoid setup race conditions:
                     "alignedGrids: () => [linkedGrid]"`,21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:i})=>`${i} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>"row height must be a number if not using standard row model",25:({id:i})=>["The getRowId callback must return a string. The ID ",i," is being cast to a string."],26:({fnName:i,preDestroyLink:o})=>`Grid API function ${i}() cannot be called as the grid has been destroyed.
 Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
 To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${o}`,27:({fnName:i,module:o})=>`API function '${i}' not registered to module '${o}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:i})=>["tried to insert columns in invalid location, toIndex = ",i,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:i})=>`the column type '${i}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:i})=>"colDef.type '"+i+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:i})=>`provided icon '${i}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e:i,method:o})=>`${i}
${Jm(o)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:i})=>`As of v33, icon '${i}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:i})=>`The data type definition ${i} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:i})=>`Missing data type definition - "${i}"`,48:({property:i})=>`Cell data type is "object" but no Value ${i} has been provided. Please either provide an object data type definition with a Value ${i}, or set "colDef.value${i}"`,49:({methodName:i})=>`Framework component is missing the method ${i}()`,50:({compName:i})=>`Could not find component ${i}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:i})=>`setFilterModel() - no column found for colId: ${i}`,63:({colId:i})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${i}`,64:({colId:i})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${i}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:i})=>`getGui method from filter returned ${i}; it should be a DOM element.`,70:({newFilter:i})=>`Grid option quickFilterText only supports string inputs, received: ${typeof i}`,71:()=>"debounceMs is ignored when apply button is present",72:({keys:i})=>["ignoring FilterOptionDef as it doesn't contain one of ",i],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:i})=>['Unexpected type of filter "',i,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:i})=>`DateFilter ${i} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:i})=>`Invalid row index for ensureIndexVisible: ${i}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:({methodName:i})=>`AnimationFrameService.${i} called but animation frames are off`,93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:i,pageSizeSet:o,pageSizesSet:v,pageSizeOptions:I})=>`'paginationPageSize=${i}'${o?"":" (default value)"}, but ${i} is not included in${v?"":" the default"} paginationPageSizeSelector=[${I.join(", ")}].`,95:({paginationPageSizeOption:i,paginationPageSizeSelector:o})=>`Either set '${o}' to an array that includes ${i} or to 'false' to disable the page size selector.`,96:({id:i,data:o})=>["Duplicate ID",i,"found for pinned row with data",o,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:i})=>`cellEditor for column ${i} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",100:({rowModelType:i})=>`selectAll only available when rowModelType='clientSide', ie not ${i}`,101:({propertyName:i,componentName:o,agGridDefaults:v,jsComps:I})=>{let N=[],W=[...Object.keys(v).filter(ee=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(ee)),...Object.keys(I)],Z=jc({inputValue:o,allSuggestions:W,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return N.push(`Could not find '${o}' component. It was configured as "${i}: '${o}'" but it wasn't found in the list of registered components.
`),Z.length>0&&N.push(`         Did you mean: [${Z.slice(0,3)}]?
`),N.push("If using a custom component check it has been registered correctly."),N},102:()=>"selecting just filtered only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:i,param:o})=>`Numeric value ${i} passed to ${o} param will be interpreted as ${i} seconds. If this is intentional use "${i}s" to silence this warning.`,105:({e:i})=>["chart rendering failed",i],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${cm}/theming-migration/`,107:({key:i,value:o})=>`Invalid value for theme param ${i} - ${o}`,108:({e:i})=>["chart update failed",i],109:({aggFuncOrString:i})=>`unrecognised aggregation function ${i}`,110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelectsChildren` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:i})=>`Could not find component with name of ${i}. Is it in Vue.components?`,115:()=>"The provided selection state should be an object.",116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>"selectAll must be of boolean type.",118:()=>"Infinite scrolling must be enabled in order to set the row count.",119:()=>"Unable to instantiate filter",120:()=>"MultiFloatingFilterComp expects MultiFilter as its parent",121:()=>"a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (see AG Grid docs) or b) to toString() on the object to return a key",122:()=>"could not find the document, document is empty",123:()=>"Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.",124:()=>"No active charts to update.",125:({chartId:i})=>`Unable to update chart. No active chart found with ID: ${i}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:i})=>`unable to create chart as ${i?"there are no columns in the grid":"no range is selected"}.`,128:({feature:i})=>`${i} is only available if using 'multiRow' selection mode.`,129:({feature:i,rowModel:o})=>`${i} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${o}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',131:()=>"cannot range select while selecting multiple rows",132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:i})=>`icon '${i}' function should return back a string or a dom object`,134:({iconName:i})=>`Did not find icon '${i}'`,135:()=>"Data type of the new value does not match the cell data type of the column",136:()=>"Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.",137:({type:i,currentChartType:o})=>`Unable to update chart as a '${i}' update type is not permitted on a ${o}.`,138:({chartType:i})=>`invalid chart type supplied: ${i}`,139:({customThemeName:i})=>`a custom chart theme with the name ${i} has been supplied but not added to the 'chartThemes' list`,140:({name:i})=>`no stock theme exists with the name '${i}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>"cross filtering with row grouping is not supported.",142:()=>"cross filtering is only supported in the client side row model.",143:({panel:i})=>`'${i}' is not a valid Chart Tool Panel name`,144:({type:i})=>`Invalid charts data panel group name supplied: '${i}'`,145:({group:i})=>`As of v32, only one charts customize panel group can be expanded at a time. '${i}' will not be expanded.`,146:({comp:i})=>`Unable to instantiate component '${i}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:i})=>`Invalid charts customize panel group name supplied: '${i}'`,148:({group:i})=>`invalid chartGroupsDef config '${i}'`,149:({group:i,chartType:o})=>`invalid chartGroupsDef config '${i}.${o}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:i})=>`invalid chartType '${i}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:i})=>`no 'seriesChartType' found for colId = '${i}', defaulting to 'line'.`,153:({chartDataType:i})=>`unexpected chartDataType value '${i}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:i})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${i}`,155:({option:i})=>`'${i}' is not a valid Chart Toolbar Option`,156:({panel:i})=>`Invalid panel in chartToolPanelsDef.panels: '${i}'`,157:({unrecognisedGroupIds:i})=>["unable to find group(s) for supplied groupIds:",i],158:()=>"can not expand a column item that does not represent a column group header",159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>"Export cancelled. Export is not allowed as per your configuration.",161:()=>"The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'",162:({id:i,dataType:o})=>`Unrecognized data type for excel export [${i}.dataType=${o}]`,163:({featureName:i})=>`Excel table export does not work with ${i}. The exported Excel file will not contain any Excel tables.
 Please turn off ${i} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:i})=>["unable to find groups for these supplied groupIds:",i],167:({unrecognisedColIds:i})=>["unable to find columns for these supplied colIds:",i],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:i})=>`invalid cellRendererParams.refreshStrategy = ${i} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:i})=>`invalid chartGroupsDef config '${i}'`,174:({group:i,chartType:o})=>`invalid chartGroupsDef config '${i}.${o}'`,175:({menuTabName:i,itemsToConsider:o})=>[`Trying to render an invalid menu item '${i}'. Check that your 'menuTabs' contains one of `,o],176:({key:i})=>`unknown menu item type ${i}`,177:()=>"valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:i})=>`column ${i} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:i,childNodeData:o})=>["duplicate group keys for row data, keys should be unique",[i,o]],185:({data:i})=>["getDataPath() should not return an empty path",[i]],186:({rowId:i,rowData:o,duplicateRowsData:v})=>["duplicate group keys for row data, keys should be unique",i,o,...v],187:({rowId:i,firstData:o,secondData:v})=>[`Duplicate node id ${i}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",o,"second instance",v],188:()=>"getRowId callback must be provided for Server Side Row Model selection to work correctly.",189:({startRow:i})=>`invalid value ${i} for startRow, the value should be >= 0`,190:({rowGroupId:i,data:o})=>["null and undefined values are not allowed for server side row model keys",i?`column = ${i}`:"","data is ",o],191:()=>"cannot multi select unless selection mode is 'multiRow'",192:()=>"cannot use range selection when multi selecting rows",193:()=>"cannot multi select unless selection mode is 'multiRow'",194:({method:i})=>`calling gridApi.${i}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:i})=>`selecting just ${i?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:i})=>`Provided ids must be of string type. Invalid id provided: ${i}`,197:()=>"`toggledNodes` must be an array of string ids.",198:()=>"cannot multi select unless selection mode is 'multiRow'",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:zM,201:({rowModelType:i})=>`Could not find row model for rowModelType = ${i}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>"Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.",204:()=>"Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.",205:({duplicateIdText:i})=>`Unable to display rows as duplicate row ids (${i}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>"getRowId callback must be implemented for transactions to work. Transaction was ignored.",207:()=>'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',208:()=>"Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${cm}/filter-set-filter-list/#filter-value-types`,210:()=>"Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?",211:()=>"property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",212:()=>"please review all your toolPanel components, it seems like at least one of them doesn't have an id",213:()=>"Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.",214:({key:i})=>`unable to lookup Tool Panel as invalid key supplied: ${i}`,215:({key:i,defaultByKey:o})=>`the key ${i} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(o).join(",")}`,216:({name:i})=>`Missing component for '${i}'`,217:({invalidColIds:i})=>["unable to find grid columns for the supplied colDef(s):",i],218:({property:i,defaultOffset:o})=>`${i} must be a number, the value you provided is not a valid number. Using the default of ${o}px.`,219:({property:i})=>`Property ${i} does not exist on the target object.`,220:({lineDash:i})=>`'${i}' is not a valid 'lineDash' option.`,221:()=>"agAggregationComponent should only be used with the client and server side row model.",222:()=>"agFilteredRowCountComponent should only be used with the client side row model.",223:()=>"agSelectedRowCountComponent should only be used with the client and server side row model.",224:()=>"agTotalAndFilteredRowCountComponent should only be used with the client side row model.",225:()=>"agTotalRowCountComponent should only be used with the client side row model.",226:()=>"viewport is missing init method.",227:()=>"menu item icon must be DOM node or string",228:({menuItemOrString:i})=>`unrecognised menu item ${i}`,229:({index:i})=>["invalid row index for ensureIndexVisible: ",i],230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:i})=>`Framework component is missing the method ${i}()`,234:()=>'Group Column Filter does not work with the colDef property "field". This property will be ignored.',235:()=>'Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.',236:()=>'Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.',237:()=>"Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.",238:()=>"setRowCount can only accept a positive row count.",239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:i})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${i}`,241:()=>"cannot select multiple rows when rowSelection.mode is set to 'singleRow'",242:()=>"cannot select multiple rows when using rangeSelect",243:()=>"Failed to deserialize state - each provided state object must be an object.",244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>`Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule. 
Please rebuild the selection state and reapply it.`,248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:i})=>`AG Grid: Unable to create chart as an invalid chartType = '${i}' was supplied.`,252:()=>`cannot get grid to draw rows when it is in the middle of drawing rows. 
Your code probably called a grid API method while the grid was in the render stage. 
To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). 
To see what part of your code that caused the refresh check this stacktrace.`,253:({version:i})=>["Illegal version string: ",i],254:()=>"Cannot create chart: no chart themes available.",255:({point:i})=>`Lone surrogate U+${i.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>BM("IntegratedChartsModule"),258:()=>BM("SparklinesModule"),259:({part:i})=>`the argument to theme.withPart must be a Theming API part object, received: ${i}`,260:({propName:i,compName:o,gridScoped:v,gridId:I,rowModelType:N})=>zM({reasonOrId:`AG Grid '${i}' component: ${o}`,moduleName:Hc[o],gridId:I,gridScoped:v,rowModelType:N}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus'};function ef(i,o){let v=ug[i];if(!v)return[`Missing error text for error id ${i}!`];let I=v(o),W=`
See ${Hf(i,o)}`;return Array.isArray(I)?I.concat(W):[I,W]}var Lv={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},a1=()=>({checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."}}),xp=()=>({aggFunc:{module:"SharedAggregation"},autoHeight:{supportedRowModels:["clientSide","serverSide"],module:"RowAutoHeight"},cellClass:{module:"CellStyle"},cellClassRules:{module:"CellStyle"},cellEditor:({cellEditor:i,editable:o})=>{if(!o)return null;if(typeof i=="string"){let v=Hc[i];if(v)return{module:v}}return{module:"CustomEditor"}},cellRenderer:({cellRenderer:i})=>{if(typeof i!="string")return null;let o=Hc[i];return o?{module:o}:null},cellRendererParams:{validate:i=>(i.rowGroup!=null||i.rowGroupIndex!=null||i.cellRenderer==="agGroupCellRenderer")&&"checkbox"in i.cellRendererParams?'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.':null},cellStyle:{module:"CellStyle"},children:()=>kd(),columnChooserParams:{module:"ColumnMenu"},contextMenuItems:{module:"ContextMenu"},dndSource:{module:"DragAndDrop"},dndSourceOnRowDrag:{module:"DragAndDrop"},editable:({editable:i,cellEditor:o})=>i&&!o?{module:"TextEditor"}:null,enableCellChangeFlash:{module:"HighlightChanges"},enablePivot:{module:"SharedPivot"},enableRowGroup:{module:"SharedRowGrouping"},enableValue:{module:"SharedAggregation"},filter:({filter:i})=>{if(i&&typeof i!="string"&&typeof i!="boolean")return{module:"CustomFilter"};if(typeof i=="string"){let o=Hc[i];if(o)return{module:o}}return{module:"ColumnFilter"}},floatingFilter:{module:"ColumnFilter"},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(i,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(i,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(i,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerTooltip:{module:"Tooltip"},headerValueGetter:{validate:i=>{let o=i.headerValueGetter;return typeof o=="function"||typeof o=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:i})=>{if(i){if(i.smallDown)return Po(262);if(i.smallLeft)return Po(263);if(i.smallRight)return Po(264)}return null}},mainMenuItems:{module:"ColumnMenu"},menuTabs:i=>{var v;let o=["columnsMenuTab","generalMenuTab"];return(v=i.menuTabs)!=null&&v.some(I=>o.includes(I))?{module:"ColumnMenu"}:null},pivot:{module:"SharedPivot"},pivotIndex:{module:"SharedPivot"},rowDrag:{module:"RowDrag"},rowGroup:{module:"SharedRowGrouping"},rowGroupIndex:{module:"SharedRowGrouping"},sortingOrder:{validate:i=>{let o=i.sortingOrder;if(Array.isArray(o)&&o.length>0){let v=o.filter(I=>!Ib.includes(I));if(v.length>0)return`sortingOrder must be an array with elements from [${Ib.map(Os).join()}], currently it includes [${v.map(Os).join()}]`}else if(!Array.isArray(o)||o.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${o}`;return null}},tooltipField:{module:"Tooltip"},tooltipValueGetter:{module:"Tooltip"},type:{validate:i=>{let o=i.type;return o instanceof Array?o.some(I=>typeof I!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof o=="string"?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(i,{suppressRowTransform:o})=>o?null:"colDef.rowSpan requires suppressRowTransform to be enabled."}}),o1={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0},hg=()=>Object.keys(o1),kd=()=>({objectName:"colDef",allProperties:hg(),docsUrl:"column-properties/",deprecations:a1(),validations:xp()}),El=()=>({suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."},groupRemoveSingleChildren:{version:"33",message:"Use `groupHideParentOfSingleChild` instead."},groupRemoveLowestSingleChildren:{version:"33",message:'Use `groupHideParentOfSingleChild: "leafGroupsOnly"` instead.'},suppressRowGroupHidesColumns:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressHideOnGroup"` instead.'},suppressMakeColumnVisibleAfterUnGroup:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressShowOnUngroup"` instead.'},unSortIcon:{version:"33",message:"Use `defaultColDef.unSortIcon` instead."},sortingOrder:{version:"33",message:"Use `defaultColDef.sortingOrder` instead."},suppressPropertyNamesCheck:{version:"33",message:"`gridOptions` and `columnDefs` both have a `context` property that should be used for arbitrary user data. This means that column definitions and gridOptions should only contain valid properties making this property redundant."}});function Sh(i,o,v,I=Number.MAX_VALUE){return typeof o=="number"||o==null?o==null||o>=v&&o<=I?null:I===Number.MAX_VALUE?`${i}: value should be greater than or equal to ${v}`:`${i}: value should be between ${v} and ${I}`:`${i}: value should be a number`}var r1=()=>{let i={alignedGrids:{module:"AlignedGrids"},allowContextMenuWithControlKey:{module:"ContextMenu"},autoSizePadding:{validate({autoSizePadding:v}){return Sh("autoSizePadding",v,0)}},autoSizeStrategy:{module:"ColumnAutoSize"},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:v}){return Sh("cacheBlockSize",v,1)}},cacheOverflowSize:{validate({cacheOverflowSize:v}){return Sh("cacheOverflowSize",v,1)}},cellSelection:{module:"CellSelection"},columnHoverHighlight:{module:"ColumnHover"},datasource:{supportedRowModels:["infinite"],module:"InfiniteRowModel"},doesExternalFilterPass:{module:"ExternalFilter"},domLayout:{validate:v=>{let I=v.domLayout,N=["autoHeight","normal","print"];return I&&!N.includes(I)?`domLayout must be one of [${N.join()}], currently it's ${I}`:null}},editType:{module:"EditCore"},enableAdvancedFilter:{module:"AdvancedFilter"},enableCharts:{module:"IntegratedCharts"},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{module:"CellSelection",dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},getContextMenuItems:{module:"ContextMenu"},getLocaleText:{module:"Locale"},getMainMenuItems:{module:"ColumnMenu"},getRowClass:{module:"RowStyle"},getRowStyle:{module:"RowStyle"},grandTotalRow:{module:"SharedRowGrouping"},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},icons:{validate:({icons:v})=>{if(v){if(v.smallDown)return Po(262);if(v.smallLeft)return Po(263);if(v.smallRight)return Po(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:v}){return Sh("infiniteInitialRowCount",v,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},initialState:{module:"GridState"},isExternalFilterPresent:{module:"ExternalFilter"},keepDetailRowsCount:{validate({keepDetailRowsCount:v}){return Sh("keepDetailRowsCount",v,1)}},localeText:{module:"Locale"},masterDetail:{module:"SharedMasterDetail"},pagination:{module:"Pagination"},paginationPageSize:{validate({paginationPageSize:v}){return Sh("paginationPageSize",v,1)}},paginationPageSizeSelector:{validate:v=>{let I=v.paginationPageSizeSelector;return typeof I=="boolean"||I==null||I.length?null:`'paginationPageSizeSelector' cannot be an empty array.
                    If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},pinnedTopRowData:{module:"PinnedRow"},pinnedBottomRowData:{module:"PinnedRow"},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}},module:"SharedPivot"},pivotPanelShow:{module:"RowGroupingPanel"},quickFilterText:{supportedRowModels:["clientSide"],module:"QuickFilter"},rowBuffer:{validate({rowBuffer:v}){return Sh("rowBuffer",v,0)}},rowClass:{validate:v=>typeof v.rowClass=="function"?"rowClass should not be a function, please use getRowClass instead":null,module:"RowStyle"},rowClassRules:{module:"RowStyle"},rowData:{supportedRowModels:["clientSide"],module:"ClientSideRowModel"},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{treeData:{required:[!1,void 0]},pagination:{required:[!1,void 0]}},module:"RowDrag"},rowGroupPanelShow:{module:"RowGroupingPanel"},rowSelection:{validate({rowSelection:v}){return v&&typeof v=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':v&&typeof v!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":v&&v.mode!=="multiRow"&&v.mode!=="singleRow"?`Selection mode "${v.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null},module:"SharedRowSelection"},rowStyle:{validate:v=>{let I=v.rowStyle;return I&&typeof I=="function"?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null},module:"RowStyle"},serverSideDatasource:{supportedRowModels:["serverSide"],module:"ServerSideRowModel"},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:v}){return Sh("serverSideInitialRowCount",v,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sideBar:{module:"SideBar"},sortingOrder:{validate:v=>{let I=v.sortingOrder;if(Array.isArray(I)&&I.length>0){let N=I.filter(W=>!Ib.includes(W));if(N.length>0)return`sortingOrder must be an array with elements from [${Ib.map(Os).join()}], currently it includes [${N.map(Os).join()}]`}else if(!Array.isArray(I)||I.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${I}`;return null}},statusBar:{module:"StatusBar"},tooltipHideDelay:{validate:v=>v.tooltipHideDelay&&v.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:v=>v.tooltipShowDelay&&v.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],module:"SharedTreeData",validate:v=>{var N;let I=(N=v.rowModelType)!=null?N:"clientSide";switch(I){case"clientSide":{let W=`treeData requires 'getDataPath' in the ${I} row model.`;return v.treeDataChildrenField||v.getDataPath?null:W}case"serverSide":{let W=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${I} row model.`;return v.isServerSideGroup&&v.getServerSideGroupKey?null:W}}return null}},treeDataChildrenField:{module:"SharedTreeData"},undoRedoCellEditing:{module:"UndoRedoEdit"},valueCache:{module:"ValueCache"},viewportDatasource:{supportedRowModels:["viewport"],module:"ViewportRowModel"},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:v}){return Sh("viewportRowModelBufferSize",v,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:v}){return Sh("viewportRowModelPageSize",v,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}}},o={};return dS.forEach(v=>{o[v]={expectedType:"boolean"}}),Pb.forEach(v=>{o[v]={expectedType:"number"}}),yo(o,i),o},xT=()=>({objectName:"gridOptions",allProperties:[...OM,...RM.map(i=>Hi(i))],propertyExceptions:["api","treeDataChildrenField"],docsUrl:"grid-options/",deprecations:El(),validations:r1()}),GM={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1},MT={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore"},kT=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),AT={pinSubMenu:"PinnedColumn",pinLeft:"PinnedColumn",pinRight:"PinnedColumn",clearPinned:"PinnedColumn",valueAggSubMenu:"SharedAggregation",autoSizeThis:"ColumnAutoSize",autoSizeAll:"ColumnAutoSize",rowGroup:"SharedRowGrouping",rowUnGroup:"SharedRowGrouping",resetColumns:"CommunityCore",expandAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],contractAll:["ClientSideRowModelHierarchy","ServerSideRowModel"],copy:"Clipboard",copyWithHeaders:"Clipboard",copyWithGroupHeaders:"Clipboard",cut:"Clipboard",paste:"Clipboard",export:["CsvExport","ExcelExport"],csvExport:"CsvExport",excelExport:"ExcelExport",separator:"CommunityCore",pivotChart:"IntegratedCharts",chartRange:"IntegratedCharts",columnFilter:"ColumnFilter",columnChooser:"ColumnMenu",sortAscending:"Sort",sortDescending:"Sort",sortUnSort:"Sort"},s1=class extends jt{constructor(){super(...arguments),this.beanName="validation"}wireBeans(i){this.gridOptions=i.gridOptions,Iy(this)}postConstruct(){this.processGridOptions(this.gridOptions)}warnOnInitialPropertyUpdate(i,o){i==="api"&&FM[o]&&ii(22,{key:o})}processGridOptions(i){this.processOptions(i,xT())}validateApiFunction(i,o){return _M(i,o,this.beans)}missingUserComponent(i,o,v,I){let N=Hc[o];N?this.gos.assertModuleRegistered(N,`AG Grid '${i}' component: ${o}`):ii(101,{propertyName:i,componentName:o,agGridDefaults:v,jsComps:I})}checkRowEvents(i){l1.has(i)&&ii(10,{eventType:i})}validateIcon(i){if(kT.has(i)&&ii(43,{iconName:i}),GM[i])return;let o=MT[i];if(o){aa(200,{reasonOrId:`icon '${i}'`,moduleName:o,gridScoped:co(),gridId:this.beans.context.getGridId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}ii(134,{iconName:i})}validateMenuItem(i){let o=AT[i];o&&this.gos.assertModuleRegistered(o,`menu item '${i}'`)}isProvidedUserComp(i){return!!Hc[i]}validateColDef(i,o,v){var I;(v||!((I=this.beans.dataTypeSvc)!=null&&I.isColPendingInference(o)))&&this.processOptions(i,kd())}processOptions(i,o){let{validations:v,deprecations:I,allProperties:N,propertyExceptions:W,objectName:Z,docsUrl:ee}=o;N&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(i,[...W!=null?W:[],...Object.keys(I)],N,Z,ee);let le=new Set,we=Ee=>{let Ve=v[Ee];if(Ve)if(typeof Ve=="function"){let Je=Ve(i,this.gridOptions,this.beans);if(!Je)return;if("objectName"in Je){let gt=i[Ee];if(Array.isArray(gt)){gt.forEach(kt=>{this.processOptions(kt,Je)});return}this.processOptions(i[Ee],Je);return}return Je}else return Ve;else return};Object.keys(i).forEach(Ee=>{var Wt;let Ve=I[Ee];if(Ve){let{message:di,version:Di}=Ve;le.add(`As of v${Di}, ${String(Ee)} is deprecated. ${di!=null?di:""}`)}let Je=i[Ee];if(Je==null||Je===!1)return;let gt=we(Ee);if(!gt)return;let{module:kt,dependencies:xt,validate:Ft,supportedRowModels:Ht,expectedType:Gt}=gt;if(Gt){let di=typeof Je;if(di!==Gt){le.add(`${String(Ee)} should be of type '${Gt}' but received '${di}' (${Je}).`);return}}if(Ht){let di=(Wt=this.gridOptions.rowModelType)!=null?Wt:"clientSide";if(!Ht.includes(di)){le.add(`${String(Ee)} is not supported with the '${di}' row model. It is only valid with: ${Ht.join(", ")}.`);return}}if(kt){let di=Array.isArray(kt)?kt:[kt],Di=!0;if(di.forEach(un=>{this.gos.assertModuleRegistered(un,String(Ee))||(Di=!1)}),!Di)return}if(xt){let di=this.checkForRequiredDependencies(Ee,xt,i);if(di){le.add(di);return}}if(Ft){let di=Ft(i,this.gridOptions,this.beans);if(di){le.add(di);return}}}),le.size>0&&le.forEach(Ee=>{Ac(Ee)})}checkForRequiredDependencies(i,o,v){let N=Object.entries(o).filter(([W,Z])=>{let ee=v[W];return!Z.required.includes(ee)});return N.length===0?null:N.map(([W,Z])=>{var ee;return`'${String(i)}' requires '${W}' to be one of [${Z.required.map(le=>le===null?"null":le===void 0?"undefined":le).join(", ")}]. ${(ee=Z.reason)!=null?ee:""}`}).join(`
           `)}checkProperties(i,o,v,I,N){let W=["__ob__","__v_skip","__metadata__"],Z=Fb(Object.getOwnPropertyNames(i),[...W,...o,...v],v);if(Object.entries(Z).forEach(([ee,le])=>{let we=`invalid ${I} property '${ee}' did you mean any of these: ${le.slice(0,8).join(", ")}.`;v.includes("context")&&(we+=`
If you are trying to annotate ${I} with application data, use the '${I}.context' property instead.`),Ac(we)}),Object.keys(Z).length>0&&N){let ee=this.beans.frameworkOverrides.getDocLink(N);Ac(`to see all the valid ${I} properties please check: ${ee}`)}}getConsoleMessage(i,o){return ef(i,o)}};function Fb(i,o,v){let I={},N=i.filter(W=>!o.some(Z=>Z===W));return N.length>0&&N.forEach(W=>I[W]=jc({inputValue:W,allSuggestions:v}).values),I}var l1=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),pS={moduleName:"Validation",version:ri,beans:[s1]};function ko(i){i.sibling&&(i.sibling.childrenAfterFilter=i.childrenAfterFilter)}var po=class extends jt{constructor(){super(...arguments),this.beanName="filterStage",this.refreshProps=new Set(["excludeChildrenWhenTreeDataFiltering"]),this.step="filter"}wireBeans(i){this.filterManager=i.filterManager}execute(i){let{changedPath:o}=i;this.filter(o)}filter(i){var v;let o=!!((v=this.filterManager)!=null&&v.isChildFilterPresent());this.filterNodes(o,i)}filterNodes(i,o){let v=(I,N)=>{I.hasChildren()&&i&&!N?I.childrenAfterFilter=I.childrenAfterGroup.filter(W=>{let Z=W.childrenAfterFilter&&W.childrenAfterFilter.length>0,ee=W.data&&this.filterManager.doesRowPassFilter({rowNode:W});return Z||ee}):I.childrenAfterFilter=I.childrenAfterGroup,ko(I)};if(this.doingTreeDataFiltering()){let I=(W,Z)=>{if(W.childrenAfterGroup)for(let ee=0;ee<W.childrenAfterGroup.length;ee++){let le=W.childrenAfterGroup[ee],we=Z||this.filterManager.doesRowPassFilter({rowNode:le});le.childrenAfterGroup?I(W.childrenAfterGroup[ee],we):v(le,we)}v(W,Z)},N=W=>I(W,!1);o.executeFromRootNode(N)}else{let I=N=>v(N,!1);o.forEachChangedNodeDepthFirst(I,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}},VM=class extends Rn{constructor(){super(...arguments),this.iconCreated=!1}setComp(i,o,v,I,N){this.comp=i;let W=nh(this,this.beans.context,N);this.eButtonShowMainFilter=v,this.eFloatingFilterBody=I,this.setGui(o,W),this.setupActive(),this.setupWidth(W),this.setupLeft(W),this.setupHover(W),this.setupFocus(W),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(W),this.setupUi(),W.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(W),W.addManagedListeners(this.column,{colDefChanged:()=>this.onColDefChanged(W)}),W.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}setupActive(){let i=this.column.getColDef(),o=!!i.filter,v=!!i.floatingFilter;this.active=o&&v}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;let i=ma("filter",this.beans,this.column);i&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(i))}setupFocus(i){i.createManagedBean(new dh(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){let i=this.getLocaleTextFunc();j(this.eButtonShowMainFilter,i("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(i){var Z;let{beans:o}=this;if(ga(o)===this.eGui)return;let N=ni(o,this.eGui,null,i.shiftKey);if(N){(Z=o.headerNavigation)==null||Z.scrollToColumn(this.column),i.preventDefault(),N.focus();return}let W=this.findNextColumnWithFloatingFilter(i.shiftKey);W&&o.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:W},event:i})&&i.preventDefault()}findNextColumnWithFloatingFilter(i){let o=this.beans.visibleCols,v=this.column;do if(v=i?o.getColBefore(v):o.getColAfter(v),!v)break;while(!v.getColDef().filter||!v.getColDef().floatingFilter);return v}handleKeyDown(i){super.handleKeyDown(i);let o=this.getWrapperHasFocus();switch(i.key){case Bt.UP:case Bt.DOWN:o||i.preventDefault();case Bt.LEFT:case Bt.RIGHT:if(o)return;i.stopPropagation();case Bt.ENTER:o&&Jd(this.eGui)&&i.preventDefault();break;case Bt.ESCAPE:o||this.eGui.focus()}}onFocusIn(i){if(this.eGui.contains(i.relatedTarget))return;let v=!!i.relatedTarget&&!i.relatedTarget.classList.contains("ag-floating-filter"),I=!!i.relatedTarget&&is(i.relatedTarget,"ag-floating-filter");if(v&&I&&i.target===this.eGui){let N=this.lastFocusEvent,W=!!(N&&N.key===Bt.TAB);if(N&&W){let Z=N.shiftKey;Jd(this.eGui,Z)}}this.focusThis()}setupHover(i){var o;(o=this.beans.colHover)==null||o.addHeaderFilterColumnHoverListener(i,this.comp,this.column,this.eGui)}setupLeft(i){let o=new nb(this.column,this.eGui,this.beans);i.createManagedBean(o)}setupFilterButton(){var i;this.suppressFilterButton=!((i=this.beans.menuSvc)!=null&&i.isFloatingFilterButtonEnabled(this.column)),this.highlightFilterButtonWhenActive=!jo(this.gos)}setupUserComp(){var o;if(!this.active)return;let i=(o=this.beans.filterManager)==null?void 0:o.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());i&&this.setCompDetails(i)}setCompDetails(i){this.userCompDetails=i,this.comp.setCompDetails(i)}showParentFilter(){var o;let i=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;(o=this.beans.menuSvc)==null||o.showFilterMenu({column:this.column,buttonElement:i,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(i){if(!this.active)return;let{filterManager:o}=this.beans,v=I=>{if((I==null?void 0:I.source)==="filterDestroyed"&&!this.isAlive())return;let N=this.comp.getFloatingFilterComp();N&&N.then(W=>{var Z;if(W){let ee=o==null?void 0:o.getCurrentFloatingFilterParentModel(this.column),le=I?He(ge({},I),{columns:(Z=I.columns)!=null?Z:[],source:I.source==="api"?"api":"columnFilter"}):null;W.onParentModelChanged(ee,le)}})};[this.destroySyncListener]=i.addManagedListeners(this.column,{filterChanged:v}),o!=null&&o.isFilterActive(this.column)&&v(null)}setupWidth(i){let o=()=>{let v=`${this.column.getActualWidth()}px`;this.comp.setWidth(v)};i.addManagedListeners(this.column,{widthChanged:o}),o()}setupFilterChangedListener(i){this.active&&([this.destroyFilterChangedListener]=i.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){var i;if(!this.suppressFilterButton&&this.comp){let o=!!((i=this.beans.filterManager)!=null&&i.isFilterAllowed(this.column));this.comp.setButtonWrapperDisplayed(o),this.highlightFilterButtonWhenActive&&o&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(i){var W;let o=this.active;this.setupActive();let v=!o&&this.active;o&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());let I=this.active?(W=this.beans.filterManager)==null?void 0:W.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,N=this.comp.getFloatingFilterComp();!N||!I?this.updateCompDetails(i,I,v):N.then(Z=>{var ee,le;!Z||(le=this.beans.filterManager)!=null&&le.areFilterCompsDifferent((ee=this.userCompDetails)!=null?ee:null,I)?this.updateCompDetails(i,I,v):this.updateFloatingFilterParams(I)})}updateCompDetails(i,o,v){this.isAlive()&&(this.setCompDetails(o),this.setupFilterButton(),this.setupUi(),v&&(this.setupSyncWithFilter(i),this.setupFilterChangedListener(i)))}updateFloatingFilterParams(i){var v;if(!i)return;let o=i.params;(v=this.comp.getFloatingFilterComp())==null||v.then(I=>{I!=null&&I.refresh&&typeof I.refresh=="function"&&I.refresh(o)})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function Wc(i,o){var I;let v=i.colModel.getCol(o);if(!v){aa(12,{colKey:o});return}(I=i.menuSvc)==null||I.showColumnMenu({column:v,positionBy:"auto"})}function Uc(i){var o;(o=i.menuSvc)==null||o.hidePopupMenu()}var Yr={moduleName:"SharedMenu",version:ri,beans:[er],apiFunctions:{showColumnMenu:Wc,hidePopupMenu:Uc}},_b=0,Nb=200,mS=class extends jt{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.gridCtrl=i.gridCtrl}),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){let i=this.gos.get("popupParent");return i||this.gridCtrl.getGui()}positionPopupForMenu(i){let{eventSource:o,ePopup:v}=i,I=this.getPopupIndex(v);if(I!==-1){let Je=this.popupList[I];Je.alignedToElement=o}let N=o.getBoundingClientRect(),W=this.getParentRect(),Z=this.keepXYWithinBounds(v,N.top-W.top,0),ee=v.clientWidth>0?v.clientWidth:200;v.style.minWidth=`${ee}px`;let we=W.right-W.left-ee,Ae;this.gos.get("enableRtl")?(Ae=Ve(),Ae<0&&(Ae=Ee(),this.setAlignedStyles(v,"left")),Ae>we&&(Ae=0,this.setAlignedStyles(v,"right"))):(Ae=Ee(),Ae>we&&(Ae=Ve(),this.setAlignedStyles(v,"right")),Ae<0&&(Ae=0,this.setAlignedStyles(v,"left"))),v.style.left=`${Ae}px`,v.style.top=`${Z}px`;function Ee(){return N.right-W.left-2}function Ve(){return N.left-W.left-ee}}positionPopupUnderMouseEvent(i){let{ePopup:o,nudgeX:v,nudgeY:I,skipObserver:N}=i;this.positionPopup({ePopup:o,nudgeX:v,nudgeY:I,keepWithinBounds:!0,skipObserver:N,updatePosition:()=>this.calculatePointerAlign(i.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(i.type,i.ePopup,null,i.mouseEvent,i.column,i.rowNode)})}calculatePointerAlign(i){let o=this.getParentRect();return{x:i.clientX-o.left,y:i.clientY-o.top}}positionPopupByComponent(i){let{ePopup:o,nudgeX:v,nudgeY:I,keepWithinBounds:N,eventSource:W,alignSide:Z="left",position:ee="over",column:le,rowNode:we,type:Ae}=i,Ee=W.getBoundingClientRect(),Ve=this.getParentRect(),Je=this.getPopupIndex(o);if(Je!==-1){let kt=this.popupList[Je];kt.alignedToElement=W}let gt=()=>{let kt=Ee.left-Ve.left;Z==="right"&&(kt-=o.offsetWidth-Ee.width);let xt;return ee==="over"?(xt=Ee.top-Ve.top,this.setAlignedStyles(o,"over")):(this.setAlignedStyles(o,"under"),this.shouldRenderUnderOrAbove(o,Ee,Ve,i.nudgeY||0)==="under"?xt=Ee.top-Ve.top+Ee.height:xt=Ee.top-o.offsetHeight-(I||0)*2-Ve.top),{x:kt,y:xt}};this.positionPopup({ePopup:o,nudgeX:v,nudgeY:I,keepWithinBounds:N,updatePosition:gt,postProcessCallback:()=>this.callPostProcessPopup(Ae,o,W,null,le,we)})}shouldRenderUnderOrAbove(i,o,v,I){let N=v.bottom-o.bottom,W=o.top-v.top,Z=i.offsetHeight+I;return N>Z?"under":W>Z||W>N?"above":"under"}setAlignedStyles(i,o){let v=this.getPopupIndex(i);if(v===-1)return;let I=this.popupList[v],{alignedToElement:N}=I;!N||(["right","left","over","above","under"].forEach(Z=>{N.classList.remove(`ag-has-popup-positioned-${Z}`),i.classList.remove(`ag-popup-positioned-${Z}`)}),!o)||(N.classList.add(`ag-has-popup-positioned-${o}`),i.classList.add(`ag-popup-positioned-${o}`))}callPostProcessPopup(i,o,v,I,N,W){let Z=this.gos.getCallback("postProcessPopup");Z&&Z({column:N,rowNode:W,ePopup:o,type:i,eventSource:v,mouseEvent:I})}positionPopup(i){let{ePopup:o,keepWithinBounds:v,nudgeX:I,nudgeY:N,skipObserver:W,updatePosition:Z}=i,ee={width:0,height:0},le=(we=!1)=>{let{x:Ae,y:Ee}=Z();we&&o.clientWidth===ee.width&&o.clientHeight===ee.height||(ee.width=o.clientWidth,ee.height=o.clientHeight,I&&(Ae+=I),N&&(Ee+=N),v&&(Ae=this.keepXYWithinBounds(o,Ae,1),Ee=this.keepXYWithinBounds(o,Ee,0)),o.style.left=`${Ae}px`,o.style.top=`${Ee}px`,i.postProcessCallback&&i.postProcessCallback())};if(le(),!W){let we=Xl(this.beans,o,()=>le(!0));setTimeout(()=>we(),Nb)}}getActivePopups(){return this.popupList.map(i=>i.element)}getParentRect(){let i=eo(this.beans),o=this.getPopupParent();return o===i.body?o=i.documentElement:getComputedStyle(o).position==="static"&&(o=o.offsetParent),Fh(o)}keepXYWithinBounds(i,o,v){let I=v===0,N=I?"clientHeight":"clientWidth",W=I?"top":"left",Z=I?"height":"width",ee=I?"scrollTop":"scrollLeft",le=eo(this.beans),we=le.documentElement,Ae=this.getPopupParent(),Ee=i.getBoundingClientRect(),Ve=Ae.getBoundingClientRect(),Je=le.documentElement.getBoundingClientRect(),gt=Ae===le.body,kt=Math.ceil(Ee[Z]),Ft=gt?(I?La:Oh)(we)+we[ee]:Ae[N];gt&&(Ft-=Math.abs(Je[W]-Ve[W]));let Ht=Ft-kt;return Math.min(Math.max(o,0),Math.abs(Ht))}addPopup(i){let o=eo(this.beans),{eChild:v,ariaLabel:I,alwaysOnTop:N,positionCallback:W,anchorToElement:Z}=i;if(!o)return ii(122),{hideFunc:()=>{}};let ee=this.getPopupIndex(v);if(ee!==-1)return{hideFunc:this.popupList[ee].hideFunc};this.initialisePopupPosition(v);let le=this.createPopupWrapper(v,I,!!N),we=this.addEventListenersToPopup(He(ge({},i),{wrapperEl:le}));return W&&W(),this.addPopupToPopupList(v,le,we,Z),{hideFunc:we}}initialisePopupPosition(i){let v=this.getPopupParent().getBoundingClientRect();mi(i.style.top)||(i.style.top=`${v.top*-1}px`),mi(i.style.left)||(i.style.left=`${v.left*-1}px`)}createPopupWrapper(i,o,v){let I=this.getPopupParent(),N=document.createElement("div"),{environment:W,gos:Z}=this.beans;return W.applyThemeClasses(N),N.classList.add("ag-popup"),i.classList.add(Z.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),i.hasAttribute("role")||M(i,"dialog"),j(i,o),N.appendChild(i),I.appendChild(N),v?this.setAlwaysOnTop(i,!0):this.bringPopupToFront(i),N}handleThemeChange(i){if(i.themeChanged){let o=this.beans.environment;for(let v of this.popupList)o.applyThemeClasses(v.wrapper)}}addEventListenersToPopup(i){let o=this.beans,v=eo(o),I=this.getPopupParent(),{wrapperEl:N,eChild:W,closedCallback:Z,afterGuiAttached:ee,closeOnEsc:le,modal:we}=i,Ae=!1,Ee=kt=>{if(!N.contains(ga(o)))return;kt.key===Bt.ESCAPE&&!Ri(kt)&&gt({keyboardEvent:kt})},Ve=kt=>gt({mouseEvent:kt}),Je=kt=>gt({touchEvent:kt}),gt=(kt={})=>{let{mouseEvent:xt,touchEvent:Ft,keyboardEvent:Ht,forceHide:Gt}=kt;!Gt&&(this.isEventFromCurrentPopup({mouseEvent:xt,touchEvent:Ft},W)||Ae)||(Ae=!0,I.removeChild(N),v.removeEventListener("keydown",Ee),v.removeEventListener("mousedown",Ve),v.removeEventListener("touchstart",Je),v.removeEventListener("contextmenu",Ve),this.eventSvc.removeEventListener("dragStarted",Ve),Z&&Z(xt||Ft||Ht),this.removePopupFromPopupList(W))};return ee&&ee({hidePopup:gt}),window.setTimeout(()=>{le&&v.addEventListener("keydown",Ee),we&&(v.addEventListener("mousedown",Ve),this.eventSvc.addEventListener("dragStarted",Ve),v.addEventListener("touchstart",Je),v.addEventListener("contextmenu",Ve))},0),gt}addPopupToPopupList(i,o,v,I){this.popupList.push({element:i,wrapper:o,hideFunc:v,instanceId:_b++,isAnchored:!!I}),I&&this.setPopupPositionRelatedToElement(i,I)}getPopupIndex(i){return this.popupList.findIndex(o=>o.element===i)}setPopupPositionRelatedToElement(i,o){let v=this.getPopupIndex(i);if(v===-1)return;let I=this.popupList[v];if(I.stopAnchoringPromise&&I.stopAnchoringPromise.then(W=>W&&W()),I.stopAnchoringPromise=void 0,I.isAnchored=!1,!o)return;let N=this.keepPopupPositionedRelativeTo({element:o,ePopup:i,hidePopup:I.hideFunc});return I.stopAnchoringPromise=N,I.isAnchored=!0,N}removePopupFromPopupList(i){this.setAlignedStyles(i,null),this.setPopupPositionRelatedToElement(i,null),this.popupList=this.popupList.filter(o=>o.element!==i)}keepPopupPositionedRelativeTo(i){let o=this.getPopupParent(),v=o.getBoundingClientRect(),{element:I,ePopup:N}=i,W=I.getBoundingClientRect(),Z=Ee=>parseInt(Ee.substring(0,Ee.length-1),10),ee=(Ee,Ve)=>{let Je=v[Ee]-W[Ee],gt=Z(N.style[Ee]);return{initialDiff:Je,lastDiff:Je,initial:gt,last:gt,direction:Ve}},le=ee("top",0),we=ee("left",1),Ae=this.beans.frameworkOverrides;return new ds(Ee=>{Ae.wrapIncoming(()=>{Ae.setInterval(()=>{let Ve=o.getBoundingClientRect(),Je=I.getBoundingClientRect();if(Je.top==0&&Je.left==0&&Je.height==0&&Je.width==0){i.hidePopup();return}let kt=(xt,Ft)=>{let Ht=Z(N.style[Ft]);xt.last!==Ht&&(xt.initial=Ht,xt.last=Ht);let Gt=Ve[Ft]-Je[Ft];if(Gt!=xt.lastDiff){let Wt=this.keepXYWithinBounds(N,xt.initial+xt.initialDiff-Gt,xt.direction);N.style[Ft]=`${Wt}px`,xt.last=Wt}xt.lastDiff=Gt};kt(le,"top"),kt(we,"left")},200).then(Ve=>{Ee(()=>{Ve!=null&&window.clearInterval(Ve)})})},"popupPositioning")})}hasAnchoredPopup(){return this.popupList.some(i=>i.isAnchored)}isEventFromCurrentPopup(i,o){let{mouseEvent:v,touchEvent:I}=i,N=v||I;if(!N)return!1;let W=this.getPopupIndex(o);if(W===-1)return!1;for(let Z=W;Z<this.popupList.length;Z++){let ee=this.popupList[Z];if(yn(ee.element,N))return!0}return this.isElementWithinCustomPopup(N.target)}isElementWithinCustomPopup(i){let o=eo(this.beans);for(;i&&i!==o.body;){if(i.classList.contains("ag-custom-component-popup")||i.parentElement===null)return!0;i=i.parentElement}return!1}getWrapper(i){for(;!i.classList.contains("ag-popup")&&i.parentElement;)i=i.parentElement;return i.classList.contains("ag-popup")?i:null}setAlwaysOnTop(i,o){let v=this.getWrapper(i);v&&(v.classList.toggle("ag-always-on-top",!!o),o&&this.bringPopupToFront(v))}bringPopupToFront(i){let o=this.getPopupParent(),v=Array.prototype.slice.call(o.querySelectorAll(".ag-popup")),I=v.length,N=this.getWrapper(i);if(!N||I<=1||!o.contains(i))return;let W=[],Z=[];for(let Ve of v)Ve!==N&&(Ve.classList.contains("ag-always-on-top")?Z.push(Ve):W.push(Ve));let ee=[],le=Z.length,Ee=N.classList.contains("ag-always-on-top")||!le?[...W,...Z,N]:[...W,N,...Z];for(let Ve=0;Ve<=I;Ve++){let Je=Ee[Ve];if(v[Ve]===Ee[Ve]||Je===N)continue;Je.querySelectorAll("div").forEach(kt=>{kt.scrollTop!==0&&ee.push([kt,kt.scrollTop])}),Ve===0?o.insertAdjacentElement("afterbegin",Je):Ee[Ve-1].insertAdjacentElement("afterend",Je)}for(;ee.length;){let Ve=ee.pop();Ve[0].scrollTop=Ve[1]}}},gg={moduleName:"Popup",version:ri,beans:[mS]},$s=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-set-floating-filter-input [disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:1px solid var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function pg(i){let o=i.filterManager;return!!(o!=null&&o.isColumnFilterPresent())||!!(o!=null&&o.isAggregateFilterPresent())}function fS(i,o){var v,I;return(I=(v=i.filterManager)==null?void 0:v.getColumnFilterInstance(o))!=null?I:Promise.resolve(void 0)}function Ad(i,o){var I;let v=i.colModel.getColDefCol(o);if(v)return(I=i.filterManager)==null?void 0:I.destroyFilter(v,"api")}function Mp(i,o){i.frameworkOverrides.wrapIncoming(()=>{var v;return(v=i.filterManager)==null?void 0:v.setFilterModel(o)})}function tf(i){var o,v;return(v=(o=i.filterManager)==null?void 0:o.getFilterModel())!=null?v:{}}function jM(i,o){var v,I;return(I=(v=i.filterManager)==null?void 0:v.getColumnFilterModel(o))!=null?I:null}function zb(i,o,v){var I,N;return(N=(I=i.filterManager)==null?void 0:I.setColumnFilterModel(o,v))!=null?N:Promise.resolve()}function kp(i,o){var I;let v=i.colModel.getCol(o);if(!v){aa(12,{colKey:o});return}(I=i.menuSvc)==null||I.showFilterMenu({column:v,containerType:"columnFilter",positionBy:"auto"})}var Ov={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},Il=["january","february","march","april","may","june","july","august","september","october","november","december"];function nf(i,o){return i==null?-1:o==null?1:parseFloat(i)-parseFloat(o)}var Bb=class extends jt{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue=[]}postConstruct(){var i,o,v;this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),beforeRefreshModel:({params:I})=>{var N;(I.rowDataUpdated||(N=I.changedProps)!=null&&N.has("treeData"))&&this.onNewRowsLoaded("rowDataUpdated")},dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.initialFilterModel=ge({},(v=(o=(i=this.gos.get("initialState"))==null?void 0:i.filter)==null?void 0:o.filterModel)!=null?v:{})}setFilterModel(i,o="api"){let{colModel:v,dataTypeSvc:I,filterManager:N}=this.beans;if(I!=null&&I.isPendingInference){this.filterModelUpdateQueue.push({model:i,source:o});return}let W=[],Z=this.getFilterModel(!0);if(i){let ee=new Set(Object.keys(i));this.allColumnFilters.forEach((le,we)=>{let Ae=i[we];W.push(Fv(le.filterPromise,Ae)),ee.delete(we)}),ee.forEach(le=>{let we=v.getColDefCol(le)||v.getCol(le);if(!we){ii(62,{colId:le});return}if(!we.isFilterAllowed()){ii(63,{colId:le});return}let Ae=this.getOrCreateFilterWrapper(we);if(!Ae){ii(64,{colId:le});return}W.push(Fv(Ae.filterPromise,i[le]))})}else this.allColumnFilters.forEach(ee=>{W.push(Fv(ee.filterPromise,null))});ds.all(W).then(()=>{let ee=this.getFilterModel(!0),le=[];this.allColumnFilters.forEach((we,Ae)=>{let Ee=Z?Z[Ae]:null,Ve=ee?ee[Ae]:null;lm(Ee,Ve)||le.push(we.column)}),le.length>0&&(N==null||N.onFilterChanged({columns:le,source:o}))})}getFilterModel(i){let o={},{allColumnFilters:v,initialFilterModel:I,beans:{colModel:N}}=this;return v.forEach((W,Z)=>{let ee=this.getModelFromFilterWrapper(W);mi(ee)&&(o[Z]=ee)}),i||Object.entries(I).forEach(([W,Z])=>{var ee;mi(Z)&&!v.has(W)&&((ee=N.getCol(W))!=null&&ee.isFilterAllowed())&&(o[W]=Z)}),o}getModelFromFilterWrapper(i){let{filter:o}=i;return o?typeof o.getModel!="function"?(ii(66),null):o.getModel():this.getModelFromInitialState(i.column)}getModelFromInitialState(i){var o;return(o=this.initialFilterModel[i.getColId()])!=null?o:null}isColumnFilterPresent(){return this.activeColumnFilters.length>0}isAggregateFilterPresent(){return!!this.activeAggregateFilters.length}disableColumnFilters(){let{allColumnFilters:i}=this;return i.size?(i.forEach(o=>this.disposeFilterWrapper(o,"advancedFilterEnabled")),!0):!1}doAggregateFiltersPass(i,o){return this.doColumnFiltersPass(i,o,!0)}updateActiveFilters(){let i=ee=>ee?ee.isFilterActive?ee.isFilterActive():(ii(67),!1):!1,{colModel:o,gos:v}=this.beans,I=!!hm(v),N=ee=>{if(!ee.isPrimary())return!0;let we=!o.isPivotActive();return!ee.isValueActive()||!we?!1:o.isPivotMode()?!0:I},W=[],Z=[];return this.forEachColumnFilter((ee,le)=>{i(ee)&&(N(le.column)?W.push(ee):Z.push(ee))}).then(()=>{this.activeAggregateFilters=W,this.activeColumnFilters=Z})}updateFilterFlagInColumns(i,o){return this.forEachColumnFilter((v,I)=>this.setColFilterActive(I.column,v.isFilterActive(),i,o))}forEachColumnFilter(i){let o=[];return this.allColumnFilters.forEach(v=>{let I=v.filterPromise;I&&o.push(I.then(N=>i(N,v)))}),ds.all(o)}doColumnFiltersPass(i,o,v){let{data:I,aggData:N}=i,W=v?this.activeAggregateFilters:this.activeColumnFilters,Z=v?N:I;for(let ee=0;ee<W.length;ee++){let le=W[ee];if(!(le==null||le===o)){if(typeof le.doesFilterPass!="function"){aa(91);continue}if(!le.doesFilterPass({node:i,data:Z}))return!1}}return!0}callOnFilterChangedOutsideRenderCycle(i){let{rowRenderer:o,filterManager:v}=this.beans,I=()=>{this.isAlive()&&(v==null||v.onFilterChanged(i))};o.isRefreshInProgress()?setTimeout(I,0):I()}updateBeforeFilterChanged(i={}){let{filterInstance:o,additionalEventAttributes:v}=i;return this.updateDependentFilters(),this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",v).then(()=>{this.allColumnFilters.forEach(I=>{I.filterPromise&&I.filterPromise.then(N=>{N&&N!==o&&N.onAnyFilterChanged&&N.onAnyFilterChanged()})}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){var o;return!((o=this.gos.get("allowShowChangeAfterFilter"))!=null?o:!1)&&this.processingFilterChange}onNewRowsLoaded(i){this.forEachColumnFilter(o=>{var v;(v=o.onNewRowsLoaded)==null||v.call(o)}).then(()=>this.updateFilterFlagInColumns(i,{afterDataChange:!0})).then(()=>this.updateActiveFilters())}createGetValue(i){let{filterValueSvc:o,colModel:v}=this.beans;return(I,N)=>{let W=N?v.getCol(N):i;return W?o.getValue(W,I):void 0}}isFilterActive(i){var v;let{filter:o}=(v=this.cachedFilter(i))!=null?v:{};return o?o.isFilterActive():this.getModelFromInitialState(i)!=null}getOrCreateFilterWrapper(i){if(!i.isFilterAllowed())return null;let o=this.cachedFilter(i);return o||(o=this.createFilterWrapper(i),this.setColumnFilterWrapper(i,o)),o}cachedFilter(i){return this.allColumnFilters.get(i.getColId())}getDefaultFilter(i){let o,{gos:v,dataTypeSvc:I}=this.beans;if(qf(v))o="agSetColumnFilter";else{let N=I==null?void 0:I.getBaseDataType(i);N==="number"?o="agNumberColumnFilter":N==="date"||N==="dateString"?o="agDateColumnFilter":o="agTextColumnFilter"}return o}getDefaultFloatingFilter(i){let o,{gos:v,dataTypeSvc:I}=this.beans;if(qf(v))o="agSetColumnFloatingFilter";else{let N=I==null?void 0:I.getBaseDataType(i);N==="number"?o="agNumberColumnFloatingFilter":N==="date"||N==="dateString"?o="agDateColumnFloatingFilter":o="agTextColumnFloatingFilter"}return o}createFilterInstance(i,o){let v=this.getDefaultFilter(i),I=i.getColDef(),N,W=He(ge({},this.createFilterParams(i,I)),{filterModifiedCallback:()=>this.filterModifiedCallbackFactory(N,i)(),filterChangedCallback:ee=>this.filterChangedCallbackFactory(N,i)(ee),doesRowPassOtherFilter:ee=>{var le,we;return(we=(le=this.beans.filterManager)==null?void 0:le.doesRowPassOtherFilters(N,ee))!=null?we:!0}}),Z=$d(this.beans.userCompFactory,I,W,v);return Z?{filterPromise:()=>{let ee=Z.newAgStackInstance();return ee.then(le=>{N=le,o&&(o.filter=le!=null?le:void 0)}),ee},compDetails:Z}:{filterPromise:null,compDetails:null}}createFilterParams(i,o){return this.gos.addGridCommonParams({column:i,colDef:o,rowModel:this.beans.rowModel,filterChangedCallback:()=>{},filterModifiedCallback:()=>{},getValue:this.createGetValue(i),doesRowPassOtherFilter:()=>!0})}createFilterWrapper(i){var N;let o={column:i,filterPromise:null,compDetails:null},{filterPromise:v,compDetails:I}=this.createFilterInstance(i,o);return o.filterPromise=(N=v==null?void 0:v())!=null?N:null,o.compDetails=I,o}onColumnsChanged(){let i=[],{colModel:o,filterManager:v}=this.beans;this.allColumnFilters.forEach((N,W)=>{let Z;N.column.isPrimary()?Z=o.getColDefCol(W):Z=o.getCol(W),!(Z&&Z===N.column)&&(i.push(N.column),this.disposeFilterWrapper(N,"columnChanged"),this.disposeColumnListener(W))});let I=i.every(N=>N.getColDef().filter==="agGroupColumnFilter");i.length>0&&!I?v==null||v.onFilterChanged({columns:i,source:"api"}):this.updateDependentFilters()}updateDependentFilters(){var i,o;(o=(i=this.beans.autoColSvc)==null?void 0:i.getAutoCols())==null||o.forEach(v=>{v.getColDef().filter==="agGroupColumnFilter"&&this.getOrCreateFilterWrapper(v)})}isFilterAllowed(i){var I;if(!i.isFilterAllowed())return!1;let{filter:v}=(I=this.allColumnFilters.get(i.getColId()))!=null?I:{};return v&&typeof(v==null?void 0:v.isFilterAllowed)=="function"?v.isFilterAllowed():!0}getFloatingFilterCompDetails(i,o){let v=Ae=>{var Ve;let Ee=(Ve=this.getOrCreateFilterWrapper(i))==null?void 0:Ve.filterPromise;Ee!=null&&Ee.then(Je=>{Ae(oh(Je))})},I=i.getColDef(),N=He(ge({},this.createFilterParams(i,I)),{filterChangedCallback:()=>v(Ae=>this.filterChangedCallbackFactory(Ae,i)())}),{userCompFactory:W,frameworkOverrides:Z}=this.beans,ee=yx(W,I,N),le=eD(Z,I,()=>this.getDefaultFloatingFilter(i));return le==null&&(le="agReadOnlyFloatingFilter"),fx(W,I,{column:i,filterParams:ee,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(i),parentFilterInstance:v,showParentFilter:o},le)}getCurrentFloatingFilterParentModel(i){var o;return this.getModelFromFilterWrapper((o=this.cachedFilter(i))!=null?o:{column:i})}destroyFilter(i,o="api"){var N;let v=i.getColId(),I=this.allColumnFilters.get(v);this.disposeColumnListener(v),delete this.initialFilterModel[v],I&&(this.disposeFilterWrapper(I,o),(N=this.beans.filterManager)==null||N.onFilterChanged({columns:[i],source:"api"}))}disposeColumnListener(i){let o=this.allColumnListeners.get(i);o&&(this.allColumnListeners.delete(i),o())}disposeFilterWrapper(i,o){var v;(v=i.filterPromise)==null||v.then(I=>{this.destroyBean(I),this.setColFilterActive(i.column,!1,"filterDestroyed"),this.allColumnFilters.delete(i.column.getColId()),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:o,column:i.column})})}filterModifiedCallbackFactory(i,o){return()=>{this.eventSvc.dispatchEvent({type:"filterModified",column:o,filterInstance:i})}}filterChangedCallbackFactory(i,o){return v=>{var W;let I=(W=v==null?void 0:v.source)!=null?W:"columnFilter",N={filter:i,additionalEventAttributes:v,columns:[o],source:I};this.callOnFilterChangedOutsideRenderCycle(N)}}checkDestroyFilter(i){let o=this.allColumnFilters.get(i);if(!o)return;let v=o.column,{compDetails:I}=v.isFilterAllowed()?this.createFilterInstance(v):{compDetails:null};if(this.areFilterCompsDifferent(o.compDetails,I)){this.destroyFilter(v,"paramsUpdated");return}let N=v.getColDef().filterParams;if(!o.filterPromise){this.destroyFilter(v,"paramsUpdated");return}o.filterPromise.then(W=>{(W!=null&&W.refresh?W.refresh(ge(He(ge({},this.createFilterParams(v,v.getColDef())),{filterModifiedCallback:this.filterModifiedCallbackFactory(W,v),filterChangedCallback:this.filterChangedCallbackFactory(W,v),doesRowPassOtherFilter:ee=>{var le,we;return(we=(le=this.beans.filterManager)==null?void 0:le.doesRowPassOtherFilters(W,ee))!=null?we:!0}}),N)):!0)===!1&&this.destroyFilter(v,"paramsUpdated")})}setColumnFilterWrapper(i,o){let v=i.getColId();this.allColumnFilters.set(v,o),this.allColumnListeners.set(v,this.addManagedListeners(i,{colDefChanged:()=>this.checkDestroyFilter(v)})[0])}areFilterCompsDifferent(i,o){if(!o||!i)return!0;let{componentClass:v}=i,{componentClass:I}=o;return!(v===I||(v==null?void 0:v.render)&&(I==null?void 0:I.render)&&v.render===I.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(o=>o.getColDef().floatingFilter)}getColumnFilterInstance(i){return new Promise(o=>{this.getFilterInstanceImpl(i).then(v=>{o(oh(v))})})}getFilterInstanceImpl(i){var I;let o=this.beans.colModel.getColDefCol(i);if(!o)return ds.resolve(void 0);let v=(I=this.getOrCreateFilterWrapper(o))==null?void 0:I.filterPromise;return v!=null?v:ds.resolve(null)}processFilterModelUpdateQueue(){this.filterModelUpdateQueue.forEach(({model:i,source:o})=>this.setFilterModel(i,o)),this.filterModelUpdateQueue=[],this.columnFilterModelUpdateQueue.forEach(({key:i,model:o,resolve:v})=>{this.setColumnFilterModel(i,o).then(()=>v())}),this.columnFilterModelUpdateQueue=[]}getColumnFilterModel(i){let o=this.getFilterWrapper(i);return o?this.getModelFromFilterWrapper(o):null}setColumnFilterModel(i,o){let{colModel:v,dataTypeSvc:I}=this.beans;if(I!=null&&I.isPendingInference){let ee=()=>{},le=new Promise(we=>{ee=we});return this.columnFilterModelUpdateQueue.push({key:i,model:o,resolve:ee}),le}let N=v.getColDefCol(i),W=N?this.getOrCreateFilterWrapper(N):null;return W?(ee=>new Promise(le=>{ee.then(we=>le(we))}))(Fv(W.filterPromise,o)):Promise.resolve()}getFilterWrapper(i){var v;let o=this.beans.colModel.getColDefCol(i);return o&&(v=this.cachedFilter(o))!=null?v:null}setColDefPropertiesForDataType(i,o,v){let I=qf(this.gos),N=this.getLocaleTextFunc(),W=Z=>{let{filterParams:ee}=i;i.filterParams=typeof ee=="object"?ge(ge({},ee),Z):Z};switch(o.baseDataType){case"number":{I&&W({comparator:nf});break}case"boolean":{W(I?{valueFormatter:Z=>mi(Z.value)?N(String(Z.value),Z.value?"True":"False"):N("blanks","(Blanks)")}:{maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(Z,ee)=>ee,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(Z,ee)=>ee===!1,numberOfInputs:0}]});break}case"date":{I&&W({valueFormatter:Z=>{let ee=v(Z);return mi(ee)?ee:N("blanks","(Blanks)")},treeList:!0,treeListFormatter:(Z,ee)=>{if(ee===1&&Z!=null){let le=Il[Number(Z)-1];return N(le,Ov[le])}return Z!=null?Z:N("blanks","(Blanks)")}});break}case"dateString":{let Z=o.dateParser;W(I?{valueFormatter:ee=>{let le=v(ee);return mi(le)?le:N("blanks","(Blanks)")},treeList:!0,treeListPathGetter:ee=>{let le=Z(ee!=null?ee:void 0);return le?[String(le.getFullYear()),String(le.getMonth()+1),String(le.getDate())]:null},treeListFormatter:(ee,le)=>{if(le===1&&ee!=null){let we=Il[Number(ee)-1];return N(we,Ov[we])}return ee!=null?ee:N("blanks","(Blanks)")}}:{comparator:(ee,le)=>{let we=Z(le);return le==null||we<ee?-1:we>ee?1:0}});break}case"object":{I?W({valueFormatter:Z=>{let ee=v(Z);return mi(ee)?ee:N("blanks","(Blanks)")}}):i.filterValueGetter=Z=>v({column:Z.column,node:Z.node,value:this.beans.valueSvc.getValue(Z.column,Z.node)});break}}}setColFilterActive(i,o,v,I){i.filterActive!==o&&(i.filterActive=o,i.dispatchColEvent("filterActiveChanged",v)),i.dispatchColEvent("filterChanged",v,I)}destroy(){super.destroy(),this.allColumnFilters.forEach(i=>this.disposeFilterWrapper(i,"gridDestroyed")),this.allColumnListeners.clear()}};function Fv(i,o){return i?new ds(v=>{i.then(I=>{typeof I.setModel!="function"&&(ii(65),v()),(I.setModel(o)||ds.resolve()).then(()=>v())})}):ds.resolve()}function HM(i){var o;return!!((o=i.filterManager)!=null&&o.isAnyFilterPresent())}function gu(i,o="api"){var v;(v=i.filterManager)==null||v.onFilterChanged({source:o})}var af=class extends jt{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(i){this.quickFilter=i.quickFilter,this.advancedFilter=i.advancedFilter,this.colFilter=i.colFilter}postConstruct(){let i=this.refreshFiltersForAggregations.bind(this),o=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:i,columnPivotChanged:i,columnPivotModeChanged:i,newColumnsLoaded:o,columnVisible:o,advancedFilterEnabledChanged:({enabled:I})=>this.onAdvFilterEnabledChanged(I),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});let{gos:v}=this;this.alwaysPassFilter=v.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=v.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){let i=this.gos.getCallback("isExternalFilterPresent");return typeof i=="function"&&i({})}doesExternalFilterPass(i){let o=this.gos.get("doesExternalFilterPass");return typeof o=="function"&&o(i)}setFilterModel(i,o="api"){var v;if(this.isAdvFilterEnabled()){this.warnAdvFilters();return}(v=this.colFilter)==null||v.setFilterModel(i,o)}getFilterModel(){var i,o;return(o=(i=this.colFilter)==null?void 0:i.getFilterModel())!=null?o:{}}isColumnFilterPresent(){var i;return!!((i=this.colFilter)!=null&&i.isColumnFilterPresent())}isAggregateFilterPresent(){var i;return!!((i=this.colFilter)!=null&&i.isAggregateFilterPresent())}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(i){var o,v;i?(o=this.colFilter)!=null&&o.disableColumnFilters()&&this.onFilterChanged({source:"advancedFilter"}):(v=this.advancedFilter)!=null&&v.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){var i;return!!((i=this.advancedFilter)!=null&&i.isEnabled())}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}resetQuickFilterCache(){var i;(i=this.quickFilter)==null||i.resetCache()}refreshFiltersForAggregations(){hm(this.gos)&&this.onFilterChanged()}onFilterChanged(i={}){let{source:o,additionalEventAttributes:v,columns:I=[]}=i;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(i):ds.resolve()).then(()=>{var W;let N={source:o,type:"filterChanged",columns:I};v&&yo(N,v),this.eventSvc.dispatchEvent(N),(W=this.colFilter)==null||W.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){var i;return!!((i=this.colFilter)!=null&&i.isSuppressFlashingCellsBecauseFiltering())}isQuickFilterPresent(){var i;return!!((i=this.quickFilter)!=null&&i.isFilterPresent())}updateAggFiltering(){this.aggFiltering=!!hm(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(i,o){return this.doesRowPassFilter({rowNode:o,filterInstanceToSkip:i})}doesRowPassAggregateFilters(i){var v;let{rowNode:o}=i;return(v=this.alwaysPassFilter)!=null&&v.call(this,o)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(o)||this.isAggregateFilterPresent()&&!this.colFilter.doAggregateFiltersPass(o,i.filterInstanceToSkip))}doesRowPassFilter(i){var v;let{rowNode:o}=i;return(v=this.alwaysPassFilter)!=null&&v.call(this,o)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(o)||this.externalFilterPresent&&!this.doesExternalFilterPass(o)||this.isColumnFilterPresent()&&!this.colFilter.doColumnFiltersPass(o,i.filterInstanceToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(o))}isFilterActive(i){var o;return!!((o=this.colFilter)!=null&&o.isFilterActive(i))}getOrCreateFilterWrapper(i){var o,v;return(v=(o=this.colFilter)==null?void 0:o.getOrCreateFilterWrapper(i))!=null?v:null}getDefaultFloatingFilter(i){return this.colFilter.getDefaultFloatingFilter(i)}createFilterParams(i,o){return this.colFilter.createFilterParams(i,o)}isFilterAllowed(i){var o;return this.isAdvFilterEnabled()?!1:!!((o=this.colFilter)!=null&&o.isFilterAllowed(i))}getFloatingFilterCompDetails(i,o){var v;return(v=this.colFilter)==null?void 0:v.getFloatingFilterCompDetails(i,o)}getCurrentFloatingFilterParentModel(i){var o;return(o=this.colFilter)==null?void 0:o.getCurrentFloatingFilterParentModel(i)}destroyFilter(i,o="api"){var v;(v=this.colFilter)==null||v.destroyFilter(i,o)}areFilterCompsDifferent(i,o){var v;return!!((v=this.colFilter)!=null&&v.areFilterCompsDifferent(i,o))}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(i){var o;if(this.isAdvFilterEnabled()){if((o=this.beans.dataTypeSvc)!=null&&o.isPendingInference){this.advFilterModelUpdateQueue.push(i);return}this.advancedFilter.setModel(i!=null?i:null),this.onFilterChanged({source:"advancedFilter"})}}toggleAdvFilterBuilder(i,o){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:o,force:i})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){var i;return this.isAdvFilterEnabled()?!1:!!((i=this.colFilter)!=null&&i.hasFloatingFilters())}getColumnFilterInstance(i){var o,v;return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):(v=(o=this.colFilter)==null?void 0:o.getColumnFilterInstance(i))!=null?v:Promise.resolve(void 0)}warnAdvFilters(){ii(68)}setupAdvFilterHeaderComp(i){var o;(o=this.advancedFilter)==null||o.getCtrl().setupHeaderComp(i)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){this.advFilterModelUpdateQueue.forEach(i=>this.setAdvFilterModel(i)),this.advFilterModelUpdateQueue=[]}getColumnFilterModel(i){var o;return(o=this.colFilter)==null?void 0:o.getColumnFilterModel(i)}setColumnFilterModel(i,o){var v,I;return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):(I=(v=this.colFilter)==null?void 0:v.setColumnFilterModel(i,o))!=null?I:Promise.resolve()}setColDefPropertiesForDataType(i,o,v){var I;(I=this.colFilter)==null||I.setColDefPropertiesForDataType(i,o,v)}},c1=class extends jt{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(i){this.popupSvc=i.popupSvc}hideActiveMenu(){var i;(i=this.hidePopup)==null||i.call(this)}showMenuAfterMouseEvent(i,o,v){this.showPopup(i,I=>{var N;(N=this.popupSvc)==null||N.positionPopupUnderMouseEvent({column:i,type:v,mouseEvent:o,ePopup:I})},v,o.target,jo(this.gos))}showMenuAfterButtonClick(i,o,v){let I=-1,N="left",W=jo(this.gos);!W&&this.gos.get("enableRtl")&&(I=1,N="right");let Z=W?void 0:4*I,ee=W?void 0:4;this.showPopup(i,le=>{var we;(we=this.popupSvc)==null||we.positionPopupByComponent({type:v,eventSource:o,ePopup:le,nudgeX:Z,nudgeY:ee,alignSide:N,keepWithinBounds:!0,position:"under",column:i})},v,o,W)}showPopup(i,o,v,I,N){var gt;let W=i?this.createBean(new km(i,"COLUMN_MENU")):void 0;if(this.activeMenu=W,!(W!=null&&W.hasFilter())||!i){aa(57);return}let Z=document.createElement("div");M(Z,"presentation"),Z.classList.add("ag-menu"),N||Z.classList.add("ag-filter-menu"),[this.tabListener]=this.addManagedElementListeners(Z,{keydown:kt=>this.trapFocusWithin(kt,Z)}),Z.appendChild(W==null?void 0:W.getGui());let ee,le=()=>W==null?void 0:W.afterGuiDetached(),we=ml(this.gos)?I!=null?I:this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,Ae=kt=>{Dr(i,!1,"contextMenu");let xt=kt instanceof KeyboardEvent;if(this.tabListener&&(this.tabListener=this.tabListener()),xt&&I&&wa(I)){let Ft=Cn(I);Ft==null||Ft.focus({preventScroll:!0})}le(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,v,i)},Ee=this.getLocaleTextFunc(),Ve=N&&v!=="columnFilter"?Ee("ariaLabelColumnMenu","Column Menu"):Ee("ariaLabelColumnFilter","Column Filter"),Je=(gt=this.popupSvc)==null?void 0:gt.addPopup({modal:!0,eChild:Z,closeOnEsc:!0,closedCallback:Ae,positionCallback:()=>o(Z),anchorToElement:we,ariaLabel:Ve});Je&&(this.hidePopup=ee=Je.hideFunc),W.afterInit().then(()=>{o(Z),W.afterGuiAttached({container:v,hidePopup:ee})}),Dr(i,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,v,i)}trapFocusWithin(i,o){i.key!==Bt.TAB||i.defaultPrevented||ni(this.beans,o,!1,i.shiftKey)||(i.preventDefault(),Jd(o,i.shiftKey))}dispatchVisibleChangedEvent(i,o,v){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:i,switchingTab:!1,key:o,column:v!=null?v:null,columnGroup:null})}isMenuEnabled(i){var o;return i.isFilterAllowed()&&((o=i.getColDef().menuTabs)!=null?o:["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},mg=class extends jt{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(i,o){if(!o)return;let v=i.getColDef(),{filterValueGetter:I}=v;return I?this.executeFilterValueGetter(I,o.data,i,o,v):this.beans.valueSvc.getValue(i,o)}executeFilterValueGetter(i,o,v,I,N){let{expressionSvc:W,valueSvc:Z}=this.beans,ee=this.gos.addGridCommonParams({data:o,node:I,column:v,colDef:N,getValue:Z.getValueCallback.bind(this,I)});return typeof i=="function"?i(ee):W==null?void 0:W.evaluate(i,ee)}},WM=class extends cn{constructor(){super(`
            <div class="ag-floating-filter-input" role="presentation">
                <ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field>
            </div>`,[Tm]),this.eFloatingFilterText=fi}init(i){this.params=i;let o=this.beans.colNames.getDisplayNameForColumn(i.column,"header",!0);this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${o} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`)}onParentModelChanged(i){if(i==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(o=>{if(o.getModelAsString){let v=o.getModelAsString(i);this.eFloatingFilterText.setValue(v)}})}refresh(i){this.init(i)}},sc=class{constructor(){this.customFilterOptions={}}init(i,o){this.filterOptions=i.filterOptions||o,this.mapCustomOptions(),this.selectDefaultItem(i)}mapCustomOptions(){let{filterOptions:i}=this;i&&i.forEach(o=>{if(typeof o=="string")return;let v=[["displayKey"],["displayName"],["predicate","test"]],I=N=>N.some(W=>o[W]!=null)?!0:(ii(72,{keys:N}),!1);if(!v.every(I)){this.filterOptions=i.filter(N=>N===o)||[];return}this.customFilterOptions[o.displayKey]=o})}selectDefaultItem(i){let{filterOptions:o}=this;if(i.defaultOption)this.defaultOption=i.defaultOption;else if(o.length>=1){let v=o[0];typeof v=="string"?this.defaultOption=v:v.displayKey?this.defaultOption=v.displayKey:ii(73)}else ii(74)}getCustomOption(i){return this.customFilterOptions[i]}};function of(i,o,v){return v==null?i.splice(o):i.splice(o,v)}function lc(i){return i==null||typeof i=="string"&&i.trim().length===0}function fg(i){return i==="AND"||i==="OR"?i:"AND"}function UM(i,o,v){if(i==null)return;let{predicate:I}=i;if(I!=null&&!o.some(N=>N==null))return I(o,v)}function KM(i,o){let v=i.length;return v>o&&(i.splice(o),ii(78),v=o),v}var cc=class extends Mx{constructor(){super(...arguments),this.eTypes=[],this.eJoinOperatorPanels=[],this.eJoinOperatorsAnd=[],this.eJoinOperatorsOr=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}getNumberOfInputs(i){let o=this.optionsFactory.getCustomOption(i);if(o){let{numberOfInputs:I}=o;return I!=null?I:1}return i&&["empty","notBlank","blank"].indexOf(i)>=0?0:i==="inRange"?2:1}onFloatingFilterChanged(i,o){this.setTypeFromFloatingFilter(i),this.setValueFromFloatingFilter(o),this.onUiChanged(!0)}setTypeFromFloatingFilter(i){this.eTypes.forEach((o,v)=>{let I=v===0?i:this.optionsFactory.defaultOption;o.setValue(I,!0)})}getModelFromUi(){let i=this.getUiCompleteConditions();return i.length===0?null:this.maxNumConditions>1&&i.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:i}:i[0]}getConditionTypes(){return this.eTypes.map(i=>i.getValue())}getConditionType(i){return this.eTypes[i].getValue()}getJoinOperator(){let{eJoinOperatorsOr:i,defaultJoinOperator:o}=this;return i.length===0?o:i[0].getValue()===!0?"OR":"AND"}areModelsEqual(i,o){if(!i&&!o)return!0;if(!i&&o||i&&!o)return!1;let v=!i.operator,I=!o.operator;if(!v&&I||v&&!I)return!1;let W;if(v){let Z=i,ee=o;W=this.areSimpleModelsEqual(Z,ee)}else{let Z=i,ee=o;W=Z.operator===ee.operator&&Gh(Z.conditions,ee.conditions,(le,we)=>this.areSimpleModelsEqual(le,we))}return W}shouldRefresh(i){var W,Z,ee;let o=this.getModel(),v=o?(W=o.conditions)!=null?W:[o]:null,I=(ee=(Z=i.filterOptions)==null?void 0:Z.map(le=>typeof le=="string"?le:le.displayKey))!=null?ee:this.getDefaultFilterOptions();return!(!(!v||v.every(le=>I.find(we=>we===le.type)!==void 0))||typeof i.maxNumConditions=="number"&&v&&v.length>i.maxNumConditions)}refresh(i){return!this.shouldRefresh(i)||!super.refresh(i)?!1:(this.setParams(i),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0)}setModelIntoUi(i){if(i.operator){let v=i,I=v.conditions;I==null&&(I=[],ii(77));let N=KM(I,this.maxNumConditions),W=this.getNumConditions();if(N<W)this.removeConditionsAndOperators(N);else if(N>W)for(let ee=W;ee<N;ee++)this.createJoinOperatorPanel(),this.createOption();let Z=v.operator==="OR";this.eJoinOperatorsAnd.forEach(ee=>ee.setValue(!Z,!0)),this.eJoinOperatorsOr.forEach(ee=>ee.setValue(Z,!0)),I.forEach((ee,le)=>{this.eTypes[le].setValue(ee.type,!0),this.setConditionIntoUi(ee,le)})}else{let v=i;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(v.type,!0),this.setConditionIntoUi(v,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),ds.resolve()}doesFilterPass(i){var W;let o=this.getModel();if(o==null)return!0;let{operator:v}=o,I=[];if(v){let Z=o;I.push(...(W=Z.conditions)!=null?W:[])}else I.push(o);return I[v&&v==="OR"?"some":"every"](Z=>this.individualConditionPasses(i,Z))}setParams(i){super.setParams(i),this.setNumConditions(i),this.defaultJoinOperator=fg(i.defaultJoinOperator),this.filterPlaceholder=i.filterPlaceholder,this.optionsFactory=new sc,this.optionsFactory.init(i,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")}setNumConditions(i){var I,N;let o=(I=i.maxNumConditions)!=null?I:2;o<1&&(ii(79),o=1),this.maxNumConditions=o;let v=(N=i.numAlwaysVisibleConditions)!=null?N:1;v<1&&(ii(80),v=1),v>o&&(ii(81),v=o),this.numAlwaysVisibleConditions=v}createOption(){let i=this.createManagedBean(new Fx);this.eTypes.push(i),i.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(i.getGui());let o=this.createValueElement();this.eConditionBodies.push(o),this.eFilterBody.appendChild(o),this.putOptionsIntoDropdown(i),this.resetType(i);let v=this.getNumConditions()-1;this.forEachPositionInput(v,I=>this.resetInput(I)),this.addChangedListeners(i,v)}createJoinOperatorPanel(){let i=document.createElement("div");this.eJoinOperatorPanels.push(i),i.classList.add("ag-filter-condition");let o=this.createJoinOperator(this.eJoinOperatorsAnd,i,"and"),v=this.createJoinOperator(this.eJoinOperatorsOr,i,"or");this.eFilterBody.appendChild(i);let I=this.eJoinOperatorPanels.length-1,N=this.joinOperatorId++;this.resetJoinOperatorAnd(o,I,N),this.resetJoinOperatorOr(v,I,N),this.isReadOnly()||(o.onValueChange(this.listener),v.onValueChange(this.listener))}createJoinOperator(i,o,v){let I=this.createManagedBean(new Lx);i.push(I);let N="ag-filter-condition-operator";return I.addCssClass(N),I.addCssClass(`${N}-${v}`),o.appendChild(I.getGui()),I}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(i=>typeof i=="string"?this.createBoilerplateListOption(i):this.createCustomListOption(i))}putOptionsIntoDropdown(i){let{filterListOptions:o}=this;o.forEach(v=>{i.addOption(v)}),i.setDisabled(o.length<=1)}createBoilerplateListOption(i){return{value:i,text:this.translate(i)}}createCustomListOption(i){let{displayKey:o}=i,v=this.optionsFactory.getCustomOption(i.displayKey);return{value:o,text:v?this.getLocaleTextFunc()(v.displayKey,v.displayName):this.translate(o)}}createBodyTemplate(){return""}getAgComponents(){return[]}getCssIdentifier(){return"simple-filter"}updateUiVisibility(){let i=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,i)}updateNumConditions(){var v;let i=-1,o=!0;for(let I=0;I<this.getNumConditions();I++)this.isConditionUiComplete(I)?i=I:o=!1;if(this.shouldAddNewConditionAtEnd(o))this.createJoinOperatorPanel(),this.createOption();else{let I=(v=this.lastUiCompletePosition)!=null?v:this.getNumConditions()-2;if(i<I){this.removeConditionsAndOperators(I+1);let N=i+1,W=I-N;W>0&&this.removeConditionsAndOperators(N,W),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=i}updateConditionStatusesAndValues(i,o){this.eTypes.forEach((I,N)=>{let W=this.isConditionDisabled(N,i);I.setDisabled(W||this.filterListOptions.length<=1),N===1&&(Ps(this.eJoinOperatorPanels[0],W),this.eJoinOperatorsAnd[0].setDisabled(W),this.eJoinOperatorsOr[0].setDisabled(W))}),this.eConditionBodies.forEach((I,N)=>{Vn(I,this.isConditionBodyVisible(N))});let v=(o!=null?o:this.getJoinOperator())==="OR";this.eJoinOperatorsAnd.forEach(I=>{I.setValue(!v,!0)}),this.eJoinOperatorsOr.forEach(I=>{I.setValue(v,!0)}),this.forEachInput((I,N,W,Z)=>{this.setElementDisplayed(I,N<Z),this.setElementDisabled(I,this.isConditionDisabled(W,i))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(i){return i&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(i,o){if(i>=this.getNumConditions())return;let{eTypes:v,eConditionBodies:I,eJoinOperatorPanels:N,eJoinOperatorsAnd:W,eJoinOperatorsOr:Z}=this;this.removeComponents(v,i,o),this.removeElements(I,i,o),this.removeValueElements(i,o);let ee=Math.max(i-1,0);this.removeElements(N,ee,o),this.removeComponents(W,ee,o),this.removeComponents(Z,ee,o)}removeElements(i,o,v){of(i,o,v).forEach(N=>xc(N))}removeComponents(i,o,v){of(i,o,v).forEach(N=>{xc(N.getGui()),this.destroyBean(N)})}afterGuiAttached(i){var o;if(super.afterGuiAttached(i),this.resetPlaceholder(),!(i!=null&&i.suppressFocus)){let{eFilterBody:v,eTypes:I}=this,N;if(!this.isReadOnly()){let W=this.getInputs(0)[0];W instanceof _c&&this.isConditionBodyVisible(0)?N=W.getInputElement():N=(o=I[0])==null?void 0:o.getFocusableElement()}(N!=null?N:v).focus({preventScroll:!0})}}afterGuiDetached(){super.afterGuiDetached();let i=this.getModel();this.resetUiToActiveModel(i);let o=-1,v=-1,I=!1,N=this.getJoinOperator();for(let Z=this.getNumConditions()-1;Z>=0;Z--)if(this.isConditionUiComplete(Z))o===-1&&(o=Z,v=Z);else{let ee=Z>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(Z-1),le=Z<o;(ee||le)&&(this.removeConditionsAndOperators(Z,1),I=!0,le&&v--)}let W=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),W=!0),this.shouldAddNewConditionAtEnd(v===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),W=!0),W&&this.updateConditionStatusesAndValues(v,N),I&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=v}getPlaceholderText(i,o){let v=this.translate(i);if(typeof this.filterPlaceholder=="function"){let I=this.eTypes[o].getValue(),N=this.translate(I);v=this.filterPlaceholder({filterOptionKey:I,filterOption:N,placeholder:v})}else typeof this.filterPlaceholder=="string"&&(v=this.filterPlaceholder);return v}resetPlaceholder(){let i=this.getLocaleTextFunc();this.forEachInput((o,v,I,N)=>{if(!(o instanceof _c))return;let W=v===0&&N>1?"inRangeStart":v===0?"filterOoo":"inRangeEnd",Z=v===0&&N>1?i("ariaFilterFromValue","Filter from value"):v===0?i("ariaFilterValue","Filter Value"):i("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(this.getPlaceholderText(W,I)),o.setInputAriaLabel(Z)})}setElementValue(i,o,v){i instanceof _c&&i.setValue(o!=null?String(o):null,!0)}setElementDisplayed(i,o){i instanceof cn&&Vn(i.getGui(),o)}setElementDisabled(i,o){i instanceof cn&&Ps(i.getGui(),o)}attachElementOnChange(i,o){i instanceof _c&&i.onValueChange(o)}forEachInput(i){this.getConditionTypes().forEach((o,v)=>{this.forEachPositionTypeInput(v,o,i)})}forEachPositionInput(i,o){let v=this.getConditionType(i);this.forEachPositionTypeInput(i,v,o)}forEachPositionTypeInput(i,o,v){let I=this.getNumberOfInputs(o),N=this.getInputs(i);for(let W=0;W<N.length;W++){let Z=N[W];Z!=null&&v(Z,W,i,I)}}isConditionDisabled(i,o){return this.isReadOnly()?!0:i===0?!1:i>o+1}isConditionBodyVisible(i){let o=this.getConditionType(i);return this.getNumberOfInputs(o)>0}isConditionUiComplete(i){return!(i>=this.getNumConditions()||this.getConditionType(i)==="empty"||this.getValues(i).some(v=>v==null))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){let i=[];for(let o=0;o<this.getNumConditions();o++)this.isConditionUiComplete(o)&&i.push(this.createCondition(o));return i}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let i=this.getNumConditions();i<this.numAlwaysVisibleConditions;i++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(i){return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(o=>this.resetType(o)),this.eJoinOperatorsAnd.forEach((o,v)=>this.resetJoinOperatorAnd(o,v,this.joinOperatorId+v)),this.eJoinOperatorsOr.forEach((o,v)=>this.resetJoinOperatorOr(o,v,this.joinOperatorId+v)),this.joinOperatorId++,this.forEachInput(o=>this.resetInput(o)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,i||this.onUiChanged(),ds.resolve()}resetType(i){let v=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");i.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(v).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(i,o,v){this.resetJoinOperator(i,o,this.defaultJoinOperator==="AND",this.translate("andCondition"),v)}resetJoinOperatorOr(i,o,v){this.resetJoinOperator(i,o,this.defaultJoinOperator==="OR",this.translate("orCondition"),v)}resetJoinOperator(i,o,v,I,N){this.updateJoinOperatorDisabled(i.setValue(v,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${N}`).setLabel(I),o)}updateJoinOperatorsDisabled(){let i=(o,v)=>this.updateJoinOperatorDisabled(o,v);this.eJoinOperatorsAnd.forEach(i),this.eJoinOperatorsOr.forEach(i)}updateJoinOperatorDisabled(i,o){i.setDisabled(this.isReadOnly()||o>0)}resetInput(i){this.setElementValue(i,null),this.setElementDisabled(i,this.isReadOnly())}setConditionIntoUi(i,o){let v=this.mapValuesFromModel(i);this.forEachInput((I,N,W)=>{W===o&&this.setElementValue(I,v[N]!=null?v[N]:null)})}setValueFromFloatingFilter(i){this.forEachInput((o,v,I)=>{this.setElementValue(o,v===0&&I===0?i:null,!0)})}addChangedListeners(i,o){this.isReadOnly()||(i.onValueChange(this.listener),this.forEachPositionInput(o,v=>{this.attachElementOnChange(v,this.listener)}))}individualConditionPasses(i,o){let v=this.getCellValue(i.node),I=this.mapValuesFromModel(o),N=this.optionsFactory.getCustomOption(o.type),W=UM(N,I,v);return W!=null?W:v==null?this.evaluateNullValue(o.type):this.evaluateNonNullValue(I,v,o,i)}hasInvalidInputs(){return!1}},qM=class extends cc{setParams(i){super.setParams(i),this.scalarFilterParams=i}evaluateNullValue(i){let{includeBlanksInEquals:o,includeBlanksInNotEqual:v,includeBlanksInGreaterThan:I,includeBlanksInLessThan:N,includeBlanksInRange:W}=this.scalarFilterParams;switch(i){case"equals":if(o)return!0;break;case"notEqual":if(v)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(I)return!0;break;case"lessThan":case"lessThanOrEqual":if(N)return!0;break;case"inRange":if(W)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(i,o,v){let I=this.comparator(),N=i[0]!=null?I(i[0],o):0;switch(v.type){case"equals":return N===0;case"notEqual":return N!==0;case"greaterThan":return N>0;case"greaterThanOrEqual":return N>=0;case"lessThan":return N<0;case"lessThanOrEqual":return N<=0;case"inRange":{let W=I(i[1],o);return this.scalarFilterParams.inRangeInclusive?N>=0&&W<=0:N>0&&W<0}case"blank":return lc(o);case"notBlank":return!lc(o);default:return ii(76,{filterModelType:v.type}),!0}}},vS=class{constructor(i,o,v,I,N){this.alive=!0,this.context=i,this.eParent=I;let W=Hr(o,v);W&&W.newAgStackInstance().then(Z=>{var we,Ae;if(!this.alive){i.destroyBean(Z);return}if(this.dateComp=Z,!Z)return;I.appendChild(Z.getGui()),(we=Z==null?void 0:Z.afterGuiAttached)==null||we.call(Z);let{tempValue:ee,disabled:le}=this;ee&&Z.setDate(ee),le!=null&&((Ae=Z.setDisabled)==null||Ae.call(Z,le)),N==null||N(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(i){let o=this.dateComp;o?o.setDate(i):this.tempValue=i}setDisabled(i){var v;let o=this.dateComp;o?(v=o.setDisabled)==null||v.call(o,i):this.disabled=i}setDisplayed(i){Vn(this.eParent,i)}setInputPlaceholder(i){var o,v;(v=(o=this.dateComp)==null?void 0:o.setInputPlaceholder)==null||v.call(o,i)}setInputAriaLabel(i){var o,v;(v=(o=this.dateComp)==null?void 0:o.setInputAriaLabel)==null||v.call(o,i)}afterGuiAttached(i){var o,v;(v=(o=this.dateComp)==null?void 0:o.afterGuiAttached)==null||v.call(o,i)}updateParams(i){var o,v;(v=(o=this.dateComp)==null?void 0:o.refresh)==null||v.call(o,i)}},yr=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"],vg=class{constructor(i,o,v){this.getLocaleTextFunc=i,this.optionsFactory=o,this.valueFormatter=v}getModelAsString(i){var I;if(!i)return null;let o=i.operator!=null,v=this.getLocaleTextFunc();if(o){let N=i,Z=((I=N.conditions)!=null?I:[]).map(le=>this.getModelAsString(le)),ee=N.operator==="AND"?"andCondition":"orCondition";return Z.join(` ${v(ee,JA[ee])} `)}else{if(i.type==="blank"||i.type==="notBlank")return v(i.type,i.type);{let N=i,W=this.optionsFactory.getCustomOption(N.type),{displayKey:Z,displayName:ee,numberOfInputs:le}=W||{};return Z&&ee&&le===0?(v(Z,ee),ee):this.conditionToString(N,W)}}}updateParams(i){this.optionsFactory=i.optionsFactory}formatValue(i){var v;let o=this.valueFormatter;return o?(v=o(i!=null?i:null))!=null?v:"":String(i)}},Gb=class extends vg{constructor(i,o,v){super(o,v),this.dateFilterParams=i}conditionToString(i,o){let{type:v}=i,{numberOfInputs:I}=o||{},N=v=="inRange"||I===2,W=Ml(i.dateFrom),Z=Ml(i.dateTo),ee=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(N){let le=W!==null?vd(W,ee):"null",we=Z!==null?vd(Z,ee):"null";return`${le}-${we}`}return W!=null?vd(W,ee):`${v}`}updateParams(i){super.updateParams(i),this.dateFilterParams=i.dateFilterParams}},rf=1e3,_v=1/0,Vb=class extends qM{constructor(){super("dateFilter"),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=rf,this.maxValidYear=_v,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(i){super.afterGuiAttached(i),this.dateConditionFromComps[0].afterGuiAttached(i)}mapValuesFromModel(i){let{dateFrom:o,dateTo:v,type:I}=i||{};return[o&&Ml(o)||null,v&&Ml(v)||null].slice(0,this.getNumberOfInputs(I))}comparator(){var i;return(i=this.dateFilterParams.comparator)!=null?i:YM}setParams(i){this.dateFilterParams=i,super.setParams(i);let o=(v,I)=>{if(i[v]!=null)if(isNaN(i[v]))ii(82,{param:v});else return i[v]==null?I:Number(i[v]);return I};this.minValidYear=o("minValidYear",rf),this.maxValidYear=o("maxValidYear",_v),this.minValidYear>this.maxValidYear&&ii(83),this.minValidDate=i.minValidDate?i.minValidDate instanceof Date?i.minValidDate:Ml(i.minValidDate):null,this.maxValidDate=i.maxValidDate?i.maxValidDate instanceof Date?i.maxValidDate:Ml(i.maxValidDate):null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&ii(84),this.filterModelFormatter=new Gb(this.dateFilterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory)}createDateCompWrapper(i){let{userCompFactory:o,context:v}=this.beans,I=new vS(v,o,{onDateChanged:()=>this.onUiChanged(),filterParams:this.dateFilterParams,location:"filter"},i);return this.addDestroyFunc(()=>I.destroy()),I}setElementValue(i,o){i.setDate(o)}setElementDisplayed(i,o){i.setDisplayed(o)}setElementDisabled(i,o){i.setDisabled(o)}getDefaultFilterOptions(){return yr}createValueElement(){let o=eo(this.beans).createElement("div");return o.classList.add("ag-filter-body"),this.createFromToElement(o,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(o,this.eConditionPanelsTo,this.dateConditionToComps,"to"),o}createFromToElement(i,o,v,I){let W=eo(this.beans).createElement("div");W.classList.add(`ag-filter-${I}`),W.classList.add(`ag-filter-date-${I}`),o.push(W),i.appendChild(W),v.push(this.createDateCompWrapper(W))}removeValueElements(i,o){this.removeDateComps(this.dateConditionFromComps,i,o),this.removeDateComps(this.dateConditionToComps,i,o),of(this.eConditionPanelsFrom,i,o),of(this.eConditionPanelsTo,i,o)}removeDateComps(i,o,v){of(i,o,v).forEach(N=>N.destroy())}isValidDateValue(i){if(i===null)return!1;let{minValidDate:o,maxValidDate:v,minValidYear:I,maxValidYear:N}=this;if(o){if(i<o)return!1}else if(i.getUTCFullYear()<I)return!1;if(v){if(i>v)return!1}else if(i.getUTCFullYear()>N)return!1;return!0}isConditionUiComplete(i){if(!super.isConditionUiComplete(i))return!1;let o=!0;return this.forEachInput((v,I,N,W)=>{N!==i||!o||I>=W||(o=o&&this.isValidDateValue(v.getDate()))}),o}areSimpleModelsEqual(i,o){return i.dateFrom===o.dateFrom&&i.dateTo===o.dateTo&&i.type===o.type}createCondition(i){let o=this.getConditionType(i),v={},I=this.getValues(i);return I.length>0&&(v.dateFrom=Er(I[0])),I.length>1&&(v.dateTo=Er(I[1])),ge({dateFrom:null,dateTo:null,filterType:this.filterType,type:o},v)}resetPlaceholder(){let i=this.getLocaleTextFunc(),o=this.translate("dateFormatOoo"),v=i("ariaFilterValue","Filter Value");this.forEachInput(I=>{I.setInputPlaceholder(o),I.setInputAriaLabel(v)})}getInputs(i){let{dateConditionFromComps:o,dateConditionToComps:v}=this;return i>=o.length?[null,null]:[o[i],v[i]]}getValues(i){let o=[];return this.forEachPositionInput(i,(v,I,N,W)=>{I<W&&o.push(v.getDate())}),o}translate(i){return i==="lessThan"?super.translate("before"):i==="greaterThan"?super.translate("after"):super.translate(i)}getModelAsString(i){var o;return(o=this.filterModelFormatter.getModelAsString(i))!=null?o:""}};function YM(i,o){let v=o;return o==null||v<i?-1:v>i?1:0}var Xa=class extends cn{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(i){if(!i){this.lastType=this.optionsFactory.defaultOption;return}let o=i.operator,v;o?v=i.conditions[0]:v=i,this.lastType=v.type}canWeEditAfterModelFromParentFilter(i){if(!i)return this.isTypeEditable(this.lastType);if(i.operator)return!1;let v=i;return this.isTypeEditable(v.type)}init(i){this.setSimpleParams(i,!1)}setSimpleParams(i,o=!0){let v=new sc;this.optionsFactory=v,v.init(i.filterParams,this.getDefaultOptions());let I=v.defaultOption;o||(this.lastType=I),this.readOnly=!!i.filterParams.readOnly;let N=this.isTypeEditable(I);this.setEditable(N)}refresh(i){this.setSimpleParams(i)}hasSingleInput(i){var v;let o=(v=this.optionsFactory.getCustomOption(i))==null?void 0:v.numberOfInputs;return o==null||o==1}isTypeEditable(i){let o=["inRange","empty","blank","notBlank"];return!!i&&!this.readOnly&&this.hasSingleInput(i)&&o.indexOf(i)<0}getAriaLabel(i){return`${this.beans.colNames.getDisplayNameForColumn(i.column,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},jb=class extends Xa{constructor(){super(`
            <div class="ag-floating-filter-input" role="presentation">
                <ag-input-text-field data-ref="eReadOnlyText"></ag-input-text-field>
                <div data-ref="eDateWrapper" style="display: flex;"></div>
            </div>`,[Tm]),this.eReadOnlyText=fi,this.eDateWrapper=fi}getDefaultOptions(){return yr}init(i){super.init(i),this.params=i,this.filterParams=i.filterParams,this.createDateComponent(),this.filterModelFormatter=new Gb(this.filterParams,this.getLocaleTextFunc.bind(this),this.optionsFactory);let o=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(o("ariaDateFilterInput","Date Filter Input"))}refresh(i){super.refresh(i),this.params=i,this.filterParams=i.filterParams;let o=this.gos.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(o),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(i.currentParentModel())}updateCompOnModelChange(i){let o=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(i);if(this.setEditable(o),o){let v=i?Ml(i.dateFrom):null;this.dateComp.setDate(v),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(i)),this.dateComp.setDate(null)}setEditable(i){Vn(this.eDateWrapper,i),Vn(this.eReadOnlyText.getGui(),!i)}onParentModelChanged(i,o){o!=null&&o.afterFloatingFilter||o!=null&&o.afterDataChange||(super.setLastTypeFromModel(i),this.updateCompOnModelChange(i))}onDateChanged(){let i=this.dateComp.getDate(),o=Er(i);this.params.parentFilterInstance(v=>{if(v){let I=Ml(o);v.onFloatingFilterChanged(this.lastType||null,I)}})}getDateComponentParams(){let{filterParams:i,column:o}=this.params,v=d0(i,this.defaultDebounceMs);return{onDateChanged:dr(this,this.onDateChanged.bind(this),v),filterParams:o.getColDef().filterParams,location:"floatingFilter"}}createDateComponent(){let{beans:{context:i,userCompFactory:o},eDateWrapper:v}=this;this.dateComp=new vS(i,o,this.getDateComponentParams(),v,I=>{I.setInputAriaLabel(this.getAriaLabel(this.params))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},Nv=class extends cn{constructor(){super(`
            <div class="ag-filter-filter">
                <ag-input-text-field class="ag-date-filter" data-ref="eDateInput"></ag-input-text-field>
            </div>`,[Tm]),this.eDateInput=fi,this.isApply=!1,this.applyOnFocusOut=!1}init(i){this.params=i,this.setParams(i);let o=this.eDateInput.getInputElement();this.addManagedListeners(o,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||o.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this)})}handleInput(i,o){if(o.target===ga(this.beans)&&!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!i,i&&this.params.onDateChanged();return}i||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}setParams(i){let o=this.eDateInput.getInputElement(),v=this.shouldUseBrowserDatePicker(i);this.usingSafariDatePicker=v&&ha(),o.type=v?"date":"text";let{minValidYear:I,maxValidYear:N,minValidDate:W,maxValidDate:Z,buttons:ee}=i.filterParams||{};if(W&&I&&ii(85),Z&&N&&ii(86),W&&Z){let[le,we]=[W,Z].map(Ae=>Ae instanceof Date?Ae:Ml(Ae));le&&we&&le.getTime()>we.getTime()&&ii(87)}W?W instanceof Date?o.min=vd(W):o.min=W:I&&(o.min=`${I}-01-01`),Z?Z instanceof Date?o.max=vd(Z):o.max=Z:N&&(o.max=`${N}-12-31`),this.isApply=i.location==="floatingFilter"&&!!(ee!=null&&ee.includes("apply"))}refresh(i){this.params=i,this.setParams(i)}getDate(){return Ml(this.eDateInput.getValue())}setDate(i){this.eDateInput.setValue(Er(i,!1))}setInputPlaceholder(i){this.eDateInput.setInputPlaceholder(i)}setInputAriaLabel(i){this.eDateInput.setAriaLabel(i)}setDisabled(i){this.eDateInput.setDisabled(i)}afterGuiAttached(i){(!i||!i.suppressFocus)&&this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(i){var o,v;return(v=(o=i==null?void 0:i.filterParams)==null?void 0:o.browserDatePicker)!=null?v:!0}},yg=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"],zv=class extends vg{conditionToString(i,o){let{numberOfInputs:v}=o||{},{filter:I,filterTo:N,type:W}=i,Z=W=="inRange"||v===2,ee=this.formatValue.bind(this);return Z?`${ee(I)}-${ee(N)}`:I!=null?ee(I):`${W}`}};function Oo(i){let{allowedCharPattern:o}=i!=null?i:{};return o!=null?o:null}var yS=class extends qM{constructor(){super("numberFilter"),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}refresh(i){return this.numberFilterParams.allowedCharPattern!==i.allowedCharPattern?!1:super.refresh(i)}mapValuesFromModel(i){let{filter:o,filterTo:v,type:I}=i||{};return[this.processValue(o),this.processValue(v)].slice(0,this.getNumberOfInputs(I))}comparator(){return(i,o)=>i===o?0:i<o?1:-1}setParams(i){this.numberFilterParams=i,super.setParams(i),this.filterModelFormatter=new zv(this.getLocaleTextFunc.bind(this),this.optionsFactory,this.numberFilterParams.numberFormatter)}getDefaultFilterOptions(){return yg}setElementValue(i,o,v){let{numberFormatter:I}=this.numberFilterParams,N=!v&&I?I(o!=null?o:null):o;super.setElementValue(i,N)}createValueElement(){let i=Oo(this.numberFilterParams),o=document.createElement("div");return o.classList.add("ag-filter-body"),M(o,"presentation"),this.createFromToElement(o,this.eValuesFrom,"from",i),this.createFromToElement(o,this.eValuesTo,"to",i),o}createFromToElement(i,o,v,I){let N=this.createManagedBean(I?new fd({allowedCharPattern:I}):new dv);N.addCssClass(`ag-filter-${v}`),N.addCssClass("ag-filter-filter"),o.push(N),i.appendChild(N.getGui())}removeValueElements(i,o){let v=I=>this.removeComponents(I,i,o);v(this.eValuesFrom),v(this.eValuesTo)}getValues(i){let o=[];return this.forEachPositionInput(i,(v,I,N,W)=>{I<W&&o.push(this.processValue(this.stringToFloat(v.getValue())))}),o}areSimpleModelsEqual(i,o){return i.filter===o.filter&&i.filterTo===o.filterTo&&i.type===o.type}processValue(i){return i==null||isNaN(i)?null:i}stringToFloat(i){if(typeof i=="number")return i;let o=kc(i);o!=null&&o.trim()===""&&(o=null);let v=this.numberFilterParams.numberParser;return v?v(o):o==null||o.trim()==="-"?null:parseFloat(o)}createCondition(i){let o=this.getConditionType(i),v={filterType:this.filterType,type:o},I=this.getValues(i);return I.length>0&&(v.filter=I[0]),I.length>1&&(v.filterTo=I[1]),v}getInputs(i){let{eValuesFrom:o,eValuesTo:v}=this;return i>=o.length?[null,null]:[o[i],v[i]]}getModelAsString(i){var o;return(o=this.filterModelFormatter.getModelAsString(i))!=null?o:""}hasInvalidInputs(){let i=!1;return this.forEachInput(o=>{if(!o.getInputElement().validity.valid){i=!0;return}}),i}},Ap=class extends jt{constructor(i){super(),this.params=i,this.eInput=fi,this.onValueChanged=()=>{}}setupGui(i){var I;this.eInput=this.createManagedBean(new fd((I=this.params)==null?void 0:I.config));let o=this.eInput.getGui();i.appendChild(o);let v=N=>this.onValueChanged(N);this.addManagedListeners(o,{input:v,keydown:v})}setEditable(i){this.eInput.setDisabled(!i)}getValue(){return this.eInput.getValue()}setValue(i,o){this.eInput.setValue(i,o)}setValueChangedListener(i){this.onValueChanged=i}setParams({ariaLabel:i,autoComplete:o}){let{eInput:v}=this;v.setInputAriaLabel(i),o!==void 0&&v.setAutoComplete(o)}};function bS(i){let o=i==null?void 0:i.trim();return o===""?i:o}var CS=class extends Xa{constructor(){super(...arguments),this.eFloatingFilterInputContainer=fi,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(`
            <div class="ag-floating-filter-input" role="presentation" data-ref="eFloatingFilterInputContainer"></div>
        `)}onParentModelChanged(i,o){o!=null&&o.afterFloatingFilter||o!=null&&o.afterDataChange||(this.setLastTypeFromModel(i),this.setEditable(this.canWeEditAfterModelFromParentFilter(i)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(i)))}init(i){this.setupFloatingFilterInputService(i),super.init(i),this.setTextInputParams(i)}setupFloatingFilterInputService(i){this.inputSvc=this.createFloatingFilterInputService(i),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(i){var W;this.params=i;let o=(W=i.browserAutoComplete)!=null?W:!1,{inputSvc:v,defaultDebounceMs:I,readOnly:N}=this;if(v.setParams({ariaLabel:this.getAriaLabel(i),autoComplete:o}),this.applyActive=Am(i.filterParams),!N){let Z=d0(i.filterParams,I),ee=dr(this,this.syncUpWithParentFilter.bind(this),Z);v.setValueChangedListener(ee)}}refresh(i){super.refresh(i),this.setTextInputParams(i)}recreateFloatingFilterInputService(i){let{inputSvc:o}=this,v=o.getValue();Jn(this.eFloatingFilterInputContainer),this.destroyBean(o),this.setupFloatingFilterInputService(i),o.setValue(v,!0)}syncUpWithParentFilter(i){let o=i.key===Bt.ENTER;if(this.applyActive&&!o)return;let{inputSvc:v,params:I}=this,N=v.getValue();I.filterParams.trimInput&&(N=bS(N),v.setValue(N,!0)),I.parentFilterInstance(W=>{W==null||W.onFloatingFilterChanged(this.lastType||null,N||null)})}setEditable(i){this.inputSvc.setEditable(i)}},$n=class extends jt{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(i){this.eNumberInput=this.createManagedBean(new dv),this.eTextInput=this.createManagedBean(new fd),this.eTextInput.setDisabled(!0);let o=this.eNumberInput.getGui(),v=this.eTextInput.getGui();i.appendChild(o),i.appendChild(v),this.setupListeners(o,I=>this.onValueChanged(I)),this.setupListeners(v,I=>this.onValueChanged(I))}setEditable(i){this.numberInputActive=i,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(i){this.eNumberInput.setAutoComplete(i),this.eTextInput.setAutoComplete(i)}getValue(){return this.getActiveInputElement().getValue()}setValue(i,o){this.getActiveInputElement().setValue(i,o)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(i){this.onValueChanged=i}setupListeners(i,o){this.addManagedListeners(i,{input:o,keydown:o})}setParams(i){this.setAriaLabel(i.ariaLabel),i.autoComplete!==void 0&&this.setAutoComplete(i.autoComplete)}setAriaLabel(i){this.eNumberInput.setInputAriaLabel(i),this.eTextInput.setInputAriaLabel(i)}},sf=class extends CS{init(i){var o;super.init(i),this.filterModelFormatter=new zv(this.getLocaleTextFunc.bind(this),this.optionsFactory,(o=i.filterParams)==null?void 0:o.numberFormatter)}refresh(i){Oo(i.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(i),super.refresh(i),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return yg}createFloatingFilterInputService(i){return this.allowedCharPattern=Oo(i.filterParams),this.allowedCharPattern?this.createManagedBean(new Ap({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new $n)}},bg=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],XM=class extends vg{conditionToString(i,o){let{numberOfInputs:v}=o||{},{filter:I,filterTo:N,type:W}=i;return W=="inRange"||v===2?`${I}-${N}`:I!=null?`${I}`:`${W}`}},Dd=class extends cc{constructor(){super("textFilter"),this.filterType="text",this.defaultFormatter=i=>i,this.defaultLowercaseFormatter=i=>i==null?null:i.toString().toLowerCase(),this.defaultMatcher=({filterOption:i,value:o,filterText:v})=>{if(v==null)return!1;switch(i){case"contains":return o.indexOf(v)>=0;case"notContains":return o.indexOf(v)<0;case"equals":return o===v;case"notEqual":return o!=v;case"startsWith":return o.indexOf(v)===0;case"endsWith":{let I=o.lastIndexOf(v);return I>=0&&I===o.length-v.length}default:return!1}},this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}setParams(i){this.textFilterParams=i,super.setParams(i),this.matcher=i.textMatcher||this.defaultMatcher,this.formatter=i.textFormatter||(i.caseSensitive?this.defaultFormatter:this.defaultLowercaseFormatter),this.filterModelFormatter=new XM(this.getLocaleTextFunc.bind(this),this.optionsFactory)}createCondition(i){let o=this.getConditionType(i),v={filterType:this.filterType,type:o},I=this.getValuesWithSideEffects(i,!0);return I.length>0&&(v.filter=I[0]),I.length>1&&(v.filterTo=I[1]),v}areSimpleModelsEqual(i,o){return i.filter===o.filter&&i.filterTo===o.filterTo&&i.type===o.type}getInputs(i){let{eValuesFrom:o,eValuesTo:v}=this;return i>=o.length?[null,null]:[o[i],v[i]]}getValues(i){return this.getValuesWithSideEffects(i,!1)}getValuesWithSideEffects(i,o){let v=[];return this.forEachPositionInput(i,(I,N,W,Z)=>{var ee;if(N<Z){let le=kc(I.getValue());o&&this.textFilterParams.trimInput&&(le=(ee=bS(le))!=null?ee:null,I.setValue(le,!0)),v.push(le)}}),v}getDefaultFilterOptions(){return bg}createValueElement(){let i=document.createElement("div");return i.classList.add("ag-filter-body"),M(i,"presentation"),this.createFromToElement(i,this.eValuesFrom,"from"),this.createFromToElement(i,this.eValuesTo,"to"),i}createFromToElement(i,o,v){let I=this.createManagedBean(new fd);I.addCssClass(`ag-filter-${v}`),I.addCssClass("ag-filter-filter"),o.push(I),i.appendChild(I.getGui())}removeValueElements(i,o){let v=I=>this.removeComponents(I,i,o);v(this.eValuesFrom),v(this.eValuesTo)}mapValuesFromModel(i){let{filter:o,filterTo:v,type:I}=i||{};return[o||null,v||null].slice(0,this.getNumberOfInputs(I))}evaluateNullValue(i){return i?["notEqual","notContains","blank"].indexOf(i)>=0:!1}evaluateNonNullValue(i,o,v,I){let N=i.map(Ve=>this.formatter(Ve))||[],W=this.formatter(o),{api:Z,colDef:ee,column:le,context:we,textFormatter:Ae}=this.textFilterParams;if(v.type==="blank")return lc(o);if(v.type==="notBlank")return!lc(o);let Ee={api:Z,colDef:ee,column:le,context:we,node:I.node,data:I.data,filterOption:v.type,value:W,textFormatter:Ae};return N.some(Ve=>this.matcher(He(ge({},Ee),{filterText:Ve})))}getModelAsString(i){var o;return(o=this.filterModelFormatter.getModelAsString(i))!=null?o:""}},DT=class extends CS{init(i){super.init(i),this.filterModelFormatter=new XM(this.getLocaleTextFunc.bind(this),this.optionsFactory)}refresh(i){super.refresh(i),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultOptions(){return bg}createFloatingFilterInputService(){return this.createManagedBean(new Ap)}};function Kc(i){var o;return!!((o=i.filterManager)!=null&&o.isQuickFilterPresent())}function d1(i){return i.gos.get("quickFilterText")}function Tl(i){var o;(o=i.filterManager)==null||o.resetQuickFilterCache()}var Cg=class extends jt{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){let i=this.resetCache.bind(this),o=this.gos;this.addManagedEventListeners({columnPivotModeChanged:i,newColumnsLoaded:i,columnRowGroupChanged:i,columnVisible:()=>{o.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",v=>this.setFilter(v.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(o.get("quickFilterText")),this.parser=o.get("quickFilterParser"),this.matcher=o.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){var le,we;let{autoColSvc:i,colModel:o,gos:v,pivotResultCols:I}=this.beans,N=o.isPivotMode(),W=i==null?void 0:i.getAutoCols(),Z=o.getColDefCols(),ee=(we=N&&!v.get("applyQuickFilterBeforePivotOrAgg")?(le=I==null?void 0:I.getPivotResultCols())==null?void 0:le.list:Z)!=null?we:[];W&&(ee=ee.concat(W)),this.colsToUse=v.get("includeHiddenColumnsInQuickFilter")?ee:ee.filter(Ae=>Ae.isVisible()||Ae.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(i){let o=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(o,i):this.quickFilterParts.every(v=>o?this.doesRowPassCache(i,v):this.doesRowPassNoCache(i,v))}resetCache(){this.beans.rowModel.forEachNode(i=>i.quickFilterAggregateText=null)}setFilterParts(){let{quickFilter:i,parser:o}=this;i?this.quickFilterParts=o?o(i):i.split(" "):this.quickFilterParts=null}parseFilter(i){return mi(i)?i.toUpperCase():null}setFilter(i){if(i!=null&&typeof i!="string"){ii(70,{newFilter:i});return}let o=this.parseFilter(i);this.quickFilter!==o&&(this.quickFilter=o,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){let i=this.gos.get("quickFilterParser"),o=this.gos.get("quickFilterMatcher"),v=i!==this.parser||o!==this.matcher;this.parser=i,this.matcher=o,v&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(i,o){return this.colsToUse.some(v=>{let I=this.getTextForColumn(v,i);return mi(I)&&I.indexOf(o)>=0})}doesRowPassCache(i,o){return this.checkGenerateAggText(i),i.quickFilterAggregateText.indexOf(o)>=0}doesRowPassMatcher(i,o){let v;i?(this.checkGenerateAggText(o),v=o.quickFilterAggregateText):v=this.getAggText(o);let{quickFilterParts:I,matcher:N}=this;return N(I,v)}checkGenerateAggText(i){i.quickFilterAggregateText||(i.quickFilterAggregateText=this.getAggText(i))}getTextForColumn(i,o){let v=this.beans.filterValueSvc.getValue(i,o),I=i.getColDef();if(I.getQuickFilterText){let N=this.gos.addGridCommonParams({value:v,node:o,data:o.data,column:i,colDef:I});v=I.getQuickFilterText(N)}return mi(v)?v.toString().toUpperCase():null}getAggText(i){let o=[];return this.colsToUse.forEach(v=>{let I=this.getTextForColumn(v,i);mi(I)&&o.push(I)}),o.join(`
`)}},Hb={moduleName:"ClientSideRowModelFilter",version:ri,rowModels:["clientSide"],beans:[po]},pu={moduleName:"FilterCore",version:ri,beans:[af],apiFunctions:{isAnyFilterPresent:HM,onFilterChanged:gu},css:[$s],dependsOn:[Hb]},Go={moduleName:"FilterValue",version:ri,beans:[mg]},Rl={moduleName:"ColumnFilter",version:ri,beans:[Bb,c1],dynamicBeans:{headerFilterCellCtrl:VM},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:pg,getColumnFilterInstance:fS,destroyFilter:Ad,setFilterModel:Mp,getFilterModel:tf,getColumnFilterModel:jM,setColumnFilterModel:zb,showColumnFilter:kp},dependsOn:[pu,gg,Go,Yr]},ZM={moduleName:"CustomFilter",version:ri,userComponents:{agReadOnlyFloatingFilter:WM},dependsOn:[Rl]},SS={moduleName:"TextFilter",version:ri,dependsOn:[Rl],userComponents:{agTextColumnFilter:Dd,agTextColumnFloatingFilter:DT}},Dp={moduleName:"NumberFilter",version:ri,dependsOn:[Rl],userComponents:{agNumberColumnFilter:yS,agNumberColumnFloatingFilter:sf}},u1={moduleName:"DateFilter",version:ri,dependsOn:[Rl],userComponents:{agDateColumnFilter:Vb,agDateInput:Nv,agDateColumnFloatingFilter:jb}},ET={moduleName:"QuickFilter",version:ri,rowModels:["clientSide"],beans:[Cg],apiFunctions:{isQuickFilterPresent:Kc,getQuickFilter:d1,resetQuickFilter:Tl},dependsOn:[pu,Go]},IT={moduleName:"ExternalFilter",version:ri,dependsOn:[pu]},lf=class{constructor(i){this.cellValueChanges=i}},Bv=class extends lf{constructor(i,o,v,I){super(i),this.initialRange=o,this.finalRange=v,this.ranges=I}},CL=10,Vo=class{constructor(i){this.actionStack=[],this.maxStackSize=i||CL,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(i){i.cellValueChanges&&i.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(i))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},h1=class extends jt{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.onCellValueChanged=i=>{let o={column:i.column,rowIndex:i.rowIndex,rowPinned:i.rowPinned},v=this.activeCellEdit!==null&&Ai(this.activeCellEdit,o),I=this.activeRowEdit!==null&&Tn(this.activeRowEdit,o);if(!(v||I||this.isPasting||this.isRangeInAction))return;let{rowPinned:W,rowIndex:Z,column:ee,oldValue:le,value:we}=i,Ae={rowPinned:W,rowIndex:Z,columnId:ee.getColId(),newValue:we,oldValue:le};this.cellValueChanges.push(Ae)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){let{gos:i,ctrlsSvc:o}=this.beans;if(!i.get("undoRedoCellEditing"))return;let v=i.get("undoRedoCellEditingLimit");if(v<=0)return;this.undoStack=new Vo(v),this.redoStack=new Vo(v),this.addListeners();let I=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:N=>{N.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:I,newColumnsLoaded:I,columnGroupOpened:I,columnRowGroupChanged:I,columnMoved:I,columnPinned:I,columnVisible:I,rowDragEnd:I}),o.whenReady(this,N=>{this.gridBodyCtrl=N.gridBodyCtrl})}getCurrentUndoStackSize(){var i,o;return(o=(i=this.undoStack)==null?void 0:i.getCurrentStackSize())!=null?o:0}getCurrentRedoStackSize(){var i,o;return(o=(i=this.redoStack)==null?void 0:i.getCurrentStackSize())!=null?o:0}undo(i){let{eventSvc:o,undoStack:v,redoStack:I}=this;o.dispatchEvent({type:"undoStarted",source:i});let N=this.undoRedo(v,I,"initialRange","oldValue","undo");o.dispatchEvent({type:"undoEnded",source:i,operationPerformed:N})}redo(i){let{eventSvc:o,undoStack:v,redoStack:I}=this;o.dispatchEvent({type:"redoStarted",source:i});let N=this.undoRedo(I,v,"finalRange","newValue","redo");o.dispatchEvent({type:"redoEnded",source:i,operationPerformed:N})}undoRedo(i,o,v,I,N){if(!i)return!1;let W=i.pop();return!W||!W.cellValueChanges?!1:(this.processAction(W,Z=>Z[I],N),W instanceof Bv?this.processRange(W.ranges||[W[v]]):this.processCell(W.cellValueChanges),o.push(W),!0)}processAction(i,o,v){i.cellValueChanges.forEach(I=>{let{rowIndex:N,rowPinned:W,columnId:Z}=I,ee={rowIndex:N,rowPinned:W},le=nv(this.beans,ee);le.displayed&&le.setDataValue(Z,o(I),v)})}processRange(i){let o,v=this.beans.rangeSvc;v.removeAllCellRanges(!0),i.forEach((I,N)=>{if(!I)return;let W=I.startRow,Z=I.endRow;N===i.length-1&&(o={rowPinned:W.rowPinned,rowIndex:W.rowIndex,columnId:I.startColumn.getColId()},this.setLastFocusedCell(o));let ee={rowStartIndex:W.rowIndex,rowStartPinned:W.rowPinned,rowEndIndex:Z.rowIndex,rowEndPinned:Z.rowPinned,columnStart:I.startColumn,columns:I.columns};v.addCellRange(ee)})}processCell(i){let o=i[0],{rowIndex:v,rowPinned:I}=o,N={rowIndex:v,rowPinned:I},W=nv(this.beans,N),Z={rowPinned:o.rowPinned,rowIndex:W.rowIndex,columnId:o.columnId};this.setLastFocusedCell(Z)}setLastFocusedCell(i){let{rowIndex:o,columnId:v,rowPinned:I}=i,{colModel:N,focusSvc:W,rangeSvc:Z}=this.beans,ee=N.getCol(v);if(!ee)return;let{scrollFeature:le}=this.gridBodyCtrl;le.ensureIndexVisible(o),le.ensureColumnVisible(ee);let we={rowIndex:o,column:ee,rowPinned:I};W.setFocusedCell(He(ge({},we),{forceBrowserFocus:!0})),Z==null||Z.setRangeToCell(we)}addListeners(){this.addManagedEventListeners({rowEditingStarted:i=>{this.activeRowEdit={rowIndex:i.rowIndex,rowPinned:i.rowPinned}},rowEditingStopped:()=>{let i=new lf(this.cellValueChanges);this.pushActionsToUndoStack(i),this.activeRowEdit=null},cellEditingStarted:i=>{this.activeCellEdit={column:i.column,rowIndex:i.rowIndex,rowPinned:i.rowPinned}},cellEditingStopped:i=>{if(this.activeCellEdit=null,i.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){let v=new lf(this.cellValueChanges);this.pushActionsToUndoStack(v)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{let i=new lf(this.cellValueChanges);this.pushActionsToUndoStack(i),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:i=>{let o=new Bv(this.cellValueChanges,i.initialRange,i.finalRange);this.pushActionsToUndoStack(o),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let i,{rangeSvc:o,gos:v}=this.beans;o&&Jo(v)?i=new Bv(this.cellValueChanges,void 0,void 0,[...o.getCellRanges()]):i=new lf(this.cellValueChanges),this.pushActionsToUndoStack(i),this.isRangeInAction=!1}})}pushActionsToUndoStack(i){this.undoStack.push(i),this.cellValueChanges=[],this.redoStack.clear()}},cf=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;width:100%}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}",g1=class extends hv{constructor(){super(`
            <div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">
                <ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
            </div>`,[Na]),this.eCheckbox=fi}init(i){var N;this.params=i;let o=(N=i.value)!=null?N:void 0,v=this.eCheckbox;v.setValue(o),v.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(o),this.addManagedListeners(v,{fieldValueChanged:W=>this.setAriaLabel(W.selected)})}getValue(){return this.eCheckbox.getValue()}focusIn(){this.eCheckbox.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(i){let o=this.getLocaleTextFunc(),v=Nt(o,i),I=o("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(`${I} (${v})`)}},wh=class extends hv{constructor(i){super(`
            <div class="ag-cell-edit-wrapper">
                ${i.getTemplate()}
            </div>`,i.getAgComponents()),this.cellEditorInput=i,this.eInput=fi}init(i){this.params=i;let{cellStartedEdit:o,eventKey:v,suppressPreventDefault:I}=i,N=this.eInput;this.cellEditorInput.init(N,i);let W,Z=!0;o?(this.focusAfterAttached=!0,v===Bt.BACKSPACE||v===Bt.DELETE?W="":v&&v.length===1?I?Z=!1:W=v:(W=this.cellEditorInput.getStartValue(),v!==Bt.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,W=this.cellEditorInput.getStartValue()),Z&&W!=null&&N.setStartValue(W),this.addManagedElementListeners(N.getGui(),{keydown:ee=>{let{key:le}=ee;(le===Bt.PAGE_UP||le===Bt.PAGE_DOWN)&&ee.preventDefault()}})}afterGuiAttached(){var I,N;let i=this.getLocaleTextFunc(),o=this.eInput;if(o.setInputAriaLabel(i("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;ha()||o.getFocusableElement().focus();let v=o.getInputElement();this.highlightAllOnFocus?v.select():(N=(I=this.cellEditorInput).setCaret)==null||N.call(I)}focusIn(){let i=this.eInput,o=i.getFocusableElement(),v=i.getInputElement();o.focus(),v.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}},TT=class{getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[C0]}init(i,o){this.eInput=i,this.params=o;let{min:v,max:I,step:N}=o;v!=null&&i.setMin(v),I!=null&&i.setMax(I),N!=null&&i.setStep(N)}getValue(){let{eInput:i,params:o}=this,v=i.getDate();return!mi(v)&&!mi(o.value)?o.value:v!=null?v:null}getStartValue(){let{value:i}=this.params;if(i instanceof Date)return Er(i,!1)}},RT=class extends wh{constructor(){super(new TT)}},PT=class{constructor(i){this.getDataTypeService=i}getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[C0]}init(i,o){this.eInput=i,this.params=o;let{min:v,max:I,step:N}=o;v!=null&&i.setMin(v),I!=null&&i.setMax(I),N!=null&&i.setStep(N)}getValue(){let{params:i,eInput:o}=this,v=this.formatDate(o.getDate());return!mi(v)&&!mi(i.value)?i.value:i.parseValue(v!=null?v:"")}getStartValue(){var i,o;return Er((o=this.parseDate((i=this.params.value)!=null?i:void 0))!=null?o:null,!1)}parseDate(i){var v;let o=this.getDataTypeService();return o?o.getDateParserFunction(this.params.column)(i):(v=Ml(i))!=null?v:void 0}formatDate(i){var v;let o=this.getDataTypeService();return o?o.getDateFormatterFunction(this.params.column)(i):(v=Er(i!=null?i:null,!1))!=null?v:void 0}},$M=class extends wh{constructor(){super(new PT(()=>this.beans.dataTypeSvc))}},wS=class extends hv{constructor(){super(`<div class="ag-large-text">
        <ag-input-text-area data-ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
        </div>`,[NI]),this.eTextArea=fi}init(i){this.params=i,this.focusAfterAttached=i.cellStartedEdit,this.eTextArea.setMaxLength(i.maxLength||200).setCols(i.cols||60).setRows(i.rows||10),i.value!=null&&this.eTextArea.setValue(i.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(i){let o=i.key;(o===Bt.LEFT||o===Bt.UP||o===Bt.RIGHT||o===Bt.DOWN||i.shiftKey&&o===Bt.ENTER)&&i.stopPropagation()}afterGuiAttached(){let i=this.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(i("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()}getValue(){let i=this.eTextArea.getValue(),o=this.params;return!mi(i)&&!mi(o.value)?o.value:o.parseValue(i)}},xS=class{getTemplate(){return'<ag-input-number-field class="ag-cell-editor" data-ref="eInput"></ag-input-number-field>'}getAgComponents(){return[xl]}init(i,o){this.eInput=i,this.params=o;let{max:v,min:I,precision:N,step:W}=o;v!=null&&i.setMax(v),I!=null&&i.setMin(I),N!=null&&i.setPrecision(N),W!=null&&i.setStep(W);let Z=i.getInputElement();o.preventStepping?i.addManagedElementListeners(Z,{keydown:this.preventStepping}):o.showStepperButtons&&Z.classList.add("ag-number-field-input-stepper")}preventStepping(i){(i.key===Bt.UP||i.key===Bt.DOWN)&&i.preventDefault()}getValue(){let{eInput:i,params:o}=this,v=i.getValue();if(!mi(v)&&!mi(o.value))return o.value;let I=o.parseValue(v);if(I==null)return I;if(typeof I=="string"){if(I==="")return null;I=Number(I)}return isNaN(I)?null:I}getStartValue(){return this.params.value}setCaret(){ha()&&this.eInput.getInputElement().focus({preventScroll:!0})}},MS=class extends wh{constructor(){super(new xS)}},p1=class extends hv{constructor(){super(`<div class="ag-cell-edit-wrapper">
                <ag-select class="ag-cell-editor" data-ref="eSelect"></ag-select>
            </div>`,[$h]),this.eSelect=fi,this.startedByEnter=!1}wireBeans(i){this.valueSvc=i.valueSvc}init(i){this.focusAfterAttached=i.cellStartedEdit;let{eSelect:o,valueSvc:v,gos:I}=this,{values:N,value:W,eventKey:Z}=i;if(Oa(N)){ii(58);return}this.startedByEnter=Z!=null?Z===Bt.ENTER:!1;let ee=!1;N.forEach(Ee=>{let Ve={value:Ee},Je=v.formatValue(i.column,null,Ee),gt=Je!=null;Ve.text=gt?Je:Ee,o.addOption(Ve),ee=ee||W===Ee}),ee?o.setValue(i.value,!0):i.values.length&&o.setValue(i.values[0],!0);let{valueListGap:le,valueListMaxWidth:we,valueListMaxHeight:Ae}=i;le!=null&&o.setPickerGap(le),Ae!=null&&o.setPickerMaxHeight(Ae),we!=null&&o.setPickerMaxWidth(we),I.get("editType")!=="fullRow"&&this.addManagedListeners(this.eSelect,{selectedItem:()=>i.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eSelect.showPicker()})}focusIn(){this.eSelect.getFocusableElement().focus()}getValue(){return this.eSelect.getValue()}isPopup(){return!1}},LT=class{getTemplate(){return'<ag-input-text-field class="ag-cell-editor" data-ref="eInput"></ag-input-text-field>'}getAgComponents(){return[Tm]}init(i,o){this.eInput=i,this.params=o;let v=o.maxLength;v!=null&&i.setMaxLength(v)}getValue(){let{eInput:i,params:o}=this,v=i.getValue();return!mi(v)&&!mi(o.value)?o.value:o.parseValue(v)}getStartValue(){let i=this.params;return i.useFormatter||i.column.getColDef().refData?i.formatValue(i.value):i.value}setCaret(){let i=this.eInput,o=i.getValue(),v=mi(o)&&o.length||0;v&&i.getInputElement().setSelectionRange(v,v)}},ir=class extends wh{constructor(){super(new LT)}};function dc(i){return i.ctrlsSvc.getScrollFeature().getVScrollPosition()}function df(i){return i.ctrlsSvc.getScrollFeature().getHScrollPosition()}function Pl(i,o,v="auto"){i.frameworkOverrides.wrapIncoming(()=>i.ctrlsSvc.getScrollFeature().ensureColumnVisible(o,v),"ensureVisible")}function OT(i,o,v){i.frameworkOverrides.wrapIncoming(()=>i.ctrlsSvc.getScrollFeature().ensureIndexVisible(o,v),"ensureVisible")}function SL(i,o,v=null){i.frameworkOverrides.wrapIncoming(()=>i.ctrlsSvc.getScrollFeature().ensureNodeVisible(o,v),"ensureVisible")}function FT(i){var o;(o=i.undoRedo)==null||o.undo("api")}function _T(i){var o;(o=i.undoRedo)==null||o.redo("api")}function Gv(i,o={}){let v=[];return i.rowRenderer.getCellCtrls(o.rowNodes,o.columns).forEach(I=>{var W;let N=(W=I.comp)==null?void 0:W.getCellEditor();N&&v.push(oh(N))}),v}function NT(i){let o=[];return i.rowRenderer.getAllCellCtrls().forEach(v=>{if(v.editing){let{cellPosition:I}=v;o.push(I)}}),o}function QM(i,o=!1){var v;(v=i.editSvc)==null||v.stopAllEditing(o)}function m1(i,o){let v=i.colModel.getCol(o.colKey);if(!v){ii(12,{colKey:o.colKey});return}let I={rowIndex:o.rowIndex,rowPinned:o.rowPinned||null,column:v};o.rowPinned==null&&OT(i,o.rowIndex),Pl(i,o.colKey);let W=io(i,I);if(!W)return;let{focusSvc:Z,gos:ee,editSvc:le}=i,we=()=>{let Ee=ga(i),Ve=W.eGui;return Ee!==Ve&&!!(Ve!=null&&Ve.contains(Ee))},Ae=ee.get("stopEditingWhenCellsLoseFocus")&&we();(Ae||!Z.isCellFocused(I))&&Z.setFocusedCell(He(ge({},I),{forceBrowserFocus:Ae,preventScrollOnBrowserFocus:!0})),le==null||le.startRowOrCellEdit(W,o.key)}function f1(i){var o,v;return(v=(o=i.undoRedo)==null?void 0:o.getCurrentUndoStackSize())!=null?v:0}function kS(i){var o,v;return(v=(o=i.undoRedo)==null?void 0:o.getCurrentRedoStackSize())!=null?v:0}var JM=class extends hv{constructor(i){super('<div class="ag-popup-editor" tabindex="-1"/>'),this.params=i}postConstruct(){cd(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){let i=this.getGui(),o=this.params,v=I=>{gs(this.gos,I,o.node,o.column,!0)||o.onKeyDown(I)};this.addManagedElementListeners(i,{keydown:v})}},ek=class extends jt{constructor(){super(...arguments),this.beanName="editSvc"}startEditing(i,o=null,v=!1,I=null){var we;if(!i.isCellEditable()||i.editing)return!0;if(!i.comp)return i.onCompAttachedFuncs.push(()=>{this.startEditing(i,o,v,I)}),!0;let N=this.createCellEditorParams(i,o,v),W=i.column.getColDef(),Z=Qf(this.beans.userCompFactory,W,N),ee=(Z==null?void 0:Z.popupFromSelector)!=null?Z.popupFromSelector:!!W.cellEditorPopup,le=(Z==null?void 0:Z.popupPositionFromSelector)!=null?Z.popupPositionFromSelector:W.cellEditorPopupPosition;return AS(i,!0,Z),i.comp.setEditDetails(Z,ee,le,this.gos.get("reactiveCustomComponents")),this.eventSvc.dispatchEvent(i.createEvent(I,"cellEditingStarted")),!((we=Z==null?void 0:Z.params)!=null&&we.suppressPreventDefault)}stopEditing(i,o=!1){if(i.onEditorAttachedFuncs=[],!i.editing)return!1;let{comp:v,column:I,rowNode:N}=i,{newValue:W,newValueExists:Z}=zT(o,v),ee=this.beans.valueSvc.getValueForDisplay(I,N),le=!1;return Z&&(le=uf(i,ee,W,N,I)),AS(i,!1,void 0),v.setEditDetails(),i.updateAndFormatValue(!1),i.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.eventSvc.dispatchEvent(He(ge({},i.createEvent(null,"cellEditingStopped")),{oldValue:ee,newValue:W,valueChanged:le})),le}handleColDefChanged(i){var v;let o=(v=i.comp)==null?void 0:v.getCellEditor();if(o!=null&&o.refresh){let{eventKey:I,cellStartedEdit:N}=i.editCompDetails.params,W=this.createCellEditorParams(i,I,N),Z=i.column.getColDef(),ee=Qf(this.beans.userCompFactory,Z,W);o.refresh(ee.params)}}setFocusOutOnEditor(i){if(!i.editing)return;let o=i.comp.getCellEditor();o&&o.focusOut&&o.focusOut()}setFocusInOnEditor(i){if(!i.editing)return;let o=i.comp,v=o.getCellEditor();v!=null&&v.focusIn?v.focusIn():(i.focusCell(!0),i.onEditorAttachedFuncs.push(()=>{var I,N;return(N=(I=o.getCellEditor())==null?void 0:I.focusIn)==null?void 0:N.call(I)}))}stopEditingAndFocus(i,o=!1,v=!1){this.stopRowOrCellEdit(i),i.focusCell(!0),o||this.navigateAfterEdit(v,i.cellPosition)}createPopupEditorWrapper(i){return new JM(i)}stopAllEditing(i=!1){this.beans.rowRenderer.getAllRowCtrls().forEach(o=>this.stopRowEditing(o,i))}stopRowEditing(i,o=!1){var W;if(i.stoppingRowEdit)return;let v=i.getAllCellCtrls(),I=i.editing;i.stoppingRowEdit=!0;let N=!1;for(let Z of v){let ee=Z.stopEditing(o);I&&!o&&!N&&ee&&(N=!0)}N&&this.eventSvc.dispatchEvent(i.createRowEvent("rowValueChanged")),I&&((W=this.beans.rowEditSvc)==null||W.setEditing(i,!1)),i.stoppingRowEdit=!1}addStopEditingWhenGridLosesFocus(i){if(!this.gos.get("stopEditingWhenCellsLoseFocus"))return;let o=v=>{let I=v.relatedTarget;if(fo(I)===null){this.stopAllEditing();return}let N=i.some(W=>W.contains(I))&&xx(this.gos,I);if(!N){let W=this.beans.popupSvc;N=!!W&&(W.getActivePopups().some(Z=>Z.contains(I))||W.isElementWithinCustomPopup(I))}N||this.stopAllEditing()};i.forEach(v=>this.addManagedElementListeners(v,{focusout:o}))}setInlineEditingCss(i){let o=i.editing||i.getAllCellCtrls().some(v=>v.editing);i.forEachGui(void 0,v=>{v.rowComp.addOrRemoveCssClass("ag-row-inline-editing",o),v.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!o)})}isCellEditable(i,o){if(o.group){if(this.gos.get("treeData")){if(!o.data&&!this.gos.get("enableGroupEdit"))return!1}else if(!this.gos.get("enableGroupEdit"))return!1}return i.isColumnFunc(o,i.colDef.editable)}startRowOrCellEdit(i,o,v=null){var I,N;return i.comp?this.gos.get("editType")==="fullRow"?(N=(I=this.beans.rowEditSvc)==null?void 0:I.startEditing(i.rowCtrl,o,i))!=null?N:!0:this.startEditing(i,o,!0,v):(i.onCompAttachedFuncs.push(()=>{this.startRowOrCellEdit(i,o,v)}),!0)}stopRowOrCellEdit(i,o=!1){this.gos.get("editType")==="fullRow"?this.stopRowEditing(i.rowCtrl,o):this.stopEditing(i,o)}createCellEditorParams(i,o,v){let{column:I,rowNode:N,eGui:W,cellPosition:{rowIndex:Z}}=i,{valueSvc:ee,gos:le}=this.beans;return le.addGridCommonParams({value:ee.getValueForDisplay(I,N),eventKey:o,column:I,colDef:I.getColDef(),rowIndex:Z,node:N,data:N.data,cellStartedEdit:v,onKeyDown:i.onKeyDown.bind(i),stopEditing:i.stopEditingAndFocus.bind(i),eGridCell:W,parseValue:we=>ee.parseValue(I,N,we,i.value),formatValue:i.formatValue.bind(i)})}navigateAfterEdit(i,o){var I;if(this.gos.get("enterNavigatesVerticallyAfterEdit")){let N=i?Bt.UP:Bt.DOWN;(I=this.beans.navigation)==null||I.navigateToNextCell(null,N,o,!1)}}};function AS(i,o,v){i.editCompDetails=v,i.editing!==o&&(i.editing=o)}function zT(i,o){let v={newValueExists:!1};if(i)return v;let I=o.getCellEditor();return!I||I.isCancelAfterEnd&&I.isCancelAfterEnd()?v:{newValue:I.getValue(),newValueExists:!0}}function uf(i,o,v,I,N){if(v===o)return!1;i.suppressRefreshCell=!0;let W=I.setDataValue(N,v,"edit");return i.suppressRefreshCell=!1,W}var Vv=class extends jt{constructor(){super(...arguments),this.beanName="rowEditSvc"}startEditing(i,o=null,v=null,I=null){if(i.editing)return!0;let N=!0,W=!1,{editSvc:Z}=this.beans;return i.getAllCellCtrls().forEach(ee=>{var we;let le=ee===v;le?N=(we=Z==null?void 0:Z.startEditing(ee,o,le,I))!=null?we:!0:Z==null||Z.startEditing(ee,null,le,I),W||(W=ee.editing)}),W&&this.setEditing(i,!0),N}setEditing(i,o){i.editing=o,i.forEachGui(void 0,I=>I.rowComp.addOrRemoveCssClass("ag-row-editing",o));let v=o?i.createRowEvent("rowEditingStarted"):i.createRowEvent("rowEditingStopped");this.eventSvc.dispatchEvent(v)}},mu={moduleName:"EditCore",version:ri,beans:[ek,Vv],apiFunctions:{getCellEditorInstances:Gv,getEditingCells:NT,stopEditing:QM,startEditingCell:m1},dependsOn:[gg],css:[cf]},qi={moduleName:"UndoRedoEdit",version:ri,beans:[h1],apiFunctions:{undoCellEditing:FT,redoCellEditing:_T,getCurrentUndoSize:f1,getCurrentRedoSize:kS},dependsOn:[mu]},br={moduleName:"TextEditor",version:ri,userComponents:{agCellEditor:ir,agTextCellEditor:ir},dependsOn:[mu]},Ll={moduleName:"NumberEditor",version:ri,userComponents:{agNumberCellEditor:{classImp:MS,params:{suppressPreventDefault:!0}}},dependsOn:[mu]},tk={moduleName:"DateEditor",version:ri,userComponents:{agDateCellEditor:RT,agDateStringCellEditor:$M},dependsOn:[mu]},ik={moduleName:"CheckboxEditor",version:ri,userComponents:{agCheckboxCellEditor:g1},dependsOn:[mu]},Wb={moduleName:"SelectEditor",version:ri,userComponents:{agSelectCellEditor:p1},dependsOn:[mu]},nk={moduleName:"LargeTextEditor",version:ri,userComponents:{agLargeTextCellEditor:wS},dependsOn:[mu]},ak={moduleName:"CustomEditor",version:ri,dependsOn:[mu]};function BT(i,o){var ee;if(!o.nodes.every(le=>le.rowPinned?(ii(59),!1):le.id===void 0?(ii(60),!1):!0))return;let{nodes:I,source:N,newValue:W}=o,Z=I;(ee=i.selectionSvc)==null||ee.setNodesSelected({nodes:Z,source:N!=null?N:"api",newValue:W})}function GT(i,o,v="apiSelectAll"){var I;(I=i.selectionSvc)==null||I.selectAllRowNodes({source:v,selectAll:o})}function ok(i,o,v="apiSelectAll"){var I;(I=i.selectionSvc)==null||I.deselectAllRowNodes({source:v,selectAll:o})}function VT(i,o="apiSelectAllFiltered"){var v;(v=i.selectionSvc)==null||v.selectAllRowNodes({source:o,selectAll:"filtered"})}function rk(i,o="apiSelectAllFiltered"){var v;(v=i.selectionSvc)==null||v.deselectAllRowNodes({source:o,selectAll:"filtered"})}function Ub(i,o="apiSelectAllCurrentPage"){var v;(v=i.selectionSvc)==null||v.selectAllRowNodes({source:o,selectAll:"currentPage"})}function hf(i,o="apiSelectAllCurrentPage"){var v;(v=i.selectionSvc)==null||v.deselectAllRowNodes({source:o,selectAll:"currentPage"})}function Ep(i){var o,v;return(v=(o=i.selectionSvc)==null?void 0:o.getSelectedNodes())!=null?v:[]}function Kb(i){var o,v;return(v=(o=i.selectionSvc)==null?void 0:o.getSelectedRows())!=null?v:[]}var qb=class extends sb{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map}postConstruct(){super.postConstruct();let{gos:i}=this;this.mode=vo(i),this.groupSelectsDescendants=Ry(i),this.groupSelectsFiltered=Xu(i)==="filteredDescendants",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{let o=Ry(i),v=vo(i),I=Xu(i)==="filteredDescendants";(o!==this.groupSelectsDescendants||I!==this.groupSelectsFiltered||v!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=o,this.groupSelectsFiltered=I,this.mode=v)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(i,o,v){if(this.isRowSelectionBlocked(o))return 0;let I=this.inferNodeSelections(o,i.shiftKey,i.metaKey||i.ctrlKey,v);return I==null?0:"select"in I?(I.reset?this.resetNodes():this.selectRange(I.deselect,!1,v),this.selectRange(I.select,!0,v)):this.setNodesSelected({nodes:[I.node],newValue:I.newValue,clearSelection:I.clearSelection,event:i,source:v})}setNodesSelected({newValue:i,clearSelection:o,suppressFinishActions:v,nodes:I,event:N,source:W}){var ee;if(!Ql(this.gos)&&i)return ii(132),0;if(I.length===0)return 0;if(I.length>1&&!this.isMultiSelect())return ii(130),0;let Z=0;for(let le=0;le<I.length;le++){let we=I[le],Ae=we.footer?we.sibling:we,Ee=this.groupSelectsFiltered&&Ae.group;if(Ae.rowPinned){ii(59);continue}if(Ae.id===void 0){ii(60);continue}Ee||this.selectRowNode(Ae,i,N,W)&&Z++,this.groupSelectsDescendants&&((ee=Ae.childrenAfterGroup)!=null&&ee.length)&&(Z+=this.selectChildren(Ae,i,W))}return v||(i&&(o||!this.isMultiSelect())&&(Z+=this.clearOtherNodes(I[0],W)),Z>0&&(this.updateGroupsFromChildrenSelections(W),this.dispatchSelectionChanged(W))),Z}selectRange(i,o,v){let I=0;return i.forEach(N=>{if(N.group&&this.groupSelectsDescendants)return;this.selectRowNode(N,o,void 0,v)&&I++}),I>0&&(this.updateGroupsFromChildrenSelections(v),this.dispatchSelectionChanged(v)),I}selectChildren(i,o,v){let I=this.groupSelectsFiltered?i.childrenAfterAggFilter:i.childrenAfterGroup;return I?this.setNodesSelected({newValue:o,clearSelection:!1,suppressFinishActions:!0,source:v,nodes:I}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){let i=[];return this.selectedNodes.forEach(o=>i.push(o.data)),i}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(i){let o=new Map;this.selectedNodes.forEach((v,I)=>{i(v)&&o.set(I,v)}),this.selectedNodes=o}updateGroupsFromChildrenSelections(i,o){if(!this.groupSelectsDescendants)return!1;let{gos:v,rowModel:I}=this.beans;if(!so(v,I))return!1;let N=I.rootNode;if(!N)return!1;o||(o=new xd(!0,N),o.active=!1);let W=!1;return o.forEachChangedNodeDepthFirst(Z=>{if(Z!==N){let ee=this.calculateSelectedFromChildren(Z);W=this.selectRowNode(Z,ee===null?!1:ee,void 0,i)||W}}),W}clearOtherNodes(i,o){let v=new Map,I=0;return this.selectedNodes.forEach(N=>{if(N&&N.id!==i.id){let W=this.selectedNodes.get(N.id);I+=this.setNodesSelected({nodes:[W],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:o}),this.groupSelectsDescendants&&N.parent&&v.set(N.parent.id,N.parent)}}),v.forEach(N=>{let W=this.calculateSelectedFromChildren(N);this.selectRowNode(N,W===null?!1:W,void 0,o)}),I}onRowSelected(i){let o=i.node;this.groupSelectsDescendants&&o.group||(o.isSelected()?this.selectedNodes.set(o.id,o):this.selectedNodes.delete(o.id))}syncInRowNode(i,o){this.syncInOldRowNode(i,o),this.syncInNewRowNode(i)}createDaemonNode(i){if(!i.id)return;let o=new So(this.beans);return o.id=i.id,o.data=i.data,o.__daemon=!0,o.__selected=i.__selected,o.level=i.level,o}syncInOldRowNode(i,o){o&&i.id!==o.id&&this.selectedNodes.get(o.id)==i&&this.selectedNodes.set(o.id,o)}syncInNewRowNode(i){this.selectedNodes.has(i.id)?(i.__selected=!0,this.selectedNodes.set(i.id,i)):i.__selected=!1}reset(i){let o=this.getSelectionCount();this.resetNodes(),o&&this.dispatchSelectionChanged(i)}resetNodes(){this.selectedNodes.forEach(i=>{this.selectRowNode(i,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){let{gos:i,rowModel:o}=this.beans;if(!so(i,o))return;let v=o.getTopLevelNodes();if(v===null)return;let I=[];function N(W){for(let Z=0,ee=W.length;Z<ee;Z++){let le=W[Z];le.isSelected()?I.push(le):le.group&&le.childrenAfterGroup&&N(le.childrenAfterGroup)}}return N(v),I}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes(i){let o=W=>this.selectRowNode(W.footer?W.sibling:W,!1,void 0,I),v=so(this.gos),{source:I,selectAll:N}=i;if(N==="currentPage"||N==="filtered"){if(!v){aa(102);return}this.getNodesToSelect(N).forEach(o)}else this.selectedNodes.forEach(o),this.reset(I);v&&this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections(I),this.dispatchSelectionChanged(I)}getSelectedCounts(i){let o=0,v=0,I=N=>{this.groupSelectsDescendants&&N.group||(N.isSelected()?o++:N.selectable&&v++)};return this.getNodesToSelect(i).forEach(I),{selectedCount:o,notSelectedCount:v}}getSelectAllState(i){let{selectedCount:o,notSelectedCount:v}=this.getSelectedCounts(i);return o===0&&v===0?!1:o>0&&v>0?null:o>0}hasNodesToSelect(i){return this.getNodesToSelect(i).filter(o=>o.selectable).length>0}getNodesToSelect(i){if(!this.canSelectAll())return[];let o=[];if(i==="currentPage")return this.forEachNodeOnPage(I=>{if(!I.group){o.push(I);return}if(!I.expanded&&!I.footer){let N=W=>{var Z;o.push(W),(Z=W.childrenAfterFilter)!=null&&Z.length&&W.childrenAfterFilter.forEach(N)};N(I);return}this.groupSelectsDescendants||o.push(I)}),o;let v=this.beans.rowModel;return i==="filtered"?(v.forEachNodeAfterFilter(I=>{o.push(I)}),o):(v.forEachNode(I=>{o.push(I)}),o)}forEachNodeOnPage(i){let{pageBounds:o,rowModel:v}=this.beans,I=o.getFirstRow(),N=o.getLastRow();for(let W=I;W<=N;W++){let Z=v.getRow(W);Z&&i(Z)}}selectAllRowNodes(i){let{gos:o}=this;if(!Ql(o)){ii(132);return}if(UC(o)&&!pm(o)){ii(130);return}if(!this.canSelectAll())return;let{source:v,selectAll:I}=i;this.getNodesToSelect(I).forEach(N=>{this.selectRowNode(N.footer?N.sibling:N,!0,void 0,v)}),so(o)&&this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections(v),this.dispatchSelectionChanged(v)}getSelectionState(){let i=[];return this.selectedNodes.forEach(o=>{o!=null&&o.id&&i.push(o.id)}),i.length?i:null}setSelectionState(i,o){if(!Array.isArray(i)){aa(103);return}let v=new Set(i),I=[];this.beans.rowModel.forEachNode(N=>{v.has(N.id)&&I.push(N)}),this.setNodesSelected({newValue:!0,nodes:I,source:o})}canSelectAll(){let{gos:i,rowModel:o}=this.beans;return so(i)?!0:(aa(100,{rowModelType:o.getType()}),!1)}updateSelectable(i){var le;let{gos:o,rowModel:v}=this.beans;if(!Ql(o))return;let I="selectableChanged",N=i!==void 0,W=so(o)&&this.groupSelectsDescendants,Z=[],ee=we=>{var Ee,Ve;if(N&&!we.group)return;if(W&&we.group){let Je=(Ve=(Ee=we.childrenAfterGroup)==null?void 0:Ee.some(gt=>gt.selectable))!=null?Ve:!1;this.setRowSelectable(we,Je,!0);return}!this.updateRowSelectable(we,!0)&&we.isSelected()&&Z.push(we)};if(W){if(i===void 0){let we=v.rootNode;i=we?new xd(!1,we):void 0}i==null||i.forEachChangedNodeDepthFirst(ee,!N,!N)}else v.forEachNode(ee);Z.length&&this.setNodesSelected({nodes:Z,newValue:!1,source:I}),!N&&W&&((le=this.updateGroupsFromChildrenSelections)==null||le.call(this,I))}updateSelectableAfterGrouping(i){var o;this.updateSelectable(i),this.groupSelectsDescendants&&((o=this.updateGroupsFromChildrenSelections)!=null&&o.call(this,"rowGroupChanged",i))&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:"rowGroupChanged"})}},v1={moduleName:"SharedRowSelection",version:ri,beans:[EP],apiFunctions:{setNodesSelected:BT,selectAll:GT,deselectAll:ok,selectAllFiltered:VT,deselectAllFiltered:rk,selectAllOnCurrentPage:Ub,deselectAllOnCurrentPage:hf,getSelectedNodes:Ep,getSelectedRows:Kb}},Sg={moduleName:"RowSelection",version:ri,rowModels:["clientSide","infinite","viewport"],beans:[qb],dependsOn:[v1]};function Ol(i){var o;(o=i.expansionSvc)==null||o.expandAll(!0)}function Qs(i){var o;(o=i.expansionSvc)==null||o.expandAll(!1)}function Ip(i){let o=Md(i),v=cS(i);o?o.onRowHeightChanged():v&&v.onRowHeightChanged()}function DS(i,o,v){var W;let I=cS(i);if(I){if(((W=i.rowGroupColsSvc)==null?void 0:W.columns.length)===0){if(o<0){aa(238);return}I.setRowCount(o,v);return}aa(28);return}let N=lS(i);if(N){N.setRowCount(o,v);return}}function sk(i){var o,v;return Dc(i.gos)?i.rowModel.getBlockStates():(v=(o=i.rowNodeBlockLoader)==null?void 0:o.getBlockState())!=null?v:{}}function y1(i){return i.rowModel.isLastRowIndexKnown()}var b1={moduleName:"CsrmSsrmSharedApi",version:ri,apiFunctions:{expandAll:Ol,collapseAll:Qs,onRowHeightChanged:Ip}},ES={moduleName:"SsrmInfiniteSharedApi",version:ri,apiFunctions:{setRowCount:DS,getCacheBlockState:sk,isLastRowIndexKnown:y1}},lk=class extends jt{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){var I;let i=(I=this.gos.get("alignedGrids"))!=null?I:[],o=typeof i=="function";return typeof i=="function"&&(i=i()),i.map(N=>{var Z;if(!N){aa(18),o||aa(20);return}if(this.isGridApi(N))return N;let W=N;return"current"in W?(Z=W.current)==null?void 0:Z.api:(W.api||aa(19),W.api)}).filter(N=>!!N&&!N.isDestroyed())}isGridApi(i){return!!i&&!!i.dispatchEvent}postConstruct(){let i=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:i,columnVisible:i,columnPinned:i,columnGroupOpened:i,columnResized:i,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:o})=>this.onColumnEvent(o),alignedGridScroll:({event:o})=>this.onScrollEvent(o)})}fireEvent(i){this.consuming||this.getAlignedGridApis().forEach(o=>{o.isDestroyed()||o.dispatchEvent(i)})}onEvent(i){this.consuming=!0,i(),this.consuming=!1}fireColumnEvent(i){this.fireEvent({type:"alignedGridColumn",event:i})}fireScrollEvent(i){i.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:i})}onScrollEvent(i){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(i.left,!0)})}extractDataFromEvent(i,o){let v=[];return i.columns?i.columns.forEach(I=>{v.push(o(I))}):i.column&&v.push(o(i.column)),v}getMasterColumns(i){return this.extractDataFromEvent(i,o=>o)}getColumnIds(i){return this.extractDataFromEvent(i,o=>o.getColId())}onColumnEvent(i){this.onEvent(()=>{switch(i.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(i);break}case"columnGroupOpened":{this.processGroupOpenedEvent(i);break}case"columnPivotChanged":ii(21);break}})}processGroupOpenedEvent(i){let{colGroupSvc:o}=this.beans;o&&i.columnGroups.forEach(v=>{let I=null;v&&(I=o.getProvidedColGroup(v.getGroupId())),!(v&&!I)&&o.setColumnGroupOpened(I,v.isExpanded(),"alignedGridChanged")})}processColumnEvent(i){var Ae;let o=i.column,v=null,I=this.beans,{colResize:N,ctrlsSvc:W,colModel:Z}=I;if(o&&(v=Z.getColDefCol(o.getColId())),o&&!v)return;let ee=this.getMasterColumns(i);switch(i.type){case"columnMoved":{let Ve=i.api.getColumnState().map(Je=>({colId:Je.colId}));Ic(I,{state:Ve,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{let Ve=i.api.getColumnState().map(Je=>({colId:Je.colId,hide:Je.hide}));Ic(I,{state:Ve},"alignedGridChanged")}break;case"columnPinned":{let Ve=i.api.getColumnState().map(Je=>({colId:Je.colId,pinned:Je.pinned}));Ic(I,{state:Ve},"alignedGridChanged")}break;case"columnResized":{let Ee=i,Ve={};ee.forEach(Je=>{Ve[Je.getId()]={key:Je.getColId(),newWidth:Je.getActualWidth()}}),(Ae=Ee.flexColumns)==null||Ae.forEach(Je=>{Ve[Je.getId()]&&delete Ve[Je.getId()]}),N==null||N.setColumnWidths(Object.values(Ve),!1,Ee.finished,"alignedGridChanged");break}}let we=W.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach(Ee=>{Ee.setGridOption("alwaysShowVerticalScroll",we)})}},C1={moduleName:"AlignedGrids",version:ri,beans:[lk]},ck=class extends rp{constructor(){super(...arguments),this.beanName="csrmNodeSvc"}},IS=class{constructor(){this.removals=new Set,this.updates=new Map}remove(i){this.removals.add(i),this.updates.delete(i)}update(i){this.updates.has(i)||(this.removals.delete(i),this.updates.set(i,!1))}add(i){this.removals.delete(i),this.updates.set(i,!0)}};function wL(i){if(Oa(i.childrenAfterSort))return;let o=i.childrenAfterSort;for(let v=0;v<o.length;v++){let I=o[v],N=v===0,W=v===i.childrenAfterSort.length-1;I.setFirstChild(N),I.lastChild!==W&&(I.lastChild=W,I.dispatchRowEvent("lastChildChanged")),I.childIndex!==v&&(I.childIndex=v,I.dispatchRowEvent("childIndexChanged"))}}function jv(i){i.sibling&&(i.sibling.childrenAfterSort=i.childrenAfterSort),wL(i)}var dk=class extends jt{constructor(){super(...arguments),this.beanName="sortStage",this.refreshProps=new Set(["postSortRows","groupDisplayType","accentedSort"]),this.step="sort"}execute(i){let o=this.beans,v=o.sortSvc.getSortOptions(),I=mi(v)&&v.length>0,N=I&&!!i.changedRowNodes&&this.gos.get("deltaSort"),W=v.some(({column:Z})=>_s(o.gos)?Z.isPrimary()&&Z.isRowGroupActive():!!Z.getColDef().showRowGroup);this.sort(o,v,I,N,i.changedRowNodes,i.changedPath,W)}sort(i,o,v,I,N,W,Z){let{gos:ee,colModel:le,rowGroupColsSvc:we,groupHideOpenParentsSvc:Ae,rowNodeSorter:Ee}=i,Ve=ee.get("groupMaintainOrder"),Je=le.getCols().some(Ft=>Ft.isRowGroupActive()),gt=le.isPivotMode(),kt=ee.getCallback("postSortRows"),xt=Ft=>{var di;Ae==null||Ae.pullDownGroupDataForHideOpenParents(Ft.childrenAfterAggFilter,!0);let Ht=gt&&Ft.leafGroup,Gt=Ve&&Je&&!Ft.leafGroup&&!Z,Wt;if(Gt){let Di=(di=we==null?void 0:we.columns)==null?void 0:di[Ft.level+1],un=(Di==null?void 0:Di.getSort())===null,xn=Ft.childrenAfterAggFilter.slice(0);if(Ft.childrenAfterSort&&!un){let va={};Ft.childrenAfterSort.forEach((Un,Ra)=>{va[Un.id]=Ra}),xn.sort((Un,Ra)=>{var Ui,ya;return((Ui=va[Un.id])!=null?Ui:0)-((ya=va[Ra.id])!=null?ya:0)})}Wt=xn}else!v||Ht?Wt=Ft.childrenAfterAggFilter.slice(0):I&&N?Wt=uk(Ee,Ft,N,W,o):Wt=Ee.doFullSort(Ft.childrenAfterAggFilter,o);if(Ft.childrenAfterSort=Wt,jv(Ft),kt){let Di={nodes:Ft.childrenAfterSort};kt(Di)}};W==null||W.forEachChangedNodeDepthFirst(xt)}};function uk(i,o,v,I,N){let W=o.childrenAfterAggFilter,Z=o.childrenAfterSort;if(!Z)return i.doFullSort(W,N);let ee=new Set,le=[],we=v.updates;for(let Ee=0,Ve=W.length;Ee<Ve;++Ee){let Je=W[Ee];we.has(Je)||I&&!I.canSkip(Je)?le.push({currentPos:le.length,rowNode:Je}):ee.add(Je.id)}let Ae=Z.filter(Ee=>ee.has(Ee.id)).map((Ee,Ve)=>({currentPos:Ve,rowNode:Ee}));return le.sort((Ee,Ve)=>i.compareRowNodes(N,Ee,Ve)),hk(i,N,le,Ae)}function hk(i,o,v,I){let N=[],W=0,Z=0,ee=v.length,le=I.length;for(;W<ee&&Z<le;){let we=v[W],Ae=I[Z],Ee=i.compareRowNodes(o,we,Ae),Ve;Ee<0?(Ve=we,++W):(Ve=Ae,++Z),N.push(Ve.rowNode)}for(;W<ee;)N.push(v[W++].rowNode);for(;Z<le;)N.push(I[Z++].rowNode);return N}var gk=class extends jt{constructor(){super(...arguments),this.beanName="rowModel",this.onRowHeightChanged_debounced=dr(this,this.onRowHeightChanged.bind(this),100),this.rootNode=null,this.rowsToDisplay=[],this.started=!1,this.shouldSkipSettingDataOnStart=!1,this.isRefreshingModel=!1,this.rowNodesCountReady=!1,this.rowCountReady=!1}wireBeans(i){this.colModel=i.colModel,this.valueCache=i.valueCache,this.filterStage=i.filterStage,this.sortStage=i.sortStage,this.flattenStage=i.flattenStage,this.groupStage=i.groupStage,this.aggStage=i.aggStage,this.pivotStage=i.pivotStage,this.filterAggStage=i.filterAggStage}postConstruct(){this.orderedStages=[this.groupStage,this.filterStage,this.pivotStage,this.aggStage,this.sortStage,this.filterAggStage,this.flattenStage].filter(v=>!!v);let i=this.refreshModel.bind(this,{step:"group"}),o=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")});this.addManagedEventListeners({newColumnsLoaded:o,columnRowGroupChanged:i,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:i,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this)}),this.addPropertyListeners(),this.rootNode=new So(this.beans),this.initRowManager()}initRowManager(){let{gos:i,beans:o,nodeManager:v}=this,I=i.get("treeData"),N=i.get("treeDataChildrenField"),W=N||I,Z;W&&(Z=N?o.csrmChildrenTreeNodeSvc:o.csrmPathTreeNodeSvc),Z||(Z=o.csrmNodeSvc),v!==Z&&(v==null||v.deactivate(),this.nodeManager=Z),Z.activate(this.rootNode)}addPropertyListeners(){let i=["treeData","treeDataChildrenField",...this.orderedStages.flatMap(({refreshProps:o})=>[...o])];this.addManagedPropertyListeners(i,o=>{var I;let v=(I=o.changeSet)==null?void 0:I.properties;v&&this.onPropChange(v)}),this.addManagedPropertyListener("rowData",()=>this.onPropChange(["rowData"])),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.shouldSkipSettingDataOnStart?this.refreshModel({step:"group",newData:!0,rowDataUpdated:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&(this.shouldSkipSettingDataOnStart=!0,this.onPropChange(["rowData"]))}ensureRowHeightsValid(i,o,v,I){let N,W=!1;do{N=!1;let Z=this.getRowIndexAtPixel(i),ee=this.getRowIndexAtPixel(o),le=Math.max(Z,v),we=Math.min(ee,I);for(let Ae=le;Ae<=we;Ae++){let Ee=this.getRow(Ae);if(Ee.rowHeightEstimated){let Ve=qu(this.beans,Ee);Ee.setRowHeight(Ve.height),N=!0,W=!0}}N&&this.setRowTopAndRowIndex()}while(N);return W}onPropChange(i){var we,Ae,Ee;if(!this.rootNode)return;let o=this.gos,v=new Set(i),I={step:"nothing",changedProps:v},N=v.has("rowData"),W=v.has("treeData"),ee=v.has("treeDataChildrenField")||W&&!o.get("treeDataChildrenField"),le;if(W&&(I.step="group"),(ee||N)&&(le=o.get("rowData"),le!=null&&!Array.isArray(le)&&(le=null,ii(1))),ee&&(N||(le=(Ae=(we=this.nodeManager)==null?void 0:we.extractRowData())!=null?Ae:le),this.initRowManager()),le&&(!ee&&this.started&&!this.isEmpty()&&le.length>0&&o.exists("getRowId")&&!o.get("resetRowDataOnUpdate")?(I.keepRenderedRows=!0,I.animate=!this.gos.get("suppressAnimationFrame"),I.changedRowNodes=new IS,this.nodeManager.setImmutableRowData(I,le)):(I.step="group",I.rowDataUpdated=!0,I.newData=!0,(Ee=this.beans.selectionSvc)==null||Ee.reset("rowDataChanged"),this.rowNodesCountReady=!0,this.nodeManager.setNewRowData(le))),I.step==="nothing"){for(let{refreshProps:Ve,step:Je}of this.orderedStages)if(i.some(gt=>Ve.has(gt))){I.step=Je;break}}I.step!=="nothing"&&this.refreshModel(I)}setRowTopAndRowIndex(){let{beans:i}=this,o=i.environment.getDefaultRowHeight(),v=0,I=new Set,N=lo(this.gos,"normal"),W=this.rowsToDisplay;for(let Z=0,ee=W.length;Z<ee;++Z){let le=W[Z];if(le.id!=null&&I.add(le.id),le.rowHeight==null){let we=qu(i,le,N,o);le.setRowHeight(we.height,we.estimated)}le.setRowTop(v),le.setRowIndex(Z),v+=le.rowHeight}return I}clearRowTopAndRowIndex(i,o){let v=i.active,I=W=>{W&&W.id!=null&&!o.has(W.id)&&W.clearRowTopAndRowIndex()},N=W=>{if(W!==null&&(I(W),I(W.detailNode),I(W.sibling),W.hasChildren()&&W.childrenAfterGroup)){let Z=W.level==-1;v&&!Z&&!W.expanded||W.childrenAfterGroup.forEach(N)}};N(this.rootNode)}ensureRowsAtPixel(i,o,v=0){var ee;let I=this.getRowIndexAtPixel(o),N=this.getRow(I),W=!this.gos.get("suppressAnimationFrame");if(N===i[0])return!1;let Z=(ee=this.rootNode)==null?void 0:ee.allLeafChildren;return Z?(i.forEach(le=>{bo(Z,le)}),i.forEach((le,we)=>{Z.splice(Math.max(I+v,0)+we,0,le)}),i.forEach((le,we)=>{le.sourceRowIndex=we}),this.refreshModel({step:"group",keepRenderedRows:!0,animate:W,rowNodesOrderChanged:!0}),!0):!1}highlightRowAtPixel(i,o){let v=o!=null?this.getRowIndexAtPixel(o):null,I=v!=null?this.getRow(v):null;if(!I||!i||o==null){this.clearHighlightedRow();return}let N=this.getHighlightPosition(o,I),W=this.isHighlightingCurrentPosition(i,I,N),Z=this.lastHighlightedRow!=null&&this.lastHighlightedRow!==I;(W||Z)&&(this.clearHighlightedRow(),W)||(this.setRowNodeHighlighted(I,N),this.lastHighlightedRow=I)}setRowNodeHighlighted(i,o){i.highlighted!==o&&(i.highlighted=o,i.dispatchRowEvent("rowHighlightChanged"))}getHighlightPosition(i,o){if(!o){let N=this.getRowIndexAtPixel(i);if(o=this.getRow(N||0),!o)return"Below"}let{rowTop:v,rowHeight:I}=o;return i-v<I/2?"Above":"Below"}getLastHighlightedRowNode(){return this.lastHighlightedRow}isHighlightingCurrentPosition(i,o,v){if(i===o)return!0;let I=v==="Above"?-1:1;return this.getRow(o.rowIndex+I)===i}clearHighlightedRow(){this.lastHighlightedRow&&(this.setRowNodeHighlighted(this.lastHighlightedRow,null),this.lastHighlightedRow=null)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){let i=this.rootNode;if(!i||this.rowsToDisplay.length===0)return 0;if(this.rowsToDisplay&&this.rowsToDisplay[0]===i)return 1;let v=i.childrenAfterAggFilter,I=i.sibling?1:0;return(v?v.length:0)+I}getTopLevelRowDisplayedIndex(i){let{rootNode:o,rowsToDisplay:v}=this;if(!o||!v.length||v[0]===o)return i;let{childrenAfterSort:N}=o,W=ee=>{let le=N[ee];if(this.gos.get("groupHideOpenParents"))for(;le.expanded&&le.childrenAfterSort&&le.childrenAfterSort.length>0;)le=le.childrenAfterSort[0];return le.rowIndex},{footerSvc:Z}=this.beans;return Z?Z.getTopDisplayIndex(v,i,N,W):W(i)}getRowBounds(i){let o=this.rowsToDisplay[i];return o?{rowTop:o.rowTop,rowHeight:o.rowHeight}:null}onRowGroupOpened(){let i=vn(this.gos);this.refreshModel({step:"map",keepRenderedRows:!0,animate:i})}onFilterChanged(i){if(i.afterDataChange)return;let o=vn(this.gos),I=i.columns.length===0||i.columns.some(N=>N.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:I,keepRenderedRows:!0,animate:o})}onSortChanged(){let i=vn(this.gos);this.refreshModel({step:"sort",keepRenderedRows:!0,animate:i})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(i){let o=!(i!=null&&i.length),v=new xd(!1,this.rootNode);return o&&(v.active=!1),v}isSuppressModelUpdateAfterUpdateTransaction(i){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;let o=i.rowNodeTransactions;return o?!o.some(N=>N.add!=null&&N.add.length>0||N.remove!=null&&N.remove.length>0):!1}refreshModel(i){var N,W,Z;if(!this.rootNode)return;let o=i.rowNodeTransactions,v=(N=i.changedPath)!=null?N:i.changedPath=this.createChangePath(o);if((Z=(W=this.nodeManager).refreshModel)==null||Z.call(W,i),this.eventSvc.dispatchEvent({type:"beforeRefreshModel",params:i}),!this.started||(i.rowDataUpdated&&this.eventSvc.dispatchEvent({type:"rowDataUpdated"}),this.isRefreshingModel||this.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(i)))return;switch(this.isRefreshingModel=!0,i.step){case"group":this.doRowGrouping(i.rowNodeTransactions,i.changedRowNodes,v,!!i.rowNodesOrderChanged,!!i.afterColumnsChanged);case"filter":this.doFilter(v);case"pivot":this.doPivot(v);case"aggregate":this.doAggregate(v);case"filter_aggregates":this.doFilterAggregates(v);case"sort":this.doSort(i.changedRowNodes,v);case"map":this.doRowsToDisplay()}let I=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(v,I),this.isRefreshingModel=!1,this.eventSvc.dispatchEvent({type:"modelUpdated",animate:i.animate,keepRenderedRows:i.keepRenderedRows,newData:i.newData,newPage:!1,keepUndoRedoStack:i.keepUndoRedoStack})}isEmpty(){var i,o,v;return!((o=(i=this.rootNode)==null?void 0:i.allLeafChildren)!=null&&o.length)||!((v=this.colModel)!=null&&v.ready)}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(i,o){let v=!1,I=!1,N=[],W=Ry(this.gos);return this.forEachNodeAfterFilterAndSort(Z=>{if(I)return;if(v&&(Z===o||Z===i)&&(I=!0,Z.group&&W)){N.push(...Z.allLeafChildren);return}if(!v){if(Z!==o&&Z!==i)return;v=!0}if(!Z.group||!W){N.push(Z);return}}),N}getTopLevelNodes(){var i,o;return(o=(i=this.rootNode)==null?void 0:i.childrenAfterGroup)!=null?o:null}getRow(i){return this.rowsToDisplay[i]}isRowPresent(i){return this.rowsToDisplay.indexOf(i)>=0}getRowIndexAtPixel(i){let o=this.rowsToDisplay;if(this.isEmpty()||o.length===0)return-1;let v=0,I=o.length-1;if(i<=0)return 0;if(Yn(o).rowTop<=i)return o.length-1;let W=-1,Z=-1;for(;;){let ee=Math.floor((v+I)/2),le=o[ee];if(this.isRowInPixel(le,i)||(le.rowTop<i?v=ee+1:le.rowTop>i&&(I=ee-1),W===v&&Z===I))return ee;W=v,Z=I}}isRowInPixel(i,o){let v=i.rowTop,I=i.rowTop+i.rowHeight;return v<=o&&I>o}forEachLeafNode(i){var o,v;(v=(o=this.rootNode)==null?void 0:o.allLeafChildren)==null||v.forEach((I,N)=>i(I,N))}forEachNode(i,o=!1){var v;this.recursivelyWalkNodesAndCallback({nodes:[...((v=this.rootNode)==null?void 0:v.childrenAfterGroup)||[]],callback:i,recursionType:0,index:0,includeFooterNodes:o})}forEachNodeAfterFilter(i,o=!1){var v;this.recursivelyWalkNodesAndCallback({nodes:[...((v=this.rootNode)==null?void 0:v.childrenAfterAggFilter)||[]],callback:i,recursionType:1,index:0,includeFooterNodes:o})}forEachNodeAfterFilterAndSort(i,o=!1){var v;this.recursivelyWalkNodesAndCallback({nodes:[...((v=this.rootNode)==null?void 0:v.childrenAfterSort)||[]],callback:i,recursionType:2,index:0,includeFooterNodes:o})}forEachPivotNode(i,o=!1){let v=this.rootNode;v&&this.recursivelyWalkNodesAndCallback({nodes:[v],callback:i,recursionType:3,index:0,includeFooterNodes:o})}recursivelyWalkNodesAndCallback(i){let{nodes:o,callback:v,recursionType:I,includeFooterNodes:N}=i,{index:W}=i,{footerSvc:Z}=this.beans;Z==null||Z.addNodes(i,o,v,N,this.rootNode,"top");for(let ee=0;ee<o.length;ee++){let le=o[ee];if(v(le,W++),le.hasChildren()&&!le.footer){let we=null;switch(I){case 0:we=le.childrenAfterGroup;break;case 1:we=le.childrenAfterAggFilter;break;case 2:we=le.childrenAfterSort;break;case 3:we=le.leafGroup?null:le.childrenAfterSort;break}we&&(W=this.recursivelyWalkNodesAndCallback({nodes:[...we],callback:v,recursionType:I,index:W,includeFooterNodes:N}))}}return Z==null||Z.addNodes(i,o,v,N,this.rootNode,"bottom"),W}doAggregate(i){var v;let o=this.rootNode;o&&((v=this.aggStage)==null||v.execute({rowNode:o,changedPath:i}))}doFilterAggregates(i){let o=this.rootNode;this.filterAggStage?this.filterAggStage.execute({rowNode:o,changedPath:i}):o.childrenAfterAggFilter=o.childrenAfterFilter}doSort(i,o){let{groupHideOpenParentsSvc:v}=this.beans;this.sortStage?this.sortStage.execute({rowNode:this.rootNode,changedRowNodes:i,changedPath:o}):o.forEachChangedNodeDepthFirst(I=>{v==null||v.pullDownGroupDataForHideOpenParents(I.childrenAfterAggFilter,!0),I.childrenAfterSort=I.childrenAfterAggFilter.slice(0),jv(I)}),v==null||v.updateGroupDataForHideOpenParents(o)}doRowGrouping(i,o,v,I,N){let W=this.nodeManager.treeData,Z=this.rootNode;if(!W){let ee=this.groupStage;if(ee)ee.execute({rowNode:Z,changedPath:v,changedRowNodes:o,rowNodeTransactions:i,rowNodesOrderChanged:I,afterColumnsChanged:N});else{let le=Z.sibling;Z.childrenAfterGroup=Z.allLeafChildren,le&&(le.childrenAfterGroup=Z.childrenAfterGroup),Z.updateHasChildren()}}this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(i){this.filterStage?this.filterStage.execute({rowNode:this.rootNode,changedPath:i}):i.forEachChangedNodeDepthFirst(o=>{o.childrenAfterFilter=o.childrenAfterGroup,ko(o)},!0)}doPivot(i){var o;(o=this.pivotStage)==null||o.execute({rowNode:this.rootNode,changedPath:i})}getRowNode(i){if(typeof i=="string"&&i.indexOf(Yy)==0){let v;return this.forEachNode(I=>{I.id===i&&(v=I)}),v}return this.nodeManager.getRowNode(i)}batchUpdateRowData(i,o){if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];let v=this.gos.get("asyncTransactionWaitMillis");this.applyAsyncTransactionsTimeout=window.setTimeout(()=>{this.isAlive()&&this.executeBatchUpdateRowData()},v)}this.rowDataTransactionBatch.push({rowDataTransaction:i,callback:o})}flushAsyncTransactions(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){var N,W;(N=this.valueCache)==null||N.onDataChanged();let i=[],o=[],v=new IS,I=!1;(W=this.rowDataTransactionBatch)==null||W.forEach(Z=>{this.rowNodesCountReady=!0;let{rowNodeTransaction:ee,rowsInserted:le}=this.nodeManager.updateRowData(Z.rowDataTransaction,v);le&&(I=!0),o.push(ee),Z.callback&&i.push(Z.callback.bind(null,ee))}),this.commitTransactions(o,I,v),i.length>0&&window.setTimeout(()=>{i.forEach(Z=>Z())},0),o.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:o}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(i){var N;(N=this.valueCache)==null||N.onDataChanged(),this.rowNodesCountReady=!0;let o=new IS,{rowNodeTransaction:v,rowsInserted:I}=this.nodeManager.updateRowData(i,o);return this.commitTransactions([v],I,o),v}commitTransactions(i,o,v){this.refreshModel({step:"group",rowDataUpdated:!0,rowNodeTransactions:i,rowNodesOrderChanged:o,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:v,changedPath:this.createChangePath(i)})}doRowsToDisplay(){var I;let{flattenStage:i,rootNode:o}=this,v;if(i)v=i.execute({rowNode:o});else{v=(I=o==null?void 0:o.childrenAfterSort)!=null?I:[];for(let N of v)N.setUiLevel(0)}this.rowsToDisplay=v}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}resetRowHeights(){let i=this.rootNode;if(!i)return;let o=this.resetRowHeightsForAllRowNodes();i.setRowHeight(i.rowHeight,!0),i.sibling&&i.sibling.setRowHeight(i.sibling.rowHeight,!0),o&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let i=!1;return this.forEachNode(o=>{o.setRowHeight(o.rowHeight,!0);let v=o.detailNode;v&&v.setRowHeight(v.rowHeight,!0),o.sibling&&o.sibling.setRowHeight(o.sibling.rowHeight,!0),i=!0}),i}onGridStylesChanges(i){var o;if(i.rowHeightChanged){if((o=this.beans.rowAutoHeight)!=null&&o.active)return;this.resetRowHeights()}}onGridReady(){this.started||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}destroy(){super.destroy(),this.clearHighlightedRow(),this.started=!1,this.rootNode=null,this.nodeManager=null,this.rowDataTransactionBatch=null,this.lastHighlightedRow=null,this.orderedStages=ra,this.rowsToDisplay=ra}};function TS(i){var o;(o=i.expansionSvc)==null||o.onGroupExpandedOrCollapsed()}function jT(i,o){let v=Md(i);v&&((!o||o==="everything")&&(o="group"),v.refreshModel({step:o,keepRenderedRows:!0,animate:!i.gos.get("suppressAnimationFrame")}))}function RS(i){var o,v;return(v=(o=Md(i))==null?void 0:o.isEmpty())!=null?v:!0}function xL(i,o){var v;(v=Md(i))==null||v.forEachLeafNode(o)}function Yb(i,o){var v;(v=Md(i))==null||v.forEachNodeAfterFilter(o)}function gf(i,o){var v;(v=Md(i))==null||v.forEachNodeAfterFilterAndSort(o)}function PS(i){var o,v;if((o=i.rowAutoHeight)!=null&&o.active){ii(3);return}(v=Md(i))==null||v.resetRowHeights()}function S1(i,o){return i.frameworkOverrides.wrapIncoming(()=>{var v;return(v=Md(i))==null?void 0:v.updateRowData(o)})}function w1(i,o,v){i.frameworkOverrides.wrapIncoming(()=>{var I;return(I=Md(i))==null?void 0:I.batchUpdateRowData(o,v)})}function ca(i){i.frameworkOverrides.wrapIncoming(()=>{var o;return(o=Md(i))==null?void 0:o.flushAsyncTransactions()})}function pk(i){var o;return(o=i.selectionSvc)==null?void 0:o.getBestCostNodeSelection()}var mk={moduleName:"ClientSideRowModel",version:ri,rowModels:["clientSide"],beans:[ck,gk,dk],dependsOn:[DM]},fu={moduleName:"ClientSideRowModelApi",version:ri,rowModels:["clientSide"],apiFunctions:{onGroupExpandedOrCollapsed:TS,refreshClientSideRowModel:jT,isRowDataEmpty:RS,forEachLeafNode:xL,forEachNodeAfterFilter:Yb,forEachNodeAfterFilterAndSort:gf,resetRowHeights:PS,applyTransaction:S1,applyTransactionAsync:w1,flushAsyncTransactions:ca,getBestCostNodeSelection:pk},dependsOn:[b1]},fk=class extends jt{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(i){this.visibleCols=i.visibleCols,this.colModel=i.colModel,this.rowModel=i.rowModel,this.pinnedRowModel=i.pinnedRowModel}serialize(i,o={}){let{allColumns:v,columnKeys:I,skipRowGroups:N}=o,W=this.getColumnsToExport(v,N,I);return[this.prepareSession(W),this.prependContent(o),this.exportColumnGroups(o,W),this.exportHeaders(o,W),this.processPinnedTopRows(o,W),this.processRows(o,W),this.processPinnedBottomRows(o,W),this.appendContent(o)].reduce((Z,ee)=>ee(Z),i).parse()}processRow(i,o,v,I){var gt;let N=o.shouldRowBeSkipped||(()=>!1),Z=o.rowPositions!=null||!!o.onlySelected,ee=this.gos.get("groupHideOpenParents")&&!Z,le=this.colModel.isPivotMode()?I.leafGroup:!I.group,we=!!I.footer,Ae=I.allChildrenCount===1&&((gt=I.childrenAfterGroup)==null?void 0:gt.length)===1&&Kf(this.gos,I);if(!le&&!we&&(o.skipRowGroups||Ae||ee)||o.onlySelected&&!I.isSelected()||o.skipPinnedTop&&I.rowPinned==="top"||o.skipPinnedBottom&&I.rowPinned==="bottom"||I.level===-1&&!le&&!we||N(this.gos.addGridCommonParams({node:I})))return;let Je=i.onNewBodyRow(I);if(v.forEach((kt,xt)=>{Je.onColumn(kt,xt,I)}),o.getCustomContentBelowRow){let kt=o.getCustomContentBelowRow(this.gos.addGridCommonParams({node:I}));kt&&i.addCustomContent(kt)}}appendContent(i){return o=>{let v=i.appendContent;return v&&o.addCustomContent(v),o}}prependContent(i){return o=>{let v=i.prependContent;return v&&o.addCustomContent(v),o}}prepareSession(i){return o=>(o.prepare(i),o)}exportColumnGroups(i,o){return v=>{if(!i.skipColumnGroupHeaders){let I=new jr,{colGroupSvc:N}=this.beans,W=N?N.createColumnGroups({columns:o,idCreator:I,pinned:null,isStandaloneStructure:!0}):o;this.recursivelyAddHeaderGroups(W,v,i.processGroupHeaderCallback)}return v}}exportHeaders(i,o){return v=>{if(!i.skipColumnHeaders){let I=v.onNewHeaderRow();o.forEach((N,W)=>{I.onColumn(N,W,void 0)})}return v}}processPinnedTopRows(i,o){return v=>{var N;let I=this.processRow.bind(this,v,i,o);return i.rowPositions?i.rowPositions.filter(W=>W.rowPinned==="top").sort((W,Z)=>W.rowIndex-Z.rowIndex).map(W=>{var Z;return(Z=this.pinnedRowModel)==null?void 0:Z.getPinnedTopRow(W.rowIndex)}).forEach(I):(N=this.pinnedRowModel)==null||N.forEachPinnedRow("top",I),v}}processRows(i,o){return v=>{var we,Ae;let I=this.rowModel,N=so(this.gos,I),W=Dc(this.gos,I),Z=!N&&i.onlySelected,ee=this.processRow.bind(this,v,i,o),{exportedRows:le="filteredAndSorted"}=i;if(i.rowPositions)return i.rowPositions.filter(Ee=>Ee.rowPinned==null).sort((Ee,Ve)=>Ee.rowIndex-Ve.rowIndex).map(Ee=>I.getRow(Ee.rowIndex)).forEach(ee),v;if(this.colModel.isPivotMode())return N?I.forEachPivotNode(ee,!0):W?I.forEachNodeAfterFilterAndSort(ee,!0):I.forEachNode(ee),v;if(i.onlySelectedAllPages||Z){let Ee=(Ae=(we=this.beans.selectionSvc)==null?void 0:we.getSelectedNodes())!=null?Ae:[];this.replicateSortedOrder(Ee),Ee.forEach(ee)}else le==="all"?I.forEachNode(ee):N||W?I.forEachNodeAfterFilterAndSort(ee,!0):I.forEachNode(ee);return v}}replicateSortedOrder(i){let{sortSvc:o,rowNodeSorter:v}=this.beans;if(!o||!v)return;let I=o.getSortOptions(),N=(W,Z)=>{var ee,le,we,Ae;return W.rowIndex!=null&&Z.rowIndex!=null?W.rowIndex-Z.rowIndex:W.level===Z.level?((ee=W.parent)==null?void 0:ee.id)===((le=Z.parent)==null?void 0:le.id)?v.compareRowNodes(I,{rowNode:W,currentPos:(we=W.rowIndex)!=null?we:-1},{rowNode:Z,currentPos:(Ae=Z.rowIndex)!=null?Ae:-1}):N(W.parent,Z.parent):W.level>Z.level?N(W.parent,Z):N(W,Z.parent)};i.sort(N)}processPinnedBottomRows(i,o){return v=>{var N;let I=this.processRow.bind(this,v,i,o);return i.rowPositions?i.rowPositions.filter(W=>W.rowPinned==="bottom").sort((W,Z)=>W.rowIndex-Z.rowIndex).map(W=>{var Z;return(Z=this.pinnedRowModel)==null?void 0:Z.getPinnedBottomRow(W.rowIndex)}).forEach(I):(N=this.pinnedRowModel)==null||N.forEachPinnedRow("bottom",I),v}}getColumnsToExport(i=!1,o=!1,v){let{colModel:I,gos:N,visibleCols:W}=this,Z=I.isPivotMode();if(v&&v.length)return I.getColsForKeys(v);let ee=N.get("treeData"),le=[];return i&&!Z?le=I.getCols():le=W.allCols,le=le.filter(we=>!ec(we)&&(o&&!ee?!Co(we):!0)),le}recursivelyAddHeaderGroups(i,o,v){let I=[];i.forEach(N=>{let W=N;W.getChildren&&W.getChildren().forEach(Z=>I.push(Z))}),i.length>0&&no(i[0])&&this.doAddHeaderHeader(o,i,v),I&&I.length>0&&this.recursivelyAddHeaderGroups(I,o,v)}doAddHeaderHeader(i,o,v){let I=i.onNewHeaderGroupingRow(),N=0;o.forEach(W=>{let Z=W,ee;v?ee=v(this.gos.addGridCommonParams({columnGroup:Z})):ee=this.beans.colNames.getDisplayNameForColumnGroup(Z,"header");let le=Z.getLeafColumns().reduce((we,Ae,Ee,Ve)=>{let Je=Yn(we);return Ae.getColumnGroupShow()==="open"?(!Je||Je[1]!=null)&&(Je=[Ee],we.push(Je)):Je&&Je[1]==null&&(Je[1]=Ee-1),Ee===Ve.length-1&&Je&&Je[1]==null&&(Je[1]=Ee),we},[]);I.onColumn(Z,ee||"",N++,Z.getLeafColumns().length-1,le)})}},pf={moduleName:"SharedExport",version:ri,beans:[fk]},vk=`\r
`,Hv=class extends Lb{constructor(i){super(i),this.isFirstLine=!0,this.result="";let{suppressQuotes:o,columnSeparator:v}=i;this.suppressQuotes=o,this.columnSeparator=v}addCustomContent(i){i&&(typeof i=="string"?(/^\s*\n/.test(i)||this.beginNewLine(),i=i.replace(/\r?\n/g,vk),this.result+=i):i.forEach(o=>{this.beginNewLine(),o.forEach((v,I)=>{I!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(v.data.value||""),v.mergeAcross&&this.appendEmptyCells(v.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(i,o,v,I){v!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(o),this.appendEmptyCells(I)}appendEmptyCells(i){for(let o=1;o<=i;o++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(i,o){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(i))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(i,o,v){var N;o!=0&&(this.result+=this.columnSeparator);let I=this.extractRowCellValue(i,o,o,"csv",v);this.result+=this.putInQuotes((N=I.valueFormatted)!=null?N:I.value)}putInQuotes(i){if(this.suppressQuotes)return i;if(i==null)return'""';let o;return typeof i=="string"?o=i:typeof i.toString=="function"?o=i.toString():(ii(53),o=""),'"'+o.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=vk),this.isFirstLine=!1}},x1=class extends Pv{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(i){this.colModel=i.colModel,this.colNames=i.colNames,this.rowGroupColsSvc=i.rowGroupColsSvc,this.valueSvc=i.valueSvc}getMergedParams(i){let o=this.gos.get("defaultCsvExportParams");return Object.assign({},o,i)}export(i){if(this.isExportSuppressed()){ii(51);return}let o=this.getMergedParams(i),v=this.getData(o),I=new Blob(["\uFEFF",v],{type:"text/plain"}),N=typeof o.fileName=="function"?o.fileName(this.gos.getGridCommonParams()):o.fileName;n1(this.getFileName(N),I)}exportDataAsCsv(i){this.export(i)}getDataAsCsv(i,o=!1){let v=o?Object.assign({},i):this.getMergedParams(i);return this.getData(v)}getDefaultFileExtension(){return"csv"}createSerializingSession(i){let{colModel:o,colNames:v,rowGroupColsSvc:I,valueSvc:N,gos:W}=this,{processCellCallback:Z,processHeaderCallback:ee,processGroupHeaderCallback:le,processRowGroupCallback:we,suppressQuotes:Ae,columnSeparator:Ee}=i;return new Hv({colModel:o,colNames:v,valueSvc:N,gos:W,processCellCallback:Z||void 0,processHeaderCallback:ee||void 0,processGroupHeaderCallback:le||void 0,processRowGroupCallback:we||void 0,suppressQuotes:Ae||!1,columnSeparator:Ee||",",rowGroupColsSvc:I})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function Xb(i,o){var v;return(v=i.csvCreator)==null?void 0:v.getDataAsCsv(o)}function yk(i,o){var v;(v=i.csvCreator)==null||v.exportDataAsCsv(o)}var M1={moduleName:"CsvExport",version:ri,beans:[x1],apiFunctions:{getDataAsCsv:Xb,exportDataAsCsv:yk},dependsOn:[pf]},HT=class extends jt{constructor(i,o,v){super(),this.id=i,this.parentCache=o,this.params=v,this.state="needsLoading",this.version=0,this.startRow=i*v.blockSize,this.endRow=this.startRow+v.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(i){this.isRequestMostRecentAndLive(i)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(i,o,v){this.successCommon(i,{rowData:o,rowCount:v})}isRequestMostRecentAndLive(i){let o=i===this.version,v=this.isAlive();return o&&v}successCommon(i,o){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(i)&&(this.state="loaded",this.processServerResult(o))}postConstruct(){this.rowNodes=[];let{params:{blockSize:i,rowHeight:o},startRow:v,beans:I,rowNodes:N}=this;for(let W=0;W<i;W++){let Z=v+W,ee=new So(I);ee.setRowHeight(o),ee.uiLevel=0,ee.setRowIndex(Z),ee.setRowTop(o*Z),N.push(ee)}}getBlockStateJson(){let{id:i,startRow:o,endRow:v,state:I}=this;return{id:""+i,state:{blockNumber:i,startRow:o,endRow:v,pageStatus:I}}}setDataAndId(i,o,v){mi(o)?i.setDataAndId(o,v.toString()):i.setDataAndId(void 0,void 0)}loadFromDatasource(){let i=this.createLoadParams();if(Oa(this.params.datasource.getRows)){ii(90);return}window.setTimeout(()=>{this.params.datasource.getRows(i)},0)}createLoadParams(){let{startRow:i,endRow:o,version:v,params:{sortModel:I,filterModel:N},gos:W}=this;return{startRow:i,endRow:o,successCallback:this.pageLoaded.bind(this,v),failCallback:this.pageLoadFailed.bind(this,v),sortModel:I,filterModel:N,context:W.getGridCommonParams().context}}forEachNode(i,o,v){this.rowNodes.forEach((I,N)=>{this.startRow+N<v&&i(I,o.value++)})}getRow(i,o=!1){o||(this.lastAccessed=this.params.lastAccessedSequence.value++);let v=i-this.startRow;return this.rowNodes[v]}processServerResult(i){let{rowNodes:o,beans:v}=this;o.forEach((N,W)=>{let Z=i.rowData?i.rowData[W]:void 0;!N.id&&N.alreadyRendered&&Z&&(o[W]=new So(v),o[W].setRowIndex(N.rowIndex),o[W].setRowTop(N.rowTop),o[W].setRowHeight(N.rowHeight),N.clearRowTopAndRowIndex()),this.setDataAndId(o[W],Z,this.startRow+W)});let I=i.rowCount!=null&&i.rowCount>=0?i.rowCount:void 0;this.parentCache.pageLoaded(this,I)}destroy(){this.rowNodes.forEach(i=>{i.clearRowTopAndRowIndex()}),super.destroy()}},k1=2,WT=class extends jt{constructor(i){super(),this.params=i,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=i.initialRowCount}getRow(i,o=!1){let v=Math.floor(i/this.params.blockSize),I=this.blocks[v];if(!I){if(o)return;I=this.createBlock(v)}return I.getRow(i)}createBlock(i){let o=this.params,v=this.createBean(new HT(i,this,o));return this.blocks[v.id]=v,this.blockCount++,this.purgeBlocksIfNeeded(v),o.rowNodeBlockLoader.addBlock(v),v}refreshCache(){if(this.blockCount==0){this.purgeCache();return}this.getBlocksInOrder().forEach(o=>o.setStateWaitingToLoad()),this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){this.getBlocksInOrder().forEach(i=>this.destroyBlock(i)),super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(i,o){this.isAlive()&&(rd(this.gos,`InfiniteCache - onPageLoaded: page = ${i.id}, lastRow = ${o}`),this.checkRowCount(i,o),this.onCacheUpdated())}purgeBlocksIfNeeded(i){let o=this.getBlocksInOrder().filter(Z=>Z!=i),v=(Z,ee)=>ee.lastAccessed-Z.lastAccessed;o.sort(v);let I=this.params.maxBlocksInCache>0,N=I?this.params.maxBlocksInCache-1:null,W=k1-1;o.forEach((Z,ee)=>{let le=Z.state==="needsLoading"&&ee>=W,we=I?ee>=N:!1;if(le||we){if(this.isBlockCurrentlyDisplayed(Z)||this.isBlockFocused(Z))return;this.removeBlockFromCache(Z)}})}isBlockFocused(i){let o=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!o||o.rowPinned!=null)return!1;let{startRow:v,endRow:I}=i;return o.rowIndex>=v&&o.rowIndex<I}isBlockCurrentlyDisplayed(i){let{startRow:o,endRow:v}=i;return this.beans.rowRenderer.isRangeInRenderedViewport(o,v-1)}removeBlockFromCache(i){i&&this.destroyBlock(i)}checkRowCount(i,o){if(typeof o=="number"&&o>=0)this.rowCount=o,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){let{blockSize:v,overflowSize:I}=this.params,W=(i.id+1)*v+I;this.rowCount<W&&(this.rowCount=W)}}setRowCount(i,o){this.rowCount=i,mi(o)&&(this.lastRowIndexKnown=o),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(i){let o={value:0};this.getBlocksInOrder().forEach(v=>v.forEachNode(i,o,this.rowCount))}getBlocksInOrder(){let i=(v,I)=>v.id-I.id;return Object.values(this.blocks).sort(i)}destroyBlock(i){delete this.blocks[i.id],this.destroyBean(i),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(i)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){let i=[];this.getBlocksInOrder().forEach(o=>{o.id*this.params.blockSize>=this.rowCount&&i.push(o)}),i.length>0&&i.forEach(o=>this.destroyBlock(o))}purgeCache(){this.getBlocksInOrder().forEach(i=>this.removeBlockFromCache(i)),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(i,o){let v=[],I=-1,N=!1,W={value:0},Z=!1;return this.getBlocksInOrder().forEach(le=>{if(!Z){if(N&&I+1!==le.id){Z=!0;return}I=le.id,le.forEachNode(we=>{let Ae=we===i||we===o;(N||Ae)&&v.push(we),Ae&&(N=!N)},W,this.rowCount)}}),Z||N?[]:v}},xs=class extends jt{constructor(){super(...arguments),this.beanName="rowModel"}getRowBounds(i){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*i}}ensureRowHeightsValid(){return!1}postConstruct(){this.gos.get("rowModelType")==="infinite"&&(this.rowHeight=Yu(this.beans),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache()))}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy()}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=Yu(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){var o,v;let i;this.cacheParams?i=!lm(this.cacheParams.sortModel,(v=(o=this.beans.sortSvc)==null?void 0:o.getSortModel())!=null?v:[]):i=!0,i&&this.reset()}getType(){return"infinite"}setDatasource(i){this.destroyDatasource(),this.datasource=i,i&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(i,o){var v,I;return(I=(v=this.infiniteCache)==null?void 0:v.getRowNodesInRange(i,o))!=null?I:[]}reset(){var v;if(!this.datasource)return;Uf(this.gos)!=null||(v=this.beans.selectionSvc)==null||v.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){var Z,ee;this.destroyCache();let i=this.beans,{filterManager:o,sortSvc:v,rowNodeBlockLoader:I,eventSvc:N,gos:W}=i;this.cacheParams={datasource:this.datasource,filterModel:(Z=o==null?void 0:o.getFilterModel())!=null?Z:{},sortModel:(ee=v==null?void 0:v.getSortModel())!=null?ee:[],rowNodeBlockLoader:I,initialRowCount:W.get("infiniteInitialRowCount"),maxBlocksInCache:W.get("maxBlocksInCache"),rowHeight:Yu(i),overflowSize:W.get("cacheOverflowSize"),blockSize:W.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new WT(this.cacheParams)),N.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(i=>{i.setRowHeight(this.rowHeight),i.setRowTop(this.rowHeight*i.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(i){let o=this.infiniteCache;if(o&&!(i>=o.getRowCount()))return o.getRow(i)}getRowNode(i){let o;return this.forEachNode(v=>{v.id===i&&(o=v)}),o}forEachNode(i){var o;(o=this.infiniteCache)==null||o.forEachNodeDeep(i)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(i){return i}getRowIndexAtPixel(i){if(this.rowHeight!==0){let o=Math.floor(i/this.rowHeight),v=this.getRowCount()-1;return o>v?v:o}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(i){return!!this.getRowNode(i.id)}refreshCache(){var i;(i=this.infiniteCache)==null||i.refreshCache()}purgeCache(){var i;(i=this.infiniteCache)==null||i.purgeCache()}isLastRowIndexKnown(){var i,o;return(o=(i=this.infiniteCache)==null?void 0:i.isLastRowIndexKnown())!=null?o:!1}setRowCount(i,o){var v;(v=this.infiniteCache)==null||v.setRowCount(i,o)}};function A1(i){var o;(o=lS(i))==null||o.refreshCache()}function Wv(i){var o;(o=lS(i))==null||o.purgeCache()}function vu(i){var o;return(o=lS(i))==null?void 0:o.getRowCount()}var Js=class extends jt{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=nx(this.gos);let i=this.gos.get("blockLoadDebounceMillis");i&&i>0&&(this.checkBlockToLoadDebounce=dr(this,this.performCheckBlocksToLoad.bind(this),i))}addBlock(i){this.blocks.push(i),i.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(i){bo(this.blocks,i)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){rd(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}let i=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,o=this.blocks.filter(v=>v.state==="needsLoading").slice(0,i);this.activeBlockLoadsCount+=o.length,o.forEach(v=>v.load()),this.printCacheStatus()}getBlockState(){let i={};return this.blocks.forEach(o=>{let{id:v,state:I}=o.getBlockStateJson();i[v]=I}),i}printCacheStatus(){rd(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},mf={moduleName:"InfiniteRowModel",version:ri,rowModels:["infinite"],apiFunctions:{refreshInfiniteCache:A1,purgeInfiniteCache:Wv,getInfiniteRowCount:vu},beans:[xs,Js],dependsOn:[ES]},bk="\u2191",Tp="\u2193",Da=class extends cn{constructor(){super(),this.refreshCount=0;let i=document.createElement("span"),o=document.createElement("span");o.setAttribute("class","ag-value-change-delta");let v=document.createElement("span");v.setAttribute("class","ag-value-change-value"),i.appendChild(o),i.appendChild(v),this.setTemplateFromElement(i)}init(i){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(i,!0)}showDelta(i,o){let v=Math.abs(o),I=i.formatValue(v),N=mi(I)?I:v,W=o>=0,Z=this.eDelta;W?Z.textContent=bk+N:Z.textContent=Tp+N,Z.classList.toggle("ag-value-change-delta-up",W),Z.classList.toggle("ag-value-change-delta-down",!W)}setTimerToRemoveDelta(){this.refreshCount++;let i=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{i===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),Jn(this.eDelta)}refresh(i,o=!1){var ee;let{value:v,valueFormatted:I}=i,{eValue:N,lastValue:W,beans:Z}=this;if(v===W||(mi(I)?N.textContent=I:mi(v)?N.textContent=v:Jn(N),(ee=Z.filterManager)!=null&&ee.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof v=="number"&&typeof W=="number"){let le=v-W;this.showDelta(i,le)}return W&&N.classList.add("ag-value-change-value-highlight"),o||this.setTimerToRemoveDelta(),this.lastValue=v,!0}},LS=".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}",Ck=class extends cn{constructor(){super(),this.refreshCount=0;let i=document.createElement("span"),o=document.createElement("span");o.setAttribute("class","ag-value-slide-current"),i.appendChild(o),this.setTemplateFromElement(i),this.eCurrent=this.queryForHtmlElement(".ag-value-slide-current"),this.registerCSS(LS)}init(i){this.refresh(i,!0)}addSlideAnimation(){this.refreshCount++;let i=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);let{beans:o,eCurrent:v}=this,I=eo(o).createElement("span");I.setAttribute("class","ag-value-slide-previous ag-value-slide-out"),this.ePrevious=I,I.textContent=v.textContent,this.getGui().insertBefore(I,v),o.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{i===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{i===this.refreshCount&&(this.getGui().removeChild(this.ePrevious),this.ePrevious=null)},3e3)})}refresh(i,o=!1){var N;let v=i.value;if(Oa(v)&&(v=""),v===this.lastValue||(N=this.beans.filterManager)!=null&&N.isSuppressFlashingCellsBecauseFiltering())return!1;o||this.addSlideAnimation(),this.lastValue=v;let I=this.eCurrent;return mi(i.valueFormatted)?I.textContent=i.valueFormatted:mi(i.value)?I.textContent=v:Jn(I),!0}},ML=class extends jt{constructor(){super(...arguments),this.beanName="cellFlashSvc"}onFlashCells(i,o){if(!i.comp)return;let v=qy(i.cellPosition);o.cells[v]&&this.animateCell(i,"highlight")}flashCell(i,o){this.animateCell(i,"data-changed",o==null?void 0:o.flashDuration,o==null?void 0:o.fadeDuration)}animateCell(i,o,v,I){let N=i.comp;if(!N)return;let{gos:W}=this;if(v||(v=W.get("cellFlashDuration")),v===0)return;mi(I)||(I=W.get("cellFadeDuration"));let Z=`ag-cell-${o}`,ee=`ag-cell-${o}-animation`;N.addOrRemoveCssClass(Z,!0),N.addOrRemoveCssClass(ee,!1);let{eGui:le}=i;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{i.isAlive()&&(N.addOrRemoveCssClass(Z,!1),N.addOrRemoveCssClass(ee,!0),le.style.transition=`background-color ${I}ms`,window.setTimeout(()=>{i.isAlive()&&(N.addOrRemoveCssClass(ee,!1),le.style.transition="")},I))},v)})}};function nr(i,o={}){let{cellFlashSvc:v}=i;v&&i.frameworkOverrides.wrapIncoming(()=>{i.rowRenderer.getCellCtrls(o.rowNodes,o.columns).forEach(I=>v.flashCell(I,o))})}var Sk={moduleName:"HighlightChanges",version:ri,beans:[ML],userComponents:{agAnimateShowChangeCellRenderer:Da,agAnimateSlideCellRenderer:Ck},apiFunctions:{flashCells:nr}};function D1(i){var o,v;return(v=(o=i.stateSvc)==null?void 0:o.getState())!=null?v:{}}function UT(i){switch(i=ge({},i),i.version||(i.version="32.1.0"),i.version){case"32.1.0":i=Rr(i)}return i}function Rr(i){return i.cellSelection=kL(i,"rangeSelection"),i}function kL(i,o){if(i&&typeof i=="object")return i[o]}var OS=class extends jt{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=dr(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=dr(this,()=>{this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState())},0),this.onRowSelectedDebounced=dr(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){this.isClientSideRowModel=so(this.gos),this.cachedState=this.getInitialState(),this.setCachedStateValue("version",ri);let i=this.suppressEventsAndDispatchInitEvent.bind(this);this.beans.ctrlsSvc.whenReady(this,()=>i(()=>this.setupStateOnGridReady()));let[o,v,I]=this.addManagedEventListeners({newColumnsLoaded:({source:N})=>{N==="gridInitializing"&&(o(),i(()=>this.setupStateOnColumnsInitialised()))},rowCountReady:()=>{v==null||v(),i(()=>this.setupStateOnRowCountReady())},firstDataRendered:()=>{I==null||I(),i(()=>this.setupStateOnFirstDataRendered())}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getInitialState(){var i;return UT((i=this.gos.get("initialState"))!=null?i:{})}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setupStateOnGridReady(){let i=()=>this.updateCachedState("sideBar",this.getSideBarState());i(),this.addManagedEventListeners({toolPanelVisibleChanged:i,sideBarUpdated:i})}setupStateOnColumnsInitialised(){let i=this.getInitialState();this.setColumnState(i),this.setColumnGroupState(i),this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState());let o=v=>()=>this.updateColumnState([v]);this.addManagedEventListeners({columnValueChanged:o("aggregation"),columnMoved:o("columnOrder"),columnPinned:o("columnPinning"),columnResized:o("columnSizing"),columnVisible:o("columnVisibility"),columnPivotChanged:o("pivot"),columnPivotModeChanged:o("pivot"),columnRowGroupChanged:o("rowGroup"),sortChanged:o("sort"),newColumnsLoaded:()=>this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setupStateOnRowCountReady(){let{filter:i,rowGroupExpansion:o,rowSelection:v,pagination:I}=this.getInitialState();i&&this.setFilterState(i),o&&this.setRowGroupExpansionState(o),v&&this.setRowSelectionState(v),I&&this.setPaginationState(I);let N=this.updateCachedState.bind(this);N("filter",this.getFilterState()),N("rowGroupExpansion",this.getRowGroupExpansionState()),N("rowSelection",this.getRowSelectionState()),N("pagination",this.getPaginationState());let W=()=>{this.updateRowGroupExpansionStateTimer=0,N("rowGroupExpansion",this.getRowGroupExpansionState())};this.addManagedEventListeners({filterChanged:()=>N("filter",this.getFilterState()),rowGroupOpened:()=>this.onRowGroupOpenedDebounced(),expandOrCollapseAll:W,columnRowGroupChanged:W,rowDataUpdated:()=>{this.gos.get("groupDefaultExpanded")!==0&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(W)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:Z=>{(Z.newPage||Z.newPageSize)&&N("pagination",this.getPaginationState())}})}setupStateOnFirstDataRendered(){let{scroll:i,cellSelection:o,focusedCell:v,columnOrder:I}=this.getInitialState();v&&this.setFocusedCellState(v),o&&this.setCellSelectionState(o),i&&this.setScrollState(i),this.setColumnPivotState(!!(I!=null&&I.orderedColIds));let N=this.updateCachedState.bind(this);N("sideBar",this.getSideBarState()),N("focusedCell",this.getFocusedCellState());let W=this.getRangeSelectionState();N("rangeSelection",W),N("cellSelection",W),N("scroll",this.getScrollState()),this.addManagedEventListeners({cellFocused:()=>N("focusedCell",this.getFocusedCellState()),cellSelectionChanged:Z=>{if(Z.finished){let ee=this.getRangeSelectionState();N("rangeSelection",ee),N("cellSelection",ee)}},bodyScrollEnd:()=>N("scroll",this.getScrollState())})}getColumnState(){let i=this.beans,o=i.colModel.isPivotMode(),v=[],I=[],N=[],W=[],Z=[],ee=[],le=[],we=[],Ae=[],Ee=0,Ve=Xn(i);for(let Je=0;Je<Ve.length;Je++){let{colId:gt,sort:kt,sortIndex:xt,rowGroup:Ft,rowGroupIndex:Ht,aggFunc:Gt,pivot:Wt,pivotIndex:di,pinned:Di,hide:un,width:xn,flex:va}=Ve[Je];Ae.push(gt),kt&&(v[xt!=null?xt:Ee++]={colId:gt,sort:kt}),Ft&&(I[Ht!=null?Ht:0]=gt),typeof Gt=="string"&&N.push({colId:gt,aggFunc:Gt}),Wt&&(W[di!=null?di:0]=gt),Di&&(Di==="right"?ee:Z).push(gt),un&&le.push(gt),(va||xn)&&we.push({colId:gt,flex:va!=null?va:void 0,width:xn})}return{sort:v.length?{sortModel:v}:void 0,rowGroup:I.length?{groupColIds:I}:void 0,aggregation:N.length?{aggregationModel:N}:void 0,pivot:W.length||o?{pivotMode:o,pivotColIds:W}:void 0,columnPinning:Z.length||ee.length?{leftColIds:Z,rightColIds:ee}:void 0,columnVisibility:le.length?{hiddenColIds:le}:void 0,columnSizing:we.length?{columnSizingModel:we}:void 0,columnOrder:Ae.length?{orderedColIds:Ae}:void 0}}setColumnState(i){let{sort:o,rowGroup:v,aggregation:I,pivot:N,columnPinning:W,columnVisibility:Z,columnSizing:ee,columnOrder:le,partialColumnState:we}=i,Ae={},Ee=xt=>{let Ft=Ae[xt];return Ft||(Ft={colId:xt},Ae[xt]=Ft,Ft)},Ve=we?{}:{sort:null,sortIndex:null,rowGroup:null,rowGroupIndex:null,aggFunc:null,pivot:null,pivotIndex:null,pinned:null,hide:null,flex:null};o&&(o.sortModel.forEach(({colId:xt,sort:Ft},Ht)=>{let Gt=Ee(xt);Gt.sort=Ft,Gt.sortIndex=Ht}),Ve.sort=null,Ve.sortIndex=null),v&&(v.groupColIds.forEach((xt,Ft)=>{let Ht=Ee(xt);Ht.rowGroup=!0,Ht.rowGroupIndex=Ft}),Ve.rowGroup=null,Ve.rowGroupIndex=null),I&&(I.aggregationModel.forEach(({colId:xt,aggFunc:Ft})=>{Ee(xt).aggFunc=Ft}),Ve.aggFunc=null),N&&(N.pivotColIds.forEach((xt,Ft)=>{let Ht=Ee(xt);Ht.pivot=!0,Ht.pivotIndex=Ft}),this.gos.updateGridOptions({options:{pivotMode:N.pivotMode},source:"gridInitializing"}),Ve.pivot=null,Ve.pivotIndex=null),W&&(W.leftColIds.forEach(xt=>{Ee(xt).pinned="left"}),W.rightColIds.forEach(xt=>{Ee(xt).pinned="right"}),Ve.pinned=null),Z&&(Z.hiddenColIds.forEach(xt=>{Ee(xt).hide=!0}),Ve.hide=null),ee&&(ee.columnSizingModel.forEach(({colId:xt,flex:Ft,width:Ht})=>{let Gt=Ee(xt);Gt.flex=Ft!=null?Ft:null,Gt.width=Ht}),Ve.flex=null);let Je=le==null?void 0:le.orderedColIds,gt=!!(Je!=null&&Je.length),kt=gt?Je.map(xt=>Ee(xt)):Object.values(Ae);kt.length&&(this.columnStates=kt,Ic(this.beans,{state:kt,applyOrder:gt,defaultState:Ve},"gridInitializing"))}setColumnPivotState(i){let o=this.columnStates;this.columnStates=void 0;let v=this.columnGroupStates;this.columnGroupStates=void 0;let I=this.beans,{pivotResultCols:N,colGroupSvc:W}=I;if(N!=null&&N.isPivotResultColsPresent()){if(o){let Z=[];for(let ee of o)N.getPivotResultCol(ee.colId)&&Z.push(ee);Ic(I,{state:Z,applyOrder:i},"gridInitializing")}v&&(W==null||W.setColumnGroupState(v,"gridInitializing"))}}getColumnGroupState(){let i=this.beans.colGroupSvc;if(!i)return;let o=i.getColumnGroupState(),v=[];return o.forEach(({groupId:I,open:N})=>{N&&v.push(I)}),v.length?{openColumnGroupIds:v}:void 0}setColumnGroupState(i){var W;let o=this.beans.colGroupSvc;if(!Object.prototype.hasOwnProperty.call(i,"columnGroup")||!o)return;let v=new Set((W=i.columnGroup)==null?void 0:W.openColumnGroupIds),N=o.getColumnGroupState().map(({groupId:Z})=>{let ee=v.has(Z);return ee&&v.delete(Z),{groupId:Z,open:ee}});v.forEach(Z=>{N.push({groupId:Z,open:!0})}),N.length&&(this.columnGroupStates=N),o.setColumnGroupState(N,"gridInitializing")}getFilterState(){var I;let i=this.beans.filterManager,o=i==null?void 0:i.getFilterModel();o&&Object.keys(o).length===0&&(o=void 0);let v=(I=i==null?void 0:i.getAdvFilterModel())!=null?I:void 0;return o||v?{filterModel:o,advancedFilterModel:v}:void 0}setFilterState(i){let o=this.beans.filterManager,{filterModel:v,advancedFilterModel:I}=i!=null?i:{};v&&(o==null||o.setFilterModel(v,"columnFilter")),I&&(o==null||o.setAdvFilterModel(I))}getRangeSelectionState(){var o;let i=(o=this.beans.rangeSvc)==null?void 0:o.getCellRanges().map(v=>{let{id:I,type:N,startRow:W,endRow:Z,columns:ee,startColumn:le}=v;return{id:I,type:N,startRow:W,endRow:Z,colIds:ee.map(we=>we.getColId()),startColId:le.getColId()}});return i!=null&&i.length?{cellRanges:i}:void 0}setCellSelectionState(i){let{gos:o,rangeSvc:v,colModel:I,visibleCols:N}=this.beans;if(!Jo(o)||!v)return;let W=[];i.cellRanges.forEach(Z=>{let ee=[];if(Z.colIds.forEach(we=>{let Ae=I.getCol(we);Ae&&ee.push(Ae)}),!ee.length)return;let le=I.getCol(Z.startColId);if(!le){let we=N.allCols,Ae=new Set(ee);le=we.find(Ee=>Ae.has(Ee))}W.push(He(ge({},Z),{columns:ee,startColumn:le}))}),v.setCellRanges(W)}getScrollState(){var I,N;if(!this.isClientSideRowModel)return;let i=this.beans.ctrlsSvc.getScrollFeature(),{left:o}=(I=i==null?void 0:i.getHScrollPosition())!=null?I:{left:0},{top:v}=(N=i==null?void 0:i.getVScrollPosition())!=null?N:{top:0};return v||o?{top:v,left:o}:void 0}setScrollState(i){if(!this.isClientSideRowModel)return;let{top:o,left:v}=i,{frameworkOverrides:I,rowRenderer:N,animationFrameSvc:W,ctrlsSvc:Z}=this.beans;I.wrapIncoming(()=>{var ee;Z.get("center").setCenterViewportScrollLeft(v),(ee=Z.getScrollFeature())==null||ee.setVerticalScrollPosition(o),N.redraw({afterScroll:!0}),W==null||W.flushAllFrames()})}getSideBarState(){var i,o;return(o=(i=this.beans.sideBar)==null?void 0:i.comp)==null?void 0:o.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;let i=this.beans.focusSvc.getFocusedCell();if(i){let{column:o,rowIndex:v,rowPinned:I}=i;return{colId:o.getColId(),rowIndex:v,rowPinned:I}}}setFocusedCellState(i){if(!this.isClientSideRowModel)return;let{colId:o,rowIndex:v,rowPinned:I}=i,{focusSvc:N,colModel:W}=this.beans;N.setFocusedCell({column:W.getCol(o),rowIndex:v,rowPinned:I,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){let{pagination:i,gos:o}=this.beans;if(!i)return;let v=i.getCurrentPage(),I=o.get("paginationAutoPageSize")?void 0:i.getPageSize();if(!(!v&&!I))return{page:v,pageSize:I}}setPaginationState(i){let{pagination:o,gos:v}=this.beans;o&&(i.pageSize&&!v.get("paginationAutoPageSize")&&o.setPageSize(i.pageSize,"initialState"),typeof i.page=="number"&&o.setPage(i.page))}getRowSelectionState(){var I;let i=this.beans.selectionSvc;if(!i)return;let o=i.getSelectionState();return!o||!Array.isArray(o)&&(o.selectAll===!1||o.selectAllChildren===!1)&&!((I=o==null?void 0:o.toggledNodes)!=null&&I.length)?void 0:o}setRowSelectionState(i){var o;(o=this.beans.selectionSvc)==null||o.setSelectionState(i,"gridInitializing")}getRowGroupExpansionState(){let{expansionSvc:i,rowModel:o}=this.beans;if(!i)return;let v=[];return o.forEachNode(({expanded:I,id:N})=>{I&&N&&v.push(N)}),v.length?{expandedRowGroupIds:v}:void 0}setRowGroupExpansionState(i){var o;(o=this.beans.expansionSvc)==null||o.expandRows(i.expandedRowGroupIds)}updateColumnState(i){let o=this.getColumnState(),v=!1,I=this.cachedState;Object.entries(o).forEach(([N,W])=>{lm(W,I[N])||(v=!0)}),this.cachedState=ge(ge({},I),o),v&&this.dispatchStateUpdateEvent(i)}updateCachedState(i,o){let v=this.cachedState[i];this.setCachedStateValue(i,o),lm(o,v)||this.dispatchStateUpdateEvent([i])}setCachedStateValue(i,o){this.cachedState=He(ge({},this.cachedState),{[i]:o})}refreshStaleState(){let i=this.staleStateKeys;i.forEach(o=>{switch(o){case"rowSelection":this.setCachedStateValue(o,this.getRowSelectionState());break}}),i.clear()}dispatchStateUpdateEvent(i){this.suppressEvents||(i.forEach(o=>this.queuedUpdateSources.add(o)),this.dispatchStateUpdateEventDebounced())}dispatchQueuedStateUpdateEvents(){let i=this.queuedUpdateSources,o=Array.from(i);i.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:o,state:this.cachedState})}suppressEventsAndDispatchInitEvent(i){this.suppressEvents=!0;let o=this.beans.colAnimation;o==null||o.setSuppressAnimation(!0),i(),setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(o==null||o.setSuppressAnimation(!1),this.dispatchStateUpdateEvent(["gridInitializing"]))})}},wk={moduleName:"GridState",version:ri,beans:[OS],apiFunctions:{getState:D1}};function E1(i){return i.rowModel.isLastRowIndexKnown()}function Fo(i){var o,v;return(v=(o=i.pagination)==null?void 0:o.getPageSize())!=null?v:100}function xk(i){var o,v;return(v=(o=i.pagination)==null?void 0:o.getCurrentPage())!=null?v:0}function KT(i){var o,v;return(v=(o=i.pagination)==null?void 0:o.getTotalPages())!=null?v:1}function qT(i){return i.pagination?i.pagination.getMasterRowCount():i.rowModel.getRowCount()}function Mk(i){var o;(o=i.pagination)==null||o.goToNextPage()}function kk(i){var o;(o=i.pagination)==null||o.goToPreviousPage()}function Ed(i){var o;(o=i.pagination)==null||o.goToFirstPage()}function FS(i){var o;(o=i.pagination)==null||o.goToLastPage()}function Cr(i,o){var v;(v=i.pagination)==null||v.goToPage(o)}var Rp=class extends jt{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,i=>{this.centerRowsCtrl=i.center;let o=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:o,scrollVisibilityChanged:o}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;let i=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(i>0){let o=this.beans,v=()=>{let I=Math.max(Yu(o),1),N=Math.floor(i/I);o.pagination.setPageSize(N,"autoCalculated")};this.isBodyRendered?dr(this,v,50)():(v(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},Xr="paginationPageSizeSelector",_S=class extends cn{constructor(){super('<span class="ag-paging-page-size"></span>'),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;let i=this.selectPageSizeComp.getValue();if(!i)return;let o=Number(i);isNaN(o)||o<1||o===this.pagination.getPageSize()||(this.pagination.setPageSize(o,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(i){this.pagination=i.pagination}postConstruct(){this.addManagedPropertyListener(Xr,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:i=>this.handlePaginationChanged(i)})}handlePaginationChanged(i){if(!this.selectPageSizeComp||!(i!=null&&i.newPageSize))return;let o=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(o)?this.selectPageSizeComp.setValue(o.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(i){this.selectPageSizeComp&&!i&&this.reset(),i&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){Jn(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(Xr)!==!1}reloadPageSizesSelector(){let i=this.getPageSizeSelectorValues(),o=this.pagination.getPageSize(),v=!o||!i.includes(o);if(v){let N=this.gos.exists("paginationPageSize"),W=this.gos.get(Xr)!==!0;ii(94,{pageSizeSet:N,pageSizesSet:W,pageSizeOptions:i,paginationPageSizeOption:o}),W||ii(95,{paginationPageSizeOption:o,paginationPageSizeSelector:Xr}),i.unshift("")}let I=String(v?"":o);this.selectPageSizeComp?(Gh(this.pageSizeOptions,i)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(i)),this.pageSizeOptions=i),this.selectPageSizeComp.setValue(I,!0)):this.createPageSizeSelectorComp(i,I),this.hasEmptyOption=v}createPageSizeSelectOptions(i){return i.map(o=>({value:String(o)}))}createPageSizeSelectorComp(i,o){let v=this.getLocaleTextFunc(),I=v("pageSizeSelectorLabel","Page Size:"),N=v("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new Fx).addOptions(this.createPageSizeSelectOptions(i)).setValue(o).setAriaLabel(N).setLabel(I).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){let i=[20,50,100],o=this.gos.get(Xr);return!Array.isArray(o)||!(o!=null&&o.length)?i:[...o].sort((v,I)=>v-I)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},NS={selector:"AG-PAGE-SIZE-SELECTOR",component:_S},zS=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:max(var(--ag-row-height),22px);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}",Ak=class extends Nx{constructor(){super(),this.btFirst=fi,this.btPrevious=fi,this.btNext=fi,this.btLast=fi,this.lbRecordCount=fi,this.lbFirstRowOnPage=fi,this.lbLastRowOnPage=fi,this.lbCurrent=fi,this.lbTotal=fi,this.pageSizeComp=fi,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(zS)}wireBeans(i){this.rowModel=i.rowModel,this.pagination=i.pagination,this.ariaAnnounce=i.ariaAnnounce}postConstruct(){let i=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[NS]);let{btFirst:o,btPrevious:v,btNext:I,btLast:N}=this;this.activateTabIndex([o,v,I,N]),o.insertAdjacentElement("afterbegin",ma(i?"last":"first",this.beans)),v.insertAdjacentElement("afterbegin",ma(i?"next":"previous",this.beans)),I.insertAdjacentElement("afterbegin",ma(i?"previous":"next",this.beans)),N.insertAdjacentElement("afterbegin",ma(i?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:W=>{this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(W):Ar(this.beans,W)},forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(i){this.allowFocusInnerElement=i}onPaginationChanged(){let o=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(o),o&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){this.areListenersSetup||(this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)}),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach(i=>{let{el:o,fn:v}=i;this.addManagedListeners(o,{click:v,keydown:I=>{(I.key===Bt.ENTER||I.key===Bt.SPACE)&&(I.preventDefault(),v())}})}),Bn(this.beans,this,this.getGui()),this.areListenersSetup=!0)}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(i){let o=this.gos.getCallback("paginationNumberFormatter");return o?o({value:i}):Qm(i,this.getLocaleTextFunc.bind(this))}getTemplate(){let i=this.getLocaleTextFunc(),o=i("page","Page"),v=i("to","to"),I=i("of","of"),N=i("firstPage","First Page"),W=i("previousPage","Previous Page"),Z=i("nextPage","Next Page"),ee=i("lastPage","Last Page"),le=this.getCompId();return`<div class="ag-paging-panel ag-unselectable" id="ag-${le}">
                <ag-page-size-selector data-ref="pageSizeComp"></ag-page-size-selector>
                <span class="ag-paging-row-summary-panel">
                    <span id="ag-${le}-first-row" data-ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>
                    <span id="ag-${le}-to">${v}</span>
                    <span id="ag-${le}-last-row" data-ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>
                    <span id="ag-${le}-of">${I}</span>
                    <span id="ag-${le}-row-count" data-ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>
                </span>
                <span class="ag-paging-page-summary-panel" role="presentation">
                    <div data-ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="${N}"></div>
                    <div data-ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="${W}"></div>
                    <span class="ag-paging-description">
                        <span id="ag-${le}-start-page">${o}</span>
                        <span id="ag-${le}-start-page-number" data-ref="lbCurrent" class="ag-paging-number"></span>
                        <span id="ag-${le}-of-page">${I}</span>
                        <span id="ag-${le}-of-page-number" data-ref="lbTotal" class="ag-paging-number"></span>
                    </span>
                    <div data-ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="${Z}"></div>
                    <div data-ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="${ee}"></div>
                </span>
            </div>`}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){let i=this.pagination.getCurrentPage(),o=this.rowModel.isLastRowIndexKnown(),v=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=i===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);let I=this.isZeroPagesToDisplay(),N=i===v-1;this.nextButtonDisabled=N||I,this.lastButtonDisabled=!o||I||i===v-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(i,o){Le(i,o),i.classList.toggle("ag-disabled",o)}isZeroPagesToDisplay(){let i=this.rowModel.isLastRowIndexKnown(),o=this.pagination.getTotalPages();return i&&o===0}updateLabels(){let i=this.rowModel.isLastRowIndexKnown(),o=this.pagination.getTotalPages(),v=this.pagination.getMasterRowCount(),I=i?v:null;if(I===1){let Ht=this.rowModel.getRow(0);if(Ht&&Ht.group&&!(Ht.groupData||Ht.aggData)){this.setTotalLabelsToZero();return}}let N=this.pagination.getCurrentPage(),W=this.pagination.getPageSize(),Z,ee;this.isZeroPagesToDisplay()?Z=ee=0:(Z=W*N+1,ee=Z+W-1,i&&ee>I&&(ee=I));let le=Z+W-1,we=!i&&v<le,Ae=this.formatNumber(Z);this.lbFirstRowOnPage.textContent=Ae;let Ee,Ve=this.getLocaleTextFunc();we?Ee=Ve("pageLastRowUnknown","?"):Ee=this.formatNumber(ee),this.lbLastRowOnPage.textContent=Ee;let gt=o>0?N+1:0,kt=this.formatNumber(gt);this.lbCurrent.textContent=kt;let xt,Ft;if(i)xt=this.formatNumber(o),Ft=this.formatNumber(I);else{let Ht=Ve("more","more");xt=Ht,Ft=Ht}this.lbTotal.textContent=xt,this.lbRecordCount.textContent=Ft,this.announceAriaStatus(Ae,Ee,Ft,kt,xt)}announceAriaStatus(i,o,v,I,N){var Ee,Ve;let W=this.getLocaleTextFunc(),Z=W("page","Page"),ee=W("to","to"),le=W("of","of"),we=`${i} ${ee} ${o} ${le} ${v}`,Ae=`${Z} ${I} ${le} ${N}`;we!==this.ariaRowStatus&&(this.ariaRowStatus=we,(Ee=this.ariaAnnounce)==null||Ee.announceValue(we,"paginationRow")),Ae!==this.ariaPageStatus&&(this.ariaPageStatus=Ae,(Ve=this.ariaAnnounce)==null||Ve.announceValue(Ae,"paginationPage"))}setTotalLabelsToZero(){let i=this.formatNumber(0);this.lbFirstRowOnPage.textContent=i,this.lbCurrent.textContent=i,this.lbLastRowOnPage.textContent=i,this.lbTotal.textContent=i,this.lbRecordCount.textContent=i,this.announceAriaStatus(i,i,i,i,i)}},Ms={selector:"AG-PAGINATION",component:Ak},ar=class extends jt{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){let i=this.gos;this.active=i.get("pagination"),this.pageSizeFromGridOptions=i.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return Ms}isPaginateChildRows(){let i=this.gos;return i.get("groupHideParentOfSingleChild")||i.get("groupRemoveSingleChildren")||i.get("groupRemoveLowestSingleChildren")?!0:i.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(i){let o=this.currentPage;!this.active||o===i||typeof o!="number"||(this.currentPage=i,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0}))}isRowPresent(i){return i.rowIndex>=this.topDisplayedRowIndex&&i.rowIndex<=this.bottomDisplayedRowIndex}getPageForIndex(i){return Math.floor(i/this.pageSize)}goToPageWithIndex(i){if(!this.active)return;let o=this.getPageForIndex(i);this.goToPage(o)}isRowInPage(i){return this.active?this.getPageForIndex(i.rowIndex)===this.currentPage:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){let i=this.beans.rowModel.getRowCount(),o=Math.floor(i/this.pageSize);this.goToPage(o)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(i){this.currentPage=i}get pageSize(){return mi(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:mi(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:mi(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:mi(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;let i=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==i&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(i,o){let v=this.pageSize;switch(o){case"autoCalculated":this.pageSizeAutoCalculated=i;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=i,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=i;break;case"gridOptions":this.pageSizeFromGridOptions=i,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}v!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){let i=this.totalPages;this.currentPage>=i&&(this.currentPage=i-1);let o=this.currentPage;(!isFinite(o)||isNaN(o)||o<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){let i=this.beans.rowModel,o=i.getTopLevelRowCount();if(this.masterRowCount=o,o<=0){this.setZeroRows();return}let v=this.pageSize,I=o-1;this.totalPages=Math.floor(I/v)+1,this.adjustCurrentPageIfInvalid();let N=this.currentPage,W=v*N,Z=v*(N+1)-1;if(Z>I&&(Z=I),this.topDisplayedRowIndex=i.getTopLevelRowDisplayedIndex(W),Z===I)this.bottomDisplayedRowIndex=i.getRowCount()-1;else{let ee=i.getTopLevelRowDisplayedIndex(Z+1);this.bottomDisplayedRowIndex=ee-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){let i=this.beans.rowModel.getRowCount();if(this.masterRowCount=i,i===0){this.setZeroRows();return}let{pageSize:o,currentPage:v}=this,I=i-1;this.totalPages=Math.floor(I/o)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=o*v,this.bottomDisplayedRowIndex=o*(v+1)-1,this.bottomDisplayedRowIndex>I&&(this.bottomDisplayedRowIndex=I)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(i){let{keepRenderedRows:o=!1,newPage:v=!1,newPageSize:I=!1}=i;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:v,newPageSize:I,keepRenderedRows:o})}},Id={moduleName:"Pagination",version:ri,beans:[ar,Rp],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:E1,paginationGetPageSize:Fo,paginationGetCurrentPage:xk,paginationGetTotalPages:KT,paginationGetRowCount:qT,paginationGoToNextPage:Mk,paginationGoToPreviousPage:kk,paginationGoToFirstPage:Ed,paginationGoToLastPage:FS,paginationGoToPage:Cr},dependsOn:[gg]};function xh(i,o={}){let v=o?o.rowNodes:void 0;i.frameworkOverrides.wrapIncoming(()=>i.rowRenderer.redrawRows(v))}function ff(i,o,v,I,N){o&&(I&&o.parent&&o.parent.level!==-1&&ff(i,o.parent,v,I,N),o.setExpanded(v,void 0,N))}function BS(i,o){return i.rowModel.getRowNode(o)}function Pp(i,o,v,I){i.rowRenderer.addRenderedRowListener(o,v,I)}function vf(i){return i.rowRenderer.getRenderedNodes()}function el(i,o,v){i.rowModel.forEachNode(o,v)}function _n(i){return i.rowRenderer.firstRenderedRow}function qc(i){return i.rowRenderer.lastRenderedRow}function wg(i,o){return i.rowModel.getRow(o)}function Zb(i){return i.rowModel.getRowCount()}var yu={moduleName:"RowApi",version:ri,apiFunctions:{redrawRows:xh,setRowNodeExpanded:ff,getRowNode:BS,addRenderedRowListener:Pp,getRenderedNodes:vf,forEachNode:el,getFirstDisplayedRowIndex:_n,getLastDisplayedRowIndex:qc,getDisplayedRowAtIndex:wg,getDisplayedRowCount:Zb}},Lp={moduleName:"ScrollApi",version:ri,apiFunctions:{getVerticalPixelRange:dc,getHorizontalPixelRange:df,ensureColumnVisible:Pl,ensureIndexVisible:OT,ensureNodeVisible:SL}};function Op(i,o,v){if(!o)return;let I=i.ctrlsSvc.getGridBodyCtrl().eGridBody,N=`aria-${o}`;v===null?I.removeAttribute(N):I.setAttribute(N,v)}function Fl(i,o={}){i.frameworkOverrides.wrapIncoming(()=>i.rowRenderer.refreshCells(o))}function YT(i){i.frameworkOverrides.wrapIncoming(()=>i.ctrlsSvc.getHeaderRowContainerCtrls().forEach(o=>o.refresh()))}function GS(i){var o,v;return(v=(o=i.animationFrameSvc)==null?void 0:o.isQueueEmpty())!=null?v:!0}function I1(i){var o;(o=i.animationFrameSvc)==null||o.flushAllFrames()}function AL(i){return{rowHeight:Yu(i),headerHeight:ia(i)}}function Uv(i,o={}){var W;let v=[];if(i.rowRenderer.getCellCtrls(o.rowNodes,o.columns).forEach(Z=>{let ee=Z.getCellRenderer();ee!=null&&v.push(oh(ee))}),(W=o.columns)!=null&&W.length)return v;let I=[],N=Xs(o.rowNodes);return i.rowRenderer.getAllRowCtrls().forEach(Z=>{if(N&&!kn(Z.rowNode,N)||!Z.isFullWidth())return;let ee=Z.getFullWidthCellRenderers();for(let le=0;le<ee.length;le++){let we=ee[le];we!=null&&I.push(oh(we))}}),[...I,...v]}var Fp={moduleName:"RenderApi",version:ri,apiFunctions:{setGridAriaProperty:Op,refreshCells:Fl,refreshHeader:YT,isAnimationFrameQueueEmpty:GS,flushAllAnimationFrames:I1,getSizesForCurrentTheme:AL,getCellRendererInstances:Uv}};function T1(i,o){var v,I;typeof o=="number"?(v=i.colAutosize)==null||v.sizeColumnsToFit(o,"api"):(I=i.colAutosize)==null||I.sizeColumnsToFitGridBody(o)}function Kv(i,o,v){var I;(I=i.colAutosize)==null||I.autoSizeCols({colKeys:o,skipHeader:v,source:"api"})}function fa(i,o){var v;(v=i.colAutosize)==null||v.autoSizeAllColumns("api",o)}var XT=class extends jt{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered()})}autoSizeCols(i){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeCols(i));return}let{colKeys:o,skipHeader:v,skipHeaderGroups:I,stopAtGroup:N,source:W="api"}=i,{animationFrameSvc:Z,renderStatus:ee,colModel:le,autoWidthCalc:we,visibleCols:Ae}=this.beans;if(Z==null||Z.flushAllFrames(),this.timesDelayed<5&&ee&&!ee.areHeaderCellsRendered()){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.autoSizeCols(i)});return}this.timesDelayed=0;let Ee=[],Ve=-1,Je=v!=null?v:this.gos.get("skipHeaderOnAutoSize"),gt=I!=null?I:Je;for(;Ve!==0;){Ve=0;let kt=[];o.forEach(xt=>{if(!xt)return;let Ft=le.getCol(xt);if(!Ft||Ee.indexOf(Ft)>=0)return;let Ht=we.getPreferredWidthForColumn(Ft,Je);if(Ht>0){let Gt=R1(Ft,Ht);Ft.setActualWidth(Gt,W),Ee.push(Ft),Ve++}kt.push(Ft)}),kt.length&&Ae.refresh(W)}gt||this.autoSizeColumnGroupsByColumns(o,W,N),Vh(this.eventSvc,Ee,!0,"autosizeColumns")}autoSizeColumn(i,o,v){i&&this.autoSizeCols({colKeys:[i],skipHeader:v,skipHeaderGroups:!0,source:o})}autoSizeColumnGroupsByColumns(i,o,v){let{colModel:I,ctrlsSvc:N}=this.beans,W=new Set;I.getColsForKeys(i).forEach(we=>{let Ae=we.getParent();for(;Ae&&Ae!=v;)Ae.isPadding()||W.add(Ae),Ae=Ae.getParent()});let ee,le=[];for(let we of W){for(let Ae of N.getHeaderRowContainerCtrls())if(ee=Ae.getHeaderCtrlForColumn(we),ee)break;ee&&ee.resizeLeafColumnsToFit(o)}return le}autoSizeAllColumns(i,o){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(i,o));return}let v=this.beans.visibleCols.allCols;this.autoSizeCols({colKeys:v,skipHeader:o,source:i})}addColumnAutosize(i,o){let v=this.gos.get("skipHeaderOnAutoSize"),I=()=>{this.autoSizeColumn(o,"uiColumnResized",v)};i.addEventListener("dblclick",I);let N=new fs(i);return N.addEventListener("doubleTap",I),()=>{i.removeEventListener("dblclick",I),N.removeEventListener("doubleTap",I),N.destroy()}}addColumnGroupResize(i,o,v){let I=this.gos.get("skipHeaderOnAutoSize"),N=()=>{let W=[];o.getDisplayedLeafColumns().forEach(ee=>{ee.getColDef().suppressAutoSize||W.push(ee.getColId())}),W.length>0&&this.autoSizeCols({colKeys:W,skipHeader:I,stopAtGroup:o,source:"uiColumnResized"}),v()};return i.addEventListener("dblclick",N),()=>i.removeEventListener("dblclick",N)}sizeColumnsToFitGridBody(i,o){if(!this.isAlive())return;let{ctrlsSvc:v,scrollVisibleSvc:I}=this.beans,N=v.getGridBodyCtrl(),Z=N.isVerticalScrollShowing()?I.getScrollbarWidth():0,le=cr(N.eGridBody)-Z;if(le>0){this.sizeColumnsToFit(le,"sizeColumnsToFit",!1,i);return}o===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(i,100)},0):o===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(i,500)},100):o===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(i,-1)},500):ii(29)}sizeColumnsToFit(i,o="sizeColumnsToFit",v,I){var Je,gt,kt;if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(i,o,v,I));return}let N={};I&&((Je=I==null?void 0:I.columnLimits)==null||Je.forEach(Ht=>{var Gt=Ht,{key:xt}=Gt,Ft=wi(Gt,["key"]);N[typeof xt=="string"?xt:xt.getColId()]=Ft}));let W=this.beans.visibleCols.allCols,Z=i===eh(W);if(i<=0||!W.length||Z)return;let ee=[],le=[];W.forEach(xt=>{xt.getColDef().suppressSizeToFit===!0?le.push(xt):ee.push(xt)});let we=ee.slice(0),Ae=!1,Ee=xt=>{bo(ee,xt),le.push(xt)};for(ee.forEach(xt=>{var di,Di;xt.resetActualWidth(o);let Ft=N==null?void 0:N[xt.getId()],Ht=(di=Ft==null?void 0:Ft.minWidth)!=null?di:I==null?void 0:I.defaultMinWidth,Gt=(Di=Ft==null?void 0:Ft.maxWidth)!=null?Di:I==null?void 0:I.defaultMaxWidth,Wt=xt.getActualWidth();typeof Ht=="number"&&Wt<Ht?xt.setActualWidth(Ht,o,!0):typeof Gt=="number"&&Wt>Gt&&xt.setActualWidth(Gt,o,!0)});!Ae;){Ae=!0;let xt=i-eh(le);if(xt<=0)ee.forEach(Ft=>{var Gt,Wt;let Ht=(Wt=(Gt=N==null?void 0:N[Ft.getId()])==null?void 0:Gt.minWidth)!=null?Wt:I==null?void 0:I.defaultMinWidth;if(typeof Ht=="number"){Ft.setActualWidth(Ht,o,!0);return}Ft.setActualWidth(Ft.minWidth,o)});else{let Ft=xt/eh(ee),Ht=xt;for(let Gt=ee.length-1;Gt>=0;Gt--){let Wt=ee[Gt],di=N==null?void 0:N[Wt.getId()],Di=(gt=di==null?void 0:di.minWidth)!=null?gt:I==null?void 0:I.defaultMinWidth,un=(kt=di==null?void 0:di.maxWidth)!=null?kt:I==null?void 0:I.defaultMaxWidth,xn=Wt.getMinWidth(),va=Wt.getMaxWidth(),Un=typeof Di=="number"&&Di>xn?Di:xn,Ra=typeof un=="number"&&un<va?un:va,Ui=Math.round(Wt.getActualWidth()*Ft);Ui<Un?(Ui=Un,Ee(Wt),Ae=!1):Ui>Ra?(Ui=Ra,Ee(Wt),Ae=!1):Gt===0&&(Ui=Ht),Wt.setActualWidth(Ui,o,!0),Ht-=Ui}}}we.forEach(xt=>{xt.fireColumnWidthChangedEvent(o)});let Ve=this.beans.visibleCols;Ve.setLeftValues(o),Ve.updateBodyWidths(),!v&&Vh(this.eventSvc,we,!0,o)}applyAutosizeStrategy(){let i=this.gos.get("autoSizeStrategy");if(!i)return;let{type:o}=i;setTimeout(()=>{if(o==="fitGridWidth"){let{columnLimits:v,defaultMinWidth:I,defaultMaxWidth:N}=i,W=v==null?void 0:v.map(({colId:Z,minWidth:ee,maxWidth:le})=>({key:Z,minWidth:ee,maxWidth:le}));this.sizeColumnsToFitGridBody({defaultMinWidth:I,defaultMaxWidth:N,columnLimits:W})}else o==="fitProvidedWidth"&&this.sizeColumnsToFit(i.width,"sizeColumnsToFit")})}onFirstDataRendered(){let i=this.gos.get("autoSizeStrategy");if((i==null?void 0:i.type)!=="fitCellContents")return;let{colIds:o,skipHeader:v}=i;setTimeout(()=>{o?this.autoSizeCols({colKeys:o,skipHeader:v,source:"autosizeColumns"}):this.autoSizeAllColumns("autosizeColumns",v)})}processResizeOperations(){this.shouldQueueResizeOperations=!1,this.resizeOperationQueue.forEach(i=>i()),this.resizeOperationQueue=[]}pushResizeOperation(i){this.resizeOperationQueue.push(i)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function R1(i,o){let v=i.getMinWidth();o<v&&(o=v);let I=i.getMaxWidth();return i.isGreaterThanMax(o)&&(o=I),o}var ZT={moduleName:"ColumnAutoSize",version:ri,beans:[XT],apiFunctions:{sizeColumnsToFit:T1,autoSizeColumns:Kv,autoSizeAllColumns:fa},dependsOn:[gb]};function P1(i){var o,v;return(v=(o=i.pinnedRowModel)==null?void 0:o.getPinnedTopRowCount())!=null?v:0}function $T(i){var o,v;return(v=(o=i.pinnedRowModel)==null?void 0:o.getPinnedBottomRowCount())!=null?v:0}function Dk(i,o){var v;return(v=i.pinnedRowModel)==null?void 0:v.getPinnedTopRow(o)}function tl(i,o){var v;return(v=i.pinnedRowModel)==null?void 0:v.getPinnedBottomRow(o)}var bu=class extends jt{constructor(){super(...arguments),this.beanName="pinnedRowModel",this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){let i=this.gos;this.setPinnedRowData(i.get("pinnedTopRowData"),"top"),this.setPinnedRowData(i.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",o=>this.setPinnedRowData(o.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",o=>this.setPinnedRowData(o.currentValue,"bottom")),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this)})}isEmpty(i){return this.getCache(i).order.length===0}isRowsToRender(i){return!this.isEmpty(i)}onGridStylesChanges(i){if(i.rowHeightChanged){let o=v=>{v.setRowHeight(v.rowHeight,!0)};bf(this.pinnedBottomRows,o),bf(this.pinnedTopRows,o)}}ensureRowHeightsValid(){let i=!1,o=0,v=I=>{if(I.rowHeightEstimated){let N=qu(this.beans,I);I.setRowTop(o),I.setRowHeight(N.height),o+=N.height,i=!0}};return bf(this.pinnedBottomRows,v),o=0,bf(this.pinnedTopRows,v),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),i}setPinnedRowData(i,o){this.updateNodesFromRowData(i,o),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(i,o){var Ae;let v=this.getCache(o);if(i===void 0){v.order.length=0,v.cache={};return}let I=Uf(this.gos),N=o==="top"?c0:Ua,W=new Set(v.order),Z=[],ee=new Set,le=0,we=-1;for(let Ee of i){let Ve=(Ae=I==null?void 0:I({data:Ee,level:0,rowPinned:o}))!=null?Ae:N+this.nextId++;if(ee.has(Ve)){ii(96,{id:Ve,data:Ee});continue}we++,ee.add(Ve),Z.push(Ve);let Je=yf(v,Ve);if(Je!==void 0)Je.data!==Ee&&Je.setData(Ee),le+=this.setRowTopAndRowIndex(Je,le,we),W.delete(Ve);else{let gt=new So(this.beans);gt.id=Ve,gt.data=Ee,gt.rowPinned=o,le+=this.setRowTopAndRowIndex(gt,le,we),v.cache[Ve]=gt,v.order.push(Ve)}}W.forEach(Ee=>{var Ve;(Ve=yf(v,Ee))==null||Ve.clearRowTopAndRowIndex(),delete v.cache[Ee]}),v.order=Z}setRowTopAndRowIndex(i,o,v){return i.setRowTop(o),i.setRowHeight(qu(this.beans,i).height),i.setRowIndex(v),i.rowHeight}getPinnedTopTotalHeight(){return Ek(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return Ek(this.pinnedBottomRows)}getPinnedTopRowCount(){return jS(this.pinnedTopRows)}getPinnedBottomRowCount(){return jS(this.pinnedBottomRows)}getPinnedTopRow(i){return VS(this.pinnedTopRows,i)}getPinnedBottomRow(i){return VS(this.pinnedBottomRows,i)}getPinnedRowById(i,o){return yf(this.getCache(o),i)}forEachPinnedRow(i,o){return bf(this.getCache(i),o)}getCache(i){return i==="top"?this.pinnedTopRows:this.pinnedBottomRows}};function Ek(i){let o=jS(i);if(o===0)return 0;let v=VS(i,o-1);return v===void 0?0:v.rowTop+v.rowHeight}function yf(i,o){return i.cache[o]}function VS(i,o){return yf(i,i.order[o])}function bf(i,o){i.order.forEach((v,I)=>{let N=yf(i,v);N&&o(N,I)})}function jS(i){return i.order.length}var Ik={moduleName:"PinnedRow",version:ri,beans:[bu],apiFunctions:{getPinnedTopRowCount:P1,getPinnedBottomRowCount:$T,getPinnedTopRow:Dk,getPinnedBottomRow:tl}},QT=class extends jt{constructor(i,o){super(),this.cellCtrl=i,this.staticClasses=[],this.beans=o,this.column=i.column}setComp(i){this.cellComp=i,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){let{column:i,cellComp:o}=this,v=i.colDef,I=v.cellClassRules,N=this.getCellClassParams(i,v);h0(this.beans.expressionSvc,I===this.cellClassRules?void 0:this.cellClassRules,I,N,W=>o.addOrRemoveCssClass(W,!0),W=>o.addOrRemoveCssClass(W,!1)),this.cellClassRules=I}applyUserStyles(){let i=this.column,o=i.colDef,v=o.cellStyle;if(!v)return;let I;if(typeof v=="function"){let N=this.getCellClassParams(i,o);I=v(N)}else I=v;I&&this.cellComp.setUserStyles(I)}applyClassesFromColDef(){let{column:i,cellComp:o}=this,v=i.colDef,I=this.getCellClassParams(i,v);this.staticClasses.forEach(W=>o.addOrRemoveCssClass(W,!1));let N=this.beans.cellStyles.getStaticCellClasses(v,I);this.staticClasses=N,N.forEach(W=>o.addOrRemoveCssClass(W,!0))}getCellClassParams(i,o){let{value:v,rowNode:I}=this.cellCtrl;return this.beans.gos.addGridCommonParams({value:v,data:I.data,node:I,colDef:o,column:i,rowIndex:I.rowIndex})}},HS=class extends jt{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(i,o,v,I){h0(this.beans.expressionSvc,void 0,i.cellClassRules,o,v,I),this.processStaticCellClasses(i,o,v)}getStaticCellClasses(i,o){let{cellClass:v}=i;if(!v)return[];let I;return typeof v=="function"?I=v(o):I=v,typeof I=="string"&&(I=[I]),I||[]}createCellCustomStyleFeature(i,o){return new QT(i,o)}processStaticCellClasses(i,o,v){this.getStaticCellClasses(i,o).forEach(N=>{v(N)})}},$b={moduleName:"CellStyle",version:ri,beans:[HS]},WS={moduleName:"RowStyle",version:ri,beans:[ov]};function US(i,o){var v;return!!((v=i.colHover)!=null&&v.isHovered(o))}var Tk=class extends jt{constructor(i,o){super(),this.columns=i,this.element=o}postConstruct(){if(this.gos.get("columnHoverHighlight")){let i=this.beans.colHover;this.addManagedListeners(this.element,{mouseout:i.clearMouseOver.bind(i),mouseover:i.setMouseOver.bind(i,this.columns)})}}},L1="ag-column-hover",Rk=class extends jt{constructor(){super(...arguments),this.beanName="colHover"}setMouseOver(i){this.updateState(i)}clearMouseOver(){this.updateState(null)}isHovered(i){let o=this.selectedColumns;return!!o&&o.indexOf(i)>=0}addHeaderColumnHoverListener(i,o,v){let I=()=>{if(!this.gos.get("columnHoverHighlight"))return;let N=this.isHovered(v);o.addOrRemoveCssClass("ag-column-hover",N)};i.addManagedEventListeners({columnHoverChanged:I}),I()}onCellColumnHover(i,o){if(!o||!this.gos.get("columnHoverHighlight"))return;let v=this.isHovered(i);o.addOrRemoveCssClass(L1,v)}addHeaderFilterColumnHoverListener(i,o,v,I){this.createHoverFeature(i,[v],I);let N=()=>{if(!this.gos.get("columnHoverHighlight"))return;let W=this.isHovered(v);o.addOrRemoveCssClass("ag-column-hover",W)};i.addManagedEventListeners({columnHoverChanged:N}),N()}createHoverFeature(i,o,v){i.createManagedBean(new Tk(o,v))}updateState(i){this.selectedColumns=i,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},Pk={moduleName:"ColumnHover",version:ri,beans:[Rk],apiFunctions:{isColumnHovered:US}},Td=class extends jt{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){var i,o;this.wrapSvc=(o=(i=this.beans.frameworkOverrides).createGlobalEventListenerWrapper)==null?void 0:o.call(i)}addEventListener(i,o){var W,Z;let v=(Z=(W=this.wrapSvc)==null?void 0:W.wrap(o))!=null?Z:o,I=!wd.has(i),N=I?this.asyncListeners:this.syncListeners;N.has(i)||N.set(i,new Set),N.get(i).add(v),this.eventSvc.addEventListener(i,v,I)}removeEventListener(i,o){var W,Z,ee;let v=(Z=(W=this.wrapSvc)==null?void 0:W.unwrap(o))!=null?Z:o,I=this.asyncListeners.get(i),N=!!(I!=null&&I.delete(v));N||(ee=this.syncListeners.get(i))==null||ee.delete(v),this.eventSvc.removeEventListener(i,v,N)}addGlobalListener(i){var W,Z;let o=(Z=(W=this.wrapSvc)==null?void 0:W.wrapGlobal(i))!=null?Z:i,v=(ee,le)=>{wd.has(ee)&&o(ee,le)},I=(ee,le)=>{wd.has(ee)||o(ee,le)};this.globalListenerPairs.set(i,{syncListener:v,asyncListener:I});let N=this.eventSvc;N.addGlobalListener(v,!1),N.addGlobalListener(I,!0)}removeGlobalListener(i){var Z;let{eventSvc:o,wrapSvc:v,globalListenerPairs:I}=this,N=(Z=v==null?void 0:v.unwrapGlobal(i))!=null?Z:i;if(I.has(N)){let{syncListener:ee,asyncListener:le}=I.get(N);o.removeGlobalListener(ee,!1),o.removeGlobalListener(le,!0),I.delete(i)}else this.syncGlobalListeners.delete(N),o.removeGlobalListener(N,!1)}destroyEventListeners(i,o){i.forEach((v,I)=>{v.forEach(N=>this.eventSvc.removeEventListener(I,N,o)),v.clear()}),i.clear()}destroyGlobalListeners(i,o){i.forEach(v=>this.eventSvc.removeGlobalListener(v,o)),i.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);let{globalListenerPairs:i,eventSvc:o}=this;i.forEach(({syncListener:v,asyncListener:I})=>{o.removeGlobalListener(v,!1),o.removeGlobalListener(I,!0)}),i.clear()}};function Yi(i,o,v){var I;(I=i.apiEventSvc)==null||I.addEventListener(o,v)}function Yc(i,o,v){var I;(I=i.apiEventSvc)==null||I.removeEventListener(o,v)}function il(i,o){var v;(v=i.apiEventSvc)==null||v.addGlobalListener(o)}function DL(i,o){var v;(v=i.apiEventSvc)==null||v.removeGlobalListener(o)}var _p={moduleName:"EventApi",version:ri,apiFunctions:{addEventListener:Yi,addGlobalListener:il,removeEventListener:Yc,removeGlobalListener:DL},beans:[Td]},JT=".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);white-space:normal}.ag-tooltip,.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}",EL=class extends jt{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(i,o,v,I){i&&o.destroyBean(i);let N=Ir(this.gos),{column:W,eGui:Z}=o,ee=W.getColDef();!I&&N&&!ee.headerComponent&&(I=Pm(()=>Z.querySelector(".ag-header-cell-text")));let le={getColumn:()=>W,getColDef:()=>W.getColDef(),getGui:()=>Z,getLocation:()=>"header",getTooltipValue:()=>v!=null?v:W.getColDef().headerTooltip,shouldDisplayTooltip:I},we=this.createTooltipFeature(le);return we&&(we=o.createBean(we),o.setRefreshFunction("tooltip",()=>we.refreshTooltip())),we}setupHeaderGroupTooltip(i,o,v,I){i&&o.destroyBean(i);let N=Ir(this.gos),{column:W,eGui:Z}=o,ee=W.getColGroupDef();!I&&N&&!(ee!=null&&ee.headerGroupComponent)&&(I=Pm(()=>Z.querySelector(".ag-header-group-text")));let le={getColumn:()=>W,getGui:()=>Z,getLocation:()=>"headerGroup",getTooltipValue:()=>v!=null?v:ee&&ee.headerTooltip,shouldDisplayTooltip:I};ee&&(le.getColDef=()=>ee);let we=this.createTooltipFeature(le);return we&&o.createBean(we)}enableCellTooltipFeature(i,o,v){let{column:I,rowNode:N}=i,W=()=>{let le=I.getColDef(),we=N.data;if(le.tooltipField&&mi(we))return Zu(we,le.tooltipField,I.isTooltipFieldContainsDots());let Ae=le.tooltipValueGetter;return Ae?Ae(this.gos.addGridCommonParams({location:"cell",colDef:I.getColDef(),column:I,rowIndex:i.cellPosition.rowIndex,node:N,data:N.data,value:i.value,valueFormatted:i.valueFormatted})):null},Z=Ir(this.gos);!v&&Z&&!i.isCellRenderer()&&(v=Pm(()=>{let{eGui:le}=i;return le.children.length===0?le:le.querySelector(".ag-cell-value")}));let ee={getColumn:()=>I,getColDef:()=>I.getColDef(),getRowIndex:()=>i.cellPosition.rowIndex,getRowNode:()=>N,getGui:()=>i.eGui,getLocation:()=>"cell",getTooltipValue:o!=null?()=>o:W,getValueFormatted:()=>i.valueFormatted,shouldDisplayTooltip:v};return this.createTooltipFeature(ee,this.beans)}refreshRowTooltip(i,o,v,I){let N={getGui:()=>o.getFullWidthElement(),getTooltipValue:()=>v,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:I},W=this.beans,Z=W.context;i&&o.destroyBean(i,Z);let ee=this.createTooltipFeature(N,W);return o.createBean(ee,Z)}initCol(i){let{colDef:o}=i;i.tooltipEnabled=mi(o.tooltipField)||mi(o.tooltipValueGetter)||mi(o.tooltipComponent)}createTooltipFeature(i,o){return this.beans.registry.createDynamicBean("tooltipFeature",!1,i,o)}},O1={moduleName:"Tooltip",version:ri,beans:[EL],dynamicBeans:{tooltipFeature:ru},userComponents:{agTooltipComponent:i1},dependsOn:[gg],css:[JT]},KS={moduleName:"Locale",version:ri,beans:[PM]},Zr=class extends jt{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1}setRowAutoHeight(i,o,v){i.__autoHeights||(i.__autoHeights={}),i.__autoHeights[v.getId()]=o,o!=null&&(i.__checkAutoHeightsDebounced==null&&(i.__checkAutoHeightsDebounced=dr(this,this.doCheckAutoHeights.bind(this,i),1)),i.__checkAutoHeightsDebounced())}checkAutoHeights(i){this.wasEverActive&&this.doCheckAutoHeights(i)}doCheckAutoHeights(i){var Ae;let o=i.__autoHeights;if(o==null)return;let v=!1,I=!0,N=0,{visibleCols:W,colModel:Z,colViewport:ee,rowModel:le}=this.beans;W.autoHeightCols.forEach(Ee=>{let Ve=o[Ee.getId()];if(Ve==null)if(Z.colSpanActive){let Je=[];switch(Ee.getPinned()){case"left":Je=W.getLeftColsForRow(i);break;case"right":Je=W.getRightColsForRow(i);break;case null:Je=ee.getColsWithinViewport(i);break}if(Je.includes(Ee)){v=!0;return}Ve=-1}else{v=!0;return}else I=!1;Ve>N&&(N=Ve)}),!v&&((I||N<10)&&(N=qu(this.beans,i).height),N!=i.rowHeight&&(i.setRowHeight(N),(Ae=le.onRowHeightChangedDebounced)==null||Ae.call(le)))}setupCellAutoHeight(i,o,v){let I=o.parentElement,{rowNode:N,column:W}=i,Z=this.beans,ee=qu(Z,N).height,le=Ee=>{if(i.editing||!i.isAlive()||!v.isAlive())return;let{paddingTop:Ve,paddingBottom:Je,borderBottomWidth:gt,borderTopWidth:kt}=hl(I),xt=Ve+Je+gt+kt,Ht=o.offsetHeight+xt;if(Ee<5){let Wt=eo(Z),di=!Wt||!Wt.contains(o),Di=Ht==0;if(di||Di){window.setTimeout(()=>le(Ee+1),0);return}}let Gt=Math.max(Ht,ee);this.setRowAutoHeight(N,Gt,W)},we=()=>le(0);we();let Ae=Xl(Z,o,we);v.addDestroyFunc(()=>{Ae(),this.setRowAutoHeight(N,void 0,W)})}setAutoHeightActive(i){this.active=i.list.some(o=>o.isVisible()&&o.isAutoHeight()),this.active&&(this.wasEverActive=!0)}},Cf={moduleName:"RowAutoHeight",version:ri,beans:[Zr]},Qb={moduleName:"AllCommunity",version:ri,dependsOn:[mk,M1,mf,pS,br,Ll,tk,ik,Wb,nk,ak,qi,SS,Dp,u1,ZM,ET,IT,wk,C1,Id,mh,yu,Lp,Fp,ZT,D0,Ik,Sg,XD,$b,Pk,WS,_p,IM,Sk,O1,KS,Cf,cb,fu]}},6055:function(x){"use strict";x.exports="data:font/woff2;charset=utf-8;base64, "},8430:function(x){"use strict";x.exports="data:font/woff2;charset=utf-8;base64, "},7738:function(x){"use strict";x.exports="data:font/woff2;charset=utf-8;base64, "},9377:function(x){"use strict";x.exports="data:font/woff2;charset=utf-8;base64, "},2006:function(x){"use strict";x.exports="data:font/woff2;charset=utf-8;base64, "},2487:function(x){"use strict";x.exports="data:image/svg+xml;base64, "},7249:function(x){"use strict";x.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg=="},6080:function(x){"use strict";x.exports='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>'},5608:function(x,p,A){"use strict";A.r(p),A.d(p,{__addDisposableResource:function(){return st},__assign:function(){return T},__asyncDelegator:function(){return fe},__asyncGenerator:function(){return ce},__asyncValues:function(){return xe},__await:function(){return ne},__awaiter:function(){return S},__classPrivateFieldGet:function(){return it},__classPrivateFieldIn:function(){return ot},__classPrivateFieldSet:function(){return tt},__createBinding:function(){return M},__decorate:function(){return C},__disposeResources:function(){return Xe},__esDecorate:function(){return s},__exportStar:function(){return P},__extends:function(){return z},__generator:function(){return w},__importDefault:function(){return We},__importStar:function(){return Fe},__makeTemplateObject:function(){return Le},__metadata:function(){return f},__param:function(){return d},__propKey:function(){return h},__read:function(){return G},__rest:function(){return b},__runInitializers:function(){return c},__setFunctionName:function(){return g},__spread:function(){return j},__spreadArray:function(){return J},__spreadArrays:function(){return Y},__values:function(){return O}});var E=function(Ke,Ye){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,Pe){Ze.__proto__=Pe}||function(Ze,Pe){for(var ct in Pe)Object.prototype.hasOwnProperty.call(Pe,ct)&&(Ze[ct]=Pe[ct])},E(Ke,Ye)};function z(Ke,Ye){if(typeof Ye!="function"&&Ye!==null)throw new TypeError("Class extends value "+String(Ye)+" is not a constructor or null");E(Ke,Ye);function Ze(){this.constructor=Ke}Ke.prototype=Ye===null?Object.create(Ye):(Ze.prototype=Ye.prototype,new Ze)}var T=function(){return T=Object.assign||function(Ye){for(var Ze,Pe=1,ct=arguments.length;Pe<ct;Pe++){Ze=arguments[Pe];for(var dt in Ze)Object.prototype.hasOwnProperty.call(Ze,dt)&&(Ye[dt]=Ze[dt])}return Ye},T.apply(this,arguments)};function b(Ke,Ye){var Ze={};for(var Pe in Ke)Object.prototype.hasOwnProperty.call(Ke,Pe)&&Ye.indexOf(Pe)<0&&(Ze[Pe]=Ke[Pe]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Pe=Object.getOwnPropertySymbols(Ke);ct<Pe.length;ct++)Ye.indexOf(Pe[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ke,Pe[ct])&&(Ze[Pe[ct]]=Ke[Pe[ct]]);return Ze}function C(Ke,Ye,Ze,Pe){var ct=arguments.length,dt=ct<3?Ye:Pe===null?Pe=Object.getOwnPropertyDescriptor(Ye,Ze):Pe,bt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")dt=Reflect.decorate(Ke,Ye,Ze,Pe);else for(var Pt=Ke.length-1;Pt>=0;Pt--)(bt=Ke[Pt])&&(dt=(ct<3?bt(dt):ct>3?bt(Ye,Ze,dt):bt(Ye,Ze))||dt);return ct>3&&dt&&Object.defineProperty(Ye,Ze,dt),dt}function d(Ke,Ye){return function(Ze,Pe){Ye(Ze,Pe,Ke)}}function s(Ke,Ye,Ze,Pe,ct,dt){function bt(ha){if(ha!==void 0&&typeof ha!="function")throw new TypeError("Function expected");return ha}for(var Pt=Pe.kind,Nt=Pt==="getter"?"get":Pt==="setter"?"set":"value",ft=!Ye&&Ke?Pe.static?Ke:Ke.prototype:null,Lt=Ye||(ft?Object.getOwnPropertyDescriptor(ft,Pe.name):{}),Vt,Jt=!1,$t=Ze.length-1;$t>=0;$t--){var Ii={};for(var zi in Pe)Ii[zi]=zi==="access"?{}:Pe[zi];for(var zi in Pe.access)Ii.access[zi]=Pe.access[zi];Ii.addInitializer=function(ha){if(Jt)throw new TypeError("Cannot add initializers after decoration has completed");dt.push(bt(ha||null))};var ln=(0,Ze[$t])(Pt==="accessor"?{get:Lt.get,set:Lt.set}:Lt[Nt],Ii);if(Pt==="accessor"){if(ln===void 0)continue;if(ln===null||typeof ln!="object")throw new TypeError("Object expected");(Vt=bt(ln.get))&&(Lt.get=Vt),(Vt=bt(ln.set))&&(Lt.set=Vt),(Vt=bt(ln.init))&&ct.unshift(Vt)}else(Vt=bt(ln))&&(Pt==="field"?ct.unshift(Vt):Lt[Nt]=Vt)}ft&&Object.defineProperty(ft,Pe.name,Lt),Jt=!0}function c(Ke,Ye,Ze){for(var Pe=arguments.length>2,ct=0;ct<Ye.length;ct++)Ze=Pe?Ye[ct].call(Ke,Ze):Ye[ct].call(Ke);return Pe?Ze:void 0}function h(Ke){return typeof Ke=="symbol"?Ke:"".concat(Ke)}function g(Ke,Ye,Ze){return typeof Ye=="symbol"&&(Ye=Ye.description?"[".concat(Ye.description,"]"):""),Object.defineProperty(Ke,"name",{configurable:!0,value:Ze?"".concat(Ze," ",Ye):Ye})}function f(Ke,Ye){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Ke,Ye)}function S(Ke,Ye,Ze,Pe){function ct(dt){return dt instanceof Ze?dt:new Ze(function(bt){bt(dt)})}return new(Ze||(Ze=Promise))(function(dt,bt){function Pt(Lt){try{ft(Pe.next(Lt))}catch(Vt){bt(Vt)}}function Nt(Lt){try{ft(Pe.throw(Lt))}catch(Vt){bt(Vt)}}function ft(Lt){Lt.done?dt(Lt.value):ct(Lt.value).then(Pt,Nt)}ft((Pe=Pe.apply(Ke,Ye||[])).next())})}function w(Ke,Ye){var Ze={label:0,sent:function(){if(dt[0]&1)throw dt[1];return dt[1]},trys:[],ops:[]},Pe,ct,dt,bt;return bt={next:Pt(0),throw:Pt(1),return:Pt(2)},typeof Symbol=="function"&&(bt[Symbol.iterator]=function(){return this}),bt;function Pt(ft){return function(Lt){return Nt([ft,Lt])}}function Nt(ft){if(Pe)throw new TypeError("Generator is already executing.");for(;bt&&(bt=0,ft[0]&&(Ze=0)),Ze;)try{if(Pe=1,ct&&(dt=ft[0]&2?ct.return:ft[0]?ct.throw||((dt=ct.return)&&dt.call(ct),0):ct.next)&&!(dt=dt.call(ct,ft[1])).done)return dt;switch(ct=0,dt&&(ft=[ft[0]&2,dt.value]),ft[0]){case 0:case 1:dt=ft;break;case 4:return Ze.label++,{value:ft[1],done:!1};case 5:Ze.label++,ct=ft[1],ft=[0];continue;case 7:ft=Ze.ops.pop(),Ze.trys.pop();continue;default:if(dt=Ze.trys,!(dt=dt.length>0&&dt[dt.length-1])&&(ft[0]===6||ft[0]===2)){Ze=0;continue}if(ft[0]===3&&(!dt||ft[1]>dt[0]&&ft[1]<dt[3])){Ze.label=ft[1];break}if(ft[0]===6&&Ze.label<dt[1]){Ze.label=dt[1],dt=ft;break}if(dt&&Ze.label<dt[2]){Ze.label=dt[2],Ze.ops.push(ft);break}dt[2]&&Ze.ops.pop(),Ze.trys.pop();continue}ft=Ye.call(Ke,Ze)}catch(Lt){ft=[6,Lt],ct=0}finally{Pe=dt=0}if(ft[0]&5)throw ft[1];return{value:ft[0]?ft[1]:void 0,done:!0}}}var M=Object.create?function(Ke,Ye,Ze,Pe){Pe===void 0&&(Pe=Ze);var ct=Object.getOwnPropertyDescriptor(Ye,Ze);(!ct||("get"in ct?!Ye.__esModule:ct.writable||ct.configurable))&&(ct={enumerable:!0,get:function(){return Ye[Ze]}}),Object.defineProperty(Ke,Pe,ct)}:function(Ke,Ye,Ze,Pe){Pe===void 0&&(Pe=Ze),Ke[Pe]=Ye[Ze]};function P(Ke,Ye){for(var Ze in Ke)Ze!=="default"&&!Object.prototype.hasOwnProperty.call(Ye,Ze)&&M(Ye,Ke,Ze)}function O(Ke){var Ye=typeof Symbol=="function"&&Symbol.iterator,Ze=Ye&&Ke[Ye],Pe=0;if(Ze)return Ze.call(Ke);if(Ke&&typeof Ke.length=="number")return{next:function(){return Ke&&Pe>=Ke.length&&(Ke=void 0),{value:Ke&&Ke[Pe++],done:!Ke}}};throw new TypeError(Ye?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(Ke,Ye){var Ze=typeof Symbol=="function"&&Ke[Symbol.iterator];if(!Ze)return Ke;var Pe=Ze.call(Ke),ct,dt=[],bt;try{for(;(Ye===void 0||Ye-- >0)&&!(ct=Pe.next()).done;)dt.push(ct.value)}catch(Pt){bt={error:Pt}}finally{try{ct&&!ct.done&&(Ze=Pe.return)&&Ze.call(Pe)}finally{if(bt)throw bt.error}}return dt}function j(){for(var Ke=[],Ye=0;Ye<arguments.length;Ye++)Ke=Ke.concat(G(arguments[Ye]));return Ke}function Y(){for(var Ke=0,Ye=0,Ze=arguments.length;Ye<Ze;Ye++)Ke+=arguments[Ye].length;for(var Pe=Array(Ke),ct=0,Ye=0;Ye<Ze;Ye++)for(var dt=arguments[Ye],bt=0,Pt=dt.length;bt<Pt;bt++,ct++)Pe[ct]=dt[bt];return Pe}function J(Ke,Ye,Ze){if(Ze||arguments.length===2)for(var Pe=0,ct=Ye.length,dt;Pe<ct;Pe++)(dt||!(Pe in Ye))&&(dt||(dt=Array.prototype.slice.call(Ye,0,Pe)),dt[Pe]=Ye[Pe]);return Ke.concat(dt||Array.prototype.slice.call(Ye))}function ne(Ke){return this instanceof ne?(this.v=Ke,this):new ne(Ke)}function ce(Ke,Ye,Ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Pe=Ze.apply(Ke,Ye||[]),ct,dt=[];return ct={},bt("next"),bt("throw"),bt("return"),ct[Symbol.asyncIterator]=function(){return this},ct;function bt(Jt){Pe[Jt]&&(ct[Jt]=function($t){return new Promise(function(Ii,zi){dt.push([Jt,$t,Ii,zi])>1||Pt(Jt,$t)})})}function Pt(Jt,$t){try{Nt(Pe[Jt]($t))}catch(Ii){Vt(dt[0][3],Ii)}}function Nt(Jt){Jt.value instanceof ne?Promise.resolve(Jt.value.v).then(ft,Lt):Vt(dt[0][2],Jt)}function ft(Jt){Pt("next",Jt)}function Lt(Jt){Pt("throw",Jt)}function Vt(Jt,$t){Jt($t),dt.shift(),dt.length&&Pt(dt[0][0],dt[0][1])}}function fe(Ke){var Ye,Ze;return Ye={},Pe("next"),Pe("throw",function(ct){throw ct}),Pe("return"),Ye[Symbol.iterator]=function(){return this},Ye;function Pe(ct,dt){Ye[ct]=Ke[ct]?function(bt){return(Ze=!Ze)?{value:ne(Ke[ct](bt)),done:!1}:dt?dt(bt):bt}:dt}}function xe(Ke){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ye=Ke[Symbol.asyncIterator],Ze;return Ye?Ye.call(Ke):(Ke=typeof O=="function"?O(Ke):Ke[Symbol.iterator](),Ze={},Pe("next"),Pe("throw"),Pe("return"),Ze[Symbol.asyncIterator]=function(){return this},Ze);function Pe(dt){Ze[dt]=Ke[dt]&&function(bt){return new Promise(function(Pt,Nt){bt=Ke[dt](bt),ct(Pt,Nt,bt.done,bt.value)})}}function ct(dt,bt,Pt,Nt){Promise.resolve(Nt).then(function(ft){dt({value:ft,done:Pt})},bt)}}function Le(Ke,Ye){return Object.defineProperty?Object.defineProperty(Ke,"raw",{value:Ye}):Ke.raw=Ye,Ke}var _e=Object.create?function(Ke,Ye){Object.defineProperty(Ke,"default",{enumerable:!0,value:Ye})}:function(Ke,Ye){Ke.default=Ye};function Fe(Ke){if(Ke&&Ke.__esModule)return Ke;var Ye={};if(Ke!=null)for(var Ze in Ke)Ze!=="default"&&Object.prototype.hasOwnProperty.call(Ke,Ze)&&M(Ye,Ke,Ze);return _e(Ye,Ke),Ye}function We(Ke){return Ke&&Ke.__esModule?Ke:{default:Ke}}function it(Ke,Ye,Ze,Pe){if(Ze==="a"&&!Pe)throw new TypeError("Private accessor was defined without a getter");if(typeof Ye=="function"?Ke!==Ye||!Pe:!Ye.has(Ke))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Ze==="m"?Pe:Ze==="a"?Pe.call(Ke):Pe?Pe.value:Ye.get(Ke)}function tt(Ke,Ye,Ze,Pe,ct){if(Pe==="m")throw new TypeError("Private method is not writable");if(Pe==="a"&&!ct)throw new TypeError("Private accessor was defined without a setter");if(typeof Ye=="function"?Ke!==Ye||!ct:!Ye.has(Ke))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Pe==="a"?ct.call(Ke,Ze):ct?ct.value=Ze:Ye.set(Ke,Ze),Ze}function ot(Ke,Ye){if(Ye===null||typeof Ye!="object"&&typeof Ye!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof Ke=="function"?Ye===Ke:Ke.has(Ye)}function st(Ke,Ye,Ze){if(Ye!=null){if(typeof Ye!="object"&&typeof Ye!="function")throw new TypeError("Object expected.");var Pe;if(Ze){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Pe=Ye[Symbol.asyncDispose]}if(Pe===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Pe=Ye[Symbol.dispose]}if(typeof Pe!="function")throw new TypeError("Object not disposable.");Ke.stack.push({value:Ye,dispose:Pe,async:Ze})}else Ze&&Ke.stack.push({async:!0});return Ye}var St=typeof SuppressedError=="function"?SuppressedError:function(Ke,Ye,Ze){var Pe=new Error(Ze);return Pe.name="SuppressedError",Pe.error=Ke,Pe.suppressed=Ye,Pe};function Xe(Ke){function Ye(Pe){Ke.error=Ke.hasError?new St(Pe,Ke.error,"An error was suppressed during disposal."):Pe,Ke.hasError=!0}function Ze(){for(;Ke.stack.length;){var Pe=Ke.stack.pop();try{var ct=Pe.dispose&&Pe.dispose.call(Pe.value);if(Pe.async)return Promise.resolve(ct).then(Ze,function(dt){return Ye(dt),Ze()})}catch(dt){Ye(dt)}}if(Ke.hasError)throw Ke.error}return Ze()}p.default={__extends:z,__assign:T,__rest:b,__decorate:C,__param:d,__metadata:f,__awaiter:S,__generator:w,__createBinding:M,__exportStar:P,__values:O,__read:G,__spread:j,__spreadArrays:Y,__spreadArray:J,__await:ne,__asyncGenerator:ce,__asyncDelegator:fe,__asyncValues:xe,__makeTemplateObject:Le,__importStar:Fe,__importDefault:We,__classPrivateFieldGet:it,__classPrivateFieldSet:tt,__classPrivateFieldIn:ot,__addDisposableResource:st,__disposeResources:Xe}}},oe={};function he(x){var p=oe[x];if(p!==void 0)return p.exports;var A=oe[x]={id:x,exports:{}};return re[x](A,A.exports,he),A.exports}he.m=re,function(){he.n=function(x){var p=x&&x.__esModule?function(){return x.default}:function(){return x};return he.d(p,{a:p}),p}}(),function(){he.d=function(x,p){for(var A in p)he.o(p,A)&&!he.o(x,A)&&Object.defineProperty(x,A,{enumerable:!0,get:p[A]})}}(),function(){he.o=function(x,p){return Object.prototype.hasOwnProperty.call(x,p)}}(),function(){he.r=function(x){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})}}(),function(){he.b=document.baseURI||self.location.href;var x={792:0}}();var ae=he(9058);return ae}()})});var fZ=uO((IO,a6)=>{(function(re,oe){typeof IO=="object"&&typeof a6=="object"?a6.exports=oe():typeof define=="function"&&define.amd?define("agCharts",[],oe):typeof IO=="object"?IO.agCharts=oe():re.agCharts=oe()})(IO,()=>{var re={},oe={exports:re};if(typeof oC=="undefined")var oC=function(l){throw new Error("Unknown module: "+l)};var he=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,A=(r,l)=>{for(var m in l)he(r,m,{get:l[m],enumerable:!0})},E=(r,l,m,D)=>{if(l&&typeof l=="object"||typeof l=="function")for(let L of x(l))!p.call(r,L)&&L!==m&&he(r,L,{get:()=>l[L],enumerable:!(D=ae(l,L))||D.enumerable});return r},z=r=>E(he({},"__esModule",{value:!0}),r),T=(r,l,m,D)=>{for(var L=D>1?void 0:D?ae(l,m):l,B=r.length-1,H;B>=0;B--)(H=r[B])&&(L=(D?H(l,m,L):H(L))||L);return D&&L&&he(l,m,L),L},b={};A(b,{AG_CHARTS_LOCALE_EN_US:()=>C,AgCharts:()=>$a,AgChartsCommunityModule:()=>Qv,AgErrorBarSupportedSeriesTypes:()=>d,AgTooltipPositionType:()=>f,Marker:()=>Ss,VERSION:()=>ma,_ModuleSupport:()=>oR,_Scene:()=>Bp,_Theme:()=>nC,_Util:()=>tw,_Widget:()=>rw,setupCommunityModules:()=>P1,time:()=>nD}),oe.exports=z(b);var C={ariaAnnounceHoverDatum:"${datum}",ariaAnnounceChart:"chart, ${seriesCount}[number] series",ariaAnnounceHierarchyChart:"hierarchy chart, ${caption}",ariaAnnounceGaugeChart:"gauge chart, ${caption}",ariaAnnounceHierarchyDatum:"level ${level}[number], ${count}[number] children, ${description}",ariaAnnounceFlowProportionLink:"link ${index} of ${count}, from ${from} to ${to}, ${sizeName} ${size}",ariaAnnounceFlowProportionNode:"node ${index} of ${count}, ${description}",ariaDescriptionLegendItem:"Press Space or Enter to toggle visibility",ariaLabelAddHorizontalLine:"Add Horizontal Line",ariaLabelAnnotationOptionsToolbar:"Annotation Options",ariaLabelAnnotationSettingsDialog:"Annotation Settings",ariaLabelColorPicker:"Color picker",ariaLabelFinancialCharts:"Financial Charts",ariaLabelLegend:"Legend",ariaLabelLegendPagination:"Legend Pagination",ariaLabelLegendPagePrevious:"Previous Legend Page",ariaLabelLegendPageNext:"Next Legend Page",ariaLabelLegendItem:"${label}, Legend item ${index}[number] of ${count}[number]",ariaLabelLegendItemUnknown:"Unknown legend item",ariaLabelNavigator:"Navigator",ariaLabelNavigatorRange:"Range",ariaLabelNavigatorMinimum:"Minimum",ariaLabelNavigatorMaximum:"Maximum",ariaLabelRangesToolbar:"Ranges",ariaLabelSettingsTabBar:"Settings",ariaLabelZoomToolbar:"Zoom",ariaValuePanRange:"${min}[percent] to ${max}[percent]",iconAltTextLineStyleSolid:"Solid",iconAltTextLineStyleDashed:"Long-dashed",iconAltTextLineStyleDotted:"Short-dashed",iconAltTextPositionTop:"Top",iconAltTextPositionCenter:"Center",iconAltTextPositionBottom:"Bottom",iconAltTextAlignLeft:"Left",iconAltTextAlignCenter:"Center",iconAltTextAlignRight:"Right",iconAltTextClose:"Close",overlayLoadingData:"Loading data...",overlayNoData:"No data to display",overlayNoVisibleSeries:"No visible series",overlayUnsupportedBrowser:"Incompatible browser version. Please upgrade your browser.",seriesHistogramTooltipFrequency:"Frequency",seriesHistogramTooltipSum:"${yName} (sum)",seriesHistogramTooltipCount:"${yName} (count)",seriesHistogramTooltipMean:"${yName} (mean)",toolbarSeriesTypeDropdown:"Chart Type",toolbarSeriesTypeOHLC:"OHLC",toolbarSeriesTypeHLC:"HLC",toolbarSeriesTypeHighLow:"High Low",toolbarSeriesTypeCandles:"Candles",toolbarSeriesTypeHollowCandles:"Hollow Candles",toolbarSeriesTypeLine:"Line",toolbarSeriesTypeLineWithMarkers:"Line with Markers",toolbarSeriesTypeStepLine:"Step Line",toolbarAnnotationsTrendLine:"Trend Line",toolbarAnnotationsFibonacciRetracement:"Fib Retracement",toolbarAnnotationsHorizontalLine:"Horizontal Line",toolbarAnnotationsVerticalLine:"Vertical Line",toolbarAnnotationsParallelChannel:"Parallel Channel",toolbarAnnotationsDisjointChannel:"Disjoint Channel",toolbarAnnotationsClearAll:"Clear All",toolbarAnnotationsFillColor:"Fill Color",toolbarAnnotationsLineColor:"Line Color",toolbarAnnotationsLineStyle:"Line Style",toolbarAnnotationsLineStrokeWidth:"Line Stroke Width",toolbarAnnotationsSettings:"Settings",toolbarAnnotationsTextColor:"Text Color",toolbarAnnotationsTextSize:"Text Size",toolbarAnnotationsLock:"Lock",toolbarAnnotationsUnlock:"Unlock",toolbarAnnotationsDelete:"Delete",toolbarAnnotationsDragHandle:"Drag Toolbar",toolbarAnnotationsLineAnnotations:"Trend Lines",toolbarAnnotationsFibonacciAnnotations:"Fibonacci",toolbarAnnotationsTextAnnotations:"Text Annotations",toolbarAnnotationsShapeAnnotations:"Arrows",toolbarAnnotationsMeasurerAnnotations:"Measurers",toolbarAnnotationsCallout:"Callout",toolbarAnnotationsComment:"Comment",toolbarAnnotationsNote:"Note",toolbarAnnotationsText:"Text",toolbarAnnotationsArrow:"Arrow",toolbarAnnotationsArrowUp:"Arrow Up",toolbarAnnotationsArrowDown:"Arrow Down",toolbarAnnotationsDateRange:"Date Range",toolbarAnnotationsPriceRange:"Price Range",toolbarAnnotationsDatePriceRange:"Date and Price",toolbarAnnotationsQuickDatePriceRange:"Measure",toolbarRange1Month:"1M",toolbarRange1MonthAria:"1 month",toolbarRange3Months:"3M",toolbarRange3MonthsAria:"3 months",toolbarRange6Months:"6M",toolbarRange6MonthsAria:"6 months",toolbarRangeYearToDate:"YTD",toolbarRangeYearToDateAria:"Year to date",toolbarRange1Year:"1Y",toolbarRange1YearAria:"1 year",toolbarRangeAll:"All",toolbarRangeAllAria:"All",toolbarZoomZoomOut:"Zoom out",toolbarZoomZoomIn:"Zoom in",toolbarZoomPanLeft:"Pan left",toolbarZoomPanRight:"Pan right",toolbarZoomPanStart:"Pan to the start",toolbarZoomPanEnd:"Pan to the end",toolbarZoomReset:"Reset the zoom",contextMenuDownload:"Download",contextMenuToggleSeriesVisibility:"Toggle Visibility",contextMenuToggleOtherSeries:"Toggle Other Series",contextMenuZoomToCursor:"Zoom to here",contextMenuPanToCursor:"Pan to here",dialogHeaderChannel:"Channel",dialogHeaderLine:"Line",dialogHeaderFibonacciRange:"Fib Retracement",dialogHeaderDateRange:"Date Range",dialogHeaderPriceRange:"Price Range",dialogHeaderDatePriceRange:"Date and Price",dialogHeaderText:"Text",dialogInputAlign:"Align",dialogInputColorPicker:"Color",dialogInputColorPickerAltText:"Text Color",dialogInputFillColorPicker:"Fill",dialogInputFillColorPickerAltText:"Fill Color",dialogInputExtendChannelStart:"Extend channel start",dialogInputExtendChannelEnd:"Extend channel end",dialogInputExtendLineStart:"Extend line start",dialogInputExtendLineEnd:"Extend line end",dialogInputExtendAbove:"Extend above",dialogInputExtendBelow:"Extend below",dialogInputExtendLeft:"Extend left",dialogInputExtendRight:"Extend right",dialogInputReverse:"Reverse",dialogInputShowFill:"Show Fill",dialogInputFontSize:"Size",dialogInputFontSizeAltText:"Font Size",dialogInputLineStyle:"Dash",dialogInputPosition:"Position",dialogInputStrokeWidth:"Weight",dialogInputStrokeWidthAltText:"Line Weight",dialogInputFibonacciBands:"Bands",dialogInputFibonacciBandsAltText:"Fibonacci Bands",inputTextareaPlaceholder:"Add Text",measurerDateRangeBars:"${value}[number] bars",measurerPriceRangeValue:"${value}[number]",measurerPriceRangePercent:"${value}[percent]",measurerVolume:"Vol ${value}"},d=["bar","line","scatter"],s=void 0,c=void 0;c=s;var h=void 0,g=void 0;g=h;var f=(r=>(r.POINTER="pointer",r.NODE="node",r.TOP="top",r.RIGHT="right",r.BOTTOM="bottom",r.LEFT="left",r.TOP_LEFT="top-left",r.TOP_RIGHT="top-right",r.BOTTOM_RIGHT="bottom-right",r.BOTTOM_LEFT="bottom-left",r))(f||{}),S=void 0,w=void 0;w=S;var M=void 0,P=void 0;P=M;var O={};A(O,{NODE_UPDATE_STATE_TO_PHASE_MAPPING:()=>os,fromToMotion:()=>ri,staticFromToMotion:()=>ld});var G=new Map;function j(){G.clear()}function Y(r){var L;let l=r.constructor,m=Object.hasOwn(l,"className")?l.className:l.name;if(!m)throw new Error(`The ${l} is missing the 'className' property.`);let D=((L=G.get(m))!=null?L:0)+1;return G.set(m,D),`${m}-${D}`}function J(){var r,l;return(l=(r=crypto.randomUUID)==null?void 0:r.call(crypto))!=null?l:ne()}function ne(){let r=new Uint8Array(16);crypto.getRandomValues(r),r[6]=r[6]&15|64,r[8]=r[8]&63|128;let l="";for(let m=0;m<r.length;m++)(m===4||m===6||m===8||m===10)&&(l+="-"),l+=r[m].toString(16).padStart(2,"0");return l}function*ce(...r){for(let l of r)yield*l}function fe(r){return r!=null&&typeof r=="object"&&Symbol.iterator in r?r:[r]}var xe={containsPoint:Le,isEmpty:_e,normalize:Fe};function Le(r,l,m){return l>=r.x&&l<=r.x+r.width&&m>=r.y&&m<=r.y+r.height}function _e(r){return r==null||r.height===0||r.width===0||isNaN(r.height)||isNaN(r.width)}function Fe(r){let{x:l,y:m,width:D,height:L}=r;return(D==null||D>0)&&(L==null||L>0)?r:(l!=null&&D!=null&&D<0&&(D=-D,l=l-D),m!=null&&L!=null&&L<0&&(L=-L,m=m-L),{x:l,y:m,width:D,height:L})}var We=Symbol("interpolate"),it=r=>r[We]!=null;function tt(r,l,m,D=1/0){let L={nearest:void 0,distanceSquared:D};for(let B of m){let H=B.distanceSquared(r,l);if(H===0)return{nearest:B,distanceSquared:0};H<L.distanceSquared&&(L.nearest=B,L.distanceSquared=H)}return L}function ot(r,l,m,D=1/0){var U,X;let{x:L=r,y:B=l}=(X=(U=m.transformPoint)==null?void 0:U.call(m,r,l))!=null?X:{},H={nearest:void 0,distanceSquared:D};for(let Q of m.children){let{nearest:ie,distanceSquared:ue}=Q.nearestSquared(L,B,H.distanceSquared);if(ue===0)return{nearest:ie,distanceSquared:ue};ue<H.distanceSquared&&(H.nearest=ie,H.distanceSquared=ue)}return H}function st(r,l,m){return Math.min(m,Math.max(r,l))}function St(r,l){let[m,D]=Xe(l);return st(m,r,D)}function Xe(r){if(r.length===0)return[];let l=[1/0,-1/0];for(let m of r)m<l[0]&&(l[0]=m),m>l[1]&&(l[1]=m);return l}function Ke(r){let[l,m]=Xe(r);return m-l}function Ye(r,l,m=1e-10){return r>=l[0]-m&&r<=l[1]+m}function Ze(r,l,m=1e-10){return Math.abs(r-l)<m}function Pe(r){return Math.sign(r)===-1||Object.is(r,-0)}function ct(r){return r%1===0}function dt(r,l=2){let m=10**l;return Math.round(r*m)/m}function bt(r,l){return Math.floor(r%l+(r<0?l:0))}function Pt(r){var L,B;if(Math.floor(r)===r)return 0;let l=String(r),m=0;if(r<1e-6||r>=1e21){let H;[l,H]=l.split("e"),H!=null&&(m=Number(H))}let D=(B=(L=l.split(".")[1])==null?void 0:L.length)!=null?B:0;return Math.max(D-m,0)}var Nt=class SP{constructor(l,m,D,L){this.x=l,this.y=m,this.width=D,this.height=L}static fromDOMRect({x:l,y:m,width:D,height:L}){return new SP(l,m,D,L)}static merge(l){let m=1/0,D=1/0,L=-1/0,B=-1/0;for(let H of l)H.x<m&&(m=H.x),H.y<D&&(D=H.y),H.x+H.width>L&&(L=H.x+H.width),H.y+H.height>B&&(B=H.y+H.height);return new SP(m,D,L-m,B-D)}static nearestBox(l,m,D){return tt(l,m,D)}toDOMRect(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.y,left:this.x,right:this.x+this.width,bottom:this.y+this.height,toJSON(){return{}}}}clone(){let{x:l,y:m,width:D,height:L}=this;return new SP(l,m,D,L)}equals(l){return this.x===l.x&&this.y===l.y&&this.width===l.width&&this.height===l.height}containsPoint(l,m){return xe.containsPoint(this,l,m)}containsBBox(l){let[m,D]=[this.x,this.x+this.width],[L,B]=[this.y,this.y+this.height],[H,U]=[l.x,l.x+l.width],[X,Q]=[l.y,l.y+l.height];return Math.min(m,H)===m&&Math.max(D,U)===D&&Math.min(L,X)===L&&Math.max(B,Q)===B}intersection(l){if(!this.collidesBBox(l))return;let m=st(l.x,this.x,l.x+l.width),D=st(l.y,this.y,l.y+l.height),L=st(l.x,this.x+this.width,l.x+l.width),B=st(l.y,this.y+this.height,l.y+l.height);return new SP(m,D,L-m,B-D)}collidesBBox(l){return this.x<l.x+l.width&&this.x+this.width>l.x&&this.y<l.y+l.height&&this.y+this.height>l.y}computeCenter(){return{x:this.x+this.width/2,y:this.y+this.height/2}}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)&&Number.isFinite(this.width)&&Number.isFinite(this.height)}distanceSquared(l,m){if(this.containsPoint(l,m))return 0;let D=l-st(this.x,l,this.x+this.width),L=m-st(this.y,m,this.y+this.height);return D*D+L*L}shrink(l,m){if(typeof l=="number")this.applyMargin(l,m);else for(let[D,L]of Object.entries(l))this.applyMargin(L,D);return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this}grow(l,m){if(typeof l=="number")this.applyMargin(-l,m);else for(let[D,L]of Object.entries(l))this.applyMargin(-L,D);return this}applyMargin(l,m){switch(m){case"top":this.y+=l;case"bottom":this.height-=l;break;case"left":this.x+=l;case"right":this.width-=l;break;case"vertical":this.y+=l,this.height-=l*2;break;case"horizontal":this.x+=l,this.width-=l*2;break;case void 0:this.x+=l,this.y+=l,this.width-=l*2,this.height-=l*2;break}}translate(l,m){return this.x+=l,this.y+=m,this}combine(l){let{x:m,y:D,width:L,height:B}=this;this.x=Math.min(m,l.x),this.y=Math.min(D,l.y),this.width=Math.max(m+L,l.x+l.width)-this.x,this.height=Math.max(D+B,l.y+l.height)-this.y}[We](l,m){return new SP(this.x*(1-m)+l.x*m,this.y*(1-m)+l.y*m,this.width*(1-m)+l.width*m,this.height*(1-m)+l.height*m)}};Nt.zero=Object.freeze(new Nt(0,0,0,0)),Nt.NaN=Object.freeze(new Nt(NaN,NaN,NaN,NaN));var ft=Nt;function Lt(r){return function(l,m){let D=`__${m}`;l[m]||Vt(l,m,D,r)}}function Vt(r,l,m,D){let{type:L="normal",changeCb:B,convertor:H,checkDirtyOnAssignment:U=!1}=D!=null?D:{},X={type:L,changeCb:B,checkDirtyOnAssignment:U,convertor:H},Q;switch(L){case"normal":Q=ln(m,X);break;case"transform":Q=ha(m);break;case"path":Q=Gn(m);break}Q=zi(Ii(Jt(Q,X),X),X),Object.defineProperty(r,l,{set:Q,get:function(){return this[m]},enumerable:!0,configurable:!0})}function Jt(r,l){let{convertor:m}=l;return m?function(D){r.call(this,m(D))}:r}var $t=Symbol("no-change");function Ii(r,l){let{changeCb:m}=l;return m?function(D){let L=r.call(this,D);return L!==$t&&m.call(this,this),L}:r}function zi(r,l){let{checkDirtyOnAssignment:m}=l;return m?function(D){let L=r.call(this,D);return L!==$t&&(D==null?void 0:D._dirty)===!0&&this.markDirty(),L}:r}function ln(r,l){let{changeCb:m}=l;return function(D){let L=this[r];return D!==L?(this[r]=D,this.markDirty(),m==null||m(this),D):$t}}function ha(r){return function(l){let m=this[r];return l!==m?(this[r]=l,this.markDirtyTransform(),l):$t}}function Gn(r){return function(l){let m=this[r];return l!==m?(this[r]=l,this._dirtyPath||(this._dirtyPath=!0,this.markDirty()),l):$t}}var qn=(r=>(r[r.All=0]="All",r[r.None=1]="None",r))(qn||{}),Qn=class XX{constructor(l){var m,D;this.serialNumber=XX._nextSerialNumber++,this.childNodeCounts={groups:0,nonGroups:0,thisComplexity:0,complexity:0},this.id=Y(this),this.pointerEvents=0,this._dirty=!0,this.dirtyZIndex=!1,this.isContainerNode=!1,this.visible=!0,this.zIndex=0,this.name=l==null?void 0:l.name,this.tag=(m=l==null?void 0:l.tag)!=null?m:NaN,this.zIndex=(D=l==null?void 0:l.zIndex)!=null?D:0}static toSVG(l,m,D){var H,U;let L=l==null?void 0:l.toSVG();if(L==null||!L.elements.length&&!((H=L.defs)!=null&&H.length))return;let B=document.createElementNS("http://www.w3.org/2000/svg","svg");if(B.setAttribute("width",String(m)),B.setAttribute("height",String(D)),B.setAttribute("viewBox",`0 0 ${m} ${D}`),(U=L.defs)!=null&&U.length){let X=document.createElementNS("http://www.w3.org/2000/svg","defs");X.append(...L.defs),B.append(X)}return B.append(...L.elements),B.outerHTML}static*extractBBoxes(l,m){for(let D of l)if(!m||D.visible&&!D.transitionOut){let L=D.getBBox();L&&(yield L)}}get datum(){var l,m;return(m=this._datum)!=null?m:(l=this.parentNode)==null?void 0:l.datum}set datum(l){this._datum!==l&&(this._previousDatum=this._datum,this._datum=l)}get previousDatum(){return this._previousDatum}get layerManager(){return this._layerManager}get dirty(){return this._dirty}preRender(l=1){this.childNodeCounts.groups=0,this.childNodeCounts.nonGroups=1,this.childNodeCounts.complexity=l,this.childNodeCounts.thisComplexity=l;for(let m of this.children()){let D=m.preRender();this.childNodeCounts.groups+=D.groups,this.childNodeCounts.nonGroups+=D.nonGroups,this.childNodeCounts.complexity+=D.complexity}return this.childNodeCounts}render(l){var D,L;let{stats:m}=l;if(this._dirty=!1,l.debugNodeSearch){let B=(D=this.name)!=null?D:this.id;l.debugNodeSearch.some(H=>typeof H=="string"?H===B:H.test(B))&&(l.debugNodes[(L=this.name)!=null?L:this.id]=this)}m&&(m.nodesRendered++,m.opsPerformed+=this.childNodeCounts.thisComplexity)}_setLayerManager(l){this._layerManager=l,this._debug=l==null?void 0:l.debug;for(let m of this.children())m._setLayerManager(l)}sortChildren(l){if(this.dirtyZIndex=!1,!this.childNodes)return;let m=[...this.childNodes].sort(l);this.childNodes.clear();for(let D of m)this.childNodes.add(D)}*traverseUp(l){let m=this;for(l&&(yield m);m=m.parentNode;)yield m}*children(){if(this.childNodes)for(let l of this.childNodes)yield l}isLeaf(){var l;return!((l=this.childNodes)!=null&&l.size)}isRoot(){return!this.parentNode}append(l){var m,D;(m=this.childNodes)!=null||(this.childNodes=new Set);for(let L of fe(l))(D=L.parentNode)==null||D.removeChild(L),this.childNodes.add(L),L.parentNode=this,L._setLayerManager(this.layerManager);this.invalidateCachedBBox(),this.dirtyZIndex=!0,this.markDirty()}appendChild(l){return this.append(l),l}removeChild(l){var m;return(m=this.childNodes)!=null&&m.delete(l)?(delete l.parentNode,l._setLayerManager(),this.invalidateCachedBBox(),this.dirtyZIndex=!0,this.markDirty(),!0):!1}remove(){var l,m;return(m=(l=this.parentNode)==null?void 0:l.removeChild(this))!=null?m:!1}clear(){var l;for(let m of this.children())delete m.parentNode,m._setLayerManager();(l=this.childNodes)==null||l.clear(),this.invalidateCachedBBox()}destroy(){var l;(l=this.parentNode)==null||l.removeChild(this)}setProperties(l,m){if(m)for(let D of m)this[D]=l[D];else Object.assign(this,l);return this}containsPoint(l,m){return!1}pickNode(l,m,D=!1){if(!this.visible||this.pointerEvents===1||!this.containsPoint(l,m))return;let L=[...this.children()];if(L.length>1e3)for(let B=L.length-1;B>=0;B--){let H=L[B],X=H.containsPoint(l,m)?H.pickNode(l,m):void 0;if(X)return X}else if(L.length)for(let B=L.length-1;B>=0;B--){let H=L[B].pickNode(l,m);if(H)return H}else if(!this.isContainerNode)return this}invalidateCachedBBox(){var l;this.cachedBBox!=null&&(this.cachedBBox=void 0,(l=this.parentNode)==null||l.invalidateCachedBBox())}getBBox(){return this.cachedBBox==null&&(this.cachedBBox=Object.freeze(this.computeBBox())),this.cachedBBox}computeBBox(){}markDirty(){let{_dirty:l}=this;this.cachedBBox==null&&l||(this.invalidateCachedBBox(),this._dirty=!0,this.parentNode&&this.parentNode.markDirty())}markClean(){if(this._dirty){this._dirty=!1;for(let l of this.children())l.markClean()}}onZIndexChange(){let{parentNode:l}=this;l&&(l.dirtyZIndex=!0)}toSVG(){}};Qn._nextSerialNumber=0,T([Lt()],Qn.prototype,"visible",2),T([Lt({changeCb:r=>r.onZIndexChange()})],Qn.prototype,"zIndex",2);var na=Qn,fo=(r,l,m)=>r*(1-m)+l*m,Yl=r=>{let l=r<0?-1:1,m=Math.abs(r);return m<=.04045?r/12.92:l*((m+.055)/1.055)**2.4},Wu=r=>{let l=r<0?-1:1,m=Math.abs(r);return m>.0031308?l*(1.055*m**(1/2.4)-.055):12.92*r},Kd=class $o{constructor(l,m,D,L=1){this.r=st(0,l||0,1),this.g=st(0,m||0,1),this.b=st(0,D||0,1),this.a=st(0,L||0,1)}static validColorString(l){return l.indexOf("#")>=0?!!$o.parseHex(l):l.indexOf("rgb")>=0?!!$o.stringToRgba(l):!!$o.nameToHex.has(l.toLowerCase())}static fromString(l){if(l.indexOf("#")>=0)return $o.fromHexString(l);let m=$o.nameToHex.get(l.toLowerCase());if(m)return $o.fromHexString(m);if(l.indexOf("rgb")>=0)return $o.fromRgbaString(l);throw new Error(`Invalid color string: '${l}'`)}static parseHex(l){l=l.replace(/ /g,"").slice(1);let m;switch(l.length){case 6:case 8:m=[];for(let D=0;D<l.length;D+=2)m.push(parseInt(`${l[D]}${l[D+1]}`,16));break;case 3:case 4:m=l.split("").map(D=>parseInt(D,16)).map(D=>D+D*16);break}if((m==null?void 0:m.length)>=3&&m.every(D=>D>=0))return m.length===3&&m.push(255),m}static fromHexString(l){let m=$o.parseHex(l);if(m){let[D,L,B,H]=m;return new $o(D/255,L/255,B/255,H/255)}throw new Error(`Malformed hexadecimal color string: '${l}'`)}static stringToRgba(l){let m=-1,D=-1;for(let U=0;U<l.length;U++){let X=l[U];if(m===-1&&X==="(")m=U;else if(X===")"){D=U;break}}if(m===-1||D===-1)return;let B=l.substring(m+1,D).split(","),H=[];for(let U=0;U<B.length;U++){let X=B[U],Q=parseFloat(X);if(!Number.isFinite(Q))return;X.indexOf("%")>=0?(Q=st(0,Q,100),Q/=100):U===3?Q=st(0,Q,1):(Q=st(0,Q,255),Q/=255),H.push(Q)}return H}static fromRgbaString(l){let m=$o.stringToRgba(l);if(m){if(m.length===3)return new $o(m[0],m[1],m[2]);if(m.length===4)return new $o(m[0],m[1],m[2],m[3])}throw new Error(`Malformed rgb/rgba color string: '${l}'`)}static fromArray(l){if(l.length===4)return new $o(l[0],l[1],l[2],l[3]);if(l.length===3)return new $o(l[0],l[1],l[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")}static fromHSB(l,m,D,L=1){let B=$o.HSBtoRGB(l,m,D);return new $o(B[0],B[1],B[2],L)}static fromHSL(l,m,D,L=1){let B=$o.HSLtoRGB(l,m,D);return new $o(B[0],B[1],B[2],L)}static fromOKLCH(l,m,D,L=1){let B=$o.OKLCHtoRGB(l,m,D);return new $o(B[0],B[1],B[2],L)}static padHex(l){return l.length===1?"0"+l:l}toHexString(){let l="#"+$o.padHex(Math.round(this.r*255).toString(16))+$o.padHex(Math.round(this.g*255).toString(16))+$o.padHex(Math.round(this.b*255).toString(16));return this.a<1&&(l+=$o.padHex(Math.round(this.a*255).toString(16))),l}toRgbaString(l=3){let m=[Math.round(this.r*255),Math.round(this.g*255),Math.round(this.b*255)],D=Math.pow(10,l);return this.a!==1?(m.push(Math.round(this.a*D)/D),`rgba(${m.join(", ")})`):`rgb(${m.join(", ")})`}toString(){return this.a===1?this.toHexString():this.toRgbaString()}toHSB(){return $o.RGBtoHSB(this.r,this.g,this.b)}static RGBtoOKLCH(l,m,D){let L=Yl(l),B=Yl(m),H=Yl(D),U=Math.cbrt(.4122214708*L+.5363325363*B+.0514459929*H),X=Math.cbrt(.2119034982*L+.6806995451*B+.1073969566*H),Q=Math.cbrt(.0883024619*L+.2817188376*B+.6299787005*H),ie=.2104542553*U+.793617785*X-.0040720468*Q,ue=1.9779984951*U-2.428592205*X+.4505937099*Q,be=.0259040371*U+.7827717662*X-.808675766*Q,ye=Math.atan2(be,ue)*180/Math.PI,Me=ie,Ie=Math.hypot(ue,be),Oe=ye>=0?ye:ye+360;return[Me,Ie,Oe]}static OKLCHtoRGB(l,m,D){let L=l,B=m*Math.cos(D*Math.PI/180),H=m*Math.sin(D*Math.PI/180),U=(L+.3963377774*B+.2158037573*H)**3,X=(L-.1055613458*B-.0638541728*H)**3,Q=(L-.0894841775*B-1.291485548*H)**3,ie=4.0767416621*U-3.3077115913*X+.2309699292*Q,ue=-1.2684380046*U+2.6097574011*X-.3413193965*Q,be=-.0041960863*U-.7034186147*X+1.707614701*Q,ye=Wu(ie),Me=Wu(ue),Ie=Wu(be);return[ye,Me,Ie]}static RGBtoHSL(l,m,D){let L=Math.min(l,m,D),B=Math.max(l,m,D),H=(B+L)/2,U,X;if(B===L)U=0,X=0;else{let Q=B-L;X=H>.5?Q/(2-B-L):Q/(B+L),B===l?U=(m-D)/Q+(m<D?6:0):B===m?U=(D-l)/Q+2:U=(l-m)/Q+4,U*=360/6}return[U,X,H]}static HSLtoRGB(l,m,D){if(l=(l%360+360)%360,m===0)return[D,D,D];let L=D<.5?D*(1+m):D+m-D*m,B=2*D-L;function H(ie){return ie<0&&(ie+=1),ie>1&&(ie-=1),ie<1/6?B+(L-B)*6*ie:ie<1/2?L:ie<2/3?B+(L-B)*(2/3-ie)*6:B}let U=H(l/360+1/3),X=H(l/360),Q=H(l/360-1/3);return[U,X,Q]}static RGBtoHSB(l,m,D){let L=Math.min(l,m,D),B=Math.max(l,m,D),H=B===0?0:(B-L)/B,U=0;if(L!==B){let X=B-L,Q=(B-l)/X,ie=(B-m)/X,ue=(B-D)/X;l===B?U=ue-ie:m===B?U=2+Q-ue:U=4+ie-Q,U/=6,U<0&&(U=U+1)}return[U*360,H,B]}static HSBtoRGB(l,m,D){l=(l%360+360)%360/360;let L=0,B=0,H=0;if(m===0)L=B=H=D;else{let U=(l-Math.floor(l))*6,X=U-Math.floor(U),Q=D*(1-m),ie=D*(1-m*X),ue=D*(1-m*(1-X));switch(U>>0){case 0:L=D,B=ue,H=Q;break;case 1:L=ie,B=D,H=Q;break;case 2:L=Q,B=D,H=ue;break;case 3:L=Q,B=ie,H=D;break;case 4:L=ue,B=Q,H=D;break;case 5:L=D,B=Q,H=ie;break}}return[L,B,H]}static mix(l,m,D){return new $o(fo(l.r,m.r,D),fo(l.g,m.g,D),fo(l.b,m.b,D),fo(l.a,m.a,D))}};Kd.nameToHex=new Map([["aliceblue","#F0F8FF"],["antiquewhite","#FAEBD7"],["aqua","#00FFFF"],["aquamarine","#7FFFD4"],["azure","#F0FFFF"],["beige","#F5F5DC"],["bisque","#FFE4C4"],["black","#000000"],["blanchedalmond","#FFEBCD"],["blue","#0000FF"],["blueviolet","#8A2BE2"],["brown","#A52A2A"],["burlywood","#DEB887"],["cadetblue","#5F9EA0"],["chartreuse","#7FFF00"],["chocolate","#D2691E"],["coral","#FF7F50"],["cornflowerblue","#6495ED"],["cornsilk","#FFF8DC"],["crimson","#DC143C"],["cyan","#00FFFF"],["darkblue","#00008B"],["darkcyan","#008B8B"],["darkgoldenrod","#B8860B"],["darkgray","#A9A9A9"],["darkgreen","#006400"],["darkgrey","#A9A9A9"],["darkkhaki","#BDB76B"],["darkmagenta","#8B008B"],["darkolivegreen","#556B2F"],["darkorange","#FF8C00"],["darkorchid","#9932CC"],["darkred","#8B0000"],["darksalmon","#E9967A"],["darkseagreen","#8FBC8F"],["darkslateblue","#483D8B"],["darkslategray","#2F4F4F"],["darkslategrey","#2F4F4F"],["darkturquoise","#00CED1"],["darkviolet","#9400D3"],["deeppink","#FF1493"],["deepskyblue","#00BFFF"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1E90FF"],["firebrick","#B22222"],["floralwhite","#FFFAF0"],["forestgreen","#228B22"],["fuchsia","#FF00FF"],["gainsboro","#DCDCDC"],["ghostwhite","#F8F8FF"],["gold","#FFD700"],["goldenrod","#DAA520"],["gray","#808080"],["green","#008000"],["greenyellow","#ADFF2F"],["grey","#808080"],["honeydew","#F0FFF0"],["hotpink","#FF69B4"],["indianred","#CD5C5C"],["indigo","#4B0082"],["ivory","#FFFFF0"],["khaki","#F0E68C"],["lavender","#E6E6FA"],["lavenderblush","#FFF0F5"],["lawngreen","#7CFC00"],["lemonchiffon","#FFFACD"],["lightblue","#ADD8E6"],["lightcoral","#F08080"],["lightcyan","#E0FFFF"],["lightgoldenrodyellow","#FAFAD2"],["lightgray","#D3D3D3"],["lightgreen","#90EE90"],["lightgrey","#D3D3D3"],["lightpink","#FFB6C1"],["lightsalmon","#FFA07A"],["lightseagreen","#20B2AA"],["lightskyblue","#87CEFA"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#B0C4DE"],["lightyellow","#FFFFE0"],["lime","#00FF00"],["limegreen","#32CD32"],["linen","#FAF0E6"],["magenta","#FF00FF"],["maroon","#800000"],["mediumaquamarine","#66CDAA"],["mediumblue","#0000CD"],["mediumorchid","#BA55D3"],["mediumpurple","#9370DB"],["mediumseagreen","#3CB371"],["mediumslateblue","#7B68EE"],["mediumspringgreen","#00FA9A"],["mediumturquoise","#48D1CC"],["mediumvioletred","#C71585"],["midnightblue","#191970"],["mintcream","#F5FFFA"],["mistyrose","#FFE4E1"],["moccasin","#FFE4B5"],["navajowhite","#FFDEAD"],["navy","#000080"],["oldlace","#FDF5E6"],["olive","#808000"],["olivedrab","#6B8E23"],["orange","#FFA500"],["orangered","#FF4500"],["orchid","#DA70D6"],["palegoldenrod","#EEE8AA"],["palegreen","#98FB98"],["paleturquoise","#AFEEEE"],["palevioletred","#DB7093"],["papayawhip","#FFEFD5"],["peachpuff","#FFDAB9"],["peru","#CD853F"],["pink","#FFC0CB"],["plum","#DDA0DD"],["powderblue","#B0E0E6"],["purple","#800080"],["rebeccapurple","#663399"],["red","#FF0000"],["rosybrown","#BC8F8F"],["royalblue","#4169E1"],["saddlebrown","#8B4513"],["salmon","#FA8072"],["sandybrown","#F4A460"],["seagreen","#2E8B57"],["seashell","#FFF5EE"],["sienna","#A0522D"],["silver","#C0C0C0"],["skyblue","#87CEEB"],["slateblue","#6A5ACD"],["slategray","#708090"],["slategrey","#708090"],["snow","#FFFAFA"],["springgreen","#00FF7F"],["steelblue","#4682B4"],["tan","#D2B48C"],["teal","#008080"],["thistle","#D8BFD8"],["tomato","#FF6347"],["transparent","#00000000"],["turquoise","#40E0D0"],["violet","#EE82EE"],["wheat","#F5DEB3"],["white","#FFFFFF"],["whitesmoke","#F5F5F5"],["yellow","#FFFF00"],["yellowgreen","#9ACD32"]]);var To=Kd;function nd(r,l){return m=>Number(r)*(1-m)+Number(l)*m}function Qi(r,l){if(typeof r=="string")try{r=To.fromString(r)}catch(m){r=To.fromArray([0,0,0])}if(typeof l=="string")try{l=To.fromString(l)}catch(m){l=To.fromArray([0,0,0])}return m=>To.mix(r,l,m).toRgbaString()}var Nr=Symbol("BREAK"),Rs="__decorator_config";function Uu(r,l){Object.getOwnPropertyDescriptor(r,Rs)==null&&Object.defineProperty(r,Rs,{value:{}});let m=r[Rs],D=l.toString();if(typeof m[D]!="undefined")return m[D];let L=new WeakMap;m[D]={setters:[],getters:[],observers:[],valuesMap:L};let B=Object.getOwnPropertyDescriptor(r,l),H=B==null?void 0:B.set,U=B==null?void 0:B.get;return Object.defineProperty(r,l,{set:function(ie){let{setters:ue,observers:be}=m[D],ye;ue.some(Me=>Me.length>2)&&(ye=U?U.call(this):L.get(this));for(let Me of ue)if(ie=Me(this,l,ie,ye),ie===Nr)return;H?H.call(this,ie):L.set(this,ie);for(let Me of be)Me(this,ie,ye)},get:function(){let ie=U?U.call(this):L.get(this);for(let ue of m[D].getters)if(ie=ue(this,l,ie),ie===Nr)return;return ie},enumerable:!0,configurable:!1}),m[D]}function Vn(r,l,m){return(D,L)=>{let B=Uu(D,L);B.setters.push(r),l&&B.getters.unshift(l),m&&Object.assign(B,m)}}function qd(r){return(l,m)=>{Uu(l,m).observers.push(r)}}function Ps(r){return typeof r!="undefined"&&Rs in r}function is(r){let l=new Set;for(;Ps(r);)l.add(r==null?void 0:r[Rs]),r=Object.getPrototypeOf(r);return Array.from(l).flatMap(m=>Object.keys(m))}function hl(r){return is(r).reduce((l,m)=>{var D;return l[m]=(D=r[m])!=null?D:null,l},{})}function Sa(r,l){let m=l.toString();for(;Ps(r);){let D=r[Rs];if(Object.hasOwn(D,m))return D[m];r=Object.getPrototypeOf(r)}}function cr(r){return r!=null}function La(r){return Array.isArray(r)}function Oh(r){return typeof r=="boolean"}function Fh(r){return r instanceof Date}function Ro(r){return Fh(r)&&!isNaN(Number(r))}function Kg(r){return r instanceof RegExp}function gl(r){return typeof r=="function"}function Jn(r){return typeof r=="object"&&r!==null&&!La(r)}function xc(r){return La(r)||ns(r)}function ns(r){return typeof r=="object"&&r!==null&&Object.getPrototypeOf(r)===Object.prototype}function wa(r){return typeof r=="string"}function as(r){return typeof r=="number"}function ea(r){return Number.isFinite(r)}function BC(r){return typeof window!="undefined"&&r instanceof HTMLElement}function LA(r,l){return wa(l)&&Object.keys(r).includes(l)}function GC(r,l){return Object.values(r).includes(l)}function Ku(r){return typeof r=="symbol"}function Zw(r,l){return r.type!==l}function qg(r,l){return Array.isArray(r)?!Array.isArray(l)||r.length!==l.length?!1:r.every((m,D)=>qg(m,l[D])):ns(r)?ns(l)?rm(r,l,qg):!1:r===l}function rm(r,l,m){for(let D of Object.keys(l))if(!(D in r))return!1;for(let D of Object.keys(r))if(!(D in l)||!m(r[D],l[D]))return!1;return!0}function Mc(...r){return mn(...r.reverse())}function mn(...r){var m;let l={};for(let D of r){if(!Jn(D))continue;let L=Ps(D)?is(D):Object.keys(D);for(let B of L)ns(l[B])&&ns(D[B])?l[B]=mn(l[B],D[B]):(m=l[B])!=null||(l[B]=D[B])}return l}function sm(r,...l){return l&&La(r)?r.map(m=>mn(m,...l)):r}function _h(r,l){return Object.entries(r).reduce((m,[D,L])=>(m[D]=l(L,D,r),m),{})}function ad(r,l){let m=ge({},r);for(let D of l)delete m[D];return m}function od(r,l){return(La(l)?l:l.split(".")).reduce((D,L)=>D[L],r)}var Ls=new Set(["__proto__","constructor","prototype"]);function Vf(r,l,m){let D=La(l)?l.slice():l.split("."),L=D.pop();if(D.some(H=>Ls.has(H)))return;let B=D.reduce((H,U)=>H[U],r);return B[L]=m,B[L]}function Nh(r,l,m){if(m===void 0)return l;for(let D of r){let L=m[D];L!==void 0&&(l[D]=L)}return l}function Xl(r){return Object.freeze(r),Object.getOwnPropertyNames(r).forEach(l=>{let m=r[l];m!==null&&(typeof m=="object"||typeof m=="function")&&!Object.isFrozen(m)&&Xl(m)}),r}var kc={};A(kc,{easeIn:()=>Oa,easeInOut:()=>lm,easeInOutQuad:()=>Jw,easeInQuad:()=>$w,easeOut:()=>zh,easeOutQuad:()=>Qw,inverseEaseOut:()=>ky,linear:()=>mi});var mi=r=>r,Oa=r=>1-Math.cos(r*Math.PI/2),zh=r=>Math.sin(r*Math.PI/2),lm=r=>-(Math.cos(r*Math.PI)-1)/2,$w=r=>r*r,Qw=r=>1-(1-r)**2,Jw=r=>r<.5?2*r*r:1-(-2*r+2)**2/2,ky=r=>2*Math.asin(r)/Math.PI,rd=.2,Ac=["initial","remove","update","add","trailing","end","none"],sd={initial:{animationDuration:1,animationDelay:0},add:{animationDuration:.25,animationDelay:.75},remove:{animationDuration:.25,animationDelay:0},update:{animationDuration:.5,animationDelay:.25},trailing:{animationDuration:rd,animationDelay:1,skipIfNoEarlierAnimations:!0},end:{animationDelay:1+rd,animationDuration:0,skipIfNoEarlierAnimations:!0},none:{animationDuration:0,animationDelay:0}},Ay=(r=>(r.Loop="loop",r.Reverse="reverse",r))(Ay||{});function VC(r){return r.every(l=>l instanceof na)}function jf(r){return VC(r)?{nodes:r,selections:[]}:{nodes:[],selections:r}}function dr(r,l){return r===l?!0:Array.isArray(r)&&Array.isArray(l)?r.length===l.length&&r.every((m,D)=>dr(m,l[D])):it(r)&&it(l)?r.equals(l):ns(r)&&ns(l)?rm(r,l,dr):!1}var Dy=class{constructor(r){var m,D,L,B,H,U,X;this.isComplete=!1,this.elapsed=0,this.iteration=0,this.isPlaying=!1,this.isReverse=!1,this.id=r.id,this.groupId=r.groupId,this.autoplay=(m=r.autoplay)!=null?m:!0,this.ease=(D=r.ease)!=null?D:mi,this.phase=r.phase;let l=(L=r.duration)!=null?L:sd[this.phase].animationDuration;this.duration=l*r.defaultDuration,this.delay=((B=r.delay)!=null?B:0)*r.defaultDuration,this.onComplete=r.onComplete,this.onPlay=r.onPlay,this.onStop=r.onStop,this.onUpdate=r.onUpdate,this.interpolate=this.createInterpolator(r.from,r.to),this.from=r.from,r.skip===!0&&((H=this.onUpdate)==null||H.call(this,r.to,!1,this),(U=this.onStop)==null||U.call(this,this),(X=this.onComplete)==null||X.call(this,this),this.isComplete=!0),r.collapsable!==!1&&(this.duration=this.checkCollapse(r,this.duration))}checkCollapse(r,l){return dr(r.from,r.to)?0:l}play(r=!1){var l,m;this.isPlaying||this.isComplete||(this.isPlaying=!0,(l=this.onPlay)==null||l.call(this,this),this.autoplay&&(this.autoplay=!1,r&&((m=this.onUpdate)==null||m.call(this,this.from,!0,this))))}pause(){this.isPlaying=!1}stop(){var r;this.isPlaying=!1,this.isComplete||(this.isComplete=!0,(r=this.onStop)==null||r.call(this,this))}update(r){var L,B;if(this.isComplete)return r;!this.isPlaying&&this.autoplay&&this.play(!0);let l=this.elapsed;if(this.elapsed+=r,this.delay>this.elapsed)return 0;let m=this.interpolate(this.isReverse?1-this.delta:this.delta);(L=this.onUpdate)==null||L.call(this,m,!1,this);let D=this.delay+this.duration;return this.elapsed>=D?(this.stop(),this.isComplete=!0,(B=this.onComplete)==null||B.call(this,this),r-(D-l)):0}get delta(){return this.ease(st(0,(this.elapsed-this.delay)/this.duration,1))}createInterpolator(r,l){if(typeof l!="object"||it(l))return this.interpolateValue(r,l);let m=[];for(let D of Object.keys(l)){let L=this.interpolateValue(r[D],l[D]);L!=null&&m.push([D,L])}return D=>{let L={};for(let[B,H]of m)L[B]=H(D);return L}}interpolateValue(r,l){if(!(r==null||l==null)){if(it(r))return m=>r[We](l,m);try{switch(typeof r){case"number":return nd(r,l);case"string":return Qi(r,l);case"boolean":if(r===l)return()=>r;break}}catch(m){}throw new Error(`Unable to interpolate values: ${r}, ${l}`)}}},os={added:"add",updated:"update",removed:"remove",unknown:"initial","no-op":"none"};function ri(r,l,m,D,L,B,H){let{fromFn:U,toFn:X,applyFn:Q=(Me,Ie)=>Me.setProperties(Ie)}=L,{nodes:ie,selections:ue}=jf(D),be=(Me,Ie)=>{var Qe;let Oe,Re=0,Be=0;for(let nt of Ie){let rt=Me[Re]===nt,ut={last:Be>=Ie.length-1,lastLive:Re>=Me.length-1,prev:Ie[Be-1],prevFromProps:Oe,prevLive:Me[Re-1],next:Ie[Be+1],nextLive:Me[Re+(rt?1:0)]},Mt=`${r}_${l}_${nt.id}`;m.stopByAnimationId(Mt);let Tt="unknown";rt?B&&H&&(Tt=ex(nt,nt.datum,B,H)):Tt="removed",nt.transitionOut=Tt==="removed";let Ue=U(nt,nt.datum,Tt,ut),{phase:_t,start:Kt,finish:gi,delay:Ci,duration:xi}=Ue,li=wi(Ue,["phase","start","finish","delay","duration"]),Ne=X(nt,nt.datum,Tt,ut),{phase:Bi,start:Fi,finish:hn,delay:ji,duration:An}=Ne,Zi=wi(Ne,["phase","start","finish","delay","duration"]),Ki=gi==null;m.animate({id:Mt,groupId:r,phase:(Qe=_t!=null?_t:Bi)!=null?Qe:"update",duration:xi!=null?xi:An,delay:Ci!=null?Ci:ji,from:li,to:Zi,ease:zh,collapsable:Ki,onPlay:()=>{Q(nt,ge(ge(ge({},Kt),Fi),li))},onUpdate(Dn){Q(nt,Dn)},onStop:()=>{Q(nt,ge(ge(ge(ge(ge(ge({},Kt),Fi),li),Zi),gi),hn))}}),rt&&Re++,Be++,Oe=li}},ye=0;for(let Me of ue){let Ie=Me.nodes(),Oe=Ie.filter(Re=>!Me.isGarbage(Re));be(Oe,Ie),m.animate({id:`${r}_${l}_selection_${ye}`,groupId:r,phase:"end",from:0,to:1,ease:zh,onStop(){Me.cleanup()}}),ye++}be(ie,ie)}function ld(r,l,m,D,L,B,H){let{nodes:U,selections:X}=jf(D),{start:Q,finish:ie,phase:ue}=H;m.animate({id:`${r}_${l}`,groupId:r,phase:ue!=null?ue:"update",from:L,to:B,ease:zh,onPlay:()=>{if(Q){for(let be of U)be.setProperties(Q);for(let be of X)for(let ye of be.nodes())ye.setProperties(Q)}},onUpdate(be){for(let ye of U)ye.setProperties(be);for(let ye of X)for(let Me of ye.nodes())Me.setProperties(be)},onStop:()=>{for(let be of U)be.setProperties(ge(ge({},B),ie));for(let be of X){for(let ye of be.nodes())ye.setProperties(ge(ge({},B),ie));be.cleanup()}}})}function ex(r,l,m,D){let L=m(r,l);return D.added.has(L)?"added":D.removed.has(L)?"removed":"updated"}var Ey=new Map;function Yg(r,l){Ey.has(l)||(Ey.set(l,!0),r())}Yg.clear=()=>Ey.clear();function jC(r){return r}function cm(r,l=0,m){let{leading:D=!1,trailing:L=!0,maxWait:B=1/0}=m!=null?m:{},H,U;if(B<l)throw new Error("Value of maxWait cannot be lower than waitMs.");function X(...Q){if(D&&!U){U=Date.now(),H=setTimeout(()=>U=null,l),r(...Q);return}let ie=l;if(B!==1/0&&U){let ue=Date.now()-U;l>B-ue&&(ie=B-ue)}clearTimeout(H),U!=null||(U=Date.now()),H=setTimeout(()=>{U=null,L&&r(...Q)},ie)}return Object.assign(X,{cancel(){clearTimeout(H),U=null}})}function Iy(r,l,m){let{leading:D=!0,trailing:L=!0}=m!=null?m:{},B,H,U=!1;function X(){L&&H?(B=setTimeout(X,l),r(...H)):U=!1,H=null}function Q(...ie){U?H=ie:(U=!0,B=setTimeout(X,l),D?r(...ie):H=ie)}return Object.assign(Q,{cancel(){clearTimeout(B),U=!1,H=null}})}var vi={log(...r){console.log(...r)},warn(r,...l){console.warn(`AG Charts - ${r}`,...l)},error(r,...l){typeof r=="object"?console.error("AG Charts error",r,...l):console.error(`AG Charts - ${r}`,...l)},table(...r){console.table(...r)},warnOnce(r,...l){Yg(()=>vi.warn(r,...l),`Logger.warn: ${r}`)},errorOnce(r,...l){Yg(()=>vi.error(r,...l),`Logger.error: ${r}`)}},zr=(r,l)=>{let m=Symbol(String(l));r[m]=void 0,Object.defineProperty(r,l,{get(){return this[m]},set(D){this[m]!==D&&(this[m]=D,this.invalid=!0)},enumerable:!0,configurable:!1})},Yd=class $V{constructor(l,m){this.invalid=!0,this.nice=!1,this.interval=void 0,this.tickCount=$V.defaultTickCount,this.minTickCount=0,this.maxTickCount=1/0,this.niceDomain=[],this.defaultClamp=!1,this.domain=l,this.range=m}static is(l){return l instanceof $V}transform(l){return l}transformInvert(l){return l}calcBandwidth(l=1){let m=this.getDomain(),D=this.getPixelRange(),L=Math.abs(m[1]-m[0])/l+1,B=Math.floor(D),H=Math.min(L,B);return D/Math.max(1,H)}getDomain(){return this.nice&&(this.refresh(),this.niceDomain.length)?this.niceDomain:this.domain}convert(l,m){if(!this.domain||this.domain.length<2)return NaN;this.refresh();let D=this.getDomain().map(Q=>this.transform(Q)),[L,B]=D,{range:H}=this,[U,X]=H;if(l=this.transform(l),m!=null?m:this.defaultClamp){let[Q,ie]=Xe(D.map(Number));if(Number(l)<Q)return U;if(Number(l)>ie)return X}return L===B?(U+X)/2:l===L?U:l===B?X:U+(Number(l)-Number(L))/(Number(B)-Number(L))*(X-U)}invert(l,m){this.refresh();let D=this.getDomain().map(ye=>this.transform(ye)),[L,B]=D,{range:H}=this,[U,X]=H,Q=U>X,ie=Q?X:U,ue=Q?U:X;if(m!=null?m:this.defaultClamp){if(l<ie)return Q?B:L;if(l>ue)return Q?L:B}let be;return U===X?be=this.toDomain((Number(L)+Number(B))/2):be=this.toDomain(Number(L)+(l-U)/(X-U)*(Number(B)-Number(L))),this.transformInvert(be)}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&vi.warnOnce("Expected update to not invalidate scale"))}getPixelRange(){let[l,m]=this.range;return Math.abs(m-l)}};Yd.defaultTickCount=5,Yd.defaultMaxTickCount=6,T([zr],Yd.prototype,"domain",2),T([zr],Yd.prototype,"range",2),T([zr],Yd.prototype,"nice",2),T([zr],Yd.prototype,"interval",2),T([zr],Yd.prototype,"tickCount",2),T([zr],Yd.prototype,"minTickCount",2),T([zr],Yd.prototype,"maxTickCount",2);var Fa=Yd;function Xg(r){if(r.length===0)return null;let l=1/0,m=-1/0;for(let L of r)L instanceof Date&&(L=L.getTime()),typeof L=="number"&&(L<l&&(l=L),L>m&&(m=L));let D=[l,m];return D.every(isFinite)?D:null}function Os(r,l,m){var L;let D=!1;return r.length>2&&(r=(L=Xg(r))!=null?L:[NaN,NaN]),isNaN(l)||(D||(D=l>r[0]),r=[l,r[1]]),isNaN(m)||(D||(D=m<r[1]),r=[r[0],m]),r[0]>r[1]&&(r=[]),{extent:r,clipped:D}}function Bh(r,l){if(r==null||l==null||r.length!==l.length)return!1;for(let m=0;m<r.length;m++)if(Array.isArray(r[m])&&Array.isArray(l[m])){if(!Bh(r[m],l[m]))return!1}else if(r[m]!==l[m])return!1;return!0}function HC(r){return typeof r=="undefined"?[]:Array.isArray(r)?r:[r]}function Hf(r){return Array.from(new Set(r))}function Zl(r,l){return r.reduce((m,D)=>{var B;let L=l(D);return(B=m[L])!=null||(m[L]=[]),m[L].push(D),m},{})}function ii(r,l,m=0){if(r.length===0)return[];let D=[];for(let L=0;L<l;L++)D.push(r.at((L+m)%r.length));return D}function aa(r,l){let m=new Map;return l.forEach((D,L)=>{m.set(D,L)}),r.sort((D,L)=>{var U,X;let B=(U=m.get(D))!=null?U:1/0,H=(X=m.get(L))!=null?X:1/0;return B-H})}function Zg(r,l){return r.includes(l)}var $g=1e3,Po=$g*60,$l=Po*60,Fs=$l*24,so=Fs*7,Dc=Fs*30,lo=Fs*365,Ql=class{constructor(r,l,m){this._encode=r,this._decode=l,this._rangeCallback=m}floor(r){let l=new Date(r),m=this._encode(l);return this._decode(m)}ceil(r){let l=new Date(Number(r)-1),m=this._encode(l);return this._decode(m+1)}range(r,l,m){var U;let D=(U=this._rangeCallback)==null?void 0:U.call(this,r,l),L=this._encode(m?this.floor(r):this.ceil(r)),B=this._encode(m?this.ceil(l):this.floor(l));if(B<L)return[];let H=[];for(let X=L;X<=B;X++){let Q=this._decode(X);H.push(Q)}return D==null||D(),H}},rs=class extends Ql{getOffset(r,l){let m=typeof r=="number"||r instanceof Date?this._encode(new Date(r)):0;return Math.floor(m)%l}every(r,l){let m=0,D,L=r;r=Math.max(1,Math.round(r)),L!==r&&vi.warnOnce(`interval step of [${L}] rounded to [${r}].`);let{snapTo:B="start"}=l!=null?l:{};if(typeof B=="string"){let X=m;D=(Q,ie)=>{let ue=B==="start"?Q:ie;return m=this.getOffset(ue,r),()=>m=X}}else typeof B=="number"?m=this.getOffset(new Date(B),r):B instanceof Date&&(m=this.getOffset(B,r));let H=X=>{let Q=this._encode(X);return Math.floor((Q-m)/r)},U=X=>this._decode(X*r+m);return new Ql(H,U,D)}};function kP(r){let l=r.getTimezoneOffset()*Po;return Math.floor((r.getTime()-l)/Fs)}function qu(r){let l=new Date(1970,0,1);return l.setDate(l.getDate()+r),l}var fn=new rs(kP,qu),Yu=new Date().getTimezoneOffset()*Po;function ss(r){return Math.floor((r.getTime()-Yu)/$l)}function dm(r){return new Date(Yu+r*$l)}var cd=new rs(ss,dm),eo=new Date().getTimezoneOffset()*Po;function WC(r){return Math.floor((r.getTime()-eo)/Po)}function Wf(r){return new Date(eo+r*Po)}var ga=new rs(WC,Wf);function Ty(r){return r.getFullYear()*12+r.getMonth()}function tx(r){let l=Math.floor(r/12),m=r-l*12;return new Date(l,m,1)}var gn=new rs(Ty,tx),um=new Date().getTimezoneOffset()*Po;function ki(r){return Math.floor((r.getTime()-um)/$g)}function vn(r){return new Date(um+r*$g)}var Mi=new rs(ki,vn);function _s(r){let m=(7+r-4)%7;function D(B){let H=B.getTimezoneOffset()*Po;return Math.floor((B.getTime()-H)/so-m/7)}function L(B){let H=new Date(1970,0,1);return H.setDate(H.getDate()+B*7+m),H}return new rs(D,L)}var hm=_s(0),AP=_s(1),DP=_s(2),gI=_s(3),ix=_s(4),Uf=_s(5),Kf=_s(6);function nx(r){return r.getFullYear()}function OA(r){let l=new Date;return l.setFullYear(r),l.setMonth(0,1),l.setHours(0,0,0,0),l}var Ec=new rs(nx,OA),pl={periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};function xa(r,l=new Date(r.getFullYear(),0,1)){let m=r.getTimezoneOffset()-l.getTimezoneOffset(),D=r.getTime()-l.getTime()+m*6e4,L=36e5*24;return Math.floor(D/L)}function gm(r,l){let D=new Date(r.getFullYear(),0,1).getDay(),L=(l-D+7)%7,B=new Date(r.getFullYear(),0,L+1);return B<=r?Math.floor(xa(r,B)/7)+1:0}var UC=0,KC=1,ax=4;function Jo(r,l=r.getFullYear()){let D=new Date(l,0,1).getDay(),L=(ax-D+7)%7,B=new Date(l,0,L-(ax-KC)+1);return B<=r?Math.floor(xa(r,B)/7)+1:Jo(r,l-1)}function qC(r){let l=r.getTimezoneOffset(),m=Math.abs(l);return`${l>0?"-":"+"}${Br(Math.floor(m/60),2,"0")}${Br(Math.floor(m%60),2,"0")}`}var pI={a:r=>pl.shortDays[r.getDay()],A:r=>pl.days[r.getDay()],b:r=>pl.shortMonths[r.getMonth()],B:r=>pl.months[r.getMonth()],c:"%x, %X",d:(r,l)=>Br(r.getDate(),2,l!=null?l:"0"),e:"%_d",f:(r,l)=>Br(r.getMilliseconds()*1e3,6,l!=null?l:"0"),H:(r,l)=>Br(r.getHours(),2,l!=null?l:"0"),I:(r,l)=>{let m=r.getHours()%12;return m===0?"12":Br(m,2,l!=null?l:"0")},j:(r,l)=>Br(xa(r)+1,3,l!=null?l:"0"),m:(r,l)=>Br(r.getMonth()+1,2,l!=null?l:"0"),M:(r,l)=>Br(r.getMinutes(),2,l!=null?l:"0"),L:(r,l)=>Br(r.getMilliseconds(),3,l!=null?l:"0"),p:r=>r.getHours()<12?"AM":"PM",Q:r=>String(r.getTime()),s:r=>String(Math.floor(r.getTime()/1e3)),S:(r,l)=>Br(r.getSeconds(),2,l!=null?l:"0"),u:r=>{let l=r.getDay();return l<1&&(l+=7),String(l%7)},U:(r,l)=>Br(gm(r,UC),2,l!=null?l:"0"),V:(r,l)=>Br(Jo(r),2,l!=null?l:"0"),w:(r,l)=>Br(r.getDay(),2,l!=null?l:"0"),W:(r,l)=>Br(gm(r,KC),2,l!=null?l:"0"),x:"%-m/%-d/%Y",X:"%-I:%M:%S %p",y:(r,l)=>Br(r.getFullYear()%100,2,l!=null?l:"0"),Y:(r,l)=>Br(r.getFullYear(),4,l!=null?l:"0"),Z:r=>qC(r),"%":()=>"%"},mI={_:" ",0:"0","-":""};function Br(r,l,m){let D=String(Math.floor(r));return D.length>=l?D:`${m.repeat(l-D.length)}${D}`}function Qg(r){let l=[];for(;r.length>0;){let m=r.indexOf("%");if(m!==0){let U=m>0?r.substring(0,m):r;l.push(U)}if(m<0)break;let D=r[m+1],L=mI[D];L!=null&&m++;let B=r[m+1],H=pI[B];if(typeof H=="function")l.push([H,L]);else if(typeof H=="string"){let U=Qg(H);l.push([U,L])}else l.push(`${L!=null?L:""}${B}`);r=r.substring(m+2)}return m=>{let D=typeof m=="number"?new Date(m):m;return l.map(L=>typeof L=="string"?L:L[0](D,L[1])).join("")}}function vo(r){return r instanceof Date?r.getTime():r}function pm(r,l,m){let D=YC(r,l,m),L=Qg(D);return B=>L(B)}function YC(r=[],l=r,m=0){let D=1/0;for(let X=1;X<r.length;X++)D=Math.min(D,Math.abs(r[X]-r[X-1]));let L=new Date(l[0]).getFullYear(),H=new Date(l.at(-1)).getFullYear()-L>0,U=isFinite(D)?Xu(D,r):FA(r[0]);return qf(Math.max(U-m,0),H,r)}function Xu(r,l){return r<$g?0:r<Po?1:r<$l?2:r<Fs?3:r<so?4:r<Fs*28||r<Fs*31&&Ry(l)?5:r<lo?6:7}function FA(r){return Mi.floor(r)<r?0:ga.floor(r)<r?1:cd.floor(r)<r?2:fn.floor(r)<r?3:gn.floor(r)<r?hm.floor(r)<r?4:5:Ec.floor(r)<r?6:7}function Ry(r){let l=new Date(r[0]).getMonth();for(let m=1;m<r.length;m++){let D=new Date(r[m]).getMonth();if(l===D)return!0;l=D}return!1}function qf(r,l,m){let D=vo(m[0]),L=vo(m.at(-1)),B=Math.abs(L-D),H=l||r===7,U=B===0,Q=[["hour",6*$l,14*Fs,3,"%I %p"],["hour",Po,6*$l,3,"%I:%M"],["second",1e3,6*$l,1,":%S"],["ms",0,6*$l,0,".%L"],["am/pm",Po,6*$l,3,"%p"]," ",["day",Fs,so,4,"%a"],["month",U?0:so,52*so,5,"%b %d"],["month",5*so,10*lo,6,"%B"]," ",["year",H?0:lo,1/0,7,"%Y"]].filter(be=>{if(typeof be=="string")return!0;let[ye,Me,Ie,Oe]=be;return Oe>=r&&Me<=B&&B<Ie}).reduce((be,ye)=>(typeof ye=="string"?be.result.push(ye):be.used.has(ye[0])||(be.result.push(ye),be.used.add(ye[0])),be),{result:[],used:new Set}).result,ie=Q.findIndex(be=>typeof be!="string"),ue=Q.findLastIndex(be=>typeof be!="string");return Q.slice(ie,ue+1).map(be=>typeof be=="string"?be:be[4]).join("").replaceAll(/\s+/g," ").trim()}var jo=class ZX{constructor(){this.type="band",this.invalid=!0,this.range=[0,1],this.round=!1,this.interval=void 0,this.index=new Map,this._domain=[],this._bandwidth=1,this._step=1,this._inset=1,this._rawBandwidth=1,this._paddingInner=0,this._paddingOuter=0}static is(l){return l instanceof ZX}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&vi.warnOnce("Expected update to not invalidate scale"))}set domain(l){this.index=new Map,this.invalid=!0,this._domain=[];for(let m of l){let D=vo(m);this.getIndex(D)===void 0&&this.index.set(D,this._domain.push(m)-1)}}get domain(){return this._domain}getDomain(){return this._domain}ticks(){return this.refresh(),this._domain}convert(l){this.refresh();let m=this.getIndex(l);return m==null||m<0||m>=this.domain.length?NaN:this.ordinalRange(m)}invertNearestIndex(l){this.refresh();let{domain:m}=this;if(m.length===0)return-1;let D=0,L=m.length-1,B=1/0,H=0;for(;D<=L;){let U=(L+D)/2|0,X=this.ordinalRange(U),Q=Math.abs(X-l);if(Q===0)return U;Q<B&&(B=Q,H=U),X<l?D=U+1:L=U-1}return H}invert(l){this.refresh();let m=this.invertNearestIndex(l),D=this.ordinalRange(m);return l===D?this.domain[m]:void 0}invertNearest(l){let m=this.invertNearestIndex(l);return this.domain[m]}get bandwidth(){return this.refresh(),this._bandwidth}get step(){return this.refresh(),this._step}get inset(){return this.refresh(),this._inset}get rawBandwidth(){return this.refresh(),this._rawBandwidth}set padding(l){l=st(0,l,1),this._paddingInner=l,this._paddingOuter=l}get padding(){return this._paddingInner}set paddingInner(l){this._paddingInner=st(0,l,1)}get paddingInner(){return this._paddingInner}set paddingOuter(l){this._paddingOuter=st(0,l,1)}get paddingOuter(){return this._paddingOuter}update(){let l=this._domain.length;if(l===0)return;let[m,D]=this.range,{_paddingInner:L}=this,{_paddingOuter:B,round:H}=this,U=D-m,X;l===1?(L=0,X=U*(1-B*2)):X=U/Math.max(1,l-L+B*2);let Q=H?Math.floor(X):X,ie=m+(U-Q*(l-L))/2,ue=Q*(1-L);H&&(ie=Math.round(ie),ue=Math.round(ue)),this._step=Q,this._inset=ie,this._bandwidth=ue,this._rawBandwidth=X*(1-L)}ordinalRange(l){let{_inset:m,_step:D}=this;return m+D*l}getIndex(l){return this.index.get(l instanceof Date?l.getTime():l)}};T([zr],jo.prototype,"range",2),T([zr],jo.prototype,"round",2),T([zr],jo.prototype,"interval",2);var ml=jo,Hi=class{set(r){let{className:l=this.constructor.name}=this.constructor;if(typeof r!="object")return vi.warn(`unable to set ${l} - expecting a properties object`),this;let m=new Set(Object.keys(r));for(let D of is(this))if(m.has(D)){let L=r[D],B=this;if(Xd(B[D]))if(B[D]instanceof ja){let H=B[D].reset(L);H!=null?B[D]=H:vi.warn(`unable to set [${D}] - expecting a properties array`)}else B[D].set(L);else B[D]=L;m.delete(D)}for(let D of m)vi.warn(`unable to set [${D}] in ${l} - property is unknown`);return this}isValid(r){return is(this).every(l=>{let{optional:m}=Sa(this,l),D=m===!0||typeof this[l]!="undefined";return D||vi.warnOnce(`${r!=null?r:""}[${l}] is required.`),D})}toJson(){return is(this).reduce((r,l)=>{let m=this[l];return r[l]=Xd(m)?m.toJson():m,r},{})}},ja=class $X extends Array{constructor(l,...m){super(m.length);let L=(B=>{var H,U;return!!((U=(H=B==null?void 0:B.prototype)==null?void 0:H.constructor)!=null&&U.name)})(l)?B=>new l().set(B):l;Object.defineProperty(this,"itemFactory",{value:L,enumerable:!1,configurable:!1}),this.set(m)}set(l){if(La(l)){this.length=l.length;for(let m=0;m<l.length;m++)this[m]=this.itemFactory(l[m])}return this}reset(l){if(Array.isArray(l))return new $X(this.itemFactory,...l)}toJson(){return this.map(l=>{var m,D;return(D=(m=l==null?void 0:l.toJson)==null?void 0:m.call(l))!=null?D:l})}};function Xd(r){return r instanceof Hi||r instanceof ja}function je(r,l={}){let{optional:m=!1,property:D}=l;return Vn((L,B,H)=>{var be;let U=He(ge({},l),{target:L,property:B});if(m&&typeof H=="undefined"||r(H,U))return Xd(L[B])&&!Xd(H)?(L[B].set(H),L[B]):H;let X=D!=null?D:String(B).replace(/^_*/,""),Q=(be=L.constructor.className)!=null?be:L.constructor.name.replace(/Properties$/,""),ie=Zd(H),ue=50;if(ie!=null&&ie.length>ue){let ye=ie.length-ue;ie=ie.slice(0,ue)+`... (+${ye} characters)`}return vi.warn(`Property [${X}] of [${Q}] cannot be set to [${ie}]${r.message?`; expecting ${to(r,U)}`:""}, ignoring.`),Nr},void 0,{optional:m})}var dd=(...r)=>{let l=[];return Zn((m,D)=>(l.length=0,r.every(L=>{let B=L(m,D);return B||l.push(to(L,D)),B})),()=>l.filter(Boolean).join(" AND "))},mm=(...r)=>Zn((l,m)=>r.some(D=>D(l,m)),l=>r.map(Ju(l)).filter(Boolean).join(" OR ")),Si=Gr(Zn((r,l)=>Xd(r)||Jn(r)&&Xd(l.target[l.property]),"a properties object")),ur=Gr(Zn(r=>Jn(r),"an object")),Ri=Zn(Oh,"a boolean"),_a=Zn(gl,"a function"),Qt=Zn(wa,"a string"),yn=zs(Zn(ea,"a number")),pa=Zn(r=>as(r)&&!isNaN(r),"a real number"),XC=Zn(r=>as(r)&&isNaN(r),"NaN"),bi=yn.restrict({min:0}),oa=yn.restrict({min:0,max:1}),jt=mm(yn,XC),Yf=EP(Zn(La,"an array")),bn=(r,l)=>Zn((m,D)=>La(m)&&m.every(L=>r(L,D)),m=>{var L;let D=(L=to(Yf,m))!=null?L:"";return typeof l=="function"?`${D} of ${l(m)}`:l?`${D} of ${l}`:D}),yo=r=>ea(r)||Ro(r),Zu=r=>Zn((l,m)=>!yo(l)||!yo(m.target[r])||l<m.target[r],`to be less than ${r}`),Py=r=>Zn((l,m)=>!yo(l)||!yo(m.target[r])||l>m.target[r],`to be greater than ${r}`),En=Zn(Ro,"Date object"),Ly=mm(En,bi),_A="A color string can be in one of the following formats to be valid: #rgb, #rrggbb, rgb(r, g, b), rgba(r, g, b, a) or a CSS color name such as 'white', 'orange', 'cyan', etc",In=Zn(r=>wa(r)&&To.validColorString(r),`color String. ${_A}`),Ns=Zn(bn(In),`color strings. ${_A}`),ls=bn(Ri,"boolean values"),Jl=bn(yn,"numbers"),Oy=bn(Qt,"strings"),ZC=Zn(bn(En),"Date objects"),ra=Zn(bn(Si),"objects"),Yn=Xn(["butt","round","square"],"a line cap"),Gh=Xn(["round","bevel","miter"],"a line join"),fI=Xn(["solid","dashed","dotted"],"a line style"),bo=Zn(bn(bi),"numbers specifying the length in pixels of alternating dashes and gaps, for example, [6, 3] means dashes with a length of 6 pixels with gaps between of 3 pixels."),$C=Xn(["top","right","bottom","left"],"a position"),$u=Xn(["normal","italic","oblique"],"a font style"),Qu=mm(Xn(["normal","bold","bolder","lighter"],"a font weight"),yn.restrict({min:1,max:1e3})),Fy=Xn(["never","always","hyphenate","on-space"],"a text wrap strategy"),QC=Xn(["left","center","right"],"a text align"),_y=Xn(["top","middle","bottom"],"a vertical align"),vI=Xn(["ellipsis","hide"],"an overflow strategy"),Vh=Xn(["horizontal","vertical"],"a direction"),Ic=Xn(["inside","outside"],"a placement"),Jg=mm(Xn(["exact","nearest"],"interaction range"),yn),jh=Xn(["top","bottom","left","right"]);function Xn(r,l="a"){return Zn((m,D)=>{let L=r.find(B=>{let H=typeof B=="string"?B:B.value;return m===H});if(L==null)return!1;if(typeof L!="string"&&(L.deprecated===!0||L.deprecatedTo!=null)){let B=[`Property [%s] with value '${L.value}' is deprecated.`];L.deprecatedTo&&B.push(`Use ${L.deprecatedTo} instead.`),vi.warnOnce(B.join(" "),D.property)}return!0},`${l} keyword such as ${yI(r)}`)}var JC=mm(dd(yn.restrict({min:1}),Zu("maxSpacing")),XC),ox=mm(dd(yn.restrict({min:1}),Py("minSpacing")),XC);function Zn(r,l){return r.message=l,r}function yI(r){let l=r.filter(D=>typeof D=="string"||D.undocumented!==!0).map(D=>`'${typeof D=="string"?D:D.value}'`);if(l.length===1)return l[0];let m=l.pop();return`${l.join(", ")} or ${m}`}function to(r,l){return gl(r.message)?r.message(l):r.message}function Ju(r){return l=>to(l,r)}function EP(r){return Object.assign(r,{restrict({length:l,minLength:m}={}){let D="an array";return as(m)&&m>0?D="a non-empty array":as(l)&&(D=`an array of length ${l}`),Zn(L=>La(L)&&(as(l)?L.length===l:!0)&&(as(m)?L.length>=m:!0),D)}})}function zs(r){return Object.assign(r,{restrict({min:l,max:m}={}){let D=["a number"],L=as(l),B=as(m);return L&&B?D.push(`between ${l} and ${m} inclusive`):L?D.push(`greater than or equal to ${l}`):B&&D.push(`less than or equal to ${m}`),Zn(H=>ea(H)&&(L?H>=l:!0)&&(B?H<=m:!0),D.join(" "))}})}function Gr(r){return Object.assign(r,{restrict(l){return Zn(m=>m instanceof l,m=>{var D;return(D=to(r,m))!=null?D:`an instance of ${l.name}`})}})}function Zd(r){if(typeof r=="number"){if(isNaN(r))return"NaN";if(r===1/0)return"Infinity";if(r===-1/0)return"-Infinity"}return JSON.stringify(r)}var Xf=(r=>(r.X="x",r.Y="y",r))(Xf||{}),eh=class{constructor(){this.moduleMap=new Map}*modules(){for(let r of this.moduleMap.values())yield r.moduleInstance}addModule(r,l){if(this.moduleMap.has(r.optionsKey))throw new Error(`AG Charts - module already initialised: ${r.optionsKey}`);this.moduleMap.set(r.optionsKey,{module:r,moduleInstance:l(r)})}removeModule(r){var m;let l=wa(r)?r:r.optionsKey;(m=this.moduleMap.get(l))==null||m.moduleInstance.destroy(),this.moduleMap.delete(l)}getModule(r){var l;return(l=this.moduleMap.get(wa(r)?r:r.optionsKey))==null?void 0:l.moduleInstance}isEnabled(r){return this.moduleMap.has(wa(r)?r:r.optionsKey)}mapModules(r){return Array.from(this.moduleMap.values(),(l,m)=>r(l.moduleInstance,m))}destroy(){var r;for(let l of this.moduleMap.keys())(r=this.moduleMap.get(l))==null||r.moduleInstance.destroy();this.moduleMap.clear()}},fm={};A(fm,{resetMotion:()=>Co});function Co(r,l){let{nodes:m,selections:D}=jf(r);for(let L of D){for(let B of L.nodes()){let H=l(B,B.datum);B.setProperties(H)}L.cleanup()}for(let L of m){let B=l(L,L.datum);L.setProperties(B)}}function ec(r){let l,m,D=xr.exec(r);D&&([,l,r,m]=D);let L=on.exec(r);if(!L)throw new Error(`The number formatter is invalid: ${r}`);let[,B,H,U,X,Q,ie,ue,be,ye,Me]=L;return{fill:B,align:H,sign:U,symbol:X,zero:Q,width:parseInt(ie),comma:ue,precision:parseInt(be),trim:!!ye,type:Me,prefix:l,suffix:m}}function hi(r){let l=typeof r=="string"?ec(r):r,{fill:m,align:D,sign:L="-",symbol:B,zero:H,width:U,comma:X,type:Q,prefix:ie="",suffix:ue="",precision:be}=l,{trim:ye}=l,Me=be==null||isNaN(be),Ie;if(!Q)Ie=No.g,ye=!0;else if(Q in No&&Q in Bs)Ie=Me?Bs[Q]:No[Q];else if(Q in No)Ie=No[Q];else if(Q in Bs)Ie=Bs[Q];else throw new Error(`The number formatter type is invalid: ${Q}`);let Oe;return be==null||Me?Oe=Q?6:12:Oe=be,Re=>{let Be=Ie(Re,Oe);return ye&&(Be=Ny(Be)),X&&(Be=sx(Be,X)),Be=bI(Re,Be,L),B&&B!=="#"&&(Be=`${B}${Be}`),B==="#"&&Q==="x"&&(Be=`0x${Be}`),Q==="s"&&(Be=`${Be}${lx(Re)}`),(Q==="%"||Q==="p")&&(Be=`${Be}%`),U!=null&&!isNaN(U)&&(Be=NA(Be,U,m!=null?m:H,D)),Be=`${ie}${Be}${ue}`,Be}}var on=/^(?:(.)?([<>=^]))?([+\-( ])?([$€£¥₣₹#])?(0)?(\d+)?(,)?(?:\.(\d+))?(~)?([%a-z])?$/i,xr=/^((?:[^#]|#[^{])*)#{([^}]+)}(.*)$/,Bs={b:r=>th(r).toString(2),c:r=>String.fromCharCode(r),d:r=>Math.round(Math.abs(r)).toFixed(0),o:r=>th(r).toString(8),x:r=>th(r).toString(16),X:r=>Bs.x(r).toUpperCase(),n:r=>Bs.d(r),"%":r=>`${th(r*100).toFixed(0)}`},No={e:(r,l)=>Math.abs(r).toExponential(l),E:(r,l)=>No.e(r,l).toUpperCase(),f:(r,l)=>Math.abs(r).toFixed(l),F:(r,l)=>No.f(r,l).toUpperCase(),g:(r,l)=>{if(r===0)return"0";let m=Math.abs(r),D=Math.floor(Math.log10(m));return D>=-4&&D<l?m.toFixed(l-1-D):m.toExponential(l-1)},G:(r,l)=>No.g(r,l).toUpperCase(),n:(r,l)=>No.g(r,l),p:(r,l)=>No.r(r*100,l),r:(r,l)=>{if(r===0)return"0";let m=Math.abs(r),L=Math.floor(Math.log10(m))-(l-1);if(L<=0)return m.toFixed(-L);let B=10**L;return(Math.round(m/B)*B).toFixed()},s:(r,l)=>{let m=Zf(r);return No.r(r/10**m,l)},"%":(r,l)=>No.f(r*100,l)},Ha=-24,cs=24,ep={[Ha]:"y",[-21]:"z",[-18]:"a",[-15]:"f",[-12]:"p",[-9]:"n",[-6]:"\xB5",[-3]:"m",[0]:"",[3]:"k",[6]:"M",[9]:"G",[12]:"T",[15]:"P",[18]:"E",[21]:"Z",[cs]:"Y"},rx="\u2212";function th(r){return Math.floor(Math.abs(r))}function Ny(r){return r.replace(/\.0+$/,"").replace(/(\.[1-9])0+$/,"$1")}function sx(r,l){let m=r.indexOf(".");m<0&&(m=r.length);let D=r.substring(0,m).split(""),L=r.substring(m);for(let B=D.length-3;B>0;B-=3)D.splice(B,0,l);return`${D.join("")}${L}`}function lx(r){return ep[Zf(r)]}function Zf(r){return st(Ha,r?Math.floor(Math.log10(Math.abs(r))/3)*3:0,cs)}function bI(r,l,m=""){if(m==="(")return r>=0?l:`(${l})`;let D=m==="+"?"+":"";return`${r>=0?D:rx}${l}`}function NA(r,l,m=" ",D=">"){let L=r;if(D===">"||!D)L=L.padStart(l,m);else if(D==="<")L=L.padEnd(l,m);else if(D==="^"){let B=Math.max(0,l-L.length),H=Math.ceil(B/2),U=Math.floor(B/2);L=L.padStart(H+L.length,m),L=L.padEnd(U+L.length,m)}return L}function Mr(r){return r.getTime()}function Gs(r){return new Date(r)}var Vr=new rs(Mr,Gs),jn=(r,l,m)=>({duration:l*m,timeInterval:r,step:m}),jr=[jn(Mi,$g,1),jn(Mi,$g,5),jn(Mi,$g,15),jn(Mi,$g,30),jn(ga,Po,1),jn(ga,Po,5),jn(ga,Po,15),jn(ga,Po,30),jn(cd,$l,1),jn(cd,$l,3),jn(cd,$l,6),jn(cd,$l,12),jn(fn,Fs,1),jn(fn,Fs,2),jn(hm,so,1),jn(hm,so,2),jn(hm,so,3),jn(gn,Dc,1),jn(gn,Dc,2),jn(gn,Dc,3),jn(gn,Dc,4),jn(gn,Dc,6),jn(Ec,lo,1)],ih=[1,2,5,10];function nh(r,l){return Math.abs(Math.round(r)-r)<l}function Hh(r,l,m,D,L){if(m<2)return[r,l];let B=fi(r,l,m,D,L);return Number.isFinite(B)?(nh(r/B,1e-12)||(r=Math.ceil(r/B)*B),nh(l/B,1e-12)||(l=Math.floor(l/B)*B),ds(r,l,B)):[]}function ah(r,l,m,D,L,B){let H=B!=null?B:Math.abs(l-r)/Math.max(m,1),U=0;for(let be of jr){if(H<=be.duration)break;U++}if(U===0){let be=Math.max(fi(r,l,m,D,L),1);return Vr.every(be)}else if(U===jr.length){let be=B==null?fi(r/lo,l/lo,m,D,L):1;return Ec.every(be)}let X=jr[U-1],Q=jr[U],{timeInterval:ie,step:ue}=H-X.duration<Q.duration-H?X:Q;return ie.every(ue)}function fi(r,l,m,D=0,L=1/0){if(r===l)return st(1,D,L);if(m<1)return NaN;let B=Math.abs(l-r),H=10**Math.floor(Math.log10(B/m)),U=NaN,X=1/0,Q=!1;for(let ie of ih){let ue=Math.ceil(B/(ie*H)),be=ue>=D&&ue<=L;if(Q&&!be)continue;let ye=Math.abs(ue-m);(X>ye||Q!==be)&&(Q||(Q=be),X=ye,U=ie)}return U*H}function cn(r){for(let l=r.length-1;l>=0;l-=1)if(r[l]!=="0")return l+1;return 0}function fl(r,l){let m=ec(l!=null?l:",f");(m.precision==null||isNaN(m.precision))&&(!m.type||"eEFgGnprs".includes(m.type)?m.precision=Math.max(...r.map(L=>{if(!Number.isFinite(L))return 0;let[B,H]=L.toExponential((m.type?6:12)-1).split(/[.e]/g);return(B!=="1"&&B!=="-1"?1:0)+cn(H)+1})):"f%".includes(m.type)&&(m.precision=Math.max(...r.map(L=>{if(!Number.isFinite(L)||L===0)return 0;let B=Math.floor(Math.log10(Math.abs(L))),H=m.type?6:12,U=L.toExponential(H-1).split(/[.e]/g)[1],X=cn(U);return Math.max(0,X-B)}))));let D=hi(m);return L=>D(Number(L))}function ds(r,l,m){if(!Number.isFinite(m)||m<=0)return[];let D=10**Pt(m),L=Math.min(r,l),B=Math.max(r,l),H=[];for(let U=0;;U+=1){let X=Math.round((L+m*U)*D)/D;if(X>B)break;H.push(X)}return H}function e0(r,l){return r>=l?(vi.warnOnce("the configured interval results in more than 1 item per pixel, ignoring. Supply a larger interval or omit this configuration"),!0):!1}function zy(r,l){let m=Math.abs(l-r),D=10**Math.floor(Math.log10(m)),L=1/0,B=[r,l];for(let H of ih){let U=H*D,X=Math.floor(r/U)*U,Q=Math.ceil(l/U)*U,ie=1-m/Math.abs(Q-X);L>ie&&(L=ie,B=[X,Q])}return B}function cx(r,l,m,D,L){L=Math.max(L,r/(D+1)),isNaN(l)&&(l=L),isNaN(m)&&(m=r),l>m&&(l===L?l=m:m=l);let B=Math.max(1,Math.floor(r/l)),H=Math.min(B,Math.ceil(r/m)),U=st(H,D,B);return{minTickCount:H,maxTickCount:B,tickCount:U}}var CI=class QV extends Fa{constructor(){super([1,10],[0,1]),this.type="log",this.base=10,this.baseLog=jC,this.basePow=jC,this.log=l=>Math.min(...this.domain)>=0?this.baseLog(l):-this.baseLog(-l),this.pow=l=>Math.min(...this.domain)>=0?this.basePow(l):-this.basePow(-l),this.defaultClamp=!0}toDomain(l){return l}transform(l){return Math.min(...this.domain)>=0?Math.log(l):-Math.log(-l)}transformInvert(l){return Math.min(...this.domain)>=0?Math.exp(l):-Math.exp(-l)}refresh(){this.base<=0&&(this.base=0,vi.warnOnce("expecting a finite Number greater than to 0")),super.refresh()}update(){!this.domain||this.domain.length<2||(this.baseLog=QV.getBaseLogMethod(this.base),this.basePow=QV.getBasePowerMethod(this.base),this.nice&&this.updateNiceDomain())}updateNiceDomain(){let[l,m]=this.domain,D=l>m?Math.ceil:Math.floor,L=l>m?Math.floor:Math.ceil,B=this.pow(D(this.log(l))),H=this.pow(L(this.log(m)));this.niceDomain=[B,H]}ticks(){var ye;let l=(ye=this.tickCount)!=null?ye:10;if(!this.domain||this.domain.length<2||l<1)return[];this.refresh();let m=this.base,[D,L]=this.getDomain(),B=Math.min(D,L),H=Math.max(D,L),U=this.log(B),X=this.log(H);if(this.interval){let Me=Re=>Re>=B&&Re<=H,Ie=Math.min(Math.abs(this.interval),Math.abs(X-U)),Oe=ds(U,X,Ie).map(this.pow).filter(Me);if(!e0(Oe.length,this.getPixelRange()))return Oe}if(!ct(m)||X-U>=l)return Hh(U,X,Math.min(X-U,l)).map(this.pow);let Q=[],ie=B>0;U=Math.floor(U)-1,X=Math.round(X)+1;let ue=Ke(this.range)/l,be=1/0;for(let Me=U;Me<=X;Me++){let Ie=this.convert(this.pow(Me+1));for(let Oe=1;Oe<m;Oe++){let Re=ie?Oe:m-Oe+1,Be=this.pow(Me)*Re,Ue=this.convert(Be),Ne=Math.abs(be-Ue),Qe=Math.abs(Ue-Ie),nt=Ne>=ue&&Qe>=ue;Be>=B&&Be<=H&&(Oe===1||nt||Q.length===0)&&(Q.push(Be),be=Ue)}}return Q}tickFormat({specifier:l}){return l!=null||(l=this.base===10?".0e":","),wa(l)?hi(l):l}static getBaseLogMethod(l){switch(l){case 10:return Math.log10;case Math.E:return Math.log;case 2:return Math.log2;default:return m=>Math.log(m)/Math.log(l)}}static getBasePowerMethod(l){switch(l){case 10:return m=>m>=0?10**m:1/10**-m;case Math.E:return Math.exp;default:return m=>l**m}}};T([zr],CI.prototype,"base",2);var zA=CI;function dx(r,l,m){if(r>l)return;let D;for(;l>=r;){let L=Math.floor((l+r)/2);m(L)?(D=L,r=L+1):l=L-1}return D}function vm(r,l,m){if(r>l)return;let D;for(;l>=r;){let L=Math.floor((l+r)/2);m(L)?(D=L,l=L-1):r=L+1}return D}function BA(r,l,m){if(r>l)return;let D;for(;l>=r;){let L=Math.floor((l+r)/2),B=m(L);B==null?l=L-1:(D=B,r=L+1)}return D}function SI(r,l,m){if(r>l)return;let D;for(;l>=r;){let L=Math.floor((l+r)/2),B=m(L);B==null?r=L+1:(D=B,l=L-1)}return D}function wI(r,l){return r.valueOf()-l.valueOf()}function GA(r){let l=NaN,m=[];for(let D of r){let L=D.valueOf();l!==L&&m.push(D),l=L}return m}function ym(r){let l=r.slice().sort(wI);return t0(r)==null?GA(l):l}function t0(r){if(r.length===0)return 1;let l=Number(r[r.length-1])>Number(r[0])?1:-1,m=-1/0*l;for(let D of r){let L=D.valueOf();if(Math.sign(L-m)!==l)return;m=L}return l}var VA=class Dz extends Fa{constructor(){super([],[0,1]),this.type="time"}toDomain(l){return new Date(l)}convert(l,m){return l instanceof Date||(l=new Date(l)),super.convert(l,m)}invert(l){return new Date(super.invert(l))}ticks(){var X;if(!this.domain||this.domain.length<2)return[];this.refresh();let{interval:l,nice:m,tickCount:D,minTickCount:L,maxTickCount:B}=this,[H,U]=Xe(this.getDomain().map(vo));return l!=null?(X=Dz.getTicksForInterval({start:H,stop:U,interval:l,availableRange:this.getPixelRange()}))!=null?X:Dz.getDefaultTicks({start:H,stop:U,tickCount:D,minTickCount:L,maxTickCount:B}):m&&D===2?this.niceDomain:m&&D===1?this.niceDomain.slice(0,1):Dz.getDefaultTicks({start:H,stop:U,tickCount:D,minTickCount:L,maxTickCount:B})}static getDefaultTicks({start:l,stop:m,tickCount:D,minTickCount:L,maxTickCount:B}){let H=ah(l,m,D,L,B);return H?H.range(new Date(l),new Date(m)):[]}static getTicksForInterval({start:l,stop:m,interval:D,availableRange:L}){if(!D)return[];if(D instanceof Ql){let ie=D.range(new Date(l),new Date(m));return e0(ie.length,L)?void 0:ie}let B=Math.abs(D);if(e0((m-l)/B,L))return;let H=jr.findLast(ie=>B%ie.duration===0);if(H)return H.timeInterval.every(B/(H.duration/H.step)).range(new Date(l),new Date(m));let U=new Date(l),X=new Date(m),Q=[];for(;U<=X;)Q.push(U),U=new Date(U),U.setMilliseconds(U.getMilliseconds()+B);return Q}tickFormat({ticks:l,domain:m,specifier:D,formatOffset:L}){return D==null?pm(l,m,L):Qg(D)}update(){!this.domain||this.domain.length<2||this.nice&&this.updateNiceDomain()}updateNiceDomain(){let[m,D]=this.domain;for(let L=0;L<4;L++){this.updateNiceDomainIteration(m,D);let[B,H]=this.niceDomain;if(vo(m)===vo(B)&&vo(D)===vo(H))break;m=B,D=H}}updateNiceDomainIteration(l,m){let D=Math.min(vo(l),vo(m)),L=Math.max(vo(l),vo(m)),B=l>m,{interval:H}=this,U;if(H instanceof Ql)U=H;else{let X=typeof H=="number"?(L-D)/Math.max(H,1):this.tickCount;U=ah(D,L,X,this.minTickCount,this.maxTickCount)}if(U){let X=U.range(new Date(D),new Date(L),!0),Q=B?[...X].reverse():X,ie=Q[0],ue=Q.at(-1);this.niceDomain=[ie,ue]}}},i0=class QX extends ml{constructor(){super(...arguments),this.type="ordinal-time",this.tickCount=Fa.defaultTickCount,this.minTickCount=0,this.maxTickCount=1/0,this.interval=void 0,this._domain=[],this.sortedTimestamps=[],this.visibleRange=[0,1],this.isReversed=!1,this._values=void 0}static is(l){return l instanceof QX}setVisibleRange(l){this.visibleRange=l}set domain(l){if(l===this._values)return;this.invalid=!0;let m=t0(l),D=m==null?ym(l):l,L=m===-1,B=D.map(vo);L&&B.reverse(),this._values=l,this._domain=D,this.isReversed=L,this.sortedTimestamps=B,this.precomputedSteps=void 0;let H=l.length<1e4?B.length:Math.ceil(B.length/16);if(H<=1)return;this.refresh();let U=new Int32Array(H),X=B[0].valueOf(),ie=B[B.length-1].valueOf()-X;for(let ue=0;ue<U.length;ue+=1)U[ue]=this.findInterval(X+ue/H*ie);this.precomputedSteps=U}get domain(){return this._domain}ticks(){var ye;if(!this._domain.length)return[];this.refresh();let{domain:l,isReversed:m,interval:D}=this,[L,B]=[l[0].valueOf(),l.at(-1).valueOf()],H=Math.min(L,B),U=Math.max(L,B);if(D==null)return this.getDefaultTicks(this.maxTickCount,m);let[X,Q]=this.range,ie=Math.abs(Q-X),ue=(ye=VA.getTicksForInterval({start:H,stop:U,interval:D,availableRange:ie}))!=null?ye:[],be=-1;return ue.filter(Me=>{let Ie=this.findInterval(Me.valueOf()),Oe=Ie===be;return be=Ie,!Oe})}getDefaultTicks(l,m){let{domain:D,visibleRange:L}=this,B=[],H=Math.ceil(D.length*(L[1]-L[0])/l),U=Math.floor(H/2);for(let X=0;X<D.length;X+=1){let Q=D[X],ie=m?D.length-1-X:X;(H<=0||(ie+U)%H===0)&&B.push(Q)}return m&&B.reverse(),B}convert(l){this.refresh();let m=Number(l);if(m<this.sortedTimestamps[0])return NaN;let D=this.findInterval(m);return this.isReversed&&(D=this.domain.length-D-1),this.ordinalRange(D)}findInterval(l){let{sortedTimestamps:m,precomputedSteps:D}=this,L,B;if(D==null)L=0,B=m.length-1;else{let H=m[0].valueOf(),U=m[m.length-1].valueOf(),X=Math.min((l-H)/(U-H)*D.length|0,D.length-1|0);L=D[X],B=X<D.length-2?D[X+1]:m.length-1}for(;L<=B;){let H=(L+B)/2|0;if(m[H]===l)return H;m[H]<l?L=H+1:B=H-1}return L}tickFormat({ticks:l,domain:m,specifier:D}){return D==null?pm(l,m):Qg(D)}invert(l){this.refresh();let{domain:m}=this,D=SI(0,m.length-1,L=>this.ordinalRange(L)>=l?m[L]:void 0);return D!=null?D:m[0]}invertNearest(l){return super.invertNearest(l)}};T([zr],i0.prototype,"tickCount",2),T([zr],i0.prototype,"minTickCount",2),T([zr],i0.prototype,"maxTickCount",2),T([zr],i0.prototype,"interval",2);var us=i0;function jA(r,l){return typeof r=="number"&&typeof l=="number"?r-l:typeof r=="string"&&typeof l=="string"?r.localeCompare(l):r==null&&l==null?0:r==null?-1:l==null?1:String(r).localeCompare(String(l))}var ux=[1,0,0,1,0,0];function By(r,l,m=1e-8){return r===l||Math.abs(l-r)<m}var n0=class wP{get e(){return[...this.elements]}constructor(l=[...ux]){this.elements=l}setElements(l){let m=this.elements;return m[0]=l[0],m[1]=l[1],m[2]=l[2],m[3]=l[3],m[4]=l[4],m[5]=l[5],this}get identity(){let l=this.elements;return By(l[0],1)&&By(l[1],0)&&By(l[2],0)&&By(l[3],1)&&By(l[4],0)&&By(l[5],0)}AxB(l,m,D){let L=l[0]*m[0]+l[2]*m[1],B=l[1]*m[0]+l[3]*m[1],H=l[0]*m[2]+l[2]*m[3],U=l[1]*m[2]+l[3]*m[3],X=l[0]*m[4]+l[2]*m[5]+l[4],Q=l[1]*m[4]+l[3]*m[5]+l[5];D=D!=null?D:l,D[0]=L,D[1]=B,D[2]=H,D[3]=U,D[4]=X,D[5]=Q}multiplySelf(l){return this.AxB(this.elements,l.elements),this}multiply(l){let m=new Array(6);return l instanceof wP?this.AxB(this.elements,l.elements,m):this.AxB(this.elements,[l.a,l.b,l.c,l.d,l.e,l.f],m),new wP(m)}preMultiplySelf(l){return this.AxB(l.elements,this.elements,this.elements),this}inverse(){let l=this.elements,m=l[0],D=l[1],L=l[2],B=l[3],H=l[4],U=l[5],X=1/(m*B-D*L);return m*=X,D*=X,L*=X,B*=X,new wP([B,-D,-L,m,L*U-B*H,D*H-m*U])}inverseTo(l){let m=this.elements,D=m[0],L=m[1],B=m[2],H=m[3],U=m[4],X=m[5],Q=1/(D*H-L*B);return D*=Q,L*=Q,B*=Q,H*=Q,l.setElements([H,-L,-B,D,B*X-H*U,L*U-D*X]),this}invertSelf(){let l=this.elements,m=l[0],D=l[1],L=l[2],B=l[3],H=l[4],U=l[5],X=1/(m*B-D*L);return m*=X,D*=X,L*=X,B*=X,l[0]=B,l[1]=-D,l[2]=-L,l[3]=m,l[4]=L*U-B*H,l[5]=D*H-m*U,this}transformPoint(l,m){let D=this.elements;return{x:l*D[0]+m*D[2]+D[4],y:l*D[1]+m*D[3]+D[5]}}transformBBox(l,m){let D=this.elements,L=D[0],B=D[1],H=D[2],U=D[3],X=l.width*.5,Q=l.height*.5,ie=l.x+X,ue=l.y+Q,be=Math.abs(X*L)+Math.abs(Q*H),ye=Math.abs(X*B)+Math.abs(Q*U);return m!=null||(m=new ft(0,0,0,0)),m.x=ie*L+ue*H+D[4]-be,m.y=ie*B+ue*U+D[5]-ye,m.width=be+be,m.height=ye+ye,m}toContext(l){if(this.identity)return;let m=this.elements;l.transform(m[0],m[1],m[2],m[3],m[4],m[5])}static flyweight(l){return wP.instance.setElements(l.elements)}static updateTransformMatrix(l,m,D,L,B,H,U){var Qe,nt,rt,ut;let X=m,Q=D,ie,ue;X===1&&Q===1?(ie=0,ue=0):(ie=(Qe=U==null?void 0:U.scalingCenterX)!=null?Qe:0,ue=(nt=U==null?void 0:U.scalingCenterY)!=null?nt:0);let be=L,ye=Math.cos(be),Me=Math.sin(be),Ie,Oe;be===0?(Ie=0,Oe=0):(Ie=(rt=U==null?void 0:U.rotationCenterX)!=null?rt:0,Oe=(ut=U==null?void 0:U.rotationCenterY)!=null?ut:0);let Re=B,Be=H,Ue=ie*(1-X)-Ie,Ne=ue*(1-Q)-Oe;return l.setElements([ye*X,Me*X,-Me*Q,ye*Q,ye*Ue-Me*Ne+Ie+Re,Me*Ue+ye*Ne+Oe+Be]),l}static fromContext(l){let m=l.getTransform();return new wP([m.a,m.b,m.c,m.d,m.e,m.f])}};n0.instance=new n0;var Vs=n0;function Wh(r){return $f(r.constructor)}var bm=Symbol("isMatrixTransform");function $f(r){return r[bm]===!0}function hx(r){var l,m;let D=r;if($f(r))return r;let L=Symbol("matrix_combined_transform");class B extends D{constructor(){super(...arguments),this[m]=new Vs,this._dirtyTransform=!0}markDirtyTransform(){this._dirtyTransform=!0,super.markDirty()}updateMatrix(U){}computeTransformMatrix(){this._dirtyTransform&&(this[L].setElements(ux),this.updateMatrix(this[L]),this._dirtyTransform=!1)}toParent(U){return this.computeTransformMatrix(),this[L].identity?U.clone():this[L].transformBBox(U)}toParentPoint(U,X){return this.computeTransformMatrix(),this[L].identity?{x:U,y:X}:this[L].transformPoint(U,X)}fromParent(U){return this.computeTransformMatrix(),this[L].identity?U.clone():this[L].inverse().transformBBox(U)}fromParentPoint(U,X){return this.computeTransformMatrix(),this[L].identity?{x:U,y:X}:this[L].inverse().transformPoint(U,X)}computeBBox(){let U=super.computeBBox();return U&&this.toParent(U)}computeBBoxWithoutTransforms(){return super.computeBBox()}pickNode(U,X,Q=!1){return Q||({x:U,y:X}=this.fromParentPoint(U,X)),super.pickNode(U,X)}render(U){this.computeTransformMatrix();let{ctx:X}=U,Q=this[L],ie=!1;Q.identity||(X.save(),ie=!0,Q.toContext(X)),super.render(U),ie&&X.restore()}toSVG(){this.computeTransformMatrix();let U=super.toSVG(),X=this[L];if(X.identity||U==null)return U;let Q=document.createElementNS("http://www.w3.org/2000/svg","g");Q.append(...U.elements);let[ie,ue,be,ye,Me,Ie]=X.e;return Q.setAttribute("transform",`matrix(${ie} ${ue} ${be} ${ye} ${Me} ${Ie})`),{elements:[Q],defs:U.defs}}}return l=bm,m=L,B[l]=!0,B}function Cm(r){var l;let m=r,D=Symbol("matrix_rotation");class L extends hx(m){constructor(){super(...arguments),this[l]=new Vs,this.rotationCenterX=null,this.rotationCenterY=null,this.rotation=0}updateMatrix(H){super.updateMatrix(H);let{rotation:U,rotationCenterX:X,rotationCenterY:Q}=this;U!==0&&(Vs.updateTransformMatrix(this[D],1,1,U,0,0,{rotationCenterX:X,rotationCenterY:Q}),H.multiplySelf(this[D]))}}return l=D,T([Lt({type:"transform"})],L.prototype,"rotationCenterX",2),T([Lt({type:"transform"})],L.prototype,"rotationCenterY",2),T([Lt({type:"transform"})],L.prototype,"rotation",2),L}function gx(r){var l;let m=r,D=Symbol("matrix_scale");class L extends hx(m){constructor(){super(...arguments),this[l]=new Vs,this.scalingX=1,this.scalingY=1,this.scalingCenterX=null,this.scalingCenterY=null}updateMatrix(H){super.updateMatrix(H);let{scalingX:U,scalingY:X,scalingCenterX:Q,scalingCenterY:ie}=this;U===1&&X===1||(Vs.updateTransformMatrix(this[D],U,X,0,0,0,{scalingCenterX:Q,scalingCenterY:ie}),H.multiplySelf(this[D]))}}return l=D,T([Lt({type:"transform"})],L.prototype,"scalingX",2),T([Lt({type:"transform"})],L.prototype,"scalingY",2),T([Lt({type:"transform"})],L.prototype,"scalingCenterX",2),T([Lt({type:"transform"})],L.prototype,"scalingCenterY",2),L}function Sm(r){var l;let m=r,D=Symbol("matrix_translation");class L extends hx(m){constructor(){super(...arguments),this[l]=new Vs,this.translationX=0,this.translationY=0}updateMatrix(H){super.updateMatrix(H);let{translationX:U,translationY:X}=this;U===0&&X===0||(Vs.updateTransformMatrix(this[D],1,1,0,U,X),H.multiplySelf(this[D]))}}return l=D,T([Lt({type:"transform"})],L.prototype,"translationX",2),T([Lt({type:"transform"})],L.prototype,"translationY",2),L}var Ho=class{static fromCanvas(r,l){let m=[];for(let D of r.traverseUp())Wh(D)&&m.unshift(D);for(let D of m)l=D.fromParent(l);return Wh(r)&&(l=r.fromParent(l)),l}static toCanvas(r,l){l==null?l=r.getBBox():Wh(r)&&(l=r.toParent(l));for(let m of r.traverseUp())Wh(m)&&(l=m.toParent(l));return l}static fromCanvasPoint(r,l,m){let D=[];for(let L of r.traverseUp())Wh(L)&&D.unshift(L);for(let L of D)({x:l,y:m}=L.fromParentPoint(l,m));return Wh(r)&&({x:l,y:m}=r.fromParentPoint(l,m)),{x:l,y:m}}static toCanvasPoint(r,l,m){Wh(r)&&({x:l,y:m}=r.toParentPoint(l,m));for(let D of r.traverseUp())Wh(D)&&({x:l,y:m}=D.toParentPoint(l,m));return{x:l,y:m}}},px=(r,l)=>Math.sign(r-l);function mx(r,l){if(typeof r=="number"&&typeof l=="number")return px(r,l);let m=typeof r=="number"?[r]:r,D=typeof l=="number"?[l]:l,L=Math.min(m.length,D.length);for(let B=0;B<L;B+=1){let H=px(m[B],D[B]);if(H!==0)return H}return px(m.length,D.length)}var HA=class Ez extends na{constructor(l){super(l),this.opacity=1,this.layer=void 0,this.renderToOffscreenCanvas=!1,this.isContainerNode=!0,this.renderToOffscreenCanvas=(l==null?void 0:l.renderToOffscreenCanvas)===!0}static is(l){return l instanceof Ez}static computeChildrenBBox(l,m=!0){return ft.merge(na.extractBBoxes(l,m))}static compareChildren(l,m){return mx(l.zIndex,m.zIndex)||jA(l.serialNumber,m.serialNumber)}containsPoint(l,m){return!0}computeBBox(){return Ez.computeChildrenBBox(this.children())}isDirty(l){let{resized:m}=l,{dirty:D,dirtyZIndex:L}=this;if(D||L||m)return!0;for(let B of this.children())if(B.dirty)return!0;return!1}preRender(){var m,D,L;let l=super.preRender(0);return l.groups+=1,l.nonGroups-=1,this.renderToOffscreenCanvas&&l.nonGroups>0&&this.getVisibility()?(D=this.layer)!=null||(this.layer=(m=this._layerManager)==null?void 0:m.addLayer({name:this.name})):this.layer!=null&&((L=this._layerManager)==null||L.removeLayer(this.layer),this.layer=void 0),l}render(l){var H;let{layer:m}=this,D=ge({},l);if(m==null){this.renderInContext(D),super.render(D);return}let{ctx:L,stats:B}=l;if(this.isDirty(l)){let U=L.getTransform(),{globalAlpha:X}=L,Q=m.context;D.ctx=Q,m.clear(),Q.save(),Q.setTransform(U),Q.globalAlpha=X,this.renderInContext(D),Q.restore(),(H=Q.verifyDepthZero)==null||H.call(Q),B&&B.layersRendered++}else this.skipRender(D),B&&B.layersSkipped++;L.save(),L.resetTransform(),m.drawImage(L),L.restore(),super.render(D)}skipRender(l){let{stats:m}=l;for(let D of this.children())D.markClean(),m&&(m.nodesSkipped+=this.childNodeCounts.groups+this.childNodeCounts.nonGroups,m.opsSkipped+=this.childNodeCounts.complexity)}applyClip(l,m){let{x:D,y:L,width:B,height:H}=m;l.beginPath(),l.rect(D,L,B,H),l.clip()}renderInContext(l){let{ctx:m,stats:D}=l;this.dirtyZIndex&&this.sortChildren(Ez.compareChildren),m.save(),m.globalAlpha*=this.opacity,this.clipRect!=null&&(this.applyClip(m,this.clipRect),l.clipBBox=Ho.toCanvas(this,this.clipRect));for(let L of this.children()){if(!L.visible){L.markClean(),D&&(D.nodesSkipped+=L.childNodeCounts.nonGroups+L.childNodeCounts.groups,D.opsSkipped+=L.childNodeCounts.complexity);continue}m.save(),L.render(l),m.restore()}m.restore()}setClipRect(l){this.clipRect=l?Ho.fromCanvas(this,l):void 0}setClipRectCanvasSpace(l){this.clipRect=l}_setLayerManager(l){var m;this.layer&&((m=this._layerManager)==null||m.removeLayer(this.layer),this.layer=void 0),super._setLayerManager(l)}getVisibility(){for(let l of this.traverseUp(!0))if(!l.visible)return!1;return!0}toSVG(){if(!this.visible)return;let l=[],m=[];for(let D of this.children()){let L=D.toSVG();L!=null&&(m.push(...L.elements),L.defs!=null&&l.push(...L.defs))}return{elements:m,defs:l}}};HA.className="Group",T([Lt({convertor:r=>st(0,r,1)})],HA.prototype,"opacity",2);var Ji=HA,Gy=class extends gx(Ji){},WA=class extends Cm(Ji){},js=class extends Sm(Ji){},Qf=class extends Cm(Sm(Ji)){},$d={};typeof window!="undefined"?$d.window=window:typeof global!="undefined"&&($d.window=global.window),typeof document!="undefined"?$d.document=document:typeof global!="undefined"&&($d.document=global.document);function Hr(r){var l;return r?(l=$d.document)==null?void 0:l[r]:$d.document}function On(r){var l;return r?(l=$d.window)==null?void 0:l[r]:$d.window}function ta(r,l,m){let D=Hr().createElement(r);if(typeof l=="object"&&(m=l,l=void 0),l)for(let L of l.split(" "))D.classList.add(L);return m&&Object.assign(D.style,m),D}function Jf(r,l){return Hr().createElementNS(r,l)}function fx(r,l){let{body:m}=Hr(),D=ta("a",{display:"none"});D.href=r,D.download=l,m.appendChild(D),D.click(),setTimeout(()=>m.removeChild(D))}function vx(r){$d.document=r}function yx(r){$d.window=r}function oh(r,l){r&&(l=xe.normalize(l),l.width==null?r.style.removeProperty("width"):r.style.width=`${l.width}px`,l.height==null?r.style.removeProperty("height"):r.style.height=`${l.height}px`,l.x==null?r.style.removeProperty("left"):r.style.left=`${l.x}px`,l.y==null?r.style.removeProperty("top"):r.style.top=`${l.y}px`)}function bx(r){let l=parseFloat(r.style.width)||r.offsetWidth,m=parseFloat(r.style.height)||r.offsetHeight,D=parseFloat(r.style.left)||r.offsetLeft,L=parseFloat(r.style.top)||r.offsetTop;return{x:D,y:L,width:l,height:m}}function ev(r){var D;if(r.focus({preventScroll:!0}),((D=r.lastChild)==null?void 0:D.textContent)==null)return;let l=Hr().createRange();l.setStart(r.lastChild,r.lastChild.textContent.length),l.setEnd(r.lastChild,r.lastChild.textContent.length);let m=On().getSelection();m==null||m.removeAllRanges(),m==null||m.addRange(l)}var kr=0;function Vy(r){return`${r!=null?r:"ag-charts-element"}-${kr++}`}function Cx(){let r=On().navigator;if("scheduling"in r){let l=r.scheduling;if("isInputPending"in l)return l.isInputPending({includeContinuous:!0})}return!1}function Sx(r){return`ag-charts-icon ag-charts-icon-${r}`}var IP=2e3,jy=Date.now(),TP=()=>{let r=Date.now()-jy;if(r>IP){let l=(Math.floor(r/100)/10).toFixed(1);vi.log(`**** ${l}s since last log message ****`)}jy=Date.now()},Ma={create(...r){return Object.assign((...m)=>{Ma.check(...r)&&(typeof m[0]=="function"&&(m=HC(m[0]())),TP(),vi.log(...m))},{check:()=>Ma.check(...r)})},check(...r){return r.length===0&&r.push(!0),HC(On("agChartsDebug")).some(m=>r.includes(m))}},co=class sI{constructor(l,m,D=!0){this.parentNode=l,this.autoCleanup=D,this.garbageBin=new Set,this._nodesMap=new Map,this._nodes=[],this.data=[],this.debug=Ma.create(!0,"scene","scene:selections"),this.nodeFactory=Object.prototype.isPrototypeOf.call(na,m)?()=>new m:m}static select(l,m,D=!0){return new sI(l,m,D)}static selectAll(l,m){let D=[],L=B=>{m(B)&&D.push(B);for(let H of B.children())L(H)};return L(l),D}static selectByClass(l,...m){return sI.selectAll(l,D=>m.some(L=>D instanceof L))}static selectByTag(l,m){return sI.selectAll(l,D=>D.tag===m)}createNode(l,m,D){let L=this.nodeFactory(l);return L.datum=l,m==null||m(L),D==null?this._nodes.push(L):this._nodes.splice(D,0,L),this.parentNode.appendChild(L),L}update(l,m,D){if(this.garbageBin.size>0&&this.debug("Selection - update() called with pending garbage",l),D){let L=new Map(l.map((B,H)=>[D(B),[B,H]]));for(let[B,H]of this._nodesMap.entries())if(L.has(H)){let[U]=L.get(H);B.datum=U,this.garbageBin.delete(B),L.delete(H)}else this.garbageBin.add(B);for(let[B,[H,U]]of L.entries())this._nodesMap.set(this.createNode(H,m,U),B)}else{let L=Math.max(l.length,this.data.length);for(let B=0;B<L;B++)B>=l.length?this.garbageBin.add(this._nodes[B]):B>=this._nodes.length?this.createNode(l[B],m):(this._nodes[B].datum=l[B],this.garbageBin.delete(this._nodes[B]))}return this.data=l.slice(),this.autoCleanup&&this.cleanup(),this}cleanup(){return this.garbageBin.size===0?this:(this._nodes=this._nodes.filter(l=>this.garbageBin.has(l)?(this._nodesMap.delete(l),this.garbageBin.delete(l),l.destroy(),!1):!0),this)}clear(){return this.update([]),this}isGarbage(l){return this.garbageBin.has(l)}hasGarbage(){return this.garbageBin.size>0}each(l){for(let m of this._nodes.entries())l(m[1],m[1].datum,m[0]);return this}*[Symbol.iterator](){for(let l=0;l<this._nodes.length;l++){let m=this._nodes[l];yield{node:m,datum:m.datum,index:l}}}select(l){return sI.selectAll(this.parentNode,l)}selectByClass(l){return sI.selectByClass(this.parentNode,l)}selectByTag(l){return sI.selectByTag(this.parentNode,l)}nodes(){return this._nodes}at(l){return this._nodes.at(l)}get length(){return this._nodes.length}},zo=Math.PI*2,Qd=Math.PI/2;function Nn(r){return r%=zo,r+=zo,r%=zo,r}function dn(r){return r%=zo,r+=zo,r!==zo&&(r%=zo),r}function Uh(r){return r%=zo,r<-Math.PI?r+=zo:r>=Math.PI&&(r-=zo),r}function zn(r,l,m){let D=Nn(r),L=Nn(l),B=Nn(m);return L<B?L<=D&&D<=B:L>B?L<=D||D<=B:!0}function Ge(r){return r/180*Math.PI}function uo(r){return r/Math.PI*180}function ka(r,l,m){m&&([r,l]=[l,r]);let D=Nn(r);return(Nn(l)+zo-D)%zo}function a0(r,l){return r=Nn(r),l=Nn(l),l-r+(r>l?zo:0)}function Hy(r,l,m,D){let L=r+m*Math.cos(D),B=l+m*Math.sin(D);return{x:L,y:B}}var RP=1e-6;function UA(r,l){return a0(r,l)<RP?l:Nn(r-l)+l}function tp(r,l,m=0){let L=Math.abs(l-r)>=zo?zo:Nn(l-r);return r=UA(r,m),l=r+L,{startAngle:r,endAngle:l}}function KA(r){let l=Nn(r);return l<=Qd?l/Qd:l<=Math.PI?(Math.PI-l)/Qd:l<=1.5*Math.PI?(l-Math.PI)/Qd:(zo-l)/Qd}function Bt(r,l,m,D){let L=r-m,B=l-D;return L*L+B*B}function Hs(r,l,m,D,L,B,H){if(m===L&&D===B)return Math.min(H,Bt(r,l,m,D));let U=L-m,X=B-D,Q=Math.max(0,Math.min(1,((r-m)*U+(l-D)*X)/(U*U+X*X))),ie=m+Q*U,ue=D+Q*X;return Math.min(H,Bt(r,l,ie,ue))}function rh(r,l,m,D,L,B,H,U,X){U&&([H,B]=[B,H]);let Q=Math.atan2(l-D,r-m);if(!zn(Q,B,H)){let ue=m+Math.cos(B)*L,be=D+Math.sin(B)*L,ye=m+Math.cos(B)*L,Me=D+Math.sin(B)*L;return Math.min(X,Bt(r,l,ue,be),Bt(r,l,ye,Me))}let ie=L-Math.sqrt(Bt(r,l,m,D));return Math.min(X,ie*ie)}var Ei=r=>{let l=To.fromString(r),[m,D,L]=To.RGBtoOKLCH(l.r,l.g,l.b);return{l:m,c:D,h:L,a:l.a}},o0=1e-6,Oi=r=>r.c<o0||r.l<o0||r.l>1-o0,vl=(r,l,m)=>{m=st(0,m,1);let D;if(Oi(r))D=l.h;else if(Oi(l))D=r.h;else{let U=r.h,X=l.h,Q=l.h-r.h;Q>180?X-=360:Q<-180&&(X+=360),D=U*(1-m)+X*m}let L=r.c*(1-m)+l.c*m,B=r.l*(1-m)+l.l*m,H=r.a*(1-m)+l.a*m;return To.fromOKLCH(B,L,D,H)},ei=class{constructor(){this.type="color",this.invalid=!0,this.domain=[0,1],this.range=["red","blue"],this.parsedRange=this.range.map(Ei)}update(){let{domain:r,range:l}=this;r.length<2&&(vi.warnOnce("`colorDomain` should have at least 2 values."),r.length===0?r.push(0,1):r.length===1&&r.push(r[0]+1));for(let m=1;m<r.length;m++){let D=r[m-1],L=r[m];if(D>=L){vi.warnOnce("`colorDomain` values should be supplied in ascending order."),r.sort((B,H)=>B-H);break}}if(l.length<r.length)for(let m=l.length;m<r.length;m++)l.push(l.length>0?l[0]:"black");this.parsedRange=this.range.map(Ei)}convert(r){this.refresh();let{domain:l,range:m,parsedRange:D}=this,L=l[0],B=l.at(-1),H=m[0],U=m[m.length-1];if(r<=L)return H;if(r>=B)return U;let X,Q;if(l.length===2){let be=(r-L)/(B-L),ye=1/(m.length-1);X=m.length<=2?0:Math.min(Math.floor(be*(m.length-1)),m.length-2),Q=(be-X*ye)/ye}else{for(X=0;X<l.length-2&&!(r<l[X+1]);X++);let be=l[X],ye=l[X+1];Q=(r-be)/(ye-be)}let ie=D[X],ue=D[X+1];return vl(ie,ue,Q).toRgbaString()}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&vi.warnOnce("Expected update to not invalidate scale"))}};T([zr],ei.prototype,"domain",2),T([zr],ei.prototype,"range",2);var Bn=class{constructor(r,l=[],m){this.colorSpace=r,this.stops=l,this.bbox=m,this._cache=void 0}createGradient(r,l){var Q;let m=(Q=this.bbox)!=null?Q:l;if(this._cache!=null&&this._cache.ctx===r&&this._cache.bbox.equals(m))return this._cache.gradient;let{stops:D,colorSpace:L}=this;if(D.length===0)return;if(D.length===1)return D[0].color;let B=this.createCanvasGradient(r,m);if(B==null)return;let H=L==="oklch",U=.05,X=D[0];B.addColorStop(X.offset,X.color);for(let ie=1;ie<D.length;ie+=1){let ue=D[ie];if(H){let be=new ei;be.domain=[X.offset,ue.offset],be.range=[X.color,ue.color];for(let ye=X.offset+U;ye<ue.offset;ye+=U)B.addColorStop(ye,be.convert(ye))}B.addColorStop(ue.offset,ue.color),X=ue}return"createPattern"in B&&(B=B.createPattern()),this._cache={ctx:r,bbox:m,gradient:B},B}},Kh=class extends Bn{constructor(r,l,m=0,D){super(r,l,D),this.angle=m}createCanvasGradient(r,l){let{angle:D}=this,L=Nn(Ge(D+90)),B=Math.cos(L),H=Math.sin(L),U=l.width,X=l.height,Q=l.x+U*.5,ie=l.y+X*.5,ue=Math.sqrt(X*X+U*U)/2,be=Math.atan2(X,U),ye;L<Math.PI/2?ye=L:L<Math.PI?ye=Math.PI-L:L<1.5*Math.PI?ye=L-Math.PI:ye=2*Math.PI-L;let Me=ue*Math.abs(Math.cos(ye-be));return r.createLinearGradient(Q+B*Me,ie+H*Me,Q-B*Me,ie-H*Me)}},Jd=/^linear-gradient\((-?[\d.]+)deg,(.*?)\)$/i,ni=class NC extends na{constructor(){super(...arguments),this.fillOpacity=1,this.strokeOpacity=1,this.fill=NC.defaultStyles.fill,this.stroke=NC.defaultStyles.stroke,this.strokeWidth=NC.defaultStyles.strokeWidth,this.lineDash=NC.defaultStyles.lineDash,this.lineDashOffset=NC.defaultStyles.lineDashOffset,this.lineCap=NC.defaultStyles.lineCap,this.lineJoin=NC.defaultStyles.lineJoin,this.miterLimit=void 0,this.opacity=NC.defaultStyles.opacity,this.fillShadow=NC.defaultStyles.fillShadow}restoreOwnStyles(){let{defaultStyles:l}=this.constructor;Object.assign(this,l)}getGradient(l){let m;if(l instanceof Bn)return l;if(l!=null&&l.startsWith("linear-gradient")&&(m=Jd.exec(l))){let D=parseFloat(m[1]),L=[],B=m[2],H=/(#[0-9a-f]+)|(rgba?\(.+?\))|([a-z]+)/gi,U;for(;U=H.exec(B);)L.push(U[0]);return new Kh("rgb",L.map((X,Q)=>({color:X,offset:Q/(L.length-1)})),D)}else return}onFillChange(){this.fillGradient=this.getGradient(this.fill)}onStrokeChange(){this.strokeGradient=this.getGradient(this.stroke)}align(l,m){var B,H,U;let D=(U=(H=(B=this.layerManager)==null?void 0:B.canvas)==null?void 0:H.pixelRatio)!=null?U:1,L=Math.round(l*D)/D;return m==null?L:m===0?0:m<1?Math.ceil(m*D)/D:Math.round((m+l)*D)/D-L}fillStroke(l,m){this.renderFill(l,m),this.renderStroke(l,m)}renderFill(l,m){if(this.fill){let{globalAlpha:D}=l;this.applyFill(l),this.applyFillAlpha(l),this.applyShadow(l),this.executeFill(l,m),l.globalAlpha=D}l.shadowColor="rgba(0, 0, 0, 0)"}executeFill(l,m){m?l.fill(m):l.fill()}applyFill(l){var m,D,L;l.fillStyle=(L=(D=(m=this.fillGradient)==null?void 0:m.createGradient(l,this.getBBox()))!=null?D:typeof this.fill=="string"?this.fill:void 0)!=null?L:"black"}applyStroke(l){var m,D,L;l.strokeStyle=(L=(D=(m=this.strokeGradient)==null?void 0:m.createGradient(l,this.getBBox()))!=null?D:typeof this.stroke=="string"?this.stroke:void 0)!=null?L:"black"}applyFillAlpha(l){l.globalAlpha*=this.opacity*this.fillOpacity}applyShadow(l){var L,B;let m=(B=(L=this.layerManager)==null?void 0:L.canvas.pixelRatio)!=null?B:1,D=this.fillShadow;D!=null&&D.enabled&&(l.shadowColor=D.color,l.shadowOffsetX=D.xOffset*m,l.shadowOffsetY=D.yOffset*m,l.shadowBlur=D.blur*m)}renderStroke(l,m){if(this.stroke&&this.strokeWidth){let{globalAlpha:D}=l;this.applyStroke(l),l.globalAlpha*=this.opacity*this.strokeOpacity,l.lineWidth=this.strokeWidth,this.lineDash&&l.setLineDash(this.lineDash),this.lineDashOffset&&(l.lineDashOffset=this.lineDashOffset),this.lineCap&&(l.lineCap=this.lineCap),this.lineJoin&&(l.lineJoin=this.lineJoin),this.miterLimit!=null&&(l.miterLimit=this.miterLimit),this.executeStroke(l,m),l.globalAlpha=D}}executeStroke(l,m){m?l.stroke(m):l.stroke()}containsPoint(l,m){return this.isPointInPath(l,m)}applySvgFillAttributes(l){l.setAttribute("fill",typeof this.fill=="string"?this.fill:"none"),l.setAttribute("fill-opacity",String(this.fillOpacity))}applySvgStrokeAttributes(l){this.stroke!=null&&(l.setAttribute("stroke",typeof this.stroke=="string"?this.stroke:"none"),l.setAttribute("stroke-opacity",String(this.strokeOpacity)),l.setAttribute("stroke-width",String(this.strokeWidth))),this.lineDash!=null&&l.setAttribute("stroke-dasharray",this.lineDash.join(" "))}};ni.defaultStyles={fill:"black",stroke:void 0,strokeWidth:0,lineDash:void 0,lineDashOffset:0,lineCap:void 0,lineJoin:void 0,opacity:1,fillShadow:void 0},T([Lt()],ni.prototype,"fillOpacity",2),T([Lt()],ni.prototype,"strokeOpacity",2),T([Lt({changeCb:r=>r.onFillChange()})],ni.prototype,"fill",2),T([Lt({changeCb:r=>r.onStrokeChange()})],ni.prototype,"stroke",2),T([Lt()],ni.prototype,"strokeWidth",2),T([Lt()],ni.prototype,"lineDash",2),T([Lt()],ni.prototype,"lineDashOffset",2),T([Lt()],ni.prototype,"lineCap",2),T([Lt()],ni.prototype,"lineJoin",2),T([Lt()],ni.prototype,"miterLimit",2),T([Lt({convertor:r=>st(0,r,1)})],ni.prototype,"opacity",2),T([Lt({checkDirtyOnAssignment:!0})],ni.prototype,"fillShadow",2);var Cn=ni,Ar=class extends Cn{constructor(r={}){super(r),this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.restoreOwnStyles()}set x(r){this.x1=r,this.x2=r}set y(r){this.y1=r,this.y2=r}get midPoint(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}}computeBBox(){return new ft(Math.min(this.x1,this.x2),Math.min(this.y1,this.y2),Math.abs(this.x2-this.x1),Math.abs(this.y2-this.y1))}isPointInPath(r,l){return this.x1===this.x2||this.y1===this.y2?this.getBBox().clone().grow(this.strokeWidth/2).containsPoint(r,l):!1}distanceSquared(r,l){let{x1:m,y1:D,x2:L,y2:B}=this;return Hs(r,l,m,D,L,B,1/0)}render(r){var U;let{ctx:l,devicePixelRatio:m}=r,{x1:D,y1:L,x2:B,y2:H}=this;if(D===B){let{strokeWidth:X}=this,Q=Math.round(D*m)/m+Math.trunc(X*m)%2/(m*2);D=Q,B=Q}else if(L===H){let{strokeWidth:X}=this,Q=Math.round(L*m)/m+Math.trunc(X*m)%2/(m*2);L=Q,H=Q}l.beginPath(),l.moveTo(D,L),l.lineTo(B,H),this.fillStroke(l),(U=this.fillShadow)==null||U.markClean(),super.render(r)}toSVG(){if(!this.visible)return;let r=document.createElementNS("http://www.w3.org/2000/svg","line");return r.setAttribute("x1",String(this.x1)),r.setAttribute("y1",String(this.y1)),r.setAttribute("x2",String(this.x2)),r.setAttribute("y2",String(this.y2)),this.applySvgStrokeAttributes(r),{elements:[r]}}};Ar.className="Line",Ar.defaultStyles=He(ge({},Cn.defaultStyles),{fill:void 0,strokeWidth:1}),T([Lt()],Ar.prototype,"x1",2),T([Lt()],Ar.prototype,"y1",2),T([Lt()],Ar.prototype,"x2",2),T([Lt()],Ar.prototype,"y2",2);function sh(r=0,l=0){return new OffscreenCanvas(r,l).getContext("2d")}var ud=class{constructor(r=5){this.maxCacheSize=r,this.store=new Map}get(r){if(!this.store.has(r))return;let l=this.store.get(r);return this.store.delete(r),this.store.set(r,l),l}has(r){return this.store.has(r)}set(r,l){if(this.store.set(r,l),this.store.size>this.maxCacheSize){let m=this.store.keys(),D=this.store.size-this.maxCacheSize;for(;D>0;){let L=m.next();L.done||this.store.delete(L.value),D--}}return l}clear(){this.store.clear()}},Wr=class{static measureText(r,l){return this.getMeasurer(l).measureText(r)}static measureLines(r,l){return this.getMeasurer(l).measureLines(r)}static getMeasurer(r){var D,L,B;let l=typeof r.font=="string"?r.font:Wa.toFontString(r.font),m=`${l}-${(D=r.textAlign)!=null?D:"start"}-${(L=r.textBaseline)!=null?L:"alphabetic"}`;return(B=this.instanceMap.get(m))!=null?B:this.createFontMeasurer(l,r,m)}static createFontMeasurer(r,l,m){var B,H;let D=sh();D.font=r,D.textAlign=(B=l.textAlign)!=null?B:"start",D.textBaseline=(H=l.textBaseline)!=null?H:"alphabetic";let L=new tv(D,l);return this.instanceMap.set(m,L),L}};Wr.instanceMap=new ud(10);var tv=class{constructor(r,l){var m;this.ctx=r,this.measureMap=new ud(100),l.textAlign&&(r.textAlign=l.textAlign),l.textBaseline&&(r.textBaseline=l.textBaseline),r.font=typeof l.font=="string"?l.font:Wa.toFontString(l.font),this.textMeasurer=new yl(D=>this.cachedCtxMeasureText(D),(m=l.textBaseline)!=null?m:"alphabetic")}textWidth(r,l){return this.textMeasurer.textWidth(r,l)}measureText(r){return this.textMeasurer.measureText(r)}measureLines(r){return this.textMeasurer.measureLines(r)}cachedCtxMeasureText(r){if(!this.measureMap.has(r)){let l=this.ctx.measureText(r);this.measureMap.set(r,{actualBoundingBoxAscent:l.actualBoundingBoxAscent,emHeightAscent:l.emHeightAscent,emHeightDescent:l.emHeightDescent,actualBoundingBoxDescent:l.actualBoundingBoxDescent,actualBoundingBoxLeft:l.actualBoundingBoxLeft,actualBoundingBoxRight:l.actualBoundingBoxRight,alphabeticBaseline:l.alphabeticBaseline,fontBoundingBoxAscent:l.fontBoundingBoxAscent,fontBoundingBoxDescent:l.fontBoundingBoxDescent,hangingBaseline:l.hangingBaseline,ideographicBaseline:l.ideographicBaseline,width:l.width})}return this.measureMap.get(r)}},Wa=class{static toFontString({fontSize:r=10,fontStyle:l,fontWeight:m,fontFamily:D,lineHeight:L}){let B="";return l&&(B+=`${l} `),m&&(B+=`${m} `),B+=`${r}px`,L&&(B+=`/${L}px`),B+=` ${D}`,B.trim()}static getLineHeight(r){return Math.ceil(r*this.defaultLineHeight)}static getVerticalModifier(r){switch(r){case"hanging":case"top":return 0;case"middle":return .5;case"alphabetic":case"bottom":case"ideographic":default:return 1}}};Wa.EllipsisChar="\u2026",Wa.defaultLineHeight=1.15,Wa.lineSplitter=/\r?\n/g;var yl=class{constructor(r,l="alphabetic"){this.measureTextFn=r,this.textBaseline=l,this.charMap=new Map}getMetrics(r){var m,D;let l=this.measureTextFn(r);return(m=l.fontBoundingBoxAscent)!=null||(l.fontBoundingBoxAscent=l.emHeightAscent),(D=l.fontBoundingBoxDescent)!=null||(l.fontBoundingBoxDescent=l.emHeightDescent),{width:l.width,height:l.actualBoundingBoxAscent+l.actualBoundingBoxDescent,lineHeight:l.fontBoundingBoxAscent+l.fontBoundingBoxDescent,offsetTop:l.actualBoundingBoxAscent,offsetLeft:l.actualBoundingBoxLeft}}getMultilineMetrics(r){var ie,ue;let l=0,m=0,D=0,L=0,B=0,H=Wa.getVerticalModifier(this.textBaseline),U=[],X=0,Q=r.length;for(let be of r){let ye=this.measureTextFn(be);(ie=ye.fontBoundingBoxAscent)!=null||(ye.fontBoundingBoxAscent=ye.emHeightAscent),(ue=ye.fontBoundingBoxDescent)!=null||(ye.fontBoundingBoxDescent=ye.emHeightDescent),l<ye.width&&(l=ye.width),L<ye.actualBoundingBoxLeft&&(L=ye.actualBoundingBoxLeft),X===0?(m+=ye.actualBoundingBoxAscent,D+=ye.actualBoundingBoxAscent):B+=ye.fontBoundingBoxAscent,X===Q-1?m+=ye.actualBoundingBoxDescent:B+=ye.fontBoundingBoxDescent,U.push({text:be,width:ye.width,height:ye.actualBoundingBoxAscent+ye.actualBoundingBoxDescent,lineHeight:ye.fontBoundingBoxAscent+ye.fontBoundingBoxDescent,offsetTop:ye.actualBoundingBoxAscent,offsetLeft:ye.actualBoundingBoxLeft}),X++}return m+=B,D+=B*H,{width:l,height:m,offsetTop:D,offsetLeft:L,lineMetrics:U}}textWidth(r,l){var m;if(l){let D=0;for(let L=0;L<r.length;L++)D+=this.textWidth(r.charAt(L));return D}return r.length>1?this.measureTextFn(r).width:(m=this.charMap.get(r))!=null?m:this.charWidth(r)}measureText(r){return this.getMetrics(r)}measureLines(r){let l=typeof r=="string"?r.split(Wa.lineSplitter):r;return this.getMultilineMetrics(l)}charWidth(r){let{width:l}=this.measureTextFn(r);return this.charMap.set(r,l),l}},bl=class Iz extends Cn{constructor(){super(...arguments),this.x=0,this.y=0,this.lines=[],this.text=void 0,this.fontSize=10,this.fontFamily="sans-serif",this.textAlign=Iz.defaultStyles.textAlign,this.textBaseline=Iz.defaultStyles.textBaseline}onTextChange(){var l,m;this.lines=(m=(l=this.text)==null?void 0:l.split(`
`).map(D=>D.trim()))!=null?m:[]}static computeBBox(l,m,D,L){let{offsetTop:B,offsetLeft:H,width:U,height:X}=Wr.measureLines(l,L);return new ft(m-H,D-B,U,X)}computeBBox(){let{x:l,y:m,lines:D,textBaseline:L,textAlign:B}=this;return Iz.computeBBox(D,l,m,{font:this,textBaseline:L,textAlign:B})}isPointInPath(l,m){let D=this.getBBox();return D?D.containsPoint(l,m):!1}render(l){let{ctx:m,stats:D}=l;if(!this.lines.length||!this.layerManager)return D&&(D.nodesSkipped+=1),super.render(l);let{fill:L,stroke:B,strokeWidth:H}=this,{pixelRatio:U}=this.layerManager.canvas;if(m.font=Wa.toFontString(this),m.textAlign=this.textAlign,m.textBaseline=this.textBaseline,L){this.applyFill(m),m.globalAlpha*=this.opacity*this.fillOpacity;let{fillShadow:X}=this;X!=null&&X.enabled&&(m.shadowColor=X.color,m.shadowOffsetX=X.xOffset*U,m.shadowOffsetY=X.yOffset*U,m.shadowBlur=X.blur*U),this.renderLines((Q,ie,ue)=>m.fillText(Q,ie,ue))}if(B&&H){this.applyStroke(m),m.lineWidth=H,m.globalAlpha*=this.opacity*this.strokeOpacity;let{lineDash:X,lineDashOffset:Q,lineCap:ie,lineJoin:ue}=this;X&&m.setLineDash(X),Q&&(m.lineDashOffset=Q),ie&&(m.lineCap=ie),ue&&(m.lineJoin=ue),this.renderLines((be,ye,Me)=>m.strokeText(be,ye,Me))}super.render(l)}renderLines(l){var U;let{lines:m,x:D,y:L}=this,B=(U=this.lineHeight)!=null?U:Wa.getLineHeight(this.fontSize),H=(B-B*m.length)*Wa.getVerticalModifier(this.textBaseline);for(let X of m)l(X,D,L+H),H+=B}setFont(l){this.fontFamily=l.fontFamily,this.fontSize=l.fontSize,this.fontStyle=l.fontStyle,this.fontWeight=l.fontWeight}setAlign(l){this.textAlign=l.textAlign,this.textBaseline=l.textBaseline}toSVG(){var m,D,L,B,H,U,X;if(!this.visible||!this.text)return;let l=document.createElementNS("http://www.w3.org/2000/svg","text");return this.applySvgFillAttributes(l),l.setAttribute("font-family",(D=(m=this.fontFamily)==null?void 0:m.split(",")[0])!=null?D:""),l.setAttribute("font-size",String(this.fontSize)),l.setAttribute("font-style",(L=this.fontStyle)!=null?L:""),l.setAttribute("font-weight",String((B=this.fontWeight)!=null?B:"")),l.setAttribute("text-anchor",{center:"middle",left:"start",right:"end",start:"start",end:"end"}[(H=this.textAlign)!=null?H:"start"]),l.setAttribute("alignment-baseline",{alphabetic:"alphabetic",top:"top",bottom:"bottom",hanging:"hanging",middle:"middle",ideographic:"ideographic"}[(U=this.textBaseline)!=null?U:"alphabetic"]),l.setAttribute("x",String(this.x)),l.setAttribute("y",String(this.y)),l.textContent=(X=this.text)!=null?X:"",{elements:[l]}}};bl.className="Text",bl.defaultStyles=He(ge({},Cn.defaultStyles),{textAlign:"start",fontStyle:void 0,fontWeight:void 0,fontSize:10,fontFamily:"sans-serif",textBaseline:"alphabetic"}),T([Lt()],bl.prototype,"x",2),T([Lt()],bl.prototype,"y",2),T([Lt({changeCb:r=>r.onTextChange()})],bl.prototype,"text",2),T([Lt()],bl.prototype,"fontStyle",2),T([Lt()],bl.prototype,"fontWeight",2),T([Lt()],bl.prototype,"fontSize",2),T([Lt()],bl.prototype,"fontFamily",2),T([Lt()],bl.prototype,"textAlign",2),T([Lt()],bl.prototype,"textBaseline",2),T([Lt()],bl.prototype,"lineHeight",2);var hr=bl,sa=class extends Cm(hr){},hs=class extends Cm(Sm(hr)){};function xI(r,l,m,D,L,B){if(r.size===0)return!1;let H=r.x,U=r.y;l!=null&&(H-=(l.x-.5)*r.size,U-=(l.y-.5)*r.size);let X=H;H<m?X=m:H>m+L&&(X=m+L);let Q=U;U<D?Q=D:U>D+B&&(Q=D+B);let ie=H-X,ue=U-Q;return Math.sqrt(ie*ie+ue*ue)<=r.size*.5}function Wy(r,l,m,D,L){let B=r.x+r.width>l&&r.x<l+D,H=r.y+r.height>m&&r.y<m+L;return B&&H}function qA(r,l,m,D,L){return l+D<r.x+r.width&&l>r.x&&m>r.y&&m+L<r.y+r.height}function MI(r){return r!=null&&typeof r.point=="object"&&typeof r.label=="object"}var wx={top:{x:0,y:-1},bottom:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0},"top-left":{x:-1,y:-1},"top-right":{x:1,y:-1},"bottom-left":{x:-1,y:1},"bottom-right":{x:1,y:1}};function kI(r,l,m=5){var U,X,Q;let D=new Map,L=[],B=new Map([...r.entries()].map(([ie,ue])=>[ie,ue.toSorted((be,ye)=>ye.point.size-be.point.size)])),H=[...B.values()].flat();for(let[ie,ue]of B.entries()){let be=[];if((U=ue[0])!=null&&U.label){for(let ye=0,Me=ue.length;ye<Me;ye++){let Ie=ue[ye],{point:Oe,label:Re,marker:Be}=Ie,{text:Ue,width:Ne,height:Qe}=Re,nt=Oe.size*.5,rt=0,ut=0;if(nt>0&&Ie.placement!=null){let xi=wx[Ie.placement];rt=(Ne*.5+nt+m)*xi.x,ut=(Qe*.5+nt+m)*xi.y}let Mt=Oe.x-Ne*.5+rt-(((X=Be==null?void 0:Be.center.x)!=null?X:.5)-.5)*Oe.size,Tt=Oe.y-Qe*.5+ut-(((Q=Be==null?void 0:Be.center.y)!=null?Q:.5)-.5)*Oe.size;if(!(!l||qA(l,Mt,Tt,Ne,Qe))||H.some(xi=>{var li;return xI(xi.point,(li=xi.marker)==null?void 0:li.center,Mt,Tt,Ne,Qe)})||L.some(xi=>Wy(xi,Mt,Tt,Ne,Qe)))continue;let Ci={index:ye,text:Ue,x:Mt,y:Tt,width:Ne,height:Qe,datum:Ie};be.push(Ci),L.push(Ci)}D.set(ie,be)}}return D}function AI(r,l=0){let m=[];for(let D=0;D<r.length;D++){let L=r[D],{point:{x:B,y:H},label:{text:U}}=L,{width:X,height:Q}=L.label;if(X+=l,Q+=l,m.some(ie=>Wy(ie,B,H,X,Q)))return!0;m.push({index:D,text:U,x:B,y:H,width:X,height:Q,datum:L})}return!1}function DI(r,l){let m=Math.max(r.length,l.length),D=new Set,L=new Set;for(let B=0;B<m;B++){let H=r[B],U=l[B];H!==U&&(L.has(U)?L.delete(U):U&&D.add(U),D.has(H)?D.delete(H):H&&L.add(H))}return{changed:D.size>0||L.size>0,added:D,removed:L}}var hd=new Intl.NumberFormat("en-US",{maximumFractionDigits:2,useGrouping:!1}),Uy=new Intl.NumberFormat("en-US",{style:"percent"});function Tc(r,l=2){return typeof r=="number"?iv(r,l):String(r!=null?r:"")}function Rc(r){return Uy.format(r)}function iv(r,l){return l===2?hd.format(r):new Intl.NumberFormat("en-US",{maximumFractionDigits:l,useGrouping:!1}).format(r)}var Ky="class-instance";function Pc(r,l,m){if(La(l)){if(!La(r)||r.length!==l.length||l.some((D,L)=>Pc(r[L],D)!=null))return l}else if(ns(l)){if(!ns(r))return l;let D={},L=new Set([...Object.keys(r),...Object.keys(l)]);for(let B of L)if(!(r[B]===l[B]||m!=null&&m.includes(B)))if(typeof r[B]==typeof l[B]){let H=Pc(r[B],l[B]);H!==null&&(D[B]=H)}else D[B]=l[B];return Object.keys(D).length?D:null}else if(r!==l)return l;return null}function xx(r,l){for(let m of Object.keys(r))if(r[m]!==(l==null?void 0:l[m]))return!1;return!0}function Ur(r,l){return La(r)?r.map(m=>Ur(m,l)):ns(r)?r0(r,l):r instanceof Map?new Map(Ur(Array.from(r))):wm(r)}function r0(r,l){let m={};for(let D of Object.keys(r))m[D]=l!=null&&l.has(D)?wm(r[D]):Ur(r[D],l);return m}function wm(r){return La(r)?r.slice(0):ns(r)?ge({},r):Fh(r)?new Date(r):Kg(r)?new RegExp(r.source,r.flags):r}function lh(r,l,m,D,L){if(La(r)){l(r,D,L);let B=0;for(let H of r)lh(H,l,m,D==null?void 0:D[B],L),B++}else if(ns(r)){l(r,D,L);for(let B of Object.keys(r)){if(m!=null&&m.has(B))continue;let H=r[B];lh(H,l,m,D==null?void 0:D[B],L)}}}function xm(r,l,m={}){let{path:D,matcherPath:L=D==null?void 0:D.replace(/(\[[0-9+]+])/i,"[]"),skip:B=[]}=m;if(r==null)throw new Error(`AG Charts - target is uninitialised: ${D!=null?D:"<root>"}`);if(l==null)return r;if(Xd(r))return r.set(l);let H=r,U=qy(r);for(let X of Object.keys(l)){if(Ls.has(X))continue;let Q=`${L?L+".":""}${X}`;if(B.includes(Q))continue;let ie=l[X],ue=`${D?D+".":""}${X}`,be=H.constructor,ye=H[X];try{let Me=qy(ye),Ie=qy(ie);if(U===Ky&&!(X in r)){if(ie===void 0)continue;vi.warn(`unable to set [${ue}] in ${be==null?void 0:be.name} - property is unknown`);continue}if(Me!=null&&Ie!=null&&Ie!==Me&&(Me!==Ky||Ie!=="object")){vi.warn(`unable to set [${ue}] in ${be==null?void 0:be.name} - can't apply type of [${Ie}], allowed types are: [${Me}]`);continue}Xd(ye)?H[X].set(ie):Ie==="object"?(ye==null&&(H[X]={}),xm(ye!=null?ye:H[X],ie,He(ge({},m),{path:ue,matcherPath:Q}))):H[X]=ie}catch(Me){vi.warn(`unable to set [${ue}] in [${be==null?void 0:be.name}]; nested error is: ${Me.message}`)}}return r}function qy(r){return r==null?null:BC(r)||Fh(r)?"primitive":La(r)?"array":Jn(r)?ns(r)?"object":Ky:gl(r)?"function":"primitive"}function Ai(r,l){let m=La(r)?r:r.split(".");if(m.length===1){let[D]=m;return Vn((L,B,H)=>L[D]=H,L=>L[D],l)}return Vn((D,L,B)=>Vf(D,m,B),D=>od(D,m),l)}function s0(r){return Vn((l,m,D)=>l[r]=D)}function Tn(r,l){return Vn((m,D,L)=>m[r][l!=null?l:D]=L)}function Cl(r){let{newValue:l,oldValue:m,changeValue:D}=r;return Vn((L,B,H,U)=>(H!==U&&(U!==void 0&&(m==null||m.call(L,U)),H!==void 0&&(l==null||l.call(L,H)),D==null||D.call(L,H,U)),H))}function ip(r){return qd(r)}var nv="color: green",io="color: grey";function Mm(){return qd(()=>{})}function l0(r,l){let m=is(l);if(m.length===0)return;let D=hl(r);for(let L of m)L in D&&(l[L]=D[L])}var YA=class{transitionRoot(r,l){this.parent?this.parent.transitionRoot(r,l):this.transition(r,l)}},av=class Hg extends YA{constructor(l,m,D){super(),this.defaultState=l,this.states=m,this.enterEach=D,this.debug=Ma.create(!0,"animation"),this.state=l,this.debug(`%c${this.constructor.name} | init -> ${l}`,nv)}transition(l,m){var ie,ue,be,ye;if(!this.transitionChild(l,m)||this.state===Hg.child||this.state===Hg.parent)return;let L=this.state,B=this.states[this.state],H=B[l],U=`%c${this.constructor.name} | ${this.state} -> ${l} ->`;if(Array.isArray(H))H=H.find(Me=>{if(!Me.guard)return!0;let Ie=Me.guard(m);return Ie||this.debug(`${U} (guarded)`,Me.target,io),Ie});else if(typeof H=="object"&&!(H instanceof Hg)&&H.guard&&!H.guard(m)){this.debug(`${U} (guarded)`,H.target,io);return}if(!H){this.debug(`${U} ${this.state}`,io);return}let X=this.getDestinationState(H),Q=X===this.state?void 0:B.onExit;this.debug(`${U} ${X}`,nv),this.state=X,typeof H=="function"?H(m):typeof H=="object"&&!(H instanceof Hg)&&((ie=H.action)==null||ie.call(H,m)),Q==null||Q(),(ue=this.enterEach)==null||ue.call(this,L,X),X!==L&&X!==Hg.child&&X!==Hg.parent&&((ye=(be=this.states[X]).onEnter)==null||ye.call(be,L,m))}transitionAsync(l,m){setTimeout(()=>{this.transition(l,m)},0)}is(l){return this.state===Hg.child&&this.childState?this.childState.is(l):this.state===l}resetHierarchy(){this.debug(`%c${this.constructor.name} | ${this.state} -> [resetHierarchy] -> ${this.defaultState}`,"color: green"),this.state=this.defaultState}transitionChild(l,m){var D,L;return this.state!==Hg.child||!this.childState||(l0(this,this.childState),this.childState.transition(l,m),!this.childState.is(Hg.parent))?!0:(this.debug(`%c${this.constructor.name} | ${this.state} -> ${l} -> ${this.defaultState}`,nv),this.state=this.defaultState,(L=(D=this.states[this.state]).onEnter)==null||L.call(D),this.childState.resetHierarchy(),!1)}getDestinationState(l){let m=this.state;return typeof l=="string"?m=l:l instanceof Hg?(this.childState=l,this.childState.parent=this,m=Hg.child):typeof l=="object"&&(l.target instanceof Hg?(this.childState=l.target,this.childState.parent=this,m=Hg.child):l.target!=null&&(m=l.target)),m}};av.child="__child",av.parent="__parent";var no=av,XA=class extends YA{constructor(...r){super(),this.stateMachines=r;for(let l of r)l.parent=this}transition(r,l){for(let m of this.stateMachines)l0(this,m),m.transition(r,l)}transitionAsync(r,l){for(let m of this.stateMachines)l0(this,m),m.transitionAsync(r,l)}};function Yy(){let r=new Map;return l=>{let m=r.get(l);return m?(r.set(l,m+1),`${l}_${m}`):(r.set(l,1),l)}}var c0=class{static wrapText(r,l){return this.wrapLines(r,l).join(`
`)}static wrapLines(r,l){let m=this.textWrap(r,l);return l.overflow==="hide"&&m.some(D=>D.endsWith(Wa.EllipsisChar))?[]:m}static appendEllipsis(r){return r.replace(/[.,]{1,5}$/,"")+Wa.EllipsisChar}static truncateLine(r,l,m,D){let L=l.textWidth(Wa.EllipsisChar),B=0,H=0;for(;H<r.length;H++){let U=l.textWidth(r.charAt(H));if(B+U>m)break;B+=U}if(r.length===H&&(!D||B+L<=m))return D?r+Wa.EllipsisChar:r;for(r=r.slice(0,H).trimEnd();r.length&&l.textWidth(r)+L>m;)r=r.slice(0,-1).trimEnd();return r+Wa.EllipsisChar}static textWrap(r,l){let m=r.split(Wa.lineSplitter),D=Wr.getMeasurer(l);if(l.textWrap==="never")return m.map(U=>this.truncateLine(U.trimEnd(),D,l.maxWidth));let L=[],B=l.textWrap==="hyphenate",H=l.textWrap==null||l.textWrap==="on-space";for(let U of m){let X=U.trimEnd();if(X===""){L.push(X);continue}for(let Q=0,ie=0,ue=0;Q<X.length;Q++){let be=X.charAt(Q);if(ie+=D.textWidth(be),be===" "&&(ue=Q),ie>l.maxWidth){if(Q===0)break;let ye=D.textWidth(X.slice(0,Q+1));if(ye<=l.maxWidth){ie=ye;continue}if(ue){let Oe=this.getWordAt(X,ue+1),Re=D.textWidth(Oe);if(Re<=l.maxWidth){L.push(X.slice(0,ue).trimEnd()),X=X.slice(ue).trimStart(),Q=-1,ie=0,ue=0;continue}else H&&Re>l.maxWidth&&L.push(X.slice(0,ue).trimEnd(),this.truncateLine(X.slice(ue).trimStart(),D,l.maxWidth,!0))}else H&&L.push(this.truncateLine(X,D,l.maxWidth,!0));if(H){X="";break}let Me=B?"-":"",Ie=X.slice(0,Q).trim();for(;Ie.length&&D.textWidth(Ie+Me)>l.maxWidth;)Ie=Ie.slice(0,-1).trimEnd();if(L.push(Ie+Me),!Ie.length){X="";break}X=X.slice(Ie.length).trimStart(),Q=-1,ie=0,ue=0}}X&&L.push(X)}return this.avoidOrphans(L,D,l),this.clipLines(L,D,l)}static getWordAt(r,l){let m=r.indexOf(" ",l);return m===-1?r.slice(l):r.slice(l,m)}static clipLines(r,l,m){if(!m.maxHeight)return r;let{height:D,lineMetrics:L}=l.measureLines(r);if(D<=m.maxHeight)return r;for(let B=0,H=0;B<L.length;B++){let{lineHeight:U}=L[B];if(H+=U,H>m.maxHeight){if(m.overflow==="hide")return[];let X=r.slice(0,B||1),Q=X.pop();return X.concat(this.truncateLine(Q,l,m.maxWidth,!0))}}return r}static avoidOrphans(r,l,m){if(m.avoidOrphans===!1||r.length<2)return;let{length:D}=r,L=r[D-1],B=r[D-2];if(B.length<L.length)return;let H=B.lastIndexOf(" ");if(H===-1||H===B.indexOf(" ")||L.includes(" "))return;let U=B.slice(H+1);l.textWidth(L+U)<=m.maxWidth&&(r[D-2]=B.slice(0,H),r[D-1]=U+" "+L)}},Ua=class extends Hi{constructor(){super(...arguments),this.id=Y(this),this.node=new sa({zIndex:1}).setProperties({textAlign:"center",pointerEvents:1}),this.enabled=!1,this.textAlign="center",this.fontSize=10,this.fontFamily="sans-serif",this.wrapping="always",this.padding=0,this.layoutStyle="block",this.truncated=!1}registerInteraction(r,l){return r.layoutManager.addListener("layout:complete",()=>this.updateA11yText(r,l))}computeTextWrap(r,l){var X,Q;let{text:m,padding:D,wrapping:L}=this,B=Math.min((X=this.maxWidth)!=null?X:1/0,r)-D*2,H=(Q=this.maxHeight)!=null?Q:l-D*2;if(!isFinite(B)&&!isFinite(H)){this.node.text=m;return}let U=c0.wrapText(m!=null?m:"",{maxWidth:B,maxHeight:H,font:this,textWrap:L});this.node.text=U,this.truncated=U.includes(Wa.EllipsisChar)}updateA11yText(r,l){var D,L;let{proxyInteractionService:m}=r;if(this.enabled&&this.text){let B=Ho.toCanvas(this.node);if(B){let{id:H}=this;(D=this.proxyText)!=null||(this.proxyText=m.createProxyElement({type:"text",domManagerId:H,where:l})),this.proxyText.textContent=this.text,this.proxyText.setBounds(B),this.proxyText.addListener("mousemove",U=>this.handleMouseMove(r,U)),this.proxyText.addListener("mouseleave",U=>this.handleMouseLeave(r,U))}}else(L=this.proxyText)==null||L.destroy(),this.proxyText=void 0}handleMouseMove(r,l){if(l!=null&&this.enabled&&this.node.visible&&this.truncated){let{x:m,y:D}=Ho.toCanvas(this.node),L=l.sourceEvent.offsetX+m,B=l.sourceEvent.offsetY+D,H={type:"hover",canvasX:L,canvasY:B};r.tooltipManager.updateTooltip(this.id,{canvasX:L,canvasY:B,lastPointerEvent:H,showArrow:!1},{title:this.text})}}handleMouseLeave(r,l){r.tooltipManager.removeTooltip(this.id)}};Ua.SMALL_PADDING=10,Ua.LARGE_PADDING=20,T([je(Ri),Tn("node","visible")],Ua.prototype,"enabled",2),T([je(Qt,{optional:!0}),Tn("node")],Ua.prototype,"text",2),T([je(QC,{optional:!0}),Tn("node")],Ua.prototype,"textAlign",2),T([je($u,{optional:!0}),Tn("node")],Ua.prototype,"fontStyle",2),T([je(Qu,{optional:!0}),Tn("node")],Ua.prototype,"fontWeight",2),T([je(bi),Tn("node")],Ua.prototype,"fontSize",2),T([je(Qt),Tn("node")],Ua.prototype,"fontFamily",2),T([je(In,{optional:!0}),Tn("node","fill")],Ua.prototype,"color",2),T([je(bi,{optional:!0})],Ua.prototype,"spacing",2),T([je(bi,{optional:!0})],Ua.prototype,"maxWidth",2),T([je(bi,{optional:!0})],Ua.prototype,"maxHeight",2),T([je(Fy)],Ua.prototype,"wrapping",2),T([je(bi)],Ua.prototype,"padding",2),T([je(Qt)],Ua.prototype,"layoutStyle",2);var ch=class extends Cn{constructor(r={}){super(r),this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.startLine=!1,this.endLine=!1,this.isRange=!1,this.restoreOwnStyles()}computeBBox(){return new ft(this.x1,this.y1,this.x2-this.x1,this.y2-this.y1)}isPointInPath(r,l){return!1}render(r){var Ie;let{ctx:l}=r,{x1:m,y1:D,x2:L,y2:B}=this;m=this.align(m),D=this.align(D),L=this.align(L),B=this.align(B);let{fill:H,opacity:U,isRange:X}=this;if(!!(X&&H)){let{fillOpacity:Oe}=this;this.applyFill(l),l.globalAlpha=U*Oe,l.beginPath(),l.moveTo(m,D),l.lineTo(L,D),l.lineTo(L,B),l.lineTo(m,B),l.closePath(),l.fill()}let{stroke:ie,strokeWidth:ue,startLine:be,endLine:ye}=this;if(!!((be||ye)&&ie&&ue)){let{strokeOpacity:Oe,lineDash:Re,lineDashOffset:Be,lineCap:Ue,lineJoin:Ne}=this;this.applyStroke(l),l.globalAlpha=U*Oe,l.lineWidth=ue,Re&&l.setLineDash(Re),Be&&(l.lineDashOffset=Be),Ue&&(l.lineCap=Ue),Ne&&(l.lineJoin=Ne),l.beginPath(),be&&(l.moveTo(m,D),l.lineTo(L,D)),ye&&(l.moveTo(L,B),l.lineTo(m,B)),l.stroke()}(Ie=this.fillShadow)==null||Ie.markClean(),super.render(r)}};ch.className="Range",ch.defaultStyles=He(ge({},Cn.defaultStyles),{strokeWidth:1}),T([Lt()],ch.prototype,"x1",2),T([Lt()],ch.prototype,"y1",2),T([Lt()],ch.prototype,"x2",2),T([Lt()],ch.prototype,"y2",2),T([Lt()],ch.prototype,"startLine",2),T([Lt()],ch.prototype,"endLine",2),T([Lt()],ch.prototype,"isRange",2);var So=class extends Hi{constructor(){super(...arguments),this.enabled=!0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}getFont(){return Wa.toFontString(this)}};T([je(Ri)],So.prototype,"enabled",2),T([je(In,{optional:!0})],So.prototype,"color",2),T([je($u,{optional:!0})],So.prototype,"fontStyle",2),T([je(Qu,{optional:!0})],So.prototype,"fontWeight",2),T([je(bi)],So.prototype,"fontSize",2),T([je(Qt)],So.prototype,"fontFamily",2),T([je(_a,{optional:!0})],So.prototype,"formatter",2);function Xy(r){let{parallelFlipRotation:l=0,regularFlipRotation:m=0}=r,D=r.rotation?Nn(Ge(r.rotation)):0,L=!D&&l>=0&&l<=Math.PI?-1:1,B=!D&&m>=0&&m<=Math.PI?-1:1,H=0;return r.parallel?H=L*Math.PI/2:B===-1&&(H=Math.PI),{configuredRotation:D,defaultRotation:H,parallelFlipFlag:L,regularFlipFlag:B}}function km(r,l){return isNaN(r)?l?0:10:r}function Lc(r,l,m,D){return r&&!l?m*D===-1?"hanging":"bottom":"middle"}function eu(r,l,m,D,L){let B=l>0&&l<=Math.PI,H=m>0&&m<=Math.PI,U=B||H?-1:1;if(r)if(l||m){if(D*U===-1)return"end"}else return"center";else if(D*L===-1)return"end";return"start"}function ZA(r,l,m,D){let L=[];for(let{tickLabel:B,translationY:H}of r){if(!B)continue;let{width:U,height:X}=D.measureLines(B),Q=new ft(l,H,U,X),ie=new ft(l,H,0,0);m.transformBBox(ie,Q);let{x:ue,y:be}=Q;L.push({point:{x:ue,y:be},label:{text:B,width:U,height:X}})}return L}function $A(r){return r!=null&&Object.hasOwn(r,"toString")&&wa(r.toString())}function QA(r){return r!=null&&Object.hasOwn(r,"valueOf")&&ea(r.valueOf())}function dh(r){return ea(r)||Ro(r)||QA(r)}function JA(r,l){return r!=null&&(!l||dh(r))}function d0(r){return $A(r)&&Object.hasOwn(r,"id")?r.id:r}var Am=r=>r==="value"?Zn((l,m)=>m.target.type==="line",l=>l.target.type==="range"?"crossLine type 'range' to have a 'range' property instead of 'value'":"crossLine property 'type' to be 'line'"):Zn((l,m)=>m.target.type==="range",l=>l.target.type==="line"?"crossLine type 'line' to have a 'value' property instead of 'range'":"crossLine property 'type' to be 'range'"),Mx=(r,l,m,D,L)=>{var ye;let B=r==="line"&&l!==void 0,H=r==="range"&&m!==void 0;if(!B&&!H)return!0;let[U,X]=m!=null?m:[l,void 0],Q=Fa.is(D)||us.is(D),ie=JA(U,Q)&&!isNaN(D.convert(U)),ue=JA(X,Q)&&!isNaN(D.convert(X));if(B&&ie||H&&ie&&ue)return(ye=L==null?void 0:L())!=null?ye:!0;let be=["Expecting crossLine"];return H?(ie||be.push(`range start ${Zd(U)}`),ue||be.push(`${ie?"":"and "}range end ${Zd(X)}`)):be.push(`value ${Zd(U)}`),be.push("to match the axis scale domain."),vi.warnOnce(be.join(" ")),!1},eD={top:{xTranslationDirection:0,yTranslationDirection:-1},bottom:{xTranslationDirection:0,yTranslationDirection:1},left:{xTranslationDirection:-1,yTranslationDirection:0},right:{xTranslationDirection:1,yTranslationDirection:0},"top-left":{xTranslationDirection:1,yTranslationDirection:-1},"top-right":{xTranslationDirection:-1,yTranslationDirection:-1},"bottom-left":{xTranslationDirection:1,yTranslationDirection:1},"bottom-right":{xTranslationDirection:-1,yTranslationDirection:1},inside:{xTranslationDirection:0,yTranslationDirection:0},"inside-left":{xTranslationDirection:1,yTranslationDirection:0},"inside-right":{xTranslationDirection:-1,yTranslationDirection:0},"inside-top":{xTranslationDirection:0,yTranslationDirection:1},"inside-bottom":{xTranslationDirection:0,yTranslationDirection:-1},"inside-top-left":{xTranslationDirection:1,yTranslationDirection:1},"inside-bottom-left":{xTranslationDirection:1,yTranslationDirection:-1},"inside-top-right":{xTranslationDirection:-1,yTranslationDirection:1},"inside-bottom-right":{xTranslationDirection:-1,yTranslationDirection:-1}},gd={top:{xTranslationDirection:1,yTranslationDirection:0},bottom:{xTranslationDirection:-1,yTranslationDirection:0},left:{xTranslationDirection:0,yTranslationDirection:-1},right:{xTranslationDirection:0,yTranslationDirection:1},"top-left":{xTranslationDirection:-1,yTranslationDirection:-1},"top-right":{xTranslationDirection:-1,yTranslationDirection:1},"bottom-left":{xTranslationDirection:1,yTranslationDirection:-1},"bottom-right":{xTranslationDirection:1,yTranslationDirection:1},inside:{xTranslationDirection:0,yTranslationDirection:0},"inside-left":{xTranslationDirection:0,yTranslationDirection:1},"inside-right":{xTranslationDirection:0,yTranslationDirection:-1},"inside-top":{xTranslationDirection:-1,yTranslationDirection:0},"inside-bottom":{xTranslationDirection:1,yTranslationDirection:0},"inside-top-left":{xTranslationDirection:-1,yTranslationDirection:1},"inside-bottom-left":{xTranslationDirection:1,yTranslationDirection:1},"inside-top-right":{xTranslationDirection:-1,yTranslationDirection:-1},"inside-bottom-right":{xTranslationDirection:1,yTranslationDirection:-1}};function Zy({yDirection:r,padding:l=0,position:m="top",bbox:D}){let L=r?eD:gd,{xTranslationDirection:B,yTranslationDirection:H}=L[m],U=B*(l+D.width/2),X=H*(l+D.height/2);return{xTranslation:U,yTranslation:X}}function pd({yDirection:r,bbox:l,padding:m=0,position:D="top"}){let L={};return D.startsWith("inside")||(D==="top"&&!r?L.top=m+l.height:D==="bottom"&&!r?L.bottom=m+l.height:D==="left"&&r?L.left=m+l.width:D==="right"&&r&&(L.right=m+l.width)),L}var $y=({direction:r,xEnd:l,yStart:m,yEnd:D})=>r==="y"?{x:l/2,y:m}:{x:l,y:isNaN(D)?m:(m+D)/2},tD=({direction:r,xStart:l,xEnd:m,yStart:D,yEnd:L})=>r==="y"?{x:l,y:isNaN(L)?D:(D+L)/2}:{x:m/2,y:D},u0=({direction:r,xEnd:l,yStart:m,yEnd:D})=>r==="y"?{x:l,y:isNaN(D)?m:(m+D)/2}:{x:l/2,y:isNaN(D)?m:D},Dm=({direction:r,xStart:l,xEnd:m,yStart:D,yEnd:L})=>r==="y"?{x:m/2,y:isNaN(L)?D:L}:{x:l,y:isNaN(L)?D:(D+L)/2},PP=({xEnd:r,yStart:l,yEnd:m})=>({x:r/2,y:isNaN(m)?l:(l+m)/2}),h0=({direction:r,xStart:l,xEnd:m,yStart:D})=>r==="y"?{x:l/2,y:D}:{x:m,y:D},wo=({direction:r,xStart:l,yStart:m,yEnd:D})=>r==="y"?{x:l,y:isNaN(D)?m:D}:{x:l,y:m},ov=({direction:r,xEnd:l,yStart:m,yEnd:D})=>r==="y"?{x:l,y:m}:{x:l,y:isNaN(D)?m:D},kx=({direction:r,xStart:l,xEnd:m,yStart:D,yEnd:L})=>r==="y"?{x:m,y:isNaN(L)?D:L}:{x:l,y:isNaN(L)?D:L},tu={top:{c:$y},bottom:{c:Dm},left:{c:tD},right:{c:u0},"top-left":{c:h0},"top-right":{c:ov},"bottom-left":{c:wo},"bottom-right":{c:kx},inside:{c:PP},"inside-left":{c:tD},"inside-right":{c:u0},"inside-top":{c:$y},"inside-bottom":{c:Dm},"inside-top-left":{c:h0},"inside-bottom-left":{c:wo},"inside-top-right":{c:ov},"inside-bottom-right":{c:kx}},g0=Xn(["top","left","right","bottom","top-left","top-right","bottom-left","bottom-right","inside","inside-left","inside-right","inside-top","inside-bottom","inside-top-left","inside-bottom-left","inside-top-right","inside-bottom-right"],"crossLine label position"),Ws=class extends Hi{constructor(){super(...arguments),this.fontSize=14,this.fontFamily="Verdana, sans-serif",this.padding=5,this.color="rgba(87, 87, 87, 1)"}};T([je(Ri,{optional:!0})],Ws.prototype,"enabled",2),T([je(Qt,{optional:!0})],Ws.prototype,"text",2),T([je($u,{optional:!0})],Ws.prototype,"fontStyle",2),T([je(Qu,{optional:!0})],Ws.prototype,"fontWeight",2),T([je(bi)],Ws.prototype,"fontSize",2),T([je(Qt)],Ws.prototype,"fontFamily",2),T([je(yn)],Ws.prototype,"padding",2),T([je(In,{optional:!0})],Ws.prototype,"color",2),T([je(g0,{optional:!0})],Ws.prototype,"position",2),T([je(yn,{optional:!0})],Ws.prototype,"rotation",2),T([je(Ri,{optional:!0})],Ws.prototype,"parallel",2);var gs=class extends Hi{constructor(){super(),this.id=Y(this),this.label=new Ws,this.scale=void 0,this.clippedRange=[-1/0,1/0],this.gridLength=0,this.sideFlag=-1,this.parallelFlipRotation=0,this.regularFlipRotation=0,this.direction="x",this.rangeGroup=new Ji({name:this.id}),this.lineGroup=new Ji({name:this.id}),this.labelGroup=new Ji({name:this.id}),this.crossLineRange=new ch,this.crossLineLabel=new hs,this.labelPoint=void 0,this.data=[],this.startLine=!1,this.endLine=!1,this.isRange=!1,this._isRange=void 0,this.lineGroup.append(this.crossLineRange),this.labelGroup.append(this.crossLineLabel),this.crossLineRange.pointerEvents=1}update(r){let{enabled:l,data:m,type:D,value:L,range:B,scale:H}=this;if(!D||!H||!l||!r||!Mx(D,L,B,H)||m.length===0){this.rangeGroup.visible=!1,this.lineGroup.visible=!1,this.labelGroup.visible=!1;return}this.rangeGroup.visible=r,this.lineGroup.visible=r,this.labelGroup.visible=r,this.updateNodes();let{isRange:U}=this;U!==this._isRange&&(U?this.rangeGroup.appendChild(this.crossLineRange):this.lineGroup.appendChild(this.crossLineRange)),this._isRange=U}calculateLayout(r,l){var rt,ut,Mt;if(!r)return;let{scale:m,gridLength:D,sideFlag:L,direction:B,label:{position:H="top"},clippedRange:U,strokeWidth:X=0}=this;if(this.data=[],!m)return;let Q=(rt=m.bandwidth)!=null?rt:0,ie=(ut=m.step)!=null?ut:0,ue=(l?-1:1)*(m instanceof ml?(ie-Q)/2:0),[be,ye]=[0,L*D],[Me,Ie]=this.getRange(),Oe=Ie===void 0&&us.is(m)?Q/2+ue:0,[Re,Be]=[Number(m.convert(Me,!0))-ue+Oe,m.convert(Ie,!0)+Q+ue];Re=St(Re,U),Be=St(Be,U),[Me,Ie]=[Number(m.convert(Me))+Oe,m.convert(Ie)+Q];let Ue=(Me===Re||Ie===Be||Re!==Be)&&Math.abs(Be-Re)>0;if(Ue&&Re>Be&&([Re,Be]=[Be,Re],[Me,Ie]=[Ie,Me]),Me-ue>=Re&&(Me-=ue),Ie+ue<=Be&&(Ie+=ue),this.isRange=Ue,this.startLine=X>0&&Me>=Re&&Me<=Re+ue,this.endLine=X>0&&Ie>=Be-Q-ue&&Ie<=Be,!Ue&&!this.startLine&&!this.endLine||(this.data=[Re,Be],!this.label.enabled))return;let{c:Ne=$y}=(Mt=tu[H])!=null?Mt:{},{x:Qe,y:nt}=Ne({direction:B,xStart:be,xEnd:ye,yStart:Re,yEnd:Be});this.labelPoint={x:Qe,y:nt}}updateNodes(){this.updateRangeNode(),this.label.enabled&&(this.updateLabel(),this.positionLabel())}updateRangeNode(){var be;let{crossLineRange:r,sideFlag:l,gridLength:m,data:D,startLine:L,endLine:B,isRange:H,fill:U,fillOpacity:X,stroke:Q,strokeWidth:ie,lineDash:ue}=this;r.x1=0,r.x2=l*m,r.y1=D[0],r.y2=D[1],r.startLine=L,r.endLine=B,r.isRange=H,r.fill=U,r.fillOpacity=X!=null?X:1,r.stroke=Q,r.strokeWidth=ie!=null?ie:1,r.strokeOpacity=(be=this.strokeOpacity)!=null?be:1,r.lineDash=ue}updateLabel(){let{crossLineLabel:r,label:l}=this;l.text&&(r.fontStyle=l.fontStyle,r.fontWeight=l.fontWeight,r.fontSize=l.fontSize,r.fontFamily=l.fontFamily,r.fill=l.color,r.text=l.text)}positionLabel(){let{crossLineLabel:r,labelPoint:{x:l=void 0,y:m=void 0}={},label:{parallel:D,rotation:L,position:B="top",padding:H=0},direction:U,parallelFlipRotation:X,regularFlipRotation:Q}=this;if(l===void 0||m===void 0)return;let{defaultRotation:ie,configuredRotation:ue}=Xy({rotation:L,parallel:D,regularFlipRotation:Q,parallelFlipRotation:X});r.rotation=ie+ue,r.textBaseline="middle",r.textAlign="center";let be=r.getBBox();if(!be)return;let ye=U==="y",{xTranslation:Me,yTranslation:Ie}=Zy({yDirection:ye,padding:H,position:B,bbox:be});r.translationX=l+Me,r.translationY=m+Ie}getRange(){var H;let{value:r,range:l,scale:m}=this,D=Fa.is(m)||us.is(m),L=(H=l==null?void 0:l[0])!=null?H:r,B=l==null?void 0:l[1];return!D&&B===void 0&&(B=L),D&&L===B&&(B=void 0),[L,B]}computeLabelBBox(){let{label:r}=this;if(!r.enabled)return;let l=new hs;l.fontFamily=r.fontFamily,l.fontSize=r.fontSize,l.fontStyle=r.fontStyle,l.fontWeight=r.fontWeight,l.text=r.text;let{labelPoint:{x:m=void 0,y:D=void 0}={},label:{parallel:L,rotation:B,position:H="top",padding:U=0},direction:X,parallelFlipRotation:Q,regularFlipRotation:ie}=this;if(m===void 0||D===void 0)return;let{configuredRotation:ue}=Xy({rotation:B,parallel:L,regularFlipRotation:ie,parallelFlipRotation:Q});l.rotation=ue,l.textBaseline="middle",l.textAlign="center";let be=l.getBBox();if(!be)return;let ye=X==="y",{xTranslation:Me,yTranslation:Ie}=Zy({yDirection:ye,padding:U,position:H,bbox:be});return l.x=m+Me,l.y=D+Ie,l.getBBox()}calculatePadding(r){var Q,ie,ue,be,ye,Me,Ie,Oe;let{isRange:l,startLine:m,endLine:D,direction:L,label:{padding:B=0,position:H="top"}}=this;if(!l&&!m&&!D)return;let U=this.computeLabelBBox();if((U==null?void 0:U.x)==null||(U==null?void 0:U.y)==null)return;let X=pd({yDirection:L==="y",padding:B,position:H,bbox:U});r.left=Math.max((Q=r.left)!=null?Q:0,(ie=X.left)!=null?ie:0),r.right=Math.max((ue=r.right)!=null?ue:0,(be=X.right)!=null?be:0),r.top=Math.max((ye=r.top)!=null?ye:0,(Me=X.top)!=null?Me:0),r.bottom=Math.max((Ie=r.bottom)!=null?Ie:0,(Oe=X.bottom)!=null?Oe:0)}};gs.className="CrossLine",T([je(Ri,{optional:!0})],gs.prototype,"enabled",2),T([je(Xn(["range","line"],"a crossLine type"),{optional:!0})],gs.prototype,"type",2),T([je(dd(Am("range"),Yf.restrict({length:2})),{optional:!0})],gs.prototype,"range",2),T([je(Am("value"),{optional:!0})],gs.prototype,"value",2),T([je(In,{optional:!0})],gs.prototype,"fill",2),T([je(oa,{optional:!0})],gs.prototype,"fillOpacity",2),T([je(In,{optional:!0})],gs.prototype,"stroke",2),T([je(yn,{optional:!0})],gs.prototype,"strokeWidth",2),T([je(oa,{optional:!0})],gs.prototype,"strokeOpacity",2),T([je(bo,{optional:!0})],gs.prototype,"lineDash",2),T([je(Si)],gs.prototype,"label",2);var iD=(r=>(r[r.CHART_BACKGROUND=0]="CHART_BACKGROUND",r[r.AXIS_GRID=1]="AXIS_GRID",r[r.AXIS=2]="AXIS",r[r.SERIES_CROSSLINE_RANGE=3]="SERIES_CROSSLINE_RANGE",r[r.SERIES_LAYER=4]="SERIES_LAYER",r[r.AXIS_FOREGROUND=5]="AXIS_FOREGROUND",r[r.SERIES_CROSSHAIR=6]="SERIES_CROSSHAIR",r[r.SERIES_CROSSLINE_LINE=7]="SERIES_CROSSLINE_LINE",r[r.SERIES_ANNOTATION=8]="SERIES_ANNOTATION",r[r.CHART_ANNOTATION=9]="CHART_ANNOTATION",r[r.CHART_ANNOTATION_FOCUSED=10]="CHART_ANNOTATION_FOCUSED",r[r.STATUS_BAR=11]="STATUS_BAR",r[r.SERIES_LABEL=12]="SERIES_LABEL",r[r.LEGEND=13]="LEGEND",r[r.NAVIGATOR=14]="NAVIGATOR",r[r.FOREGROUND=15]="FOREGROUND",r))(iD||{}),EI=["stroke","lineDash"],LP=bn(r=>Jn(r)&&Object.keys(r).every(l=>EI.includes(l)),"objects with gridline style properties such as 'stroke' or 'lineDash'"),p0=class{constructor(){this.enabled=!0,this.width=1,this.style=[{stroke:void 0,lineDash:[]}]}};T([je(Ri)],p0.prototype,"enabled",2),T([je(bi)],p0.prototype,"width",2),T([je(LP)],p0.prototype,"style",2);function qh(r,l=[void 0]){return Vn((m,D,L)=>l.includes(L)?gl(r)?r(L):r:L)}var nD={};A(nD,{TimeInterval:()=>Ql,day:()=>fn,friday:()=>Uf,hour:()=>cd,millisecond:()=>Vr,minute:()=>ga,monday:()=>AP,month:()=>gn,saturday:()=>Kf,second:()=>Mi,sunday:()=>hm,thursday:()=>ix,tuesday:()=>DP,utcDay:()=>Jy,utcHour:()=>Qy,utcMinute:()=>Ax,utcMonth:()=>eb,utcYear:()=>iu,wednesday:()=>gI,year:()=>Ec});function OP(r){return Math.floor(r.getTime()/Po)}function II(r){return new Date(r*Po)}var Ax=new rs(OP,II);function m0(r){return Math.floor(r.getTime()/$l)}function rv(r){return new Date(r*$l)}var Qy=new rs(m0,rv);function np(r){return Math.floor(r.getTime()/Fs)}function tc(r){let l=new Date(0);return l.setUTCDate(l.getUTCDate()+r),l.setUTCHours(0,0,0,0),l}var Jy=new rs(np,tc);function sv(r){return r.getUTCFullYear()*12+r.getUTCMonth()}function FP(r){let l=Math.floor(r/12),m=r-l*12;return new Date(Date.UTC(l,m,1))}var eb=new rs(sv,FP);function aD(r){return r.getUTCFullYear()}function Dx(r){let l=new Date;return l.setUTCFullYear(r),l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0),l}var iu=new rs(aD,Dx),oD=Zn(r=>ea(r)&&r>0||r instanceof Ql,"a non-zero positive Number value or, for a time axis, a Time Interval such as 'agCharts.time.month'"),Oc=class extends Hi{constructor(){super(...arguments),this.minSpacing=NaN,this.maxSpacing=NaN}};T([je(oD,{optional:!0})],Oc.prototype,"step",2),T([je(Yf,{optional:!0})],Oc.prototype,"values",2),T([je(JC),qh(NaN)],Oc.prototype,"minSpacing",2),T([je(ox),qh(NaN)],Oc.prototype,"maxSpacing",2);var gr=class extends Hi{constructor(){super(...arguments),this.enabled=!0,this.fontSize=12,this.fontFamily="Verdana, sans-serif",this.spacing=5,this.minSpacing=NaN,this.color="#575757",this.avoidCollisions=!0,this.mirrored=!1,this.parallel=!1}getSideFlag(){return this.mirrored?1:-1}};T([je(Ri)],gr.prototype,"enabled",2),T([je($u,{optional:!0})],gr.prototype,"fontStyle",2),T([je(Qu,{optional:!0})],gr.prototype,"fontWeight",2),T([je(yn.restrict({min:1}))],gr.prototype,"fontSize",2),T([je(Qt)],gr.prototype,"fontFamily",2),T([je(bi)],gr.prototype,"spacing",2),T([je(jt),qh(NaN)],gr.prototype,"minSpacing",2),T([je(In,{optional:!0})],gr.prototype,"color",2),T([je(yn,{optional:!0})],gr.prototype,"rotation",2),T([je(Ri)],gr.prototype,"avoidCollisions",2),T([je(Ri)],gr.prototype,"mirrored",2),T([je(Ri)],gr.prototype,"parallel",2),T([je(_a,{optional:!0})],gr.prototype,"itemStyler",2),T([je(_a,{optional:!0})],gr.prototype,"formatter",2),T([je(Qt,{optional:!0})],gr.prototype,"format",2);var lv=class{constructor(){this.enabled=!0,this.width=1,this.stroke=void 0}};T([je(Ri)],lv.prototype,"enabled",2),T([je(bi)],lv.prototype,"width",2),T([je(In,{optional:!0})],lv.prototype,"stroke",2);var nu=class extends Hi{constructor(){super(...arguments),this.enabled=!0,this.width=1,this.size=6}};T([je(Ri)],nu.prototype,"enabled",2),T([je(bi)],nu.prototype,"width",2),T([je(bi)],nu.prototype,"size",2),T([je(In,{optional:!0})],nu.prototype,"stroke",2);var md=class extends Hi{constructor(){super(...arguments),this.caption=new Ua,this.enabled=!1,this.spacing=Ua.SMALL_PADDING,this.fontSize=10,this.fontFamily="sans-serif",this.wrapping="always"}};T([je(Ri)],md.prototype,"enabled",2),T([je(Qt,{optional:!0})],md.prototype,"text",2),T([je(bi,{optional:!0})],md.prototype,"spacing",2),T([je($u,{optional:!0})],md.prototype,"fontStyle",2),T([je(Qu,{optional:!0})],md.prototype,"fontWeight",2),T([je(bi)],md.prototype,"fontSize",2),T([je(Qt)],md.prototype,"fontFamily",2),T([je(In,{optional:!0})],md.prototype,"color",2),T([je(Fy)],md.prototype,"wrapping",2),T([je(_a,{optional:!0})],md.prototype,"formatter",2);function Yh(r){let[l,m]=Xe(r.range),D=Math.floor(l),L=Math.ceil(m);return{min:D,max:L,visible:D!==L}}var tb=Math.PI*2,Wo=tb/2;function Sl(r,l){return Math.abs(l-r)<Wo?l:r>l?l+tb:l-tb}function Ex(r){let l=(H,U)=>{let[X=r.min,Q=r.max]=Xe(U!=null?U:[]);return H<X||H>Q};return{tick:{fromFn(H,U,X){let Q=H.y1+H.translationY,ie=H.opacity;return(X==="added"||l(H.datum.translationY,H.datum.range))&&(Q=U.translationY,ie=0),{y:0,translationY:Q,opacity:ie,phase:os[X]}},toFn(H,U,X){let Q=U.translationY,ie=1;return X==="removed"&&(ie=0),{y:0,translationY:Q,opacity:ie,finish:{y:Q,translationY:0}}},applyFn(H,U){H.setProperties(U),H.visible=!l(H.y)}},line:{fromFn(H,U){var X;return He(ge({},(X=H.previousDatum)!=null?X:U),{phase:os.updated})},toFn(H,U){return ge({},U)}},label:{fromFn(H,U,X){var Oe;let Q=(Oe=H.previousDatum)!=null?Oe:U,ie=Q.x,ue=Q.y,be=Q.rotationCenterX,ye=Math.round(H.translationY),Me=Q.rotation,Ie=H.opacity;return X==="removed"||l(Q.y,Q.range)?Me=U.rotation:(X==="added"||l(H.datum.y,H.datum.range))&&(ye=Math.round(Q.translationY),Ie=0,Me=U.rotation),{x:ie,y:ue,rotationCenterX:be,translationY:ye,rotation:Me,opacity:Ie,phase:os[X]}},toFn(H,U,X){var Ie,Oe;let Q=U.x,ie=U.y,ue=U.rotationCenterX,be=Math.round(U.translationY),ye=0,Me=1;return X==="added"?ye=U.rotation:X==="removed"?(Me=0,ye=U.rotation):ye=Sl((Oe=(Ie=H.previousDatum)==null?void 0:Ie.rotation)!=null?Oe:U.rotation,U.rotation),{x:Q,y:ie,rotationCenterX:ue,translationY:be,rotation:ye,opacity:Me,finish:{rotation:U.rotation}}}},group:{fromFn(H,U){let{rotation:X,translationX:Q,translationY:ie}=H;return{rotation:X,translationX:Q,translationY:ie,phase:os.updated}},toFn(H,U){let{rotation:X,translationX:Q,translationY:ie}=U;return{rotation:X,translationX:Q,translationY:ie}}}}}function ib(){return(r,l)=>({rotation:l.rotation,rotationCenterX:l.rotationCenterX,rotationCenterY:l.rotationCenterY,translationX:l.translationX,translationY:l.translationY})}function Ix(r){let{visible:l,min:m,max:D}=r;return(L,B)=>{let H=B.translationY,U=l&&H>=m&&H<=D;return{y:H,translationY:0,opacity:1,visible:U}}}function f0(){return(r,l)=>({x:l.x,y:l.y,translationY:l.translationY,rotation:l.rotation,rotationCenterX:l.rotationCenterX})}function Wi(){return(r,l)=>ge({},l)}var TI=Object.freeze({tickData:{ticks:[],rawTicks:[],labelCount:0,fractionDigits:0},combinedRotation:0,textAlign:"center",textBaseline:"bottom",labelData:[]}),v0=class extends Sm(Ar){},Aa=class JX{constructor(l,m){this.moduleCtx=l,this.scale=m,this.id=Y(this),this.nice=!0,this.reverse=!1,this.keys=[],this.interval=new Oc,this.dataDomain={domain:[],clipped:!1},this.layoutConstraints={stacked:!0,align:"start",width:100,unit:"percent"},this.boundSeries=[],this.includeInvisibleDomains=!1,this.interactionEnabled=!0,this.axisGroup=new Qf({name:`${this.id}-axis`}),this.tickLineGroup=this.axisGroup.appendChild(new Ji({name:`${this.id}-Axis-tick-lines`})),this.lineNode=this.axisGroup.appendChild(new v0({name:`${this.id}-Axis-line`})),this.tickLabelGroup=this.axisGroup.appendChild(new Ji({name:`${this.id}-Axis-tick-labels`})),this.labelGroup=new Ji({name:`${this.id}-Labels`,zIndex:8}),this.gridGroup=new Qf({name:`${this.id}-Axis-grid`,zIndex:1}),this.gridLineGroup=this.gridGroup.appendChild(new Ji({name:`${this.id}-gridLines`})),this.crossLineRangeGroup=new Qf({name:`${this.id}-CrossLines-Range`,zIndex:3}),this.crossLineLineGroup=new Qf({name:`${this.id}-CrossLines-Line`,zIndex:7}),this.crossLineLabelGroup=new Qf({name:`${this.id}-CrossLines-Label`,zIndex:12}),this.tickLineGroupSelection=co.select(this.tickLineGroup,v0,!1),this.tickLabelGroupSelection=co.select(this.tickLabelGroup,hs,!1),this.gridLineGroupSelection=co.select(this.gridLineGroup,v0,!1),this._crossLines=[],this.line=new lv,this.tick=new nu,this.gridLine=new p0,this.label=this.createLabel(),this.tempText=new hs,this.tempCaption=new Ua,this.defaultTickMinSpacing=JX.defaultTickMinSpacing,this.translation={x:0,y:0},this.rotation=0,this.layout={label:{fractionDigits:0,spacing:this.label.spacing,format:this.label.format}},this.destroyFns=[],this.range=[0,1],this.visibleRange=[0,1],this.title=new md,this.gridLength=0,this.gridPadding=0,this.seriesAreaPadding=0,this.tickGenerationResult=void 0,this._domainCalculated=!1,this.moduleMap=new eh,this.range=this.scale.range.slice(),this.crossLines.forEach(L=>this.initCrossLine(L)),this.axisGroup.appendChild(this.title.caption.node),this.animationManager=l.animationManager,this.animationState=new no("empty",{empty:{update:{target:"ready",action:()=>this.resetSelectionNodes()},reset:"empty"},ready:{update:L=>this.animateReadyUpdate(L),resize:()=>this.resetSelectionNodes(),reset:"empty"}});let D;this.destroyFns.push(this.title.caption.registerInteraction(this.moduleCtx,"afterend"),l.layoutManager.addListener("layout:complete",L=>{D!=null&&Pc(L.chart,D)!=null&&this.animationState.transition("resize"),D=ge({},L.chart)}))}get type(){var l;return(l=this.constructor.type)!=null?l:""}set crossLines(l){let{CrossLineConstructor:m}=this.constructor;this._crossLines.forEach(D=>this.detachCrossLine(D)),this._crossLines=l.map(D=>{let L=new m;return L.set(D),L}),this._crossLines.forEach(D=>{this.attachCrossLine(D),this.initCrossLine(D)})}get crossLines(){return this._crossLines}resetAnimation(l){l==="initial"&&this.animationState.transition("reset")}attachCrossLine(l){this.crossLineRangeGroup.appendChild(l.rangeGroup),this.crossLineLineGroup.appendChild(l.lineGroup),this.crossLineLabelGroup.appendChild(l.labelGroup)}detachCrossLine(l){this.crossLineRangeGroup.removeChild(l.rangeGroup),this.crossLineLineGroup.removeChild(l.lineGroup),this.crossLineLabelGroup.removeChild(l.labelGroup)}destroy(){this.moduleMap.destroy(),this.destroyFns.forEach(l=>l())}updateRange(){var U;let{range:l,visibleRange:m,scale:D}=this,L=(l[1]-l[0])/(m[1]-m[0]),B=L*m[0],H=l[0]-B;(U=D.setVisibleRange)==null||U.call(D,m),D.range=[H,H+L],this.crossLines.forEach(X=>{X.clippedRange=[l[0],l[1]]})}setCrossLinesVisible(l){this.crossLineRangeGroup.visible=l,this.crossLineLineGroup.visible=l,this.crossLineLabelGroup.visible=l}attachAxis(l){l.gridNode.appendChild(this.gridGroup),l.axisNode.appendChild(this.axisGroup),l.labelNode.appendChild(this.labelGroup),l.crossLineRangeNode.appendChild(this.crossLineRangeGroup),l.crossLineLineNode.appendChild(this.crossLineLineGroup),l.crossLineLabelNode.appendChild(this.crossLineLabelGroup)}detachAxis(l){l.gridNode.removeChild(this.gridGroup),l.axisNode.removeChild(this.axisGroup),l.labelNode.removeChild(this.labelGroup),l.crossLineRangeNode.removeChild(this.crossLineRangeGroup),l.crossLineLineNode.removeChild(this.crossLineLineGroup),l.crossLineLabelNode.removeChild(this.crossLineLabelGroup)}attachLabel(l){this.labelGroup.append(l)}inRange(l,m=0){let[D,L]=Xe(this.range);return l>=D-m&&l<=L+m}onFormatChange(l,m,D,L){let{scale:B}=this,H=B instanceof zA;if(L&&(B!=null&&B.tickFormat))try{let U=B.tickFormat({ticks:l,specifier:L});this.labelFormatter=U,this.datumFormatter=U;return}catch(U){vi.warnOnce(`the axis label format string ${L} is invalid. No formatting will be applied`)}this.labelFormatter=H?String:U=>Tc(U,m),this.datumFormatter=H?String:U=>Tc(U,m+1)}onGridLengthChange(l,m){m^l&&this.onGridVisibilityChange(),this.crossLines.forEach(D=>this.initCrossLine(D))}onGridVisibilityChange(){this.gridLineGroupSelection.clear()}createLabel(){return new gr}update(l=!0){if(!this.tickGenerationResult)return;this.updatePosition();let m=this.getAxisLineCoordinates(),{tickData:D,combinedRotation:L,textBaseline:B,textAlign:H}=this.tickGenerationResult,U=this.tickLabelGroupSelection.nodes().slice();if(this.updateSelections(m,D.ticks,{combinedRotation:L,textAlign:H,textBaseline:B,range:this.scale.range}),!l||this.animationManager.isSkipped())this.resetSelectionNodes();else{let ue=DI(U.map(be=>be.datum.tickId),D.ticks.map(be=>be.tickId));this.animationState.transition("update",ue)}this.tickLineGroup.visible=this.tick.enabled,this.gridLineGroup.visible=this.gridLine.enabled,this.tickLabelGroup.visible=this.label.enabled;let{enabled:X,stroke:Q,width:ie}=this.line;this.lineNode.setProperties({stroke:Q,strokeWidth:X?ie:0}),this.updateLabels(),this.updateGridLines(),this.updateTickLines(),this.updateTitle(!D.ticks.length),this.updateCrossLines()}getAxisLineCoordinates(){let[l,m]=Xe(this.range);return{x:0,y1:l,y2:m}}getTickLineCoordinates(l){let D=this.label.getSideFlag()*this.getTickSize(),L=Math.min(0,D),B=L+Math.abs(D),H=l.translationY;return{x1:L,x2:B,y:H}}getLabelStyles(l,m){let{label:D}=this,L={color:D.color,spacing:D.spacing,fontFamily:D.fontFamily,fontSize:D.fontSize,fontStyle:D.fontStyle,fontWeight:D.fontWeight},B;D.itemStyler&&(B=this.moduleCtx.callbackCache.call(D.itemStyler,ge(ge({},l),L)));let{color:H,fontFamily:U,fontSize:X,fontStyle:Q,fontWeight:ie,spacing:ue}=mn(B,m,L);return{fill:H,fontFamily:U,fontSize:X,fontStyle:Q,fontWeight:ie,spacing:ue}}getTickLabelProps(l,m){let{label:D}=this,{combinedRotation:L,textBaseline:B,textAlign:H,range:U}=m,X=l.tickLabel,ie=D.getSideFlag()*(this.getTickSize()+D.spacing+this.seriesAreaPadding),ue=X!==""&&X!=null;return He(ge({},this.getLabelStyles({value:l.tickLabel})),{tickId:l.tickId,rotation:L,rotationCenterX:ie,translationY:l.translationY,text:X,textAlign:H,textBaseline:B,visible:ue,x:ie,y:0,range:U})}getTickSize(){return this.tick.enabled?this.tick.size:0}setTitleProps(l,m){var Re;let{title:D}=this;if(!D.enabled){l.enabled=!1,l.node.visible=!1;return}l.color=D.color,l.fontFamily=D.fontFamily,l.fontSize=D.fontSize,l.fontStyle=D.fontStyle,l.fontWeight=D.fontWeight,l.enabled=D.enabled,l.wrapping=D.wrapping;let L=l.node,B=((Re=D.spacing)!=null?Re:0)+m.spacing,H=this.label.getSideFlag(),U=Nn(this.rotation),X=H===-1&&U>Math.PI&&U<Math.PI*2?-1:1,Q=X*H*Math.PI/2,ie=X===1?"bottom":"top",{range:ue}=this,be=Math.floor(X*H*(ue[0]+ue[1])/2),ye=Math.floor(H===-1?X*-B:-B),{callbackCache:Me}=this.moduleCtx,{formatter:Ie=Be=>Be.defaultValue}=D,Oe=Me.call(Ie,this.getTitleFormatterParams());l.text=Oe,L.setProperties({visible:!0,text:Oe,textBaseline:ie,x:be,y:ye,rotation:Q})}processData(){this._domainCalculated=!1}calculateLayout(l,m){var ue,be;let{rotation:D,parallelFlipRotation:L,regularFlipRotation:B}=this.calculateRotations(),H=this.label.getSideFlag();this.updateScale({domain:l,skipDomainCalculation:this._domainCalculated}),this._domainCalculated=l==null;let U=this.processTicks(m,L,B);this.tickGenerationResult=U.tickGenerationResult;let X=ft.merge(U.boxes),Q=this.getTransformBox(X),ie=this.isAnySeriesActive();return this.crossLines.forEach(ye=>{var Ie,Oe;var Me;ye.sideFlag=-H,ye.direction=D===-Math.PI/2?"x":"y",ye instanceof gs&&((Ie=(Me=ye.label).parallel)!=null||(Me.parallel=this.label.parallel)),ye.parallelFlipRotation=L,ye.regularFlipRotation=B,(Oe=ye.calculateLayout)==null||Oe.call(ye,ie,this.reverse)}),{primaryTickCount:(be=(ue=U.tickGenerationResult)==null?void 0:ue.primaryTickCount)!=null?be:m,bbox:Q}}processTicks(l,m,D){var Be;let L=this.label.getSideFlag(),B=L*(this.getTickSize()+this.label.spacing+this.seriesAreaPadding),U=this.label.enabled||this.tick.enabled||this.gridLine.enabled?this.generateTicks({primaryTickCount:l,parallelFlipRotation:m,regularFlipRotation:D,labelX:B,sideFlag:L}):TI,{tickData:X,combinedRotation:Q,textBaseline:ie,textAlign:ue}=U;this.updateLayoutState(X.fractionDigits);let be=[],{x:ye,y1:Me,y2:Ie}=this.getAxisLineCoordinates(),Oe=new ft(ye+Math.min(L*this.seriesAreaPadding,0),Me,this.seriesAreaPadding,Ie-Me);be.push(Oe),this.tick.enabled&&X.ticks.forEach(Ue=>{let{x1:Ne,x2:Qe,y:nt}=this.getTickLineCoordinates(Ue),rt=new ft(Ne,nt,Qe-Ne,0);be.push(rt)});let{tempText:Re}=this;if(this.label.enabled&&X.ticks.forEach(Ue=>{let Ne=this.getTickLabelProps(Ue,{combinedRotation:Q,textAlign:ue,textBaseline:ie,range:this.scale.range});if(!Ne.visible)return;Re.setProperties(He(ge({},Ne),{translationY:Math.round(Ue.translationY)}));let Qe=Re.getBBox();Qe&&be.push(Qe)}),(Be=this.title)!=null&&Be.enabled){let Ue=ft.merge(be).width;this.setTitleProps(this.tempCaption,{spacing:Ue});let Ne=this.tempCaption.node.getBBox();Ne&&be.push(Ne)}return{tickGenerationResult:U,boxes:be}}updateLayoutState(l){this.layout.label={fractionDigits:l,spacing:this.label.spacing,format:this.label.format}}getTransformBox(l){let m=new Vs,{rotation:D,translationX:L,translationY:B}=this.getAxisTransform();return Vs.updateTransformMatrix(m,1,1,D,L,B),m.transformBBox(l)}setDomain(l){this.dataDomain=this.normaliseDataDomain(l),this.reverse&&this.dataDomain.domain.reverse(),this.scale.domain=this.dataDomain.domain}updateScale(l){var L;let m=l==null?void 0:l.domain;((L=l==null?void 0:l.skipDomainCalculation)!=null?L:!1)||(m?this.setDomain(m):this.calculateDomain()),this.updateRange(),this.scale.interval=this.interval.step,Fa.is(this.scale)&&(this.scale.nice=this.nice,this.scale.update())}calculateRotations(){let l=Ge(this.rotation),m=Nn(l),D=Nn(l-Math.PI/2);return{rotation:l,parallelFlipRotation:m,regularFlipRotation:D}}generateTicks({primaryTickCount:l,parallelFlipRotation:m,regularFlipRotation:D,labelX:L,sideFlag:B}){let{scale:H,interval:{minSpacing:U,maxSpacing:X},label:{parallel:Q,rotation:ie,fontFamily:ue,fontSize:be,fontStyle:ye,fontWeight:Me}}=this,Ie=l!==void 0,{defaultRotation:Oe,configuredRotation:Re,parallelFlipFlag:Be,regularFlipFlag:Ue}=Xy({rotation:ie,parallel:Q,regularFlipRotation:D,parallelFlipRotation:m}),Ne=Re+Oe,Qe=new Vs,{maxTickCount:nt}=this.estimateTickCount(U,X),ut=!(Fa.is(H)||us.is(H))||isNaN(nt)?10:nt,Mt=eu(Q,Re,0,B,Ue),Tt=Lc(Q,Re,B,Be),_t=Wa.toFontString({fontFamily:ue,fontSize:be,fontStyle:ye,fontWeight:Me}),Kt=Wr.getMeasurer({font:_t}),gi={fontFamily:ue,fontSize:be,fontStyle:ye,fontWeight:Me,textBaseline:Tt,textAlign:Mt},Ci={ticks:[],rawTicks:[],fractionDigits:0,labelCount:0},xi=0,li=0,Bi=!0,Fi=[],hn=!1;for(;Bi&&xi<=ut&&!hn;){li=0,Mt=eu(Q,Re,0,B,Ue);let An=this.getTickStrategies({secondaryAxis:Ie,index:xi});for(let Zi of An){({tickData:Ci,index:xi,autoRotation:li,terminate:hn}=Zi({index:xi,tickData:Ci,textProps:gi,labelOverlap:Bi,terminate:hn,primaryTickCount:l}));let Ki=Re!==0||li!==0,Dn=Ne+li,Qa=km(this.label.minSpacing,Ki);Vs.updateTransformMatrix(Qe,1,1,Dn,0,0),Mt=eu(Q,Re,li,B,Ue),Fi=ZA(Ci.ticks,L,Qe,Kt),Bi=this.label.avoidCollisions?AI(Fi,Qa):!1}}let ji=Oe+Re+li;return!Ie&&Ci.rawTicks.length>0&&(l=Ci.rawTicks.length),{tickData:Ci,primaryTickCount:l,combinedRotation:ji,textBaseline:Tt,textAlign:Mt,labelData:Fi}}getTickStrategies({index:l,secondaryAxis:m}){let{scale:D,label:L}=this,{minSpacing:B}=this.interval,H=Fa.is(D)||us.is(D),U=L.enabled&&L.avoidCollisions,X=!H&&l!==0&&U,Q=L.autoRotate===!0&&L.rotation===void 0,ie=[],ue;this.interval.values?ue=3:m?ue=1:X?ue=2:ue=0;let be=({index:ye,tickData:Me,primaryTickCount:Ie,terminate:Oe})=>this.createTickData(ue,ye,Me,Oe,Ie);if(ie.push(be),!H&&!isNaN(B)){let ye=({index:Me,tickData:Ie,primaryTickCount:Oe,terminate:Re})=>this.createTickData(2,Me,Ie,Re,Oe);ie.push(ye)}if(U&&Q){let ye=({index:Me,tickData:Ie,labelOverlap:Oe,terminate:Re})=>{var Be;return{index:Me,tickData:Ie,autoRotation:Oe?Nn(Ge((Be=this.label.autoRotateAngle)!=null?Be:0)):0,terminate:Re}};ie.push(ye)}return ie}createTickData(l,m,D,L,B){let{scale:H}=this,{step:U,values:X,minSpacing:Q,maxSpacing:ie}=this.interval,{maxTickCount:ue,minTickCount:be,tickCount:ye}=this.estimateTickCount(Q,ie),Me=Fa.is(H)||us.is(H),Ie=!Me||isNaN(ue)?10:ue,Oe=Be=>Me?Math.max(ye-Be,be):ue,Re=U==null&&X==null&&Oe(m)>be&&(Me||l===2);for(;m<=Ie;){let Be=D.rawTicks;if(D=this.getTicks({tickGenerationType:l,previousTicks:Be,minTickCount:be,maxTickCount:ue,primaryTickCount:B,tickCount:Oe(m)}),m++,!Re||!Bh(D.rawTicks,Be))break}return L||(L=U!=null||X!=null),{tickData:D,index:m,autoRotation:0,terminate:L}}getTicks({tickGenerationType:l,previousTicks:m,tickCount:D,minTickCount:L,maxTickCount:B,primaryTickCount:H}){var Ue;let{range:U,scale:X,visibleRange:Q}=this,ie=Yy(),ue;switch(l){case 3:if(ue=this.interval.values,Fa.is(X)){let[Ne,Qe]=Xe(X.getDomain().map(Number));ue=ue.filter(nt=>nt>=Ne&&nt<=Qe).sort((nt,rt)=>nt-rt)}break;case 1:Fa.is(X)?ue=this.updateSecondaryAxisTicks(H):ue=this.createTicks(D,L,B);break;case 2:ue=this.filterTicks(m,D);break;default:ue=this.createTicks(D,L,B);break}let be=ue.reduce((Ne,Qe)=>Math.max(Ne,typeof Qe=="number"?Pt(Qe):0),0),ye=((Ue=X.bandwidth)!=null?Ue:0)/2,Me=[],Ie=0,Oe=Math.max(0,Math.floor(Q[0]*ue.length)),Re=Math.min(ue.length,Math.ceil(Q[1]*ue.length)),Be=ue.slice(Oe,Re);this.onFormatChange(Be,be,ue,this.label.format);for(let Ne=0;Ne<Be.length;Ne++){let Qe=Be[Ne],nt=X.convert(Qe)+ye;if(U.length>0&&!this.inRange(nt,.001))continue;let rt=this.formatTick(Qe,Oe+Ne,be);Me.push({tick:Qe,tickId:ie(rt),tickLabel:rt,translationY:Math.floor(nt)}),!(rt===""||rt==null)&&Ie++}return{rawTicks:ue,fractionDigits:be,ticks:Me,labelCount:Ie}}filterTicks(l,m){let{minSpacing:D,maxSpacing:L}=this.interval,H=!isNaN(D)||!isNaN(L)?Math.ceil(l.length/m):2;return l.filter((U,X)=>X%H===0)}createTicks(l,m,D){var B,H;let{scale:L}=this;return l&&(Fa.is(L)||us.is(L))&&(L.tickCount=l,L.minTickCount=m!=null?m:0,L.maxTickCount=D!=null?D:1/0),(H=(B=L.ticks)==null?void 0:B.call(L))!=null?H:[]}estimateTickCount(l,m){return cx(this.calculateRangeWithBleed(),l,m,Fa.defaultTickCount,this.defaultTickMinSpacing)}updateCrossLines(){let l=this.isAnySeriesActive();this.crossLines.forEach(m=>{m.update(l)})}updateTickLines(){let{tick:l,label:m}=this,D=m.getSideFlag();this.tickLineGroupSelection.each((L,B)=>{var H,U,X;L.strokeWidth=(H=B.tickWidth)!=null?H:l.width,L.stroke=(U=B.tickStroke)!=null?U:l.stroke,L.x1=D*((X=B.tickSize)!=null?X:this.getTickSize()),L.x2=0})}calculateAvailableRange(){return Ke(this.range)}calculateRangeWithBleed(){return dt(this.calculateAvailableRange()/Ke(this.visibleRange),2)}calculateDomain(){let{includeInvisibleDomains:l,boundSeries:m,direction:D}=this,L=l?m:m.filter(H=>H.isEnabled()),B=L.length===1?L[0].getDomain(D):L.flatMap(H=>H.getDomain(D));this.setDomain(B)}getAxisTransform(){return{rotation:Ge(this.rotation),translationX:Math.floor(this.translation.x),translationY:Math.floor(this.translation.y)}}updatePosition(){let{crossLineRangeGroup:l,crossLineLineGroup:m,crossLineLabelGroup:D,axisGroup:L,gridGroup:B,translation:H}=this,{rotation:U}=this.calculateRotations(),X=Math.floor(H.x),Q=Math.floor(H.y);l.setProperties({rotation:U,translationX:X,translationY:Q}),m.setProperties({rotation:U,translationX:X,translationY:Q}),D.setProperties({rotation:U,translationX:X,translationY:Q}),B.setProperties({rotation:U,translationX:X,translationY:Q}),L.datum=this.getAxisTransform()}updateSecondaryAxisTicks(l){throw new Error("AG Charts - unexpected call to updateSecondaryAxisTicks() - check axes configuration.")}updateSelections(l,m,D){let L=H=>H.tickId,B=m.map(H=>this.getTickLabelProps(H,D));this.lineNode.datum=l,this.gridLineGroupSelection.update(this.gridLength?m:[],void 0,L),this.tickLineGroupSelection.update(m,void 0,L),this.tickLabelGroupSelection.update(B,void 0,L)}updateGridLines(){let l=this.label.getSideFlag(),{gridLine:{style:m,width:D},gridPadding:L,gridLength:B}=this;B===0||m.length===0||this.gridLineGroupSelection.each((H,U,X)=>{let{stroke:Q,lineDash:ie}=m[X%m.length];H.setProperties({x1:L,x2:-l*B+L,stroke:Q,strokeWidth:D,lineDash:ie})})}updateLabels(){this.label.enabled&&this.tickLabelGroupSelection.each((l,m)=>{l.setProperties(m,["fill","fontFamily","fontSize","fontStyle","fontWeight","text","textAlign","textBaseline"])})}updateTitle(l,m){let{title:D,lineNode:L,tickLineGroup:B,tickLabelGroup:H}=this;D.enabled&&!l&&m==null&&(m=Ji.computeChildrenBBox([B,H,L]).width+(this.tickLabelGroup.visible?0:this.seriesAreaPadding)),m!=null||(m=0),this.setTitleProps(D.caption,{spacing:m})}formatTick(l,m,D){let{labelFormatter:L,label:{formatter:B},moduleCtx:{callbackCache:H}}=this,U;return B?U=H.call(B,{value:l,index:m,fractionDigits:D}):L&&(U=H.call(L,l)),String(U!=null?U:l)}formatDatum(l){let{label:{formatter:m},moduleCtx:{callbackCache:D},datumFormatter:L=this.labelFormatter}=this,B;return m?B=D.call(m,{value:l,index:NaN}):L?B=D.call(L,l):La(l)&&(B=l.filter(Boolean).join(" - ")),String(B!=null?B:l)}getScaleValueFormatter(l){if(l&&this.scale.tickFormat)try{return this.scale.tickFormat({specifier:l})}catch(m){vi.warnOnce(`the format string ${l} is invalid, ignoring.`)}return m=>this.formatDatum(m)}getBBox(){return this.axisGroup.getBBox()}initCrossLine(l){l.scale=this.scale,l.gridLength=this.gridLength}isAnySeriesActive(){return this.boundSeries.some(l=>this.includeInvisibleDomains||l.isEnabled())}clipTickLines(l,m,D,L){this.tickLineGroup.setClipRect(new ft(l,m,D,L))}clipGrid(l,m,D,L){this.gridGroup.setClipRect(new ft(l,m,D,L))}getTitleFormatterParams(){var D;let{direction:l}=this,m=[];for(let L of this.boundSeries){let B=L.getKeys(l),H=L.getNames(l);for(let U=0;U<B.length;U++)m.push({key:B[U],name:H[U]})}return{direction:l,boundSeries:m,defaultValue:(D=this.title)==null?void 0:D.text}}normaliseDataDomain(l){return{domain:[...l],clipped:!1}}getLayoutState(){return ge({id:this.id,rect:this.getBBox(),gridPadding:this.gridPadding,seriesAreaPadding:this.seriesAreaPadding,tickSize:this.getTickSize(),direction:this.direction,domain:this.dataDomain.domain,scale:this.scale},this.layout)}getModuleMap(){return this.moduleMap}createModuleContext(){var l;return(l=this.axisContext)!=null||(this.axisContext=this.createAxisContext()),He(ge({},this.moduleCtx),{parent:this.axisContext})}createAxisContext(){let{scale:l}=this;return{axisId:this.id,scale:this.scale,direction:this.direction,continuous:Fa.is(l)||us.is(l),getCanvasBounds:()=>Ho.toCanvas(this.axisGroup),seriesKeyProperties:()=>this.boundSeries.reduce((m,D)=>(D.getKeyProperties(this.direction).forEach(B=>{m.indexOf(B)<0&&m.push(B)}),m),[]),scaleValueFormatter:m=>this.getScaleValueFormatter(m),scaleInvert:us.is(l)?m=>{var D;return(D=l.invertNearest)==null?void 0:D.call(l,m)}:m=>{var D;return(D=l.invert)==null?void 0:D.call(l,m)},scaleInvertNearest:m=>{var D;return(D=l.invertNearest)==null?void 0:D.call(l,m)},attachLabel:m=>this.attachLabel(m),inRange:(m,D)=>this.inRange(m,D)}}animateReadyUpdate(l){let{animationManager:m}=this.moduleCtx,D=Yh(this),L=Ex(D);ri(this.id,"axis-group",m,[this.axisGroup],L.group),ri(this.id,"line",m,[this.lineNode],L.line),ri(this.id,"line-paths",m,[this.gridLineGroupSelection,this.tickLineGroupSelection],L.tick,(B,H)=>H.tickId,l),ri(this.id,"tick-labels",m,[this.tickLabelGroupSelection],L.label,(B,H)=>H.tickId,l)}resetSelectionNodes(){let l=Yh(this);Co([this.axisGroup],ib()),Co([this.gridLineGroupSelection,this.tickLineGroupSelection],Ix(l)),Co([this.tickLabelGroupSelection],f0()),Co([this.lineNode],Wi())}isReversed(){return this.reverse}};Aa.defaultTickMinSpacing=50,Aa.CrossLineConstructor=gs,T([je(Ri)],Aa.prototype,"nice",2),T([je(Ri)],Aa.prototype,"reverse",2),T([je(Oy)],Aa.prototype,"keys",2),T([je(Si)],Aa.prototype,"interval",2),T([je(Si)],Aa.prototype,"title",2),T([ip((r,l,m)=>r.onGridLengthChange(l,m))],Aa.prototype,"gridLength",2);var Xh=Aa,xo=class extends gr{constructor(){super(...arguments),this.autoRotateAngle=335}};T([je(Ri,{optional:!0})],xo.prototype,"autoRotate",2),T([je(yn)],xo.prototype,"autoRotateAngle",2);var Uo=class eZ extends Xh{static is(l){return l instanceof eZ}get direction(){return this.position==="top"||this.position==="bottom"?"x":"y"}updateDirection(){switch(this.position){case"top":this.rotation=-90,this.label.mirrored=!0,this.label.parallel=!0;break;case"right":this.rotation=0,this.label.mirrored=!0,this.label.parallel=!1;break;case"bottom":this.rotation=-90,this.label.mirrored=!1,this.label.parallel=!0;break;case"left":this.rotation=0,this.label.mirrored=!1,this.label.parallel=!1;break}this.axisContext&&(this.axisContext.position=this.position,this.axisContext.direction=this.direction)}update(l){this.updateDirection(),super.update(l)}calculateLayout(l,m){return this.updateDirection(),super.calculateLayout(l,m)}createAxisContext(){return He(ge({},super.createAxisContext()),{position:this.position})}createLabel(){return new xo}};T([je(bi,{optional:!0})],Uo.prototype,"thickness",2),T([je($C)],Uo.prototype,"position",2);var ia=Uo,Hn=class tZ extends ia{constructor(l,m=new ml){super(l,m),this.groupPaddingInner=.1,this.categoryAnimatable=!0,this.includeInvisibleDomains=!0}static is(l){return l instanceof tZ}domainOrderedToNormalizedDomain(l,m){let D=-1;for(let L of l){let B=m.indexOf(L);if(B===-1)D=1/0;else{if(B<=D)return!1;D=B}}return!0}calculateDomain(){let l,m=new Set,D=!0;for(let L of this.boundSeries){if(!this.includeInvisibleDomains&&!L.isEnabled())continue;let B=L.getDomain(this.direction);m.has(B)||(m.add(B),l==null?l=this.normaliseDataDomain(B).domain:(D&&(D=this.domainOrderedToNormalizedDomain(B,l)),l=this.normaliseDataDomain([...l,...B]).domain))}l!=null||(l=[]),this.setDomain(l),this.categoryAnimatable=D}update(){super.update(),this.categoryAnimatable||this.moduleCtx.animationManager.skip()}normaliseDataDomain(l){let m=[],D=new Set;for(let L of l){let B=L instanceof Date?L.getTime():L;D.has(B)||(D.add(B),m.push(L))}return{domain:m,clipped:!1}}updateScale(l){let{paddingInner:m,paddingOuter:D}=this;if(!ea(m)||!ea(D)){let L=this.reduceBandScalePadding();m!=null||(m=L.inner),D!=null||(D=L.outer)}this.scale.paddingInner=m!=null?m:0,this.scale.paddingOuter=D!=null?D:0,super.updateScale(l)}reduceBandScalePadding(){return this.boundSeries.reduce((l,m)=>{var L;let D=(L=m.getBandScalePadding)==null?void 0:L.call(m);return D&&(l.inner>D.inner&&(l.inner=D.inner),l.outer<D.outer&&(l.outer=D.outer)),l},{inner:1/0,outer:-1/0})}};Hn.className="CategoryAxis",Hn.type="category",T([je(oa)],Hn.prototype,"groupPaddingInner",2),T([je(oa,{optional:!0})],Hn.prototype,"paddingInner",2),T([je(oa,{optional:!0})],Hn.prototype,"paddingOuter",2);var ap=Hn,y0=class{constructor(){this.destroyFns=[]}destroy(){for(let r of this.destroyFns)r()}},rD=class{constructor(){this.modules=[],this.dependencies=new Map,this.modulesByOptionKey=new Map}register(...r){for(let l of r){this.registerDependencies(l);let m=this.modules.find(D=>l.type===D.type&&("optionsKey"in l&&"optionsKey"in D?l.optionsKey===D.optionsKey:!0)&&l.identifier===D.identifier);if(m){if(l.packageType==="enterprise"&&m.packageType==="community"){let D=this.modules.indexOf(m);this.modules.splice(D,1,l),"optionsKey"in l&&this.modulesByOptionKey.set(l.optionsKey,l)}}else this.modules.push(l),"optionsKey"in l&&this.modulesByOptionKey.set(l.optionsKey,l)}}hasEnterpriseModules(){return this.modules.some(r=>r.packageType==="enterprise")}*byType(...r){let l=new Set,m=this.modules.filter(B=>r.includes(B.type)),D=B=>{var U;let H=this.dependencies.get(B);return(U=H==null?void 0:H.flatMap(D).concat(H))!=null?U:[]},L=[];for(let B of m){let H="optionsKey"in B?B.optionsKey:B.contextKey;if(!l.has(H)){for(let U of D(H)){if(l.has(U))continue;let X=this.modulesByOptionKey.get(U);if(!X){L.push(U);continue}r.includes(X.type)&&(yield X,l.add(U))}yield B,l.add(H)}}if(L.length>0)throw new Error(`Could not resolve module dependencies: ${L}`)}registerDependencies(r){if(r.dependencies==null||r.dependencies.length===0)return;let l="optionsKey"in r?r.optionsKey:r.contextKey;this.dependencies.set(l,r.dependencies)}},au=new rD,Em=class{constructor(){this.queue=[]}await(r=50){return new Promise(l=>{let m=()=>{clearTimeout(L),l(!0)},L=setTimeout(()=>{let B=this.queue.indexOf(m);B<0||(this.queue.splice(B,1),l(!1))},r);this.queue.push(m)})}notify(){this.queue.splice(0).forEach(r=>r())}};function RI(){return new Promise(r=>{setTimeout(r,0)})}var _P=class{constructor(){this.available=!0,this.acquireQueue=[]}acquire(r){return new Promise(l=>{this.acquireQueue.push([r,l]),this.available&&this.dispatchNext().catch(m=>vi.errorOnce(m))})}async acquireImmediately(r){return this.available?(await this.acquire(r),!0):!1}async waitForClearAcquireQueue(){return this.acquire(()=>Promise.resolve(void 0))}async dispatchNext(){var m,D;this.available=!1;let[r,l]=(m=this.acquireQueue.shift())!=null?m:[];for(;r;){try{await r(),l==null||l()}catch(L){vi.error("mutex callback error",L),l==null||l()}[r,l]=(D=this.acquireQueue.shift())!=null?D:[]}this.available=!0}},PI=class{constructor(){this.eventListeners=new Map}addEventListener(r,l){if(typeof l!="function")throw new Error("AG Charts - listener must be a Function");let m=this.eventListeners.get(r);m?m.add(l):this.eventListeners.set(r,new Set([l]))}removeEventListener(r,l){var m;(m=this.eventListeners.get(r))==null||m.delete(l),this.eventListeners.size===0&&this.eventListeners.delete(r)}hasEventListener(r){return this.eventListeners.has(r)}clearEventListeners(){this.eventListeners.clear()}fireEvent(r){var l;(l=this.eventListeners.get(r.type))==null||l.forEach(m=>m(r))}},op=class extends Hi{constructor(r=0,l=r,m=r,D=l){super(),this.top=r,this.right=l,this.bottom=m,this.left=D}};T([je(bi)],op.prototype,"top",2),T([je(bi)],op.prototype,"right",2),T([je(bi)],op.prototype,"bottom",2),T([je(bi)],op.prototype,"left",2);function nb(r){return Tx((l,m)=>On().requestAnimationFrame(l),r)}function uh(r){return Tx((l,m=0)=>{m===0?queueMicrotask(l):setTimeout(l,m)},r)}function Tx(r,l){let m=0,D=!1,L,B,H=()=>D,U=()=>{D=!1,B==null||B(),B=void 0,L=void 0,m>0&&r(X)},X=()=>{let Q=m;m=0,D=!0;let ie=l({count:Q});if(!ie){U();return}ie.then(U,U)};return{schedule(Q){m===0&&!H()&&r(X,Q),m++},async await(){if(H())for(L==null&&(L=new Promise(Q=>{B=Q}));H();)await L}}}var Rn=class{constructor(){this.events=new Map}on(r,l){var m;return this.events.has(r)||this.events.set(r,new Set),(m=this.events.get(r))==null||m.add(l),()=>this.off(r,l)}off(r,l){let m=this.events.get(r);m&&(m.delete(l),m.size===0&&this.events.delete(r))}emit(r,l){var m;for(let D of(m=this.events.get(r))!=null?m:[]){let L=D(l);L&&L.catch(B=>vi.error(B))}}clear(r){r?this.events.delete(r):this.events.clear()}},Rx=(r=>(r[r.Caption=0]="Caption",r[r.Legend=1]="Legend",r[r.ToolbarLeft=2]="ToolbarLeft",r[r.ToolbarBottom=3]="ToolbarBottom",r[r.Navigator=4]="Navigator",r[r.Overlay=5]="Overlay",r))(Rx||{}),b0=class{constructor(){this.events=new Rn,this.elements=new Map}addListener(r,l){return this.events.on(r,l)}registerElement(r,l){return this.elements.has(r)?this.elements.get(r).add(l):this.elements.set(r,new Set([l])),()=>{var m;return(m=this.elements.get(r))==null?void 0:m.delete(l)}}createContext(r,l){var D;let m=new LI(r,l);for(let L of Object.values(Rx))typeof L=="number"&&((D=this.elements.get(L))==null||D.forEach(B=>{var H;(H=B(m))==null||H.catch(U=>vi.error(U))}));return m}emitLayoutComplete(r,l){var B,H;let m="layout:complete",{width:D,height:L}=r;this.events.emit(m,{type:m,axes:(B=l.axes)!=null?B:[],chart:{width:D,height:L},clipSeries:(H=l.clipSeries)!=null?H:!1,series:l.series})}},LI=class{constructor(r,l){this.width=r,this.height=l,this.layoutBox=new ft(0,0,r,l)}},la=class{constructor(){this.title=new Ua,this.subtitle=new Ua,this.footnote=new Ua}positionCaptions(r){let{title:l,subtitle:m,footnote:D}=this,L=r.layoutBox.height/10;if(l.enabled){let{spacing:B=m.enabled?Ua.SMALL_PADDING:Ua.LARGE_PADDING}=l;this.positionCaption("top",l,r.layoutBox,L),this.shrinkLayoutByCaption("top",l,r.layoutBox,B)}m.enabled&&(this.positionCaption("top",m,r.layoutBox,L),this.shrinkLayoutByCaption("top",m,r.layoutBox,m.spacing)),D.enabled&&(this.positionCaption("bottom",D,r.layoutBox,L),this.shrinkLayoutByCaption("bottom",D,r.layoutBox,D.spacing))}positionAbsoluteCaptions(r){let{title:l,subtitle:m,footnote:D}=this,{rect:L}=r.series;for(let B of[l,m,D])if(B.layoutStyle==="overlay"){if(B.textAlign==="left")B.node.x=L.x+B.padding;else if(B.textAlign==="right"){let H=B.node.getBBox();B.node.x=L.x+L.width-H.width-B.padding}}}computeX(r,l){return r==="left"?l.x:r==="right"?l.x+l.width:l.x+l.width/2}positionCaption(r,l,m,D){let L=Math.max(Wa.getLineHeight(l.fontSize),D);l.node.x=this.computeX(l.textAlign,m)+l.padding,l.node.y=m.y+(r==="top"?0:m.height)+l.padding,l.node.textBaseline=r,l.computeTextWrap(m.width,L)}shrinkLayoutByCaption(r,l,m,D=0){if(l.layoutStyle==="block"){let L=l.node.getBBox();m.shrink(Math.ceil(r==="top"?L.y-m.y+L.height+D:m.y+m.height-L.y+D),r)}}};T([je(Si)],la.prototype,"title",2),T([je(Si)],la.prototype,"subtitle",2),T([je(Si)],la.prototype,"footnote",2);var pr=["candlestick","hollow-candlestick","ohlc","line","step-line","hlc","high-low"],er=class{constructor(r){this.chartService=r,this.mementoOriginatorKey="chartType"}createMemento(){var l,m;let r=(m=(l=this.chartService.publicApi)==null?void 0:l.getOptions())==null?void 0:m.chartType;return r==null&&(r="candlestick"),r}guardMemento(r){return r==null||wa(r)&&Zg(pr,r)}restoreMemento(r,l,m){var L;if(m==null)return;let D={chartType:m};(L=this.chartService.publicApi)==null||L.updateDelta(D).catch(B=>vi.error("error restoring state",B))}},Dr=class{constructor(){this.registeredListeners=new Map}addListener(r,l){let m={symbol:Symbol(r),handler:l};return this.registeredListeners.has(r)?this.registeredListeners.get(r).push(m):this.registeredListeners.set(r,[m]),()=>this.removeListener(m.symbol)}removeListener(r){for(let[l,m]of this.registeredListeners.entries()){let D=m.findIndex(L=>L.symbol===r);if(D>=0){m.splice(D,1),m.length===0&&this.registeredListeners.delete(l);break}}}dispatch(r,...l){for(let m of this.getListenersByType(r))try{m.handler(...l)}catch(D){vi.errorOnce(D)}}dispatchWrapHandlers(r,l,...m){for(let D of this.getListenersByType(r))try{l(D.handler,...m)}catch(L){vi.errorOnce(L)}}getListenersByType(r){var l;return(l=this.registeredListeners.get(r))!=null?l:[]}destroy(){this.registeredListeners.clear()}},Fn=class{constructor(){this.listeners=new Dr,this.destroyFns=[]}addListener(r,l){return this.listeners.addListener(r,l)}destroy(){this.listeners.destroy(),this.destroyFns.forEach(r=>r())}},Px=(r=>(r[r.Default=32]="Default",r[r.ZoomDrag=16]="ZoomDrag",r[r.Annotations=8]="Annotations",r[r.ContextMenu=4]="ContextMenu",r[r.Animation=2]="Animation",r[r.AnnotationsSelected=1]="AnnotationsSelected",r[r.All=63]="All",r))(Px||{}),ab=class extends Fn{addListener(r,l,m=32){return super.addListener(r,D=>{this.getState()&m&&l(D)})}},Fc=class{constructor(){this.destroyFns=[]}destroy(){this.destroyFns.forEach(r=>r()),this.destroyFns.length=0}setFns(r){this.destroy(),this.destroyFns=r}push(...r){this.destroyFns.push(...r)}},ma="11.0.0",OI=Symbol("previous-memento-not-found"),NP=class{constructor(r){this.history=[],this.historyIndex=-1,this.originators=new Map,this.clearState=new Map,this.maxHistoryLength=100,this.debug=Ma.create(!0,"history"),this.destroyFns=new Fc,this.destroyFns.setFns([r.addListener("undo",this.undo.bind(this),63),r.addListener("redo",this.redo.bind(this),63)])}destroy(){this.destroyFns.destroy()}addMementoOriginator(r){this.originators.set(r.mementoOriginatorKey,r),this.clearState.set(r.mementoOriginatorKey,r.createMemento()),this.debugEvent("History add originator:",r.mementoOriginatorKey)}clear(){this.debug("History clear:",Object.keys(this.originators)),this.history=[],this.historyIndex=-1;for(let[r,l]of this.originators.entries())this.clearState.set(r,l.createMemento())}record(r,...l){this.historyIndex<this.history.length-1&&(this.history=this.history.slice(0,this.historyIndex+1)),this.history.length>this.maxHistoryLength&&(this.history=this.history.slice(-this.maxHistoryLength));let m=new Map;for(let D of l){if(!this.originators.has(D.mementoOriginatorKey))throw new Error(`Originator [${D.mementoOriginatorKey}] has not been added to the HistoryManager.`);m.set(D.mementoOriginatorKey,D.createMemento())}this.history.push({label:r,mementos:m}),this.historyIndex=this.history.length-1,this.debugEvent(`History record: [${r}]`)}undo(){let r=this.history[this.historyIndex];if(r){for(let l of r.mementos.keys()){let m=this.findPreviousMemento(l);if(m===OI)throw new Error(`Could not find previous memento for [${l}].`);this.restoreMemento(l,m)}this.historyIndex-=1,this.debugEvent(`History undo: [${r.label}]`)}}redo(){let r=this.history[this.historyIndex+1];if(r){for(let[l,m]of r.mementos.entries())this.restoreMemento(l,m);this.historyIndex+=1,this.debugEvent(`History redo: [${r.label}]`)}}findPreviousMemento(r){for(let l=this.historyIndex-1;l>=0;l--)if(this.history[l].mementos.has(r))return this.history[l].mementos.get(r);return this.clearState.has(r)?this.clearState.get(r):OI}restoreMemento(r,l){var m;(m=this.originators.get(r))==null||m.restoreMemento(ma,ma,l)}debugEvent(...r){this.debug(...r,this.history.map((l,m)=>m===this.historyIndex?`** ${l.label} **`:l.label))}},ob=class JV{constructor(l){this.version=l.split("-")[0]}save(...l){let m={version:this.version};for(let D of Object.values(l))m[D.mementoOriginatorKey]=this.encode(D,D.createMemento());return m}restore(l,...m){if(typeof l!="object"){vi.warnOnce(`Could not restore data of type [${typeof l}], expecting an object, ignoring.`);return}if(l==null){vi.warnOnce("Could not restore data of type [null], expecting an object, ignoring.");return}if(!("version"in l)||typeof l.version!="string"){vi.warnOnce("Could not restore data, missing [version] string in object, ignoring.");return}for(let D of m){let L=this.decode(D,l[D.mementoOriginatorKey]);if(!D.guardMemento(L)){vi.warnOnce(`Could not restore [${D.mementoOriginatorKey}] data, value was invalid, ignoring.`,L);return}D.restoreMemento(this.version,l.version,L)}}encode(l,m){try{return JSON.parse(JSON.stringify(m,JV.encodeTypes))}catch(D){throw new Error(`Failed to encode [${l.mementoOriginatorKey}] value [${D}].`,{cause:D})}}decode(l,m){if(m==null)return m;try{return JSON.parse(JSON.stringify(m),JV.decodeTypes)}catch(D){throw new Error(`Failed to decode [${l.mementoOriginatorKey}] value [${D}].`,{cause:D})}}static encodeTypes(l,m){return Fh(this[l])?{__type:"date",value:this[l].toISOString()}:m}static decodeTypes(l,m){return Jn(this[l])&&"__type"in this[l]&&this[l].__type==="date"?new Date(this[l].value):m}},FI=class{constructor(){this.caretaker=new ob(ma),this.state=new Map}setState(r,l){qg(this.state.get(r.mementoOriginatorKey),l)||this.setStateAndRestore(r,l)}setStateAndRestore(r,l){this.state.set(r.mementoOriginatorKey,l),this.restoreState(r)}restoreState(r){let{caretaker:l,state:m}=this;if(!m.has(r.mementoOriginatorKey))return;let D=m.get(r.mementoOriginatorKey);l.restore({version:l.version,[r.mementoOriginatorKey]:D},r)}},sD=`.ag-charts-wrapper,.ag-charts-wrapper:after,.ag-charts-wrapper:before,.ag-charts-wrapper *,.ag-charts-wrapper *:after,.ag-charts-wrapper *:before{box-sizing:border-box}.ag-charts-wrapper{position:relative;user-select:none}.ag-charts-tab-guard{width:0%;height:0%;position:absolute;pointer-events:none}.ag-charts-canvas-center{width:100%;height:100%;position:absolute;touch-action:auto;pointer-events:auto;display:flex;align-items:var(--ag-charts-align);justify-content:var(--ag-charts-justify)}.ag-charts-canvas-container,.ag-charts-canvas{position:relative;user-select:none}.ag-charts-canvas-container>*,.ag-charts-canvas>*{display:block;pointer-events:none}.ag-charts-series-area{outline:none;pointer-events:none;position:absolute}.ag-charts-swapchain{outline:none;opacity:0;pointer-events:auto;position:absolute;width:100%;height:100%}.ag-charts-swapchain:focus-visible{opacity:1}.ag-charts-canvas-proxy,.ag-charts-canvas-overlay{inset:0;pointer-events:none;position:absolute;user-select:none}.ag-charts-canvas-overlay>*{position:absolute;pointer-events:auto}.ag-charts-theme-default,.ag-charts-theme-default-dark{--ag-charts-active-color: var(--ag-active-color, #2196f3);--ag-charts-background-color: var(--ag-background-color, #fff);--ag-charts-foreground-color: var(--ag-foreground-color, #181d1f);--ag-charts-border-color: var(--ag-border-color, #dddddd);--ag-charts-hover-color: color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 12%);--ag-charts-font-family: "Verdana", sans-serif;--ag-charts-font-size: var(--ag-font-size, 14px);--ag-charts-size: var(--ag-grid-size, 8px);--ag-charts-border: var(--ag-charts-border-color) var(--ag-borders, solid 1px);--ag-charts-border-critical: var(--ag-borders-critical, solid 1px);--ag-charts-floating-shadow: 0 2px 8px 0 color-mix(in srgb, black 8%, transparent);--ag-charts-layer-ui-overlay: 5;--ag-charts-layer-tooltip: 4;--ag-charts-layer-toolbar: 3;--ag-charts-layer-crosshair: 2;--ag-charts-layer-annotations: 1;--ag-charts-align: center;--ag-charts-justify: center;--ag-charts-axis-label-background-color: #474747;--ag-charts-axis-label-color: #ffffff;--ag-charts-tooltip-background-color: #fafafb;--ag-charts-tooltip-text-color: var(--ag-charts-foreground-color);--ag-charts-tooltip-border: 1px solid var(--ag-charts-border-color);--ag-charts-content-padding: 8px 12px;--ag-charts-content-gap: 8px;--ag-charts-content-compact-padding: 3px 6px;--ag-charts-tooltip-border-radius: 4px;--ag-charts-toolbar-foreground-color: var(--ag-header-foreground-color, var(--ag-charts-foreground-color));--ag-charts-toolbar-background-color: var( --ag-header-background-color, color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-foreground-color) 2%) );--ag-charts-toolbar-shadow: var(--ag-charts-floating-shadow);--ag-charts-toolbar-size: 34px;--ag-charts-toolbar-size-small: 24px;--ag-charts-toolbar-border: var(--ag-charts-border-critical, solid 1px) var(--ag-charts-border-color);--ag-charts-toolbar-hover-color: color-mix( in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 12% );--ag-charts-toolbar-focus-color: var(--ag-charts-active-color);--ag-charts-toolbar-active-background-color: var(--ag-charts-toolbar-hover-color);--ag-charts-toolbar-active-color: var(--ag-charts-active-color);--ag-charts-toolbar-disabled-foreground-color: var( --ag-disabled-foreground-color, color-mix(in srgb, transparent, var(--ag-charts-toolbar-foreground-color) 50%) );--ag-charts-toolbar-disabled-background-color: color-mix( in srgb, var(--ag-charts-toolbar-background-color), var(--ag-charts-toolbar-foreground-color) 6% );--ag-charts-toolbar-gap: var(--ag-charts-size);--ag-charts-toolbar-font-size: 13px;--ag-charts-toolbar-font-size-small: 12px;--ag-charts-toolbar-button-padding: 6px;--ag-charts-toolbar-button-padding-small: 1px;--ag-charts-popover-background-color: var(--ag-charts-toolbar-background-color);--ag-charts-popover-foreground-color: var(--ag-charts-toolbar-foreground-color);--ag-charts-popover-border: var(--ag-charts-toolbar-border);--ag-charts-popover-border-radius: var(--ag-border-radius, 4px);--ag-charts-popover-active-color: var(--ag-charts-toolbar-active-color);--ag-charts-popover-hover-color: var(--ag-charts-toolbar-hover-color);--ag-charts-popover-active-background-color: var(--ag-charts-toolbar-active-background-color);--ag-charts-popover-font-size: 14px;--ag-charts-popover-font-size-small: var(--ag-charts-toolbar-font-size-small);--ag-charts-popover-shadow: var(--ag-charts-floating-shadow);--ag-charts-dialog-input-group-label-color: color-mix(in srgb, transparent, var(--ag-charts-foreground-color) 55%);--ag-charts-dialog-tab-color--inactive: color-mix(in srgb, transparent, var(--ag-charts-foreground-color) 55%);--ag-charts-button-radius: var(--ag-border-radius, 4px);--ag-charts-focus-border-color: var(--ag-input-focus-border-color, var(--ag-charts-active-color));--ag-charts-focus-border: solid 1px var(--ag-charts-focus-border-color);--ag-charts-focus-border-shadow: var( --ag-input-focus-box-shadow, 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color, var(--ag-charts-active-color)) 20%) );--ag-charts-focus-box-shadow: var(--box-shadow), 0 0 0 2px #fff8, var(--ag-charts-focus-border-shadow);--ag-charts-icon-font-family: "agChartsDefault";--ag-charts-icon-font-weight: normal;--ag-charts-icon-font-color: color-mix(in srgb, transparent, var(--ag-charts-foreground-color), 90%);--ag-charts-icon-size: 20px;--ag-charts-input-background-color: var(--ag-charts-background-color);--ag-charts-input-background-color--hover: var(--ag-charts-hover-color);--ag-charts-input-background-color--active: var(--ag-charts-hover-color);--ag-charts-input-border-color: var(--ag-charts-border-color);--ag-charts-input-border-color--active: var(--ag-charts-active-color);--ag-charts-input-border-radius: var(--ag-border-radius, 4px);--ag-charts-input-color--active: var(--ag-charts-active-color);--ag-charts-input-focus-outline: var(--ag-charts-focus-border);--ag-charts-input-focus-box-shadow: var(--ag-charts-focus-border-shadow);--ag-charts-input-font-family: var(--ag-charts-font-family);--ag-charts-input-font-size: var(--ag-charts-font-size);--ag-charts-input-padding: 8px;--ag-charts-input-padding-large: 10px;--ag-charts-input-placeholder-color: #888888;--ag-charts-input-spacing: 8px;--ag-charts-input-transition-duration: .25s;--ag-charts-input-transition-duration--fast: .1s;--ag-charts-input-transition-timing-function: ease-out;--ag-charts-input-checkbox-background-color: #babbbc;--ag-charts-input-checkbox-background-color--checked: var(--ag-charts-active-color)}.ag-charts-theme-default-dark{--ag-charts-background-color: var(--ag-background-color, color-mix(in srgb, #fff, #182230 97%));--ag-charts-foreground-color: var(--ag-foreground-color, #fff);--ag-charts-border-color: var(--ag-border-color, rgba(255, 255, 255, .16));--ag-charts-hover-color: color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 18%);--ag-charts-floating-shadow: 0 2px 12px 0 color-mix(in srgb, black 33.3%, transparent);--ag-charts-axis-label-background-color: #9caebb;--ag-charts-axis-label-color: #000000;--ag-charts-tooltip-background-color: #28313e;--ag-charts-tooltip-border: 1px solid #474e59;--ag-charts-toolbar-background-color: var(--ag-header-background-color, color-mix(in srgb, #fff, #182230 93%));--ag-charts-toolbar-hover-color: color-mix( in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 18% );--ag-charts-dialog-input-group-label-text-color: #ffffff;--ag-charts-focus-border-shadow: var( --ag-input-focus-box-shadow, 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color, var(--ag-charts-active-color)) 20%) );--ag-charts-input-placeholder-color: #aaaaaa}.ag-charts-icon{display:block;width:var(--ag-charts-icon-size);height:var(--ag-charts-icon-size);speak:none;speak:never;mask:var(--icon) center / contain no-repeat;background-color:currentColor;transition:background-color .25s ease-in-out}.ag-charts-icon-align-center{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNNyAxMGg2djFIN3pNNCA3aDEydjFINHptMSA2aDEwdjFINXoiLz48L3N2Zz4=)}.ag-charts-icon-align-left{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNNCAxMGg2djFINHptMC0zaDEydjFINHptMCA2aDEwdjFINHoiLz48L3N2Zz4=)}.ag-charts-icon-align-right{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMTAgMTBoNnYxaC02ek00IDdoMTJ2MUg0em0yIDZoMTB2MUg2eiIvPjwvc3ZnPg==)}.ag-charts-icon-arrow-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE1LjI5MyA0LjVIMTIuNXYtMUgxN3Y0aC0xVjUuMjA3bC05LjY0NiA5LjY0Ny0uNzA4LS43MDh6IiBmaWxsPSIjMDAwIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03IDE2YTIuNSAyLjUgMCAxIDEtNSAwIDIuNSAyLjUgMCAwIDEgNSAwbS0yLjUgMS41YTEuNSAxLjUgMCAxIDAgMC0zIDEuNSAxLjUgMCAwIDAgMCAzIiBmaWxsPSIjMDAwIi8+PC9zdmc+)}.ag-charts-icon-arrow-down-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02IDhMMS41IDhMMTAgMThMMTguNSA4TDE0IDhMMTQgM0w2IDNMNiA4Wk03IDRMNyA5SDMuNjYyNDRMMTAgMTYuNDU2TDE2LjMzNzYgOUwxMyA5TDEzIDRMNyA0WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-arrow-up-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNCAxMkgxOC41TDEwIDJMMS41IDEySDZMNi4wMDAwMiAxN0gxNFYxMlpNMTMgMTZWMTFIMTYuMzM3NkwxMCAzLjU0NDA1TDMuNjYyNDQgMTFIN0w3LjAwMDAyIDE2SDEzWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-callout-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMyA0LjVBMS41IDEuNSAwIDAgMSA0LjUgM2gxMUExLjUgMS41IDAgMCAxIDE3IDQuNXY4YTEuNSAxLjUgMCAwIDEtMS41IDEuNWgtNC41MTRhMjYgMjYgMCAwIDAtMi4wMTcgMS41NGwtLjMxNC4yNmMtLjU1LjQ1Ny0xLjExNS45MjYtMS43NiAxLjQtLjY2OS40OTEtMS41NjItLjAxMi0xLjU2Mi0uOFYxNEg0LjVBMS41IDEuNSAwIDAgMSAzIDEyLjV6TTQuNSA0YS41LjUgMCAwIDAtLjUuNXY4YS41LjUgMCAwIDAgLjUuNWgxLjgzM3YzLjM3MmEzNiAzNiAwIDAgMCAxLjY3OC0xLjMzOGwuMzItLjI2NWEyNiAyNiAwIDAgMSAyLjIyNS0xLjY4NWwuMTI2LS4wODRIMTUuNWEuNS41IDAgMCAwIC41LS41di04YS41LjUgMCAwIDAtLjUtLjV6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-candlestick-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNyAxdjNoMnYxMkg3djNINnYtM0g0VjRoMlYxek01IDVoM3YxMEg1ek0xMSAxNFY2aDJWMy4yNWgxVjZoMnY4aC0ydjIuNzVoLTFWMTR6bTEtN2gzdjZoLTN6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-close{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtNSA1IDEwIDEwTTUgMTUgMTUgNSIgc3Ryb2tlPSIjMDAwIi8+PC9zdmc+)}.ag-charts-icon-comment-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNy41MTMgMy45OTVhNi41IDYuNSAwIDAgMSA2LjA5OCAxMS40MWMtLjU4OC4zOTMtMS4yMTcuNTM2LTEuODI5LjU4NWExMyAxMyAwIDAgMS0xLjI3LjAxN0EyNyAyNyAwIDAgMCAxMCAxNkg0LjVhLjUuNSAwIDAgMS0uNS0uNVYxMHEwLS4yNDctLjAwNy0uNTEzYy0uMDA4LS40MTYtLjAxNi0uODU3LjAxNy0xLjI2OS4wNS0uNjEyLjE5Mi0xLjI0LjU4NS0xLjgzYTYuNSA2LjUgMCAwIDEgMi45MTgtMi4zOTNtMy41Ni42MWE1LjUgNS41IDAgMCAwLTUuNjQ2IDIuMzRjLS4yNjYuMzk3LS4zNzkuODQyLS40MiAxLjM1NC0uMDMuMzYtLjAyMi43MTgtLjAxNSAxLjEwOFE1IDkuNjg5IDUgMTB2NWg1cS4zMTEuMDAxLjU5My4wMDhjLjM5LjAwNy43NDcuMDE1IDEuMTA4LS4wMTUuNTEyLS4wNDEuOTU3LS4xNTQgMS4zNTUtLjQyYTUuNSA1LjUgMCAwIDAtMS45ODMtOS45NjciIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-crosshair-add-line{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTEwIDUuNWEuNS41IDAgMCAxIC41LjV2My41aDMuODc1YS41LjUgMCAwIDEgMCAxSDEwLjV2NC4yNWEuNS41IDAgMSAxLTEgMFYxMC41SDUuNjI1YS41LjUgMCAxIDEgMC0xSDkuNVY2YS41LjUgMCAwIDEgLjUtLjUiLz48L3N2Zz4=)}.ag-charts-icon-date-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMiAyaDF2MTZIMnptMTUgMGgxdjE2aC0xeiIgZmlsbD0iIzE4MUQxRiIvPjxwYXRoIGQ9Ik0xMy4xNTcgMTFINXYtMWg3Ljc5M0wxMSA4LjIwN2wuNzA3LS43MDcgMy4xODIgMy4xODItMy4xODIgMy4xODItLjcwNy0uNzA3eiIgZmlsbD0iIzAwMCIvPjwvc3ZnPg==)}.ag-charts-icon-date-price-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMyAySDJ2MTZoMXptMy41MDcgNC44OUw4LjUgNC44OTVWMTBINXYxaDMuNXY3aDF2LTdoNS4wODhsLTEuOTU3IDEuOTU3LjcwNy43MDcgMy4xODItMy4xODJMMTMuMzM4IDcuM2wtLjcwNy43MDdMMTQuNjI0IDEwSDkuNVY0LjkzMmwxLjk1NyAxLjk1Ny43MDctLjcwN0w4Ljk4MiAzIDUuOCA2LjE4MnoiIGZpbGw9IiMxODFEMUYiLz48L3N2Zz4=)}.ag-charts-icon-delete{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZD0iTTguNDk2IDguOTk2QS41LjUgMCAwIDEgOSA5LjQ5MnY0YS41LjUgMCAxIDEtMSAuMDA4di00YS41LjUgMCAwIDEgLjQ5Ni0uNTA0TTEyIDkuNWEuNS41IDAgMCAwLTEgMHY0YS41LjUgMCAwIDAgMSAweiIvPjxwYXRoIGZpbGw9IiMxMzE3MjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNVYzLjVBMi41IDIuNSAwIDAgMSA4LjUgMWgzQTIuNSAyLjUgMCAwIDEgMTQgMy41VjVoMi44MzNhLjUuNSAwIDAgMSAwIDFIMTV2MTAuMjVjMCAuNDE1LS4wNjYuODYzLS4zIDEuMjIxLS4yNTcuMzk0LS42NzIuNjEyLTEuMi42MTJoLTdjLS41MjggMC0uOTQzLS4yMTgtMS4yLS42MTItLjIzNC0uMzU4LS4zLS44MDYtLjMtMS4yMjFWNkgzLjMzM2EuNS41IDAgMCAxIDAtMXptMS0xLjVBMS41IDEuNSAwIDAgMSA4LjUgMmgzQTEuNSAxLjUgMCAwIDEgMTMgMy41VjVIN3pNNiAxNi4yNVY2aDh2MTAuMjVjMCAuMzM1LS4wNTkuNTU0LS4xMzguNjc1LS4wNTUuMDg1LS4xNC4xNTgtLjM2Mi4xNThoLTdjLS4yMjIgMC0uMzA3LS4wNzMtLjM2Mi0uMTU4LS4wOC0uMTIxLS4xMzgtLjM0LS4xMzgtLjY3NSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-disjoint-channel,.ag-charts-icon-disjoint-channel-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTkuMDI4IDE3LjQ2YTIuMjUgMi4yNSAwIDAgMC00LjA5Mi0xLjg1bC05LjUxMS0yLjM3OGEyLjI1IDIuMjUgMCAxIDAtLjIyNS45NzRsOS40NzUgMi4zNjlhMi4yNTEgMi4yNTEgMCAwIDAgNC4zNTMuODg2bS0xLjY2Mi0xLjk2NWExLjI1IDEuMjUgMCAxIDEtLjg4NSAyLjMzOCAxLjI1IDEuMjUgMCAwIDEgLjg4NS0yLjMzOE00LjM0MyAxMy42NjlhMS4yNSAxLjI1IDAgMSAwLTIuMzM4LS44ODUgMS4yNSAxLjI1IDAgMCAwIDIuMzM4Ljg4NU0zLjk3IDguNzY5YTIuMjUgMi4yNSAwIDAgMCAxLjQ1NS0yLjExbDkuNTExLTIuMzc4YTIuMjUgMi4yNSAwIDEgMC0uMjYtLjk2NUw1LjIgNS42ODVhMi4yNSAyLjI1IDAgMSAwLTEuMjMgMy4wODRtLjM3My0yLjU0N2ExLjI1IDEuMjUgMCAxIDEtMi4zMzguODg1IDEuMjUgMS4yNSAwIDAgMSAyLjMzOC0uODg1bTEzLjc1LTMuNDM4YTEuMjUgMS4yNSAwIDEgMS0yLjMzOC44ODUgMS4yNSAxLjI1IDAgMCAxIDIuMzM4LS44ODUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-drag-handle{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI1Ljc1IiBjeT0iNy43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iOS43NSIgY3k9IjcuNzUiIHI9Ii43NSIgZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuNSIvPjxjaXJjbGUgY3g9IjEzLjc1IiBjeT0iNy43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iMTMuNzUiIGN5PSIxMS43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iOS43NSIgY3k9IjExLjc1IiByPSIuNzUiIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjUiLz48Y2lyY2xlIGN4PSI1Ljc1IiBjeT0iMTEuNzUiIHI9Ii43NSIgZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuNSIvPjwvc3ZnPg==)}.ag-charts-icon-fibonacci-retracement-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA1aDEydjFIMnoiLz48Y2lyY2xlIGN4PSIxNS43NSIgY3k9IjUuNSIgcj0iMS43NSIgc3Ryb2tlPSIjMDAwIi8+PGNpcmNsZSBjeD0iNC4yNSIgY3k9IjE0LjUiIHI9IjEuNzUiIHN0cm9rZT0iIzAwMCIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik0xOCAxNUg2di0xaDEyem0wLTQuNUgydi0xaDE2eiIvPjwvc3ZnPg==)}.ag-charts-icon-fill-color{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtOC4wNzEgNC4wNi0uOTI0LS45MjQuNzA3LS43MDcgNy4yODggNy4yODgtNC45NSA0Ljk1YTMuNSAzLjUgMCAwIDEtNC45NSAwbC0xLjQxNC0xLjQxNGEzLjUgMy41IDAgMCAxIDAtNC45NXptLjcwNy43MDhMNC41MzYgOS4wMWEyLjUgMi41IDAgMCAwIDAgMy41MzZMNS45NSAxMy45NmEyLjUgMi41IDAgMCAwIDMuNTM1IDBsNC4yNDMtNC4yNDN6bTYuOSA3LjIwMi0uMzQ1LjM2My0uMzQ0LS4zNjNhLjUuNSAwIDAgMSAuNjg4IDBtLS4zNDUgMS4wOGE4IDggMCAwIDAtLjI4LjMyMyA0LjMgNC4zIDAgMCAwLS40MDkuNTgyYy0uMTEzLjIwMS0uMTQ0LjMyNi0uMTQ0LjM3OGEuODMzLjgzMyAwIDAgMCAxLjY2NyAwYzAtLjA1Mi0uMDMxLS4xNzctLjE0NC0uMzc4YTQuMyA0LjMgMCAwIDAtLjQxLS41ODIgOCA4IDAgMCAwLS4yOC0uMzIybS0uMzQ0LTEuMDguMzQ0LjM2My4zNDQtLjM2My4wMDIuMDAyLjAwNC4wMDQuMDEzLjAxMmE2IDYgMCAwIDEgLjIwNi4yMDhjLjEzMS4xMzYuMzA4LjMyNy40ODUuNTQ1LjE3Ni4yMTUuMzYzLjQ2Ny41MDcuNzI0LjEzNy4yNDMuMjczLjU1My4yNzMuODY4YTEuODMzIDEuODMzIDAgMSAxLTMuNjY3IDBjMC0uMzE1LjEzNi0uNjI1LjI3My0uODY4LjE0NC0uMjU3LjMzLS41MDkuNTA3LS43MjRhOSA5IDAgMCAxIC42NDUtLjcwOGwuMDQ2LS4wNDUuMDEzLS4wMTIuMDA0LS4wMDR6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-hollow-candlestick-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1vcGFjaXR5PSIuMTUiIGQ9Ik01IDVoM3YxMEg1eiIvPjxwYXRoIGZpbGw9IiMxMzE3MjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTcgMXYzaDJ2MTJIN3YzSDZ2LTNINFY0aDJWMXpNNSA1aDN2MTBINXptNyAyaDN2NmgtM3ptLTEgN1Y2aDJWMy4yNWgxVjZoMnY4aC0ydjIuNzVoLTFWMTR6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-horizontal-line,.ag-charts-icon-horizontal-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNLjUgOS41aDcuMzA2YTIuMjUgMi4yNSAwIDAgMSA0LjM4OCAwSDE5LjV2MWgtNy4zMDZhMi4yNSAyLjI1IDAgMCAxLTQuMzg4IDBILjV6bTkuNSAxLjc1YTEuMjUgMS4yNSAwIDEgMCAwLTIuNSAxLjI1IDEuMjUgMCAwIDAgMCAyLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-line-color{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTQuMjQyIDIuNzIyYy0uNjEyIDAtMS4yLjI0My0xLjYzMi42NzVsLTEuMzQzIDEuMzQ0YS41LjUgMCAwIDAtLjExMi4xMTJMNC4wNSAxMS45NTljLS4yMDcuMjA3LS4zNi40Ni0uNDQ2Ljc0di4wMDFsLS42OSAyLjc2N3YuMDAyYS44Mi44MiAwIDAgMCAxLjAyMiAxLjAyMWguMDAybDIuNjM0LS44MjJjLjI4LS4wODUuNTM0LS4yMzcuNzQtLjQ0M2w3LjEwNy03LjEwOGEuNS41IDAgMCAwIC4xMTItLjExMmwxLjM0My0xLjM0M2EyLjMwOCAyLjMwOCAwIDAgMC0xLjYzMi0zLjk0TTE0LjEyMiA3bDEuMDQ0LTEuMDQ1YTEuMzA4IDEuMzA4IDAgMSAwLTEuODQ5LTEuODVMMTIuMjcxIDUuMTV6bS0yLjU1OC0xLjE0Mi02LjgwNyA2LjgwOWEuOC44IDAgMCAwLS4xOTYuMzI1bC0uNzUgMi40NjggMi40Ny0uNzQ5YS44LjggMCAwIDAgLjMyNS0uMTk0bDYuODA4LTYuODF6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-line-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTcuMzYyIDQuODczLTQuNTk0IDYuNjU0LTQuODUtMy4zMTctNC4yNTEgNi45NzctLjg1NC0uNTJMNy42MTIgNi43OWw0Ljg5OSAzLjM1IDQuMDI4LTUuODM2eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-line-style-dashed{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA5aDR2MUgyem0xMiAwaDR2MWgtNHpNOCA5aDR2MUg4eiIvPjwvc3ZnPg==)}.ag-charts-icon-line-style-dotted{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyLjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iNC41IiBjeT0iOS41IiByPSIuNSIgZmlsbD0iIzAwMCIvPjxjaXJjbGUgY3g9IjYuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSI4LjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iMTAuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSIxMi41IiBjeT0iOS41IiByPSIuNSIgZmlsbD0iIzAwMCIvPjxjaXJjbGUgY3g9IjE0LjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iMTYuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48L3N2Zz4=)}.ag-charts-icon-line-style-solid{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA5aDE2djFIMnoiLz48L3N2Zz4=)}.ag-charts-icon-line-with-markers-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTguMTk4IDQuODg4LTMuNTU2IDQuOTE4YTIuMjUgMi4yNSAwIDEgMS0zLjg2Ni43NWwtMS40MzItLjlhMi4yNCAyLjI0IDAgMCAxLTIuMDA5LjQzNWwtMy44MjggNi40MjgtLjg2LS41MTJMNi40NSA5LjYyM2EyLjI1IDIuMjUgMCAxIDEgMy41MS0uNzYxbDEuMzI5LjgzNWEyLjI0IDIuMjQgMCAwIDEgMi41NTctLjQ5N2wzLjU0Mi00Ljg5OHptLTQuOTYgNS4xNTNhMS4yNSAxLjI1IDAgMSAwLS42NCAyLjQxOSAxLjI1IDEuMjUgMCAwIDAgLjY0LTIuNDE5TTkuMSA4LjMyMXEuMDY2LS4xOTIuMDY3LS40MDRhMS4yNSAxLjI1IDAgMSAwLS4wNjcuNDA0IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-lock,.ag-charts-icon-locked{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuMjA3IDMuNzY0YTIuODk0IDIuODk0IDAgMCAwLTIuODk1IDIuODk0VjloNS43ODlWNi42NThhMi44OTQgMi44OTQgMCAwIDAtMi44OTUtMi44OTRNMTQuMSA5VjYuNjU4YTMuODk0IDMuODk0IDAgMSAwLTcuNzg5IDB2Mi4zNDlBMi41IDIuNSAwIDAgMCA0IDExLjV2M0EyLjUgMi41IDAgMCAwIDYuNSAxN2g4YTIuNSAyLjUgMCAwIDAgMi41LTIuNXYtM0EyLjUgMi41IDAgMCAwIDE0LjUgOXpNNi41IDEwQTEuNSAxLjUgMCAwIDAgNSAxMS41djNBMS41IDEuNSAwIDAgMCA2LjUgMTZoOGExLjUgMS41IDAgMCAwIDEuNS0xLjV2LTNhMS41IDEuNSAwIDAgMC0xLjUtMS41eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-measurer-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibTQuNDYxIDEyLjcxIDEuNTMyLTEuNTMxIDEuNDE0IDEuNDE0LjcwNy0uNzA3TDYuNyAxMC40NzJsMS41MzItMS41MzMgMiAyIC43MDctLjcwNy0yLTIgNi4wMS02LjAxIDIuODMgMi44MjhMNS4wNSAxNy43NzggMi4yMjIgMTQuOTVsMS41MzItMS41MzIgMS40MTQgMS40MTQuNzA3LS43MDd6TS44MDggMTQuOTVsLjcwNy0uNzA3TDE0LjI0MyAxLjUxNWwuNzA3LS43MDcuNzA3LjcwNyAyLjgyOCAyLjgyOC43MDcuNzA3LS43MDcuNzA3TDUuNzU3IDE4LjQ4NWwtLjcwNy43MDctLjcwNy0uNzA3LTIuODI4LTIuODI4em0xMS4wNzgtNi44MzVMMTAuNDcgNi43bC43MDctLjcwNyAxLjQxNSAxLjQxNHptLjgyNC0zLjY1NCAxIDEgLjcwOC0uNzA3LTEtMXoiIGZpbGw9IiMxODFEMUYiLz48L3N2Zz4=)}.ag-charts-icon-note-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMyA0LjVBMS41IDEuNSAwIDAgMSA0LjUgM2gxMUExLjUgMS41IDAgMCAxIDE3IDQuNXY4YTEuNSAxLjUgMCAwIDEtMS41IDEuNWgtMy4yMWwtMS40NjkgMi41N2ExIDEgMCAwIDEtMS42ODIuMDg1TDcuMjQzIDE0SDQuNUExLjUgMS41IDAgMCAxIDMgMTIuNXpNNC41IDRhLjUuNSAwIDAgMC0uNS41djhhLjUuNSAwIDAgMCAuNS41aDMuMjU3bDIuMTk2IDMuMDc0TDExLjcxIDEzaDMuNzlhLjUuNSAwIDAgMCAuNS0uNXYtOGEuNS41IDAgMCAwLS41LS41eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNi41IDYuNUEuNS41IDAgMCAxIDcgNmg2YS41LjUgMCAwIDEgMCAxSDdhLjUuNSAwIDAgMS0uNS0uNU02LjUgOS41QS41LjUgMCAwIDEgNyA5aDZhLjUuNSAwIDAgMSAwIDFIN2EuNS41IDAgMCAxLS41LS41IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-ohlc-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZD0iTTEzIDExaC0zdi0xaDNWM2gxdjJoNHYxaC00djExaC0xek02IDE3di0yaDN2LTFINlY0SDV2MUgydjFoM3YxMXoiLz48L3N2Zz4=)}.ag-charts-icon-pan-end{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0ibTYuNjQ2IDEzLjgxMy0uMzUzLjM1NC43MDcuNzA3LjM1NC0uMzU0ek0xMS4xNjYgMTBsLjM1NC4zNTQuMzU0LS4zNTQtLjM1NC0uMzU0ek03LjM1NSA1LjQ4IDcgNS4xMjZsLS43MDcuNzA3LjM1My4zNTR6bTAgOS4wNCA0LjE2Ni00LjE2Ni0uNzA3LS43MDgtNC4xNjcgNC4xNjd6bTQuMTY2LTQuODc0TDcuMzU0IDUuNDhsLS43MDguNzA3IDQuMTY3IDQuMTY3ek0xMy4wODMgNXYxMGgxVjV6Ii8+PC9zdmc+)}.ag-charts-icon-pan-left{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTIuNzkgNS44MzMgOC42MjUgMTBsNC4xNjYgNC4xNjctLjcwNy43MDdMNy4yMSAxMGw0Ljg3My00Ljg3NHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-pan-right{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNy4yMSAxNC4xNjcgMTEuMzc2IDEwIDcuMjEgNS44MzNsLjcwNy0uNzA3TDEyLjc5IDEwbC00Ljg3MyA0Ljg3NHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-pan-start{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTYgNXYxMGgxVjV6TTkuNjI0IDEwbDQuMTY2LTQuMTY3LS43MDctLjcwN0w4LjIxIDEwbDQuODc0IDQuODc0LjcwNy0uNzA3eiIvPjwvc3ZnPg==)}.ag-charts-icon-parallel-channel,.ag-charts-icon-parallel-channel-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTcuNzIgNS4zMzFBMi4yNSAyLjI1IDAgMSAwIDE0LjcwNSAzLjZsLTkuNDkgNC41NjJhMi4yNSAyLjI1IDAgMSAwIC4yMDkgMS4wMWw5LjY2Mi00LjY0NmEyLjI1IDIuMjUgMCAwIDAgMi42MzQuODA1bS4zNzMtMi41NDdhMS4yNSAxLjI1IDAgMSAxLTIuMzM4Ljg4NSAxLjI1IDEuMjUgMCAwIDEgMi4zMzgtLjg4NU00LjM0MyA4LjY3YTEuMjUgMS4yNSAwIDEgMS0yLjMzOC44ODUgMS4yNSAxLjI1IDAgMCAxIDIuMzM4LS44ODVNNS4zMDcgMTYuNzI4YTIuMjUgMi4yNSAwIDEgMS0uNTI1LS44NThsOS45MjMtNC43N2EyLjI1IDIuMjUgMCAxIDEgLjM4MS45MjZ6bS0uOTY0LjI3NGExLjI1IDEuMjUgMCAxIDEtMi4zMzguODg1IDEuMjUgMS4yNSAwIDAgMSAyLjMzOC0uODg1bTEzLjAyMy01LjEwNmExLjI1IDEuMjUgMCAxIDAtLjg4NS0yLjMzOSAxLjI1IDEuMjUgMCAwIDAgLjg4NSAyLjMzOSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-position-bottom{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4yNSIgZD0iTTMgMTBoMTR2MUgzem0zLTNoOHYxSDZ6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTYgMTNoOHYxSDZ6Ii8+PC9zdmc+)}.ag-charts-icon-position-center{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMyAxMGgxNHYxSDN6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuMjUiIGQ9Ik02IDdoOHYxSDZ6bTAgNmg4djFINnoiLz48L3N2Zz4=)}.ag-charts-icon-position-top{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4yNSIgZD0iTTMgMTBoMTR2MUgzeiIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik02IDdoOHYxSDZ6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuMjUiIGQ9Ik02IDEzaDh2MUg2eiIvPjwvc3ZnPg==)}.ag-charts-icon-price-label-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNC41IDNBMS41IDEuNSAwIDAgMCAzIDQuNVYxM2ExLjUgMS41IDAgMCAwIDEuNSAxLjVoLjgzM3YuMDU3Yy4yNDItLjI5OS41OTctLjUwMyAxLS41NDhWMTMuNUg0LjVBLjUuNSAwIDAgMSA0IDEzVjQuNWEuNS41IDAgMCAxIC41LS41aDExYS41LjUgMCAwIDEgLjUuNXY4YS41LjUgMCAwIDEtLjUuNWgtNC44MThsLS4xMjYuMDg0YTI2IDI2IDAgMCAwLTIuMjI1IDEuNjg1bC0uMzIuMjY1LS4wNjguMDU2YTEuNSAxLjUgMCAwIDEtMi42MDkgMS4zNTRjLjAzMy43NjMuOTA1IDEuMjM4IDEuNTYuNzU2LjY0Ni0uNDc0IDEuMjEtLjk0MyAxLjc2MS0xLjRsLjMxMy0uMjZBMjYgMjYgMCAwIDEgMTAuOTg2IDE0SDE1LjVhMS41IDEuNSAwIDAgMCAxLjUtMS41di04QTEuNSAxLjUgMCAwIDAgMTUuNSAzeiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC43MTYgMTQuODE1YTIuMjUgMi4yNSAwIDEgMS00LjIxIDEuNTkzIDIuMjUgMi4yNSAwIDAgMSA0LjIxLTEuNTkzbS0xLjY2MiAxLjk2NmExLjI1IDEuMjUgMCAxIDAtLjg4NS0yLjMzOSAxLjI1IDEuMjUgMCAwIDAgLjg4NSAyLjMzOSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-price-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOS4wNDYgMTVWNS44NzdoLjk0MlYxNXoiIGZpbGw9IiMxODFEMUYiLz48cGF0aCBkPSJNOS4wNDYgMTVWNS44NzdoLjk0MlYxNXoiIGZpbGw9IiMxODFEMUYiLz48cGF0aCBkPSJNOS41IDYuMjI4IDcuMTY3IDguMzc2IDYuNSA3Ljc2MiA5LjUgNWwzIDIuNzYyLS42NjcuNjE0eiIgZmlsbD0iIzAwMCIvPjxwYXRoIGQ9Ik0yIDE4di0xaDE2djF6TTIgM1YyaDE2djF6IiBmaWxsPSIjMTgxRDFGIi8+PC9zdmc+)}.ag-charts-icon-reset{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTIuMDQgNC40NDVhNS44MSA1LjgxIDAgMCAwLTcuMjU3IDIuNDUzLjUuNSAwIDAgMS0uODY1LS41MDJBNi44MSA2LjgxIDAgMSAxIDMgOS44MTNhLjUuNSAwIDAgMSAxIDAgNS44MSA1LjgxIDAgMSAwIDguMDQtNS4zNjgiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTQuMjg5IDMuMDAyYS41LjUgMCAwIDEgLjUuNXYyLjY1NWgyLjY1NWEuNS41IDAgMCAxIDAgMUg0LjI5YS41LjUgMCAwIDEtLjUtLjVWMy41MDJhLjUuNSAwIDAgMSAuNS0uNSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-settings{--icon: url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkIj48cGF0aCBkPSJNMTAgMTNhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2bTAtMWEyIDIgMCAxIDEtLjAwMS0zLjk5OUEyIDIgMCAwIDEgMTAgMTIiLz48cGF0aCBkPSJNMi4zMSAxNC4zNDVjLS44MTctMS40OTEuMDI3LTIuNDk5LjQ3NC0yLjg2NS41MzEtLjQzNC45NjktLjM2NS45NzItMS40OC0uMDAzLTEuMTE1LS40NDEtMS4wNDYtLjk3Mi0xLjQ4MS0uNDU0LS4zNzEtMS4zMTctMS40MDUtLjQzNC0yLjkzNmwuMDA1LS4wMDljLjg4NC0xLjUyIDIuMjA3LTEuMjkgMi43NTUtMS4wODMuNjQxLjI0My44MDEuNjU2IDEuNzY4LjEwMS45NjQtLjU2LjY4Ni0uOTA0Ljc5Ni0xLjU4Mi4wOTQtLjU3OC41NTktMS44NDMgMi4zMjYtMS44NDNoLjAxYzEuNzU5LjAwNSAyLjIyMiAxLjI2NiAyLjMxNiAxLjg0My4xMS42NzgtLjE2OCAxLjAyMi43OTYgMS41ODIuOTY3LjU1NSAxLjEyNy4xNDIgMS43NjgtLjEwMS41NDktLjIwOCAxLjg3Ni0uNDM4IDIuNzYgMS4wOTJzLjAyIDIuNTY1LS40MzQgMi45MzZjLS41MzEuNDM1LS45NjkuMzY2LS45NzIgMS40ODEuMDAzIDEuMTE1LjQ0MSAxLjA0Ni45NzIgMS40OC40NTQuMzcyIDEuMzE3IDEuNDA2LjQzNCAyLjkzN2wtLjAwNS4wMDljLS44ODQgMS41Mi0yLjIwNyAxLjI5LTIuNzU1IDEuMDgzLS42NDEtLjI0My0uODAxLS42NTYtMS43NjgtLjEwMS0uOTY0LjU2LS42ODYuOTA0LS43OTYgMS41ODEtLjA5NC41NzktLjU1OSAxLjg0NC0yLjMyNiAxLjg0NGgtLjAxYy0xLjc1OS0uMDA1LTIuMjIyLTEuMjY2LTIuMzE2LTEuODQ0LS4xMS0uNjc3LjE2OC0xLjAyMS0uNzk2LTEuNTgxLS45NjctLjU1NS0xLjEyNy0uMTQyLTEuNzY4LjEwMS0uNTQ5LjIwOC0xLjg3Ni40MzgtMi43Ni0xLjA5MmwtLjAyLS4wMzZ6TTkuOTg0IDIuMTYySDEwYzEuMzU1IDAgMS4zNDIgMS4wMzkgMS4zNTMgMS40MjUuMDA4LjMxMi4wNCAxLjE2IDEuMjU5IDEuODcybC4wMTUuMDA4YzEuMjI1LjcgMS45NzYuMzA0IDIuMjUxLjE1NS4zMzctLjE4MyAxLjIyNi0uNzExIDEuOTAyLjQ0NWwuMDA4LjAxNGMuNjc4IDEuMTczLS4yMjkgMS42ODItLjU1OCAxLjg4NC0uMjY2LjE2My0uOTg0LjYxNS0uOTkxIDIuMDI3di4wMTZjLjAwNyAxLjQxMi43MjUgMS44NjQuOTkxIDIuMDI3LjMyOC4yMDEgMS4yMjkuNzA3LjU2NiAxLjg3bC0uMDA4LjAxNGMtLjY3NyAxLjE3NC0xLjU3MS42NDMtMS45MS40NTktLjI3NS0uMTQ5LTEuMDI2LS41NDUtMi4yNTEuMTU0bC0uMDE1LjAwOWMtMS4yMTkuNzEyLTEuMjUxIDEuNTYtMS4yNTkgMS44NzItLjAxMS4zODYuMDAyIDEuNDI1LTEuMzUzIDEuNDI1cy0xLjM0Mi0xLjAzOS0xLjM1My0xLjQyNWMtLjAwOC0uMzEyLS4wNC0xLjE2LTEuMjU5LTEuODcybC0uMDE1LS4wMDljLTEuMjI1LS42OTktMS45NzYtLjMwMy0yLjI1MS0uMTU0LS4zMzYuMTgzLTEuMjE5LjcwNi0xLjg5NC0uNDMybC0uMDE2LS4wMjdjLS42NzgtMS4xNzQuMjI5LTEuNjgyLjU1OC0xLjg4NC4yNjYtLjE2My45ODQtLjYxNS45OTEtMi4wMjd2LS4wMTZjLS4wMDctMS40MTItLjcyNS0xLjg2NC0uOTkxLTIuMDI3LS4zMjgtLjIwMS0xLjIyOS0uNzA3LS41NjYtMS44N2wuMDA4LS4wMTRjLjY3Ny0xLjE3NCAxLjU3MS0uNjQzIDEuOTEtLjQ1OS4yNzUuMTQ5IDEuMDI2LjU0NSAyLjI1MS0uMTU1bC4wMTUtLjAwOGMxLjIxOS0uNzEyIDEuMjUxLTEuNTYgMS4yNTktMS44NzIuMDEtLjM4NC0uMDAyLTEuNDE3IDEuMzM3LTEuNDI1Ii8+PC9zdmc+)}.ag-charts-icon-step-line-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzE4MUQxRiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNiA0aDV2OGgzVjhoNXYxaC00djRoLTVWNUg3djEwSDJ2LTFoNHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-text-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00IDRIMTZWN0gxNVY1SDEwLjVWMTVIMTRWMTZINlYxNUg5LjVWNUg1VjdINFY0WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-trend-line,.ag-charts-icon-trend-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNS4zMTQgMTAuOTM4YTIuMjUgMi4yNSAwIDEgMSAuMDEtMWg5LjM1MmEyLjI1IDIuMjUgMCAxIDEgLjAxIDF6bS0yLjE4OS43MjlhMS4yNSAxLjI1IDAgMSAwIDAtMi41IDEuMjUgMS4yNSAwIDAgMCAwIDIuNW0xMy43NSAwYTEuMjUgMS4yNSAwIDEgMCAwLTIuNSAxLjI1IDEuMjUgMCAwIDAgMCAyLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-unlock,.ag-charts-icon-unlocked{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNjUxIDMuNWEyLjg5NCAyLjg5NCAwIDAgMC0yLjg5NCAyLjg5NFY5SDE0LjVhMi41IDIuNSAwIDAgMSAyLjUgMi41djNhMi41IDIuNSAwIDAgMS0yLjUgMi41aC04QTIuNSAyLjUgMCAwIDEgNCAxNC41di0zQTIuNSAyLjUgMCAwIDEgNi41IDloLjI1N1Y2LjM5NGEzLjg5NCAzLjg5NCAwIDEgMSA3Ljc4OSAwIC41LjUgMCAwIDEtMSAwQTIuODk0IDIuODk0IDAgMCAwIDEwLjY1IDMuNU02LjUgMTBBMS41IDEuNSAwIDAgMCA1IDExLjV2M0ExLjUgMS41IDAgMCAwIDYuNSAxNmg4YTEuNSAxLjUgMCAwIDAgMS41LTEuNXYtM2ExLjUgMS41IDAgMCAwLTEuNS0xLjV6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-vertical-line,.ag-charts-icon-vertical-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNSA3LjgwNmEyLjI1IDIuMjUgMCAwIDEgMCA0LjM4OFYxOS41aC0xdi03LjMwNmEyLjI1IDIuMjUgMCAwIDEgMC00LjM4OFYuNWgxem0tLjUuOTQ0YTEuMjUgMS4yNSAwIDEgMSAwIDIuNSAxLjI1IDEuMjUgMCAwIDEgMC0yLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-zoom-in{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTEwIDUuNWEuNS41IDAgMCAxIC41LjV2My41aDMuODc1YS41LjUgMCAwIDEgMCAxSDEwLjV2NC4yNWEuNS41IDAgMSAxLTEgMFYxMC41SDUuNjI1YS41LjUgMCAxIDEgMC0xSDkuNVY2YS41LjUgMCAwIDEgLjUtLjUiLz48L3N2Zz4=)}.ag-charts-icon-zoom-out{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNS41IDEwYS41LjUgMCAwIDEgLjUtLjVoOGEuNS41IDAgMCAxIDAgMUg2YS41LjUgMCAwIDEtLjUtLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-high-low-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNyA0aDJ2MTJINFY0aDNNNSA1aDN2MTBINXpNMTEgMTRWNmg1djhoLTVtMS03aDN2NmgtM3oiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-hlc-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTguMTYzIDEuODM3LTUuMzM0IDExLjYyMUw2Ljk1NyA4LjEybC00LjE5OSA5LjYyMi0uOTE2LS40IDQuNzU2LTEwLjlMMTIuNDkgMTEuOCAxNy4yNTQgMS40MnoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjQiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTUuODI1IDIuNzA0LjU1IDEzLjc4NWwuOTAyLjQzIDQuNzI0LTkuOTE5IDYuMDM0IDUuMDI5IDMuMjU1LTguMTQtLjkyOC0uMzctMi43NDUgNi44NnptNy44NTIgMTQuNjM2IDUuNzgtMTMuMTM5LS45MTUtLjQwMi01LjIxOSAxMS44Ni02LjAwNS01LjUwNC0zLjI3OCA3LjY0OC45Mi4zOTQgMi43MjItNi4zNTJ6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-zoom-in-alt{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXpvb20taW4iPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHgyPSIxNi42NSIgeTE9IjIxIiB5Mj0iMTYuNjUiLz48bGluZSB4MT0iMTEiIHgyPSIxMSIgeTE9IjgiIHkyPSIxNCIvPjxsaW5lIHgxPSI4IiB4Mj0iMTQiIHkxPSIxMSIgeTI9IjExIi8+PC9zdmc+)}.ag-charts-icon-zoom-out-alt{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXpvb20tb3V0Ij48Y2lyY2xlIGN4PSIxMSIgY3k9IjExIiByPSI4Ii8+PGxpbmUgeDE9IjIxIiB4Mj0iMTYuNjUiIHkxPSIyMSIgeTI9IjE2LjY1Ii8+PGxpbmUgeDE9IjgiIHgyPSIxNCIgeTE9IjExIiB5Mj0iMTEiLz48L3N2Zz4=)}.ag-charts-input{--input-layer-active: 1;--input-layer-focus: 2;color:inherit;font-family:var(--ag-charts-input-font-family);font-size:var(--ag-charts-input-font-size);transition-duration:var(--ag-charts-input-transition-duration);transition-property:none;transition-timing-function:var(--ag-charts-input-transition-timing-function)}.ag-charts-input:focus-visible{outline:var(--ag-charts-input-focus-outline);box-shadow:var(--ag-charts-input-focus-box-shadow);z-index:var(--input-layer-focus)}.ag-charts-button{background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);cursor:pointer;padding:var(--ag-charts-input-padding);transition-property:background,border-color}.ag-charts-button:hover{background:var(--ag-charts-input-background-color--hover)}.ag-charts-button:has(.ag-charts-icon){padding:2px}.ag-charts-checkbox{appearance:none;background:var(--ag-charts-input-checkbox-background-color);border-radius:9px;cursor:pointer;height:18px;margin:0;transition-duration:var(--ag-charts-input-transition-duration--fast);transition-property:margin;width:29px}.ag-charts-checkbox:before{display:block;background:var(--ag-charts-input-background-color);border-radius:7px;content:" ";height:14px;margin:2px;transition-duration:var(--ag-charts-input-transition-duration--fast);transition-property:margin;transition-timing-function:var(--ag-charts-input-transition-easing);width:14px}.ag-charts-checkbox:checked{background:var(--ag-charts-input-checkbox-background-color--checked)}.ag-charts-checkbox:checked:before{margin-left:13px}.ag-charts-select{background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);padding:3px 2px 4px;font-size:inherit}.ag-charts-textarea{--line-height: 1.38;background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);line-height:var(--line-height);font-family:var(--ag-charts-input-font-family);font-size:var(--ag-charts-input-font-size);padding:var(--ag-charts-input-padding-large) var(--ag-charts-input-padding)}.ag-charts-textarea[placeholder]:empty:before{color:var(--ag-charts-input-placeholder);content:attr(placeholder)}.ag-charts-proxy-container{pointer-events:none;position:absolute}.ag-charts-proxy-elem{-webkit-appearance:none;appearance:none;background:none;border:none;color:#0000;overflow:hidden;pointer-events:auto;position:absolute}.ag-charts-proxy-elem::-moz-range-thumb,.ag-charts-proxy-elem::-moz-range-track{opacity:0}.ag-charts-proxy-elem::-webkit-slider-runnable-track,.ag-charts-proxy-elem::-webkit-slider-thumb{opacity:0}.ag-charts-proxy-elem:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow)}.ag-charts-focus-indicator{position:absolute;display:block;pointer-events:none;user-select:none;width:100%;height:100%}.ag-charts-focus-indicator>div{position:absolute;outline:var(--ag-charts-focus-border);outline-width:2px;box-shadow:var(--ag-charts-focus-border-shadow)}.ag-charts-focus-indicator>svg{width:100%;height:100%;fill:none;stroke:var(--ag-charts-focus-border-color);stroke-width:2px}.ag-charts-overlay{color:#181d1f;pointer-events:none}.ag-charts-overlay.ag-charts-dark-overlay{color:#fff}.ag-charts-overlay--loading{color:#8c8c8c}.ag-charts-overlay__loading-background{background:#fff;pointer-events:none}.ag-charts-overlay.ag-charts-dark-overlay .ag-charts-overlay__loading-background{background:#192232}.ag-charts-tooltip{position:fixed;inset:unset;margin:0;padding:0;overflow:visible;width:max-content;max-width:100%;font:12px Verdana,sans-serif;color:var(--ag-charts-tooltip-text-color);background:var(--ag-charts-tooltip-background-color);border:var(--ag-charts-tooltip-border);border-radius:var(--ag-charts-tooltip-border-radius);box-shadow:0 4px 8px #00000014}.ag-charts-tooltip--compact{--ag-charts-content-padding: var(--ag-charts-content-compact-padding)}.ag-charts-tooltip--arrow:before{--tooltip-arrow-size: 8px;content:"";position:absolute;top:100%;left:50%;margin:0 auto;transform:translate(-50%) translateY(calc(var(--tooltip-arrow-size) * -.5)) rotate(45deg);display:block;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);border:inherit;background:inherit;border-top:none;border-left:none;clip-path:polygon(0 100%,100% 0,100% 100%)}.ag-charts-tooltip--no-interaction{pointer-events:none;user-select:none}.ag-charts-tooltip--wrap-always{overflow-wrap:break-word;word-break:break-word;hyphens:none}.ag-charts-tooltip--wrap-hyphenate{overflow-wrap:break-word;word-break:break-word;hyphens:auto}.ag-charts-tooltip--wrap-on-space{overflow-wrap:normal;word-break:normal}.ag-charts-tooltip--wrap-never{white-space:nowrap}.ag-charts-tooltip-heading,.ag-charts-tooltip-title,.ag-charts-tooltip-label,.ag-charts-tooltip-value{overflow:hidden;text-overflow:ellipsis}.ag-charts-tooltip-content{display:grid;grid:auto-flow minmax(1em,auto) / 1fr;padding:var(--ag-charts-content-padding);gap:var(--ag-charts-content-gap)}.ag-charts-tooltip-content:has(.ag-charts-tooltip-symbol){grid:auto-flow minmax(1em,auto) / auto 1fr}.ag-charts-tooltip-heading{grid-column:1 / -1}.ag-charts-tooltip-symbol{grid-column:1 / 2;align-self:center}.ag-charts-tooltip-symbol svg{display:block}.ag-charts-tooltip-title{grid-column:-2 / -1}.ag-charts-tooltip-row{grid-column:1 / -1;display:flex;gap:16px;align-items:baseline;justify-content:space-between;overflow:hidden}.ag-charts-tooltip-row--inline{grid-column:-2 / -1}.ag-charts-tooltip-label{flex:1;min-width:0}.ag-charts-tooltip-value{min-width:0}.ag-charts-popover{position:absolute;border:var(--ag-charts-popover-border);border-radius:var(--ag-charts-popover-border-radius);background:var(--ag-charts-popover-background-color);color:var(--ag-charts-popover-foreground-color);font-family:var(--ag-charts-font-family);font-size:var(--ag-charts-popover-font-size);box-shadow:var(--ag-charts-popover-shadow);z-index:var(--ag-charts-layer-ui-overlay)}.ag-charts-menu{--item-padding: 6px 12px;--icon-color: var(--ag-charts-popover-foreground-color);display:grid;grid:auto-flow auto / 1fr;column-gap:12px;font-size:var(--ag-charts-popover-font-size-small)}.ag-charts-menu:has(.ag-charts-menu__icon,.ag-charts-menu__row--stroke-width-visible){grid:auto-flow auto / auto 1fr}.ag-charts-menu__row--stroke-width-visible:before{content:"";height:var(--strokeWidth);width:12px;background:var(--icon-color)}.ag-charts-menu__row--stroke-width-visible[aria-disabled=true]:before{filter:grayscale(1);opacity:.5}.ag-charts-menu__row{display:grid;grid-column:1 / -1;grid-template-columns:subgrid;align-items:center;padding:var(--item-padding)}.ag-charts-menu__row:not(.ag-charts-menu__row--active){cursor:pointer}.ag-charts-menu__row:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.ag-charts-menu__row:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.ag-charts-menu__row:focus{background:var(--ag-charts-popover-hover-color)}.ag-charts-menu__row:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-menu__row--active{--icon-color: var(--ag-charts-popover-active-color);background:var(--ag-charts-popover-active-background-color);color:var(--ag-charts-popover-active-color)}.ag-charts-menu__label{grid-column:-1 / span 1}.ag-charts-toolbar{align-items:center;display:flex;flex-wrap:nowrap;position:absolute}.ag-charts-toolbar__button{align-items:center;background:var(--ag-charts-toolbar-background-color);border:var(--ag-charts-toolbar-border);color:var(--ag-charts-toolbar-foreground-color);cursor:pointer;display:flex;font:var(--ag-charts-toolbar-font-size) var(--ag-charts-font-family);justify-content:center;min-height:var(--ag-charts-toolbar-size);min-width:var(--ag-charts-toolbar-size);padding:var(--ag-charts-toolbar-button-padding);position:relative;transition:background-color .25s ease-in-out,border-color .25s ease-in-out,color .25s ease-in-out;white-space:nowrap}.ag-charts-toolbar__button:hover{background:var(--ag-charts-toolbar-hover-color);z-index:1}.ag-charts-toolbar__button:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-toolbar__button--active{background:var(--ag-charts-toolbar-active-background-color);border-color:var(--ag-charts-toolbar-active-color);color:var(--ag-charts-toolbar-active-color);z-index:2}.ag-charts-toolbar__button[aria-disabled=true]{background:var(--ag-charts-toolbar-disabled-background-color);color:var(--ag-charts-toolbar-disabled-foreground-color);cursor:default}.ag-charts-toolbar--horizontal{flex-direction:row;.ag-charts-toolbar__button{margin:0 0 0 -1px}.ag-charts-toolbar__button--first{border-bottom-left-radius:var(--ag-charts-button-radius);border-top-left-radius:var(--ag-charts-button-radius);margin:0}.ag-charts-toolbar__button--last{border-bottom-right-radius:var(--ag-charts-button-radius);border-top-right-radius:var(--ag-charts-button-radius)}}.ag-charts-toolbar--vertical{flex-direction:column;.ag-charts-toolbar__button{margin:-1px 0 0;max-width:100%}.ag-charts-toolbar__button--first{border-top-left-radius:var(--ag-charts-button-radius);border-top-right-radius:var(--ag-charts-button-radius);margin:0}.ag-charts-toolbar__button--last{border-bottom-left-radius:var(--ag-charts-button-radius);border-bottom-right-radius:var(--ag-charts-button-radius)}}.ag-charts-toolbar__icon+.ag-charts-toolbar__label{margin-left:var(--ag-charts-toolbar-gap)}.ag-charts-toolbar__icon,.ag-charts-toolbar__label{pointer-events:none}.ag-charts-floating-toolbar{border:none;display:flex;.ag-charts-toolbar{align-items:unset;position:unset}}.ag-charts-floating-toolbar__drag-handle{align-items:center;background:var(--ag-charts-toolbar-background-color);border:var(--ag-charts-toolbar-border);border-bottom-left-radius:var(--ag-charts-button-radius);border-top-left-radius:var(--ag-charts-button-radius);cursor:grab;display:flex;justify-content:center;min-width:24px;padding-left:0;padding-right:0}.ag-charts-floating-toolbar__drag-handle--dragging{cursor:grabbing}
`;function _c(r){return r==="true"}function rb(r){return Number(r)}function Na(r){return r}var Im={role:Na,"aria-checked":_c,"aria-controls":Na,"aria-describedby":Na,"aria-disabled":_c,"aria-expanded":_c,"aria-haspopup":_c,"aria-hidden":_c,"aria-label":Na,"aria-labelledby":Na,"aria-live":Na,"aria-orientation":Na,"aria-selected":_c,"data-preventdefault":_c,class:Na,id:Na,tabindex:rb,title:Na,placeholder:Na};function Ka(r,l,m){m==null||m===""||m===""?r==null||r.removeAttribute(l):r==null||r.setAttribute(l,m.toString())}function Ko(r,l){if(l!=null)for(let[m,D]of Object.entries(l))m!=="class"&&Ka(r,m,D)}function rp(r,l,m){var L,B;if(!(r instanceof HTMLElement))return;let D=r.getAttribute(l);return D===null?m:(B=(L=Im[l])==null?void 0:L.call(Im,D))!=null?B:void 0}function wl(r,l,m){r!=null&&(m==null?r.style.removeProperty(l):r.style.setProperty(l,m.toString()))}function zP(r,l){for(let[m,D]of Object.entries(l))wl(r,m,D)}var lD=class Tz{constructor(l,m,D){this.element=l,this.topTabGuard=m,this.bottomTabGuard=D,this.destroyFns=[],this.guardTabIndex=0,this.hasFocus=!1,this.initTabGuard(this.topTabGuard,L=>this.onTab(L,!1)),this.initTabGuard(this.bottomTabGuard,L=>this.onTab(L,!0)),this.element.addEventListener("focus",()=>this.onFocus(),{capture:!0}),this.element.addEventListener("blur",L=>this.onBlur(L),{capture:!0})}set tabIndex(l){this.guardTabIndex=l,this.guardTabIndex===0?this.setGuardIndices(void 0):this.hasFocus||this.setGuardIndices(this.guardTabIndex)}destroy(){for(let l of this.destroyFns)l();this.destroyFns.length=0}initTabGuard(l,m){let D=()=>m(l);l.addEventListener("focus",D),this.destroyFns.push(()=>l.removeEventListener("focus",D))}setGuardIndices(l){let m=l;Ka(this.topTabGuard,"tabindex",m),Ka(this.bottomTabGuard,"tabindex",m)}onFocus(){this.hasFocus=!0,this.guardTabIndex!==0&&this.setGuardIndices(0)}onBlur({relatedTarget:l}){let{topTabGuard:m,bottomTabGuard:D}=this;this.hasFocus=!1,this.guardTabIndex!==0&&l!==m&&l!==D&&this.setGuardIndices(this.guardTabIndex)}onTab(l,m){if(this.guardTabIndex!==0){let D;l.tabIndex===0?(D=this.findExitTarget(!m),this.setGuardIndices(this.guardTabIndex)):D=this.findEnterTarget(m),D==null||D.focus()}}static queryFocusable(l,m){let D=On();return Array.from(l.querySelectorAll(m)).filter(L=>{if(L instanceof HTMLElement){let B=D.getComputedStyle(L);return B.display!=="none"&&B.visibility!=="none"}return!1})}findEnterTarget(l){let m=Tz.queryFocusable(this.element,'[tabindex="0"]'),D=l?m.length-1:0;return m[D]}findExitTarget(l){let m=Tz.queryFocusable(Hr(),"[tabindex]").filter(B=>B.tabIndex>0).sort((B,H)=>B.tabIndex-H.tabIndex),{before:D,after:L}=Tz.findBeforeAndAfter(m,this.guardTabIndex);return l?D:L}static findBeforeAndAfter(l,m){let D=0,L=l.length-1,B,H;for(;D<=L;){let U=Math.floor((D+L)/2),X=l[U].tabIndex;if(X===m){B=l[U-1]||void 0,H=l[U+1]||void 0;break}else X<m?(B=l[U],D=U+1):(H=l[U],L=U-1)}return{before:B,after:H}}};function hh(r,l,m,D){l.addEventListener(m,D);let L=()=>l.removeEventListener(m,D);return r.push(L),L}function sb(r,l,m){hh(r,l,"keydown",D=>{D.key==="Escape"&&m(D)})}function Lx(r,l,m){let D=hh(r,window,"mousedown",L=>{[0,2].includes(L.button)&&!_I(l,L)&&(m(),D())});return D}function _I(r,l){if(l.target instanceof Element){let{x:m,y:D,width:L,height:B}=r.getBoundingClientRect(),{clientX:H,clientY:U}=l;return H>=m&&U>=D&&H<=m+L&&U<=D+B}return!1}function ou(r){return!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey)}function cv(r,l,...m){return ou(r)&&(r.key===l||m.some(D=>r.key===D))}function fd(r,l,m,D){m&&hh(r,l,"keydown",L=>{cv(L,D)&&m.focus()})}function Tm(r,l,m,D,L,B){fd(r,l,L,B),fd(r,l,m,D),hh(r,l,"keydown",H=>{cv(H,D,B)&&H.preventDefault()})}var sp={horizontal:{nextKey:"ArrowRight",prevKey:"ArrowLeft"},vertical:{nextKey:"ArrowDown",prevKey:"ArrowUp"}};function NI(r){return r.toolbar.role="toolbar",r.toolbar.ariaOrientation=r.orientation,r.toolbar.ariaHidden=(r.buttons.length===0).toString(),dv(r)}function dv(r){let{orientation:l,buttons:m,wrapAround:D=!1,onEscape:L,onFocus:B,onBlur:H}=r,{nextKey:U,prevKey:X}=sp[l],Q=ye=>{ye.target&&"tabIndex"in ye.target&&(m.forEach(Me=>Me.tabIndex=-1),ye.target.tabIndex=0)},[ie,ue]=D?[m.length,m.length]:[0,1/0],be=[];for(let ye=0;ye<m.length;ye++){let Me=m[(ie+ye-1)%ue],Ie=m[ye],Oe=m[(ie+ye+1)%ue];hh(be,Ie,"focus",Q),B&&hh(be,Ie,"focus",B),H&&hh(be,Ie,"blur",H),L&&sb(be,Ie,L),Tm(be,Ie,Oe,U,Me,X),Ie.tabIndex=ye===0?0:-1}return be}var xl=class{constructor(r,l,m){this.lastFocus=l,this.closeCallback=m,this.destroyFns=[],this.destroyFns.push(Lx(this.destroyFns,r,()=>this.close(!0)))}close(r){this.destroyFns.forEach(l=>l()),this.destroyFns.length=0,this.closeCallback(),this.finishClosing(r)}finishClosing(r){var l;this.destroyFns.forEach(m=>m()),this.destroyFns.length=0,Ka(this.lastFocus,"aria-expanded",!1),r||(l=this.lastFocus)==null||l.focus({preventScroll:!0}),this.lastFocus=void 0}};function ps(r){var ye;let{sourceEvent:l,orientation:m,menu:D,buttons:L,closeCallback:B,autoCloseOnBlur:H=!1}=r,{nextKey:U,prevKey:X}=sp[m],Q=vd(l);Ka(Q,"aria-expanded",!0);let ie=new xl(D,Q,B),ue=()=>ie.close(),{destroyFns:be}=ie;if(D.role="menu",D.ariaOrientation=m,be.push(...dv({orientation:m,buttons:L,onEscape:ue,wrapAround:!0})),D.tabIndex=-1,sb(be,D,ue),hh(be,D,"keydown",Me=>{var Ie;Me.target===D&&(Me.key===U||Me.key===X)&&(Me.preventDefault(),(Ie=L[0])==null||Ie.focus())}),H){let Me=Ie=>{!L.includes(Ie.relatedTarget)&&ue()};for(let Ie of L)hh(be,Ie,"blur",Me)}return(ye=L[0])==null||ye.focus({preventScroll:!0}),ie}function Er(r,l){return m=>{if(r.ariaDisabled==="true")return m.preventDefault();l(m)}}function ms(r){return"button"in r?r.button===0:ou(r)&&(r.code==="Space"||r.key==="Enter")}function vd(r){if((r==null?void 0:r.target)instanceof HTMLElement&&"tabindex"in r.target.attributes)return r.target}function Ml(r){let l=m=>{if(m.defaultPrevented)return;rp(m.target,"data-preventdefault",!0)&&cv(m,"ArrowRight","ArrowLeft","ArrowDown","ArrowUp")&&m.preventDefault()};return r.addEventListener("keydown",l),()=>r.removeEventListener("keydown",l)}var zI=class{constructor(){var r;this.elements=new Map,this.documentReady=!1,this.queuedObserveRequests=[],this.onLoad=()=>{this.documentReady=!0,this.queuedObserveRequests.forEach(([l,m])=>this.observe(l,m)),this.queuedObserveRequests=[]},typeof ResizeObserver!="undefined"&&(this.resizeObserver=new ResizeObserver(l=>{for(let{target:m,contentRect:{width:D,height:L}}of l){let B=this.elements.get(m);this.checkSize(B,m,D,L)}}),this.documentReady=Hr("readyState")==="complete",this.documentReady||(r=On())==null||r.addEventListener("load",this.onLoad))}destroy(){var r,l;(r=On())==null||r.removeEventListener("load",this.onLoad),(l=this.resizeObserver)==null||l.disconnect(),this.resizeObserver=null}checkSize(r,l,m,D){var L,B;r&&(m!==((L=r.size)==null?void 0:L.width)||D!==((B=r.size)==null?void 0:B.height))&&(r.size={width:m,height:D},r.cb(r.size,l))}observe(r,l){var D;if(!this.documentReady){this.queuedObserveRequests.push([r,l]);return}this.elements.has(r)?this.removeFromQueue(r):(D=this.resizeObserver)==null||D.observe(r);let m={cb:l};this.elements.set(r,m)}unobserve(r){var l;(l=this.resizeObserver)==null||l.unobserve(r),this.elements.delete(r),this.removeFromQueue(r),this.elements.size||this.destroy()}removeFromQueue(r){this.queuedObserveRequests=this.queuedObserveRequests.filter(([l])=>l!==r)}},C0='<div role="presentation" class="ag-charts-wrapper ag-charts-styles" data-ag-charts><div role="presentation" class="ag-charts-canvas-center"><div role="presentation" class="ag-charts-canvas-container"><div role="presentation" class="ag-charts-canvas" aria-hidden="true"></div><div role="figure" class="ag-charts-canvas-proxy"><div role="presentation" class="ag-charts-series-area"></div></div><div role="presentation" class="ag-charts-canvas-overlay"></div></div></div></div>',BI=["styles","canvas","canvas-center","canvas-container","canvas-overlay","canvas-proxy","series-area"],Zh=new Map([["styles",{childElementType:"style"}],["canvas",{childElementType:"canvas"}],["canvas-proxy",{childElementType:"div"}],["canvas-overlay",{childElementType:"div"}],["canvas-center",{childElementType:"div"}],["series-area",{childElementType:"div"}]]);function Ox(r,l){if(typeof IntersectionObserver=="undefined")return;let m=new IntersectionObserver(D=>{for(let L of D)L.target===r&&l(L.intersectionRatio)},{root:r});return m.observe(r),m}var ho={x:0,y:0,width:0,height:0,top:0,bottom:0,left:0,right:0,toJSON(){return ho}};function Rm(r,l){let m=ta("div");return m.className="ag-charts-tab-guard",r.insertAdjacentElement(l,m),m}var Nc=class extends Fn{constructor(r,l){super(),this.styles=new Map,this.container=void 0,this.containerSize=void 0,this.sizeMonitor=new zI;let m=ta("div");m.innerHTML=C0,this.element=m.children.item(0),this.styleRootElement=l,this.rootElements=BI.reduce((U,X)=>{let Q=`ag-charts-${X}`,ie=this.element.classList.contains(Q)?this.element:this.element.querySelector(`.${Q}`);if(!ie)throw new Error(`AG Charts - unable to find DOM element ${Q}`);return U[X]={element:ie,children:new Map,listeners:[]},U},{});let D=!1;this.observer=Ox(this.element,U=>{U===0&&!D&&this.listeners.dispatch("hidden",{type:"hidden"}),D=U===0}),this.setSizeOptions(),this.addStyles("ag-charts-community",sD),r&&this.setContainer(r),this.destroyFns.push(Ml(this.element));let L=this.element.querySelector(".ag-charts-canvas-center");if(L==null)throw new Error("Error initializing tab guards");let B=Rm(L,"beforebegin"),H=Rm(L,"afterend");this.tabGuards=new lD(L,B,H)}destroy(){var r;super.destroy(),(r=this.observer)==null||r.unobserve(this.element),this.container&&this.sizeMonitor.unobserve(this.container),Object.values(this.rootElements).forEach(l=>{l.children.forEach(m=>m.remove()),l.element.remove()}),this.element.remove()}setSizeOptions(r=300,l=300,m,D){let{style:L}=this.element;L.width=`${m!=null?m:r}px`,L.height=`${D!=null?D:l}px`}updateContainerSize(){var l,m,D,L;let{style:r}=this.rootElements["canvas-center"].element;r.width=`${(m=(l=this.containerSize)==null?void 0:l.width)!=null?m:0}px`,r.height=`${(L=(D=this.containerSize)==null?void 0:D.height)!=null?L:0}px`}setTabGuardIndex(r){this.tabGuards.tabIndex=r}setContainer(r){if(r===this.container)return;if(this.container&&(this.container.removeChild(this.element),this.sizeMonitor.unobserve(this.container)),!(this.getShadowDocumentRoot(r)!=null))for(let m of this.rootElements.styles.children.keys())this.removeChild("styles",m);this.container=r;for(let[m,D]of this.styles)this.addStyles(m,D);r.appendChild(this.element),this.sizeMonitor.observe(r,m=>{this.containerSize=m,this.updateContainerSize(),this.listeners.dispatch("resize",{type:"resize"})}),this.listeners.dispatch("container-changed",{type:"container-changed"})}setThemeClass(r){let l="ag-charts-theme-";this.element.classList.forEach(m=>{m.startsWith(l)&&m!==r&&this.element.classList.remove(m)}),this.element.classList.add(r)}updateCanvasLabel(r){Ka(this.rootElements["canvas-proxy"].element,"aria-label",r)}getEventElement(r,l){return["focus","blur","keydown","keyup"].includes(l)?this.rootElements["series-area"].element:r}addEventListener(r,l,m){this.getEventElement(this.element,r).addEventListener(r,l,m)}removeEventListener(r,l,m){this.getEventElement(this.element,r).removeEventListener(r,l,m)}getBoundingClientRect(){return this.rootElements.canvas.element.getBoundingClientRect()}getOverlayClientRect(){var D,L;let r=On(),l=new ft(0,0,r.innerWidth,r.innerHeight),m=this.getRawOverlayClientRect();return(L=(D=l.intersection(m))==null?void 0:D.toDOMRect())!=null?L:ho}getRawOverlayClientRect(){var L,B;let r=this.element;for(;r!=null;){let H=(L=r.computedStyleMap)==null?void 0:L.call(r),U=(B=H==null?void 0:H.get("overflow-y"))==null?void 0:B.toString();if(U==="auto"||U==="scroll")return ft.fromDOMRect(r.getBoundingClientRect());r=r.parentElement}let l=this.getShadowDocumentRoot();if(l!=null)return ft.fromDOMRect(l.getBoundingClientRect());let{innerWidth:m,innerHeight:D}=On();return new ft(0,0,m,D)}getShadowDocumentRoot(r=this.container){var m,D;let l=(D=(m=r==null?void 0:r.ownerDocument)==null?void 0:m.body)!=null?D:Hr("body");for(;r!=null;){if(r===l)return;if(r.parentNode instanceof DocumentFragment)return r;r=r.parentNode}return this.container}getParent(r){return this.rootElements[r].element}getChildBoundingClientRect(r){let{children:l}=this.rootElements[r],m=[];for(let D of l.values())m.push(ft.fromDOMRect(D.getBoundingClientRect()));return ft.merge(m)}calculateCanvasPosition(r){var H;let l=0,m=0,{x:D=0,y:L=0}=(H=this.getChildBoundingClientRect("canvas"))!=null?H:{},B=r.getBoundingClientRect();return l=B.x-D,m=B.y-L,{x:l,y:m}}isManagedChildDOMElement(r,l,m){let{children:D}=this.rootElements[l],L=D==null?void 0:D.get(m);return L!=null&&r.contains(L)}contains(r,l){return l==null?this.element.contains(r):this.rootElements[l].element.contains(r)}addStyles(r,l){let m="data-ag-charts";if(this.styles.set(r,l),this.container==null)return;let D=H=>H.getAttribute(m)===r,L=H=>{let U=new Set(["TITLE","META"]),X=!0,Q;for(let ue of H.children){if(X&&U.has(ue.tagName)){Q=ue;continue}if(X=!1,D(ue))return;ue.hasAttribute(m)&&(Q=ue)}let ie=ta("style");return Q!=null?H.insertBefore(ie,Q.nextSibling):H.prepend(ie),ie},B;this.styleRootElement?B=L(this.styleRootElement):this.getShadowDocumentRoot(this.container)!=null?B=this.addChild("styles",r):B=L(Hr("head")),!(B==null||D(B))&&(B.setAttribute(m,r),B.innerHTML=l)}removeStyles(r){this.removeChild("styles",r)}updateCursor(r){this.element.style.cursor=r}getCursor(){return this.element.style.cursor}addChild(r,l,m,D){var Q;let{element:L,children:B,listeners:H}=this.rootElements[r];if(!B)throw new Error("AG Charts - unable to create DOM elements after destroy()");if(B.has(l))return B.get(l);let{childElementType:U="div"}=(Q=Zh.get(r))!=null?Q:{};if(m&&m.tagName.toLowerCase()!==U.toLowerCase())throw new Error("AG Charts - mismatching DOM element type");let X=m!=null?m:ta(U);for(let[ie,ue,be]of H)X.addEventListener(ie,ue,be);if(B.set(l,X),D){let ie=L.querySelector(D.query);if(ie==null)throw new Error(`AG Charts - addChild query failed ${D.query}`);ie.insertAdjacentElement(D.where,X)}else L==null||L.appendChild(X);return X}removeChild(r,l){var D;let{children:m}=this.rootElements[r];m&&((D=m.get(l))==null||D.remove(),m.delete(l))}incrementDataCounter(r){var m;let{dataset:l}=this.element;(m=l[r])!=null||(l[r]="0"),l[r]=String(Number(l[r])+1)}setDataBoolean(r,l){this.element.dataset[r]=String(l)}},Ir=["blur","change","contextmenu","focus","keydown","keyup","click","dblclick","mouseenter","mousemove","mouseleave","wheel"];function Lo(r,l){let{offsetX:m,offsetY:D,clientX:L,clientY:B}=l;return{type:r,offsetX:m,offsetY:D,clientX:L,clientY:B,sourceEvent:l}}var Pm={blur:r=>({type:"blur",sourceEvent:r}),change:r=>({type:"change",sourceEvent:r}),contextmenu:r=>Lo("contextmenu",r),focus:r=>({type:"focus",sourceEvent:r}),keydown:r=>({type:"keydown",sourceEvent:r}),keyup:r=>({type:"keyup",sourceEvent:r}),click:r=>Lo("click",r),dblclick:r=>Lo("dblclick",r),mouseenter:r=>Lo("mouseenter",r),mousemove:r=>Lo("mousemove",r),mouseleave:r=>Lo("mouseleave",r),wheel:r=>{let{offsetX:l,offsetY:m,clientX:D,clientY:L,deltaX:B,deltaY:H}=r;return{type:"wheel",offsetX:l,offsetY:m,clientX:D,clientY:L,deltaX:B,deltaY:H,sourceEvent:r}}},ru=class{static alloc(r,l){return Pm[r](l)}static isHTMLEvent(r){return Ir.includes(r)}},ic=class{constructor(){this.maps={}}lazyGetMap(r){let l=this.maps[r];return l===void 0&&(l=new Map,this.maps[r]=l),l}add(r,l,m){let D=this.lazyGetMap(r);if(D.has(m))throw new Error("AG Charts - duplicate add(handler)");let L=B=>{let H=ru.alloc(r,B);m(H,l)};l.getElement().addEventListener(r,L),D.set(m,L)}remove(r,l,m){let D=this.lazyGetMap(r),L=D.get(m);L&&l.getElement().removeEventListener(r,L),D.delete(m)}destroy(r){for(let l of Object.keys(this.maps))this.typedDestroy(l,r)}typedDestroy(r,l){let m=this.maps[r];if(m!=null)for(let[D,L]of m.entries())l.getElement().removeEventListener(r,L)}};function cD(r,l,m){let D=m.pageX-l.pageX,L=m.pageY-l.pageY;return{type:r,offsetX:l.offsetX+D,offsetY:l.offsetY+L,clientX:m.clientX,clientY:m.clientY,originDeltaX:D,originDeltaY:L,sourceEvent:m}}function dD(r,l,m){if(r.globalDragCallbacks!=null)return;let D=On(),L=U=>{U.stopPropagation(),U.stopImmediatePropagation()},B=U=>{var X;U.stopPropagation(),U.stopImmediatePropagation(),(X=r.globalDragCallbacks)==null||X.move(U)},H=U=>{var X;U.button===0&&(U.stopPropagation(),U.stopImmediatePropagation(),D.removeEventListener("mousedown",L,{capture:!0}),D.removeEventListener("mouseenter",L,{capture:!0}),D.removeEventListener("mouseleave",L,{capture:!0}),D.removeEventListener("mouseout",L,{capture:!0}),D.removeEventListener("mouseover",L,{capture:!0}),D.removeEventListener("mousemove",B,{capture:!0}),D.removeEventListener("mouseup",H,{capture:!0}),(X=r.globalDragCallbacks)==null||X.up(U),r.globalDragCallbacks=void 0)};D.addEventListener("mousedown",L,{capture:!0}),D.addEventListener("mouseenter",L,{capture:!0}),D.addEventListener("mouseleave",L,{capture:!0}),D.addEventListener("mouseout",L,{capture:!0}),D.addEventListener("mouseover",L,{capture:!0}),D.addEventListener("mousemove",B,{capture:!0}),D.addEventListener("mouseup",H,{capture:!0}),r.globalDragCallbacks=l,r.globalDragCallbacks.down(m)}var BP=class Rz{destroy(){var l;(l=this.dragTriggerRemovers)==null||l.forEach(m=>m()),this.dragTriggerRemovers=void 0,this.dragStartListeners=void 0,this.dragMoveListeners=void 0,this.dragEndListeners=void 0,Rz.globalDragCallbacks===this.localDragCallbacks&&(Rz.globalDragCallbacks=void 0)}add(l,m,D){var L,B,H;switch(l){case"drag-start":{(L=this.dragStartListeners)!=null||(this.dragStartListeners=[]),this.dragStartListeners.push(D),this.registerDragTrigger(m,D);break}case"drag-move":{(B=this.dragMoveListeners)!=null||(this.dragMoveListeners=[]),this.dragMoveListeners.push(D);break}case"drag-end":{(H=this.dragEndListeners)!=null||(this.dragEndListeners=[]),this.dragEndListeners.push(D);break}}}remove(l,m,D){switch(l){case"drag-start":return this.removeHandler(this.dragStartListeners,D);case"drag-move":return this.removeHandler(this.dragMoveListeners,D);case"drag-end":return this.removeHandler(this.dragEndListeners,D)}}removeHandler(l,m){let D=l==null?void 0:l.indexOf(m);D!==void 0&&(l==null||l.splice(D,1))}registerDragTrigger(l,m){var L;let D=B=>B.button===0&&this.startDrag(l,B);l.getElement().addEventListener("mousedown",D),(L=this.dragTriggerRemovers)!=null||(this.dragTriggerRemovers=new Map),this.dragTriggerRemovers.set(m,()=>l.getElement().removeEventListener("mousedown",D))}startDrag(l,m){let D={pageX:NaN,pageY:NaN,offsetX:NaN,offsetY:NaN};Nh(["pageX","pageY","offsetX","offsetY"],D,m);let L={down:B=>{this.localDragCallbacks=L;let H=cD("drag-start",D,B);this.dispatch("drag-start",l,H)},move:B=>{let H=cD("drag-move",D,B);this.dispatch("drag-move",l,H)},up:B=>{let H=cD("drag-end",D,B);this.dispatch("drag-end",l,H),this.endDrag(l,H)}};dD(Rz,L,m)}endDrag(l,{sourceEvent:m,clientX:D,clientY:L}){var U;let B=l.getElement(),H=B.getBoundingClientRect();xe.containsPoint(H,D,L)||(B.dispatchEvent(new MouseEvent("mouseleave",m)),(U=m.target)==null||U.dispatchEvent(new MouseEvent("mouseenter",m)))}dispatch(l,m,D){var L,B,H;switch(l){case"drag-start":return(L=this.dragStartListeners)==null?void 0:L.forEach(U=>U(D,m));case"drag-move":return(B=this.dragMoveListeners)==null?void 0:B.forEach(U=>U(D,m));case"drag-end":return(H=this.dragEndListeners)==null?void 0:H.forEach(U=>U(D,m))}}},Fx=class{constructor(r){this.elem=r}setBounds(r){var l;oh((l=this.elemContainer)!=null?l:this.elem,r)}getBounds(){var r;return bx((r=this.elemContainer)!=null?r:this.elem)}static setElementContainer(r,l){let m=r.getBounds();oh(l,m),zP(r.elem,{width:"100%",height:"100%"}),r.elem.remove(),r.elemContainer=l,r.elemContainer.replaceChildren(r.elem)}},$h=class extends Fx{constructor(r){super(r),this.elem=r,this.index=NaN,this.children=[]}getElement(){return this.elem}get clientWidth(){return this.elem.clientWidth}get clientHeight(){return this.elem.clientHeight}destroy(){var r,l,m,D;(r=this.parent)==null||r.removeChild(this),this.children.forEach(L=>{L.parent=void 0,L.destroy()}),this.children.length=0,this.destructor(),this.elem.remove(),(l=this.elemContainer)==null||l.remove(),(m=this.internalListener)==null||m.destroy(),(D=this.htmlListener)==null||D.destroy(this)}setHidden(r){wl(this.elem,"display",r?"none":void 0)}isHidden(){var r,l;return((l=(r=On())==null?void 0:r.getComputedStyle)==null?void 0:l.call(r,this.elem).display)==="none"}setCursor(r){wl(this.elem,"cursor",r)}setTextContent(r){this.elem.textContent=r!=null?r:null}setAriaDescribedBy(r){Ka(this.elem,"aria-describedby",r)}setAriaHidden(r){Ka(this.elem,"aria-hidden",r)}setAriaLabel(r){Ka(this.elem,"aria-label",r)}setInnerHTML(r){this.elem.innerHTML=r}isDisabled(){return rp(this.elem,"aria-disabled",!1)}parseFloat(r){return r===""?0:parseFloat(r)}cssLeft(){return this.parseFloat(this.elem.style.left)}cssTop(){return this.parseFloat(this.elem.style.top)}focus(){this.elem.focus()}setPreventsDefault(r){Ka(this.elem,"data-preventdefault",r)}setTabIndex(r){Ka(this.elem,"tabindex",r)}addChild(r){this.addChildToDOM(r,this.getBefore(r)),this.children.push(r),r.index=this.children.length-1,r.parent=this,this.onChildAdded(r)}removeChild(r){let l=this.children.findIndex(m=>m===r);this.children.splice(l,1),this.removeChildFromDOM(r),this.onChildRemoved(r)}addClass(...r){this.elem.classList.add(...r)}removeClass(...r){this.elem.classList.remove(...r)}toggleClass(r,l){this.elem.classList.toggle(r,l)}appendOrInsert(r,l){l?l.getElement().insertAdjacentElement("beforebegin",r):this.elem.appendChild(r)}addChildToDOM(r,l){this.appendOrInsert(r.getElement(),l)}removeChildFromDOM(r){this.elem.removeChild(r.getElement())}onChildAdded(r){}onChildRemoved(r){}getBefore({domIndex:r}){if(r!==void 0)return this.children.filter(l=>l.domIndex!==void 0&&l.domIndex>r).reduce((l,m)=>!l||m.domIndex<l.domIndex?m:l,void 0)}addListener(r,l){var m,D;ru.isHTMLEvent(r)?((m=this.htmlListener)!=null||(this.htmlListener=new ic),this.htmlListener.add(r,this,l)):((D=this.internalListener)!=null||(this.internalListener=new BP),this.internalListener.add(r,this,l))}removeListener(r,l){var m,D;ru.isHTMLEvent(r)?(m=this.htmlListener)==null||m.remove(r,this,l):this.htmlListener!=null&&((D=this.internalListener)==null||D.remove(r,this,l))}},_x=class extends $h{constructor(){super(Hr().createElement("div")),this.textElement=Jf("http://www.w3.org/2000/svg","text"),this.textElement.role="presentation",this.svgElement=Jf("http://www.w3.org/2000/svg","svg"),this.svgElement.appendChild(this.textElement),this.svgElement.style.width="100%",this.svgElement.style.opacity="0",this.svgElement.role="presentation",this.elem.appendChild(this.svgElement),this.elem.role="presentation"}set textContent(r){var D;this.textElement.textContent=r;let l=this.textElement,m=(D=l.getBBox)==null?void 0:D.call(l);m&&this.svgElement.setAttribute("viewBox",`${m.x} ${m.y} ${m.width} ${m.height}`)}get textContent(){return this.textElement.textContent}destructor(){}},uv=class extends $h{constructor(){super(Hr().createElement("button")),this.setEnabled(!0)}destructor(){}setEnabled(r){Ka(this.elem,"aria-disabled",!r),wl(this.elem,"pointer-events",r?void 0:"none")}addListener(r,l){return super.addListener(r,(m,D)=>{(r==="click"||r==="dblclick")&&this.isDisabled()||l(m,D)})}},uD=class extends $h{constructor(){super(Hr().createElement("div")),Ka(this.elem,"role","group")}destructor(){}},Nx=class extends $h{constructor(r,l){super(Hr().createElement("div")),this.focusedChildIndex=0,this.onChildFocus=(m,D)=>{let L=this.children[this.focusedChildIndex];this.focusedChildIndex=D.index,L==null||L.setTabIndex(-1),D.setTabIndex(0)},this.onChildKeyDown=(m,D)=>{var X;let L=this.orientation,[B,H]=L==="both"?[sp.horizontal,sp.vertical]:[sp[L],void 0],U=-1;if(ou(m.sourceEvent)){let Q=m.sourceEvent.key;Q===B.nextKey||Q===(H==null?void 0:H.nextKey)?U=D.index+1:(Q===B.prevKey||Q===(H==null?void 0:H.prevKey))&&(U=D.index-1)}(X=this.children[U])==null||X.focus()},this.orientation=r,Ka(this.elem,"role",l)}get orientation(){var r;return(r=rp(this.elem,"aria-orientation"))!=null?r:"both"}set orientation(r){Ka(this.elem,"aria-orientation",r!=="both"?r:void 0)}focus(){var r;(r=this.children[this.focusedChildIndex])==null||r.focus()}onChildAdded(r){r.addListener("focus",this.onChildFocus),r.addListener("keydown",this.onChildKeyDown),r.setTabIndex(this.children.length===1?0:-1)}onChildRemoved(r){r.removeListener("focus",this.onChildFocus),r.removeListener("keydown",this.onChildKeyDown)}},hv=class extends Nx{constructor(){super("both","list"),this.setHidden(!0)}destructor(){this.children.forEach(r=>r.getElement().parentElement.remove())}addChildToDOM(r,l){let m=Hr().createElement("div");Ka(m,"role","listitem"),wl(m,"position","absolute"),$h.setElementContainer(r,m),this.appendOrInsert(m,l),this.setHidden(!1)}removeChildFromDOM(r){r.getElement().parentElement.remove(),this.setHidden(this.children.length===0)}setHidden(r){this.children.length===0&&(r=!0),super.setHidden(r)}},fs=class extends $h{constructor(r){super(r)}destructor(){}},S0=class EO extends $h{constructor(){super(Hr().createElement("input")),this._step=EO.STEP_ONE,this.orientation="both"}get step(){return this._step}set step(l){this._step=l,this.getElement().step=l.attributeValue}get keyboardStep(){var l,m;return(m=(l=this._keyboardStep)==null?void 0:l.step)!=null?m:this._step}set keyboardStep(l){var m;if(l!==((m=this._keyboardStep)==null?void 0:m.step)&&(this._keyboardStep!==void 0&&(this.removeListener("keydown",this._keyboardStep.onKeyDown),this.removeListener("keyup",this._keyboardStep.onKeyUp),this.removeListener("blur",this._keyboardStep.onBlur),this._keyboardStep=void 0),l!==void 0)){let D=()=>this.getElement().step=l.attributeValue,L=()=>this.getElement().step=this._step.attributeValue;this._keyboardStep={step:l,onKeyDown:D,onKeyUp:L,onBlur:L},this.addListener("keydown",this._keyboardStep.onKeyDown),this.addListener("keyup",this._keyboardStep.onKeyUp),this.addListener("blur",this._keyboardStep.onBlur)}}get orientation(){var l;return(l=rp(this.elem,"aria-orientation"))!=null?l:"both"}set orientation(l){Ka(this.elem,"aria-orientation",l!=="both"?l:void 0),EO.registerDefaultPreventers(this,l)}destructor(){}clampValueRatio(l,m){let D=this.getValueRatio(),L=st(l,D,m);return L!==D&&this.setValueRatio(L),L}setValueRatio(l,m){let{divider:D}=this.step,L=Math.round(l*1e4)/D,{ariaValueText:B=Rc(L/D)}=m!=null?m:{},H=this.getElement();H.value=`${L}`,H.ariaValueText=B}getValueRatio(){return parseFloat(this.getElement().value)/this.step.divider}static registerDefaultPreventers(l,m){m==="both"?l.removeListener("keydown",EO.onKeyDown):l.addListener("keydown",EO.onKeyDown)}static onKeyDown(l,m){let D=[],{orientation:L}=m;L==="horizontal"?D=["ArrowUp","ArrowDown"]:L==="vertical"&&(D=["ArrowLeft","ArrowRight"]),D.includes(l.sourceEvent.code)&&l.sourceEvent.preventDefault()}};S0.STEP_ONE={attributeValue:"1",divider:1},S0.STEP_HUNDRETH={attributeValue:"0.01",divider:100};var w0=S0,GI=class extends uv{constructor(){super(),Ka(this.elem,"role","switch"),this.setChecked(!1)}setChecked(r){Ka(this.elem,"aria-checked",r)}},x0=class extends Nx{constructor(r="horizontal"){super(r,"toolbar")}destructor(){}};function gh(r,l){var m;return((m=l.params)==null?void 0:m.type)===r}function Qh(r){if(r==="button")return new uv;if(r==="slider")return new w0;if(r==="toolbar")return new x0;if(r==="group")return new uD;if(r==="list")return new hv;if(r==="region")return new fs(ta("div"));if(r==="text")return new _x;if(r==="listswitch")return new GI;throw Error("AG Charts - error allocating meta")}function hD(r){let l={params:r,result:void 0};return l.result=Qh(l.params.type),l}var Us=class{constructor(r,l){this.localeManager=r,this.domManager=l,this.destroyFns=[]}destroy(){this.destroyFns.forEach(r=>r())}addLocalisation(r){r(),this.destroyFns.push(this.localeManager.addListener("locale-changed",r))}createProxyContainer(r){let l=hD(r),{params:m,result:D}=l,L=D.getElement();return this.domManager.addChild("canvas-proxy",m.domManagerId,L),L.classList.add(...m.classList,"ag-charts-proxy-container"),L.role=m.type,"ariaOrientation"in m&&(L.ariaOrientation=m.ariaOrientation),gh("toolbar",l)&&(l.result.orientation=l.params.orientation),this.addLocalisation(()=>{L.ariaLabel=this.localeManager.t(m.ariaLabel.id,m.ariaLabel.params)}),D}createProxyElement(r){let l=hD(r);if(gh("button",l)){let{params:m,result:D}=l,L=D.getElement();if(this.initInteract(m,D),typeof m.textContent=="string")L.textContent=m.textContent;else{let{textContent:B}=m;this.addLocalisation(()=>{L.textContent=this.localeManager.t(B.id,B.params)})}this.setParent(l.params,l.result)}if(gh("slider",l)){let{params:m,result:D}=l,L=D.getElement();this.initInteract(m,D),L.type="range",L.role="presentation",L.style.margin="0px",this.addLocalisation(()=>{L.ariaLabel=this.localeManager.t(m.ariaLabel.id,m.ariaLabel.params)}),this.setParent(l.params,l.result)}if(gh("text",l)){let{params:m,result:D}=l;this.initElement(m,D),this.setParent(l.params,l.result)}if(gh("listswitch",l)){let{params:m,result:D}=l;this.initInteract(m,D),D.setTextContent(m.textContent),D.setChecked(m.ariaChecked),D.setAriaDescribedBy(m.ariaDescribedBy),this.setParent(l.params,l.result)}if(gh("region",l)){let{params:m,result:D}=l,L=D.getElement();this.initInteract(m,D),L.role="region",this.setParent(l.params,l.result)}return l.result}initElement(r,l){let m=l.getElement();return Ka(m,"id",r.id),wl(m,"cursor",r.cursor),m.classList.toggle("ag-charts-proxy-elem",!0),m}initInteract(r,l){let{tabIndex:m,domIndex:D}=r,L=this.initElement(r,l);m!==void 0&&(L.tabIndex=m),D!==void 0&&(l.domIndex=D)}setParent(r,l){var m;if("parent"in r)(m=r.parent)==null||m.addChild(l);else{let D={where:r.where,query:".ag-charts-series-area"};this.domManager.addChild("canvas-proxy",r.domManagerId,l.getElement(),D)}}},GP=/\$\{(\w+)}(?:\[(\w+)])?/gi,M0={number:new Intl.NumberFormat("en-US"),percent:new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}),date:new Intl.DateTimeFormat("en-US",{dateStyle:"full"}),time:new Intl.DateTimeFormat("en-US",{timeStyle:"full"}),datetime:new Intl.DateTimeFormat("en-US",{dateStyle:"full",timeStyle:"full"})},Jh=({defaultValue:r,variables:l})=>r==null?void 0:r.replaceAll(GP,(m,D,L)=>{let B=l[D],H=L!=null?M0[L]:null;return L!=null&&H==null&&vi.warnOnce(`Format style [${L}] is not supported`),H!=null?H.format(B):typeof B=="number"?M0.number.format(B):B instanceof Date?M0.datetime.format(B):String(B)}),k0=class extends Dr{constructor(){super(...arguments),this.localeText=void 0,this.getLocaleText=void 0}setLocaleText(r){this.localeText!==r&&(this.localeText=r,this.dispatch("locale-changed"))}setLocaleTextFormatter(r){this.getLocaleText=r,this.getLocaleText!==r&&(this.getLocaleText=r,this.dispatch("locale-changed"))}t(r,l={}){var B,H;let{localeText:m=C,getLocaleText:D}=this,L=m[r];return(H=(B=D==null?void 0:D({key:r,defaultValue:L,variables:l}))!=null?B:Jh({key:r,defaultValue:L,variables:l}))!=null?H:r}};function zx({context:r,pixelRatio:l,width:m,height:D}){r.save(),r.setTransform(l,0,0,l,0,0),r.clearRect(0,0,m,D),r.restore()}function A0(r){if(Ma.check("canvas")){let l=r.save.bind(r),m=r.restore.bind(r),D=0;Object.assign(r,{save(){l(),D++},restore(){if(D===0)throw new Error("AG Charts - Unable to restore() past depth 0");m(),D--},verifyDepthZero(){if(D!==0)throw new Error(`AG Charts - Save/restore depth is non-zero: ${D}`)}})}}var nc=class{constructor(r){this.enabled=!0,this.width=600,this.height=300;let{width:l,height:m,pixelRatio:D,canvasElement:L,willReadFrequently:B=!1}=r;this.pixelRatio=D!=null?D:On("devicePixelRatio"),this.element=L!=null?L:ta("canvas"),this.element.style.display="block",this.element.style.width=(l!=null?l:this.width)+"px",this.element.style.height=(m!=null?m:this.height)+"px",this.element.width=Math.round((l!=null?l:this.width)*this.pixelRatio),this.element.height=Math.round((m!=null?m:this.height)*this.pixelRatio),this.context=this.element.getContext("2d",{willReadFrequently:B}),this.onEnabledChange(),this.resize(l!=null?l:0,m!=null?m:0),A0(this.context)}drawImage(r,l=0,m=0){return r.drawImage(this.context.canvas,l,m)}toDataURL(r){return this.element.toDataURL(r)}resize(r,l){if(!(r>0&&l>0))return;let{element:m,context:D,pixelRatio:L}=this;m.width=Math.round(r*L),m.height=Math.round(l*L),D.setTransform(L,0,0,L,0,0),m.style.width=r+"px",m.style.height=l+"px",this.width=r,this.height=l}clear(){zx(this)}destroy(){this.element.remove(),this.element.width=0,this.element.height=0,this.context.clearRect(0,0,0,0),Object.freeze(this)}onEnabledChange(){this.element&&(this.element.style.display=this.enabled?"":"none")}};T([ip(r=>r.onEnabledChange())],nc.prototype,"enabled",2);var tr=class{constructor(r){this.width=600,this.height=300;let{width:l,height:m,pixelRatio:D,willReadFrequently:L=!1}=r;this.pixelRatio=D!=null?D:On("devicePixelRatio"),this.canvas=new OffscreenCanvas(l!=null?l:this.width,m!=null?m:this.height),this.context=this.canvas.getContext("2d",{willReadFrequently:L}),this.resize(l!=null?l:0,m!=null?m:0),A0(this.context)}drawImage(r,l=0,m=0){return r.drawImage(this.context.canvas,l,m)}resize(r,l){if(!(r>0&&l>0))return;let{canvas:m,context:D,pixelRatio:L}=this;m.width=Math.round(r*L),m.height=Math.round(l*L),D.setTransform(L,0,0,L,0,0),this.width=r,this.height=l}clear(){zx(this)}destroy(){this.canvas.width=0,this.canvas.height=0,this.context.clearRect(0,0,0,0),this.canvas=null,this.context=null,Object.freeze(this)}},VP=class{constructor(r){this.canvas=r,this.debug=Ma.create(!0,"scene"),this.layersMap=new Map,this.nextLayerId=0}get size(){return this.layersMap.size}resize(r,l){this.canvas.resize(r,l),this.layersMap.forEach(({canvas:m})=>m.resize(r,l))}addLayer(r){let{width:l,height:m,pixelRatio:D}=this.canvas,{name:L}=r,B=new tr({width:l,height:m,pixelRatio:D});return this.layersMap.set(B,{id:this.nextLayerId++,name:L,canvas:B}),this.debug("Scene.addLayer() - layers",this.layersMap),B}removeLayer(r){this.layersMap.has(r)&&(this.layersMap.delete(r),r.destroy(),this.debug("Scene.removeLayer() -  layers",this.layersMap))}clear(){for(let r of this.layersMap.values())r.canvas.destroy();this.layersMap.clear()}},Kr=class iZ{constructor(){this.offscreenCanvas=new OffscreenCanvas(1,1),iZ.offscreenCanvasCount++;let l=this.offscreenCanvas.getContext("2d");if(l==null)throw new TypeError("AG Charts - invalid 2d context");this.renderCtx={ctx:l,devicePixelRatio:1,resized:!1,debugNodes:{}}}resize({spritePixelRatio:l,spriteWidth:m,spriteHeight:D}){this.offscreenCanvas.width=Math.max(m,0)*l,this.offscreenCanvas.height=Math.max(D,0)*l}renderSprite(l,m){l=fe(l);let{renderCtx:D,renderCtx:{ctx:L},offscreenCanvas:B}=this,{scale:H=1,translateX:U=0,translateY:X=0}=m!=null?m:{};L.save(),L.resetTransform(),L.clearRect(0,0,B.width,B.height),L.beginPath(),L.setTransform(H,0,0,H,U,X);for(let Q of l)Q.preRender(),Q.render(D);return L.closePath(),L.restore(),B.transferToImageBitmap()}};Kr.offscreenCanvasCount=0;var vs=Kr;function gv(r){for(let l of["B","KB","MB","GB"]){if(r<1536)return`${r.toFixed(1)}${l}`;r/=1024}return`${r.toFixed(1)}TB}`}function ac(){if(!("memory"in performance))return;let{totalJSHeapSize:r,usedJSHeapSize:l,jsHeapSizeLimit:m}=performance.memory,D=[];for(let L of[l,r,m])typeof L=="number"&&D.push(gv(L));return`Heap ${D.join(" / ")}`}function VI(r,l,m,D,L={},B=ft.zero){if(!Ma.check("scene:stats","scene:stats:verbose"))return;let{layersRendered:H=0,layersSkipped:U=0,nodesRendered:X=0,nodesSkipped:Q=0,opsPerformed:ie=0,opsSkipped:ue=0}=D!=null?D:{},be=performance.now(),Tt=l,{start:ye}=Tt,Me=wi(Tt,["start"]),Ie=Object.entries(Me).map(([_t,Kt])=>Hx(_t,Kt)).filter(_t=>_t!=null).join(" + "),Oe=Object.entries(L).map(([_t,Kt])=>`${_t}: ${JSON.stringify(Kt)}`).join(" ; "),Re=Ma.check("scene:stats:verbose"),Be=ac(),Ue=[`${Hx("\u23F1\uFE0F",ye,be)} (${Ie})`,`${Oe}`,`Layers: ${Re?pv(H,U):r.size}; Sprites: ${vs.offscreenCanvasCount}`,Re?`Nodes: ${pv(X,Q)}`:null,Re?`Ops: ${pv(ie,ue)}`:null,Re&&Be?Be:null].filter(wa),Ne=new yl(_t=>m.measureText(_t)),Qe=new Map(Ue.map(_t=>[_t,Ne.measureLines(_t)])),nt=Math.max(...Array.from(Qe.values(),_t=>_t.width)),rt=gD(Qe.values(),_t=>_t.height),ut=2+B.x;m.save(),m.fillStyle="white",m.fillRect(ut,0,nt,rt),m.fillStyle="black";let Mt=0;for(let[_t,Kt]of Qe.entries())Mt+=Kt.height,m.fillText(_t,ut,Mt);m.restore()}function Bx(r){let l=HC(On("agChartsSceneDebug")),m=[];for(let D of l)D==="layout"?m.push("seriesRoot","legend","root",/.*Axis-\d+-axis.*/):m.push(D);r.debugNodeSearch=m}function Gx(r,l){r.save();for(let[m,D]of Object.entries(l)){let L=Ho.toCanvas(D);if(!L){vi.log(`Scene.render() - no bbox for debugged node [${m}].`);continue}r.globalAlpha=.8,r.strokeStyle="red",r.lineWidth=1,r.strokeRect(L.x,L.y,L.width,L.height),r.fillStyle="red",r.strokeStyle="white",r.font="16px sans-serif",r.textBaseline="top",r.textAlign="left",r.lineWidth=2,r.strokeText(m,L.x,L.y,L.width),r.fillText(m,L.x,L.y,L.width)}r.restore()}var an=new Set,Vx=new Set(["gradient","zIndex","clipRect","cachedBBox","childNodeCounts","path","__zIndex","name","__scalingCenterX","__scalingCenterY","__rotationCenterX","__rotationCenterY","_previousDatum","__fill","__lineDash","borderPath","borderClipPath","_clipPath"]);function lb(r){let l=wi(r,[]);for(let m of Object.keys(l))Vx.has(m)||typeof l[m]!="number"&&typeof l[m]!="string"&&typeof l[m]!="boolean"&&(an.add(m),delete l[m]);return l}function lp(r,l){var D;if(!Ma.check(!0,"scene"))return{};let m=0;return ge({node:l==="json"?lb(r):r,name:(D=r.name)!=null?D:r.id,dirty:r.dirty},Array.from(r.children(),L=>lp(L,l)).reduce((L,B)=>{let{name:H}=B,{node:{visible:U,opacity:X,zIndex:Q,translationX:ie,translationY:ue,rotation:be,scalingX:ye,scalingY:Me},node:Ie}=B;(!U||X<=0)&&(H=`(${H})`),Ji.is(Ie)&&Ie.renderToOffscreenCanvas&&(H=`*${H}*`);let Oe=Array.isArray(Q)?`(${Q.join(", ")})`:Q,Re=[`${(m++).toString().padStart(3,"0")}|`,`${H!=null?H:"<unknown>"}`,`z: ${Oe}`,ie&&`x: ${ie}`,ue&&`y: ${ue}`,be&&`r: ${be}`,ye!=null&&ye!==1&&`sx: ${ye}`,Me!=null&&Me!==1&&`sy: ${Me}`].filter(Ne=>!!Ne).join(" "),Be=Re,Ue=1;for(;L[Be]!=null&&Ue<100;)Be=`${Re} (${Ue++})`;return L[Be]=B,L},{}))}function jx(r){var L;if(!r.dirty)return{dirtyTree:{},paths:[]};let l=Array.from(r.children(),B=>jx(B)).filter(B=>B.paths.length>0),m=Ji.is(r)&&(L=r.name)!=null?L:r.id,D=l.length?l.flatMap(B=>B.paths).map(B=>`${m}.${B}`):[m];return{dirtyTree:ge({name:m,node:r,dirty:r.dirty},l.map(B=>B.dirtyTree).filter(B=>B.dirty!=null).reduce((B,H)=>{var U;return B[(U=H.name)!=null?U:"<unknown>"]=H,B},{})),paths:D}}function pv(r,l){let m=r+l;return`${r} / ${m} (${Math.round(100*r/m)}%)`}function Hx(r,l,m){let D=m!=null?m-l:l;return`${r}: ${Math.round(D*100)/100}ms`}function gD(r,l){let m=0;for(let D of r)m+=l(D);return m}var mv=class{constructor(r){this.debug=Ma.create(!0,"scene"),this.id=Y(this),this.root=null,this.pendingSize=null,this.isDirty=!1,this.canvas=new nc(r),this.layersManager=new VP(this.canvas)}get width(){var r,l;return(l=(r=this.pendingSize)==null?void 0:r[0])!=null?l:this.canvas.width}get height(){var r,l;return(l=(r=this.pendingSize)==null?void 0:r[1])!=null?l:this.canvas.height}setContainer(r){var m;let{element:l}=this.canvas;return(m=l.parentElement)==null||m.removeChild(l),r.appendChild(l),this}setRoot(r){var l;return this.root===r?this:(this.isDirty=!0,(l=this.root)==null||l._setLayerManager(),this.root=r,r&&(r.visible=!0,r._setLayerManager(this.layersManager)),this)}clear(){this.canvas.clear()}attachNode(r){return this.appendChild(r),()=>this.removeChild(r)}appendChild(r){var l;return(l=this.root)==null||l.appendChild(r),this}removeChild(r){var l;return(l=this.root)==null||l.removeChild(r),this}download(r,l){var m;fx(this.canvas.toDataURL(l),(m=r==null?void 0:r.trim())!=null?m:"image")}getDataURL(r){return this.canvas.toDataURL(r)}resize(r,l){return r=Math.round(r),l=Math.round(l),r>0&&l>0&&(r!==this.width||l!==this.height)?(this.pendingSize=[r,l],this.isDirty=!0,!0):!1}render(r){var ue,be;let{debugSplitTimes:l={start:performance.now()},extraDebugStats:m,seriesRect:D}=r!=null?r:{},{canvas:L,canvas:{context:B}={},root:H,pendingSize:U}=this;if(!B)return;let X=performance.now();if(U&&(this.layersManager.resize(...U),this.pendingSize=null),H&&!H.visible){this.isDirty=!1;return}if((H==null?void 0:H.dirty)===!1&&!this.isDirty){this.debug.check()&&this.debug("Scene.render() - no-op",{tree:lp(H,"console")}),VI(this.layersManager,l,B,void 0,m,D);return}let Q={ctx:B,devicePixelRatio:(ue=this.canvas.pixelRatio)!=null?ue:1,resized:!!U,debugNodes:{}};Ma.check("scene:stats:verbose")&&(Q.stats={layersRendered:0,layersSkipped:0,nodesRendered:0,nodesSkipped:0,opsPerformed:0,opsSkipped:0}),Bx(Q);let ie=!1;if((H==null?void 0:H.dirty)!==!1&&(ie=!0,L.clear()),H&&Ma.check("scene:dirtyTree")){let{dirtyTree:ye,paths:Me}=jx(H);Ma.create("scene:dirtyTree")("Scene.render() - dirtyTree",{dirtyTree:ye,paths:Me})}if(H&&ie){if(H.visible&&H.preRender(),this.debug.check()){let ye=lp(H,"console");this.debug("Scene.render() - before",{canvasCleared:ie,tree:ye})}H.visible&&(B.save(),H.render(Q),B.restore())}l["\u270D\uFE0F"]=performance.now()-X,(be=B.verifyDepthZero)==null||be.call(B),this.isDirty=!1,VI(this.layersManager,l,B,Q.stats,m,D),Gx(B,Q.debugNodes),H&&this.debug.check()&&this.debug("Scene.render() - after",{tree:lp(H,"console"),canvasCleared:ie})}toSVG(){let{root:r,width:l,height:m}=this;if(r!=null)return na.toSVG(r,l,m)}strip(){let{context:r,pixelRatio:l}=this.canvas;r.setTransform(l,0,0,l,0,0),this.layersManager.clear(),this.setRoot(null),this.isDirty=!1}destroy(){this.strip(),this.canvas.destroy(),Object.assign(this,{canvas:void 0})}};mv.className="Scene";var pD=class{constructor(){this.cache=new WeakMap}call(r,...l){let m,D=this.cache.get(r);try{m=JSON.stringify(l)}catch(L){return this.invoke(r,l,D)}return D==null&&(D=new Map,this.cache.set(r,D)),D.has(m)?D.get(m):this.invoke(r,l,D,m)}invoke(r,l,m,D){try{let L=r(...l);return m&&D!=null&&m.set(D,L),L}catch(L){vi.warnOnce("User callback errored, ignoring",L);return}}invalidateCache(){this.cache=new WeakMap}},qa=class extends Fn{constructor(r){super(),this.annotationRoot=r,this.mementoOriginatorKey="annotations",this.annotations=[]}createMemento(){return this.annotations}guardMemento(r){return r==null||La(r)}restoreMemento(r,l,m){this.annotations=this.cleanData(m!=null?m:[]).map(D=>{let L=this.getAnnotationTypeStyles(D.type);return mn(D,L)}),this.listeners.dispatch("restore-annotations",{type:"restore-annotations",annotations:this.annotations})}updateData(r){this.annotations=this.cleanData(r!=null?r:[])}attachNode(r){return this.annotationRoot.append(r),()=>{var l;return(l=this.annotationRoot)==null||l.removeChild(r),this}}setAnnotationStyles(r){this.styles=r}getAnnotationTypeStyles(r){var l;return(l=this.styles)==null?void 0:l[r]}cleanData(r){for(let l of r)"textAlign"in l&&delete l.textAlign;return r}},cp=class{constructor(r){this.sceneRoot=r,this.axes=new Map,this.axisGridGroup=new Ji({name:"Axes-Grids",zIndex:1}),this.axisGroup=new Ji({name:"Axes",zIndex:2}),this.axisLabelGroup=new Ji({name:"Axes-Labels",zIndex:12}),this.axisCrosslineRangeGroup=new Ji({name:"Axes-Crosslines-Range",zIndex:3}),this.axisCrosslineLineGroup=new Ji({name:"Axes-Crosslines-Line",zIndex:7}),this.axisCrosslineLabelGroup=new Ji({name:"Axes-Crosslines-Label",zIndex:12}),this.sceneRoot.appendChild(this.axisGroup),this.sceneRoot.appendChild(this.axisGridGroup),this.sceneRoot.appendChild(this.axisLabelGroup),this.sceneRoot.appendChild(this.axisCrosslineRangeGroup),this.sceneRoot.appendChild(this.axisCrosslineLineGroup),this.sceneRoot.appendChild(this.axisCrosslineLabelGroup)}updateAxes(r,l){var D;let m={axisNode:this.axisGroup,gridNode:this.axisGridGroup,labelNode:this.axisLabelGroup,crossLineRangeNode:this.axisCrosslineRangeGroup,crossLineLineNode:this.axisCrosslineLineGroup,crossLineLabelNode:this.axisCrosslineLabelGroup};for(let L of r)l.includes(L)||(L.detachAxis(m),L.destroy());for(let L of l)r!=null&&r.includes(L)||L.attachAxis(m);this.axes.clear();for(let L of l){let B=L.createAxisContext();this.axes.has(B.direction)?(D=this.axes.get(B.direction))==null||D.push(B):this.axes.set(B.direction,[B])}}getAxisContext(r){var l;return(l=this.axes.get(r))!=null?l:[]}destroy(){this.axes.clear(),this.sceneRoot.removeChild(this.axisGroup),this.sceneRoot.removeChild(this.axisGridGroup)}},oc=class extends Dr{constructor(r){super(),this.animationManager=r,this.dispatchOnlyLatest=!0,this.dispatchThrottle=0,this.requestThrottle=300,this.isLoadingInitialData=!1,this.isLoadingData=!1,this.freshRequests=[],this.requestCounter=0,this.debug=Ma.create(!0,"data-model","data-source"),this.throttledFetch=this.createThrottledFetch(this.requestThrottle),this.throttledDispatch=this.createThrottledDispatch(this.dispatchThrottle)}updateCallback(r){typeof r=="function"&&(this.debug("DataService - updated data source callback"),this.dataSourceCallback=r,this.isLoadingInitialData=!0,this.animationManager.skip(),this.dispatch("data-source-change"))}clearCallback(){this.dataSourceCallback=void 0}load(r){this.isLoadingData=!0,this.throttledFetch(r)}isLazy(){return this.dataSourceCallback!=null}isLoading(){return this.isLazy()&&(this.isLoadingInitialData||this.isLoadingData)}createThrottledFetch(r){return Iy(l=>this.fetch(l).catch(m=>vi.error("callback failed",m)),r,{leading:!1,trailing:!0})}createThrottledDispatch(r){return Iy((l,m)=>{this.debug(`DataService - dispatching 'data-load' | ${l}`),this.dispatch("data-load",{type:"data-load",data:m})},r,{leading:!0,trailing:!0})}async fetch(r){if(!this.dataSourceCallback)throw new Error("DataService - [dataSource.getData] callback not initialised");let l=performance.now(),m=this.requestCounter++;this.debug(`DataService - requesting | ${m}`),this.freshRequests.push(m);let D;try{D=await this.dataSourceCallback(r),this.debug(`DataService - response | ${performance.now()-l}ms | ${m}`)}catch(B){this.debug(`DataService - request failed | ${m}`),vi.errorOnce(`DataService - request failed | [${B}]`)}this.isLoadingInitialData=!1;let L=this.freshRequests.findIndex(B=>B===m);if(L===-1||this.dispatchOnlyLatest&&L!==this.freshRequests.length-1){this.debug(`DataService - discarding stale request | ${m}`);return}this.freshRequests=this.freshRequests.slice(L+1),this.freshRequests.length===0&&(this.isLoadingData=!1),Array.isArray(D)?this.throttledDispatch(m,D):this.dispatch("data-error")}};T([Cl({newValue(r){this.throttledDispatch=this.createThrottledDispatch(r)}})],oc.prototype,"dispatchThrottle",2),T([Cl({newValue(r){this.throttledFetch=this.createThrottledFetch(r)}})],oc.prototype,"requestThrottle",2);var mD=class{constructor(r){this.maxAnimationTime=r,this.debug=Ma.create(!0,"animation"),this.controllers=new Map,this.stoppedCbs=new Set,this.currentPhase=0,this.phases=new Map(Ac.map(l=>[l,[]])),this.skipAnimations=!1,this.animationTimeConsumed=0,this.isReady=!1}get size(){return this.controllers.size}get consumedTimeMs(){return this.animationTimeConsumed}isActive(){return this.controllers.size>0}getActiveControllers(){var r;return(r=this.phases.get(Ac[this.currentPhase]))!=null?r:[]}checkOverlappingId(r){r!=null&&this.controllers.has(r)&&(this.controllers.get(r).stop(),this.debug(`Skipping animation batch due to update of existing animation: ${r}`),this.skip())}addAnimation(r){var m;if(r.isComplete)return;if(Ac.indexOf(r.phase)<this.currentPhase){this.debug("Skipping animation due to being for an earlier phase",r.id),r.stop();return}this.controllers.set(r.id,r),(m=this.phases.get(r.phase))==null||m.push(r)}removeAnimation(r){this.controllers.delete(r.id);let l=this.phases.get(r.phase),m=l==null?void 0:l.indexOf(r);m!=null&&m>=0&&(l==null||l.splice(m,1))}progress(r){if(!this.isReady)return;let l=r===0?.01:r,m=()=>{let Q=Ac[this.currentPhase];return{phaseControllers:[...this.getActiveControllers()],phase:Q,phaseMeta:sd[Q]}},{phase:D,phaseControllers:L,phaseMeta:B}=m(),H=()=>Ac[this.currentPhase]==null,U=()=>{for({phase:D,phaseControllers:L,phaseMeta:B}=m();!H()&&L.length===0;)this.currentPhase++,{phase:D,phaseControllers:L,phaseMeta:B}=m(),this.debug(`AnimationBatch - phase changing to ${D}`,{unusedTime:l},L)},X=this.controllers.size;this.debug(`AnimationBatch - ${r}ms; phase ${D} with ${L==null?void 0:L.length} of ${X}`);do{let Q=l,ie=B.skipIfNoEarlierAnimations&&this.animationTimeConsumed===0,ue=0;for(let be of L)ie?be.stop():l=Math.min(be.update(Q),l),be.isComplete&&(ue++,this.removeAnimation(be));this.animationTimeConsumed+=Q-l,this.debug(`AnimationBatch - updated ${L.length} controllers; ${ue} completed`),this.debug(`AnimationBatch - animationTimeConsumed: ${this.animationTimeConsumed}`),U()}while(l>0&&!H());this.animationTimeConsumed>this.maxAnimationTime&&(this.debug("Animation batch exceeded max animation time, skipping",[...this.controllers]),this.stop())}ready(){if(this.isReady)return;this.isReady=!0,this.debug(`AnimationBatch - ready; skipped: ${this.skipAnimations}`,[...this.controllers]);let r=!0;for(let[,l]of this.controllers)if(l.duration>0&&sd[l.phase].skipIfNoEarlierAnimations!==!0){r=!1;break}if(!r)for(let[,l]of this.controllers)l.autoplay&&l.play(!0)}skip(r=!0){if(this.skipAnimations===!1&&r===!0){for(let l of this.controllers.values())l.stop();this.controllers.clear()}this.skipAnimations=r}play(){for(let r of this.controllers.values())r.play()}pause(){for(let r of this.controllers.values())r.pause()}stop(){for(let r of this.controllers.values())try{r.stop(),this.removeAnimation(r)}catch(l){vi.error("Error during animation stop",l)}this.dispatchStopped()}stopByAnimationId(r){if(r!=null&&this.controllers.has(r)){let l=this.controllers.get(r);l&&(l.stop(),this.removeAnimation(l))}}stopByAnimationGroupId(r){for(let l of this.controllers.values())l.groupId===r&&this.stopByAnimationId(l.id)}dispatchStopped(){this.stoppedCbs.forEach(r=>r()),this.stoppedCbs.clear()}isSkipped(){return this.skipAnimations}destroy(){this.stop(),this.controllers.clear()}};function Lm(r){let l=He(ge({},r),{preventDefault(){var m;(m=l.sourceEvent)==null||m.preventDefault()}});return l}function jI(r,l){r.dispatchWrapHandlers(l.type,(m,D)=>m(D),Lm(l))}var HI=["click","dblclick","contextmenu","hover","leave","enter","page-left","wheel"],fD=["keydown","keyup"],Wx=["mousemove","mouseup"],mr=["pagehide","mousemove","mouseup"],yd=["click","dblclick","contextmenu","mousedown","mouseleave","mouseenter","touchstart","touchmove","touchend","touchcancel","wheel","keydown","keyup"];function jP(r){return HI.includes(r)}function vD(r){return fD.includes(r)}var cb=class Pz extends ab{constructor(l,m){super(),this.keyboardOptions=l,this.domManager=m,this.debug=Ma.create(!0,"interaction"),this.eventHandler=D=>this.processEvent(D),this.clickHistory=[{offsetX:NaN,offsetY:NaN,type:"mousedown"}],this.dblclickHistory=[{offsetX:NaN,offsetY:NaN,type:"mousedown"},{offsetX:NaN,offsetY:NaN,type:"mouseup"},{offsetX:NaN,offsetY:NaN,type:"mousedown"}],this.stateQueue=34,this.rootElement=this.domManager.getShadowDocumentRoot();for(let D of yd)D.startsWith("touch")||D==="wheel"?this.domManager.addEventListener(D,this.eventHandler,{passive:!1}):this.domManager.addEventListener(D,this.eventHandler);for(let D of mr)On().addEventListener(D,this.eventHandler);this.containerChanged(!0),this.domManager.addListener("container-changed",()=>this.containerChanged())}containerChanged(l=!1){var D,L;let m=this.domManager.getShadowDocumentRoot();if(!(!l&&m===this.rootElement)){for(let B of Wx)(D=this.rootElement)==null||D.removeEventListener(B,this.eventHandler);this.rootElement=m,this.debug("[InteractionManager] Switching rootElement to:",this.rootElement);for(let B of Wx)(L=this.rootElement)==null||L.addEventListener(B,this.eventHandler)}}destroy(){var l;super.destroy();for(let m of mr)On().removeEventListener(m,this.eventHandler);for(let m of Wx)(l=this.rootElement)==null||l.removeEventListener(m,this.eventHandler);for(let m of yd)this.domManager.removeEventListener(m,this.eventHandler);this.domManager.removeStyles("interactionManager")}pushState(l){this.stateQueue|=l}popState(l){this.stateQueue&=~l}getState(){return this.stateQueue&-this.stateQueue}processEvent(l){this.debug("Received raw event",l);let m=this.decideInteractionEventTypes(l);m!=null&&!Array.isArray(m)&&(m=[m]);for(let D of m!=null?m:[])this.dispatchEvent(l,D)}dispatchEvent(l,m){if(jP(m)){this.dispatchPointerEvent(l,m);return}let{relatedElement:D,targetElement:L}=this.extractElements(l);if(vD(m)){let B=l;this.dispatchTypedEvent(this.listeners,{type:m,sourceEvent:B,relatedElement:D,targetElement:L})}}dispatchTypedEvent(l,m){let D=Lm(m);this.debug("Dispatching typed event",D,this.getState()),l.dispatchWrapHandlers(m.type,(L,B)=>L(B),D)}extractElements(l){let m,D;return"relatedTarget"in l&&l.relatedTarget instanceof HTMLElement&&(m=l.relatedTarget),"target"in l&&l.target instanceof HTMLElement&&(D=l.target),{relatedElement:m,targetElement:D}}dispatchPointerEvent(l,m){let D=this.calculateCoordinates(l);if(D==null)return;let L=this.buildPointerEvent(ge({type:m,event:l},D));this.debug("Dispatching pointer event",L,this.getState()),jI(this.listeners,L)}getEventHTMLTarget(l){if(l.target instanceof HTMLElement)return l.target;if(l.currentTarget instanceof HTMLElement)return l.currentTarget}recordDown(l){l instanceof MouseEvent&&(Nh(["offsetX","offsetY"],this.clickHistory[0],l),Nh(["offsetX","offsetY"],this.dblclickHistory[2],this.dblclickHistory[0]),Nh(["offsetX","offsetY"],this.dblclickHistory[0],l))}recordUp(l){l instanceof MouseEvent&&Nh(["offsetX","offsetY"],this.dblclickHistory[1],l)}decideInteractionEventTypes(l){switch(l.type){case"keydown":case"keyup":return this.keyboardOptions.enabled?l.type:void 0;case"click":case"dblclick":return l.type;case"contextmenu":case"wheel":return l.type;case"touchstart":case"mousedown":if(!this.isEventOverElement(l))return;this.recordDown(l);return;case"touchmove":case"mousemove":return this.isEventOverElement(l)?"hover":void 0;case"mouseup":case"touchend":if(!this.isEventOverElement(l))return;this.recordUp(l);return;case"mouseleave":case"touchcancel":return"leave";case"mouseenter":return"enter";case"pagehide":return"page-left"}}isEventOverElement(l){return l.target instanceof HTMLElement&&this.domManager.contains(l.target)}calculateCoordinates(l){var m;if(l instanceof MouseEvent)return this.getMouseEventCoords(l);if(typeof TouchEvent!="undefined"&&l instanceof TouchEvent){let D=(m=l.touches[0])!=null?m:l.changedTouches[0],{clientX:L,clientY:B,pageX:H,pageY:U}=D;return He(ge({},Pz.NULL_COORDS),{clientX:L,clientY:B,pageX:H,pageY:U})}else if(l instanceof PageTransitionEvent)return l.persisted?void 0:Pz.NULL_COORDS}getMouseEventCoords(l){let{clientX:m,clientY:D,pageX:L,pageY:B}=l,{offsetX:H,offsetY:U}=l,X=this.getEventHTMLTarget(l),{x:Q=0,y:ie=0}=X?this.domManager.calculateCanvasPosition(X):{};return H+=Q,U+=ie,{clientX:m,clientY:D,pageX:L,pageY:B,offsetX:H,offsetY:U}}static isWheelEvent(l){return l.type==="wheel"}static getWheelDeltas(l){let[m,D]=[NaN,NaN];if(this.isWheelEvent(l)){let L=l.deltaMode===0?.01:1;m=l.deltaX*L,D=l.deltaY*L}return{deltaX:m,deltaY:D}}buildPointerEvent(l){var Re,Be,Ue;let{type:m,event:D,clientX:L,clientY:B}=l,{offsetX:H,offsetY:U,pageX:X,pageY:Q}=l;if(!ea(H)||!ea(U)){let Ne=this.domManager.getBoundingClientRect();H=L-Ne.left,U=B-Ne.top}if(!ea(X)||!ea(Q)){let Ne=(Re=this.rootElement)==null?void 0:Re.getBoundingClientRect();X=L-((Be=Ne==null?void 0:Ne.left)!=null?Be:0),Q=B-((Ue=Ne==null?void 0:Ne.top)!=null?Ue:0)}let{deltaX:ie,deltaY:ue}=Pz.getWheelDeltas(D),be=[];D.type==="click"?be=this.clickHistory:D.type==="dblclick"&&(be=this.dblclickHistory);let{relatedElement:ye,targetElement:Me}=this.extractElements(D),Ie="button"in D?Number(D.button):0,Oe={type:m,offsetX:H,offsetY:U,pageX:X,pageY:Q,deltaX:ie,deltaY:ue,button:Ie,pointerHistory:be,sourceEvent:D,relatedElement:ye,targetElement:Me};return this.debug("InteractionManager - builtEvent: ",Oe,this.getState()),Oe}};cb.NULL_COORDS={clientX:-1/0,clientY:-1/0,pageX:-1/0,pageY:-1/0,offsetX:-1/0,offsetY:-1/0};var db=cb;function D0(r){return r==null?!0:!isNaN(r)&&r>=0&&r<=2}var fv=class{constructor(r,l){this.interactionManager=r,this.chartUpdateMutex=l,this.defaultDuration=1e3,this.batch=new mD(this.defaultDuration*1.5),this.debug=Ma.create(!0,"animation"),this.events=new Rn,this.rafAvailable=typeof requestAnimationFrame!="undefined",this.isPlaying=!0,this.requestId=null,this.skipAnimations=!0,this.currentAnonymousAnimationId=0}addListener(r,l){return this.events.on(r,l)}animate(r){let l=this.batch;try{l.checkOverlappingId(r.id)}catch(U){this.failsafeOnError(U);return}let{id:m}=r;m==null&&(m=`__${this.currentAnonymousAnimationId}`,this.currentAnonymousAnimationId+=1);let D=this.isSkipped()||r.phase==="none";D&&this.debug("AnimationManager - skipping animation");let{delay:L,duration:B}=r;if(!D0(L))throw new Error(`Animation delay of ${L} is unsupported (${m})`);if(!D0(B))throw new Error(`Animation duration of ${B} is unsupported (${m})`);let H=new Dy(He(ge({},r),{id:m,skip:D,autoplay:this.isPlaying?r.autoplay:!1,phase:r.phase,defaultDuration:this.defaultDuration}));if(!this.forceTimeJump(H,this.defaultDuration))return this.batch.addAnimation(H),H}play(){if(!this.isPlaying){this.isPlaying=!0,this.debug("AnimationManager.play()");try{this.batch.play()}catch(r){this.failsafeOnError(r)}this.requestAnimation()}}pause(){if(this.isPlaying){this.isPlaying=!1,this.cancelAnimation(),this.debug("AnimationManager.pause()");try{this.batch.pause()}catch(r){this.failsafeOnError(r)}}}stop(){this.isPlaying=!1,this.cancelAnimation(),this.debug("AnimationManager.stop()"),this.batch.stop()}stopByAnimationId(r){try{this.batch.stopByAnimationId(r)}catch(l){this.failsafeOnError(l)}}stopByAnimationGroupId(r){try{this.batch.stopByAnimationGroupId(r)}catch(l){this.failsafeOnError(l)}}reset(){this.isPlaying?(this.stop(),this.play()):this.stop()}skip(r=!0){this.skipAnimations=r}isSkipped(){return!this.rafAvailable||this.skipAnimations||this.batch.isSkipped()}isActive(){return this.isPlaying&&this.batch.isActive()}skipCurrentBatch(){this.debug.check()&&this.debug("AnimationManager - skipCurrentBatch()",{stack:new Error().stack}),this.batch.skip()}isSkippingFrames(){return!0}scheduleAnimationFrame(r){this.requestId=On().requestAnimationFrame(l=>{r(l).catch(m=>vi.error(m))})}forceTimeJump(r,l){return!1}requestAnimation(){if(!this.rafAvailable||!this.batch.isActive()||this.requestId!==null)return;let r,l=async m=>{let D=()=>{let L=m-(r!=null?r:m);r=m,this.debug("AnimationManager - onAnimationFrame()",{controllersCount:this.batch.size,deltaTime:L}),this.interactionManager.pushState(2);try{this.batch.progress(L)}catch(B){this.failsafeOnError(B)}this.events.emit("animation-frame",{type:"animation-frame",deltaMs:L})};this.isSkippingFrames()?await this.chartUpdateMutex.acquireImmediately(D):await this.chartUpdateMutex.acquire(D),this.batch.isActive()?this.scheduleAnimationFrame(l):(this.batch.stop(),this.events.emit("animation-stop",{type:"animation-stop",deltaMs:this.batch.consumedTimeMs}))};this.events.emit("animation-start",{type:"animation-start",deltaMs:0}),this.scheduleAnimationFrame(l)}cancelAnimation(){this.requestId!==null&&(cancelAnimationFrame(this.requestId),this.requestId=null,this.startBatch())}failsafeOnError(r,l=!0){vi.error("Error during animation, skipping animations",r),l&&this.cancelAnimation()}startBatch(r){this.debug(`AnimationManager - startBatch() with skipAnimations=${r}.`),this.reset(),this.batch.destroy(),this.batch=new mD(this.defaultDuration*1.5),r===!0&&this.batch.skip()}endBatch(){this.batch.isActive()?(this.batch.ready(),this.requestAnimation()):(this.interactionManager.popState(2),this.batch.isSkipped()&&this.batch.skip(!1))}onBatchStop(r){this.batch.stoppedCbs.add(r)}destroy(){this.stop(),this.events.clear()}},E0=class extends Fn{legendItemClick(r,l,m,D,L){let B={type:"legend-item-click",legendType:r,series:l,itemId:m,enabled:D,legendItemName:L};this.listeners.dispatch("legend-item-click",B)}legendItemDoubleClick(r,l,m,D,L,B){let H={type:"legend-item-double-click",legendType:r,series:l,itemId:m,enabled:D,legendItemName:B,numVisibleItems:L};this.listeners.dispatch("legend-item-double-click",H)}axisHover(r,l){let m={type:"axis-hover",axisId:r,direction:l};this.listeners.dispatch("axis-hover",m)}},Ux=class{constructor(){this.defaultActions=[],this.disabledActions=new Set,this.hiddenActions=new Set,this.listeners=new Dr}static check(r,l){return l.type===r}static checkCallback(r,l,m){return r===l}dispatchContext(r,l,m,D){var U,X;let{sourceEvent:L}=l,B=(U=D==null?void 0:D.x)!=null?U:l.canvasX,H=(X=D==null?void 0:D.y)!=null?X:l.canvasY;L.stopPropagation(),this.listeners.dispatch("",Lm({type:r,x:B,y:H,context:m,sourceEvent:L}))}addListener(r){return this.listeners.addListener("",r)}filterActions(r){return this.defaultActions.filter(l=>l.id&&!this.hiddenActions.has(l.id)&&["all",r].includes(l.type))}registerDefaultAction(r){let l=r.id!=null&&!this.defaultActions.some(({id:m})=>m===r.id);return l&&this.defaultActions.push(r),()=>{let m=l?this.defaultActions.findIndex(({id:D})=>D===r.id):-1;m!==-1&&this.defaultActions.splice(m,1)}}enableAction(r){this.disabledActions.delete(r)}disableAction(r){this.disabledActions.add(r)}showAction(r){this.hiddenActions.add(r)}hideAction(r){this.hiddenActions.delete(r)}isDisabled(r){return this.disabledActions.has(r)}},vv=class extends Map{constructor(r,l){super(),this.defaultValue=r,this.defaultState=l}set(r,l){return this.delete(r),typeof l!="undefined"&&super.set(r,l),this}stateId(){var r;return(r=Array.from(this.keys()).pop())!=null?r:this.defaultState}stateValue(){var r;return(r=Array.from(this.values()).pop())!=null?r:this.defaultValue}},Kx=(r=>(r.Auto="auto",r.Default="default",r.Grab="grab",r.Grabbing="grabbing",r.Move="move",r.NotAllowed="not-allowed",r.Pointer="pointer",r.EWResize="ew-resize",r.NSResize="ns-resize",r.ZoomIn="zoom-in",r.ZoomOut="zoom-out",r))(Kx||{}),yD=class{constructor(r){this.domManager=r,this.stateTracker=new vv("default")}updateCursor(r,l){this.stateTracker.set(r,l),this.domManager.updateCursor(this.stateTracker.stateValue())}getCursor(){return this.domManager.getCursor()}};function WI(r,l){let m=r.screenX-l.screenX,D=r.screenY-l.screenY;return m*m+D*D}function qx(r,l){return Math.sqrt(WI(r,l))}var ub=1,Yx=class extends Fn{constructor(r){super(),this.domManager=r,this.touchstart=l=>this.onTouchStart(l),this.touchmove=l=>this.onTouchMove(l),this.touchend=l=>this.onTouchEnd(l),this.touchcancel=l=>this.onTouchCancel(l),this.pinch={finger1:{identifier:NaN,screenX:NaN,screenY:NaN},finger2:{identifier:NaN,screenX:NaN,screenY:NaN},origin:{x:NaN,y:NaN},distance:NaN,status:0},this.domManager.addEventListener("touchstart",this.touchstart,{passive:!0}),this.domManager.addEventListener("touchmove",this.touchmove,{passive:!1}),this.domManager.addEventListener("touchend",this.touchend),this.domManager.addEventListener("touchcancel",this.touchcancel)}destroy(){this.domManager.removeEventListener("touchstart",this.touchstart),this.domManager.removeEventListener("touchmove",this.touchmove),this.domManager.removeEventListener("touchend",this.touchend),this.domManager.removeEventListener("touchcancel",this.touchcancel)}findPinchTouches(r){let{touches:l}=r,{finger1:m,finger2:D}=this.pinch;if(this.pinch.status!==0&&l.length===2){if(l[0].identifier===m.identifier&&l[1].identifier===D.identifier)return[l[0],l[1]];if(l[0].identifier===D.identifier&&l[1].identifier===m.identifier)return[l[1],l[0]]}}copyTouchData(r){let l=["identifier","screenX","screenY"];Nh(l,this.pinch.finger1,r.touches[0]),Nh(l,this.pinch.finger2,r.touches[1]),this.pinch.distance=qx(this.pinch.finger1,this.pinch.finger2)}dispatchPinchEvent(r,l,m){let{finger1:D,finger2:L,origin:B}=this.pinch;this.listeners.dispatch(r,Lm({sourceEvent:m,type:r,finger1:D,finger2:L,deltaDistance:l,origin:B}))}onTouchStart(r){this.stopPinchTracking(r);let{pinch:l}=this;r.touches.length===2&&(l.status=1,this.copyTouchData(r),l.origin.x=(r.touches[0].clientX+r.touches[1].clientX)/2,l.origin.y=(r.touches[0].clientY+r.touches[1].clientY)/2)}onTouchMove(r){let l=this.findPinchTouches(r);if(l!==void 0){let[m,D]=l,{pinch:L}=this,B=qx(m,D),H=B-L.distance;L.status===1?Math.abs(H)>ub&&(L.status=2,this.copyTouchData(r),this.dispatchPinchEvent("pinch-start",0,r)):L.status===2?(L.distance=B,this.copyTouchData(r),this.dispatchPinchEvent("pinch-move",H,r)):vi.error(`unexpected pinch.status: ${L.status}`)}}onTouchEnd(r){this.stopPinchTracking(r)}onTouchCancel(r){this.stopPinchTracking(r)}stopPinchTracking(r){let{pinch:l}=this;l.status===2&&this.dispatchPinchEvent("pinch-end",0,r),this.pinch.status=0}},Xx=class extends Fn{constructor(){super(...arguments),this.highlightStates=new vv}updateHighlight(r,l){let{activeHighlight:m}=this;this.highlightStates.set(r,l),this.activeHighlight=this.highlightStates.stateValue(),this.isEqual(this.activeHighlight,m)||this.listeners.dispatch("highlight-change",{type:"highlight-change",currentHighlight:this.activeHighlight,previousHighlight:m,callerId:r})}getActiveHighlight(){return this.activeHighlight}isEqual(r,l){return r===l||r!=null&&l!=null&&(r==null?void 0:r.series)===(l==null?void 0:l.series)&&(r==null?void 0:r.itemId)===(l==null?void 0:l.itemId)&&(r==null?void 0:r.datum)===(l==null?void 0:l.datum)}},Zx=class extends ab{constructor(r,l){super(),this.interactionManager=r,this.previousInputDevice="keyboard";let m=l.getRegion("series"),D=41;this.destroyFns.push(r.addListener("click",()=>this.onClick(),D),r.addListener("hover",()=>this.onMouse(),D),r.addListener("wheel",()=>this.onClick(),D),r.addListener("keydown",L=>this.onKeyDown(L),63),m.addListener("drag-start",()=>this.onClick(),D))}getState(){return this.interactionManager.getState()}destroy(){super.destroy()}onClick(){var r;(r=this.focusIndicator)==null||r.overrideFocusVisible(!1),this.previousInputDevice="mouse"}onMouse(){this.previousInputDevice="mouse"}onKeyDown(r){var X,Q,ie,ue;let l=this.getState(),{key:m,code:D,altKey:L,shiftKey:B,metaKey:H,ctrlKey:U}=r.sourceEvent;if(U||H){if(m==="y"||m==="z"&&B)return(X=this.focusIndicator)==null||X.overrideFocusVisible(this.previousInputDevice==="keyboard"),this.dispatch("redo",0,r);if(m==="z")return(Q=this.focusIndicator)==null||Q.overrideFocusVisible(this.previousInputDevice==="keyboard"),this.dispatch("undo",0,r)}if(l&9){(ie=this.focusIndicator)==null||ie.overrideFocusVisible(!1);return}switch(m){case"+":return this.dispatch("nav-zoom",1,r);case"-":return this.dispatch("nav-zoom",-1,r)}if(!(L||B||H||U))switch((ue=this.focusIndicator)==null||ue.overrideFocusVisible(!0),D){case"ArrowDown":return this.dispatch("nav-vert",1,r);case"ArrowUp":return this.dispatch("nav-vert",-1,r);case"ArrowLeft":return this.dispatch("nav-hori",-1,r);case"ArrowRight":return this.dispatch("nav-hori",1,r);case"ZoomIn":case"Add":return this.dispatch("nav-zoom",1,r);case"ZoomOut":case"Substract":return this.dispatch("nav-zoom",-1,r);case"Space":case"Enter":return this.dispatch("submit",0,r)}}dispatch(r,l,m){let{previousInputDevice:D}=this;jI(this.listeners,{type:r,delta:l,sourceEvent:m,previousInputDevice:D});let L=["redo","undo","nav-zoom"];m.type==="keydown"&&!L.includes(r)&&(this.previousInputDevice="keyboard")}},$x=class extends Dr{},I0=300,T0=3;function R0(r,l,m,D,L=32){var B;return(B=r==null?void 0:r.addListener(m,H=>{l.getState()&L&&D(H)}))!=null?B:()=>{}}function P0(r){if(r==null||!(r instanceof HTMLElement))return;let l=r;for(;l!=null&&!(l!=null&&l.classList.contains("ag-charts-wrapper"));){if(l.classList.contains("ag-charts-tooltip"))return l;l=l.parentElement}}function hb(r){var B,H;let{sourceEvent:l}=r,{className:m,classList:D,ariaHidden:L}=(H=(B=r.sourceEvent)==null?void 0:B.target)!=null?H:{};return m==="ag-charts-proxy-elem"||!(D instanceof DOMTokenList)?"leave":D.contains("ag-charts-annotations__axis-button-icon")||m==="ag-charts-swapchain"||m==="ag-charts-canvas-container"||m==="ag-charts-canvas-proxy"||(l==null?void 0:l.target)instanceof HTMLCanvasElement?"none":P0(l.target)&&L!=="true"?"wait":"leave"}var bD=class{constructor(r){this.interactionManager=r,this.debug=Ma.create(!0,"region"),this.regions={root:{properties:{name:"root"},listeners:new $x},series:{properties:{name:"series"},listeners:new $x}},this.destroyFns=[],this.allRegionsListeners=new $x,this.isDragMoving=!1,this.blockNextClickEvent=!1,this.processPointerEvent=l=>{let m=hb(l),{current:D}=this,L=D;if(!this.isDragMoving&&this.deferredDragStart==null)switch(m){case"wait":return;case"none":L=this.pickRegion(l);break;case"leave":L=void 0;break}let B=L;D!==void 0&&(B==null?void 0:B.properties.name)!==D.properties.name&&this.dispatch(D,l,"leave"),B!==void 0&&B.properties.name!==(D==null?void 0:D.properties.name)&&this.dispatch(L,l,"enter"),B!==void 0&&this.dispatch(L,l),this.current=L}}destroy(){this.destroyFns.forEach(r=>r()),this.current=void 0,this.regions.root.listeners.destroy(),this.regions.series.listeners.destroy()}initRegions(r,l){this.regions.root.properties.widget=r,this.regions.series.properties.widget=l,r.addListener("wheel",this.processPointerEvent),r.addListener("contextmenu",this.processPointerEvent),r.addListener("click",this.processPointerEvent),r.addListener("dblclick",this.processPointerEvent),r.addListener("mouseenter",this.processPointerEvent),r.addListener("mousemove",this.processPointerEvent),r.addListener("mouseleave",this.processPointerEvent),r.addListener("drag-start",this.processPointerEvent),r.addListener("drag-move",this.processPointerEvent),r.addListener("drag-end",this.processPointerEvent)}getRegion(r){return this.makeObserver(this.regions[r])}listenAll(r,l,m=32){return R0(this.allRegionsListeners,this.interactionManager,r,l,m)}makeObserver(r){let{interactionManager:l}=this;class m{addListener(L,B,H=32){return R0(r==null?void 0:r.listeners,l,L,B,H)}}return new m}widgetEventTypeToRegionEventType(r,l){return l!==void 0?l:{contextmenu:"contextmenu",click:"click",dblclick:"dblclick",mouseenter:"enter",mousemove:"hover",mouseleave:"leave",wheel:"wheel","drag-start":"drag-start","drag-move":"drag","drag-end":"drag-end"}[r.type]}computeEventOffsets(r,l,m){let{deltaX:D,deltaY:L}=db.getWheelDeltas(m.sourceEvent);if("mockRegion"in m.sourceEvent){let U=m.sourceEvent.mockRegion;if(U)return ge({deltaX:D,deltaY:L},U)}let B=l.getElement().getBoundingClientRect(),H=r.getElement().getBoundingClientRect();return{canvasX:m.clientX-B.x,canvasY:m.clientY-B.y,regionX:m.clientX-H.x,regionY:m.clientY-H.y,deltaX:D,deltaY:L}}dispatch(r,l,m){var H;let{widget:D}=(H=r==null?void 0:r.properties)!=null?H:{},{widget:L}=this.regions.root.properties;if(r==null||D==null||L==null)return;let B=Lm(He(ge({},this.computeEventOffsets(D,L,l)),{sourceEvent:l.sourceEvent,type:this.widgetEventTypeToRegionEventType(l,m),region:r.properties.name,timestamp:Date.now()}));switch(B.type){case"drag-start":{this.deferredDragStart=B;break}case"drag":{if(this.deferredDragStart)if(this.canStartDrag(B))this.dispatchEvent(r,this.deferredDragStart);else return;this.dispatchEvent(r,B),this.deferredDragStart=void 0,this.isDragMoving=!0,this.blockNextClickEvent=!0;break}case"drag-end":{this.isDragMoving&&this.dispatchEvent(r,B),this.deferredDragStart=void 0,this.isDragMoving=!1;break}case"click":{this.blockNextClickEvent||this.dispatchEvent(r,B),this.blockNextClickEvent=!1;break}case"leave":case"enter":(!this.isDragMoving||this.deferredDragStart!=null)&&this.dispatchEvent(r,B);break;case"hover":{this.blockNextClickEvent=!1,this.dispatchEvent(r,B);break}default:{this.dispatchEvent(r,B);break}}}dispatchEvent(r,l){this.debug("Dispatching region event: ",l),this.allRegionsListeners.dispatch(l.type,l),r.listeners.dispatch(l.type,l)}pickRegion({sourceEvent:r}){var l,m;return"mockRegion"in r&&r.mockRegion?r.mockRegion.region==="series"?this.regions.series:this.regions.root:r.target==((m=(l=this.regions.root)==null?void 0:l.properties.widget)==null?void 0:m.getElement())?this.regions.root:this.regions.series}canStartDrag(r){return this.deferredDragStart?r.timestamp-this.deferredDragStart.timestamp>I0?!0:Math.abs(r.canvasX-this.deferredDragStart.canvasX)+Math.abs(r.canvasY-this.deferredDragStart.canvasY)>T0:!1}};function Qx(r){var m,D,L,B,H;let l=(H=(D=(m=r.yBar)==null?void 0:m.upperPoint)!=null?D:r.midPoint)!=null?H:(B=(L=r.series).datumMidPoint)==null?void 0:B.call(L,r);if(l){let{x:U,y:X}=Ho.toCanvasPoint(r.series.contentGroup,l.x,l.y);return{canvasX:Math.round(U),canvasY:Math.round(X)}}}var kl=class{constructor(r,l){this.domManager=r,this.tooltip=l,this.stateTracker=new vv,this.suppressState=new vv(!1),this.appliedState=null,l.setup(r),r.addListener("hidden",()=>this.tooltip.hide())}updateTooltip(r,l,m){var D;this.tooltip.enabled&&(m!=null||(m=(D=this.stateTracker.get(r))==null?void 0:D.content),this.stateTracker.set(r,{content:m,meta:l}),this.applyStates())}removeTooltip(r){this.tooltip.enabled&&(this.stateTracker.delete(r),this.applyStates())}suppressTooltip(r){this.suppressState.set(r,!0)}unsuppressTooltip(r){this.suppressState.delete(r)}getTooltipMeta(r){var l;return(l=this.stateTracker.get(r))==null?void 0:l.meta}destroy(){this.domManager.removeStyles("tooltip")}applyStates(){var L;let r=this.stateTracker.stateId(),l=r?this.stateTracker.get(r):null;if(this.suppressState.stateValue()||(l==null?void 0:l.meta)==null||(l==null?void 0:l.content)==null){this.appliedState=null,this.tooltip.hide();return}let m=this.domManager.getBoundingClientRect(),D=this.tooltip.bounds==="extended"?this.domManager.getOverlayClientRect():m;if(((L=this.appliedState)==null?void 0:L.content)===(l==null?void 0:l.content)){let B=this.tooltip.isVisible();this.tooltip.show(D,m,l==null?void 0:l.meta,null,B)}else this.tooltip.show(D,m,l==null?void 0:l.meta,l==null?void 0:l.content);this.appliedState=l}static makeTooltipMeta(r,l){var U,X;let{canvasX:m,canvasY:D}=r,L=l.series.properties.tooltip,B={canvasX:m,canvasY:D,enableInteraction:(X=(U=L.interaction)==null?void 0:U.enabled)!=null?X:!1,lastPointerEvent:{type:r.type,canvasX:m,canvasY:D},showArrow:L.showArrow,position:{type:L.position.type,xOffset:L.position.xOffset,yOffset:L.position.yOffset}},H=Qx(l);return(L.position.type==="node"||L.position.type==="sparkline")&&H?He(ge({},B),{canvasX:H.canvasX,canvasY:H.canvasY}):B}},ys={bottomCenter:KI,center:UI,clone:gb,end:CD,from:WP,height:qI,round:Fm,start:HP,topCenter:Om,origin:UP,width:L0};function HP(r){return{x:r.x1,y:r.y1}}function CD(r){return{x:r.x2,y:r.y2}}function Om(r){return{x:(r.x1+r.x2)/2,y:Math.min(r.y1,r.y2)}}function UI(r){return{x:(r.x1+r.x2)/2,y:(r.y1+r.y2)/2}}function KI(r){return{x:(r.x1+r.x2)/2,y:Math.max(r.y1,r.y2)}}function L0(r){return Math.abs(r.x2-r.x1)}function qI(r){return Math.abs(r.y2-r.y1)}function Fm(r){return{x1:Math.round(r.x1),y1:Math.round(r.y1),x2:Math.round(r.x2),y2:Math.round(r.y2)}}function gb(r){return{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}}function WP(r,l,m,D){if(typeof r=="number")return{x1:r,y1:l,x2:m,y2:D};if("width"in r)return{x1:r.x,y1:r.y,x2:r.x+r.width,y2:r.y+r.height};throw new Error(`Values can not be converted into a vector4: [${JSON.stringify(r)}] [${l}] [${m}] [${D}]`)}function UP(){return{x1:0,y1:0,x2:0,y2:0}}function O0(r,l,m,D,L){return l+(D-l)*((L-r)/(m-r))}function YI(r,l,m,D,L){return r+(L-l)*((m-r)/(D-l))}function XI(r,l,m){return[YI(r,m.min,l,m.max,0),YI(r,m.min,l,m.max,1)]}function KP(r,l,m){let[D,L]=XI(r.x1,r.x2,l),[B,H]=XI(r.y1,r.y2,m);return{x1:D,x2:L,y1:B,y2:H}}function SD(r,l,m,D,L,B){if(m<=L&&B<=D)return m;let H=L-m,U=B-D,X=Math.abs(H)<Math.abs(U)?H:U;return st(r,m+X,l)}function qP(r,l,m){let{x:D={min:0,max:1},y:L={min:0,max:1}}=l,B=ys.from(m),H=ys.from(r),U=KP(H,D,L),X=SD(U.x1,U.x2,H.x1,H.x2,B.x1,B.x2),Q=SD(U.y1,U.y2,H.y1,H.y2,B.y1,B.y2);return{x:{min:O0(H.x1,D.min,H.x2,D.max,X),max:O0(H.x1,D.min,H.x2,D.max,X+r.width)},y:{min:O0(H.y1,L.min,H.y2,L.max,Q),max:O0(H.y1,L.min,H.y2,L.max,Q+r.height)}}}var YP=["rangeX","rangeY","ratioX","ratioY","autoScaleYAxis"],XP=class{constructor(){this.enabled=!1,this.padding=0,this.manuallyAdjusted=!1}},wD=class extends Fn{constructor(){super(...arguments),this.mementoOriginatorKey="zoom",this.axisZoomManagers=new Map,this.state=new vv(void 0,"initial"),this.axes=[],this.didLayoutAxes=!1,this.autoScaleYAxis=new XP,this.lastRestoredState=void 0,this.independentAxes=!1,this.navigatorModule=!1,this.zoomModule=!1,this.pendingMemento=void 0}addLayoutListeners(r){this.destroyFns.push(r.addListener("layout:complete",()=>{let{pendingMemento:l}=this,m=!this.didLayoutAxes;this.didLayoutAxes=!0,l?this.restoreMemento(l.version,l.mementoVersion,l.memento):m&&this.autoScaleYZoom("zoom-manager")}))}createMemento(){let r=this.getDefinedZoom(),l={rangeX:this.getRangeDirection(r.x,"x"),rangeY:this.getRangeDirection(r.y,"y"),ratioX:{start:r.x.min,end:r.x.max},ratioY:{start:r.y.min,end:r.y.max}};return this.autoScaleYAxis.enabled&&(l.autoScaleYAxis=!this.autoScaleYAxis.manuallyAdjusted),l}guardMemento(r){if(r==null)return!0;if(!Jn(r))return!1;for(let l of Object.keys(r))if(!Zg(YP,l))return!1;return!0}restoreMemento(r,l,m){var U,X,Q,ie,ue,be;let{independentAxes:D}=this;if(!this.axes||!this.didLayoutAxes){this.pendingMemento={version:r,mementoVersion:l,memento:m};return}this.pendingMemento=void 0;let L=this.getDefinedZoom();if(m!=null&&m.rangeX?L.x=(U=this.rangeToRatio(m.rangeX,"x"))!=null?U:{min:0,max:1}:m!=null&&m.ratioX?L.x={min:(X=m.ratioX.start)!=null?X:0,max:(Q=m.ratioX.end)!=null?Q:1}:L.x={min:0,max:1},(!this.navigatorModule||this.zoomModule)&&(m!=null&&m.rangeY?L.y=(ie=this.rangeToRatio(m.rangeY,"y"))!=null?ie:{min:0,max:1}:m!=null&&m.ratioY?L.y={min:(ue=m.ratioY.start)!=null?ue:0,max:(be=m.ratioY.end)!=null?be:1}:L.y={min:0,max:1}),(m==null?void 0:m.autoScaleYAxis)!=null&&(this.autoScaleYAxis.manuallyAdjusted=!m.autoScaleYAxis),this.lastRestoredState=L,D!==!0){this.updateZoom("zoom-manager",L);return}let B=this.getPrimaryAxis("x"),H=this.getPrimaryAxis("y");for(let ye of[B,H])ye&&this.updateAxisZoom("zoom-manager",ye.id,L[ye.direction])}updateAxes(r){var m;this.axes=r;let l=new Map(r.map(D=>[D.id,this.axisZoomManagers.get(D.id)]));this.axisZoomManagers.clear();for(let D of r)this.axisZoomManagers.set(D.id,(m=l.get(D.id))!=null?m:new ZP(D));this.state.size>0&&r.length>0&&this.updateZoom(this.state.stateId(),this.state.stateValue())}setIndependentAxes(r=!0){this.independentAxes=r}setAutoScaleYAxis(r,l){this.autoScaleYAxis.enabled=r,this.autoScaleYAxis.padding=l}setNavigatorEnabled(r=!0){this.navigatorModule=r}setZoomModuleEnabled(r=!0){this.zoomModule=r}isZoomEnabled(){return this.zoomModule}updateZoom(r,l){if(this.axisZoomManagers.size===0){let m=this.state.stateId();(m==="initial"||m===r)&&this.state.set(r,l);return}this.state.set(r,l),this.axisZoomManagers.forEach(m=>{m.updateZoom(r,l==null?void 0:l[m.getDirection()])}),this.applyChanges(r)}updateAxisZoom(r,l,m){var D;(D=this.axisZoomManagers.get(l))==null||D.updateZoom(r,m),this.applyChanges(r)}resetZoom(r){var m,D,L,B,H,U,X,Q;this.autoScaleYAxis.manuallyAdjusted=!1;let l=this.getRestoredZoom();this.updateZoom(r,{x:{min:(D=(m=l==null?void 0:l.x)==null?void 0:m.min)!=null?D:0,max:(B=(L=l==null?void 0:l.x)==null?void 0:L.max)!=null?B:1},y:{min:(U=(H=l==null?void 0:l.y)==null?void 0:H.min)!=null?U:0,max:(Q=(X=l==null?void 0:l.y)==null?void 0:X.max)!=null?Q:1}})}resetAxisZoom(r,l){var L,B;let m=this.axisZoomManagers.get(l),D=m==null?void 0:m.getDirection();D!=null&&(D==="y"&&(this.autoScaleYAxis.manuallyAdjusted=!1),this.updateAxisZoom(r,l,(B=(L=this.getRestoredZoom())==null?void 0:L[D])!=null?B:{min:0,max:1}))}setAxisManuallyAdjusted(r,l){var D;((D=this.axisZoomManagers.get(l))==null?void 0:D.getDirection())==="y"&&(this.autoScaleYAxis.manuallyAdjusted=!0)}updatePrimaryAxisZoom(r,l,m){let D=this.getPrimaryAxis(l);D&&this.updateAxisZoom(r,D.id,m)}panToBBox(r,l,m){let D=this.getZoom();if(D===void 0||!D.x&&!D.y)return;if(!(l.width>0&&l.height>0&&Math.abs(m.width)<=Math.abs(l.width)&&Math.abs(m.height)<=Math.abs(l.height))){vi.warnOnce("cannot pan to target BBox - chart too small?");return}let B=qP(l,D,m);this.independentAxes?(this.updatePrimaryAxisZoom(r,"x",B.x),this.updatePrimaryAxisZoom(r,"y",B.y)):this.updateZoom(r,B)}fireZoomPanStartEvent(r){this.listeners.dispatch("zoom-pan-start",{type:"zoom-pan-start",callerId:r})}extendToEnd(r,l,m){return this.extendWith(r,l,D=>Number(D)-m)}extendWith(r,l,m){let D=this.getPrimaryAxis(l);if(!D)return;let L=this.getDomainExtents(D);if(!L)return;let[,B]=L,H=m(B),U=this.rangeToRatio({start:H,end:B},l);U&&this.updateZoom(r,{[l]:U})}updateWith(r,l,m){let D=this.getPrimaryAxis(l);if(!D)return;let L=this.getDomainExtents(D);if(!L)return;let[B,H]=L;[B,H]=m(B,H);let U=this.rangeToRatio({start:B,end:H},l);U&&this.updateZoom(r,{[l]:U})}getZoom(){let r,l;if(this.axisZoomManagers.forEach(m=>{m.getDirection()==="x"?r!=null||(r=m.getZoom()):m.getDirection()==="y"&&(l!=null||(l=m.getZoom()))}),r||l)return{x:r,y:l}}getAxisZoom(r){var l,m;return(m=(l=this.axisZoomManagers.get(r))==null?void 0:l.getZoom())!=null?m:{min:0,max:1}}getAxisZooms(){let r={};for(let[l,m]of this.axisZoomManagers.entries())r[l]={direction:m.getDirection(),zoom:m.getZoom()};return r}getRestoredZoom(){return this.lastRestoredState}autoScaleYZoom(r,l=!0){let{independentAxes:m,autoScaleYAxis:D}=this,L=this.getZoom();if((L==null?void 0:L.x)==null||!D.enabled||D.manuallyAdjusted)return;let{padding:B}=D,H=m?this.primaryAxisZoom("y",L.x,{padding:B}):this.combinedAxisZoom("y",L.x,{padding:B});if(H!=null){if(m){let U=this.getPrimaryAxis("y"),X=U==null?void 0:this.axisZoomManagers.get(U.id);X==null||X.updateZoom("zoom-manager",H)}else for(let U of this.axisZoomManagers.values())U.getDirection()==="y"&&U.updateZoom("zoom-manager",H);l&&this.applyChanges(r)}}applyChanges(r){if(this.autoScaleYZoom(r,!1),!Array.from(this.axisZoomManagers.values(),D=>D.applyChanges()).includes(!0))return;let m={};for(let[D,L]of this.axisZoomManagers.entries())m[D]=L.getZoom();this.listeners.dispatch("zoom-change",He(ge({type:"zoom-change"},this.getZoom()),{axes:m,callerId:r}))}getRangeDirection(r,l){var X,Q,ie,ue,be,ye,Me,Ie;let m=this.getPrimaryAxis(l);if(!m||!Fa.is(m.scale)&&!us.is(m.scale))return;let D=this.getDomainPixelExtents(m);if(!D)return;let[L,B]=D,H,U;return L<=B?(H=(Q=(X=m.scale).invert)==null?void 0:Q.call(X,0),U=(ue=(ie=m.scale).invert)==null?void 0:ue.call(ie,L+(B-L)*r.max)):(H=(ye=(be=m.scale).invert)==null?void 0:ye.call(be,L-(L-B)*r.min),U=(Ie=(Me=m.scale).invert)==null?void 0:Ie.call(Me,0)),{start:H,end:U}}rangeToRatio(r,l){var ue,be,ye,Me;let m=this.getPrimaryAxis(l);if(!m)return;let D=this.getDomainPixelExtents(m);if(!D)return;let[L,B]=D,H=r.start==null?L:(be=(ue=m.scale).convert)==null?void 0:be.call(ue,r.start),U=r.end==null?B:(Me=(ye=m.scale).convert)==null?void 0:Me.call(ye,r.end);if(!ea(H)||!ea(U))return;let X=B-L,Q=Math.abs((H-L)/X),ie=Math.abs((U-L)/X);return{min:Q,max:ie}}getPrimaryAxis(r){var l;return(l=this.axes)==null?void 0:l.find(m=>m.direction===r)}getDomainExtents(r){var L,B;let l=(B=(L=r.scale).getDomain)==null?void 0:B.call(L),m=l==null?void 0:l.at(0),D=l==null?void 0:l.at(-1);if(!(m==null||D==null))return[m,D]}getDomainPixelExtents(r){var L,B,H,U,X,Q;let l=(B=(L=r.scale).getDomain)==null?void 0:B.call(L),m=(U=(H=r.scale).convert)==null?void 0:U.call(H,l==null?void 0:l.at(0)),D=(Q=(X=r.scale).convert)==null?void 0:Q.call(X,l==null?void 0:l.at(-1));if(!(!ea(m)||!ea(D)))return[m,D]}getDefinedZoom(){var l,m,D,L,B,H,U,X;let r=this.getZoom();return{x:{min:(m=(l=r==null?void 0:r.x)==null?void 0:l.min)!=null?m:0,max:(L=(D=r==null?void 0:r.x)==null?void 0:D.max)!=null?L:1},y:{min:(H=(B=r==null?void 0:r.y)==null?void 0:B.min)!=null?H:0,max:(X=(U=r==null?void 0:r.y)==null?void 0:U.max)!=null?X:1}}}zoomBounds(r,l,m,D){let L=r.scale,B=L.range;L.range=[0,1];let[H,U]=Xe(l.scale.domain),X=1,Q=!1,ie=0,ue=!1;for(let Me of l.boundSeries){let[Ie,Oe]=Me.getRange("y",[m.min,m.max]),Re=(Ie-H)/(U-H),Be=(Oe-H)/(U-H);if([Re,Be]=Xe([Re,Be]),!Number.isFinite(Re)||!Number.isFinite(Be))continue;let{connectsToYAxis:Ue}=Me;Re<X&&(X=Re,Q=!Ue||Ie<0),Be>ie&&(ie=Be,ue=!Ue||Oe>0)}L.range=B;let be=(Q?D:0)+(ue?D:0),ye=(ie-X)*(1+be);if(!(ye<=0||ye>=1)){if(Q&&ue){let Me=(ie+X)/2;X=Me-ye/2,ie=Me+ye/2}else!Q&&ue?ie=X+ye:Q&&!ue&&(X=ie-ye);return X<0?(ie+=-X,X=0):ie>1&&(X-=ie-1,ie=1),{min:X,max:ie}}}primaryAxisZoom(r,l,{padding:m=0}={}){let D=r==="x"?"y":"x",L=this.getPrimaryAxis(D),B=this.getPrimaryAxis(r);if(!(L==null||B==null))return this.zoomBounds(L,B,l,m)}combinedAxisZoom(r,l,{padding:m=0}={}){let D=r==="x"?"y":"x",L=new Map;for(let U of this.axes)if(U.direction===D)for(let X of U.boundSeries)L.set(X,U);let B=1,H=0;for(let U of this.axes)if(U.direction===r)for(let X of U.boundSeries){let Q=L.get(X);if(Q==null)continue;let ie=this.zoomBounds(Q,U,l,m);if(ie==null)return;B=Math.min(B,ie.min),H=Math.max(H,ie.max)}if(!(B>H))return{min:B,max:H}}},ZP=class{constructor(r){this.axis=r;let[l=0,m=1]=r.visibleRange;this.state=new vv({min:l,max:m}),this.currentZoom=this.state.stateValue()}getDirection(){return this.axis.direction}updateZoom(r,l){this.state.set(r,l)}getZoom(){return Ur(this.state.stateValue())}hasChanges(){let r=this.currentZoom,l=this.state.stateValue();return r.min!==l.min||r.max!==l.max}applyChanges(){let r=this.hasChanges();return this.currentZoom=this.state.stateValue(),r}},$P=class{constructor(){this.labelData=new Map}updateLabels(r,l,m=ft.zero){var H,U;let D={x:-l.left,y:-l.top,width:m.width+l.left+l.right,height:m.height+l.top+l.bottom},L=new Set(r.map(X=>X.id));for(let X of this.labelData.keys())L.has(X)||this.labelData.delete(X);for(let X of r){let Q=X.getLabelData();Q.every(MI)&&this.labelData.set(X.id,Q)}let B=kI(this.labelData,D,5);for(let X of r)(U=X.updatePlacedLabelData)==null||U.call(X,(H=B.get(X.id))!=null?H:[])}},QP=class extends Fn{constructor(r){super(),this.chartService=r,this.mementoOriginatorKey="legend",this.legendDataMap=new Map}createMemento(){return this.getData().filter(({hideInLegend:r,isFixed:l})=>!r&&!l).map(({enabled:r,seriesId:l,itemId:m,legendItemName:D})=>({visible:r,seriesId:l,itemId:m,legendItemName:D}))}guardMemento(r){return r==null||La(r)}restoreMemento(r,l,m){m==null||m.forEach(D=>{var H;let{seriesId:L,data:B}=(H=this.getRestoredData(D))!=null?H:{};!L||!B||this.updateData(L,B)}),this.update()}getRestoredData(r){var B,H;let{seriesId:l,itemId:m,legendItemName:D,visible:L}=r;if(l){let X=((B=this.legendDataMap.get(l))!=null?B:[]).map(Q=>{let ie=Q.seriesId===l&&(!m||Q.itemId===m);return ie&&Q.isFixed&&this.warnFixed(Q.seriesId,Q.itemId),!Q.isFixed&&ie?He(ge({},Q),{enabled:L}):Q});return{seriesId:l,data:X}}if(!(m==null&&D==null))for(let U of this.getData()){if(m!=null&&U.itemId!==m||D!=null&&U.legendItemName!==D)continue;if(U.isFixed){this.warnFixed(U.seriesId,m);return}let X=((H=this.legendDataMap.get(U.seriesId))!=null?H:[]).map(Q=>Q.itemId===m||Q.legendItemName===D?He(ge({},Q),{enabled:L}):Q);return{seriesId:U.seriesId,data:X}}}warnFixed(r,l){vi.warnOnce(`The legend item with seriesId [${r}] and itemId [${l}] is not configurable, this series item cannot be toggled through the legend.`)}update(r){this.listeners.dispatch("legend-change",{type:"legend-change",legendData:r!=null?r:this.getData()})}updateData(r,l=[]){this.legendDataMap.set(r,l)}clearData(){this.legendDataMap.clear()}toggleItem({enabled:r,seriesId:l,itemId:m,legendItemName:D}){if(D){this.getData().forEach(U=>{var Q;let X=((Q=this.legendDataMap.get(U.seriesId))!=null?Q:[]).map(ie=>ie.legendItemName===D?He(ge({},ie),{enabled:r}):ie);this.updateData(U.seriesId,X)});return}let L=this.getData(l),B=L.length===1,H=L.map(U=>m==null&&B||U.itemId===m?He(ge({},U),{enabled:r}):U);this.updateData(l,H)}getData(r){var l;return r?(l=this.legendDataMap.get(r))!=null?l:[]:[...this.legendDataMap].reduce((m,[D,L])=>m.concat(L),[])}getDatum({seriesId:r,itemId:l}={}){return this.getData(r).find(m=>m.itemId===l)}getSeriesEnabled(r){let l=this.getData(r);if(l.length>0)return l.some(m=>m.enabled)}getItemEnabled({seriesId:r,itemId:l}={}){var m,D;return(D=(m=this.getDatum({seriesId:r,itemId:l}))==null?void 0:m.enabled)!=null?D:!0}},ZI=class{constructor(){this.groups={}}registerSeries({internalId:r,seriesGrouping:l,visible:m,type:D}){var B;var L;l&&((B=(L=this.groups)[D])!=null||(L[D]={}),this.groups[D][r]={grouping:l,visible:m})}updateSeries({internalId:r,seriesGrouping:l,visible:m,type:D}){var B;if(!l)return;let L=(B=this.groups[D])==null?void 0:B[r];L&&(L.grouping=l,L.visible=m)}deregisterSeries({internalId:r,type:l}){this.groups[l]&&delete this.groups[l][r],this.groups[l]&&Object.keys(this.groups[l]).length===0&&delete this.groups[l]}getVisiblePeerGroupIndex({type:r,seriesGrouping:l,visible:m}){var H;if(!l)return{visibleGroupCount:m?1:0,visibleSameStackCount:m?1:0,index:0};let D=new Set,L=new Set;for(let U of Object.values((H=this.groups[r])!=null?H:{}))U.visible&&(D.add(U.grouping.groupIndex),U.grouping.groupIndex===l.groupIndex&&L.add(U.grouping.stackIndex));let B=Array.from(D);return B.sort((U,X)=>U-X),{visibleGroupCount:B.length,visibleSameStackCount:L.size,index:B.indexOf(l.groupIndex)}}},F0=(r=>(r[r.FULL=0]="FULL",r[r.UPDATE_DATA=1]="UPDATE_DATA",r[r.PROCESS_DATA=2]="PROCESS_DATA",r[r.PERFORM_LAYOUT=3]="PERFORM_LAYOUT",r[r.SERIES_UPDATE=4]="SERIES_UPDATE",r[r.PRE_SCENE_RENDER=5]="PRE_SCENE_RENDER",r[r.SCENE_RENDER=6]="SCENE_RENDER",r[r.NONE=7]="NONE",r))(F0||{}),$I=class extends Dr{constructor(r){super(),this.updateCallback=r}update(r=0,l){this.updateCallback(r,l)}dispatchUpdateComplete(r){this.dispatch("update-complete",{type:"update-complete",minRect:r==null?void 0:r.minRect,minVisibleRect:r==null?void 0:r.minVisibleRect})}dispatchPreDomUpdate(){this.dispatch("pre-dom-update",{type:"pre-dom-update"})}dispatchPreSceneRender(r){this.dispatch("pre-scene-render",ge({type:"pre-scene-render"},r))}},JP=class{constructor(r,l){this.callbackCache=new pD,this.chartEventManager=new E0,this.highlightManager=new Xx,this.layoutManager=new b0,this.localeManager=new k0,this.seriesStateManager=new ZI,this.stateManager=new FI,this.zoomManager=new wD,this.seriesLabelLayoutManager=new $P,this.contextModules=[];let{scene:m,root:D,syncManager:L,container:B,updateCallback:H,updateMutex:U,pixelRatio:X,styleContainer:Q,chartType:ie}=l;this.chartService=r,this.syncManager=L,this.domManager=new Nc(B,Q);let ue=this.domManager.addChild("canvas","scene-canvas",m==null?void 0:m.canvas.element);this.scene=m!=null?m:new mv({pixelRatio:X,canvasElement:ue}),this.scene.setRoot(D),this.axisManager=new cp(D),this.legendManager=new QP(this.chartService),this.annotationManager=new qa(r.annotationRoot),this.chartTypeOriginator=new er(r),this.cursorManager=new yD(this.domManager),this.interactionManager=new db(r.keyboard,this.domManager),this.regionManager=new bD(this.interactionManager),this.keyNavManager=new Zx(this.interactionManager,this.regionManager),this.contextMenuRegistry=new Ux,this.gestureDetector=new Yx(this.domManager),this.updateService=new $I(H),this.proxyInteractionService=new Us(this.localeManager,this.domManager),this.historyManager=new NP(this.keyNavManager),this.animationManager=new fv(this.interactionManager,U),this.dataService=new oc(this.animationManager),this.tooltipManager=new kl(this.domManager,r.tooltip),this.zoomManager.addLayoutListeners(this.layoutManager);for(let be of au.byType("context")){if(!be.chartTypes.includes(ie))continue;let ye=be.moduleFactory(this);this.contextModules.push(ye),this[be.contextKey]=ye}}destroy(){this.animationManager.destroy(),this.highlightManager.destroy(),this.axisManager.destroy(),this.callbackCache.invalidateCache(),this.chartEventManager.destroy(),this.domManager.destroy(),this.highlightManager.destroy(),this.keyNavManager.destroy(),this.regionManager.destroy(),this.interactionManager.destroy(),this.proxyInteractionService.destroy(),this.syncManager.destroy(),this.tooltipManager.destroy(),this.zoomManager.destroy(),this.contextModules.forEach(r=>r.destroy())}},xD=class extends Hi{constructor(){super(...arguments),this.range="tooltip"}};T([je(Xn(["tooltip","node"],"a range"))],xD.prototype,"range",2);function eL(r,l){if(r.size!==l.size)return!1;for(let m of r)if(!l.has(m))return!1;return!0}function QI(r,l){if(r==null||l==null)return r===l;if(r.size!==l.size)return!1;for(let[m,D]of r){let L=l.get(m);if(L==null||!eL(D,L))return!1}return!0}function dp(r,l){if(r.length!==l.length)return!1;for(let L=0;L<r.length;L+=1){let m=r[L],{idsMap:B}=m,H=wi(m,["idsMap"]),D=l[L],{idsMap:U}=D,X=wi(D,["idsMap"]);if(!qg(H,X)||!QI(B,U))return!1}return!0}function _0(r,l){let H=r,{props:m}=H,D=wi(H,["props"]),U=l,{props:L}=U,B=wi(U,["props"]);return qg(D,B)&&dp(m,L)}function _m(r,l,m,D){return l===r.data&&Bh(m,r.ids)&&_0(D,r.opts)}var N0=class nZ{constructor(){this.domain=new Set}static is(l){return l instanceof nZ}extend(l){this.domain.add(l)}getDomain(){return Array.from(this.domain)}},go=class aZ{constructor(){this.domain=[1/0,-1/0]}static is(l){return l instanceof aZ}static extendDomain(l,m=[1/0,-1/0]){for(let D of l)typeof D=="number"&&(m[0]>D&&(m[0]=D),m[1]<D&&(m[1]=D));return m}extend(l){this.domain[0]>l&&(this.domain[0]=l),this.domain[1]<l&&(this.domain[1]=l)}getDomain(){return[...this.domain]}},up=0,eg=1,tg=2,yv=class{constructor(r){let l=r.reduce((B,H)=>Math.max(B,H.length),0),D=1<<32-Math.clz32(l);l===D/2&&(D=D>>>1),this.maxLevelSize=D;let L=new Float64Array((D*2-1)*2).fill(NaN);for(let B of r)for(let H=0;H<B.length;H+=1){let U=Number(B[H]),X=D+H-1,Q=(X*tg|0)+up,ie=(X*tg|0)+eg,ue=L[Q],be=L[ie];(!Number.isFinite(ue)||U<ue)&&(L[Q]=U),(!Number.isFinite(be)||U>be)&&(L[ie]=U)}for(let B=D/2|0;B>=1;B=B/2|0){let H=B-1|0,U=H+B|0;for(let X=0;X<B;X+=1){let Q=H+X,ie=U+X*2,ue=ie+1,be=L[(ie*tg|0)+up],ye=L[(ue*tg|0)+up];L[(Q*tg|0)+up]=!Number.isFinite(ye)||be<ye?be:ye;let Me=L[(ie*tg|0)+eg],Ie=L[(ue*tg|0)+eg];L[(Q*tg|0)+eg]=!Number.isFinite(Ie)||Me>Ie?Me:Ie}}this.buffer=L}computeRangeInto(r,l,m,D,L,B,H){let U=L+B-1;if(U<l||L>m)return H;if(L>=l&&U<=m){let X=r[(D*tg|0)+up],Q=r[(D*tg|0)+eg];Number.isFinite(X)&&(H[0]=Math.min(H[0],X)),Number.isFinite(Q)&&(H[1]=Math.max(H[1],Q))}else B>1&&(D=D*2|0,B=B/2|0,this.computeRangeInto(r,l,m,D+1|0,L,B,H),this.computeRangeInto(r,l,m,D+2|0,L+B,B,H));return H}rangeBetween(r,l){let{maxLevelSize:m,buffer:D}=this,L=[1/0,-1/0];return this.computeRangeInto(D,r,l,0,0,m,L),L}get range(){let{buffer:r}=this;return[r[up],r[eg]]}},MD=Symbol("domain-ranges");function su(r){return r.map(l=>Jn(l)?JSON.stringify(l):l).join("-")}function JI(r){return Number.isInteger(r)?r:Math.abs(r)>1e4?Math.trunc(r):Math.round(r*1e4)/1e4}function Al(r){let l=r==null?void 0:r.map(Number);return l!=null&&l.every(Number.isFinite)?l:[]}function kD(r,l){var m;return(m=l==null?void 0:l.get(r.id))!=null?m:0}var pb=Symbol("invalid");function z0(r,l){let m=[];for(let D=0;D<r;D+=1)m[D]=l;return m}function mb(r,l){let m=[];for(let D of r){let L=D[l];if(L==null)return;m.push(L)}return m}function AD(r){let l=[],m=0,D,L=new RegExp(`((?:(?:^|\\.)\\s*\\w+|\\[\\s*(?:'(?:[^']|(?<!\\\\)\\\\')*'|"(?:[^"]|(?<!\\\\)\\\\")*"|-?\\d+)\\s*\\])\\s*)`,"g");for(;D=L.exec(r);){if(D.index!==m)return;m=D.index+D[0].length;let B=D[1].trim();if(B.startsWith("."))l.push(B.slice(1).trim());else if(B.startsWith("[")){let H=B.slice(1,-1).trim();H.startsWith("'")?l.push(H.slice(1,-1).replace(new RegExp("(?<!\\\\)\\\\'","g"),"'")):H.startsWith('"')?l.push(H.slice(1,-1).replace(new RegExp('(?<!\\\\)\\\\"',"g"),'"')):l.push(H)}else l.push(B)}if(m===r.length)return l}function eT(r){return l=>{let m=l;for(let D of r)m=m[D];return m}}var B0=class{constructor(r,l="standalone",m=!1){this.opts=r,this.mode=l,this.suppressFieldDotNotation=m,this.debug=Ma.create(!0,"data-model"),this.scopeCache=new Map,this.keys=[],this.values=[],this.aggregates=[],this.groupProcessors=[],this.propertyProcessors=[],this.reducers=[],this.processors=[];let D=!0;for(let B of r.props){if(B.type==="key"&&!D)throw new Error("AG Charts - internal config error: keys must come before values.");B.type==="value"&&D&&(D=!1)}let L=({matchGroupIds:B=[]})=>{for(let H of B)if(this.values.every(U=>U.groupId!==H))throw new Error(`AG Charts - internal config error: matchGroupIds properties must match defined groups (${H}).`)};for(let B of r.props)switch(B.type){case"key":this.keys.push(He(ge({},B),{index:this.keys.length,missing:new Map}));break;case"value":if(B.property==null)throw new Error(`AG Charts - internal config error: no properties specified for value definitions: ${JSON.stringify(B)}`);this.values.push(He(ge({},B),{index:this.values.length,missing:new Map}));break;case"aggregate":L(B),this.aggregates.push(He(ge({},B),{index:this.aggregates.length}));break;case"group-value-processor":L(B),this.groupProcessors.push(He(ge({},B),{index:this.groupProcessors.length}));break;case"property-value-processor":this.propertyProcessors.push(He(ge({},B),{index:this.propertyProcessors.length}));break;case"reducer":this.reducers.push(He(ge({},B),{index:this.reducers.length}));break;case"processor":this.processors.push(He(ge({},B),{index:this.processors.length}));break}}resolveProcessedDataDefById(r,l){var D;let m=(D=this.scopeCache.get(r.id))==null?void 0:D.get(l);if(!m)throw new Error(`AG Charts - didn't find property definition for [${l}, ${r.id}]`);return{index:m.index,def:m}}resolveProcessedDataIndexById(r,l){return this.resolveProcessedDataDefById(r,l).index}resolveProcessedDataDefsByIds(r,l){return l.map(m=>[m,this.resolveProcessedDataDefById(r,m)])}resolveKeysById(r,l,m){let D=this.resolveProcessedDataIndexById(r,l),L=m.keys[D];if(L==null)throw new Error(`AG Charts - didn't find keys for [${l}, ${r.id}]`);return L}resolveColumnById(r,l,m){var B;let D=this.resolveProcessedDataIndexById(r,l),L=(B=m.columns)==null?void 0:B[D];if(L==null)throw new Error(`AG Charts - didn't find column for [${l}, ${r.id}]`);return L}resolveProcessedDataDefsValues(r,{keys:l,values:m}){let D={};for(let[L,{index:B,def:H}]of r){let U=H.type==="key"?l:m;D[L]=U[B]}return D}getDomain(r,l,m,D){var B;let L=this.getDomainsByType(m!=null?m:"value",D);return(B=L==null?void 0:L[this.resolveProcessedDataIndexById(r,l)])!=null?B:[]}getDomainBetweenRange(r,l,[m,D],L){let B=l.map(Q=>this.resolveProcessedDataIndexById(r,Q)),H=B.join(":"),U=L[MD],X=U.get(H);if(X==null){let Q=B.map(ie=>L.columns[ie]);X=new yv(Q),U.set(H,X)}return X.rangeBetween(m,D)}getDomainsByType(r,l){switch(r){case"key":return l.domain.keys;case"value":return l.domain.values;case"aggregate":return l.domain.aggValues;case"group-value-processor":return l.domain.groups;default:return null}}processData(r,l){let{opts:{groupByKeys:m,groupByFn:D},aggregates:L,groupProcessors:B,reducers:H,processors:U,propertyProcessors:X}=this,Q=performance.now();if(m&&this.keys.length===0)return;let ie=this.extractData(r,l);m?ie=this.groupData(ie):D&&(ie=this.groupData(ie,D(ie))),B.length>0&&this.postProcessGroups(ie),L.length>0&&this.aggregateData(ie),X.length>0&&this.postProcessProperties(ie),H.length>0&&this.reduceData(ie),U.length>0&&this.postProcessData(ie),this.warnDataMissingProperties(r);let ue=performance.now();return ie.time=ue-Q,this.debug.check()&&tT(ie),this.processScopeCache(),ie}warnDataMissingProperties(r){if(r.length!==0)for(let l of ce(this.keys,this.values))for(let[m,D]of l.missing){if(D<r.length)continue;let L=m==null?"":` for ${m}`;vi.warnOnce(`the key '${l.property}' was not found in any data element${L}.`)}}processScopeCache(){var r;this.scopeCache.clear();for(let l of ce(this.keys,this.values,this.aggregates))if(l.idsMap)for(let[m,D]of l.idsMap)for(let L of D)if(!this.scopeCache.has(m))this.scopeCache.set(m,new Map([[L,l]]));else{if((r=this.scopeCache.get(m))!=null&&r.has(L))throw new Error("duplicate definition ids on the same scope are not allowed.");this.scopeCache.get(m).set(L,l)}}valueGroupIdxLookup({matchGroupIds:r}){let l=[];for(let[m,D]of this.values.entries())(!r||D.groupId&&r.includes(D.groupId))&&l.push(m);return l}valueIdxLookup(r,l){let m=r==null||r.length===0,D=typeof l=="string"?l:l.id,L=H=>{if(H.idsMap){for(let[U,X]of H.idsMap)if(r!=null&&r.includes(U)&&X.has(D))return!0}return!1},B=this.values.reduce((H,U,X)=>((U.scopes==null||m&&!U.scopes.length||U.scopes.some(ie=>r==null?void 0:r.includes(ie)))&&(U.property===D||U.id===D||L(U))&&H.push(X),H),[]);if(B.length===0)throw new Error(`AG Charts - configuration error, unknown property ${JSON.stringify(l)} in scope(s) ${JSON.stringify(r)}`);return B}extractData(r,l){let{dataDomain:m,processValue:D,scopes:L,allScopesHaveSameDefs:B}=this.initDataDomainProcessor(),H=new Map(l==null?void 0:l.map(Be=>[Be.id,Be])),{keys:U,values:X}=this,Q=r.length,ie=0,ue,be,ye=U.map(Be=>{let{invalidValue:Ue}=Be;return r.map((Ne,Qe)=>{let nt=D(Be,Ne,Qe);return nt!==pb?nt:(ue!=null||(ue=z0(Q,!1)),ue[Qe]=!0,be!=null||(be=z0(Q,!1)),be[Qe]=!0,Ue)})}),Me,Ie=(Be,Ue)=>{Me!=null||(Me=new Map);let Ne=Me.get(Be);Ne==null&&(Ne=z0(Q,!1),Me.set(Be,Ne)),Ne[Ue]=!0,be!=null||(be=z0(Q,!1)),be[Ue]=!0},Oe=[];X.forEach(Be=>{let{invalidValue:Ue}=Be,Ne=Oe.length>0?Oe[Oe.length-1]:void 0,Qe=r.map((nt,rt)=>{var Tt,_t;let ut=(ue==null?void 0:ue[rt])===!0,Mt=Ne==null?void 0:Ne[rt];for(let Kt of(Tt=Be.scopes)!=null?Tt:L){let gi=H.get(Kt),Ci=(_t=gi==null?void 0:gi.data[rt])!=null?_t:nt;Mt=D(Be,Ci,rt,Mt,Kt),(ut||Mt===pb)&&Ie(Kt,rt)}return ut?Ue:Mt===pb?(ie+=1,Ue):Mt});Oe.push(Qe)});let Re=Be=>{let Ue=m.get(Be),Ne=Ue.getDomain();return go.is(Ue)&&Ne[0]>Ne[1]?[]:Ne};return{type:"ungrouped",input:{count:r.length},rawData:r,rawDataSources:l!=null?new Map(l.map(Be=>[Be.id,Be.data])):void 0,aggregation:void 0,keys:ye,columns:Oe,invalidKeys:ue,invalidDataScopes:Me,invalidData:be,domain:{keys:U.map(Re),values:X.map(Re)},defs:{allScopesHaveSameDefs:B,keys:U,values:X},partialValidDataCount:ie,time:0,[MD]:new Map}}groupData(r,l){var ie;let m=new Map,{rawData:D,keys:L,invalidKeys:B,invalidDataScopes:H,invalidData:U}=r;for(let ue=0;ue<D.length;ue+=1){let be=D[ue],ye=mb(L,ue);if(ye==null||ye.length===0)continue;let Me=(ie=l==null?void 0:l({index:ue,keys:ye,values:void 0,aggValues:void 0,datum:be,validScopes:void 0}))!=null?ie:ye,Ie=su(Me);if((B==null?void 0:B[ue])===!0)continue;let Oe;if(H!=null&&(U==null?void 0:U[ue])===!0&&(Oe=new Set,H.forEach((Be,Ue)=>{Be[ue]===!1&&Oe.add(Ue)}),Oe.size===0))continue;let Re=m.get(Ie);if(Re!=null){if(Re.datumIndices.push(ue),Oe!=null&&Re.validScopes!=null)for(let Be of Re.validScopes)Oe.has(Be)||Re.validScopes.delete(Be)}else m.set(Ie,{keys:Me,datumIndices:[ue],validScopes:Oe})}let X=[],Q=[];for(let{keys:ue,datumIndices:be,validScopes:ye}of m.values())(ye==null?void 0:ye.size)!==0&&(X.push(ue),Q.push({datumIndices:be,keys:ue,aggregation:[],validScopes:ye}));return He(ge({},r),{type:"grouped",domain:He(ge({},r.domain),{groups:X}),groups:Q})}aggregateData(r){var B,H,U,X,Q,ie,ue;let l=this.aggregates.map(()=>[1/0,-1/0]);r.domain.aggValues=l;let{keys:m,columns:D,rawData:L}=r;if(r.type==="ungrouped"){let be=L.map((ye,Me)=>{var Oe,Re,Be,Ue,Ne,Qe;let Ie=[];for(let[nt,rt]of this.aggregates.entries()){let ut=this.valueGroupIdxLookup(rt),Mt=(Re=(Oe=rt.groupAggregateFunction)==null?void 0:Oe.call(rt))!=null?Re:[1/0,-1/0],Tt=ut.map(Ci=>D[Ci][Me]),_t=mb(m,Me),Kt=_t!=null?rt.aggregateFunction(Tt,_t):void 0;Kt&&(Mt=(Ue=(Be=rt.groupAggregateFunction)==null?void 0:Be.call(rt,Kt,Mt))!=null?Ue:go.extendDomain(Kt,Mt));let gi=((Qe=(Ne=rt.finalFunction)==null?void 0:Ne.call(rt,Mt))!=null?Qe:Mt).map(Ci=>JI(Ci));Ie[nt]=gi,go.extendDomain(gi,l[nt])}return Ie});r.aggregation=be}else for(let[be,ye]of this.aggregates.entries()){let Me=this.valueGroupIdxLookup(ye);for(let Ie of r.groups){if((B=Ie.aggregation)!=null||(Ie.aggregation=[]),Ie.validScopes!=null)continue;let Oe=Ie.keys,Re=(U=(H=ye.groupAggregateFunction)==null?void 0:H.call(ye))!=null?U:[1/0,-1/0];for(let Ue of Ie.datumIndices){let Ne=Me.map(nt=>D[nt][Ue]),Qe=ye.aggregateFunction(Ne,Oe);Qe&&(Re=(Q=(X=ye.groupAggregateFunction)==null?void 0:X.call(ye,Qe,Re))!=null?Q:go.extendDomain(Qe,Re))}let Be=((ue=(ie=ye.finalFunction)==null?void 0:ie.call(ye,Re))!=null?ue:Re).map(Ue=>JI(Ue));Ie.aggregation[be]=Be,go.extendDomain(Be,l[be])}}}postProcessGroups(r){let{groupProcessors:l}=this,{rawData:m,columns:D,invalidData:L}=r;for(let B of l){let H=this.valueGroupIdxLookup(B),U=B.adjust()();for(let X=0;X<m.length;X+=1)(L==null?void 0:L[X])!==!0&&U(D,H,X);for(let X of H){let ie=this.values[X].valueType==="category",ue=D[X],be=ie?new N0:new go;for(let ye=0;ye<m.length;ye+=1)(L==null?void 0:L[ye])!==!0&&be.extend(ue[ye]);r.domain.values[X]=be.getDomain()}}}postProcessProperties(r){for(let{adjust:l,property:m,scopes:D}of this.propertyProcessors)for(let L of this.valueIdxLookup(D,m))l()(r,L)}reduceData(r){var l,m;(l=r.reduced)!=null||(r.reduced={});for(let D of this.reducers){let L=D.reducer(),B=D.initialValue,{rawData:H,keys:U,columns:X}=r;if(r.type==="grouped")for(let Q of r.groups)(!Q.validScopes||(m=D.scopes)!=null&&m.some(ie=>{var ue;return(ue=Q.validScopes)==null?void 0:ue.has(ie)}))&&(B=L(B,{index:Q.datumIndices,keys:Q.datumIndices.flatMap(ie=>U.map(ue=>ue[ie])),values:Q.datumIndices.map(ie=>X[ie]),datum:Q.datumIndices.map(ie=>H[ie])}));else for(let Q=0;Q<H.length;Q+=1)B=L(B,{index:[Q],keys:U.map(ie=>ie[Q]),values:[X[Q]],datum:[H[Q]]});r.reduced[D.property]=B}}postProcessData(r){var l;(l=r.reduced)!=null||(r.reduced={});for(let m of this.processors)r.reduced[m.property]=m.calculate(r,r.reduced[m.property])}initDataDomainProcessor(){let{keys:r,values:l}=this,m=new Set;for(let Q of l)if(Q.scopes)for(let ie of Q.scopes)m.add(ie);let D=new Map,L=new Map,B=!0,H=()=>{var Q;for(let ie of ce(r,l))ie.valueType==="category"?D.set(ie,new N0):(D.set(ie,new go),B&&(B=((Q=ie.scopes)!=null?Q:[]).length===m.size))};H();let U=this.buildAccessors(ce(r,l));return{dataDomain:D,processValue:(Q,ie,ue,be,ye)=>{var Re,Be,Ue,Ne;let Me,Ie;if(U.has(Q.property)){try{Ie=U.get(Q.property)(ie)}catch(Qe){}Me=Ie!=null}else Me=Q.property in ie,Ie=Me?ie[Q.property]:Q.missingValue;Q.forceValue!=null&&(Ie=Me&&Pe(Ie)?-1*Q.forceValue:Q.forceValue,Me=!0);let Oe="missingValue"in Q;if(!Me&&!Oe){let Qe=(Re=Q.missing.get(ye))!=null?Re:0;Q.missing.set(ye,Qe+1)}if(D.has(Q)||H(),Me&&((Be=Q.validation)==null?void 0:Be.call(Q,Ie,ie,ue))===!1)if("invalidValue"in Q)Ie=Q.invalidValue;else return this.mode!=="integrated"&&vi.warnOnce(`invalid value of type [${typeof Ie}] for [${Q.scopes} / ${Q.id}] ignored:`,`[${Ie}]`),pb;return Q.processor&&(L.has(Q)||L.set(Q,Q.processor()),Ie=(Ue=L.get(Q))==null?void 0:Ue(Ie,be===pb?void 0:be)),(Ne=D.get(Q))==null||Ne.extend(Ie),Ie},initDataDomain:H,scopes:m,allScopesHaveSameDefs:B}}buildAccessors(r){let l=new Map;if(this.suppressFieldDotNotation)return l;for(let m of r){if(!(m.property.includes(".")||m.property.includes("[")))continue;let L=AD(m.property);if(L==null){vi.warnOnce("Invalid property path [%s]",m.property);continue}let B=eT(L);l.set(m.property,B)}return l}};function tT(r){var m,D;let l=(L,B)=>{B.length>0&&(vi.log(`DataModel.processData() - ${L}`),vi.table(B))};vi.log("DataModel.processData() - processedData",r),l("Key Domains",r.domain.keys),l("Group Domains",(m=r.domain.groups)!=null?m:[]),l("Value Domains",r.domain.values),l("Aggregate Domains",(D=r.domain.aggValues)!=null?D:[])}var DD=class Ww{constructor(l,m){this.mode=l,this.suppressFieldDotNotation=m,this.debug=Ma.create(!0,"data-model"),this.requested=[],this.status="setup"}async request(l,m,D){if(this.status!=="setup")throw new Error("AG Charts - data request after data setup phase.");return new Promise((L,B)=>{this.requested.push({id:l,opts:D,data:m,resolve:L,reject:B})})}execute(l){if(this.status!=="setup")throw new Error("AG Charts - data request after data setup phase.");this.status="executed",this.debug("DataController.execute() - requested",this.requested);let m=this.validateRequests(this.requested);this.debug("DataController.execute() - validated",m);let D=this.mergeRequested(m);this.debug("DataController.execute() - merged",D),this.debug.check()&&(On().processedData=[]);let L=[];for(let{data:B,ids:H,opts:U,resolves:X,rejects:Q}of D){let ie=l==null?void 0:l.find(ye=>_m(ye,B,H,U)),ue,be;if(ie==null)try{ue=new B0(U,this.mode,this.suppressFieldDotNotation),be=ue.processData(B,m)}catch(ye){Q.forEach(Me=>Me(ye));continue}else({dataModel:ue,processedData:be}=ie);L.push({opts:U,data:B,ids:H,dataModel:ue,processedData:be}),this.debug.check()&&On("processedData").push(be),(be==null?void 0:be.partialValidDataCount)===0?X.forEach(ye=>ye({dataModel:ue,processedData:be})):be?this.splitResult(ue,be,H,X):Q.forEach(ye=>ye(new Error("AG Charts - no processed data generated")))}return L}validateRequests(l){let m=[];for(let[D,L]of l.entries())D>0&&L.data.length!==l[0].data.length&&L.opts.groupByData===!1?L.reject(new Error("all series[].data arrays must be of the same length and have matching keys.")):m.push(L);return m}mergeRequested(l){let m=[];for(let D of l){let L=m.find(Ww.groupMatch(D));L?L.push(D):m.push([D])}return m.map(Ww.mergeRequests)}splitResult(l,m,D,L){for(let B=0;B<D.length;B++){let H=L[B];H({dataModel:l,processedData:m})}}static groupMatch({data:l,opts:m}){function D(Q){return Q.filter(ie=>ie.type==="key").map(ie=>ie.property).join(";")}let{groupByData:L,groupByKeys:B=!1,groupByFn:H,props:U}=m,X=D(U);return([Q])=>{var ie;return(L===!1||Q.data===l)&&((ie=Q.opts.groupByKeys)!=null?ie:!1)===B&&Q.opts.groupByFn===H&&D(Q.opts.props)===X}}static mergeRequests(l){return l.reduce((m,Q)=>{var{id:D,data:L,resolve:B,reject:H,opts:ie}=Q,ue=ie,{props:U}=ue,X=wi(ue,["props"]);var be,ye,Me,Ie,Oe;m.ids.push(D),m.rejects.push(H),m.resolves.push(B),(be=m.data)!=null||(m.data=L),(ye=m.opts)!=null||(m.opts=He(ge({},X),{props:[]}));for(let Re of U){let Be=He(ge({},Re),{scopes:[D]});Ww.createIdsMap(D,Be);let Ue=m.opts.props.find(Ne=>Ne.type===Be.type&&Ww.deepEqual(Ne,Be));if(!Ue){m.opts.props.push(Be);continue}(Me=Ue.scopes)!=null||(Ue.scopes=[]),Ue.scopes.push(...(Ie=Be.scopes)!=null?Ie:[]),(Ue.type==="key"||Ue.type==="value")&&((Oe=Be.idsMap)!=null&&Oe.size)&&Ww.mergeIdsMap(Be.idsMap,Ue.idsMap)}return m},{ids:[],rejects:[],resolves:[],data:null,opts:null})}static mergeIdsMap(l,m){for(let[D,L]of l){let B=m.get(D);if(B==null)m.set(D,new Set(L));else for(let H of L)B.add(H)}}static createIdsMap(l,m){var D;m.id!=null&&((D=m.idsMap)!=null||(m.idsMap=new Map),m.idsMap.has(l)?m.idsMap.get(l).add(m.id):m.idsMap.set(l,new Set([m.id])))}static deepEqual(l,m){if(l===m)return!0;if(l&&m&&typeof l=="object"&&typeof m=="object"){if(l.constructor!==m.constructor)return!1;let D,L;if(Array.isArray(l)){if(L=l.length,L!==m.length)return!1;for(D=L-1;D>=0;D--)if(!Ww.deepEqual(l[D],m[D]))return!1;return!0}let B=Object.keys(l);if(L=B.length,L!==Object.keys(m).length)return!1;for(D=L-1;D>=0;D--){let H=B[D];if(!Ww.skipKeys.has(H)&&(!Object.hasOwn(m,H)||!Ww.deepEqual(l[H],m[H])))return!1}return!0}return!1}};DD.skipKeys=new Set(["id","idsMap","type","scopes"]);var ED=DD,Jx=class{constructor(){this.axesMap=new Map,this.hidden=new Set,this.themeTemplates=new Map}register(r,l){this.axesMap.set(r,l.moduleFactory),l.themeTemplate&&this.setThemeTemplate(r,l.themeTemplate),l.hidden&&this.hidden.add(r)}create(r,l){let m=this.axesMap.get(r);if(m)return m(l);throw new Error(`AG Charts - unknown axis type: ${r}`)}has(r){return this.axesMap.has(r)}keys(){return this.axesMap.keys()}publicKeys(){return[...this.keys()].filter(r=>!this.hidden.has(r))}setThemeTemplate(r,l){return this.themeTemplates.set(r,l),this}getThemeTemplate(r){return this.themeTemplates.get(r)}},bs=new Jx,hp=[{type:"root",optionsKey:"animation",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"annotations",chartTypes:["cartesian"]},{type:"root",optionsKey:"background",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],optionsInnerKey:"image"},{type:"root",optionsKey:"foreground",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],optionsInnerKey:"image"},{type:"root",optionsKey:"chartToolbar",chartTypes:["cartesian"]},{type:"root",optionsKey:"contextMenu",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"statusBar",chartTypes:["cartesian"],identifier:"status-bar"},{type:"root",optionsKey:"dataSource",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"sync",chartTypes:["cartesian"]},{type:"root",optionsKey:"zoom",chartTypes:["cartesian","topology"]},{type:"root",optionsKey:"ranges",chartTypes:["cartesian"]},{type:"legend",optionsKey:"gradientLegend",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],identifier:"gradient"},{type:"root",optionsKey:"navigator",chartTypes:["cartesian"]},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"angle-category"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"angle-number"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"radius-category"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"radius-number"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"bar",community:!0},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"line",community:!0},{type:"axis",optionsKey:"axes[]",chartTypes:["cartesian"],identifier:"ordinal-time"},{type:"axis-option",optionsKey:"crosshair",chartTypes:["cartesian"]},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"box-plot"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"candlestick"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"cone-funnel"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"funnel"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"ohlc"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"heatmap"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"range-area"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"range-bar"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"waterfall"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"nightingale"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radar-area"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radar-line"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radial-bar"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radial-column"},{type:"series",optionsKey:"series[]",chartTypes:["hierarchy"],identifier:"sunburst"},{type:"series",optionsKey:"series[]",chartTypes:["hierarchy"],identifier:"treemap"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-shape"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-line"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-marker"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-shape-background"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-line-background"},{type:"series",optionsKey:"series[]",chartTypes:["flow-proportion"],identifier:"chord"},{type:"series",optionsKey:"series[]",chartTypes:["flow-proportion"],identifier:"sankey"},{type:"series",optionsKey:"series[]",chartTypes:["standalone"],identifier:"pyramid"},{type:"series",optionsKey:"series[]",chartTypes:["gauge"],identifier:"linear-gauge"},{type:"series",optionsKey:"series[]",chartTypes:["gauge"],identifier:"radial-gauge"},{type:"series-option",optionsKey:"errorBar",chartTypes:["cartesian"],identifier:"error-bars"},{type:"context",contextKey:"sharedToolbar",chartTypes:["cartesian"]}];function G0(r){return hp.some(l=>l.type==="series"&&l.identifier===r)}function ig(r){var l;return(l=hp.find(m=>m.type==="series"&&m.identifier===r))==null?void 0:l.chartTypes}function tL(r){var m;return((m=ig(r))==null?void 0:m.find(D=>D==="cartesian"))==="cartesian"}function eM(r){var m;return((m=ig(r))==null?void 0:m.find(D=>D==="polar"))==="polar"}function gp(r){var m;return((m=ig(r))==null?void 0:m.find(D=>D==="hierarchy"))==="hierarchy"}function bv(r){var m;return((m=ig(r))==null?void 0:m.find(D=>D==="topology"))==="topology"}function Nm(r){var m;return((m=ig(r))==null?void 0:m.find(D=>D==="flow-proportion"))==="flow-proportion"}function Cv(r){var m;return((m=ig(r))==null?void 0:m.find(D=>D==="standalone"))==="standalone"}function zm(r){var m;return((m=ig(r))==null?void 0:m.find(D=>D==="gauge"))==="gauge"}function V0(r){return r.packageType==="enterprise"}function ID(r){var m;if(!V0(r))throw new Error("AG Charts - internal configuration error, only enterprise modules need verification.");let l=hp.find(D=>D.type===r.type&&("optionsKey"in D&&"optionsKey"in r?D.optionsKey===r.optionsKey:!0)&&("contextKey"in D&&"contextKey"in r?D.contextKey===r.contextKey:!0)&&D.identifier===r.identifier&&r.chartTypes.every(L=>D.chartTypes.includes(L)));return l&&((m=l.useCount)!=null||(l.useCount=0),l.useCount++),l!=null}function ph(){return hp.filter(({useCount:r})=>r==null||r===0)}var mh=class{constructor(){this.legendMap=new Map,this.themeTemplates=new Map}register(r,{optionsKey:l,moduleFactory:m,themeTemplate:D}){this.legendMap.set(r,{optionsKey:l,moduleFactory:m}),this.themeTemplates.set(l,D)}create(r,l){var D;let m=(D=this.legendMap.get(r))==null?void 0:D.moduleFactory;if(m)return m(l);throw new Error(`AG Charts - unknown legend type: ${r}`)}getThemeTemplates(){return Object.fromEntries(this.themeTemplates)}getKeys(){return Array.from(this.legendMap.entries()).reduce((r,[l,m])=>(r[l]=m.optionsKey,r),{})}},TD=new mh,tM=class extends Map{get(r){var l;return(l=super.get(r))!=null?l:"unknown"}isCartesian(r){return this.get(r)==="cartesian"}isPolar(r){return this.get(r)==="polar"}isHierarchy(r){return this.get(r)==="hierarchy"}isTopology(r){return this.get(r)==="topology"}isFlowProportion(r){return this.get(r)==="flow-proportion"}isStandalone(r){return this.get(r)==="standalone"}isGauge(r){return this.get(r)==="gauge"}get seriesTypes(){return Array.from(this.keys())}get cartesianTypes(){return this.seriesTypes.filter(r=>this.isCartesian(r))}get polarTypes(){return this.seriesTypes.filter(r=>this.isPolar(r))}get hierarchyTypes(){return this.seriesTypes.filter(r=>this.isHierarchy(r))}get topologyTypes(){return this.seriesTypes.filter(r=>this.isTopology(r))}get flowProportionTypes(){return this.seriesTypes.filter(r=>this.isFlowProportion(r))}get standaloneTypes(){return this.seriesTypes.filter(r=>this.isStandalone(r))}get gaugeTypes(){return this.seriesTypes.filter(r=>this.isGauge(r))}},iL=class extends Map{set(r,l){return super.set(r,mn(l,this.get(r)))}},Mo=new tM,iT=new tM,j0=new iL,nT=class{constructor(){this.seriesMap=new Map,this.themeTemplates=new Map}register(r,{chartTypes:[l],moduleFactory:m,tooltipDefaults:D,defaultAxes:L,themeTemplate:B,paletteFactory:H,solo:U,stackable:X,groupable:Q,stackedByDefault:ie,hidden:ue}){this.setThemeTemplate(r,B),this.seriesMap.set(r,{moduleFactory:m,tooltipDefaults:D,defaultAxes:L,paletteFactory:H,solo:U,stackable:X,groupable:Q,stackedByDefault:ie}),Mo.set(r,l),ue||iT.set(r,l)}create(r,l){var D;let m=(D=this.seriesMap.get(r))==null?void 0:D.moduleFactory;if(m)return m(l);throw new Error(`AG Charts - unknown series type: ${r}`)}cloneDefaultAxes(r,l){var L;let m=(L=this.seriesMap.get(r))==null?void 0:L.defaultAxes;if(m==null)return null;let D=typeof m=="function"?m(l):m;return{axes:Ur(D)}}setThemeTemplate(r,l){let m=this.themeTemplates.get(r);this.themeTemplates.set(r,mn(l,m))}getThemeTemplate(r){return this.themeTemplates.get(r)}getPaletteFactory(r){var l;return(l=this.seriesMap.get(r))==null?void 0:l.paletteFactory}getTooltipDefauls(r){var l;return(l=this.seriesMap.get(r))==null?void 0:l.tooltipDefaults}isSolo(r){var l,m;return(m=(l=this.seriesMap.get(r))==null?void 0:l.solo)!=null?m:!1}isGroupable(r){var l,m;return(m=(l=this.seriesMap.get(r))==null?void 0:l.groupable)!=null?m:!1}isStackable(r){var l,m;return(m=(l=this.seriesMap.get(r))==null?void 0:l.stackable)!=null?m:!1}isStackedByDefault(r){var l,m;return(m=(l=this.seriesMap.get(r))==null?void 0:l.stackedByDefault)!=null?m:!1}},fr=new nT,H0=class lI extends Fn{constructor(l){super(),this.chart=l}subscribe(l=lI.DEFAULT_GROUP){let m=this.get(l);return m||(m=new Set,lI.chartsGroups.set(l,m)),m.add(this.chart),this}unsubscribe(l=lI.DEFAULT_GROUP){var m;return(m=this.get(l))==null||m.delete(this.chart),this}getChart(){return this.chart}getGroup(l=lI.DEFAULT_GROUP){let m=this.get(l);return m?Array.from(m):[]}getGroupSiblings(l=lI.DEFAULT_GROUP){return this.getGroup(l).filter(m=>m!==this.chart)}get(l){return lI.chartsGroups.get(l)}};H0.chartsGroups=new Map,H0.DEFAULT_GROUP=Symbol("sync-group-default");var nL=H0,W0=class extends Hi{constructor(){super(...arguments),this.enabled=!1}};T([je(Ri)],W0.prototype,"enabled",2),T([je(yn)],W0.prototype,"tabIndex",2);var U0=["top","right","bottom","left"];function Sv(r){return typeof r=="string"&&U0.includes(r)}function iM(r){let l=[],m=[],D=[...U0];for(let L of r)L instanceof ia&&(Sv(L.position)?m.push(L.position):l.push(L));for(let L of l){let B;do B=D.pop();while(B&&m.includes(B));if(B==null)break;L.position=B}}var nM=["direction","xKey","yKey","sizeKey","angleKey","radiusKey","normalizedTo"];function aM(r,l,m){var Q,ie,ue,be;let D=(ye,Me,Ie)=>{let Oe=[ye];for(let Re of nM)Re in Me&&Me[Re]!=null&&Oe.push(`${Re}=${Me[Re]}`);return Ie!=null&&Ie.seriesGrouping&&Oe.push(`seriesGrouping.groupId=${Ie==null?void 0:Ie.seriesGrouping.groupId}`),Oe.join(";")},L=new Map,B=0;for(let ye of r){let Me=D(ye.type,ye.properties,m==null?void 0:m[B]);L.has(Me)||L.set(Me,[]),(Q=L.get(Me))==null||Q.push([ye,B++])}let H=new Map;B=0;for(let ye of l){let Me=D(ye.type,ye,ye);H.has(Me)||H.set(Me,[]),(ie=H.get(Me))==null||ie.push([ye,B++])}if(![...L.keys()].some(ye=>H.has(ye)))return{status:"no-overlap",oldKeys:L.keys(),newKeys:H.keys()};let X=[];for(let[ye,Me]of H.entries())for(let[Ie,Oe]of Me){let Re=L.get(ye);if(Re==null||Re.length<1){X.push({opts:Ie,targetIdx:Oe,idx:Oe,status:"add"}),L.delete(ye);continue}let[Be,Ue]=Re.shift(),Ne=(ue=m==null?void 0:m[Ue])!=null?ue:{},Qe=Pc(Ne,Ie!=null?Ie:{}),{groupIndex:nt,stackIndex:rt}=(be=Qe==null?void 0:Qe.seriesGrouping)!=null?be:{};nt!=null||rt!=null?X.push({opts:Ie,series:Be,diff:Qe,targetIdx:Oe,idx:Ue,status:"series-grouping"}):Qe?X.push({opts:Ie,series:Be,diff:Qe,targetIdx:Oe,idx:Ue,status:"update"}):X.push({opts:Ie,series:Be,targetIdx:Oe,idx:Ue,status:"no-op"}),Re.length===0&&L.delete(ye)}for(let ye of L.values())for(let[Me,Ie]of ye)X.push({series:Me,idx:Ie,targetIdx:-1,status:"remove"});return{status:"overlap",changes:X}}function fh(r){var m,D;let{series:l}=r;if(l)return(D=(m=l[0])==null?void 0:m.type)!=null?D:"line"}function ao(r){let l=fh(r);return l==null?!1:Mo.isCartesian(l)||tL(l)}function rc(r){let l=fh(r);return l==null?!1:Mo.isPolar(l)||eM(l)}function wv(r){let l=fh(r);return l==null?!1:Mo.isHierarchy(l)||gp(l)}function oM(r){let l=fh(r);return l==null?!1:Mo.isTopology(l)||bv(l)}function rM(r){let l=fh(r);return l==null?!1:Mo.isFlowProportion(l)||Nm(l)}function fb(r){let l=fh(r);return l==null?!1:Mo.isStandalone(l)||Cv(l)}function lu(r){let l=fh(r);return l==null?!1:Mo.isGauge(l)||zm(l)}function vh(r){let l=fh(r);return rc(r)&&l!=="pie"&&l!=="donut"}function ng(r){return r==null?!1:Mo.has(r)}function Tr(r){return r==null?!1:bs.has(r)}var Bo=class extends eh{applyOptions(r){for(let l of this.moduleMap.values())l.module.optionsKey in r&&Xd(l.moduleInstance)&&l.moduleInstance.set(r[l.module.optionsKey])}*legends(){for(let{module:r,moduleInstance:l}of this.moduleMap.values())r.type==="legend"&&(yield{legendType:r.identifier,legend:l})}},Ks="ag-charts-overlay",sM="ag-charts-dark-overlay",Cs=class extends Hi{constructor(r,l){super(),this.className=r,this.defaultMessageId=l,this.enabled=!0}getText(r){var l;return r.t((l=this.text)!=null?l:this.defaultMessageId)}getElement(r,l,m){var D;if((D=this.content)==null||D.remove(),this.focusBox=m,this.renderer){let L=this.renderer();if(L instanceof HTMLElement)this.content=L;else{let B=ta("div");B.innerHTML=L,this.content=B.firstElementChild}}else{let L=ta("div",{display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",height:"100%",margin:"8px",font:"12px Verdana, sans-serif"});L.innerText=this.getText(l),this.content=L,r==null||r.animate({from:0,to:1,id:"overlay",phase:"add",groupId:"opacity",onUpdate(B){L.style.opacity=String(B)},onStop(){L.style.opacity="1"}})}return this.content}removeElement(r=()=>{var m;return(m=this.content)==null?void 0:m.remove()},l){if(this.content){if(l){let{content:m}=this;l.animate({from:1,to:0,phase:"remove",id:"overlay",groupId:"opacity",onUpdate(D){m.style.opacity=String(D)},onStop(){r==null||r()}})}else r==null||r();this.content=void 0,this.focusBox=void 0}}};T([je(Ri)],Cs.prototype,"enabled",2),T([je(Qt,{optional:!0})],Cs.prototype,"text",2),T([je(_a,{optional:!0})],Cs.prototype,"renderer",2);var zc=class extends Hi{constructor(){super(...arguments),this.darkTheme=!1,this.loading=new Cs("ag-charts-loading-overlay","overlayLoadingData"),this.noData=new Cs("ag-charts-no-data-overlay","overlayNoData"),this.noVisibleSeries=new Cs("ag-charts-no-visible-series","overlayNoVisibleSeries"),this.unsupportedBrowser=new Cs("ag-charts-unsupported-browser","overlayUnsupportedBrowser")}getFocusInfo(r){for(let l of[this.loading,this.noData,this.noVisibleSeries,this.unsupportedBrowser])if(l.focusBox!==void 0)return{text:l.getText(r),rect:l.focusBox}}destroy(){this.loading.removeElement(),this.noData.removeElement(),this.noVisibleSeries.removeElement(),this.unsupportedBrowser.removeElement()}};T([je(Ri)],zc.prototype,"darkTheme",2),T([je(Si)],zc.prototype,"loading",2),T([je(Si)],zc.prototype,"noData",2),T([je(Si)],zc.prototype,"noVisibleSeries",2),T([je(Si)],zc.prototype,"unsupportedBrowser",2);function aT(r,l){let{animationDuration:m}=sd.add,D=m*l,L=ta("div",`${Ks}--loading`,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",height:"100%",boxSizing:"border-box",font:"13px Verdana, sans-serif",userSelect:"none",animation:`ag-charts-loading ${D}ms linear 50ms both`}),B=ta("span",{width:"45px",height:"40px",backgroundImage:["linear-gradient(#0000 calc(1 * 100% / 6), #ccc 0 calc(3 * 100% / 6), #0000 0), ","linear-gradient(#0000 calc(2 * 100% / 6), #ccc 0 calc(4 * 100% / 6), #0000 0), ","linear-gradient(#0000 calc(3 * 100% / 6), #ccc 0 calc(5 * 100% / 6), #0000 0)"].join(""),backgroundSize:"10px 400%",backgroundRepeat:"no-repeat",animation:"ag-charts-loading-matrix 1s infinite linear"}),H=ta("p",{marginTop:"1em"});H.innerText=r;let U=ta("div",`${Ks}__loading-background`,{position:"absolute",inset:"0",opacity:"0.5",zIndex:"-1"}),X=ta("style");return X.innerText=["@keyframes ag-charts-loading { from { opacity: 0 } to { opacity: 1 } }","@keyframes ag-charts-loading-matrix {","0% { background-position: 0% 0%, 50% 0%, 100% 0%; }","100% { background-position: 0% 100%, 50% 100%, 100% 100%; }","}"].join(" "),L.replaceChildren(X,B,H,U),L}var Bm=(r=>(r[r.BACKGROUND=0]="BACKGROUND",r[r.ANY_CONTENT=1]="ANY_CONTENT",r))(Bm||{}),vb=(r=>(r[r.FOREGROUND=0]="FOREGROUND",r[r.HIGHLIGHT=1]="HIGHLIGHT",r[r.LABEL=2]="LABEL",r))(vb||{}),xv=(r=>(r[r.EXACT_SHAPE_MATCH=0]="EXACT_SHAPE_MATCH",r[r.NEAREST_NODE=1]="NEAREST_NODE",r[r.AXIS_ALIGNED=2]="AXIS_ALIGNED",r))(xv||{}),K0=.25,aL=.125,cu=class{constructor(r,l,{datum:m},D){this.type=r,this.event=l,this.datum=m,this.seriesId=D.id}},q0=class{constructor(r,l,m){this.series=r,this.seriesGrouping=l,this.oldGrouping=m,this.type="groupingChanged"}},Mv=class extends PI{constructor(r){super(),this.destroyFns=[],this.usesPlacedLabels=!1,this.seriesGrouping=void 0,this.NodeEvent=cu,this.internalId=Y(this),this.contentGroup=new js({name:`${this.internalId}-content`,zIndex:1}),this.highlightGroup=new js({name:`${this.internalId}-highlight`,zIndex:1}),this.annotationGroup=new js({name:`${this.internalId}-annotation`}),this.labelGroup=new js({name:`${this.internalId}-series-labels`}),this.axes={x:void 0,y:void 0},this.directions=["x","y"],this.nodeDataRefresh=!0,this.moduleMap=new eh,this.datumCallbackCache=new Map,this.connectsToYAxis=!1,this._declarationOrder=-1,this.seriesListeners=new Dr,this._pickNodeCache=new ud;let{moduleCtx:l,pickModes:m,directionKeys:D={},directionNames:L={},canHaveAxes:B=!1,usesPlacedLabels:H=!1}=r;this.ctx=l,this.directionKeys=D,this.directionNames=L,this.canHaveAxes=B,this.usesPlacedLabels=H,this.highlightGroup=new js({name:`${this.internalId}-highlight`}),this.highlightNode=this.highlightGroup.appendChild(new Ji({name:"highlightNode",zIndex:0})),this.highlightLabel=this.highlightGroup.appendChild(new Ji({name:"highlightLabel",zIndex:10})),this.pickModes=m}get pickModeAxis(){return"main"}get id(){var r,l;return(l=(r=this.properties)==null?void 0:r.id)!=null?l:this.internalId}get type(){var r;return(r=this.constructor.type)!=null?r:""}get data(){var r;return(r=this._data)!=null?r:this._chartData}set visible(r){this.properties.visible=r,this.ctx.legendManager.toggleItem({enabled:r,seriesId:this.id}),this.ctx.legendManager.update(),this.visibleMaybeChanged()}get visible(){var r;return(r=this.ctx.legendManager.getSeriesEnabled(this.id))!=null?r:this.properties.visible}get hasData(){return this.data!=null&&this.data.length>0}get tooltipEnabled(){var r,l;return(l=(r=this.properties.tooltip)==null?void 0:r.enabled)!=null?l:!1}onDataChange(){this.nodeDataRefresh=!0,this._pickNodeCache.clear()}setOptionsData(r){this._data=r,this.onDataChange()}setChartData(r){this._chartData=r,this.data===r&&this.onDataChange()}onSeriesGroupingChange(r,l){let{internalId:m,type:D,visible:L}=this;r&&this.ctx.seriesStateManager.deregisterSeries(this),l&&this.ctx.seriesStateManager.registerSeries({internalId:m,type:D,visible:L,seriesGrouping:l}),this.fireEvent(new q0(this,l,r))}getBandScalePadding(){return{inner:1,outer:0}}attachSeries(r,l,m){r.appendChild(this.contentGroup),l.appendChild(this.highlightGroup),l.appendChild(this.labelGroup),m==null||m.appendChild(this.annotationGroup)}detachSeries(r,l,m){r==null||r.removeChild(this.contentGroup),l.removeChild(this.highlightGroup),l.removeChild(this.labelGroup),m==null||m.removeChild(this.annotationGroup)}setSeriesIndex(r){return r===this._declarationOrder?!1:(this._declarationOrder=r,this.contentGroup.zIndex=[1,r,0],this.highlightGroup.zIndex=[1,r,1],this.labelGroup.zIndex=[1,r,2],this.annotationGroup.zIndex=r,!0)}renderToOffscreenCanvas(){return!1}addEventListener(r,l){return super.addEventListener(r,l)}addListener(r,l){return this.seriesListeners.addListener(r,l)}dispatch(r,l){this.seriesListeners.dispatch(r,l)}addChartEventListeners(){}destroy(){this.destroyFns.forEach(r=>r()),this.destroyFns=[],this.resetDatumCallbackCache(),this.ctx.seriesStateManager.deregisterSeries(this)}getDirectionValues(r,l){let m=this.resolveKeyDirection(r),D=l==null?void 0:l[m],L=[];if(!D)return L;let B=(...H)=>{for(let U of H)Array.isArray(U)?B(...U):typeof U=="object"?B(...Object.values(U)):L.push(U)};return B(...D.map(H=>this.properties[H])),L}getKeys(r){return this.getDirectionValues(r,this.directionKeys)}getKeyProperties(r){var l;return(l=this.directionKeys[this.resolveKeyDirection(r)])!=null?l:[]}getNames(r){return this.getDirectionValues(r,this.directionNames)}resolveKeyDirection(r){return r}getDomain(r){let l=this.getSeriesDomain(r),m=this.moduleMap.mapModules(D=>D.getDomain(r)).flat();return m.length!==0?l.concat(m):l}getRange(r,l){return this.getSeriesRange(r,l)}markNodeDataDirty(){this.nodeDataRefresh=!0,this._pickNodeCache.clear(),this.visibleMaybeChanged()}visibleMaybeChanged(){this.ctx.seriesStateManager.updateSeries(this)}getOpacity(){let{dimOpacity:l=1,enabled:m=!0}=this.properties.highlightStyle.series;if(!m||l===1)return 1;switch(this.isItemIdHighlighted()){case 0:case 1:return 1;case 2:default:return l}}getStrokeWidth(r){let{strokeWidth:l,enabled:m=!0}=this.properties.highlightStyle.series;if(!m||l===void 0)return r;switch(this.isItemIdHighlighted()){case 1:return l;case 0:case 2:return r}}isItemIdHighlighted(){var l,m;let r=(m=(l=this.ctx.highlightManager)==null?void 0:l.getActiveHighlight())==null?void 0:m.series;return r==null?0:r!==this?2:1}getModuleTooltipParams(){return this.moduleMap.mapModules(r=>r.getTooltipParams()).reduce((r,l)=>Object.assign(r,l),{})}pickNode(r,l,m=!1){let{pickModes:D,pickModeAxis:L,visible:B,contentGroup:H}=this;if(!B||!H.visible||l==="highlight"&&!this.properties.highlight.enabled||l==="highlight-tooltip"&&!this.properties.highlight.enabled)return;let U=1/0;if(l==="tooltip"||l==="highlight-tooltip"){let{tooltip:be}=this.properties;U=typeof be.range=="number"?be.range:1/0,m||(m=be.range==="exact")}else if(l==="event"||l==="context-menu"){let{nodeClickRange:be}=this.properties;U=typeof be=="number"?be:1/0,m||(m=be==="exact")}let X=D.filter(be=>!m||be===0),{x:Q,y:ie}=r,ue=JSON.stringify({x:Q,y:ie,maxDistance:U,selectedPickModes:X});if(this._pickNodeCache.has(ue))return this._pickNodeCache.get(ue);for(let be of X){let ye;switch(be){case 0:ye=this.pickNodeExactShape(r);break;case 1:ye=this.pickNodeClosestDatum(r);break;case 2:ye=L!=null?this.pickNodeMainAxisFirst(r,L==="main-category"):void 0;break}if(ye&&ye.distance<=U)return this._pickNodeCache.set(ue,{pickMode:be,match:ye.datum,distance:ye.distance})}return this._pickNodeCache.set(ue,void 0)}pickNodeExactShape(r){let l=this.contentGroup.pickNode(r.x,r.y);if(l&&l.datum.missing!==!0)return{datum:l.datum,distance:0}}pickNodeClosestDatum(r){throw new Error("AG Charts - Series.pickNodeClosestDatum() not implemented")}pickNodeNearestDistantObject(r,l){let m=tt(r.x,r.y,l);if(m.nearest!==void 0&&m.nearest.datum.missing!==!0)return{datum:m.nearest.datum,distance:Math.sqrt(m.distanceSquared)}}pickNodeMainAxisFirst(r,l){throw new Error("AG Charts - Series.pickNodeMainAxisFirst() not implemented")}getLabelData(){return[]}updatePlacedLabelData(r){}fireNodeClickEvent(r,l){this.fireEvent(new this.NodeEvent("nodeClick",r,l,this))}fireNodeDoubleClickEvent(r,l){this.fireEvent(new this.NodeEvent("nodeDoubleClick",r,l,this))}createNodeContextMenuActionEvent(r,l){return new this.NodeEvent("nodeContextMenuAction",r,l,this)}onLegendInitialState(r,l){let{visible:m=!0,itemId:D,legendItemName:L}=l!=null?l:{};this.toggleSeriesItem(m,r,D,L)}onLegendItemClick(r){let{enabled:l,itemId:m,series:D,legendType:L}=r,B="legendItemName"in this.properties?this.properties.legendItemName:void 0,H="legendItemKey"in this.properties?this.properties.legendItemKey:void 0,U=B!=null&&B===r.legendItemName;(D.id===this.id||U||H!=null)&&this.toggleSeriesItem(l,L,m,B,r)}onLegendItemDoubleClick(r){let{enabled:l,itemId:m,series:D,numVisibleItems:L,legendType:B}=r,H="legendItemName"in this.properties?this.properties.legendItemName:void 0,U="legendItemKey"in this.properties?this.properties.legendItemKey:void 0,X=H!=null&&H===r.legendItemName;D.id===this.id||X||U!=null?this.toggleSeriesItem(!0,B,m,H,r):l&&L===1?this.toggleSeriesItem(!0,B,void 0,H):this.toggleSeriesItem(!1,B,void 0,H)}toggleSeriesItem(r,l,m,D,L){var U;let B=this.id;(r||l!=="category")&&(this.visible=r),this.nodeDataRefresh=!0,this._pickNodeCache.clear();let H={type:"seriesVisibilityChange",seriesId:B,itemId:m,legendItemName:(U=L==null?void 0:L.legendItemName)!=null?U:D,visible:r};this.fireEvent(H),this.ctx.legendManager.toggleItem({enabled:r,seriesId:B,itemId:m,legendItemName:D})}isEnabled(){return this.visible}getModuleMap(){return this.moduleMap}createModuleContext(){return He(ge({},this.ctx),{series:this})}getLabelText(r,l,m=Tc){var D;return r.formatter&&(D=this.ctx.callbackCache.call(r.formatter,ge({seriesId:this.id},l)))!=null?D:m(l.value)}getMarkerStyle(r,l,m=r.getStyle()){var B,H;let D={size:(H=(B=l.datum.point)==null?void 0:B.size)!=null?H:0},L=mn(D,m);if(r.itemStyler){let U=this.ctx.callbackCache.call(r.itemStyler,He(ge(ge({seriesId:this.id},L),l),{datum:l.datum.datum}));return mn(U,L)}return L}updateMarkerStyle(r,l,m,D=l.getStyle(),{applyTranslation:L=!0,selected:B=!0}={}){let{point:H}=m.datum,U=this.getMarkerStyle(l,m,D),X=this.visible&&U.size>0&&H&&!isNaN(H.x)&&!isNaN(H.y);if(L?r.setProperties(He(ge({visible:X},U),{translationX:H==null?void 0:H.x,translationY:H==null?void 0:H.y})):r.setProperties(ge({visible:X},U)),B||(r.fillOpacity*=K0,r.strokeOpacity*=aL),typeof l.shape=="function"&&!r.dirtyPath){r.path.clear(!0),r.updatePath(),r.checkPathDirty();let Q=r.getBBox();if(H!==void 0&&Q.isFinite()){let ie=Q.computeCenter(),[ue,be]=["x","y"].map(Me=>{var Ie;return((Ie=U.strokeWidth)!=null?Ie:0)+Math.abs(ie[Me]-H[Me])}),ye=Math.max(Q.width+ue,Q.height+be);H.focusSize=ye}}}getMinRects(r,l){}get nodeDataDependencies(){var r;return(r=this._nodeDataDependencies)!=null?r:{seriesRectWidth:NaN,seriesRectHeight:NaN}}checkResize(r){let{width:l,height:m}=r!=null?r:{width:NaN,height:NaN},D=r?{seriesRectWidth:l,seriesRectHeight:m}:void 0,L=Pc(this.nodeDataDependencies,D)!=null;return L&&(this._nodeDataDependencies=D,this.markNodeDataDirty()),L}pickFocus(r){}resetDatumCallbackCache(){this.datumCallbackCache.clear()}cachedDatumCallback(r,l){let{datumCallbackCache:m}=this,D=m.get(r);if(D!=null)return D;let L=l();return m.set(r,L),L}};Mv.highlightedZIndex=1e12,T([Cl({changeValue:function(r,l){this.onSeriesGroupingChange(l,r)}})],Mv.prototype,"seriesGrouping",2);function oL(r,l){let m=-l/r;return r!==0&&m>=0&&m<=1?[m]:[]}function RD(r,l,m){if(r===0)return oL(l,m);let D=l*l-4*r*m,L=[];if(D===0){let B=-l/(2*r);B>=0&&B<=1&&L.push(B)}else if(D>0){let B=Math.sqrt(D),H=(-l-B)/(2*r),U=(-l+B)/(2*r);H>=0&&H<=1&&L.push(H),U>=0&&U<=1&&L.push(U)}return L}function PD(r,l,m,D){if(r===0)return RD(l,m,D);let L=l/r,B=m/r,H=D/r,U=(3*B-L*L)/9,X=(9*L*B-27*H-2*L*L*L)/54,Q=U*U*U+X*X,ie=1/3,ue=[];if(Q>=0){let be=Math.sqrt(Q),ye=Math.sign(X+be)*Math.pow(Math.abs(X+be),ie),Me=Math.sign(X-be)*Math.pow(Math.abs(X-be),ie),Ie=Math.abs(Math.sqrt(3)*(ye-Me)/2),Oe=-ie*L+(ye+Me);if(Oe>=0&&Oe<=1&&ue.push(Oe),Ie===0){let Re=-ie*L-(ye+Me)/2;Re>=0&&Re<=1&&ue.push(Re)}}else{let be=Math.acos(X/Math.sqrt(-U*U*U)),ye=ie*L,Me=2*Math.sqrt(-U),Ie=Me*Math.cos(ie*be)-ye,Oe=Me*Math.cos(ie*(be+2*Math.PI))-ye,Re=Me*Math.cos(ie*(be+4*Math.PI))-ye;Ie>=0&&Ie<=1&&ue.push(Ie),Oe>=0&&Oe<=1&&ue.push(Oe),Re>=0&&Re<=1&&ue.push(Re)}return ue}function bd(r,l,m,D,L,B,H,U){let X=(m-r)*(U-B)-(D-l)*(H-L);if(X===0)return 0;let Q=((H-L)*(l-B)-(r-L)*(U-B))/X,ie=((m-r)*(l-B)-(D-l)*(r-L))/X;return Q>=0&&Q<=1&&ie>=0&&ie<=1?1:0}function oT(r,l,m,D,L,B,H,U,X,Q,ie,ue){let be=0,ye=Q-ue,Me=ie-X,Ie=X*(ue-Q)-Q*(ie-X),Oe=Bc(r,m,L,H),Re=Bc(l,D,B,U),Be=ye*Oe[0]+Me*Re[0],Ue=ye*Oe[1]+Me*Re[1],Ne=ye*Oe[2]+Me*Re[2],Qe=ye*Oe[3]+Me*Re[3]+Ie,nt=PD(Be,Ue,Ne,Qe);for(let rt of nt){let ut=rt*rt,Mt=rt*ut,Tt=Oe[0]*Mt+Oe[1]*ut+Oe[2]*rt+Oe[3],_t=Re[0]*Mt+Re[1]*ut+Re[2]*rt+Re[3],Kt;X===ie?Kt=(_t-Q)/(ue-Q):Kt=(Tt-X)/(ie-X),Kt>=0&&Kt<=1&&be++}return be}function Bc(r,l,m,D){return[-r+3*l-3*m+D,3*r-6*l+3*m,-3*r+3*l,r]}function Ya(r,l,m,D,L,B,H,U,X,Q){if(isNaN(r)||isNaN(l))return 0;B&&([L,D]=[D,L]);let ie=(Q-U)/(X-H),ue=U-ie*H,be=Math.pow(ie,2)+1,ye=2*(ie*(ue-l)-r),Me=Math.pow(r,2)+Math.pow(ue-l,2)-Math.pow(m,2),Ie=Math.pow(ye,2)-4*be*Me;if(Ie<0)return 0;let Oe=(-ye+Math.sqrt(Ie))/2/be,Re=(-ye-Math.sqrt(Ie))/2/be,Be=0;return[Oe,Re].forEach(Ue=>{if(!(Ue>=Math.min(H,X)&&Ue<=Math.max(H,X)))return;let Qe=ie*Ue+ue,nt=Ue-r,rt=Qe-l,ut=Math.atan2(rt,nt);zn(ut,D,L)&&Be++}),Be}function ag(r,l,m,D,L){return(1-L)**3*r+3*(1-L)**2*L*l+3*(1-L)*L**2*m+L**3*D}function kv(r,l,m,D,L){if(L<=Math.min(r,D))return r<D?0:1;if(L>=Math.max(r,D))return r<D?1:0;let B=0,H=1,U=NaN;for(let X=0;X<12;X+=1)U=(B+H)/2,ag(r,l,m,D,U)<L?B=U:H=U;return U}function Gc(r,l,m,D,L,B,H,U,X){let Q=(1-X)*r+X*m,ie=(1-X)*l+X*D,ue=(1-X)*m+X*L,be=(1-X)*D+X*B,ye=(1-X)*L+X*H,Me=(1-X)*B+X*U,Ie=(1-X)*Q+X*ue,Oe=(1-X)*ie+X*be,Re=(1-X)*ue+X*ye,Be=(1-X)*be+X*Me,Ue=(1-X)*Ie+X*Re,Ne=(1-X)*Oe+X*Be;return[[{x:r,y:l},{x:Q,y:ie},{x:Ie,y:Oe},{x:Ue,y:Ne}],[{x:Ue,y:Ne},{x:Re,y:Be},{x:ye,y:Me},{x:H,y:U}]]}function yb(r,l,m,D){let L=-r+3*l-3*m+D,B=3*r-6*l+3*m,H=-3*r+3*l;if(L===0){if(B!==0){let X=-H/B;if(X>0&&X<1)return[X]}return[]}let U=B*B-4*L*H;if(U>=0){let X=Math.sqrt(U),Q=(-B+X)/(2*L),ie=(-B-X)/(2*L);return[Q,ie].filter(ue=>ue>0&&ue<1)}return[]}function Av(r,l,m,D,L,B,H,U){let X=yb(r,m,L,H),Q=yb(l,D,B,U);return[...X,...Q]}var vr=class{constructor(){this.path2d=new Path2D,this.previousCommands=[],this.previousParams=[],this.previousClosedPath=!1,this.commands=[],this.params=[],this.openedPath=!1,this.closedPath=!1}isEmpty(){return this.commands.length===0}isDirty(){return this.closedPath!==this.previousClosedPath||this.previousCommands.length!==this.commands.length||this.previousParams.length!==this.params.length||this.previousCommands.toString()!==this.commands.toString()||this.previousParams.toString()!==this.params.toString()}getPath2D(){return this.path2d}moveTo(r,l){this.openedPath=!0,this.path2d.moveTo(r,l),this.commands.push(0),this.params.push(r,l)}lineTo(r,l){this.openedPath?(this.path2d.lineTo(r,l),this.commands.push(1),this.params.push(r,l)):this.moveTo(r,l)}rect(r,l,m,D){this.moveTo(r,l),this.lineTo(r+m,l),this.lineTo(r+m,l+D),this.lineTo(r,l+D),this.closePath()}roundRect(r,l,m,D,L){L=Math.min(L,m/2,D/2),this.moveTo(r,l+L),this.arc(r+L,l+L,L,Math.PI,1.5*Math.PI),this.lineTo(r+L,l),this.lineTo(r+m-L,l),this.arc(r+m-L,l+L,L,1.5*Math.PI,2*Math.PI),this.lineTo(r+m,l+L),this.lineTo(r+m,l+D-L),this.arc(r+m-L,l+D-L,L,0,Math.PI/2),this.lineTo(r+m-L,l+D),this.lineTo(r+L,l+D),this.arc(r+ +L,l+D-L,L,Math.PI/2,Math.PI),this.lineTo(r,l+D-L),this.closePath()}arc(r,l,m,D,L,B){this.openedPath=!0,this.path2d.arc(r,l,m,D,L,B),this.commands.push(2),this.params.push(r,l,m,D,L,B?1:0)}cubicCurveTo(r,l,m,D,L,B){this.openedPath||this.moveTo(r,l),this.path2d.bezierCurveTo(r,l,m,D,L,B),this.commands.push(3),this.params.push(r,l,m,D,L,B)}closePath(){this.openedPath&&(this.path2d.closePath(),this.commands.push(4),this.openedPath=!1,this.closedPath=!0)}clear(r){r&&(this.previousCommands=this.commands,this.previousParams=this.params,this.previousClosedPath=this.closedPath),this.path2d=new Path2D,this.openedPath=!1,this.closedPath=!1,this.commands=[],this.params=[]}isPointInPath(r,l){let m=this.commands,D=this.params,L=m.length,B=-1e4,H=-1e4,U=NaN,X=NaN,Q=0,ie=0,ue=0;for(let be=0,ye=0;be<L;be++)switch(m[be]){case 0:ue+=bd(U,X,Q,ie,B,H,r,l),Q=D[ye++],U=Q,ie=D[ye++],X=ie;break;case 1:ue+=bd(Q,ie,D[ye++],D[ye++],B,H,r,l),Q=D[ye-2],ie=D[ye-1];break;case 3:ue+=oT(Q,ie,D[ye++],D[ye++],D[ye++],D[ye++],D[ye++],D[ye++],B,H,r,l),Q=D[ye-2],ie=D[ye-1];break;case 2:{let Me=D[ye++],Ie=D[ye++],Oe=D[ye++],Re=D[ye++],Be=D[ye++],Ue=!!D[ye++];if(ue+=Ya(Me,Ie,Oe,Re,Be,Ue,B,H,r,l),!isNaN(U)){let Ne=Me+Math.cos(Re)*Oe,Qe=Ie+Math.sin(Re)*Oe;ue+=bd(Q,ie,Ne,Qe,B,H,r,l)}Q=Me+Math.cos(Be)*Oe,ie=Ie+Math.sin(Be)*Oe;break}case 4:ue+=bd(U,X,Q,ie,B,H,r,l);break}return ue%2===1}distanceSquared(r,l){let m=1/0,D=this.commands,L=this.params,B=D.length,H=NaN,U=NaN,X=0,Q=0;for(let ie=0,ue=0;ie<B;ie++)switch(D[ie]){case 0:X=H=L[ue++],Q=U=L[ue++];break;case 1:{let be=L[ue++],ye=L[ue++];m=Hs(r,l,X,Q,be,ye,m);break}case 3:vi.error("Command.Curve distanceSquare not implemented");break;case 2:{let be=L[ue++],ye=L[ue++],Me=L[ue++],Ie=L[ue++],Oe=L[ue++],Re=be+Math.cos(Ie)*Me,Be=ye+Math.sin(Ie)*Me,Ue=!!L[ue++];m=Hs(r,l,X,Q,Re,Be,m),m=rh(r,l,be,ye,Me,Ie,Oe,Ue,m),X=be+Math.cos(Oe)*Me,Q=ye+Math.sin(Oe)*Me;break}case 4:m=Hs(r,l,X,Q,H,U,m);break}return m}getPoints(){let{commands:r,params:l}=this,m=[],D=0;for(let L of r)switch(L){case 0:case 1:m.push({x:l[D++],y:l[D++]});break;case 3:D+=4,m.push({x:l[D++],y:l[D++]});break;case 2:m.push({x:l[D++],y:l[D++]}),D+=4;break;case 4:break}return m}toSVG(r=(l,m)=>({x:l,y:m})){let l=[],{commands:m,params:D}=this,L=(H,...U)=>{l.push(H);for(let X=0;X<U.length;X+=2){let{x:Q,y:ie}=r(U[X],U[X+1]);l.push(Q,ie)}},B=0;for(let H of m)switch(H){case 0:L("M",D[B++],D[B++]);break;case 1:L("L",D[B++],D[B++]);break;case 3:L("C",D[B++],D[B++],D[B++],D[B++],D[B++],D[B++]);break;case 2:{let U=D[B++],X=D[B++],Q=D[B++],ie=D[B++],ue=D[B++],be=D[B++],ye=be?ie-ue:ue-ie;ye<0&&(ye+=Math.ceil(-ye/(2*Math.PI))*2*Math.PI),be&&(ye=-ye);let Me=Math.max(Math.ceil(Math.abs(ye)/(Math.PI/2)),1),Ie=ye/Me,Oe=4/3*Math.tan(Ie/4),Re=l.length===0?"M":"L";L(Re,U+Math.cos(ie)*Q,X+Math.sin(ie)*Q);for(let Be=0;Be<Me;Be+=1){let Ue=ie+Ie*(Be+0),Ne=ie+Ie*(Be+1),Qe=Q*Math.sin(Ue),nt=Q*Math.cos(Ue),rt=Q*Math.sin(Ne),ut=Q*Math.cos(Ne);L("C",U+nt-Oe*Qe,X+Qe+Oe*nt,U+ut+Oe*rt,X+rt-Oe*ut,U+ut,X+rt)}break}case 4:l.push("Z");break}return l.join(" ")}computeBBox(){let{commands:r,params:l}=this,[m,D,L,B]=[1/0,1/0,-1/0,-1/0],[H,U]=[NaN,NaN],[X,Q]=[NaN,NaN],ie=(be,ye,Me)=>{m=Math.min(ye,m),D=Math.min(be,D),L=Math.max(be,L),B=Math.max(ye,B),Me&&([H,U]=[be,ye])},ue=0;for(let be of r)switch(be){case 0:ie(l[ue++],l[ue++],!0),[X,Q]=[H,U];break;case 1:ie(l[ue++],l[ue++],!0);break;case 3:{let ye=l[ue++],Me=l[ue++],Ie=l[ue++],Oe=l[ue++],Re=l[ue++],Be=l[ue++];ie(Re,Be,!0),Av(H,U,ye,Me,Ie,Oe,Re,Be).forEach(Ne=>{let Qe=ag(H,ye,Ie,Re,Ne),nt=ag(U,Me,Oe,Be,Ne);ie(Qe,nt)});break}case 2:{let ye=l[ue++],Me=l[ue++],Ie=l[ue++],Oe=Nn(l[ue++]),Re=Nn(l[ue++]);l[ue++]&&([Oe,Re]=[Re,Oe]);let Ue=(Qe,nt)=>{let rt=ye+Ie*Math.cos(Qe),ut=Me+Ie*Math.sin(Qe);ie(rt,ut,nt)};Ue(Oe),Ue(Re,!0);let Ne=[0,Math.PI/2,Math.PI,3*Math.PI/2];for(let Qe of Ne)(Oe<Re&&Oe<=Qe&&Qe<=Re||Oe>Re&&(Oe<=Qe||Qe<=Re))&&Ue(Qe);break}case 4:[H,U]=[X,Q];break}return new ft(D,m,L-D,B-m)}};function rn(r){let{changeCb:l,convertor:m}=r!=null?r:{};return Lt({type:"path",convertor:m,changeCb:l})}var Dl=class extends Cn{constructor(){super(...arguments),this.path=new vr,this._clipX=NaN,this._clipY=NaN,this.clip=!1,this._dirtyPath=!0}set clipX(r){this._clipX=r,this.dirtyPath=!0}set clipY(r){this._clipY=r,this.dirtyPath=!0}set dirtyPath(r){this._dirtyPath!==r&&(this._dirtyPath=r,r&&this.markDirty())}get dirtyPath(){return this._dirtyPath}checkPathDirty(){var r,l,m,D;this._dirtyPath||(this.dirtyPath=this.path.isDirty()||((l=(r=this.fillShadow)==null?void 0:r.isDirty())!=null?l:!1)||((D=(m=this._clipPath)==null?void 0:m.isDirty())!=null?D:!1))}isPointInPath(r,l){return this.updatePathIfDirty(),this.path.closedPath&&this.path.isPointInPath(r,l)}distanceSquared(r,l){return this.distanceSquaredTransformedPoint(r,l)}svgPathData(r){return this.updatePathIfDirty(),this.path.toSVG(r)}distanceSquaredTransformedPoint(r,l){return this.updatePathIfDirty(),this.path.closedPath&&this.path.isPointInPath(r,l)?0:this.path.distanceSquared(r,l)}isDirtyPath(){return!1}updatePath(){}updatePathIfDirty(){(this.dirtyPath||this.isDirtyPath())&&(this.updatePath(),this.dirtyPath=!1)}preRender(){return this.updatePathIfDirty(),super.preRender(this.path.commands.length)}render(r){var m,D,L;let{ctx:l}=r;if(this.clip&&!isNaN(this._clipX)&&!isNaN(this._clipY)){l.save();let B=this.strokeWidth/2;(m=this._clipPath)!=null||(this._clipPath=new vr),this._clipPath.clear(),this._clipPath.rect(-B,-B,this._clipX+B,this._clipY+B+B),l.clip((D=this._clipPath)==null?void 0:D.getPath2D()),this._clipX>0&&this._clipY>0&&this.drawPath(l),l.restore()}else this._clipPath=void 0,this.drawPath(l);(L=this.fillShadow)==null||L.markClean(),super.render(r)}drawPath(r){this.fillStroke(r,this.path.getPath2D())}toSVG(){if(!this.visible)return;let r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d",this.svgPathData()),this.applySvgFillAttributes(r),this.applySvgStrokeAttributes(r),{elements:[r]}}};Dl.className="Path",T([rn()],Dl.prototype,"clip",2),T([rn()],Dl.prototype,"clipX",1),T([rn()],Dl.prototype,"clipY",1);var pp=class{constructor(r){this.swapChain=r,this.div=Hr().createElement("div"),this.svg=Hr().createElementNS("http://www.w3.org/2000/svg","svg"),this.path=Hr().createElementNS("http://www.w3.org/2000/svg","path"),this.svg.append(this.path),this.element=Hr().createElement("div"),this.element.classList.add("ag-charts-focus-indicator"),this.element.ariaHidden="true",this.element.append(this.svg),this.swapChain.addListener("swap",l=>this.onSwap(l))}updateBounds(r,l,m=0,D=0){if(r!==void 0)if(r instanceof Dl){let L=(B,H)=>{let{x:U,y:X}=Ho.toCanvasPoint(r,B,H);return U-=m,X-=D,{x:U,y:X}};this.path.setAttribute("d",r.svgPathData(L)),this.show(this.svg)}else{if(l==null)oh(this.div,r);else{let L=Math.max(r.x,l.x),B=Math.max(r.y,l.y),H=Math.min(r.x+r.width,l.x+l.width),U=Math.min(r.y+r.height,l.y+l.height);oh(this.div,new ft(L,B,H-L,U-B))}this.show(this.div)}}onSwap(r){r!==this.element.parentElement&&(this.element.remove(),r.appendChild(this.element),this.overrideFocusVisible(this.focusVisible))}show(r){this.element.innerHTML="",this.element.append(r)}overrideFocusVisible(r){this.focusVisible=r;let l={true:"1",false:"0",undefined:""},m=this.element.parentElement;m==null||m.style.setProperty("opacity",l[`${r}`])}isFocusVisible(){let r=this.element.parentElement;return r!=null&&On().getComputedStyle(r).opacity==="1"}},rT=class{constructor(r,l,m,D){this.label1=r,this.label2=l,this.hasFocus=!1,this.skipDispatch=!1,this.listeners={blur:[],focus:[],swap:[]},this.onBlur=L=>!this.skipDispatch&&this.dispatch("blur",L),this.onFocus=L=>!this.skipDispatch&&this.dispatch("focus",L),Ka(this.label1,"id",`${m}-label1`),Ka(this.label2,"id",`${m}-label2`),wl(this.label1,"display","none"),wl(this.label2,"display","none"),this.activeAnnouncer=this.createAnnouncer(D),this.inactiveAnnouncer=this.createAnnouncer(D),Ka(this.activeAnnouncer,"tabindex",0),this.label2.insertAdjacentElement("afterend",this.activeAnnouncer),this.label2.insertAdjacentElement("afterend",this.inactiveAnnouncer),this.swap("")}createAnnouncer(r){let l=ta("div");return l.role=r,l.className="ag-charts-swapchain",l.addEventListener("blur",this.onBlur),l.addEventListener("focus",this.onFocus),l}destroy(){for(let r of[this.activeAnnouncer,this.inactiveAnnouncer])r.removeEventListener("blur",this.onBlur),r.removeEventListener("focus",this.onFocus),r.remove()}focus(){this.activeAnnouncer.focus()}update(r){this.skipDispatch=!0,this.swap(r),this.hasFocus&&this.activeAnnouncer.focus(),this.skipDispatch=!1}addListener(r,l){this.listeners[r].push(l),r==="swap"&&l(this.activeAnnouncer)}dispatch(r,l){r==="focus"?this.hasFocus=!0:r==="blur"&&(this.hasFocus=!1),this.listeners[r].forEach(m=>m(l))}swap(r){let l=this.activeAnnouncer.tabIndex;this.label2.textContent=r,[this.inactiveAnnouncer,this.activeAnnouncer]=[this.activeAnnouncer,this.inactiveAnnouncer],[this.label1,this.label2]=[this.label2,this.label1],Ko(this.inactiveAnnouncer,{"aria-labelledby":this.label1.id,"aria-hidden":!0,tabindex:void 0}),Ko(this.activeAnnouncer,{"aria-labelledby":this.label1.id,"aria-hidden":!1,tabindex:l}),wl(this.inactiveAnnouncer,"pointer-events","none"),wl(this.activeAnnouncer,"pointer-events",void 0),this.dispatch("swap",this.activeAnnouncer)}};function rL(r,l){let m=Qx(l.datum);if(m!=null)return{x:m.canvasX,y:m.canvasY};let D=l.bounds;if(D!=null){if(D instanceof ft){let{x:L,y:B}=D.computeCenter();return{x:r.x+L,y:r.y+B}}return Ho.toCanvas(D).computeCenter()}}function sL(r,l,m,D,L){let{bounds:B,showFocusBox:H,clipFocusBox:U=!0}=m;H&&(l==null||l.updateBounds(B,U?r:void 0,D,L))}function lM({bounds:r}){return r instanceof ft?r:r!=null?r.getBBox():ft.NaN}function bb(r,l){var L;let{x:m,y:D}=(L=rL(r,l))!=null?L:{};if(m!==void 0&&D!==void 0)return{type:"keyboard",canvasX:m,canvasY:D}}function cM(r,l,m,D){let{top:L,right:B,bottom:H,left:U,width:X,height:Q}=D;return U!=null?X!=null?B=m.width-U+X:B!=null&&(X=m.width-U-B):B!=null&&X!=null&&(U=m.width-B-X),L!=null?Q!=null?H=m.height-L-Q:H!=null&&(Q=m.height-H-L):H!=null&&Q!=null&&(L=m.height-H-Q),X==null?Q==null?(X=r,Q=l):X=Math.ceil(r*Q/l):Q==null&&(Q=Math.ceil(l*X/r)),U==null&&(B==null?U=Math.floor((m.width-X)/2):U=m.width-B-X),L==null&&(H==null?L=Math.floor((m.height-Q)/2):L=m.height-Q-H),{x:U,y:L,width:X,height:Q}}var Cb=null;function Sb(r){if(r!=null)return r===""?"":(Cb!=null||(Cb=ta("div")),Cb.textContent=String(r),Cb.innerHTML)}var Y0=["ArrowDown","ArrowUp","Circle","Cross","Diamond","Heart","MapPin","Plus","Square","Star","Triangle"],sT=Object.freeze({x:.5,y:.5}),dM=class extends Dl{constructor(){super(...arguments),this.x=0,this.y=0,this.size=12}isBuiltIn(){var r;return Y0.includes((r=this.constructor.className)!=null?r:"")}computeBBox(){if(!this.isBuiltIn())return this.updatePathIfDirty(),this.path.computeBBox();let{x:r,y:l,size:m}=this,{center:D}=this.constructor;return new ft(r-m*D.x,l-m*D.y,m,m)}applyPath(r,l){let{path:m}=this,{x:D,y:L}=this;m.clear();for(let{x:B,y:H,t:U}of l)D+=B*r,L+=H*r,U==="move"?m.moveTo(D,L):m.lineTo(D,L);m.closePath()}executeFill(r,l){if(l)return super.executeFill(r,l)}executeStroke(r,l){if(l)return super.executeStroke(r,l)}};T([rn()],dM.prototype,"x",2),T([rn()],dM.prototype,"y",2),T([rn({convertor:Math.abs})],dM.prototype,"size",2);var Ss=class extends Cm(gx(Sm(dM))){};Ss.center=sT;var og=class extends Ss{updatePath(){let{x:r,y:l,path:m,size:D}=this,L=D/2;m.clear(),m.arc(r,l,L,0,Math.PI*2),m.closePath()}};og.className="Circle";var Dv=class oZ extends Ss{updatePath(){let l=this.size/4.2;super.applyPath(l,oZ.moves)}};Dv.className="Cross",Dv.moves=[{x:-1,y:0,t:"move"},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1},{x:1,y:1},{x:-1,y:1},{x:-1,y:-1},{x:-1,y:1},{x:-1,y:-1}];var rg=Dv,uM=class rZ extends Ss{updatePath(){let l=this.size/2;super.applyPath(l,rZ.moves)}};uM.className="Diamond",uM.moves=[{x:0,y:-1,t:"move"},{x:1,y:1},{x:-1,y:1},{x:-1,y:-1},{x:1,y:-1}];var mp=uM,LD=class sZ extends Ss{static rad(l){return l/180*Math.PI}updatePath(){let{x:l,path:m,size:D}=this,{rad:L}=sZ,B=D/4,H=this.y+B/2;m.clear(),m.arc(l-B,H-B,B,L(130),L(330)),m.arc(l+B,H-B,B,L(220),L(50)),m.lineTo(l,H+B),m.closePath()}};LD.className="Heart";var lL=LD,hM=class extends Ss{updatePath(){let{path:r,x:l,y:m}=this,D=this.size,L=.5,B=1;r.clear(),r.moveTo(l+(.15625-L)*D,m+(.34375-B)*D),r.cubicCurveTo(l+(.15625-L)*D,m+(.151491-B)*D,l+(.307741-L)*D,m+(0-B)*D,l+(.5-L)*D,m+(0-B)*D),r.cubicCurveTo(l+(.692259-L)*D,m+(0-B)*D,l+(.84375-L)*D,m+(.151491-B)*D,l+(.84375-L)*D,m+(.34375-B)*D),r.cubicCurveTo(l+(.84375-L)*D,m+(.493824-B)*D,l+(.784625-L)*D,m+(.600181-B)*D,l+(.716461-L)*D,m+(.695393-B)*D),r.cubicCurveTo(l+(.699009-L)*D,m+(.719769-B)*D,l+(.681271-L)*D,m+(.743104-B)*D,l+(.663785-L)*D,m+(.766105-B)*D),r.cubicCurveTo(l+(.611893-L)*D,m+(.834367-B)*D,l+(.562228-L)*D,m+(.899699-B)*D,l+(.528896-L)*D,m+(.980648-B)*D),r.cubicCurveTo(l+(.524075-L)*D,m+(.992358-B)*D,l+(.512663-L)*D,m+(1-B)*D,l+(.5-L)*D,m+(1-B)*D),r.cubicCurveTo(l+(.487337-L)*D,m+(1-B)*D,l+(.475925-L)*D,m+(.992358-B)*D,l+(.471104-L)*D,m+(.980648-B)*D),r.cubicCurveTo(l+(.487337-L)*D,m+(1-B)*D,l+(.475925-L)*D,m+(.992358-B)*D,l+(.471104-L)*D,m+(.980648-B)*D),r.cubicCurveTo(l+(.437772-L)*D,m+(.899699-B)*D,l+(.388107-L)*D,m+(.834367-B)*D,l+(.336215-L)*D,m+(.766105-B)*D),r.cubicCurveTo(l+(.318729-L)*D,m+(.743104-B)*D,l+(.300991-L)*D,m+(.719769-B)*D,l+(.283539-L)*D,m+(.695393-B)*D),r.cubicCurveTo(l+(.215375-L)*D,m+(.600181-B)*D,l+(.15625-L)*D,m+(.493824-B)*D,l+(.15625-L)*D,m+(.34375-B)*D),r.closePath()}};hM.className="MapPin",hM.center={x:.5,y:1};var gM=class lZ extends Ss{updatePath(){let l=this.size/3;super.applyPath(l,lZ.moves)}};gM.className="Plus",gM.moves=[{x:-.5,y:-.5,t:"move"},{x:0,y:-1},{x:1,y:0},{x:0,y:1},{x:1,y:0},{x:0,y:1},{x:-1,y:0},{x:0,y:1},{x:-1,y:0},{x:0,y:-1},{x:-1,y:0},{x:0,y:-1}];var lT=gM,wb=class extends Ss{updatePath(){let{path:r,x:l,y:m}=this,D=this.size/2;r.clear(),r.moveTo(this.align(l-D),this.align(m-D)),r.lineTo(this.align(l+D),this.align(m-D)),r.lineTo(this.align(l+D),this.align(m+D)),r.lineTo(this.align(l-D),this.align(m+D)),r.closePath()}};wb.className="Square";var OD=class extends Ss{updatePath(){let{x:r,y:l,path:m,size:D}=this,L=5,B=D/2,H=B/2,U=Math.PI/2;m.clear();for(let X=0;X<L*2;X++){let Q=X%2===0?B:H,ie=X*Math.PI/L-U,ue=r+Math.cos(ie)*Q,be=l+Math.sin(ie)*Q;m.lineTo(ue,be)}m.closePath()}};OD.className="Star";var pM=class cZ extends Ss{updatePath(){let l=this.size*1.1;super.applyPath(l,cZ.moves)}};pM.className="Triangle",pM.moves=[{x:0,y:-.48,t:"move"},{x:.5,y:.87},{x:-1,y:0}];var sg=pM,mM={circle:og,cross:rg,diamond:mp,heart:lL,pin:hM,plus:lT,square:wb,star:OD,triangle:sg},FD=Object.keys(mM);function Ev(r){return typeof r=="string"&&FD.includes(r)}function xb(r){return class extends Ss{updatePath(){let{path:m,x:D,y:L,size:B}=this;r({path:m,x:D,y:L,size:B})}}}function Cd(r="square"){return Ev(r)?mM[r]:typeof r=="function"?xb(r):wb}function Iv(r,l,m=l*(5/3)){var X,Q;let D=new Ji,L=Math.min(r.marker.strokeWidth,2),B=Math.min((Q=(X=r.line)==null?void 0:X.strokeWidth)!=null?Q:0,2),H=Math.max(r.marker.enabled===!1?0:l,r.line==null?0:m),U=Math.max(r.marker.enabled===!1?0:l,B);if(r.line!=null){let{stroke:ie,strokeOpacity:ue,lineDash:be}=r.line,ye=new Ar;ye.x1=0,ye.y1=U/2,ye.x2=H,ye.y2=U/2,ye.stroke=ie,ye.strokeOpacity=ue,ye.strokeWidth=B,ye.lineDash=be,D.append(ye)}if(r.marker.enabled!==!1){let{shape:ie,fill:ue,fillOpacity:be,stroke:ye,strokeOpacity:Me}=r.marker,Ie=Cd(ie),Oe=new Ie,{center:Re}=Ie;Oe.size=l,Oe.translationX=H/2+(Re.x-.5)*l,Oe.translationY=U/2+(Re.y-.5)*l,Oe.fill=ue,Oe.fillOpacity=be,Oe.stroke=ye,Oe.strokeOpacity=Me,Oe.strokeWidth=L;let Be=H/2+(Re.x-.5)*l,Ue=U/2+(Re.y-.5)*l;if(typeof ie=="string"){let Ne=l/(l+L);Oe.translationX=Be,Oe.translationY=Ue,Oe.scalingX=Ne,Oe.scalingY=Ne}else{let Ne=Oe.getBBox(),Qe=Math.min(H/(Ne.width+L),U/(Ne.height+L),1);Oe.translationX=Be*Qe-Ne.x*Qe+(H-Ne.width*Qe)/2,Oe.translationY=Ue*Qe-Ne.y*Qe+(U-Ne.height*Qe)/2,Oe.scalingX=Qe,Oe.scalingY=Qe}D.append(Oe)}return Ji.toSVG(D,H,U)}var Mb=.1,_D=200,X0=12,ND=.5,Z0=class extends Dr{constructor(){super(...arguments),this.x1=NaN,this.y1=NaN,this.x=NaN,this.y=NaN,this.vx=0,this.vy=0,this.t0=NaN,this.animationFrameHandle=void 0}reset(){this.x=NaN,this.y=NaN,this.animationFrameHandle!=null&&(cancelAnimationFrame(this.animationFrameHandle),this.animationFrameHandle=void 0)}update(r,l){if(Number.isNaN(this.x)||Number.isNaN(this.y)){this.x=r,this.y=l,this.vx=0,this.vy=0,this.emitUpdate(),this.animationFrameHandle!=null&&(cancelAnimationFrame(this.animationFrameHandle),this.animationFrameHandle=void 0);return}this.x1=r,this.y1=l,this.t0=Date.now(),this.animationFrameHandle==null&&(this.animationFrameHandle=requestAnimationFrame(this.onFrame.bind(this)))}onFrame(){this.animationFrameHandle=void 0;let{x1:r,y1:l,t0:m}=this,D=Date.now(),L=D-m;this.t0=D;let B=.001,H=Math.ceil(L/(B*1e3))|0,{x:U,y:X,vx:Q,vy:ie}=this;for(let ue=0;ue<H;ue+=1){let be=U-r,ye=X-l,Me=-(_D*be+X0*Q)/Mb,Ie=-(_D*ye+X0*ie)/Mb;Q+=Me*B,ie+=Ie*B,U+=Q*B,X+=ie*B}Math.hypot(U-r,X-l)<ND?(this.x=this.x1,this.y=this.y1,this.vx=0,this.vy=0):(this.x=U,this.y=X,this.vx=Q,this.vy=ie,this.animationFrameHandle=requestAnimationFrame(this.onFrame.bind(this))),this.emitUpdate()}emitUpdate(){this.dispatch("update",{type:"update",x:this.x,y:this.y})}},qs="ag-charts-tooltip",kb="ag-charts-tooltip--dark";function zD(r){var m;if(typeof r=="string")return"";let l=[];return r.heading!=null&&l.push(r.heading),r.title!=null&&l.push(r.title),(m=r.data)==null||m.forEach(D=>{var L;l.push((L=D.label)!=null?L:D.fallbackLabel,D.value)}),l.join("; ")}function du(r,l,m){let D="";r==null?D+=`<span class="${qs}-label">${Sb(l)}</span>`:(D+=`<span class="${qs}-label">${Sb(r)}</span>`,D+=" ",D+=`<span class="${qs}-value">${Sb(l)}</span>`);let L=[`${qs}-row`];return m&&L.push(`${qs}-row--inline`),D=`<div class="${L.join(" ")}">${D}</div>`,D}function Gm(r){var m,D,L,B,H;if(typeof r=="string")return r;let l="";if((r.heading==null||r.title==null)&&((m=r.data)==null?void 0:m.length)===1&&r.data[0].label==null&&r.data[0].value!=null){let U=r.data[0];l+=du((D=r.heading)!=null?D:r.title,U.value,!1)}else{let U=r.title==null&&((L=r.data)==null?void 0:L.length)===1;r.heading!=null&&(l+=`<span class="${qs}-heading">${Sb(r.heading)}</span>`,l+=" ");let X=r.symbol==null?void 0:Iv(r.symbol,12);X!=null&&(r.title!=null||(B=r.data)!=null&&B.length)&&(l+=`<span class="${qs}-symbol">${X}</span>`),r.title!=null&&(l+=`<span class="${qs}-title">${Sb(r.title)}</span>`,l+=" "),(H=r.data)==null||H.forEach(Q=>{var ie;l+=du((ie=Q.label)!=null?ie:Q.fallbackLabel,Q.value,U),l+=" "})}return l=`<div class="${qs}-content">${l.trimEnd()}</div>`,l}var Vm=class extends Hi{constructor(){super(...arguments),this.type="pointer",this.xOffset=0,this.yOffset=0}};T([je(Xn(["pointer","node","top","right","bottom","left","top-left","top-right","bottom-right","bottom-left",{value:"sparkline",undocumented:!0},{value:"sparkline-",undocumented:!0}],"a position type"))],Vm.prototype,"type",2),T([je(yn)],Vm.prototype,"xOffset",2),T([je(yn)],Vm.prototype,"yOffset",2);var yh=class extends Hi{constructor(){super(),this.enabled=!0,this.delay=0,this.range=void 0,this.wrapping="hyphenate",this.position=new Vm,this.darkTheme=!1,this.bounds="extended",this.destroyFns=[],this.springAnimation=new Z0,this.enableInteraction=!1,this.wrapTypes=["always","hyphenate","on-space","never"],this.showTimeout=0,this._showArrow=!0,this._compact=!1,this._visible=!1,this.positionParams=void 0,this.destroyFns.push(this.springAnimation.addListener("update",this.updateTooltipPosition.bind(this)))}get interactive(){return this.enableInteraction}setup(r){"togglePopover"in On().HTMLElement.prototype&&(this.element=r.addChild("canvas-overlay",qs),this.element.setAttribute("popover","manual"),this.element.className=qs)}destroy(r){r.removeChild("canvas-overlay",qs)}isVisible(){return this._visible}updateTooltipPosition(){var Qe,nt,rt,ut,Mt,Tt,_t,Kt;let{element:r,positionParams:l}=this;if(r==null||l==null)return;let{canvasRect:m,relativeRect:D,meta:L}=l,{x:B,y:H}=this.springAnimation,U=(nt=(Qe=L.position)==null?void 0:Qe.type)!=null?nt:this.position.type,X=(ut=(rt=L.position)==null?void 0:rt.xOffset)!=null?ut:0,Q=(Tt=(Mt=L.position)==null?void 0:Mt.yOffset)!=null?Tt:0,ie=D.x,ue=D.y,be=D.width-r.clientWidth-1+ie,ye=D.height-r.clientHeight+ue,Me=this.getTooltipBounds({positionType:U,canvasX:B,canvasY:H,yOffset:Q,xOffset:X,canvasRect:m}),Ie=cM(r.clientWidth,r.clientHeight,D,Me);U==="sparkline"&&(Ie.x<=ie||Ie.x>=be)&&(Me=this.getTooltipBounds({positionType:"sparkline-constrained",canvasX:B,canvasY:H,yOffset:Q,xOffset:X,canvasRect:m}),Ie=cM(r.clientWidth,r.clientHeight,D,Me));let Oe=st(ie,Ie.x,be),Re=st(ue,Ie.y,ye),Be=Oe!==Ie.x||Re!==Ie.y,Ue=(U==="node"||U==="pointer")&&!Be&&!X&&!Q,Ne=(Kt=(_t=L.showArrow)!=null?_t:this.showArrow)!=null?Kt:Ue;this.updateShowArrow(Ne),this.updateCompact(U==="sparkline"||U==="sparkline-constrained"),r.style.transform=`translate(${Oe}px, ${Re}px)`}show(r,l,m,D,L=!1){let{element:B}=this;if(B!=null&&D!=null)B.innerHTML=Gm(D);else if(B==null||B.innerHTML===""){this.toggle(!1);return}let H={x:r.x-l.x,y:r.y-l.y,width:r.width,height:r.height};this.positionParams={canvasRect:l,relativeRect:H,meta:m},this.springAnimation.update(m.canvasX,m.canvasY),B.style.top=`${l.top}px`,B.style.left=`${l.left}px`,m.enableInteraction?(this.enableInteraction=!0,B.style.pointerEvents="auto",B.removeAttribute("aria-hidden")):(this.enableInteraction=!1,B.style.pointerEvents="none",B.setAttribute("aria-hidden","true")),this.delay>0&&!L?(this.toggle(!1),this.showTimeout=setTimeout(()=>{this.toggle(!0)},this.delay)):this.toggle(!0)}hide(){this.springAnimation.reset(),this.toggle(!1)}toggle(r){var D;if(!((D=this.element)!=null&&D.isConnected))return;this._visible=r;let{classList:l}=this.element,m=(L,B)=>l.toggle(`${qs}--${L}`,B);r||clearTimeout(this.showTimeout),m("no-interaction",!this.enableInteraction),m("arrow",this._showArrow),m("compact",this._compact),l.toggle(kb,this.darkTheme),this.element.togglePopover(r),r&&this.updateTooltipPosition();for(let L of this.wrapTypes)l.toggle(`${qs}--wrap-${L}`,L===this.wrapping)}updateShowArrow(r){this._showArrow=r}updateCompact(r){this._compact=r}getTooltipBounds(r){if(!this.element)return{};let{positionType:l,canvasX:m,canvasY:D,yOffset:L,xOffset:B,canvasRect:H}=r,{clientWidth:U,clientHeight:X}=this.element,Q={width:U,height:X};switch(l){case"node":case"pointer":return Q.top=D+L-X-8,Q.left=m+B-U/2,Q;case"top":return Q.top=L,Q.left=H.width/2-U/2+B,Q;case"right":return Q.top=H.height/2-X/2+L,Q.left=H.width-U/2+B,Q;case"left":return Q.top=H.height/2-X/2+L,Q.left=B,Q;case"bottom":return Q.top=H.height-X+L,Q.left=H.width/2-U/2+B,Q;case"top-left":return Q.top=L,Q.left=B,Q;case"top-right":return Q.top=L,Q.left=H.width-U+B,Q;case"bottom-right":return Q.top=H.height-X+L,Q.left=H.width-U+B,Q;case"bottom-left":return Q.top=H.height-X+L,Q.left=B,Q;case"sparkline":return Q.top=D+L-X/2,Q.left=m+B+8,Q;case"sparkline-constrained":return Q.top=D+L-X/2,Q.left=m+B-8-U,Q}}};T([je(Ri)],yh.prototype,"enabled",2),T([je(Ri,{optional:!0})],yh.prototype,"showArrow",2),T([je(bi)],yh.prototype,"delay",2),T([je(Jg,{optional:!0})],yh.prototype,"range",2),T([je(Fy)],yh.prototype,"wrapping",2),T([je(Si)],yh.prototype,"position",2),T([je(Ri)],yh.prototype,"darkTheme",2),T([je(Xn(["extended","canvas"]))],yh.prototype,"bounds",2);function uu(r,l,m,D){var H;let L=[...r].reverse(),B;for(let U of L){if(!U.visible||!U.contentGroup.visible)continue;let{match:X,distance:Q}=(H=U.pickNode(l,m,D))!=null?H:{};if(!(!X||Q==null)&&((!B||B.distance>Q)&&(B={series:U,distance:Q,datum:X}),Q===0))break}return B}function $0(r,l){if(r==null||l.length===0)return[!1,!1];let m=r.valueOf(),D=l[0],L=l[l.length-1];if(typeof D=="string")return[m===D,m===L];let B=D.valueOf(),H=L.valueOf();return B>H&&([B,H]=[H,B]),[m===B,m===H]}function fp(r,l,m,D,L){let{xValue:B,yValue:H}=r,[U,X]=$0(H,L),[Q,ie]=$0(B,D);return{datum:r,xKey:l,yKey:m,xValue:B,yValue:H,first:Q,last:ie,min:U,max:X}}function Q0(r,[l,m],D){var H,U;let L=(H=vm(0,r-1,X=>{var ie;let Q=(ie=D(X))==null?void 0:ie[1];return!Number.isFinite(Q)||Q>l}))!=null?H:0,B=(U=dx(0,r-1,X=>{var ie;let Q=(ie=D(X))==null?void 0:ie[0];return!Number.isFinite(Q)||Q<m}))!=null?U:r-1;return B=Math.min(B+1,r),[L,B]}var fM=class extends Fn{constructor(r){super(),this.chart=r,this.id=Y(this),this.series=[],this.highlight={pendingHoverEvent:void 0,appliedHoverEvent:void 0,stashedHoverEvent:void 0},this.tooltip={lastHover:void 0},this.hoverDevice="mouse",this.focus={sortedSeries:[],series:void 0,seriesIndex:0,datumIndex:0,datum:void 0},this.hoverScheduler=nb(()=>{if(!(!this.tooltip.lastHover&&!this.highlight.pendingHoverEvent)){if(this.chart.getUpdateType()<=4){this.hoverScheduler.schedule();return}this.highlight.pendingHoverEvent&&this.handleHoverHighlight(!1),this.tooltip.lastHover&&this.handleHoverTooltip(this.tooltip.lastHover,!1)}});let l=41,m=34,D=63,{domManager:L}=r.ctx,B="series-area",H=L.addChild(B,"series-area-aria-label1"),U=L.addChild(B,"series-area-aria-label2");this.seriesWidget=new fs(L.getParent(B)),this.chartWidget=new fs(L.getParent("canvas-proxy")),this.containerWidget=new fs(L.getParent("canvas-container")),r.ctx.regionManager.initRegions(this.containerWidget,this.seriesWidget),this.swapChain=new rT(H,U,this.id,"img"),this.swapChain.addListener("blur",()=>this.onBlur(m)),this.swapChain.addListener("focus",()=>this.onFocus(m)),this.focusIndicator=new pp(this.swapChain),this.focusIndicator.overrideFocusVisible(r.mode==="integrated"?!1:void 0),this.chart.ctx.keyNavManager.focusIndicator=this.focusIndicator;let X=r.ctx.regionManager.getRegion("series");this.destroyFns.push(()=>r.ctx.domManager.removeChild(B,"series-area-aria-label1"),()=>r.ctx.domManager.removeChild(B,"series-area-aria-label2"),X.addListener("drag",Q=>this.onHoverLikeEvent(Q),l),X.addListener("hover",Q=>this.onHover(Q),l),X.addListener("leave",()=>this.onLeave(),l),r.ctx.animationManager.addListener("animation-start",()=>this.clearAll()),r.ctx.domManager.addListener("resize",()=>this.clearAll()),r.ctx.highlightManager.addListener("highlight-change",Q=>this.changeHighlightDatum(Q)),r.ctx.keyNavManager.addListener("nav-hori",Q=>this.onNavHori(Q),m),r.ctx.keyNavManager.addListener("nav-vert",Q=>this.onNavVert(Q),m),r.ctx.keyNavManager.addListener("submit",Q=>this.onSubmit(Q),m),r.ctx.layoutManager.addListener("layout:complete",Q=>this.layoutComplete(Q)),r.ctx.regionManager.listenAll("contextmenu",Q=>this.onContextMenu(Q),D),r.ctx.regionManager.listenAll("click",Q=>this.onClick(Q)),r.ctx.regionManager.listenAll("dblclick",Q=>this.onClick(Q)),r.ctx.updateService.addListener("pre-scene-render",()=>this.preSceneRender()),r.ctx.zoomManager.addListener("zoom-change",()=>this.clearAll()),r.ctx.zoomManager.addListener("zoom-pan-start",()=>this.clearAll()))}dataChanged(){var l;var r;(l=(r=this.highlight).stashedHoverEvent)!=null||(r.stashedHoverEvent=this.highlight.appliedHoverEvent),this.chart.ctx.tooltipManager.removeTooltip(this.id),this.focusIndicator.updateBounds(void 0),this.clearHighlight()}preSceneRender(){this.focusIndicator.isFocusVisible()&&this.handleSeriesFocus(0,0,!0),this.highlight.stashedHoverEvent!=null&&(this.highlight.pendingHoverEvent=this.highlight.stashedHoverEvent,this.highlight.stashedHoverEvent=void 0,this.handleHoverHighlight(!0)),this.tooltip.lastHover!=null&&this.handleHoverTooltip(this.tooltip.lastHover,!0)}update(r,l){this.chart.ctx.updateService.update(r,l)}seriesChanged(r){this.focus.sortedSeries=[...r].sort((l,m)=>{var B,H;let D=(B=l.properties.focusPriority)!=null?B:1/0,L=(H=m.properties.focusPriority)!=null?H:1/0;return D===L&&([D,L]=[l._declarationOrder,m._declarationOrder]),D<L?-1:D>L?1:0}),this.series=r}layoutComplete(r){this.seriesRect=r.series.rect,this.hoverRect=r.series.paddedRect,this.seriesWidget.setBounds(r.series.paddedRect),this.chartWidget.setBounds(r.chart)}onContextMenu(r){let{Default:l,ContextMenu:m}=Px;if(r.region==="root"){this.chart.ctx.interactionManager.getState()&(l|m)&&this.chart.ctx.contextMenuRegistry.dispatchContext("all",r,{});return}let D,L;if(this.focusIndicator.isFocusVisible())D=this.chart.ctx.highlightManager.getActiveHighlight(),D&&this.seriesRect&&D.midPoint&&(L=Ho.toCanvasPoint(D.series.contentGroup,D.midPoint.x,D.midPoint.y));else if(this.chart.ctx.interactionManager.getState()&(l|m)){let H=uu(this.series,{x:r.regionX,y:r.regionY},"context-menu");H&&(this.chart.ctx.highlightManager.updateHighlight(this.id),D=H.datum)}let B=D==null?void 0:D.series;this.clearAll(),this.chart.ctx.contextMenuRegistry.dispatchContext("series-area",r,{pickedSeries:B,pickedNode:D},L)}onLeave(){this.chart.ctx.cursorManager.updateCursor(this.id),this.focusIndicator.isFocusVisible()||this.clearAll()}onHover(r){this.hoverDevice="mouse",this.onHoverLikeEvent(r)}onHoverLikeEvent(r){if(Zw(r,"drag")&&(this.tooltip.lastHover=r),this.highlight.pendingHoverEvent=r,this.hoverScheduler.schedule(),this.chart.ctx.interactionManager.getState()===32){let{regionX:l,regionY:m}=r,D=uu(this.series,{x:l,y:m},"event");D!=null&&D.series.hasEventListener("nodeClick")||D!=null&&D.series.hasEventListener("nodeDoubleClick")?this.chart.ctx.cursorManager.updateCursor(this.id,"pointer"):this.chart.ctx.cursorManager.updateCursor(this.id)}}onClick(r){var m;if(this.hoverDevice="mouse",this.onHoverLikeEvent(r),(m=this.seriesRect)!=null&&m.containsPoint(r.canvasX,r.canvasY)&&this.checkSeriesNodeClick(r)){this.update(4),r.preventDefault();return}let l={type:r.type==="click"?"click":"doubleClick",event:r.sourceEvent};this.chart.fireEvent(l)}onFocus(r){this.chart.ctx.interactionManager.getState()&r&&(this.hoverDevice=this.focusIndicator.isFocusVisible()?"keyboard":"mouse",this.handleFocus(0,0))}onBlur(r){this.chart.ctx.interactionManager.getState()&r&&(this.hoverDevice="mouse",this.clearAll(),this.focusIndicator.overrideFocusVisible(void 0))}onNavVert(r){this.hoverDevice="keyboard",this.focus.seriesIndex+=r.delta,this.handleFocus(r.delta,0),r.preventDefault()}onNavHori(r){this.hoverDevice="keyboard",this.focus.datumIndex+=r.delta,this.handleFocus(0,r.delta),r.preventDefault()}onSubmit(r){let{series:l,datum:m}=this.focus,D=r.sourceEvent.sourceEvent;l!==void 0&&m!==void 0?l.fireNodeClickEvent(D,m):this.chart.fireEvent({type:"click",event:D}),r.preventDefault()}checkSeriesNodeClick(r){let l={x:r.regionX,y:r.regionY};r.region!=="series"&&(l=Ho.fromCanvasPoint(this.chart.seriesRoot,r.canvasX,r.canvasY));let m=uu(this.series,l,"event");return m==null?!1:r.type==="click"?(m.series.fireNodeClickEvent(r.sourceEvent,m.datum),!0):r.type==="dblclick"?(r.preventZoomDblClick=m.distance===0,m.series.fireNodeDoubleClickEvent(r.sourceEvent,m.datum),!0):!1}handleFocus(r,l){let m=this.chart.overlays.getFocusInfo(this.chart.ctx.localeManager);m==null?this.handleSeriesFocus(r,l):this.focusIndicator.updateBounds(new ft(0,0,m.rect.width,m.rect.height))}handleSeriesFocus(r,l,m=!1){if(this.chart.chartType==="hierarchy"){this.handleHierarchySeriesFocus(r,l,m);return}let{focus:D,seriesRect:L}=this,B=D.sortedSeries.filter(Q=>Q.visible);if(B.length===0)return;D.seriesIndex=st(0,D.seriesIndex,B.length-1),D.series=B[D.seriesIndex];let{datumIndex:H,seriesIndex:U}=D,X=D.series.pickFocus({datumIndex:H,datumIndexDelta:l,otherIndex:U,otherIndexDelta:r,seriesRect:L});this.updatePickedFocus(X,m)}handleHierarchySeriesFocus(r,l,m){this.focus.series=this.focus.sortedSeries[0];let{focus:{series:D,seriesIndex:L,datumIndex:B},seriesRect:H}=this;if(D==null)return;let U=D.pickFocus({datumIndex:B,datumIndexDelta:l,otherIndex:L,otherIndexDelta:r,seriesRect:H});this.updatePickedFocus(U,m)}updatePickedFocus(r,l){let{focus:m,hoverRect:D,seriesRect:L}=this;if(r===void 0||m.series===void 0||D===void 0)return;let{datum:B,datumIndex:H}=r;if(m.datumIndex=H,m.datum=B,this.focusIndicator.isFocusVisible()&&this.chart.ctx.animationManager.reset(),this.focusIndicator.isFocusVisible()){let X=lM(r);if(L!=null){let ue=X.clone();ue.x+=L.x,ue.y+=L.y,X=ue}let{x:Q,y:ie}=X.computeCenter();D.containsPoint(Q,ie)||this.chart.ctx.zoomManager.panToBBox(this.id,D,X)}sL(L!=null?new ft(0,0,L.width,L==null?void 0:L.height):void 0,this.focusIndicator,r,L==null?void 0:L.x,L==null?void 0:L.y);let U=bb(D,r);if(U!==void 0&&this.hoverDevice==="keyboard"){this.tooltip.lastHover=void 0,this.highlight.appliedHoverEvent=void 0,this.highlight.pendingHoverEvent=void 0,this.highlight.stashedHoverEvent=void 0;let X=m.series.getTooltipContent(B),Q=kl.makeTooltipMeta(U,B);this.chart.ctx.highlightManager.updateHighlight(this.id,B),this.chart.ctx.tooltipManager.updateTooltip(this.id,Q,X),l||this.swapChain.update(this.getDatumAriaText(B,X))}}getDatumAriaText(r,l){var D,L,B;let m=l==null?"":zD(l);return this.chart.ctx.localeManager.t("ariaAnnounceHoverDatum",{datum:(B=(L=(D=r.series).getDatumAriaText)==null?void 0:L.call(D,r,m))!=null?B:m})}clearHighlight(){this.highlight.pendingHoverEvent=void 0,this.highlight.appliedHoverEvent=void 0,this.chart.ctx.highlightManager.updateHighlight(this.id)}clearTooltip(){this.chart.ctx.tooltipManager.removeTooltip(this.id),this.tooltip.lastHover=void 0}clearAll(){this.clearHighlight(),this.clearTooltip(),this.focusIndicator.updateBounds(void 0)}handleHoverHighlight(r){var Q;this.highlight.appliedHoverEvent=this.highlight.pendingHoverEvent,this.highlight.pendingHoverEvent=void 0;let l=this.highlight.appliedHoverEvent;if(!l)return;let m=this.chart.ctx.interactionManager.getState();if(m!==32&&m!==8&&m!==1)return;let{canvasX:D,canvasY:L}=l;if(r?this.chart.ctx.animationManager.isActive():!((Q=this.hoverRect)!=null&&Q.containsPoint(D,L))){this.clearHighlight();return}let B={x:l.regionX,y:l.regionY};l.region!=="series"&&(B=Ho.fromCanvasPoint(this.chart.seriesRoot,D,L));let{range:H}=this.chart.highlight,U=H==="tooltip"?"highlight-tooltip":"highlight",X=uu(this.series,B,U);if(X){this.chart.ctx.highlightManager.updateHighlight(this.id,X.datum),this.hoverDevice="mouse";return}this.chart.ctx.highlightManager.updateHighlight(this.id)}handleHoverTooltip(r,l){var ye;let m=this.chart.ctx.interactionManager.getState();if(m!==32&&m!==8&&m!==1)return;let{canvasX:D,canvasY:L,regionX:B,regionY:H}=r,U=r.sourceEvent.target;if(l?this.chart.ctx.animationManager.isActive():!((ye=this.hoverRect)!=null&&ye.containsPoint(D,L))){this.hoverDevice=="mouse"&&this.clearTooltip();return}if(U&&this.chart.tooltip.interactive&&this.chart.ctx.domManager.isManagedChildDOMElement(U,"canvas-overlay",qs))return;let X={x:B,y:H};r.region!=="series"&&(X=Ho.fromCanvasPoint(this.chart.seriesRoot,D,L));let Q=uu(this.series,X,"tooltip");if(!Q){this.hoverDevice=="mouse"&&this.clearTooltip();return}this.hoverDevice="mouse";let ie=Q.series.getTooltipContent(Q.datum);if(this.chart.tooltip.enabled&&Q.series.tooltipEnabled&&ie!=null){let Me=kl.makeTooltipMeta(r,Q.datum);this.chart.ctx.tooltipManager.updateTooltip(this.id,Me,ie)}}changeHighlightDatum(r){var U,X;let l=new Set,{series:m=void 0,datum:D}=(U=r.currentHighlight)!=null?U:{},{series:L=void 0,datum:B}=(X=r.previousHighlight)!=null?X:{};L&&l.add(L),m&&l.add(m),L!=null&&L.properties.cursor&&B&&this.chart.ctx.cursorManager.updateCursor(L.id),m!=null&&m.properties.cursor&&(m==null?void 0:m.properties.cursor)!=="default"&&D&&this.chart.ctx.cursorManager.updateCursor(m.id,m.properties.cursor),m==null||L==null?this.update(4):this.update(4,{seriesToUpdate:l})}},vM=30,yM=class{constructor(r){this.seriesRoot=r,this.groups=new Map,this.series=new Map,this.expectedSeriesCount=1,this.mode="normal"}setSeriesCount(r){this.expectedSeriesCount=r}requestGroup(r){var ie;let{internalId:l,type:m,contentGroup:D,seriesGrouping:L}=r,{groupIndex:B=l}=L!=null?L:{},H=this.series.get(l);if(H!=null)throw new Error(`AG Charts - series already has an allocated layer: ${JSON.stringify(H)}`);this.series.size===0&&(this.mode=this.expectedSeriesCount>=vM?"aggressive-grouping":"normal");let U=this.groups.get(m);U==null&&(U=new Map,this.groups.set(m,U));let X=this.lookupIdx(B),Q=U.get(X);return Q==null&&(Q={type:m,id:X,seriesIds:[],group:this.seriesRoot.appendChild(new Ji({name:`${(ie=r.contentGroup.name)!=null?ie:m}-managed-layer`,zIndex:r.contentGroup.zIndex,renderToOffscreenCanvas:!1}))},U.set(X,Q)),this.series.set(l,{layerState:Q,seriesConfig:r}),Q.seriesIds.push(l),Q.group.appendChild(D),Q.group}changeGroup(r){var U,X;let{internalId:l,seriesGrouping:m,type:D,contentGroup:L,oldGrouping:B}=r,{groupIndex:H=l}=m!=null?m:{};(X=(U=this.groups.get(D))==null?void 0:U.get(H))!=null&&X.seriesIds.includes(l)||(this.series.has(l)&&this.releaseGroup({internalId:l,seriesGrouping:B,type:D,contentGroup:L}),this.requestGroup(r))}releaseGroup(r){var B,H,U;let{internalId:l,contentGroup:m,type:D}=r;if(!this.series.has(l))throw new Error(`AG Charts - series doesn't have an allocated layer: ${l}`);let L=(B=this.series.get(l))==null?void 0:B.layerState;L&&(L.seriesIds=L.seriesIds.filter(X=>X!==l),L.group.removeChild(m)),(L==null?void 0:L.seriesIds.length)===0?(this.seriesRoot.removeChild(L.group),(H=this.groups.get(L.type))==null||H.delete(L.id),(U=this.groups.get(D))==null||U.delete(l)):L!=null&&L.seriesIds.length>0&&(L.group.zIndex=this.getLowestSeriesZIndex(L.seriesIds)),this.series.delete(l)}updateLayerCompositing(){this.groups.forEach(r=>{r.forEach(l=>{let{group:m,seriesIds:D}=l,L;if(D.length===0)L=!1;else if(D.length>1)L=!0;else{let B=this.series.get(D[0]);L=(B==null?void 0:B.seriesConfig.renderToOffscreenCanvas())===!0}m.renderToOffscreenCanvas=L,m.zIndex=this.getLowestSeriesZIndex(D)})})}lookupIdx(r){return this.mode==="normal"?r:typeof r=="string"&&(r=Number(r.split("-").at(-1)),!r)?0:Math.floor(st(0,r/this.expectedSeriesCount,1)*vM)}destroy(){this.groups.forEach(r=>{r.forEach(l=>{this.seriesRoot.removeChild(l.group)})}),this.groups.clear(),this.series.clear()}getLowestSeriesZIndex(r){let l=r.reduce((m,D)=>{let L=this.series.get(D),B=L==null?void 0:L.seriesConfig.contentGroup.zIndex;return m==null||B==null?B:mx(m,B)<=0?m:B},void 0);return l!=null?l:1}},cL=class{constructor(r,l,m,D,L){this.chart=r,this.dataService=l,this.updateService=m,this.zoomManager=D,this.animationManager=L,this.dirtyZoom=!1,this.dirtyDataSource=!1,this.lastAxisZooms=new Map,this.destroyFns=[],this.destroyFns.push(this.dataService.addListener("data-source-change",()=>this.onDataSourceChange()),this.dataService.addListener("data-load",()=>this.onDataLoad()),this.dataService.addListener("data-error",()=>this.onDataError()),this.updateService.addListener("update-complete",()=>this.onUpdateComplete()),this.zoomManager.addListener("zoom-change",()=>this.onZoomChange()))}destroy(){this.destroyFns.forEach(r=>r())}onDataLoad(){this.animationManager.skip(),this.updateService.update(1)}onDataError(){this.updateService.update(3)}onDataSourceChange(){this.dirtyDataSource=!0}onUpdateComplete(){!this.dirtyZoom&&!this.dirtyDataSource||this.updateWindow()}onZoomChange(){this.dirtyZoom=!0}updateWindow(){if(!this.dataService.isLazy())return;let r=this.getValidAxis(),l,m=!0;if(r){let D=this.zoomManager.getAxisZoom(r.id);l=this.getAxisWindow(r,D),m=this.shouldRefresh(r,D)}this.dirtyZoom=!1,this.dirtyDataSource=!1,m&&this.dataService.load({windowStart:l==null?void 0:l.min,windowEnd:l==null?void 0:l.max})}getValidAxis(){return this.chart.axes.find(r=>r.type==="time")}shouldRefresh(r,l){if(this.dirtyDataSource)return!0;if(!this.dirtyZoom)return!1;let m=this.lastAxisZooms.get(r.id);return m&&l.min===m.min&&l.max===m.max?!1:(this.lastAxisZooms.set(r.id,l),!0)}getAxisWindow(r,l){var H,U;let m=(U=(H=r.scale).getDomain)==null?void 0:U.call(H);if(!l||!m||m.length===0||isNaN(Number(m[0])))return;let D=Number(m[1])-Number(m[0]),L=new Date(Number(m[0])+D*l.min),B=new Date(Number(m[0])+D*l.max);return{min:L,max:B}}},vp=/^((?!chrome|android).)*safari/i,Ab=/Version\/(\d+(\.\d+)?)/,bM=/Chrome/,J0=/Chrome\/(\d+)/,CM=/Edg/,cT=/OPR/;function dL(){var l,m,D,L;let{userAgent:r}=On().navigator;if(vp.test(r)){let B=parseFloat((m=(l=Ab.exec(r))==null?void 0:l[1])!=null?m:"0"),H=Math.floor(B)>16;return H||vi.warnOnce(`Unsupported Safari version: ${B} ; ${r}`),!H}else if(bM.test(r)&&!CM.test(r)&&!cT.test(r)){let B=parseInt((L=(D=J0.exec(r))==null?void 0:D[1])!=null?L:"0",10),H=B>126;return H||vi.warnOnce(`Unsupported Chrome version: ${B} ; ${r}`),!H}return!1}var eS=class{constructor(r,l,m,D,L,B,H){this.chartLike=r,this.overlays=l,this.dataService=m,this.layoutManager=D,this.localeManager=L,this.animationManager=B,this.domManager=H,this.destroyFns=[],this.overlayElem=this.domManager.addChild("canvas-overlay","overlay"),this.overlayElem.role="status",this.overlayElem.ariaAtomic="false",this.overlayElem.ariaLive="polite",this.overlayElem.classList.toggle(Ks),this.destroyFns.push(this.layoutManager.addListener("layout:complete",U=>this.onLayoutComplete(U)))}destroy(){this.destroyFns.forEach(r=>r()),this.domManager.removeStyles("overlays"),this.domManager.removeChild("canvas-overlay","overlay")}onLayoutComplete({series:{rect:r}}){let l=this.dataService.isLoading(),m=this.chartLike.series.some(Q=>Q.hasData),D=this.chartLike.series.some(Q=>Q.visible);this.overlays.darkTheme?this.overlayElem.classList.add(sM):this.overlayElem.classList.remove(sM),this.overlayElem.style.left=`${r.x}px`,this.overlayElem.style.top=`${r.y}px`,this.overlayElem.style.width=`${r.width}px`,this.overlayElem.style.height=`${r.height}px`;let L=l,B=!l&&!m,H=m&&!D,U=this.overlays.unsupportedBrowser.enabled&&dL();L?this.showOverlay(this.overlays.loading,r):this.hideOverlay(this.overlays.loading),B?this.showOverlay(this.overlays.noData,r):this.hideOverlay(this.overlays.noData),H?this.showOverlay(this.overlays.noVisibleSeries,r):this.hideOverlay(this.overlays.noVisibleSeries),U?this.showOverlay(this.overlays.unsupportedBrowser,r):this.hideOverlay(this.overlays.unsupportedBrowser);let X=L||B||H||U;Ka(this.overlayElem,"aria-hidden",!X)}showOverlay(r,l){if(!r.enabled)return;let m=r.getElement(this.animationManager,this.localeManager,l);this.overlayElem.appendChild(m)}hideOverlay(r){r.removeElement(()=>{this.overlayElem.innerText="\xA0"},this.animationManager)}},Sd=Ma.create(!0,"opts"),jm=class extends Hi{constructor(){super(...arguments),this.padding=new op(0)}};T([je(Ri,{optional:!0})],jm.prototype,"clip",2),T([je(Si)],jm.prototype,"padding",2);var qr=class dZ extends PI{constructor(l,m){var ie,ue,be,ye,Me;var D;super(),this.id=Y(this),this.seriesRoot=new js({name:`${this.id}-series-root`,zIndex:4}),this.annotationRoot=new js({name:`${this.id}-annotation-root`,zIndex:8}),this.titleGroup=new Ji({name:"titles",zIndex:12}),this.debug=Ma.create(),this.extraDebugStats={},this.data=[],this._firstAutoSize=!0,this._autoSizeNotify=new Em,this.padding=new op(20),this.seriesArea=new jm,this.keyboard=new W0,this.mode="standalone",this.chartCaptions=new la,this.suppressFieldDotNotation=!1,this.destroyed=!1,this._destroyFns=[],this.skipSync=!1,this.chartAnimationPhase="initial",this.modulesManager=new Bo,this.processors=[],this.queuedUserOptions=[],this.queuedChartOptions=[],this.firstApply=!0,this._pendingFactoryUpdatesCount=0,this._performUpdateSkipAnimations=!1,this._performUpdateNotify=new Em,this.performUpdateType=7,this.runningUpdateType=7,this.updateShortcutCount=0,this.seriesToUpdate=new Set,this.updateMutex=new _P,this.updateRequestors={},this.performUpdateTrigger=uh(({count:Ie})=>{this.destroyed||this.updateMutex.acquire(async()=>{try{await this.performUpdate(Ie)}catch(Oe){vi.error("update error",Oe)}}).catch(Oe=>vi.errorOnce(Oe))}),this._performUpdateSplits={},this.axes=[],this.series=[],this._cachedData=void 0,this.onSeriesNodeClick=Ie=>{this.fireEvent(He(ge({},Ie),{type:"seriesNodeClick"}))},this.onSeriesNodeDoubleClick=Ie=>{this.fireEvent(He(ge({},Ie),{type:"seriesNodeDoubleClick"}))},this.onSeriesVisibilityChange=Ie=>{this.fireEvent(Ie)},this.seriesGroupingChanged=Ie=>{if(!(Ie instanceof q0))return;let{series:Oe,seriesGrouping:Re,oldGrouping:Be}=Ie;Oe.contentGroup.isRoot()||this.seriesLayerManager.changeGroup({internalId:Oe.internalId,type:Oe.type,contentGroup:Oe.contentGroup,renderToOffscreenCanvas:()=>Oe.renderToOffscreenCanvas(),seriesGrouping:Re,oldGrouping:Be})},this.chartOptions=l;let L=m==null?void 0:m.scene,B=(ue=(ie=m==null?void 0:m.container)!=null?ie:l.processedOptions.container)!=null?ue:void 0,H=(be=m==null?void 0:m.styleContainer)!=null?be:l.specialOverrides.styleContainer,U=new Ji({name:"root"});U.visible=!1,U.append(this.seriesRoot),U.append(this.annotationRoot),U.append(this.titleGroup),this.titleGroup.append(this.title.node),this.titleGroup.append(this.subtitle.node),this.titleGroup.append(this.footnote.node),this.tooltip=new yh,this.seriesLayerManager=new yM(this.seriesRoot),this.mode=(ye=l.userOptions.mode)!=null?ye:this.mode;let X=this.ctx=new JP(this,{chartType:this.getChartType(),scene:L,root:U,container:B,styleContainer:H,syncManager:new nL(this),pixelRatio:l.specialOverrides.overrideDevicePixelRatio,updateCallback:(Ie,Oe)=>this.update(Ie,Oe),updateMutex:this.updateMutex});this._destroyFns.push(X.domManager.addListener("resize",()=>this.parentResize(X.domManager.containerSize))),this.overlays=new zc,(Me=(D=this.overlays.loading).renderer)!=null||(D.renderer=()=>aT(this.overlays.loading.getText(X.localeManager),X.animationManager.defaultDuration)),this.processors=[new cL(this,X.dataService,X.updateService,X.zoomManager,X.animationManager),new eS(this,this.overlays,X.dataService,X.layoutManager,X.localeManager,X.animationManager,X.domManager)],this.highlight=new xD,this.container=B;let Q=this.getModuleContext();X.domManager.setDataBoolean("animating",!1),this.seriesAreaManager=new fM(this.initSeriesAreaDependencies()),this._destroyFns.push(X.layoutManager.registerElement(0,Ie=>{Ie.layoutBox.shrink(this.padding.toJson()),this.chartCaptions.positionCaptions(Ie)}),X.layoutManager.addListener("layout:complete",Ie=>this.chartCaptions.positionAbsoluteCaptions(Ie)),X.dataService.addListener("data-load",Ie=>{this.data=Ie.data}),this.title.registerInteraction(Q,"beforebegin"),this.subtitle.registerInteraction(Q,"beforebegin"),this.footnote.registerInteraction(Q,"afterend"),X.interactionManager.addListener("page-left",()=>this.destroy()),X.animationManager.addListener("animation-frame",()=>{this.update(6)}),X.animationManager.addListener("animation-start",()=>X.domManager.setDataBoolean("animating",!0)),X.animationManager.addListener("animation-stop",()=>X.domManager.setDataBoolean("animating",!1)),X.zoomManager.addListener("zoom-change",()=>{this.series.forEach(Oe=>{var Re;return(Re=Oe.animationState)==null?void 0:Re.transition("updateData")});let Ie=this.chartAnimationPhase!=="initial";this.update(3,{forceNodeDataRefresh:!0,skipAnimations:Ie})})),this.parentResize(X.domManager.containerSize)}static getInstance(l){return dZ.chartsInstances.get(l)}get canvasElement(){return this.ctx.scene.canvas.element}download(l,m){this.ctx.scene.download(l,m)}getCanvasDataURL(l){return this.ctx.scene.getDataURL(l)}toSVG(){return this.ctx.scene.toSVG()}getOptions(){var l;return(l=this.queuedUserOptions.at(-1))!=null?l:this.chartOptions.userOptions}getChartOptions(){var l;return(l=this.queuedChartOptions.at(-1))!=null?l:this.chartOptions}initSeriesAreaDependencies(){let{ctx:l,tooltip:m,highlight:D,overlays:L,seriesRoot:B,mode:H}=this,U=this.getChartType();return{fireEvent:this.fireEvent.bind(this),getUpdateType:()=>this.performUpdateType,chartType:U,ctx:l,tooltip:m,highlight:D,overlays:L,seriesRoot:B,mode:H}}getModuleContext(){return this.ctx}getCaptionText(){return[this.title,this.subtitle,this.footnote].filter(l=>l.enabled&&l.text).map(l=>l.text).join(". ")}getAriaLabel(){return this.ctx.localeManager.t("ariaAnnounceChart",{seriesCount:this.series.length})}resetAnimations(){this.chartAnimationPhase="initial";for(let l of this.series)l.resetAnimation(this.chartAnimationPhase);for(let l of this.axes)l.resetAnimation(this.chartAnimationPhase);this.animationRect=void 0,this.ctx.animationManager.reset()}skipAnimations(){this.ctx.animationManager.skipCurrentBatch(),this._performUpdateSkipAnimations=!0}detachAndClear(){this.container=void 0,this.ctx.scene.clear()}destroy(l){if(this.destroyed)return;let m=l==null?void 0:l.keepTransferableResources,D;return this.performUpdateType=7,this._destroyFns.forEach(L=>L()),this.processors.forEach(L=>L.destroy()),this.tooltip.destroy(this.ctx.domManager),this.overlays.destroy(),this.modulesManager.destroy(),m?(this.ctx.scene.strip(),D={container:this.container,scene:this.ctx.scene}):(this.ctx.scene.destroy(),this.container=void 0),this.destroySeries(this.series),this.seriesLayerManager.destroy(),this.axes.forEach(L=>L.destroy()),this.axes=[],this.animationRect=void 0,this.ctx.destroy(),this.destroyed=!0,Object.freeze(this),D}requestFactoryUpdate(l){this.destroyed||(this._pendingFactoryUpdatesCount++,this.updateMutex.acquire(async()=>{if(!this.destroyed)try{await l(this)}finally{this.destroyed||this._pendingFactoryUpdatesCount--}}).catch(m=>vi.errorOnce(m)))}update(l=0,m){var U,X;let{forceNodeDataRefresh:D=!1,skipAnimations:L,seriesToUpdate:B=this.series,newAnimationBatch:H}=m!=null?m:{};D&&this.series.forEach(Q=>Q.markNodeDataDirty());for(let Q of B)this.seriesToUpdate.add(Q);if(L&&(this.ctx.animationManager.skipCurrentBatch(),this._performUpdateSkipAnimations=!0),H&&this.ctx.animationManager.isActive()&&(this._performUpdateSkipAnimations=!0),this.skipSync=(U=m==null?void 0:m.skipSync)!=null?U:!1,this.debug.check()){let Q=(X=new Error().stack)!=null?X:"<unknown>";Q=Q.replace(/\([^)]*/g,""),this.updateRequestors[Q]=l}l<this.performUpdateType&&(this.performUpdateType=l,this.ctx.domManager.setDataBoolean("updatePending",!0),this.performUpdateTrigger.schedule(m==null?void 0:m.backOffMs))}async performUpdate(l){var ie;let{performUpdateType:m,extraDebugStats:D,_performUpdateSplits:L,ctx:B}=this,H=[...this.seriesToUpdate];this.performUpdateType=7,this.seriesToUpdate.clear(),this.runningUpdateType=m,this.updateShortcutCount===0&&m<6&&(B.animationManager.startBatch(this._performUpdateSkipAnimations),B.animationManager.onBatchStop(()=>this.chartAnimationPhase="ready")),this.debug("Chart.performUpdate() - start",F0[m]);let U=performance.now();(ie=L.start)!=null||(L.start=U);let X=ue=>{var be;(be=L[ue])!=null||(L[ue]=0),L[ue]+=performance.now()-U,U=performance.now()};switch(m){case 0:if(this.checkUpdateShortcut(0))break;this.ctx.updateService.dispatchPreDomUpdate(),this.updateDOM();case 1:if(this.checkUpdateShortcut(1))break;await this.updateData(),X("\u2B07\uFE0F");case 2:if(this.checkUpdateShortcut(2))break;await this.processData(),this.seriesAreaManager.dataChanged(),X("\u{1F3ED}");case 3:if(await this.checkFirstAutoSize(),this.checkUpdateShortcut(3))break;await this.processLayout(),X("\u2316");case 4:{if(this.checkUpdateShortcut(4))break;await this.updateSeries(H),X("\u{1F914}"),this.updateAriaLabels(),this.seriesLayerManager.updateLayerCompositing()}case 5:if(this.checkUpdateShortcut(5))break;B.updateService.dispatchPreSceneRender(this.getMinRects()),X("\u2196");case 6:if(this.checkUpdateShortcut(6))break;B.animationManager.endBatch(),D.updateShortcutCount=this.updateShortcutCount,B.scene.render({debugSplitTimes:L,extraDebugStats:D,seriesRect:this.seriesRect}),this.extraDebugStats={};for(let ue of Object.keys(L))delete L[ue];this.ctx.domManager.incrementDataCounter("sceneRenders");case 7:this.updateShortcutCount=0,this.updateRequestors={},this._performUpdateSkipAnimations=!1,B.animationManager.endBatch()}this.destroyed||(B.updateService.dispatchUpdateComplete(this.getMinRects()),this.ctx.domManager.setDataBoolean("updatePending",!1),this.runningUpdateType=7),this._performUpdateNotify.notify();let Q=performance.now();this.debug("Chart.performUpdate() - end",{chart:this,durationMs:Math.round((Q-L.start)*100)/100,count:l,performUpdateType:F0[m]})}updateThemeClassName(){let l="ag-charts-theme-",m=[`${l}default`,`${l}default-dark`],D=m[0],L=!1,{theme:B}=this.chartOptions.processedOptions;for(;typeof B!="string"&&B!=null;)B=B.baseTheme;typeof B=="string"&&(D=B.replace("ag-",l),L=B.includes("-dark")),m.includes(D)||(D=L?m[1]:m[0]),this.ctx.domManager.setThemeClass(D)}updateDOM(){this.updateThemeClassName();let{enabled:l,tabIndex:m}=this.keyboard;this.ctx.domManager.setTabGuardIndex(l?m!=null?m:0:-1)}updateAriaLabels(){this.ctx.domManager.updateCanvasLabel(this.getAriaLabel())}checkUpdateShortcut(l){return this.destroyed?!0:this.updateShortcutCount>3?(vi.warn(`exceeded the maximum number of simultaneous updates (${3+1}), discarding changes and rendering`,this.updateRequestors),!1):this.performUpdateType<=l?(this.updateShortcutCount++,!0):!1}async checkFirstAutoSize(){this.width!=null&&this.height!=null||this._lastAutoSize||await this._autoSizeNotify.await(500)||this.debug("Chart.checkFirstAutoSize() - timeout for first size update.")}onAxisChange(l,m){m==null&&l.length===0||this.ctx.axisManager.updateAxes(m!=null?m:[],l)}onSeriesChange(l,m){var L,B,H;let D=(L=m==null?void 0:m.filter(U=>!l.includes(U)))!=null?L:[];this.destroySeries(D),(B=this.seriesLayerManager)==null||B.setSeriesCount(l.length);for(let U of l){if(m!=null&&m.includes(U))continue;let X=this.seriesLayerManager.requestGroup(U);U.attachSeries(X,this.seriesRoot,this.annotationRoot);let Q=this;U.chart={get mode(){return Q.mode},get isMiniChart(){return!1},get seriesRect(){return Q.seriesRect}},U.resetAnimation(this.chartAnimationPhase),this.addSeriesListeners(U),U.addChartEventListeners()}(H=this.seriesAreaManager)==null||H.seriesChanged(l)}destroySeries(l){l==null||l.forEach(m=>{m.removeEventListener("nodeClick",this.onSeriesNodeClick),m.removeEventListener("nodeDoubleClick",this.onSeriesNodeDoubleClick),m.removeEventListener("groupingChanged",this.seriesGroupingChanged),m.destroy(),this.seriesLayerManager.releaseGroup(m),m.detachSeries(void 0,this.seriesRoot,this.annotationRoot),m.chart=void 0})}addSeriesListeners(l){this.hasEventListener("seriesNodeClick")&&l.addEventListener("nodeClick",this.onSeriesNodeClick),this.hasEventListener("seriesNodeDoubleClick")&&l.addEventListener("nodeDoubleClick",this.onSeriesNodeDoubleClick),this.hasEventListener("seriesVisibilityChange")&&l.addEventListener("seriesVisibilityChange",this.onSeriesVisibilityChange),l.addEventListener("groupingChanged",this.seriesGroupingChanged)}assignSeriesToAxes(){for(let l of this.axes)l.boundSeries=this.series.filter(m=>m.axes[l.direction]===l)}assignAxesToSeries(){let l=Zl(this.axes,m=>m.direction);for(let m of this.series)for(let D of m.directions){let L=l[D];if(!L){vi.warnOnce(`no available axis for direction [${D}]; check series and axes configuration.`);return}let B=m.getKeys(D),H=L.find(U=>!U.keys.length||B.some(X=>U.keys.includes(X)));if(!H){vi.warnOnce(`no matching axis for direction [${D}] and keys [${B}]; check series and axes configuration.`);return}m.axes[D]=H}}parentResize(l){var H;if(l==null||this.width!=null&&this.height!=null)return;let{width:m,height:D}=l;if(m=Math.floor(m),D=Math.floor(D),m===0&&D===0)return;let[L=0,B=0]=(H=this._lastAutoSize)!=null?H:[];L===m&&B===D||(this._lastAutoSize=[m,D],this.resize("SizeMonitor",{}))}resize(l,m){var ue,be,ye,Me;let{scene:D,animationManager:L}=this.ctx,{inWidth:B,inHeight:H,inMinWidth:U,inMinHeight:X}=m;this.ctx.domManager.setSizeOptions(U!=null?U:this.minWidth,X!=null?X:this.minHeight,B!=null?B:this.width,H!=null?H:this.height);let Q=(be=B!=null?B:this.width)!=null?be:(ue=this._lastAutoSize)==null?void 0:ue[0],ie=(Me=H!=null?H:this.height)!=null?Me:(ye=this._lastAutoSize)==null?void 0:ye[1];if(this.debug(`Chart.resize() from ${l}`,{width:Q,height:ie,stack:new Error().stack}),!(Q==null||ie==null||!ea(Q)||!ea(ie))&&D.resize(Q,ie)){L.reset();let Ie=!0;(this.width==null||this.height==null)&&this._firstAutoSize&&(Ie=!1,this._firstAutoSize=!1),this.update(3,{forceNodeDataRefresh:!0,skipAnimations:Ie}),this._autoSizeNotify.notify()}}async updateData(){this.series.forEach(m=>m.setChartData(this.data));let l=this.modulesManager.mapModules(m=>{var D;return(D=m.updateData)==null?void 0:D.call(m,this.data)});await Promise.all(l)}async processData(){this.series.some(L=>L.canHaveAxes)&&(this.assignAxesToSeries(),this.assignSeriesToAxes());for(let L of this.axes)L.processData();let l=new ED(this.mode,this.suppressFieldDotNotation),m=this.series.map(L=>(L.resetDatumCallbackCache(),L.processData(l))),D=this.modulesManager.mapModules(L=>{var B;return(B=L.processData)==null?void 0:B.call(L,l)});this._cachedData=l.execute(this._cachedData),await Promise.all([...m,...D]),this.updateLegends()}updateLegends(l){for(let{legend:m,legendType:D}of this.modulesManager.legends())D==="category"?this.setCategoryLegendData(l):this.setLegendData(D,m)}setCategoryLegendData(l){var H,U;var m;let{ctx:{legendManager:D,stateManager:L}}=this;l&&this.series.forEach(X=>{let Q=l.find(ie=>ie.seriesId===X.id);X.onLegendInitialState("category",Q)});let B=this.series.flatMap(X=>{let Q=X.getLegendData("category");return D.updateData(X.id,Q),Q});if(l){L.setStateAndRestore(D,l);return}if(this.mode!=="integrated"){let X={},Q=new Map(this.series.map(ie=>[ie.id,ie.type]));for(let{seriesId:ie,symbol:{marker:ue},label:be}of B.filter(ye=>!ye.hideInLegend)){if(ue.fill==null)continue;let ye=Q.get(ie),Me=(H=X[ye])!=null?H:X[ye]={};(U=Me[m=be.text])!=null||(Me[m]=ue.fill),Me[be.text]!==ue.fill&&vi.warnOnce(`legend item '${be.text}' has multiple fill colors, this may cause unexpected behaviour.`)}}D.update()}setLegendData(l,m){m.data=this.series.filter(D=>D.properties.showInLegend).flatMap(D=>D.getLegendData(l))}async processLayout(){var B;let l=this.animationRect,{width:m,height:D}=this.ctx.scene,L=this.ctx.layoutManager.createContext(m,D);await this.performLayout(L),l&&!((B=this.animationRect)!=null&&B.equals(l))&&this.ctx.animationManager.skipCurrentBatch(),this.debug("Chart.performUpdate() - seriesRect",this.seriesRect)}async updateSeries(l){let{seriesRect:m}=this;await Promise.all(l.map(D=>D.update({seriesRect:m}))),this.ctx.seriesLabelLayoutManager.updateLabels(this.series.filter(D=>D.visible&&D.usesPlacedLabels),this.padding,this.seriesRect)}async waitForUpdate(l=1e4,m=!1){let D=performance.now();for(;this._pendingFactoryUpdatesCount>0||this.performUpdateType!==7||this.runningUpdateType!==7;){if(this._pendingFactoryUpdatesCount>0&&await this.updateMutex.waitForClearAcquireQueue(),(this.performUpdateType!==7||this.runningUpdateType!==7)&&await this._performUpdateNotify.await(),performance.now()-D>l){let L=`Chart.waitForUpdate() timeout of ${l} reached - first chart update taking too long.`;if(m)throw new Error(L);vi.warnOnce(L)}Cx()&&await RI()}}getMinRects(){let{width:l,height:m}=this.ctx.scene,D=this.series.map(ie=>ie.getMinRects(l,m)).filter(cr);if(D.length===0)return;let L=0,B=0,H=0,U=0;for(let{minRect:ie,minVisibleRect:ue}of D)L=Math.max(L,ie.width),B=Math.max(B,ie.height),H=Math.max(H,ue.width),U=Math.max(U,ue.height);let X=new ft(0,0,L,B),Q=X.clone();return H>0&&U>0&&(Q=new ft(0,0,H,U)),{minRect:X,minVisibleRect:Q}}filterMiniChartSeries(l){return l==null?void 0:l.filter(m=>m.showInMiniChart!==!1)}applyOptions(l){var Ie,Oe,Re,Be,Ue,Ne;let m=this.firstApply?l.processedOptions:l.diffOptions(this.chartOptions);if(m==null||Object.keys(m).length===0)return;let D=this.firstApply?{}:this.chartOptions.processedOptions,L=l.processedOptions;Sd("Chart.applyOptions() - applying delta",m);let B=this.applyModules(L),H=["type","data","series","listeners","preset","theme","legend.listeners","navigator.miniChart.series","navigator.miniChart.label","locale.localeText","axes","topology","nodes","initialState","styleContainer"];m.listeners&&this.registerListeners(this,m.listeners),xm(this,m,{skip:H});let U=!1,X="no-op";m.series!=null&&(X=this.applySeries(this,m.series,D==null?void 0:D.series),U=!0),X==="replaced"&&this.resetAnimations(),this.applyAxes(this,L,D,X,[])&&(U=!0),m.data&&(this.data=m.data),(Ie=m.legend)!=null&&Ie.listeners&&this.modulesManager.isEnabled("legend")&&Object.assign(this.legend.listeners,m.legend.listeners),(Oe=m.locale)!=null&&Oe.localeText&&(this.modulesManager.getModule("locale").localeText=(Re=m.locale)==null?void 0:Re.localeText),this.chartOptions=l;let Q=this.modulesManager.getModule("navigator"),ie=this.modulesManager.getModule("zoom");!(Q!=null&&Q.enabled)&&!(ie!=null&&ie.enabled)&&this.ctx.zoomManager.updateZoom("chart");let ue=Q==null?void 0:Q.miniChart,be=(Ne=(Ue=(Be=L.navigator)==null?void 0:Be.miniChart)==null?void 0:Ue.series)!=null?Ne:L.series;(ue==null?void 0:ue.enabled)===!0&&be!=null?this.applyMiniChartOptions(ue,be,L,D):(ue==null?void 0:ue.enabled)===!1&&(ue.series=[],ue.axes=[]),this.ctx.annotationManager.setAnnotationStyles(l.annotationThemes),U||(U=this.shouldForceNodeDataRefresh(m,X));let Me=U||B?0:3;this.maybeResetAnimations(X),Sd("Chart.applyOptions() - update type",F0[Me],{seriesStatus:X,forceNodeDataRefresh:U}),this.update(Me,{forceNodeDataRefresh:U,newAnimationBatch:!0}),this.ctx.legendManager.clearData(),this.applyInitialState(L),this.firstApply=!1}applyInitialState(l){var X,Q,ie;let{annotationManager:m,chartTypeOriginator:D,historyManager:L,stateManager:B,zoomManager:H}=this.ctx,{initialState:U}=l;if("annotations"in l&&((X=l.annotations)!=null&&X.enabled)&&(U==null?void 0:U.annotations)!=null){let ue=U.annotations.map(be=>{let ye=m.getAnnotationTypeStyles(be.type);return mn(be,ye)});B.setState(m,ue)}(U==null?void 0:U.chartType)!=null&&B.setState(D,U.chartType),((Q=l.navigator)!=null&&Q.enabled||(ie=l.zoom)!=null&&ie.enabled)&&(U==null?void 0:U.zoom)!=null&&B.setState(H,U.zoom),(U==null?void 0:U.legend)!=null&&this.updateLegends(U.legend),U!=null&&L.clear()}maybeResetAnimations(l){if(this.mode==="standalone")switch(l){case"series-grouping-change":case"replaced":this.resetAnimations();break;default:}}shouldForceNodeDataRefresh(l,m){let D=!!l.data||m==="data-change"||m==="replaced",L=TD.getKeys(),B=Object.values(L).some(U=>l[U]!=null),H=l.title!=null&&l.subtitle!=null;return D||B||H}applyMiniChartOptions(l,m,D,L){var ie,ue,be,ye,Me;let B=(be=(ue=(ie=L==null?void 0:L.navigator)==null?void 0:ie.miniChart)==null?void 0:ue.series)!=null?be:L==null?void 0:L.series,H=this.applySeries(l,this.filterMiniChartSeries(m),this.filterMiniChartSeries(B));this.applyAxes(l,D,L,H,["axes[].tick","axes[].thickness","axes[].title","axes[].crosshair","axes[].gridLine","axes[].label"]);let U=l.series;for(let Ie of U)Ie.properties.id=void 0;let X=l.axes,Q=X.find(Ie=>Ie.direction==="x");for(let Ie of X)Ie.gridLine.enabled=!1,Ie.label.enabled=Ie===Q,Ie.tick.enabled=!1,Ie.interactionEnabled=!1;if(Q!=null){let Ie=(ye=D.navigator)==null?void 0:ye.miniChart,Oe=Ie==null?void 0:Ie.label,Re=(Me=Ie==null?void 0:Ie.label)==null?void 0:Me.interval;if(Q.line.enabled=!1,Q.label.set(ad(Oe,["interval","rotation","minSpacing","autoRotate","autoRotateAngle"])),Q.tick.set(ad(Re,["enabled","width","size","color","interval","step"])),Q.type==="grouped-category"){Q.label.enabled=!1,Q.label.rotation=0;let{depthOptions:Ue}=Q;if(Ue.length===0)Ue.set([{label:{enabled:!0}}]);else for(let Ne=1;Ne<Ue.length;Ne++)Ue[Ne].label.enabled=!1}let Be=Re==null?void 0:Re.step;Be!=null&&(Q.interval.step=Be)}}applyModules(l){var L;let{type:m}=this.constructor,D=!1;for(let B of au.byType("root","legend")){let U=l[B.optionsKey]!=null&&B.chartTypes.includes(m);U!==this.modulesManager.isEnabled(B)&&(U?(this.modulesManager.addModule(B,X=>X.moduleFactory(this.getModuleContext())),B.type==="legend"&&((L=this.modulesManager.getModule(B))==null||L.attachLegend(this.ctx.scene)),this[B.optionsKey]=this.modulesManager.getModule(B)):(this.modulesManager.removeModule(B),delete this[B.optionsKey]),D=!0)}return D}initSeriesDeclarationOrder(l){for(let m=0;m<l.length;m++)l[m].setSeriesIndex(m)}applySeries(l,m,D){var ie;if(!m)return"no-change";let L=aM(l.series,m,D);if(L.status==="no-overlap"){Sd(`Chart.applySeries() - creating new series instances, status: ${L.status}`,L);let ue=m.map(be=>this.createSeries(be));return this.initSeriesDeclarationOrder(ue),l.series=ue,"replaced"}Sd("Chart.applySeries() - matchResult",L);let B=[],H=!1,U=!1,X=!1,Q=L.changes.toSorted((ue,be)=>ue.targetIdx-be.targetIdx);for(let ue of Q)switch(U||(U=ue.status==="series-grouping"),H||(H=((ie=ue.diff)==null?void 0:ie.data)!=null),X||(X=ue.status!=="no-op"),ue.status){case"add":{let be=this.createSeries(ue.opts);B.push(be),Sd("Chart.applySeries() - created new series",be);break}case"remove":Sd(`Chart.applySeries() - removing series at previous idx ${ue.idx}`,ue.series);break;case"no-op":B.push(ue.series),Sd(`Chart.applySeries() - no change to series at previous idx ${ue.idx}`,ue.series);break;case"series-grouping":case"update":default:{let{series:be,diff:ye,idx:Me}=ue;Sd(`Chart.applySeries() - applying series diff previous idx ${Me}`,ye,be),this.applySeriesValues(be,ye),be.markNodeDataDirty(),B.push(be)}}return this.initSeriesDeclarationOrder(B),Sd("Chart.applySeries() - final series instances",B),l.series=B,U?"series-grouping-change":H?"data-change":X?"updated":"no-op"}applyAxes(l,m,D,L,B=[]){if(!("axes"in m)||!m.axes)return!1;B=["axes[].type",...B];let{axes:H}=m;return!(L==="replaced")&&l.axes.length===H.length&&l.axes.every((Q,ie)=>Q.type===H[ie].type)&&ao(D)?(l.axes.forEach((Q,ie)=>{var Me,Ie;let ue=(Ie=(Me=D.axes)==null?void 0:Me[ie])!=null?Ie:{},be=Pc(ue,H[ie]);Sd(`Chart.applyAxes() - applying axis diff idx ${ie}`,be);let ye=`axes[${ie}]`;xm(Q,be,{path:ye,skip:B})}),!0):(Sd(`Chart.applyAxes() - creating new axes instances; seriesStatus: ${L}`),l.axes=this.createAxis(H,B),!0)}createSeries(l){let m=fr.create(l.type,this.getModuleContext());return this.applySeriesOptionModules(m,l),this.applySeriesValues(m,l),m}applySeriesOptionModules(l,m){let D=l.createModuleContext(),L=l.getModuleMap();for(let B of au.byType("series-option"))B.optionsKey in m&&B.seriesTypes.includes(l.type)&&L.addModule(B,H=>H.moduleFactory(D))}applySeriesValues(l,m){let D=l.getModuleMap(),ie=m,{type:L,data:B,listeners:H,seriesGrouping:U,showInMiniChart:X}=ie,Q=wi(ie,["type","data","listeners","seriesGrouping","showInMiniChart"]);for(let ue of hp)if(ue.type==="series-option"&&ue.optionsKey in Q){let be=D.getModule(ue.optionsKey);if(be){let ye=Q[ue.optionsKey];delete Q[ue.optionsKey],be.properties.set(ye)}}l.properties.set(Q),"data"in m&&l.setOptionsData(B),H&&this.registerListeners(l,H),"seriesGrouping"in m&&(U==null?l.seriesGrouping=void 0:l.seriesGrouping=ge(ge({},l.seriesGrouping),U))}createAxis(l,m){let D=[],L=this.getModuleContext();for(let B=0;B<l.length;B++){let H=l[B],U=bs.create(H.type,L);this.applyAxisModules(U,H),xm(U,H,{path:`axes[${B}]`,skip:m}),D.push(U)}return iM(D),D}applyAxisModules(l,m){let D=l.createModuleContext(),L=l.getModuleMap();for(let B of au.byType("axis-option")){let H=m[B.optionsKey]!=null;H!==L.isEnabled(B)&&(H?(L.addModule(B,U=>U.moduleFactory(D)),l[B.optionsKey]=L.getModule(B)):(L.removeModule(B),delete l[B.optionsKey]))}}registerListeners(l,m){l.clearEventListeners();for(let[D,L]of Object.entries(m))gl(L)&&l.addEventListener(D,L)}};qr.chartsInstances=new WeakMap,T([Cl({newValue(r){this.destroyed||(this.ctx.domManager.setContainer(r),qr.chartsInstances.set(r,this))},oldValue(r){qr.chartsInstances.delete(r)}})],qr.prototype,"container",2),T([Cl({newValue(r){this.resize("width option",{inWidth:r})}})],qr.prototype,"width",2),T([Cl({newValue(r){this.resize("height option",{inHeight:r})}})],qr.prototype,"height",2),T([Cl({newValue(r){this.resize("minWidth option",{inMinWidth:r})}})],qr.prototype,"minWidth",2),T([Cl({newValue(r){this.resize("minHeight option",{inMinHeight:r})}})],qr.prototype,"minHeight",2),T([je(Si)],qr.prototype,"padding",2),T([je(Si)],qr.prototype,"seriesArea",2),T([je(Si)],qr.prototype,"keyboard",2),T([je(Xn(["standalone","integrated"],"a chart mode"))],qr.prototype,"mode",2),T([Ai("chartCaptions.title")],qr.prototype,"title",2),T([Ai("chartCaptions.subtitle")],qr.prototype,"subtitle",2),T([Ai("chartCaptions.footnote")],qr.prototype,"footnote",2),T([je(Ri)],qr.prototype,"suppressFieldDotNotation",2),T([Cl({changeValue(r,l){this.onAxisChange(r,l)}})],qr.prototype,"axes",2),T([Cl({changeValue(r,l){this.onSeriesChange(r,l)}})],qr.prototype,"series",2);var wd=qr,BD=class{constructor(r,l,m){this.root=new SM(r,l,m)}clear(r){this.root.clear(r)}addValue(r,l){let m={hitTester:r,value:l,distanceSquared:(D,L)=>r.distanceSquared(D,L)};this.root.addElem(m)}find(r,l){let m={best:{nearest:void 0,distanceSquared:1/0}};return this.root.find(r,l,m),m.best}},dT=class{constructor(r,l,m,D){this.nw=r,this.ne=l,this.sw=m,this.se=D}addElem(r){this.nw.addElem(r),this.ne.addElem(r),this.sw.addElem(r),this.se.addElem(r)}find(r,l,m){this.nw.find(r,l,m),this.ne.find(r,l,m),this.sw.find(r,l,m),this.se.find(r,l,m)}},uT=class{constructor(r,l,m){this.capacity=r,this.maxdepth=l,this.boundary=m!=null?m:ft.NaN,this.elems=[],this.subdivisions=void 0}clear(r){this.elems.length=0,this.boundary=r,this.subdivisions=void 0}addElem(r){this.addCondition(r)&&(this.subdivisions===void 0?this.maxdepth===0||this.elems.length<this.capacity?this.elems.push(r):this.subdivide(r):this.subdivisions.addElem(r))}find(r,l,m){this.findCondition(r,l,m)&&(this.subdivisions===void 0?this.findAction(r,l,m):this.subdivisions.find(r,l,m))}subdivide(r){this.subdivisions=this.makeSubdivisions();for(let l of this.elems)this.subdivisions.addElem(l);this.subdivisions.addElem(r),this.elems.length=0}makeSubdivisions(){let{x:r,y:l,width:m,height:D}=this.boundary,{capacity:L}=this,B=this.maxdepth-1,H=m/2,U=D/2,X=new ft(r,l,H,U),Q=new ft(r+H,l,H,U),ie=new ft(r,l+U,H,U),ue=new ft(r+H,l+U,H,U);return new dT(this.child(L,B,X),this.child(L,B,Q),this.child(L,B,ie),this.child(L,B,ue))}},SM=class uZ extends uT{addCondition(l){let{x:m,y:D}=l.hitTester.midPoint;return this.boundary.containsPoint(m,D)}findCondition(l,m,D){let{best:L}=D;return L.distanceSquared!==0&&this.boundary.distanceSquared(l,m)<L.distanceSquared}findAction(l,m,D){let L=tt(l,m,this.elems,D.best.distanceSquared);L.nearest!==void 0&&L.distanceSquared<D.best.distanceSquared&&(D.best=L)}child(l,m,D){return new uZ(l,m,D)}},wM=class extends Mv{constructor(){super(...arguments),this.showFocusBox=!0,this.clipFocusBox=!0}getScaleInformation({xScale:r,yScale:l}){let m=Fa.is(r),D=Fa.is(l);return{isContinuousX:m,isContinuousY:D,xScaleType:r==null?void 0:r.type,yScaleType:l==null?void 0:l.type}}getModulePropertyDefinitions(){var m,D;let r=(m=this.axes.x)==null?void 0:m.scale,l=(D=this.axes.y)==null?void 0:D.scale;return this.moduleMap.mapModules(L=>L.getPropertyDefinitions(this.getScaleInformation({xScale:r,yScale:l}))).flat()}async requestDataModel(r,l,m){m.props.push(...this.getModulePropertyDefinitions());let{dataModel:D,processedData:L}=await r.request(this.id,l!=null?l:[],m);return this.dataModel=D,this.processedData=L,this.dispatch("data-processed",{dataModel:D,processedData:L}),{dataModel:D,processedData:L}}isProcessedDataAnimatable(){var D,L;let r=(L=(D=this.processedData)==null?void 0:D.reduced)==null?void 0:L.animationValidation;if(!r)return!0;let{orderedKeys:l,uniqueKeys:m}=r;return l&&m}checkProcessedDataAnimatable(){this.isProcessedDataAnimatable()||this.ctx.animationManager.skipCurrentBatch()}pickFocus(r){let l=this.getNodeData();if(l===void 0||l.length===0)return;let m=this.computeFocusDatumIndex(r,l);if(m===void 0)return;let{showFocusBox:D,clipFocusBox:L}=this,B=l[m],H=He(ge({},r),{datumIndex:m}),U=this.computeFocusBounds(H);if(U!==void 0)return{bounds:U,showFocusBox:D,clipFocusBox:L,datum:B,datumIndex:m}}computeFocusDatumIndex(r,l){var U;let m=X=>{let{missing:Q=!1,enabled:ie=!0,focusable:ue=!0}=l[X];return!Q&&ie&&ue},D=X=>{for(;X>=0&&!m(X);)X+=r.datumIndexDelta;return X===-1?void 0:X},L=X=>{for(;X<l.length&&!m(X);)X+=r.datumIndexDelta;return X===l.length?void 0:X},B,H=st(0,r.datumIndex,l.length-1);return r.datumIndexDelta<0?B=D(H):r.datumIndexDelta>0?B=L(H):B=(U=L(H))!=null?U:D(H),B===void 0?r.datumIndexDelta===0?void 0:r.datumIndex-r.datumIndexDelta:B}},yp=class extends Hi{constructor(){super(...arguments),this.fill="rgba(255,255,255, 0.33)",this.stroke="rgba(0, 0, 0, 0.4)",this.strokeWidth=2}};T([je(In,{optional:!0})],yp.prototype,"fill",2),T([je(oa,{optional:!0})],yp.prototype,"fillOpacity",2),T([je(In,{optional:!0})],yp.prototype,"stroke",2),T([je(bi,{optional:!0})],yp.prototype,"strokeWidth",2),T([je(oa,{optional:!0})],yp.prototype,"strokeOpacity",2),T([je(bo,{optional:!0})],yp.prototype,"lineDash",2),T([je(bi,{optional:!0})],yp.prototype,"lineDashOffset",2);var tS=class extends Hi{};T([je(bi,{optional:!0})],tS.prototype,"strokeWidth",2),T([je(oa,{optional:!0})],tS.prototype,"dimOpacity",2),T([je(Ri,{optional:!0})],tS.prototype,"enabled",2);var hT=class extends Hi{constructor(){super(...arguments),this.color="black"}};T([je(In,{optional:!0})],hT.prototype,"color",2);var xM=class extends Hi{constructor(){super(...arguments),this.enabled=!0}};T([je(Ri,{optional:!0})],xM.prototype,"enabled",2);var Db=class extends Hi{constructor(){super(...arguments),this.item=new yp,this.series=new tS,this.text=new hT}};T([je(Si)],Db.prototype,"item",2),T([je(Si)],Db.prototype,"series",2),T([je(Si)],Db.prototype,"text",2);var Vc=class extends Hi{constructor(){super(...arguments),this.visible=!0,this.focusPriority=1/0,this.showInLegend=!0,this.cursor="default",this.nodeClickRange="exact",this.highlight=new xM,this.highlightStyle=new Db}};T([je(Qt,{optional:!0})],Vc.prototype,"id",2),T([je(Ri)],Vc.prototype,"visible",2),T([je(pa,{optional:!0})],Vc.prototype,"focusPriority",2),T([je(Ri)],Vc.prototype,"showInLegend",2),T([je(Qt)],Vc.prototype,"cursor",2),T([je(Jg)],Vc.prototype,"nodeClickRange",2),T([je(Si)],Vc.prototype,"highlight",2),T([je(Si)],Vc.prototype,"highlightStyle",2);var lg={x:["xKey"],y:["yKey"]},bp={x:["xName"],y:["yName"]},MM=class extends cu{constructor(r,l,m,D){super(r,l,m,D),this.xKey=D.properties.xKey,this.yKey=D.properties.yKey}},Cp=class extends Vc{constructor(){super(...arguments),this.pickOutsideVisibleMinorAxis=!1}};T([je(Qt,{optional:!0})],Cp.prototype,"legendItemName",2),T([je(Ri,{optional:!0})],Cp.prototype,"pickOutsideVisibleMinorAxis",2);var iS=100,Hm=class extends wM{constructor(ue){var be=ue,{pathsPerSeries:r=["path"],hasMarkers:l=!1,hasHighlightedLabels:m=!1,pathsZIndexSubOrderOffset:D=[],datumSelectionGarbageCollection:L=!0,markerSelectionGarbageCollection:B=!0,animationAlwaysUpdateSelections:H=!1,animationResetFns:U,directionKeys:X,directionNames:Q}=be,ie=wi(be,["pathsPerSeries","hasMarkers","hasHighlightedLabels","pathsZIndexSubOrderOffset","datumSelectionGarbageCollection","markerSelectionGarbageCollection","animationAlwaysUpdateSelections","animationResetFns","directionKeys","directionNames"]);if(super(ge({directionKeys:X,directionNames:Q,canHaveAxes:!0},ie)),this.NodeEvent=MM,this.dataNodeGroup=this.contentGroup.appendChild(new Ji({name:`${this.id}-series-dataNodes`,zIndex:0})),this.markerGroup=this.contentGroup.appendChild(new Ji({name:`${this.id}-series-markers`,zIndex:1})),this.labelGroup=this.contentGroup.appendChild(new js({name:`${this.id}-series-labels`})),this.labelSelection=co.select(this.labelGroup,hr),this.highlightSelection=co.select(this.highlightNode,()=>this.opts.hasMarkers?this.markerFactory():this.nodeFactory()),this.highlightLabelSelection=co.select(this.highlightLabel,hr),this.annotationSelections=new Set,this.minRectsCache={dirtyNodeData:!0},this.debug=Ma.create(),!X||!Q)throw new Error(`Unable to initialise series type ${this.type}`);this.opts={pathsPerSeries:r,hasMarkers:l,hasHighlightedLabels:m,pathsZIndexSubOrderOffset:D,directionKeys:X,directionNames:Q,animationResetFns:U,animationAlwaysUpdateSelections:H,datumSelectionGarbageCollection:L,markerSelectionGarbageCollection:B},this.paths=r.map(ye=>new Dl({name:`${this.id}-${ye}`})),this.datumSelection=co.select(this.dataNodeGroup,()=>this.nodeFactory(),L),this.markerSelection=co.select(this.markerGroup,()=>this.markerFactory(),B),this.animationState=new no("empty",{empty:{update:{target:"ready",action:ye=>this.animateEmptyUpdateReady(ye)},reset:"empty",skip:"ready",disable:"disabled"},ready:{updateData:"waiting",clear:"clearing",highlight:ye=>this.animateReadyHighlight(ye),highlightMarkers:ye=>this.animateReadyHighlightMarkers(ye),resize:ye=>this.animateReadyResize(ye),reset:"empty",skip:"ready",disable:"disabled"},waiting:{update:{target:"ready",action:ye=>{this.ctx.animationManager.isSkipped()?this.resetAllAnimation(ye):this.animateWaitingUpdateReady(ye)}},reset:"empty",skip:"ready",disable:"disabled"},disabled:{update:ye=>this.resetAllAnimation(ye),reset:"empty"},clearing:{update:{target:"empty",action:ye=>this.animateClearingUpdateEmpty(ye)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}get contextNodeData(){return this._contextNodeData}getNodeData(){var r;return(r=this.contextNodeData)==null?void 0:r.nodeData}attachSeries(r,l,m){super.attachSeries(r,l,m),this.attachPaths(this.paths,l,m)}detachSeries(r,l,m){super.detachSeries(r,l,m),this.detachPaths(this.paths,l,m)}attachPaths(r,l,m){for(let D of r)this.contentGroup.appendChild(D)}detachPaths(r,l,m){for(let D of r)this.contentGroup.removeChild(D)}renderToOffscreenCanvas(){let r=this.getNodeData();return r!=null&&r.length>iS}resetAnimation(r){r==="initial"?this.animationState.transition("reset"):r==="ready"?this.animationState.transition("skip"):r==="disabled"&&this.animationState.transition("disable")}addChartEventListeners(){this.destroyFns.push(this.ctx.chartEventManager.addListener("legend-item-click",r=>this.onLegendItemClick(r)),this.ctx.chartEventManager.addListener("legend-item-double-click",r=>this.onLegendItemDoubleClick(r)))}destroy(){super.destroy(),this._contextNodeData=void 0}update({seriesRect:r}){var X,Q;let{visible:l,_contextNodeData:m}=this,L=((Q=(X=this.ctx.highlightManager)==null?void 0:X.getActiveHighlight())==null?void 0:Q.series)===this,B=this.checkResize(r),H=this.updateHighlightSelection(L);this.updateSelections(l),this.updateNodes(H,L,l);let U=this.getAnimationData(r,m);U&&(B&&this.animationState.transition("resize",U),this.animationState.transition("update",U))}updateSelections(r){var D;var l;let m=!this.opts.animationAlwaysUpdateSelections&&this.ctx.animationManager.isSkipped();if(!(!r&&m)&&!(!this.nodeDataRefresh&&!this.isPathOrSelectionDirty())){if(this.nodeDataRefresh){this.nodeDataRefresh=!1,this.debug("CartesianSeries.updateSelections() - calling createNodeData() for",this.id),this.markQuadtreeDirty(),this._contextNodeData=this.createNodeData();let L=this.isProcessedDataAnimatable();this._contextNodeData&&((D=(l=this._contextNodeData).animationValid)!=null||(l.animationValid=L)),this.minRectsCache.dirtyNodeData=!0;let{dataModel:B,processedData:H}=this;B!==void 0&&H!==void 0&&this.dispatch("data-update",{dataModel:B,processedData:H})}this.updateSeriesSelections()}}updateSeriesSelections(r){var Q;let{datumSelection:l,labelSelection:m,markerSelection:D,paths:L}=this,B=this._contextNodeData;if(!B)return;let{nodeData:H,labelData:U,itemId:X}=B;this.updatePaths({seriesHighlighted:r,itemId:X,contextData:B,paths:L}),this.datumSelection=this.updateDatumSelection({nodeData:H,datumSelection:l}),this.labelSelection=(Q=this.updateLabelSelection({labelData:U,labelSelection:m}))!=null?Q:m,this.opts.hasMarkers&&(this.markerSelection=this.updateMarkerSelection({nodeData:H,markerSelection:D}))}markerFactory(){let r=Cd();return new r}updateNodes(r,l,m){var Be;let{highlightSelection:D,highlightLabelSelection:L,opts:{hasMarkers:B,hasHighlightedLabels:H}}=this,U=!this.ctx.animationManager.isSkipped(),X=this.visible&&this._contextNodeData!=null&&m;this.contentGroup.visible=U||X,this.highlightGroup.visible=(U||X)&&l;let Q=this.getOpacity();B?(this.updateMarkerNodes({markerSelection:D,isHighlight:!0}),this.animationState.transition("highlightMarkers",D)):(this.updateDatumNodes({datumSelection:D,isHighlight:!0}),this.animationState.transition("highlight",D)),H&&this.updateLabelNodes({labelSelection:L});let{dataNodeGroup:ie,markerGroup:ue,datumSelection:be,labelSelection:ye,markerSelection:Me,paths:Ie,labelGroup:Oe}=this,{itemId:Re}=(Be=this.contextNodeData)!=null?Be:{};ie.opacity=Q,ie.visible=U||X,Oe.visible=X,B&&(ue.opacity=Q,ue.visible=X),Oe&&(Oe.opacity=Q),this.updatePathNodes({seriesHighlighted:l,itemId:Re,paths:Ie,opacity:Q,visible:X,animationEnabled:U}),ie.visible&&(this.updateDatumNodes({datumSelection:be,highlightedItems:r,isHighlight:!1}),this.usesPlacedLabels||this.updateLabelNodes({labelSelection:ye}),B&&this.updateMarkerNodes({markerSelection:Me,isHighlight:!1}))}getHighlightLabelData(r,l){let m=r.filter(D=>D.datum===l.datum&&D.itemId===l.itemId);return m.length===0?void 0:m}getHighlightData(r,l){return l?[l]:void 0}updateHighlightSelection(r){var X;let{highlightSelection:l,highlightLabelSelection:m,_contextNodeData:D}=this;if(!D)return;let L=(X=this.ctx.highlightManager)==null?void 0:X.getActiveHighlight(),B=r&&(L!=null&&L.datum)?L:void 0,H,U;if(B!=null){let Q=this.isLabelEnabled(),{labelData:ie,nodeData:ue}=D;U=this.getHighlightData(ue,B),H=Q?this.getHighlightLabelData(ie,B):void 0}return this.highlightSelection=this.updateHighlightSelectionItem({items:U,highlightSelection:l}),this.highlightLabelSelection=this.updateHighlightSelectionLabel({items:H,highlightLabelSelection:m}),U}markQuadtreeDirty(){this.quadtree=void 0}*datumNodesIter(){for(let{node:r}of this.datumSelection)r.datum.missing!==!0&&(yield r)}getQuadTree(){if(this.quadtree===void 0){let{width:r,height:l}=this.ctx.scene.canvas,m=new ft(0,0,r,l);this.quadtree=new BD(100,10,m),this.initQuadTree(this.quadtree)}return this.quadtree}initQuadTree(r){}pickNodeExactShape(r){var X;let l=super.pickNodeExactShape(r);if(l)return l;let{x:m,y:D}=r,{opts:{hasMarkers:L}}=this,B,{dataNodeGroup:H,markerGroup:U}=this;if(B=H.pickNode(m,D),!B&&L&&(B=U==null?void 0:U.pickNode(m,D)),B&&B.datum.missing!==!0)return{datum:B.datum,distance:0};for(let Q of this.moduleMap.modules()){let{datum:ie}=(X=Q.pickNodeExact(r))!=null?X:{};if(ie!=null&&(ie==null?void 0:ie.missing)!==!0)return{datum:ie,distance:0}}}pickNodeClosestDatum(r){var ie,ue;let{x:l,y:m}=r,{axes:D,_contextNodeData:L}=this;if(!L)return;let B=D.x,H=D.y,U={x:l,y:m},X=1/0,Q;for(let be of L.nodeData){let{point:{x:ye=NaN,y:Me=NaN}={}}=be;if(isNaN(ye)||isNaN(Me)||!((B==null?void 0:B.inRange(ye))&&(H==null?void 0:H.inRange(Me))))continue;let Oe=Math.max((U.x-ye)**2+(U.y-Me)**2,0);Oe<X&&(X=Oe,Q=be)}for(let be of this.moduleMap.modules()){let ye=be.pickNodeNearest(r);if(ye!==void 0&&ye.distanceSquared<X){X=ye.distanceSquared,Q=ye.datum;break}}if(Q){let be=Math.max(Math.sqrt(X)-((ue=(ie=Q.point)==null?void 0:ie.size)!=null?ue:0),0);return{datum:Q,distance:be}}}pickNodeMainAxisFirst(r,l){var Me,Ie,Oe,Re;let{x:m,y:D}=r,{axes:L,_contextNodeData:B}=this,{pickOutsideVisibleMinorAxis:H}=this.properties;if(!B)return;let U=L.x,X=L.y,Q=[U,X].filter(ap.is).map(Be=>Be.direction);if(l&&Q.length===0)return;let[ie="x"]=Q,ue=[m,D];ie!=="x"&&ue.reverse();let be=[1/0,1/0],ye;for(let Be of B.nodeData){let{x:Ue=NaN,y:Ne=NaN}=(Ie=(Me=Be.point)!=null?Me:Be.midPoint)!=null?Ie:{};if(isNaN(Ue)||isNaN(Ne)||Be.missing===!0)continue;let Qe=[U==null?void 0:U.inRange(Ue),X==null?void 0:X.inRange(Ne)];if(ie!=="x"&&Qe.reverse(),!Qe[0]||!H&&!Qe[1])continue;let nt=[Ue,Ne];ie!=="x"&&nt.reverse();let rt=!0;for(let ut=0;ut<nt.length;ut++){let Mt=Math.abs(nt[ut]-ue[ut]);if(Mt>be[ut]){rt=!1;break}else Mt<be[ut]&&(be[ut]=Mt,be.fill(1/0,ut+1,be.length))}rt&&(ye=Be)}if(ye){let Be=Math.max(be[0]**2+be[1]**2-((Re=(Oe=ye.point)==null?void 0:Oe.size)!=null?Re:0),0);for(let Ue of this.moduleMap.modules()){let Ne=Ue.pickNodeMainAxisFirst(r);if(Ne!==void 0&&Ne.distanceSquared<Be){ye=Ne.datum,Be=Ne.distanceSquared;break}}return{datum:ye,distance:Math.sqrt(Be)}}}isPathOrSelectionDirty(){return!1}shouldFlipXY(){return!1}getMinRects(r,l){let{dirtyNodeData:m,sizeCache:D,minRect:L,minVisibleRect:B}=this.minRectsCache,H=JSON.stringify({width:r,height:l});if(!(H!==D)&&!m&&L&&B)return{minRect:L,minVisibleRect:B};let X=this.computeMinRects(r,l);return this.minRectsCache={dirtyNodeData:!1,sizeCache:H,minRect:X==null?void 0:X.minRect,minVisibleRect:X==null?void 0:X.minVisibleRect},X}computeMinRects(r,l){var Be,Ue;let m=this._contextNodeData;if(!(m!=null&&m.nodeData.length))return;let{nodeData:D}=m,L=Array(D.length),B=Array(D.length);for(let[Ne,{midPoint:Qe}]of D.entries())L[Ne]=(Be=Qe==null?void 0:Qe.x)!=null?Be:0,B[Ne]=(Ue=Qe==null?void 0:Qe.y)!=null?Ue:0;L.sort((Ne,Qe)=>Ne-Qe),B.sort((Ne,Qe)=>Ne-Qe);let H,U,X,Q,ie=0,ue=0;for(let Ne=1;Ne<D.length;Ne++)L[Ne]>=0&&(H!=null||(H=Ne)),L[Ne]>r&&(U!=null||(U=Ne)),B[Ne]>=0&&(X!=null||(X=Ne)),B[Ne]>l&&(Q!=null||(Q=Ne)),ie=Math.max(ie,L[Ne]-L[Ne-1]),ue=Math.max(ue,B[Ne]-B[Ne-1]);U!=null||(U=D.length),Q!=null||(Q=D.length);let be=H!=null&&U!=null?L.slice(H,U):[],ye=X!=null&&Q!=null?B.slice(X,Q):[],Me=0,Ie=0;for(let Ne=1;Ne<Math.max(be.length,ye.length);Ne++){let Qe=be[Ne],nt=be[Ne-1],rt=ye[Ne],ut=ye[Ne-1];Qe!=null&&nt!=null&&(Me=Math.max(Me,Qe-nt)),rt!=null&&ut!=null&&(Ie=Math.max(Ie,rt-ut))}let Oe=new ft(0,0,ie,ue),Re=new ft(0,0,Me,Ie);return{minRect:Oe,minVisibleRect:Re}}updateHighlightSelectionItem(r){let{opts:{hasMarkers:l}}=this,{items:m,highlightSelection:D}=r,L=m!=null?m:[];if(l){let B=D;return this.updateMarkerSelection({nodeData:L,markerSelection:B})}else return this.updateDatumSelection({nodeData:L,datumSelection:D})}updateHighlightSelectionLabel(r){var l;return this.updateLabelSelection({labelData:(l=r.items)!=null?l:[],labelSelection:r.highlightLabelSelection})}updateDatumSelection(r){return r.datumSelection}updateDatumNodes(r){}updateMarkerSelection(r){return r.markerSelection}updateMarkerNodes(r){}updatePaths(r){r.paths.forEach(l=>l.visible=!1)}updatePathNodes(r){let{paths:l,opacity:m,visible:D}=r;for(let L of l)L.opacity=m,L.visible=D}resetPathAnimation(r){var m,D;let{path:l}=(D=(m=this.opts)==null?void 0:m.animationResetFns)!=null?D:{};l&&r.paths.forEach(L=>{Co([L],l)})}resetDatumAnimation(r){var m,D;let{datum:l}=(D=(m=this.opts)==null?void 0:m.animationResetFns)!=null?D:{};l&&Co([r.datumSelection],l)}resetLabelAnimation(r){var m,D;let{label:l}=(D=(m=this.opts)==null?void 0:m.animationResetFns)!=null?D:{};l&&Co([r.labelSelection],l)}resetMarkerAnimation(r){var m,D;let{marker:l}=(D=(m=this.opts)==null?void 0:m.animationResetFns)!=null?D:{};l&&this.opts.hasMarkers&&Co([r.markerSelection],l)}resetAllAnimation(r){var l;this.ctx.animationManager.stopByAnimationGroupId(this.id),this.resetPathAnimation(r),this.resetDatumAnimation(r),this.resetLabelAnimation(r),this.resetMarkerAnimation(r),((l=r.contextData)==null?void 0:l.animationValid)===!1&&this.ctx.animationManager.skipCurrentBatch()}animateEmptyUpdateReady(r){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(r)}animateWaitingUpdateReady(r){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(r)}animateReadyHighlight(r){var m,D;let{datum:l}=(D=(m=this.opts)==null?void 0:m.animationResetFns)!=null?D:{};l&&Co([r],l)}animateReadyHighlightMarkers(r){var m,D;let{marker:l}=(D=(m=this.opts)==null?void 0:m.animationResetFns)!=null?D:{};l&&Co([r],l)}animateReadyResize(r){this.resetAllAnimation(r)}animateClearingUpdateEmpty(r){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(r)}getAnimationData(r,l){let{_contextNodeData:m}=this;return m?{datumSelection:this.datumSelection,markerSelection:this.markerSelection,labelSelection:this.labelSelection,annotationSelections:[...this.annotationSelections],contextData:m,previousContextData:l,paths:this.paths,seriesRect:r}:void 0}updateLabelSelection(r){return r.labelSelection}getScaling(r){if(r instanceof zA){let{range:l,domain:m}=r;return{type:"log",convert:D=>r.convert(D),domain:[m[0],m[1]],range:[l[0],l[1]]}}else if(r instanceof Fa){let{range:l}=r,m=r.getDomain();return{type:"continuous",domain:[m[0],m[1]],range:[l[0],l[1]]}}else if(r instanceof ml){let{domain:l}=r;return{type:"category",domain:l,inset:r.inset,step:r.step}}}calculateScaling(){let r={};for(let l of Object.values(Xf)){let m=this.axes[l];if(!m)continue;let D=this.getScaling(m.scale);D!=null&&(r[l]=D)}return r}},GD=["top","right","bottom","left"],Eb=class hZ extends wd{constructor(l,m){super(l,m),this.paired=!0,this.firstSeriesTranslation=!0,this.lastUpdateClipRect=void 0}onAxisChange(l,m){super.onAxisChange(l,m),this.ctx!=null&&this.ctx.zoomManager.updateAxes(l)}destroySeries(l){super.destroySeries(l),this.firstSeriesTranslation=!0}getChartType(){return"cartesian"}setRootClipRects(l){let{seriesRoot:m,annotationRoot:D}=this;m.setClipRect(l),D.setClipRect(l)}performLayout(l){let{firstSeriesTranslation:m,seriesRoot:D,annotationRoot:L}=this,{clipSeries:B,seriesRect:H,visible:U}=this.updateAxes(l.layoutBox);this.seriesRoot.visible=U,this.seriesRect=H,this.animationRect=l.layoutBox;let{x:X,y:Q}=H;if(m){for(let ye of[D,L])ye.translationX=Math.floor(X),ye.translationY=Math.floor(Q);this.firstSeriesTranslation=!1}else{let{translationX:ye,translationY:Me}=D;ld(this.id,"seriesRect",this.ctx.animationManager,[D,L],{translationX:ye,translationY:Me},{translationX:Math.floor(X),translationY:Math.floor(Q)},{phase:"update"})}let ie=H.clone().grow(this.seriesArea.padding),ue=this.seriesArea.clip||B?ie:void 0,{lastUpdateClipRect:be}=this;this.lastUpdateClipRect=ue,this.ctx.animationManager.isActive()&&be!=null?this.ctx.animationManager.animate({id:this.id,groupId:"clip-rect",phase:"update",from:be,to:ie,onUpdate:ye=>this.setRootClipRects(ye),onComplete:()=>this.setRootClipRects(ue)}):this.setRootClipRects(ue),this.ctx.layoutManager.emitLayoutComplete(l,{axes:this.axes.map(ye=>ye.getLayoutState()),series:{visible:U,rect:H,paddedRect:ie,shouldFlipXY:this.shouldFlipXY()},clipSeries:B})}updateAxes(l){let{clipSeries:m,seriesRect:D,overflows:L}=this.resolveAxesLayout(l);for(let B of this.axes)B.update(),B.setCrossLinesVisible(!L),this.clipAxis(B,D,l);return{clipSeries:m,seriesRect:D,visible:!L}}resolveAxesLayout(l){let m,D,L=0,B=10;do if(D=m!=null?m:this.getDefaultState(),m=this.updateAxesPass(new Map(D.axisAreaWidths),l.clone()),L++>B){vi.warn("Max iterations reached. Unable to stabilize axes layout.");break}while(!this.isLayoutStable(m,D));return this.lastAreaWidths=m.axisAreaWidths,m}updateAxesPass(l,m){var Re,Be,Ue,Ne,Qe,nt,rt;let D=new Map,L={},B=!1,H=!1;for(let ut of GD){let Mt=this.seriesArea.padding[ut],Tt=this.axes.findLast(_t=>_t.position===ut);Tt?Tt.seriesAreaPadding=Mt:m.shrink(Mt,ut)}let U=((Re=l.get("left"))!=null?Re:0)+((Be=l.get("right"))!=null?Be:0),X=((Ue=l.get("top"))!=null?Ue:0)+((Ne=l.get("bottom"))!=null?Ne:0),Q=this.buildCrossLinePadding(l);m.width<=U+Q.hPadding||m.height<=X+Q.vPadding?B=!0:m.shrink(Q);let ie=m.clone().shrink(Object.fromEntries(l));for(let ut of this.axes){let{position:Mt="left",direction:Tt}=ut;this.sizeAxis(ut,ie,Mt);let _t=this.getSyncedDomain(ut),Kt=Tt==="y",gi=ut.calculateLayout(_t,ut.nice?L[Tt]:void 0);(Qe=L[Tt])!=null||(L[Tt]=gi.primaryTickCount),H||(H=ut.dataDomain.clipped||ut.visibleRange[0]>0||ut.visibleRange[1]<1),D.set(ut.id,Math.ceil((nt=ut.thickness)!=null?nt:Kt?gi.bbox.width:gi.bbox.height))}let ue=Object.entries(Zl(this.axes,ut=>{var Mt;return(Mt=ut.position)!=null?Mt:"left"})),{width:be,height:ye,canvas:Me}=this.ctx.scene,Ie=new Map,Oe=new Map;for(let[ut,Mt]of ue){let _t=ut==="left"||ut==="right"?ye%Me.pixelRatio:be%Me.pixelRatio,Kt=0;for(let gi of Mt){Oe.set(gi.id,_t);let Ci=(rt=D.get(gi.id))!=null?rt:0;Kt=Math.max(Kt,_t+Ci),gi.layoutConstraints.stacked&&(_t+=Ci+hZ.AxesPadding)}Ie.set(ut,Math.ceil(Kt))}for(let[ut,Mt]of ue)this.positionAxes({axes:Mt,position:ut,axisWidths:D,axisOffsets:Oe,axisAreaWidths:Ie,axisBound:m,seriesRect:ie});return{clipSeries:H,seriesRect:ie,axisAreaWidths:Ie,overflows:B}}buildCrossLinePadding(l){var D;let m={top:0,right:0,bottom:0,left:0,hPadding:0,vPadding:0};this.axes.forEach(L=>{var B;(B=L.crossLines)==null||B.forEach(H=>{var U;(U=H.calculatePadding)==null||U.call(H,m)})});for(let[L,B=0]of Object.entries(m))m[L]=Math.max(B-((D=l.get(L))!=null?D:0),0);return m.hPadding=m.left+m.right,m.vPadding=m.top+m.bottom,m}clampToOutsideSeriesRect(l,m,D,L){let B=D==="x"?l.x:l.y,H=D==="x"?l.width:l.height;return L===1?Math.min(m,B+H):Math.max(m,B)}getSyncedDomain(l){let m=this.modulesManager.getModule("sync");if(!(m!=null&&m.enabled))return;let D=m.getSyncedDomain(l);if(D&&l.dataDomain.domain.length){let L,{domain:B}=l.scale;if(Fa.is(l.scale)){let[H,U]=Xe(D);L=H!==B[0]||U!==B[1]}else L=!Bh(D,B);L&&!this.skipSync&&m.updateSiblings()}return D}sizeAxis(l,m,D){let L=l instanceof ap,B=D==="left"||D==="right",{width:H,height:U}=m,X=B?U:H,Q=0,ie=X,{min:ue,max:be}=this.ctx.zoomManager.getAxisZoom(l.id),{width:ye,unit:Me,align:Ie}=l.layoutConstraints;Me==="px"?ie=Q+ye:ie=ie*ye/100,Ie==="end"&&(Q=X-(ie-Q),ie=X),B&&(L?[ue,be]=[1-be,1-ue]:[Q,ie]=[ie,Q]),l.range=[Q,ie],l.visibleRange=[ue,be],l.gridLength=B?H:U}positionAxes(l){var Me,Ie,Oe,Re;let{axes:m,axisBound:D,axisWidths:L,axisOffsets:B,axisAreaWidths:H,seriesRect:U,position:X}=l,Q=(Me=H.get(X))!=null?Me:0,ie="x",ue="y",be=1;(X==="top"||X==="bottom")&&(ie="y",ue="x");let ye=D[ie];(X==="right"||X==="bottom")&&(be=-1,ye+=ie==="x"?D.width:D.height);for(let Be of m){let Ue=(Ie=H.get(ue==="x"?"left":"top"))!=null?Ie:0,Ne=(Oe=L.get(Be.id))!=null?Oe:0,Qe=(Re=B.get(Be.id))!=null?Re:0;Be.gridPadding=Q-Qe-Ne,Be.translation[ue]=D[ue]+Ue,Be.translation[ie]=this.clampToOutsideSeriesRect(U,ye+be*(Qe+Ne),ie,be)}}shouldFlipXY(){return this.series.every(l=>l instanceof Hm&&l.shouldFlipXY())}getDefaultState(){let l=new Map;if(this.lastAreaWidths)for(let{position:m="left"}of this.axes){let D=this.lastAreaWidths.get(m);D!=null&&l.set(m,D)}return{axisAreaWidths:l,clipSeries:!1,overflows:!1}}isLayoutStable(l,m){if(m.overflows!==l.overflows||m.clipSeries!==l.clipSeries)return!1;for(let D of l.axisAreaWidths.keys())if(!m.axisAreaWidths.has(D))return!1;for(let[D,L]of m.axisAreaWidths.entries()){let B=l.axisAreaWidths.get(D);if((L!=null||B!=null)&&L!==B)return!1}return!0}clipAxis(l,m,D){var X,Q,ie,ue;let L=Math.ceil((Q=(X=l.gridLine)==null?void 0:X.width)!=null?Q:0),B=Math.ceil((ue=(ie=l.line)==null?void 0:ie.width)!=null?ue:0),{width:H,height:U}=m;switch(H+=l.direction==="x"?L:B,U+=l.direction==="y"?L:B,l.clipGrid(m.x,m.y,H,U),l.position){case"left":case"right":l.clipTickLines(D.x,m.y-L,D.width+L,m.height+L*2);break;case"top":case"bottom":l.clipTickLines(m.x-L,D.y,m.width+L*2,D.height+L);break}}};Eb.className="CartesianChart",Eb.type="cartesian",Eb.AxesPadding=15;var gT=Eb,Tv=class gZ{constructor(l,m,D){this.factoryApi=m,this.licenseManager=D,this.chart=l}static isInstance(l){var m;return l instanceof gZ||((m=l.constructor)==null?void 0:m.name)==="AgChartInstanceProxy"&&l.chart!=null?!0:l.chart!=null&&this.validateImplementation(l)}static validateImplementation(l){var L;let m=["getOptions","destroy"],D=Object.keys((L=Object.getPrototypeOf(l))!=null?L:{});return m.every(B=>D.includes(B))}async update(l){this.factoryApi.update(l,this),await this.chart.waitForUpdate()}async updateDelta(l){this.factoryApi.updateUserDelta(this,l),await this.chart.waitForUpdate()}getOptions(){let l=Ur(this.chart.getOptions());for(let m of Object.keys(l))m.startsWith("_")&&delete l[m];return l}waitForUpdate(){return this.chart.waitForUpdate()}async download(l){let m=await this.prepareResizedChart(this,l);try{m.chart.download(l==null?void 0:l.fileName,l==null?void 0:l.fileFormat)}finally{m.destroy()}}async __toSVG(l){let m=await this.prepareResizedChart(this,ge({width:600,height:300},l));try{return m.chart.toSVG()}finally{m.destroy()}}async getImageDataURL(l){let m=await this.prepareResizedChart(this,l);try{return m.chart.getCanvasDataURL(l==null?void 0:l.fileFormat)}finally{m.destroy()}}getState(){return this.factoryApi.caretaker.save(...this.getEnabledOriginators())}async setState(l){let m=this.getEnabledOriginators();if(!m.includes(this.chart.ctx.legendManager)){await this.setStateOriginators(l,m);return}await this.setStateOriginators(l,m.filter(D=>D!==this.chart.ctx.zoomManager)),await this.setStateOriginators(l,[this.chart.ctx.zoomManager])}resetAnimations(){this.chart.resetAnimations()}skipAnimations(){this.chart.skipAnimations()}destroy(){this.releaseChart?(this.releaseChart(),this.chart=null):(this.chart.publicApi=void 0,this.chart.destroy())}async prepareResizedChart(l,m={}){var Me,Ie,Oe,Re,Be,Ue,Ne,Qe;let{chart:D}=l,L=(Ie=(Me=m.width)!=null?Me:D.width)!=null?Ie:D.ctx.scene.canvas.width,B=(Re=(Oe=m.height)!=null?Oe:D.height)!=null?Re:D.ctx.scene.canvas.height,H=l.getState(),U=au.hasEnterpriseModules(),X=He(ge({},D.chartOptions.processedOverrides),{container:document.createElement("div"),width:L,height:B}),Q=D.getOptions();U&&(X.animation={enabled:!1},(Be=this.licenseManager)!=null&&Be.isDisplayWatermark()&&(X.foreground={text:this.licenseManager.getWatermarkMessage(),image:{url:"data:image/svg+xml;base64, ",width:170,height:25,right:25,bottom:50,opacity:.7}}));let ie=ge({},D.chartOptions.specialOverrides),ue=ge({},D.chartOptions.optionMetadata);m.width!=null&&m.height!=null&&(ie.overrideDevicePixelRatio=1);let be=this.factoryApi.create(Q,X,ie,ue);await be.setState(H),be.chart.ctx.zoomManager.updateZoom("chartProxy",D.ctx.zoomManager.getZoom()),be.chart.ctx.legendManager.clearData(),be.chart.ctx.legendManager.update(D.ctx.legendManager.getData()),D.series.forEach((nt,rt)=>{nt.visible||(be.chart.series[rt].visible=!1)});let ye=[];for(let nt of D.modulesManager.legends())ye.push((Ne=(Ue=nt.legend.pagination)==null?void 0:Ue.currentPage)!=null?Ne:0);for(let nt of be.chart.modulesManager.legends()){let rt=(Qe=ye.shift())!=null?Qe:0;nt.legend.pagination&&nt.legend.pagination.setPage(rt)}return be.chart.update(0,{forceNodeDataRefresh:!0}),await be.waitForUpdate(),be}getEnabledOriginators(){var Q,ie,ue;let{chartOptions:{processedOptions:l,optionMetadata:m},ctx:{annotationManager:D,chartTypeOriginator:L,zoomManager:B,legendManager:H}}=this.chart,U=[];return"annotations"in l&&((Q=l.annotations)!=null&&Q.enabled)&&U.push(D),m.presetType==="price-volume"&&U.push(L),((ie=l.navigator)!=null&&ie.enabled||(ue=l.zoom)!=null&&ue.enabled)&&U.push(B),"legend"in this.chart&&U.push(H),U}async setStateOriginators(l,m){this.factoryApi.caretaker.restore(l,...m),this.chart.ctx.updateService.update(2,{forceNodeDataRefresh:!0}),await this.chart.waitForUpdate()}};Tv.chartInstances=new WeakMap,T([Cl({oldValue(r){r.destroyed||(r.publicApi=void 0),Tv.chartInstances.delete(r)},newValue(r){r&&(r.publicApi=this,Tv.chartInstances.set(r,this))}})],Tv.prototype,"chart",2);var VD=Tv,kM=class extends y0{constructor(r){super(),this.ctx=r,this.localeText=void 0}};T([ip(r=>{r.ctx.localeManager.setLocaleText(r.localeText)}),je(ur,{optional:!0})],kM.prototype,"localeText",2),T([ip(r=>{r.ctx.localeManager.setLocaleTextFormatter(r.getLocaleText)}),je(_a,{optional:!0})],kM.prototype,"getLocaleText",2);var uL={type:"root",optionsKey:"locale",packageType:"community",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:r=>new kM(r)};function hL(r,l=1/0){switch(typeof r){case"undefined":return"undefined";case"number":if(isNaN(r))return"NaN";if(r===1/0)return"Infinity";if(r===-1/0)return"-Infinity";default:return r=JSON.stringify(r),r.length>l?`${r.slice(0,l)}... (+${r.length-l} characters)`:r}}function gL(r){let l=1;for(let m=0;m<r.length;m++)r.charCodeAt(m)===10&&l++;return l}var Wm=new WeakMap;function nS(r,l){var D,L,B;let m=JSON.stringify(r,null,0);return Wm.has(l)||Wm.set(l,new Map),(D=Wm.get(l))!=null&&D.has(m)||(L=Wm.get(l))==null||L.set(m,l(r)),(B=Wm.get(l))==null?void 0:B.get(m)}function Ys(r){let l=new Map,m=(...B)=>B.map(H=>typeof H=="object"||typeof H=="symbol"?H:(l.has(H)||l.set(H,{v:H}),l.get(H))),D={},L=new WeakMap;return(...B)=>{let H=B.length===0?[D]:m(...B),U=L;for(let ie of H.slice(0,-1))U.has(ie)||U.set(ie,new WeakMap),U=U.get(ie);let X=H.at(-1),Q=U.get(X);return Q||(Q=r(...B),U.set(X,Q)),Q}}function aS(r,l=[0,0]){for(let m of r)typeof m=="number"&&(m<0&&(l[0]+=m),m>0&&(l[1]+=m));return l}function pL(r,l){return{id:r,matchGroupIds:[l],type:"aggregate",aggregateFunction:D=>aS(D)}}function jD(r,l){return{id:r,type:"aggregate",matchGroupIds:l?[l]:void 0,aggregateFunction:m=>aS(m),groupAggregateFunction:(m,D=[0,0])=>{var L,B;return D[0]+=(L=m==null?void 0:m[0])!=null?L:0,D[1]+=(B=m==null?void 0:m[1])!=null?B:0,D}}}function pT(r,l){return{id:r,matchGroupIds:[l],type:"aggregate",aggregateFunction:D=>go.extendDomain(D)}}function HD(r){return{id:r,type:"aggregate",aggregateFunction:()=>[0,1],groupAggregateFunction:(l,m=[0,0])=>{var D,L;return m[0]+=(D=l==null?void 0:l[0])!=null?D:0,m[1]+=(L=l==null?void 0:l[1])!=null?L:0,m}}}function Rv(r,l){return{id:r,matchGroupIds:l?[l]:void 0,type:"aggregate",aggregateFunction:D=>aS(D),groupAggregateFunction:(D,L=[0,0,-1])=>{var B,H;return L[0]+=(B=D==null?void 0:D[0])!=null?B:0,L[1]+=(H=D==null?void 0:D[1])!=null?H:0,L[2]++,L},finalFunction:(D=[0,0,0])=>{let L=D[0]+D[1];return L>=0?[0,L/D[2]]:[L/D[2],0]}}}function oS(r,l,m){let D={id:r,matchGroupIds:m?[m]:void 0,type:"aggregate",aggregateFunction:(L,B=[])=>{let H=B[1]-B[0];return l.aggregateFunction(L).map(U=>U/H)}};return l.groupAggregateFunction&&(D.groupAggregateFunction=l.groupAggregateFunction),D}function WD(r){return()=>{let l=0;return m=>ea(m)?(l+=r?Math.max(0,m):m,l):m}}function mT(){return()=>{let r=0;return l=>{if(!ea(l))return l;let m=r;return r+=l,m}}}function UD(r){return r!=null&&dh(r)}function mL(r){return r!=null}function KD(r){switch(r){case"number":case"log":case"ordinal-time":case"time":case"color":return UD;default:return mL}}function fT(r){switch(r){case"number":case"log":case"time":case"color":return"range";default:return"category"}}function Xs(r,l,m={}){return ge({property:r,type:"key",valueType:fT(l),validation:KD(l)},m)}function kn(r,l,m={}){return ge({property:r,type:"value",valueType:fT(l),validation:KD(l)},m)}function rS(r,l={}){let B=l,{min:m=-1/0,max:D=1/0}=B,L=wi(B,["min","max"]);return ge({type:"value",property:r,valueType:"range",validation:UD,processor:()=>H=>ea(H)?st(m,H,D):H},L)}function sS(r,l,m={}){let H=m,{onlyPositive:D}=H,L=wi(H,["onlyPositive"]);return He(ge({},kn(r,l,L)),{processor:WD(D)})}function Sp(r,l,m={}){return He(ge({},kn(r,l,m)),{processor:mT()})}function wp(r,l,m,D,L){return[kn(r,L,D),$D(D.groupId,l,m,D.separateNegative),...D.rangeId!=null?[pT(D.rangeId,D.groupId)]:[]]}function Um(r,l,m){return[kn(r,l,m),QD(m.groupId)]}var vT={type:"reducer",property:"smallestKeyInterval",initialValue:1/0,reducer:()=>{let r=NaN;return(l=1/0,m)=>{let D=m.keys[0],L=Math.abs(D-r);return r=D,!isNaN(L)&&L>0&&L<l?L:l}}},Ib={type:"reducer",property:"largestKeyInterval",initialValue:-1/0,reducer:()=>{let r=NaN;return(l=-1/0,m)=>{let D=m.keys[0],L=Math.abs(D-r);return r=D,!isNaN(L)&&L>0&&L>l?L:l}}},AM={type:"processor",property:"sortedGroupDomain",calculate:({domain:{groups:r}})=>r==null?void 0:r.slice().sort((l,m)=>{for(let D=0;D<l.length;D++){let L=l[D]-m[D];if(L!==0)return L}return 0})};function DM({normaliseTo:r,mode:l}){let m=(D,L)=>{if(L===0)return null;let B=(D!=null?D:0)*r/L;return B>=0?Math.min(r,B):Math.max(-r,B)};return()=>()=>(D,L,B)=>{let H=EM(l,D,L,B);for(let U of L){let X=D[U],Q=X[B];if(Q==null){X[B]=void 0;continue}X[B]=typeof Q=="number"?m(Q,H):Q.map(ie=>m(ie,H))}}}function EM(r,l,m,D){let L=[0,0];for(let B of m){let U=l[B][D];if(U==null)continue;let X=typeof U=="number"?U:Math.max(...U.map(ie=>ie!=null?ie:0)),Q=X<0?0:1;r==="sum"?L[Q]+=X:Q===0?L[Q]=Math.min(L[Q],X):L[Q]=Math.max(L[Q],X)}return Math.max(Math.abs(L[0]),L[1])}function Tb(r,l,m="sum"){return{type:"group-value-processor",matchGroupIds:r,adjust:nS({normaliseTo:l,mode:m},DM)}}function qD({normaliseTo:r,zeroDomain:l,rangeMin:m,rangeMax:D}){let L=r[1]-r[0],B=(H,U,X)=>{let Q=r[0]+(H-U)/X*L;return X===0?l:Q>=r[1]?r[1]:Q<r[0]?r[0]:Q};return()=>(H,U)=>{let[X,Q]=H.domain.values[U];m!=null&&(X=m),D!=null&&(Q=D);let ie=Q-X;H.domain.values[U]=[r[0],r[1]];let{rawData:ue}=H,be=H.columns[U];for(let ye=0;ye<ue.length;ye+=1)be[ye]=B(be[ye],X,ie)}}function xd(r,l,m,D,L){return{type:"property-value-processor",property:r,adjust:nS({normaliseTo:l,rangeMin:D,rangeMax:L,zeroDomain:m},qD)}}var Km=1,cg=2,YD=(r,l,m,D)=>{var H,U;let L=Km|cg;if(l.valueType==="category")return m.length!==r&&(L&=~Km),L;let B=(H=D[0])==null?void 0:H.valueOf();for(let X=1;L!==0&&X<D.length;X++){let Q=(U=D[X])==null?void 0:U.valueOf();(!Number.isFinite(Q)||B>Q)&&(L&=~cg),Number.isFinite(Q)&&B===Q&&(L&=~Km),B=Q}return L};function qm(r){return{type:"processor",property:"animationValidation",calculate(l){let{keys:m,values:D}=l.defs,{input:{count:L},domain:{keys:B,values:H},rawData:U,keys:X,columns:Q}=l,ie=Km|cg;if(U.length!==0){for(let ue=0;ie!==0&&ue<m.length;ue++)ie&=YD(L,m[ue],B[ue],X[ue]);for(let ue=0;ie!==0&&ue<D.length;ue++){let be=D[ue];r!=null&&r.includes(be.id)&&(ie&=YD(L,be,H[ue],Q[ue]))}}return{uniqueKeys:(ie&Km)!==0,orderedKeys:(ie&cg)!==0}}}}function XD({mode:r,separateNegative:l}){return()=>()=>(m,D,L)=>{let B=[0,0];for(let H of D){let U=m[H],X=U[L],Q=Pe(X)&&l?0:1;ea(X)&&(r==="normal"&&(B[Q]+=X),U[L]=B[Q],r==="trailing"&&(B[Q]+=X))}}}function ZD({mode:r,sum:l}){return()=>{let m=[],D=!0;return()=>(L,B,H)=>{let U=0;for(let X of B){let Q=L[X],ie=Q[H],ue=D&&l==="current"?0:m[X];m[X]=ie;let be=l==="current"?ie:ue;if(!ea(ie)||!ea(ue)){Q[H]=U;continue}r==="normal"&&(U+=be),Q[H]=U,r==="trailing"&&(U+=be)}D=!1}}}function $D(r,l,m,D=!1){let L;if(l.startsWith("window")){let B=l.endsWith("-trailing")?"trailing":"normal";L=nS({mode:B,sum:m},ZD)}else L=nS({mode:l,separateNegative:D},XD);return{type:"group-value-processor",matchGroupIds:[r],adjust:L}}function IM(){return()=>(r,l,m)=>{let D=new Float64Array(32),L=0;for(let B of l){let H=r[B],U=H[m];D[L]=Number.isFinite(U)?U:NaN,L+=1,H[m]=D.subarray(0,L)}}}function QD(r){return{type:"group-value-processor",matchGroupIds:[r],adjust:IM}}function Ym(r){var l;return(l=r.id)!=null?l:r.property}function Rb(r,l,m){var U,X;let D=new Map,L=l.defs.values;for(let Q=0;Q<L.length;Q+=1){let ie=L[Q];if(((U=ie.scopes)==null?void 0:U.includes(r))===!1)continue;let ue=Ym(ie);if(D.has(ue))return;D.set(ue,Q)}let B=[],H=m.defs.values;for(let Q=0;Q<H.length;Q+=1){let ie=H[Q];if(((X=ie.scopes)==null?void 0:X.includes(r))===!1)continue;let ue=Ym(ie),be=D.get(ue);if(be==null)return;D.delete(ue),B.push({previousIndex:be,nextIndex:Q})}if(D.size===0)return B}function Xm(r,l,m,D,L){for(let{previousIndex:B,nextIndex:H}of m){let U=r[B],X=l[H],Q=U[D],ie=X[L];if(Q!==ie)return!1}return!0}function Zm(r,l,m=!0){return{type:"processor",property:"diff",calculate(D,L){let B=new Map,H=new Map,U=new Map,X=new Map,Q=l.keys,ie=D.keys,ue=l.columns,be=D.columns,ye=Rb(r,l,D);if(ye==null)return L;let Me=Math.max(l.rawData.length,D.rawData.length);for(let Re=0;Re<Me;Re++){let Be=Re<l.rawData.length,Ue=Re<D.rawData.length,Ne=Be?mb(Q,Re):void 0,Qe=Ne!=null?ws(Ne):"",nt=Ue?mb(ie,Re):void 0,rt=nt!=null?ws(nt):"";if(Ue&&Be&&Qe===rt){Xm(ue,be,ye,Re,Re)||U.set(rt,Re);continue}let ut=X.get(rt);ut!=null?((m||!Xm(ue,be,ye,ut,Re))&&(U.set(rt,Re),B.set(rt,Re)),X.delete(rt)):Ue&&H.set(rt,Re);let Mt=H.get(Qe);Mt!=null?((m||!Xm(ue,be,ye,Mt,Re))&&(U.set(Qe,Re),B.set(Qe,Re)),H.delete(Qe)):Be&&(U.delete(Qe),X.set(Qe,Re))}let Oe={changed:H.size>0||U.size>0||X.size>0,added:new Set(H.keys()),updated:new Set(U.keys()),removed:new Set(X.keys()),moved:new Set(B.keys())};return He(ge({},L),{[r]:Oe})}}}function ws(r,...l){let m;return La(r)?m=r.map(L=>d0(L)).join("___"):m=d0(r),(typeof m=="string"||typeof m=="number"||typeof m=="boolean"||m instanceof Date)&&l.length>0&&(m+=`___${l.join("___")}`),m}var fL=class{constructor(){this.top=1/0,this.right=-1/0,this.bottom=-1/0,this.left=1/0}update(r,l){r>this.right&&(this.right=r),r<this.left&&(this.left=r),l>this.bottom&&(this.bottom=l),l<this.top&&(this.top=l)}},yT=class pZ{constructor(l="",m,D){this.label=l,this.parent=m,this.refId=D,this.x=0,this.y=0,this.subtreeLeft=NaN,this.subtreeRight=NaN,this.children=[],this.leafCount=0,this.prelim=0,this.mod=0,this.ancestor=this,this.change=0,this.shift=0,this.index=0,this.screenX=0,this.screenY=0,this.depth=m?m.depth+1:0}insertTick(l,m){let D=this;for(let L=0;L<l.length;L++){let B=l[L],H=L!==l.length-1,{children:U}=D,X=U.find(Q=>Q.label===B);if(X&&H)D=X;else{let Q=new pZ(B,D,m);Q.index=U.length,U.push(Q),H&&(D=Q)}}}getLeftSibling(){var l;return this.index>0?(l=this.parent)==null?void 0:l.children[this.index-1]:void 0}getLeftmostSibling(){var l;return this.index>0?(l=this.parent)==null?void 0:l.children[0]:void 0}nextLeft(){return this.children[0]}nextRight(){return this.children.at(-1)}getSiblings(){var l,m;return(m=(l=this.parent)==null?void 0:l.children.filter((D,L)=>L!==this.index))!=null?m:[]}};function JD(r){let l=r.reduce((D,L)=>D<L.length?L.length:D,0),m=new yT;for(let D=0;D<r.length;D++){let L=r[D];for(;L.length<l;)L.push("");m.insertTick(L,D)}return m}function Md(r,l,m){let D=l.index-r.index,L=m/D;l.change-=L,l.shift+=m,r.change+=L,l.prelim+=m,l.mod+=m}function lS(r,l,m){return l.getSiblings().indexOf(r.ancestor)>=0?r.ancestor:m}function cS({children:r}){let l=0,m=0;for(let D=r.length-1;D>=0;D--){let L=r[D];L.prelim+=l,L.mod+=l,m+=L.change,l+=L.shift+m}}function e1(r,l){let m=r.getLeftSibling();if(m){let D=r,L=r,B=m,H=L.getLeftmostSibling(),U=L.mod,X=D.mod,Q=B.mod,ie=H.mod;for(;B.nextRight()&&L.nextLeft();){B=B.nextRight(),L=L.nextLeft(),H=H.nextLeft(),D=D.nextRight(),D.ancestor=r;let ue=B.prelim+Q-(L.prelim+U)+1;ue>0&&(Md(lS(B,r,l),r,ue),U+=ue,X+=ue),Q+=B.mod,U+=L.mod,ie+=H.mod,X+=D.mod}B.nextRight()&&!D.nextRight()?D.mod+=Q-X:(L.nextLeft()&&!H.nextLeft()&&(H.mod+=U-ie),l=r)}return l}function TM(r){let{children:l}=r;if(l.length){let[m]=l;for(let B of l)TM(B),m=e1(B,m);cS(r);let D=(l[0].prelim+l.at(-1).prelim)/2,L=r.getLeftSibling();L?(r.prelim=L.prelim+1,r.mod=r.prelim-D):r.prelim=D}else{let m=r.getLeftSibling();r.prelim=m?m.prelim+1:0}}function RM(r,l,m){r.x=r.prelim+l,r.y=r.depth,m.insertNode(r);for(let D of r.children)RM(D,l+r.mod,m)}function PM(r){let{children:l}=r,m=0;for(let D of l)PM(D),D.children.length?m+=D.leafCount:m++;r.leafCount=m,l.length?(r.subtreeLeft=l[0].subtreeLeft,r.subtreeRight=l[l.length-1].subtreeRight,r.x=(r.subtreeLeft+r.subtreeRight)/2):(r.subtreeLeft=r.x,r.subtreeRight=r.x)}function vL(r){let l=new yL,m=JD(r);return TM(m),RM(m,-m.prelim,l),PM(m),l}var yL=class{constructor(){this.dimensions=new fL,this.nodes=[],this.depth=0}insertNode(r){this.depth<r.depth&&(this.depth=r.depth),this.dimensions.update(r.x,r.y),this.nodes.push(r)}scalingX(r,l){let m=1;if(r>0){let{left:D,right:L}=this.dimensions;m=r/(L-D)}return l&&(m*=-1),m}scalingY(r,l){let m=1;if(r>0){let{top:D,bottom:L}=this.dimensions;m=r/(L-D)}return l&&(m*=-1),m}},hu=class extends Hi{constructor(){super(...arguments),this.enabled=!0}};T([je(Ri)],hu.prototype,"enabled",2),T([je(Ri,{optional:!0})],hu.prototype,"avoidCollisions",2),T([je(In,{optional:!0})],hu.prototype,"color",2),T([je(bi,{optional:!0})],hu.prototype,"spacing",2),T([je($u,{optional:!0})],hu.prototype,"fontStyle",2),T([je(Qu,{optional:!0})],hu.prototype,"fontWeight",2),T([je(yn.restrict({min:1}),{optional:!0})],hu.prototype,"fontSize",2),T([je(Qt,{optional:!0})],hu.prototype,"fontFamily",2);var Pb=class extends Hi{constructor(){super(...arguments),this.enabled=!0}};T([je(Ri)],Pb.prototype,"enabled",2),T([je(bi,{optional:!0})],Pb.prototype,"width",2),T([je(In,{optional:!0})],Pb.prototype,"stroke",2);var LM=class extends Hi{constructor(){super(...arguments),this.label=new hu,this.tick=new Pb}};T([je(Si)],LM.prototype,"label",2),T([je(Si)],LM.prototype,"tick",2);var dg=class extends ap{constructor(r){super(r),this.tickScale=new ml,this.depthOptions=new ja(LM),this.includeInvisibleDomains=!0,this.tickScale.paddingInner=1,this.tickScale.paddingOuter=0}resizeTickTree(){if(!this.tickTreeLayout)return;let{nodes:r}=this.tickTreeLayout,{range:l,step:m,inset:D,bandwidth:L}=this.scale,B=Math.abs(l[1]-l[0])-m,H=this.tickTreeLayout.scalingX(B,l[0]>l[1]),U=D+L/2,X=0;for(let Q of r){let ie=Q.x*H;X>ie&&(X=ie),Q.screenX=ie+U}for(let Q of r)Q.screenX-=X}getDepthOptionsMap(r){var L,B,H,U,X,Q,ie,ue,be;let l=[],{depthOptions:m,label:D}=this;for(let ye=0;ye<r;ye++)l.push(((B=(L=m[ye])==null?void 0:L.label.enabled)!=null?B:D.enabled)?{enabled:!0,spacing:(U=(H=m[ye])==null?void 0:H.label.spacing)!=null?U:D.spacing,lineHeight:Wa.getLineHeight((ie=(Q=(X=m[ye])==null?void 0:X.label.fontSize)!=null?Q:D.fontSize)!=null?ie:10),avoidCollisions:(be=(ue=m[ye])==null?void 0:ue.label.avoidCollisions)!=null?be:D.avoidCollisions}:{enabled:!1,spacing:0,lineHeight:0,avoidCollisions:!1});return l}updateCategoryLabels(){this.computedLayout&&this.tickLabelGroupSelection.update(this.computedLayout.tickLabelLayout).each((r,l)=>r.setProperties(l))}updateAxisLine(){this.computedLayout&&(this.lineNode.visible=this.line.enabled,this.lineNode.stroke=this.line.stroke,this.lineNode.strokeWidth=this.line.width)}computeLayout(){var xi;if(this.updateDirection(),this.updateScale(),this.updateRange(),this.resizeTickTree(),!((xi=this.tickTreeLayout)!=null&&xi.depth))return{bbox:ft.zero,separatorLayout:[],tickLabelLayout:[]};let{step:r}=this.scale,{title:l,label:m,range:D,depthOptions:L}=this,{depth:B,nodes:H}=this.tickTreeLayout,U=Math.ceil(m.fontSize/r),X=Ge(this.rotation),Q=this.position==="top"||this.position==="bottom",ie=m.getSideFlag(),ue=[],be=new Map,ye=new hs,{defaultRotation:Me,configuredRotation:Ie}=Xy({rotation:m.rotation,parallel:m.parallel,regularFlipRotation:Nn(X-Math.PI/2),parallelFlipRotation:Nn(X)}),Oe=Me+Ie,Re=this.getDepthOptionsMap(B),Be=(li,Bi)=>{var An,Zi;let Fi=B-li.depth;if(!((An=Re[Fi])!=null&&An.enabled)||Bi%U!==0||!Ye(li.screenX,D))return!1;let hn=this.formatTick(li.label,Bi-1),ji=this.getLabelStyles({value:hn,depth:Fi},(Zi=L[Fi])==null?void 0:Zi.label);return ye.setProperties(He(ge({},ji),{text:hn,textAlign:"center",textBaseline:m.parallel?"hanging":"bottom",rotation:0,translationX:0,translationY:li.screenX})),!0},Ue=0,Ne={};H.forEach((li,Bi)=>{var An;let Fi=B-li.depth,hn=gL(li.label);if((An=Ne[Fi])!=null||(Ne[Fi]=1),Ne[Fi]<hn&&(Ne[Fi]=hn),!(!Be(li,Bi)||!ye.getBBox())&&(be.set(Bi,ye.getBBox()),!li.leafCount)){ye.rotation=Oe;let{width:Zi}=ye.getBBox();Ue<Zi&&(Ue=Zi)}});let Qe=Yy(),nt=ie*Re[0].spacing,rt=new Map,ut=li=>{let Bi=Ue;for(let Fi=1;Fi<=li;Fi++)Bi+=Re[Fi].spacing,(m.mirrored||Fi!==li)&&(Bi+=Ne[Fi]*Re[Fi].lineHeight);return Bi};H.forEach((li,Bi)=>{var Zi;if(Bi===0)return;let Fi=Be(li,Bi),hn=!li.children.length,ji=B-li.depth;if(li.parent){let Ki=hn?li.x:li.x-(li.leafCount-1)/2;if(!rt.has(Ki)){let Dn=(Zi=this.depthOptions[ji])==null?void 0:Zi.tick,Qa=Ue;for(let Kn=0;Kn<=ji;Kn++)Qa+=Re[Kn].spacing,Kn!==0&&(Qa+=Ne[Kn]*Re[Kn].lineHeight);rt.set(Ki,{tickSize:Qa,tickStroke:Dn==null?void 0:Dn.stroke,tickWidth:(Dn==null?void 0:Dn.enabled)!==!1?Dn==null?void 0:Dn.width:0})}}if(!Fi)return;if(ye.x=nt,ye.y=0,hn){let{width:Ki}=be.get(Bi),Dn=KA(Oe);ye.rotation=Oe,ye.textAlign="end",ye.textBaseline="middle",ye.rotationCenterX=nt-Ki/2,ye.translationX=(Re[ji].spacing-Ki)/2*Dn*ie,m.mirrored&&(ye.translationX+=Ki)}else ye.rotation=Q?Me:-Math.PI/2,ye.rotationCenterX=nt,ye.translationX=ie*ut(ji);if(Re[ji].avoidCollisions){let Ki=hn?r:li.leafCount*r;if(ye.getBBox().height>Ki){be.delete(Bi);return}}let{text:An=""}=ye;ue.push({text:An,visible:!0,range:this.scale.range,tickId:Qe(An),fill:ye.fill,fontFamily:ye.fontFamily,fontSize:ye.fontSize,fontStyle:ye.fontStyle,fontWeight:ye.fontWeight,rotation:ye.rotation,rotationCenterX:ye.rotationCenterX,textAlign:ye.textAlign,textBaseline:ye.textBaseline,translationX:ye.translationX,translationY:ye.translationY,x:ye.x,y:ye.y}),be.set(Bi,Ho.toCanvas(ye))});let{enabled:Mt,stroke:Tt,width:_t}=this.line;this.lineNode.datum={x:0,y1:D[0],y2:D[1]},this.lineNode.setProperties({stroke:Tt,strokeWidth:Mt?_t:0});let Kt=[...rt.values()];Kt.push(Kt[0]);let gi=[this.lineNode.getBBox(),new ft(0,0,Kt[0].tickSize*ie,0)];l.enabled&&(this.updateTitle(!1,Kt[0].tickSize),gi.push(l.caption.node.getBBox()));let Ci=ft.merge(ce(be.values(),gi));return{bbox:this.getTransformBox(Ci),separatorLayout:Kt,tickLabelLayout:ue}}update(){if(!this.computedLayout)return;let{tickScale:r,gridLine:l,gridLength:m}=this,{separatorLayout:D}=this.computedLayout,L=r.ticks().map((B,H)=>He(ge({},D[H]),{tick:B,tickId:ws(B,H),tickLabel:B.filter(Boolean).join(" - "),translationY:Math.round(r.convert(B))}));this.gridLineGroupSelection.update(l.enabled&&m?L:[]),this.tickLineGroupSelection.update(this.tick.enabled?L:[]),this.updatePosition(),this.updateCategoryLabels(),this.updateAxisLine(),this.updateGridLines(),this.updateTickLines(),this.updateTitle(),this.resetSelectionNodes()}calculateLayout(){let{separatorLayout:r,tickLabelLayout:l,bbox:m}=this.computeLayout();return this.computedLayout={separatorLayout:r,tickLabelLayout:l},{bbox:m,primaryTickCount:void 0}}onGridVisibilityChange(){this.gridLineGroupSelection.clear(),this.tickLabelGroupSelection.clear()}updateRange(){super.updateRange(),this.tickScale.range=this.scale.range}calculateDomain(){var L;let{direction:r}=this,l=this.boundSeries.filter(B=>B.visible).flatMap(B=>B.getDomain(r));this.setDomain((L=Xg(l))!=null?L:Hf(l));let m=this.dataDomain.domain.map(HC);this.tickTreeLayout=vL(m);let D=[];for(let B of this.tickTreeLayout.nodes)B.leafCount||B.refId==null||D.push(this.dataDomain.domain[B.refId]);this.scale.domain=aa(this.dataDomain.domain,D),this.tickScale.domain=m.concat([[""]])}updateGridLines(){if(!this.gridLength)return;let{width:r,style:l}=this.gridLine,m=this.gridLength*-this.label.getSideFlag();this.gridLineGroupSelection.each((D,L,B)=>{let{stroke:H,lineDash:U}=l[B%l.length],X=L.translationY;D.visible=this.inRange(X),D.x1=0,D.x2=m,D.y=X,D.stroke=H,D.strokeWidth=r,D.lineDash=U})}updateScale(r){super.updateScale(r),this.scale.paddingOuter=this.scale.paddingInner/2}};dg.className="GroupedCategoryAxis",dg.type="grouped-category",T([je(ra)],dg.prototype,"depthOptions",2);function dS(r,l,m){let[D,L]=Xe(r);D=t1(Math.floor(D),L,l);let B=uS(D,L,l),H=l-1;L=D+H*B;let U=m?[L,D]:[D,L],X=OM(D,B,l);return{domain:U,ticks:X}}function t1(r,l,m){let D=Math.abs(l-r)/(m-1),L=Math.floor(Math.log10(D)),B=Math.pow(10,L);return Math.floor(r/B)*B}function OM(r,l,m){let D=Math.floor(Math.log10(l)),L=l>0&&l<1?Math.abs(D):0,B=Math.pow(10,L),H=[];for(let U=0;U<m;U++){let X=r+l*U;H[U]=Math.round(X*B)/B}return H}function uS(r,l,m){let D=m-1,L=(l-r)/D;return i1(L)}function i1(r){let l=Math.floor(Math.log10(r)),m=Math.pow(10,l),D=r/m*10;return D>0&&D<=1?m/10:D>1&&D<=2?2*m/10:D>1&&D<=5?5*m/10:D>5&&D<=10?10*m/10:D>10&&D<=20?20*m/10:D>20&&D<=40?40*m/10:D>40&&D<=50?50*m/10:D>50&&D<=100?100*m/10:D}var jc=class extends Fa{constructor(){super([0,1],[0,1]),this.type="number"}toDomain(r){return r}ticks(){var D;let r=(D=this.tickCount)!=null?D:Fa.defaultTickCount;if(!this.domain||this.domain.length<2||r<1||!this.domain.every(isFinite))return[];this.refresh();let[l,m]=this.getDomain();if(this.interval){let L=Math.abs(this.interval);if(!e0((m-l)/L,this.getPixelRange()))return ds(l,m,L)}return Hh(l,m,r,this.minTickCount,this.maxTickCount)}update(){!this.domain||this.domain.length<2||this.nice&&this.updateNiceDomain()}getTickStep(r,l){var m;return(m=this.interval)!=null?m:fi(r,l,this.tickCount,this.minTickCount,this.maxTickCount)}updateNiceDomain(){let r=this.tickCount,[l,m]=this.domain;if(r===1)[l,m]=zy(l,m);else if(r>1){let D=l>m?Math.ceil:Math.floor,L=l>m?Math.floor:Math.ceil,B=4;for(let H=0;H<B;H++){let U=l,X=m,Q=this.getTickStep(l,m),[ie,ue]=this.domain;if(l=D(ie/Q)*Q,m=L(ue/Q)*Q,l===U&&m===X)break}}this.niceDomain=[l,m]}tickFormat({ticks:r,specifier:l}){return fl(r!=null?r:this.ticks(),l)}},$m=class extends ia{constructor(r,l=new jc){super(r,l),this.min=NaN,this.max=NaN}normaliseDataDomain(r){let{min:l,max:m}=this,{extent:D,clipped:L}=Os(r,l,m);return{domain:D,clipped:L}}updateSecondaryAxisTicks(r){var D;if(!((D=this.dataDomain)!=null&&D.domain.length))return[];let{domain:l,ticks:m}=dS(this.dataDomain.domain,r!=null?r:0,this.reverse);return this.scale.nice=!1,this.scale.domain=l,this.scale.update(),m}};$m.className="NumberAxis",$m.type="number",T([je(dd(jt,Zu("max"))),qh(NaN)],$m.prototype,"min",2),T([je(dd(jt,Py("min"))),qh(NaN)],$m.prototype,"max",2);var bT=Zn(r=>as(r)&&r!==0,"a non-zero number"),Qm=class extends $m{constructor(r){super(r,new zA),this.min=NaN,this.max=NaN}normaliseDataDomain(r){let{min:l,max:m}=this,{extent:D,clipped:L}=Os(r,l,m);return D[0]<0&&D[1]>0?(vi.warn("The log axis domain crosses zero, the chart data cannot be rendered. See log axis documentation for more information."),{domain:[],clipped:L}):D[0]===0||D[1]===0?(vi.warn("The log axis domain contains a value of 0, the chart data cannot be rendered. See log axis documentation for more information."),{domain:[],clipped:L}):{domain:D,clipped:L}}set base(r){this.scale.base=r}get base(){return this.scale.base}updateSecondaryAxisTicks(r){var D;if(!((D=this.dataDomain)!=null&&D.domain.length))return[];let{domain:l,ticks:m}=dS(this.dataDomain.domain,r!=null?r:0,this.reverse);return this.scale.nice=!1,this.scale.domain=l,this.scale.update(),m}};Qm.className="LogAxis",Qm.type="log",T([je(dd(jt,bT,Zu("max"))),qh(NaN)],Qm.prototype,"min",2),T([je(dd(jt,bT,Py("min"))),qh(NaN)],Qm.prototype,"max",2);var Pv=class extends ia{constructor(r){super(r,new VA),this.min=void 0,this.max=void 0}normaliseDataDomain(r){var L,B;let{min:l,max:m}=this,D=!1;return typeof l=="number"&&(l=new Date(l)),typeof m=="number"&&(m=new Date(m)),r.length>2&&(r=(B=(L=Xg(r))==null?void 0:L.map(H=>new Date(H)))!=null?B:[]),l instanceof Date&&(D||(D=l>r[0]),r=[l,r[1]]),m instanceof Date&&(D||(D=m<r[1]),r=[r[0],m]),r[0]>r[1]&&(r=[]),{domain:r,clipped:D}}onFormatChange(r,l,m,D){D?super.onFormatChange(r,l,m,D):(this.labelFormatter=this.scale.tickFormat({ticks:r,domain:m}),this.datumFormatter=this.scale.tickFormat({ticks:r,domain:m,formatOffset:1}))}updateSecondaryAxisTicks(r){var D;if(!((D=this.dataDomain)!=null&&D.domain.length))return[];let{domain:l,ticks:m}=dS(this.dataDomain.domain.map(Number),r!=null?r:0,this.reverse);return this.scale.nice=!1,this.scale.domain=l.map(L=>new Date(L)),this.scale.update(),m}};Pv.className="TimeAxis",Pv.type="time",T([je(dd(Ly,Zu("max")),{optional:!0})],Pv.prototype,"min",2),T([je(dd(Ly,Py("min")),{optional:!0})],Pv.prototype,"max",2);var Lb=(r,{x0:l,y0:m,x1:D,y1:L,cx:B,cy:H},U,X)=>{if(X&&r.moveTo(l,m),l!==D||m!==L){let Q=Math.atan2(m-H,l-B),ie=Math.atan2(L-H,D-B);r.arc(B,H,U,Q,ie)}else r.lineTo(l,m)},n1=1e-6,FM=(r,l,m,D,L)=>{let B=!1,H=!1,U=D-Math.sqrt(Math.max(L**2-m**2,0)),X=0,Q=0,ie=m-Math.sqrt(Math.max(L**2-D**2,0));return U>r?(B=!0,U=r,X=m-Math.sqrt(Math.max(L**2-(D-r)**2))):U<n1&&(U=0),ie>l?(H=!0,Q=D-Math.sqrt(Math.max(L**2-(m-l)**2)),ie=l):ie<n1&&(ie=0),{leading0:U,leading1:X,trailing0:Q,trailing1:ie,leadingClipped:B,trailingClipped:H}},Zs=(r,l,m,D,L,B,H)=>{let{topLeft:U,topRight:X,bottomRight:Q,bottomLeft:ie}=B,ue=Math.max(U+ie,X+Q),be=Math.max(U+X,ie+Q);if(ue<=0&&be<=0){H==null?r.rect(l,m,D,L):r.rect(H.x,H.y,H.width,H.height);return}else if(H==null&&U===X&&U===Q&&U===ie){r.roundRect(l,m,D,L,U);return}if(D<0&&(l+=D,D=Math.abs(D)),L<0&&(m+=L,L=Math.abs(L)),D<=0||L<=0)return;if(H==null)H=new ft(l,m,D,L);else{let rt=Math.max(l,H.x),ut=Math.min(l+D,H.x+H.width),Mt=Math.max(m,H.y),Tt=Math.min(m+L,H.y+H.height);H=new ft(rt,Mt,ut-rt,Tt-Mt)}let ye=Math.max(ue/L,be/D,1);ye>1&&(U/=ye,X/=ye,Q/=ye,ie/=ye);let Me=!0,Ie=!0,Oe=!0,Re=!0,Be,Ue,Ne,Qe;if(Me){let rt=FM(H.height,H.width,Math.max(l+U-H.x,0),Math.max(m+U-H.y,0),U);rt.leadingClipped&&(Re=!1),rt.trailingClipped&&(Ie=!1);let ut=Math.max(H.x+rt.leading1,H.x),Mt=Math.max(H.y+rt.leading0,H.y),Tt=Math.max(H.x+rt.trailing1,H.x),_t=Math.max(H.y+rt.trailing0,H.y),Kt=l+U,gi=m+U;Be={x0:ut,y0:Mt,x1:Tt,y1:_t,cx:Kt,cy:gi}}if(Ie){let rt=FM(H.width,H.height,Math.max(m+X-H.y,0),Math.max(H.x+H.width-(l+D-X),0),X);rt.leadingClipped&&(Me=!1),rt.trailingClipped&&(Oe=!1);let ut=Math.min(H.x+H.width-rt.leading0,H.x+H.width),Mt=Math.max(H.y+rt.leading1,H.y),Tt=Math.min(H.x+H.width-rt.trailing0,H.x+H.width),_t=Math.max(H.y+rt.trailing1,H.y),Kt=l+D-X,gi=m+X;Ue={x0:ut,y0:Mt,x1:Tt,y1:_t,cx:Kt,cy:gi}}if(Oe){let rt=FM(H.height,H.width,Math.max(H.x+H.width-(l+D-Q),0),Math.max(H.y+H.height-(m+L-Q),0),Q);rt.leadingClipped&&(Ie=!1),rt.trailingClipped&&(Re=!1);let ut=Math.min(H.x+H.width-rt.leading1,H.x+H.width),Mt=Math.min(H.y+H.height-rt.leading0,H.y+H.height),Tt=Math.min(H.x+H.width-rt.trailing1,H.x+H.width),_t=Math.min(H.y+H.height-rt.trailing0,H.y+H.height),Kt=l+D-Q,gi=m+L-Q;Ne={x0:ut,y0:Mt,x1:Tt,y1:_t,cx:Kt,cy:gi}}if(Re){let rt=FM(H.width,H.height,Math.max(H.y+H.height-(m+L-ie),0),Math.max(l+ie-H.x,0),ie);rt.leadingClipped&&(Oe=!1),rt.trailingClipped&&(Me=!1);let ut=Math.max(H.x+rt.leading0,H.x),Mt=Math.min(H.y+H.height-rt.leading1,H.y+H.height),Tt=Math.max(H.x+rt.trailing0,H.x),_t=Math.min(H.y+H.height-rt.trailing1,H.y+H.height),Kt=l+ie,gi=m+L-ie;Qe={x0:ut,y0:Mt,x1:Tt,y1:_t,cx:Kt,cy:gi}}let nt=!1;Me&&Be!=null&&(Lb(r,Be,U,!nt),nt||(nt=!0)),Ie&&Ue!=null&&(Lb(r,Ue,X,!nt),nt||(nt=!0)),Oe&&Ne!=null&&(Lb(r,Ne,Q,!nt),nt||(nt=!0)),Re&&Qe!=null&&Lb(r,Qe,ie,!nt),r.closePath()},za=class extends Dl{constructor(){super(...arguments),this.borderPath=new vr,this.x=0,this.y=0,this.width=10,this.height=10,this.topLeftCornerRadius=0,this.topRightCornerRadius=0,this.bottomRightCornerRadius=0,this.bottomLeftCornerRadius=0,this.clipBBox=void 0,this.crisp=!1,this.lastUpdatePathStrokeWidth=Cn.defaultStyles.strokeWidth,this.effectiveStrokeWidth=Cn.defaultStyles.strokeWidth,this.hittester=super.isPointInPath.bind(this),this.distanceCalculator=super.distanceSquaredTransformedPoint.bind(this),this.microPixelEffectOpacity=1}set cornerRadius(r){this.topLeftCornerRadius=r,this.topRightCornerRadius=r,this.bottomRightCornerRadius=r,this.bottomLeftCornerRadius=r}isDirtyPath(){return this.lastUpdatePathStrokeWidth!==this.strokeWidth||!!(this.path.isDirty()||this.borderPath.isDirty())}updatePath(){var Oe,Re,Be;let{path:r,borderPath:l,crisp:m,topLeftCornerRadius:D,topRightCornerRadius:L,bottomRightCornerRadius:B,bottomLeftCornerRadius:H}=this,{x:U,y:X,width:Q,height:ie,strokeWidth:ue,clipBBox:be}=this,Me=1/((Re=(Oe=this.layerManager)==null?void 0:Oe.canvas.pixelRatio)!=null?Re:1),Ie=1;if(r.clear(!0),l.clear(!0),m&&(Q<=Me&&(Ie*=Q/Me),ie<=Me&&(Ie*=ie/Me),Q=this.align(U,Q),ie=this.align(X,ie),U=this.align(U),X=this.align(X),be=be!=null?new ft(this.align(be.x),this.align(be.y),this.align(be.x,be.width),this.align(be.y,be.height)):void 0),ue)if(Q<Me){let Ue=U+Me/2;l.moveTo(Ue,X),l.lineTo(Ue,X+ie),ue=Me,this.borderClipPath=void 0}else if(ie<Me){let Ue=X+Me/2;l.moveTo(U,Ue),l.lineTo(U+Q,Ue),ue=Me,this.borderClipPath=void 0}else if(ue<Q&&ue<ie){let Ue=ue/2;U+=Ue,X+=Ue,Q-=ue,ie-=ue;let Ne=be==null?void 0:be.clone().shrink(Ue),Qe={topLeft:D>0?D-ue:0,topRight:L>0?L-ue:0,bottomRight:B>0?B-ue:0,bottomLeft:H>0?H-ue:0};this.borderClipPath=void 0,Q>0&&ie>0&&(Ne==null||(Ne==null?void 0:Ne.width)>0&&(Ne==null?void 0:Ne.height)>0)&&(Zs(r,U,X,Q,ie,Qe,Ne),Zs(l,U,X,Q,ie,Qe,Ne))}else this.borderClipPath=(Be=this.borderClipPath)!=null?Be:new vr,this.borderClipPath.clear(!0),this.borderClipPath.rect(U,X,Q,ie),l.rect(U,X,Q,ie);else{let Ue={topLeft:D,topRight:L,bottomRight:B,bottomLeft:H};this.borderClipPath=void 0,Zs(r,U,X,Q,ie,Ue,be)}if([D,L,B,H].every(Ue=>Ue===0)){let Ue=this.getBBox();this.hittester=Ue.containsPoint.bind(Ue),this.distanceSquared=(Ne,Qe)=>this.getBBox().distanceSquared(Ne,Qe)}else this.hittester=super.isPointInPath,this.distanceCalculator=super.distanceSquaredTransformedPoint;this.effectiveStrokeWidth=ue,this.lastUpdatePathStrokeWidth=ue,this.microPixelEffectOpacity=Ie}computeBBox(){var B;let{x:r,y:l,width:m,height:D,clipBBox:L}=this;return(B=L==null?void 0:L.clone())!=null?B:new ft(r,l,m,D)}isPointInPath(r,l){return this.hittester(r,l)}get midPoint(){return{x:this.x+this.width/2,y:this.y+this.height/2}}distanceSquared(r,l){return this.distanceCalculator(r,l)}applyFillAlpha(r){let{fillOpacity:l,microPixelEffectOpacity:m,opacity:D}=this;r.globalAlpha*=D*l*m}renderStroke(r){let{stroke:l,effectiveStrokeWidth:m}=this;if(l&&m){let{globalAlpha:D}=r,{strokeOpacity:L,lineDash:B,lineDashOffset:H,lineCap:U,lineJoin:X,borderPath:Q,borderClipPath:ie,opacity:ue,microPixelEffectOpacity:be}=this;ie&&r.clip(ie.getPath2D()),this.applyStroke(r),r.globalAlpha*=ue*L*be,r.lineWidth=m,B&&r.setLineDash(B),H&&(r.lineDashOffset=H),U&&(r.lineCap=U),X&&(r.lineJoin=X),r.stroke(Q.getPath2D()),r.globalAlpha=D}}};za.className="Rect",T([rn()],za.prototype,"x",2),T([rn()],za.prototype,"y",2),T([rn()],za.prototype,"width",2),T([rn()],za.prototype,"height",2),T([rn()],za.prototype,"topLeftCornerRadius",2),T([rn()],za.prototype,"topRightCornerRadius",2),T([rn()],za.prototype,"bottomRightCornerRadius",2),T([rn()],za.prototype,"bottomLeftCornerRadius",2),T([rn()],za.prototype,"clipBBox",2),T([rn()],za.prototype,"crisp",2);var bh=class extends y0{constructor(r){super(),this.ctx=r,this.rectNode=new za,this.textNode=new hr,this.fill="white",this.node=this.createNode(),this.node.append([this.rectNode,this.textNode]),this.visible=!0,this.destroyFns.push(r.scene.attachNode(this.node),r.layoutManager.addListener("layout:complete",l=>this.onLayoutComplete(l)))}createNode(){return new Ji({name:"background",zIndex:0})}onLayoutComplete(r){let{width:l,height:m}=r.chart;this.rectNode.width=l,this.rectNode.height=m}};T([je(Ri),Tn("node","visible")],bh.prototype,"visible",2),T([je(In,{optional:!0}),Tn("rectNode","fill")],bh.prototype,"fill",2),T([je(Si,{optional:!0})],bh.prototype,"image",2),T([je(Qt,{optional:!0}),Tn("textNode")],bh.prototype,"text",2);var hS={type:"root",optionsKey:"background",packageType:"community",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:r=>new bh(r)};function CT({orientation:r,bboxes:l,maxHeight:m,maxWidth:D,itemPaddingY:L=0,itemPaddingX:B=0,forceResult:H=!1}){let U=r==="horizontal",X={max:U?D:m,fn:U?be=>be.width:be=>be.height,padding:U?B:L},Q={max:U?m:D,fn:U?be=>be.height:be=>be.width,padding:U?L:B},ie=0,ue=[];for(;ie<l.length;){let be=l.slice(ie),ye=_M(be,ie,X,Q,H);if(!ye)return;ie+=ye.processedBBoxCount,ue.push(ye.pageIndices)}return NM(ue,r,l,L,B)}function _M(r,l,m,D,L){let H=wT(r,m);if(H<1){if(!L)return;H=1}let U=H;for(;U>=1;){let X=ST(r,l,U,m,D,L);if(X==null&&U<=1)return;if(X==null){U--;continue}if(typeof X=="number"){if(X<=1)return;U=X<U&&X>1?X:U,U--;continue}return{processedBBoxCount:X.length*X[0].length,pageIndices:X}}}function ST(r,l,m,D,L,B){var ue;let H=[],U=0,X=0,Q=[],ie=[];for(let be=0;be<r.length;be++){let ye=(be+m)%m;ye===0&&(U+=X,X=0,Q.length>0&&H.push(Q),Q=[]);let Me=D.fn(r[be])+D.padding;ie[ye]=Math.max((ue=ie[ye])!=null?ue:0,Me),X=Math.max(X,L.fn(r[be])+L.padding);let Ie=U+X,Oe=!B||H.length>0;if(Ie>L.max&&Oe){Q=[];break}if(ie.reduce((Be,Ue)=>Be+Ue,0)>D.max&&!B)return ie.length<m?ie.length:void 0;Q.push(be+l)}return Q.length>0&&H.push(Q),H.length>0?H:void 0}function NM(r,l,m,D,L){let B=0,H=0;return{pages:r.map(X=>{l==="horizontal"&&(X=bL(X));let Q=0,ie=X.map(ye=>{let Me=ye.map(Re=>(Q=Math.max(Re,Q),m[Re])),Ie=0,Oe=0;return Me.forEach(Re=>{Ie+=Re.height+D,Oe=Math.max(Oe,Re.width+L)}),{indices:ye,bboxes:Me,columnHeight:Math.ceil(Ie),columnWidth:Math.ceil(Oe)}}),ue=0,be=0;return ie.forEach(ye=>{ue+=ye.columnWidth,be=Math.max(be,ye.columnHeight)}),B=Math.max(ue,B),H=Math.max(be,H),{columns:ie,startIndex:X[0][0],endIndex:Q,pageWidth:ue,pageHeight:be}}),maxPageWidth:B,maxPageHeight:H}}function bL(r){let l=[];for(let m of r[0])l.push([]);return r.forEach((m,D)=>{m.forEach((L,B)=>{l[B][D]=L})}),l}function wT(r,l){let m=r.length,D=0;for(let L=0;L<m;L++)if(D+=l.fn(r[L])+l.padding,D>l.max)return m/L<2?Math.ceil(m/2):L;return m}var Ob=class extends Hi{constructor(){super(...arguments),this.color="black",this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}};T([je(In)],Ob.prototype,"color",2),T([je($u,{optional:!0})],Ob.prototype,"fontStyle",2),T([je(Qu,{optional:!0})],Ob.prototype,"fontWeight",2),T([je(bi)],Ob.prototype,"fontSize",2),T([je(Qt)],Ob.prototype,"fontFamily",2);var Hc=class extends Hi{constructor(){super(...arguments),this.size=15,this.fill=void 0,this.fillOpacity=void 0,this.stroke=void 0,this.strokeWidth=1,this.strokeOpacity=1}};T([je(bi)],Hc.prototype,"size",2),T([je(In,{optional:!0})],Hc.prototype,"fill",2),T([je(oa,{optional:!0})],Hc.prototype,"fillOpacity",2),T([je(In,{optional:!0})],Hc.prototype,"stroke",2),T([je(bi)],Hc.prototype,"strokeWidth",2),T([je(oa)],Hc.prototype,"strokeOpacity",2);var gS=class extends Hi{constructor(r){super(),this.parent=r,this.shape="triangle",this.size=15,this.padding=8}};T([Cl({changeValue(){this.parent.marker===this&&this.parent.onMarkerShapeChange()}})],gS.prototype,"shape",2),T([je(bi)],gS.prototype,"size",2),T([je(bi)],gS.prototype,"padding",2);var Ch=class extends Hi{constructor(r,l){super(),this.chartUpdateCallback=r,this.pageUpdateCallback=l,this.id=Y(this),this.marker=new gS(this),this.activeStyle=new Hc,this.inactiveStyle=new Hc,this.highlightStyle=new Hc,this.label=new Ob,this.group=new js({name:"pagination"}),this.labelNode=new hr,this.destroyFns=[],this.totalPages=0,this.currentPage=0,this.translationX=0,this.translationY=0,this.nextButtonDisabled=!1,this.previousButtonDisabled=!1,this._visible=!0,this._enabled=!0,this._orientation="vertical",this._nextButton=new sg,this._previousButton=new sg,this.labelNode.setProperties({textBaseline:"middle",fontSize:12,fontFamily:"Verdana, sans-serif",fill:"black",y:1}),this.group.append([this.nextButton,this.previousButton,this.labelNode]),this.update(),this.updateMarkers()}destroy(){this.destroyFns.forEach(r=>r())}set visible(r){this._visible=r,this.updateGroupVisibility()}get visible(){return this._visible}set enabled(r){this._enabled=r,this.updateGroupVisibility()}get enabled(){return this._enabled}updateGroupVisibility(){this.group.visible=this.enabled&&this.visible}set orientation(r){switch(this._orientation=r,r){case"horizontal":{this.previousButton.rotation=-Math.PI/2,this.nextButton.rotation=Math.PI/2;break}case"vertical":default:this.previousButton.rotation=0,this.nextButton.rotation=Math.PI}}get orientation(){return this._orientation}set nextButton(r){this._nextButton!==r&&(this.group.removeChild(this._nextButton),this._nextButton=r,this.group.appendChild(r))}get nextButton(){return this._nextButton}set previousButton(r){this._previousButton!==r&&(this.group.removeChild(this._previousButton),this._previousButton=r,this.group.appendChild(r))}get previousButton(){return this._previousButton}update(){this.updateLabel(),this.updatePositions(),this.enableOrDisableButtons()}updatePositions(){this.group.translationX=this.translationX,this.group.translationY=this.translationY,this.updateLabelPosition(),this.updateNextButtonPosition()}updateLabelPosition(){let{size:r,padding:l}=this.marker;this.nextButton.size=r,this.previousButton.size=r,this.labelNode.x=r/2+l}updateNextButtonPosition(){let r=this.labelNode.getBBox();this.nextButton.translationX=r.width+(this.marker.size/2+this.marker.padding)*2}updateLabel(){let{currentPage:r,totalPages:l,labelNode:m,label:{color:D,fontStyle:L,fontWeight:B,fontSize:H,fontFamily:U}}=this;m.text=`${r+1} / ${l}`,m.fill=D,m.fontStyle=L,m.fontWeight=B,m.fontSize=H,m.fontFamily=U}updateMarkers(){let{nextButton:r,previousButton:l,nextButtonDisabled:m,previousButtonDisabled:D,activeStyle:L,inactiveStyle:B,highlightStyle:H,highlightActive:U}=this,X=(Q,ie)=>ie?B:Q===U?H:L;this.updateMarker(r,X("next",m)),this.updateMarker(l,X("previous",D))}updateMarker(r,l){var D;let{size:m}=this.marker;r.size=m,r.fill=l.fill,r.fillOpacity=(D=l.fillOpacity)!=null?D:1,r.stroke=l.stroke,r.strokeWidth=l.strokeWidth,r.strokeOpacity=l.strokeOpacity}enableOrDisableButtons(){let{currentPage:r,totalPages:l}=this,m=l===0,D=r===l-1,L=r===0;this.nextButtonDisabled=D||m,this.previousButtonDisabled=L||m}setPage(r){r=st(0,r,Math.max(0,this.totalPages-1)),this.currentPage!==r&&(this.currentPage=r,this.onPaginationChanged())}getCursor(r){return{previous:this.previousButtonDisabled,next:this.nextButtonDisabled}[r]?void 0:"pointer"}onClick(r,l){r.preventDefault(),l==="next"&&!this.nextButtonDisabled?(this.incrementPage(),this.onPaginationChanged()):l==="previous"&&!this.previousButtonDisabled&&(this.decrementPage(),this.onPaginationChanged())}onMouseHover(r){this.highlightActive=r,this.updateMarkers(),this.chartUpdateCallback(6)}onPaginationChanged(){this.pageUpdateCallback(this.currentPage)}incrementPage(){this.currentPage=Math.min(this.currentPage+1,this.totalPages-1)}decrementPage(){this.currentPage=Math.max(this.currentPage-1,0)}onMarkerShapeChange(){let r=Cm(Cd(this.marker.shape||sg));this.previousButton=new r,this.nextButton=new r,this.updatePositions(),this.updateMarkers(),this.chartUpdateCallback(6)}attachPagination(r){r.append(this.group)}getBBox(){return this.group.getBBox()}computeCSSBounds(){let r=Ho.toCanvas(this.previousButton),l=Ho.toCanvas(this.nextButton);return{prev:r,next:l}}};Ch.className="Pagination",T([je(Si)],Ch.prototype,"marker",2),T([je(Si)],Ch.prototype,"activeStyle",2),T([je(Si)],Ch.prototype,"inactiveStyle",2),T([je(Si)],Ch.prototype,"highlightStyle",2),T([je(Si)],Ch.prototype,"label",2);var zM=class{constructor(r,l){this.idPrefix=l,this.dirty=!0,this.destroyFns=new Fc,this.itemList=r.proxyInteractionService.createProxyContainer({type:"list",domManagerId:`${l}-toolbar`,classList:["ag-charts-proxy-legend-toolbar"],ariaLabel:{id:"ariaLabelLegend"}}),this.paginationGroup=r.proxyInteractionService.createProxyContainer({type:"group",domManagerId:`${l}-pagination`,classList:["ag-charts-proxy-legend-pagination"],ariaLabel:{id:"ariaLabelLegendPagination"},ariaOrientation:"horizontal"}),this.itemDescription=ta("p"),this.itemDescription.style.display="none",this.itemDescription.id=`${l}-ariaDescription`,this.itemDescription.textContent=this.getItemAriaDescription(r.localeManager),this.itemList.getElement().append(this.itemDescription)}destroy(){this.destroyFns.destroy()}initLegendList(r){if(!this.dirty)return;let{ctx:l,itemSelection:m,datumReader:D,itemListener:L}=r,B=l.localeManager,H=m.length;m.each((U,X,Q)=>{var ue;(ue=U.proxyButton)==null||ue.destroy(),U.proxyButton=l.proxyInteractionService.createProxyElement({type:"listswitch",id:`ag-charts-legend-item-${Q}`,textContent:this.getItemAriaText(B,D.getItemLabel(X),Q,H),ariaChecked:!!U.datum.enabled,ariaDescribedBy:this.itemDescription.id,parent:this.itemList});let ie=U.proxyButton;ie.addListener("click",be=>L.onClick(be.sourceEvent,U.datum,ie)),ie.addListener("dblclick",be=>L.onDoubleClick(be.sourceEvent,U.datum)),ie.addListener("mouseenter",be=>L.onHover(be.sourceEvent,U)),ie.addListener("mouseleave",()=>L.onLeave()),ie.addListener("contextmenu",be=>L.onContextClick(be.sourceEvent,U)),ie.addListener("blur",()=>L.onLeave()),ie.addListener("focus",be=>L.onHover(be.sourceEvent,U))}),this.dirty=!1}update(r){this.updateVisibility(r.visible),r.visible&&(this.initLegendList(r),this.updateItemProxyButtons(r),this.updatePaginationProxyButtons(r))}updateVisibility(r){this.itemList.setHidden(!r),this.paginationGroup.setHidden(!r)}updateItemProxyButtons({itemSelection:r,group:l,pagination:m,interactive:D}){let L=Ho.toCanvas(l);this.itemList.setBounds(L);let B=Math.max(...r.nodes().map(H=>H.getBBox().height));r.each((H,U)=>{if(H.proxyButton){let X=H.pageIndex===m.currentPage,{x:Q,y:ie,height:ue,width:be}=Ho.toCanvas(H),ye=(B-ue)/2,Me={x:Q-L.x,y:ie-ye-L.y,height:B,width:be};H.proxyButton.setCursor("pointer"),H.proxyButton.setEnabled(D&&X),H.proxyButton.setBounds(Me)}})}updatePaginationProxyButtons(r){var Q,ie,ue,be,ye,Me;let{ctx:l,pagination:m,oldPages:D,newPages:L}=r;this.paginationGroup.setHidden(!m.visible);let B=((Q=D==null?void 0:D.length)!=null?Q:L.length)>1,H=L.length>1;B!==H&&(H?(this.prevButton=l.proxyInteractionService.createProxyElement({type:"button",id:`${this.idPrefix}-prev-page`,textContent:{id:"ariaLabelLegendPagePrevious"},tabIndex:0,parent:this.paginationGroup}),this.prevButton.addListener("click",Ie=>m.onClick(Ie.sourceEvent,"previous")),this.prevButton.addListener("mouseenter",()=>m.onMouseHover("previous")),this.prevButton.addListener("mouseleave",()=>m.onMouseHover(void 0)),(ie=this.nextButton)!=null||(this.nextButton=l.proxyInteractionService.createProxyElement({type:"button",id:`${this.idPrefix}-next-page`,textContent:{id:"ariaLabelLegendPageNext"},tabIndex:0,parent:this.paginationGroup})),this.nextButton.addListener("click",Ie=>m.onClick(Ie.sourceEvent,"next")),this.nextButton.addListener("mouseenter",()=>m.onMouseHover("next")),this.nextButton.addListener("mouseleave",()=>m.onMouseHover(void 0))):((ue=this.nextButton)==null||ue.destroy(),(be=this.prevButton)==null||be.destroy(),this.nextButton=void 0,this.prevButton=void 0));let{prev:U,next:X}=m.computeCSSBounds();(ye=this.prevButton)==null||ye.setBounds(U),(Me=this.nextButton)==null||Me.setBounds(X),this.updatePaginationCursors(r)}updatePaginationCursors({pagination:r}){var l,m;(l=this.nextButton)==null||l.setCursor(r.getCursor("next")),(m=this.prevButton)==null||m.setCursor(r.getCursor("previous"))}onDataUpdate(r,l){this.dirty=r.length!==l.length||r.some((m,D,L)=>{let[B,H]=[l[D],r[D]];return B.id!==H.id})}onLocaleChanged(r,l,m){let D=l.length;l.each(({proxyButton:L},B,H)=>{let U=L==null?void 0:L.getElement();if(U!=null){let X=m.getItemLabel(B);U.textContent=this.getItemAriaText(r,X,H,D)}}),this.itemDescription.textContent=this.getItemAriaDescription(r)}onPageChange(r){this.updateItemProxyButtons(r),this.updatePaginationCursors(r)}getItemAriaText(r,l,m,D){return m>=0&&l?(m++,r.t("ariaLabelLegendItem",{label:l,index:m,count:D})):r.t("ariaLabelLegendItemUnknown")}getItemAriaDescription(r){return r.t("ariaDescriptionLegendItem")}};function BM(r,l,m,D){let L={defaultPrevented:!1,apiEvent:{type:r,itemId:l,seriesId:m,event:D,preventDefault:()=>L.defaultPrevented=!0}};return L}var Jm=class extends na{constructor(r){super(),this.sourceImage=r,this.x=0,this.y=0,this.width=0,this.height=0,this.opacity=1}updateBitmap(r,l,m,D){this.sourceImage=r,this.width=r.width/l,this.height=r.height/l,this.x=m/l,this.y=D/l,this.markDirty()}render(r){let{ctx:l}=r,m=this.sourceImage;m&&(l.globalAlpha=this.opacity,l.drawImage(m,0,0,m.width,m.height,this.x,this.y,this.width,this.height)),super.render(r)}};T([Lt()],Jm.prototype,"x",2),T([Lt()],Jm.prototype,"y",2),T([Lt()],Jm.prototype,"width",2),T([Lt()],Jm.prototype,"height",2),T([Lt()],Jm.prototype,"opacity",2);var ug=class extends Sm(Ji){constructor(){super({name:"markerLabelGroup"}),this.label=new hr,this.symbolsGroup=new Ji({name:"legend-markerLabel-symbols"}),this.bitmap=new Jm,this.bitmapDirty=!0,this.enabled=!0,this.pageIndex=NaN,this._marker=void 0,this._line=void 0;let{marker:r,label:l,line:m}=this;l.textBaseline="middle",l.fontSize=12,l.fontFamily="Verdana, sans-serif",l.fill="black",l.y=1,this.updateSymbols(r,m),this.append([this.symbolsGroup,l])}destroy(){var r;super.destroy(),(r=this.proxyButton)==null||r.destroy()}get marker(){return this._marker}get line(){return this._line}updateSymbols(r,l){this._marker===r&&this._line===l||(this.bitmapDirty=!0,this._marker=r,this._line=l,this.symbolsGroup.clear(),this.symbolsGroup.append([this.bitmap,l,r].filter(cr)))}setEnabled(r){this.enabled=r,this.refreshVisibilities()}refreshVisibilities(){let r=this.enabled?1:.5;this.label.opacity=r,this.opacity=r,this.bitmap.opacity=r,this.setBitmapVisibility(!this.enabled)}setBitmapVisibility(r){let{line:l,marker:m}=this;m!=null&&(m.visible=!r),l!=null&&(l.visible=!r),this.bitmap.visible=r}update(r,{spriteAAPadding:l,spritePixelRatio:m},D){var Ne,Qe,nt;let{marker:L,line:B}=this,{length:H,spacing:U,isCustomMarker:X}=D,Q=1/0,ie=1/0,ue=1/0,be=1/0,ye=1/0,Me=0,Ie=0;if(L){let{size:rt}=L,ut=L.constructor.center,Mt=(rt+L.strokeWidth)/2;Me=(ut.x-.5)*rt,Ie=(ut.y-.5)*rt,X?(L.x=0,L.y=0,L.translationX=Me*rt+H/2,L.translationY=Ie*rt,be=L.translationY-Mt,ye=L.translationX-Mt):(L.x=Me+H/2,L.y=Ie,be=L.y-Mt,ye=L.x-Mt)}B&&(B.x1=0,B.x2=H,B.y1=0,B.y2=0,B.markDirty(),Q=-B.strokeWidth/2,ie=B.x1,ue=B.x2);let Oe=Math.min(ie,ue,ye),Re=Math.min(Q,be),Be=(Ne=B==null?void 0:B.x2)!=null?Ne:-1/0,Ue=((Qe=L==null?void 0:L.x)!=null?Qe:0)+((nt=L==null?void 0:L.size)!=null?nt:0)/2;if(this.label.x=Math.max(Be,Ue)+U,this.bitmapDirty){this.setBitmapVisibility(!1);let rt=Me+(l+Oe)*m,ut=Ie+(l-Re)*m,Mt=r.renderSprite(this.symbolsGroup,{scale:m,translateX:Math.floor(rt),translateY:Math.floor(ut)});this.bitmap.updateBitmap(Mt,m,Math.ceil(-rt),Math.ceil(-ut)),this.bitmapDirty=!1,this.refreshVisibilities()}}computeBBox(){let{label:r,line:l,marker:m}=this;return this.toParent(Ji.computeChildrenBBox([r,l,m].filter(cr),!1))}};ug.className="MarkerLabel",T([Tn("label")],ug.prototype,"text",2),T([Tn("label")],ug.prototype,"fontStyle",2),T([Tn("label")],ug.prototype,"fontWeight",2),T([Tn("label")],ug.prototype,"fontSize",2),T([Tn("label")],ug.prototype,"fontFamily",2),T([Tn("label","fill")],ug.prototype,"color",2);var ef=class extends Hi{constructor(){super(...arguments),this.maxLength=void 0,this.color="black",this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}};T([je(bi,{optional:!0})],ef.prototype,"maxLength",2),T([je(In)],ef.prototype,"color",2),T([je($u,{optional:!0})],ef.prototype,"fontStyle",2),T([je(Qu,{optional:!0})],ef.prototype,"fontWeight",2),T([je(bi)],ef.prototype,"fontSize",2),T([je(Qt)],ef.prototype,"fontFamily",2),T([je(_a,{optional:!0})],ef.prototype,"formatter",2);var Lv=class extends Hi{constructor(){super(...arguments),this.size=15,this.padding=8}};T([ip(r=>{var l;return(l=r.parent)==null?void 0:l.onMarkerShapeChange()})],Lv.prototype,"shape",2),T([je(bi)],Lv.prototype,"size",2),T([je(bi)],Lv.prototype,"padding",2),T([je(bi,{optional:!0})],Lv.prototype,"strokeWidth",2),T([je(Ri)],Lv.prototype,"enabled",2);var a1=class extends Hi{};T([je(bi,{optional:!0})],a1.prototype,"strokeWidth",2),T([je(bi,{optional:!0})],a1.prototype,"length",2);var xp=class extends Hi{constructor(){super(...arguments),this.paddingX=16,this.paddingY=8,this.showSeriesStroke=!1,this.marker=new Lv,this.label=new ef,this.line=new a1}};T([je(bi,{optional:!0})],xp.prototype,"maxWidth",2),T([je(bi)],xp.prototype,"paddingX",2),T([je(bi)],xp.prototype,"paddingY",2),T([je(Ri)],xp.prototype,"showSeriesStroke",2),T([je(Si)],xp.prototype,"marker",2),T([je(Si)],xp.prototype,"label",2),T([je(Si)],xp.prototype,"line",2);var o1=class extends Hi{};T([je(_a,{optional:!0})],o1.prototype,"legendItemClick",2),T([je(_a,{optional:!0})],o1.prototype,"legendItemDoubleClick",2);var hg="legend-visibility",kd="legend-other-series",El=class extends Hi{constructor(r){super(),this.ctx=r,this.id=Y(this),this.group=new js({name:"legend",zIndex:13}),this.itemSelection=co.select(this.group,ug),this.spriteRenderer=void 0,this.oldSize=[0,0],this.pages=[],this.maxPageSize=[0,0],this.paginationTrackingIndex=0,this.truncatedItems=new Set,this._data=[],this._symbolsDirty=!0,this.toggleSeries=!0,this.item=new xp,this.listeners=new o1,this.enabled=!0,this.position="bottom",this.spacing=20,this.destroyFns=[],this.size=[0,0],this._visible=!0,this.item.marker.parent=this,this.pagination=new Ch(l=>r.updateService.update(l),l=>this.updatePageNumber(l)),this.pagination.attachPagination(this.group),this.destroyFns.push(r.contextMenuRegistry.registerDefaultAction({id:hg,type:"legend",label:"contextMenuToggleSeriesVisibility",action:l=>this.contextToggleVisibility(l)}),r.contextMenuRegistry.registerDefaultAction({id:kd,type:"legend",label:"contextMenuToggleOtherSeries",action:l=>this.contextToggleOtherSeries(l)}),r.legendManager.addListener("legend-change",this.onLegendDataChange.bind(this))),this.destroyFns.push(r.layoutManager.registerElement(1,l=>this.positionLegend(l)),r.localeManager.addListener("locale-changed",()=>this.onLocaleChanged()),()=>this.group.remove()),this.domProxy=new zM(this.ctx,this.id),this.ctx.historyManager.addMementoOriginator(r.legendManager)}set data(r){this.domProxy.onDataUpdate(this._data,r),this._data=r,this._symbolsDirty=!0,this.updateGroupVisibility()}get data(){return this._data}onLegendDataChange({legendData:r=[]}){if(!this.enabled)return;let l=r.filter(D=>!D.hideInLegend),{data:m}=this;qg(r,m)||(this.data=l)}destroy(){this.ctx.domManager.removeChild("canvas-overlay",`${this.id}-toolbar`),this.ctx.domManager.removeChild("canvas-overlay",`${this.id}-pagination`),this.destroyFns.forEach(r=>r()),this.pagination.destroy(),this.itemSelection.clear(),this.domProxy.destroy()}onMarkerShapeChange(){this.itemSelection.clear(),this.group.markDirty()}getOrientation(){if(this.orientation!==void 0)return this.orientation;switch(this.position){case"right":case"left":return"vertical";case"bottom":case"top":return"horizontal"}}set visible(r){this._visible=r,this.updateGroupVisibility()}get visible(){return this._visible}updateGroupVisibility(){this.group.visible=this.enabled&&this.visible&&this.data.length>0}attachLegend(r){r.appendChild(this.group)}getItemLabel(r){let{ctx:{callbackCache:l}}=this,{formatter:m}=this.item.label;if(m){let D=r.datum;return l.call(m,ge({itemId:r.itemId,value:r.label.text,seriesId:r.seriesId},D&&{datum:D}))}return r.label.text}calcLayout(r,l){var Mt;let{paddingX:m,paddingY:D,label:L,maxWidth:B,label:{maxLength:H=1/0,fontStyle:U,fontWeight:X,fontSize:Q,fontFamily:ie}}=this.item,ue=[...this.data];this.reverseOrder&&ue.reverse(),this.itemSelection.update(ue);let be=[],ye=Wa.toFontString(L),Me=.8,Ie=B!=null?B:r*Me,Oe=this.calculateSpriteDimensions();if((Mt=this.spriteRenderer)!=null||(this.spriteRenderer=new vs),this.spriteRenderer.resize(Oe),this.itemSelection.each((Tt,_t)=>{var li;Tt.fontStyle=U,Tt.fontWeight=X,Tt.fontSize=Q,Tt.fontFamily=ie;let Kt=this.updateMarkerLabel(this.spriteRenderer,Tt,_t,Oe),gi=(li=_t.itemId)!=null?li:_t.id,Ci=this.getItemLabel(_t),xi=(Ci!=null?Ci:"<unknown>").replace(/\r?\n/g," ");Tt.text=this.truncate(xi,H,Ie,Kt,ye,gi),be.push(Tt.getBBox())}),this._symbolsDirty=!1,r=Math.max(1,r),l=Math.max(1,l),!isFinite(r))return{};let Re=this.size,Be=this.oldSize;Re[0]=r,Re[1]=l,(Re[0]!==Be[0]||Re[1]!==Be[1])&&(Be[0]=Re[0],Be[1]=Re[1]);let{pages:Ue,maxPageHeight:Ne,maxPageWidth:Qe}=this.updatePagination(be,r,l),nt=this.pages;this.pages=Ue,this.maxPageSize=[Qe-m,Ne-D];let rt=this.pagination.currentPage,ut=this.pages[rt];return this.pages.length<1||!ut?(this.visible=!1,{oldPages:nt}):(this.visible=!0,this.updatePositions(rt),this.update(),{oldPages:nt})}isCustomMarker(r,l){return r&&l!==void 0&&typeof l!="string"}calcSymbolsEnabled(r){var H;let{showSeriesStroke:l,marker:m}=this.item,D=!!m.enabled||!l||((H=r.marker.enabled)!=null?H:!0),L=!!(r.line&&l),B=this.isCustomMarker(D,r.marker.shape);return{markerEnabled:D,lineEnabled:L,isCustomMarker:B}}calcSymbolsLengths(r){var ue;let{marker:l,line:m}=this.item,{markerEnabled:D,lineEnabled:L}=this.calcSymbolsEnabled(r),{strokeWidth:B}=this.getMarkerStyles(r),{strokeWidth:H}=L?this.getLineStyles(r):{strokeWidth:0},U,{shape:X}=r.marker;if(this.isCustomMarker(D,X)){let be=Cd(X),ye=new be;ye.updatePath();let Me=ye.getBBox();U=Math.max(Me.width,Me.height)}let Q=D?l.size:0,ie=L?(ue=m.length)!=null?ue:25:0;return{markerLength:Q,markerStrokeWidth:B,lineLength:ie,lineStrokeWidth:H,customMarkerSize:U}}calculateSpriteDimensions(){let r=0,l=0,m=0,D=0;return this.itemSelection.each((B,H)=>{let{symbol:U}=H,{markerLength:X,markerStrokeWidth:Q,lineLength:ie,lineStrokeWidth:ue,customMarkerSize:be=-1/0}=this.calcSymbolsLengths(U),ye=X+Q;D=Math.max(D,ie,be,X),l=Math.max(l,ie,be,ye),m=Math.max(m,ue,ye),r=Math.max(r,Q+.5)}),l+=r*2,m+=r*2,{spritePixelRatio:On().devicePixelRatio,spriteAAPadding:r,spriteWidth:l,spriteHeight:m,markerWidth:D}}updateMarkerLabel(r,l,m,D){let{marker:L,paddingX:B}=this.item,{markerWidth:H}=D,{symbol:U}=m,X=B,{markerEnabled:Q,lineEnabled:ie,isCustomMarker:ue}=this.calcSymbolsEnabled(U);if(this._symbolsDirty){let{shape:Oe=U.marker.shape}=L,Re=Cd(Oe);l.updateSymbols(new Re({zIndex:1}),new Ar({zIndex:0}))}let be=L.padding,{marker:ye,line:Me}=l;ye!=null&&(ye.size=Q||!ie?L.size:0);let Ie={length:H,spacing:be,isCustomMarker:ue};if((Q||ie)&&(X+=be+H),ye){let{strokeWidth:Oe,fill:Re,stroke:Be,fillOpacity:Ue,strokeOpacity:Ne}=this.getMarkerStyles(U);ye.fill=Re,ye.stroke=Be,ye.strokeWidth=Oe,ye.fillOpacity=Ue,ye.strokeOpacity=Ne}if(!ie&&Me!=null)Me.strokeWidth=0;else if(Me){let Oe=this.getLineStyles(U);Me.stroke=Oe.stroke,Me.strokeOpacity=Oe.strokeOpacity,Me.strokeWidth=Oe.strokeWidth,Me.lineDash=Oe.lineDash}return l.update(r,D,Ie),X}truncate(r,l,m,D,L,B){let H=!1;r.length>l&&(r=r.substring(0,l),H=!0);let U=Wr.getMeasurer({font:L}),X=c0.truncateLine(r,U,m-D,H);return X.endsWith(Wa.EllipsisChar)?this.truncatedItems.add(B):this.truncatedItems.delete(B),X}updatePagination(r,l,m){let D=this.getOrientation(),L=Math.min(this.paginationTrackingIndex,r.length);this.pagination.orientation=D,this.pagination.translationX=0,this.pagination.translationY=0;let{pages:B,maxPageHeight:H,maxPageWidth:U,paginationBBox:X,paginationVertical:Q}=this.calculatePagination(r,l,m),ie=B.findIndex(Ue=>Ue.endIndex>=L);this.pagination.currentPage=st(0,ie,B.length-1);let{paddingX:ue,paddingY:be}=this.item,ye=8,Me=U-ue,Ie=H-be,Oe=0,Re=-X.y-this.item.marker.size/2;Q?Re+=Ie+ye:(Oe+=-X.x+Me+ye,Re+=(Ie-X.height)/2),this.pagination.translationX=Oe,this.pagination.translationY=Re,this.pagination.update(),this.pagination.updateMarkers();let Be=0;return this.itemSelection.each((Ue,Ne,Qe)=>{var nt,rt;Qe>((rt=(nt=B[Be])==null?void 0:nt.endIndex)!=null?rt:1/0)&&Be++,Ue.pageIndex=Be}),{maxPageHeight:H,maxPageWidth:U,pages:B}}calculatePagination(r,l,m){var Ie,Oe,Re;let{paddingX:D,paddingY:L}=this.item,B=this.getOrientation(),H=["left","right"].includes(this.position),U=this.pagination.getBBox(),X=new ft(0,0,0,0),Q=[],ie=0,ue=0,be=0,ye=Be=>Be.width===U.width&&Be.height===U.height,Me=this.maxWidth!==void 0&&this.maxHeight!==void 0;do{if(be++>10){vi.warn("unable to find stable legend layout.");break}U=X;let Be=l-(H?0:U.width),Ue=m-(H?U.height:0),Ne=CT({orientation:B,bboxes:r,maxHeight:Ue,maxWidth:Be,itemPaddingY:L,itemPaddingX:D,forceResult:Me});Q=(Ie=Ne==null?void 0:Ne.pages)!=null?Ie:[],ie=(Oe=Ne==null?void 0:Ne.maxPageWidth)!=null?Oe:0,ue=(Re=Ne==null?void 0:Ne.maxPageHeight)!=null?Re:0;let Qe=Q.length;if(this.pagination.visible=Qe>1,this.pagination.totalPages=Qe,this.pagination.update(),this.pagination.updateMarkers(),X=this.pagination.getBBox(),!this.pagination.visible)break}while(!ye(X));return{maxPageWidth:ie,maxPageHeight:ue,pages:Q,paginationBBox:X,paginationVertical:H}}updatePositions(r=0){let{item:{paddingY:l},itemSelection:m,pages:D}=this;if(D.length<1||!D[r])return;let{columns:L,startIndex:B,endIndex:H}=D[r],U=0,X=0,Q=L.length,ie=L[0].indices.length,ue=this.getOrientation()==="horizontal",be=L[0].bboxes[0].height+l,ye=[];m.each((Me,Ie,Oe)=>{var Qe,nt;if(Oe<B||Oe>H){Me.visible=!1;return}let Re=Oe-B,Be,Ue;ue?(Be=Re%Q,Ue=Math.floor(Re/Q)):(Be=Math.floor(Re/ie),Ue=Re%ie),Me.visible=!0;let Ne=L[Be];Ne&&(X=Math.floor(be*Ue),U=Math.floor((Qe=ye[Ue])!=null?Qe:0),ye[Ue]=((nt=ye[Ue])!=null?nt:0)+Ne.columnWidth,Me.translationX=U,Me.translationY=X)})}updatePageNumber(r){let{itemSelection:l,group:m,pagination:D,pages:L,toggleSeries:B}=this,{startIndex:H,endIndex:U}=L[r];H===0?this.paginationTrackingIndex=0:r===L.length-1?this.paginationTrackingIndex=U:this.paginationTrackingIndex=Math.floor((H+U)/2),this.pagination.update(),this.pagination.updateMarkers(),this.updatePositions(r),this.domProxy.onPageChange({itemSelection:l,group:m,pagination:D,interactive:B}),this.ctx.updateService.update(6)}update(){let{label:{color:r}}=this.item;this.itemSelection.each((l,m)=>{l.setEnabled(m.enabled),l.color=r}),this.updateContextMenu()}updateContextMenu(){let{toggleSeries:r,ctx:{contextMenuRegistry:l}}=this;r?(l.hideAction(hg),l.hideAction(kd)):(l.showAction(hg),l.showAction(kd))}getLineStyles(r){var H,U;let{stroke:l,strokeOpacity:m=1,strokeWidth:D,lineDash:L}=(H=r.line)!=null?H:{},B=Math.min(2,D!=null?D:1);return{stroke:l,strokeOpacity:m,strokeWidth:(U=this.item.line.strokeWidth)!=null?U:B,lineDash:L}}getMarkerStyles(r){var U;let{fill:l,stroke:m,strokeOpacity:D=1,fillOpacity:L=1,strokeWidth:B}=r.marker,H=Math.min(2,B!=null?B:1);return{fill:l,stroke:m,strokeOpacity:D,fillOpacity:L,strokeWidth:(U=this.item.marker.strokeWidth)!=null?U:H}}computePagedBBox(){let r=Ji.computeChildrenBBox(this.group.children());if(this.pages.length>1){let[l,m]=this.maxPageSize;r.height=Math.max(m,r.height),r.width=Math.max(l,r.width)}return r}findNode(r){var D;let{datum:l,proxyButton:m}=(D=this.itemSelection.select(L=>{var B;return((B=L.datum)==null?void 0:B.itemId)===r.itemId})[0])!=null?D:{};if(l===void 0||m===void 0)throw new Error(`AG Charts - Missing required properties { datum: ${l}, proxyButton: ${JSON.stringify(m)} }`);return{datum:l,proxyButton:m}}contextToggleVisibility(r){let{datum:l,proxyButton:m}=this.findNode(r);this.doClick(r.event,l,m)}contextToggleOtherSeries(r){this.doDoubleClick(r.event,this.findNode(r).datum)}onContextClick(r,l){var U;let m=l.datum;this.preventHidingAll&&((U=this.contextMenuDatum)!=null&&U.enabled)&&this.getVisibleItemCount()<=1?this.ctx.contextMenuRegistry.disableAction(hg):this.ctx.contextMenuRegistry.enableAction(hg);let{offsetX:D,offsetY:L}=r,{x:B,y:H}=Ho.toCanvasPoint(l,D,L);this.ctx.contextMenuRegistry.dispatchContext("legend",{sourceEvent:r,canvasX:B,canvasY:H},{legendItem:m})}onClick(r,l,m){this.doClick(r,l,m)&&r.preventDefault()}getVisibleItemCount(){return this.ctx.chartService.series.flatMap(r=>r.getLegendData("category")).filter(r=>r.enabled).length}doClick(r,l,m){var Ie;let{listeners:{legendItemClick:D},ctx:{chartService:L,highlightManager:B},preventHidingAll:H,toggleSeries:U}=this;if(!l)return!1;let{legendType:X,seriesId:Q,itemId:ie,enabled:ue}=l,be=L.series.find(Oe=>Oe.id===Q);if(!be)return!1;let ye=ue,Me=BM("click",ie,be.id,r);return D==null||D(Me.apiEvent),Me.defaultPrevented||(U&&(ye=!ue,H&&!ye&&this.getVisibleItemCount()<2&&(ye=!0),m.setChecked(ye),this.ctx.chartEventManager.legendItemClick(X,be,ie,ye,l.legendItemName)),ye?B.updateHighlight(this.id,{series:be,itemId:ie,datum:void 0}):B.updateHighlight(this.id),this.ctx.legendManager.update(),this.ctx.updateService.update(2,{forceNodeDataRefresh:!0,skipAnimations:(Ie=l.skipAnimations)!=null?Ie:!1})),!0}onDoubleClick(r,l){this.doDoubleClick(r,l)&&r.preventDefault()}doDoubleClick(r,l){var ue;let{listeners:{legendItemDoubleClick:m},ctx:{chartService:D},toggleSeries:L}=this;if(D.mode==="integrated"||!l)return!1;let{legendType:B,id:H,itemId:U,seriesId:X}=l,Q=D.series.find(be=>be.id===H);if(!Q)return!1;let ie=BM("dblclick",U,Q.id,r);if(m==null||m(ie.apiEvent),ie.defaultPrevented)return!0;if(L){let be=D.series.flatMap(Ie=>Ie.getLegendData("category")),ye=be.filter(Ie=>Ie.enabled).length,Me=be.find(Ie=>Ie.itemId===U&&Ie.seriesId===X);this.ctx.chartEventManager.legendItemDoubleClick(B,Q,U,(ue=Me==null?void 0:Me.enabled)!=null?ue:!1,ye,Me==null?void 0:Me.legendItemName)}return this.ctx.legendManager.update(),this.ctx.updateService.update(2,{forceNodeDataRefresh:!0}),!0}toTooltipMeta(r,l){let m;if(r instanceof FocusEvent){let{x:B,y:H}=Ho.toCanvas(l).computeCenter();m={type:"keyboard",canvasX:B,canvasY:H}}else{r.preventDefault();let{x:B,y:H}=Ho.toCanvasPoint(l,r.offsetX,r.offsetY);m={type:"hover",canvasX:B,canvasY:H}}let{canvasX:D,canvasY:L}=m;return{canvasX:D,canvasY:L,lastPointerEvent:m,showArrow:!1}}onHover(r,l){var L;if(!this.enabled)throw new Error("AG Charts - onHover handler called on disabled legend");this.pagination.setPage(l.pageIndex);let m=l.datum,D=m?this.ctx.chartService.series.find(B=>B.id===(m==null?void 0:m.id)):void 0;if(m&&this.truncatedItems.has((L=m.itemId)!=null?L:m.id)){let B=this.toTooltipMeta(r,l);this.ctx.tooltipManager.updateTooltip(this.id,B,{title:this.getItemLabel(m)})}else this.ctx.tooltipManager.removeTooltip(this.id);m!=null&&m.enabled&&D?this.updateHighlight({series:D,itemId:m==null?void 0:m.itemId,datum:void 0}):this.updateHighlight()}onLeave(){this.ctx.tooltipManager.removeTooltip(this.id),this.updateHighlight()}updateHighlight(r){let l=this.ctx.interactionManager.getState();l===32?this.ctx.highlightManager.updateHighlight(this.id,r):l===2&&(this.pendingHighlightDatum=r,this.ctx.animationManager.onBatchStop(()=>{this.ctx.highlightManager.updateHighlight(this.id,this.pendingHighlightDatum)}))}onLocaleChanged(){this.domProxy.onLocaleChanged(this.ctx.localeManager,this.itemSelection,this)}positionLegend(r){let l=this.positionLegendScene(r);this.positionLegendDOM(l)}positionLegendScene(r){if(!this.enabled||!this.data.length)return;let{layoutBox:l}=r,{x:m,y:D,width:L,height:B}=l,[H,U]=this.calculateLegendDimensions(l),{oldPages:X}=this.calcLayout(H,U),Q=this.computePagedBBox(),ie=()=>{switch(this.position){case"top":case"left":return 0;case"bottom":return B-Q.height;case"right":default:return L-Q.width}};if(this.visible){let ue=this.spacing,be,ye;switch(this.position){case"top":case"bottom":be=(L-Q.width)/2,ye=ie(),l.shrink(Q.height+ue,this.position);break;case"left":case"right":default:be=ie(),ye=(B-Q.height)/2,l.shrink(Q.width+ue,this.position)}this.group.translationX=Math.floor(m+be-Q.x),this.group.translationY=Math.floor(D+ye-Q.y)}return X}positionLegendDOM(r){let{ctx:l,itemSelection:m,pagination:D,pages:L,toggleSeries:B,group:H}=this,U=this.visible&&this.enabled;this.domProxy.update({visible:U,interactive:B,ctx:l,itemSelection:m,group:H,pagination:D,oldPages:r,newPages:L,datumReader:this,itemListener:this})}calculateLegendDimensions(r){let{width:l,height:m}=r,D=l/m,L=.5,B=.2,H=.25,U,X;switch(this.position){case"top":case"bottom":{let Q=D<1?Math.min(L,B*(1/D)):B;U=this.maxWidth?Math.min(this.maxWidth,l):l,X=this.maxHeight?Math.min(this.maxHeight,m):Math.round(m*Q);break}case"left":case"right":default:{let Q=D>1?Math.min(L,H*D):H;U=this.maxWidth?Math.min(this.maxWidth,l):Math.round(l*Q),X=this.maxHeight?Math.min(this.maxHeight,m):m}}return[U,X]}};El.className="Legend",T([je(Ri)],El.prototype,"toggleSeries",2),T([je(Si)],El.prototype,"pagination",2),T([je(Si)],El.prototype,"item",2),T([je(Si)],El.prototype,"listeners",2),T([ip((r,l,m)=>{if(r.updateGroupVisibility(),l===m)return;let{ctx:{legendManager:D,stateManager:L}}=r;m===!1&&l===!0&&L.restoreState(D)}),je(Ri)],El.prototype,"enabled",2),T([je($C)],El.prototype,"position",2),T([je(bi,{optional:!0})],El.prototype,"maxWidth",2),T([je(bi,{optional:!0})],El.prototype,"maxHeight",2),T([je(Ri,{optional:!0})],El.prototype,"reverseOrder",2),T([je(Xn(["horizontal","vertical"],"an orientation"),{optional:!0})],El.prototype,"orientation",2),T([je(Ri,{optional:!0})],El.prototype,"preventHidingAll",2),T([je(bi)],El.prototype,"spacing",2);var Sh={type:"legend",optionsKey:"legend",identifier:"category",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:r=>new El(r),packageType:"community",removable:"standalone-only"},r1={};A(r1,{CARTESIAN_AXIS_TYPE:()=>MT,CARTESIAN_POSITION:()=>GM,FONT_SIZE:()=>xT,POLAR_AXIS_SHAPE:()=>AT,POLAR_AXIS_TYPE:()=>kT});var xT=(r=>(r[r.SMALL=12]="SMALL",r[r.MEDIUM=13]="MEDIUM",r[r.LARGE=17]="LARGE",r))(xT||{}),GM=(r=>(r.TOP="top",r.RIGHT="right",r.BOTTOM="bottom",r.LEFT="left",r))(GM||{}),MT=(r=>(r.CATEGORY="category",r.GROUPED_CATEGORY="grouped-category",r.ORDINAL_TIME="ordinal-time",r.NUMBER="number",r.TIME="time",r.LOG="log",r))(MT||{}),kT=(r=>(r.ANGLE_CATEGORY="angle-category",r.ANGLE_NUMBER="angle-number",r.RADIUS_CATEGORY="radius-category",r.RADIUS_NUMBER="radius-number",r))(kT||{}),AT=(r=>(r.CIRCLE="circle",r.POLYGON="polygon",r))(AT||{}),s1={};A(s1,{DEFAULT_ANNOTATION_BACKGROUND_FILL:()=>yr,DEFAULT_ANNOTATION_COLOR:()=>cc,DEFAULT_ANNOTATION_HANDLE_FILL:()=>vg,DEFAULT_ANNOTATION_STATISTICS_COLOR:()=>_v,DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE:()=>Vb,DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL:()=>YM,DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE:()=>Xa,DEFAULT_ANNOTATION_STATISTICS_FILL:()=>Gb,DEFAULT_ANNOTATION_STATISTICS_STROKE:()=>rf,DEFAULT_AXIS_GRID_COLOUR:()=>Yr,DEFAULT_AXIS_LINE_COLOUR:()=>_b,DEFAULT_BACKGROUND_COLOUR:()=>gg,DEFAULT_CAPTION_ALIGNMENT:()=>tf,DEFAULT_CAPTION_LAYOUT_STYLE:()=>Mp,DEFAULT_COLOURS:()=>fS,DEFAULT_CROSS_LINES_COLOUR:()=>Nb,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:()=>sc,DEFAULT_FIBONACCI_STROKES:()=>qM,DEFAULT_FONT_FAMILY:()=>ko,DEFAULT_FUNNEL_SERIES_COLOR_RANGE:()=>fg,DEFAULT_GAUGE_SERIES_COLOR_RANGE:()=>lc,DEFAULT_GRIDLINE_ENABLED:()=>Oo,DEFAULT_HIERARCHY_FILLS:()=>UM,DEFAULT_HIERARCHY_STROKES:()=>KM,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:()=>Wc,DEFAULT_INVERTED_BACKGROUND_COLOUR:()=>$s,DEFAULT_INVERTED_LABEL_COLOUR:()=>VM,DEFAULT_LABEL_COLOUR:()=>po,DEFAULT_MUTED_LABEL_COLOUR:()=>Uc,DEFAULT_NAVIGATOR_STROKE:()=>jM,DEFAULT_PADDING:()=>Ad,DEFAULT_POLAR_SERIES_STROKE:()=>WM,DEFAULT_SEPARATION_LINES_COLOUR:()=>mS,DEFAULT_SHADOW_COLOUR:()=>pg,DEFAULT_SPARKLINE_CROSSHAIR_STROKE:()=>of,DEFAULT_TEXTBOX_COLOR:()=>yg,DEFAULT_TEXTBOX_FILL:()=>jb,DEFAULT_TEXTBOX_STROKE:()=>Nv,DEFAULT_TEXT_ANNOTATION_COLOR:()=>vS,DEFAULT_TOOLBAR_POSITION:()=>zv,IS_COMMUNITY:()=>l1,IS_DARK_THEME:()=>Fb,IS_ENTERPRISE:()=>pS,PALETTE_ALT_DOWN_FILL:()=>af,PALETTE_ALT_DOWN_STROKE:()=>HM,PALETTE_ALT_NEUTRAL_FILL:()=>c1,PALETTE_ALT_NEUTRAL_STROKE:()=>mg,PALETTE_ALT_UP_FILL:()=>gu,PALETTE_ALT_UP_STROKE:()=>Fv,PALETTE_DOWN_FILL:()=>Il,PALETTE_DOWN_STROKE:()=>kp,PALETTE_NEUTRAL_FILL:()=>Bb,PALETTE_NEUTRAL_STROKE:()=>nf,PALETTE_UP_FILL:()=>Ov,PALETTE_UP_STROKE:()=>zb});var Fb=Symbol("is-dark-theme"),l1=Symbol("is-community"),pS=Symbol("is-enterprise"),ko=Symbol("default-font"),po=Symbol("default-label-colour"),VM=Symbol("default-inverted-label-colour"),Wc=Symbol("default-inside-series-label-colour"),Uc=Symbol("default-muted-label-colour"),Yr=Symbol("default-axis-grid-colour"),_b=Symbol("default-axis-line-colour"),Nb=Symbol("default-cross-lines-colour"),mS=Symbol("default-separation-lines-colour"),gg=Symbol("default-background-colour"),$s=Symbol("default-inverted-background-colour"),pg=Symbol("default-shadow-colour"),fS=Symbol("default-colours"),Ad=Symbol("default-padding"),Mp=Symbol("default-caption-layout-style"),tf=Symbol("default-caption-alignment"),jM=Symbol("default-navigator-stroke"),zb=Symbol("palette-up-stroke"),kp=Symbol("palette-down-stroke"),Ov=Symbol("palette-up-fill"),Il=Symbol("palette-down-fill"),nf=Symbol("palette-neutral-stroke"),Bb=Symbol("palette-neutral-fill"),Fv=Symbol("palette-alt-up-stroke"),HM=Symbol("palette-alt-down-stroke"),gu=Symbol("palette-alt-up-fill"),af=Symbol("palette-alt-down-fill"),c1=Symbol("palette-gray-fill"),mg=Symbol("palette-gray-stroke"),WM=Symbol("default-polar-series-stroke"),sc=Symbol("default-diverging-series-colour-range"),of=Symbol("default-sparkline-crosshair-stroke"),lc=Symbol("default-gauge-series-colour-range"),fg=Symbol("default-funnel-series-colour-range"),UM=Symbol("default-hierarchy-fills"),KM=Symbol("default-hierarchy-strokes"),cc=Symbol("default-annotation-stroke"),qM=Symbol("default-hierarchy-strokes"),vS=Symbol("default-text-annotation-color"),yr=Symbol("default-annotation-background-fill"),vg=Symbol("default-annotation-handle-fill"),Gb=Symbol("default-annotation-statistics-fill"),rf=Symbol("default-annotation-statistics-stroke"),_v=Symbol("default-annotation-statistics-color"),Vb=Symbol("default-annotation-statistics-divider-stroke"),YM=Symbol("default-annotation-statistics-fill"),Xa=Symbol("default-annotation-statistics-stroke"),jb=Symbol("default-textbox-fill"),Nv=Symbol("default-textbox-stroke"),yg=Symbol("default-textbox-color"),zv=Symbol("default-toolbar-position"),Oo=Symbol("default-gridline-enabled");function yS(r,l){return m=>l(m)?[He(ge({},r[0]),{position:r[1].position}),He(ge({},r[1]),{position:r[0].position})]:r}function Ap({takeColors:r}){let{fills:[l],strokes:[m]}=r(1);return{fill:l,stroke:m}}function bS(r){return{marker:Ap(r)}}function CS(r,l,m,D,L){let{addPhaseFn:B,updatePhaseFn:H,removePhaseFn:U}=L,X=(Q,ie,ue)=>{m.animate({id:`${r}_${l}_${ie.id}_${Q}`,groupId:r,from:0,to:1,ease:zh,collapsable:!1,onUpdate(be,ye){ye&&Q!=="removed"||(ie.path.clear(!0),ue(be,ie),ie.checkPathDirty())},onStop(){Q==="added"&&(ie.path.clear(!0),ue(1,ie),ie.checkPathDirty())},phase:os[Q]})};for(let Q of D)m.isSkipped()||(X("removed",Q,U),X("updated",Q,H)),X("added",Q,B)}function $n({id:r},l,m,...D){ld(r,l,m,D,{opacity:0},{opacity:1},{phase:"trailing"})}function sf({id:r},l,m,...D){ld(r,l,m,D,{opacity:1},{opacity:0},{phase:"remove"})}function bg(r){return{opacity:1}}var XM=class extends Hi{constructor(){super(...arguments),this._dirty=!0}markDirty(){this._dirty=!0}markClean(r){this._dirty=!1}isDirty(){return this._dirty}},Dd=class extends XM{constructor(){super(...arguments),this.enabled=!0,this.color="rgba(0, 0, 0, 0.5)",this.xOffset=0,this.yOffset=0,this.blur=5}};T([je(Ri),Lt()],Dd.prototype,"enabled",2),T([je(In),Lt()],Dd.prototype,"color",2),T([je(yn),Lt()],Dd.prototype,"xOffset",2),T([je(yn),Lt()],Dd.prototype,"yOffset",2),T([je(bi),Lt()],Dd.prototype,"blur",2);var DT=Zn(r=>Ev(r)||typeof r=="function","a marker shape keyword such as 'circle', 'diamond' or 'square' or an object extending the Marker class"),Kc=class extends XM{constructor(){super(...arguments),this.enabled=!0,this.shape="circle",this.size=6,this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1}getStyle(){let{size:r,shape:l,fill:m,fillOpacity:D,stroke:L,strokeWidth:B,strokeOpacity:H}=this;return{size:r,shape:l,fill:m,fillOpacity:D,stroke:L,strokeWidth:B,strokeOpacity:H}}getDiameter(){return this.size+this.strokeWidth}};T([je(Ri),Lt()],Kc.prototype,"enabled",2),T([je(DT),Lt()],Kc.prototype,"shape",2),T([je(bi),Lt()],Kc.prototype,"size",2),T([je(In,{optional:!0}),Lt()],Kc.prototype,"fill",2),T([je(oa),Lt()],Kc.prototype,"fillOpacity",2),T([je(In,{optional:!0}),Lt()],Kc.prototype,"stroke",2),T([je(bi),Lt()],Kc.prototype,"strokeWidth",2),T([je(oa),Lt()],Kc.prototype,"strokeOpacity",2),T([je(_a,{optional:!0}),Lt()],Kc.prototype,"itemStyler",2);var d1=class extends Hi{constructor(){super(...arguments),this.enabled=!1}};T([je(Ri)],d1.prototype,"enabled",2);var Tl=class extends Hi{constructor(){super(...arguments),this.enabled=!0,this.interaction=new d1,this.position=new Vm,this.range=void 0,this.class=void 0}formatTooltip(r,l){var D;let m=(D=this.renderer)==null?void 0:D.call(this,l);return typeof m=="string"?m:m!=null?ge(ge({},r),m):r}};T([je(Ri)],Tl.prototype,"enabled",2),T([je(Ri,{optional:!0})],Tl.prototype,"showArrow",2),T([je(_a,{optional:!0})],Tl.prototype,"renderer",2),T([je(Si)],Tl.prototype,"interaction",2),T([je(Si)],Tl.prototype,"position",2),T([je(Jg,{optional:!0})],Tl.prototype,"range",2),T([je(Qt,{optional:!0})],Tl.prototype,"class",2);var Cg=Xn(["linear","smooth","step"],"a line style"),Hb=Xn(["start","middle","end"]),pu=class extends Hi{constructor(){super(...arguments),this.type="linear",this.tension=1,this.position="end"}};T([je(Cg)],pu.prototype,"type",2),T([je(oa)],pu.prototype,"tension",2),T([je(Hb)],pu.prototype,"position",2);var Go=class extends Cp{constructor(){super(...arguments),this.xName=void 0,this.fill="#c16068",this.fillOpacity=1,this.stroke="#874349",this.strokeWidth=2,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.interpolation=new pu,this.shadow=new Dd,this.marker=new Kc,this.label=new So,this.tooltip=new Tl,this.connectMissingData=!1}};T([je(Qt)],Go.prototype,"xKey",2),T([je(Qt,{optional:!0})],Go.prototype,"xName",2),T([je(Qt)],Go.prototype,"yKey",2),T([je(Qt,{optional:!0})],Go.prototype,"yName",2),T([je(Qt,{optional:!0})],Go.prototype,"yFilterKey",2),T([je(bi,{optional:!0})],Go.prototype,"normalizedTo",2),T([je(In)],Go.prototype,"fill",2),T([je(oa)],Go.prototype,"fillOpacity",2),T([je(In)],Go.prototype,"stroke",2),T([je(bi)],Go.prototype,"strokeWidth",2),T([je(oa)],Go.prototype,"strokeOpacity",2),T([je(bo)],Go.prototype,"lineDash",2),T([je(bi)],Go.prototype,"lineDashOffset",2),T([je(Si)],Go.prototype,"interpolation",2),T([je(Si)],Go.prototype,"shadow",2),T([je(Si)],Go.prototype,"marker",2),T([je(Si)],Go.prototype,"label",2),T([je(Si)],Go.prototype,"tooltip",2),T([je(Ri)],Go.prototype,"connectMissingData",2);function Rl(r){switch(r.type){case"linear":case"step":return[{x:r.x0,y:r.y0},{x:r.x1,y:r.y1}];case"cubic":return[{x:r.cp0x,y:r.cp0y},{x:r.cp3x,y:r.cp3y}]}}function ZM(r){let l=Rl(r);return l[0].x>l[1].x&&l.reverse(),l}function SS(r,l){let{x:m,y:D}=l;switch(r.type){case"linear":return{type:"linear",moveTo:r.moveTo,x0:m,y0:D,x1:m,y1:D};case"step":return{type:"step",moveTo:r.moveTo,x0:m,y0:D,x1:m,y1:D,stepX:m};case"cubic":return{type:"cubic",moveTo:r.moveTo,cp0x:m,cp0y:D,cp1x:m,cp1y:D,cp2x:m,cp2y:D,cp3x:m,cp3y:D}}}function Dp(r,l,m){let[D,L]=Rl(r),B=L.x!==D.x?(m.x-l.x)/(L.x-D.x):0,H=L.y!==D.y?(m.y-l.y)/(L.y-D.y):0;switch(r.type){case"linear":return{type:"linear",moveTo:r.moveTo,x0:l.x,y0:l.y,x1:m.x,y1:m.y};case"cubic":return{type:"cubic",moveTo:r.moveTo,cp0x:l.x,cp0y:l.y,cp1x:m.x-(r.cp2x-D.x)*B,cp1y:m.y-(r.cp2y-D.y)*H,cp2x:m.x-(r.cp1x-D.x)*B,cp2y:m.y-(r.cp1y-D.y)*H,cp3x:m.x,cp3y:m.y};case"step":return{type:"step",moveTo:r.moveTo,x0:l.x,y0:l.y,x1:m.x,y1:m.y,stepX:m.x-(r.stepX-D.x)*B}}}function u1(r,l,m){let{moveTo:D}=r,[L,B]=ZM(r),{x:H,y:U}=L,{x:X,y:Q}=B;if(m<H)return Dp(r,L,L);if(l>X)return Dp(r,B,B);switch(r.type){case"linear":{let ie=U===Q?void 0:(Q-U)/(X-H),ue=ie==null?U:ie*(l-H)+U,be=ie==null?U:ie*(m-H)+U;return{type:"linear",moveTo:D,x0:l,y0:ue,x1:m,y1:be}}case"step":if(m<=r.stepX){let ie=r.y0;return{type:"step",moveTo:D,x0:l,y0:ie,x1:m,y1:ie,stepX:m}}else if(l>=r.stepX){let ie=r.y1;return{type:"step",moveTo:D,x0:l,y0:ie,x1:m,y1:ie,stepX:l}}else{let{y0:ie,y1:ue,stepX:be}=r;return{type:"step",moveTo:D,x0:l,y0:ie,x1:m,y1:ue,stepX:be}}case"cubic":{let ie=kv(r.cp0x,r.cp1x,r.cp2x,r.cp3x,l),[ue,be]=Gc(r.cp0x,r.cp0y,r.cp1x,r.cp1y,r.cp2x,r.cp2y,r.cp3x,r.cp3y,ie),ye=kv(be[0].x,be[1].x,be[2].x,be[3].x,m);return[be,ue]=Gc(be[0].x,be[0].y,be[1].x,be[1].y,be[2].x,be[2].y,be[3].x,be[3].y,ye),{type:"cubic",moveTo:D,cp0x:be[0].x,cp0y:be[0].y,cp1x:be[1].x,cp1y:be[1].y,cp2x:be[2].x,cp2y:be[2].y,cp3x:be[3].x,cp3y:be[3].y}}}}function ET(r){let l=[],m=0,D=NaN,L=NaN;for(let{x:B,y:H}of r){if(m>0){let U=m===1;l.push({type:"linear",moveTo:U,x0:D,y0:L,x1:B,y1:H})}m+=1,D=B,L=H}return l}var IT={start:0,middle:.5,end:1};function lf(r,l){let m=[],D=0,L=NaN,B=NaN,H=typeof l=="number"?l:IT[l];for(let{x:U,y:X}of r){if(D>0){let Q=D===1,ie=L+(U-L)*H;m.push({type:"step",moveTo:Q,x0:L,y0:B,x1:U,y1:X,stepX:ie})}D+=1,L=U,B=X}return m}var Bv=.05;function CL(r,l){let m=Array.isArray(r)?r:Array.from(r);if(m.length<=1)return[];let D=m.map((B,H)=>{let U=H===0?B:m[H-1],X=H===m.length-1?B:m[H+1],Q=H===0||H===m.length-1;if(Math.sign(U.y-B.y)===Math.sign(X.y-B.y))return 0;if(!Q){let ie=Math.abs(U.y-X.y),ue=Math.abs(B.y-U.y)/ie,be=Math.abs(B.y-X.y)/ie;if(ue<=Bv||1-ue<=Bv||be<=Bv||1-be<=Bv)return 0}return(X.y-U.y)/(X.x-U.x)});D[1]===0&&(D[0]*=2),D[D.length-2]===0&&(D[D.length-1]*=2);let L=[];for(let B=1;B<m.length;B+=1){let H=m[B-1],U=D[B-1],X=m[B],Q=D[B],ie=X.x-H.x,ue=X.y-H.y,be=ie*l/3,ye=ie*U*l/3,Me=ie*l/3,Ie=ie*Q*l/3;Q===0&&Math.abs(ye)>Math.abs(ue)&&(be*=Math.abs(ue/ye),ye=Math.sign(ye)*Math.abs(ue)),U===0&&Math.abs(Ie)>Math.abs(ue)&&(Me*=Math.abs(ue/Ie),Ie=Math.sign(Ie)*Math.abs(ue)),L.push({type:"cubic",moveTo:B===1,cp0x:H.x,cp0y:H.y,cp1x:H.x+be,cp1y:H.y+ye,cp2x:X.x-Me,cp2y:X.y-Ie,cp3x:X.x,cp3y:X.y})}return L}function Vo(r,l,m){return(l-r)*m+r}function h1(r,l){let{x0:m,y0:D,x1:L,y1:B}=r,U=(B-D)/(L-m)*(l-m)+D;return{leftCp1x:m,leftCp1y:D,leftCp2x:l,leftCp2y:U,stepX:l,stepY0:U,stepY1:U,rightCp1x:l,rightCp1y:U,rightCp2x:L,rightCp2y:B}}function cf(r,l){let{cp0x:m,cp0y:D,cp1x:L,cp1y:B,cp2x:H,cp2y:U,cp3x:X,cp3y:Q}=r,ie=kv(m,L,H,X,l),[ue,be]=Gc(m,D,L,B,H,U,X,Q,ie),ye=ue[3].y;return{leftCp1x:ue[1].x,leftCp1y:ue[1].y,leftCp2x:ue[2].x,leftCp2y:ue[2].y,stepX:l,stepY0:ye,stepY1:ye,rightCp1x:be[1].x,rightCp1y:be[1].y,rightCp2x:be[2].x,rightCp2y:be[2].y}}function g1(r){let{x0:l,y0:m,x1:D,y1:L,stepX:B}=r;return{leftCp1x:(l+B)/2,leftCp1y:m,leftCp2x:(l+B)/2,leftCp2y:m,stepX:B,stepY0:m,stepY1:L,rightCp1x:(B+D)/2,rightCp1y:L,rightCp2x:(B+D)/2,rightCp2y:L}}function wh(r,l){return r.type==="linear"?h1(r,l):r.type==="cubic"?cf(r,l):g1(r)}function TT(r,l,m,D,L,B,H){switch(l){case 0:H?r.moveTo(L,B):r.moveTo(m,D);break;case 1:H?r.lineTo(L,B):r.lineTo(m,D);break}}function RT(r,l,m,D,L,B){B?r.lineTo(l,m):r.lineTo(D,L)}function PT(r,l,m,D,L,B,H,U,X,Q){Q?r.cubicCurveTo(B,H,D,L,l,m):r.cubicCurveTo(D,L,B,H,U,X)}function $M(r,l,m,D,L,B,H){H?(r.lineTo(B,L),r.lineTo(B,m),r.lineTo(l,m)):(r.lineTo(B,m),r.lineTo(B,L),r.lineTo(D,L))}function wS(r,l,m,D){let[L,B]=Rl(l);switch(TT(r,m,L.x,L.y,B.x,B.y,D),l.type){case"linear":RT(r,l.x0,l.y0,l.x1,l.y1,D);break;case"cubic":PT(r,l.cp0x,l.cp0y,l.cp1x,l.cp1y,l.cp2x,l.cp2y,l.cp3x,l.cp3y,D);break;case"step":$M(r,l.x0,l.y0,l.x1,l.y1,l.stepX,D);break}}function xS(r,l,m){let[D,L]=Rl(r),[B,H]=Rl(l),U=Vo(D.x,B.x,m),X=Vo(D.y,B.y,m),Q=Vo(L.x,H.x,m),ie=Vo(L.y,H.y,m);return[{x:U,y:X},{x:Q,y:ie}]}function MS(r,l,m,D,L,B){let[{x:H,y:U},{x:X,y:Q}]=xS(l,m,D);if(TT(r,L,H,U,X,Q,B),l.type==="cubic"&&m.type==="cubic"){let ie=Vo(l.cp1x,m.cp1x,D),ue=Vo(l.cp1y,m.cp1y,D),be=Vo(l.cp2x,m.cp2x,D),ye=Vo(l.cp2y,m.cp2y,D);PT(r,H,U,ie,ue,be,ye,X,Q,B)}else if(l.type==="step"&&m.type==="step"){let ie=Vo(l.stepX,m.stepX,D);$M(r,H,U,X,Q,ie,B)}else if(l.type==="linear"&&m.type==="linear")RT(r,H,U,X,Q,B);else{let ie;l.type==="step"?ie=l.stepX:m.type==="step"?ie=m.stepX:ie=(H+X)/2;let ue=wh(l,ie),be=wh(m,ie),ye=Vo(ue.leftCp1x,be.leftCp1x,D),Me=Vo(ue.leftCp1y,be.leftCp1y,D),Ie=Vo(ue.leftCp2x,be.leftCp2x,D),Oe=Vo(ue.leftCp2y,be.leftCp2y,D),Re=Vo(ue.stepX,be.stepX,D),Be=Vo(ue.stepY0,be.stepY0,D),Ue=Vo(ue.stepY1,be.stepY1,D),Ne=Vo(ue.rightCp1x,be.rightCp1x,D),Qe=Vo(ue.rightCp1y,be.rightCp1y,D),nt=Vo(ue.rightCp2x,be.rightCp2x,D),rt=Vo(ue.rightCp2y,be.rightCp2y,D);B?(r.cubicCurveTo(nt,rt,Ne,Qe,Re,Ue),r.lineTo(Re,Be),r.cubicCurveTo(Ie,Oe,ye,Me,H,U)):(r.cubicCurveTo(ye,Me,Ie,Oe,Re,Be),r.lineTo(Re,Ue),r.cubicCurveTo(Ne,Qe,nt,rt,X,Q))}}var p1=(r=>(r[r.Zero=0]="Zero",r[r.Split=1]="Split",r))(p1||{});function LT(r,l){return r==null||l==null||typeof r!="object"||typeof l!="object"?!1:"id"in r&&"id"in l?r.id===l.id:r.toString()===l.toString()}function ir(r,l){if(!l)return NaN;if(r instanceof Date&&(r=r.getTime()),l.type==="continuous"&&typeof r=="number")return(r-l.domain[0])/(l.domain[1]-l.domain[0])*(l.range[1]-l.range[0])+l.range[0];if(l.type==="log"&&typeof r=="number")return l.convert(r);if(l.type!=="category")return NaN;let m=l.domain.findIndex(L=>L===r);return m>=0||l.domain.findIndex(L=>LT(r,L))>=0?l.inset+l.step*m:NaN}function dc(r){return d0(r).valueOf()}function df({data:r},l){return r.map((m,D)=>({xValue0Index:l.indexOf(dc(m.xValue0)),xValue1Index:l.indexOf(dc(m.xValue1)),datumIndex:D}))}function Pl(r,l){let m=l.scales.x,D=r.scales.x;if((m==null?void 0:m.type)!=="category"||(D==null?void 0:D.type)!=="category")return!0;let L=-1/0;for(let B of m.domain){let H=ir(B,D);if(Number.isFinite(H)){if(H<L)return!1;L=H}else continue}return!0}function OT(r,l){let m=-1/0;for(let D of r){let L=ir(D.value,l.scales.x);if(Number.isFinite(L)){if(L<m)return!1;m=L}else continue}return!0}function SL(r,l){let m=new Map;for(let{xValue0:ie,xValue1:ue}of r.data){let be=dc(ie),ye=dc(ue);m.set(be,ie).set(ye,ue)}let D=Array.from(m,([ie,ue])=>({axisValue:ie,value:ue}));D.sort((ie,ue)=>ir(ie.value,r.scales.x)-ir(ue.value,r.scales.x));let L=[];for(let{xValue0:ie,xValue1:ue}of l.data){let be=dc(ie),ye=dc(ue);m.has(be)||(m.set(be,ie),L.push({axisValue:be,value:ie})),m.has(ye)||(m.set(ye,ue),L.push({axisValue:ye,value:ue}))}L.sort((ie,ue)=>ir(ie.value,l.scales.x)-ir(ue.value,l.scales.x));let B=D,H=0;for(let ie of L){for(let ue=B.length-1;ue>H;ue-=1){let be=ir(ie.value,l.scales.x),ye=ir(B[ue].value,l.scales.x);if(be>ye){H=ue+1;break}}B.splice(H,0,ie),H+=1}if(!OT(B,l))return;let U=B.map(ie=>ie.axisValue),X=df(l,U),Q=df(r,U);return{axisValues:U,oldDataAxisIndices:X,newDataAxisIndices:Q}}function FT(r,l,m){if(m.xValue1Index===m.xValue0Index+1)return r;let D=Rl(r),L=(D[1].x-D[0].x)/(m.xValue1Index-m.xValue0Index),B=D[0].x+(l-m.xValue0Index)*L,H=B+L;return u1(r,B,H)}function _T(r,l){let[m,D]=Rl(r),L=ir(0,l.scales.y);return Dp(r,{x:m.x,y:L},{x:D.x,y:L})}function Gv(r){let[l,m]=Rl(r);return SS(r,{x:(l.x+m.x)/2,y:(l.y+m.y)/2})}function NT(r,l,m,D,L,B){var ue,be;let H,U;if(L.xValue0Index>=B.xValue1Index){let ye=(ue=D.findLast(Ie=>Ie.xValue1Index<=B.xValue1Index))==null?void 0:ue.datumIndex,Me=ye!=null?m.data[ye]:void 0;H=Me==null?void 0:Me.xValue1,U=Me==null?void 0:Me.yValue1}else if(L.xValue0Index<=B.xValue0Index){let ye=(be=D.find(Ie=>Ie.xValue0Index>=B.xValue0Index))==null?void 0:be.datumIndex,Me=ye!=null?m.data[ye]:void 0;H=Me==null?void 0:Me.xValue0,U=Me==null?void 0:Me.yValue0}if(H==null||U==null)switch(l){case 0:return _T(r,m);case 1:return Gv(r)}let X=ir(H,m.scales.x),Q=ir(U,m.scales.y),ie={x:X,y:Q};return Dp(r,ie,ie)}function QM(r,l){var L;if(l==null)return;let m=dc(r.xValue0),D=dc(r.xValue1);return(L=l.find(B=>dc(B.xValue0)===m&&dc(B.xValue1)===D))==null?void 0:L.span}function m1(r,l,m,D,L,B,H){let U=r.data[D.datumIndex],X=U.span,Q=QM(U,L);if(Q!=null)H.removed.push({from:Q,to:Q}),H.moved.push({from:Q,to:X}),H.added.push({from:X,to:X});else{let ie=NT(X,l,r,m,D,B);H.added.push({from:ie,to:X})}}function f1(r,l,m,D,L,B,H){let U=r.data[D.datumIndex],X=U.span,Q=QM(U,L);if(Q!=null)H.removed.push({from:X,to:X}),H.moved.push({from:X,to:Q}),H.added.push({from:Q,to:Q});else{let ie=NT(X,l,r,m,D,B);H.removed.push({from:X,to:ie})}}function kS(r,l,m,D,L){let B=l[L.xValue0Index],H=m.data.find(Oe=>dc(Oe.xValue0)===B),U=l[L.xValue1Index],X=m.data.find(Oe=>dc(Oe.xValue1)===U);if(H==null||X==null)return;let[{x:Q},{x:ie}]=Rl(r),ue=ir(H.xValue0,m.scales.x),be=ir(H.yValue0,m.scales.y),ye=ir(X.xValue1,m.scales.x),Me=ir(X.yValue1,m.scales.y),Ie=D.data[L.datumIndex].span;return Ie=Dp(Ie,{x:ue,y:be},{x:ye,y:Me}),Ie=u1(Ie,Q,ie),Ie}function JM(r,l,m,D,L,B,H,U,X){let Q=L+1,ie=H.find(Ue=>Ue.xValue0Index<=L&&Ue.xValue1Index>=Q),ue=B.find(Ue=>Ue.xValue0Index<=L&&Ue.xValue1Index>=Q),be=l.zeroData,ye=r.zeroData;if(ie==null&&ue!=null){m1(r,m,B,ue,be,U,X);return}else if(ie!=null&&ue==null){f1(l,m,H,ie,ye,U,X);return}else if(ie==null||ue==null)return;let Me;ie.xValue0Index===ue.xValue0Index&&ie.xValue1Index===ue.xValue1Index?Me=0:ie.xValue0Index<=ue.xValue0Index&&ie.xValue1Index>=ue.xValue1Index?Me=-1:ie.xValue0Index>=ue.xValue0Index&&ie.xValue1Index<=ue.xValue1Index?Me=1:Me=0;let Ie=l.data[ie.datumIndex],Oe=FT(Ie.span,L,ie),Re=r.data[ue.datumIndex],Be=FT(Re.span,L,ue);if(Me===1){let Ue=kS(Oe,D,l,r,ue);Ue!=null?(X.removed.push({from:Oe,to:Ue}),X.moved.push({from:Ue,to:Be}),X.added.push({from:Be,to:Be})):f1(l,m,H,ie,ye,U,X)}else if(Me===-1){let Ue=kS(Be,D,r,l,ie);Ue!=null?(X.removed.push({from:Oe,to:Oe}),X.moved.push({from:Oe,to:Ue}),X.added.push({from:Ue,to:Be})):m1(r,m,B,ue,be,U,X)}else X.removed.push({from:Oe,to:Oe}),X.moved.push({from:Oe,to:Be}),X.added.push({from:Be,to:Be})}function ek(r,l,m,D){var Q,ie,ue,be,ye,Me,Ie,Oe;let L={removed:[],moved:[],added:[]},{axisValues:B,oldDataAxisIndices:H,newDataAxisIndices:U}=r,X={xValue0Index:Math.max((ie=(Q=H.at(0))==null?void 0:Q.xValue0Index)!=null?ie:-1/0,(be=(ue=U.at(0))==null?void 0:ue.xValue0Index)!=null?be:-1/0),xValue1Index:Math.min((Me=(ye=H.at(-1))==null?void 0:ye.xValue1Index)!=null?Me:1/0,(Oe=(Ie=U.at(-1))==null?void 0:Ie.xValue1Index)!=null?Oe:1/0)};for(let Re=0;Re<B.length-1;Re+=1)JM(l,m,D,B,Re,U,H,X,L);return L}function AS(r,l,m){var L;let{span:D}=l;switch(m){case 0:return(L=QM(l,r.zeroData))!=null?L:_T(D,r);case 1:return Gv(D)}}function zT(r,l,m){let D=[],L=[];for(let B of l.data){let H=B.span,U=AS(l,B,m);L.push({from:H,to:U})}for(let B of r.data){let H=B.span,U=AS(r,B,m);D.push({from:U,to:H})}return{removed:L,moved:[],added:D}}function uf(r,l,m){if(!Pl(r,l))return;let D=SL(r,l);return D==null?zT(r,l,m):ek(D,r,l,m)}function Vv(r){return r.type==="continuous"||r.type==="log"}function mu(r){return r.type==="category"}function qi(r,l){return r===void 0||l===void 0?r!==void 0||l!==void 0:Vv(r)&&Vv(l)?r.type===l.type&&Bh(r.domain,l.domain)&&Bh(r.range,l.range):mu(r)&&mu(l)?r.inset===l.inset&&r.step===l.step&&Bh(r.domain,l.domain):!1}function br(r){return r==null?!1:r.type==="category"?r.domain.every(l=>l!=null):r.domain.every(l=>Number.isFinite(l)||l instanceof Date)&&r.range.every(l=>Number.isFinite(l))}function Ll(r,l){let m,D=r.map(L=>L.point);switch(l.type){case"linear":m=ET(D);break;case"smooth":m=CL(D,l.tension);break;case"step":m=lf(D,l.position);break}return m.map((L,B)=>({span:L,xValue0:r[B].xDatum,yValue0:r[B].yDatum,xValue1:r[B+1].xDatum,yValue1:r[B+1].yDatum}))}function tk(r,l,m=.001){return Math.abs(r.x-l.x)<m&&Math.abs(r.y-l.y)<m}function ik({path:r},l){let m;for(let{span:D}of l){let[L,B]=Rl(D),H=m!=null&&tk(m,L)?1:0;wS(r,D,H,!1),m=B}}function Wb(r,l,m){let D;for(let L of m){let[B,H]=xS(L.from,L.to,r),U=D!=null&&tk(D,B)?1:0;MS(l.path,L.from,L.to,r,U,!1),D=H}}function nk(r,l,m){let D=(U,X)=>Wb(U,X,l.removed),L=(U,X)=>Wb(U,X,l.moved),B=(U,X)=>Wb(U,X,l.added),H=ak(r,m);return{status:r,path:{addPhaseFn:B,updatePhaseFn:L,removePhaseFn:D},pathProperties:H}}function ak(r,l){let m=l==="none"?"updated":r,D={fromFn:L=>{let B;return r==="removed"?B={finish:{visible:!1}}:r==="added"?B={start:{visible:!0}}:B={},ge({phase:os[m]},B)},toFn:L=>({phase:os[m]})};return l==="fade"?{fromFn:L=>{let B=r==="added"?0:L.opacity;return ge({opacity:B},D.fromFn(L))},toFn:L=>ge({opacity:r==="removed"?0:1},D.toFn(L))}:D}function BT(r,l,m){var Q,ie,ue;let D=((Q=r.scales.x)==null?void 0:Q.type)==="category",L=((ie=l.scales.x)==null?void 0:ie.type)==="category";if(D!==L||!br(r.scales.x)||!br(l.scales.x)||r.strokeData==null||l.strokeData==null)return;let B="updated";l.visible&&!r.visible?B="removed":!l.visible&&r.visible&&(B="added");let H=uf({scales:r.scales,data:r.strokeData.spans},{scales:l.scales,data:l.strokeData.spans},1);if(H==null)return;let U=nk(B,H,"fade"),X=((ue=m==null?void 0:m.changed)!=null?ue:!0)||!qi(r.scales.x,l.scales.x)||!qi(r.scales.y,l.scales.y)||B!=="updated";return{status:B,stroke:U,hasMotion:X}}function GT({path:r},{spans:l,phantomSpans:m}){for(let D=0;D<l.length;D+=1){let{span:L}=l[D],B=m[D].span;wS(r,L,0,!1),wS(r,B,1,!0),r.closePath()}}function ok(r,{path:l},m,D){for(let L=0;L<m.length;L+=1){let B=m[L],H=D[L];MS(l,B.from,B.to,r,0,!1),MS(l,H.from,H.to,r,1,!0),l.closePath()}}function VT(r,l,m,D){let L=(X,Q)=>ok(X,Q,l.removed,m.removed),B=(X,Q)=>ok(X,Q,l.moved,m.moved),H=(X,Q)=>ok(X,Q,l.added,m.added),U=ak(r,D);return{status:r,path:{addPhaseFn:H,updatePhaseFn:B,removePhaseFn:L},pathProperties:U}}function rk(r,l){var ue,be;let m=((ue=r.scales.x)==null?void 0:ue.type)==="category",D=((be=l.scales.x)==null?void 0:be.type)==="category";if(m!==D||!br(r.scales.x)||!br(l.scales.x))return;let L="updated";l.visible&&!r.visible?L="removed":!l.visible&&r.visible&&(L="added");let B=uf({scales:r.scales,data:r.fillData.spans},{scales:l.scales,data:l.fillData.spans},0);if(B==null)return;let H=uf({scales:r.scales,data:r.fillData.phantomSpans},{scales:l.scales,data:l.fillData.phantomSpans},0);if(H==null)return;let U=uf({scales:r.scales,data:r.strokeData.spans,zeroData:r.fillData.phantomSpans},{scales:l.scales,data:l.strokeData.spans,zeroData:l.fillData.phantomSpans},0);if(U==null)return;let X="none",Q=VT(L,B,H,X),ie=nk(L,U,X);return{status:L,fill:Q,stroke:ie}}function Ub({id:r},l,m,...D){let L={phase:m?os[m]:"trailing"};ld(r,"markers",l,D,{opacity:0},{opacity:1},L),D.forEach(B=>B.cleanup())}function hf({id:r},l,...m){ld(r,"markers",l,m,{scalingX:0,scalingY:0},{scalingX:1,scalingY:1},{phase:"initial"}),m.forEach(D=>D.cleanup())}function Ep({id:r,nodeDataDependencies:l},m,...D){let L=l.seriesRectWidth;ri(r,"markers",m,D,{fromFn:(U,X)=>{var ue,be;let Q=(be=(ue=X.midPoint)==null?void 0:ue.x)!=null?be:L,ie=st(0,ky(Q/L),1);return isNaN(ie)&&(ie=0),{scalingX:0,scalingY:0,delay:ie,duration:rd,phase:"initial"}},toFn:()=>({scalingX:1,scalingY:1})})}function Kb(r){return{opacity:1,scalingX:1,scalingY:1}}function qb(r,l){var m,D,L,B;return{translationX:(D=(m=l.point)==null?void 0:m.x)!=null?D:NaN,translationY:(B=(L=l.point)==null?void 0:L.y)!=null?B:NaN}}function v1(r,l){let m=(H,U)=>{let X=r[U][H];return Array.isArray(X)?X[0]:X},D=H=>{let{xValue:U}=H;return r.moved[U]?{point:m(U,"moved"),status:"updated"}:r.removed[U]?{point:m(U,"removed"),status:"removed"}:r.added[U]?{point:m(U,"added"),status:"added"}:{status:"unknown"}};return{fromFn:(H,U)=>{var ue,be,ye,Me,Ie,Oe;let{status:X,point:Q}=D(U);if(X==="unknown")return{opacity:0};let ie={translationX:(be=(ue=Q==null?void 0:Q.from)==null?void 0:ue.x)!=null?be:H.translationX,translationY:(Me=(ye=Q==null?void 0:Q.from)==null?void 0:ye.y)!=null?Me:H.translationY,opacity:H.opacity,phase:os[X]};return l==="added"?He(ge({},ie),{opacity:0,translationX:(Ie=Q==null?void 0:Q.to)==null?void 0:Ie.x,translationY:(Oe=Q==null?void 0:Q.to)==null?void 0:Oe.y,phase:os.added}):(X==="added"&&(ie.opacity=0),ie)},toFn:(H,U)=>{var ue,be;let{status:X,point:Q}=D(U);if(X==="unknown")return{opacity:0};let ie={translationX:U.point.x,translationY:U.point.y,opacity:1,phase:os[X]};return X==="removed"||l==="removed"?He(ge({},ie),{translationX:(ue=Q==null?void 0:Q.to)==null?void 0:ue.x,translationY:(be=Q==null?void 0:Q.to)==null?void 0:be.y,opacity:0,phase:os.removed}):ie}}}function Sg(r,{datumIndex:l}){var Q;let m=r.getNodeData();if(m===void 0)return;let D=m[l],{point:L}=D;if(D==null||L==null)return;let B=(Q=L.focusSize)!=null?Q:r.getFormattedMarkerStyle(D).size,H=B/2,U=D.point.x-H,X=D.point.y-H;return new ft(U,X,B,B)}function Ol(r,l,m){let D=m;for(let{x:L,y:B}of l)D?r.lineTo(L,B):(r.moveTo(L,B),D=!0)}var Qs=.05;function Ip(r,l,m,D){let L=Array.isArray(l)?l:Array.from(l);if(L.length===0||(D?r.lineTo(L[0].x,L[0].y):r.moveTo(L[0].x,L[0].y),L.length<=1))return;let B=L.map((H,U)=>{let X=U===0?H:L[U-1],Q=U===L.length-1?H:L[U+1],ie=U===0||U===L.length-1;if(Math.sign(X.y-H.y)===Math.sign(Q.y-H.y))return 0;if(!ie){let ue=Math.abs(X.y-Q.y),be=Math.abs(H.y-X.y)/ue,ye=Math.abs(H.y-Q.y)/ue;if(be<=Qs||1-be<=Qs||ye<=Qs||1-ye<=Qs)return 0}return(Q.y-X.y)/(Q.x-X.x)});B[1]===0&&(B[0]*=2),B[B.length-2]===0&&(B[B.length-1]*=2);for(let H=1;H<L.length;H+=1){let U=L[H-1],X=B[H-1],Q=L[H],ie=B[H],ue=Q.x-U.x,be=Q.y-U.y,ye=ue*m/3,Me=ue*X*m/3,Ie=ue*m/3,Oe=ue*ie*m/3;ie===0&&Math.abs(Me)>Math.abs(be)&&(ye*=Math.abs(be/Me),Me=Math.sign(Me)*Math.abs(be)),X===0&&Math.abs(Oe)>Math.abs(be)&&(Ie*=Math.abs(be/Oe),Oe=Math.sign(Oe)*Math.abs(be)),r.cubicCurveTo(U.x+ye,U.y+Me,Q.x-Ie,Q.y-Oe,Q.x,Q.y)}}function DS(r,l,m,D){var B;let L;for(let H of l){if(L!=null){let U=L.x<H.x?m:1-m,X=(H.x-L.x)*U+L.x;r.lineTo(X,(B=L==null?void 0:L.y)!=null?B:H.y),r.lineTo(X,H.y),r.lineTo(H.x,H.y)}else D?r.lineTo(H.x,H.y):r.moveTo(H.x,H.y);L=H}}function sk(r){return r.reduce(({min:l,max:m},D)=>((l==null||l.point.x>D.point.x)&&(l=D),(m==null||m.point.x<D.point.x)&&(m=D),{min:l,max:m}),{})}function y1(r,l,m){let D=(l.y-r.y)/(l.x-r.x),L=(m-r.x)*D+r.y;return{x:m,y:L}}function b1(r,l,m,D){let L=-1,B=0,H=[];for(;B<r.length;){if(r[B].change===l){H.push(r[B]),B++;continue}if(r[B].change===m){B++;continue}H.length>0&&(D(H,L,B),H.length=0),L=B,B++}H.length>0&&D(H,L,B)}function ES(r,l){b1(r,"out","in",(m,D,L)=>{var B,H;D===-1&&r[L]?m.forEach(U=>U.to=r[L].from):L===r.length&&r[D]?m.forEach(U=>U.to=r[D].from):l==="intersect"&&((B=r[D])!=null&&B.from)&&((H=r[L])!=null&&H.from)?m.forEach(U=>U.to=y1(r[D].from,r[L].from,U.from.x)):m.forEach(U=>U.to=U.from)}),b1(r,"in","out",(m,D,L)=>{var B,H;D===-1&&r[L]?m.forEach(U=>U.from=r[L].to):L===r.length&&r[D]?m.forEach(U=>U.from=r[D].to):l==="intersect"&&((B=r[D])!=null&&B.to)&&((H=r[L])!=null&&H.to)?m.forEach(U=>U.from=y1(r[D].to,r[L].to,U.to.x)):m.forEach(U=>U.from=U.to)})}function lk(r,l,m){let D=isNaN(r.x)?l.x:r.x,L=isNaN(r.y)?l.y:r.y,B=l.x-r.x,H=l.y-r.y,U=isNaN(B)?0:B*m,X=isNaN(H)?0:H*m;return{x:D+U,y:L+X}}var C1={start:0,middle:.5,end:1};function ck(r,l,m,D=!1){var B,H;let{path:L}=l;(m==null?void 0:m.type)==="smooth"?Ip(L,r,(B=m.tension)!=null?B:1,D):(m==null?void 0:m.type)==="step"?DS(L,r,C1[(H=m.position)!=null?H:"end"],D):Ol(L,r,D)}function IS(r,l){let m,D,L=[],B=()=>{D!=null&&(L.push(D),D=void 0)};for(let H of r){let{from:U,to:X}=H,Q=l[H.change];if(Q==null||U==null||X==null)continue;let ie=lk(U,X,Q);if(H.moveTo===!1)D!=null||(D=[]),D.push(ie);else if(H.moveTo===!0||!m)B(),D=[ie];else if(m){let ue=H.moveTo==="in"?Q:1-Q,{x:be,y:ye}=lk(m,ie,ue);D!=null||(D=[]),D.push({x:be,y:ye}),B(),D=[ie]}m=ie}return B(),L}function wL(r,l,m,D){IS(r,l).forEach(L=>{ck(L,m,D)})}function jv({id:r,visible:l,nodeDataDependencies:m},D,...L){let{seriesRectWidth:B,seriesRectHeight:H}=m;ld(r,"path_properties",D,L,{clipX:0},{clipX:B},{phase:"initial",start:{clip:!0,clipY:H,visible:l},finish:{clip:!1,visible:l}})}function dk({id:r},l,m,D="add",...L){ld(r,l,m,L,{opacity:0},{opacity:1},{phase:D})}function uk({id:r},l,m,...D){ld(r,l,m,D,{opacity:1},{opacity:0},{phase:"remove"})}function hk(r){return l=>({visible:r.getVisible(),opacity:r.getOpacity(),clipScalingX:1,clip:!1})}function gk({nodeDataDependencies:r},l){let m=D=>isFinite(D)?D:0;l.clipX=m(r.seriesRectWidth),l.clipY=m(r.seriesRectHeight)}var TS=.125,jT=.25,RS=class extends Hm{constructor(r){super({moduleCtx:r,directionKeys:lg,directionNames:bp,pathsPerSeries:["fill","stroke"],pathsZIndexSubOrderOffset:[0,1e3],hasMarkers:!0,markerSelectionGarbageCollection:!1,pickModes:[2,0],animationResetFns:{path:hk({getVisible:()=>this.visible,getOpacity:()=>this.getOpacity()}),label:bg,marker:(l,m)=>ge(ge({},Kb(l)),qb(l,m))}}),this.properties=new Go,this.connectsToYAxis=!0,this.backgroundGroup=new Ji({name:`${this.id}-background`,zIndex:0}),this._isStacked=void 0}get pickModeAxis(){return"main"}renderToOffscreenCanvas(){return super.renderToOffscreenCanvas()||this.contextNodeData!=null&&(this.contextNodeData.fillData.spans.length>iS||this.contextNodeData.strokeData.spans.length>iS)}attachSeries(r,l,m){super.attachSeries(r,l,m),r.appendChild(this.backgroundGroup)}detachSeries(r,l,m){super.detachSeries(r,l,m),r==null||r.removeChild(this.backgroundGroup)}attachPaths([r,l]){this.backgroundGroup.appendChild(r),this.contentGroup.appendChild(l),l.zIndex=-1}isStacked(){var l,m;return((m=(l=this.seriesGrouping)==null?void 0:l.stackCount)!=null?m:1)>1}setSeriesIndex(r){let l=this.isStacked();return!super.setSeriesIndex(r)&&this._isStacked===l?!1:(this._isStacked=l,l?(this.backgroundGroup.zIndex=[0,r],this.contentGroup.zIndex=[1,r,0]):(this.backgroundGroup.zIndex=[1,r,0,0],this.contentGroup.zIndex=[1,r,0,1]),!0)}async processData(r){var Be,Ue;if(this.data==null||!this.properties.isValid())return;let{data:l,visible:m,seriesGrouping:{groupIndex:D=this.id,stackCount:L=1}={}}=this,{xKey:B,yKey:H,yFilterKey:U,connectMissingData:X,normalizedTo:Q}=this.properties,ie=!this.ctx.animationManager.isSkipped(),ue=(Be=this.axes.x)==null?void 0:Be.scale,be=(Ue=this.axes.y)==null?void 0:Ue.scale,{xScaleType:ye,yScaleType:Me}=this.getScaleInformation({xScale:ue,yScale:be}),Ie={value:`area-stack-${D}-yValue`,values:`area-stack-${D}-yValues`,stack:`area-stack-${D}-yValue-stack`,marker:`area-stack-${D}-yValues-marker`},Oe=[];cr(Q)&&Oe.push(Tb(Object.values(Ie),Q,"range")),ie&&Oe.push(qm());let Re={invalidValue:null};(cr(Q)||X)&&L>1&&(Re.invalidValue=0),m||(Re.forceValue=0),await this.requestDataModel(r,l,{props:[Xs(B,ye,{id:"xValue"}),kn(H,Me,ge({id:"yValueRaw"},Re)),...U!=null?[kn(U,Me,{id:"yFilterRaw"})]:[],...Um(H,Me,He(ge({id:"yValueStack"},Re),{groupId:Ie.stack})),kn(H,Me,He(ge({id:"yValue"},Re),{groupId:Ie.value})),...wp(H,"window","current",He(ge({id:"yValueEnd"},Re),{groupId:Ie.values}),Me),...wp(H,"normal","current",He(ge({id:"yValueCumulative"},Re),{groupId:Ie.marker}),Me),...Oe],groupByKeys:!0,groupByData:!1}),this.animationState.transition("updateData")}getSeriesDomain(r){var X;let{processedData:l,dataModel:m,axes:D}=this;if(!l||!m||!((X=l.rawData)!=null&&X.length))return[];let L=D.y,B=m.resolveProcessedDataDefById(this,"xValue"),H=m.getDomain(this,"xValue","key",l),U=m.getDomain(this,"yValueEnd","value",l);if(r==="x")return(B==null?void 0:B.def.type)==="key"&&B.def.valueType==="category"?H:Al(Xg(H));if(L instanceof Qm||L instanceof Pv)return Al(U);{let Q=[U[0]>0?0:U[0],U[1]<0?0:U[1]];return Al(Q)}}getSeriesRange(r,l){let{dataModel:m,processedData:D}=this;if(!m||!D)return[NaN,NaN];let L=this.axes.x.scale,B=m.resolveKeysById(this,"xValue",D),[H,U]=Q0(B.length,l,ie=>{let ue=L.convert(B[ie]);return[ue,ue]}),[X,Q]=m.getDomainBetweenRange(this,["yValueEnd"],[H,U],D);return[Math.min(X,0),Math.max(Q,0)]}createNodeData(){var Kn,pn,Wn;let{axes:r,data:l,processedData:m,dataModel:D}=this,L=r.x,B=r.y;if(!L||!B||!l||!D||!(m!=null&&m.rawData.length)||m.type!=="grouped"||!this.properties.isValid())return;let{yKey:H,xKey:U,yFilterKey:X,marker:Q,label:ie,fill:ue,stroke:be,connectMissingData:ye,interpolation:Me}=this.properties,{scale:Ie}=L,{scale:Oe}=B,{isContinuousY:Re}=this.getScaleInformation({xScale:Ie,yScale:Oe}),Be=((Kn=Ie.bandwidth)!=null?Kn:0)/2,Ue=D.resolveKeysById(this,"xValue",m),Ne=D.resolveColumnById(this,"yValueEnd",m),Qe=D.resolveColumnById(this,"yValueRaw",m),nt=D.resolveColumnById(this,"yValueCumulative",m),rt=X!=null?D.resolveColumnById(this,"yFilterRaw",m):void 0,ut=D.resolveColumnById(this,"yValueStack",m),Mt=($i,Pi,en)=>{let Mn;return(cr(this.properties.normalizedTo)?Re&&dh(en):!isNaN(en))&&(Mn=Pi),{x:Ie.convert($i)+Be,y:Oe.convert(Mn),size:Q.size}},Tt=[],_t=[],{visibleSameStackCount:Kt}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this),gi=!1,{rawData:Ci}=m;m.groups.forEach(({datumIndices:$i})=>{$i.forEach(Pi=>{var oo,Ba,Ca;let en=Ue[Pi];if(en==null)return;let Mn=Ci[Pi],Li=Qe[Pi],Xi=nt[Pi],Ti=Ne[Pi],Sn=Number.isFinite(Li),Vi=Mt(en,+Xi,Li),Ja=rt!=null?rt[Pi]===Li:void 0;if(Ja===!1&&(gi=!0),Sn&&Q&&_t.push({index:Pi,series:this,itemId:H,datum:Mn,datumIndex:Pi,midPoint:{x:Vi.x,y:Vi.y},cumulativeValue:Ti,yValue:Li,xValue:en,yKey:H,xKey:U,point:Vi,fill:(oo=Q.fill)!=null?oo:ue,stroke:(Ba=Q.stroke)!=null?Ba:be,strokeWidth:(Ca=Q.strokeWidth)!=null?Ca:this.getStrokeWidth(this.properties.strokeWidth),selected:Ja}),Sn&&ie){let lr=this.getLabelText(ie,{value:Li,datum:Mn,xKey:U,yKey:H,xName:this.properties.xName,yName:this.properties.yName});Tt.push({index:Pi,series:this,itemId:H,datum:Mn,x:Vi.x,y:Vi.y,labelText:lr})}})});let xi=$i=>$i.flatMap(Pi=>Array.isArray(Pi)?Ll(Pi,Me):new Array(Pi.skip).fill(null)),li=m.groups.flatMap($i=>$i.datumIndices),Bi=($i,Pi)=>({point:{x:Ie.convert($i)+Be,y:Oe.convert(Pi)},xDatum:$i,yDatum:Pi}),Fi=$i=>{let Pi=[];for(let en=0;en<li.length;en+=1){let Mn=li[en],Li=Ue[Mn],Xi=ut[Mn],Ti=Xi[$i],Sn=Number.isFinite(Ti);if(ye&&!Sn)continue;let Vi=en>0?ut[li[en-1]]:void 0,Ja=en<li.length-1?ut[li[en+1]]:void 0,oo=0,Ba=0;for(let lr=0;lr<=$i;lr+=1){let Yo=Xi[lr];if(Number.isFinite(Yo)){let Nd=Vi==null||Number.isFinite(Vi[lr]),rC=Ja==null||Number.isFinite(Ja[lr]);Nd&&(oo+=Yo),rC&&(Ba+=Yo)}}let Ca=Pi[Pi.length-1];if(!ye&&(oo!==Ba||!Sn))if(!Sn&&Array.isArray(Ca)&&Ca.length===1)Pi[Pi.length-1]={skip:1};else{let lr=Bi(Li,oo),Yo=Bi(Li,Ba);Array.isArray(Ca)?Ca.push(lr):Ca!=null&&(Ca.skip+=1),Pi.push(Sn?[Yo]:{skip:0})}else{let lr=Math.max(oo,Ba),Yo=Bi(Li,lr);Array.isArray(Ca)?Ca.push(Yo):Ca!=null?(Ca.skip+=1,Pi.push([Yo])):Pi.push([Yo])}}return xi(Pi)},hn=(Wn=(pn=this.seriesGrouping)==null?void 0:pn.stackIndex)!=null?Wn:0,ji=()=>{let $i=li.map(Pi=>{let en=Ue[Pi],Li=ut[Pi][hn];if(!(ye&&!Number.isFinite(Li)))return Bi(en,0)}).filter(Pi=>Pi!=null);return Ll($i,Me)},An=Fi(hn),Zi=An.map(()=>null);for(let $i=hn-1;$i>=-1;$i-=1){let Pi;for(let en=0;en<Zi.length;en+=1)Zi[en]==null&&(Pi!=null||(Pi=$i!==-1?Fi($i):ji()),Zi[en]=Pi[en])}let Ki=An.map(($i,Pi)=>$i!=null?$i:Zi[Pi]),Dn=An.filter($i=>$i!=null);return{itemId:H,fillData:{itemId:H,spans:Ki,phantomSpans:Zi},strokeData:{itemId:H,spans:Dn},labelData:Tt,nodeData:_t,scales:this.calculateScaling(),visible:this.visible,stackVisible:Kt>0,crossFiltering:gi}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}markerFactory(){let{shape:r}=this.properties.marker,l=Cd(r);return new l}updatePathNodes(r){var X;let{opacity:l,visible:m,animationEnabled:D}=r,[L,B]=r.paths,H=((X=this.contextNodeData)==null?void 0:X.crossFiltering)===!0,U=this.getStrokeWidth(this.properties.strokeWidth);B.setProperties({fill:void 0,lineCap:"round",lineJoin:"round",pointerEvents:1,stroke:this.properties.stroke,strokeWidth:U,strokeOpacity:this.properties.strokeOpacity*(H?jT:1),lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset,opacity:l,visible:m||D}),L.setProperties({stroke:void 0,lineJoin:"round",pointerEvents:1,fill:this.properties.fill,fillOpacity:this.properties.fillOpacity*(H?TS:1),fillShadow:this.properties.shadow,opacity:l,visible:m||D}),gk(this,B),gk(this,L)}updatePaths(r){this.updateAreaPaths(r.paths,r.contextData)}updateAreaPaths(r,l){for(let m of r)m.visible=l.visible;if(l.visible)this.updateFillPath(r,l),this.updateStrokePath(r,l);else for(let m of r)m.path.clear(),m.markDirty()}updateFillPath(r,l){let[m]=r;m.path.clear(),GT(m,l.fillData),m.markDirty()}updateStrokePath(r,l){let{spans:m}=l.strokeData,[,D]=r;D.path.clear(),ik(D,m),D.markDirty()}updateMarkerSelection(r){var L;let{nodeData:l,markerSelection:m}=r,D=this.properties.marker.enabled||((L=this.contextNodeData)==null?void 0:L.crossFiltering)===!0;return this.properties.marker.isDirty()&&(m.clear(),m.cleanup()),m.update(D?l:[])}getMarkerItemBaseStyle(r){var D,L,B,H,U;let{marker:l}=this.properties,m=r?this.properties.highlightStyle.item:void 0;return{fill:(D=m==null?void 0:m.fill)!=null?D:l.fill,fillOpacity:(L=m==null?void 0:m.fillOpacity)!=null?L:l.fillOpacity,stroke:(B=m==null?void 0:m.stroke)!=null?B:l.stroke,strokeWidth:(H=m==null?void 0:m.strokeWidth)!=null?H:l.strokeWidth,strokeOpacity:(U=m==null?void 0:m.strokeOpacity)!=null?U:l.strokeOpacity}}getMarkerItemStyleOverrides(r,l,m,D,L,B){let{marker:H}=this.properties,{itemStyler:U}=H;if(U==null)return;let{id:X,properties:Q}=this,{xKey:ie,yKey:ue}=Q,{xDomain:be,yDomain:ye}=this.cachedDatumCallback("domain",()=>({xDomain:this.getSeriesDomain("x"),yDomain:this.getSeriesDomain("y")}));return this.cachedDatumCallback(ws(r,B?"highlight":"node"),()=>U(ge(He(ge({seriesId:X},fp(l,ie,ue,be,ye)),{xValue:m,yValue:D,highlighted:B}),L)))}updateMarkerNodes(r){let{markerSelection:l,isHighlight:m}=r,{xKey:D,yKey:L,marker:B,fill:H,stroke:U,strokeWidth:X,fillOpacity:Q,strokeOpacity:ie,highlightStyle:ue}=this.properties,be=this.getSeriesDomain("x"),ye=this.getSeriesDomain("y"),Me=mn(m&&ue.item,B.getStyle(),{fill:H,stroke:U,strokeWidth:X,fillOpacity:Q,strokeOpacity:ie});l.each((Ie,Oe)=>{this.updateMarkerStyle(Ie,B,He(ge({},fp(Oe,D,L,be,ye)),{highlighted:m}),Me,{selected:Oe.selected})}),m||this.properties.marker.markClean()}updateLabelSelection(r){let{labelData:l,labelSelection:m}=r;return m.update(l)}updateLabelNodes(r){let{labelSelection:l}=r,{enabled:m,fontStyle:D,fontWeight:L,fontSize:B,fontFamily:H,color:U}=this.properties.label;l.each((X,Q)=>{let{x:ie,y:ue,labelText:be}=Q;be&&m&&this.visible?(X.fontStyle=D,X.fontWeight=L,X.fontSize=B,X.fontFamily=H,X.textAlign="center",X.textBaseline="bottom",X.text=be,X.x=ie,X.y=ue-10,X.fill=U,X.visible=!0):X.visible=!1})}getTooltipContent(r){let{id:l,dataModel:m,processedData:D,axes:L,properties:B}=this,{xKey:H,xName:U,yKey:X,yName:Q,tooltip:ie}=B,ue=L.x,be=L.y;if(!m||!D||D.rawData.length===0||!ue||!be)return;let{datumIndex:ye}=r,Me=D.rawData[ye],Ie=m.resolveKeysById(this,"xValue",D)[ye],Oe=m.resolveColumnById(this,"yValueRaw",D)[ye];if(Ie==null)return;let Re=this.getMarkerItemBaseStyle(!1);return Object.assign(Re,this.getMarkerItemStyleOverrides(String(ye),Me,Ie,Oe,Re,!1)),ie.formatTooltip({heading:ue.formatDatum(Ie),symbol:this.legendItemSymbol(),data:[{label:Q,fallbackLabel:X,value:be.formatDatum(Oe)}]},ge(ge({seriesId:l,datum:Me,title:Q,xKey:H,xName:U,yKey:X,yName:Q},Re),this.getModuleTooltipParams()))}legendItemSymbol(){var X,Q,ie;let{fill:r,stroke:l,fillOpacity:m,strokeOpacity:D,strokeWidth:L,lineDash:B,marker:H}=this.properties,U=!H.enabled||H.fill===void 0;return{marker:{shape:H.shape,fill:U?r:H.fill,fillOpacity:U?m:H.fillOpacity,stroke:(X=H.stroke)!=null?X:l,strokeOpacity:(Q=H.strokeOpacity)!=null?Q:D,strokeWidth:(ie=H.strokeWidth)!=null?ie:0,enabled:H.enabled||L<=0},line:{stroke:l,strokeOpacity:D,strokeWidth:L,lineDash:B}}}getLegendData(r){var X;if(!this.properties.isValid()||r!=="category")return[];let{id:l,ctx:{legendManager:m},visible:D}=this,{yKey:L,yName:B,legendItemName:H,showInLegend:U}=this.properties;return[{legendType:r,id:l,itemId:L,seriesId:l,enabled:D&&m.getItemEnabled({seriesId:l,itemId:L}),label:{text:(X=H!=null?H:B)!=null?X:L},symbol:this.legendItemSymbol(),legendItemName:H,hideInLegend:!U}]}animateEmptyUpdateReady(r){let{markerSelection:l,labelSelection:m,contextData:D,paths:L}=r,{animationManager:B}=this.ctx;this.updateAreaPaths(L,D),jv(this,B,...L),Co([l],qb),Ep(this,B,l),$n(this,"labels",B,m)}animateReadyResize(r){let{contextData:l,paths:m}=r;this.updateAreaPaths(m,l),super.animateReadyResize(r)}animateWaitingUpdateReady(r){let{animationManager:l}=this.ctx,{markerSelection:m,labelSelection:D,contextData:L,paths:B,previousContextData:H}=r,[U,X]=B;if(U==null&&X==null)return;this.resetMarkerAnimation(r),this.resetLabelAnimation(r);let Q=()=>{this.resetPathAnimation(r),this.updateAreaPaths(B,L)},ie=()=>{l.skipCurrentBatch(),Q()};if(L==null||H==null){Q(),Ub(this,l,"added",m),dk(this,"fill_path_properties",l,"add",U),dk(this,"stroke_path_properties",l,"add",X),$n(this,"labels",l,D);return}if(L.crossFiltering!==H.crossFiltering){ie();return}let ue=rk(L,H);if(ue===void 0){ie();return}else if(ue.status==="no-op")return;Ub(this,l,void 0,m),ri(this.id,"fill_path_properties",l,[U],ue.fill.pathProperties),CS(this.id,"fill_path_update",l,[U],ue.fill.path),ri(this.id,"stroke_path_properties",l,[X],ue.stroke.pathProperties),CS(this.id,"stroke_path_update",l,[X],ue.stroke.path),$n(this,"labels",l,D),this.ctx.animationManager.animate({id:this.id,groupId:"reset_after_animation",phase:"trailing",from:{},to:{},onComplete:()=>this.updateAreaPaths(B,L)})}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new Ji}getFormattedMarkerStyle(r){let{xKey:l,yKey:m}=r,D=this.getSeriesDomain("x"),L=this.getSeriesDomain("y");return this.getMarkerStyle(this.properties.marker,He(ge({},fp(r,l,m,D,L)),{highlighted:!0}))}computeFocusBounds(r){return Sg(this,r)}};RS.className="AreaSeries",RS.type="area";var xL={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"area",moduleFactory:r=>new RS(r),stackable:!0,tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"left"},{type:"category",position:"bottom"}],themeTemplate:{series:{nodeClickRange:"nearest",tooltip:{position:{type:"node"}},fillOpacity:.8,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,shadow:{enabled:!1,color:pg,xOffset:3,yOffset:3,blur:5},interpolation:{type:"linear",tension:1,position:"end"},marker:{enabled:!1,shape:"circle",size:7,strokeWidth:0},label:{enabled:!1,fontSize:12,fontFamily:ko,color:po}}},paletteFactory:r=>{let{marker:l}=bS(r);return{fill:l.fill,stroke:l.stroke,marker:l}}};function Yb(r,l){for(let m of l){let D=m.datum;D===void 0?vi.error("undefined datum"):r.addValue(m,D)}}function gf(r,l){let{x:m,y:D}=l,{nearest:L,distanceSquared:B}=r.getQuadTree().find(m,D);if(L!==void 0)return{datum:L.value,distance:Math.sqrt(B)}}var PS=class extends Cp{constructor(){super(...arguments),this.direction="vertical"}};T([je(Vh)],PS.prototype,"direction",2);var S1=class extends Hm{constructor(){super(...arguments),this.groupScale=new ml,this.smallestDataInterval=void 0,this.largestDataInterval=void 0}padBandExtent(r,l){var B;let m=typeof l=="boolean"?1:.5,D=ea(this.smallestDataInterval)?this.smallestDataInterval*m:0,L=(B=Xg(r))!=null?B:[NaN,NaN];return typeof l=="boolean"?L[l?0:1]-=(l?1:-1)*D:(L[0]-=D,L[1]+=D),Al(L)}getBandScalePadding(){return{inner:.3,outer:.15}}shouldFlipXY(){return!this.isVertical()}isVertical(){return this.properties.direction==="vertical"}getBarDirection(){return this.shouldFlipXY()?"x":"y"}getCategoryDirection(){return this.shouldFlipXY()?"y":"x"}getValueAxis(){let r=this.getBarDirection();return this.axes[r]}getCategoryAxis(){let r=this.getCategoryDirection();return this.axes[r]}getBandwidth(r){return Fa.is(r.scale)?r.scale.calcBandwidth(this.smallestDataInterval):r.scale.bandwidth}updateGroupScale(r){let l=[],{groupScale:m}=this,D=this.getBandwidth(r),{index:L,visibleGroupCount:B}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);for(let U=0;U<B;U++)l.push(String(U));return m.domain=l,m.range=[0,D!=null?D:0],r instanceof dg?m.paddingInner=r.groupPaddingInner:r instanceof ap?(m.paddingInner=r.groupPaddingInner,m.round=m.padding!==0):m.padding=0,{barWidth:m.bandwidth>=1?m.bandwidth:m.rawBandwidth,groupIndex:L}}resolveKeyDirection(r){return this.getBarDirection()==="x"?r==="x"?"y":"x":r}initQuadTree(r){Yb(r,this.datumNodesIter())}pickNodeClosestDatum(r){return gf(this,r)}},w1=class extends So{constructor(){super(...arguments),this.placement="inside-center",this.padding=0}};T([je(Xn(["inside-center","inside-start","inside-end","outside-start","outside-end"],"a placement"))],w1.prototype,"placement",2),T([je(yn)],w1.prototype,"padding",2);var ca=class extends PS{constructor(){super(...arguments),this.fill="#c16068",this.fillOpacity=1,this.stroke="#874349",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.crisp=void 0,this.shadow=new Dd,this.label=new w1,this.tooltip=new Tl,this.sparklineMode=!1,this.fastDataProcessing=!1}};T([je(Qt)],ca.prototype,"xKey",2),T([je(Qt,{optional:!0})],ca.prototype,"xName",2),T([je(Qt)],ca.prototype,"yKey",2),T([je(Qt,{optional:!0})],ca.prototype,"yName",2),T([je(Qt,{optional:!0})],ca.prototype,"yFilterKey",2),T([je(Qt,{optional:!0})],ca.prototype,"stackGroup",2),T([je(yn,{optional:!0})],ca.prototype,"normalizedTo",2),T([je(In)],ca.prototype,"fill",2),T([je(oa)],ca.prototype,"fillOpacity",2),T([je(In)],ca.prototype,"stroke",2),T([je(bi)],ca.prototype,"strokeWidth",2),T([je(oa)],ca.prototype,"strokeOpacity",2),T([je(bo)],ca.prototype,"lineDash",2),T([je(bi)],ca.prototype,"lineDashOffset",2),T([je(bi)],ca.prototype,"cornerRadius",2),T([je(Ri,{optional:!0})],ca.prototype,"crisp",2),T([je(_a,{optional:!0})],ca.prototype,"itemStyler",2),T([je(Si,{optional:!0})],ca.prototype,"shadow",2),T([je(Si)],ca.prototype,"label",2),T([je(Si)],ca.prototype,"tooltip",2),T([je(Ri)],ca.prototype,"sparklineMode",2),T([je(Ri)],ca.prototype,"fastDataProcessing",2);function pk(r,l){var m,D,L,B,H,U;r.crisp=(m=l.crisp)!=null?m:!0,r.fill=l.fill,r.stroke=l.stroke,r.strokeWidth=l.strokeWidth,r.fillOpacity=l.fillOpacity,r.strokeOpacity=l.strokeOpacity,r.lineDash=l.lineDash,r.lineDashOffset=l.lineDashOffset,r.fillShadow=l.fillShadow,r.topLeftCornerRadius=l.topLeftCornerRadius!==!1&&(D=l.cornerRadius)!=null?D:0,r.topRightCornerRadius=l.topRightCornerRadius!==!1&&(L=l.cornerRadius)!=null?L:0,r.bottomRightCornerRadius=l.bottomRightCornerRadius!==!1&&(B=l.cornerRadius)!=null?B:0,r.bottomLeftCornerRadius=l.bottomLeftCornerRadius!==!1&&(H=l.cornerRadius)!=null?H:0,r.visible=(U=l.visible)!=null?U:!0}function mk(r,l,Q){var ie=Q,{datum:m,isHighlighted:D,style:L,highlightStyle:B,itemStyler:H,seriesId:U}=ie,X=wi(ie,["datum","isHighlighted","style","highlightStyle","itemStyler","seriesId"]);var Ne,Qe,nt,rt,ut,Mt,Tt,_t;let{fill:ue,fillOpacity:be,stroke:ye,strokeWidth:Me,strokeOpacity:Ie,lineDash:Oe,lineDashOffset:Re,cornerRadius:Be=0}=mn(D&&B,L),Ue;return H&&(Ue=r.cachedDatumCallback(ws(l,D?"highlight":"node"),()=>H(ge({datum:m.datum,xKey:m.xKey,fill:ue,fillOpacity:be,stroke:ye,strokeWidth:Me,strokeOpacity:Ie,lineDash:Oe,lineDashOffset:Re,cornerRadius:Be,highlighted:D,seriesId:U},X)))),{fill:(Ne=Ue==null?void 0:Ue.fill)!=null?Ne:ue,fillOpacity:(Qe=Ue==null?void 0:Ue.fillOpacity)!=null?Qe:be,stroke:(nt=Ue==null?void 0:Ue.stroke)!=null?nt:ye,strokeWidth:(rt=Ue==null?void 0:Ue.strokeWidth)!=null?rt:Me,strokeOpacity:(ut=Ue==null?void 0:Ue.strokeOpacity)!=null?ut:Ie,lineDash:(Mt=Ue==null?void 0:Ue.lineDash)!=null?Mt:Oe,lineDashOffset:(Tt=Ue==null?void 0:Ue.lineDashOffset)!=null?Tt:Re,cornerRadius:(_t=Ue==null?void 0:Ue.cornerRadius)!=null?_t:Be,topLeftCornerRadius:L.topLeftCornerRadius,topRightCornerRadius:L.topRightCornerRadius,bottomRightCornerRadius:L.bottomRightCornerRadius,bottomLeftCornerRadius:L.bottomLeftCornerRadius,fillShadow:L.fillShadow}}function fu(r,l,m,D){if(l!=null){let[L,B]=l;if(L!==0||B!==1)return!1}if(Fa.is(r)){let L=r.calcBandwidth(D)-r.calcBandwidth(m);if(L>0&&L<1)return!1}return!0}var fk=r=>{var l;return Pe((l=r.yValue)!=null?l:0)};function pf(r,l,m){let{startingX:D,startingY:L}=x1(r,l);return{isVertical:r,calculate:(H,U)=>{let X=r?H.x:D,Q=r?L:H.y,ie=r?H.width:0,ue=r?0:H.height,{opacity:be}=H;U&&(isNaN(X)||isNaN(Q))&&({x:X,y:Q}=U,ie=r?U.width:0,ue=r?0:U.height,r&&!fk(U)?Q+=U.height:!r&&fk(U)&&(X+=U.width));let ye;return H.clipBBox==null?ye=void 0:fk(H)?ye=r?new ft(X,Q-ue,ie,ue):new ft(X-ie,Q,ie,ue):ye=new ft(X,Q,ie,ue),{x:X,y:Q,width:ie,height:ue,clipBBox:ye,opacity:be}},mode:m}}function vk(r,l){return{isVertical:r,calculate:m=>({x:r?m.x:m.x+m.width/2,y:r?m.y+m.height/2:m.y,width:r?m.width:0,height:r?0:m.height,clipBBox:m.clipBBox,opacity:m.opacity}),mode:l}}function Hv(r){let l=L=>L==null||isNaN(L.x)||isNaN(L.y);return{toFn:(L,B,H)=>H==="removed"&&L.datum==null&&r.mode==="fade"?He(ge({},Xb(L,B)),{opacity:0}):H==="removed"||l(B)?r.calculate(B,L.previousDatum):{x:B.x,y:B.y,width:B.width,height:B.height,clipBBox:B.clipBBox,opacity:B.opacity},fromFn:(L,B,H)=>{H==="updated"&&l(B)?H="removed":H==="updated"&&l(L.previousDatum)&&(H="added");let U;H==="added"&&L.previousDatum==null&&r.mode==="fade"?U=He(ge({},Xb(L,B)),{opacity:0}):H==="unknown"||H==="added"?U=r.calculate(B,L.previousDatum):U={x:L.x,y:L.y,width:L.width,height:L.height,clipBBox:L.clipBBox,opacity:L.opacity};let X=os[H];return He(ge({},U),{phase:X})}}}function x1(r,l){let m=l[r?"y":"x"],D=1/0,L=0;return m?(r?L=m.scale.convert(Fa.is(m.scale)?0:Math.max(...m.range)):D=m.scale.convert(Fa.is(m.scale)?0:Math.min(...m.range)),{startingX:D,startingY:L}):{startingX:D,startingY:L}}function Xb(r,{x:l,y:m,width:D,height:L,clipBBox:B,opacity:H}){return{x:l,y:m,width:D,height:L,clipBBox:B,opacity:H}}function yk(r){if(r===void 0)return;let{x:l,y:m,width:D,height:L}=r;return new ft(l,m,D,L)}function M1(r,l,m){if(l.enabled&&m){let{x:D,y:L,text:B,textAlign:H,textBaseline:U}=m,{color:X,fontStyle:Q,fontWeight:ie,fontSize:ue,fontFamily:be}=l;r.setProperties({visible:!0,x:D,y:L,text:B,fill:X,fontStyle:Q,fontWeight:ie,fontSize:ue,fontFamily:be,textAlign:H,textBaseline:U})}else r.visible=!1}var HT={"inside-start":{inside:!0,direction:-1,textAlignment:1},"inside-end":{inside:!0,direction:1,textAlignment:-1},"outside-start":{inside:!1,direction:-1,textAlignment:-1},"outside-end":{inside:!1,direction:1,textAlignment:1}};function k1({isUpward:r,isVertical:l,placement:m,padding:D=0,rect:L}){let B=L.x+L.width/2,H=L.y+L.height/2,U="center",X="middle";if(m!=="inside-center"){let Q=(r?1:-1)*(l?-1:1),{direction:ie,textAlignment:ue}=HT[m],be=(ie+1)*.5;if(l){let ye=r?L.y+L.height:L.y,Me=L.height*Q;H=ye+Me*be+D*ue*Q,X=ue===Q?"top":"bottom"}else{let ye=r?L.x:L.x+L.width,Me=L.width*Q;B=ye+Me*be+D*ue*Q,U=ue===Q?"left":"right"}}return{x:B,y:H,textAlign:U,textBaseline:X}}var WT=0,xs=1,A1=2,Wv=3,vu=4,Js=class extends S1{constructor(r){super({moduleCtx:r,directionKeys:lg,directionNames:bp,pickModes:[2,1,0],pathsPerSeries:[],hasHighlightedLabels:!0,datumSelectionGarbageCollection:!1,animationAlwaysUpdateSelections:!0,animationResetFns:{datum:Xb,label:bg}}),this.properties=new ca,this.connectsToYAxis=!0,this.dataAggregationFilters=void 0}get pickModeAxis(){return this.properties.sparklineMode?"main":void 0}crossFilteringEnabled(){return this.properties.yFilterKey!=null&&(this.seriesGrouping==null||this.seriesGrouping.stackIndex===0)}async processData(r){var rt,ut,Mt,Tt,_t,Kt,gi,Ci;if(!this.properties.isValid()||!this.data)return;let{xKey:l,yKey:m,yFilterKey:D,normalizedTo:L,fastDataProcessing:B}=this.properties,{seriesGrouping:{groupIndex:H=this.id}={},data:U}=this,X=(ut=(rt=this.seriesGrouping)==null?void 0:rt.groupCount)!=null?ut:0,Q=(Tt=(Mt=this.seriesGrouping)==null?void 0:Mt.stackCount)!=null?Tt:0,ie=!B||L!=null||X>1||Q>1,ue=!this.ctx.animationManager.isSkipped(),be=(_t=this.getCategoryAxis())==null?void 0:_t.scale,ye=(Kt=this.getValueAxis())==null?void 0:Kt.scale,{isContinuousX:Me,xScaleType:Ie,yScaleType:Oe}=this.getScaleInformation({xScale:be,yScale:ye}),Re=`bar-stack-${H}-yValues`,Be=`${Re}-trailing`,Ue=this.visible?{}:{forceValue:0},Ne=[Xs(l,Ie,{id:"xValue"}),kn(m,Oe,ge({id:"yValue-raw",invalidValue:null},Ue))];this.crossFilteringEnabled()&&Ne.push(kn(D,Oe,ge({id:"yFilterValue",invalidValue:null},Ue))),ie&&Ne.push(...wp(m,"normal","current",ge({id:"yValue-end",rangeId:"yValue-range",invalidValue:null,missingValue:0,groupId:Re,separateNegative:!0},Ue),Oe),...wp(m,"trailing","current",ge({id:"yValue-start",invalidValue:null,missingValue:0,groupId:Be,separateNegative:!0},Ue),Oe)),Me&&Ne.push(vT,Ib),ea(L)&&Ne.push(Tb([Re,Be],Math.abs(L),"range")),ue&&this.processedData&&Ne.push(Zm(this.id,this.processedData)),(ue||!ie)&&Ne.push(qm());let{dataModel:Qe,processedData:nt}=await this.requestDataModel(r,U,{props:Ne,groupByKeys:ie,groupByData:!ie});this.dataAggregationFilters=this.aggregateData(Qe,nt),this.smallestDataInterval=(gi=nt.reduced)==null?void 0:gi.smallestKeyInterval,this.largestDataInterval=(Ci=nt.reduced)==null?void 0:Ci.largestKeyInterval,this.animationState.transition("updateData")}getSeriesDomain(r){var X,Q;let{processedData:l,dataModel:m}=this;if(m==null||l==null)return[];let D=(Q=(X=l.rawDataSources)==null?void 0:X.get(this.id))!=null?Q:l.rawData;if(D==null||D.length===0)return[];let L=m.resolveProcessedDataDefById(this,"xValue"),B=m.getDomain(this,"xValue","key",l),H=l.type==="grouped"?m.getDomain(this,"yValue-end","value",l):m.getDomain(this,"yValue-raw","value",l),U=this.crossFilteringEnabled()?m.getDomain(this,"yFilterValue","value",l):void 0;if(U!=null&&(H=[Math.min(H[0],U[0]),Math.max(H[1],U[1])]),r===this.getCategoryDirection())return(L==null?void 0:L.def.type)==="key"&&L.def.valueType==="category"?B:this.padBandExtent(B);if(this.getValueAxis()instanceof Qm)return Al(H);{let ie=[Math.min(0,H[0]),Math.max(0,H[1])];return Al(ie)}}getSeriesRange(r,l){var ue;let{dataModel:m,processedData:D}=this;if(!m||!D||this.getBarDirection()==="x")return[NaN,NaN];let L=this.axes.x.scale,B=m.resolveKeysById(this,"xValue",D),H=(ue=L.bandwidth)!=null?ue:0,[U,X]=Q0(B.length,l,be=>{let ye=L.convert(B[be]);return[ye,ye+H]}),[Q,ie]=m.getDomainBetweenRange(this,D.type==="ungrouped"?["yValue-raw"]:["yValue-end"],[U,X],D);return[Math.min(Q,0),Math.max(ie,0)]}aggregateData(r,l){}visibleRange(r,l,m,D){return[0,r]}createNodeData(){var Qa,Kn;let{dataModel:r,processedData:l,groupScale:m,dataAggregationFilters:D}=this,L=this.getCategoryAxis(),B=this.getValueAxis();if(!r||!l||!L||!B||!this.properties.isValid())return;let H=(Kn=(Qa=l.rawDataSources)==null?void 0:Qa.get(this.id))!=null?Kn:l.rawData;if(H==null||H.length===0)return;let U=L.scale,X=B.scale,{xKey:Q,yKey:ie,xName:ue,yName:be,fill:ye,stroke:Me,strokeWidth:Ie,cornerRadius:Oe,legendItemName:Re,label:Be}=this.properties,Ue=B.isReversed(),{barWidth:Ne,groupIndex:Qe}=this.updateGroupScale(L),nt=m.convert(String(Qe)),rt=Fa.is(U)?Ne*-.5:0,ut=r.resolveKeysById(this,"xValue",l),Mt=r.resolveColumnById(this,"yValue-raw",l),Tt=this.crossFilteringEnabled()?r.resolveColumnById(this,"yFilterValue",l):void 0,_t=!this.ctx.animationManager.isSkipped(),Kt=pn=>U.convert(ut[pn])+nt+rt,gi=X.convert(0),Ci=({datum:pn,datumIndex:Wn,valueIndex:$i,xValue:Pi,yValue:en,cumulativeValue:Mn,phantom:Li,currY:Xi,prevY:Ti,x:Sn,width:Vi,isPositive:Ja,yRange:oo,labelText:Ba,opacity:Ca,crossScale:lr=1})=>{let Yo=Ja!==Ue,Nd=X.convert(Xi),rC=X.convert(Ti),Bk=X.convert(oo),Eg=this.getBarDirection()==="x",sw=Vi*.5*(1-lr),Ig={x:Eg?Math.min(Nd,rC):Sn+sw,y:Eg?Sn+sw:Math.min(Nd,rC),width:Eg?Math.abs(rC-Nd):Vi*lr,height:Eg?Vi*lr:Math.abs(rC-Nd)},fR=new ft(Ig.x,Ig.y,Ig.width,Ig.height),nE={x:Eg?Math.min(gi,Bk):Sn+sw,y:Eg?Sn+sw:Math.min(gi,Bk),width:Eg?Math.abs(gi-Bk):Vi*lr,height:Eg?Vi*lr:Math.abs(gi-Bk)},FL=this.shouldFlipXY()?Ig.height:Ig.width;return{series:this,itemId:Li?ws(ie,Li):ie,datum:pn,datumIndex:Wn,valueIndex:$i,cumulativeValue:Mn,phantom:Li,xValue:Pi,yValue:en,yKey:ie,xKey:Q,capDefaults:{lengthRatioMultiplier:FL,lengthMax:FL},x:nE.x,y:nE.y,width:nE.width,height:nE.height,midPoint:{x:Ig.x+Ig.width/2,y:Ig.y+Ig.height/2},fill:ye,stroke:Me,opacity:Ca,strokeWidth:Ie,cornerRadius:Oe,topLeftCornerRadius:Eg!==Yo,topRightCornerRadius:Yo,bottomRightCornerRadius:Eg===Yo,bottomLeftCornerRadius:!Yo,clipBBox:fR,label:Ba!=null?ge({text:Ba},k1({isUpward:Yo,isVertical:!Eg,placement:Be.placement,padding:Be.padding,rect:Ig})):void 0,missing:en==null,focusable:!Li}},xi=[],li=[],Bi=[],Fi=(pn,Wn,$i,Pi,en,Mn,Li,Xi)=>{let Ti=ut[pn];if(Ti==null)return;let Sn=Mt[pn],Vi=Tt!=null?Number(Tt[pn]):void 0,Ja=Sn>=0&&!Object.is(Sn,-0);if(!Number.isFinite(Mn)||Vi!=null&&!Number.isFinite(Vi))return;let oo=Sn!=null?this.getLabelText(this.properties.label,{datum:H[pn],value:Vi!=null?Vi:Sn,xKey:Q,yKey:ie,xName:ue,yName:be,legendItemName:Re}):void 0,Ba=Vi!=null&&Vi>Sn,Ca=Ci({datum:H[pn],datumIndex:pn,valueIndex:Wn,xValue:Ti,yValue:Vi!=null?Vi:Sn,cumulativeValue:Vi!=null?Vi:Mn,phantom:!1,currY:Vi!=null?en+Vi:Mn,prevY:en,x:$i,width:Pi,isPositive:Ja,yRange:Math.max(en+(Vi!=null?Vi:-1/0),Li),labelText:oo,opacity:Xi,crossScale:Ba?.6:void 0});if(li.push(Ca),Bi.push(Ca),Vi!=null){let lr=Ci({datum:H[pn],datumIndex:pn,valueIndex:Wn,xValue:Ti,yValue:Vi,cumulativeValue:Vi,phantom:!0,currY:Mn,prevY:en,x:$i,width:Pi,isPositive:Ja,yRange:Li,labelText:void 0,opacity:Xi,crossScale:void 0});xi.push(lr)}},[hn,ji]=Xe(L.range),[An,Zi]=U.range,Ki=Zi-An,Dn=D==null?void 0:D.find(pn=>pn.maxRange>Ki);if(l.type==="grouped"){let pn=Ne,Wn=r.resolveColumnById(this,"yValue-start",l),$i=r.resolveColumnById(this,"yValue-end",l),Pi=r.resolveProcessedDataIndexById(this,"yValue-range");l.groups.forEach(({datumIndices:en,aggregation:Mn})=>{let Li=Mn[Pi];en.forEach((Xi,Ti)=>{let Sn=Kt(Xi),Vi=Mt[Xi],Ja=Vi>=0&&!Object.is(Vi,-0),oo=Number(Wn[Xi]),Ba=Number($i[Xi]),Ca=Li[Ja?1:0];Fi(Xi,Ti,Sn,pn,oo,Ba,Ca,1)})})}else if(Dn==null){let pn=Ne,[Wn,$i]=this.visibleRange(H.length,hn,ji,Kt);l.rawData.length<1e3&&(Wn=0,$i=l.rawData.length);for(let Pi=Wn;Pi<$i;Pi+=1){let en=Kt(Pi),Mn=Number(Mt[Pi]);Fi(Pi,0,en,pn,0,Mn,Mn,1)}}else{let{maxRange:pn,indexData:Wn}=Dn,[$i,Pi]=this.visibleRange(pn,hn,ji,en=>{let Mn=en*vu,Li=Wn[Mn+WT],Xi=Wn[Mn+xs],Ti=(Li+Xi)/2|0;return Li!==-1?Kt(Ti):NaN});for(let en=$i;en<Pi;en+=1){let Mn=en*vu,Li=Wn[Mn+WT],Xi=Wn[Mn+xs],Ti=Wn[Mn+A1],Sn=Wn[Mn+Wv];if(Li===-1)continue;let Vi=Kt((Li+Xi)/2|0),Ja=Math.abs(Kt(Xi)-Kt(Li))+Ne,oo=ut[Sn]!=null?Number(Mt[Sn]):NaN,Ba=ut[Ti]!=null?Number(Mt[Ti]):NaN;if(oo>0){let Ca=Ba>=0?Ba/oo:1;Fi(Sn,0,Vi,Ja,0,oo,oo,Ca)}if(Ba<0){let Ca=oo<=0?oo/Ba:1;Fi(Ti,1,Vi,Ja,0,Ba,Ba,Ca)}}}return{itemId:ie,nodeData:xi.length>0?[...xi,...li]:li,labelData:Bi,scales:this.calculateScaling(),visible:this.visible||_t,groupScale:this.getScaling(this.groupScale)}}nodeFactory(){return new za}getHighlightData(r,l){let m=r.find(D=>D.datum===l.datum&&!D.phantom);return m!=null?[m]:void 0}updateDatumSelection(r){return r.datumSelection.update(r.nodeData,void 0,l=>this.getDatumId(l))}getItemBaseStyle(r){var L,B,H,U,X,Q,ie,ue;let{properties:l}=this,{cornerRadius:m}=l,D=r?l.highlightStyle.item:void 0;return{fill:(L=D==null?void 0:D.fill)!=null?L:l.fill,fillOpacity:(B=D==null?void 0:D.fillOpacity)!=null?B:l.fillOpacity,stroke:(H=D==null?void 0:D.stroke)!=null?H:l.stroke,strokeWidth:(U=D==null?void 0:D.strokeWidth)!=null?U:l.strokeWidth,strokeOpacity:(X=D==null?void 0:D.strokeOpacity)!=null?X:l.strokeOpacity,lineDash:(ie=(Q=D==null?void 0:D.lineDash)!=null?Q:l.lineDash)!=null?ie:[],lineDashOffset:(ue=D==null?void 0:D.lineDashOffset)!=null?ue:l.lineDashOffset,cornerRadius:m}}getItemStyleOverrides(r,l,m,D,L,B){let{id:H,properties:U}=this,{xKey:X,yKey:Q,itemStyler:ie}=U;if(ie==null)return;let{xDomain:ue,yDomain:be}=this.cachedDatumCallback("domain",()=>({xDomain:this.getSeriesDomain("x"),yDomain:this.getSeriesDomain("y")}));return this.cachedDatumCallback(ws(r,B?"highlight":"node"),()=>ie(ge(He(ge({seriesId:H},fp(l,X,Q,ue,be)),{xValue:m,yValue:D,highlighted:B}),L)))}updateDatumNodes(r){var Ne;if(!this.properties.isValid())return;let{xKey:l,yKey:m,stackGroup:D,fill:L,fillOpacity:B,stroke:H,strokeWidth:U,strokeOpacity:X,lineDash:Q,lineDashOffset:ie,itemStyler:ue,shadow:be,highlightStyle:{item:ye}}=this.properties,Me=this.axes.x,Ie=(Ne=this.properties.crisp)!=null?Ne:fu(Me==null?void 0:Me.scale,Me==null?void 0:Me.visibleRange,this.smallestDataInterval,this.largestDataInterval),Oe=this.getCategoryDirection()==="x",Re={fill:L,stroke:H,lineDash:Q,lineDashOffset:ie,fillShadow:be,strokeWidth:this.getStrokeWidth(U),fillOpacity:0,strokeOpacity:0},Be=this.getSeriesDomain("x"),Ue=this.getSeriesDomain("y");r.datumSelection.each((Qe,nt)=>{var Tt,_t,Kt,gi;let rt=ge({seriesId:this.id,isHighlighted:r.isHighlight,highlightStyle:ye,style:Re,itemStyler:ue,stackGroup:D},fp(nt,l,m,Be,Ue));Re.fillOpacity=B*(nt.phantom?.2:1),Re.strokeOpacity=X*(nt.phantom?.2:1),Re.cornerRadius=nt.cornerRadius,Re.topLeftCornerRadius=nt.topLeftCornerRadius,Re.topRightCornerRadius=nt.topRightCornerRadius,Re.bottomRightCornerRadius=nt.bottomRightCornerRadius,Re.bottomLeftCornerRadius=nt.bottomLeftCornerRadius;let ut=Oe?((_t=(Tt=nt.clipBBox)==null?void 0:Tt.width)!=null?_t:nt.width)>0:((gi=(Kt=nt.clipBBox)==null?void 0:Kt.height)!=null?gi:nt.height)>0,Mt=mk(this,this.getDatumId(nt),rt);Mt.crisp=Ie,Mt.visible=ut,pk(Qe,Mt)})}updateLabelSelection(r){let l=this.isLabelEnabled()?r.labelData:[];return r.labelSelection.update(l,m=>{m.pointerEvents=1})}updateLabelNodes(r){r.labelSelection.each((l,m)=>{M1(l,this.properties.label,m.label)})}getTooltipContent(r){let{id:l,dataModel:m,processedData:D,properties:L}=this,{xKey:B,xName:H,yKey:U,yName:X,legendItemName:Q,stackGroup:ie,tooltip:ue}=L,be=this.getCategoryAxis(),ye=this.getValueAxis();if(!m||!D||D.rawData.length===0||!be||!ye)return;let{datumIndex:Me}=r,Ie=D.rawData[Me],Oe=m.resolveKeysById(this,"xValue",D)[Me],Re=m.resolveColumnById(this,"yValue-raw",D)[Me];if(Oe==null)return;let Be=this.getItemBaseStyle(!1);return Object.assign(Be,this.getItemStyleOverrides(String(Me),Ie,Oe,Re,Be,!1)),ue.formatTooltip({heading:be.formatDatum(Oe),symbol:this.legendItemSymbol(),data:[{label:X,fallbackLabel:U,value:ye.formatDatum(Re)}]},ge(ge({seriesId:l,datum:Ie,title:X,xKey:B,xName:H,yKey:U,yName:X,legendItemName:Q,stackGroup:ie},Be),this.getModuleTooltipParams()))}legendItemSymbol(){let{fill:r,stroke:l,strokeWidth:m,fillOpacity:D,strokeOpacity:L}=this.properties;return{marker:{fill:r,fillOpacity:D,stroke:l,strokeWidth:m,strokeOpacity:L}}}getLegendData(r){var X;let{showInLegend:l}=this.properties;if(r!=="category"||!this.properties.isValid())return[];let{id:m,ctx:{legendManager:D},visible:L}=this,{yKey:B,yName:H,legendItemName:U}=this.properties;return[{legendType:"category",id:m,itemId:B,seriesId:m,enabled:L&&D.getItemEnabled({seriesId:m,itemId:B}),label:{text:(X=U!=null?U:H)!=null?X:B},symbol:this.legendItemSymbol(),legendItemName:U,hideInLegend:!l}]}animateEmptyUpdateReady({datumSelection:r,labelSelection:l,annotationSelections:m}){let D=Hv(pf(this.isVertical(),this.axes,"normal"));ri(this.id,"nodes",this.ctx.animationManager,[r],D),$n(this,"labels",this.ctx.animationManager,l),$n(this,"annotations",this.ctx.animationManager,...m)}animateWaitingUpdateReady(r){var ie,ue,be,ye,Me,Ie;let{datumSelection:l,labelSelection:m,annotationSelections:D,previousContextData:L}=r;this.ctx.animationManager.stopByAnimationGroupId(this.id);let B=(be=(ue=(ie=this.processedData)==null?void 0:ie.reduced)==null?void 0:ue.diff)==null?void 0:be[this.id];B==null&&((Me=(ye=this.processedData)==null?void 0:ye.reduced)==null?void 0:Me.diff)!=null&&(B={changed:!0,added:new Set(Array.from(l,({datum:Oe})=>this.getDatumId(Oe))),updated:new Set,removed:new Set,moved:new Set});let H=L==null?"fade":"normal",U=Hv(pf(this.isVertical(),this.axes,H));ri(this.id,"nodes",this.ctx.animationManager,[l],U,(Oe,Re)=>this.getDatumId(Re),B);let X=L!=null&&(!qi(r.contextData.scales.x,L.scales.x)||!qi(r.contextData.scales.y,L.scales.y)||!qi(r.contextData.groupScale,r.previousContextData.groupScale));(((Ie=B==null?void 0:B.changed)!=null?Ie:!1)||X)&&($n(this,"labels",this.ctx.animationManager,m),$n(this,"annotations",this.ctx.animationManager,...D))}getDatumId(r){return ws(r.xValue,r.valueIndex,r.phantom)}isLabelEnabled(){return this.properties.label.enabled}computeFocusBounds({datumIndex:r}){var m;let l=(m=this.contextNodeData)==null?void 0:m.nodeData[r].clipBBox;return yk(l)}};Js.className="BarSeries",Js.type="bar";var mf={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"bar",moduleFactory:r=>new Js(r),stackable:!0,groupable:!0,tooltipDefaults:{range:"exact"},defaultAxes:yS([{type:"number",position:"left"},{type:"category",position:"bottom"}],r=>(r==null?void 0:r.direction)==="horizontal"),themeTemplate:{series:{direction:"vertical",fillOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,label:{enabled:!1,fontWeight:"normal",fontSize:12,fontFamily:ko,color:Wc,placement:"inside-center"},shadow:{enabled:!1,color:pg,xOffset:3,yOffset:3,blur:5},errorBar:{cap:{lengthRatio:.3}}}},paletteFactory:Ap},bk=class extends Kc{constructor(){super(...arguments),this.maxSize=30}};T([je(bi),Lt()],bk.prototype,"maxSize",2),T([je(Jl,{optional:!0}),Lt()],bk.prototype,"domain",2);var Tp=class extends So{constructor(){super(...arguments),this.placement="top"}};T([je(jh)],Tp.prototype,"placement",2);var Da=class extends Cp{constructor(){super(...arguments),this.colorRange=["#ffff00","#00ff00","#0000ff"],this.label=new Tp,this.tooltip=new Tl,this.marker=new bk}};T([je(Qt)],Da.prototype,"xKey",2),T([je(Qt)],Da.prototype,"yKey",2),T([je(Qt)],Da.prototype,"sizeKey",2),T([je(Qt,{optional:!0})],Da.prototype,"labelKey",2),T([je(Qt,{optional:!0})],Da.prototype,"colorKey",2),T([je(Qt,{optional:!0})],Da.prototype,"xFilterKey",2),T([je(Qt,{optional:!0})],Da.prototype,"yFilterKey",2),T([je(Qt,{optional:!0})],Da.prototype,"sizeFilterKey",2),T([je(Qt,{optional:!0})],Da.prototype,"xName",2),T([je(Qt,{optional:!0})],Da.prototype,"yName",2),T([je(Qt,{optional:!0})],Da.prototype,"sizeName",2),T([je(Qt,{optional:!0})],Da.prototype,"labelName",2),T([je(Qt,{optional:!0})],Da.prototype,"colorName",2),T([je(Jl,{optional:!0})],Da.prototype,"colorDomain",2),T([je(Ns)],Da.prototype,"colorRange",2),T([je(Qt,{optional:!0})],Da.prototype,"title",2),T([Ai("marker.shape")],Da.prototype,"shape",2),T([Ai("marker.size")],Da.prototype,"size",2),T([Ai("marker.maxSize")],Da.prototype,"maxSize",2),T([Ai("marker.domain",{optional:!0})],Da.prototype,"domain",2),T([Ai("marker.fill",{optional:!0})],Da.prototype,"fill",2),T([Ai("marker.fillOpacity")],Da.prototype,"fillOpacity",2),T([Ai("marker.stroke",{optional:!0})],Da.prototype,"stroke",2),T([Ai("marker.strokeWidth")],Da.prototype,"strokeWidth",2),T([Ai("marker.strokeOpacity")],Da.prototype,"strokeOpacity",2),T([Ai("marker.itemStyler",{optional:!0})],Da.prototype,"itemStyler",2),T([je(Si)],Da.prototype,"label",2),T([je(Si)],Da.prototype,"tooltip",2);var LS=class extends MM{constructor(r,l,m,D){super(r,l,m,D),this.sizeKey=D.properties.sizeKey}},Ck=class extends Hm{constructor(r){super({moduleCtx:r,directionKeys:lg,directionNames:bp,pickModes:[2,1,0],pathsPerSeries:[],hasMarkers:!0,markerSelectionGarbageCollection:!1,animationResetFns:{label:bg,marker:Kb},usesPlacedLabels:!0}),this.NodeEvent=LS,this.clipFocusBox=!1,this.properties=new Da,this.sizeScale=new jc,this.colorScale=new ei}get pickModeAxis(){return"main-category"}async processData(r){var nt,rt,ut,Mt;if(!this.properties.isValid()||this.data==null||!this.visible)return;let l=(nt=this.axes.x)==null?void 0:nt.scale,m=(rt=this.axes.y)==null?void 0:rt.scale,{xScaleType:D,yScaleType:L}=this.getScaleInformation({xScale:l,yScale:m}),B=this.colorScale.type,H=this.sizeScale.type,{xKey:U,yKey:X,sizeKey:Q,xFilterKey:ie,yFilterKey:ue,sizeFilterKey:be,labelKey:ye,colorDomain:Me,colorRange:Ie,colorKey:Oe,marker:Re}=this.properties,{dataModel:Be,processedData:Ue}=await this.requestDataModel(r,this.data,{props:[kn(U,D,{id:"xValue"}),kn(X,L,{id:"yValue"}),...ie!=null?[kn(ie,D,{id:"xFilterValue"})]:[],...ue!=null?[kn(ue,L,{id:"yFilterValue"})]:[],...be!=null?[kn(be,H,{id:"sizeFilterValue"})]:[],kn(Q,H,{id:"sizeValue"}),...Oe?[kn(Oe,B,{id:"colorValue"})]:[],...ye?[kn(ye,"band",{id:"labelValue"})]:[]]}),Ne=Be.resolveProcessedDataIndexById(this,"sizeValue"),Qe=(ut=Ue.domain.values[Ne])!=null?ut:[];if(this.sizeScale.domain=Re.domain?Re.domain:Qe,Oe){let Tt=Be.resolveProcessedDataIndexById(this,"colorValue");this.colorScale.domain=(Mt=Me!=null?Me:Ue.domain.values[Tt])!=null?Mt:[],this.colorScale.range=Ie,this.colorScale.update()}this.animationState.transition("updateData")}getSeriesDomain(r){let{dataModel:l,processedData:m}=this;if(!m||!l)return[];let D=r==="x"?"xValue":"yValue",L=l.resolveProcessedDataDefById(this,D),B=l.getDomain(this,D,"value",m);return(L==null?void 0:L.def.type)==="value"&&(L==null?void 0:L.def.valueType)==="category"?B:Al(Xg(B))}getSeriesRange(r,l){return[NaN,NaN]}createNodeData(){var Ki,Dn;let{axes:r,dataModel:l,processedData:m,colorScale:D,sizeScale:L,visible:B}=this,{xKey:H,yKey:U,sizeKey:X,xFilterKey:Q,yFilterKey:ie,sizeFilterKey:ue,labelKey:be,xName:ye,yName:Me,sizeName:Ie,labelName:Oe,label:Re,colorKey:Be,marker:Ue}=this.properties,Ne=Cd(Ue.shape),{placement:Qe}=Re,nt=r.x,rt=r.y;if(!(l&&(m!=null&&m.rawData.length)&&B&&nt&&rt))return;let ut=l.resolveColumnById(this,"xValue",m),Mt=l.resolveColumnById(this,"yValue",m),Tt=X!=null?l.resolveColumnById(this,"sizeValue",m):void 0,_t=Be!=null?l.resolveColumnById(this,"colorValue",m):void 0,Kt=be!=null?l.resolveColumnById(this,"labelValue",m):void 0,gi=Q!=null?l.resolveColumnById(this,"xFilterValue",m):void 0,Ci=ie!=null?l.resolveColumnById(this,"yFilterValue",m):void 0,xi=ue!=null?l.resolveColumnById(this,"sizeFilterValue",m):void 0,li=nt.scale,Bi=rt.scale,Fi=((Ki=li.bandwidth)!=null?Ki:0)/2,hn=((Dn=Bi.bandwidth)!=null?Dn:0)/2,ji=[];L.range=[Ue.size,Ue.maxSize];let An=Re.getFont(),Zi=Wr.getMeasurer({font:An});return m.rawData.forEach((Qa,Kn)=>{let pn=ut[Kn],Wn=Mt[Kn],$i=Tt==null?void 0:Tt[Kn],Pi=li.convert(pn)+Fi,en=Bi.convert(Wn)+hn,Mn;gi!=null&&Ci!=null&&(Mn=gi[Kn]===pn&&Ci[Kn]===Wn,xi!=null&&Mn&&(Mn=xi[Kn]===$i));let Li=this.getLabelText(Re,{value:Kt!=null?Kt[Kn]:Wn,datum:Qa,xKey:H,yKey:U,sizeKey:X,labelKey:be,xName:ye,yName:Me,sizeName:Ie,labelName:Oe}),Xi=Zi.measureText(String(Li)),Ti=$i!=null?L.convert($i):Ue.size,Sn=_t!=null?D.convert(_t[Kn]):void 0;ji.push({series:this,itemId:U,yKey:U,xKey:H,datum:Qa,datumIndex:Kn,xValue:pn,yValue:Wn,sizeValue:$i,point:{x:Pi,y:en,size:Ti},midPoint:{x:Pi,y:en},fill:Sn,label:ge({text:Li},Xi),marker:Ne,placement:Qe,selected:Mn})}),{itemId:U,nodeData:ji,labelData:ji,scales:this.calculateScaling(),visible:this.visible}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}getLabelData(){var r,l;return this.isLabelEnabled()?(l=(r=this.contextNodeData)==null?void 0:r.labelData)!=null?l:[]:[]}markerFactory(){let{shape:r}=this.properties.marker,l=Cd(r);return new l}updateMarkerSelection(r){let{nodeData:l,markerSelection:m}=r;this.properties.marker.isDirty()&&(m.clear(),m.cleanup());let D=this.properties.marker.enabled?l:[];return m.update(D,void 0,L=>ws([L.xValue,L.yValue,L.label.text]))}getMarkerItemBaseStyle(r){var L,B,H,U,X;let{properties:l}=this,{marker:m}=l,D=r?l.highlightStyle.item:void 0;return{fill:(L=D==null?void 0:D.fill)!=null?L:m.fill,fillOpacity:(B=D==null?void 0:D.fillOpacity)!=null?B:m.fillOpacity,stroke:(H=D==null?void 0:D.stroke)!=null?H:m.stroke,strokeWidth:(U=D==null?void 0:D.strokeWidth)!=null?U:m.strokeWidth,strokeOpacity:(X=D==null?void 0:D.strokeOpacity)!=null?X:m.strokeOpacity}}getMarkerItemStyleOverrides(r,l,m,D){let{id:L,properties:B}=this,{xKey:H,yKey:U,sizeKey:X,labelKey:Q,marker:ie}=B,{itemStyler:ue}=ie;if(ue!=null)return this.cachedDatumCallback(ws(r,D?"highlight":"node"),()=>ue(ge({seriesId:L,datum:l,xKey:H,yKey:U,sizeKey:X,labelKey:Q,highlighted:D},m)))}updateMarkerNodes(r){let{markerSelection:l,isHighlight:m}=r,{xKey:D,yKey:L,sizeKey:B,labelKey:H,marker:U}=this.properties,{size:X,shape:Q,fill:ie,fillOpacity:ue,stroke:be,strokeWidth:ye,strokeOpacity:Me}=mn(m&&this.properties.highlightStyle.item,U.getStyle()),Ie={size:X,shape:Q,fill:ie,fillOpacity:ue,stroke:be,strokeWidth:ye,strokeOpacity:Me};this.sizeScale.range=[U.size,U.maxSize],l.each((Oe,Re)=>{this.updateMarkerStyle(Oe,U,{datum:Re,highlighted:m,xKey:D,yKey:L,sizeKey:B,labelKey:H},Ie,{selected:Re.selected})}),m||this.properties.marker.markClean()}updatePlacedLabelData(r){this.labelSelection.update(r.map(l=>He(ge({},l.datum),{point:{x:l.x,y:l.y,size:l.datum.point.size}})),l=>{l.pointerEvents=1}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(r){let{label:l}=this.properties;r.labelSelection.each((m,D)=>{var L,B,H,U;m.text=D.label.text,m.fill=l.color,m.x=(B=(L=D.point)==null?void 0:L.x)!=null?B:0,m.y=(U=(H=D.point)==null?void 0:H.y)!=null?U:0,m.fontStyle=l.fontStyle,m.fontWeight=l.fontWeight,m.fontSize=l.fontSize,m.fontFamily=l.fontFamily,m.textAlign="left",m.textBaseline="top"})}getTooltipContent(r){let{id:l,dataModel:m,processedData:D,axes:L,properties:B}=this,{xKey:H,xName:U,yKey:X,yName:Q,sizeKey:ie,sizeName:ue,labelKey:be,labelName:ye,title:Me,tooltip:Ie}=B,Oe=L.x,Re=L.y;if(!m||!D||D.rawData.length===0||!Oe||!Re)return;let{datumIndex:Be}=r,Ue=D.rawData[Be],Ne=m.resolveColumnById(this,"xValue",D)[Be],Qe=m.resolveColumnById(this,"yValue",D)[Be];if(Ne==null)return;let nt=[{label:U,fallbackLabel:H,value:Oe.formatDatum(Ne)},{label:Q,fallbackLabel:X,value:Re.formatDatum(Qe)}];if(ie!=null){let ut=m.resolveColumnById(this,"sizeValue",D)[Be];nt.push({label:ue,fallbackLabel:ie,value:String(ut)})}let rt=this.getMarkerItemBaseStyle(!1);return Object.assign(rt,this.getMarkerItemStyleOverrides(String(Be),Ue,rt,!1)),Ie.formatTooltip({title:Me,symbol:this.legendItemSymbol(),data:nt},ge(ge({seriesId:l,datum:Ue,title:X,xKey:H,xName:U,yKey:X,yName:Q,sizeKey:ie,sizeName:ue,labelKey:be,labelName:ye},rt),this.getModuleTooltipParams()))}legendItemSymbol(){let{marker:r}=this.properties,{shape:l,fill:m,stroke:D,fillOpacity:L,strokeOpacity:B,strokeWidth:H}=r;return{marker:{shape:l,fill:m!=null?m:"rgba(0, 0, 0, 0)",stroke:D!=null?D:"rgba(0, 0, 0, 0)",fillOpacity:L!=null?L:1,strokeOpacity:B!=null?B:1,strokeWidth:H!=null?H:0}}}getLegendData(){var H;if(!this.properties.isValid())return[];let{id:r,ctx:{legendManager:l},visible:m}=this,{yKey:D,yName:L,title:B}=this.properties;return[{legendType:"category",id:r,itemId:D,seriesId:r,enabled:m&&l.getItemEnabled({seriesId:r,itemId:D}),label:{text:(H=B!=null?B:L)!=null?H:D},symbol:this.legendItemSymbol()}]}animateEmptyUpdateReady({markerSelection:r,labelSelection:l}){hf(this,this.ctx.animationManager,r),$n(this,"labels",this.ctx.animationManager,l)}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new Ji}getFormattedMarkerStyle(r){let{xKey:l,yKey:m,sizeKey:D,labelKey:L}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:r,xKey:l,yKey:m,sizeKey:D,labelKey:L,highlighted:!1})}computeFocusBounds(r){return Sg(this,r)}};Ck.className="BubbleSeries",Ck.type="bubble";var ML={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"bubble",moduleFactory:r=>new Ck(r),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{shape:"circle",size:7,maxSize:30,fillOpacity:.8,tooltip:{position:{type:"node"}},label:{enabled:!1,fontSize:12,fontFamily:ko,color:po}}},paletteFactory:Ap},nr=class extends Cp{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.areaPlot=!1,this.aggregation="sum",this.shadow=new Dd,this.label=new So,this.tooltip=new Tl}};T([je(Qt)],nr.prototype,"xKey",2),T([je(Qt,{optional:!0})],nr.prototype,"yKey",2),T([je(Qt,{optional:!0})],nr.prototype,"xName",2),T([je(Qt,{optional:!0})],nr.prototype,"yName",2),T([je(In,{optional:!0})],nr.prototype,"fill",2),T([je(oa)],nr.prototype,"fillOpacity",2),T([je(In,{optional:!0})],nr.prototype,"stroke",2),T([je(bi)],nr.prototype,"strokeWidth",2),T([je(oa)],nr.prototype,"strokeOpacity",2),T([je(bo)],nr.prototype,"lineDash",2),T([je(bi)],nr.prototype,"lineDashOffset",2),T([je(bi)],nr.prototype,"cornerRadius",2),T([je(Ri)],nr.prototype,"areaPlot",2),T([je(Yf,{optional:!0})],nr.prototype,"bins",2),T([je(Xn(["count","sum","mean"],"a histogram aggregation"))],nr.prototype,"aggregation",2),T([je(bi,{optional:!0})],nr.prototype,"binCount",2),T([je(Si)],nr.prototype,"shadow",2),T([je(Si)],nr.prototype,"label",2),T([je(Si)],nr.prototype,"tooltip",2);var Sk=10,D1=class extends Hm{constructor(r){super({moduleCtx:r,directionKeys:lg,directionNames:bp,pickModes:[1,0],datumSelectionGarbageCollection:!1,animationResetFns:{datum:Xb,label:bg}}),this.properties=new nr,this.calculatedBins=[]}deriveBins(r){let l=Hh(r[0],r[1],Sk),m=fi(r[0],r[1],Sk),[D]=l,L=B=>[B,B+m];return[[D-m,D],...l.map(L)]}calculateNiceBins(r,l){let m=Math.floor(r[0]),D=r[1],L=l||1,{start:B,binSize:H}=this.calculateNiceStart(m,D,L);return this.getBins(B,D,H,L)}getBins(r,l,m,D){let L=[],B=this.calculatePrecision(m);for(let H=0;H<D;H++){let U=Math.round((r+H*m)*B)/B,X=Math.round((r+(H+1)*m)*B)/B;H===D-1&&(X=Math.max(X,l)),L[H]=[U,X]}return L}calculatePrecision(r){let l=10;if(isFinite(r)&&r>0)for(;r<1;)l*=10,r*=10;return l}calculateNiceStart(r,l,m){let D=Math.abs(l-r)/m,L=Math.floor(Math.log10(D)),B=Math.pow(10,L);return{start:Math.floor(r/B)*B,binSize:D}}async processData(r){var ue,be;this.visible||(this.processedData=void 0,this.animationState.transition("updateData"));let{xKey:l,yKey:m,areaPlot:D,aggregation:L}=this.properties,B=(ue=this.axes.x)==null?void 0:ue.scale,H=(be=this.axes.y)==null?void 0:be.scale,{xScaleType:U,yScaleType:X}=this.getScaleInformation({yScale:H,xScale:B}),Q=[Xs(l,U),AM];if(m){let ye=HD("groupAgg");L==="count"||(L==="sum"?ye=jD("groupAgg"):L==="mean"&&(ye=Rv("groupAgg"))),D&&(ye=oS("groupAgg",ye)),Q.push(kn(m,X,{invalidValue:void 0}),ye)}else{let ye=HD("groupAgg");D&&(ye=oS("groupAgg",ye)),Q.push(ye)}let ie=ye=>{var Re;let Me=Al(ye.domain.keys[0]);if(Me.length===0)return ye.domain.groups=[],()=>[];let Ie=as(this.properties.binCount)?this.calculateNiceBins(Me,this.properties.binCount):(Re=this.properties.bins)!=null?Re:this.deriveBins(Me),Oe=Ie.length;return this.calculatedBins=[...Ie],Be=>{let Ue=Be.keys[0];for(let Ne=0;Ne<Oe;Ne++){let Qe=Ie[Ne];if(Ue>=Qe[0]&&Ue<Qe[1]||Ne===Oe-1&&Ue<=Qe[1])return Qe}return[]}};!this.ctx.animationManager.isSkipped()&&this.processedData&&Q.push(Zm(this.id,this.processedData,!1)),await this.requestDataModel(r,this.data,{props:Q,groupByFn:ie}),this.animationState.transition("updateData")}getSeriesDomain(r){var H,U,X,Q;let{processedData:l,dataModel:m}=this;if(!l||!m||!this.calculatedBins.length)return[];let D=m.getDomain(this,"groupAgg","aggregate",l),L=(H=this.calculatedBins)==null?void 0:H[0][0],B=(Q=this.calculatedBins)==null?void 0:Q[((X=(U=this.calculatedBins)==null?void 0:U.length)!=null?X:0)-1][1];return Al(r==="x"?[L,B]:D)}getSeriesRange(r,l){return[NaN,NaN]}createNodeData(){var Ue,Ne;let{id:r,axes:l,processedData:m}=this,D=l.x,L=l.y;if(!D||!L)return;let{scale:B}=D,{scale:H}=L,{xKey:U,yKey:X,xName:Q,yName:ie,fill:ue,stroke:be,strokeWidth:ye,cornerRadius:Me}=this.properties,Ie=(Ue=this.properties.label.formatter)!=null?Ue:Qe=>String(Qe.value),Oe=[],Re={itemId:(Ne=this.properties.yKey)!=null?Ne:this.id,nodeData:Oe,labelData:Oe,scales:this.calculateScaling(),animationValid:!0,visible:this.visible};if(!this.visible||m==null||m.rawData.length===0||m.type!=="grouped")return Re;let{rawData:Be}=m;return m.groups.forEach(({keys:Qe,datumIndices:nt,aggregation:rt},ut)=>{var Wn;let[[Mt,Tt]=[0,0]]=rt,_t=nt.length,Kt=Qe,[gi,Ci]=Kt,xi=nt.map($i=>Be[$i]),li=B.convert(gi),Bi=B.convert(Ci),Fi=Mt+Tt,hn=H.convert(0),ji=H.convert(Fi),An=Math.abs(Bi-li),Zi=Math.abs(ji-hn),Ki=Math.min(li,Bi),Dn=Math.min(hn,ji),Qa;Fi!==0&&(Qa={x:Ki+An/2,y:Dn+Zi/2,text:(Wn=this.cachedDatumCallback(ws(ut,"label"),()=>Ie({value:Fi,datum:xi,seriesId:r,xKey:U,yKey:X,xName:Q,yName:ie})))!=null?Wn:String(Fi)});let Kn={x:Ki+An/2,y:Dn+Zi/2},pn=L.isReversed();Oe.push({series:this,datumIndex:ut,datum:xi,aggregatedValue:Fi,frequency:_t,domain:Kt,yKey:X,xKey:U,x:Ki,y:Dn,xValue:li,yValue:ji,width:An,height:Zi,midPoint:Kn,fill:ue,stroke:be,cornerRadius:Me,topLeftCornerRadius:!pn,topRightCornerRadius:!pn,bottomRightCornerRadius:pn,bottomLeftCornerRadius:pn,opacity:1,strokeWidth:ye,label:Qa})}),Oe.sort((Qe,nt)=>Qe.x-nt.x),Re}nodeFactory(){return new za}updateDatumSelection(r){let{nodeData:l,datumSelection:m}=r;return m.update(l,D=>{D.crisp=!0},D=>D.domain.join("_"))}getItemBaseStyle(r){var D,L,B,H,U;let{properties:l}=this,m=r?l.highlightStyle.item:void 0;return{fill:(D=m==null?void 0:m.fill)!=null?D:l.fill,fillOpacity:(L=m==null?void 0:m.fillOpacity)!=null?L:l.fillOpacity,stroke:(B=m==null?void 0:m.stroke)!=null?B:l.stroke,strokeWidth:(H=m==null?void 0:m.strokeWidth)!=null?H:l.strokeWidth,strokeOpacity:(U=m==null?void 0:m.strokeOpacity)!=null?U:l.strokeOpacity}}updateDatumNodes(r){let{isHighlight:l}=r,{fillOpacity:m,strokeOpacity:D,lineDash:L,lineDashOffset:B,shadow:H,highlightStyle:{item:{fill:U,fillOpacity:X=m,stroke:Q,strokeWidth:ie}}}=this.properties;r.datumSelection.each((ue,be,ye)=>{var Qe,nt;let{cornerRadius:Me,topLeftCornerRadius:Ie,topRightCornerRadius:Oe,bottomRightCornerRadius:Re,bottomLeftCornerRadius:Be}=be,Ue=l&&ie!==void 0?ie:be.strokeWidth,Ne=l?X:m;ue.fill=(Qe=l?U:void 0)!=null?Qe:be.fill,ue.stroke=(nt=l?Q:void 0)!=null?nt:be.stroke,ue.fillOpacity=Ne,ue.strokeOpacity=D,ue.strokeWidth=Ue,ue.lineDash=L,ue.lineDashOffset=B,ue.topLeftCornerRadius=Ie?Me:0,ue.topRightCornerRadius=Oe?Me:0,ue.bottomRightCornerRadius=Re?Me:0,ue.bottomLeftCornerRadius=Be?Me:0,ue.fillShadow=H,ue.zIndex=l?Mv.highlightedZIndex:ye,ue.visible=be.height>0})}updateLabelSelection(r){let{labelData:l,labelSelection:m}=r;return m.update(l,D=>{D.pointerEvents=1,D.textAlign="center",D.textBaseline="middle"})}updateLabelNodes(r){let{fontStyle:l,fontWeight:m,fontFamily:D,fontSize:L,color:B}=this.properties.label,H=this.isLabelEnabled();r.labelSelection.each((U,X)=>{H&&(X!=null&&X.label)?(U.text=X.label.text,U.x=X.label.x,U.y=X.label.y,U.fontStyle=l,U.fontWeight=m,U.fontFamily=D,U.fontSize=L,U.fill=B,U.visible=!0):U.visible=!1})}initQuadTree(r){let{value:l}=this.contentGroup.children().next();l&&Yb(r,l.children())}pickNodeClosestDatum(r){return gf(this,r)}getTooltipContent(r){let{id:l,dataModel:m,processedData:D,axes:L,properties:B,ctx:{localeManager:H}}=this,{xKey:U,xName:X,yKey:Q,yName:ie,tooltip:ue}=B,be=L.x,ye=L.y;if(!m||(D==null?void 0:D.type)!=="grouped"||D.rawData.length===0||!be||!ye)return;let Me=r.datumIndex,{aggregation:Ie,datumIndices:Oe,keys:Re}=D.groups[Me],[[Be,Ue]=[0,0]]=Ie,Ne=Oe.length,Qe=Re,[nt,rt]=Qe,ut=Be+Ue,Mt={data:Oe.map(_t=>D.rawData[_t]),aggregatedValue:ut,frequency:Ne,domain:Qe},Tt=[{label:X,fallbackLabel:U,value:`${be.formatDatum(nt)} - ${be.formatDatum(rt)}`},{label:H.t("seriesHistogramTooltipFrequency"),value:ye.formatDatum(Ne)}];if(Q!=null){let _t;switch(B.aggregation){case"sum":_t=H.t("seriesHistogramTooltipSum",{yName:ie});break;case"mean":_t=H.t("seriesHistogramTooltipMean",{yName:ie});break;case"count":_t=H.t("seriesHistogramTooltipCount",{yName:ie});break}Tt.push({label:_t,value:ye.formatDatum(ut)})}return ue.formatTooltip({symbol:this.legendItemSymbol(),data:Tt},ge({seriesId:l,datum:Mt,title:ie,xKey:U,xName:X,yKey:Q,yName:ie,xRange:[nt,rt],frequency:Ne},this.getItemBaseStyle(!1)))}legendItemSymbol(){let{fill:r,fillOpacity:l,stroke:m,strokeWidth:D,strokeOpacity:L}=this.properties;return{marker:{fill:r!=null?r:"rgba(0, 0, 0, 0)",stroke:m!=null?m:"rgba(0, 0, 0, 0)",fillOpacity:l,strokeOpacity:L,strokeWidth:D}}}getLegendData(r){var U;if(r!=="category")return[];let{id:l,ctx:{legendManager:m},visible:D}=this,{xKey:L,yName:B,showInLegend:H}=this.properties;return[{legendType:"category",id:l,itemId:L,seriesId:l,enabled:D&&m.getItemEnabled({seriesId:l,itemId:L}),label:{text:(U=B!=null?B:L)!=null?U:"Frequency"},symbol:this.legendItemSymbol(),hideInLegend:!H}]}animateEmptyUpdateReady({datumSelection:r,labelSelection:l}){let m=Hv(pf(!0,this.axes,"normal"));ri(this.id,"datums",this.ctx.animationManager,[r],m),$n(this,"labels",this.ctx.animationManager,l)}animateWaitingUpdateReady(r){var D,L,B;let l=(B=(L=(D=this.processedData)==null?void 0:D.reduced)==null?void 0:L.diff)==null?void 0:B[this.id],m=Hv(pf(!0,this.axes,"normal"));ri(this.id,"datums",this.ctx.animationManager,[r.datumSelection],m,(H,U)=>ws(U.domain),l),$n(this,"labels",this.ctx.animationManager,r.labelSelection)}isLabelEnabled(){return this.properties.label.enabled}computeFocusBounds({datumIndex:r}){var l;return yk((l=this.contextNodeData)==null?void 0:l.nodeData[r])}};D1.className="HistogramSeries",D1.type="histogram";var UT={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"histogram",moduleFactory:r=>new D1(r),tooltipDefaults:{range:"exact"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{strokeWidth:1,fillOpacity:1,strokeOpacity:1,lineDash:[0],lineDashOffset:0,label:{enabled:!1,fontSize:12,fontFamily:ko,color:Wc},shadow:{enabled:!1,color:pg,xOffset:3,yOffset:3,blur:5}}},paletteFactory:({takeColors:r})=>{let{fills:[l],strokes:[m]}=r(1);return{fill:l,stroke:m}}},Rr=class extends Cp{constructor(){super(...arguments),this.stroke="#874349",this.strokeWidth=2,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.interpolation=new pu,this.marker=new Kc,this.label=new So,this.tooltip=new Tl,this.connectMissingData=!1,this.sparklineMode=!1}};T([je(Qt)],Rr.prototype,"xKey",2),T([je(Qt)],Rr.prototype,"yKey",2),T([je(Qt,{optional:!0})],Rr.prototype,"xName",2),T([je(Qt,{optional:!0})],Rr.prototype,"yName",2),T([je(Qt,{optional:!0})],Rr.prototype,"yFilterKey",2),T([je(Qt,{optional:!0})],Rr.prototype,"stackGroup",2),T([je(bi,{optional:!0})],Rr.prototype,"normalizedTo",2),T([je(Qt,{optional:!0})],Rr.prototype,"title",2),T([je(In)],Rr.prototype,"stroke",2),T([je(bi)],Rr.prototype,"strokeWidth",2),T([je(oa)],Rr.prototype,"strokeOpacity",2),T([je(bo)],Rr.prototype,"lineDash",2),T([je(bi)],Rr.prototype,"lineDashOffset",2),T([je(Si)],Rr.prototype,"interpolation",2),T([je(Si)],Rr.prototype,"marker",2),T([je(Si)],Rr.prototype,"label",2),T([je(Si)],Rr.prototype,"tooltip",2),T([je(Ri)],Rr.prototype,"connectMissingData",2),T([je(Ri)],Rr.prototype,"sparklineMode",2);var kL=.25,OS=class extends Hm{constructor(r){super({moduleCtx:r,directionKeys:lg,directionNames:bp,hasMarkers:!0,pickModes:[2,1,0],markerSelectionGarbageCollection:!1,animationResetFns:{path:hk({getVisible:()=>this.visible,getOpacity:()=>this.getOpacity()}),label:bg,marker:(l,m)=>ge(ge({},Kb(l)),qb(l,m))}}),this.clipFocusBox=!1,this.properties=new Rr,this.dataAggregationFilters=void 0}get pickModeAxis(){return this.properties.sparklineMode?"main":"main-category"}async processData(r){var Ne,Qe;if(this.data==null||!this.properties.isValid())return;let{data:l,visible:m,seriesGrouping:{groupIndex:D=this.id,stackCount:L=1}={}}=this,{xKey:B,yKey:H,yFilterKey:U,connectMissingData:X,normalizedTo:Q}=this.properties,ie=!this.ctx.animationManager.isSkipped(),ue=(Ne=this.axes.x)==null?void 0:Ne.scale,be=(Qe=this.axes.y)==null?void 0:Qe.scale,{isContinuousX:ye,xScaleType:Me,yScaleType:Ie}=this.getScaleInformation({xScale:ue,yScale:be}),Oe={invalidValue:null};X&&L>1&&(Oe.invalidValue=0,m||(Oe.forceValue=0));let Re=[];if(ye||Re.push(Xs(B,Me,{id:"xKey"})),Re.push(kn(B,Me,{id:"xValue"}),kn(H,Ie,He(ge({id:"yValueRaw"},Oe),{invalidValue:void 0}))),U!=null&&Re.push(kn(U,Ie,{id:"yFilterRaw"})),L>1){let nt=[`line-stack-${D}-yValues`,`line-stack-${D}-yValues-trailing`,`line-stack-${D}-yValues-marker`];Re.push(...wp(H,"window","current",He(ge({id:"yValueEnd"},Oe),{groupId:nt[0]}),Ie),...wp(H,"window-trailing","current",He(ge({id:"yValueStart"},Oe),{groupId:nt[1]}),Ie),...wp(H,"normal","current",He(ge({id:"yValueCumulative"},Oe),{groupId:nt[2]}),Ie)),cr(Q)&&Re.push(Tb([nt[0],nt[1],nt[2]],Q,"range"))}ie&&(Re.push(qm(ye?["xValue"]:void 0)),this.processedData&&Re.push(Zm(this.id,this.processedData)));let{dataModel:Be,processedData:Ue}=await this.requestDataModel(r,l,{props:Re});this.dataAggregationFilters=this.aggregateData(Be,Ue),this.animationState.transition("updateData")}getSeriesDomain(r){var L,B;let{dataModel:l,processedData:m}=this;if(!l||!(m!=null&&m.rawData.length))return[];let D=l.resolveProcessedDataDefById(this,"xValue");if(r==="x"){let H=l.getDomain(this,"xValue","value",m);return(D==null?void 0:D.def.type)==="value"&&D.def.valueType==="category"?H:Al(Xg(H))}else{let U=((B=(L=this.seriesGrouping)==null?void 0:L.stackCount)!=null?B:1)>1?l.getDomain(this,"yValueEnd","value",m):l.getDomain(this,"yValueRaw","value",m);return Al(U)}}visibleRangeIndices(r,l){var H;let{dataModel:m,processedData:D}=this;if(!m||!D)return[0,0];let L=this.axes.x.scale,B=m.resolveColumnById(this,"xValue",D);return Q0((H=l==null?void 0:l.length)!=null?H:B.length,r,U=>{var Q;let X=L.convert(B[(Q=l==null?void 0:l[U])!=null?Q:U]);return[X,X]})}getSeriesRange(r,l){let{dataModel:m,processedData:D}=this;if(!m||!D)return[NaN,NaN];let[L,B]=this.visibleRangeIndices(l);return m.getDomainBetweenRange(this,["yValueRaw"],[L,B],D)}aggregateData(r,l){}createNodeData(){var Wn,$i,Pi,en,Mn,Li,Xi;let{dataModel:r,processedData:l,axes:m,dataAggregationFilters:D}=this,L=m.x,B=m.y;if(!r||!l||l.rawData.length===0||!L||!B)return;let{xKey:H,yKey:U,yFilterKey:X,xName:Q,yName:ie,marker:ue,label:be,connectMissingData:ye,interpolation:Me,legendItemName:Ie}=this.properties,Oe=(($i=(Wn=this.seriesGrouping)==null?void 0:Wn.stackCount)!=null?$i:1)>1,Re=L.scale,Be=B.scale,Ue=((Pi=Re.bandwidth)!=null?Pi:0)/2,Ne=((en=Be.bandwidth)!=null?en:0)/2,Qe=ue.enabled?ue.size:0,{rawData:nt}=l,rt=r.resolveColumnById(this,"xValue",l),ut=r.resolveColumnById(this,"yValueRaw",l),Mt=Oe?r.resolveColumnById(this,"yValueEnd",l):void 0,Tt=Oe?r.resolveColumnById(this,"yValueCumulative",l):ut,_t=X!=null?r.resolveColumnById(this,"yFilterRaw",l):void 0,Kt=Ti=>Re.convert(rt[Ti])+Ue,gi=Ti=>Be.convert(Tt[Ti])+Ne,Ci={lengthRatioMultiplier:this.properties.marker.getDiameter(),lengthMax:1/0},xi=[],li,Bi=Ti=>{let Sn=nt[Ti],Vi=rt[Ti],Ja=ut[Ti],oo=Mt==null?void 0:Mt[Ti],Ba=_t==null?void 0:_t[Ti],Ca=Kt(Ti),lr=gi(Ti);if(!Number.isFinite(Ca))return;if(Ja!=null){let Nd=be.enabled?this.getLabelText(be,{value:Ja,datum:Sn,xKey:H,yKey:U,xName:Q,yName:ie,legendItemName:Ie}):void 0;xi.push({series:this,datum:Sn,datumIndex:Ti,yKey:U,xKey:H,point:{x:Ca,y:lr,size:Qe},midPoint:{x:Ca,y:lr},cumulativeValue:oo,yValue:Ja,xValue:Vi,capDefaults:Ci,labelText:Nd,selected:Ba})}if(li==null)return;let Yo=li[li.length-1];if(Ja!=null){let Nd={point:{x:Ca,y:lr},xDatum:Vi,yDatum:Ja};Array.isArray(Yo)?Yo.push(Nd):Yo!=null?(Yo.skip+=1,li.push([Nd])):li.push([Nd])}else ye||(Array.isArray(Yo)||Yo==null?li.push({skip:0}):Yo.skip+=1)},[Fi,hn]=Re.range,ji=hn-Fi,An=D==null?void 0:D.find(Ti=>Ti.maxRange>ji),Zi=An==null?void 0:An.indices,[Ki,Dn]=this.visibleRangeIndices(L.range,Zi);Ki=Math.max(Ki-1,0),Dn=Math.min(Dn+1,(Mn=Zi==null?void 0:Zi.length)!=null?Mn:rt.length),l.rawData.length<1e3&&(Ki=0,Dn=l.rawData.length),Zi==null&&(li=[]);for(let Ti=Ki;Ti<Dn;Ti+=1)Bi((Li=Zi==null?void 0:Zi[Ti])!=null?Li:Ti);let Qa=li==null?void 0:li.flatMap(Ti=>Array.isArray(Ti)?Ll(Ti,Me):[]),Kn=Qa!=null?{itemId:U,spans:Qa}:void 0,pn=(Xi=_t==null?void 0:_t.some((Ti,Sn)=>Ti===ut[Sn]))!=null?Xi:!1;return{itemId:U,nodeData:xi,labelData:xi,strokeData:Kn,scales:this.calculateScaling(),visible:this.visible,crossFiltering:pn}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}markerFactory(){let{shape:r}=this.properties.marker,l=Cd(r);return new l}updatePathNodes(r){var H;let{paths:[l],opacity:m,visible:D,animationEnabled:L}=r,B=((H=this.contextNodeData)==null?void 0:H.crossFiltering)===!0;l.setProperties({fill:void 0,lineJoin:"round",pointerEvents:1,opacity:m,stroke:this.properties.stroke,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.properties.strokeOpacity*(B?kL:1),lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset}),L||(l.visible=D),gk(this,l)}updateMarkerSelection(r){var L;let{nodeData:l}=r,{markerSelection:m}=r;return l=this.properties.marker.enabled||((L=this.contextNodeData)==null?void 0:L.crossFiltering)===!0?l:[],this.properties.marker.isDirty()&&(m.clear(),m.cleanup()),m.update(l,void 0,B=>ws(B.xValue))}updateMarkerNodes(r){let{markerSelection:l,isHighlight:m}=r,{xKey:D,yKey:L,stroke:B,strokeWidth:H,strokeOpacity:U,marker:X,highlightStyle:Q}=this.properties,ie=this.getSeriesDomain("x"),ue=this.getSeriesDomain("y"),be=mn(m&&Q.item,X.getStyle(),{stroke:B,strokeWidth:H,strokeOpacity:U}),ye=this.ctx.animationManager.isSkipped();l.each((Me,Ie)=>{this.updateMarkerStyle(Me,X,He(ge({},fp(Ie,D,L,ie,ue)),{highlighted:m}),be,{applyTranslation:ye,selected:Ie.selected})}),m||X.markClean()}updateLabelSelection(r){return r.labelSelection.update(this.isLabelEnabled()?r.labelData:[])}updateLabelNodes(r){let{enabled:l,fontStyle:m,fontWeight:D,fontSize:L,fontFamily:B,color:H}=this.properties.label;r.labelSelection.each((U,X)=>{l&&(X!=null&&X.labelText)?(U.fontStyle=m,U.fontWeight=D,U.fontSize=L,U.fontFamily=B,U.textAlign="center",U.textBaseline="bottom",U.text=X.labelText,U.x=X.point.x,U.y=X.point.y-10,U.fill=H,U.visible=!0):U.visible=!1})}getTooltipContent(r){let{id:l,dataModel:m,processedData:D,axes:L,properties:B}=this,{xKey:H,xName:U,yKey:X,yName:Q,tooltip:ie}=B,ue=L.x,be=L.y;if(!m||!D||D.rawData.length===0||!ue||!be)return;let{datumIndex:ye}=r,Me=D.rawData[ye],Ie=m.resolveColumnById(this,"xValue",D)[ye],Oe=m.resolveColumnById(this,"yValueRaw",D)[ye];if(Ie!=null)return ie.formatTooltip({heading:ue.formatDatum(Ie),symbol:this.legendItemSymbol(),data:[{label:Q,fallbackLabel:X,value:be.formatDatum(Oe)}]},ge({seriesId:l,datum:Me,title:Q,xKey:H,xName:U,yKey:X,yName:Q},this.getModuleTooltipParams()))}legendItemSymbol(){var H,U,X,Q,ie,ue,be;let r="rgba(0, 0, 0, 0)",{stroke:l,strokeOpacity:m,strokeWidth:D,lineDash:L,marker:B}=this.properties;return{marker:{shape:B.shape,fill:(H=B.fill)!=null?H:r,stroke:(X=(U=B.stroke)!=null?U:l)!=null?X:r,fillOpacity:(Q=B.fillOpacity)!=null?Q:1,strokeOpacity:(ue=(ie=B.strokeOpacity)!=null?ie:m)!=null?ue:1,strokeWidth:(be=B.strokeWidth)!=null?be:0,enabled:B.enabled},line:{stroke:l!=null?l:r,strokeOpacity:m,strokeWidth:D,lineDash:L}}}getLegendData(r){var Q,ie;if(!(this.properties.isValid()&&r==="category"))return[];let{id:l,ctx:{legendManager:m},visible:D}=this,{yKey:L,yName:B,title:H,legendItemName:U,showInLegend:X}=this.properties;return[{legendType:"category",id:l,itemId:L,legendItemName:U,seriesId:l,enabled:D&&m.getItemEnabled({seriesId:l,itemId:L}),label:{text:(ie=(Q=U!=null?U:H)!=null?Q:B)!=null?ie:L},symbol:this.legendItemSymbol(),hideInLegend:!X}]}updatePaths(r){this.updateLinePaths(r.paths,r.contextData)}plotNodeDataPoints(r,l){if(l.length===0)return;let m=l[0].point;r.moveTo(m.x,m.y);for(let D=1;D<l.length;D+=1){let{x:L,y:B}=l[D].point;r.lineTo(L,B)}}updateLinePaths(r,l){var L;let m=(L=l.strokeData)==null?void 0:L.spans,[D]=r;D.path.clear(),m!=null?ik(D,m):this.plotNodeDataPoints(D.path,l.nodeData),D.markDirty()}animateEmptyUpdateReady(r){let{markerSelection:l,labelSelection:m,annotationSelections:D,contextData:L,paths:B}=r,{animationManager:H}=this.ctx;this.updateLinePaths(B,L),jv(this,H,...B),Co([l],qb),Ep(this,H,l),$n(this,"labels",H,m),$n(this,"annotations",H,...D)}animateReadyResize(r){let{contextData:l,paths:m}=r;this.updateLinePaths(m,l),super.animateReadyResize(r)}animateWaitingUpdateReady(r){var be,ye,Me;let{animationManager:l}=this.ctx,{markerSelection:m,labelSelection:D,annotationSelections:L,contextData:B,paths:H,previousContextData:U}=r,[X]=H;this.resetMarkerAnimation(r),this.resetLabelAnimation(r);let Q=()=>{this.resetPathAnimation(r),this.updateLinePaths(H,B)},ie=()=>{l.skipCurrentBatch(),Q()};if(B==null||U==null){Q(),Ub(this,l,"added",m),dk(this,"path_properties",l,"add",X),$n(this,"labels",l,D),$n(this,"annotations",l,...L);return}if(B.crossFiltering!==U.crossFiltering){ie();return}let ue=BT(B,U,(Me=(ye=(be=this.processedData)==null?void 0:be.reduced)==null?void 0:ye.diff)==null?void 0:Me[this.id]);if(ue===void 0){ie();return}else if(ue.status==="no-op")return;ri(this.id,"path_properties",l,[X],ue.stroke.pathProperties),ue.status==="added"?this.updateLinePaths(H,B):ue.status==="removed"?this.updateLinePaths(H,U):CS(this.id,"path_update",l,[X],ue.stroke.path),ue.hasMotion&&(Ub(this,l,void 0,m),$n(this,"labels",l,D),$n(this,"annotations",l,...L))}isLabelEnabled(){return this.properties.label.enabled}getBandScalePadding(){return{inner:1,outer:.1}}nodeFactory(){return new Ji}getFormattedMarkerStyle(r){let{xKey:l,yKey:m}=this.properties,D=this.getSeriesDomain("x"),L=this.getSeriesDomain("y");return this.getMarkerStyle(this.properties.marker,He(ge({},fp(r,l,m,D,L)),{highlighted:!0}))}computeFocusBounds(r){return Sg(this,r)}};OS.className="LineSeries",OS.type="line";var wk={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"line",moduleFactory:r=>new OS(r),stackable:!0,tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"left"},{type:"category",position:"bottom"}],themeTemplate:{series:{tooltip:{position:{type:"node"}},strokeWidth:2,strokeOpacity:1,lineDash:[0],lineDashOffset:0,interpolation:{type:"linear",tension:1,position:"end"},marker:{shape:"circle",size:7,strokeWidth:0},label:{enabled:!1,fontSize:12,fontFamily:ko,color:po},errorBar:{cap:{lengthRatio:1}}}},paletteFactory:r=>{let{marker:l}=bS(r);return{stroke:l.fill,marker:l}}},E1=class extends So{constructor(){super(...arguments),this.placement="top"}};T([je(jh)],E1.prototype,"placement",2);var Fo=class extends Cp{constructor(){super(...arguments),this.colorRange=["#ffff00","#00ff00","#0000ff"],this.label=new E1,this.tooltip=new Tl,this.marker=new Kc}};T([je(Qt)],Fo.prototype,"xKey",2),T([je(Qt)],Fo.prototype,"yKey",2),T([je(Qt,{optional:!0})],Fo.prototype,"labelKey",2),T([je(Qt,{optional:!0})],Fo.prototype,"colorKey",2),T([je(Qt,{optional:!0})],Fo.prototype,"xFilterKey",2),T([je(Qt,{optional:!0})],Fo.prototype,"yFilterKey",2),T([je(Qt,{optional:!0})],Fo.prototype,"xName",2),T([je(Qt,{optional:!0})],Fo.prototype,"yName",2),T([je(Qt,{optional:!0})],Fo.prototype,"labelName",2),T([je(Qt,{optional:!0})],Fo.prototype,"colorName",2),T([je(Jl,{optional:!0})],Fo.prototype,"colorDomain",2),T([je(Ns)],Fo.prototype,"colorRange",2),T([je(Qt,{optional:!0})],Fo.prototype,"title",2),T([Ai("marker.shape")],Fo.prototype,"shape",2),T([Ai("marker.size")],Fo.prototype,"size",2),T([Ai("marker.fill")],Fo.prototype,"fill",2),T([Ai("marker.fillOpacity")],Fo.prototype,"fillOpacity",2),T([Ai("marker.stroke")],Fo.prototype,"stroke",2),T([Ai("marker.strokeWidth")],Fo.prototype,"strokeWidth",2),T([Ai("marker.strokeOpacity")],Fo.prototype,"strokeOpacity",2),T([Ai("marker.itemStyler",{optional:!0})],Fo.prototype,"itemStyler",2),T([je(Si)],Fo.prototype,"label",2),T([je(Si)],Fo.prototype,"tooltip",2);var xk=class extends Hm{constructor(r){super({moduleCtx:r,directionKeys:lg,directionNames:bp,pickModes:[2,1,0],pathsPerSeries:[],hasMarkers:!0,markerSelectionGarbageCollection:!1,animationResetFns:{marker:Kb,label:bg},usesPlacedLabels:!0}),this.clipFocusBox=!1,this.properties=new Fo,this.colorScale=new ei}get pickModeAxis(){return"main-category"}async processData(r){var Oe,Re,Be;if(!this.properties.isValid()||this.data==null||!this.visible)return;let l=(Oe=this.axes.x)==null?void 0:Oe.scale,m=(Re=this.axes.y)==null?void 0:Re.scale,{xScaleType:D,yScaleType:L}=this.getScaleInformation({xScale:l,yScale:m}),B=this.colorScale.type,{xKey:H,yKey:U,xFilterKey:X,yFilterKey:Q,labelKey:ie,colorKey:ue,colorDomain:be,colorRange:ye}=this.properties,{dataModel:Me,processedData:Ie}=await this.requestDataModel(r,this.data,{props:[kn(H,D,{id:"xValue"}),kn(U,L,{id:"yValue"}),...X!=null?[kn(X,D,{id:"xFilterValue"})]:[],...Q!=null?[kn(Q,L,{id:"yFilterValue"})]:[],...ue?[kn(ue,B,{id:"colorValue"})]:[],...ie?[kn(ie,"band",{id:"labelValue"})]:[]]});if(ue){let Ue=Me.resolveProcessedDataIndexById(this,"colorValue");this.colorScale.domain=(Be=be!=null?be:Ie.domain.values[Ue])!=null?Be:[],this.colorScale.range=ye,this.colorScale.update()}this.animationState.transition("updateData")}getSeriesDomain(r){let{dataModel:l,processedData:m}=this;if(!m||!l)return[];let D=r==="x"?"xValue":"yValue",L=l.resolveProcessedDataDefById(this,D),B=l.getDomain(this,D,"value",m);return(L==null?void 0:L.def.type)==="value"&&(L==null?void 0:L.def.valueType)==="category"?B:Al(Xg(B))}getSeriesRange(r,l){return[NaN,NaN]}createNodeData(){var Bi,Fi;let{axes:r,dataModel:l,processedData:m,colorScale:D,visible:L}=this,{xKey:B,yKey:H,xFilterKey:U,yFilterKey:X,labelKey:Q,colorKey:ie,xName:ue,yName:be,labelName:ye,marker:Me,label:Ie}=this.properties,{placement:Oe}=Ie,Re=Cd(Me.shape),Be=r.x,Ue=r.y;if(!(l&&(m!=null&&m.rawData.length)&&L&&Be&&Ue))return;let Ne=l.resolveColumnById(this,"xValue",m),Qe=l.resolveColumnById(this,"yValue",m),nt=ie!=null?l.resolveColumnById(this,"colorValue",m):void 0,rt=Q!=null?l.resolveColumnById(this,"labelValue",m):void 0,ut=U!=null?l.resolveColumnById(this,"xFilterValue",m):void 0,Mt=X!=null?l.resolveColumnById(this,"yFilterValue",m):void 0,Tt=Be.scale,_t=Ue.scale,Kt=((Bi=Tt.bandwidth)!=null?Bi:0)/2,gi=((Fi=_t.bandwidth)!=null?Fi:0)/2,Ci=[],xi=Ie.getFont(),li=Wr.getMeasurer({font:xi});return m.rawData.forEach((hn,ji)=>{let An=Ne[ji],Zi=Qe[ji],Ki=Tt.convert(An)+Kt,Dn=_t.convert(Zi)+gi,Qa=ut!=null&&Mt!=null?ut[ji]===An&&Mt[ji]===Zi:void 0,Kn=this.getLabelText(Ie,{value:rt!=null?rt==null?void 0:rt[ji]:Zi,datum:hn,xKey:B,yKey:H,labelKey:Q,xName:ue,yName:be,labelName:ye}),pn=li.measureText(Kn),Wn=nt!=null?D.convert(nt[ji]):void 0;Ci.push({series:this,itemId:H,yKey:H,xKey:B,datum:hn,datumIndex:ji,xValue:An,yValue:Zi,capDefaults:{lengthRatioMultiplier:Me.getDiameter(),lengthMax:1/0},point:{x:Ki,y:Dn,size:Me.size},midPoint:{x:Ki,y:Dn},fill:Wn,label:ge({text:Kn},pn),marker:Re,placement:Oe,selected:Qa})}),{itemId:H,nodeData:Ci,labelData:Ci,scales:this.calculateScaling(),visible:this.visible}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}getLabelData(){var r,l;return this.isLabelEnabled()?(l=(r=this.contextNodeData)==null?void 0:r.labelData)!=null?l:[]:[]}markerFactory(){let{shape:r}=this.properties.marker,l=Cd(r);return new l}updateMarkerSelection(r){let{nodeData:l,markerSelection:m}=r;return this.properties.marker.isDirty()&&(m.clear(),m.cleanup()),m.update(this.properties.marker.enabled?l:[])}getMarkerItemBaseStyle(r){var L,B,H,U,X;let{properties:l}=this,{marker:m}=l,D=r?l.highlightStyle.item:void 0;return{fill:(L=D==null?void 0:D.fill)!=null?L:m.fill,fillOpacity:(B=D==null?void 0:D.fillOpacity)!=null?B:m.fillOpacity,stroke:(H=D==null?void 0:D.stroke)!=null?H:m.stroke,strokeWidth:(U=D==null?void 0:D.strokeWidth)!=null?U:m.strokeWidth,strokeOpacity:(X=D==null?void 0:D.strokeOpacity)!=null?X:m.strokeOpacity}}getMarkerItemStyleOverrides(r,l,m,D){let{id:L,properties:B}=this,{xKey:H,yKey:U,labelKey:X,marker:Q}=B,{itemStyler:ie}=Q;if(ie!=null)return this.cachedDatumCallback(ws(r,D?"highlight":"node"),()=>ie(ge({seriesId:L,datum:l,xKey:H,yKey:U,labelKey:X,highlighted:D},m)))}updateMarkerNodes(r){let{markerSelection:l,isHighlight:m}=r,{xKey:D,yKey:L,labelKey:B,marker:H,highlightStyle:U}=this.properties,X=mn(m&&U.item,H.getStyle());l.each((Q,ie)=>{this.updateMarkerStyle(Q,H,{datum:ie,highlighted:m,xKey:D,yKey:L,labelKey:B},X,{selected:ie.selected})}),m||H.markClean()}updatePlacedLabelData(r){this.labelSelection.update(r.map(l=>He(ge({},l.datum),{point:{x:l.x,y:l.y,size:l.datum.point.size}})),l=>{l.pointerEvents=1}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(r){let{label:l}=this.properties;r.labelSelection.each((m,D)=>{var L,B,H,U;m.text=D.label.text,m.fill=l.color,m.x=(B=(L=D.point)==null?void 0:L.x)!=null?B:0,m.y=(U=(H=D.point)==null?void 0:H.y)!=null?U:0,m.fontStyle=l.fontStyle,m.fontWeight=l.fontWeight,m.fontSize=l.fontSize,m.fontFamily=l.fontFamily,m.textAlign="left",m.textBaseline="top"})}getTooltipContent(r){let{id:l,dataModel:m,processedData:D,axes:L,properties:B}=this,{xKey:H,xName:U,yKey:X,yName:Q,labelKey:ie,labelName:ue,title:be,tooltip:ye}=B,Me=L.x,Ie=L.y;if(!m||!D||D.rawData.length===0||!Me||!Ie)return;let{datumIndex:Oe}=r,Re=D.rawData[Oe],Be=m.resolveColumnById(this,"xValue",D)[Oe],Ue=m.resolveColumnById(this,"yValue",D)[Oe];if(Be==null)return;let Ne=this.getMarkerItemBaseStyle(!1);return Object.assign(Ne,this.getMarkerItemStyleOverrides(String(Oe),Re,Ne,!1)),ye.formatTooltip({symbol:this.legendItemSymbol(),title:be,data:[{label:U,fallbackLabel:H,value:Me.formatDatum(Be)},{label:Q,fallbackLabel:X,value:Ie.formatDatum(Ue)}]},ge(ge({seriesId:l,datum:Re,title:Q,xKey:H,xName:U,yKey:X,yName:Q,labelKey:ie,labelName:ue},Ne),this.getModuleTooltipParams()))}legendItemSymbol(){let{shape:r,fill:l,stroke:m,fillOpacity:D,strokeOpacity:L,strokeWidth:B}=this.properties.marker;return{marker:{shape:r,fill:l!=null?l:"rgba(0, 0, 0, 0)",stroke:m!=null?m:"rgba(0, 0, 0, 0)",fillOpacity:D!=null?D:1,strokeOpacity:L!=null?L:1,strokeWidth:B!=null?B:0}}}getLegendData(r){var X;if(!this.properties.isValid()||r!=="category")return[];let{yKey:l,yName:m,title:D,showInLegend:L}=this.properties,{id:B,ctx:{legendManager:H},visible:U}=this;return[{legendType:"category",id:B,itemId:l,seriesId:B,enabled:U&&H.getItemEnabled({seriesId:B,itemId:l}),label:{text:(X=D!=null?D:m)!=null?X:l},symbol:this.legendItemSymbol(),hideInLegend:!L}]}animateEmptyUpdateReady(r){let{markerSelection:l,labelSelection:m,annotationSelections:D}=r;hf(this,this.ctx.animationManager,l),$n(this,"labels",this.ctx.animationManager,m),$n(this,"annotations",this.ctx.animationManager,...D)}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new Ji}getFormattedMarkerStyle(r){let{xKey:l,yKey:m,labelKey:D}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:r,xKey:l,yKey:m,labelKey:D,highlighted:!0})}computeFocusBounds(r){return Sg(this,r)}};xk.className="ScatterSeries",xk.type="scatter";var KT={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"scatter",moduleFactory:r=>new xk(r),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{shape:"circle",size:7,fillOpacity:.8,tooltip:{position:{type:"node"}},label:{enabled:!1,fontSize:12,fontFamily:ko,color:po},errorBar:{cap:{lengthRatio:1}}}},paletteFactory:Ap},qT=class e6{constructor(l,m,D,L){this.startAngle=l,this.endAngle=m,this.innerRadius=D,this.outerRadius=L}clone(){let{startAngle:l,endAngle:m,innerRadius:D,outerRadius:L}=this;return new e6(l,m,D,L)}equals(l){return this.startAngle===l.startAngle&&this.endAngle===l.endAngle&&this.innerRadius===l.innerRadius&&this.outerRadius===l.outerRadius}[We](l,m){return new e6(this.startAngle*(1-m)+l.startAngle*m,this.endAngle*(1-m)+l.endAngle*m,this.innerRadius*(1-m)+l.innerRadius*m,this.outerRadius*(1-m)+l.outerRadius*m)}};function Mk({startAngle:r,endAngle:l,innerRadius:m,outerRadius:D}){let L=1/0,B=1/0,H=-1/0,U=-1/0,X=(Q,ie)=>{L=Math.min(Q,L),B=Math.min(ie,B),H=Math.max(Q,H),U=Math.max(ie,U)};return X(m*Math.cos(r),m*Math.sin(r)),X(m*Math.cos(l),m*Math.sin(l)),X(D*Math.cos(r),D*Math.sin(r)),X(D*Math.cos(l),D*Math.sin(l)),zn(0,r,l)&&X(D,0),zn(Math.PI*.5,r,l)&&X(0,D),zn(Math.PI,r,l)&&X(-D,0),zn(Math.PI*1.5,r,l)&&X(0,-D),new ft(L,B,H-L,U-B)}function kk(r,l,m){let D=Math.sqrt(Math.pow(r,2)+Math.pow(l,2)),{innerRadius:L,outerRadius:B}=m;if(m.startAngle===m.endAngle||D<Math.min(L,B)||D>Math.max(L,B))return!1;let H=Uh(m.startAngle),U=Uh(m.endAngle),X=Math.atan2(l,r);return H<U?X<=U&&X>=H:X<=U&&X>=-Math.PI||X>=H&&X<=Math.PI}function Ed(r,l){let{startAngle:m,endAngle:D,innerRadius:L,outerRadius:B}=l,H={x:B*Math.cos(m),y:B*Math.sin(m)},U={x:B*Math.cos(D),y:B*Math.sin(D)},X=L===0?{x:0,y:0}:{x:L*Math.cos(m),y:L*Math.sin(m)},Q=L===0?{x:0,y:0}:{x:L*Math.cos(D),y:L*Math.sin(D)};return bd(r.start.x,r.start.y,r.end.x,r.end.y,H.x,H.y,X.x,X.y)||bd(r.start.x,r.start.y,r.end.x,r.end.y,U.x,U.y,Q.x,Q.y)||Ya(0,0,B,m,D,!0,r.start.x,r.start.y,r.end.x,r.end.y)}function FS(r,l){let m={x:r.x,y:r.y},D={x:r.x+r.width,y:r.y},L={x:r.x,y:r.y+r.height},B={x:r.x+r.width,y:r.y+r.height};return Ed({start:m,end:D},l)||Ed({start:L,end:B},l)}function Cr(r,l,m,D){if(m===0&&D===0)return 0;if(Math.asin(Math.abs(1*m)/(r+1*m))+Math.asin(Math.abs(1*D)/(r+1*D))-l<0)return 1;let B=0,H=1;for(let U=0;U<8;U+=1){let X=(B+H)/2;Math.asin(Math.abs(X*m)/(r+X*m))+Math.asin(Math.abs(X*D)/(r+X*D))-l<0?B=X:H=X}return B}var Rp=1e-6;function Xr(r,l){return a0(r,l)<Rp?l:Nn(r-l)+l}function _S(r,l,m=0){let L=Math.abs(l-r)>=2*Math.PI?2*Math.PI:Nn(l-r);return r=Xr(r,m),l=r+L,{startAngle:r,endAngle:l}}function NS(r,l,m,D,L,B){let H=Math.sin(B),U=Math.cos(B),X=r**2+l**2-m**2,Q,ie,ue,be;if(U>.5){let Ue=H/U,Ne=1+Ue**2,Qe=-2*(r+l*Ue),nt=Qe**2-4*Ne*X;if(nt<0)return;let rt=(-Qe+Math.sqrt(nt))/(2*Ne),ut=(-Qe-Math.sqrt(nt))/(2*Ne);Q=rt,ie=rt*Ue,ue=ut,be=ut*Ue}else{let Ue=U/H,Ne=1+Ue**2,Qe=-2*(l+r*Ue),nt=Qe**2-4*Ne*X;if(nt<0)return;let rt=(-Qe+Math.sqrt(nt))/(2*Ne),ut=(-Qe-Math.sqrt(nt))/(2*Ne);Q=rt*Ue,ie=rt,ue=ut*Ue,be=ut}let ye=U,Me=H,Ie=Q*ye+ie*Me,Oe=ue*ye+be*Me,Re=Ie>0?Xr(Math.atan2(ie-l,Q-r),D):NaN,Be=Oe>0?Xr(Math.atan2(be-l,ue-r),D):NaN;if(Re>=D&&Re<=L)return Re;if(Be>=D&&Be<=L)return Be}function zS(r,l,m,D,L,B){let H=Math.hypot(r,l),U=(H**2-m**2+B**2)/(2*H),X=H-U,Q=Math.atan2(l,r),ie=Math.acos(-X/m),ue=Xr(Q+ie,D),be=Xr(Q-ie,D);if(ue>=D&&ue<=L)return ue;if(be>=D&&be<=L)return be}var Ak=class{constructor(r,l,m,D,L){this.cx=r,this.cy=l,this.r=m,this.a0=D,this.a1=L,this.a0>=this.a1&&(this.a0=NaN,this.a1=NaN)}isValid(){return Number.isFinite(this.a0)&&Number.isFinite(this.a1)}pointAt(r){return{x:this.cx+this.r*Math.cos(r),y:this.cy+this.r*Math.sin(r)}}clipStart(r){r==null||!this.isValid()||r<this.a0||(this.a0=r,(Number.isNaN(r)||this.a0>=this.a1)&&(this.a0=NaN,this.a1=NaN))}clipEnd(r){r==null||!this.isValid()||r>this.a1||(this.a1=r,(Number.isNaN(r)||this.a0>=this.a1)&&(this.a0=NaN,this.a1=NaN))}},Ms=class extends Dl{constructor(){super(...arguments),this.centerX=0,this.centerY=0,this.innerRadius=10,this.outerRadius=20,this.startAngle=0,this.endAngle=Math.PI*2,this.clipSector=void 0,this.concentricEdgeInset=0,this.radialEdgeInset=0,this.startOuterCornerRadius=0,this.endOuterCornerRadius=0,this.startInnerCornerRadius=0,this.endInnerCornerRadius=0}set inset(r){this.concentricEdgeInset=r,this.radialEdgeInset=r}set cornerRadius(r){this.startOuterCornerRadius=r,this.endOuterCornerRadius=r,this.startInnerCornerRadius=r,this.endInnerCornerRadius=r}computeBBox(){return Mk(this).translate(this.centerX,this.centerY)}normalizedRadii(){let{concentricEdgeInset:r}=this,{innerRadius:l,outerRadius:m}=this;return l=l>0?l+r:0,m=Math.max(m-r,0),{innerRadius:l,outerRadius:m}}normalizedClipSector(){let{clipSector:r}=this;if(r==null)return;let{startAngle:l,endAngle:m}=_S(this.startAngle,this.endAngle),{innerRadius:D,outerRadius:L}=this.normalizedRadii(),B=_S(r.startAngle,r.endAngle,l);return new qT(Math.max(l,B.startAngle),Math.min(m,B.endAngle),Math.max(D,r.innerRadius),Math.min(L,r.outerRadius))}getAngleOffset(r){return r>0?this.radialEdgeInset/r:0}arc(r,l,m,D,L,B,H,U){if(r<=0)return;let{startAngle:X,endAngle:Q}=_S(this.startAngle,this.endAngle),{innerRadius:ie,outerRadius:ue}=this.normalizedRadii(),be=this.normalizedClipSector();if(U&&ie<=0)return;let ye=U?this.getAngleOffset(ie+r):this.getAngleOffset(ue-r),Me=H?X+ye+l:Q-ye-l,Ie=U?ie+r:ue-r,Oe=Ie*Math.cos(Me),Re=Ie*Math.sin(Me);if(be!=null&&(!H&&!(Me>=X-1e-6&&Me<=be.endAngle-1e-6)||H&&!(Me>=be.startAngle+1e-6&&Me<=Q-1e-6)||U&&Ie<be.innerRadius-1e-6||!U&&Ie>be.outerRadius+1e-6))return;let Be=new Ak(Oe,Re,r,m,D);if(be!=null){U?(Be.clipStart(NS(Oe,Re,r,m,D,be.endAngle)),Be.clipEnd(NS(Oe,Re,r,m,D,be.startAngle))):(Be.clipStart(NS(Oe,Re,r,m,D,be.startAngle)),Be.clipEnd(NS(Oe,Re,r,m,D,be.endAngle)));let rt,ut;if(H?(rt=zS(Oe,Re,r,m,D,be.innerRadius),ut=zS(Oe,Re,r,m,D,be.outerRadius)):(rt=zS(Oe,Re,r,m,D,be.outerRadius),ut=zS(Oe,Re,r,m,D,be.innerRadius)),Be.clipStart(rt),Be.clipEnd(ut),rt!=null){let{x:Mt,y:Tt}=Be.pointAt(rt),_t=Xr(Math.atan2(Tt,Mt),X);H?B==null||B.clipStart(_t):L.clipEnd(_t)}if(ut!=null){let{x:Mt,y:Tt}=Be.pointAt(ut),_t=Xr(Math.atan2(Tt,Mt),X);H?L.clipStart(_t):B==null||B.clipEnd(_t)}}if(be!=null){let{x:rt,y:ut}=Be.pointAt((Be.a0+Be.a1)/2);if(!kk(rt,ut,be))return}let{x:Ue,y:Ne}=Be.pointAt(H===U?Be.a0:Be.a1),Qe=Xr(Math.atan2(Ne,Ue),X),nt=U?B:L;return H?nt==null||nt.clipStart(Qe):nt==null||nt.clipEnd(Qe),Be}updatePath(){var Wn,$i,Pi,en,Mn;let{path:l,centerX:m,centerY:D,concentricEdgeInset:L,radialEdgeInset:B}=this,{startOuterCornerRadius:H,endOuterCornerRadius:U,startInnerCornerRadius:X,endInnerCornerRadius:Q}=this,{startAngle:ie,endAngle:ue}=_S(this.startAngle,this.endAngle),{innerRadius:be,outerRadius:ye}=this.normalizedRadii(),Me=this.normalizedClipSector(),Ie=ue-ie,Oe=Ie>=2*Math.PI-1e-6;if(l.clear(),be===0&&ye===0||be>ye)return;if(((Wn=Me==null?void 0:Me.startAngle)!=null?Wn:ie)===(($i=Me==null?void 0:Me.endAngle)!=null?$i:ue))return;if(Oe&&this.clipSector==null&&H===0&&U===0&&X===0&&Q===0){l.moveTo(m+ye*Math.cos(ie),D+ye*Math.sin(ie)),l.arc(m,D,ye,ie,ue),be>L&&(l.moveTo(m+be*Math.cos(ue),D+be*Math.sin(ue)),l.arc(m,D,be,ue,ie,!0)),l.closePath();return}else if(this.clipSector==null&&Math.abs(be-ye)<1e-6){l.arc(m,D,ye,ie,ue,!1),l.arc(m,D,ye,ue,ie,!0),l.closePath();return}let Re=this.getAngleOffset(be),Be=this.getAngleOffset(ye);if(Ie<2*Be)return;let Ne=((Pi=Me==null?void 0:Me.innerRadius)!=null?Pi:be)>L,Qe=be<L||Ie<2*Re,nt=ye-be,rt=Math.max(H,X,U,Q),ut=rt>0?Math.min(nt/rt,1):1;H*=ut,U*=ut,X*=ut,Q*=ut;let Mt=Cr(ye,Ie-2*Be,-H,-U);if(H*=Mt,U*=Mt,!Qe&&Ne){let Li=Cr(be,Ie-2*Re,X,Q);X*=Li,Q*=Li}else X=0,Q=0;let Tt=Math.max(H+X,U+Q),_t=Tt>0?Math.min(nt/Tt,1):1;H*=_t,U*=_t,X*=_t,Q*=_t;let Kt=0,gi=0,Ci=H/(ye-H),xi=U/(ye-U);if(Ci>=0&&Ci<1-1e-6)Kt=Math.asin(Ci);else{Kt=Ie/2;let Li=ye/(1/Math.sin(Kt)+1);H=Math.min(Li,H)}if(xi>=0&&xi<1-1e-6)gi=Math.asin(xi);else{gi=Ie/2;let Li=ye/(1/Math.sin(gi)+1);U=Math.min(Li,U)}let li=Math.asin(X/(be+X)),Bi=Math.asin(Q/(be+Q)),Fi=(en=Me==null?void 0:Me.outerRadius)!=null?en:ye,hn=this.getAngleOffset(Fi),ji=new Ak(0,0,Fi,ie+hn,ue-hn),An=(Mn=Me==null?void 0:Me.innerRadius)!=null?Mn:be,Zi=this.getAngleOffset(An),Ki=Ne?new Ak(0,0,An,ie+Zi,ue-Zi):void 0;Me!=null&&(ji.clipStart(Me.startAngle),ji.clipEnd(Me.endAngle),Ki==null||Ki.clipStart(Me.startAngle),Ki==null||Ki.clipEnd(Me.endAngle));let Dn=this.arc(H,Kt,ie-Math.PI*.5,ie+Kt,ji,Ki,!0,!1),Qa=this.arc(U,gi,ue-gi,ue+Math.PI*.5,ji,Ki,!1,!1),Kn=this.arc(Q,Bi,ue+Math.PI*.5,ue+Math.PI-Bi,ji,Ki,!1,!0),pn=this.arc(X,li,ie+Math.PI+li,ie+Math.PI*1.5,ji,Ki,!0,!0);if(Qe){let Li=Ie<Math.PI*.5?B*(1+Math.cos(Ie))/Math.sin(Ie):NaN,Xi;Li>0&&Li<ye?Xi=Math.max(Math.hypot(B,Li),be):Xi=B,Xi=Math.max(Xi,be);let Ti=ie+Ie*.5;l.moveTo(m+Xi*Math.cos(Ti),D+Xi*Math.sin(Ti))}else if(!((pn==null?void 0:pn.isValid())===!0||(Ki==null?void 0:Ki.isValid())===!0)){let Li=ie+Ie/2,Xi=be*Math.cos(Li),Ti=be*Math.sin(Li);l.moveTo(m+Xi,D+Ti)}if((Dn==null?void 0:Dn.isValid())===!0){let{cx:Li,cy:Xi,r:Ti,a0:Sn,a1:Vi}=Dn;l.arc(m+Li,D+Xi,Ti,Sn,Vi)}if(ji.isValid()){let{r:Li,a0:Xi,a1:Ti}=ji;l.arc(m,D,Li,Xi,Ti)}if((Qa==null?void 0:Qa.isValid())===!0){let{cx:Li,cy:Xi,r:Ti,a0:Sn,a1:Vi}=Qa;l.arc(m+Li,D+Xi,Ti,Sn,Vi)}if(!Qe){if((Kn==null?void 0:Kn.isValid())===!0){let{cx:Li,cy:Xi,r:Ti,a0:Sn,a1:Vi}=Kn;l.arc(m+Li,D+Xi,Ti,Sn,Vi)}if((Ki==null?void 0:Ki.isValid())===!0){let{r:Li,a0:Xi,a1:Ti}=Ki;l.arc(m,D,Li,Ti,Xi,!0)}if((pn==null?void 0:pn.isValid())===!0){let{cx:Li,cy:Xi,r:Ti,a0:Sn,a1:Vi}=pn;l.arc(m+Li,D+Xi,Ti,Sn,Vi)}}l.closePath()}isPointInPath(r,l){var H;let{startAngle:m,endAngle:D,innerRadius:L,outerRadius:B}=(H=this.clipSector)!=null?H:this;return kk(r-this.centerX,l-this.centerY,{startAngle:m,endAngle:D,innerRadius:Math.min(L,B),outerRadius:Math.max(L,B)})}};Ms.className="Sector",T([rn()],Ms.prototype,"centerX",2),T([rn()],Ms.prototype,"centerY",2),T([rn()],Ms.prototype,"innerRadius",2),T([rn()],Ms.prototype,"outerRadius",2),T([rn()],Ms.prototype,"startAngle",2),T([rn()],Ms.prototype,"endAngle",2),T([rn()],Ms.prototype,"clipSector",2),T([rn()],Ms.prototype,"concentricEdgeInset",2),T([rn()],Ms.prototype,"radialEdgeInset",2),T([rn()],Ms.prototype,"startOuterCornerRadius",2),T([rn()],Ms.prototype,"endOuterCornerRadius",2),T([rn()],Ms.prototype,"startInnerCornerRadius",2),T([rn()],Ms.prototype,"endInnerCornerRadius",2);var ar={BLUE:"#5090dc",ORANGE:"#ffa03a",GREEN:"#459d55",CYAN:"#34bfe1",YELLOW:"#e1cc00",VIOLET:"#9669cb",GRAY:"#b5b5b5",MAGENTA:"#bd5aa7",BROWN:"#8a6224",RED:"#ef5452"},Id={BLUE:"#2b5c95",ORANGE:"#cc6f10",GREEN:"#1e652e",CYAN:"#18859e",YELLOW:"#a69400",VIOLET:"#603c88",GRAY:"#575757",MAGENTA:"#7d2f6d",BROWN:"#4f3508",RED:"#a82529"},xh=class extends Ua{constructor(){super(...arguments),this.showInLegend=!1}};T([je(Ri)],xh.prototype,"showInLegend",2);var ff=class extends So{constructor(){super(...arguments),this.spacing=2}set(r,l){return super.set(r)}};T([je(Qt)],ff.prototype,"text",2),T([je(yn)],ff.prototype,"spacing",2);var BS=class extends Hi{constructor(){super(...arguments),this.fill="transparent",this.fillOpacity=1}};T([je(In)],BS.prototype,"fill",2),T([je(oa)],BS.prototype,"fillOpacity",2);var Pp=class extends So{constructor(){super(...arguments),this.offset=3,this.minAngle=0,this.minSpacing=4,this.maxCollisionOffset=50,this.avoidCollisions=!0}};T([je(bi)],Pp.prototype,"offset",2),T([je(yn.restrict({min:0,max:360}))],Pp.prototype,"minAngle",2),T([je(bi)],Pp.prototype,"minSpacing",2),T([je(bi)],Pp.prototype,"maxCollisionOffset",2),T([je(Ri)],Pp.prototype,"avoidCollisions",2);var vf=class extends So{constructor(){super(...arguments),this.positionOffset=0,this.positionRatio=.5}};T([je(yn)],vf.prototype,"positionOffset",2),T([je(oa)],vf.prototype,"positionRatio",2);var el=class extends Hi{constructor(){super(...arguments),this.length=10,this.strokeWidth=1}};T([je(Ns,{optional:!0})],el.prototype,"colors",2),T([je(bi)],el.prototype,"length",2),T([je(bi)],el.prototype,"strokeWidth",2);var _n=class extends Vc{constructor(){super(...arguments),this.fills=Object.values(ar),this.strokes=Object.values(Id),this.fillOpacity=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.outerRadiusOffset=0,this.outerRadiusRatio=1,this.strokeWidth=1,this.sectorSpacing=0,this.hideZeroValueSectorsInLegend=!1,this.innerLabels=new ja(ff),this.title=new xh,this.innerCircle=new BS,this.shadow=new Dd,this.calloutLabel=new Pp,this.sectorLabel=new vf,this.calloutLine=new el,this.tooltip=new Tl}isValid(){let r=super.isValid();return this.innerRadiusRatio==null&&this.innerRadiusOffset==null?(vi.warnOnce("Either an [innerRadiusRatio] or an [innerRadiusOffset] must be set to render a donut series."),!1):r}};T([je(Qt)],_n.prototype,"angleKey",2),T([je(Qt,{optional:!0})],_n.prototype,"angleName",2),T([je(Qt,{optional:!0})],_n.prototype,"angleFilterKey",2),T([je(Qt,{optional:!0})],_n.prototype,"radiusKey",2),T([je(Qt,{optional:!0})],_n.prototype,"radiusName",2),T([je(bi,{optional:!0})],_n.prototype,"radiusMin",2),T([je(bi,{optional:!0})],_n.prototype,"radiusMax",2),T([je(Qt,{optional:!0})],_n.prototype,"calloutLabelKey",2),T([je(Qt,{optional:!0})],_n.prototype,"calloutLabelName",2),T([je(Qt,{optional:!0})],_n.prototype,"sectorLabelKey",2),T([je(Qt,{optional:!0})],_n.prototype,"sectorLabelName",2),T([je(Qt,{optional:!0})],_n.prototype,"legendItemKey",2),T([je(Ns)],_n.prototype,"fills",2),T([je(Ns)],_n.prototype,"strokes",2),T([je(oa)],_n.prototype,"fillOpacity",2),T([je(oa)],_n.prototype,"strokeOpacity",2),T([je(bo)],_n.prototype,"lineDash",2),T([je(bi)],_n.prototype,"lineDashOffset",2),T([je(bi)],_n.prototype,"cornerRadius",2),T([je(_a,{optional:!0})],_n.prototype,"itemStyler",2),T([je(yn)],_n.prototype,"rotation",2),T([je(yn)],_n.prototype,"outerRadiusOffset",2),T([je(oa)],_n.prototype,"outerRadiusRatio",2),T([je(yn,{optional:!0})],_n.prototype,"innerRadiusOffset",2),T([je(oa,{optional:!0})],_n.prototype,"innerRadiusRatio",2),T([je(bi)],_n.prototype,"strokeWidth",2),T([je(yn)],_n.prototype,"sectorSpacing",2),T([je(Ri)],_n.prototype,"hideZeroValueSectorsInLegend",2),T([je(ra)],_n.prototype,"innerLabels",2),T([je(Si)],_n.prototype,"title",2),T([je(Si)],_n.prototype,"innerCircle",2),T([je(Si)],_n.prototype,"shadow",2),T([je(Si)],_n.prototype,"calloutLabel",2),T([je(Si)],_n.prototype,"sectorLabel",2),T([je(Si)],_n.prototype,"calloutLine",2),T([je(Si)],_n.prototype,"tooltip",2);function qc(r,l,m,D){let L=[m.convert(0),m.convert(1)],B=[D.convert(0),D.convert(1)],H=Math.PI/-2+Ge(l),U=r?"initial":"update",X=({radius:Me})=>({innerRadius:L[0],outerRadius:L[0]+(L[1]-L[0])*Me}),Q=({radius:Me})=>({innerRadius:B[0],outerRadius:B[0]+(B[1]-B[0])*Me});return{nodes:{toFn:(Me,Ie,Oe,{prevLive:Re})=>{var ut,Mt;let{startAngle:Be,endAngle:Ue,innerRadius:Ne,outerRadius:Qe}=Ie,{stroke:nt,fill:rt}=Ie.sectorFormat;if(Oe==="removed"&&Re?(Be=(ut=Re.datum)==null?void 0:ut.endAngle,Ue=(Mt=Re.datum)==null?void 0:Mt.endAngle):Oe==="removed"&&!Re&&(Be=H,Ue=H),Oe==="removed"){let Tt=X(Ie);Ne=Tt.innerRadius,Qe=Tt.outerRadius}return{startAngle:Be,endAngle:Ue,outerRadius:Qe,innerRadius:Ne,stroke:nt,fill:rt}},fromFn:(Me,Ie,Oe,{prevFromProps:Re})=>{var ut,Mt,Tt,_t,Kt,gi;let{startAngle:Be,endAngle:Ue,innerRadius:Ne,outerRadius:Qe}=Me,{fill:nt,stroke:rt}=Ie.sectorFormat;if(Oe==="unknown"||Oe==="added"&&!Re?(Be=H,Ue=H,Ne=Ie.innerRadius,Qe=Ie.outerRadius):Oe==="added"&&Re&&(Be=(ut=Re.endAngle)!=null?ut:H,Ue=(Mt=Re.endAngle)!=null?Mt:H,Ne=(Tt=Re.innerRadius)!=null?Tt:Ie.innerRadius,Qe=(_t=Re.outerRadius)!=null?_t:Ie.outerRadius),Oe==="added"&&!r){let Ci=Q(Ie);Ne=Ci.innerRadius,Qe=Ci.outerRadius}return Oe==="updated"&&(nt=(Kt=Me.fill)!=null?Kt:nt,rt=(gi=typeof Me.stroke=="string"?Me.stroke:void 0)!=null?gi:rt),{startAngle:Be,endAngle:Ue,innerRadius:Ne,outerRadius:Qe,fill:nt,stroke:rt,phase:U}}},innerCircle:{fromFn:(Me,Ie)=>{var Oe,Re,Be;return{size:(Be=(Re=(Oe=Me.previousDatum)==null?void 0:Oe.radius)!=null?Re:Me.size)!=null?Be:0,phase:U}},toFn:(Me,Ie)=>{var Oe;return{size:(Oe=Ie.radius)!=null?Oe:0}}}}}function wg(r,l){return{startAngle:l.startAngle,endAngle:l.endAngle,innerRadius:l.innerRadius,outerRadius:l.outerRadius,fill:l.sectorFormat.fill,stroke:l.sectorFormat.stroke}}function Zb(r,l){let m=l.y-r.centerY,D=l.x-r.centerX,L=Math.atan2(m,D),B=r.getItemNodes();for(let H of B)if(H.datum.missing!==!0&&zn(L,H.startAngle,H.endAngle)){let U=Math.sqrt(D*D+m*m),X=0;return U<H.innerRadius?X=H.innerRadius-U:U>H.outerRadius&&(X=U-H.outerRadius),{datum:H.datum,distance:X}}}var yu=(r=>(r[r.BACKGROUND=0]="BACKGROUND",r[r.FOREGROUND=1]="FOREGROUND",r[r.HIGHLIGHT=2]="HIGHLIGHT",r[r.LABEL=3]="LABEL",r))(yu||{}),Lp=class extends wM{constructor(B){var H=B,{useLabelLayer:r=!1,pickModes:l=[1,0],canHaveAxes:m=!1,animationResetFns:D}=H,L=wi(H,["useLabelLayer","pickModes","canHaveAxes","animationResetFns"]);super(He(ge({},L),{useLabelLayer:r,pickModes:l,directionKeys:{x:["angleKey"],y:["radiusKey"]},directionNames:{x:["angleName"],y:["radiusName"]},canHaveAxes:m})),this.itemGroup=this.contentGroup.appendChild(new Ji),this.nodeData=[],this.itemSelection=co.select(this.itemGroup,()=>this.nodeFactory(),!1),this.labelSelection=co.select(this.labelGroup,()=>this.labelFactory(),!1),this.highlightSelection=co.select(this.highlightGroup,()=>this.nodeFactory()),this.highlightLabelSelection=co.select(this.highlightLabel,()=>this.labelFactory()),this.centerX=0,this.centerY=0,this.radius=0,this.animationResetFns=D,this.animationState=new no("empty",{empty:{update:{target:"ready",action:U=>this.animateEmptyUpdateReady(U)},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",highlight:U=>this.animateReadyHighlight(U),highlightMarkers:U=>this.animateReadyHighlightMarkers(U),resize:U=>this.animateReadyResize(U),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:U=>this.animateWaitingUpdateReady(U)},reset:"empty",skip:"ready"},clearing:{update:{target:"empty",action:U=>this.animateClearingUpdateEmpty(U)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}getItemNodes(){return[...this.itemGroup.children()]}getNodeData(){return this.nodeData}setSeriesIndex(r){return super.setSeriesIndex(r)?(this.contentGroup.zIndex=[r,1],this.highlightGroup.zIndex=[r,2],this.labelGroup.zIndex=[r,3],!0):!1}resetAnimation(r){r==="initial"?this.animationState.transition("reset"):r==="ready"&&this.animationState.transition("skip")}labelFactory(){let r=new hr;return r.pointerEvents=1,r}addChartEventListeners(){var r;this.destroyFns.push((r=this.ctx.chartEventManager)==null?void 0:r.addListener("legend-item-click",l=>this.onLegendItemClick(l)))}getInnerRadius(){return 0}computeLabelsBBox(r,l){return null}resetAllAnimation(){var m;let{item:r,label:l}=(m=this.animationResetFns)!=null?m:{};this.ctx.animationManager.stopByAnimationGroupId(this.id),r&&Co([this.itemSelection,this.highlightSelection],r),l&&Co([this.labelSelection,this.highlightLabelSelection],l),this.itemSelection.cleanup(),this.labelSelection.cleanup(),this.highlightSelection.cleanup(),this.highlightLabelSelection.cleanup()}animateEmptyUpdateReady(r){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}animateWaitingUpdateReady(r){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}animateReadyHighlight(r){var D;let{item:l,label:m}=(D=this.animationResetFns)!=null?D:{};l&&Co([this.highlightSelection],l),m&&Co([this.highlightLabelSelection],m)}animateReadyHighlightMarkers(r){}animateReadyResize(r){this.resetAllAnimation()}animateClearingUpdateEmpty(r){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}computeFocusBounds(r){var m;let l=(m=this.getNodeData())==null?void 0:m[r.datumIndex];if(l!==void 0)return this.itemSelection.select(D=>D instanceof Dl&&D.datum===l)[0]}getSeriesRange(r,l){return[NaN,NaN]}},Op=class extends cu{constructor(r,l,m,D){super(r,l,m,D),this.angleKey=D.properties.angleKey,this.radiusKey=D.properties.radiusKey,this.calloutLabelKey=D.properties.calloutLabelKey,this.sectorLabelKey=D.properties.sectorLabelKey}},Fl=class extends Lp{constructor(r){super({moduleCtx:r,pickModes:[1,0],useLabelLayer:!0,animationResetFns:{item:wg,label:bg}}),this.properties=new _n,this.phantomNodeData=void 0,this.backgroundGroup=new js({name:`${this.id}-background`,zIndex:0}),this.noVisibleData=!1,this.previousRadiusScale=new jc,this.radiusScale=new jc,this.phantomGroup=this.backgroundGroup.appendChild(new Ji({name:"phantom"})),this.phantomSelection=co.select(this.phantomGroup,()=>this.nodeFactory(),!1),this.calloutLabelGroup=this.contentGroup.appendChild(new Ji({name:"pieCalloutLabels"})),this.calloutLabelSelection=new co(this.calloutLabelGroup,Ji),this.zerosumRingsGroup=this.backgroundGroup.appendChild(new Ji({name:`${this.id}-zerosumRings`})),this.zerosumOuterRing=this.zerosumRingsGroup.appendChild(new og),this.zerosumInnerRing=this.zerosumRingsGroup.appendChild(new og),this.innerLabelsGroup=this.contentGroup.appendChild(new Ji({name:"innerLabels"})),this.innerCircleGroup=this.backgroundGroup.appendChild(new Ji({name:`${this.id}-innerCircle`})),this.innerLabelsSelection=co.select(this.innerLabelsGroup,hr),this.innerCircleSelection=co.select(this.innerCircleGroup,og),this.surroundingRadius=void 0,this.NodeEvent=Op,this.angleScale=new jc,this.angleScale.domain=[0,1],this.angleScale.range=[-Math.PI,Math.PI].map(l=>l+Math.PI/2),this.phantomGroup.opacity=.2}get calloutNodeData(){var r;return(r=this.phantomNodeData)!=null?r:this.nodeData}attachSeries(r,l,m){super.attachSeries(r,l,m),r==null||r.appendChild(this.backgroundGroup)}detachSeries(r,l,m){super.detachSeries(r,l,m),r==null||r.removeChild(this.backgroundGroup)}setSeriesIndex(r){return super.setSeriesIndex(r)?(this.backgroundGroup.zIndex=[0,r],!0):!1}nodeFactory(){return new Ms}getSeriesDomain(r){return r==="x"?this.angleScale.domain:this.radiusScale.domain}async processData(r){var Ie,Oe,Re,Be,Ue;if(this.data==null||!this.properties.isValid())return;let{visible:l,id:m}=this,{angleKey:D,angleFilterKey:L,radiusKey:B,calloutLabelKey:H,sectorLabelKey:U,legendItemKey:X}=this.properties,Q=(Ne,Qe,nt)=>l&&this.ctx.legendManager.getItemEnabled({seriesId:m,itemId:nt}),ie=!this.ctx.animationManager.isSkipped(),ue=[],be=[];X?ue.push(Xs(X,"band",{id:"legendItemKey"})):H?ue.push(Xs(H,"band",{id:"calloutLabelKey"})):U&&ue.push(Xs(U,"band",{id:"sectorLabelKey"}));let ye=this.radiusScale.type,Me=this.angleScale.type;B&&be.push(rS(B,{id:"radiusValue",min:(Ie=this.properties.radiusMin)!=null?Ie:0,max:this.properties.radiusMax}),kn(B,ye,{id:"radiusRaw"}),xd("radiusValue",[0,1],1,(Oe=this.properties.radiusMin)!=null?Oe:0,this.properties.radiusMax)),H&&be.push(kn(H,"band",{id:"calloutLabelValue"})),U&&be.push(kn(U,"band",{id:"sectorLabelValue"})),X&&be.push(kn(X,"band",{id:"legendItemValue"})),L&&be.push(sS(L,Me,{id:"angleFilterValue",onlyPositive:!0,validation:Q,invalidValue:0}),kn(L,Me,{id:"angleFilterRaw"}),xd("angleFilterValue",[0,1],0,0)),ie&&this.processedData&&ue.length>0&&be.push(Zm(this.id,this.processedData)),be.push(qm()),await this.requestDataModel(r,this.data,{props:[...ue,sS(D,Me,{id:"angleValue",onlyPositive:!0,validation:Q,invalidValue:0}),kn(D,Me,{id:"angleRaw"}),xd("angleValue",[0,1],0,0),...be]});for(let Ne of(Ue=(Be=(Re=this.processedData)==null?void 0:Re.defs)==null?void 0:Be.values)!=null?Ue:[]){let{id:Qe,missing:nt,property:rt}=Ne,ut=kD(this,nt);Qe!=="angleRaw"&&ut>0&&vi.warnOnce(`no value was found for the key '${String(rt)}' on ${ut} data element${ut>1?"s":""}`)}this.animationState.transition("updateData")}maybeRefreshNodeData(){var m;if(!this.nodeDataRefresh)return;let{nodeData:r=[],phantomNodeData:l}=(m=this.createNodeData())!=null?m:{};this.nodeData=r,this.phantomNodeData=l,this.nodeDataRefresh=!1}getProcessedDataValues(r,l){let m=r.resolveColumnById(this,"angleValue",l),D=r.resolveColumnById(this,"angleRaw",l),L=this.properties.angleFilterKey!=null?r.resolveColumnById(this,"angleFilterValue",l):void 0,B=this.properties.angleFilterKey!=null?r.resolveColumnById(this,"angleFilterRaw",l):void 0,H=this.properties.radiusKey?r.resolveColumnById(this,"radiusValue",l):void 0,U=this.properties.radiusKey?r.resolveColumnById(this,"radiusRaw",l):void 0,X=this.properties.calloutLabelKey?r.resolveColumnById(this,"calloutLabelValue",l):void 0,Q=this.properties.sectorLabelKey?r.resolveColumnById(this,"sectorLabelValue",l):void 0,ie=this.properties.legendItemKey?r.resolveColumnById(this,"legendItemValue",l):void 0;return{angleValues:m,angleRawValues:D,angleFilterValues:L,angleFilterRawValues:B,radiusValues:H,radiusRawValues:U,calloutLabelValues:X,sectorLabelValues:Q,legendItemValues:ie}}createNodeData(){var nt;let{id:r,processedData:l,dataModel:m,angleScale:D,ctx:{legendManager:L},visible:B}=this,{rotation:H,innerRadiusRatio:U}=this.properties;if(!this.properties.isValid())return this.zerosumOuterRing.visible=!0,this.zerosumInnerRing.visible=!0,{itemId:r,nodeData:[],labelData:[]};if(!(l!=null&&l.rawData.length)||!m||l.type!=="ungrouped")return;let{angleValues:X,angleRawValues:Q,angleFilterValues:ie,angleFilterRawValues:ue,radiusValues:be,radiusRawValues:ye,calloutLabelValues:Me,sectorLabelValues:Ie,legendItemValues:Oe}=this.getProcessedDataValues(m,l),Re=(nt=ue==null?void 0:ue.some((rt,ut)=>rt>Q[ut]))!=null?nt:!1,Be=0,Ue=0,Ne=[],Qe=ue!=null?[]:void 0;return l.rawData.forEach((rt,ut)=>{var Ki;let Mt=Re?ie[ut]:X[ut],Tt=ue!=null&&!Re?Math.sqrt(ue[ut]/Q[ut]):1,_t=D.convert(Be)+Ge(H);Be=Mt,Ue+=Mt;let Kt=D.convert(Be)+Ge(H),gi=Math.abs(Kt-_t),Ci=_t+gi/2,xi=Q[ut],Bi=((Ki=be==null?void 0:be[ut])!=null?Ki:1)*Tt,Fi=ye==null?void 0:ye[ut],hn=Oe==null?void 0:Oe[ut],ji=this.getLabels(rt,Ci,gi,!0,Me==null?void 0:Me[ut],Ie==null?void 0:Ie[ut],hn),An=this.getSectorFormat(rt,ut,!1),Zi=ge({itemId:ut,series:this,datum:rt,datumIndex:ut,angleValue:xi,midAngle:Ci,midCos:Math.cos(Ci),midSin:Math.sin(Ci),startAngle:_t,endAngle:Kt,radius:Bi,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(Bi),0),sectorFormat:An,radiusValue:Fi,legendItemValue:hn,enabled:B&&L.getItemEnabled({seriesId:r,itemId:ut}),focusable:!0},ji);Ne.push(Zi),Qe!=null&&Qe.push(He(ge({},Zi),{radius:1,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(1),0),focusable:!1}))}),this.zerosumOuterRing.visible=Ue===0,this.zerosumInnerRing.visible=Ue===0&&U!=null&&U!==1&&U>0,{itemId:r,nodeData:Ne,labelData:Ne,phantomNodeData:Qe}}getLabels(r,l,m,D,L,B,H){let{calloutLabel:U,sectorLabel:X,legendItemKey:Q}=this.properties,ie=!D||U.enabled?this.properties.calloutLabelKey:void 0,ue=!D||X.enabled?this.properties.sectorLabelKey:void 0;if(!ie&&!ue&&!Q)return{};let be={datum:r,angleKey:this.properties.angleKey,angleName:this.properties.angleName,radiusKey:this.properties.radiusKey,radiusName:this.properties.radiusName,calloutLabelKey:this.properties.calloutLabelKey,calloutLabelName:this.properties.calloutLabelName,sectorLabelKey:this.properties.sectorLabelKey,sectorLabelName:this.properties.sectorLabelName,legendItemKey:this.properties.legendItemKey},ye={};return ie&&m>Ge(U.minAngle)&&(ye.calloutLabel=He(ge({},this.getTextAlignment(l)),{text:this.getLabelText(U,He(ge({},be),{value:L})),hidden:!1,collisionTextAlign:void 0,collisionOffsetY:0,box:void 0})),ue&&(ye.sectorLabel={text:this.getLabelText(X,He(ge({},be),{value:B}))}),Q!=null&&H!=null&&(ye.legendItem={key:Q,text:H}),ye}getTextAlignment(r){let l=[{textAlign:"center",textBaseline:"bottom"},{textAlign:"left",textBaseline:"middle"},{textAlign:"center",textBaseline:"hanging"},{textAlign:"right",textBaseline:"middle"}],m=Uh(r),D=-.75*Math.PI,L=m-D,B=Math.floor(L/(Math.PI/2)),H=bt(B,l.length);return l[H]}getSectorFormat(r,l,m){var Qe,nt,rt,ut,Mt,Tt,_t,Kt;let{angleKey:D,radiusKey:L,calloutLabelKey:B,sectorLabelKey:H,legendItemKey:U,fills:X,strokes:Q,itemStyler:ie}=this.properties,ue=Q[l%Q.length],{fill:be,fillOpacity:ye,stroke:Me,strokeWidth:Ie,strokeOpacity:Oe,lineDash:Re,lineDashOffset:Be,cornerRadius:Ue}=mn(m&&this.properties.highlightStyle.item,{fill:X.length>0?X[l%X.length]:void 0,stroke:ue,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.getOpacity()},this.properties),Ne;return ie&&(Ne=this.cachedDatumCallback(ws(this.getDatumIdFromData(r),m?"highlight":"hide"),()=>ie({datum:r,angleKey:D,radiusKey:L,calloutLabelKey:B,sectorLabelKey:H,legendItemKey:U,fill:be,fillOpacity:ye,stroke:Me,strokeWidth:Ie,strokeOpacity:Oe,lineDash:Re,lineDashOffset:Be,cornerRadius:Ue,highlighted:m,seriesId:this.id}))),{fill:(Qe=Ne==null?void 0:Ne.fill)!=null?Qe:be,fillOpacity:(nt=Ne==null?void 0:Ne.fillOpacity)!=null?nt:ye,stroke:(rt=Ne==null?void 0:Ne.stroke)!=null?rt:Me,strokeWidth:(ut=Ne==null?void 0:Ne.strokeWidth)!=null?ut:Ie,strokeOpacity:(Mt=Ne==null?void 0:Ne.strokeOpacity)!=null?Mt:Oe,lineDash:(Tt=Ne==null?void 0:Ne.lineDash)!=null?Tt:Re,lineDashOffset:(_t=Ne==null?void 0:Ne.lineDashOffset)!=null?_t:Be,cornerRadius:(Kt=Ne==null?void 0:Ne.cornerRadius)!=null?Kt:Ue}}getInnerRadius(){let{radius:r}=this,{innerRadiusRatio:l=1,innerRadiusOffset:m=0}=this.properties,D=r*l+m;return D===r||D<0?0:D}getOuterRadius(){let{outerRadiusRatio:r,outerRadiusOffset:l}=this.properties;return Math.max(this.radius*r+l,0)}updateRadiusScale(r){var D;let l=[this.getInnerRadius(),this.getOuterRadius()];this.radiusScale.range=l,r&&(this.previousRadiusScale.range=l);let m=L=>He(ge({},L),{innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(L.radius),0)});this.nodeData=this.nodeData.map(m),this.phantomNodeData=(D=this.phantomNodeData)==null?void 0:D.map(m)}getTitleTranslationY(){var L,B;let r=Math.max(0,this.radiusScale.range[1]);if(r===0)return NaN;let m=2+((B=(L=this.properties.title)==null?void 0:L.spacing)!=null?B:0),D=Math.max(0,-r);return-r-m-D}update({seriesRect:r}){let{title:l}=this.properties,m={seriesRectWidth:r==null?void 0:r.width,seriesRectHeight:r==null?void 0:r.height},D=Pc(this.nodeDataDependencies,m)!=null;if(D&&(this._nodeDataDependencies=m),this.maybeRefreshNodeData(),this.updateTitleNodes(),this.updateRadiusScale(D),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.backgroundGroup.translationX=this.centerX,this.backgroundGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),l){let L=this.getTitleTranslationY();l.node.y=isFinite(L)?L:0;let B=l.node.getBBox();l.node.visible=l.enabled&&isFinite(L)&&!this.bboxIntersectsSurroundingSeries(B)}for(let L of[this.zerosumInnerRing,this.zerosumOuterRing])L.fillOpacity=0,L.stroke=this.properties.calloutLabel.color,L.strokeWidth=1,L.strokeOpacity=1;this.updateNodeMidPoint(),this.updateSelections(),this.updateNodes(r)}updateTitleNodes(){var m,D;let{oldTitle:r}=this,{title:l}=this.properties;r!==l&&(r&&((m=this.labelGroup)==null||m.removeChild(r.node)),l&&(l.node.textBaseline="bottom",(D=this.labelGroup)==null||D.appendChild(l.node)),this.oldTitle=l)}updateNodeMidPoint(){var l;let r=m=>{let D=m.innerRadius+(m.outerRadius-m.innerRadius)/2;m.midPoint={x:m.midCos*Math.max(0,D),y:m.midSin*Math.max(0,D)}};this.nodeData.forEach(r),(l=this.phantomNodeData)==null||l.forEach(r)}updateSelections(){this.updateGroupSelection(),this.updateInnerCircleSelection()}updateGroupSelection(){var Q;let{itemSelection:r,highlightSelection:l,phantomSelection:m,highlightLabelSelection:D,calloutLabelSelection:L,labelSelection:B,innerLabelsSelection:H}=this,U=this.nodeData.map(ie=>He(ge({},ie),{sectorFormat:ge({},ie.sectorFormat)})),X=(ie,ue)=>{ie.update(ue,void 0,be=>this.getDatumId(be)),this.ctx.animationManager.isSkipped()&&ie.cleanup()};X(r,this.nodeData),X(l,U),X(m,(Q=this.phantomNodeData)!=null?Q:[]),L.update(this.calloutNodeData,ie=>{let ue=new Ar;ue.tag=0,ue.pointerEvents=1,ie.appendChild(ue);let be=new hr;be.tag=1,be.pointerEvents=1,ie.appendChild(be)}),B.update(this.nodeData),D.update(U),H.update(this.properties.innerLabels,ie=>{ie.pointerEvents=1})}updateInnerCircleSelection(){let{innerCircle:r}=this.properties,l=0,m=this.getInnerRadius();if(m>0){let L=Math.min(m,this.getOuterRadius()),B=1;l=Math.ceil(L*2+B)}let D=r?[{radius:l}]:[];this.innerCircleSelection.update(D)}updateNodes(r){let l=this.ctx.highlightManager.getActiveHighlight(),{visible:m}=this;this.backgroundGroup.visible=m,this.contentGroup.visible=m,this.highlightGroup.visible=m&&(l==null?void 0:l.series)===this,this.highlightLabel.visible=m&&(l==null?void 0:l.series)===this,this.labelGroup.visible=m,this.contentGroup.opacity=this.getOpacity(),this.innerCircleSelection.each((B,{radius:H})=>{var U,X;B.setProperties({fill:(U=this.properties.innerCircle)==null?void 0:U.fill,opacity:(X=this.properties.innerCircle)==null?void 0:X.fillOpacity,size:H})});let D=this.ctx.animationManager.isSkipped(),L=(B,H,U,X)=>{let Q=this.getSectorFormat(H.datum,H.itemId,X);H.sectorFormat.fill=Q.fill,H.sectorFormat.stroke=Q.stroke,D&&(B.startAngle=H.startAngle,B.endAngle=H.endAngle,B.innerRadius=H.innerRadius,B.outerRadius=H.outerRadius),(X||D)&&(B.fill=Q.fill,B.stroke=Q.stroke),B.strokeWidth=Q.strokeWidth,B.fillOpacity=Q.fillOpacity,B.strokeOpacity=Q.strokeOpacity,B.lineDash=Q.lineDash,B.lineDashOffset=Q.lineDashOffset,B.cornerRadius=Q.cornerRadius,B.fillShadow=this.properties.shadow;let ie=Math.max((this.properties.sectorSpacing+(Q.stroke!=null?Q.strokeWidth:0))/2,0);B.inset=ie,B.lineJoin=this.properties.sectorSpacing>=0||ie>0?"miter":"round"};this.itemSelection.each((B,H,U)=>L(B,H,U,!1)),this.highlightSelection.each((B,H,U)=>{L(B,H,U,!0),B.visible=H.itemId===(l==null?void 0:l.itemId)}),this.phantomSelection.each((B,H,U)=>L(B,H,U,!1)),this.updateCalloutLineNodes(),this.updateCalloutLabelNodes(r),this.updateSectorLabelNodes(),this.updateInnerLabelNodes(),this.updateZerosumRings(),this.animationState.transition("update")}updateCalloutLineNodes(){var B;let{calloutLine:r}=this.properties,l=r.length,m=r.strokeWidth,D=(B=r.colors)!=null?B:this.properties.strokes,{offset:L}=this.properties.calloutLabel;this.calloutLabelSelection.selectByTag(0).forEach((H,U)=>{var ue;let X=H.datum,{calloutLabel:Q,outerRadius:ie}=X;if(Q!=null&&Q.text&&!Q.hidden&&ie!==0){H.visible=!0,H.strokeWidth=m,H.stroke=D[U%D.length],H.fill=void 0;let be=X.midCos*ie,ye=X.midSin*ie,Me=X.midCos*(ie+l),Ie=X.midSin*(ie+l);if(((ue=Q.collisionTextAlign)!=null?ue:Q.collisionOffsetY!==0)&&Q.box!=null){let Re=Q.box,Be=Me,Ue=Ie;Me<Re.x?Be=Re.x:Me>Re.x+Re.width&&(Be=Re.x+Re.width),Ie<Re.y?Ue=Re.y:Ie>Re.y+Re.height&&(Ue=Re.y+Re.height);let Ne=Be-Me,Qe=Ue-Ie,nt=Math.sqrt(Math.pow(Ne,2)+Math.pow(Qe,2)),rt=nt-L;rt>0&&(Me=Me+Ne*rt/nt,Ie=Ie+Qe*rt/nt)}H.x1=be,H.y1=ye,H.x2=Me,H.y2=Ie}else H.visible=!1})}getLabelOverflow(r,l,m){let D=-this.centerX,L=D+m.width,B=-this.centerY,H=B+m.height,U=1,X=1;l.x+U<D?X=(l.x+l.width-D)/l.width:l.x+l.width-U>L&&(X=(L-l.x)/l.width);let Q=l.y+U<B||l.y+l.height-U>H,ie=X===1?r.length:Math.floor(r.length*X)-1,ue=this.bboxIntersectsSurroundingSeries(l);return{textLength:ie,hasVerticalOverflow:Q,hasSurroundingSeriesOverflow:ue}}bboxIntersectsSurroundingSeries(r){let{surroundingRadius:l}=this;if(l==null)return!1;let m=[{x:r.x,y:r.y},{x:r.x+r.width,y:r.y},{x:r.x+r.width,y:r.y+r.height},{x:r.x,y:r.y+r.height}],D=l**2;return m.some(L=>L.x**2+L.y**2>D)}computeCalloutLabelCollisionOffsets(){let{radiusScale:r}=this,{calloutLabel:l,calloutLine:m}=this.properties,{offset:D,minSpacing:L}=l,B=r.convert(0),H=Re=>!Re.calloutLabel||Re.outerRadius===0,U=this.calloutNodeData,X=U.filter(Re=>!H(Re));if(X.forEach(Re=>{let Be=Re.calloutLabel;Be!=null&&(Be.hidden=!1,Be.collisionTextAlign=void 0,Be.collisionOffsetY=0)}),X.length<=1)return;let Q=X.filter(Re=>Re.midCos<0).sort((Re,Be)=>Re.midSin-Be.midSin),ie=X.filter(Re=>Re.midCos>=0).sort((Re,Be)=>Re.midSin-Be.midSin),ue=X.filter(Re=>{var Be;return Re.midSin<0&&((Be=Re.calloutLabel)==null?void 0:Be.textAlign)==="center"}).sort((Re,Be)=>Re.midCos-Be.midCos),be=X.filter(Re=>{var Be;return Re.midSin>=0&&((Be=Re.calloutLabel)==null?void 0:Be.textAlign)==="center"}).sort((Re,Be)=>Re.midCos-Be.midCos),ye=Re=>{var ut;let Be=Re.calloutLabel;if(Be==null)return ft.zero.clone();let Ue=Re.outerRadius+m.length+D,Ne=Re.midCos*Ue,Qe=Re.midSin*Ue+Be.collisionOffsetY,nt=(ut=Be.collisionTextAlign)!=null?ut:Be.textAlign,rt=Be.textBaseline;return hr.computeBBox(Be.text,Ne,Qe,{font:this.properties.calloutLabel,textAlign:nt,textBaseline:rt})},Me=(Re,Be,Ue)=>{let Ne=ye(Re).grow(L/2),Qe=ye(Be).grow(L/2);if(Ne.x<Qe.x+Qe.width&&Ne.x+Ne.width>Qe.x&&(Ue==="to-top"?Ne.y<Qe.y+Qe.height:Ne.y+Ne.height>Qe.y)){let rt=Ue==="to-top"?Ne.y-Qe.y-Qe.height:Ne.y+Ne.height-Qe.y;Be.calloutLabel.collisionOffsetY=rt}},Ie=Re=>{let Be=Re.slice().sort((Ne,Qe)=>Math.abs(Ne.midSin)-Math.abs(Qe.midSin))[0],Ue=Re.indexOf(Be);for(let Ne=Ue-1;Ne>=0;Ne--){let Qe=Re[Ne+1],nt=Re[Ne];Me(Qe,nt,"to-top")}for(let Ne=Ue+1;Ne<Re.length;Ne++){let Qe=Re[Ne-1],nt=Re[Ne];Me(Qe,nt,"to-bottom")}},Oe=Re=>{let Be=X.some(ut=>ut.calloutLabel.collisionOffsetY!==0),Ue=Re.map(ut=>ye(ut)),Ne=Ue.map(ut=>ut.clone().grow(L/2)),Qe=!1;for(let ut=0;ut<Ne.length&&!Qe;ut++){let Mt=Ne[ut];for(let Tt=ut+1;Tt<Re.length;Tt++){let _t=Ne[Tt];if(Mt.collidesBBox(_t)){Qe=!0;break}}}let nt=U.map(ut=>{let{startAngle:Mt,endAngle:Tt,outerRadius:_t}=ut;return{startAngle:Mt,endAngle:Tt,innerRadius:B,outerRadius:_t}}),rt=Ue.some(ut=>nt.some(Mt=>FS(ut,Mt)));!Qe&&!Be&&!rt||Re.filter(ut=>ut.calloutLabel.textAlign==="center").forEach(ut=>{let Mt=ut.calloutLabel;ut.midCos<0?Mt.collisionTextAlign="right":ut.midCos>0?Mt.collisionTextAlign="left":Mt.collisionTextAlign="center"})};Ie(Q),Ie(ie),Oe(ue),Oe(be)}updateCalloutLabelNodes(r){let{radiusScale:l}=this,{calloutLabel:m,calloutLine:D}=this.properties,L=D.length,{offset:B,color:H}=m,U=new hr;this.calloutLabelSelection.selectByTag(1).forEach(X=>{var Ne;let{datum:Q}=X,ie=Q.calloutLabel,ue=l.convert(Q.radius),be=Math.max(0,ue);if(!(ie!=null&&ie.text)||be===0||ie.hidden){X.visible=!1;return}let ye=be+L+B,Me=Q.midCos*ye,Ie=Q.midSin*ye+ie.collisionOffsetY,Oe={textAlign:(Ne=ie.collisionTextAlign)!=null?Ne:ie.textAlign,textBaseline:ie.textBaseline};U.text=ie.text,U.x=Me,U.y=Ie,U.setFont(this.properties.calloutLabel),U.setAlign(Oe);let Re=U.getBBox(),Be=ie.text,Ue=!0;if(m.avoidCollisions){let{textLength:Qe,hasVerticalOverflow:nt}=this.getLabelOverflow(ie.text,Re,r);Be=ie.text.length===Qe?ie.text:`${ie.text.substring(0,Qe)}\u2026`,Ue=!nt}X.text=Be,X.x=Me,X.y=Ie,X.setFont(this.properties.calloutLabel),X.setAlign(Oe),X.fill=H,X.visible=Ue})}computeLabelsBBox(r,l){let{calloutLabel:m,calloutLine:D}=this.properties,L=D.length,{offset:B,maxCollisionOffset:H,minSpacing:U}=m;if(!m.avoidCollisions)return null;this.maybeRefreshNodeData(),this.updateRadiusScale(!1),this.computeCalloutLabelCollisionOffsets();let X=[],Q=new hr,ie,{title:ue}=this.properties;if(ue!=null&&ue.text&&ue.enabled){let be=this.getTitleTranslationY();isFinite(be)&&(Q.text=ue.text,Q.x=0,Q.y=be,Q.setFont(ue),Q.setAlign({textBaseline:"bottom",textAlign:"center"}),ie=Q.getBBox(),X.push(ie))}return this.calloutNodeData.forEach(be=>{var Be;let ye=be.calloutLabel;if(!ye||be.outerRadius===0)return null;let Me=be.outerRadius+L+B,Ie=be.midCos*Me,Oe=be.midSin*Me+ye.collisionOffsetY;Q.text=ye.text,Q.x=Ie,Q.y=Oe,Q.setFont(this.properties.calloutLabel),Q.setAlign({textAlign:(Be=ye.collisionTextAlign)!=null?Be:ye.textAlign,textBaseline:ye.textBaseline});let Re=Q.getBBox();if(ye.box=Re,Math.abs(ye.collisionOffsetY)>H){ye.hidden=!0;return}if(ie){let Ue=-this.centerY,Ne=new ft(ie.x-U,Ue,ie.width+2*U,ie.y+ie.height+U-Ue);if(Re.collidesBBox(Ne)){ye.hidden=!0;return}}if(r.hideWhenNecessary){let{textLength:Ue,hasVerticalOverflow:Ne,hasSurroundingSeriesOverflow:Qe}=this.getLabelOverflow(ye.text,Re,l),nt=ye.text.length>2&&Ue<2;if(Ne||nt||Qe){ye.hidden=!0;return}}ye.hidden=!1,X.push(Re)}),X.length===0?null:ft.merge(X)}updateSectorLabelNodes(){let{radiusScale:r}=this,l=r.convert(0),{fontSize:m,fontStyle:D,fontWeight:L,fontFamily:B,positionOffset:H,positionRatio:U,color:X}=this.properties.sectorLabel,Q=(ie,ue)=>{let{sectorLabel:be,outerRadius:ye}=ue,Me=!1;if(be&&ye!==0){let Ie=l*(1-U)+ye*U+H;ie.fill=X,ie.fontStyle=D,ie.fontWeight=L,ie.fontSize=m,ie.fontFamily=B,ie.text=be.text,ie.x=ue.midCos*Ie,ie.y=ue.midSin*Ie,ie.textAlign="center",ie.textBaseline="middle";let Oe=ie.getBBox(),Re=[[Oe.x,Oe.y],[Oe.x+Oe.width,Oe.y],[Oe.x+Oe.width,Oe.y+Oe.height],[Oe.x,Oe.y+Oe.height]],{startAngle:Be,endAngle:Ue}=ue,Ne={startAngle:Be,endAngle:Ue,innerRadius:l,outerRadius:ye};Re.every(([Qe,nt])=>kk(Qe,nt,Ne))&&(Me=!0)}ie.visible=Me};this.labelSelection.each(Q),this.highlightLabelSelection.each(Q)}updateInnerLabelNodes(){let r=[],l=[];this.innerLabelsSelection.each((ie,ue)=>{let{fontStyle:be,fontWeight:ye,fontSize:Me,fontFamily:Ie,color:Oe}=ue;ie.fontStyle=be,ie.fontWeight=ye,ie.fontSize=Me,ie.fontFamily=Ie,ie.text=ue.text,ie.x=0,ie.y=0,ie.fill=Oe,ie.textAlign="center",ie.textBaseline="alphabetic",r.push(ie.getBBox()),l.push(ue.spacing)});let m=ie=>ie===0?0:l[ie],D=ie=>ie===l.length-1?0:l[ie],L=r.reduce((ie,ue,be)=>ie+ue.height+m(be)+D(be),0),B=Math.max(...r.map(ie=>ie.width)),H=this.getInnerRadius(),X=Math.sqrt(Math.pow(B/2,2)+Math.pow(L/2,2))<=(H>0?H:this.getOuterRadius()),Q=[];for(let ie=0,ue=-L/2;ie<r.length;ie++){let ye=r[ie].height+ue+m(ie);Q.push(ye),ue=ye+D(ie)}this.innerLabelsSelection.each((ie,ue,be)=>{ie.y=Q[be],ie.visible=X})}updateZerosumRings(){this.zerosumOuterRing.size=this.getOuterRadius()*2,this.zerosumInnerRing.size=this.getInnerRadius()*2}pickNodeClosestDatum(r){return Zb(this,r)}getTooltipContent(r){var ut,Mt,Tt;let{id:l,dataModel:m,processedData:D,properties:L}=this,{legendItemKey:B,calloutLabelKey:H,calloutLabelName:U,sectorLabelKey:X,sectorLabelName:Q,angleKey:ie,angleName:ue,radiusKey:be,radiusName:ye,tooltip:Me}=L,Ie=this.properties.title.text;if(!m||!D||D.rawData.length===0)return;let{datumIndex:Oe}=r,Re=D.rawData[Oe],{angleRawValues:Be,legendItemValues:Ue,calloutLabelValues:Ne,sectorLabelValues:Qe}=this.getProcessedDataValues(m,D),nt=Be[Oe],rt=(Tt=(Mt=(ut=Ue==null?void 0:Ue[Oe])!=null?ut:H===ie||Ne==null?void 0:Ne[Oe])!=null?Mt:X===ie||Qe==null?void 0:Qe[Oe])!=null?Tt:ue;return Me.formatTooltip({title:Ie,symbol:this.legendItemSymbol(Oe),data:[{label:rt,fallbackLabel:ie,value:String(nt)}]},ge({seriesId:l,datum:Re,title:ue,legendItemKey:B,calloutLabelKey:H,calloutLabelName:U,sectorLabelKey:X,sectorLabelName:Q,angleKey:ie,angleName:ue,radiusKey:be,radiusName:ye},this.getSectorFormat(Re,Oe,!1)))}legendItemSymbol(r){var D;let l=(D=this.processedData)==null?void 0:D.rawData[r],m=this.getSectorFormat(l,r,!1);return{marker:{fill:m.fill,stroke:m.stroke,fillOpacity:this.properties.fillOpacity,strokeOpacity:this.properties.strokeOpacity,strokeWidth:this.properties.strokeWidth}}}getLegendData(r){var Be,Ue,Ne,Qe,nt;let{visible:l,processedData:m,dataModel:D,id:L,ctx:{legendManager:B}}=this;if(!D||!m||!this.properties.isValid()||r!=="category")return[];let{angleKey:H,calloutLabelKey:U,sectorLabelKey:X,legendItemKey:Q,showInLegend:ie}=this.properties;if(!Q&&(!U||U===H)&&(!X||X===H))return[];let{angleRawValues:ue,calloutLabelValues:be,sectorLabelValues:ye,legendItemValues:Me}=this.getProcessedDataValues(D,m),Ie=((Be=this.properties.title)==null?void 0:Be.showInLegend)&&this.properties.title.text,Oe=[],Re=this.properties.hideZeroValueSectorsInLegend;for(let rt=0;rt<m.rawData.length;rt++){let ut=m.rawData[rt],Mt=ue[rt];if(Re&&Mt===0)continue;let Tt=[];Ie&&Tt.push(Ie);let _t=this.getLabels(ut,2*Math.PI,2*Math.PI,!1,be==null?void 0:be[rt],ye==null?void 0:ye[rt],Me==null?void 0:Me[rt]);Q&&_t.legendItem!==void 0?Tt.push(_t.legendItem.text):U&&U!==H&&((Ue=_t.calloutLabel)==null?void 0:Ue.text)!==void 0?Tt.push((Ne=_t.calloutLabel)==null?void 0:Ne.text):X&&X!==H&&((Qe=_t.sectorLabel)==null?void 0:Qe.text)!==void 0&&Tt.push((nt=_t.sectorLabel)==null?void 0:nt.text),Tt.length!==0&&Oe.push({legendType:"category",id:L,datum:ut,itemId:rt,seriesId:L,enabled:l&&B.getItemEnabled({seriesId:L,itemId:rt}),label:{text:Tt.join(" - ")},symbol:this.legendItemSymbol(rt),legendItemName:Q!=null?ut[Q]:void 0,hideInLegend:!ie})}return Oe}setLegendState(r){let{id:l,ctx:{legendManager:m,updateService:D}}=this;r.forEach((L,B)=>m.toggleItem({enabled:L,seriesId:l,itemId:B})),m.update(),D.update(4)}animateEmptyUpdateReady(r){let{animationManager:l}=this.ctx,m=qc(!0,this.properties.rotation,this.radiusScale,this.previousRadiusScale);ri(this.id,"nodes",l,[this.itemSelection,this.highlightSelection,this.phantomSelection],m.nodes,(D,L)=>this.getDatumId(L)),ri(this.id,"innerCircle",l,[this.innerCircleSelection],m.innerCircle),$n(this,"callout",l,this.calloutLabelSelection),$n(this,"sector",l,this.labelSelection),$n(this,"highlight",l,this.highlightLabelSelection),$n(this,"inner",l,this.innerLabelsSelection),this.previousRadiusScale.range=this.radiusScale.range}animateWaitingUpdateReady(){var ye,Me,Ie,Oe,Re,Be,Ue;let{itemSelection:r,highlightSelection:l,phantomSelection:m,processedData:D,radiusScale:L,previousRadiusScale:B}=this,{animationManager:H}=this.ctx,U=(Me=(ye=D==null?void 0:D.reduced)==null?void 0:ye.diff)==null?void 0:Me[this.id];this.ctx.animationManager.stopByAnimationGroupId(this.id);let X=((Ie=U==null?void 0:U.moved.size)!=null?Ie:0)===0,Q=((Oe=D==null?void 0:D.defs.keys.length)!=null?Oe:0)>0,ie=(Ue=(Be=(Re=D==null?void 0:D.reduced)==null?void 0:Re.animationValidation)==null?void 0:Be.uniqueKeys)!=null?Ue:!0;(!X||!Q||!ie)&&this.ctx.animationManager.skipCurrentBatch();let ue=!this.nodeData.some(Ne=>Ne.enabled),be=qc(!1,this.properties.rotation,L,B);ri(this.id,"nodes",H,[r,l,m],be.nodes,(Ne,Qe)=>this.getDatumId(Qe),U),ri(this.id,"innerCircle",H,[this.innerCircleSelection],be.innerCircle),$n(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),$n(this,"sector",this.ctx.animationManager,this.labelSelection),$n(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.noVisibleData!==ue&&(this.noVisibleData=ue,$n(this,"inner",this.ctx.animationManager,this.innerLabelsSelection)),this.previousRadiusScale.range=this.radiusScale.range}animateClearingUpdateEmpty(){let{itemSelection:r,highlightSelection:l,phantomSelection:m,radiusScale:D,previousRadiusScale:L}=this,{animationManager:B}=this.ctx,H=qc(!1,this.properties.rotation,D,L);ri(this.id,"nodes",B,[r,l,m],H.nodes,(U,X)=>this.getDatumId(X)),ri(this.id,"innerCircle",B,[this.innerCircleSelection],H.innerCircle),sf(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),sf(this,"sector",this.ctx.animationManager,this.labelSelection),sf(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),sf(this,"inner",this.ctx.animationManager,this.innerLabelsSelection),this.previousRadiusScale.range=this.radiusScale.range}getDatumIdFromData(r){var L,B,H;let{calloutLabelKey:l,sectorLabelKey:m,legendItemKey:D}=this.properties;if((H=(B=(L=this.processedData)==null?void 0:L.reduced)==null?void 0:B.animationValidation)!=null&&H.uniqueKeys){if(D)return r[D];if(l)return r[l];if(m)return r[m]}}getDatumId(r){let{datumIndex:l}=r,m=this.getDatumIdFromData(r.datum);return String(m!=null?m:l)}};Fl.className="DonutSeries",Fl.type="donut";var YT={series:{title:{enabled:!0,fontWeight:"normal",fontSize:14,fontFamily:ko,color:Uc,spacing:5},calloutLabel:{enabled:!0,fontSize:12,fontFamily:ko,color:po,offset:3,minAngle:0},sectorLabel:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:ko,color:Wc,positionOffset:0,positionRatio:.5},calloutLine:{length:10,strokeWidth:2},fillOpacity:1,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,rotation:0,sectorSpacing:1,shadow:{enabled:!1,color:pg,xOffset:3,yOffset:3,blur:5},innerLabels:{fontSize:12,fontFamily:ko,color:po,spacing:2}}},GS={series:{title:{enabled:!0,fontWeight:"normal",fontSize:14,fontFamily:ko,color:Uc,spacing:5},calloutLabel:{enabled:!0,fontSize:12,fontFamily:ko,color:po,offset:3,minAngle:0},sectorLabel:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:ko,color:Wc,positionOffset:0,positionRatio:.5},calloutLine:{length:10,strokeWidth:2},fillOpacity:1,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,rotation:0,sectorSpacing:1,shadow:{enabled:!1,color:pg,xOffset:3,yOffset:3,blur:5}}},I1=({takeColors:r,colorsCount:l})=>{let{fills:m,strokes:D}=r(l);return{fills:m,strokes:D,calloutLine:{colors:D}}},AL={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["polar"],identifier:"donut",moduleFactory:r=>new Fl(r),tooltipDefaults:{range:"exact"},themeTemplate:YT,paletteFactory:I1},Uv=class extends Ua{constructor(){super(...arguments),this.showInLegend=!1}};T([je(Ri)],Uv.prototype,"showInLegend",2);var Fp=class extends So{constructor(){super(...arguments),this.offset=3,this.minAngle=0,this.minSpacing=4,this.maxCollisionOffset=50,this.avoidCollisions=!0}};T([je(bi)],Fp.prototype,"offset",2),T([je(yn.restrict({min:0,max:360}))],Fp.prototype,"minAngle",2),T([je(bi)],Fp.prototype,"minSpacing",2),T([je(bi)],Fp.prototype,"maxCollisionOffset",2),T([je(Ri)],Fp.prototype,"avoidCollisions",2);var T1=class extends So{constructor(){super(...arguments),this.positionOffset=0,this.positionRatio=.5}};T([je(yn)],T1.prototype,"positionOffset",2),T([je(oa)],T1.prototype,"positionRatio",2);var Kv=class extends Hi{constructor(){super(...arguments),this.length=10,this.strokeWidth=1}};T([je(Ns,{optional:!0})],Kv.prototype,"colors",2),T([je(bi)],Kv.prototype,"length",2),T([je(bi)],Kv.prototype,"strokeWidth",2);var fa=class extends Vc{constructor(){super(...arguments),this.fills=Object.values(ar),this.strokes=Object.values(Id),this.fillOpacity=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.outerRadiusOffset=0,this.outerRadiusRatio=1,this.strokeWidth=1,this.sectorSpacing=0,this.hideZeroValueSectorsInLegend=!1,this.title=new Uv,this.shadow=new Dd,this.calloutLabel=new Fp,this.sectorLabel=new T1,this.calloutLine=new Kv,this.tooltip=new Tl}};T([je(Qt)],fa.prototype,"angleKey",2),T([je(Qt,{optional:!0})],fa.prototype,"angleName",2),T([je(Qt,{optional:!0})],fa.prototype,"angleFilterKey",2),T([je(Qt,{optional:!0})],fa.prototype,"radiusKey",2),T([je(Qt,{optional:!0})],fa.prototype,"radiusName",2),T([je(bi,{optional:!0})],fa.prototype,"radiusMin",2),T([je(bi,{optional:!0})],fa.prototype,"radiusMax",2),T([je(Qt,{optional:!0})],fa.prototype,"calloutLabelKey",2),T([je(Qt,{optional:!0})],fa.prototype,"calloutLabelName",2),T([je(Qt,{optional:!0})],fa.prototype,"sectorLabelKey",2),T([je(Qt,{optional:!0})],fa.prototype,"sectorLabelName",2),T([je(Qt,{optional:!0})],fa.prototype,"legendItemKey",2),T([je(Ns)],fa.prototype,"fills",2),T([je(Ns)],fa.prototype,"strokes",2),T([je(oa)],fa.prototype,"fillOpacity",2),T([je(oa)],fa.prototype,"strokeOpacity",2),T([je(bo)],fa.prototype,"lineDash",2),T([je(bi)],fa.prototype,"lineDashOffset",2),T([je(bi)],fa.prototype,"cornerRadius",2),T([je(_a,{optional:!0})],fa.prototype,"itemStyler",2),T([je(yn)],fa.prototype,"rotation",2),T([je(yn)],fa.prototype,"outerRadiusOffset",2),T([je(oa)],fa.prototype,"outerRadiusRatio",2),T([je(bi)],fa.prototype,"strokeWidth",2),T([je(yn)],fa.prototype,"sectorSpacing",2),T([je(Ri)],fa.prototype,"hideZeroValueSectorsInLegend",2),T([je(Si)],fa.prototype,"title",2),T([je(Si)],fa.prototype,"shadow",2),T([je(Si)],fa.prototype,"calloutLabel",2),T([je(Si)],fa.prototype,"sectorLabel",2),T([je(Si)],fa.prototype,"calloutLine",2),T([je(Si)],fa.prototype,"tooltip",2);var XT=class extends cu{constructor(r,l,m,D){super(r,l,m,D),this.angleKey=D.properties.angleKey,this.radiusKey=D.properties.radiusKey,this.calloutLabelKey=D.properties.calloutLabelKey,this.sectorLabelKey=D.properties.sectorLabelKey}},R1=class extends Lp{constructor(r){super({moduleCtx:r,pickModes:[1,0],useLabelLayer:!0,animationResetFns:{item:wg,label:bg}}),this.properties=new fa,this.phantomNodeData=void 0,this.backgroundGroup=new js({name:`${this.id}-background`,zIndex:0}),this.previousRadiusScale=new jc,this.radiusScale=new jc,this.phantomGroup=this.backgroundGroup.appendChild(new Ji({name:"phantom"})),this.phantomSelection=co.select(this.phantomGroup,()=>this.nodeFactory(),!1),this.calloutLabelGroup=this.contentGroup.appendChild(new Ji({name:"pieCalloutLabels"})),this.calloutLabelSelection=new co(this.calloutLabelGroup,Ji),this.zerosumRingsGroup=this.backgroundGroup.appendChild(new Ji({name:`${this.id}-zerosumRings`})),this.zerosumOuterRing=this.zerosumRingsGroup.appendChild(new og),this.surroundingRadius=void 0,this.NodeEvent=XT,this.angleScale=new jc,this.angleScale.domain=[0,1],this.angleScale.range=[-Math.PI,Math.PI].map(l=>l+Math.PI/2),this.phantomGroup.opacity=.2}get calloutNodeData(){var r;return(r=this.phantomNodeData)!=null?r:this.nodeData}attachSeries(r,l,m){super.attachSeries(r,l,m),r.appendChild(this.backgroundGroup)}detachSeries(r,l,m){super.detachSeries(r,l,m),r==null||r.removeChild(this.backgroundGroup)}setSeriesIndex(r){return super.setSeriesIndex(r)?(this.backgroundGroup.zIndex=[0,r],!0):!1}nodeFactory(){let r=new Ms;return r.miterLimit=1e9,r}getSeriesDomain(r){return r==="x"?this.angleScale.domain:this.radiusScale.domain}async processData(r){var Oe,Re,Be,Ue,Ne,Qe,nt,rt;if(this.data==null||!this.properties.isValid())return;let{visible:l,id:m,ctx:{legendManager:D}}=this,{angleKey:L,angleFilterKey:B,radiusKey:H,calloutLabelKey:U,sectorLabelKey:X,legendItemKey:Q}=this.properties,ie=(ut,Mt,Tt)=>l&&D.getItemEnabled({seriesId:m,itemId:Tt}),ue=!this.ctx.animationManager.isSkipped(),be=[],ye=[];Q?be.push(Xs(Q,"band",{id:"legendItemKey"})):U?be.push(Xs(U,"band",{id:"calloutLabelKey"})):X&&be.push(Xs(X,"band",{id:"sectorLabelKey"}));let Me=this.radiusScale.type,Ie=this.angleScale.type;H&&ye.push(rS(H,{id:"radiusValue",min:(Oe=this.properties.radiusMin)!=null?Oe:0,max:this.properties.radiusMax}),kn(H,Me,{id:"radiusRaw"}),xd("radiusValue",[0,1],1,(Re=this.properties.radiusMin)!=null?Re:0,this.properties.radiusMax)),U&&ye.push(kn(U,"band",{id:"calloutLabelValue"})),X&&ye.push(kn(X,"band",{id:"sectorLabelValue"})),Q&&ye.push(kn(Q,"band",{id:"legendItemValue"})),B&&ye.push(sS(B,Ie,{id:"angleFilterValue",onlyPositive:!0,validation:ie,invalidValue:0}),kn(B,Ie,{id:"angleFilterRaw"}),xd("angleFilterValue",[0,1],0,0)),ue&&((Ne=(Ue=(Be=this.processedData)==null?void 0:Be.reduced)==null?void 0:Ue.animationValidation)!=null&&Ne.uniqueKeys)&&be.length>0&&ye.push(Zm(this.id,this.processedData)),ye.push(qm()),await this.requestDataModel(r,this.data,{props:[...be,sS(L,Ie,{id:"angleValue",onlyPositive:!0,validation:ie,invalidValue:0}),kn(L,Ie,{id:"angleRaw"}),xd("angleValue",[0,1],0,0),...ye]});for(let ut of(rt=(nt=(Qe=this.processedData)==null?void 0:Qe.defs)==null?void 0:nt.values)!=null?rt:[]){let{id:Mt,missing:Tt,property:_t}=ut,Kt=kD(this,Tt);Mt!=="angleRaw"&&Kt>0&&vi.warnOnce(`no value was found for the key '${String(_t)}' on ${Kt} data element${Kt>1?"s":""}`)}this.animationState.transition("updateData")}maybeRefreshNodeData(){var m;if(!this.nodeDataRefresh)return;let{nodeData:r=[],phantomNodeData:l}=(m=this.createNodeData())!=null?m:{};this.nodeData=r,this.phantomNodeData=l,this.nodeDataRefresh=!1}getProcessedDataValues(r,l){let m=r.resolveColumnById(this,"angleValue",l),D=r.resolveColumnById(this,"angleRaw",l),L=this.properties.angleFilterKey!=null?r.resolveColumnById(this,"angleFilterValue",l):void 0,B=this.properties.angleFilterKey!=null?r.resolveColumnById(this,"angleFilterRaw",l):void 0,H=this.properties.radiusKey?r.resolveColumnById(this,"radiusValue",l):void 0,U=this.properties.radiusKey?r.resolveColumnById(this,"radiusRaw",l):void 0,X=this.properties.calloutLabelKey?r.resolveColumnById(this,"calloutLabelValue",l):void 0,Q=this.properties.sectorLabelKey?r.resolveColumnById(this,"sectorLabelValue",l):void 0,ie=this.properties.legendItemKey?r.resolveColumnById(this,"legendItemValue",l):void 0;return{angleValues:m,angleRawValues:D,angleFilterValues:L,angleFilterRawValues:B,radiusValues:H,radiusRawValues:U,calloutLabelValues:X,sectorLabelValues:Q,legendItemValues:ie}}createNodeData(){var Qe;let{id:r,processedData:l,dataModel:m,angleScale:D,ctx:{legendManager:L},visible:B}=this,{rotation:H}=this.properties;if(!(l!=null&&l.rawData.length)||!m||l.type!=="ungrouped")return;let{angleValues:U,angleRawValues:X,angleFilterValues:Q,angleFilterRawValues:ie,radiusValues:ue,radiusRawValues:be,calloutLabelValues:ye,sectorLabelValues:Me,legendItemValues:Ie}=this.getProcessedDataValues(m,l),Oe=(Qe=ie==null?void 0:ie.some((nt,rt)=>nt>X[rt]))!=null?Qe:!1,Re=0,Be=0,Ue=[],Ne=ie!=null?[]:void 0;return l.rawData.forEach((nt,rt)=>{var Zi;let ut=Oe?Q[rt]:U[rt],Mt=ie!=null&&!Oe?Math.sqrt(ie[rt]/X[rt]):1,Tt=D.convert(Re)+Ge(H);Re=ut,Be+=ut;let _t=D.convert(Re)+Ge(H),Kt=Math.abs(_t-Tt),gi=Tt+Kt/2,Ci=X[rt],li=((Zi=ue==null?void 0:ue[rt])!=null?Zi:1)*Mt,Bi=be==null?void 0:be[rt],Fi=Ie==null?void 0:Ie[rt],hn=this.getLabels(nt,gi,Kt,!0,ye==null?void 0:ye[rt],Me==null?void 0:Me[rt],Fi),ji=this.getSectorFormat(nt,rt,!1),An=ge({itemId:rt,series:this,datum:nt,datumIndex:rt,angleValue:Ci,midAngle:gi,midCos:Math.cos(gi),midSin:Math.sin(gi),startAngle:Tt,endAngle:_t,radius:li,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(li),0),sectorFormat:ji,radiusValue:Bi,legendItemValue:Fi,enabled:B&&L.getItemEnabled({seriesId:r,itemId:rt})},hn);Ue.push(An),Ne!=null&&Ne.push(He(ge({},An),{radius:1,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(1),0)}))}),this.zerosumOuterRing.visible=Be===0,{itemId:r,nodeData:Ue,labelData:Ue,phantomNodeData:Ne}}getLabels(r,l,m,D,L,B,H){let{calloutLabel:U,sectorLabel:X,legendItemKey:Q}=this.properties,ie=!D||U.enabled?this.properties.calloutLabelKey:void 0,ue=!D||X.enabled?this.properties.sectorLabelKey:void 0;if(!ie&&!ue&&!Q)return{};let be={datum:r,angleKey:this.properties.angleKey,angleName:this.properties.angleName,radiusKey:this.properties.radiusKey,radiusName:this.properties.radiusName,calloutLabelKey:this.properties.calloutLabelKey,calloutLabelName:this.properties.calloutLabelName,sectorLabelKey:this.properties.sectorLabelKey,sectorLabelName:this.properties.sectorLabelName,legendItemKey:this.properties.legendItemKey},ye={};return ie&&m>Ge(U.minAngle)&&(ye.calloutLabel=He(ge({},this.getTextAlignment(l)),{text:this.getLabelText(U,He(ge({},be),{value:L})),hidden:!1,collisionTextAlign:void 0,collisionOffsetY:0,box:void 0})),ue&&(ye.sectorLabel={text:this.getLabelText(X,He(ge({},be),{value:B}))}),Q!=null&&H!=null&&(ye.legendItem={key:Q,text:H}),ye}getTextAlignment(r){let l=[{textAlign:"center",textBaseline:"bottom"},{textAlign:"left",textBaseline:"middle"},{textAlign:"center",textBaseline:"hanging"},{textAlign:"right",textBaseline:"middle"}],m=Uh(r),D=-.75*Math.PI,L=m-D,B=Math.floor(L/(Math.PI/2)),H=bt(B,l.length);return l[H]}getSectorFormat(r,l,m){var Qe,nt,rt,ut,Mt,Tt,_t,Kt;let{angleKey:D,radiusKey:L,calloutLabelKey:B,sectorLabelKey:H,legendItemKey:U,fills:X,strokes:Q,itemStyler:ie}=this.properties,ue=Q[l%Q.length],{fill:be,fillOpacity:ye,stroke:Me,strokeWidth:Ie,strokeOpacity:Oe,lineDash:Re,lineDashOffset:Be,cornerRadius:Ue}=mn(m&&this.properties.highlightStyle.item,{fill:X.length>0?X[l%X.length]:void 0,stroke:ue,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.getOpacity()},this.properties),Ne;return ie&&(Ne=this.cachedDatumCallback(ws(this.getDatumIdFromData(r),m?"highlight":"hide"),()=>ie({datum:r,angleKey:D,radiusKey:L,calloutLabelKey:B,sectorLabelKey:H,legendItemKey:U,fill:be,strokeOpacity:Oe,stroke:Me,strokeWidth:Ie,fillOpacity:ye,lineDash:Re,lineDashOffset:Be,cornerRadius:Ue,highlighted:m,seriesId:this.id}))),{fill:(Qe=Ne==null?void 0:Ne.fill)!=null?Qe:be,fillOpacity:(nt=Ne==null?void 0:Ne.fillOpacity)!=null?nt:ye,stroke:(rt=Ne==null?void 0:Ne.stroke)!=null?rt:Me,strokeWidth:(ut=Ne==null?void 0:Ne.strokeWidth)!=null?ut:Ie,strokeOpacity:(Mt=Ne==null?void 0:Ne.strokeOpacity)!=null?Mt:Oe,lineDash:(Tt=Ne==null?void 0:Ne.lineDash)!=null?Tt:Re,lineDashOffset:(_t=Ne==null?void 0:Ne.lineDashOffset)!=null?_t:Be,cornerRadius:(Kt=Ne==null?void 0:Ne.cornerRadius)!=null?Kt:Ue}}getOuterRadius(){return Math.max(this.radius*this.properties.outerRadiusRatio+this.properties.outerRadiusOffset,0)}updateRadiusScale(r){var D;let l=[0,this.getOuterRadius()];this.radiusScale.range=l,r&&(this.previousRadiusScale.range=l);let m=L=>He(ge({},L),{innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(L.radius),0)});this.nodeData=this.nodeData.map(m),this.phantomNodeData=(D=this.phantomNodeData)==null?void 0:D.map(m)}getTitleTranslationY(){var L,B;let r=Math.max(0,this.radiusScale.range[1]);if(r===0)return NaN;let m=2+((B=(L=this.properties.title)==null?void 0:L.spacing)!=null?B:0),D=Math.max(0,-r);return-r-m-D}update({seriesRect:r}){let{title:l}=this.properties,m={seriesRectWidth:r==null?void 0:r.width,seriesRectHeight:r==null?void 0:r.height},D=Pc(this.nodeDataDependencies,m)!=null;if(D&&(this._nodeDataDependencies=m),this.maybeRefreshNodeData(),this.updateTitleNodes(),this.updateRadiusScale(D),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.backgroundGroup.translationX=this.centerX,this.backgroundGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),l){let L=this.getTitleTranslationY();l.node.y=isFinite(L)?L:0;let B=l.node.getBBox();l.node.visible=l.enabled&&isFinite(L)&&!this.bboxIntersectsSurroundingSeries(B)}this.zerosumOuterRing.fillOpacity=0,this.zerosumOuterRing.stroke=this.properties.calloutLabel.color,this.zerosumOuterRing.strokeWidth=1,this.zerosumOuterRing.strokeOpacity=1,this.updateNodeMidPoint(),this.updateSelections(),this.updateNodes(r)}updateTitleNodes(){var m,D;let{oldTitle:r}=this,{title:l}=this.properties;r!==l&&(r&&((m=this.labelGroup)==null||m.removeChild(r.node)),l&&(l.node.textBaseline="bottom",(D=this.labelGroup)==null||D.appendChild(l.node)),this.oldTitle=l)}updateNodeMidPoint(){var l;let r=m=>{let D=m.innerRadius+(m.outerRadius-m.innerRadius)/2;m.midPoint={x:m.midCos*Math.max(0,D),y:m.midSin*Math.max(0,D)}};this.nodeData.forEach(r),(l=this.phantomNodeData)==null||l.forEach(r)}updateSelections(){this.updateGroupSelection()}updateGroupSelection(){var X;let{itemSelection:r,highlightSelection:l,phantomSelection:m,highlightLabelSelection:D,calloutLabelSelection:L,labelSelection:B}=this,H=this.nodeData.map(Q=>He(ge({},Q),{sectorFormat:ge({},Q.sectorFormat)})),U=(Q,ie)=>{Q.update(ie,void 0,ue=>this.getDatumId(ue)),this.ctx.animationManager.isSkipped()&&Q.cleanup()};U(r,this.nodeData),U(l,H),U(m,(X=this.phantomNodeData)!=null?X:[]),L.update(this.calloutNodeData,Q=>{let ie=new Ar;ie.tag=0,ie.pointerEvents=1,Q.appendChild(ie);let ue=new hr;ue.tag=1,ue.pointerEvents=1,Q.appendChild(ue)}),B.update(this.nodeData),D.update(H)}updateNodes(r){let l=this.ctx.highlightManager.getActiveHighlight(),{visible:m}=this;this.backgroundGroup.visible=m,this.contentGroup.visible=m,this.highlightGroup.visible=m&&(l==null?void 0:l.series)===this,this.highlightLabel.visible=m&&(l==null?void 0:l.series)===this,this.labelGroup&&(this.labelGroup.visible=m),this.contentGroup.opacity=this.getOpacity();let D=this.ctx.animationManager.isSkipped(),L=(B,H,U,X)=>{let Q=this.getSectorFormat(H.datum,H.itemId,X);H.sectorFormat.fill=Q.fill,H.sectorFormat.stroke=Q.stroke,D&&(B.startAngle=H.startAngle,B.endAngle=H.endAngle,B.innerRadius=H.innerRadius,B.outerRadius=H.outerRadius),(X||D)&&(B.fill=Q.fill,B.stroke=Q.stroke),B.strokeWidth=Q.strokeWidth,B.fillOpacity=Q.fillOpacity,B.strokeOpacity=Q.strokeOpacity,B.lineDash=Q.lineDash,B.lineDashOffset=Q.lineDashOffset,B.cornerRadius=Q.cornerRadius,B.fillShadow=this.properties.shadow;let ie=Math.max((this.properties.sectorSpacing+(Q.stroke!=null?Q.strokeWidth:0))/2,0);B.inset=ie,B.lineJoin=this.properties.sectorSpacing>=0||ie>0?"miter":"round"};this.itemSelection.each((B,H,U)=>L(B,H,U,!1)),this.highlightSelection.each((B,H,U)=>{L(B,H,U,!0),B.visible=H.itemId===(l==null?void 0:l.itemId)}),this.phantomSelection.each((B,H,U)=>L(B,H,U,!1)),this.updateCalloutLineNodes(),this.updateCalloutLabelNodes(r),this.updateSectorLabelNodes(),this.updateZerosumRings(),this.animationState.transition("update")}updateCalloutLineNodes(){var B;let{calloutLine:r}=this.properties,l=r.length,m=r.strokeWidth,D=(B=r.colors)!=null?B:this.properties.strokes,{offset:L}=this.properties.calloutLabel;this.calloutLabelSelection.selectByTag(0).forEach((H,U)=>{var ue;let X=H.datum,{calloutLabel:Q,outerRadius:ie}=X;if(Q!=null&&Q.text&&!Q.hidden&&ie!==0){H.visible=!0,H.strokeWidth=m,H.stroke=D[U%D.length],H.fill=void 0;let be=X.midCos*ie,ye=X.midSin*ie,Me=X.midCos*(ie+l),Ie=X.midSin*(ie+l);if(((ue=Q.collisionTextAlign)!=null?ue:Q.collisionOffsetY!==0)&&Q.box!=null){let Re=Q.box,Be=Me,Ue=Ie;Me<Re.x?Be=Re.x:Me>Re.x+Re.width&&(Be=Re.x+Re.width),Ie<Re.y?Ue=Re.y:Ie>Re.y+Re.height&&(Ue=Re.y+Re.height);let Ne=Be-Me,Qe=Ue-Ie,nt=Math.sqrt(Math.pow(Ne,2)+Math.pow(Qe,2)),rt=nt-L;rt>0&&(Me=Me+Ne*rt/nt,Ie=Ie+Qe*rt/nt)}H.x1=be,H.y1=ye,H.x2=Me,H.y2=Ie}else H.visible=!1})}getLabelOverflow(r,l,m){let D=-this.centerX,L=D+m.width,B=-this.centerY,H=B+m.height,U=1,X=1;l.x+U<D?X=(l.x+l.width-D)/l.width:l.x+l.width-U>L&&(X=(L-l.x)/l.width);let Q=l.y+U<B||l.y+l.height-U>H,ie=X===1?r.length:Math.floor(r.length*X)-1,ue=this.bboxIntersectsSurroundingSeries(l);return{textLength:ie,hasVerticalOverflow:Q,hasSurroundingSeriesOverflow:ue}}bboxIntersectsSurroundingSeries(r){let{surroundingRadius:l}=this;if(l==null)return!1;let m=[{x:r.x,y:r.y},{x:r.x+r.width,y:r.y},{x:r.x+r.width,y:r.y+r.height},{x:r.x,y:r.y+r.height}],D=l**2;return m.some(L=>L.x**2+L.y**2>D)}computeCalloutLabelCollisionOffsets(){let{radiusScale:r}=this,{calloutLabel:l,calloutLine:m}=this.properties,{offset:D,minSpacing:L}=l,B=r.convert(0),H=Re=>!Re.calloutLabel||Re.outerRadius===0,U=this.calloutNodeData,X=U.filter(Re=>!H(Re));if(X.forEach(Re=>{let Be=Re.calloutLabel;Be!=null&&(Be.hidden=!1,Be.collisionTextAlign=void 0,Be.collisionOffsetY=0)}),X.length<=1)return;let Q=X.filter(Re=>Re.midCos<0).sort((Re,Be)=>Re.midSin-Be.midSin),ie=X.filter(Re=>Re.midCos>=0).sort((Re,Be)=>Re.midSin-Be.midSin),ue=X.filter(Re=>{var Be;return Re.midSin<0&&((Be=Re.calloutLabel)==null?void 0:Be.textAlign)==="center"}).sort((Re,Be)=>Re.midCos-Be.midCos),be=X.filter(Re=>{var Be;return Re.midSin>=0&&((Be=Re.calloutLabel)==null?void 0:Be.textAlign)==="center"}).sort((Re,Be)=>Re.midCos-Be.midCos),ye=Re=>{var ut;let Be=Re.calloutLabel;if(Be==null)return ft.zero.clone();let Ue=Re.outerRadius+m.length+D,Ne=Re.midCos*Ue,Qe=Re.midSin*Ue+Be.collisionOffsetY,nt=(ut=Be.collisionTextAlign)!=null?ut:Be.textAlign,rt=Be.textBaseline;return hr.computeBBox(Be.text,Ne,Qe,{font:this.properties.calloutLabel,textAlign:nt,textBaseline:rt})},Me=(Re,Be,Ue)=>{let Ne=ye(Re).grow(L/2),Qe=ye(Be).grow(L/2);if(Ne.x<Qe.x+Qe.width&&Ne.x+Ne.width>Qe.x&&(Ue==="to-top"?Ne.y<Qe.y+Qe.height:Ne.y+Ne.height>Qe.y)){let rt=Ue==="to-top"?Ne.y-Qe.y-Qe.height:Ne.y+Ne.height-Qe.y;Be.calloutLabel.collisionOffsetY=rt}},Ie=Re=>{let Be=Re.slice().sort((Ne,Qe)=>Math.abs(Ne.midSin)-Math.abs(Qe.midSin))[0],Ue=Re.indexOf(Be);for(let Ne=Ue-1;Ne>=0;Ne--){let Qe=Re[Ne+1],nt=Re[Ne];Me(Qe,nt,"to-top")}for(let Ne=Ue+1;Ne<Re.length;Ne++){let Qe=Re[Ne-1],nt=Re[Ne];Me(Qe,nt,"to-bottom")}},Oe=Re=>{let Be=X.some(ut=>ut.calloutLabel.collisionOffsetY!==0),Ue=Re.map(ut=>ye(ut)),Ne=Ue.map(ut=>ut.clone().grow(L/2)),Qe=!1;for(let ut=0;ut<Ne.length&&!Qe;ut++){let Mt=Ne[ut];for(let Tt=ut+1;Tt<Re.length;Tt++){let _t=Ne[Tt];if(Mt.collidesBBox(_t)){Qe=!0;break}}}let nt=U.map(ut=>{let{startAngle:Mt,endAngle:Tt,outerRadius:_t}=ut;return{startAngle:Mt,endAngle:Tt,innerRadius:B,outerRadius:_t}}),rt=Ue.some(ut=>nt.some(Mt=>FS(ut,Mt)));!Qe&&!Be&&!rt||Re.filter(ut=>ut.calloutLabel.textAlign==="center").forEach(ut=>{let Mt=ut.calloutLabel;ut.midCos<0?Mt.collisionTextAlign="right":ut.midCos>0?Mt.collisionTextAlign="left":Mt.collisionTextAlign="center"})};Ie(Q),Ie(ie),Oe(ue),Oe(be)}updateCalloutLabelNodes(r){let{radiusScale:l}=this,{calloutLabel:m,calloutLine:D}=this.properties,L=D.length,{offset:B,color:H}=m,U=new hr;this.calloutLabelSelection.selectByTag(1).forEach(X=>{var Ne;let{datum:Q}=X,ie=Q.calloutLabel,ue=l.convert(Q.radius),be=Math.max(0,ue);if(!(ie!=null&&ie.text)||be===0||ie.hidden){X.visible=!1;return}let ye=be+L+B,Me=Q.midCos*ye,Ie=Q.midSin*ye+ie.collisionOffsetY,Oe={textAlign:(Ne=ie.collisionTextAlign)!=null?Ne:ie.textAlign,textBaseline:ie.textBaseline};U.text=ie.text,U.x=Me,U.y=Ie,U.setFont(this.properties.calloutLabel),U.setAlign(Oe);let Re=U.getBBox(),Be=ie.text,Ue=!0;if(m.avoidCollisions){let{textLength:Qe,hasVerticalOverflow:nt}=this.getLabelOverflow(ie.text,Re,r);Be=ie.text.length===Qe?ie.text:`${ie.text.substring(0,Qe)}\u2026`,Ue=!nt}X.text=Be,X.x=Me,X.y=Ie,X.setFont(this.properties.calloutLabel),X.setAlign(Oe),X.fill=H,X.visible=Ue})}computeLabelsBBox(r,l){let{calloutLabel:m,calloutLine:D}=this.properties,L=D.length,{offset:B,maxCollisionOffset:H,minSpacing:U}=m;if(!m.avoidCollisions)return null;this.maybeRefreshNodeData(),this.updateRadiusScale(!1),this.computeCalloutLabelCollisionOffsets();let X=[],Q=new hr,ie,{title:ue}=this.properties;if(ue!=null&&ue.text&&ue.enabled){let be=this.getTitleTranslationY();isFinite(be)&&(Q.text=ue.text,Q.x=0,Q.y=be,Q.setFont(ue),Q.setAlign({textBaseline:"bottom",textAlign:"center"}),ie=Q.getBBox(),X.push(ie))}return this.calloutNodeData.forEach(be=>{var Be;let ye=be.calloutLabel;if(!ye||be.outerRadius===0)return null;let Me=be.outerRadius+L+B,Ie=be.midCos*Me,Oe=be.midSin*Me+ye.collisionOffsetY;Q.text=ye.text,Q.x=Ie,Q.y=Oe,Q.setFont(this.properties.calloutLabel),Q.setAlign({textAlign:(Be=ye.collisionTextAlign)!=null?Be:ye.textAlign,textBaseline:ye.textBaseline});let Re=Q.getBBox();if(ye.box=Re,Math.abs(ye.collisionOffsetY)>H){ye.hidden=!0;return}if(ie){let Ue=-this.centerY,Ne=new ft(ie.x-U,Ue,ie.width+2*U,ie.y+ie.height+U-Ue);if(Re.collidesBBox(Ne)){ye.hidden=!0;return}}if(r.hideWhenNecessary){let{textLength:Ue,hasVerticalOverflow:Ne,hasSurroundingSeriesOverflow:Qe}=this.getLabelOverflow(ye.text,Re,l),nt=ye.text.length>2&&Ue<2;if(Ne||nt||Qe){ye.hidden=!0;return}}ye.hidden=!1,X.push(Re)}),X.length===0?null:ft.merge(X)}updateSectorLabelNodes(){var be;let{radiusScale:r}=this,l=r.convert(0),{fontSize:m,fontStyle:D,fontWeight:L,fontFamily:B,positionOffset:H,positionRatio:U,color:X}=this.properties.sectorLabel,Q=l>0,ie=((be=this.ctx.legendManager.getData(this.id))==null?void 0:be.filter(ye=>ye.enabled).length)===1,ue=(ye,Me)=>{let{sectorLabel:Ie,outerRadius:Oe,startAngle:Re,endAngle:Be}=Me,Ue=!1;if(Ie&&Oe!==0){let Ne=l*(1-U)+Oe*U+H;ye.fill=X,ye.fontStyle=D,ye.fontWeight=L,ye.fontSize=m,ye.fontFamily=B,ye.text=Ie.text,!Q&&ie?(ye.x=0,ye.y=0):(ye.x=Me.midCos*Ne,ye.y=Me.midSin*Ne),ye.textAlign="center",ye.textBaseline="middle";let nt=ye.getBBox(),rt=[[nt.x,nt.y],[nt.x+nt.width,nt.y],[nt.x+nt.width,nt.y+nt.height],[nt.x,nt.y+nt.height]],ut={startAngle:Re,endAngle:Be,innerRadius:l,outerRadius:Oe};rt.every(([Mt,Tt])=>kk(Mt,Tt,ut))&&(Ue=!0)}ye.visible=Ue};this.labelSelection.each(ue),this.highlightLabelSelection.each(ue)}updateZerosumRings(){this.zerosumOuterRing.size=this.getOuterRadius()*2}pickNodeClosestDatum(r){return Zb(this,r)}getTooltipContent(r){var ut,Mt,Tt;let{id:l,dataModel:m,processedData:D,properties:L}=this,{legendItemKey:B,calloutLabelKey:H,calloutLabelName:U,sectorLabelKey:X,sectorLabelName:Q,angleKey:ie,angleName:ue,radiusKey:be,radiusName:ye,tooltip:Me}=L,Ie=this.properties.title.text;if(!m||!D||D.rawData.length===0)return;let{datumIndex:Oe}=r,Re=D.rawData[Oe],{angleRawValues:Be,legendItemValues:Ue,calloutLabelValues:Ne,sectorLabelValues:Qe}=this.getProcessedDataValues(m,D),nt=Be[Oe],rt=(Tt=(Mt=(ut=Ue==null?void 0:Ue[Oe])!=null?ut:H===ie||Ne==null?void 0:Ne[Oe])!=null?Mt:X===ie||Qe==null?void 0:Qe[Oe])!=null?Tt:ue;return Me.formatTooltip({title:Ie,symbol:this.legendItemSymbol(Oe),data:[{label:rt,fallbackLabel:ie,value:String(nt)}]},ge({seriesId:l,datum:Re,title:ue,legendItemKey:B,calloutLabelKey:H,calloutLabelName:U,sectorLabelKey:X,sectorLabelName:Q,angleKey:ie,angleName:ue,radiusKey:be,radiusName:ye},this.getSectorFormat(Re,Oe,!1)))}legendItemSymbol(r){var D;let l=(D=this.processedData)==null?void 0:D.rawData[r],m=this.getSectorFormat(l,r,!1);return{marker:{fill:m.fill,stroke:m.stroke,fillOpacity:this.properties.fillOpacity,strokeOpacity:this.properties.strokeOpacity,strokeWidth:this.properties.strokeWidth}}}getLegendData(r){var Be,Ue,Ne,Qe,nt;let{id:l,visible:m,processedData:D,dataModel:L,ctx:{legendManager:B}}=this;if(!L||!D||r!=="category")return[];let{angleKey:H,calloutLabelKey:U,sectorLabelKey:X,legendItemKey:Q,showInLegend:ie}=this.properties;if(!Q&&(!U||U===H)&&(!X||X===H))return[];let{calloutLabelValues:ue,sectorLabelValues:be,legendItemValues:ye,angleRawValues:Me}=this.getProcessedDataValues(L,D),Ie=((Be=this.properties.title)==null?void 0:Be.showInLegend)&&this.properties.title.text,Oe=[],Re=this.properties.hideZeroValueSectorsInLegend;for(let rt=0;rt<D.rawData.length;rt++){let ut=D.rawData[rt],Mt=Me[rt];if(Re&&Mt===0)continue;let Tt=[];Ie&&Tt.push(Ie);let _t=this.getLabels(ut,2*Math.PI,2*Math.PI,!1,ue==null?void 0:ue[rt],be==null?void 0:be[rt],ye==null?void 0:ye[rt]);Q&&_t.legendItem!==void 0?Tt.push(_t.legendItem.text):U&&U!==H&&((Ue=_t.calloutLabel)==null?void 0:Ue.text)!==void 0?Tt.push((Ne=_t.calloutLabel)==null?void 0:Ne.text):X&&X!==H&&((Qe=_t.sectorLabel)==null?void 0:Qe.text)!==void 0&&Tt.push((nt=_t.sectorLabel)==null?void 0:nt.text),Tt.length!==0&&Oe.push({legendType:"category",id:l,datum:ut,itemId:rt,seriesId:l,enabled:m&&B.getItemEnabled({seriesId:l,itemId:rt}),label:{text:Tt.join(" - ")},symbol:this.legendItemSymbol(rt),legendItemName:Q!=null?ut[Q]:void 0,hideInLegend:!ie})}return Oe}setLegendState(r){let{id:l,ctx:{legendManager:m,updateService:D}}=this;r.forEach((L,B)=>m.toggleItem({enabled:L,seriesId:l,itemId:B})),m.update(),D.update(4)}animateEmptyUpdateReady(r){let{animationManager:l}=this.ctx,m=qc(!0,this.properties.rotation,this.radiusScale,this.previousRadiusScale);ri(this.id,"nodes",l,[this.itemSelection,this.highlightSelection,this.phantomSelection],m.nodes,(D,L)=>this.getDatumId(L)),$n(this,"callout",l,this.calloutLabelSelection),$n(this,"sector",l,this.labelSelection),$n(this,"highlight",l,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}animateWaitingUpdateReady(){var be,ye,Me,Ie,Oe,Re,Be;let{itemSelection:r,highlightSelection:l,phantomSelection:m,processedData:D,radiusScale:L,previousRadiusScale:B}=this,{animationManager:H}=this.ctx,U=(ye=(be=D==null?void 0:D.reduced)==null?void 0:be.diff)==null?void 0:ye[this.id];this.ctx.animationManager.stopByAnimationGroupId(this.id);let X=((Me=U==null?void 0:U.moved.size)!=null?Me:0)===0,Q=((Ie=D==null?void 0:D.defs.keys.length)!=null?Ie:0)>0,ie=(Be=(Re=(Oe=D==null?void 0:D.reduced)==null?void 0:Oe.animationValidation)==null?void 0:Re.uniqueKeys)!=null?Be:!0;(!X||!Q||!ie)&&this.ctx.animationManager.skipCurrentBatch();let ue=qc(!1,this.properties.rotation,L,B);ri(this.id,"nodes",H,[r,l,m],ue.nodes,(Ue,Ne)=>this.getDatumId(Ne),U),$n(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),$n(this,"sector",this.ctx.animationManager,this.labelSelection),$n(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}animateClearingUpdateEmpty(){let{itemSelection:r,highlightSelection:l,phantomSelection:m,radiusScale:D,previousRadiusScale:L}=this,{animationManager:B}=this.ctx,H=qc(!1,this.properties.rotation,D,L);ri(this.id,"nodes",B,[r,l,m],H.nodes,(U,X)=>this.getDatumId(X)),sf(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),sf(this,"sector",this.ctx.animationManager,this.labelSelection),sf(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}getDatumIdFromData(r){var L,B,H;let{calloutLabelKey:l,sectorLabelKey:m,legendItemKey:D}=this.properties;if((H=(B=(L=this.processedData)==null?void 0:L.reduced)==null?void 0:B.animationValidation)!=null&&H.uniqueKeys){if(D)return r[D];if(l)return r[l];if(m)return r[m]}}getDatumId(r){let{datumIndex:l}=r,m=this.getDatumIdFromData(r.datum);return m!=null?String(m):`${l}`}};R1.className="PieSeries",R1.type="pie";var ZT={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["polar"],identifier:"pie",moduleFactory:r=>new R1(r),tooltipDefaults:{range:"exact"},themeTemplate:GS,paletteFactory:I1};function P1(){au.register(hS,Sh,uL,xL,mf,ML,wk,KT,AL,ZT,UT);for(let r of[$m,ap,Pv,dg,Qm])bs.register(r.type,{moduleFactory:l=>new r(l),hidden:r===dg})}function $T(){for(let r of au.modules){if(r.packageType==="enterprise"&&!ID(r)&&vi.errorOnce("Unexpected enterprise module registered: "+r.identifier),r.type==="root"&&r.themeTemplate)for(let l of r.chartTypes)j0.set(l,r.themeTemplate);if(r.type==="series"){if(r.chartTypes.length>1)throw new Error(`AG Charts - Module definition error: ${r.identifier}`);fr.register(r.identifier,r)}if(r.type==="series-option"&&r.themeTemplate)for(let l of r.seriesTypes)fr.setThemeTemplate(l,r.themeTemplate);if(r.type==="axis-option"&&r.themeTemplate)for(let l of r.axisTypes){let m=bs.getThemeTemplate(l),D=mn(r.themeTemplate,m);bs.setThemeTemplate(l,D)}r.type==="axis"&&bs.register(r.identifier,r),r.type==="legend"&&TD.register(r.identifier,r)}if(au.hasEnterpriseModules()){let r=ph();r.length>0&&vi.errorOnce("Enterprise modules expected but not registered: ",r)}}function Dk(r){return r.type==="sankey"||r.type==="chord"}var tl=class extends wd{getChartType(){return"flow-proportion"}async updateData(){await super.updateData();let{nodes:r}=this.getOptions();this.series.forEach(l=>{Dk(l)&&l.setChartNodes(r)})}performLayout(r){let{seriesRoot:l,annotationRoot:m}=this,{layoutBox:D}=r;D.shrink(this.seriesArea.padding.toJson());let L=D.clone();this.seriesRect=L,this.animationRect=L,l.visible=this.series.some(B=>B.visible);for(let B of[l,m])B.translationX=Math.floor(L.x),B.translationY=Math.floor(L.y);this.ctx.layoutManager.emitLayoutComplete(r,{series:{visible:l.visible,rect:L,paddedRect:L}})}};tl.className="FlowProportionChart",tl.type="flow-proportion";var bu=class extends Xh{constructor(){super(...arguments),this.shape="polygon",this.innerRadiusRatio=0,this.defaultTickMinSpacing=20}computeLabelsBBox(r,l){return null}computeRange(){}getAxisLinePoints(){}};T([je(Xn(["polygon","circle"],"a polar axis shape"))],bu.prototype,"shape",2),T([je(oa)],bu.prototype,"innerRadiusRatio",2);function Ek(r){return r.type==="radial-gauge"}function yf(r){return r.type==="linear-gauge"}var VS=class extends wd{getChartType(){return"gauge"}updateRadialGauge(r,l){let m=this.axes.find(Mt=>Mt.direction==="x");if(!(m instanceof bu))return;m.computeRange();let D=r.x,L=D+r.width,B=r.y,H=B+r.height,[U,X]=m.range,ie=dn(X-U)>Math.PI,ue=ie||zn(1.5*Math.PI,U,X),be=ie||zn(0*Math.PI,U,X),ye=ie||zn(.5*Math.PI,U,X),Me=ie||zn(1*Math.PI,U,X),Ie;Me&&!be?Ie="right":!Me&&be?Ie="left":Ie="center";let Oe;ue&&!ye?Oe="bottom":!ue&&ye?Oe="top":Oe="middle";let Re=Mk({startAngle:U,endAngle:X,innerRadius:0,outerRadius:.5}),Be=-(Re.x+Re.width/2)*2,Ue=-(Re.y+Re.height/2)*2,{minimumRadius:Ne=0,maximumRadius:Qe}=l,nt=Math.max(.5*Math.min(r.width/Re.width,r.height/Re.height),0),rt=Math.min(Qe!=null?Qe:1/0,Math.max(nt,Ne!=null?Ne:0)),ut=8;for(let Mt=0;Mt<ut;Mt+=1){let Tt=rt<=Ne||Mt===ut-1,_t=r.x+r.width/2+Be*rt,Kt=r.y+r.height/2+Ue*rt;m.translation.x=_t,m.translation.y=Kt,m.gridLength=rt,m.calculateLayout();let gi=m.computeLabelsBBox({hideWhenNecessary:Tt},r);if(Tt)break;let Ci=0;if(gi!=null){let xi=gi.x+_t,li=xi+gi.width,Bi=gi.y+Kt,Fi=Bi+gi.height;Ci=Math.max(B-Bi,D-xi,Fi-H,li-L,0)}if(Ci>0)rt=Math.max(rt-Ci,Ne);else break}m.translation.x=r.x+r.width/2+Be*rt,m.translation.y=r.y+r.height/2+Ue*rt,l.centerX=r.width/2+Be*rt,l.centerY=r.height/2+Ue*rt,l.radius=rt,l.textAlign=Ie,l.verticalAlign=Oe,(rt===0||rt>nt)&&vi.warnOnce("There was insufficient space to display the Radial Gauge.")}updateLinearGauge(r,l){let m=this.axes.find(Oe=>Oe.direction==="x"),D=this.axes.find(Oe=>Oe.direction==="y");if(!(m instanceof ia)||!(D instanceof ia))return r;let{horizontal:L,thickness:B}=l,H=0,U=0,X=new jc;X.domain=[0,100],X.range=L?m.range:D.range;let Q=X.ticks();L?H=l.computeInset("x",Q):U=l.computeInset("y",Q);let ie=r.width-Math.abs(H),ue=r.height-Math.abs(U),be=Math.max(L?ie:B,0),ye=Math.max(L?B:ue,0),Me=r.x+(ie-be)/2+Math.max(H,0),Ie=r.y+(ue-ye)/2-Math.min(U,0);m.range=[0,be],m.gridLength=be,m.calculateLayout(),m.translation.x=Me,m.translation.y=Ie+(m.position==="bottom"?B:0),D.range=[0,ye],D.gridLength=ye,D.calculateLayout(),D.translation.x=Me+(D.position==="right"?B:0),D.translation.y=Ie,l.originX=Me-r.x,l.originY=Ie-r.y,(be===0||ye===0)&&vi.warnOnce("There was insufficient space to display the Linear Gauge.")}performLayout(r){let{seriesRoot:l,annotationRoot:m,series:D,seriesArea:L}=this,{layoutBox:B}=r,H=B.clone();B.shrink(L.padding.toJson());let U=this.series[0];Ek(U)?this.updateRadialGauge(B,U):yf(U)&&this.updateLinearGauge(B,U),this.axes.forEach(X=>X.update()),this.seriesRect=H.clone().translate(H.x-B.x,H.y-B.y),this.animationRect=B,l.visible=D.some(X=>X.visible);for(let X of[l,m])X.translationX=Math.floor(B.x),X.translationY=Math.floor(B.y);this.ctx.layoutManager.emitLayoutComplete(r,{series:{visible:l.visible,rect:H,paddedRect:B}})}getAriaLabel(){let r=[],l=this.getCaptionText();l.length!==0&&r.push(l);for(let D of this.series)r.push(D.getCaptionText());let m=r.join(". ");return this.ctx.localeManager.t("ariaAnnounceGaugeChart",{caption:m})}};VS.className="GaugeChart",VS.type="gauge";var bf=class extends wd{constructor(r,l){super(r,l)}getChartType(){return"hierarchy"}performLayout(r){let{seriesRoot:l,annotationRoot:m}=this,{layoutBox:D}=r;D.shrink(this.seriesArea.padding.toJson());let L=D.clone();this.seriesRect=L,this.animationRect=L;for(let B of[l,m])B.translationX=Math.floor(L.x),B.translationY=Math.floor(L.y);l.visible=this.series[0].visible,l.setClipRect(L.clone()),this.ctx.layoutManager.emitLayoutComplete(r,{series:{visible:!0,rect:L,paddedRect:L}})}getAriaLabel(){let r=this.getCaptionText();return this.ctx.localeManager.t("ariaAnnounceHierarchyChart",{caption:r})}};bf.className="HierarchyChart",bf.type="hierarchy";var jS=class extends wd{constructor(r,l){super(r,l),this.padding=new op(40),this.ctx.axisManager.axisGroup.zIndex=5}getChartType(){return"polar"}async performLayout(r){let{layoutBox:l}=r;l.shrink(this.seriesArea.padding.toJson());let m=l.clone();this.seriesRect=m,this.animationRect=m,this.seriesRoot.translationX=m.x,this.seriesRoot.translationY=m.y,await this.computeCircle(m),this.axes.forEach(D=>D.update()),this.ctx.layoutManager.emitLayoutComplete(r,{series:{visible:!0,rect:m,paddedRect:m}})}updateAxes(r,l,m,D){var X;let L=this.axes.find(Q=>Q.direction==="x"),B=this.axes.find(Q=>Q.direction==="y");if(!(L instanceof bu)||!(B instanceof bu))return;let H=L.scale,U=B.innerRadiusRatio;L.innerRadiusRatio=U,L.computeRange(),L.gridLength=D,B.gridAngles=(X=H.ticks)==null?void 0:X.call(H).map(Q=>H.convert(Q)),B.gridRange=L.range,B.range=[D,D*U],[L,B].forEach(Q=>{Q.translation.x=r.x+l,Q.translation.y=r.y+m,Q.calculateLayout()})}async computeCircle(r){let l=this.series.filter(Ik),m=this.axes.filter(QT),D=(Q,ie,ue)=>{this.updateAxes(r,Q,ie,ue),l.forEach(ye=>{ye.centerX=Q,ye.centerY=ie,ye.radius=ue});let be=l.filter(ye=>ye.type==="donut"||ye.type==="pie");if(be.length>1){let ye=be.map(Me=>{let Ie=Me.getInnerRadius();return{series:Me,innerRadius:Ie}}).sort((Me,Ie)=>Me.innerRadius-Ie.innerRadius);ye.at(-1).series.surroundingRadius=void 0;for(let Me=0;Me<ye.length-1;Me++)ye[Me].series.surroundingRadius=ye[Me+1].innerRadius}},L=r.width/2,B=r.height/2,H=Math.max(0,Math.min(r.width,r.height)/2),U=H;D(L,B,U);let X=async({hideWhenNecessary:Q=!1}={})=>{let ie=[];for(let ye of ce(m,l)){let Me=await ye.computeLabelsBBox({hideWhenNecessary:Q},r);Me&&ie.push(Me)}if(ie.length===0){D(L,B,H);return}let ue=ft.merge(ie),be=this.refineCircle(ue,U,r);D(be.centerX,be.centerY,be.radius),U=be.radius};await X(),await X(),await X(),await X({hideWhenNecessary:!0}),await X({hideWhenNecessary:!0});for(let Q of ce(m,l))await Q.computeLabelsBBox({hideWhenNecessary:!0},r);return{radius:U,centerX:L,centerY:B}}refineCircle(r,l,m){let L=-l,B=-l,H=l,U=l,X=Math.max(0,L-r.x),Q=Math.max(0,B-r.y),ie=Math.max(0,r.x+r.width-H),ue=Math.max(0,r.y+r.height-U);X=ie=Math.max(X,ie),Q=ue=Math.max(Q,ue);let be=m.width-X-ie,ye=m.height-Q-ue,Me=Math.min(be,ye)/2,Ie=.5*m.width/2,Oe=.5*m.height/2,Re=Math.min(Ie,Oe);if(Me<Re){Me=Re;let Ne=X+ie,Qe=Q+ue;if(2*Me+Qe>m.height){let nt=m.height-2*Me;Math.min(Q,ue)*2>nt?(Q=nt/2,ue=nt/2):Q>ue?Q=nt-ue:ue=nt-Q}if(2*Me+Ne>m.width){let nt=m.width-2*Me;Math.min(X,ie)*2>nt?(X=nt/2,ie=nt/2):X>ie?X=nt-ie:ie=nt-X}}let Be=X+2*Me+ie,Ue=Q+2*Me+ue;return{centerX:(m.width-Be)/2+X+Me,centerY:(m.height-Ue)/2+Q+Me,radius:Me}}};jS.className="PolarChart",jS.type="polar";function Ik(r){return r instanceof Lp}function QT(r){return r instanceof bu}var HS=class extends wd{constructor(r,l){super(r,l)}getChartType(){return"standalone"}performLayout(r){let{seriesRoot:l,annotationRoot:m}=this,{layoutBox:D}=r,L=D.clone();D.shrink(this.seriesArea.padding.toJson()),this.seriesRect=D,this.animationRect=D;for(let B of[l,m])B.translationX=Math.floor(D.x),B.translationY=Math.floor(D.y);l.visible=this.series[0].visible,this.ctx.layoutManager.emitLayoutComplete(r,{series:{visible:!0,rect:L,paddedRect:D}})}getAriaLabel(){let r=this.getCaptionText();return this.ctx.localeManager.t("ariaAnnounceHierarchyChart",{caption:r})}};HS.className="StandaloneChart",HS.type="standalone";var $b=Math.PI/180,WS=r=>r*$b,US=r=>-Math.log(Math.tan(Math.PI*.25+r*$b*.5)),Tk=r=>r/$b,L1=r=>(Math.atan(Math.exp(-r))-Math.PI*.25)/($b*.5),Rk=class t6{constructor(l,m){this.domain=l,this.range=m,this.type="mercator",this.bounds=t6.bounds(l)}static bounds(l){let[[m,D],[L,B]]=l,H=WS(m),U=US(D),X=WS(L),Q=US(B);return new ft(Math.min(H,X),Math.min(U,Q),Math.abs(X-H),Math.abs(Q-U))}static fixedScale(){return new t6([[Tk(0),L1(0)],[Tk(1),L1(1)]],[[0,0],[1,1]])}convert([l,m]){let[[D,L],[B,H]]=this.range,U=(B-D)/this.bounds.width,X=(H-L)/this.bounds.height;return[(WS(l)-this.bounds.x)*U+D,(US(m)-this.bounds.y)*X+L]}invert([l,m]){let[[D,L],[B,H]]=this.range,U=(B-D)/this.bounds.width,X=(H-L)/this.bounds.height;return[Tk((l-D)/U+this.bounds.x),L1((m-L)/X+this.bounds.y)]}};function Pk(r){return r.type==="map-shape"||r.type==="map-line"||r.type==="map-marker"||r.type==="map-shape-background"||r.type==="map-line-background"}var Td=class extends wd{constructor(r,l){super(r,l),this.xAxis=new $m(this.getModuleContext()),this.xAxis.position="bottom",this.yAxis=new $m(this.getModuleContext()),this.yAxis.position="left",this.ctx.zoomManager.updateAxes([this.xAxis,this.yAxis])}getChartType(){return"topology"}async updateData(){await super.updateData();let{topology:r}=this.getOptions();this.series.forEach(l=>{Pk(l)&&l.setChartTopology(r)})}performLayout(r){let{seriesRoot:l,annotationRoot:m}=this,{layoutBox:D}=r;D.shrink(this.seriesArea.padding.toJson());let L=D.clone();this.seriesRect=L,this.animationRect=L;let B=this.series.filter(Pk),H=B.reduce((Q,ie)=>{if(!ie.visible)return Q;let ue=ie.topologyBounds;return ue==null?Q:Q==null?ue:(Q.merge(ue),Q)},void 0),U;if(H!=null){let{lon0:Q,lat0:ie,lon1:ue,lat1:be}=H,ye=[[Q,ie],[ue,be]],Me=Rk.bounds(ye),{width:Ie,height:Oe}=L,Re=Math.min(Ie/Me.width,Oe/Me.height),Be=Me.width*Re,Ue=Me.height*Re,Ne=(Ie-Be)/2,Qe=(Oe-Ue)/2,nt=Ne,rt=Qe,ut=Ne+Be,Mt=Qe+Ue,Tt=this.ctx.zoomManager.getAxisZoom(this.xAxis.id),_t=this.ctx.zoomManager.getAxisZoom(this.yAxis.id),Kt=(ut-nt)/(Tt.max-Tt.min),gi=nt-Kt*Tt.min,Ci=(Mt-rt)/(1-_t.min-(1-_t.max)),xi=rt-Ci*(1-_t.max);U=new Rk(ye,[[gi,xi],[gi+Kt,xi+Ci]])}B.forEach(Q=>{Q.scale=U});let X=this.series.some(Q=>Q.visible);l.visible=X;for(let Q of[l,m])Q.translationX=Math.floor(L.x),Q.translationY=Math.floor(L.y),Q.setClipRect(L.clone());this.ctx.layoutManager.emitLayoutComplete(r,{series:{visible:X,rect:L,paddedRect:L}})}};Td.className="TopologyChart",Td.type="topology";var Yi={isEnterprise:!1},Yc=Symbol("IGNORED_PROP");function il(r,l){let m={};for(let[D,L]of Object.entries(l))L!==Yc&&Object.hasOwn(r,D)&&(m[D]=L);return m}function DL(r){return r.type==="radial-gauge"}function _p(r){return r.type==="linear-gauge"}function JT(r){let Ba=r,{animation:l,background:m,container:D,contextMenu:L,footnote:B,height:H,listeners:U,locale:X,minHeight:Q,minWidth:ie,padding:ue,subtitle:be,theme:ye,title:Me,width:Ie,type:Oe,cursor:Re,nodeClickRange:Be,tooltip:Ue,value:Ne,scale:Qe={},startAngle:nt,endAngle:rt,highlightStyle:ut,segmentation:Mt,bar:Tt,needle:_t,targets:Kt,outerRadius:gi,innerRadius:Ci,outerRadiusRatio:xi,innerRadiusRatio:li,cornerRadius:Bi,cornerMode:Fi,label:hn,secondaryLabel:ji,spacing:An}=Ba,Zi=wi(Ba,["animation","background","container","contextMenu","footnote","height","listeners","locale","minHeight","minWidth","padding","subtitle","theme","title","width","type","cursor","nodeClickRange","tooltip","value","scale","startAngle","endAngle","highlightStyle","segmentation","bar","needle","targets","outerRadius","innerRadius","outerRadiusRatio","innerRadiusRatio","cornerRadius","cornerMode","label","secondaryLabel","spacing"]),{fills:Ki,fillMode:Dn,fill:Qa,fillOpacity:Kn,stroke:pn,strokeWidth:Wn,strokeOpacity:$i,lineDash:Pi,lineDashOffset:en,min:Mn=0,max:Li=1,interval:Xi={},label:Ti={}}=Qe,Sn=il(r,{animation:l,background:m,container:D,contextMenu:L,footnote:B,height:H,listeners:U,locale:X,minHeight:Q,minWidth:ie,padding:ue,subtitle:be,theme:ye,title:Me,width:Ie}),Vi=il(Qe,{fills:Ki,fillMode:Dn,fill:Qa,fillOpacity:Kn,stroke:pn,strokeWidth:Wn,strokeOpacity:$i,lineDash:Pi,lineDashOffset:en}),Ja=il(r,ge({startAngle:Yc,endAngle:Yc,needle:_t!=null?ge({enabled:!0},_t):Yc,scale:Vi,type:Oe,cursor:Re,nodeClickRange:Be,listeners:U,tooltip:Ue,value:Ne,highlightStyle:ut,segmentation:Mt,bar:Tt,targets:Kt,outerRadius:gi,innerRadius:Ci,outerRadiusRatio:xi,innerRadiusRatio:li,cornerRadius:Bi,cornerMode:Fi,label:hn,secondaryLabel:ji,spacing:An},Zi)),oo=[{type:"angle-number",min:Mn,max:Li,startAngle:nt,endAngle:rt,interval:Xi!=null?Xi:{},label:Ti!=null?Ti:{}},{type:"radius-number"}];return He(ge({},Sn),{series:[Ja],axes:oo})}function EL(r){let Ba=r,{animation:l,background:m,container:D,contextMenu:L,footnote:B,height:H,listeners:U,locale:X,minHeight:Q,minWidth:ie,padding:ue,subtitle:be,theme:ye,title:Me,width:Ie,type:Oe,cursor:Re,nodeClickRange:Be,tooltip:Ue,value:Ne,scale:Qe={},direction:nt="vertical",thickness:rt,highlightStyle:ut,segmentation:Mt,bar:Tt,targets:_t,cornerRadius:Kt,cornerMode:gi,label:Ci}=Ba,xi=wi(Ba,["animation","background","container","contextMenu","footnote","height","listeners","locale","minHeight","minWidth","padding","subtitle","theme","title","width","type","cursor","nodeClickRange","tooltip","value","scale","direction","thickness","highlightStyle","segmentation","bar","targets","cornerRadius","cornerMode","label"]),{fills:li,fillMode:Bi,fill:Fi,fillOpacity:hn,stroke:ji,strokeWidth:An,strokeOpacity:Zi,lineDash:Ki,lineDashOffset:Dn,min:Qa=0,max:Kn=1,interval:pn={},label:Wn={}}=Qe,$i=il(r,{animation:l,background:m,container:D,contextMenu:L,footnote:B,height:H,listeners:U,locale:X,minHeight:Q,minWidth:ie,padding:ue,subtitle:be,theme:ye,title:Me,width:Ie}),Pi=il(Qe,{fills:li,fillMode:Bi,fill:Fi,fillOpacity:hn,stroke:ji,strokeWidth:An,strokeOpacity:Zi,lineDash:Ki,lineDashOffset:Dn}),en=il(r,ge({scale:Pi,type:Oe,cursor:Re,nodeClickRange:Be,listeners:U,tooltip:Ue,value:Ne,direction:nt,thickness:rt,highlightStyle:ut,segmentation:Mt,bar:Tt,targets:_t,cornerRadius:Kt,cornerMode:gi,label:Ci},xi)),Ca=Wn,{placement:Mn}=Ca,Li=wi(Ca,["placement"]),Xi,Ti,Sn=nt==="horizontal";Sn?(Xi=Mn==="before"?"top":"bottom",Ti="left"):(Xi=Mn==="after"?"right":"left",Ti="bottom");let Vi={type:"number",position:Xi,min:Qa,max:Kn,reverse:!Sn,interval:pn,label:Li,nice:!1},Ja={type:"number",position:Ti,min:0,max:1,label:{enabled:!1}},oo=Sn?[Vi,Ja]:[Ja,Vi];return He(ge({},$i),{series:[en],axes:oo})}function O1(r,l){if(l==null)return r;let L=l,{targets:m}=L,D=wi(L,["targets"]);return r=mn(r,D),r.targets!=null&&m!=null&&(r.targets=sm(r.targets,m)),r}function KS(r,l){if(DL(r)){let Re=O1(r,l);return JT(Re)}else if(_p(r)){let Re=O1(r,l);return EL(Re)}let{animation:m,background:D,container:L,contextMenu:B,footnote:H,height:U,listeners:X,locale:Q,minHeight:ie,minWidth:ue,padding:be,subtitle:ye,theme:Me,title:Ie,width:Oe}=r;return il(r,{animation:m,background:D,container:L,contextMenu:B,footnote:H,height:U,listeners:X,locale:Q,minHeight:ie,minWidth:ue,padding:be,subtitle:ye,theme:Me,title:Ie,width:Oe})}function Zr(r,l){if(Jn(r))return l(r)}var Cf=["ohlc","line","step-line","hlc","high-low","candlestick","hollow-candlestick"];function Qb(r,l,m){var gi,Ci;let Kt=r,{dateKey:D="date",highKey:L="high",openKey:B="open",lowKey:H="low",closeKey:U="close",volumeKey:X="volume",chartType:Q="candlestick",navigator:ie=!1,volume:ue=!0,rangeButtons:be=!0,statusBar:ye=!0,toolbar:Me=!0,zoom:Ie=!0,theme:Oe,data:Re}=Kt,Be=wi(Kt,["dateKey","highKey","openKey","lowKey","closeKey","volumeKey","chartType","navigator","volume","rangeButtons","statusBar","toolbar","zoom","theme","data"]),Ue=i(Oe,Q,D,L,H,B,U),Ne=eR(Oe,m,B,U,ue,X),nt={navigator:ge({enabled:ie},ue?{miniChart:{enabled:ie,series:[{type:"line",xKey:D,yKey:X,marker:{enabled:!1}}]},height:40,minHandle:{height:46},maxHandle:{height:46}}:null)},rt={annotations:{enabled:Me,toolbar:{enabled:Me},optionsToolbar:{enabled:Me},data:Re,xKey:D,volumeKey:ue?X:void 0}},ut=ye?{statusBar:{enabled:!0,data:Re,highKey:L,openKey:B,lowKey:H,closeKey:U,volumeKey:ue?X:void 0}}:null,Mt={zoom:{enabled:Ie,enableIndependentAxes:!0}},Tt={ranges:{enabled:be}},_t=ue?[{type:"number",position:"left",keys:[X],label:{enabled:!1},crosshair:{enabled:!1},gridLine:{enabled:!1},nice:!1,layoutConstraints:{stacked:!1,width:20,unit:"percentage",align:"end"}}]:[];return ge(ge(ge(ge(ge(ge({theme:ge({baseTheme:typeof Oe=="string"?Oe:"ag-financial"},mn(typeof Oe=="object"?Oe:null,{overrides:{common:{title:{padding:4},padding:{top:6,right:8,bottom:5},chartToolbar:{enabled:Me}}}})),animation:{enabled:!1},legend:{enabled:!1},series:[...Ne,...Ue],seriesArea:{clip:!0},axes:[{type:"number",position:"right",keys:[B,U,L,H],interval:{maxSpacing:(gi=Zr(Oe,xi=>{var li,Bi,Fi,hn,ji;return(ji=(hn=(Fi=(Bi=(li=xi.overrides)==null?void 0:li.common)==null?void 0:Bi.axes)==null?void 0:Fi.number)==null?void 0:hn.interval)==null?void 0:ji.maxSpacing}))!=null?gi:45},label:{format:(Ci=Zr(Oe,xi=>{var li,Bi,Fi,hn,ji;return(ji=(hn=(Fi=(Bi=(li=xi.overrides)==null?void 0:li.common)==null?void 0:Bi.axes)==null?void 0:Fi.number)==null?void 0:hn.label)==null?void 0:ji.format}))!=null?Ci:".2f"},crosshair:{enabled:!0,snap:!1},layoutConstraints:{stacked:!1,width:100,unit:"percentage",align:"start"}},..._t,{type:"ordinal-time",position:"bottom",line:{enabled:!1},label:{enabled:!0},crosshair:{enabled:!0}}],tooltip:{enabled:!1},data:Re},rt),nt),ut),Mt),Tt),Be)}function eR(r,l,m,D,L,B){var X;if(!L)return[];let H=Zr(r,Q=>{var ie,ue,be;return(be=(ue=(ie=Q.overrides)==null?void 0:ie.bar)==null?void 0:ue.series)==null?void 0:be.fill}),U=H?{fill:H}:{itemStyler({datum:Q}){let{up:ie,down:ue}=l().palette;return{fill:Q[m]<Q[D]?ie==null?void 0:ie.fill:ue==null?void 0:ue.fill}}};return[He(ge({type:"bar",xKey:"date",yKey:B,tooltip:{enabled:!1},highlight:{enabled:!1},fillOpacity:(X=Zr(r,Q=>{var ie,ue,be;return(be=(ue=(ie=Q.overrides)==null?void 0:ie.bar)==null?void 0:ue.series)==null?void 0:be.fillOpacity}))!=null?X:.5},U),{focusPriority:1,fastDataProcessing:!0})]}var Lk="range-area";function i(r,l,m,D,L,B,H){let U={xKey:m,openKey:B,closeKey:H,highKey:D,lowKey:L},X={xKey:m,yKey:H},Q={pickOutsideVisibleMinorAxis:!0};switch(l!=null?l:"candlestick"){case"ohlc":return o(Q,U);case"line":return v(Q,r,X);case"step-line":return I(Q,r,X);case"hlc":return N(Q,r,X,U);case"high-low":return W(Q,r,U);case"candlestick":return Z(Q,U);case"hollow-candlestick":return ee(Q,r,U);default:return vi.warnOnce(`unknown chart type: ${l}; expected one of: ${Cf.join(", ")}`),Z(Q,U)}}function o(r,l){return[ge(ge({type:"ohlc",focusPriority:0},r),l)]}function v(r,l,m){var D,L;return[He(ge(ge({type:"line",focusPriority:0},r),m),{stroke:(D=Zr(l,B=>{var H,U,X;return(X=(U=(H=B.overrides)==null?void 0:H.line)==null?void 0:U.series)==null?void 0:X.stroke}))!=null?D:nf,marker:(L=Zr(l,B=>{var H,U,X;return(X=(U=(H=B.overrides)==null?void 0:H.line)==null?void 0:U.series)==null?void 0:X.marker}))!=null?L:{enabled:!1}})]}function I(r,l,m){var D,L,B;return[He(ge(ge({type:"line",focusPriority:0},r),m),{stroke:(D=Zr(l,H=>{var U,X,Q;return(Q=(X=(U=H.overrides)==null?void 0:U.line)==null?void 0:X.series)==null?void 0:Q.stroke}))!=null?D:nf,interpolation:(L=Zr(l,H=>{var U,X,Q;return(Q=(X=(U=H.overrides)==null?void 0:U.line)==null?void 0:X.series)==null?void 0:Q.interpolation}))!=null?L:{type:"step"},marker:(B=Zr(l,H=>{var U,X,Q;return(Q=(X=(U=H.overrides)==null?void 0:U.line)==null?void 0:X.series)==null?void 0:Q.marker}))!=null?B:{enabled:!1}})]}function N(r,l,m,{xKey:D,highKey:L,closeKey:B,lowKey:H}){var X,Q,ie,ue,be,ye,Me,Ie,Oe,Re,Be;let U=le(Lk,l);return[He(ge({type:Lk,focusPriority:0},r),{xKey:D,yHighKey:L,yLowKey:B,fill:(X=U.fill)!=null?X:Ov,stroke:(Q=U.stroke)!=null?Q:zb,fillOpacity:(ie=Zr(l,Ue=>{var Ne,Qe,nt;return(nt=(Qe=(Ne=Ue.overrides)==null?void 0:Ne["range-area"])==null?void 0:Qe.series)==null?void 0:nt.fillOpacity}))!=null?ie:.3,strokeWidth:(ue=Zr(l,Ue=>{var Ne,Qe,nt;return(nt=(Qe=(Ne=Ue.overrides)==null?void 0:Ne["range-area"])==null?void 0:Qe.series)==null?void 0:nt.strokeWidth}))!=null?ue:2}),He(ge({type:Lk,focusPriority:0},r),{xKey:D,yHighKey:B,yLowKey:H,fill:(be=U.fill)!=null?be:Il,stroke:(ye=U.stroke)!=null?ye:kp,fillOpacity:(Me=Zr(l,Ue=>{var Ne,Qe,nt;return(nt=(Qe=(Ne=Ue.overrides)==null?void 0:Ne["range-area"])==null?void 0:Qe.series)==null?void 0:nt.fillOpacity}))!=null?Me:.3,strokeWidth:(Ie=Zr(l,Ue=>{var Ne,Qe,nt;return(nt=(Qe=(Ne=Ue.overrides)==null?void 0:Ne["range-area"])==null?void 0:Qe.series)==null?void 0:nt.strokeWidth}))!=null?Ie:2}),He(ge(ge({type:"line"},r),m),{stroke:(Oe=Zr(l,Ue=>{var Ne,Qe,nt;return(nt=(Qe=(Ne=Ue.overrides)==null?void 0:Ne.line)==null?void 0:Qe.series)==null?void 0:nt.stroke}))!=null?Oe:mg,strokeWidth:(Re=Zr(l,Ue=>{var Ne,Qe,nt;return(nt=(Qe=(Ne=Ue.overrides)==null?void 0:Ne.line)==null?void 0:Qe.series)==null?void 0:nt.strokeWidth}))!=null?Re:2,marker:(Be=Zr(l,Ue=>{var Ne,Qe,nt;return(nt=(Qe=(Ne=Ue.overrides)==null?void 0:Ne.line)==null?void 0:Qe.series)==null?void 0:nt.marker}))!=null?Be:{enabled:!1}})]}function W(r,l,{xKey:m,highKey:D,lowKey:L}){var H,U;let B=le("range-bar",l);return[He(ge({type:"range-bar"},r),{xKey:m,yHighKey:D,yLowKey:L,fill:(H=B.fill)!=null?H:Bb,stroke:(U=B.stroke)!=null?U:nf,tooltip:{range:"nearest"},focusPriority:0,fastDataProcessing:!0})]}function Z(r,l){return[ge(ge({type:"candlestick",focusPriority:0},r),l)]}function ee(r,l,m){var L,B;let D=Zr(l,H=>{var U,X,Q;return(Q=(X=(U=H.overrides)==null?void 0:U.candlestick)==null?void 0:X.series)==null?void 0:Q.item});return[He(ge(ge({type:"candlestick",focusPriority:0},r),m),{item:{up:{fill:(B=(L=D==null?void 0:D.up)==null?void 0:L.fill)!=null?B:"transparent"}}})]}function le(r,l){let m=Zr(l,L=>{var B,H,U;return(U=(H=(B=L.overrides)==null?void 0:B[r])==null?void 0:H.series)==null?void 0:U.fill}),D=Zr(l,L=>{var B,H,U;return(U=(H=(B=L.overrides)==null?void 0:B[r])==null?void 0:H.series)==null?void 0:U.stroke});return{fill:m,stroke:D}}var we={title:{enabled:!1},label:{enabled:!1},line:{enabled:!1},gridLine:{enabled:!1},crosshair:{enabled:!1,stroke:of,lineDash:[0],label:{enabled:!1}}},Ae=He(ge({},we),{nice:!1}),Ee={position:{type:"sparkline"}},Ve={style:[{stroke:Yr}],width:2},Je={number:{gridLine:Ve},time:{gridLine:Ve},category:{gridLine:Ve}},gt={overrides:{common:{animation:{enabled:!1},contextMenu:{enabled:!1},keyboard:{enabled:!1},background:{visible:!1},padding:{top:0,right:0,bottom:0,left:0},axes:{number:He(ge({},Ae),{interval:{values:[0]}}),log:ge({},Ae),time:ge({},Ae),category:ge({},we)}},bar:{series:{crisp:!1,label:{placement:"inside-end",padding:4},sparklineMode:!0},tooltip:He(ge({},Ee),{range:"nearest"}),axes:Je},line:{seriesArea:{padding:{top:2,right:2,bottom:2,left:2}},series:{sparklineMode:!0,strokeWidth:1,marker:{enabled:!1,size:3},tooltip:Ee}},area:{seriesArea:{padding:{top:1,right:0,bottom:1,left:0}},series:{strokeWidth:1,fillOpacity:.4,tooltip:Ee}}}},kt=Ys(xt);function xt(r,l){return typeof r=="string"?He(ge({},l),{baseTheme:r}):r!=null?He(ge({},r),{baseTheme:kt(r.baseTheme,l)}):l}function Ft(r){if(Array.isArray(r)&&r.length!==0){let l=r[0];if(typeof l=="number")return{data:r.map((D,L)=>({x:L,y:D})),series:[{xKey:"x",yKey:"y"}],datumKey:"y"};if(Array.isArray(l))return{data:r.map(D=>({x:D[0],y:D[1],datum:D})),series:[{xKey:"x",yKey:"y"}],datumKey:"datum"}}return{data:r}}function Ht(r,l){switch(r==null?void 0:r.type){case"number":{let{type:m,visible:D,stroke:L,strokeWidth:B,min:H,max:U,reverse:X}=r;return il(r,{type:m,reverse:X,min:H,max:U})}case"time":{let{type:m,visible:D,stroke:L,strokeWidth:B,min:H,max:U,reverse:X}=r;return il(r,{type:m,reverse:X,min:H,max:U})}case"category":{let{type:m,visible:D,stroke:L,strokeWidth:B,paddingInner:H,paddingOuter:U,reverse:X}=r;return il(r,{type:m,reverse:X,paddingInner:H,paddingOuter:U})}}return{type:l}}function Gt(r,l,m){var L,B,H,U;let D={};return(r==null?void 0:r.stroke)!=null&&(D.style=[{stroke:r==null?void 0:r.stroke}],(L=D.enabled)!=null||(D.enabled=!0)),(r==null?void 0:r.strokeWidth)!=null&&(D.width=r==null?void 0:r.strokeWidth,(B=D.enabled)!=null||(D.enabled=!0)),m.type==="bar"&&m.direction!=="horizontal"&&((H=D.enabled)!=null||(D.enabled=!0)),(r==null?void 0:r.visible)!=null&&(D.enabled=r.visible),(U=D.enabled)!=null||(D.enabled=l),D}var Wt=Ys((r,l,m)=>D=>{var ie,ue;let L=D.datum[D.xKey],B=D.datum[D.yKey],H=m!=null?D.datum[m]:D.datum,U=(ie=l==null?void 0:l.renderer)==null?void 0:ie.call(l,{context:r,datum:H,xValue:L,yValue:B});if(typeof U=="string")return U;let X=U==null?void 0:U.title,Q=U==null?void 0:U.content;return X!=null&&Q!=null?{heading:X,title:void 0,data:[{label:void 0,value:Q}]}:{heading:(ue=X!=null?X:Q)!=null?ue:B.toFixed(2),title:void 0,data:[]}});function di(r){let gi=r,{background:l,container:m,height:D,listeners:L,locale:B,minHeight:H,minWidth:U,padding:X,width:Q,theme:ie,data:ue,crosshair:be,axis:ye,min:Me,max:Ie,tooltip:Oe,context:Re}=gi,Be=wi(gi,["background","container","height","listeners","locale","minHeight","minWidth","padding","width","theme","data","crosshair","axis","min","max","tooltip","context"]),Ue=il(r,{background:l,container:m,height:D,listeners:L,locale:B,minHeight:H,minWidth:U,padding:X,width:Q,tooltip:Yc,context:Yc,data:Yc,crosshair:Yc,axis:Yc,min:Yc,max:Yc,theme:Yc}),{data:Ne,series:[Qe]=[],datumKey:nt}=Ft(ue),rt=Be;Qe!=null&&Object.assign(rt,Qe),rt.tooltip=He(ge({},Oe),{renderer:Wt(Re,Oe,nt)}),Ue.theme=kt(ie,gt),Ue.data=Ne,Ue.series=[rt];let ut=rt.type!=="bar"||rt.direction!=="horizontal",[Mt,Tt]=ut?["bottom","left"]:["left","bottom"],_t=ge(He(ge({},Ht(ye,"category")),{position:Mt}),il(r,{crosshair:be})),Kt=ge({type:"number",gridLine:Gt(ye,!1,r),position:Tt},il(r,{min:Me,max:Ie}));return Ue.axes=ut?[Kt,_t]:[_t,Kt],Ue}var Di={"price-volume":Qb,gauge:KS,sparkline:di},un={sparkline:Ft};function xn(r,l){var H,U,X,Q;let m=[],D=lu(r),L=fh(r),B=L?Mo.get(L):"unknown";for(let ie of hp)if(!(B!=="unknown"&&!ie.chartTypes.includes(B))){if(ie.type==="root"||ie.type==="legend"){let ue=r[ie.optionsKey];if(ue==null)continue;ie.optionsInnerKey?ue[ie.optionsInnerKey]&&(m.push(`${ie.optionsKey}.${ie.optionsInnerKey}`),delete ue[ie.optionsInnerKey]):(m.push(ie.optionsKey),delete r[ie.optionsKey])}else if(ie.type==="axis"){if(!("axes"in r)||!((H=r.axes)!=null&&H.some(ue=>ue.type===ie.identifier)))continue;m.push(`axis[type=${ie.identifier}]`),r.axes=r.axes.filter(ue=>ue.type!==ie.identifier)}else if(ie.type==="axis-option"){if(!("axes"in r)||!((U=r.axes)!=null&&U.some(ue=>ue[ie.optionsKey])))continue;m.push(`axis.${ie.optionsKey}`),r.axes.forEach(ue=>{ue[ie.optionsKey]&&delete ue[ie.optionsKey]})}else if(ie.type==="series"){if(ie.community||!((X=r.series)!=null&&X.some(ue=>ue.type===ie.identifier)))continue;m.push(`series[type=${ie.identifier}]`),r.series=r.series.filter(ue=>ue.type!==ie.identifier)}else if(ie.type==="series-option"){if(!((Q=r.series)!=null&&Q.some(ue=>ue[ie.optionsKey])))continue;m.push(`series.${ie.optionsKey}`),r.series.forEach(ue=>{ue[ie.optionsKey]&&delete ue[ie.optionsKey]})}}if(m.length&&!l){D&&(m=["AgCharts.createGauge"]);let ie="ag-charts-enterprise",ue="https://ag-grid.com/charts/javascript/installation/";r.mode==="integrated"&&(ie="ag-grid-charts-enterprise' or 'ag-grid-enterprise/charts-enterprise",ue="https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/"),vi.warnOnce([`unable to use these enterprise features as '${ie}' has not been loaded:`,"",...m,"",`See: ${ue}`].join(`
`))}}function va(r){let l="mode"in r&&r.mode==="integrated";for(let m of au.byType("root","legend")){let D=r[m.optionsKey],L=D!=null&&D.enabled===!1,B=!("removable"in m)||m.removable===!0||m.removable==="standalone-only"&&!l;L&&B&&delete r[m.optionsKey]}}var Un=Symbol("description"),Ra=Symbol("required");function Ui(r,l,m){let{errors:D}=or(r,l,m);for(let{message:L}of D)vi.warn(L);return D.length===0}function ya(r,l,m){let D=wa(m)?m:m[Un],L=D?`; expecting ${D}`:"";return`${r?`Option \`${r}\``:"Value"} cannot be set to \`${hL(l)}\`${L}, ignoring.`}function or(r,l,m=""){if(!Jn(r))return{valid:null,errors:[{path:m,value:r,message:ya(m,r,"an object")}]};let D=new Set(Object.keys(r)),L=[],B={};function H(U){return La(l)?`${m}[${U}]`:m?`${m}.${U}`:U}for(let[U,X]of Object.entries(l)){D.delete(U);let Q=r[U];if(!(!X[Ra]&&typeof Q=="undefined"))if(gl(X))X(Q)?B[U]=Q:L.push({key:U,path:m,value:Q,message:ya(H(U),Q,X)});else{let ie=or(Q,X,H(U));B[U]=ie.valid,L.push(...ie.errors)}}for(let U of D)L.push({key:U,path:m,unknown:!0,message:`Unknown option \`${H(U)}\`, ignoring.`});return{valid:B,errors:L}}function ba(r,l){return Object.assign(m=>r(m),{[Un]:l})}var _l=(...r)=>ba(l=>r.some(m=>m(l)),r.map(l=>l[Un]).filter(Boolean).join(" or ")),Ok=ba(La,"an array"),IL=ba(Oh,"a boolean"),qS=ba(gl,"a function"),YS=ba(ea,"a number"),Jb=ba(Jn,"an object"),Cu=ba(wa,"a string"),Xc=(r,l=!0)=>ba(m=>ea(m)&&(m>r||l&&m===r),`a number greater than ${l?"or equal to ":""}${r}`),Np=(r,l)=>ba(m=>ea(m)&&m>=r&&m<=l,`a number between ${r} and ${l} inclusive`),rr=Xc(0),Su=Np(0,1),eC=(r,l)=>ba(m=>La(m)&&m.every(r),l!=null?l:`${r[Un]} array`);function uc(r){return r!=null&&r.up||r!=null&&r.down||r!=null&&r.neutral?"user-full":r!=null&&r.fills||r!=null&&r.strokes?"user-indexed":"inbuilt"}var qv="white",Yv={get cartesian(){return{seriesTypes:Mo.cartesianTypes,commonOptions:["zoom","navigator"]}},get polar(){return{seriesTypes:Mo.polarTypes,commonOptions:[]}},get hierarchy(){return{seriesTypes:Mo.hierarchyTypes,commonOptions:[]}},get topology(){return{seriesTypes:Mo.topologyTypes,commonOptions:[]}},get"flow-proportion"(){return{seriesTypes:Mo.flowProportionTypes,commonOptions:[]}},get standalone(){return{seriesTypes:Mo.standaloneTypes,commonOptions:[]}},get gauge(){return{seriesTypes:Mo.gaugeTypes,commonOptions:[]}}},FO={"radial-gauge":!0,"linear-gauge":!0};function XS(r){return FO[r]===!0}var _O=Object.values(Yv).reduce((r,{commonOptions:l})=>r.concat(l),[]),wu=class i6{static getAxisDefaults(l){return mn(l,{title:{enabled:!1,text:"Axis Title",spacing:25,fontWeight:"normal",fontSize:13,fontFamily:ko,color:po},label:{fontSize:12,fontFamily:ko,spacing:11,color:po,avoidCollisions:!0},line:{enabled:!0,width:1,stroke:_b},tick:{enabled:!1,width:1,stroke:_b},gridLine:{enabled:!0,style:[{stroke:Yr,lineDash:[]}]},crossLines:{enabled:!1,fill:Nb,stroke:Nb,fillOpacity:.1,strokeWidth:1,label:{enabled:!1,fontSize:12,fontFamily:ko,padding:5,color:po}},crosshair:{enabled:!0}})}getChartDefaults(){return{minHeight:300,minWidth:300,background:{visible:!0,fill:gg},padding:{top:Ad,right:Ad,bottom:Ad,left:Ad},keyboard:{enabled:!0},title:{enabled:!1,text:"Title",fontWeight:"normal",fontSize:17,fontFamily:ko,color:po,wrapping:"hyphenate",layoutStyle:Mp,textAlign:tf},subtitle:{enabled:!1,text:"Subtitle",spacing:20,fontSize:13,fontFamily:ko,color:Uc,wrapping:"hyphenate",layoutStyle:Mp,textAlign:tf},footnote:{enabled:!1,text:"Footnote",spacing:20,fontSize:13,fontFamily:ko,color:"rgb(140, 140, 140)",wrapping:"hyphenate",layoutStyle:Mp,textAlign:tf},legend:{position:"bottom",spacing:30,listeners:{},toggleSeries:!0,item:{paddingX:16,paddingY:8,marker:{size:15,padding:8},showSeriesStroke:!0,label:{color:po,fontSize:12,fontFamily:ko}},reverseOrder:!1,pagination:{marker:{size:12},activeStyle:{fill:po},inactiveStyle:{fill:Uc},highlightStyle:{fill:po},label:{color:po}}},tooltip:{enabled:!0,darkTheme:Fb,delay:0},overlays:{darkTheme:Fb},listeners:{}}}constructor(l={}){let{overrides:m,palette:D}=Ur(l),L=this.createChartConfigPerChartType(this.getDefaults()),B={};m&&this.mergeOverrides(L,B,m);let Q=this.getDefaultColors(),{fills:H,strokes:U}=Q,X=wi(Q,["fills","strokes"]);this.palette=Xl(mn(D,ge({fills:Object.values(H),strokes:Object.values(U)},X))),this.paletteType=uc(D),this.config=Xl(this.templateTheme(L)),this.presets=Xl(B)}mergeOverrides(l,m,D){for(let{seriesTypes:L,commonOptions:B}of Object.values(Yv)){let H=ge({},D.common);for(let U of _O)B.includes(U)||delete H[U];if(H)for(let U of L){let X=U;XS(X)||(l[X]=mn(H,l[X]))}}Mo.seriesTypes.forEach(L=>{let B=L,H=D[B];XS(B)?m[B]=H:l[B]=mn(H,l[B])})}createChartConfigPerChartType(l){var m;for(let[D,{seriesTypes:L}]of Object.entries(Yv)){let B=j0.get(D);for(let H of L)(m=l[H])!=null||(l[H]=Ur(B))}return l}getDefaults(){let l=(m,D)=>{var H;let L={},B=ge(ge(ge({axes:{}},TD.getThemeTemplates()),this.getChartDefaults()),j0.get(m));for(let U of D){L[U]=mn(fr.getThemeTemplate(U),(H=L[U])!=null?H:Ur(B));let{axes:X}=L[U];for(let Q of bs.keys())X[Q]=mn(X[Q],bs.getThemeTemplate(Q),i6.cartesianAxisDefault[Q])}return L};return mn(l("cartesian",Mo.cartesianTypes),l("polar",Mo.polarTypes),l("hierarchy",Mo.hierarchyTypes),l("topology",Mo.topologyTypes),l("flow-proportion",Mo.flowProportionTypes),l("standalone",Mo.standaloneTypes),l("gauge",Mo.gaugeTypes))}static applyTemplateTheme(l,m,D){if(La(l))for(let L=0;L<l.length;L++){let B=l[L];typeof B=="symbol"&&(D!=null&&D.has(B))&&(l[L]=D.get(B))}else for(let[L,B]of Object.entries(l))typeof B=="symbol"&&(D!=null&&D.has(B))&&(l[L]=D.get(B))}templateTheme(l,m=!0){let D=m?Ur(l):l,L=this.getTemplateParameters();return lh(D,i6.applyTemplateTheme,void 0,void 0,L),D}getDefaultColors(){return{fills:ar,strokes:Id,up:{fill:ar.GREEN,stroke:Id.GREEN},down:{fill:ar.RED,stroke:Id.RED},neutral:{fill:ar.GRAY,stroke:Id.GRAY},altUp:{fill:ar.BLUE,stroke:Id.BLUE},altDown:{fill:ar.ORANGE,stroke:Id.ORANGE},altNeutral:{fill:ar.GRAY,stroke:Id.GRAY}}}getTemplateParameters(){var L,B,H,U,X,Q,ie,ue,be,ye,Me,Ie,Oe,Re,Be,Ue,Ne,Qe,nt,rt,ut,Mt,Tt,_t;let{isEnterprise:l}=Yi,m=new Map;m.set(Fb,!1),m.set(pS,l),m.set(l1,!l),m.set(ko,"Verdana, sans-serif"),m.set(po,"#464646"),m.set(VM,"#fff"),m.set(Uc,"#8c8c8c"),m.set(Yr,"#e0eaf1"),m.set(_b,"#c3c3c3"),m.set(Nb,"#464646"),m.set(mS,"#d9d9d9"),m.set(jM,"#ddd"),m.set(Wc,qv),m.set(gg,qv),m.set($s,"black"),m.set(pg,"#00000080"),m.set(sc,[ar.ORANGE,ar.YELLOW,ar.GREEN]),m.set(of,"#aaa"),m.set(lc,[ar.GREEN,ar.YELLOW,ar.RED]),m.set(fg,["#5090dc","#629be0","#73a6e3","#85b1e7","#96bcea","#a8c8ee","#b9d3f1","#cbdef5"]),m.set(Ad,20),m.set(Mp,"block"),m.set(tf,"center"),m.set(UM,["#fff","#e0e5ea","#c1ccd5","#a3b4c1","#859cad"]),m.set(KM,["#fff","#c5cbd1","#a4b1bd","#8498a9","#648096"]),m.set(qM,["#797b86","#e24c4a","#f49d2d","#65ab58","#409682","#4db9d2","#5090dc","#3068f9","#e24c4a","#913aac","#d93e64"]),m.set(WM,qv),m.set(cc,ar.BLUE),m.set(vS,ar.BLUE),m.set(yr,ar.BLUE),m.set(vg,qv),m.set(Gb,"#fafafa"),m.set(rf,"#ddd"),m.set(_v,"#000"),m.set(Vb,"#181d1f"),m.set(YM,"#e35c5c"),m.set(Xa,"#e35c5c"),m.set(jb,"#fafafa"),m.set(Nv,"#ddd"),m.set(yg,"#000"),m.set(zv,"top"),m.set(Oo,!1);let D=this.getDefaultColors();return m.set(zb,(B=(L=this.palette.up)==null?void 0:L.stroke)!=null?B:D.up.stroke),m.set(Ov,(U=(H=this.palette.up)==null?void 0:H.fill)!=null?U:D.up.fill),m.set(kp,(Q=(X=this.palette.down)==null?void 0:X.stroke)!=null?Q:D.down.stroke),m.set(Il,(ue=(ie=this.palette.down)==null?void 0:ie.fill)!=null?ue:D.down.fill),m.set(nf,(ye=(be=this.palette.neutral)==null?void 0:be.stroke)!=null?ye:D.neutral.stroke),m.set(Bb,(Ie=(Me=this.palette.neutral)==null?void 0:Me.fill)!=null?Ie:D.neutral.fill),m.set(Fv,(Re=(Oe=this.palette.altUp)==null?void 0:Oe.stroke)!=null?Re:D.up.stroke),m.set(gu,(Ue=(Be=this.palette.altUp)==null?void 0:Be.fill)!=null?Ue:D.up.fill),m.set(HM,(Qe=(Ne=this.palette.altDown)==null?void 0:Ne.stroke)!=null?Qe:D.down.stroke),m.set(af,(rt=(nt=this.palette.altDown)==null?void 0:nt.fill)!=null?rt:D.down.fill),m.set(c1,(Mt=(ut=this.palette.altNeutral)==null?void 0:ut.fill)!=null?Mt:D.altNeutral.fill),m.set(mg,(_t=(Tt=this.palette.altNeutral)==null?void 0:Tt.stroke)!=null?_t:D.altNeutral.stroke),m}};wu.cartesianAxisDefault={number:wu.getAxisDefaults({line:{enabled:!1}}),log:wu.getAxisDefaults({base:10,line:{enabled:!1},interval:{minSpacing:NaN}}),category:wu.getAxisDefaults({groupPaddingInner:.1,label:{autoRotate:!0},gridLine:{enabled:Oo},crosshair:{enabled:!1}}),["grouped-category"]:wu.getAxisDefaults({tick:{enabled:!0,stroke:mS},label:{spacing:10,rotation:270},paddingInner:.4,groupPaddingInner:.2,crosshair:{enabled:!1}}),time:wu.getAxisDefaults({gridLine:{enabled:Oo}}),["ordinal-time"]:wu.getAxisDefaults({groupPaddingInner:0,label:{autoRotate:!1},gridLine:{enabled:Oo}}),["angle-category"]:wu.getAxisDefaults({label:{spacing:5},gridLine:{enabled:Oo}}),["angle-number"]:wu.getAxisDefaults({label:{spacing:5},gridLine:{enabled:Oo}}),["radius-category"]:wu.getAxisDefaults({line:{enabled:!1}}),["radius-number"]:wu.getAxisDefaults({line:{enabled:!1}})};var Mh=wu,tC="#192232",Za={BLUE:"#5090dc",ORANGE:"#ffa03a",GREEN:"#459d55",CYAN:"#34bfe1",YELLOW:"#e1cc00",VIOLET:"#9669cb",GRAY:"#b5b5b5",MAGENTA:"#bd5aa7",BROWN:"#8a6224",RED:"#ef5452"},zp={BLUE:"#74a8e6",ORANGE:"#ffbe70",GREEN:"#6cb176",CYAN:"#75d4ef",YELLOW:"#f6e559",VIOLET:"#aa86d8",GRAY:"#a1a1a1",MAGENTA:"#ce7ab9",BROWN:"#997b52",RED:"#ff7872"},xg=class extends Mh{getDefaultColors(){return{fills:Za,strokes:zp,up:{fill:Za.GREEN,stroke:zp.GREEN},down:{fill:Za.RED,stroke:zp.RED},neutral:{fill:Za.GRAY,stroke:zp.GRAY},altUp:{fill:Za.BLUE,stroke:zp.BLUE},altDown:{fill:Za.ORANGE,stroke:zp.ORANGE},altNeutral:{fill:Za.GRAY,stroke:zp.GRAY}}}getTemplateParameters(){let r=super.getTemplateParameters();return r.set(Fb,!0),r.set(WM,tC),r.set(jM,"#4b525d"),r.set(po,"#fff"),r.set(Uc,"#7d91a0"),r.set(Yr,"#545a6e"),r.set(Nb,"#fff"),r.set(mS,"#7f8389"),r.set(sc,[Za.ORANGE,Za.YELLOW,Za.GREEN]),r.set(lc,[Za.GREEN,Za.YELLOW,Za.RED]),r.set(fg,["#5090dc","#4882c6","#4073b0","#38659a","#305684","#28486e","#203a58","#182b42"]),r.set(UM,["#192834","#253746","#324859","#3f596c","#4d6a80"]),r.set(KM,["#192834","#3b5164","#496275","#577287","#668399"]),r.set(gg,tC),r.set($s,"white"),r.set(Wc,tC),r.set(cc,Za.BLUE),r.set(vS,"#fff"),r.set(yr,Za.BLUE),r.set(vg,tC),r.set(Gb,"#28313e"),r.set(rf,"#4b525d"),r.set(_v,"#fff"),r.set(Vb,"#fff"),r.set(jb,"#28313e"),r.set(Nv,"#4b525d"),r.set(yg,"#fff"),r}constructor(r){super(r)}},kh={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#A9A9A9"},Xv={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#909090"},NO=class extends xg{getDefaultColors(){return{fills:ge({},kh),strokes:ge({},Xv),up:{fill:kh.GREEN,stroke:Xv.GREEN},down:{fill:kh.RED,stroke:Xv.RED},neutral:{fill:kh.BLUE,stroke:Xv.BLUE},altUp:{fill:kh.GREEN,stroke:Xv.GREEN},altDown:{fill:kh.RED,stroke:Xv.RED},altNeutral:{fill:kh.GRAY,stroke:Xv.GRAY}}}getTemplateParameters(){let r=super.getTemplateParameters();return r.set(sc,[kh.GREEN,kh.BLUE,kh.RED]),r.set(cc,kh.BLUE),r.set(yr,kh.BLUE),r.set(Yr,"#343A4E"),r.set(Ad,0),r.set(Mp,"overlay"),r.set(tf,"left"),r.set(zv,"bottom"),r.set(Oo,!0),r}},Mg={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#A9A9A9"},ZS={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#909090"},jz=class extends Mh{getDefaultColors(){return{fills:ge({},Mg),strokes:ge({},ZS),up:{fill:Mg.GREEN,stroke:ZS.GREEN},down:{fill:Mg.RED,stroke:ZS.RED},neutral:{fill:Mg.BLUE,stroke:ZS.BLUE},altUp:{fill:Mg.GREEN,stroke:ZS.GREEN},altDown:{fill:Mg.RED,stroke:ZS.RED},altNeutral:{fill:Mg.GRAY,stroke:ZS.GRAY}}}getTemplateParameters(){let r=super.getTemplateParameters();return r.set(sc,[Mg.GREEN,Mg.BLUE,Mg.RED]),r.set(cc,Mg.BLUE),r.set(yr,Mg.BLUE),r.set(Yr,"#F2F3F3"),r.set(Ad,0),r.set(Mp,"overlay"),r.set(tf,"left"),r.set(zv,"bottom"),r.set(Oo,!0),r}},Rd={BLUE:"#2196F3",ORANGE:"#FF9800",GREEN:"#4CAF50",CYAN:"#00BCD4",YELLOW:"#FFEB3B",VIOLET:"#7E57C2",GRAY:"#9E9E9E",MAGENTA:"#F06292",BROWN:"#795548",RED:"#F44336"},$S={BLUE:"#90CAF9",ORANGE:"#FFCC80",GREEN:"#A5D6A7",CYAN:"#80DEEA",YELLOW:"#FFF9C4",VIOLET:"#B39DDB",GRAY:"#E0E0E0",MAGENTA:"#F48FB1",BROWN:"#A1887F",RED:"#EF9A9A"},Hz=class extends xg{getDefaultColors(){return{fills:Rd,strokes:$S,up:{fill:Rd.GREEN,stroke:$S.GREEN},down:{fill:Rd.RED,stroke:$S.RED},neutral:{fill:Rd.GRAY,stroke:$S.GRAY},altUp:{fill:Rd.BLUE,stroke:$S.BLUE},altDown:{fill:Rd.RED,stroke:$S.RED},altNeutral:{fill:Rd.GRAY,stroke:$S.GRAY}}}getTemplateParameters(){let r=super.getTemplateParameters();return r.set(sc,[Rd.ORANGE,Rd.YELLOW,Rd.GREEN]),r.set(fg,["#2196f3","#208FEC","#1E88E5","#1C7FDC","#1976d2","#176EC9","#1565c0"]),r.set(lc,[Rd.GREEN,Rd.YELLOW,Rd.RED]),r.set(cc,Rd.BLUE),r.set(yr,Rd.BLUE),r}},Pd={BLUE:"#2196F3",ORANGE:"#FF9800",GREEN:"#4CAF50",CYAN:"#00BCD4",YELLOW:"#FFEB3B",VIOLET:"#7E57C2",GRAY:"#9E9E9E",MAGENTA:"#F06292",BROWN:"#795548",RED:"#F44336"},Ah={BLUE:"#1565C0",ORANGE:"#E65100",GREEN:"#2E7D32",CYAN:"#00838F",YELLOW:"#F9A825",VIOLET:"#4527A0",GRAY:"#616161",MAGENTA:"#C2185B",BROWN:"#4E342E",RED:"#B71C1C"},Sf=class extends Mh{getDefaultColors(){return{fills:Pd,strokes:Ah,up:{fill:Pd.GREEN,stroke:Ah.GREEN},down:{fill:Pd.RED,stroke:Ah.RED},neutral:{fill:Pd.GRAY,stroke:Ah.GRAY},altUp:{fill:Pd.BLUE,stroke:Ah.BLUE},altDown:{fill:Pd.RED,stroke:Ah.RED},altNeutral:{fill:Pd.GRAY,stroke:Ah.GRAY}}}getTemplateParameters(){let r=super.getTemplateParameters();return r.set(sc,[Pd.ORANGE,Pd.YELLOW,Pd.GREEN]),r.set(fg,["#2196f3","#329EF4","#42a5f5","#53ADF6","#64b5f6","#7AC0F8","#90caf9"]),r.set(lc,[Pd.GREEN,Pd.YELLOW,Pd.RED]),r.set(cc,Pd.BLUE),r.set(yr,Pd.BLUE),r}},qo={BLUE:"#436ff4",PURPLE:"#9a7bff",MAGENTA:"#d165d2",PINK:"#f0598b",RED:"#f47348",ORANGE:"#f2a602",YELLOW:"#e9e201",GREEN:"#21b448",CYAN:"#00b9a2",MODERATE_BLUE:"#00aee4",GRAY:"#bbbbbb"},xu={BLUE:"#6698ff",PURPLE:"#c0a3ff",MAGENTA:"#fc8dfc",PINK:"#ff82b1",RED:"#ff9b70",ORANGE:"#ffcf4e",YELLOW:"#ffff58",GREEN:"#58dd70",CYAN:"#51e2c9",MODERATE_BLUE:"#4fd7ff",GRAY:"#eeeeee"},Wz=class extends xg{getDefaultColors(){return{fills:qo,strokes:xu,up:{fill:qo.GREEN,stroke:xu.GREEN},down:{fill:qo.RED,stroke:xu.RED},neutral:{fill:qo.GRAY,stroke:xu.GRAY},altUp:{fill:qo.BLUE,stroke:xu.BLUE},altDown:{fill:qo.RED,stroke:xu.RED},altNeutral:{fill:qo.GRAY,stroke:xu.GRAY}}}getTemplateParameters(){let r=super.getTemplateParameters();return r.set(sc,[qo.BLUE,qo.RED]),r.set(fg,[qo.BLUE,qo.PURPLE,qo.MAGENTA,qo.PINK,qo.RED,qo.ORANGE,qo.YELLOW,qo.GREEN]),r.set(lc,[qo.BLUE,qo.RED]),r.set(cc,qo.BLUE),r.set(yr,qo.BLUE),r}},Pr={BLUE:"#436ff4",PURPLE:"#9a7bff",MAGENTA:"#d165d2",PINK:"#f0598b",RED:"#f47348",ORANGE:"#f2a602",YELLOW:"#e9e201",GREEN:"#21b448",CYAN:"#00b9a2",MODERATE_BLUE:"#00aee4",GRAY:"#bbbbbb"},QS={BLUE:"#2346c9",PURPLE:"#7653d4",MAGENTA:"#a73da9",PINK:"#c32d66",RED:"#c84b1c",ORANGE:"#c87f00",YELLOW:"#c1b900",GREEN:"#008c1c",CYAN:"#00927c",MODERATE_BLUE:"#0087bb",GRAY:"#888888"},zO=class extends Mh{getDefaultColors(){return{fills:Pr,strokes:QS,up:{fill:Pr.GREEN,stroke:QS.GREEN},down:{fill:Pr.RED,stroke:QS.RED},neutral:{fill:Pr.GRAY,stroke:QS.GRAY},altUp:{fill:Pr.BLUE,stroke:QS.BLUE},altDown:{fill:Pr.RED,stroke:QS.RED},altNeutral:{fill:Pr.GRAY,stroke:QS.GRAY}}}getTemplateParameters(){let r=super.getTemplateParameters();return r.set(sc,[Pr.BLUE,Pr.RED]),r.set(fg,[Pr.BLUE,Pr.PURPLE,Pr.MAGENTA,Pr.PINK,Pr.RED,Pr.ORANGE,Pr.YELLOW,Pr.GREEN]),r.set(lc,[Pr.BLUE,Pr.RED]),r.set(cc,Pr.BLUE),r.set(yr,Pr.BLUE),r}},Zc={BLUE:"#4472C4",ORANGE:"#ED7D31",GRAY:"#A5A5A5",YELLOW:"#FFC000",MODERATE_BLUE:"#5B9BD5",GREEN:"#70AD47",DARK_GRAY:"#7B7B7B",DARK_BLUE:"#264478",VERY_DARK_GRAY:"#636363",DARK_YELLOW:"#997300"},Ld={BLUE:"#6899ee",ORANGE:"#ffa55d",GRAY:"#cdcdcd",YELLOW:"#ffea53",MODERATE_BLUE:"#82c3ff",GREEN:"#96d56f",DARK_GRAY:"#a1a1a1",DARK_BLUE:"#47689f",VERY_DARK_GRAY:"#878787",DARK_YELLOW:"#c0993d"},BO=class extends xg{getDefaultColors(){return{fills:He(ge({},Zc),{RED:Zc.ORANGE}),strokes:He(ge({},Ld),{RED:Ld.ORANGE}),up:{fill:Zc.GREEN,stroke:Ld.GREEN},down:{fill:Zc.ORANGE,stroke:Ld.ORANGE},neutral:{fill:Zc.GRAY,stroke:Ld.GRAY},altUp:{fill:Zc.BLUE,stroke:Ld.BLUE},altDown:{fill:Zc.ORANGE,stroke:Ld.ORANGE},altNeutral:{fill:Zc.GRAY,stroke:Ld.GRAY}}}getTemplateParameters(){let r=super.getTemplateParameters();return r.set(sc,[Zc.ORANGE,Zc.YELLOW,Zc.GREEN]),r.set(lc,[Zc.GREEN,Zc.YELLOW,Zc.ORANGE]),r.set(cc,Zc.BLUE),r.set(yr,Zc.BLUE),r}},sr={BLUE:"#5281d5",ORANGE:"#ff8d44",GRAY:"#b5b5b5",YELLOW:"#ffd02f",MODERATE_BLUE:"#6aabe6",GREEN:"#7fbd57",DARK_GRAY:"#8a8a8a",DARK_BLUE:"#335287",VERY_DARK_GRAY:"#717171",DARK_YELLOW:"#a98220"},wf={BLUE:"#214d9b",ORANGE:"#c25600",GRAY:"#7f7f7f",YELLOW:"#d59800",MODERATE_BLUE:"#3575ac",GREEN:"#4b861a",DARK_GRAY:"#575757",DARK_BLUE:"#062253",VERY_DARK_GRAY:"#414141",DARK_YELLOW:"#734f00"},Zv=class extends Mh{getDefaultColors(){return{fills:He(ge({},sr),{RED:sr.ORANGE}),strokes:He(ge({},wf),{RED:wf.ORANGE}),up:{fill:sr.GREEN,stroke:wf.GREEN},down:{fill:sr.ORANGE,stroke:wf.ORANGE},neutral:{fill:wf.GRAY,stroke:wf.GRAY},altUp:{fill:sr.BLUE,stroke:wf.BLUE},altDown:{fill:sr.ORANGE,stroke:wf.ORANGE},altNeutral:{fill:sr.GRAY,stroke:wf.GRAY}}}getTemplateParameters(){let r=super.getTemplateParameters();return r.set(sc,[sr.ORANGE,sr.YELLOW,sr.GREEN]),r.set(lc,[sr.GREEN,sr.YELLOW,sr.ORANGE]),r.set(cc,sr.BLUE),r.set(yr,sr.BLUE),r}},$r={BLUE:"#0083ff",ORANGE:"#ff6600",GREEN:"#00af00",CYAN:"#00ccff",YELLOW:"#f7c700",VIOLET:"#ac26ff",GRAY:"#a7a7b7",MAGENTA:"#e800c5",BROWN:"#b54300",RED:"#ff0000"},xf={BLUE:"#67b7ff",ORANGE:"#ffc24d",GREEN:"#5cc86f",CYAN:"#54ebff",VIOLET:"#fff653",YELLOW:"#c18aff",GRAY:"#aeaeae",MAGENTA:"#f078d4",BROWN:"#ba8438",RED:"#ff726e"},$v=class extends xg{getDefaultColors(){return{fills:$r,strokes:xf,up:{fill:$r.GREEN,stroke:xf.GREEN},down:{fill:$r.RED,stroke:xf.RED},neutral:{fill:$r.GRAY,stroke:xf.GRAY},altUp:{fill:$r.BLUE,stroke:xf.BLUE},altDown:{fill:$r.ORANGE,stroke:xf.ORANGE},altNeutral:{fill:$r.GRAY,stroke:xf.GRAY}}}getTemplateParameters(){let r=super.getTemplateParameters();return r.set(sc,[$r.ORANGE,$r.YELLOW,$r.GREEN]),r.set(fg,["#0083ff","#0076e6","#0069cc","#005cb3","#004f99","#004280","#003466","#00274c"]),r.set(lc,[$r.GREEN,$r.YELLOW,$r.RED]),r.set(cc,$r.BLUE),r.set(yr,$r.BLUE),r}},Nl={BLUE:"#0083ff",ORANGE:"#ff6600",GREEN:"#00af00",CYAN:"#00ccff",YELLOW:"#f7c700",VIOLET:"#ac26ff",GRAY:"#a7a7b7",MAGENTA:"#e800c5",BROWN:"#b54300",RED:"#ff0000"},kg={BLUE:"#0f68c0",ORANGE:"#d47100",GREEN:"#007922",CYAN:"#009ac2",VIOLET:"#bca400",YELLOW:"#753cac",GRAY:"#646464",MAGENTA:"#9b2685",BROWN:"#6c3b00",RED:"#cb0021"},tR=class extends Mh{getDefaultColors(){return{fills:Nl,strokes:kg,up:{fill:Nl.GREEN,stroke:kg.GREEN},down:{fill:Nl.RED,stroke:kg.RED},neutral:{fill:Nl.GRAY,stroke:kg.GRAY},altUp:{fill:Nl.BLUE,stroke:kg.BLUE},altDown:{fill:Nl.ORANGE,stroke:kg.ORANGE},altNeutral:{fill:Nl.GRAY,stroke:kg.GRAY}}}getTemplateParameters(){let r=super.getTemplateParameters();return r.set(sc,[Nl.ORANGE,Nl.YELLOW,Nl.GREEN]),r.set(fg,["#0083ff","#1a8fff","#339cff","#4da8ff","#66b5ff","#80c1ff","#99cdff","#b3daff"]),r.set(lc,[Nl.GREEN,Nl.YELLOW,Nl.RED]),r.set(cc,Nl.BLUE),r.set(yr,Nl.BLUE),r}},ks=Ys(()=>new Mh),Uz=Ys(()=>new xg),iR={"ag-default-dark":Uz,"ag-sheets-dark":Ys(()=>new BO),"ag-polychroma-dark":Ys(()=>new Wz),"ag-vivid-dark":Ys(()=>new $v),"ag-material-dark":Ys(()=>new Hz),"ag-financial-dark":Ys(()=>new NO),null:ks,undefined:ks,"ag-default":ks,"ag-sheets":Ys(()=>new Zv),"ag-polychroma":Ys(()=>new zO),"ag-vivid":Ys(()=>new tR),"ag-material":Ys(()=>new Sf),"ag-financial":Ys(()=>new jz)},nR=Ys(GO);function GO(r){if(r instanceof Mh)return r;if(r==null||typeof r=="string"){let l=iR[r];return l?l():(vi.warnOnce(`the theme [${r}] is invalid, using [ag-default] instead.`),ks())}if(Ui(r,RL,"theme")){let l=TL(r),m=l.baseTheme?nR(l.baseTheme):ks();return new m.constructor(l)}return ks()}function TL(r){let l=r,m,D=[];for(;typeof l=="object";)m!=null||(m=l.palette),l.overrides&&D.push(l.overrides),l=l.baseTheme;return{baseTheme:l,overrides:mn(...D),palette:m}}var RL={baseTheme:_l(Cu,Jb),overrides:Jb,palette:{fills:eC(Cu),strokes:eC(Cu),up:{fill:Cu,stroke:Cu},down:{fill:Cu,stroke:Cu},neutral:{fill:Cu,stroke:Cu}}},PL=new Set(["map-shape-background","map-line-background"]),F1=class Uw{constructor(l,m,D,L,B){this.debug=Ma.create(!0,"opts"),this.optionMetadata=L!=null?L:{},this.processedOverrides=m!=null?m:{};let H=null;if(l instanceof Uw){if(H=l,this.specialOverrides=H.specialOverrides,!B)throw new Error("AG Charts - internal error: deltaOptions must be supplied.");this.userOptions=mn(B,Ur(H.userOptions,Uw.OPTIONS_CLONE_OPTS))}else this.userOptions=l,this.specialOverrides=this.specialOverridesDefaults(ge({},D));let U,X,Q,ie;B!=null&&Uw.isFastPathDelta(B)&&H!=null?{activeTheme:U,processedOptions:X,defaultAxes:Q,fastDelta:ie}=this.fastSetup(B,H):{activeTheme:U,processedOptions:X,defaultAxes:Q}=this.slowSetup(m,B),this.activeTheme=U,this.processedOptions=X,this.defaultAxes=Q,this.fastDelta=ie}static isFastPathDelta(l){for(let m of Object.keys(l))if(!this.FAST_PATH_OPTIONS.has(m))return!1;return!0}fastSetup(l,m){let{activeTheme:D,defaultAxes:L,processedOptions:B}=m,{presetType:H}=this.optionMetadata,U=H?un[H]:void 0;H!=null&&l.data!=null&&U!=null&&(l=mn(U(l.data),l)),this.fastSeriesSetup(l,B);let X=mn(l,B);return{activeTheme:D,defaultAxes:L,processedOptions:X,fastDelta:l}}fastSeriesSetup(l,m){var D;l.series&&((D=l.series)!=null&&D.every((L,B)=>{var H,U;return xx(L,(U=(H=m.series)==null?void 0:H[B])!=null?U:{})})?delete l.series:l.series=l.series.map((L,B)=>{var H,U;return mn(L,(U=(H=m.series)==null?void 0:H[B])!=null?U:{})}))}slowSetup(l,m){var Ie,Re,Be;let D=Ur(this.userOptions,Uw.OPTIONS_CLONE_OPTS);m&&(D=mn(m,D));let{presetType:L}=this.optionMetadata;if(L!=null){let Ue=Di[L],Ne=this.userOptions,Qe=this.userOptions.type,nt=Qe!=null?nR(this.userOptions.theme).presets[Qe]:void 0;this.debug(">>> AgCharts.createOrUpdate() - applying preset",Ne),D=(Ie=Ue==null?void 0:Ue(Ne,nt,()=>this.activeTheme))!=null?Ie:D}Yi.isEnterprise||xn(D);let B=nR(D.theme);this.sanityCheck(D),this.removeDisabledOptions(D);let H=this.getDefaultAxes(D),U=this.optionsType(D),Oe=this.getSeriesThemeConfig(U,B),{axes:X={},annotations:Q={},series:ie}=Oe,ue=wi(Oe,["axes","annotations","series"]),[be,ye]=this.splitAnnotationsOptions(Q),Me=mn(l,D,be,ue,H);return this.processAxesOptions(Me,X),this.processSeriesOptions(Me,B),this.processMiniChartSeriesOptions(Me,B),this.annotationThemes=ye,Me=Ur(Me,Uw.OPTIONS_CLONE_OPTS),(ao(Me)||fb(Me)||vh(Me))&&((Re=Me.legend)==null?void 0:Re.enabled)==null&&((Be=Me.legend)!=null||(Me.legend={}),Me.legend.enabled=Me.series.length>1),this.enableConfiguredOptions(Me,this.userOptions),B.templateTheme(Me,!1),this.removeDisabledOptions(D),va(Me),Yi.isEnterprise||xn(Me,!0),this.debug("AgCharts.createOrUpdate() - processed options",Me),{activeTheme:B,processedOptions:Me,defaultAxes:H}}diffOptions(l){var m;return this===l?{}:l==null?this.processedOptions:(m=this.fastDelta)!=null?m:Pc(l.processedOptions,this.processedOptions)}getSeriesThemeConfig(l,m){var D;return(D=m==null?void 0:m.config[l])!=null?D:{}}getDefaultAxes(l){var L,B;let m=this.optionsType(l),D=(B=(L=l.series)==null?void 0:L.find(H=>{var U;return((U=H.type)!=null?U:"line")===m}))!=null?B:{};return fr.cloneDefaultAxes(m,D)}optionsType(l){var m,D,L;return(L=(D=(m=l.series)==null?void 0:m[0])==null?void 0:D.type)!=null?L:"line"}sanityCheck(l){this.axesTypeIntegrity(l),this.seriesTypeIntegrity(l),this.soloSeriesIntegrity(l)}splitAnnotationsOptions(l){let U=l,{axesButtons:m=null,enabled:D=null,optionsToolbar:L=null,toolbar:B=null}=U,H=wi(U,["axesButtons","enabled","optionsToolbar","toolbar"]);return m==null&&D==null&&L==null&&B==null?[{},H]:[{annotations:{axesButtons:m,enabled:D,optionsToolbar:L,toolbar:B}},H]}processAxesOptions(l,m){var D;"axes"in l&&(l.axes=(D=l.axes)==null?void 0:D.map(L=>{var ye,Ie,Oe;let Me=mn((ye=m[L.type])==null?void 0:ye[L.position],m[L.type]),{crossLines:B}=Me,H=wi(Me,["crossLines"]);L.crossLines&&(L.crossLines=sm(L.crossLines,B));let U=(Ie=H.gridLine)==null?void 0:Ie.style;(Oe=L.gridLine)!=null&&Oe.style&&(U!=null&&U.length)&&(L.gridLine.style=L.gridLine.style.map((Be,Ue)=>Be.stroke!=null||Be.lineDash!=null?mn(Be,U.at(Ue%U.length)):Be));let Re=mn(L,H),{top:X,right:Q,bottom:ie,left:ue}=Re;return wi(Re,["top","right","bottom","left"])}))}processSeriesOptions(l,m){var U,X;let D=this.getTooltipPositionDefaults(l),L=Jn(l.theme)?uc((U=l.theme)==null?void 0:U.palette):"inbuilt",B={colourIndex:0,userPalette:L},H=(X=l.series)==null?void 0:X.map(Q=>{var Oe,Re;(Oe=Q.type)!=null||(Q.type=this.getDefaultSeriesType(l));let Be=(Re=this.getSeriesThemeConfig(Q.type,m).series)!=null?Re:{},{innerLabels:ie}=Be,ue=wi(Be,["innerLabels"]),be=PL.has(Q.type)?{colourIndex:0,userPalette:L}:B,ye=this.getSeriesPalette(Q.type,be,m),Me=this.getTooltipRangeDefaults(l,Q.type),Ie=mn(this.getSeriesGroupingOptions(Q),Q,D,Me,ue,ye,{visible:!0});return Ie.innerLabels&&(Ie.innerLabels=sm(Ie.innerLabels,ie)),Ie});l.series=this.setSeriesGroupingOptions(H!=null?H:[])}processMiniChartSeriesOptions(l,m){var B,H;let D=(H=(B=l.navigator)==null?void 0:B.miniChart)==null?void 0:H.series;if(D==null)return;let L={colourIndex:0,userPalette:Jn(l.theme)?uc(l.theme.palette):"inbuilt"};D=D.map(U=>{var ie,ue;(ie=U.type)!=null||(U.type="line");let be=(ue=this.getSeriesThemeConfig(U.type,m).series)!=null?ue:{},{innerLabels:X}=be,Q=wi(be,["innerLabels"]);return mn(this.getSeriesGroupingOptions(U),U,Q,this.getSeriesPalette(U.type,L,m))}),l.navigator.miniChart.series=this.setSeriesGroupingOptions(D)}getSeriesPalette(l,m,D){let L=fr.getPaletteFactory(l),{colourIndex:B,userPalette:H}=m,{fills:U=[],strokes:X=[]}=D.palette;return L==null?void 0:L({userPalette:H,colorsCount:Math.max(U.length,X.length),themeTemplateParameters:D.getTemplateParameters(),palette:D.palette,takeColors(Q){return m.colourIndex+=Q,{fills:ii(U,Q,B),strokes:ii(X,Q,B)}}})}getSeriesGroupingOptions(l){let m=fr.isGroupable(l.type),D=fr.isStackable(l.type),L=fr.isStackedByDefault(l.type);l.grouped&&!m&&vi.warnOnce(`unsupported grouping of series type "${l.type}".`),(l.stacked||l.stackGroup)&&!D&&vi.warnOnce(`unsupported stacking of series type "${l.type}".`);let{grouped:B,stacked:H}=l;return H!=null||(H=(L||l.stackGroup!=null)&&!(m&&B)),B!=null||(B=!0),{stacked:D&&H,grouped:m&&B&&!(D&&H)}}setSeriesGroupingOptions(l){let m=this.getSeriesGrouping(l);this.debug("setSeriesGroupingOptions() - series grouping: ",m);let D={},L=m.reduce((B,H)=>{var X;var U;return H.groupType==="default"||((X=B[U=H.seriesType])!=null||(B[U]=0),B[H.seriesType]+=H.groupType==="stack"?1:H.series.length),B},{});return m.flatMap(B=>{var U;var H;switch((U=D[H=B.seriesType])!=null||(D[H]=0),B.groupType){case"stack":{let X=D[B.seriesType]++;return B.series.map((Q,ie)=>Object.assign(Q,{seriesGrouping:{groupId:B.groupId,groupIndex:X,groupCount:L[B.seriesType],stackIndex:ie,stackCount:B.series.length}}))}case"group":return B.series.map(X=>Object.assign(X,{seriesGrouping:{groupId:B.groupId,groupIndex:D[B.seriesType]++,groupCount:L[B.seriesType],stackIndex:0,stackCount:0}}))}return B.series}).map(X=>{var Q=X,{stacked:B,grouped:H}=Q,U=wi(Q,["stacked","grouped"]);return U})}getSeriesGroupId(l){var m;return[l.type,l.xKey,l.stacked?(m=l.stackGroup)!=null?m:"stacked":"grouped"].filter(Boolean).join("-")}getSeriesGrouping(l){let m=new Map;return l.reduce((D,L)=>{let B=L.type;if(!L.stacked&&!L.grouped)D.push({groupType:"default",seriesType:B,series:[L],groupId:"__default__"});else{let H=this.getSeriesGroupId(L);if(!m.has(H)){let X={groupType:L.stacked?"stack":"group",seriesType:B,series:[],groupId:H};m.set(H,X),D.push(X)}m.get(H).series.push(L)}return D},[])}getDefaultSeriesType(l){if(ao(l))return"line";if(rc(l))return"pie";if(wv(l))return"treemap";if(oM(l))return"map-shape";if(rM(l))return"sankey";if(fb(l))return"pyramid";if(lu(l))return"radial-gauge";throw new Error("Invalid chart options type detected.")}getTooltipPositionDefaults(l){var U;let m=(U=l.tooltip)==null?void 0:U.position;if(!ns(m))return;let{type:D,xOffset:L,yOffset:B}=m,H={};return wa(D)&&GC(f,D)&&(H.type=D),ea(L)&&(H.xOffset=L),ea(B)&&(H.yOffset=B),{tooltip:{position:H}}}getTooltipRangeDefaults(l,m){var D,L,B;return{tooltip:{range:(B=(D=l.tooltip)==null?void 0:D.range)!=null?B:(L=fr.getTooltipDefauls(m))==null?void 0:L.range}}}axesTypeIntegrity(l){if("axes"in l&&l.axes){let m=l.axes;for(let{type:D}of m)if(!Tr(D)){delete l.axes;let L=bs.publicKeys().join(", ");vi.warnOnce(`unknown axis type: ${D}; expected one of: ${L}`)}}}seriesTypeIntegrity(l){var m;l.series=(m=l.series)==null?void 0:m.filter(({type:D})=>{if(D==null||ng(D)||G0(D))return!0;vi.warnOnce(`unknown series type: ${JSON.stringify(D)}; expected one of: ${iT.seriesTypes.join(", ")}`)})}soloSeriesIntegrity(l){let m=l.series;if(m&&m.length>1&&m.some(D=>fr.isSolo(D.type))){let D=this.optionsType(l);if(fr.isSolo(D))vi.warn(`series[0] of type '${D}' is incompatible with other series types. Only processing series[0]`),l.series=m.slice(0,1);else{let{solo:L,nonSolo:B}=Zl(m,U=>fr.isSolo(U.type)?"solo":"nonSolo"),H=Hf(L.map(U=>U.type)).join(", ");vi.warn(`Unable to mix these series types with the lead series type: ${H}`),l.series=B}}}static enableConfiguredJsonOptions(l,m){m&&"enabled"in m&&!m._enabledFromTheme&&l.enabled==null&&(m.enabled=!0)}static cleanupEnabledFromThemeJsonOptions(l){l._enabledFromTheme!=null&&delete l._enabledFromTheme}enableConfiguredOptions(l,m){lh(m,Uw.enableConfiguredJsonOptions,new Set(["data","theme"]),l),lh(l,Uw.cleanupEnabledFromThemeJsonOptions,new Set(["data","theme"]))}static removeDisabledOptionJson(l){"enabled"in l&&l.enabled===!1&&Object.keys(l).forEach(m=>{m!=="enabled"&&delete l[m]})}removeDisabledOptions(l){lh(l,Uw.removeDisabledOptionJson,new Set(["data","theme"]))}specialOverridesDefaults(l){if(l.window!=null?yx(l.window):typeof window!="undefined"?l.window=window:typeof global!="undefined"&&(l.window=global.window),l.document!=null?vx(l.document):typeof document!="undefined"?l.document=document:typeof global!="undefined"&&(l.document=global.document),l.window==null)throw new Error("AG Charts - unable to resolve global window");if(l.document==null)throw new Error("AG Charts - unable to resolve global document");return l}};F1.OPTIONS_CLONE_OPTS=new Set(["data","container"]),F1.FAST_PATH_OPTIONS=new Set(["data","width","height"]);var aR=F1,Mf=100,_1=class cI{constructor(l,m,D,L,B,H=Mf){this.name=l,this.buildItem=m,this.releaseItem=D,this.destroyItem=L,this.maxPoolSize=B,this.cleanupTimeMs=H,this.freePool=[],this.busyPool=new Set}static getPool(l,m,D,L,B){return this.pools.has(l)||this.pools.set(l,new cI(l,m,D,L,B)),this.pools.get(l)}isFull(){return this.freePool.length+this.busyPool.size>=this.maxPoolSize}obtain(l){if(this.freePool.length===0&&this.isFull())throw new Error("AG Charts - pool exhausted");let m=this.freePool.pop();return m==null?(m=this.buildItem(l),cI.debug(`Pool[name=${this.name}]: Created instance (${this.freePool.length} / ${this.busyPool.size+1} / ${this.maxPoolSize})`,m)):cI.debug(`Pool[name=${this.name}]: Re-used instance (${this.freePool.length} / ${this.busyPool.size+1} / ${this.maxPoolSize})`,m),this.busyPool.add(m),{item:m,release:()=>this.release(m)}}release(l){if(!this.busyPool.has(l))throw new Error("AG Charts - cannot free item from pool which is not tracked as busy.");cI.debug(`Pool[name=${this.name}]: Releasing instance (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`,l),this.releaseItem(l),this.busyPool.delete(l),this.freePool.push(l),cI.debug(`Pool[name=${this.name}]: Returned instance to free pool (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`,l),this.cleanPoolTimer&&clearTimeout(this.cleanPoolTimer),this.cleanPoolTimer=setTimeout(()=>{this.cleanPool()},this.cleanupTimeMs)}cleanPool(){let l=this.freePool.splice(0);for(let m of l)this.destroyItem(m);cI.debug(`Pool[name=${this.name}]: Cleaned pool of ${l.length} items (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`)}destroy(){this.cleanPool();for(let l of this.busyPool.values())this.destroyItem(l);this.busyPool.clear()}};_1.pools=new Map,_1.debug=Ma.create(!0,"pool");var JS=_1,ew=Ma.create(!0,"opts");function N1(r){if(ao(r))return"cartesian";if(rc(r))return"polar";if(wv(r))return"hierarchy";if(oM(r))return"topology";if(rM(r))return"flow-proportion";if(fb(r))return"standalone";if(lu(r))return"gauge";throw new Error(`AG Chart - unknown type of chart for options with type: ${r.type}`)}var $a=class{static licenseCheck(r){var l,m;this.licenseChecked||(this.licenseManager=(l=Yi.licenseManager)==null?void 0:l.call(Yi,r),(m=this.licenseManager)==null||m.validateLicense(),this.licenseChecked=!0)}static getLicenseDetails(r){var l;return(l=Yi.licenseManager)==null?void 0:l.call(Yi,{}).getLicenseDetails(r)}static getInstance(r){return z1.getInstance(r)}static create(r,l){var D,L;this.licenseCheck(r);let m=z1.createOrUpdate({userOptions:r,licenseManager:this.licenseManager,optionsMetadata:l});return(D=this.licenseManager)!=null&&D.isDisplayWatermark()&&this.licenseManager&&((L=Yi.injectWatermark)==null||L.call(Yi,m.chart.ctx.domManager,this.licenseManager.getWatermarkMessage())),m}static createFinancialChart(r){return this.create(r,{presetType:"price-volume"})}static createGauge(r){return this.create(r,{presetType:"gauge"})}static __createSparkline(r){let D=r,{pool:l}=D,m=wi(D,["pool"]);return this.create(m,{presetType:"sparkline",pool:l!=null?l:!0})}};$a.licenseChecked=!1;var mo=class Kw{static getInstance(l){let m=wd.getInstance(l);return m?VD.chartInstances.get(m):void 0}static initialiseModules(){Kw.initialised||(P1(),$T(),Kw.initialised=!0)}static createOrUpdate(l){var nt,rt,ut,Tt,_t,Kt,gi;let{proxy:m}=l,{userOptions:D,licenseManager:L,processedOverrides:B=(nt=m==null?void 0:m.chart.chartOptions.processedOverrides)!=null?nt:{},specialOverrides:H=(rt=m==null?void 0:m.chart.chartOptions.specialOverrides)!=null?rt:{},optionsMetadata:U=(ut=m==null?void 0:m.chart.chartOptions.optionMetadata)!=null?ut:{},deltaOptions:X}=l,Q=Yi.styles!=null?[["ag-charts-enterprise",Yi.styles]]:[],{presetType:ie}=U;Kw.initialiseModules(),ew(">>> AgCharts.createOrUpdate() user options",D);let ue=D;$a.optionsMutationFn&&ue&&(ue=$a.optionsMutationFn(Ur(ue),ie),ew(">>> AgCharts.createOrUpdate() MUTATED user options",ue));let Mt=ue!=null?ue:{},{overrideDevicePixelRatio:be,document:ye,window:Me,styleContainer:Ie}=Mt,Oe=wi(Mt,["overrideDevicePixelRatio","document","window","styleContainer"]),Re=(Tt=X?m==null?void 0:m.chart.getChartOptions():Oe)!=null?Tt:Oe,Be=new aR(Re,B,He(ge({},H),{document:ye,window:Me,overrideDevicePixelRatio:be,styleContainer:Ie}),U,X),Ue=!1,Ne=m==null?void 0:m.chart,Qe;return(Ne==null||N1(Be.processedOptions)!==N1(Ne==null?void 0:Ne.chartOptions.processedOptions))&&(Qe=(_t=this.getPool(Be))==null?void 0:_t.obtain(Be),Qe?Ne=Qe.item:(Ue=!0,Ne=Kw.createChartInstance(Be,Ne)),Q==null||Q.forEach(([Ci,xi])=>{Ne==null||Ne.ctx.domManager.addStyles(Ci,xi)})),m==null?(m=new VD(Ne,Kw.callbackApi,L),m.releaseChart=Qe==null?void 0:Qe.release):(Qe||Ue)&&((Kt=m.releaseChart)==null||Kt.call(m),m.chart=Ne,m.releaseChart=Qe==null?void 0:Qe.release),ew.check()&&typeof window!="undefined"&&((gi=window.agChartInstances)!=null||(window.agChartInstances={}),window.agChartInstances[Ne.id]=Ne),Ne.queuedUserOptions.push(Be.userOptions),Ne.queuedChartOptions.push(Be),Ne.requestFactoryUpdate(Ci=>{Ci.applyOptions(Be);let xi=Ci.queuedUserOptions.indexOf(Be.userOptions)+1;Ci.queuedUserOptions.splice(0,xi),Ci.queuedChartOptions.splice(0,xi)}),m}static markRemovedProperties(l){if(typeof l=="object")for(let[m,D]of Object.entries(l))typeof D=="undefined"&&Object.assign(l,{[m]:Symbol("UNSET")})}static updateUserDelta(l,m){m=Ur(m,new Set(["data"])),lh(m,Kw.markRemovedProperties,new Set(["data"])),ew(">>> AgCharts.updateUserDelta() user delta",m),Kw.createOrUpdate({proxy:l,deltaOptions:m})}static createChartInstance(l,m){let D=m==null?void 0:m.destroy({keepTransferableResources:!0}),L=Kw.getChartByOptions(l.processedOptions);return new L(l,D)}static getChartByOptions(l){if(ao(l))return gT;if(wv(l))return bf;if(rc(l))return jS;if(oM(l))return Td;if(rM(l))return tl;if(fb(l))return HS;if(lu(l))return VS;throw new Error("AG Charts - couldn't apply configuration, check options are correctly structured and series types are specified")}static getPool(l){var m;if(l.optionMetadata.pool===!0)return JS.getPool((m=l.optionMetadata.presetType)!=null?m:"default",this.createChartInstance,this.detachAndClear,this.destroy,1/0)}};mo.caretaker=new ob(ma),mo.initialised=!1,mo.callbackApi={caretaker:mo.caretaker,create(r,l,m,D){return mo.createOrUpdate({userOptions:r,processedOverrides:l,specialOverrides:m,optionsMetadata:D})},update(r,l){return mo.createOrUpdate({userOptions:r,proxy:l})},updateUserDelta(r,l){return mo.updateUserDelta(r,l)}},mo.detachAndClear=r=>r.detachAndClear(),mo.destroy=r=>r.destroy();var z1=mo,Bp={};A(Bp,{Arc:()=>nl,BBox:()=>ft,BandScale:()=>ml,Caption:()=>Ua,Circle:()=>og,Group:()=>Ji,Line:()=>Ar,LinearScale:()=>jc,Path:()=>Dl,RadialColumnShape:()=>hc,Rect:()=>za,Scene:()=>mv,Sector:()=>Ms,Shape:()=>Cn,TranslatableGroup:()=>js,getRadialColumnWidth:()=>iC,toRadians:()=>Ge});var nl=class extends Dl{constructor(){super(),this.centerX=0,this.centerY=0,this.radius=10,this.startAngle=0,this.endAngle=Math.PI*2,this.counterClockwise=!1,this.type=0,this.restoreOwnStyles()}get fullPie(){return Ze(Nn(this.startAngle),Nn(this.endAngle))}updatePath(){let r=this.path;r.clear(),r.arc(this.centerX,this.centerY,this.radius,this.startAngle,this.endAngle,this.counterClockwise),this.type===1?r.closePath():this.type===2&&!this.fullPie&&(r.lineTo(this.centerX,this.centerY),r.closePath())}computeBBox(){return new ft(this.centerX-this.radius,this.centerY-this.radius,this.radius*2,this.radius*2)}isPointInPath(r,l){let m=this.getBBox();return this.type!==0&&m.containsPoint(r,l)&&this.path.isPointInPath(r,l)}};nl.className="Arc",nl.defaultStyles=He(ge({},Cn.defaultStyles),{lineWidth:1,fillStyle:null}),T([rn()],nl.prototype,"centerX",2),T([rn()],nl.prototype,"centerY",2),T([rn()],nl.prototype,"radius",2),T([rn()],nl.prototype,"startAngle",2),T([rn()],nl.prototype,"endAngle",2),T([rn()],nl.prototype,"counterClockwise",2),T([rn()],nl.prototype,"type",2);function Gp(r,l,m){let D=Math.sqrt(r**2+l**2),B=Math.atan2(l,r)+m;return{x:Math.cos(B)*D,y:Math.sin(B)*D}}var hc=class extends Dl{constructor(){super(...arguments),this.isBeveled=!0,this.columnWidth=0,this.startAngle=0,this.endAngle=0,this.outerRadius=0,this.innerRadius=0,this.axisInnerRadius=0,this.axisOuterRadius=0,this.isRadiusAxisReversed=!1}set cornerRadius(r){}computeBBox(){let{innerRadius:r,outerRadius:l,columnWidth:m}=this,D=this.getRotation(),L=-m/2,B=m/2,H=-l,U=-r,X=1/0,Q=1/0,ie=-1/0,ue=-1/0;for(let be=0;be<4;be+=1){let{x:ye,y:Me}=Gp(be%2===0?L:B,be<2?H:U,D);X=Math.min(ye,X),Q=Math.min(Me,Q),ie=Math.max(ye,ie),ue=Math.max(Me,ue)}return new ft(X,Q,ie-X,ue-Q)}getRotation(){let{startAngle:r,endAngle:l}=this,m=a0(r,l);return Nn(r+m/2+Math.PI/2)}updatePath(){let{isBeveled:r}=this;r?this.updateBeveledPath():this.updateRectangularPath(),this.checkPathDirty()}updateRectangularPath(){let{columnWidth:r,innerRadius:l,outerRadius:m,path:D}=this,L=-r/2,B=r/2,H=-m,U=-l,X=this.getRotation(),Q=[[L,U],[L,H],[B,H],[B,U]].map(([ie,ue])=>Gp(ie,ue,X));D.clear(!0),D.moveTo(Q[0].x,Q[0].y),D.lineTo(Q[1].x,Q[1].y),D.lineTo(Q[2].x,Q[2].y),D.lineTo(Q[3].x,Q[3].y),D.closePath()}updateBeveledPath(){let{columnWidth:r,path:l,outerRadius:m,innerRadius:D,axisInnerRadius:L,axisOuterRadius:B,isRadiusAxisReversed:H}=this,U=Ze(D,L),X=Math.asin(r/2/D),Q=this.getRotation(),ie=(ut,Mt)=>Gp(ut,Mt,Q),ue=(ut,Mt)=>Math.sqrt(ut**2+Mt**2),be=(ut,Mt)=>Mt>ut?0:Math.sqrt(ut**2-Mt**2),ye=(ut,Mt,Tt)=>Tt?ut<Mt:ut>Mt,Me=U&&!isNaN(X)&&X<Math.PI/6,Ie=-r/2,Oe=r/2,Re=-m,Be=-D*(Me?Math.cos(X):1),Ue=ye(B,ue(D,r/2),!H);if(Ue){let ut=be(B,D);Ie=-ut,Oe=ut}l.clear(!0);let Ne=ie(Ie,Be);l.moveTo(Ne.x,Ne.y);let Qe=Ze(D,m),nt=ye(B,ue(m,r/2),!H);if(Qe&&Me)l.arc(0,0,D,Nn(-X-Math.PI/2)+Q,Nn(X-Math.PI/2)+Q,!1);else if(nt){let ut=-be(B,r/2),Mt=be(B,m);if(!Ue){let Tt=ie(Ie,ut);l.lineTo(Tt.x,Tt.y)}if(l.arc(0,0,B,Math.atan2(ut,Ie)+Q,Math.atan2(Re,-Mt)+Q,!1),!Ze(Mt,0)){let Tt=ie(Mt,Re);l.lineTo(Tt.x,Tt.y)}l.arc(0,0,B,Math.atan2(Re,Mt)+Q,Math.atan2(ut,Oe)+Q,!1)}else{let ut=ie(Ie,Re),Mt=ie(Oe,Re);l.lineTo(ut.x,ut.y),l.lineTo(Mt.x,Mt.y)}let rt=ie(Oe,Be);if(l.lineTo(rt.x,rt.y),Me)l.arc(0,0,D,Nn(X-Math.PI/2)+Q,Nn(-X-Math.PI/2)+Q,!0);else{let ut=ie(Ie,Be);l.lineTo(ut.x,ut.y)}l.closePath()}};hc.className="RadialColumnShape",T([rn()],hc.prototype,"isBeveled",2),T([rn()],hc.prototype,"columnWidth",2),T([rn()],hc.prototype,"startAngle",2),T([rn()],hc.prototype,"endAngle",2),T([rn()],hc.prototype,"outerRadius",2),T([rn()],hc.prototype,"innerRadius",2),T([rn()],hc.prototype,"axisInnerRadius",2),T([rn()],hc.prototype,"axisOuterRadius",2),T([rn()],hc.prototype,"isRadiusAxisReversed",2);function iC(r,l,m,D,L){let B=a0(r,l),H=B*(1-D)/2;if(r+=H,l-=H,B<.001)return 2*m*L;if(B>=2*Math.PI){let ye=r+B/2;r=ye-Math.PI,l=ye+Math.PI}let U=m*Math.cos(r),X=m*Math.sin(r),Q=m*Math.cos(l),ie=m*Math.sin(l),ue=Math.floor(Math.sqrt((U-Q)**2+(X-ie)**2)),be=2*m*L;return Math.max(1,Math.min(be,ue))}var nC={};A(nC,{ChartTheme:()=>Mh,DEFAULT_ANNOTATION_BACKGROUND_FILL:()=>yr,DEFAULT_ANNOTATION_COLOR:()=>cc,DEFAULT_ANNOTATION_HANDLE_FILL:()=>vg,DEFAULT_ANNOTATION_STATISTICS_COLOR:()=>_v,DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE:()=>Vb,DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL:()=>YM,DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE:()=>Xa,DEFAULT_ANNOTATION_STATISTICS_FILL:()=>Gb,DEFAULT_ANNOTATION_STATISTICS_STROKE:()=>rf,DEFAULT_AXIS_GRID_COLOUR:()=>Yr,DEFAULT_AXIS_LINE_COLOUR:()=>_b,DEFAULT_BACKGROUND_COLOUR:()=>gg,DEFAULT_CAPTION_ALIGNMENT:()=>tf,DEFAULT_CAPTION_LAYOUT_STYLE:()=>Mp,DEFAULT_COLOURS:()=>fS,DEFAULT_CROSS_LINES_COLOUR:()=>Nb,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:()=>sc,DEFAULT_FIBONACCI_STROKES:()=>qM,DEFAULT_FONT_FAMILY:()=>ko,DEFAULT_FUNNEL_SERIES_COLOR_RANGE:()=>fg,DEFAULT_GAUGE_SERIES_COLOR_RANGE:()=>lc,DEFAULT_GRIDLINE_ENABLED:()=>Oo,DEFAULT_HIERARCHY_FILLS:()=>UM,DEFAULT_HIERARCHY_STROKES:()=>KM,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:()=>Wc,DEFAULT_INVERTED_BACKGROUND_COLOUR:()=>$s,DEFAULT_INVERTED_LABEL_COLOUR:()=>VM,DEFAULT_LABEL_COLOUR:()=>po,DEFAULT_MUTED_LABEL_COLOUR:()=>Uc,DEFAULT_NAVIGATOR_STROKE:()=>jM,DEFAULT_PADDING:()=>Ad,DEFAULT_POLAR_SERIES_STROKE:()=>WM,DEFAULT_SEPARATION_LINES_COLOUR:()=>mS,DEFAULT_SHADOW_COLOUR:()=>pg,DEFAULT_SPARKLINE_CROSSHAIR_STROKE:()=>of,DEFAULT_TEXTBOX_COLOR:()=>yg,DEFAULT_TEXTBOX_FILL:()=>jb,DEFAULT_TEXTBOX_STROKE:()=>Nv,DEFAULT_TEXT_ANNOTATION_COLOR:()=>vS,DEFAULT_TOOLBAR_POSITION:()=>zv,IS_COMMUNITY:()=>l1,IS_DARK_THEME:()=>Fb,IS_ENTERPRISE:()=>pS,PALETTE_ALT_DOWN_FILL:()=>af,PALETTE_ALT_DOWN_STROKE:()=>HM,PALETTE_ALT_NEUTRAL_FILL:()=>c1,PALETTE_ALT_NEUTRAL_STROKE:()=>mg,PALETTE_ALT_UP_FILL:()=>gu,PALETTE_ALT_UP_STROKE:()=>Fv,PALETTE_DOWN_FILL:()=>Il,PALETTE_DOWN_STROKE:()=>kp,PALETTE_NEUTRAL_FILL:()=>Bb,PALETTE_NEUTRAL_STROKE:()=>nf,PALETTE_UP_FILL:()=>Ov,PALETTE_UP_STROKE:()=>zb,getChartTheme:()=>nR,themeNames:()=>Fk,themeSymbols:()=>s1,themes:()=>iR});var Fk=Object.keys(iR),tw={};A(tw,{Color:()=>To,interpolateColor:()=>Qi});var Qv={VERSION:ma,_Scene:Bp,_Theme:nC,_Util:tw,create:$a.create.bind($a),createSparkline:$a.__createSparkline.bind($a),setup:P1,isEnterprise:!1},oR={};A(oR,{AND:()=>dd,ARRAY:()=>Yf,ARRAY_OF:()=>bn,AbstractBarSeries:()=>S1,AbstractBarSeriesProperties:()=>PS,ActionOnSet:()=>Cl,AnchoredPopover:()=>Ea,Animation:()=>Dy,AnimationManager:()=>fv,Arc:()=>nl,ArrowDown:()=>pR,ArrowUp:()=>Nk,Axis:()=>Xh,AxisInterval:()=>Oc,AxisLabel:()=>gr,AxisTick:()=>nu,AxisTicks:()=>X1,BBox:()=>ft,BBoxValues:()=>xe,BOOLEAN:()=>Ri,BOOLEAN_ARRAY:()=>ls,Background:()=>bh,BackgroundModule:()=>hS,BandScale:()=>ml,BarSeries:()=>Js,BarSeriesModule:()=>mf,BaseModuleInstance:()=>y0,BaseProperties:()=>Hi,BaseToolbar:()=>Mu,ButtonWidget:()=>uv,COLOR_STRING:()=>In,COLOR_STRING_ARRAY:()=>Ns,CachedTextMeasurer:()=>tv,CachedTextMeasurerPool:()=>Wr,Caption:()=>Ua,CartesianAxis:()=>ia,CartesianSeries:()=>Hm,CartesianSeriesNodeEvent:()=>MM,CartesianSeriesProperties:()=>Cp,CategoryAxis:()=>ap,ChangeDetectableProperties:()=>XM,ChartAxisDirection:()=>Xf,ChartEventManager:()=>E0,ChartOptions:()=>aR,ChartUpdateType:()=>F0,Circle:()=>og,CollapseMode:()=>p1,Color:()=>To,ColorScale:()=>ei,ConicGradient:()=>jp,ContextMenuRegistry:()=>Ux,ContinuousScale:()=>Fa,Cursor:()=>Kx,CursorManager:()=>yD,DATE:()=>En,DATE_ARRAY:()=>ZC,DATE_OR_DATETIME_MS:()=>Ly,DEFAULT_CARTESIAN_DIRECTION_KEYS:()=>lg,DEFAULT_CARTESIAN_DIRECTION_NAMES:()=>bp,DEFAULT_TOOLTIP_CLASS:()=>qs,DEFAULT_TOOLTIP_DARK_CLASS:()=>kb,DIRECTION:()=>Vh,DOMManager:()=>Nc,DataController:()=>ED,DataModel:()=>B0,DataModelSeries:()=>wM,DataService:()=>oc,Debug:()=>Ma,Default:()=>qh,Deprecated:()=>Jv,DeprecatedAndRenamedTo:()=>ey,Diamond:()=>mp,DraggablePopover:()=>Af,DropShadow:()=>Dd,ExtendedPath2D:()=>vr,FONT_STYLE:()=>$u,FONT_WEIGHT:()=>Qu,FUNCTION:()=>_a,FloatingToolbar:()=>_d,GREATER_THAN:()=>Py,GestureDetector:()=>Yx,Gradient:()=>Bn,Group:()=>Ji,GroupedCategoryAxis:()=>dg,HdpiCanvas:()=>nc,HierarchyNode:()=>ty,HierarchySeries:()=>Fd,HierarchySeriesProperties:()=>Dg,HighlightManager:()=>Xx,HighlightProperties:()=>xM,HighlightStyle:()=>Db,INTERACTION_RANGE:()=>Jg,INTERPOLATION_STEP_POSITION:()=>Hb,INTERPOLATION_TYPE:()=>Cg,Image:()=>Jm,InteractionManager:()=>db,InteractionState:()=>Px,InterpolationProperties:()=>pu,Invalidating:()=>zr,KeyNavManager:()=>Zx,LABEL_PLACEMENT:()=>jh,LARGEST_KEY_INTERVAL:()=>Ib,LESS_THAN:()=>Zu,LINE_CAP:()=>Yn,LINE_DASH:()=>bo,LINE_JOIN:()=>Gh,LINE_STYLE:()=>fI,Label:()=>So,LayoutElement:()=>Rx,LayoutManager:()=>b0,LegendMarkerLabel:()=>ug,Line:()=>Ar,LineSeries:()=>OS,LineSeriesModule:()=>wk,LinearGradient:()=>Kh,LinearScale:()=>jc,Listeners:()=>Dr,Logger:()=>vi,LonLatBBox:()=>Y1,MARKER_SHAPE:()=>DT,MATCHING_CROSSLINE_TYPE:()=>Am,MAX_SPACING:()=>ox,MIN_SPACING:()=>JC,Marker:()=>Ss,Menu:()=>aC,MercatorScale:()=>Rk,ModuleRegistry:()=>rD,Motion:()=>kc,NAN:()=>XC,NODE_UPDATE_STATE_TO_PHASE_MAPPING:()=>os,NUMBER:()=>yn,NUMBER_ARRAY:()=>Jl,NUMBER_OR_NAN:()=>jt,NativeWidget:()=>fs,Node:()=>na,OBJECT:()=>Si,OBJECT_ARRAY:()=>ra,OR:()=>mm,OVERFLOW_STRATEGY:()=>vI,ObserveChanges:()=>ip,OrdinalTimeScale:()=>us,PHASE_METADATA:()=>sd,PHASE_ORDER:()=>Ac,PLACEMENT:()=>Ic,PLAIN_OBJECT:()=>ur,POINTER_INTERACTION_TYPES:()=>HI,POSITION:()=>$C,POSITION_TOP_COORDINATES:()=>$y,POSITIVE_NUMBER:()=>bi,PREV_NEXT_KEYS:()=>sp,Padding:()=>op,ParallelStateMachine:()=>XA,Path:()=>Dl,PointerEvents:()=>qn,PolarAxis:()=>bu,PolarSeries:()=>Lp,PolarZIndexMap:()=>yu,Popover:()=>eE,PropertiesArray:()=>ja,ProxyInteractionService:()=>Us,ProxyOnWrite:()=>s0,ProxyProperty:()=>Ai,ProxyPropertyOnWrite:()=>Tn,QUICK_TRANSITION:()=>rd,RATIO:()=>oa,REAL_NUMBER:()=>pa,RENDER_TO_OFFSCREEN_CANVAS_THRESHOLD:()=>iS,RadialColumnShape:()=>hc,Range:()=>ch,Rect:()=>za,RegionManager:()=>bD,RepeatType:()=>Ay,Rotatable:()=>Cm,RotatableGroup:()=>WA,RotatableText:()=>sa,SKIP_JS_BUILTINS:()=>Ls,SMALLEST_KEY_INTERVAL:()=>vT,SORT_DOMAIN_GROUPS:()=>AM,STRING:()=>Qt,STRING_ARRAY:()=>Oy,Scalable:()=>gx,ScalableGroup:()=>Gy,Scene:()=>mv,SceneChangeDetection:()=>Lt,ScenePathChangeDetection:()=>rn,Sector:()=>Ms,SectorBox:()=>qT,Selection:()=>co,Series:()=>Mv,SeriesContentZIndexMap:()=>vb,SeriesGroupingChangedEvent:()=>q0,SeriesItemHighlightStyle:()=>yp,SeriesMarker:()=>Kc,SeriesNodeEvent:()=>cu,SeriesNodePickMode:()=>xv,SeriesProperties:()=>Vc,SeriesTooltip:()=>Tl,SeriesZIndexMap:()=>Bm,Shape:()=>Cn,SimpleTextMeasurer:()=>yl,SliderWidget:()=>w0,Square:()=>wb,StateMachine:()=>no,StateMachineProperty:()=>Mm,SvgPath:()=>_o,TEXT_ALIGN:()=>QC,TEXT_WRAP:()=>Fy,TICK_INTERVAL:()=>oD,Text:()=>hr,TextUtils:()=>Wa,TextWrapper:()=>c0,ThemeConstants:()=>r1,ThemeSymbols:()=>s1,TimeScale:()=>VA,Toolbar:()=>zk,ToolbarButtonProperties:()=>Eh,ToolbarButtonWidget:()=>tE,ToolbarWidget:()=>x0,Tooltip:()=>yh,TooltipManager:()=>kl,TooltipPosition:()=>Vm,Transformable:()=>Ho,TransformableText:()=>hs,Translatable:()=>Sm,TranslatableGroup:()=>js,Triangle:()=>sg,UNION:()=>Xn,UpdateService:()=>$I,VERTICAL_ALIGN:()=>_y,Validate:()=>je,Vec2:()=>kf,Vec4:()=>ys,WIDGET_HTML_EVENTS:()=>Ir,Widget:()=>$h,WidgetEventUtil:()=>ru,ZIndexMap:()=>iD,ZoomManager:()=>wD,__FORCE_MODULE_DETECTION:()=>Z1,accumulateGroup:()=>$D,accumulateStack:()=>QD,accumulatedValue:()=>WD,accumulativeValueProperty:()=>sS,addHitTestersToQuadtree:()=>Yb,adjustLabelPlacement:()=>k1,angleBetween:()=>a0,angleDiff:()=>ka,animationValidation:()=>qm,areScalingEqual:()=>qi,area:()=>oS,arraysEqual:()=>Bh,backfillPathPointData:()=>ES,buildFormatter:()=>Qg,buildResetPathFn:()=>hk,calculateDefaultTimeTickFormat:()=>YC,calculateDerivativeExtrema:()=>yb,calculateDerivativeExtremaXY:()=>Av,calculateLabelChartPadding:()=>pd,calculateLabelTranslation:()=>Zy,calculatePlacement:()=>cM,checkCrisp:()=>fu,circularSliceArray:()=>ii,clamp:()=>st,clampArray:()=>St,clippedRoundRect:()=>Zs,clockwiseAngle:()=>UA,clockwiseAngles:()=>tp,collapsedStartingBarPosition:()=>pf,compareDates:()=>wI,computeBarFocusBounds:()=>yk,computeMarkerFocusBounds:()=>Sg,countFractionDigits:()=>Pt,createButton:()=>uR,createCheckbox:()=>hR,createDatumId:()=>ws,createDeprecationWarning:()=>Ag,createElement:()=>ta,createElementId:()=>Vy,createElementNS:()=>Jf,createIcon:()=>_k,createId:()=>Y,createSelect:()=>$1,createTextArea:()=>Q1,dateToNumber:()=>vo,datesSortOrder:()=>t0,datumKeys:()=>mb,datumStylerProperties:()=>fp,debounce:()=>cm,deconstructSelectionsOrNodes:()=>jf,deepClone:()=>Ur,deepFreeze:()=>Xl,deepMerge:()=>Mc,defaultTimeTickFormat:()=>pm,diff:()=>Zm,displacePointFromVector:()=>Hy,doOnce:()=>Yg,downloadUrl:()=>fx,drawCorner:()=>Lb,easing:()=>kc,enterpriseModule:()=>Yi,evaluateBezier:()=>ag,excludesType:()=>Zw,extent:()=>Xg,extractDecoratedProperties:()=>hl,findMaxIndex:()=>dx,findMaxValue:()=>BA,findMinIndex:()=>vm,findMinMax:()=>Xe,findMinValue:()=>SI,findQuadtreeMatch:()=>gf,findRangeExtent:()=>Ke,fixNumericExtent:()=>Al,focusCursorAtEnd:()=>ev,formatNumber:()=>iv,formatPercent:()=>Rc,formatValue:()=>Tc,fromToMotion:()=>ri,generateUUID:()=>J,getAngleRatioRadians:()=>KA,getDatumRefPoint:()=>Qx,getDocument:()=>Hr,getElementBBox:()=>bx,getIconClassNames:()=>Sx,getLastFocus:()=>vd,getMarker:()=>Cd,getMissCount:()=>kD,getPath:()=>od,getPathComponents:()=>AD,getRadialColumnWidth:()=>iC,getRectConfig:()=>mk,getWindow:()=>On,groupAccumulativeValueProperty:()=>wp,groupAverage:()=>Rv,groupBy:()=>Zl,groupCount:()=>HD,groupStackValueProperty:()=>Um,groupSum:()=>jD,hasNoModifiers:()=>ou,identity:()=>jC,inRange:()=>Ye,includes:()=>Zg,initMenuKeyNav:()=>ps,initRovingTabIndex:()=>dv,initToolbarKeyNav:()=>NI,interpolatePoints:()=>Ll,isArray:()=>La,isBetweenAngles:()=>zn,isBoolean:()=>Oh,isButtonClickEvent:()=>ms,isContinuous:()=>dh,isDate:()=>Fh,isDecoratedObject:()=>Ps,isDefined:()=>cr,isDenseInterval:()=>e0,isEnumKey:()=>LA,isEnumValue:()=>GC,isFiniteNumber:()=>ea,isFunction:()=>gl,isHtmlElement:()=>BC,isInputPending:()=>Cx,isInteger:()=>ct,isNegative:()=>Pe,isNumber:()=>as,isNumberEqual:()=>Ze,isObject:()=>Jn,isObjectLike:()=>xc,isPlainObject:()=>ns,isProperties:()=>Xd,isRegExp:()=>Kg,isScaleValid:()=>br,isString:()=>wa,isSymbol:()=>Ku,isValidDate:()=>Ro,jsonApply:()=>xm,jsonDiff:()=>Pc,jsonPropertyCompare:()=>xx,jsonWalk:()=>lh,keyProperty:()=>Xs,labelDirectionHandling:()=>tu,legendSymbolSvg:()=>Iv,lineDistanceSquared:()=>Hs,listDecoratedProperties:()=>is,makeAccessibleClickListener:()=>Er,mapValues:()=>_h,markerFadeInAnimation:()=>Ub,markerPaletteFactory:()=>bS,markerScaleInAnimation:()=>hf,markerSwipeScaleInAnimation:()=>Ep,mergeArrayDefaults:()=>sm,mergeDefaults:()=>mn,midpointStartingBarPosition:()=>vk,minMax:()=>sk,mod:()=>bt,moduleRegistry:()=>au,motion:()=>OL,nearestSquared:()=>tt,nearestSquaredInContainer:()=>ot,normaliseGroupTo:()=>Tb,normalisePropertyTo:()=>xd,normalisedExtentWithMetadata:()=>Os,normalizeAngle180:()=>Uh,normalizeAngle360:()=>Nn,normalizeAngle360Inclusive:()=>dn,objectsEqual:()=>qg,objectsEqualWith:()=>rm,pairUpSpans:()=>uf,partialAssign:()=>Nh,pathFadeInAnimation:()=>dk,pathFadeOutAnimation:()=>uk,pathMotion:()=>CS,pathSwipeInAnimation:()=>jv,pickByMatchingAngle:()=>Zb,pickNode:()=>uu,plotAreaPathFill:()=>GT,plotInterpolatedAreaSeriesFillSpans:()=>ok,plotInterpolatedLinePathStroke:()=>Wb,plotLinePathStroke:()=>ik,plotPath:()=>ck,predicateWithMessage:()=>Zn,prepareAreaFillAnimationFns:()=>VT,prepareAreaPathAnimation:()=>rk,prepareAxisAnimationContext:()=>Yh,prepareAxisAnimationFunctions:()=>Ex,prepareBarAnimationFunctions:()=>Hv,prepareLinePathAnimation:()=>BT,prepareLinePathPropertyAnimation:()=>ak,prepareLinePathStrokeAnimationFns:()=>nk,prepareMarkerAnimation:()=>v1,preparePieSeriesAnimationFunctions:()=>qc,range:()=>ds,rangedValueProperty:()=>rS,renderPartialPath:()=>wL,resetAxisGroupFn:()=>ib,resetAxisLabelSelectionFn:()=>f0,resetAxisLineSelectionFn:()=>Wi,resetAxisSelectionFn:()=>Ix,resetBarSelectionsFn:()=>Xb,resetIds:()=>j,resetLabelFn:()=>bg,resetMarkerFn:()=>Kb,resetMarkerPositionFn:()=>qb,resetMotion:()=>Co,resetPieSelectionsFn:()=>wg,round:()=>dt,sanitizeHtml:()=>Sb,scale:()=>ir,sectorBox:()=>Mk,seriesLabelFadeInAnimation:()=>$n,seriesLabelFadeOutAnimation:()=>sf,setAttribute:()=>Ka,setAttributes:()=>Ko,setDocument:()=>vx,setElementBBox:()=>oh,setElementStyle:()=>wl,setPath:()=>Vf,setWindow:()=>yx,shallowClone:()=>wm,singleSeriesPaletteFactory:()=>Ap,solveBezier:()=>kv,sortAndUniqueDates:()=>ym,sortBasedOnArray:()=>aa,splitBezier:()=>Gc,splitPairData:()=>IS,staticFromToMotion:()=>ld,stopPageScrolling:()=>Ml,stringify:()=>Zd,sum:()=>pL,sumValues:()=>aS,swapAxisCondition:()=>yS,throttle:()=>Iy,toArray:()=>HC,toDegrees:()=>uo,toRadians:()=>Ge,tooltipContentAriaLabel:()=>zD,trailingAccumulatedValue:()=>mT,trailingAccumulatedValueProperty:()=>Sp,unique:()=>Hf,updateClipPath:()=>gk,updateLabelNode:()=>M1,updateRect:()=>pk,validateCrossLineValues:()=>Mx,valueProperty:()=>kn,visibleRangeIndices:()=>Q0,without:()=>ad});function Ag(){return(r,l)=>{let m=[`Property [${r}] is deprecated.`,l].filter(Boolean).join(" ");vi.warnOnce(m)}}function Jv(r,l){let m=Ag(),D=l==null?void 0:l.default;return Vn((L,B,H)=>(H!==D&&m(B.toString(),r),H))}function ey(r,l){let m=Ag();return Vn((D,L,B)=>(B!==D[r]&&(m(L.toString(),`Use [${r}] instead.`),Vf(D,r,l?l(B):B)),Nr),(D,L)=>(m(L.toString(),`Use [${r}] instead.`),od(D,r)))}var kf={add:B1,angle:lR,apply:U1,equal:Dh,distance:V1,distanceSquared:rR,from:Vp,gradient:dR,intercept:j1,intersectAtX:Od,intersectAtY:H1,length:nw,lengthSquared:aw,multiply:G1,normalized:sR,origin:gc,required:K1,rotate:cR,round:W1,sub:iw};function B1(r,l){return typeof l=="number"?{x:r.x+l,y:r.y+l}:{x:r.x+l.x,y:r.y+l.y}}function iw(r,l){return typeof l=="number"?{x:r.x-l,y:r.y-l}:{x:r.x-l.x,y:r.y-l.y}}function G1(r,l){return typeof l=="number"?{x:r.x*l,y:r.y*l}:{x:r.x*l.x,y:r.y*l.y}}function nw(r){return Math.sqrt(r.x*r.x+r.y*r.y)}function aw(r){return r.x*r.x+r.y*r.y}function V1(r,l){let m=iw(r,l);return Math.sqrt(m.x*m.x+m.y*m.y)}function rR(r,l){let m=iw(r,l);return m.x*m.x+m.y*m.y}function sR(r){let l=nw(r);return{x:r.x/l,y:r.y/l}}function lR(r,l=gc()){return Math.atan2(r.y,r.x)-Math.atan2(l.y,l.x)}function cR(r,l,m=gc()){let D=nw(r);return{x:m.x+D*Math.cos(l),y:m.y+D*Math.sin(l)}}function dR(r,l,m){let D=l.x-r.x;return(m==null?l.y-r.y:m-l.y-(m-r.y))/D}function j1(r,l,m){return(m==null?r.y:m-r.y)-l*r.x}function H1(r,l,m=0,D){return{x:r===1/0?1/0:(m-l)/r,y:D==null?m:D-m}}function Od(r,l,m=0,D){let L=r===1/0?1/0:r*m+l;return{x:m,y:D==null?L:D-L}}function W1(r){return{x:Math.round(r.x),y:Math.round(r.y)}}function Dh(r,l){return r.x===l.x&&r.y===l.y}function Vp(r,l){if(typeof r=="number")return{x:r,y:l};if("regionX"in r)return{x:r.regionX,y:r.regionY};if("offsetWidth"in r)return{x:r.offsetWidth,y:r.offsetHeight};if("width"in r)return[{x:r.x,y:r.y},{x:r.x+r.width,y:r.y+r.height}];if("x1"in r)return[{x:r.x1,y:r.y1},{x:r.x2,y:r.y2}];throw new Error(`Values can not be converted into a vector: [${JSON.stringify(r)}] [${l}]`)}function U1(r,l){return r.x=l.x,r.y=l.y,r}function K1(r){var l,m;return{x:(l=r==null?void 0:r.x)!=null?l:0,y:(m=r==null?void 0:r.y)!=null?m:0}}function gc(){return{x:0,y:0}}var q1=class Lz{constructor(l,m,D,L,B,H,U,X,Q,ie){this.series=l,this.index=m,this.rootIndex=D,this.datum=L,this.sizeValue=B,this.colorValue=H,this.sumSize=U,this.depth=X,this.parent=Q,this.children=ie,this.midPoint={x:0,y:0}}contains(l){let m=l;for(;m!=null&&m.index>=this.index;){if(m===this)return!0;m=m.parent}return!1}walk(l,m=Lz.Walk.PreOrder){m===Lz.Walk.PreOrder&&l(this),this.children.forEach(D=>{D.walk(l,m)}),m===Lz.Walk.PostOrder&&l(this)}*[Symbol.iterator](){yield this;for(let l of this.children)yield*l}};q1.Walk={PreOrder:0,PostOrder:1};var ty=q1,Fd=class extends Mv{constructor(r){super({moduleCtx:r,pickModes:[1,0]}),this.rootNode=new ty(this,0,0,void 0,0,void 0,0,void 0,void 0,[]),this.colorDomain=[0,0],this.maxDepth=0,this.colorScale=new ei,this.focusPath=[],this.animationState=new no("empty",{empty:{update:{target:"ready",action:l=>this.animateEmptyUpdateReady(l)},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",highlight:l=>this.animateReadyHighlight(l),resize:l=>this.animateReadyResize(l),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:l=>this.animateWaitingUpdateReady(l)},reset:"empty",skip:"ready"},clearing:{update:{target:"empty",action:l=>this.animateClearingUpdateEmpty(l)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}resetAnimation(r){r==="initial"?this.animationState.transition("reset"):r==="ready"&&this.animationState.transition("skip")}processData(){let{childrenKey:r,sizeKey:l,colorKey:m,colorRange:D}=this.properties,L=0,B=()=>(L+=1,L),H=0,U=1/0,X=-1/0,Q=(ye,Me,Ie)=>{let Oe=B(),Re=Ie.depth!=null?Ie.depth+1:0,Be=r!=null?ye[r]:void 0,Ue=Be==null||Be.length===0,Ne=l!=null?ye[l]:void 0;Number.isFinite(Ne)?Ne=Math.max(Ne,0):Ne=Ue?1:0;let Qe=Ne;H=Math.max(H,Re);let nt=m!=null?ye[m]:void 0;return typeof nt=="number"&&(U=Math.min(U,nt),X=Math.max(X,nt)),ie(new ty(this,Oe,Me!=null?Me:0,ye,Ne,nt,Qe,Re,Ie,[]),Me,Be)},ie=(ye,Me,Ie)=>(Ie==null||Ie.forEach((Oe,Re)=>{let Be=Q(Oe,Me!=null?Me:Re,ye);ye.children.push(Be),ye.sumSize+=Be.sumSize}),ye),ue=ie(new ty(this,0,0,void 0,0,void 0,0,void 0,void 0,[]),void 0,this.data),be=[U,X];this.colorScale.domain=U<X?[U,X]:[0,1],this.colorScale.range=D!=null?D:["black"],this.colorScale.update(),this.rootNode=ue,this.maxDepth=H,this.colorDomain=be,this.focusPath=[{nodeDatum:this.rootNode,childIndex:0}]}update({seriesRect:r}){this.updateSelections(),this.updateNodes();let l=this.getAnimationData();this.checkResize(r)&&this.animationState.transition("resize",l),this.animationState.transition("update",l)}resetAllAnimation(r){var m;let l=(m=this.animationResetFns)==null?void 0:m.datum;this.ctx.animationManager.stopByAnimationGroupId(this.id),l!=null&&Co(r.datumSelections,l)}animateEmptyUpdateReady(r){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(r)}animateWaitingUpdateReady(r){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(r)}animateReadyHighlight(r){var m;let l=(m=this.animationResetFns)==null?void 0:m.datum;l!=null&&Co([r],l)}animateReadyResize(r){this.resetAllAnimation(r)}animateClearingUpdateEmpty(r){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(r)}isProcessedDataAnimatable(){return!0}checkProcessedDataAnimatable(){this.isProcessedDataAnimatable()||this.ctx.animationManager.skipCurrentBatch()}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(r,l){return[NaN,NaN]}getLegendData(r){let{colorKey:l,colorName:m,colorRange:D}=this.properties,{id:L,ctx:{legendManager:B},visible:H}=this;return r==="gradient"&&l!=null&&D!=null?[{legendType:"gradient",enabled:H&&B.getItemEnabled({seriesId:L}),seriesId:L,colorName:m,colorRange:D,colorDomain:this.colorDomain}]:[]}getDatumIdFromData(r){return`${r.index}`}getDatumId(r){return this.getDatumIdFromData(r)}pickFocus(r){var B,H;if(this.rootNode.children.length===0)return;this.focusPath.length===0&&vi.error("this.focusPath should not be empty");let{datumIndexDelta:l,otherIndexDelta:m}=r,{focusPath:D}=this,L=D.length-2;if(m!==0||D.length===1){let U=Math.max(0,L+m);if(D[U+1]==null){let X=D[D.length-1];for(;X.nodeDatum.children.length>0&&((B=X.nodeDatum.depth)!=null?B:-1)<U;){let Q={nodeDatum:X.nodeDatum.children[0],childIndex:0};D.push(Q),X=Q}return this.computeFocusOutputs(X)}else return D.length=U+2,this.computeFocusOutputs(D[U+1])}else{if(l===0)return this.computeFocusOutputs(D[D.length-1]);{let U=D[L+1].childIndex+l,X=D[L].nodeDatum,Q=(H=X==null?void 0:X.children)==null?void 0:H.length;if(Q!=null){let ie=st(0,U,Q-1),ue={nodeDatum:X.children[ie],childIndex:ie};return D[L+1]=ue,D.length=L+2,this.computeFocusOutputs(ue)}}}}getDatumAriaText(r,l){var m;if(!(r instanceof ty)){vi.error(`datum is not HierarchyNode: ${JSON.stringify(r)}`);return}return this.ctx.localeManager.t("ariaAnnounceHierarchyDatum",{level:((m=r.depth)!=null?m:-1)+1,count:r.children.length,description:l})}computeFocusOutputs({nodeDatum:r,childIndex:l}){let m=this.computeFocusBounds(r);if(m)return{datum:r,datumIndex:l,otherIndex:r.depth,bounds:m,showFocusBox:!0,clipFocusBox:!0}}},Dg=class extends Vc{constructor(){super(...arguments),this.childrenKey="children",this.fills=Object.values(ar),this.strokes=Object.values(Id)}};T([je(Qt)],Dg.prototype,"childrenKey",2),T([je(Qt,{optional:!0})],Dg.prototype,"sizeKey",2),T([je(Qt,{optional:!0})],Dg.prototype,"colorKey",2),T([je(Qt,{optional:!0})],Dg.prototype,"colorName",2),T([je(Ns)],Dg.prototype,"fills",2),T([je(Ns)],Dg.prototype,"strokes",2),T([je(Ns,{optional:!0})],Dg.prototype,"colorRange",2);var Y1=class{constructor(r,l,m,D){this.lon0=r,this.lat0=l,this.lon1=m,this.lat1=D}merge(r){this.lon0=Math.min(this.lon0,r.lon0),this.lat0=Math.min(this.lat0,r.lat0),this.lon1=Math.max(this.lon1,r.lon1),this.lat1=Math.max(this.lat1,r.lat1)}},ow=class n6{constructor(){this.id=Y(this),this.axisGroup=new js({name:`${this.id}-AxisTicks`,zIndex:2}),this.labelSelection=co.select(this.axisGroup,hr),this.interval=new Oc,this.label=new gr,this.scale=new jc,this.position="bottom",this.translationX=0,this.translationY=0,this.padding=0}attachAxis(l){l.appendChild(this.axisGroup)}calculateLayout(){this.scale.interval=this.interval.step;let l=[],m=this.generateTicks(),{translationX:D,translationY:L}=this;return this.labelSelection.update(m.ticks.map(B=>this.createLabelDatum(B)),void 0,B=>B.tickId),this.labelSelection.each((B,H)=>{B.setProperties(H),H.visible&&l.push(B.getBBox())}),this.axisGroup.setProperties({translationX:D,translationY:L}),ft.merge(l)}getLabelParams(l){let{padding:m}=this,{translate:D}=l;switch(this.position){case"top":case"bottom":return{x:D,y:m,textAlign:"center",textBaseline:"top"};case"left":case"right":return{x:m,y:D,textAlign:"start",textBaseline:"middle"}}}inRange(l,m=.001){let[D,L]=Xe(this.scale.range);return l>=D-m&&l<=L+m}createLabelDatum(l){let{x:m,y:D,textBaseline:L,textAlign:B}=this.getLabelParams(l);return{visible:!!l.tickLabel,tickId:l.tickId,fill:this.label.color,fontFamily:this.label.fontFamily,fontSize:this.label.fontSize,fontStyle:this.label.fontStyle,fontWeight:this.label.fontWeight,rotation:0,rotationCenterX:0,text:l.tickLabel,textAlign:B,textBaseline:L,x:m,y:D}}generateTicks(){let{minSpacing:l,maxSpacing:m}=this.interval,D=dt(Ke(this.scale.range),2),{maxTickCount:L,minTickCount:B,tickCount:H}=cx(D,l,m,n6.DefaultTickCount,n6.DefaultMinSpacing);H&&(this.scale.tickCount=H,this.scale.minTickCount=B,this.scale.maxTickCount=L);let U=this.getTicksData();if(this.position==="bottom"||this.position==="top"){let X=Wr.getMeasurer({font:this.label}),Q=this.scale.getDomain(),ue=Q[0]>Q[1]?-1:1,be=-1/0*ue;U.ticks=U.ticks.filter(ye=>Math.sign(ye.translate-be)!==ue?!1:(be=ye.translate+X.textWidth(ye.tickLabel,!0)*ue,!0))}return U}getTicksData(){var H,U,X;let l=[],m=this.scale.ticks(),D=m.reduce((Q,ie)=>Math.max(Q,Pt(ie)),0),L=Yy(),B=this.label.format?this.scale.tickFormat({ticks:m,specifier:this.label.format}):Q=>Tc(Q,D);for(let Q=0;Q<m.length;Q++){let ie=m[Q],ue=this.scale.convert(ie);if(!this.inRange(ue))continue;let be=(X=(U=(H=this.label).formatter)==null?void 0:U.call(H,{value:ie,index:Q,fractionDigits:D}))!=null?X:B(ie),ye=L(be);l.push({tick:ie,tickId:ye,tickLabel:be,translate:ue})}return{rawTicks:m,fractionDigits:D,ticks:l}}};ow.DefaultTickCount=5,ow.DefaultMinSpacing=50;var X1=ow,Z1=0;function uR(r,l){let m=ta("button",iy("ag-charts-input ag-charts-button",l));return r.label!==void 0?m.append(r.label):(m.append(_k(r.icon)),m.ariaLabel=r.altText),m.addEventListener("click",r.onPress),Ko(m,l),m}function hR(r,l){let m=ta("input",iy("ag-charts-input ag-charts-checkbox",l));return m.type="checkbox",m.checked=r.checked,m.addEventListener("change",D=>r.onChange(m.checked,D)),m.addEventListener("keydown",D=>{ms(D)&&(D.preventDefault(),m.click())}),Ko(m,l),m}function $1(r,l){let m=ta("select",iy("ag-charts-input ag-charts-select",l));return m.append(...r.options.map(D=>{let L=ta("option");return L.value=D.value,L.textContent=D.label,L})),Ka(m,"data-preventdefault",!1),m.value=r.value,m.addEventListener("change",D=>r.onChange(m.value,D)),Ko(m,l),m}function Q1(r,l){let m=ta("textarea",iy("ag-charts-input ag-charts-textarea",l));return m.value=r.value,m.addEventListener("input",D=>r.onChange(m.value,D)),Ko(m,l),m}function _k(r){let l=ta("span",`ag-charts-icon ag-charts-icon-${r}`);return Ka(l,"aria-hidden",!0),l}function iy(r,l){return l==null?r:`${r} ${l.class}`}var jp=class extends Bn{constructor(r,l,m=0,D){super(r,l,D),this.angle=m}createCanvasGradient(r,l){let{angle:D}=this,L=Nn(Ge(D+90)),B=l.x+l.width*.5,H=l.y+l.height*.5;return r.createConicGradient(L,B,H)}},_o=class extends Dl{constructor(r=""){super(),this.x=0,this.y=0,this.commands=[],this._d="",this.d=r}get d(){return this._d}set d(r){if(r!==this._d){this._d=r,this.commands.length=0;for(let[l,m,D]of r.matchAll(/([A-Z])([0-9. ]*)/g)){let L=D.split(/\s+/g).map(Number);this.commands.push([m,L])}this.checkPathDirty()}}updatePath(){let{path:r,x:l,y:m}=this;r.clear();let D=l,L=m;for(let[B,H]of this.commands)switch(B){case"M":r.moveTo(l+H[0],m+H[1]),D=l+H[0];break;case"C":r.cubicCurveTo(l+H[0],m+H[1],l+H[2],m+H[3],l+H[4],m+H[5]),D=l+H[4],L=m+H[5];break;case"H":r.lineTo(l+H[0],L),D=m+H[0];break;case"L":r.lineTo(l+H[0],m+H[1]),D=l+H[0],L=m+H[1];break;case"V":r.lineTo(D,m+H[0]),L=m+H[0];break;case"Z":r.closePath();break;default:throw new Error(`Could not translate command '${B}' with '${H.join(" ")}'`)}r.closePath()}};T([rn()],_o.prototype,"x",2),T([rn()],_o.prototype,"y",2);var gR=class mZ extends Ss{updatePath(){let l=this.size/2;super.applyPath(l,mZ.moves)}};gR.className="ArrowUp",gR.moves=[{x:0,y:0,t:"move"},{x:1,y:1.2},{x:-.5,y:0},{x:0,y:.8},{x:-1,y:0},{x:0,y:-.8},{x:-.5,y:0}];var Nk=gR,pR=class extends Ss{updatePath(){let r=this.size/2;super.applyPath(r,Nk.moves.map(l=>({x:l.x*-1,y:l.y*-1})))}};pR.className="ArrowDown";var rw={};A(rw,{ButtonWidget:()=>uv,NativeWidget:()=>fs,SliderWidget:()=>w0,ToolbarWidget:()=>x0,WIDGET_HTML_EVENTS:()=>Ir,Widget:()=>$h,WidgetEventUtil:()=>ru});var J1="canvas-overlay",eE=class extends y0{constructor(r,l,m){super(),this.ctx=r,this.hideFns=[],this.moduleId=`popover-${l}`,m!=null&&m.detached?this.element=ta("div"):this.element=r.domManager.addChild(J1,this.moduleId),this.element.setAttribute("role","presentation"),this.destroyFns.push(()=>r.domManager.removeChild(J1,this.moduleId))}attachTo(r){this.element.parentElement||r.element.append(this.element)}hide(r){let{lastFocus:l=this.lastFocus}=r!=null?r:{};this.element.children.length!==0&&(this.hideFns.forEach(m=>m()),l==null||l.focus(),this.lastFocus=void 0)}removeChildren(){this.element.replaceChildren()}showWithChildren(r,l){if(!this.element.parentElement)throw new Error("Can not show popover that has not been attached to a parent.");let m=ta("div","ag-charts-popover");if(l.ariaLabel!=null&&m.setAttribute("aria-label",l.ariaLabel),l.class!=null&&m.classList.add(l.class),m.replaceChildren(...r),this.element.replaceChildren(m),this.hideFns.push(()=>this.removeChildren()),l.onHide&&this.hideFns.push(l.onHide),l.initialFocus&&l.sourceEvent){let D=vd(l.sourceEvent);D!==void 0&&(this.lastFocus=D,this.initialFocus=l.initialFocus)}return m}getPopoverElement(){return this.element.firstElementChild}updatePosition(r){var m;let l=this.getPopoverElement();l&&(l.style.setProperty("right","unset"),l.style.setProperty("bottom","unset"),r.x!=null&&l.style.setProperty("left",`${Math.floor(r.x)}px`),r.y!=null&&l.style.setProperty("top",`${Math.floor(r.y)}px`),(m=this.initialFocus)==null||m.focus(),this.initialFocus=void 0)}},Ea=class extends eE{setAnchor(r,l){this.anchor=r,this.fallbackAnchor=l,this.updatePosition(r),this.repositionWithinBounds()}showWithChildren(r,l){var B,H;let m=(B=l.anchor)!=null?B:this.anchor,D=(H=l.fallbackAnchor)!=null?H:this.fallbackAnchor,L=super.showWithChildren(r,l);return m&&this.setAnchor(m,D),On().requestAnimationFrame(()=>{this.repositionWithinBounds()}),L}repositionWithinBounds(){let{anchor:r,ctx:l,fallbackAnchor:m}=this,D=this.getPopoverElement();if(!r||!D)return;let L=l.domManager.getBoundingClientRect(),{offsetWidth:B,offsetHeight:H}=D,U=st(0,r.x,L.width-B),X=st(0,r.y,L.height-H);U!==r.x&&(m==null?void 0:m.x)!=null&&(U=st(0,m.x-B,L.width-B)),X!==r.y&&(m==null?void 0:m.y)!=null&&(X=st(0,m.y-H,L.height-H)),this.updatePosition({x:U,y:X})}},aC=class extends Ea{show(r){let l=r.items.map(D=>this.createRow(r,D)),m=this.showWithChildren(l,r);m.classList.add("ag-charts-menu"),m.setAttribute("role","menu"),this.menuCloser=ps({orientation:"vertical",menu:m,buttons:l,sourceEvent:r.sourceEvent,closeCallback:()=>this.hide()}),this.hideFns.push(()=>{var D;(D=this.menuCloser)==null||D.finishClosing(),this.menuCloser=void 0})}createRow(r,l){let{menuItemRole:m="menuitem"}=r,D=l.value===r.value,L=ta("div","ag-charts-menu__row");if(L.setAttribute("role",m),m==="menuitemradio"&&L.setAttribute("aria-checked",(r.value===l.value).toString()),typeof l.value=="string"&&(L.dataset.popoverId=l.value),L.classList.toggle("ag-charts-menu__row--active",D),l.icon!=null){let X=ta("span",`ag-charts-menu__icon ${Sx(l.icon)}`);L.appendChild(X)}let B=l.strokeWidth!=null;if(B&&(L.classList.toggle("ag-charts-menu__row--stroke-width-visible",B),L.style.setProperty("--strokeWidth",B?`${l.strokeWidth}px`:null)),l.label!=null){let X=ta("span","ag-charts-menu__label");X.textContent=this.ctx.localeManager.t(l.label),L.appendChild(X)}"altText"in l&&(L.ariaLabel=this.ctx.localeManager.t(l.altText));let H=()=>{var X;(X=r.onPress)==null||X.call(r,l)},U=X=>{ms(X)&&(H(),X.preventDefault(),X.stopPropagation())};return L.addEventListener("keydown",U),L.addEventListener("click",U),L.addEventListener("mousemove",()=>{L.focus({preventScroll:!0})}),L}},Af=class extends eE{constructor(){super(...arguments),this.dragged=!1}setDragHandle(r){r.addListener("drag-start",l=>{r.addClass(this.dragHandleDraggingClass),this.onDragStart(l)}),r.addListener("drag-move",this.onDragMove.bind(this)),r.addListener("drag-end",()=>{r.removeClass(this.dragHandleDraggingClass),this.onDragEnd.bind(this)})}onDragStart(r){let l=this.getPopoverElement();l&&(r.sourceEvent.preventDefault(),this.dragged=!0,this.dragStartState={client:kf.from(r.clientX,r.clientY),position:kf.from(Number(l.style.getPropertyValue("left").replace("px","")),Number(l.style.getPropertyValue("top").replace("px","")))})}onDragMove(r){let{dragStartState:l}=this,m=this.getPopoverElement();if(!l||!m)return;let D=kf.sub(kf.from(r.clientX,r.clientY),l.client),L=kf.add(l.position,D),B=this.ctx.domManager.getBoundingClientRect(),H={};L.x>=B.x&&L.x+m.offsetWidth<=B.width&&(H.x=L.x),L.y>=B.y&&L.y+m.offsetHeight<=B.height&&(H.y=L.y),this.updatePosition(H)}onDragEnd(){this.dragStartState=void 0}},Eh=class extends Hi{};T([je(Qt,{optional:!0})],Eh.prototype,"icon",2),T([je(Qt,{optional:!0})],Eh.prototype,"label",2),T([je(Qt,{optional:!0})],Eh.prototype,"ariaLabel",2),T([je(Qt,{optional:!0})],Eh.prototype,"tooltip",2);var tE=class extends uv{constructor(r){super(),this.localeManager=r}update(r){let{localeManager:l}=this;r.tooltip&&(this.elem.title=l.t(r.tooltip));let m="";if(r.icon!=null&&(m=`<span class="${Sx(r.icon)} ag-charts-toolbar__icon"></span>`),r.label!=null){let D=l.t(r.label);m=`${m}<span class="ag-charts-toolbar__label">${D}</span>`}this.elem.innerHTML=m}setChecked(r){Ka(this.elem,"aria-checked",r)}},mR="ag-charts-toolbar__button--active",Mu=class extends x0{constructor(r,l="horizontal"){super(l),this.localeManager=r,this.horizontalSpacing=10,this.verticalSpacing=10,this.events=new Dr,this.hasPrefix=!1,this.buttonWidgets=[],this.addClass("ag-charts-toolbar"),this.toggleClass("ag-charts-toolbar--horizontal",l==="horizontal"),this.toggleClass("ag-charts-toolbar--vertical",l==="vertical")}addToolbarListener(r,l){return this.events.addListener(r,l)}clearButtons(){for(let r of this.buttonWidgets)r.destroy();this.buttonWidgets.splice(0)}updateButtons(r){var m;let{buttonWidgets:l}=this;for(let[D,L]of r.entries())((m=this.buttonWidgets.at(D))!=null?m:this.createButton(D,L)).update(L);for(let D=r.length;D<l.length;D++){let L=this.buttonWidgets.at(D);L==null||L.destroy()}this.buttonWidgets.splice(r.length),this.refreshButtonClasses()}updateButtonByIndex(r,l){var m;(m=this.buttonWidgets.at(r))==null||m.update(l)}clearActiveButton(){for(let r of this.buttonWidgets)r.toggleClass(mR,!1)}toggleActiveButtonByIndex(r){if(r!==-1)for(let[l,m]of this.buttonWidgets.entries())m.toggleClass(mR,r!=null&&r===l)}toggleButtonEnabledByIndex(r,l){var m;r!==-1&&((m=this.buttonWidgets.at(r))==null||m.setEnabled(l))}toggleSwitchCheckedByIndex(r,l){var m;r!==-1&&((m=this.buttonWidgets.at(r))==null||m.setChecked(l))}getButtonBounds(){return this.buttonWidgets.map(r=>this.getButtonWidgetBounds(r))}setButtonHiddenByIndex(r,l){var m;(m=this.buttonWidgets.at(r))==null||m.setHidden(l)}getButtonWidgetBounds(r){let l=this.getBounds(),m=r.getBounds();return new ft(m.x+l.x,m.y+l.y,m.width,m.height)}refreshButtonClasses(){var B;let{buttonWidgets:r,hasPrefix:l}=this,m,D,L;for(let[H,U]of r.entries())m=!l&&H===0||L!=U.section,D=H===r.length-1||U.section!=((B=r.at(H+1))==null?void 0:B.section),U.toggleClass("ag-charts-toolbar__button--first",m),U.toggleClass("ag-charts-toolbar__button--last",D),U.toggleClass("ag-charts-toolbar__button--gap",H>0&&m),L=U.section}createButton(r,l){let m=this.createButtonWidget();return m.addClass("ag-charts-toolbar__button"),m.addListener("click",D=>{let L=ge({index:r},l instanceof Hi?l.toJson():l),B=this.getButtonWidgetBounds(m);this.events.dispatch("button-pressed",{event:D,button:L,buttonBounds:B})}),m.addListener("focus",()=>{this.events.dispatch("button-focused",{button:{index:r}})}),l.section&&(m.section=l.section),this.buttonWidgets.push(m),this.addChild(m),m}},zk=class extends Mu{createButtonWidget(){return new tE(this.localeManager)}},LL=class extends Af{constructor(r,l,m){super(r,l),this.onPopoverMoved=m,this.dragHandleDraggingClass="ag-charts-floating-toolbar__drag-handle--dragging"}show(r,l){this.showWithChildren(r,He(ge({},l),{class:"ag-charts-floating-toolbar"}))}hide(){this.dragged=!1,super.hide()}getBounds(){var l,m,D,L;let r=this.getPopoverElement();return new ft((l=r==null?void 0:r.offsetLeft)!=null?l:0,(m=r==null?void 0:r.offsetTop)!=null?m:0,(D=r==null?void 0:r.offsetWidth)!=null?D:0,(L=r==null?void 0:r.offsetHeight)!=null?L:0)}hasBeenDragged(){return this.dragged}setAnchor(r,l,m){var Q;let D=this.getPopoverElement();if(!D)return;let L=(Q=r.position)!=null?Q:"above",{offsetWidth:B,offsetHeight:H}=D,U=r.y-H-m,X=r.x-B/2;L==="below"?U=r.y+m:L==="right"?(U=r.y-H/2,X=r.x+l):L==="above-left"&&(X=r.x),this.updatePosition({x:X,y:U})}ignorePointerEvents(){let r=this.getPopoverElement();r&&(r.style.pointerEvents="none")}capturePointerEvents(){let r=this.getPopoverElement();r&&(r.style.pointerEvents="unset")}updatePosition(r){let l=this.getBounds(),m=this.ctx.domManager.getBoundingClientRect();r.x=Math.floor(st(0,r.x,m.width-l.width)),r.y=Math.floor(st(0,r.y,m.height-l.height)),super.updatePosition(r),this.onPopoverMoved()}},_d=class extends Mu{constructor(r,l){super(r.localeManager),this.hasPrefix=!0,this.popover=new LL(r,l,this.onPopoverMoved.bind(this)),this.dragHandle=new iE(r.localeManager.t("toolbarAnnotationsDragHandle")),this.popover.setDragHandle(this.dragHandle)}show(r){this.popover.show([this.dragHandle.getElement(),this.getElement()],r)}hide(){this.popover.hide()}setAnchor(r){this.popover.setAnchor(r,this.horizontalSpacing,this.verticalSpacing)}hasBeenDragged(){return this.popover.hasBeenDragged()}ignorePointerEvents(){this.popover.ignorePointerEvents()}capturePointerEvents(){this.popover.capturePointerEvents()}onPopoverMoved(){var m;let r=this.popover.getBounds();if((m=this.popoverBounds)!=null&&m.equals(r))return;this.popoverBounds=r.clone();let l=this.getButtonBounds();this.events.dispatch("toolbar-moved",{popoverBounds:r,buttonBounds:l})}getButtonWidgetBounds(r){let l=this.popover.getBounds(),m=super.getButtonWidgetBounds(r),D=this.dragHandle.getBounds();return new ft(m.x+l.x-D.width,m.y+l.y,m.width,m.height)}},iE=class extends fs{constructor(r){super(ta("div","ag-charts-floating-toolbar__drag-handle"));let l=new fs(ta("span",`${Sx("drag-handle")} ag-charts-toolbar__icon`));l.setAriaHidden(!0),this.addChild(l),this.elem.title=r}},OL=ge(ge({},O),fm);if(typeof oe.exports=="object"&&typeof re=="object"){var pc=(r,l,m,D)=>{if(l&&typeof l=="object"||typeof l=="function")for(let L of Object.getOwnPropertyNames(l))!Object.prototype.hasOwnProperty.call(r,L)&&L!==m&&Object.defineProperty(r,L,{get:()=>l[L],enumerable:!(D=Object.getOwnPropertyDescriptor(l,L))||D.enumerable});return r};oe.exports=pc(oe.exports,re)}return oe.exports})});var jZ=uO((OO,g6)=>{(function(re,oe){typeof OO=="object"&&typeof g6=="object"?g6.exports=oe():typeof define=="function"&&define.amd?define("agCharts",[],oe):typeof OO=="object"?OO.agCharts=oe():re.agCharts=oe()})(OO,()=>{var re={},oe={exports:re};if(typeof Axe=="undefined")var Axe=function(t){throw new Error("Unknown module: "+t)};var he=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,A=(e,t)=>function(){return e&&(t=(0,e[x(e)[0]])(e=0)),t},E=(e,t)=>{for(var n in t)he(e,n,{get:t[n],enumerable:!0})},z=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of x(t))!p.call(e,u)&&u!==n&&he(e,u,{get:()=>t[u],enumerable:!(a=ae(t,u))||a.enumerable});return e},T=e=>z(he({},"__esModule",{value:!0}),e),b=(e,t,n,a)=>{for(var u=a>1?void 0:a?ae(t,n):t,y=e.length-1,k;y>=0;y--)(k=e[y])&&(u=(a?k(t,n,u):k(u))||u);return a&&u&&he(t,n,u),u},C=A({"packages/ag-charts-locale/src/ar-EG.ts"(){"use strict"}}),d=A({"packages/ag-charts-locale/src/bg-BG.ts"(){"use strict"}}),s=A({"packages/ag-charts-locale/src/cs-CZ.ts"(){"use strict"}}),c=A({"packages/ag-charts-locale/src/da-DK.ts"(){"use strict"}}),h=A({"packages/ag-charts-locale/src/de-DE.ts"(){"use strict"}}),g=A({"packages/ag-charts-locale/src/el-GR.ts"(){"use strict"}}),f,S=A({"packages/ag-charts-locale/src/en-US.ts"(){"use strict";f={ariaAnnounceHoverDatum:"${datum}",ariaAnnounceChart:"chart, ${seriesCount}[number] series",ariaAnnounceHierarchyChart:"hierarchy chart, ${caption}",ariaAnnounceGaugeChart:"gauge chart, ${caption}",ariaAnnounceHierarchyDatum:"level ${level}[number], ${count}[number] children, ${description}",ariaAnnounceFlowProportionLink:"link ${index} of ${count}, from ${from} to ${to}, ${sizeName} ${size}",ariaAnnounceFlowProportionNode:"node ${index} of ${count}, ${description}",ariaDescriptionLegendItem:"Press Space or Enter to toggle visibility",ariaLabelAddHorizontalLine:"Add Horizontal Line",ariaLabelAnnotationOptionsToolbar:"Annotation Options",ariaLabelAnnotationSettingsDialog:"Annotation Settings",ariaLabelColorPicker:"Color picker",ariaLabelFinancialCharts:"Financial Charts",ariaLabelLegend:"Legend",ariaLabelLegendPagination:"Legend Pagination",ariaLabelLegendPagePrevious:"Previous Legend Page",ariaLabelLegendPageNext:"Next Legend Page",ariaLabelLegendItem:"${label}, Legend item ${index}[number] of ${count}[number]",ariaLabelLegendItemUnknown:"Unknown legend item",ariaLabelNavigator:"Navigator",ariaLabelNavigatorRange:"Range",ariaLabelNavigatorMinimum:"Minimum",ariaLabelNavigatorMaximum:"Maximum",ariaLabelRangesToolbar:"Ranges",ariaLabelSettingsTabBar:"Settings",ariaLabelZoomToolbar:"Zoom",ariaValuePanRange:"${min}[percent] to ${max}[percent]",iconAltTextLineStyleSolid:"Solid",iconAltTextLineStyleDashed:"Long-dashed",iconAltTextLineStyleDotted:"Short-dashed",iconAltTextPositionTop:"Top",iconAltTextPositionCenter:"Center",iconAltTextPositionBottom:"Bottom",iconAltTextAlignLeft:"Left",iconAltTextAlignCenter:"Center",iconAltTextAlignRight:"Right",iconAltTextClose:"Close",overlayLoadingData:"Loading data...",overlayNoData:"No data to display",overlayNoVisibleSeries:"No visible series",overlayUnsupportedBrowser:"Incompatible browser version. Please upgrade your browser.",seriesHistogramTooltipFrequency:"Frequency",seriesHistogramTooltipSum:"${yName} (sum)",seriesHistogramTooltipCount:"${yName} (count)",seriesHistogramTooltipMean:"${yName} (mean)",toolbarSeriesTypeDropdown:"Chart Type",toolbarSeriesTypeOHLC:"OHLC",toolbarSeriesTypeHLC:"HLC",toolbarSeriesTypeHighLow:"High Low",toolbarSeriesTypeCandles:"Candles",toolbarSeriesTypeHollowCandles:"Hollow Candles",toolbarSeriesTypeLine:"Line",toolbarSeriesTypeLineWithMarkers:"Line with Markers",toolbarSeriesTypeStepLine:"Step Line",toolbarAnnotationsTrendLine:"Trend Line",toolbarAnnotationsFibonacciRetracement:"Fib Retracement",toolbarAnnotationsHorizontalLine:"Horizontal Line",toolbarAnnotationsVerticalLine:"Vertical Line",toolbarAnnotationsParallelChannel:"Parallel Channel",toolbarAnnotationsDisjointChannel:"Disjoint Channel",toolbarAnnotationsClearAll:"Clear All",toolbarAnnotationsFillColor:"Fill Color",toolbarAnnotationsLineColor:"Line Color",toolbarAnnotationsLineStyle:"Line Style",toolbarAnnotationsLineStrokeWidth:"Line Stroke Width",toolbarAnnotationsSettings:"Settings",toolbarAnnotationsTextColor:"Text Color",toolbarAnnotationsTextSize:"Text Size",toolbarAnnotationsLock:"Lock",toolbarAnnotationsUnlock:"Unlock",toolbarAnnotationsDelete:"Delete",toolbarAnnotationsDragHandle:"Drag Toolbar",toolbarAnnotationsLineAnnotations:"Trend Lines",toolbarAnnotationsFibonacciAnnotations:"Fibonacci",toolbarAnnotationsTextAnnotations:"Text Annotations",toolbarAnnotationsShapeAnnotations:"Arrows",toolbarAnnotationsMeasurerAnnotations:"Measurers",toolbarAnnotationsCallout:"Callout",toolbarAnnotationsComment:"Comment",toolbarAnnotationsNote:"Note",toolbarAnnotationsText:"Text",toolbarAnnotationsArrow:"Arrow",toolbarAnnotationsArrowUp:"Arrow Up",toolbarAnnotationsArrowDown:"Arrow Down",toolbarAnnotationsDateRange:"Date Range",toolbarAnnotationsPriceRange:"Price Range",toolbarAnnotationsDatePriceRange:"Date and Price",toolbarAnnotationsQuickDatePriceRange:"Measure",toolbarRange1Month:"1M",toolbarRange1MonthAria:"1 month",toolbarRange3Months:"3M",toolbarRange3MonthsAria:"3 months",toolbarRange6Months:"6M",toolbarRange6MonthsAria:"6 months",toolbarRangeYearToDate:"YTD",toolbarRangeYearToDateAria:"Year to date",toolbarRange1Year:"1Y",toolbarRange1YearAria:"1 year",toolbarRangeAll:"All",toolbarRangeAllAria:"All",toolbarZoomZoomOut:"Zoom out",toolbarZoomZoomIn:"Zoom in",toolbarZoomPanLeft:"Pan left",toolbarZoomPanRight:"Pan right",toolbarZoomPanStart:"Pan to the start",toolbarZoomPanEnd:"Pan to the end",toolbarZoomReset:"Reset the zoom",contextMenuDownload:"Download",contextMenuToggleSeriesVisibility:"Toggle Visibility",contextMenuToggleOtherSeries:"Toggle Other Series",contextMenuZoomToCursor:"Zoom to here",contextMenuPanToCursor:"Pan to here",dialogHeaderChannel:"Channel",dialogHeaderLine:"Line",dialogHeaderFibonacciRange:"Fib Retracement",dialogHeaderDateRange:"Date Range",dialogHeaderPriceRange:"Price Range",dialogHeaderDatePriceRange:"Date and Price",dialogHeaderText:"Text",dialogInputAlign:"Align",dialogInputColorPicker:"Color",dialogInputColorPickerAltText:"Text Color",dialogInputFillColorPicker:"Fill",dialogInputFillColorPickerAltText:"Fill Color",dialogInputExtendChannelStart:"Extend channel start",dialogInputExtendChannelEnd:"Extend channel end",dialogInputExtendLineStart:"Extend line start",dialogInputExtendLineEnd:"Extend line end",dialogInputExtendAbove:"Extend above",dialogInputExtendBelow:"Extend below",dialogInputExtendLeft:"Extend left",dialogInputExtendRight:"Extend right",dialogInputReverse:"Reverse",dialogInputShowFill:"Show Fill",dialogInputFontSize:"Size",dialogInputFontSizeAltText:"Font Size",dialogInputLineStyle:"Dash",dialogInputPosition:"Position",dialogInputStrokeWidth:"Weight",dialogInputStrokeWidthAltText:"Line Weight",dialogInputFibonacciBands:"Bands",dialogInputFibonacciBandsAltText:"Fibonacci Bands",inputTextareaPlaceholder:"Add Text",measurerDateRangeBars:"${value}[number] bars",measurerPriceRangeValue:"${value}[number]",measurerPriceRangePercent:"${value}[percent]",measurerVolume:"Vol ${value}"}}}),w=A({"packages/ag-charts-locale/src/es-ES.ts"(){"use strict"}}),M=A({"packages/ag-charts-locale/src/fa-IR.ts"(){"use strict"}}),P=A({"packages/ag-charts-locale/src/fi-FI.ts"(){"use strict"}}),O=A({"packages/ag-charts-locale/src/fr-FR.ts"(){"use strict"}}),G=A({"packages/ag-charts-locale/src/he-IL.ts"(){"use strict"}}),j=A({"packages/ag-charts-locale/src/hr-HR.ts"(){"use strict"}}),Y=A({"packages/ag-charts-locale/src/hu-HU.ts"(){"use strict"}}),J=A({"packages/ag-charts-locale/src/it-IT.ts"(){"use strict"}}),ne=A({"packages/ag-charts-locale/src/ja-JP.ts"(){"use strict"}}),ce=A({"packages/ag-charts-locale/src/ko-KR.ts"(){"use strict"}}),fe=A({"packages/ag-charts-locale/src/nb-NO.ts"(){"use strict"}}),xe=A({"packages/ag-charts-locale/src/nl-NL.ts"(){"use strict"}}),Le=A({"packages/ag-charts-locale/src/pl-PL.ts"(){"use strict"}}),_e=A({"packages/ag-charts-locale/src/pt-BR.ts"(){"use strict"}}),Fe=A({"packages/ag-charts-locale/src/pt-PT.ts"(){"use strict"}}),We=A({"packages/ag-charts-locale/src/ro-RO.ts"(){"use strict"}}),it=A({"packages/ag-charts-locale/src/sk-SK.ts"(){"use strict"}}),tt=A({"packages/ag-charts-locale/src/sv-SE.ts"(){"use strict"}}),ot=A({"packages/ag-charts-locale/src/tr-TR.ts"(){"use strict"}}),st=A({"packages/ag-charts-locale/src/uk-UA.ts"(){"use strict"}}),St=A({"packages/ag-charts-locale/src/ur-PK.ts"(){"use strict"}}),Xe=A({"packages/ag-charts-locale/src/vi-VN.ts"(){"use strict"}}),Ke=A({"packages/ag-charts-locale/src/zh-CN.ts"(){"use strict"}}),Ye=A({"packages/ag-charts-locale/src/zh-HK.ts"(){"use strict"}}),Ze=A({"packages/ag-charts-locale/src/zh-TW.ts"(){"use strict"}}),Pe=A({"packages/ag-charts-locale/src/main.ts"(){"use strict";C(),d(),s(),c(),h(),g(),S(),w(),M(),P(),O(),G(),j(),Y(),J(),ne(),ce(),fe(),xe(),Le(),_e(),Fe(),We(),it(),tt(),ot(),st(),St(),Xe(),Ke(),Ye(),Ze()}}),ct=A({"packages/ag-charts-types/src/api/initialStateOptions.ts"(){"use strict"}}),dt=A({"packages/ag-charts-types/src/api/agCharts.ts"(){"use strict"}}),bt=A({"packages/ag-charts-types/src/chart/annotationsOptions.ts"(){"use strict"}}),Pt=A({"packages/ag-charts-types/src/chart/axisOptions.ts"(){"use strict"}}),Nt=A({"packages/ag-charts-types/src/chart/callbackOptions.ts"(){"use strict"}}),ft=A({"packages/ag-charts-types/src/chart/chartOptions.ts"(){"use strict"}}),Lt=A({"packages/ag-charts-types/src/chart/chartToolbarOptions.ts"(){"use strict"}}),Vt=A({"packages/ag-charts-types/src/chart/contextMenuOptions.ts"(){"use strict"}}),Jt=A({"packages/ag-charts-types/src/chart/crossLineOptions.ts"(){"use strict"}}),$t=A({"packages/ag-charts-types/src/chart/crosshairOptions.ts"(){"use strict"}}),Ii=A({"packages/ag-charts-types/src/chart/dropShadowOptions.ts"(){"use strict"}}),zi,ln=A({"packages/ag-charts-types/src/chart/errorBarOptions.ts"(){"use strict";zi=["bar","line","scatter"]}}),ha=A({"packages/ag-charts-types/src/chart/eventOptions.ts"(){"use strict"}}),Gn=A({"packages/ag-charts-types/src/chart/gradientLegendOptions.ts"(){"use strict"}}),qn=A({"packages/ag-charts-types/src/chart/icons.ts"(){"use strict"}}),Qn=A({"packages/ag-charts-types/src/chart/labelOptions.ts"(){"use strict"}}),na=A({"packages/ag-charts-types/src/chart/legendOptions.ts"(){"use strict"}}),fo=A({"packages/ag-charts-types/src/chart/localeOptions.ts"(){"use strict"}}),Yl,Wu,Kd=A({"packages/ag-charts-types/src/chart/navigatorOptions.ts"(){"use strict";Yl=void 0,Wu=void 0,Wu=Yl}}),To=A({"packages/ag-charts-types/src/chart/polarAxisOptions.ts"(){"use strict"}}),nd=A({"packages/ag-charts-types/src/chart/rangesOptions.ts"(){"use strict"}}),Qi,Nr,Rs=A({"packages/ag-charts-types/src/chart/themeOptions.ts"(){"use strict";Qi=void 0,Nr=void 0,Nr=Qi}}),Uu,Vn=A({"packages/ag-charts-types/src/chart/tooltipOptions.ts"(){"use strict";Uu=(e=>(e.POINTER="pointer",e.NODE="node",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e.BOTTOM_RIGHT="bottom-right",e.BOTTOM_LEFT="bottom-left",e))(Uu||{})}}),qd=A({"packages/ag-charts-types/src/chart/types.ts"(){"use strict"}}),Ps=A({"packages/ag-charts-types/src/chart/zoomOptions.ts"(){"use strict"}}),is=A({"packages/ag-charts-types/src/chartBuilderOptions.ts"(){"use strict"}}),hl=A({"packages/ag-charts-types/src/integratedCharts.ts"(){"use strict"}}),Sa=A({"packages/ag-charts-types/src/presets/financial/financialOptions.ts"(){"use strict"}}),cr=A({"packages/ag-charts-types/src/presets/financial/priceVolumeOptions.ts"(){"use strict"}}),La,Oh,Fh,Ro,Kg=A({"packages/ag-charts-types/src/presets/gauge/commonOptions.ts"(){"use strict";La=void 0,Oh=void 0,Oh=La,Fh=void 0,Ro=void 0,Ro=Fh}}),gl=A({"packages/ag-charts-types/src/presets/gauge/gaugeOptions.ts"(){"use strict"}}),Jn=A({"packages/ag-charts-types/src/presets/gauge/linearGaugeOptions.ts"(){"use strict"}}),xc=A({"packages/ag-charts-types/src/presets/gauge/radialGaugeOptions.ts"(){"use strict"}}),ns=A({"packages/ag-charts-types/src/presets/sparkline/sparklineAxisOptions.ts"(){"use strict"}}),wa=A({"packages/ag-charts-types/src/presets/sparkline/sparklineOptions.ts"(){"use strict"}}),as=A({"packages/ag-charts-types/src/presets/presetOptions.ts"(){"use strict"}}),ea=A({"packages/ag-charts-types/src/series/cartesian/areaOptions.ts"(){"use strict"}}),BC=A({"packages/ag-charts-types/src/series/cartesian/barOptions.ts"(){"use strict"}}),LA=A({"packages/ag-charts-types/src/series/cartesian/boxPlotOptions.ts"(){"use strict"}}),GC=A({"packages/ag-charts-types/src/series/cartesian/bubbleOptions.ts"(){"use strict"}}),Ku=A({"packages/ag-charts-types/src/series/cartesian/candlestickOptions.ts"(){"use strict"}}),Zw=A({"packages/ag-charts-types/src/series/cartesian/cartesianOptions.ts"(){"use strict"}}),qg=A({"packages/ag-charts-types/src/series/cartesian/cartesianSeriesTooltipOptions.ts"(){"use strict"}}),rm=A({"packages/ag-charts-types/src/series/cartesian/cartesianSeriesTypes.ts"(){"use strict"}}),Mc=A({"packages/ag-charts-types/src/series/cartesian/commonOptions.ts"(){"use strict"}}),mn=A({"packages/ag-charts-types/src/series/cartesian/coneFunnelOptions.ts"(){"use strict"}}),sm=A({"packages/ag-charts-types/src/series/cartesian/funnelOptions.ts"(){"use strict"}}),_h=A({"packages/ag-charts-types/src/series/cartesian/heatmapOptions.ts"(){"use strict"}}),ad=A({"packages/ag-charts-types/src/series/cartesian/histogramOptions.ts"(){"use strict"}}),od=A({"packages/ag-charts-types/src/series/cartesian/lineOptions.ts"(){"use strict"}}),Ls=A({"packages/ag-charts-types/src/series/cartesian/ohlcBaseOptions.ts"(){"use strict"}}),Vf=A({"packages/ag-charts-types/src/series/cartesian/ohlcOptions.ts"(){"use strict"}}),Nh=A({"packages/ag-charts-types/src/series/cartesian/rangeAreaOptions.ts"(){"use strict"}}),Xl=A({"packages/ag-charts-types/src/series/cartesian/rangeBarOptions.ts"(){"use strict"}}),kc=A({"packages/ag-charts-types/src/series/cartesian/scatterOptions.ts"(){"use strict"}}),mi=A({"packages/ag-charts-types/src/series/cartesian/waterfallOptions.ts"(){"use strict"}}),Oa=A({"packages/ag-charts-types/src/series/flow-proportion/chordOptions.ts"(){"use strict"}}),zh=A({"packages/ag-charts-types/src/series/flow-proportion/flowProportionOptions.ts"(){"use strict"}}),lm=A({"packages/ag-charts-types/src/series/flow-proportion/sankeyOptions.ts"(){"use strict"}}),$w=A({"packages/ag-charts-types/src/series/standalone/pyramidOptions.ts"(){"use strict"}}),Qw=A({"packages/ag-charts-types/src/series/standalone/standaloneOptions.ts"(){"use strict"}}),Jw=A({"packages/ag-charts-types/src/series/hierarchy/hierarchyOptions.ts"(){"use strict"}}),ky=A({"packages/ag-charts-types/src/series/hierarchy/sunburstOptions.ts"(){"use strict"}}),rd=A({"packages/ag-charts-types/src/series/hierarchy/treemapOptions.ts"(){"use strict"}}),Ac=A({"packages/ag-charts-types/src/series/interpolationOptions.ts"(){"use strict"}}),sd=A({"packages/ag-charts-types/src/series/markerOptions.ts"(){"use strict"}}),Ay=A({"packages/ag-charts-types/src/series/polar/donutOptions.ts"(){"use strict"}}),VC=A({"packages/ag-charts-types/src/series/polar/nightingaleOptions.ts"(){"use strict"}}),jf=A({"packages/ag-charts-types/src/series/polar/pieOptions.ts"(){"use strict"}}),dr=A({"packages/ag-charts-types/src/series/polar/polarOptions.ts"(){"use strict"}}),Dy=A({"packages/ag-charts-types/src/series/polar/radarAreaOptions.ts"(){"use strict"}}),os=A({"packages/ag-charts-types/src/series/polar/radarLineOptions.ts"(){"use strict"}}),ri=A({"packages/ag-charts-types/src/series/polar/radarOptions.ts"(){"use strict"}}),ld=A({"packages/ag-charts-types/src/series/polar/radialBarOptions.ts"(){"use strict"}}),ex=A({"packages/ag-charts-types/src/series/polar/radialColumnOptions.ts"(){"use strict"}}),Ey=A({"packages/ag-charts-types/src/series/polar/radialOptions.ts"(){"use strict"}}),Yg=A({"packages/ag-charts-types/src/series/seriesOptions.ts"(){"use strict"}}),jC=A({"packages/ag-charts-types/src/series/topology/mapLineBackgroundOptions.ts"(){"use strict"}}),cm=A({"packages/ag-charts-types/src/series/topology/mapLineOptions.ts"(){"use strict"}}),Iy=A({"packages/ag-charts-types/src/series/topology/mapMarkerOptions.ts"(){"use strict"}}),vi=A({"packages/ag-charts-types/src/series/topology/mapShapeBackgroundOptions.ts"(){"use strict"}}),zr=A({"packages/ag-charts-types/src/series/topology/mapShapeOptions.ts"(){"use strict"}}),Yd=A({"packages/ag-charts-types/src/series/topology/topologyOptions.ts"(){"use strict"}}),Fa=A({"packages/ag-charts-types/src/main.ts"(){"use strict";ct(),dt(),bt(),Pt(),Nt(),ft(),Lt(),Vt(),Jt(),$t(),Ii(),ln(),ha(),Gn(),qn(),Qn(),na(),fo(),Kd(),To(),nd(),Rs(),Vn(),qd(),Ps(),is(),hl(),Sa(),cr(),Kg(),gl(),Jn(),xc(),ns(),wa(),as(),ea(),BC(),LA(),GC(),Ku(),Zw(),qg(),rm(),Mc(),mn(),sm(),_h(),ad(),od(),Ls(),Vf(),Nh(),Xl(),kc(),mi(),Oa(),zh(),lm(),$w(),Qw(),Jw(),ky(),rd(),Ac(),sd(),Ay(),VC(),jf(),dr(),Dy(),os(),ri(),ld(),ex(),Ey(),Yg(),jC(),cm(),Iy(),vi(),zr(),Yd()}});function Xg(){Hf.clear()}function Os(e){var u;let t=e.constructor,n=Object.hasOwn(t,"className")?t.className:t.name;if(!n)throw new Error(`The ${t} is missing the 'className' property.`);let a=((u=Hf.get(n))!=null?u:0)+1;return Hf.set(n,a),`${n}-${a}`}function Bh(){var e,t;return(t=(e=crypto.randomUUID)==null?void 0:e.call(crypto))!=null?t:HC()}function HC(){let e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t="";for(let n=0;n<e.length;n++)(n===4||n===6||n===8||n===10)&&(t+="-"),t+=e[n].toString(16).padStart(2,"0");return t}var Hf,Zl=A({"packages/ag-charts-community/src/util/id.ts"(){"use strict";Hf=new Map}});function*ii(...e){for(let t of e)yield*t}function aa(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e?e:[e]}var Zg=A({"packages/ag-charts-community/src/util/iterator.ts"(){"use strict"}});function $g(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function Po(e){return e==null||e.height===0||e.width===0||isNaN(e.height)||isNaN(e.width)}function $l(e){let{x:t,y:n,width:a,height:u}=e;return(a==null||a>0)&&(u==null||u>0)?e:(t!=null&&a!=null&&a<0&&(a=-a,t=t-a),n!=null&&u!=null&&u<0&&(u=-u,n=n-u),{x:t,y:n,width:a,height:u})}var Fs,so=A({"packages/ag-charts-community/src/util/bboxinterface.ts"(){"use strict";Fs={containsPoint:$g,isEmpty:Po,normalize:$l}}}),Dc,lo,Ql=A({"packages/ag-charts-community/src/util/interpolating.ts"(){"use strict";Dc=Symbol("interpolate"),lo=e=>e[Dc]!=null}});function rs(e,t,n,a=1/0){let u={nearest:void 0,distanceSquared:a};for(let y of n){let k=y.distanceSquared(e,t);if(k===0)return{nearest:y,distanceSquared:0};k<u.distanceSquared&&(u.nearest=y,u.distanceSquared=k)}return u}function kP(e,t,n,a=1/0){var R,F;let{x:u=e,y=t}=(F=(R=n.transformPoint)==null?void 0:R.call(n,e,t))!=null?F:{},k={nearest:void 0,distanceSquared:a};for(let _ of n.children){let{nearest:V,distanceSquared:K}=_.nearestSquared(u,y,k.distanceSquared);if(K===0)return{nearest:V,distanceSquared:K};K<k.distanceSquared&&(k.nearest=V,k.distanceSquared=K)}return k}var qu=A({"packages/ag-charts-community/src/util/nearest.ts"(){"use strict"}});function fn(e,t,n){return Math.min(n,Math.max(e,t))}function Yu(e,t){let[n,a]=ss(t);return fn(n,e,a)}function ss(e){if(e.length===0)return[];let t=[1/0,-1/0];for(let n of e)n<t[0]&&(t[0]=n),n>t[1]&&(t[1]=n);return t}function dm(e){let[t,n]=ss(e);return n-t}function cd(e,t,n=1e-10){return e>=t[0]-n&&e<=t[1]+n}function eo(e,t,n=1e-10){return Math.abs(e-t)<n}function WC(e){return Math.sign(e)===-1||Object.is(e,-0)}function Wf(e){return e%1===0}function ga(e,t=2){let n=10**t;return Math.round(e*n)/n}function Ty(e,t){return Math.floor(e%t+(e<0?t:0))}function tx(e){var u,y;if(Math.floor(e)===e)return 0;let t=String(e),n=0;if(e<1e-6||e>=1e21){let k;[t,k]=t.split("e"),k!=null&&(n=Number(k))}let a=(y=(u=t.split(".")[1])==null?void 0:u.length)!=null?y:0;return Math.max(a-n,0)}var gn=A({"packages/ag-charts-community/src/util/number.ts"(){"use strict"}}),um,ki,vn=A({"packages/ag-charts-community/src/scene/bbox.ts"(){"use strict";so(),Ql(),qu(),gn(),um=class xP{constructor(t,n,a,u){this.x=t,this.y=n,this.width=a,this.height=u}static fromDOMRect({x:t,y:n,width:a,height:u}){return new xP(t,n,a,u)}static merge(t){let n=1/0,a=1/0,u=-1/0,y=-1/0;for(let k of t)k.x<n&&(n=k.x),k.y<a&&(a=k.y),k.x+k.width>u&&(u=k.x+k.width),k.y+k.height>y&&(y=k.y+k.height);return new xP(n,a,u-n,y-a)}static nearestBox(t,n,a){return rs(t,n,a)}toDOMRect(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.y,left:this.x,right:this.x+this.width,bottom:this.y+this.height,toJSON(){return{}}}}clone(){let{x:t,y:n,width:a,height:u}=this;return new xP(t,n,a,u)}equals(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}containsPoint(t,n){return Fs.containsPoint(this,t,n)}containsBBox(t){let[n,a]=[this.x,this.x+this.width],[u,y]=[this.y,this.y+this.height],[k,R]=[t.x,t.x+t.width],[F,_]=[t.y,t.y+t.height];return Math.min(n,k)===n&&Math.max(a,R)===a&&Math.min(u,F)===u&&Math.max(y,_)===y}intersection(t){if(!this.collidesBBox(t))return;let n=fn(t.x,this.x,t.x+t.width),a=fn(t.y,this.y,t.y+t.height),u=fn(t.x,this.x+this.width,t.x+t.width),y=fn(t.y,this.y+this.height,t.y+t.height);return new xP(n,a,u-n,y-a)}collidesBBox(t){return this.x<t.x+t.width&&this.x+this.width>t.x&&this.y<t.y+t.height&&this.y+this.height>t.y}computeCenter(){return{x:this.x+this.width/2,y:this.y+this.height/2}}isFinite(){return Number.isFinite(this.x)&&Number.isFinite(this.y)&&Number.isFinite(this.width)&&Number.isFinite(this.height)}distanceSquared(t,n){if(this.containsPoint(t,n))return 0;let a=t-fn(this.x,t,this.x+this.width),u=n-fn(this.y,n,this.y+this.height);return a*a+u*u}shrink(t,n){if(typeof t=="number")this.applyMargin(t,n);else for(let[a,u]of Object.entries(t))this.applyMargin(u,a);return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this}grow(t,n){if(typeof t=="number")this.applyMargin(-t,n);else for(let[a,u]of Object.entries(t))this.applyMargin(-u,a);return this}applyMargin(t,n){switch(n){case"top":this.y+=t;case"bottom":this.height-=t;break;case"left":this.x+=t;case"right":this.width-=t;break;case"vertical":this.y+=t,this.height-=t*2;break;case"horizontal":this.x+=t,this.width-=t*2;break;case void 0:this.x+=t,this.y+=t,this.width-=t*2,this.height-=t*2;break}}translate(t,n){return this.x+=t,this.y+=n,this}combine(t){let{x:n,y:a,width:u,height:y}=this;this.x=Math.min(n,t.x),this.y=Math.min(a,t.y),this.width=Math.max(n+u,t.x+t.width)-this.x,this.height=Math.max(a+y,t.y+t.height)-this.y}[Dc](t,n){return new xP(this.x*(1-n)+t.x*n,this.y*(1-n)+t.y*n,this.width*(1-n)+t.width*n,this.height*(1-n)+t.height*n)}},um.zero=Object.freeze(new um(0,0,0,0)),um.NaN=Object.freeze(new um(NaN,NaN,NaN,NaN)),ki=um}});function Mi(e){return function(t,n){let a=`__${n}`;t[n]||_s(t,n,a,e)}}function _s(e,t,n,a){let{type:u="normal",changeCb:y,convertor:k,checkDirtyOnAssignment:R=!1}=a!=null?a:{},F={type:u,changeCb:y,checkDirtyOnAssignment:R,convertor:k},_;switch(u){case"normal":_=gI(n,F);break;case"transform":_=ix(n);break;case"path":_=Uf(n);break}_=DP(AP(hm(_,F),F),F),Object.defineProperty(e,t,{set:_,get:function(){return this[n]},enumerable:!0,configurable:!0})}function hm(e,t){let{convertor:n}=t;return n?function(a){e.call(this,n(a))}:e}function AP(e,t){let{changeCb:n}=t;return n?function(a){let u=e.call(this,a);return u!==Kf&&n.call(this,this),u}:e}function DP(e,t){let{checkDirtyOnAssignment:n}=t;return n?function(a){let u=e.call(this,a);return u!==Kf&&(a==null?void 0:a._dirty)===!0&&this.markDirty(),u}:e}function gI(e,t){let{changeCb:n}=t;return function(a){let u=this[e];return a!==u?(this[e]=a,this.markDirty(),n==null||n(this),a):Kf}}function ix(e){return function(t){let n=this[e];return t!==n?(this[e]=t,this.markDirtyTransform(),t):Kf}}function Uf(e){return function(t){let n=this[e];return t!==n?(this[e]=t,this._dirtyPath||(this._dirtyPath=!0,this.markDirty()),t):Kf}}var Kf,nx=A({"packages/ag-charts-community/src/scene/changeDetectable.ts"(){"use strict";Kf=Symbol("no-change")}}),OA,Ec,pl,xa=A({"packages/ag-charts-community/src/scene/node.ts"(){"use strict";Zl(),Zg(),vn(),nx(),OA=(e=>(e[e.All=0]="All",e[e.None=1]="None",e))(OA||{}),Ec=class vZ{constructor(t){var n,a;this.serialNumber=vZ._nextSerialNumber++,this.childNodeCounts={groups:0,nonGroups:0,thisComplexity:0,complexity:0},this.id=Os(this),this.pointerEvents=0,this._dirty=!0,this.dirtyZIndex=!1,this.isContainerNode=!1,this.visible=!0,this.zIndex=0,this.name=t==null?void 0:t.name,this.tag=(n=t==null?void 0:t.tag)!=null?n:NaN,this.zIndex=(a=t==null?void 0:t.zIndex)!=null?a:0}static toSVG(t,n,a){var k,R;let u=t==null?void 0:t.toSVG();if(u==null||!u.elements.length&&!((k=u.defs)!=null&&k.length))return;let y=document.createElementNS("http://www.w3.org/2000/svg","svg");if(y.setAttribute("width",String(n)),y.setAttribute("height",String(a)),y.setAttribute("viewBox",`0 0 ${n} ${a}`),(R=u.defs)!=null&&R.length){let F=document.createElementNS("http://www.w3.org/2000/svg","defs");F.append(...u.defs),y.append(F)}return y.append(...u.elements),y.outerHTML}static*extractBBoxes(t,n){for(let a of t)if(!n||a.visible&&!a.transitionOut){let u=a.getBBox();u&&(yield u)}}get datum(){var t,n;return(n=this._datum)!=null?n:(t=this.parentNode)==null?void 0:t.datum}set datum(t){this._datum!==t&&(this._previousDatum=this._datum,this._datum=t)}get previousDatum(){return this._previousDatum}get layerManager(){return this._layerManager}get dirty(){return this._dirty}preRender(t=1){this.childNodeCounts.groups=0,this.childNodeCounts.nonGroups=1,this.childNodeCounts.complexity=t,this.childNodeCounts.thisComplexity=t;for(let n of this.children()){let a=n.preRender();this.childNodeCounts.groups+=a.groups,this.childNodeCounts.nonGroups+=a.nonGroups,this.childNodeCounts.complexity+=a.complexity}return this.childNodeCounts}render(t){var a,u;let{stats:n}=t;if(this._dirty=!1,t.debugNodeSearch){let y=(a=this.name)!=null?a:this.id;t.debugNodeSearch.some(k=>typeof k=="string"?k===y:k.test(y))&&(t.debugNodes[(u=this.name)!=null?u:this.id]=this)}n&&(n.nodesRendered++,n.opsPerformed+=this.childNodeCounts.thisComplexity)}_setLayerManager(t){this._layerManager=t,this._debug=t==null?void 0:t.debug;for(let n of this.children())n._setLayerManager(t)}sortChildren(t){if(this.dirtyZIndex=!1,!this.childNodes)return;let n=[...this.childNodes].sort(t);this.childNodes.clear();for(let a of n)this.childNodes.add(a)}*traverseUp(t){let n=this;for(t&&(yield n);n=n.parentNode;)yield n}*children(){if(this.childNodes)for(let t of this.childNodes)yield t}isLeaf(){var t;return!((t=this.childNodes)!=null&&t.size)}isRoot(){return!this.parentNode}append(t){var n,a;(n=this.childNodes)!=null||(this.childNodes=new Set);for(let u of aa(t))(a=u.parentNode)==null||a.removeChild(u),this.childNodes.add(u),u.parentNode=this,u._setLayerManager(this.layerManager);this.invalidateCachedBBox(),this.dirtyZIndex=!0,this.markDirty()}appendChild(t){return this.append(t),t}removeChild(t){var n;return(n=this.childNodes)!=null&&n.delete(t)?(delete t.parentNode,t._setLayerManager(),this.invalidateCachedBBox(),this.dirtyZIndex=!0,this.markDirty(),!0):!1}remove(){var t,n;return(n=(t=this.parentNode)==null?void 0:t.removeChild(this))!=null?n:!1}clear(){var t;for(let n of this.children())delete n.parentNode,n._setLayerManager();(t=this.childNodes)==null||t.clear(),this.invalidateCachedBBox()}destroy(){var t;(t=this.parentNode)==null||t.removeChild(this)}setProperties(t,n){if(n)for(let a of n)this[a]=t[a];else Object.assign(this,t);return this}containsPoint(t,n){return!1}pickNode(t,n,a=!1){if(!this.visible||this.pointerEvents===1||!this.containsPoint(t,n))return;let u=[...this.children()];if(u.length>1e3)for(let y=u.length-1;y>=0;y--){let k=u[y],F=k.containsPoint(t,n)?k.pickNode(t,n):void 0;if(F)return F}else if(u.length)for(let y=u.length-1;y>=0;y--){let k=u[y].pickNode(t,n);if(k)return k}else if(!this.isContainerNode)return this}invalidateCachedBBox(){var t;this.cachedBBox!=null&&(this.cachedBBox=void 0,(t=this.parentNode)==null||t.invalidateCachedBBox())}getBBox(){return this.cachedBBox==null&&(this.cachedBBox=Object.freeze(this.computeBBox())),this.cachedBBox}computeBBox(){}markDirty(){let{_dirty:t}=this;this.cachedBBox==null&&t||(this.invalidateCachedBBox(),this._dirty=!0,this.parentNode&&this.parentNode.markDirty())}markClean(){if(this._dirty){this._dirty=!1;for(let t of this.children())t.markClean()}}onZIndexChange(){let{parentNode:t}=this;t&&(t.dirtyZIndex=!0)}toSVG(){}},Ec._nextSerialNumber=0,b([Mi()],Ec.prototype,"visible",2),b([Mi({changeCb:e=>e.onZIndexChange()})],Ec.prototype,"zIndex",2),pl=Ec}}),gm,UC,KC,ax,Jo,qC=A({"packages/ag-charts-community/src/util/color.ts"(){"use strict";gn(),gm=(e,t,n)=>e*(1-n)+t*n,UC=e=>{let t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*((n+.055)/1.055)**2.4},KC=e=>{let t=e<0?-1:1,n=Math.abs(e);return n>.0031308?t*(1.055*n**(1/2.4)-.055):12.92*e},ax=class Qo{constructor(t,n,a,u=1){this.r=fn(0,t||0,1),this.g=fn(0,n||0,1),this.b=fn(0,a||0,1),this.a=fn(0,u||0,1)}static validColorString(t){return t.indexOf("#")>=0?!!Qo.parseHex(t):t.indexOf("rgb")>=0?!!Qo.stringToRgba(t):!!Qo.nameToHex.has(t.toLowerCase())}static fromString(t){if(t.indexOf("#")>=0)return Qo.fromHexString(t);let n=Qo.nameToHex.get(t.toLowerCase());if(n)return Qo.fromHexString(n);if(t.indexOf("rgb")>=0)return Qo.fromRgbaString(t);throw new Error(`Invalid color string: '${t}'`)}static parseHex(t){t=t.replace(/ /g,"").slice(1);let n;switch(t.length){case 6:case 8:n=[];for(let a=0;a<t.length;a+=2)n.push(parseInt(`${t[a]}${t[a+1]}`,16));break;case 3:case 4:n=t.split("").map(a=>parseInt(a,16)).map(a=>a+a*16);break}if((n==null?void 0:n.length)>=3&&n.every(a=>a>=0))return n.length===3&&n.push(255),n}static fromHexString(t){let n=Qo.parseHex(t);if(n){let[a,u,y,k]=n;return new Qo(a/255,u/255,y/255,k/255)}throw new Error(`Malformed hexadecimal color string: '${t}'`)}static stringToRgba(t){let n=-1,a=-1;for(let R=0;R<t.length;R++){let F=t[R];if(n===-1&&F==="(")n=R;else if(F===")"){a=R;break}}if(n===-1||a===-1)return;let y=t.substring(n+1,a).split(","),k=[];for(let R=0;R<y.length;R++){let F=y[R],_=parseFloat(F);if(!Number.isFinite(_))return;F.indexOf("%")>=0?(_=fn(0,_,100),_/=100):R===3?_=fn(0,_,1):(_=fn(0,_,255),_/=255),k.push(_)}return k}static fromRgbaString(t){let n=Qo.stringToRgba(t);if(n){if(n.length===3)return new Qo(n[0],n[1],n[2]);if(n.length===4)return new Qo(n[0],n[1],n[2],n[3])}throw new Error(`Malformed rgb/rgba color string: '${t}'`)}static fromArray(t){if(t.length===4)return new Qo(t[0],t[1],t[2],t[3]);if(t.length===3)return new Qo(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")}static fromHSB(t,n,a,u=1){let y=Qo.HSBtoRGB(t,n,a);return new Qo(y[0],y[1],y[2],u)}static fromHSL(t,n,a,u=1){let y=Qo.HSLtoRGB(t,n,a);return new Qo(y[0],y[1],y[2],u)}static fromOKLCH(t,n,a,u=1){let y=Qo.OKLCHtoRGB(t,n,a);return new Qo(y[0],y[1],y[2],u)}static padHex(t){return t.length===1?"0"+t:t}toHexString(){let t="#"+Qo.padHex(Math.round(this.r*255).toString(16))+Qo.padHex(Math.round(this.g*255).toString(16))+Qo.padHex(Math.round(this.b*255).toString(16));return this.a<1&&(t+=Qo.padHex(Math.round(this.a*255).toString(16))),t}toRgbaString(t=3){let n=[Math.round(this.r*255),Math.round(this.g*255),Math.round(this.b*255)],a=Math.pow(10,t);return this.a!==1?(n.push(Math.round(this.a*a)/a),`rgba(${n.join(", ")})`):`rgb(${n.join(", ")})`}toString(){return this.a===1?this.toHexString():this.toRgbaString()}toHSB(){return Qo.RGBtoHSB(this.r,this.g,this.b)}static RGBtoOKLCH(t,n,a){let u=UC(t),y=UC(n),k=UC(a),R=Math.cbrt(.4122214708*u+.5363325363*y+.0514459929*k),F=Math.cbrt(.2119034982*u+.6806995451*y+.1073969566*k),_=Math.cbrt(.0883024619*u+.2817188376*y+.6299787005*k),V=.2104542553*R+.793617785*F-.0040720468*_,K=1.9779984951*R-2.428592205*F+.4505937099*_,q=.0259040371*R+.7827717662*F-.808675766*_,$=Math.atan2(q,K)*180/Math.PI,te=V,se=Math.hypot(K,q),de=$>=0?$:$+360;return[te,se,de]}static OKLCHtoRGB(t,n,a){let u=t,y=n*Math.cos(a*Math.PI/180),k=n*Math.sin(a*Math.PI/180),R=(u+.3963377774*y+.2158037573*k)**3,F=(u-.1055613458*y-.0638541728*k)**3,_=(u-.0894841775*y-1.291485548*k)**3,V=4.0767416621*R-3.3077115913*F+.2309699292*_,K=-1.2684380046*R+2.6097574011*F-.3413193965*_,q=-.0041960863*R-.7034186147*F+1.707614701*_,$=KC(V),te=KC(K),se=KC(q);return[$,te,se]}static RGBtoHSL(t,n,a){let u=Math.min(t,n,a),y=Math.max(t,n,a),k=(y+u)/2,R,F;if(y===u)R=0,F=0;else{let _=y-u;F=k>.5?_/(2-y-u):_/(y+u),y===t?R=(n-a)/_+(n<a?6:0):y===n?R=(a-t)/_+2:R=(t-n)/_+4,R*=360/6}return[R,F,k]}static HSLtoRGB(t,n,a){if(t=(t%360+360)%360,n===0)return[a,a,a];let u=a<.5?a*(1+n):a+n-a*n,y=2*a-u;function k(V){return V<0&&(V+=1),V>1&&(V-=1),V<1/6?y+(u-y)*6*V:V<1/2?u:V<2/3?y+(u-y)*(2/3-V)*6:y}let R=k(t/360+1/3),F=k(t/360),_=k(t/360-1/3);return[R,F,_]}static RGBtoHSB(t,n,a){let u=Math.min(t,n,a),y=Math.max(t,n,a),k=y===0?0:(y-u)/y,R=0;if(u!==y){let F=y-u,_=(y-t)/F,V=(y-n)/F,K=(y-a)/F;t===y?R=K-V:n===y?R=2+_-K:R=4+V-_,R/=6,R<0&&(R=R+1)}return[R*360,k,y]}static HSBtoRGB(t,n,a){t=(t%360+360)%360/360;let u=0,y=0,k=0;if(n===0)u=y=k=a;else{let R=(t-Math.floor(t))*6,F=R-Math.floor(R),_=a*(1-n),V=a*(1-n*F),K=a*(1-n*(1-F));switch(R>>0){case 0:u=a,y=K,k=_;break;case 1:u=V,y=a,k=_;break;case 2:u=_,y=a,k=K;break;case 3:u=_,y=V,k=a;break;case 4:u=K,y=_,k=a;break;case 5:u=a,y=_,k=V;break}}return[u,y,k]}static mix(t,n,a){return new Qo(gm(t.r,n.r,a),gm(t.g,n.g,a),gm(t.b,n.b,a),gm(t.a,n.a,a))}},ax.nameToHex=new Map([["aliceblue","#F0F8FF"],["antiquewhite","#FAEBD7"],["aqua","#00FFFF"],["aquamarine","#7FFFD4"],["azure","#F0FFFF"],["beige","#F5F5DC"],["bisque","#FFE4C4"],["black","#000000"],["blanchedalmond","#FFEBCD"],["blue","#0000FF"],["blueviolet","#8A2BE2"],["brown","#A52A2A"],["burlywood","#DEB887"],["cadetblue","#5F9EA0"],["chartreuse","#7FFF00"],["chocolate","#D2691E"],["coral","#FF7F50"],["cornflowerblue","#6495ED"],["cornsilk","#FFF8DC"],["crimson","#DC143C"],["cyan","#00FFFF"],["darkblue","#00008B"],["darkcyan","#008B8B"],["darkgoldenrod","#B8860B"],["darkgray","#A9A9A9"],["darkgreen","#006400"],["darkgrey","#A9A9A9"],["darkkhaki","#BDB76B"],["darkmagenta","#8B008B"],["darkolivegreen","#556B2F"],["darkorange","#FF8C00"],["darkorchid","#9932CC"],["darkred","#8B0000"],["darksalmon","#E9967A"],["darkseagreen","#8FBC8F"],["darkslateblue","#483D8B"],["darkslategray","#2F4F4F"],["darkslategrey","#2F4F4F"],["darkturquoise","#00CED1"],["darkviolet","#9400D3"],["deeppink","#FF1493"],["deepskyblue","#00BFFF"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1E90FF"],["firebrick","#B22222"],["floralwhite","#FFFAF0"],["forestgreen","#228B22"],["fuchsia","#FF00FF"],["gainsboro","#DCDCDC"],["ghostwhite","#F8F8FF"],["gold","#FFD700"],["goldenrod","#DAA520"],["gray","#808080"],["green","#008000"],["greenyellow","#ADFF2F"],["grey","#808080"],["honeydew","#F0FFF0"],["hotpink","#FF69B4"],["indianred","#CD5C5C"],["indigo","#4B0082"],["ivory","#FFFFF0"],["khaki","#F0E68C"],["lavender","#E6E6FA"],["lavenderblush","#FFF0F5"],["lawngreen","#7CFC00"],["lemonchiffon","#FFFACD"],["lightblue","#ADD8E6"],["lightcoral","#F08080"],["lightcyan","#E0FFFF"],["lightgoldenrodyellow","#FAFAD2"],["lightgray","#D3D3D3"],["lightgreen","#90EE90"],["lightgrey","#D3D3D3"],["lightpink","#FFB6C1"],["lightsalmon","#FFA07A"],["lightseagreen","#20B2AA"],["lightskyblue","#87CEFA"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#B0C4DE"],["lightyellow","#FFFFE0"],["lime","#00FF00"],["limegreen","#32CD32"],["linen","#FAF0E6"],["magenta","#FF00FF"],["maroon","#800000"],["mediumaquamarine","#66CDAA"],["mediumblue","#0000CD"],["mediumorchid","#BA55D3"],["mediumpurple","#9370DB"],["mediumseagreen","#3CB371"],["mediumslateblue","#7B68EE"],["mediumspringgreen","#00FA9A"],["mediumturquoise","#48D1CC"],["mediumvioletred","#C71585"],["midnightblue","#191970"],["mintcream","#F5FFFA"],["mistyrose","#FFE4E1"],["moccasin","#FFE4B5"],["navajowhite","#FFDEAD"],["navy","#000080"],["oldlace","#FDF5E6"],["olive","#808000"],["olivedrab","#6B8E23"],["orange","#FFA500"],["orangered","#FF4500"],["orchid","#DA70D6"],["palegoldenrod","#EEE8AA"],["palegreen","#98FB98"],["paleturquoise","#AFEEEE"],["palevioletred","#DB7093"],["papayawhip","#FFEFD5"],["peachpuff","#FFDAB9"],["peru","#CD853F"],["pink","#FFC0CB"],["plum","#DDA0DD"],["powderblue","#B0E0E6"],["purple","#800080"],["rebeccapurple","#663399"],["red","#FF0000"],["rosybrown","#BC8F8F"],["royalblue","#4169E1"],["saddlebrown","#8B4513"],["salmon","#FA8072"],["sandybrown","#F4A460"],["seagreen","#2E8B57"],["seashell","#FFF5EE"],["sienna","#A0522D"],["silver","#C0C0C0"],["skyblue","#87CEEB"],["slateblue","#6A5ACD"],["slategray","#708090"],["slategrey","#708090"],["snow","#FFFAFA"],["springgreen","#00FF7F"],["steelblue","#4682B4"],["tan","#D2B48C"],["teal","#008080"],["thistle","#D8BFD8"],["tomato","#FF6347"],["transparent","#00000000"],["turquoise","#40E0D0"],["violet","#EE82EE"],["wheat","#F5DEB3"],["white","#FFFFFF"],["whitesmoke","#F5F5F5"],["yellow","#FFFF00"],["yellowgreen","#9ACD32"]]),Jo=ax}});function pI(e,t){return n=>Number(e)*(1-n)+Number(t)*n}function mI(e,t){if(typeof e=="string")try{e=Jo.fromString(e)}catch(n){e=Jo.fromArray([0,0,0])}if(typeof t=="string")try{t=Jo.fromString(t)}catch(n){t=Jo.fromArray([0,0,0])}return n=>Jo.mix(e,t,n).toRgbaString()}var Br=A({"packages/ag-charts-community/src/util/interpolate.ts"(){"use strict";qC()}});function Qg(e,t){Object.getOwnPropertyDescriptor(e,jo)==null&&Object.defineProperty(e,jo,{value:{}});let n=e[jo],a=t.toString();if(typeof n[a]!="undefined")return n[a];let u=new WeakMap;n[a]={setters:[],getters:[],observers:[],valuesMap:u};let y=Object.getOwnPropertyDescriptor(e,t),k=y==null?void 0:y.set,R=y==null?void 0:y.get;return Object.defineProperty(e,t,{set:function(V){let{setters:K,observers:q}=n[a],$;K.some(te=>te.length>2)&&($=R?R.call(this):u.get(this));for(let te of K)if(V=te(this,t,V,$),V===qf)return;k?k.call(this,V):u.set(this,V);for(let te of q)te(this,V,$)},get:function(){let V=R?R.call(this):u.get(this);for(let K of n[a].getters)if(V=K(this,t,V),V===qf)return;return V},enumerable:!0,configurable:!1}),n[a]}function vo(e,t,n){return(a,u)=>{let y=Qg(a,u);y.setters.push(e),t&&y.getters.unshift(t),n&&Object.assign(y,n)}}function pm(e){return(t,n)=>{Qg(t,n).observers.push(e)}}function YC(e){return typeof e!="undefined"&&jo in e}function Xu(e){let t=new Set;for(;YC(e);)t.add(e==null?void 0:e[jo]),e=Object.getPrototypeOf(e);return Array.from(t).flatMap(n=>Object.keys(n))}function FA(e){return Xu(e).reduce((t,n)=>{var a;return t[n]=(a=e[n])!=null?a:null,t},{})}function Ry(e,t){let n=t.toString();for(;YC(e);){let a=e[jo];if(Object.hasOwn(a,n))return a[n];e=Object.getPrototypeOf(e)}}var qf,jo,ml=A({"packages/ag-charts-community/src/util/decorator.ts"(){"use strict";qf=Symbol("BREAK"),jo="__decorator_config"}});function Hi(e){return e!=null}function ja(e){return Array.isArray(e)}function Xd(e){return typeof e=="boolean"}function je(e){return e instanceof Date}function dd(e){return je(e)&&!isNaN(Number(e))}function mm(e){return e instanceof RegExp}function Si(e){return typeof e=="function"}function ur(e){return typeof e=="object"&&e!==null&&!ja(e)}function Ri(e){return ja(e)||_a(e)}function _a(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Qt(e){return typeof e=="string"}function yn(e){return typeof e=="number"}function pa(e){return Number.isFinite(e)}function XC(e){return typeof window!="undefined"&&e instanceof HTMLElement}function bi(e,t){return Qt(t)&&Object.keys(e).includes(t)}function oa(e,t){return Object.values(e).includes(t)}function jt(e){return typeof e=="symbol"}function Yf(e,t){return e.type!==t}var bn=A({"packages/ag-charts-community/src/util/type-guards.ts"(){"use strict"}});function yo(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every((n,a)=>yo(n,t[a])):_a(e)?_a(t)?Zu(e,t,yo):!1:e===t}function Zu(e,t,n){for(let a of Object.keys(t))if(!(a in e))return!1;for(let a of Object.keys(e))if(!(a in t)||!n(e[a],t[a]))return!1;return!0}function Py(...e){return En(...e.reverse())}function En(...e){var n;let t={};for(let a of e){if(!ur(a))continue;let u=YC(a)?Xu(a):Object.keys(a);for(let y of u)_a(t[y])&&_a(a[y])?t[y]=En(t[y],a[y]):(n=t[y])!=null||(t[y]=a[y])}return t}function Ly(e,...t){return t&&ja(e)?e.map(n=>En(n,...t)):e}function _A(e,t){return Object.entries(e).reduce((n,[a,u])=>(n[a]=t(u,a,e),n),{})}function In(e,t){let n=ge({},e);for(let a of t)delete n[a];return n}function Ns(e,t){return(ja(t)?t:t.split(".")).reduce((a,u)=>a[u],e)}function ls(e,t,n){let a=ja(t)?t.slice():t.split("."),u=a.pop();if(a.some(k=>ZC.has(k)))return;let y=a.reduce((k,R)=>k[R],e);return y[u]=n,y[u]}function Jl(e,t,n){if(n===void 0)return t;for(let a of e){let u=n[a];u!==void 0&&(t[a]=u)}return t}function Oy(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t];n!==null&&(typeof n=="object"||typeof n=="function")&&!Object.isFrozen(n)&&Oy(n)}),e}var ZC,ra=A({"packages/ag-charts-community/src/util/object.ts"(){"use strict";ml(),bn(),ZC=new Set(["__proto__","constructor","prototype"])}}),Yn={};E(Yn,{easeIn:()=>fI,easeInOut:()=>$C,easeInOutQuad:()=>Fy,easeInQuad:()=>$u,easeOut:()=>bo,easeOutQuad:()=>Qu,inverseEaseOut:()=>QC,linear:()=>Gh});var Gh,fI,bo,$C,$u,Qu,Fy,QC,_y=A({"packages/ag-charts-community/src/motion/easing.ts"(){"use strict";Gh=e=>e,fI=e=>1-Math.cos(e*Math.PI/2),bo=e=>Math.sin(e*Math.PI/2),$C=e=>-(Math.cos(e*Math.PI)-1)/2,$u=e=>e*e,Qu=e=>1-(1-e)**2,Fy=e=>e<.5?2*e*e:1-(-2*e+2)**2/2,QC=e=>2*Math.asin(e)/Math.PI}});function vI(e){return e.every(t=>t instanceof pl)}function Vh(e){return vI(e)?{nodes:e,selections:[]}:{nodes:[],selections:e}}function Ic(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,a)=>Ic(n,t[a])):lo(e)&&lo(t)?e.equals(t):_a(e)&&_a(t)?Zu(e,t,Ic):!1}var Jg,jh,Xn,JC,ox,Zn=A({"packages/ag-charts-community/src/motion/animation.ts"(){"use strict";xa(),Br(),Ql(),gn(),ra(),bn(),_y(),Jg=.2,jh=["initial","remove","update","add","trailing","end","none"],Xn={initial:{animationDuration:1,animationDelay:0},add:{animationDuration:.25,animationDelay:.75},remove:{animationDuration:.25,animationDelay:0},update:{animationDuration:.5,animationDelay:.25},trailing:{animationDuration:Jg,animationDelay:1,skipIfNoEarlierAnimations:!0},end:{animationDelay:1+Jg,animationDuration:0,skipIfNoEarlierAnimations:!0},none:{animationDuration:0,animationDelay:0}},JC=(e=>(e.Loop="loop",e.Reverse="reverse",e))(JC||{}),ox=class{constructor(e){var n,a,u,y,k,R,F;this.isComplete=!1,this.elapsed=0,this.iteration=0,this.isPlaying=!1,this.isReverse=!1,this.id=e.id,this.groupId=e.groupId,this.autoplay=(n=e.autoplay)!=null?n:!0,this.ease=(a=e.ease)!=null?a:Gh,this.phase=e.phase;let t=(u=e.duration)!=null?u:Xn[this.phase].animationDuration;this.duration=t*e.defaultDuration,this.delay=((y=e.delay)!=null?y:0)*e.defaultDuration,this.onComplete=e.onComplete,this.onPlay=e.onPlay,this.onStop=e.onStop,this.onUpdate=e.onUpdate,this.interpolate=this.createInterpolator(e.from,e.to),this.from=e.from,e.skip===!0&&((k=this.onUpdate)==null||k.call(this,e.to,!1,this),(R=this.onStop)==null||R.call(this,this),(F=this.onComplete)==null||F.call(this,this),this.isComplete=!0),e.collapsable!==!1&&(this.duration=this.checkCollapse(e,this.duration))}checkCollapse(e,t){return Ic(e.from,e.to)?0:t}play(e=!1){var t,n;this.isPlaying||this.isComplete||(this.isPlaying=!0,(t=this.onPlay)==null||t.call(this,this),this.autoplay&&(this.autoplay=!1,e&&((n=this.onUpdate)==null||n.call(this,this.from,!0,this))))}pause(){this.isPlaying=!1}stop(){var e;this.isPlaying=!1,this.isComplete||(this.isComplete=!0,(e=this.onStop)==null||e.call(this,this))}update(e){var u,y;if(this.isComplete)return e;!this.isPlaying&&this.autoplay&&this.play(!0);let t=this.elapsed;if(this.elapsed+=e,this.delay>this.elapsed)return 0;let n=this.interpolate(this.isReverse?1-this.delta:this.delta);(u=this.onUpdate)==null||u.call(this,n,!1,this);let a=this.delay+this.duration;return this.elapsed>=a?(this.stop(),this.isComplete=!0,(y=this.onComplete)==null||y.call(this,this),e-(a-t)):0}get delta(){return this.ease(fn(0,(this.elapsed-this.delay)/this.duration,1))}createInterpolator(e,t){if(typeof t!="object"||lo(t))return this.interpolateValue(e,t);let n=[];for(let a of Object.keys(t)){let u=this.interpolateValue(e[a],t[a]);u!=null&&n.push([a,u])}return a=>{let u={};for(let[y,k]of n)u[y]=k(a);return u}}interpolateValue(e,t){if(!(e==null||t==null)){if(lo(e))return n=>e[Dc](t,n);try{switch(typeof e){case"number":return pI(e,t);case"string":return mI(e,t);case"boolean":if(e===t)return()=>e;break}}catch(n){}throw new Error(`Unable to interpolate values: ${e}, ${t}`)}}}}}),yI={};E(yI,{NODE_UPDATE_STATE_TO_PHASE_MAPPING:()=>zs,fromToMotion:()=>to,staticFromToMotion:()=>Ju});function to(e,t,n,a,u,y,k){let{fromFn:R,toFn:F,applyFn:_=(te,se)=>te.setProperties(se)}=u,{nodes:V,selections:K}=Vh(a),q=(te,se)=>{var ke;let de,pe=0,Ce=0;for(let De of se){let Te=te[pe]===De,ze={last:Ce>=se.length-1,lastLive:pe>=te.length-1,prev:se[Ce-1],prevFromProps:de,prevLive:te[pe-1],next:se[Ce+1],nextLive:te[pe+(Te?1:0)]},qe=`${e}_${t}_${De.id}`;n.stopByAnimationId(qe);let et="unknown";Te?y&&k&&(et=EP(De,De.datum,y,k)):et="removed",De.transitionOut=et==="removed";let Se=R(De,De.datum,et,ze),{phase:$e,start:lt,finish:at,delay:ht,duration:vt}=Se,wt=wi(Se,["phase","start","finish","delay","duration"]),ve=F(De,De.datum,et,ze),{phase:Ct,start:yt,finish:Et,delay:At,duration:Dt}=ve,Ot=wi(ve,["phase","start","finish","delay","duration"]),It=at==null;n.animate({id:qe,groupId:e,phase:(ke=$e!=null?$e:Ct)!=null?ke:"update",duration:vt!=null?vt:Dt,delay:ht!=null?ht:At,from:wt,to:Ot,ease:bo,collapsable:It,onPlay:()=>{_(De,ge(ge(ge({},lt),yt),wt))},onUpdate(Rt){_(De,Rt)},onStop:()=>{_(De,ge(ge(ge(ge(ge(ge({},lt),yt),wt),Ot),at),Et))}}),Te&&pe++,Ce++,de=wt}},$=0;for(let te of K){let se=te.nodes(),de=se.filter(pe=>!te.isGarbage(pe));q(de,se),n.animate({id:`${e}_${t}_selection_${$}`,groupId:e,phase:"end",from:0,to:1,ease:bo,onStop(){te.cleanup()}}),$++}q(V,V)}function Ju(e,t,n,a,u,y,k){let{nodes:R,selections:F}=Vh(a),{start:_,finish:V,phase:K}=k;n.animate({id:`${e}_${t}`,groupId:e,phase:K!=null?K:"update",from:u,to:y,ease:bo,onPlay:()=>{if(_){for(let q of R)q.setProperties(_);for(let q of F)for(let $ of q.nodes())$.setProperties(_)}},onUpdate(q){for(let $ of R)$.setProperties(q);for(let $ of F)for(let te of $.nodes())te.setProperties(q)},onStop:()=>{for(let q of R)q.setProperties(ge(ge({},y),V));for(let q of F){for(let $ of q.nodes())$.setProperties(ge(ge({},y),V));q.cleanup()}}})}function EP(e,t,n,a){let u=n(e,t);return a.added.has(u)?"added":a.removed.has(u)?"removed":"updated"}var zs,Gr=A({"packages/ag-charts-community/src/motion/fromToMotion.ts"(){"use strict";Zn(),_y(),zs={added:"add",updated:"update",removed:"remove",unknown:"initial","no-op":"none"}}});function Zd(e,t){Co.has(t)||(Co.set(t,!0),e())}function Xf(e){return e}function eh(e,t=0,n){let{leading:a=!1,trailing:u=!0,maxWait:y=1/0}=n!=null?n:{},k,R;if(y<t)throw new Error("Value of maxWait cannot be lower than waitMs.");function F(..._){if(a&&!R){R=Date.now(),k=setTimeout(()=>R=null,t),e(..._);return}let V=t;if(y!==1/0&&R){let K=Date.now()-R;t>y-K&&(V=y-K)}clearTimeout(k),R!=null||(R=Date.now()),k=setTimeout(()=>{R=null,u&&e(..._)},V)}return Object.assign(F,{cancel(){clearTimeout(k),R=null}})}function fm(e,t,n){let{leading:a=!0,trailing:u=!0}=n!=null?n:{},y,k,R=!1;function F(){u&&k?(y=setTimeout(F,t),e(...k)):R=!1,k=null}function _(...V){R?k=V:(R=!0,y=setTimeout(F,t),a?e(...V):k=V)}return Object.assign(_,{cancel(){clearTimeout(y),R=!1,k=null}})}var Co,ec=A({"packages/ag-charts-community/src/util/function.ts"(){"use strict";Co=new Map,Zd.clear=()=>Co.clear()}}),hi,on=A({"packages/ag-charts-community/src/util/logger.ts"(){"use strict";ec(),hi={log(...e){console.log(...e)},warn(e,...t){console.warn(`AG Charts - ${e}`,...t)},error(e,...t){typeof e=="object"?console.error("AG Charts error",e,...t):console.error(`AG Charts - ${e}`,...t)},table(...e){console.table(...e)},warnOnce(e,...t){Zd(()=>hi.warn(e,...t),`Logger.warn: ${e}`)},errorOnce(e,...t){Zd(()=>hi.error(e,...t),`Logger.error: ${e}`)}}}}),xr,Bs=A({"packages/ag-charts-community/src/scale/invalidating.ts"(){"use strict";xr=(e,t)=>{let n=Symbol(String(t));e[n]=void 0,Object.defineProperty(e,t,{get(){return this[n]},set(a){this[n]!==a&&(this[n]=a,this.invalid=!0)},enumerable:!0,configurable:!1})}}}),No,Ha,cs=A({"packages/ag-charts-community/src/scale/continuousScale.ts"(){"use strict";on(),gn(),Bs(),No=class o6{constructor(t,n){this.invalid=!0,this.nice=!1,this.interval=void 0,this.tickCount=o6.defaultTickCount,this.minTickCount=0,this.maxTickCount=1/0,this.niceDomain=[],this.defaultClamp=!1,this.domain=t,this.range=n}static is(t){return t instanceof o6}transform(t){return t}transformInvert(t){return t}calcBandwidth(t=1){let n=this.getDomain(),a=this.getPixelRange(),u=Math.abs(n[1]-n[0])/t+1,y=Math.floor(a),k=Math.min(u,y);return a/Math.max(1,k)}getDomain(){return this.nice&&(this.refresh(),this.niceDomain.length)?this.niceDomain:this.domain}convert(t,n){if(!this.domain||this.domain.length<2)return NaN;this.refresh();let a=this.getDomain().map(_=>this.transform(_)),[u,y]=a,{range:k}=this,[R,F]=k;if(t=this.transform(t),n!=null?n:this.defaultClamp){let[_,V]=ss(a.map(Number));if(Number(t)<_)return R;if(Number(t)>V)return F}return u===y?(R+F)/2:t===u?R:t===y?F:R+(Number(t)-Number(u))/(Number(y)-Number(u))*(F-R)}invert(t,n){this.refresh();let a=this.getDomain().map($=>this.transform($)),[u,y]=a,{range:k}=this,[R,F]=k,_=R>F,V=_?F:R,K=_?R:F;if(n!=null?n:this.defaultClamp){if(t<V)return _?y:u;if(t>K)return _?u:y}let q;return R===F?q=this.toDomain((Number(u)+Number(y))/2):q=this.toDomain(Number(u)+(t-R)/(F-R)*(Number(y)-Number(u))),this.transformInvert(q)}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&hi.warnOnce("Expected update to not invalidate scale"))}getPixelRange(){let[t,n]=this.range;return Math.abs(n-t)}},No.defaultTickCount=5,No.defaultMaxTickCount=6,b([xr],No.prototype,"domain",2),b([xr],No.prototype,"range",2),b([xr],No.prototype,"nice",2),b([xr],No.prototype,"interval",2),b([xr],No.prototype,"tickCount",2),b([xr],No.prototype,"minTickCount",2),b([xr],No.prototype,"maxTickCount",2),Ha=No}});function ep(e){if(e.length===0)return null;let t=1/0,n=-1/0;for(let u of e)u instanceof Date&&(u=u.getTime()),typeof u=="number"&&(u<t&&(t=u),u>n&&(n=u));let a=[t,n];return a.every(isFinite)?a:null}function rx(e,t,n){var u;let a=!1;return e.length>2&&(e=(u=ep(e))!=null?u:[NaN,NaN]),isNaN(t)||(a||(a=t>e[0]),e=[t,e[1]]),isNaN(n)||(a||(a=n<e[1]),e=[e[0],n]),e[0]>e[1]&&(e=[]),{extent:e,clipped:a}}function th(e,t){if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(Array.isArray(e[n])&&Array.isArray(t[n])){if(!th(e[n],t[n]))return!1}else if(e[n]!==t[n])return!1;return!0}function Ny(e){return typeof e=="undefined"?[]:Array.isArray(e)?e:[e]}function sx(e){return Array.from(new Set(e))}function lx(e,t){return e.reduce((n,a)=>{var y;let u=t(a);return(y=n[u])!=null||(n[u]=[]),n[u].push(a),n},{})}function Zf(e,t,n=0){if(e.length===0)return[];let a=[];for(let u=0;u<t;u++)a.push(e.at((u+n)%e.length));return a}function bI(e,t){let n=new Map;return t.forEach((a,u)=>{n.set(a,u)}),e.sort((a,u)=>{var R,F;let y=(R=n.get(a))!=null?R:1/0,k=(F=n.get(u))!=null?F:1/0;return y-k})}function NA(e,t){return e.includes(t)}var Mr=A({"packages/ag-charts-community/src/util/array.ts"(){"use strict"}}),Gs,Vr,jn,jr,ih,nh,Hh,ah=A({"packages/ag-charts-community/src/util/time/duration.ts"(){"use strict";Gs=1e3,Vr=Gs*60,jn=Vr*60,jr=jn*24,ih=jr*7,nh=jr*30,Hh=jr*365}}),fi,cn,fl=A({"packages/ag-charts-community/src/util/time/interval.ts"(){"use strict";on(),fi=class{constructor(e,t,n){this._encode=e,this._decode=t,this._rangeCallback=n}floor(e){let t=new Date(e),n=this._encode(t);return this._decode(n)}ceil(e){let t=new Date(Number(e)-1),n=this._encode(t);return this._decode(n+1)}range(e,t,n){var R;let a=(R=this._rangeCallback)==null?void 0:R.call(this,e,t),u=this._encode(n?this.floor(e):this.ceil(e)),y=this._encode(n?this.ceil(t):this.floor(t));if(y<u)return[];let k=[];for(let F=u;F<=y;F++){let _=this._decode(F);k.push(_)}return a==null||a(),k}},cn=class extends fi{getOffset(e,t){let n=typeof e=="number"||e instanceof Date?this._encode(new Date(e)):0;return Math.floor(n)%t}every(e,t){let n=0,a,u=e;e=Math.max(1,Math.round(e)),u!==e&&hi.warnOnce(`interval step of [${u}] rounded to [${e}].`);let{snapTo:y="start"}=t!=null?t:{};if(typeof y=="string"){let F=n;a=(_,V)=>{let K=y==="start"?_:V;return n=this.getOffset(K,e),()=>n=F}}else typeof y=="number"?n=this.getOffset(new Date(y),e):y instanceof Date&&(n=this.getOffset(y,e));let k=F=>{let _=this._encode(F);return Math.floor((_-n)/e)},R=F=>this._decode(F*e+n);return new fi(k,R,a)}}}});function ds(e){let t=e.getTimezoneOffset()*Vr;return Math.floor((e.getTime()-t)/jr)}function e0(e){let t=new Date(1970,0,1);return t.setDate(t.getDate()+e),t}var zy,cx=A({"packages/ag-charts-community/src/util/time/day.ts"(){"use strict";ah(),fl(),zy=new cn(ds,e0)}});function CI(e){return Math.floor((e.getTime()-dx)/jn)}function zA(e){return new Date(dx+e*jn)}var dx,vm,BA=A({"packages/ag-charts-community/src/util/time/hour.ts"(){"use strict";ah(),fl(),dx=new Date().getTimezoneOffset()*Vr,vm=new cn(CI,zA)}});function SI(e){return Math.floor((e.getTime()-GA)/Vr)}function wI(e){return new Date(GA+e*Vr)}var GA,ym,t0=A({"packages/ag-charts-community/src/util/time/minute.ts"(){"use strict";ah(),fl(),GA=new Date().getTimezoneOffset()*Vr,ym=new cn(SI,wI)}});function VA(e){return e.getFullYear()*12+e.getMonth()}function i0(e){let t=Math.floor(e/12),n=e-t*12;return new Date(t,n,1)}var us,jA=A({"packages/ag-charts-community/src/util/time/month.ts"(){"use strict";fl(),us=new cn(VA,i0)}});function ux(e){return Math.floor((e.getTime()-n0)/Gs)}function By(e){return new Date(n0+e*Gs)}var n0,Vs,Wh=A({"packages/ag-charts-community/src/util/time/second.ts"(){"use strict";ah(),fl(),n0=new Date().getTimezoneOffset()*Vr,Vs=new cn(ux,By)}});function bm(e){let n=(7+e-4)%7;function a(y){let k=y.getTimezoneOffset()*Vr;return Math.floor((y.getTime()-k)/ih-n/7)}function u(y){let k=new Date(1970,0,1);return k.setDate(k.getDate()+y*7+n),k}return new cn(a,u)}var $f,hx,Cm,gx,Sm,Ho,px,mx=A({"packages/ag-charts-community/src/util/time/week.ts"(){"use strict";ah(),fl(),$f=bm(0),hx=bm(1),Cm=bm(2),gx=bm(3),Sm=bm(4),Ho=bm(5),px=bm(6)}});function HA(e){return e.getFullYear()}function Ji(e){let t=new Date;return t.setFullYear(e),t.setMonth(0,1),t.setHours(0,0,0,0),t}var Gy,WA=A({"packages/ag-charts-community/src/util/time/year.ts"(){"use strict";fl(),Gy=new cn(HA,Ji)}});function js(e,t=new Date(e.getFullYear(),0,1)){let n=e.getTimezoneOffset()-t.getTimezoneOffset(),a=e.getTime()-t.getTime()+n*6e4,u=36e5*24;return Math.floor(a/u)}function Qf(e,t){let a=new Date(e.getFullYear(),0,1).getDay(),u=(t-a+7)%7,y=new Date(e.getFullYear(),0,u+1);return y<=e?Math.floor(js(e,y)/7)+1:0}function $d(e,t=e.getFullYear()){let a=new Date(t,0,1).getDay(),u=(yx-a+7)%7,y=new Date(t,0,u-(yx-vx)+1);return y<=e?Math.floor(js(e,y)/7)+1:$d(e,t-1)}function Hr(e){let t=e.getTimezoneOffset(),n=Math.abs(t);return`${t>0?"-":"+"}${On(Math.floor(n/60),2,"0")}${On(Math.floor(n%60),2,"0")}`}function On(e,t,n){let a=String(Math.floor(e));return a.length>=t?a:`${n.repeat(t-a.length)}${a}`}function ta(e){let t=[];for(;e.length>0;){let n=e.indexOf("%");if(n!==0){let R=n>0?e.substring(0,n):e;t.push(R)}if(n<0)break;let a=e[n+1],u=bx[a];u!=null&&n++;let y=e[n+1],k=oh[y];if(typeof k=="function")t.push([k,u]);else if(typeof k=="string"){let R=ta(k);t.push([R,u])}else t.push(`${u!=null?u:""}${y}`);e=e.substring(n+2)}return n=>{let a=typeof n=="number"?new Date(n):n;return t.map(u=>typeof u=="string"?u:u[0](a,u[1])).join("")}}var Jf,fx,vx,yx,oh,bx,ev=A({"packages/ag-charts-community/src/util/timeFormat.ts"(){"use strict";Jf={periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},fx=0,vx=1,yx=4,oh={a:e=>Jf.shortDays[e.getDay()],A:e=>Jf.days[e.getDay()],b:e=>Jf.shortMonths[e.getMonth()],B:e=>Jf.months[e.getMonth()],c:"%x, %X",d:(e,t)=>On(e.getDate(),2,t!=null?t:"0"),e:"%_d",f:(e,t)=>On(e.getMilliseconds()*1e3,6,t!=null?t:"0"),H:(e,t)=>On(e.getHours(),2,t!=null?t:"0"),I:(e,t)=>{let n=e.getHours()%12;return n===0?"12":On(n,2,t!=null?t:"0")},j:(e,t)=>On(js(e)+1,3,t!=null?t:"0"),m:(e,t)=>On(e.getMonth()+1,2,t!=null?t:"0"),M:(e,t)=>On(e.getMinutes(),2,t!=null?t:"0"),L:(e,t)=>On(e.getMilliseconds(),3,t!=null?t:"0"),p:e=>e.getHours()<12?"AM":"PM",Q:e=>String(e.getTime()),s:e=>String(Math.floor(e.getTime()/1e3)),S:(e,t)=>On(e.getSeconds(),2,t!=null?t:"0"),u:e=>{let t=e.getDay();return t<1&&(t+=7),String(t%7)},U:(e,t)=>On(Qf(e,fx),2,t!=null?t:"0"),V:(e,t)=>On($d(e),2,t!=null?t:"0"),w:(e,t)=>On(e.getDay(),2,t!=null?t:"0"),W:(e,t)=>On(Qf(e,vx),2,t!=null?t:"0"),x:"%-m/%-d/%Y",X:"%-I:%M:%S %p",y:(e,t)=>On(e.getFullYear()%100,2,t!=null?t:"0"),Y:(e,t)=>On(e.getFullYear(),4,t!=null?t:"0"),Z:e=>Hr(e),"%":()=>"%"},bx={_:" ",0:"0","-":""}}});function kr(e){return e instanceof Date?e.getTime():e}function Vy(e,t,n){let a=Cx(e,t,n),u=ta(a);return y=>u(y)}function Cx(e=[],t=e,n=0){let a=1/0;for(let F=1;F<e.length;F++)a=Math.min(a,Math.abs(e[F]-e[F-1]));let u=new Date(t[0]).getFullYear(),k=new Date(t.at(-1)).getFullYear()-u>0,R=isFinite(a)?Sx(a,e):IP(e[0]);return TP(Math.max(R-n,0),k,e)}function Sx(e,t){return e<Gs?0:e<Vr?1:e<jn?2:e<jr?3:e<ih?4:e<jr*28||e<jr*31&&jy(t)?5:e<Hh?6:7}function IP(e){return Vs.floor(e)<e?0:ym.floor(e)<e?1:vm.floor(e)<e?2:zy.floor(e)<e?3:us.floor(e)<e?$f.floor(e)<e?4:5:Gy.floor(e)<e?6:7}function jy(e){let t=new Date(e[0]).getMonth();for(let n=1;n<e.length;n++){let a=new Date(e[n]).getMonth();if(t===a)return!0;t=a}return!1}function TP(e,t,n){let a=kr(n[0]),u=kr(n.at(-1)),y=Math.abs(u-a),k=t||e===7,R=y===0,_=[["hour",6*jn,14*jr,3,"%I %p"],["hour",Vr,6*jn,3,"%I:%M"],["second",1e3,6*jn,1,":%S"],["ms",0,6*jn,0,".%L"],["am/pm",Vr,6*jn,3,"%p"]," ",["day",jr,ih,4,"%a"],["month",R?0:ih,52*ih,5,"%b %d"],["month",5*ih,10*Hh,6,"%B"]," ",["year",k?0:Hh,1/0,7,"%Y"]].filter(q=>{if(typeof q=="string")return!0;let[$,te,se,de]=q;return de>=e&&te<=y&&y<se}).reduce((q,$)=>(typeof $=="string"?q.result.push($):q.used.has($[0])||(q.result.push($),q.used.add($[0])),q),{result:[],used:new Set}).result,V=_.findIndex(q=>typeof q!="string"),K=_.findLastIndex(q=>typeof q!="string");return _.slice(V,K+1).map(q=>typeof q=="string"?q:q[4]).join("").replaceAll(/\s+/g," ").trim()}var Ma=A({"packages/ag-charts-community/src/util/timeFormatDefaults.ts"(){"use strict";cx(),BA(),t0(),jA(),Wh(),mx(),WA(),ah(),ev()}}),co,zo,Qd=A({"packages/ag-charts-community/src/scale/bandScale.ts"(){"use strict";on(),gn(),Ma(),Bs(),co=class yZ{constructor(){this.type="band",this.invalid=!0,this.range=[0,1],this.round=!1,this.interval=void 0,this.index=new Map,this._domain=[],this._bandwidth=1,this._step=1,this._inset=1,this._rawBandwidth=1,this._paddingInner=0,this._paddingOuter=0}static is(t){return t instanceof yZ}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&hi.warnOnce("Expected update to not invalidate scale"))}set domain(t){this.index=new Map,this.invalid=!0,this._domain=[];for(let n of t){let a=kr(n);this.getIndex(a)===void 0&&this.index.set(a,this._domain.push(n)-1)}}get domain(){return this._domain}getDomain(){return this._domain}ticks(){return this.refresh(),this._domain}convert(t){this.refresh();let n=this.getIndex(t);return n==null||n<0||n>=this.domain.length?NaN:this.ordinalRange(n)}invertNearestIndex(t){this.refresh();let{domain:n}=this;if(n.length===0)return-1;let a=0,u=n.length-1,y=1/0,k=0;for(;a<=u;){let R=(u+a)/2|0,F=this.ordinalRange(R),_=Math.abs(F-t);if(_===0)return R;_<y&&(y=_,k=R),F<t?a=R+1:u=R-1}return k}invert(t){this.refresh();let n=this.invertNearestIndex(t),a=this.ordinalRange(n);return t===a?this.domain[n]:void 0}invertNearest(t){let n=this.invertNearestIndex(t);return this.domain[n]}get bandwidth(){return this.refresh(),this._bandwidth}get step(){return this.refresh(),this._step}get inset(){return this.refresh(),this._inset}get rawBandwidth(){return this.refresh(),this._rawBandwidth}set padding(t){t=fn(0,t,1),this._paddingInner=t,this._paddingOuter=t}get padding(){return this._paddingInner}set paddingInner(t){this._paddingInner=fn(0,t,1)}get paddingInner(){return this._paddingInner}set paddingOuter(t){this._paddingOuter=fn(0,t,1)}get paddingOuter(){return this._paddingOuter}update(){let t=this._domain.length;if(t===0)return;let[n,a]=this.range,{_paddingInner:u}=this,{_paddingOuter:y,round:k}=this,R=a-n,F;t===1?(u=0,F=R*(1-y*2)):F=R/Math.max(1,t-u+y*2);let _=k?Math.floor(F):F,V=n+(R-_*(t-u))/2,K=_*(1-u);k&&(V=Math.round(V),K=Math.round(K)),this._step=_,this._inset=V,this._bandwidth=K,this._rawBandwidth=F*(1-u)}ordinalRange(t){let{_inset:n,_step:a}=this;return n+a*t}getIndex(t){return this.index.get(t instanceof Date?t.getTime():t)}},b([xr],co.prototype,"range",2),b([xr],co.prototype,"round",2),b([xr],co.prototype,"interval",2),zo=co}});function Nn(e){return e instanceof dn||e instanceof Uh}var dn,Uh,zn=A({"packages/ag-charts-community/src/util/properties.ts"(){"use strict";ml(),on(),bn(),dn=class{set(e){let{className:t=this.constructor.name}=this.constructor;if(typeof e!="object")return hi.warn(`unable to set ${t} - expecting a properties object`),this;let n=new Set(Object.keys(e));for(let a of Xu(this))if(n.has(a)){let u=e[a],y=this;if(Nn(y[a]))if(y[a]instanceof Uh){let k=y[a].reset(u);k!=null?y[a]=k:hi.warn(`unable to set [${a}] - expecting a properties array`)}else y[a].set(u);else y[a]=u;n.delete(a)}for(let a of n)hi.warn(`unable to set [${a}] in ${t} - property is unknown`);return this}isValid(e){return Xu(this).every(t=>{let{optional:n}=Ry(this,t),a=n===!0||typeof this[t]!="undefined";return a||hi.warnOnce(`${e!=null?e:""}[${t}] is required.`),a})}toJson(){return Xu(this).reduce((e,t)=>{let n=this[t];return e[t]=Nn(n)?n.toJson():n,e},{})}},Uh=class bZ extends Array{constructor(t,...n){super(n.length);let u=(y=>{var k,R;return!!((R=(k=y==null?void 0:y.prototype)==null?void 0:k.constructor)!=null&&R.name)})(t)?y=>new t().set(y):t;Object.defineProperty(this,"itemFactory",{value:u,enumerable:!1,configurable:!1}),this.set(n)}set(t){if(ja(t)){this.length=t.length;for(let n=0;n<t.length;n++)this[n]=this.itemFactory(t[n])}return this}reset(t){if(Array.isArray(t))return new bZ(this.itemFactory,...t)}toJson(){return this.map(t=>{var n,a;return(a=(n=t==null?void 0:t.toJson)==null?void 0:n.call(t))!=null?a:t})}}}});function Ge(e,t={}){let{optional:n=!1,property:a}=t;return vo((u,y,k)=>{var q;let R=He(ge({},t),{target:u,property:y});if(n&&typeof k=="undefined"||e(k,R))return Nn(u[y])&&!Nn(k)?(u[y].set(k),u[y]):k;let F=a!=null?a:String(y).replace(/^_*/,""),_=(q=u.constructor.className)!=null?q:u.constructor.name.replace(/Properties$/,""),V=Bt(k),K=50;if(V!=null&&V.length>K){let $=V.length-K;V=V.slice(0,K)+`... (+${$} characters)`}return hi.warn(`Property [${F}] of [${_}] cannot be set to [${V}]${e.message?`; expecting ${Hy(e,R)}`:""}, ignoring.`),qf},void 0,{optional:n})}function uo(e,t="a"){return ka((n,a)=>{let u=e.find(y=>{let k=typeof y=="string"?y:y.value;return n===k});if(u==null)return!1;if(typeof u!="string"&&(u.deprecated===!0||u.deprecatedTo!=null)){let y=[`Property [%s] with value '${u.value}' is deprecated.`];u.deprecatedTo&&y.push(`Use ${u.deprecatedTo} instead.`),hi.warnOnce(y.join(" "),a.property)}return!0},`${t} keyword such as ${a0(e)}`)}function ka(e,t){return e.message=t,e}function a0(e){let t=e.filter(a=>typeof a=="string"||a.undocumented!==!0).map(a=>`'${typeof a=="string"?a:a.value}'`);if(t.length===1)return t[0];let n=t.pop();return`${t.join(", ")} or ${n}`}function Hy(e,t){return Si(e.message)?e.message(t):e.message}function RP(e){return t=>Hy(t,e)}function UA(e){return Object.assign(e,{restrict({length:t,minLength:n}={}){let a="an array";return yn(n)&&n>0?a="a non-empty array":yn(t)&&(a=`an array of length ${t}`),ka(u=>ja(u)&&(yn(t)?u.length===t:!0)&&(yn(n)?u.length>=n:!0),a)}})}function tp(e){return Object.assign(e,{restrict({min:t,max:n}={}){let a=["a number"],u=yn(t),y=yn(n);return u&&y?a.push(`between ${t} and ${n} inclusive`):u?a.push(`greater than or equal to ${t}`):y&&a.push(`less than or equal to ${n}`),ka(k=>pa(k)&&(u?k>=t:!0)&&(y?k<=n:!0),a.join(" "))}})}function KA(e){return Object.assign(e,{restrict(t){return ka(n=>n instanceof t,n=>{var a;return(a=Hy(e,n))!=null?a:`an instance of ${t.name}`})}})}function Bt(e){if(typeof e=="number"){if(isNaN(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity"}return JSON.stringify(e)}var Hs,rh,Ei,o0,Oi,vl,ei,Bn,Kh,Jd,ni,Cn,Ar,sh,ud,Wr,tv,Wa,yl,bl,hr,sa,hs,xI,Wy,qA,MI,wx,kI,AI,DI,hd,Uy,Tc,Rc,iv,Ky,Pc,xx,Ur,r0,wm,lh,xm,qy,Ai=A({"packages/ag-charts-community/src/util/validation.ts"(){"use strict";qC(),ml(),on(),zn(),bn(),Hs=(...e)=>{let t=[];return ka((n,a)=>(t.length=0,e.every(u=>{let y=u(n,a);return y||t.push(Hy(u,a)),y})),()=>t.filter(Boolean).join(" AND "))},rh=(...e)=>ka((t,n)=>e.some(a=>a(t,n)),t=>e.map(RP(t)).filter(Boolean).join(" OR ")),Ei=KA(ka((e,t)=>Nn(e)||ur(e)&&Nn(t.target[t.property]),"a properties object")),o0=KA(ka(e=>ur(e),"an object")),Oi=ka(Xd,"a boolean"),vl=ka(Si,"a function"),ei=ka(Qt,"a string"),Bn=tp(ka(pa,"a number")),Kh=ka(e=>yn(e)&&!isNaN(e),"a real number"),Jd=ka(e=>yn(e)&&isNaN(e),"NaN"),ni=Bn.restrict({min:0}),Cn=Bn.restrict({min:0,max:1}),Ar=rh(Bn,Jd),sh=UA(ka(ja,"an array")),ud=(e,t)=>ka((n,a)=>ja(n)&&n.every(u=>e(u,a)),n=>{var u;let a=(u=Hy(sh,n))!=null?u:"";return typeof t=="function"?`${a} of ${t(n)}`:t?`${a} of ${t}`:a}),Wr=e=>pa(e)||dd(e),tv=e=>ka((t,n)=>!Wr(t)||!Wr(n.target[e])||t<n.target[e],`to be less than ${e}`),Wa=e=>ka((t,n)=>!Wr(t)||!Wr(n.target[e])||t>n.target[e],`to be greater than ${e}`),yl=ka(dd,"Date object"),bl=rh(yl,ni),hr="A color string can be in one of the following formats to be valid: #rgb, #rrggbb, rgb(r, g, b), rgba(r, g, b, a) or a CSS color name such as 'white', 'orange', 'cyan', etc",sa=ka(e=>Qt(e)&&Jo.validColorString(e),`color String. ${hr}`),hs=ka(ud(sa),`color strings. ${hr}`),xI=ud(Oi,"boolean values"),Wy=ud(Bn,"numbers"),qA=ud(ei,"strings"),MI=ka(ud(yl),"Date objects"),wx=ka(ud(Ei),"objects"),kI=uo(["butt","round","square"],"a line cap"),AI=uo(["round","bevel","miter"],"a line join"),DI=uo(["solid","dashed","dotted"],"a line style"),hd=ka(ud(ni),"numbers specifying the length in pixels of alternating dashes and gaps, for example, [6, 3] means dashes with a length of 6 pixels with gaps between of 3 pixels."),Uy=uo(["top","right","bottom","left"],"a position"),Tc=uo(["normal","italic","oblique"],"a font style"),Rc=rh(uo(["normal","bold","bolder","lighter"],"a font weight"),Bn.restrict({min:1,max:1e3})),iv=uo(["never","always","hyphenate","on-space"],"a text wrap strategy"),Ky=uo(["left","center","right"],"a text align"),Pc=uo(["top","middle","bottom"],"a vertical align"),xx=uo(["ellipsis","hide"],"an overflow strategy"),Ur=uo(["horizontal","vertical"],"a direction"),r0=uo(["inside","outside"],"a placement"),wm=rh(uo(["exact","nearest"],"interaction range"),Bn),lh=uo(["top","bottom","left","right"]),xm=rh(Hs(Bn.restrict({min:1}),tv("maxSpacing")),Jd),qy=rh(Hs(Bn.restrict({min:1}),Wa("minSpacing")),Jd)}}),s0,Tn=A({"packages/ag-charts-community/src/chart/chartAxisDirection.ts"(){"use strict";s0=(e=>(e.X="x",e.Y="y",e))(s0||{})}}),Cl,ip=A({"packages/ag-charts-community/src/module/moduleMap.ts"(){"use strict";bn(),Cl=class{constructor(){this.moduleMap=new Map}*modules(){for(let e of this.moduleMap.values())yield e.moduleInstance}addModule(e,t){if(this.moduleMap.has(e.optionsKey))throw new Error(`AG Charts - module already initialised: ${e.optionsKey}`);this.moduleMap.set(e.optionsKey,{module:e,moduleInstance:t(e)})}removeModule(e){var n;let t=Qt(e)?e:e.optionsKey;(n=this.moduleMap.get(t))==null||n.moduleInstance.destroy(),this.moduleMap.delete(t)}getModule(e){var t;return(t=this.moduleMap.get(Qt(e)?e:e.optionsKey))==null?void 0:t.moduleInstance}isEnabled(e){return this.moduleMap.has(Qt(e)?e:e.optionsKey)}mapModules(e){return Array.from(this.moduleMap.values(),(t,n)=>e(t.moduleInstance,n))}destroy(){var e;for(let t of this.moduleMap.keys())(e=this.moduleMap.get(t))==null||e.moduleInstance.destroy();this.moduleMap.clear()}}}}),nv={};E(nv,{resetMotion:()=>io});function io(e,t){let{nodes:n,selections:a}=Vh(e);for(let u of a){for(let y of u.nodes()){let k=t(y,y.datum);y.setProperties(k)}u.cleanup()}for(let u of n){let y=t(u,u.datum);u.setProperties(y)}}var Mm=A({"packages/ag-charts-community/src/motion/resetMotion.ts"(){"use strict";Zn()}});function l0(e){let t,n,a=Xy.exec(e);a&&([,t,e,n]=a);let u=So.exec(e);if(!u)throw new Error(`The number formatter is invalid: ${e}`);let[,y,k,R,F,_,V,K,q,$,te]=u;return{fill:y,align:k,sign:R,symbol:F,zero:_,width:parseInt(V),comma:K,precision:parseInt(q),trim:!!$,type:te,prefix:t,suffix:n}}function YA(e){let t=typeof e=="string"?l0(e):e,{fill:n,align:a,sign:u="-",symbol:y,zero:k,width:R,comma:F,type:_,prefix:V="",suffix:K="",precision:q}=t,{trim:$}=t,te=q==null||isNaN(q),se;if(!_)se=Lc.g,$=!0;else if(_ in Lc&&_ in km)se=te?km[_]:Lc[_];else if(_ in Lc)se=Lc[_];else if(_ in km)se=km[_];else throw new Error(`The number formatter type is invalid: ${_}`);let de;return q==null||te?de=_?6:12:de=q,pe=>{let Ce=se(pe,de);return $&&(Ce=no(Ce)),F&&(Ce=XA(Ce,F)),Ce=Ua(pe,Ce,u),y&&y!=="#"&&(Ce=`${y}${Ce}`),y==="#"&&_==="x"&&(Ce=`0x${Ce}`),_==="s"&&(Ce=`${Ce}${Yy(pe)}`),(_==="%"||_==="p")&&(Ce=`${Ce}%`),R!=null&&!isNaN(R)&&(Ce=ch(Ce,R,n!=null?n:k,a)),Ce=`${V}${Ce}${K}`,Ce}}function av(e){return Math.floor(Math.abs(e))}function no(e){return e.replace(/\.0+$/,"").replace(/(\.[1-9])0+$/,"$1")}function XA(e,t){let n=e.indexOf(".");n<0&&(n=e.length);let a=e.substring(0,n).split(""),u=e.substring(n);for(let y=a.length-3;y>0;y-=3)a.splice(y,0,t);return`${a.join("")}${u}`}function Yy(e){return $A[c0(e)]}function c0(e){return fn(eu,e?Math.floor(Math.log10(Math.abs(e))/3)*3:0,ZA)}function Ua(e,t,n=""){if(n==="(")return e>=0?t:`(${t})`;let a=n==="+"?"+":"";return`${e>=0?a:QA}${t}`}function ch(e,t,n=" ",a=">"){let u=e;if(a===">"||!a)u=u.padStart(t,n);else if(a==="<")u=u.padEnd(t,n);else if(a==="^"){let y=Math.max(0,t-u.length),k=Math.ceil(y/2),R=Math.floor(y/2);u=u.padStart(k+u.length,n),u=u.padEnd(R+u.length,n)}return u}var So,Xy,km,Lc,eu,ZA,$A,QA,dh=A({"packages/ag-charts-community/src/util/numberFormat.ts"(){"use strict";gn(),So=/^(?:(.)?([<>=^]))?([+\-( ])?([$€£¥₣₹#])?(0)?(\d+)?(,)?(?:\.(\d+))?(~)?([%a-z])?$/i,Xy=/^((?:[^#]|#[^{])*)#{([^}]+)}(.*)$/,km={b:e=>av(e).toString(2),c:e=>String.fromCharCode(e),d:e=>Math.round(Math.abs(e)).toFixed(0),o:e=>av(e).toString(8),x:e=>av(e).toString(16),X:e=>km.x(e).toUpperCase(),n:e=>km.d(e),"%":e=>`${av(e*100).toFixed(0)}`},Lc={e:(e,t)=>Math.abs(e).toExponential(t),E:(e,t)=>Lc.e(e,t).toUpperCase(),f:(e,t)=>Math.abs(e).toFixed(t),F:(e,t)=>Lc.f(e,t).toUpperCase(),g:(e,t)=>{if(e===0)return"0";let n=Math.abs(e),a=Math.floor(Math.log10(n));return a>=-4&&a<t?n.toFixed(t-1-a):n.toExponential(t-1)},G:(e,t)=>Lc.g(e,t).toUpperCase(),n:(e,t)=>Lc.g(e,t),p:(e,t)=>Lc.r(e*100,t),r:(e,t)=>{if(e===0)return"0";let n=Math.abs(e),u=Math.floor(Math.log10(n))-(t-1);if(u<=0)return n.toFixed(-u);let y=10**u;return(Math.round(n/y)*y).toFixed()},s:(e,t)=>{let n=c0(e);return Lc.r(e/10**n,t)},"%":(e,t)=>Lc.f(e*100,t)},eu=-24,ZA=24,$A={[eu]:"y",[-21]:"z",[-18]:"a",[-15]:"f",[-12]:"p",[-9]:"n",[-6]:"\xB5",[-3]:"m",[0]:"",[3]:"k",[6]:"M",[9]:"G",[12]:"T",[15]:"P",[18]:"E",[21]:"Z",[ZA]:"Y"},QA="\u2212"}});function JA(e){return e.getTime()}function d0(e){return new Date(e)}var Am,Mx=A({"packages/ag-charts-community/src/util/time/millisecond.ts"(){"use strict";fl(),Am=new cn(JA,d0)}});function eD(e,t){return Math.abs(Math.round(e)-e)<t}function gd(e,t,n,a,u){if(n<2)return[e,t];let y=pd(e,t,n,a,u);return Number.isFinite(y)?(eD(e/y,1e-12)||(e=Math.ceil(e/y)*y),eD(t/y,1e-12)||(t=Math.floor(t/y)*y),u0(e,t,y)):[]}function Zy(e,t,n,a,u,y){let k=y!=null?y:Math.abs(t-e)/Math.max(n,1),R=0;for(let q of ov){if(k<=q.duration)break;R++}if(R===0){let q=Math.max(pd(e,t,n,a,u),1);return Am.every(q)}else if(R===ov.length){let q=y==null?pd(e/Hh,t/Hh,n,a,u):1;return Gy.every(q)}let F=ov[R-1],_=ov[R],{timeInterval:V,step:K}=k-F.duration<_.duration-k?F:_;return V.every(K)}function pd(e,t,n,a=0,u=1/0){if(e===t)return fn(1,a,u);if(n<1)return NaN;let y=Math.abs(t-e),k=10**Math.floor(Math.log10(y/n)),R=NaN,F=1/0,_=!1;for(let V of kx){let K=Math.ceil(y/(V*k)),q=K>=a&&K<=u;if(_&&!q)continue;let $=Math.abs(K-n);(F>$||_!==q)&&(_||(_=q),F=$,R=V)}return R*k}function $y(e){for(let t=e.length-1;t>=0;t-=1)if(e[t]!=="0")return t+1;return 0}function tD(e,t){let n=l0(t!=null?t:",f");(n.precision==null||isNaN(n.precision))&&(!n.type||"eEFgGnprs".includes(n.type)?n.precision=Math.max(...e.map(u=>{if(!Number.isFinite(u))return 0;let[y,k]=u.toExponential((n.type?6:12)-1).split(/[.e]/g);return(y!=="1"&&y!=="-1"?1:0)+$y(k)+1})):"f%".includes(n.type)&&(n.precision=Math.max(...e.map(u=>{if(!Number.isFinite(u)||u===0)return 0;let y=Math.floor(Math.log10(Math.abs(u))),k=n.type?6:12,R=u.toExponential(k-1).split(/[.e]/g)[1],F=$y(R);return Math.max(0,F-y)}))));let a=YA(n);return u=>a(Number(u))}function u0(e,t,n){if(!Number.isFinite(n)||n<=0)return[];let a=10**tx(n),u=Math.min(e,t),y=Math.max(e,t),k=[];for(let R=0;;R+=1){let F=Math.round((u+n*R)*a)/a;if(F>y)break;k.push(F)}return k}function Dm(e,t){return e>=t?(hi.warnOnce("the configured interval results in more than 1 item per pixel, ignoring. Supply a larger interval or omit this configuration"),!0):!1}function PP(e,t){let n=Math.abs(t-e),a=10**Math.floor(Math.log10(n)),u=1/0,y=[e,t];for(let k of kx){let R=k*a,F=Math.floor(e/R)*R,_=Math.ceil(t/R)*R,V=1-n/Math.abs(_-F);u>V&&(u=V,y=[F,_])}return y}function h0(e,t,n,a,u){u=Math.max(u,e/(a+1)),isNaN(t)&&(t=u),isNaN(n)&&(n=e),t>n&&(t===u?t=n:n=t);let y=Math.max(1,Math.floor(e/t)),k=Math.min(y,Math.ceil(e/n)),R=fn(k,a,y);return{minTickCount:k,maxTickCount:y,tickCount:R}}var wo,ov,kx,tu=A({"packages/ag-charts-community/src/util/ticks.ts"(){"use strict";on(),gn(),dh(),cx(),ah(),BA(),fl(),Mx(),t0(),jA(),Wh(),mx(),WA(),wo=(e,t,n)=>({duration:t*n,timeInterval:e,step:n}),ov=[wo(Vs,Gs,1),wo(Vs,Gs,5),wo(Vs,Gs,15),wo(Vs,Gs,30),wo(ym,Vr,1),wo(ym,Vr,5),wo(ym,Vr,15),wo(ym,Vr,30),wo(vm,jn,1),wo(vm,jn,3),wo(vm,jn,6),wo(vm,jn,12),wo(zy,jr,1),wo(zy,jr,2),wo($f,ih,1),wo($f,ih,2),wo($f,ih,3),wo(us,nh,1),wo(us,nh,2),wo(us,nh,3),wo(us,nh,4),wo(us,nh,6),wo(Gy,Hh,1)],kx=[1,2,5,10]}}),g0,Ws,gs=A({"packages/ag-charts-community/src/scale/logScale.ts"(){"use strict";ec(),on(),gn(),dh(),tu(),bn(),cs(),Bs(),g0=class r6 extends Ha{constructor(){super([1,10],[0,1]),this.type="log",this.base=10,this.baseLog=Xf,this.basePow=Xf,this.log=t=>Math.min(...this.domain)>=0?this.baseLog(t):-this.baseLog(-t),this.pow=t=>Math.min(...this.domain)>=0?this.basePow(t):-this.basePow(-t),this.defaultClamp=!0}toDomain(t){return t}transform(t){return Math.min(...this.domain)>=0?Math.log(t):-Math.log(-t)}transformInvert(t){return Math.min(...this.domain)>=0?Math.exp(t):-Math.exp(-t)}refresh(){this.base<=0&&(this.base=0,hi.warnOnce("expecting a finite Number greater than to 0")),super.refresh()}update(){!this.domain||this.domain.length<2||(this.baseLog=r6.getBaseLogMethod(this.base),this.basePow=r6.getBasePowerMethod(this.base),this.nice&&this.updateNiceDomain())}updateNiceDomain(){let[t,n]=this.domain,a=t>n?Math.ceil:Math.floor,u=t>n?Math.floor:Math.ceil,y=this.pow(a(this.log(t))),k=this.pow(u(this.log(n)));this.niceDomain=[y,k]}ticks(){var $;let t=($=this.tickCount)!=null?$:10;if(!this.domain||this.domain.length<2||t<1)return[];this.refresh();let n=this.base,[a,u]=this.getDomain(),y=Math.min(a,u),k=Math.max(a,u),R=this.log(y),F=this.log(k);if(this.interval){let te=pe=>pe>=y&&pe<=k,se=Math.min(Math.abs(this.interval),Math.abs(F-R)),de=u0(R,F,se).map(this.pow).filter(te);if(!Dm(de.length,this.getPixelRange()))return de}if(!Wf(n)||F-R>=t)return gd(R,F,Math.min(F-R,t)).map(this.pow);let _=[],V=y>0;R=Math.floor(R)-1,F=Math.round(F)+1;let K=dm(this.range)/t,q=1/0;for(let te=R;te<=F;te++){let se=this.convert(this.pow(te+1));for(let de=1;de<n;de++){let pe=V?de:n-de+1,Ce=this.pow(te)*pe,Se=this.convert(Ce),ve=Math.abs(q-Se),ke=Math.abs(Se-se),De=ve>=K&&ke>=K;Ce>=y&&Ce<=k&&(de===1||De||_.length===0)&&(_.push(Ce),q=Se)}}return _}tickFormat({specifier:t}){return t!=null||(t=this.base===10?".0e":","),Qt(t)?YA(t):t}static getBaseLogMethod(t){switch(t){case 10:return Math.log10;case Math.E:return Math.log;case 2:return Math.log2;default:return n=>Math.log(n)/Math.log(t)}}static getBasePowerMethod(t){switch(t){case 10:return n=>n>=0?10**n:1/10**-n;case Math.E:return Math.exp;default:return n=>t**n}}},b([xr],g0.prototype,"base",2),Ws=g0}});function iD(e,t,n){if(e>t)return;let a;for(;t>=e;){let u=Math.floor((t+e)/2);n(u)?(a=u,e=u+1):t=u-1}return a}function EI(e,t,n){if(e>t)return;let a;for(;t>=e;){let u=Math.floor((t+e)/2);n(u)?(a=u,t=u-1):e=u+1}return a}function LP(e,t,n){if(e>t)return;let a;for(;t>=e;){let u=Math.floor((t+e)/2),y=n(u);y==null?t=u-1:(a=y,e=u+1)}return a}function p0(e,t,n){if(e>t)return;let a;for(;t>=e;){let u=Math.floor((t+e)/2),y=n(u);y==null?e=u+1:(a=y,t=u-1)}return a}var qh=A({"packages/ag-charts-community/src/util/binarySearch.ts"(){"use strict"}});function nD(e,t){return e.valueOf()-t.valueOf()}function OP(e){let t=NaN,n=[];for(let a of e){let u=a.valueOf();t!==u&&n.push(a),t=u}return n}function II(e){let t=e.slice().sort(nD);return Ax(e)==null?OP(t):t}function Ax(e){if(e.length===0)return 1;let t=Number(e[e.length-1])>Number(e[0])?1:-1,n=-1/0*t;for(let a of e){let u=a.valueOf();if(Math.sign(u-n)!==t)return;n=u}return t}var m0=A({"packages/ag-charts-community/src/util/date.ts"(){"use strict"}}),rv,Qy=A({"packages/ag-charts-community/src/scale/timeScale.ts"(){"use strict";gn(),tu(),fl(),ev(),Ma(),cs(),rv=class Oz extends Ha{constructor(){super([],[0,1]),this.type="time"}toDomain(t){return new Date(t)}convert(t,n){return t instanceof Date||(t=new Date(t)),super.convert(t,n)}invert(t){return new Date(super.invert(t))}ticks(){var F;if(!this.domain||this.domain.length<2)return[];this.refresh();let{interval:t,nice:n,tickCount:a,minTickCount:u,maxTickCount:y}=this,[k,R]=ss(this.getDomain().map(kr));return t!=null?(F=Oz.getTicksForInterval({start:k,stop:R,interval:t,availableRange:this.getPixelRange()}))!=null?F:Oz.getDefaultTicks({start:k,stop:R,tickCount:a,minTickCount:u,maxTickCount:y}):n&&a===2?this.niceDomain:n&&a===1?this.niceDomain.slice(0,1):Oz.getDefaultTicks({start:k,stop:R,tickCount:a,minTickCount:u,maxTickCount:y})}static getDefaultTicks({start:t,stop:n,tickCount:a,minTickCount:u,maxTickCount:y}){let k=Zy(t,n,a,u,y);return k?k.range(new Date(t),new Date(n)):[]}static getTicksForInterval({start:t,stop:n,interval:a,availableRange:u}){if(!a)return[];if(a instanceof fi){let V=a.range(new Date(t),new Date(n));return Dm(V.length,u)?void 0:V}let y=Math.abs(a);if(Dm((n-t)/y,u))return;let k=ov.findLast(V=>y%V.duration===0);if(k)return k.timeInterval.every(y/(k.duration/k.step)).range(new Date(t),new Date(n));let R=new Date(t),F=new Date(n),_=[];for(;R<=F;)_.push(R),R=new Date(R),R.setMilliseconds(R.getMilliseconds()+y);return _}tickFormat({ticks:t,domain:n,specifier:a,formatOffset:u}){return a==null?Vy(t,n,u):ta(a)}update(){!this.domain||this.domain.length<2||this.nice&&this.updateNiceDomain()}updateNiceDomain(){let[n,a]=this.domain;for(let u=0;u<4;u++){this.updateNiceDomainIteration(n,a);let[y,k]=this.niceDomain;if(kr(n)===kr(y)&&kr(a)===kr(k))break;n=y,a=k}}updateNiceDomainIteration(t,n){let a=Math.min(kr(t),kr(n)),u=Math.max(kr(t),kr(n)),y=t>n,{interval:k}=this,R;if(k instanceof fi)R=k;else{let F=typeof k=="number"?(u-a)/Math.max(k,1):this.tickCount;R=Zy(a,u,F,this.minTickCount,this.maxTickCount)}if(R){let F=R.range(new Date(a),new Date(u),!0),_=y?[...F].reverse():F,V=_[0],K=_.at(-1);this.niceDomain=[V,K]}}}}}),np,tc,Jy=A({"packages/ag-charts-community/src/scale/ordinalTimeScale.ts"(){"use strict";qh(),m0(),ev(),Ma(),Qd(),cs(),Bs(),Qy(),np=class CZ extends zo{constructor(){super(...arguments),this.type="ordinal-time",this.tickCount=Ha.defaultTickCount,this.minTickCount=0,this.maxTickCount=1/0,this.interval=void 0,this._domain=[],this.sortedTimestamps=[],this.visibleRange=[0,1],this.isReversed=!1,this._values=void 0}static is(t){return t instanceof CZ}setVisibleRange(t){this.visibleRange=t}set domain(t){if(t===this._values)return;this.invalid=!0;let n=Ax(t),a=n==null?II(t):t,u=n===-1,y=a.map(kr);u&&y.reverse(),this._values=t,this._domain=a,this.isReversed=u,this.sortedTimestamps=y,this.precomputedSteps=void 0;let k=t.length<1e4?y.length:Math.ceil(y.length/16);if(k<=1)return;this.refresh();let R=new Int32Array(k),F=y[0].valueOf(),V=y[y.length-1].valueOf()-F;for(let K=0;K<R.length;K+=1)R[K]=this.findInterval(F+K/k*V);this.precomputedSteps=R}get domain(){return this._domain}ticks(){var $;if(!this._domain.length)return[];this.refresh();let{domain:t,isReversed:n,interval:a}=this,[u,y]=[t[0].valueOf(),t.at(-1).valueOf()],k=Math.min(u,y),R=Math.max(u,y);if(a==null)return this.getDefaultTicks(this.maxTickCount,n);let[F,_]=this.range,V=Math.abs(_-F),K=($=rv.getTicksForInterval({start:k,stop:R,interval:a,availableRange:V}))!=null?$:[],q=-1;return K.filter(te=>{let se=this.findInterval(te.valueOf()),de=se===q;return q=se,!de})}getDefaultTicks(t,n){let{domain:a,visibleRange:u}=this,y=[],k=Math.ceil(a.length*(u[1]-u[0])/t),R=Math.floor(k/2);for(let F=0;F<a.length;F+=1){let _=a[F],V=n?a.length-1-F:F;(k<=0||(V+R)%k===0)&&y.push(_)}return n&&y.reverse(),y}convert(t){this.refresh();let n=Number(t);if(n<this.sortedTimestamps[0])return NaN;let a=this.findInterval(n);return this.isReversed&&(a=this.domain.length-a-1),this.ordinalRange(a)}findInterval(t){let{sortedTimestamps:n,precomputedSteps:a}=this,u,y;if(a==null)u=0,y=n.length-1;else{let k=n[0].valueOf(),R=n[n.length-1].valueOf(),F=Math.min((t-k)/(R-k)*a.length|0,a.length-1|0);u=a[F],y=F<a.length-2?a[F+1]:n.length-1}for(;u<=y;){let k=(u+y)/2|0;if(n[k]===t)return k;n[k]<t?u=k+1:y=k-1}return u}tickFormat({ticks:t,domain:n,specifier:a}){return a==null?Vy(t,n):ta(a)}invert(t){this.refresh();let{domain:n}=this,a=p0(0,n.length-1,u=>this.ordinalRange(u)>=t?n[u]:void 0);return a!=null?a:n[0]}invertNearest(t){return super.invertNearest(t)}},b([xr],np.prototype,"tickCount",2),b([xr],np.prototype,"minTickCount",2),b([xr],np.prototype,"maxTickCount",2),b([xr],np.prototype,"interval",2),tc=np}});function sv(e,t){return typeof e=="number"&&typeof t=="number"?e-t:typeof e=="string"&&typeof t=="string"?e.localeCompare(t):e==null&&t==null?0:e==null?-1:t==null?1:String(e).localeCompare(String(t))}var FP=A({"packages/ag-charts-community/src/util/compare.ts"(){"use strict"}});function eb(e,t,n=1e-8){return e===t||Math.abs(t-e)<n}var aD,Dx,iu,oD=A({"packages/ag-charts-community/src/scene/matrix.ts"(){"use strict";vn(),aD=[1,0,0,1,0,0],Dx=class MP{get e(){return[...this.elements]}constructor(t=[...aD]){this.elements=t}setElements(t){let n=this.elements;return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],this}get identity(){let t=this.elements;return eb(t[0],1)&&eb(t[1],0)&&eb(t[2],0)&&eb(t[3],1)&&eb(t[4],0)&&eb(t[5],0)}AxB(t,n,a){let u=t[0]*n[0]+t[2]*n[1],y=t[1]*n[0]+t[3]*n[1],k=t[0]*n[2]+t[2]*n[3],R=t[1]*n[2]+t[3]*n[3],F=t[0]*n[4]+t[2]*n[5]+t[4],_=t[1]*n[4]+t[3]*n[5]+t[5];a=a!=null?a:t,a[0]=u,a[1]=y,a[2]=k,a[3]=R,a[4]=F,a[5]=_}multiplySelf(t){return this.AxB(this.elements,t.elements),this}multiply(t){let n=new Array(6);return t instanceof MP?this.AxB(this.elements,t.elements,n):this.AxB(this.elements,[t.a,t.b,t.c,t.d,t.e,t.f],n),new MP(n)}preMultiplySelf(t){return this.AxB(t.elements,this.elements,this.elements),this}inverse(){let t=this.elements,n=t[0],a=t[1],u=t[2],y=t[3],k=t[4],R=t[5],F=1/(n*y-a*u);return n*=F,a*=F,u*=F,y*=F,new MP([y,-a,-u,n,u*R-y*k,a*k-n*R])}inverseTo(t){let n=this.elements,a=n[0],u=n[1],y=n[2],k=n[3],R=n[4],F=n[5],_=1/(a*k-u*y);return a*=_,u*=_,y*=_,k*=_,t.setElements([k,-u,-y,a,y*F-k*R,u*R-a*F]),this}invertSelf(){let t=this.elements,n=t[0],a=t[1],u=t[2],y=t[3],k=t[4],R=t[5],F=1/(n*y-a*u);return n*=F,a*=F,u*=F,y*=F,t[0]=y,t[1]=-a,t[2]=-u,t[3]=n,t[4]=u*R-y*k,t[5]=a*k-n*R,this}transformPoint(t,n){let a=this.elements;return{x:t*a[0]+n*a[2]+a[4],y:t*a[1]+n*a[3]+a[5]}}transformBBox(t,n){let a=this.elements,u=a[0],y=a[1],k=a[2],R=a[3],F=t.width*.5,_=t.height*.5,V=t.x+F,K=t.y+_,q=Math.abs(F*u)+Math.abs(_*k),$=Math.abs(F*y)+Math.abs(_*R);return n!=null||(n=new ki(0,0,0,0)),n.x=V*u+K*k+a[4]-q,n.y=V*y+K*R+a[5]-$,n.width=q+q,n.height=$+$,n}toContext(t){if(this.identity)return;let n=this.elements;t.transform(n[0],n[1],n[2],n[3],n[4],n[5])}static flyweight(t){return MP.instance.setElements(t.elements)}static updateTransformMatrix(t,n,a,u,y,k,R){var ke,De,Te,ze;let F=n,_=a,V,K;F===1&&_===1?(V=0,K=0):(V=(ke=R==null?void 0:R.scalingCenterX)!=null?ke:0,K=(De=R==null?void 0:R.scalingCenterY)!=null?De:0);let q=u,$=Math.cos(q),te=Math.sin(q),se,de;q===0?(se=0,de=0):(se=(Te=R==null?void 0:R.rotationCenterX)!=null?Te:0,de=(ze=R==null?void 0:R.rotationCenterY)!=null?ze:0);let pe=y,Ce=k,Se=V*(1-F)-se,ve=K*(1-_)-de;return t.setElements([$*F,te*F,-te*_,$*_,$*Se-te*ve+se+pe,te*Se+$*ve+de+Ce]),t}static fromContext(t){let n=t.getTransform();return new MP([n.a,n.b,n.c,n.d,n.e,n.f])}},Dx.instance=new Dx,iu=Dx}});function Oc(e){return gr(e.constructor)}function gr(e){return e[tb]===!0}function lv(e){var t,n;let a=e;if(gr(e))return e;let u=Symbol("matrix_combined_transform");class y extends a{constructor(){super(...arguments),this[n]=new iu,this._dirtyTransform=!0}markDirtyTransform(){this._dirtyTransform=!0,super.markDirty()}updateMatrix(R){}computeTransformMatrix(){this._dirtyTransform&&(this[u].setElements(aD),this.updateMatrix(this[u]),this._dirtyTransform=!1)}toParent(R){return this.computeTransformMatrix(),this[u].identity?R.clone():this[u].transformBBox(R)}toParentPoint(R,F){return this.computeTransformMatrix(),this[u].identity?{x:R,y:F}:this[u].transformPoint(R,F)}fromParent(R){return this.computeTransformMatrix(),this[u].identity?R.clone():this[u].inverse().transformBBox(R)}fromParentPoint(R,F){return this.computeTransformMatrix(),this[u].identity?{x:R,y:F}:this[u].inverse().transformPoint(R,F)}computeBBox(){let R=super.computeBBox();return R&&this.toParent(R)}computeBBoxWithoutTransforms(){return super.computeBBox()}pickNode(R,F,_=!1){return _||({x:R,y:F}=this.fromParentPoint(R,F)),super.pickNode(R,F)}render(R){this.computeTransformMatrix();let{ctx:F}=R,_=this[u],V=!1;_.identity||(F.save(),V=!0,_.toContext(F)),super.render(R),V&&F.restore()}toSVG(){this.computeTransformMatrix();let R=super.toSVG(),F=this[u];if(F.identity||R==null)return R;let _=document.createElementNS("http://www.w3.org/2000/svg","g");_.append(...R.elements);let[V,K,q,$,te,se]=F.e;return _.setAttribute("transform",`matrix(${V} ${K} ${q} ${$} ${te} ${se})`),{elements:[_],defs:R.defs}}}return t=tb,n=u,y[t]=!0,y}function nu(e){var t;let n=e,a=Symbol("matrix_rotation");class u extends lv(n){constructor(){super(...arguments),this[t]=new iu,this.rotationCenterX=null,this.rotationCenterY=null,this.rotation=0}updateMatrix(k){super.updateMatrix(k);let{rotation:R,rotationCenterX:F,rotationCenterY:_}=this;R!==0&&(iu.updateTransformMatrix(this[a],1,1,R,0,0,{rotationCenterX:F,rotationCenterY:_}),k.multiplySelf(this[a]))}}return t=a,b([Mi({type:"transform"})],u.prototype,"rotationCenterX",2),b([Mi({type:"transform"})],u.prototype,"rotationCenterY",2),b([Mi({type:"transform"})],u.prototype,"rotation",2),u}function md(e){var t;let n=e,a=Symbol("matrix_scale");class u extends lv(n){constructor(){super(...arguments),this[t]=new iu,this.scalingX=1,this.scalingY=1,this.scalingCenterX=null,this.scalingCenterY=null}updateMatrix(k){super.updateMatrix(k);let{scalingX:R,scalingY:F,scalingCenterX:_,scalingCenterY:V}=this;R===1&&F===1||(iu.updateTransformMatrix(this[a],R,F,0,0,0,{scalingCenterX:_,scalingCenterY:V}),k.multiplySelf(this[a]))}}return t=a,b([Mi({type:"transform"})],u.prototype,"scalingX",2),b([Mi({type:"transform"})],u.prototype,"scalingY",2),b([Mi({type:"transform"})],u.prototype,"scalingCenterX",2),b([Mi({type:"transform"})],u.prototype,"scalingCenterY",2),u}function Yh(e){var t;let n=e,a=Symbol("matrix_translation");class u extends lv(n){constructor(){super(...arguments),this[t]=new iu,this.translationX=0,this.translationY=0}updateMatrix(k){super.updateMatrix(k);let{translationX:R,translationY:F}=this;R===0&&F===0||(iu.updateTransformMatrix(this[a],1,1,0,R,F),k.multiplySelf(this[a]))}}return t=a,b([Mi({type:"transform"})],u.prototype,"translationX",2),b([Mi({type:"transform"})],u.prototype,"translationY",2),u}var tb,Wo,Sl=A({"packages/ag-charts-community/src/scene/transformable.ts"(){"use strict";oD(),xa(),tb=Symbol("isMatrixTransform"),Wo=class{static fromCanvas(e,t){let n=[];for(let a of e.traverseUp())Oc(a)&&n.unshift(a);for(let a of n)t=a.fromParent(t);return Oc(e)&&(t=e.fromParent(t)),t}static toCanvas(e,t){t==null?t=e.getBBox():Oc(e)&&(t=e.toParent(t));for(let n of e.traverseUp())Oc(n)&&(t=n.toParent(t));return t}static fromCanvasPoint(e,t,n){let a=[];for(let u of e.traverseUp())Oc(u)&&a.unshift(u);for(let u of a)({x:t,y:n}=u.fromParentPoint(t,n));return Oc(e)&&({x:t,y:n}=e.fromParentPoint(t,n)),{x:t,y:n}}static toCanvasPoint(e,t,n){Oc(e)&&({x:t,y:n}=e.toParentPoint(t,n));for(let a of e.traverseUp())Oc(a)&&({x:t,y:n}=a.toParentPoint(t,n));return{x:t,y:n}}}}});function Ex(e,t){if(typeof e=="number"&&typeof t=="number")return ib(e,t);let n=typeof e=="number"?[e]:e,a=typeof t=="number"?[t]:t,u=Math.min(n.length,a.length);for(let y=0;y<u;y+=1){let k=ib(n[y],a[y]);if(k!==0)return k}return ib(n.length,a.length)}var ib,Ix=A({"packages/ag-charts-community/src/scene/zIndex.ts"(){"use strict";ib=(e,t)=>Math.sign(e-t)}}),f0,Wi,TI,v0,Aa,Xh,xo=A({"packages/ag-charts-community/src/scene/group.ts"(){"use strict";FP(),gn(),vn(),xa(),Sl(),Ix(),f0=class Fz extends pl{constructor(t){super(t),this.opacity=1,this.layer=void 0,this.renderToOffscreenCanvas=!1,this.isContainerNode=!0,this.renderToOffscreenCanvas=(t==null?void 0:t.renderToOffscreenCanvas)===!0}static is(t){return t instanceof Fz}static computeChildrenBBox(t,n=!0){return ki.merge(pl.extractBBoxes(t,n))}static compareChildren(t,n){return Ex(t.zIndex,n.zIndex)||sv(t.serialNumber,n.serialNumber)}containsPoint(t,n){return!0}computeBBox(){return Fz.computeChildrenBBox(this.children())}isDirty(t){let{resized:n}=t,{dirty:a,dirtyZIndex:u}=this;if(a||u||n)return!0;for(let y of this.children())if(y.dirty)return!0;return!1}preRender(){var n,a,u;let t=super.preRender(0);return t.groups+=1,t.nonGroups-=1,this.renderToOffscreenCanvas&&t.nonGroups>0&&this.getVisibility()?(a=this.layer)!=null||(this.layer=(n=this._layerManager)==null?void 0:n.addLayer({name:this.name})):this.layer!=null&&((u=this._layerManager)==null||u.removeLayer(this.layer),this.layer=void 0),t}render(t){var k;let{layer:n}=this,a=ge({},t);if(n==null){this.renderInContext(a),super.render(a);return}let{ctx:u,stats:y}=t;if(this.isDirty(t)){let R=u.getTransform(),{globalAlpha:F}=u,_=n.context;a.ctx=_,n.clear(),_.save(),_.setTransform(R),_.globalAlpha=F,this.renderInContext(a),_.restore(),(k=_.verifyDepthZero)==null||k.call(_),y&&y.layersRendered++}else this.skipRender(a),y&&y.layersSkipped++;u.save(),u.resetTransform(),n.drawImage(u),u.restore(),super.render(a)}skipRender(t){let{stats:n}=t;for(let a of this.children())a.markClean(),n&&(n.nodesSkipped+=this.childNodeCounts.groups+this.childNodeCounts.nonGroups,n.opsSkipped+=this.childNodeCounts.complexity)}applyClip(t,n){let{x:a,y:u,width:y,height:k}=n;t.beginPath(),t.rect(a,u,y,k),t.clip()}renderInContext(t){let{ctx:n,stats:a}=t;this.dirtyZIndex&&this.sortChildren(Fz.compareChildren),n.save(),n.globalAlpha*=this.opacity,this.clipRect!=null&&(this.applyClip(n,this.clipRect),t.clipBBox=Wo.toCanvas(this,this.clipRect));for(let u of this.children()){if(!u.visible){u.markClean(),a&&(a.nodesSkipped+=u.childNodeCounts.nonGroups+u.childNodeCounts.groups,a.opsSkipped+=u.childNodeCounts.complexity);continue}n.save(),u.render(t),n.restore()}n.restore()}setClipRect(t){this.clipRect=t?Wo.fromCanvas(this,t):void 0}setClipRectCanvasSpace(t){this.clipRect=t}_setLayerManager(t){var n;this.layer&&((n=this._layerManager)==null||n.removeLayer(this.layer),this.layer=void 0),super._setLayerManager(t)}getVisibility(){for(let t of this.traverseUp(!0))if(!t.visible)return!1;return!0}toSVG(){if(!this.visible)return;let t=[],n=[];for(let a of this.children()){let u=a.toSVG();u!=null&&(n.push(...u.elements),u.defs!=null&&t.push(...u.defs))}return{elements:n,defs:t}}},f0.className="Group",b([Mi({convertor:e=>fn(0,e,1)})],f0.prototype,"opacity",2),Wi=f0,TI=class extends md(Wi){},v0=class extends nu(Wi){},Aa=class extends Yh(Wi){},Xh=class extends nu(Yh(Wi)){}}});function Uo(e){var t;return e?(t=uh.document)==null?void 0:t[e]:uh.document}function ia(e){var t;return e?(t=uh.window)==null?void 0:t[e]:uh.window}function Hn(e,t,n){let a=Uo().createElement(e);if(typeof t=="object"&&(n=t,t=void 0),t)for(let u of t.split(" "))a.classList.add(u);return n&&Object.assign(a.style,n),a}function ap(e,t){return Uo().createElementNS(e,t)}function y0(e,t){let{body:n}=Uo(),a=Hn("a",{display:"none"});a.href=e,a.download=t,n.appendChild(a),a.click(),setTimeout(()=>n.removeChild(a))}function rD(e){uh.document=e}function au(e){uh.window=e}function Em(e,t){e&&(t=Fs.normalize(t),t.width==null?e.style.removeProperty("width"):e.style.width=`${t.width}px`,t.height==null?e.style.removeProperty("height"):e.style.height=`${t.height}px`,t.x==null?e.style.removeProperty("left"):e.style.left=`${t.x}px`,t.y==null?e.style.removeProperty("top"):e.style.top=`${t.y}px`)}function RI(e){let t=parseFloat(e.style.width)||e.offsetWidth,n=parseFloat(e.style.height)||e.offsetHeight,a=parseFloat(e.style.left)||e.offsetLeft,u=parseFloat(e.style.top)||e.offsetTop;return{x:a,y:u,width:t,height:n}}function _P(e){var a;if(e.focus({preventScroll:!0}),((a=e.lastChild)==null?void 0:a.textContent)==null)return;let t=Uo().createRange();t.setStart(e.lastChild,e.lastChild.textContent.length),t.setEnd(e.lastChild,e.lastChild.textContent.length);let n=ia().getSelection();n==null||n.removeAllRanges(),n==null||n.addRange(t)}function PI(e){return`${e!=null?e:"ag-charts-element"}-${Tx++}`}function op(){let e=ia().navigator;if("scheduling"in e){let t=e.scheduling;if("isInputPending"in t)return t.isInputPending({includeContinuous:!0})}return!1}function nb(e){return`ag-charts-icon ag-charts-icon-${e}`}var uh,Tx,Rn=A({"packages/ag-charts-community/src/util/dom.ts"(){"use strict";so(),uh={},typeof window!="undefined"?uh.window=window:typeof global!="undefined"&&(uh.window=global.window),typeof document!="undefined"?uh.document=document:typeof global!="undefined"&&(uh.document=global.document),Tx=0}}),Rx,b0,LI,la,pr=A({"packages/ag-charts-community/src/util/debug.ts"(){"use strict";Mr(),Rn(),on(),Rx=2e3,b0=Date.now(),LI=()=>{let e=Date.now()-b0;if(e>Rx){let t=(Math.floor(e/100)/10).toFixed(1);hi.log(`**** ${t}s since last log message ****`)}b0=Date.now()},la={create(...e){return Object.assign((...n)=>{la.check(...e)&&(typeof n[0]=="function"&&(n=Ny(n[0]())),LI(),hi.log(...n))},{check:()=>la.check(...e)})},check(...e){return e.length===0&&e.push(!0),Ny(ia("agChartsDebug")).some(n=>e.includes(n))}}}}),er,Dr=A({"packages/ag-charts-community/src/scene/selection.ts"(){"use strict";pr(),xa(),er=class dI{constructor(t,n,a=!0){this.parentNode=t,this.autoCleanup=a,this.garbageBin=new Set,this._nodesMap=new Map,this._nodes=[],this.data=[],this.debug=la.create(!0,"scene","scene:selections"),this.nodeFactory=Object.prototype.isPrototypeOf.call(pl,n)?()=>new n:n}static select(t,n,a=!0){return new dI(t,n,a)}static selectAll(t,n){let a=[],u=y=>{n(y)&&a.push(y);for(let k of y.children())u(k)};return u(t),a}static selectByClass(t,...n){return dI.selectAll(t,a=>n.some(u=>a instanceof u))}static selectByTag(t,n){return dI.selectAll(t,a=>a.tag===n)}createNode(t,n,a){let u=this.nodeFactory(t);return u.datum=t,n==null||n(u),a==null?this._nodes.push(u):this._nodes.splice(a,0,u),this.parentNode.appendChild(u),u}update(t,n,a){if(this.garbageBin.size>0&&this.debug("Selection - update() called with pending garbage",t),a){let u=new Map(t.map((y,k)=>[a(y),[y,k]]));for(let[y,k]of this._nodesMap.entries())if(u.has(k)){let[R]=u.get(k);y.datum=R,this.garbageBin.delete(y),u.delete(k)}else this.garbageBin.add(y);for(let[y,[k,R]]of u.entries())this._nodesMap.set(this.createNode(k,n,R),y)}else{let u=Math.max(t.length,this.data.length);for(let y=0;y<u;y++)y>=t.length?this.garbageBin.add(this._nodes[y]):y>=this._nodes.length?this.createNode(t[y],n):(this._nodes[y].datum=t[y],this.garbageBin.delete(this._nodes[y]))}return this.data=t.slice(),this.autoCleanup&&this.cleanup(),this}cleanup(){return this.garbageBin.size===0?this:(this._nodes=this._nodes.filter(t=>this.garbageBin.has(t)?(this._nodesMap.delete(t),this.garbageBin.delete(t),t.destroy(),!1):!0),this)}clear(){return this.update([]),this}isGarbage(t){return this.garbageBin.has(t)}hasGarbage(){return this.garbageBin.size>0}each(t){for(let n of this._nodes.entries())t(n[1],n[1].datum,n[0]);return this}*[Symbol.iterator](){for(let t=0;t<this._nodes.length;t++){let n=this._nodes[t];yield{node:n,datum:n.datum,index:t}}}select(t){return dI.selectAll(this.parentNode,t)}selectByClass(t){return dI.selectByClass(this.parentNode,t)}selectByTag(t){return dI.selectByTag(this.parentNode,t)}nodes(){return this._nodes}at(t){return this._nodes.at(t)}get length(){return this._nodes.length}}}});function Fn(e){return e%=Na,e+=Na,e%=Na,e}function Px(e){return e%=Na,e+=Na,e!==Na&&(e%=Na),e}function ab(e){return e%=Na,e<-Math.PI?e+=Na:e>=Math.PI&&(e-=Na),e}function Fc(e,t,n){let a=Fn(e),u=Fn(t),y=Fn(n);return u<y?u<=a&&a<=y:u>y?u<=a||a<=y:!0}function ma(e){return e/180*Math.PI}function OI(e){return e/Math.PI*180}function NP(e,t,n){n&&([e,t]=[t,e]);let a=Fn(e);return(Fn(t)+Na-a)%Na}function ob(e,t){return e=Fn(e),t=Fn(t),t-e+(e>t?Na:0)}function FI(e,t,n,a){let u=e+n*Math.cos(a),y=t+n*Math.sin(a);return{x:u,y}}function sD(e,t){return ob(e,t)<Ka?t:Fn(e-t)+t}function _c(e,t,n=0){let u=Math.abs(t-e)>=Na?Na:Fn(t-e);return e=sD(e,n),t=e+u,{startAngle:e,endAngle:t}}function rb(e){let t=Fn(e);return t<=Im?t/Im:t<=Math.PI?(Math.PI-t)/Im:t<=1.5*Math.PI?(t-Math.PI)/Im:(Na-t)/Im}var Na,Im,Ka,Ko=A({"packages/ag-charts-community/src/util/angle.ts"(){"use strict";Na=Math.PI*2,Im=Math.PI/2,Ka=1e-6}});function rp(e,t,n,a){let u=e-n,y=t-a;return u*u+y*y}function wl(e,t,n,a,u,y,k){if(n===u&&a===y)return Math.min(k,rp(e,t,n,a));let R=u-n,F=y-a,_=Math.max(0,Math.min(1,((e-n)*R+(t-a)*F)/(R*R+F*F))),V=n+_*R,K=a+_*F;return Math.min(k,rp(e,t,V,K))}function zP(e,t,n,a,u,y,k,R,F){R&&([k,y]=[y,k]);let _=Math.atan2(t-a,e-n);if(!Fc(_,y,k)){let K=n+Math.cos(y)*u,q=a+Math.sin(y)*u,$=n+Math.cos(y)*u,te=a+Math.sin(y)*u;return Math.min(F,rp(e,t,K,q),rp(e,t,$,te))}let V=u-Math.sqrt(rp(e,t,n,a));return Math.min(F,V*V)}var lD=A({"packages/ag-charts-community/src/util/distance.ts"(){"use strict";Ko()}}),hh,sb,Lx,_I,ou,cv=A({"packages/ag-charts-community/src/scale/colorScale.ts"(){"use strict";qC(),on(),gn(),Bs(),hh=e=>{let t=Jo.fromString(e),[n,a,u]=Jo.RGBtoOKLCH(t.r,t.g,t.b);return{l:n,c:a,h:u,a:t.a}},sb=1e-6,Lx=e=>e.c<sb||e.l<sb||e.l>1-sb,_I=(e,t,n)=>{n=fn(0,n,1);let a;if(Lx(e))a=t.h;else if(Lx(t))a=e.h;else{let R=e.h,F=t.h,_=t.h-e.h;_>180?F-=360:_<-180&&(F+=360),a=R*(1-n)+F*n}let u=e.c*(1-n)+t.c*n,y=e.l*(1-n)+t.l*n,k=e.a*(1-n)+t.a*n;return Jo.fromOKLCH(y,u,a,k)},ou=class{constructor(){this.type="color",this.invalid=!0,this.domain=[0,1],this.range=["red","blue"],this.parsedRange=this.range.map(hh)}update(){let{domain:e,range:t}=this;e.length<2&&(hi.warnOnce("`colorDomain` should have at least 2 values."),e.length===0?e.push(0,1):e.length===1&&e.push(e[0]+1));for(let n=1;n<e.length;n++){let a=e[n-1],u=e[n];if(a>=u){hi.warnOnce("`colorDomain` values should be supplied in ascending order."),e.sort((y,k)=>y-k);break}}if(t.length<e.length)for(let n=t.length;n<e.length;n++)t.push(t.length>0?t[0]:"black");this.parsedRange=this.range.map(hh)}convert(e){this.refresh();let{domain:t,range:n,parsedRange:a}=this,u=t[0],y=t.at(-1),k=n[0],R=n[n.length-1];if(e<=u)return k;if(e>=y)return R;let F,_;if(t.length===2){let q=(e-u)/(y-u),$=1/(n.length-1);F=n.length<=2?0:Math.min(Math.floor(q*(n.length-1)),n.length-2),_=(q-F*$)/$}else{for(F=0;F<t.length-2&&!(e<t[F+1]);F++);let q=t[F],$=t[F+1];_=(e-q)/($-q)}let V=a[F],K=a[F+1];return _I(V,K,_).toRgbaString()}refresh(){this.invalid&&(this.invalid=!1,this.update(),this.invalid&&hi.warnOnce("Expected update to not invalidate scale"))}},b([xr],ou.prototype,"domain",2),b([xr],ou.prototype,"range",2)}}),fd,Tm=A({"packages/ag-charts-community/src/scene/gradient/gradient.ts"(){"use strict";cv(),fd=class{constructor(e,t=[],n){this.colorSpace=e,this.stops=t,this.bbox=n,this._cache=void 0}createGradient(e,t){var _;let n=(_=this.bbox)!=null?_:t;if(this._cache!=null&&this._cache.ctx===e&&this._cache.bbox.equals(n))return this._cache.gradient;let{stops:a,colorSpace:u}=this;if(a.length===0)return;if(a.length===1)return a[0].color;let y=this.createCanvasGradient(e,n);if(y==null)return;let k=u==="oklch",R=.05,F=a[0];y.addColorStop(F.offset,F.color);for(let V=1;V<a.length;V+=1){let K=a[V];if(k){let q=new ou;q.domain=[F.offset,K.offset],q.range=[F.color,K.color];for(let $=F.offset+R;$<K.offset;$+=R)y.addColorStop($,q.convert($))}y.addColorStop(K.offset,K.color),F=K}return"createPattern"in y&&(y=y.createPattern()),this._cache={ctx:e,bbox:n,gradient:y},y}}}}),sp,NI=A({"packages/ag-charts-community/src/scene/gradient/linearGradient.ts"(){"use strict";Ko(),Tm(),sp=class extends fd{constructor(e,t,n=0,a){super(e,t,a),this.angle=n}createCanvasGradient(e,t){let{angle:a}=this,u=Fn(ma(a+90)),y=Math.cos(u),k=Math.sin(u),R=t.width,F=t.height,_=t.x+R*.5,V=t.y+F*.5,K=Math.sqrt(F*F+R*R)/2,q=Math.atan2(F,R),$;u<Math.PI/2?$=u:u<Math.PI?$=Math.PI-u:u<1.5*Math.PI?$=u-Math.PI:$=2*Math.PI-u;let te=K*Math.abs(Math.cos($-q));return e.createLinearGradient(_+y*te,V+k*te,_-y*te,V-k*te)}}}}),dv,xl,ps,Er=A({"packages/ag-charts-community/src/scene/shape/shape.ts"(){"use strict";gn(),Tm(),NI(),xa(),dv=/^linear-gradient\((-?[\d.]+)deg,(.*?)\)$/i,xl=class zC extends pl{constructor(){super(...arguments),this.fillOpacity=1,this.strokeOpacity=1,this.fill=zC.defaultStyles.fill,this.stroke=zC.defaultStyles.stroke,this.strokeWidth=zC.defaultStyles.strokeWidth,this.lineDash=zC.defaultStyles.lineDash,this.lineDashOffset=zC.defaultStyles.lineDashOffset,this.lineCap=zC.defaultStyles.lineCap,this.lineJoin=zC.defaultStyles.lineJoin,this.miterLimit=void 0,this.opacity=zC.defaultStyles.opacity,this.fillShadow=zC.defaultStyles.fillShadow}restoreOwnStyles(){let{defaultStyles:t}=this.constructor;Object.assign(this,t)}getGradient(t){let n;if(t instanceof fd)return t;if(t!=null&&t.startsWith("linear-gradient")&&(n=dv.exec(t))){let a=parseFloat(n[1]),u=[],y=n[2],k=/(#[0-9a-f]+)|(rgba?\(.+?\))|([a-z]+)/gi,R;for(;R=k.exec(y);)u.push(R[0]);return new sp("rgb",u.map((F,_)=>({color:F,offset:_/(u.length-1)})),a)}else return}onFillChange(){this.fillGradient=this.getGradient(this.fill)}onStrokeChange(){this.strokeGradient=this.getGradient(this.stroke)}align(t,n){var y,k,R;let a=(R=(k=(y=this.layerManager)==null?void 0:y.canvas)==null?void 0:k.pixelRatio)!=null?R:1,u=Math.round(t*a)/a;return n==null?u:n===0?0:n<1?Math.ceil(n*a)/a:Math.round((n+t)*a)/a-u}fillStroke(t,n){this.renderFill(t,n),this.renderStroke(t,n)}renderFill(t,n){if(this.fill){let{globalAlpha:a}=t;this.applyFill(t),this.applyFillAlpha(t),this.applyShadow(t),this.executeFill(t,n),t.globalAlpha=a}t.shadowColor="rgba(0, 0, 0, 0)"}executeFill(t,n){n?t.fill(n):t.fill()}applyFill(t){var n,a,u;t.fillStyle=(u=(a=(n=this.fillGradient)==null?void 0:n.createGradient(t,this.getBBox()))!=null?a:typeof this.fill=="string"?this.fill:void 0)!=null?u:"black"}applyStroke(t){var n,a,u;t.strokeStyle=(u=(a=(n=this.strokeGradient)==null?void 0:n.createGradient(t,this.getBBox()))!=null?a:typeof this.stroke=="string"?this.stroke:void 0)!=null?u:"black"}applyFillAlpha(t){t.globalAlpha*=this.opacity*this.fillOpacity}applyShadow(t){var u,y;let n=(y=(u=this.layerManager)==null?void 0:u.canvas.pixelRatio)!=null?y:1,a=this.fillShadow;a!=null&&a.enabled&&(t.shadowColor=a.color,t.shadowOffsetX=a.xOffset*n,t.shadowOffsetY=a.yOffset*n,t.shadowBlur=a.blur*n)}renderStroke(t,n){if(this.stroke&&this.strokeWidth){let{globalAlpha:a}=t;this.applyStroke(t),t.globalAlpha*=this.opacity*this.strokeOpacity,t.lineWidth=this.strokeWidth,this.lineDash&&t.setLineDash(this.lineDash),this.lineDashOffset&&(t.lineDashOffset=this.lineDashOffset),this.lineCap&&(t.lineCap=this.lineCap),this.lineJoin&&(t.lineJoin=this.lineJoin),this.miterLimit!=null&&(t.miterLimit=this.miterLimit),this.executeStroke(t,n),t.globalAlpha=a}}executeStroke(t,n){n?t.stroke(n):t.stroke()}containsPoint(t,n){return this.isPointInPath(t,n)}applySvgFillAttributes(t){t.setAttribute("fill",typeof this.fill=="string"?this.fill:"none"),t.setAttribute("fill-opacity",String(this.fillOpacity))}applySvgStrokeAttributes(t){this.stroke!=null&&(t.setAttribute("stroke",typeof this.stroke=="string"?this.stroke:"none"),t.setAttribute("stroke-opacity",String(this.strokeOpacity)),t.setAttribute("stroke-width",String(this.strokeWidth))),this.lineDash!=null&&t.setAttribute("stroke-dasharray",this.lineDash.join(" "))}},xl.defaultStyles={fill:"black",stroke:void 0,strokeWidth:0,lineDash:void 0,lineDashOffset:0,lineCap:void 0,lineJoin:void 0,opacity:1,fillShadow:void 0},b([Mi()],xl.prototype,"fillOpacity",2),b([Mi()],xl.prototype,"strokeOpacity",2),b([Mi({changeCb:e=>e.onFillChange()})],xl.prototype,"fill",2),b([Mi({changeCb:e=>e.onStrokeChange()})],xl.prototype,"stroke",2),b([Mi()],xl.prototype,"strokeWidth",2),b([Mi()],xl.prototype,"lineDash",2),b([Mi()],xl.prototype,"lineDashOffset",2),b([Mi()],xl.prototype,"lineCap",2),b([Mi()],xl.prototype,"lineJoin",2),b([Mi()],xl.prototype,"miterLimit",2),b([Mi({convertor:e=>fn(0,e,1)})],xl.prototype,"opacity",2),b([Mi({checkDirtyOnAssignment:!0})],xl.prototype,"fillShadow",2),ps=xl}}),ms,vd=A({"packages/ag-charts-community/src/scene/shape/line.ts"(){"use strict";lD(),vn(),xa(),Er(),ms=class extends ps{constructor(e={}){super(e),this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.restoreOwnStyles()}set x(e){this.x1=e,this.x2=e}set y(e){this.y1=e,this.y2=e}get midPoint(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}}computeBBox(){return new ki(Math.min(this.x1,this.x2),Math.min(this.y1,this.y2),Math.abs(this.x2-this.x1),Math.abs(this.y2-this.y1))}isPointInPath(e,t){return this.x1===this.x2||this.y1===this.y2?this.getBBox().clone().grow(this.strokeWidth/2).containsPoint(e,t):!1}distanceSquared(e,t){let{x1:n,y1:a,x2:u,y2:y}=this;return wl(e,t,n,a,u,y,1/0)}render(e){var R;let{ctx:t,devicePixelRatio:n}=e,{x1:a,y1:u,x2:y,y2:k}=this;if(a===y){let{strokeWidth:F}=this,_=Math.round(a*n)/n+Math.trunc(F*n)%2/(n*2);a=_,y=_}else if(u===k){let{strokeWidth:F}=this,_=Math.round(u*n)/n+Math.trunc(F*n)%2/(n*2);u=_,k=_}t.beginPath(),t.moveTo(a,u),t.lineTo(y,k),this.fillStroke(t),(R=this.fillShadow)==null||R.markClean(),super.render(e)}toSVG(){if(!this.visible)return;let e=document.createElementNS("http://www.w3.org/2000/svg","line");return e.setAttribute("x1",String(this.x1)),e.setAttribute("y1",String(this.y1)),e.setAttribute("x2",String(this.x2)),e.setAttribute("y2",String(this.y2)),this.applySvgStrokeAttributes(e),{elements:[e]}}},ms.className="Line",ms.defaultStyles=He(ge({},ps.defaultStyles),{fill:void 0,strokeWidth:1}),b([Mi()],ms.prototype,"x1",2),b([Mi()],ms.prototype,"y1",2),b([Mi()],ms.prototype,"x2",2),b([Mi()],ms.prototype,"y2",2)}});function Ml(e=0,t=0){return new OffscreenCanvas(e,t).getContext("2d")}var zI=A({"packages/ag-charts-community/src/util/canvas.util.ts"(){"use strict"}}),C0,BI=A({"packages/ag-charts-community/src/util/lruCache.ts"(){"use strict";C0=class{constructor(e=5){this.maxCacheSize=e,this.store=new Map}get(e){if(!this.store.has(e))return;let t=this.store.get(e);return this.store.delete(e),this.store.set(e,t),t}has(e){return this.store.has(e)}set(e,t){if(this.store.set(e,t),this.store.size>this.maxCacheSize){let n=this.store.keys(),a=this.store.size-this.maxCacheSize;for(;a>0;){let u=n.next();u.done||this.store.delete(u.value),a--}}return t}clear(){this.store.clear()}}}}),Zh,Ox,ho,Rm,Nc=A({"packages/ag-charts-community/src/util/textMeasurer.ts"(){"use strict";zI(),BI(),Zh=class{static measureText(e,t){return this.getMeasurer(t).measureText(e)}static measureLines(e,t){return this.getMeasurer(t).measureLines(e)}static getMeasurer(e){var a,u,y;let t=typeof e.font=="string"?e.font:ho.toFontString(e.font),n=`${t}-${(a=e.textAlign)!=null?a:"start"}-${(u=e.textBaseline)!=null?u:"alphabetic"}`;return(y=this.instanceMap.get(n))!=null?y:this.createFontMeasurer(t,e,n)}static createFontMeasurer(e,t,n){var y,k;let a=Ml();a.font=e,a.textAlign=(y=t.textAlign)!=null?y:"start",a.textBaseline=(k=t.textBaseline)!=null?k:"alphabetic";let u=new Ox(a,t);return this.instanceMap.set(n,u),u}},Zh.instanceMap=new C0(10),Ox=class{constructor(e,t){var n;this.ctx=e,this.measureMap=new C0(100),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline),e.font=typeof t.font=="string"?t.font:ho.toFontString(t.font),this.textMeasurer=new Rm(a=>this.cachedCtxMeasureText(a),(n=t.textBaseline)!=null?n:"alphabetic")}textWidth(e,t){return this.textMeasurer.textWidth(e,t)}measureText(e){return this.textMeasurer.measureText(e)}measureLines(e){return this.textMeasurer.measureLines(e)}cachedCtxMeasureText(e){if(!this.measureMap.has(e)){let t=this.ctx.measureText(e);this.measureMap.set(e,{actualBoundingBoxAscent:t.actualBoundingBoxAscent,emHeightAscent:t.emHeightAscent,emHeightDescent:t.emHeightDescent,actualBoundingBoxDescent:t.actualBoundingBoxDescent,actualBoundingBoxLeft:t.actualBoundingBoxLeft,actualBoundingBoxRight:t.actualBoundingBoxRight,alphabeticBaseline:t.alphabeticBaseline,fontBoundingBoxAscent:t.fontBoundingBoxAscent,fontBoundingBoxDescent:t.fontBoundingBoxDescent,hangingBaseline:t.hangingBaseline,ideographicBaseline:t.ideographicBaseline,width:t.width})}return this.measureMap.get(e)}},ho=class{static toFontString({fontSize:e=10,fontStyle:t,fontWeight:n,fontFamily:a,lineHeight:u}){let y="";return t&&(y+=`${t} `),n&&(y+=`${n} `),y+=`${e}px`,u&&(y+=`/${u}px`),y+=` ${a}`,y.trim()}static getLineHeight(e){return Math.ceil(e*this.defaultLineHeight)}static getVerticalModifier(e){switch(e){case"hanging":case"top":return 0;case"middle":return .5;case"alphabetic":case"bottom":case"ideographic":default:return 1}}},ho.EllipsisChar="\u2026",ho.defaultLineHeight=1.15,ho.lineSplitter=/\r?\n/g,Rm=class{constructor(e,t="alphabetic"){this.measureTextFn=e,this.textBaseline=t,this.charMap=new Map}getMetrics(e){var n,a;let t=this.measureTextFn(e);return(n=t.fontBoundingBoxAscent)!=null||(t.fontBoundingBoxAscent=t.emHeightAscent),(a=t.fontBoundingBoxDescent)!=null||(t.fontBoundingBoxDescent=t.emHeightDescent),{width:t.width,height:t.actualBoundingBoxAscent+t.actualBoundingBoxDescent,lineHeight:t.fontBoundingBoxAscent+t.fontBoundingBoxDescent,offsetTop:t.actualBoundingBoxAscent,offsetLeft:t.actualBoundingBoxLeft}}getMultilineMetrics(e){var V,K;let t=0,n=0,a=0,u=0,y=0,k=ho.getVerticalModifier(this.textBaseline),R=[],F=0,_=e.length;for(let q of e){let $=this.measureTextFn(q);(V=$.fontBoundingBoxAscent)!=null||($.fontBoundingBoxAscent=$.emHeightAscent),(K=$.fontBoundingBoxDescent)!=null||($.fontBoundingBoxDescent=$.emHeightDescent),t<$.width&&(t=$.width),u<$.actualBoundingBoxLeft&&(u=$.actualBoundingBoxLeft),F===0?(n+=$.actualBoundingBoxAscent,a+=$.actualBoundingBoxAscent):y+=$.fontBoundingBoxAscent,F===_-1?n+=$.actualBoundingBoxDescent:y+=$.fontBoundingBoxDescent,R.push({text:q,width:$.width,height:$.actualBoundingBoxAscent+$.actualBoundingBoxDescent,lineHeight:$.fontBoundingBoxAscent+$.fontBoundingBoxDescent,offsetTop:$.actualBoundingBoxAscent,offsetLeft:$.actualBoundingBoxLeft}),F++}return n+=y,a+=y*k,{width:t,height:n,offsetTop:a,offsetLeft:u,lineMetrics:R}}textWidth(e,t){var n;if(t){let a=0;for(let u=0;u<e.length;u++)a+=this.textWidth(e.charAt(u));return a}return e.length>1?this.measureTextFn(e).width:(n=this.charMap.get(e))!=null?n:this.charWidth(e)}measureText(e){return this.getMetrics(e)}measureLines(e){let t=typeof e=="string"?e.split(ho.lineSplitter):e;return this.getMultilineMetrics(t)}charWidth(e){let{width:t}=this.measureTextFn(e);return this.charMap.set(e,t),t}}}}),Ir,Lo,Pm,ru,ic=A({"packages/ag-charts-community/src/scene/shape/text.ts"(){"use strict";Nc(),vn(),xa(),Sl(),Er(),Ir=class _z extends ps{constructor(){super(...arguments),this.x=0,this.y=0,this.lines=[],this.text=void 0,this.fontSize=10,this.fontFamily="sans-serif",this.textAlign=_z.defaultStyles.textAlign,this.textBaseline=_z.defaultStyles.textBaseline}onTextChange(){var t,n;this.lines=(n=(t=this.text)==null?void 0:t.split(`
`).map(a=>a.trim()))!=null?n:[]}static computeBBox(t,n,a,u){let{offsetTop:y,offsetLeft:k,width:R,height:F}=Zh.measureLines(t,u);return new ki(n-k,a-y,R,F)}computeBBox(){let{x:t,y:n,lines:a,textBaseline:u,textAlign:y}=this;return _z.computeBBox(a,t,n,{font:this,textBaseline:u,textAlign:y})}isPointInPath(t,n){let a=this.getBBox();return a?a.containsPoint(t,n):!1}render(t){let{ctx:n,stats:a}=t;if(!this.lines.length||!this.layerManager)return a&&(a.nodesSkipped+=1),super.render(t);let{fill:u,stroke:y,strokeWidth:k}=this,{pixelRatio:R}=this.layerManager.canvas;if(n.font=ho.toFontString(this),n.textAlign=this.textAlign,n.textBaseline=this.textBaseline,u){this.applyFill(n),n.globalAlpha*=this.opacity*this.fillOpacity;let{fillShadow:F}=this;F!=null&&F.enabled&&(n.shadowColor=F.color,n.shadowOffsetX=F.xOffset*R,n.shadowOffsetY=F.yOffset*R,n.shadowBlur=F.blur*R),this.renderLines((_,V,K)=>n.fillText(_,V,K))}if(y&&k){this.applyStroke(n),n.lineWidth=k,n.globalAlpha*=this.opacity*this.strokeOpacity;let{lineDash:F,lineDashOffset:_,lineCap:V,lineJoin:K}=this;F&&n.setLineDash(F),_&&(n.lineDashOffset=_),V&&(n.lineCap=V),K&&(n.lineJoin=K),this.renderLines((q,$,te)=>n.strokeText(q,$,te))}super.render(t)}renderLines(t){var R;let{lines:n,x:a,y:u}=this,y=(R=this.lineHeight)!=null?R:ho.getLineHeight(this.fontSize),k=(y-y*n.length)*ho.getVerticalModifier(this.textBaseline);for(let F of n)t(F,a,u+k),k+=y}setFont(t){this.fontFamily=t.fontFamily,this.fontSize=t.fontSize,this.fontStyle=t.fontStyle,this.fontWeight=t.fontWeight}setAlign(t){this.textAlign=t.textAlign,this.textBaseline=t.textBaseline}toSVG(){var n,a,u,y,k,R,F;if(!this.visible||!this.text)return;let t=document.createElementNS("http://www.w3.org/2000/svg","text");return this.applySvgFillAttributes(t),t.setAttribute("font-family",(a=(n=this.fontFamily)==null?void 0:n.split(",")[0])!=null?a:""),t.setAttribute("font-size",String(this.fontSize)),t.setAttribute("font-style",(u=this.fontStyle)!=null?u:""),t.setAttribute("font-weight",String((y=this.fontWeight)!=null?y:"")),t.setAttribute("text-anchor",{center:"middle",left:"start",right:"end",start:"start",end:"end"}[(k=this.textAlign)!=null?k:"start"]),t.setAttribute("alignment-baseline",{alphabetic:"alphabetic",top:"top",bottom:"bottom",hanging:"hanging",middle:"middle",ideographic:"ideographic"}[(R=this.textBaseline)!=null?R:"alphabetic"]),t.setAttribute("x",String(this.x)),t.setAttribute("y",String(this.y)),t.textContent=(F=this.text)!=null?F:"",{elements:[t]}}},Ir.className="Text",Ir.defaultStyles=He(ge({},ps.defaultStyles),{textAlign:"start",fontStyle:void 0,fontWeight:void 0,fontSize:10,fontFamily:"sans-serif",textBaseline:"alphabetic"}),b([Mi()],Ir.prototype,"x",2),b([Mi()],Ir.prototype,"y",2),b([Mi({changeCb:e=>e.onTextChange()})],Ir.prototype,"text",2),b([Mi()],Ir.prototype,"fontStyle",2),b([Mi()],Ir.prototype,"fontWeight",2),b([Mi()],Ir.prototype,"fontSize",2),b([Mi()],Ir.prototype,"fontFamily",2),b([Mi()],Ir.prototype,"textAlign",2),b([Mi()],Ir.prototype,"textBaseline",2),b([Mi()],Ir.prototype,"lineHeight",2),Lo=Ir,Pm=class extends nu(Lo){},ru=class extends nu(Yh(Lo)){}}});function cD(e,t,n,a,u,y){if(e.size===0)return!1;let k=e.x,R=e.y;t!=null&&(k-=(t.x-.5)*e.size,R-=(t.y-.5)*e.size);let F=k;k<n?F=n:k>n+u&&(F=n+u);let _=R;R<a?_=a:R>a+y&&(_=a+y);let V=k-F,K=R-_;return Math.sqrt(V*V+K*K)<=e.size*.5}function dD(e,t,n,a,u){let y=e.x+e.width>t&&e.x<t+a,k=e.y+e.height>n&&e.y<n+u;return y&&k}function BP(e,t,n,a,u){return t+a<e.x+e.width&&t>e.x&&n>e.y&&n+u<e.y+e.height}function Fx(e){return e!=null&&typeof e.point=="object"&&typeof e.label=="object"}function $h(e,t,n=5){var R,F,_;let a=new Map,u=[],y=new Map([...e.entries()].map(([V,K])=>[V,K.toSorted((q,$)=>$.point.size-q.point.size)])),k=[...y.values()].flat();for(let[V,K]of y.entries()){let q=[];if((R=K[0])!=null&&R.label){for(let $=0,te=K.length;$<te;$++){let se=K[$],{point:de,label:pe,marker:Ce}=se,{text:Se,width:ve,height:ke}=pe,De=de.size*.5,Te=0,ze=0;if(De>0&&se.placement!=null){let vt=uv[se.placement];Te=(ve*.5+De+n)*vt.x,ze=(ke*.5+De+n)*vt.y}let qe=de.x-ve*.5+Te-(((F=Ce==null?void 0:Ce.center.x)!=null?F:.5)-.5)*de.size,et=de.y-ke*.5+ze-(((_=Ce==null?void 0:Ce.center.y)!=null?_:.5)-.5)*de.size;if(!(!t||BP(t,qe,et,ve,ke))||k.some(vt=>{var wt;return cD(vt.point,(wt=vt.marker)==null?void 0:wt.center,qe,et,ve,ke)})||u.some(vt=>dD(vt,qe,et,ve,ke)))continue;let ht={index:$,text:Se,x:qe,y:et,width:ve,height:ke,datum:se};q.push(ht),u.push(ht)}a.set(V,q)}}return a}function _x(e,t=0){let n=[];for(let a=0;a<e.length;a++){let u=e[a],{point:{x:y,y:k},label:{text:R}}=u,{width:F,height:_}=u.label;if(F+=t,_+=t,n.some(V=>dD(V,y,k,F,_)))return!0;n.push({index:a,text:R,x:y,y:k,width:F,height:_,datum:u})}return!1}var uv,uD=A({"packages/ag-charts-community/src/scene/util/labelPlacement.ts"(){"use strict";uv={top:{x:0,y:-1},bottom:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0},"top-left":{x:-1,y:-1},"top-right":{x:1,y:-1},"bottom-left":{x:-1,y:1},"bottom-right":{x:1,y:1}}}});function Nx(e,t){let n=Math.max(e.length,t.length),a=new Set,u=new Set;for(let y=0;y<n;y++){let k=e[y],R=t[y];k!==R&&(u.has(R)?u.delete(R):R&&a.add(R),a.has(k)?a.delete(k):k&&u.add(k))}return{changed:a.size>0||u.size>0,added:a,removed:u}}var hv=A({"packages/ag-charts-community/src/util/diff.util.ts"(){"use strict"}});function fs(e,t=2){return typeof e=="number"?w0(e,t):String(e!=null?e:"")}function S0(e){return x0.format(e)}function w0(e,t){return t===2?GI.format(e):new Intl.NumberFormat("en-US",{maximumFractionDigits:t,useGrouping:!1}).format(e)}var GI,x0,gh=A({"packages/ag-charts-community/src/util/format.util.ts"(){"use strict";GI=new Intl.NumberFormat("en-US",{maximumFractionDigits:2,useGrouping:!1}),x0=new Intl.NumberFormat("en-US",{style:"percent"})}});function Qh(e,t,n){if(ja(t)){if(!ja(e)||e.length!==t.length||t.some((a,u)=>Qh(e[u],a)!=null))return t}else if(_a(t)){if(!_a(e))return t;let a={},u=new Set([...Object.keys(e),...Object.keys(t)]);for(let y of u)if(!(e[y]===t[y]||n!=null&&n.includes(y)))if(typeof e[y]==typeof t[y]){let k=Qh(e[y],t[y]);k!==null&&(a[y]=k)}else a[y]=t[y];return Object.keys(a).length?a:null}else if(e!==t)return t;return null}function hD(e,t){for(let n of Object.keys(e))if(e[n]!==(t==null?void 0:t[n]))return!1;return!0}function Us(e,t){return ja(e)?e.map(n=>Us(n,t)):_a(e)?GP(e,t):e instanceof Map?new Map(Us(Array.from(e))):M0(e)}function GP(e,t){let n={};for(let a of Object.keys(e))n[a]=t!=null&&t.has(a)?M0(e[a]):Us(e[a],t);return n}function M0(e){return ja(e)?e.slice(0):_a(e)?ge({},e):je(e)?new Date(e):mm(e)?new RegExp(e.source,e.flags):e}function Jh(e,t,n,a,u){if(ja(e)){t(e,a,u);let y=0;for(let k of e)Jh(k,t,n,a==null?void 0:a[y],u),y++}else if(_a(e)){t(e,a,u);for(let y of Object.keys(e)){if(n!=null&&n.has(y))continue;let k=e[y];Jh(k,t,n,a==null?void 0:a[y],u)}}}function k0(e,t,n={}){let{path:a,matcherPath:u=a==null?void 0:a.replace(/(\[[0-9+]+])/i,"[]"),skip:y=[]}=n;if(e==null)throw new Error(`AG Charts - target is uninitialised: ${a!=null?a:"<root>"}`);if(t==null)return e;if(Nn(e))return e.set(t);let k=e,R=zx(e);for(let F of Object.keys(t)){if(ZC.has(F))continue;let _=`${u?u+".":""}${F}`;if(y.includes(_))continue;let V=t[F],K=`${a?a+".":""}${F}`,q=k.constructor,$=k[F];try{let te=zx($),se=zx(V);if(R===A0&&!(F in e)){if(V===void 0)continue;hi.warn(`unable to set [${K}] in ${q==null?void 0:q.name} - property is unknown`);continue}if(te!=null&&se!=null&&se!==te&&(te!==A0||se!=="object")){hi.warn(`unable to set [${K}] in ${q==null?void 0:q.name} - can't apply type of [${se}], allowed types are: [${te}]`);continue}Nn($)?k[F].set(V):se==="object"?($==null&&(k[F]={}),k0($!=null?$:k[F],V,He(ge({},n),{path:K,matcherPath:_}))):k[F]=V}catch(te){hi.warn(`unable to set [${K}] in [${q==null?void 0:q.name}]; nested error is: ${te.message}`)}}return e}function zx(e){return e==null?null:XC(e)||je(e)?"primitive":ja(e)?"array":ur(e)?_a(e)?"object":A0:Si(e)?"function":"primitive"}var A0,nc=A({"packages/ag-charts-community/src/util/json.ts"(){"use strict";on(),ra(),zn(),bn(),A0="class-instance"}});function tr(e,t){let n=ja(e)?e:e.split(".");if(n.length===1){let[a]=n;return vo((u,y,k)=>u[a]=k,u=>u[a],t)}return vo((a,u,y)=>ls(a,n,y),a=>Ns(a,n),t)}function VP(e){return vo((t,n,a)=>t[e]=a)}function Kr(e,t){return vo((n,a,u)=>n[e][t!=null?t:a]=u)}function vs(e){let{newValue:t,oldValue:n,changeValue:a}=e;return vo((u,y,k,R)=>(k!==R&&(R!==void 0&&(n==null||n.call(u,R)),k!==void 0&&(t==null||t.call(u,k)),a==null||a.call(u,k,R)),k))}function gv(e){return pm(e)}var ac=A({"packages/ag-charts-community/src/util/proxy.ts"(){"use strict";ml(),ra(),bn()}});function VI(){return pm(()=>{})}function Bx(e,t){let n=Xu(t);if(n.length===0)return;let a=FA(e);for(let u of n)u in a&&(t[u]=a[u])}var Gx,an,Vx,lb,lp,jx,pv=A({"packages/ag-charts-community/src/util/stateMachine.ts"(){"use strict";pr(),ml(),Gx="color: green",an="color: grey",Vx=class{transitionRoot(e,t){this.parent?this.parent.transitionRoot(e,t):this.transition(e,t)}},lb=class Wg extends Vx{constructor(t,n,a){super(),this.defaultState=t,this.states=n,this.enterEach=a,this.debug=la.create(!0,"animation"),this.state=t,this.debug(`%c${this.constructor.name} | init -> ${t}`,Gx)}transition(t,n){var V,K,q,$;if(!this.transitionChild(t,n)||this.state===Wg.child||this.state===Wg.parent)return;let u=this.state,y=this.states[this.state],k=y[t],R=`%c${this.constructor.name} | ${this.state} -> ${t} ->`;if(Array.isArray(k))k=k.find(te=>{if(!te.guard)return!0;let se=te.guard(n);return se||this.debug(`${R} (guarded)`,te.target,an),se});else if(typeof k=="object"&&!(k instanceof Wg)&&k.guard&&!k.guard(n)){this.debug(`${R} (guarded)`,k.target,an);return}if(!k){this.debug(`${R} ${this.state}`,an);return}let F=this.getDestinationState(k),_=F===this.state?void 0:y.onExit;this.debug(`${R} ${F}`,Gx),this.state=F,typeof k=="function"?k(n):typeof k=="object"&&!(k instanceof Wg)&&((V=k.action)==null||V.call(k,n)),_==null||_(),(K=this.enterEach)==null||K.call(this,u,F),F!==u&&F!==Wg.child&&F!==Wg.parent&&(($=(q=this.states[F]).onEnter)==null||$.call(q,u,n))}transitionAsync(t,n){setTimeout(()=>{this.transition(t,n)},0)}is(t){return this.state===Wg.child&&this.childState?this.childState.is(t):this.state===t}resetHierarchy(){this.debug(`%c${this.constructor.name} | ${this.state} -> [resetHierarchy] -> ${this.defaultState}`,"color: green"),this.state=this.defaultState}transitionChild(t,n){var a,u;return this.state!==Wg.child||!this.childState||(Bx(this,this.childState),this.childState.transition(t,n),!this.childState.is(Wg.parent))?!0:(this.debug(`%c${this.constructor.name} | ${this.state} -> ${t} -> ${this.defaultState}`,Gx),this.state=this.defaultState,(u=(a=this.states[this.state]).onEnter)==null||u.call(a),this.childState.resetHierarchy(),!1)}getDestinationState(t){let n=this.state;return typeof t=="string"?n=t:t instanceof Wg?(this.childState=t,this.childState.parent=this,n=Wg.child):typeof t=="object"&&(t.target instanceof Wg?(this.childState=t.target,this.childState.parent=this,n=Wg.child):t.target!=null&&(n=t.target)),n}},lb.child="__child",lb.parent="__parent",lp=lb,jx=class extends Vx{constructor(...e){super(),this.stateMachines=e;for(let t of e)t.parent=this}transition(e,t){for(let n of this.stateMachines)Bx(this,n),n.transition(e,t)}transitionAsync(e,t){for(let n of this.stateMachines)Bx(this,n),n.transitionAsync(e,t)}}}});function Hx(){let e=new Map;return t=>{let n=e.get(t);return n?(e.set(t,n+1),`${t}_${n}`):(e.set(t,1),t)}}var gD=A({"packages/ag-charts-community/src/util/tempUtils.ts"(){"use strict"}}),mv,pD=A({"packages/ag-charts-community/src/util/textWrapper.ts"(){"use strict";Nc(),mv=class{static wrapText(e,t){return this.wrapLines(e,t).join(`
`)}static wrapLines(e,t){let n=this.textWrap(e,t);return t.overflow==="hide"&&n.some(a=>a.endsWith(ho.EllipsisChar))?[]:n}static appendEllipsis(e){return e.replace(/[.,]{1,5}$/,"")+ho.EllipsisChar}static truncateLine(e,t,n,a){let u=t.textWidth(ho.EllipsisChar),y=0,k=0;for(;k<e.length;k++){let R=t.textWidth(e.charAt(k));if(y+R>n)break;y+=R}if(e.length===k&&(!a||y+u<=n))return a?e+ho.EllipsisChar:e;for(e=e.slice(0,k).trimEnd();e.length&&t.textWidth(e)+u>n;)e=e.slice(0,-1).trimEnd();return e+ho.EllipsisChar}static textWrap(e,t){let n=e.split(ho.lineSplitter),a=Zh.getMeasurer(t);if(t.textWrap==="never")return n.map(R=>this.truncateLine(R.trimEnd(),a,t.maxWidth));let u=[],y=t.textWrap==="hyphenate",k=t.textWrap==null||t.textWrap==="on-space";for(let R of n){let F=R.trimEnd();if(F===""){u.push(F);continue}for(let _=0,V=0,K=0;_<F.length;_++){let q=F.charAt(_);if(V+=a.textWidth(q),q===" "&&(K=_),V>t.maxWidth){if(_===0)break;let $=a.textWidth(F.slice(0,_+1));if($<=t.maxWidth){V=$;continue}if(K){let de=this.getWordAt(F,K+1),pe=a.textWidth(de);if(pe<=t.maxWidth){u.push(F.slice(0,K).trimEnd()),F=F.slice(K).trimStart(),_=-1,V=0,K=0;continue}else k&&pe>t.maxWidth&&u.push(F.slice(0,K).trimEnd(),this.truncateLine(F.slice(K).trimStart(),a,t.maxWidth,!0))}else k&&u.push(this.truncateLine(F,a,t.maxWidth,!0));if(k){F="";break}let te=y?"-":"",se=F.slice(0,_).trim();for(;se.length&&a.textWidth(se+te)>t.maxWidth;)se=se.slice(0,-1).trimEnd();if(u.push(se+te),!se.length){F="";break}F=F.slice(se.length).trimStart(),_=-1,V=0,K=0}}F&&u.push(F)}return this.avoidOrphans(u,a,t),this.clipLines(u,a,t)}static getWordAt(e,t){let n=e.indexOf(" ",t);return n===-1?e.slice(t):e.slice(t,n)}static clipLines(e,t,n){if(!n.maxHeight)return e;let{height:a,lineMetrics:u}=t.measureLines(e);if(a<=n.maxHeight)return e;for(let y=0,k=0;y<u.length;y++){let{lineHeight:R}=u[y];if(k+=R,k>n.maxHeight){if(n.overflow==="hide")return[];let F=e.slice(0,y||1),_=F.pop();return F.concat(this.truncateLine(_,t,n.maxWidth,!0))}}return e}static avoidOrphans(e,t,n){if(n.avoidOrphans===!1||e.length<2)return;let{length:a}=e,u=e[a-1],y=e[a-2];if(y.length<u.length)return;let k=y.lastIndexOf(" ");if(k===-1||k===y.indexOf(" ")||u.includes(" "))return;let R=y.slice(k+1);t.textWidth(u+R)<=n.maxWidth&&(e[a-2]=y.slice(0,k),e[a-1]=R+" "+u)}}}}),qa,cp=A({"packages/ag-charts-community/src/chart/caption.ts"(){"use strict";xa(),ic(),Sl(),Zl(),zn(),ac(),Nc(),pD(),Ai(),qa=class extends dn{constructor(){super(...arguments),this.id=Os(this),this.node=new Pm({zIndex:1}).setProperties({textAlign:"center",pointerEvents:1}),this.enabled=!1,this.textAlign="center",this.fontSize=10,this.fontFamily="sans-serif",this.wrapping="always",this.padding=0,this.layoutStyle="block",this.truncated=!1}registerInteraction(e,t){return e.layoutManager.addListener("layout:complete",()=>this.updateA11yText(e,t))}computeTextWrap(e,t){var F,_;let{text:n,padding:a,wrapping:u}=this,y=Math.min((F=this.maxWidth)!=null?F:1/0,e)-a*2,k=(_=this.maxHeight)!=null?_:t-a*2;if(!isFinite(y)&&!isFinite(k)){this.node.text=n;return}let R=mv.wrapText(n!=null?n:"",{maxWidth:y,maxHeight:k,font:this,textWrap:u});this.node.text=R,this.truncated=R.includes(ho.EllipsisChar)}updateA11yText(e,t){var a,u;let{proxyInteractionService:n}=e;if(this.enabled&&this.text){let y=Wo.toCanvas(this.node);if(y){let{id:k}=this;(a=this.proxyText)!=null||(this.proxyText=n.createProxyElement({type:"text",domManagerId:k,where:t})),this.proxyText.textContent=this.text,this.proxyText.setBounds(y),this.proxyText.addListener("mousemove",R=>this.handleMouseMove(e,R)),this.proxyText.addListener("mouseleave",R=>this.handleMouseLeave(e,R))}}else(u=this.proxyText)==null||u.destroy(),this.proxyText=void 0}handleMouseMove(e,t){if(t!=null&&this.enabled&&this.node.visible&&this.truncated){let{x:n,y:a}=Wo.toCanvas(this.node),u=t.sourceEvent.offsetX+n,y=t.sourceEvent.offsetY+a,k={type:"hover",canvasX:u,canvasY:y};e.tooltipManager.updateTooltip(this.id,{canvasX:u,canvasY:y,lastPointerEvent:k,showArrow:!1},{title:this.text})}}handleMouseLeave(e,t){e.tooltipManager.removeTooltip(this.id)}},qa.SMALL_PADDING=10,qa.LARGE_PADDING=20,b([Ge(Oi),Kr("node","visible")],qa.prototype,"enabled",2),b([Ge(ei,{optional:!0}),Kr("node")],qa.prototype,"text",2),b([Ge(Ky,{optional:!0}),Kr("node")],qa.prototype,"textAlign",2),b([Ge(Tc,{optional:!0}),Kr("node")],qa.prototype,"fontStyle",2),b([Ge(Rc,{optional:!0}),Kr("node")],qa.prototype,"fontWeight",2),b([Ge(ni),Kr("node")],qa.prototype,"fontSize",2),b([Ge(ei),Kr("node")],qa.prototype,"fontFamily",2),b([Ge(sa,{optional:!0}),Kr("node","fill")],qa.prototype,"color",2),b([Ge(ni,{optional:!0})],qa.prototype,"spacing",2),b([Ge(ni,{optional:!0})],qa.prototype,"maxWidth",2),b([Ge(ni,{optional:!0})],qa.prototype,"maxHeight",2),b([Ge(iv)],qa.prototype,"wrapping",2),b([Ge(ni)],qa.prototype,"padding",2),b([Ge(ei)],qa.prototype,"layoutStyle",2)}}),oc,mD=A({"packages/ag-charts-community/src/scene/shape/range.ts"(){"use strict";vn(),xa(),Er(),oc=class extends ps{constructor(e={}){super(e),this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.startLine=!1,this.endLine=!1,this.isRange=!1,this.restoreOwnStyles()}computeBBox(){return new ki(this.x1,this.y1,this.x2-this.x1,this.y2-this.y1)}isPointInPath(e,t){return!1}render(e){var se;let{ctx:t}=e,{x1:n,y1:a,x2:u,y2:y}=this;n=this.align(n),a=this.align(a),u=this.align(u),y=this.align(y);let{fill:k,opacity:R,isRange:F}=this;if(!!(F&&k)){let{fillOpacity:de}=this;this.applyFill(t),t.globalAlpha=R*de,t.beginPath(),t.moveTo(n,a),t.lineTo(u,a),t.lineTo(u,y),t.lineTo(n,y),t.closePath(),t.fill()}let{stroke:V,strokeWidth:K,startLine:q,endLine:$}=this;if(!!((q||$)&&V&&K)){let{strokeOpacity:de,lineDash:pe,lineDashOffset:Ce,lineCap:Se,lineJoin:ve}=this;this.applyStroke(t),t.globalAlpha=R*de,t.lineWidth=K,pe&&t.setLineDash(pe),Ce&&(t.lineDashOffset=Ce),Se&&(t.lineCap=Se),ve&&(t.lineJoin=ve),t.beginPath(),q&&(t.moveTo(n,a),t.lineTo(u,a)),$&&(t.moveTo(u,y),t.lineTo(n,y)),t.stroke()}(se=this.fillShadow)==null||se.markClean(),super.render(e)}},oc.className="Range",oc.defaultStyles=He(ge({},ps.defaultStyles),{strokeWidth:1}),b([Mi()],oc.prototype,"x1",2),b([Mi()],oc.prototype,"y1",2),b([Mi()],oc.prototype,"x2",2),b([Mi()],oc.prototype,"y2",2),b([Mi()],oc.prototype,"startLine",2),b([Mi()],oc.prototype,"endLine",2),b([Mi()],oc.prototype,"isRange",2)}});function Lm(e){let{parallelFlipRotation:t=0,regularFlipRotation:n=0}=e,a=e.rotation?Fn(ma(e.rotation)):0,u=!a&&t>=0&&t<=Math.PI?-1:1,y=!a&&n>=0&&n<=Math.PI?-1:1,k=0;return e.parallel?k=u*Math.PI/2:y===-1&&(k=Math.PI),{configuredRotation:a,defaultRotation:k,parallelFlipFlag:u,regularFlipFlag:y}}function jI(e,t){return isNaN(e)?t?0:10:e}function HI(e,t,n,a){return e&&!t?n*a===-1?"hanging":"bottom":"middle"}function fD(e,t,n,a,u){let y=t>0&&t<=Math.PI,k=n>0&&n<=Math.PI,R=y||k?-1:1;if(e)if(t||n){if(a*R===-1)return"end"}else return"center";else if(a*u===-1)return"end";return"start"}function Wx(e,t,n,a){let u=[];for(let{tickLabel:y,translationY:k}of e){if(!y)continue;let{width:R,height:F}=a.measureLines(y),_=new ki(t,k,R,F),V=new ki(t,k,0,0);n.transformBBox(V,_);let{x:K,y:q}=_;u.push({point:{x:K,y:q},label:{text:y,width:R,height:F}})}return u}var mr,yd=A({"packages/ag-charts-community/src/chart/label.ts"(){"use strict";vn(),Ko(),zn(),Nc(),Ai(),mr=class extends dn{constructor(){super(...arguments),this.enabled=!0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}getFont(){return ho.toFontString(this)}},b([Ge(Oi)],mr.prototype,"enabled",2),b([Ge(sa,{optional:!0})],mr.prototype,"color",2),b([Ge(Tc,{optional:!0})],mr.prototype,"fontStyle",2),b([Ge(Rc,{optional:!0})],mr.prototype,"fontWeight",2),b([Ge(ni)],mr.prototype,"fontSize",2),b([Ge(ei)],mr.prototype,"fontFamily",2),b([Ge(vl,{optional:!0})],mr.prototype,"formatter",2)}});function jP(e){return e!=null&&Object.hasOwn(e,"toString")&&Qt(e.toString())}function vD(e){return e!=null&&Object.hasOwn(e,"valueOf")&&pa(e.valueOf())}function cb(e){return pa(e)||dd(e)||vD(e)}function db(e,t){return e!=null&&(!t||cb(e))}function D0(e){return jP(e)&&Object.hasOwn(e,"id")?e.id:e}var fv=A({"packages/ag-charts-community/src/util/value.ts"(){"use strict";bn()}}),E0,Ux,vv=A({"packages/ag-charts-community/src/chart/crossline/crossLine.ts"(){"use strict";cs(),Jy(),on(),Ai(),fv(),E0=e=>e==="value"?ka((t,n)=>n.target.type==="line",t=>t.target.type==="range"?"crossLine type 'range' to have a 'range' property instead of 'value'":"crossLine property 'type' to be 'line'"):ka((t,n)=>n.target.type==="range",t=>t.target.type==="line"?"crossLine type 'line' to have a 'value' property instead of 'range'":"crossLine property 'type' to be 'range'"),Ux=(e,t,n,a,u)=>{var $;let y=e==="line"&&t!==void 0,k=e==="range"&&n!==void 0;if(!y&&!k)return!0;let[R,F]=n!=null?n:[t,void 0],_=Ha.is(a)||tc.is(a),V=db(R,_)&&!isNaN(a.convert(R)),K=db(F,_)&&!isNaN(a.convert(F));if(y&&V||k&&V&&K)return($=u==null?void 0:u())!=null?$:!0;let q=["Expecting crossLine"];return k?(V||q.push(`range start ${Bt(R)}`),K||q.push(`${V?"":"and "}range end ${Bt(F)}`)):q.push(`value ${Bt(R)}`),q.push("to match the axis scale domain."),hi.warnOnce(q.join(" ")),!1}}});function Kx({yDirection:e,padding:t=0,position:n="top",bbox:a}){let u=e?WI:qx,{xTranslationDirection:y,yTranslationDirection:k}=u[n],R=y*(t+a.width/2),F=k*(t+a.height/2);return{xTranslation:R,yTranslation:F}}function yD({yDirection:e,bbox:t,padding:n=0,position:a="top"}){let u={};return a.startsWith("inside")||(a==="top"&&!e?u.top=n+t.height:a==="bottom"&&!e?u.bottom=n+t.height:a==="left"&&e?u.left=n+t.width:a==="right"&&e&&(u.right=n+t.width)),u}var WI,qx,ub,Yx,Xx,Zx,$x,I0,T0,R0,P0,hb,bD=A({"packages/ag-charts-community/src/chart/crossline/crossLineLabelPosition.ts"(){"use strict";Tn(),WI={top:{xTranslationDirection:0,yTranslationDirection:-1},bottom:{xTranslationDirection:0,yTranslationDirection:1},left:{xTranslationDirection:-1,yTranslationDirection:0},right:{xTranslationDirection:1,yTranslationDirection:0},"top-left":{xTranslationDirection:1,yTranslationDirection:-1},"top-right":{xTranslationDirection:-1,yTranslationDirection:-1},"bottom-left":{xTranslationDirection:1,yTranslationDirection:1},"bottom-right":{xTranslationDirection:-1,yTranslationDirection:1},inside:{xTranslationDirection:0,yTranslationDirection:0},"inside-left":{xTranslationDirection:1,yTranslationDirection:0},"inside-right":{xTranslationDirection:-1,yTranslationDirection:0},"inside-top":{xTranslationDirection:0,yTranslationDirection:1},"inside-bottom":{xTranslationDirection:0,yTranslationDirection:-1},"inside-top-left":{xTranslationDirection:1,yTranslationDirection:1},"inside-bottom-left":{xTranslationDirection:1,yTranslationDirection:-1},"inside-top-right":{xTranslationDirection:-1,yTranslationDirection:1},"inside-bottom-right":{xTranslationDirection:-1,yTranslationDirection:-1}},qx={top:{xTranslationDirection:1,yTranslationDirection:0},bottom:{xTranslationDirection:-1,yTranslationDirection:0},left:{xTranslationDirection:0,yTranslationDirection:-1},right:{xTranslationDirection:0,yTranslationDirection:1},"top-left":{xTranslationDirection:-1,yTranslationDirection:-1},"top-right":{xTranslationDirection:-1,yTranslationDirection:1},"bottom-left":{xTranslationDirection:1,yTranslationDirection:-1},"bottom-right":{xTranslationDirection:1,yTranslationDirection:1},inside:{xTranslationDirection:0,yTranslationDirection:0},"inside-left":{xTranslationDirection:0,yTranslationDirection:1},"inside-right":{xTranslationDirection:0,yTranslationDirection:-1},"inside-top":{xTranslationDirection:-1,yTranslationDirection:0},"inside-bottom":{xTranslationDirection:1,yTranslationDirection:0},"inside-top-left":{xTranslationDirection:-1,yTranslationDirection:1},"inside-bottom-left":{xTranslationDirection:1,yTranslationDirection:1},"inside-top-right":{xTranslationDirection:-1,yTranslationDirection:-1},"inside-bottom-right":{xTranslationDirection:1,yTranslationDirection:-1}},ub=({direction:e,xEnd:t,yStart:n,yEnd:a})=>e==="y"?{x:t/2,y:n}:{x:t,y:isNaN(a)?n:(n+a)/2},Yx=({direction:e,xStart:t,xEnd:n,yStart:a,yEnd:u})=>e==="y"?{x:t,y:isNaN(u)?a:(a+u)/2}:{x:n/2,y:a},Xx=({direction:e,xEnd:t,yStart:n,yEnd:a})=>e==="y"?{x:t,y:isNaN(a)?n:(n+a)/2}:{x:t/2,y:isNaN(a)?n:a},Zx=({direction:e,xStart:t,xEnd:n,yStart:a,yEnd:u})=>e==="y"?{x:n/2,y:isNaN(u)?a:u}:{x:t,y:isNaN(u)?a:(a+u)/2},$x=({xEnd:e,yStart:t,yEnd:n})=>({x:e/2,y:isNaN(n)?t:(t+n)/2}),I0=({direction:e,xStart:t,xEnd:n,yStart:a})=>e==="y"?{x:t/2,y:a}:{x:n,y:a},T0=({direction:e,xStart:t,yStart:n,yEnd:a})=>e==="y"?{x:t,y:isNaN(a)?n:a}:{x:t,y:n},R0=({direction:e,xEnd:t,yStart:n,yEnd:a})=>e==="y"?{x:t,y:n}:{x:t,y:isNaN(a)?n:a},P0=({direction:e,xStart:t,xEnd:n,yStart:a,yEnd:u})=>e==="y"?{x:n,y:isNaN(u)?a:u}:{x:t,y:isNaN(u)?a:u},hb={top:{c:ub},bottom:{c:Zx},left:{c:Yx},right:{c:Xx},"top-left":{c:I0},"top-right":{c:R0},"bottom-left":{c:T0},"bottom-right":{c:P0},inside:{c:$x},"inside-left":{c:Yx},"inside-right":{c:Xx},"inside-top":{c:ub},"inside-bottom":{c:Zx},"inside-top-left":{c:I0},"inside-bottom-left":{c:T0},"inside-top-right":{c:R0},"inside-bottom-right":{c:P0}}}}),Qx,kl,ys,HP=A({"packages/ag-charts-community/src/chart/crossline/cartesianCrossLine.ts"(){"use strict";Qd(),cs(),Jy(),vn(),xo(),xa(),mD(),ic(),Zl(),gn(),zn(),Ai(),Tn(),yd(),vv(),bD(),Qx=uo(["top","left","right","bottom","top-left","top-right","bottom-left","bottom-right","inside","inside-left","inside-right","inside-top","inside-bottom","inside-top-left","inside-bottom-left","inside-top-right","inside-bottom-right"],"crossLine label position"),kl=class extends dn{constructor(){super(...arguments),this.fontSize=14,this.fontFamily="Verdana, sans-serif",this.padding=5,this.color="rgba(87, 87, 87, 1)"}},b([Ge(Oi,{optional:!0})],kl.prototype,"enabled",2),b([Ge(ei,{optional:!0})],kl.prototype,"text",2),b([Ge(Tc,{optional:!0})],kl.prototype,"fontStyle",2),b([Ge(Rc,{optional:!0})],kl.prototype,"fontWeight",2),b([Ge(ni)],kl.prototype,"fontSize",2),b([Ge(ei)],kl.prototype,"fontFamily",2),b([Ge(Bn)],kl.prototype,"padding",2),b([Ge(sa,{optional:!0})],kl.prototype,"color",2),b([Ge(Qx,{optional:!0})],kl.prototype,"position",2),b([Ge(Bn,{optional:!0})],kl.prototype,"rotation",2),b([Ge(Oi,{optional:!0})],kl.prototype,"parallel",2),ys=class extends dn{constructor(){super(),this.id=Os(this),this.label=new kl,this.scale=void 0,this.clippedRange=[-1/0,1/0],this.gridLength=0,this.sideFlag=-1,this.parallelFlipRotation=0,this.regularFlipRotation=0,this.direction="x",this.rangeGroup=new Wi({name:this.id}),this.lineGroup=new Wi({name:this.id}),this.labelGroup=new Wi({name:this.id}),this.crossLineRange=new oc,this.crossLineLabel=new ru,this.labelPoint=void 0,this.data=[],this.startLine=!1,this.endLine=!1,this.isRange=!1,this._isRange=void 0,this.lineGroup.append(this.crossLineRange),this.labelGroup.append(this.crossLineLabel),this.crossLineRange.pointerEvents=1}update(e){let{enabled:t,data:n,type:a,value:u,range:y,scale:k}=this;if(!a||!k||!t||!e||!Ux(a,u,y,k)||n.length===0){this.rangeGroup.visible=!1,this.lineGroup.visible=!1,this.labelGroup.visible=!1;return}this.rangeGroup.visible=e,this.lineGroup.visible=e,this.labelGroup.visible=e,this.updateNodes();let{isRange:R}=this;R!==this._isRange&&(R?this.rangeGroup.appendChild(this.crossLineRange):this.lineGroup.appendChild(this.crossLineRange)),this._isRange=R}calculateLayout(e,t){var Te,ze,qe;if(!e)return;let{scale:n,gridLength:a,sideFlag:u,direction:y,label:{position:k="top"},clippedRange:R,strokeWidth:F=0}=this;if(this.data=[],!n)return;let _=(Te=n.bandwidth)!=null?Te:0,V=(ze=n.step)!=null?ze:0,K=(t?-1:1)*(n instanceof zo?(V-_)/2:0),[q,$]=[0,u*a],[te,se]=this.getRange(),de=se===void 0&&tc.is(n)?_/2+K:0,[pe,Ce]=[Number(n.convert(te,!0))-K+de,n.convert(se,!0)+_+K];pe=Yu(pe,R),Ce=Yu(Ce,R),[te,se]=[Number(n.convert(te))+de,n.convert(se)+_];let Se=(te===pe||se===Ce||pe!==Ce)&&Math.abs(Ce-pe)>0;if(Se&&pe>Ce&&([pe,Ce]=[Ce,pe],[te,se]=[se,te]),te-K>=pe&&(te-=K),se+K<=Ce&&(se+=K),this.isRange=Se,this.startLine=F>0&&te>=pe&&te<=pe+K,this.endLine=F>0&&se>=Ce-_-K&&se<=Ce,!Se&&!this.startLine&&!this.endLine||(this.data=[pe,Ce],!this.label.enabled))return;let{c:ve=ub}=(qe=hb[k])!=null?qe:{},{x:ke,y:De}=ve({direction:y,xStart:q,xEnd:$,yStart:pe,yEnd:Ce});this.labelPoint={x:ke,y:De}}updateNodes(){this.updateRangeNode(),this.label.enabled&&(this.updateLabel(),this.positionLabel())}updateRangeNode(){var q;let{crossLineRange:e,sideFlag:t,gridLength:n,data:a,startLine:u,endLine:y,isRange:k,fill:R,fillOpacity:F,stroke:_,strokeWidth:V,lineDash:K}=this;e.x1=0,e.x2=t*n,e.y1=a[0],e.y2=a[1],e.startLine=u,e.endLine=y,e.isRange=k,e.fill=R,e.fillOpacity=F!=null?F:1,e.stroke=_,e.strokeWidth=V!=null?V:1,e.strokeOpacity=(q=this.strokeOpacity)!=null?q:1,e.lineDash=K}updateLabel(){let{crossLineLabel:e,label:t}=this;t.text&&(e.fontStyle=t.fontStyle,e.fontWeight=t.fontWeight,e.fontSize=t.fontSize,e.fontFamily=t.fontFamily,e.fill=t.color,e.text=t.text)}positionLabel(){let{crossLineLabel:e,labelPoint:{x:t=void 0,y:n=void 0}={},label:{parallel:a,rotation:u,position:y="top",padding:k=0},direction:R,parallelFlipRotation:F,regularFlipRotation:_}=this;if(t===void 0||n===void 0)return;let{defaultRotation:V,configuredRotation:K}=Lm({rotation:u,parallel:a,regularFlipRotation:_,parallelFlipRotation:F});e.rotation=V+K,e.textBaseline="middle",e.textAlign="center";let q=e.getBBox();if(!q)return;let $=R==="y",{xTranslation:te,yTranslation:se}=Kx({yDirection:$,padding:k,position:y,bbox:q});e.translationX=t+te,e.translationY=n+se}getRange(){var k;let{value:e,range:t,scale:n}=this,a=Ha.is(n)||tc.is(n),u=(k=t==null?void 0:t[0])!=null?k:e,y=t==null?void 0:t[1];return!a&&y===void 0&&(y=u),a&&u===y&&(y=void 0),[u,y]}computeLabelBBox(){let{label:e}=this;if(!e.enabled)return;let t=new ru;t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontStyle=e.fontStyle,t.fontWeight=e.fontWeight,t.text=e.text;let{labelPoint:{x:n=void 0,y:a=void 0}={},label:{parallel:u,rotation:y,position:k="top",padding:R=0},direction:F,parallelFlipRotation:_,regularFlipRotation:V}=this;if(n===void 0||a===void 0)return;let{configuredRotation:K}=Lm({rotation:y,parallel:u,regularFlipRotation:V,parallelFlipRotation:_});t.rotation=K,t.textBaseline="middle",t.textAlign="center";let q=t.getBBox();if(!q)return;let $=F==="y",{xTranslation:te,yTranslation:se}=Kx({yDirection:$,padding:R,position:k,bbox:q});return t.x=n+te,t.y=a+se,t.getBBox()}calculatePadding(e){var _,V,K,q,$,te,se,de;let{isRange:t,startLine:n,endLine:a,direction:u,label:{padding:y=0,position:k="top"}}=this;if(!t&&!n&&!a)return;let R=this.computeLabelBBox();if((R==null?void 0:R.x)==null||(R==null?void 0:R.y)==null)return;let F=yD({yDirection:u==="y",padding:y,position:k,bbox:R});e.left=Math.max((_=e.left)!=null?_:0,(V=F.left)!=null?V:0),e.right=Math.max((K=e.right)!=null?K:0,(q=F.right)!=null?q:0),e.top=Math.max(($=e.top)!=null?$:0,(te=F.top)!=null?te:0),e.bottom=Math.max((se=e.bottom)!=null?se:0,(de=F.bottom)!=null?de:0)}},ys.className="CrossLine",b([Ge(Oi,{optional:!0})],ys.prototype,"enabled",2),b([Ge(uo(["range","line"],"a crossLine type"),{optional:!0})],ys.prototype,"type",2),b([Ge(Hs(E0("range"),sh.restrict({length:2})),{optional:!0})],ys.prototype,"range",2),b([Ge(E0("value"),{optional:!0})],ys.prototype,"value",2),b([Ge(sa,{optional:!0})],ys.prototype,"fill",2),b([Ge(Cn,{optional:!0})],ys.prototype,"fillOpacity",2),b([Ge(sa,{optional:!0})],ys.prototype,"stroke",2),b([Ge(Bn,{optional:!0})],ys.prototype,"strokeWidth",2),b([Ge(Cn,{optional:!0})],ys.prototype,"strokeOpacity",2),b([Ge(hd,{optional:!0})],ys.prototype,"lineDash",2),b([Ge(Ei)],ys.prototype,"label",2)}}),CD,Om=A({"packages/ag-charts-community/src/chart/zIndexMap.ts"(){"use strict";CD=(e=>(e[e.CHART_BACKGROUND=0]="CHART_BACKGROUND",e[e.AXIS_GRID=1]="AXIS_GRID",e[e.AXIS=2]="AXIS",e[e.SERIES_CROSSLINE_RANGE=3]="SERIES_CROSSLINE_RANGE",e[e.SERIES_LAYER=4]="SERIES_LAYER",e[e.AXIS_FOREGROUND=5]="AXIS_FOREGROUND",e[e.SERIES_CROSSHAIR=6]="SERIES_CROSSHAIR",e[e.SERIES_CROSSLINE_LINE=7]="SERIES_CROSSLINE_LINE",e[e.SERIES_ANNOTATION=8]="SERIES_ANNOTATION",e[e.CHART_ANNOTATION=9]="CHART_ANNOTATION",e[e.CHART_ANNOTATION_FOCUSED=10]="CHART_ANNOTATION_FOCUSED",e[e.STATUS_BAR=11]="STATUS_BAR",e[e.SERIES_LABEL=12]="SERIES_LABEL",e[e.LEGEND=13]="LEGEND",e[e.NAVIGATOR=14]="NAVIGATOR",e[e.FOREGROUND=15]="FOREGROUND",e))(CD||{})}}),UI,KI,L0,qI=A({"packages/ag-charts-community/src/chart/axis/axisGridLine.ts"(){"use strict";bn(),Ai(),UI=["stroke","lineDash"],KI=ud(e=>ur(e)&&Object.keys(e).every(t=>UI.includes(t)),"objects with gridline style properties such as 'stroke' or 'lineDash'"),L0=class{constructor(){this.enabled=!0,this.width=1,this.style=[{stroke:void 0,lineDash:[]}]}},b([Ge(Oi)],L0.prototype,"enabled",2),b([Ge(ni)],L0.prototype,"width",2),b([Ge(KI)],L0.prototype,"style",2)}});function Fm(e,t=[void 0]){return vo((n,a,u)=>t.includes(u)?Si(e)?e(u):e:u)}var gb=A({"packages/ag-charts-community/src/util/default.ts"(){"use strict";ml(),bn()}});function WP(e){return Math.floor(e.getTime()/Vr)}function UP(e){return new Date(e*Vr)}var O0,YI=A({"packages/ag-charts-community/src/util/time/utcMinute.ts"(){"use strict";ah(),fl(),O0=new cn(WP,UP)}});function XI(e){return Math.floor(e.getTime()/jn)}function KP(e){return new Date(e*jn)}var SD,qP=A({"packages/ag-charts-community/src/util/time/utcHour.ts"(){"use strict";ah(),fl(),SD=new cn(XI,KP)}});function YP(e){return Math.floor(e.getTime()/jr)}function XP(e){let t=new Date(0);return t.setUTCDate(t.getUTCDate()+e),t.setUTCHours(0,0,0,0),t}var wD,ZP=A({"packages/ag-charts-community/src/util/time/utcDay.ts"(){"use strict";ah(),fl(),wD=new cn(YP,XP)}});function $P(e){return e.getUTCFullYear()*12+e.getUTCMonth()}function QP(e){let t=Math.floor(e/12),n=e-t*12;return new Date(Date.UTC(t,n,1))}var ZI,F0=A({"packages/ag-charts-community/src/util/time/utcMonth.ts"(){"use strict";fl(),ZI=new cn($P,QP)}});function $I(e){return e.getUTCFullYear()}function JP(e){let t=new Date;return t.setUTCFullYear(e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),t}var xD,eL=A({"packages/ag-charts-community/src/util/time/utcYear.ts"(){"use strict";fl(),xD=new cn($I,JP)}}),QI={};E(QI,{TimeInterval:()=>fi,day:()=>zy,friday:()=>Ho,hour:()=>vm,millisecond:()=>Am,minute:()=>ym,monday:()=>hx,month:()=>us,saturday:()=>px,second:()=>Vs,sunday:()=>$f,thursday:()=>Sm,tuesday:()=>Cm,utcDay:()=>wD,utcHour:()=>SD,utcMinute:()=>O0,utcMonth:()=>ZI,utcYear:()=>xD,wednesday:()=>gx,year:()=>Gy});var dp=A({"packages/ag-charts-community/src/util/time/index.ts"(){"use strict";Mx(),Wh(),t0(),BA(),cx(),mx(),jA(),WA(),YI(),qP(),ZP(),F0(),eL(),fl()}}),_0,_m,N0=A({"packages/ag-charts-community/src/chart/axis/axisInterval.ts"(){"use strict";gb(),zn(),dp(),bn(),Ai(),_0=ka(e=>pa(e)&&e>0||e instanceof fi,"a non-zero positive Number value or, for a time axis, a Time Interval such as 'agCharts.time.month'"),_m=class extends dn{constructor(){super(...arguments),this.minSpacing=NaN,this.maxSpacing=NaN}},b([Ge(_0,{optional:!0})],_m.prototype,"step",2),b([Ge(sh,{optional:!0})],_m.prototype,"values",2),b([Ge(xm),Fm(NaN)],_m.prototype,"minSpacing",2),b([Ge(qy),Fm(NaN)],_m.prototype,"maxSpacing",2)}}),go,up=A({"packages/ag-charts-community/src/chart/axis/axisLabel.ts"(){"use strict";gb(),zn(),Ai(),go=class extends dn{constructor(){super(...arguments),this.enabled=!0,this.fontSize=12,this.fontFamily="Verdana, sans-serif",this.spacing=5,this.minSpacing=NaN,this.color="#575757",this.avoidCollisions=!0,this.mirrored=!1,this.parallel=!1}getSideFlag(){return this.mirrored?1:-1}},b([Ge(Oi)],go.prototype,"enabled",2),b([Ge(Tc,{optional:!0})],go.prototype,"fontStyle",2),b([Ge(Rc,{optional:!0})],go.prototype,"fontWeight",2),b([Ge(Bn.restrict({min:1}))],go.prototype,"fontSize",2),b([Ge(ei)],go.prototype,"fontFamily",2),b([Ge(ni)],go.prototype,"spacing",2),b([Ge(Ar),Fm(NaN)],go.prototype,"minSpacing",2),b([Ge(sa,{optional:!0})],go.prototype,"color",2),b([Ge(Bn,{optional:!0})],go.prototype,"rotation",2),b([Ge(Oi)],go.prototype,"avoidCollisions",2),b([Ge(Oi)],go.prototype,"mirrored",2),b([Ge(Oi)],go.prototype,"parallel",2),b([Ge(vl,{optional:!0})],go.prototype,"itemStyler",2),b([Ge(vl,{optional:!0})],go.prototype,"formatter",2),b([Ge(ei,{optional:!0})],go.prototype,"format",2)}}),eg,tg=A({"packages/ag-charts-community/src/chart/axis/axisLine.ts"(){"use strict";Ai(),eg=class{constructor(){this.enabled=!0,this.width=1,this.stroke=void 0}},b([Ge(Oi)],eg.prototype,"enabled",2),b([Ge(ni)],eg.prototype,"width",2),b([Ge(sa,{optional:!0})],eg.prototype,"stroke",2)}}),yv,MD=A({"packages/ag-charts-community/src/chart/axis/axisTick.ts"(){"use strict";zn(),dp(),Ai(),yv=class extends dn{constructor(){super(...arguments),this.enabled=!0,this.width=1,this.size=6}},b([Ge(Oi)],yv.prototype,"enabled",2),b([Ge(ni)],yv.prototype,"width",2),b([Ge(ni)],yv.prototype,"size",2),b([Ge(sa,{optional:!0})],yv.prototype,"stroke",2)}}),su,JI=A({"packages/ag-charts-community/src/chart/axis/axisTitle.ts"(){"use strict";zn(),Ai(),cp(),su=class extends dn{constructor(){super(...arguments),this.caption=new qa,this.enabled=!1,this.spacing=qa.SMALL_PADDING,this.fontSize=10,this.fontFamily="sans-serif",this.wrapping="always"}},b([Ge(Oi)],su.prototype,"enabled",2),b([Ge(ei,{optional:!0})],su.prototype,"text",2),b([Ge(ni,{optional:!0})],su.prototype,"spacing",2),b([Ge(Tc,{optional:!0})],su.prototype,"fontStyle",2),b([Ge(Rc,{optional:!0})],su.prototype,"fontWeight",2),b([Ge(ni)],su.prototype,"fontSize",2),b([Ge(ei)],su.prototype,"fontFamily",2),b([Ge(sa,{optional:!0})],su.prototype,"color",2),b([Ge(iv)],su.prototype,"wrapping",2),b([Ge(vl,{optional:!0})],su.prototype,"formatter",2)}});function Al(e){let[t,n]=ss(e.range),a=Math.floor(t),u=Math.ceil(n);return{min:a,max:u,visible:a!==u}}function kD(e,t){return Math.abs(t-e)<tT?t:e>t?t+B0:t-B0}function pb(e){let t=(k,R)=>{let[F=e.min,_=e.max]=ss(R!=null?R:[]);return k<F||k>_};return{tick:{fromFn(k,R,F){let _=k.y1+k.translationY,V=k.opacity;return(F==="added"||t(k.datum.translationY,k.datum.range))&&(_=R.translationY,V=0),{y:0,translationY:_,opacity:V,phase:zs[F]}},toFn(k,R,F){let _=R.translationY,V=1;return F==="removed"&&(V=0),{y:0,translationY:_,opacity:V,finish:{y:_,translationY:0}}},applyFn(k,R){k.setProperties(R),k.visible=!t(k.y)}},line:{fromFn(k,R){var F;return He(ge({},(F=k.previousDatum)!=null?F:R),{phase:zs.updated})},toFn(k,R){return ge({},R)}},label:{fromFn(k,R,F){var de;let _=(de=k.previousDatum)!=null?de:R,V=_.x,K=_.y,q=_.rotationCenterX,$=Math.round(k.translationY),te=_.rotation,se=k.opacity;return F==="removed"||t(_.y,_.range)?te=R.rotation:(F==="added"||t(k.datum.y,k.datum.range))&&($=Math.round(_.translationY),se=0,te=R.rotation),{x:V,y:K,rotationCenterX:q,translationY:$,rotation:te,opacity:se,phase:zs[F]}},toFn(k,R,F){var se,de;let _=R.x,V=R.y,K=R.rotationCenterX,q=Math.round(R.translationY),$=0,te=1;return F==="added"?$=R.rotation:F==="removed"?(te=0,$=R.rotation):$=kD((de=(se=k.previousDatum)==null?void 0:se.rotation)!=null?de:R.rotation,R.rotation),{x:_,y:V,rotationCenterX:K,translationY:q,rotation:$,opacity:te,finish:{rotation:R.rotation}}}},group:{fromFn(k,R){let{rotation:F,translationX:_,translationY:V}=k;return{rotation:F,translationX:_,translationY:V,phase:zs.updated}},toFn(k,R){let{rotation:F,translationX:_,translationY:V}=R;return{rotation:F,translationX:_,translationY:V}}}}}function z0(){return(e,t)=>({rotation:t.rotation,rotationCenterX:t.rotationCenterX,rotationCenterY:t.rotationCenterY,translationX:t.translationX,translationY:t.translationY})}function mb(e){let{visible:t,min:n,max:a}=e;return(u,y)=>{let k=y.translationY,R=t&&k>=n&&k<=a;return{y:k,translationY:0,opacity:1,visible:R}}}function AD(){return(e,t)=>({x:t.x,y:t.y,translationY:t.translationY,rotation:t.rotation,rotationCenterX:t.rotationCenterX})}function eT(){return(e,t)=>ge({},t)}var B0,tT,DD=A({"packages/ag-charts-community/src/chart/axis/axisUtil.ts"(){"use strict";Gr(),gn(),B0=Math.PI*2,tT=B0/2}}),ED,Jx,bs,hp,G0=A({"packages/ag-charts-community/src/chart/axis/axis.ts"(){"use strict";ip(),Gr(),Mm(),cs(),gs(),Jy(),vn(),xo(),oD(),Dr(),vd(),ic(),Sl(),uD(),Ko(),Mr(),hv(),gh(),Zl(),nc(),on(),gn(),ra(),ac(),pv(),gD(),Nc(),tu(),bn(),Ai(),cp(),Tn(),HP(),yd(),Om(),qI(),N0(),up(),tg(),MD(),JI(),DD(),ED=Object.freeze({tickData:{ticks:[],rawTicks:[],labelCount:0,fractionDigits:0},combinedRotation:0,textAlign:"center",textBaseline:"bottom",labelData:[]}),Jx=class extends Yh(ms){},bs=class SZ{constructor(t,n){this.moduleCtx=t,this.scale=n,this.id=Os(this),this.nice=!0,this.reverse=!1,this.keys=[],this.interval=new _m,this.dataDomain={domain:[],clipped:!1},this.layoutConstraints={stacked:!0,align:"start",width:100,unit:"percent"},this.boundSeries=[],this.includeInvisibleDomains=!1,this.interactionEnabled=!0,this.axisGroup=new Xh({name:`${this.id}-axis`}),this.tickLineGroup=this.axisGroup.appendChild(new Wi({name:`${this.id}-Axis-tick-lines`})),this.lineNode=this.axisGroup.appendChild(new Jx({name:`${this.id}-Axis-line`})),this.tickLabelGroup=this.axisGroup.appendChild(new Wi({name:`${this.id}-Axis-tick-labels`})),this.labelGroup=new Wi({name:`${this.id}-Labels`,zIndex:8}),this.gridGroup=new Xh({name:`${this.id}-Axis-grid`,zIndex:1}),this.gridLineGroup=this.gridGroup.appendChild(new Wi({name:`${this.id}-gridLines`})),this.crossLineRangeGroup=new Xh({name:`${this.id}-CrossLines-Range`,zIndex:3}),this.crossLineLineGroup=new Xh({name:`${this.id}-CrossLines-Line`,zIndex:7}),this.crossLineLabelGroup=new Xh({name:`${this.id}-CrossLines-Label`,zIndex:12}),this.tickLineGroupSelection=er.select(this.tickLineGroup,Jx,!1),this.tickLabelGroupSelection=er.select(this.tickLabelGroup,ru,!1),this.gridLineGroupSelection=er.select(this.gridLineGroup,Jx,!1),this._crossLines=[],this.line=new eg,this.tick=new yv,this.gridLine=new L0,this.label=this.createLabel(),this.tempText=new ru,this.tempCaption=new qa,this.defaultTickMinSpacing=SZ.defaultTickMinSpacing,this.translation={x:0,y:0},this.rotation=0,this.layout={label:{fractionDigits:0,spacing:this.label.spacing,format:this.label.format}},this.destroyFns=[],this.range=[0,1],this.visibleRange=[0,1],this.title=new su,this.gridLength=0,this.gridPadding=0,this.seriesAreaPadding=0,this.tickGenerationResult=void 0,this._domainCalculated=!1,this.moduleMap=new Cl,this.range=this.scale.range.slice(),this.crossLines.forEach(u=>this.initCrossLine(u)),this.axisGroup.appendChild(this.title.caption.node),this.animationManager=t.animationManager,this.animationState=new lp("empty",{empty:{update:{target:"ready",action:()=>this.resetSelectionNodes()},reset:"empty"},ready:{update:u=>this.animateReadyUpdate(u),resize:()=>this.resetSelectionNodes(),reset:"empty"}});let a;this.destroyFns.push(this.title.caption.registerInteraction(this.moduleCtx,"afterend"),t.layoutManager.addListener("layout:complete",u=>{a!=null&&Qh(u.chart,a)!=null&&this.animationState.transition("resize"),a=ge({},u.chart)}))}get type(){var t;return(t=this.constructor.type)!=null?t:""}set crossLines(t){let{CrossLineConstructor:n}=this.constructor;this._crossLines.forEach(a=>this.detachCrossLine(a)),this._crossLines=t.map(a=>{let u=new n;return u.set(a),u}),this._crossLines.forEach(a=>{this.attachCrossLine(a),this.initCrossLine(a)})}get crossLines(){return this._crossLines}resetAnimation(t){t==="initial"&&this.animationState.transition("reset")}attachCrossLine(t){this.crossLineRangeGroup.appendChild(t.rangeGroup),this.crossLineLineGroup.appendChild(t.lineGroup),this.crossLineLabelGroup.appendChild(t.labelGroup)}detachCrossLine(t){this.crossLineRangeGroup.removeChild(t.rangeGroup),this.crossLineLineGroup.removeChild(t.lineGroup),this.crossLineLabelGroup.removeChild(t.labelGroup)}destroy(){this.moduleMap.destroy(),this.destroyFns.forEach(t=>t())}updateRange(){var R;let{range:t,visibleRange:n,scale:a}=this,u=(t[1]-t[0])/(n[1]-n[0]),y=u*n[0],k=t[0]-y;(R=a.setVisibleRange)==null||R.call(a,n),a.range=[k,k+u],this.crossLines.forEach(F=>{F.clippedRange=[t[0],t[1]]})}setCrossLinesVisible(t){this.crossLineRangeGroup.visible=t,this.crossLineLineGroup.visible=t,this.crossLineLabelGroup.visible=t}attachAxis(t){t.gridNode.appendChild(this.gridGroup),t.axisNode.appendChild(this.axisGroup),t.labelNode.appendChild(this.labelGroup),t.crossLineRangeNode.appendChild(this.crossLineRangeGroup),t.crossLineLineNode.appendChild(this.crossLineLineGroup),t.crossLineLabelNode.appendChild(this.crossLineLabelGroup)}detachAxis(t){t.gridNode.removeChild(this.gridGroup),t.axisNode.removeChild(this.axisGroup),t.labelNode.removeChild(this.labelGroup),t.crossLineRangeNode.removeChild(this.crossLineRangeGroup),t.crossLineLineNode.removeChild(this.crossLineLineGroup),t.crossLineLabelNode.removeChild(this.crossLineLabelGroup)}attachLabel(t){this.labelGroup.append(t)}inRange(t,n=0){let[a,u]=ss(this.range);return t>=a-n&&t<=u+n}onFormatChange(t,n,a,u){let{scale:y}=this,k=y instanceof Ws;if(u&&(y!=null&&y.tickFormat))try{let R=y.tickFormat({ticks:t,specifier:u});this.labelFormatter=R,this.datumFormatter=R;return}catch(R){hi.warnOnce(`the axis label format string ${u} is invalid. No formatting will be applied`)}this.labelFormatter=k?String:R=>fs(R,n),this.datumFormatter=k?String:R=>fs(R,n+1)}onGridLengthChange(t,n){n^t&&this.onGridVisibilityChange(),this.crossLines.forEach(a=>this.initCrossLine(a))}onGridVisibilityChange(){this.gridLineGroupSelection.clear()}createLabel(){return new go}update(t=!0){if(!this.tickGenerationResult)return;this.updatePosition();let n=this.getAxisLineCoordinates(),{tickData:a,combinedRotation:u,textBaseline:y,textAlign:k}=this.tickGenerationResult,R=this.tickLabelGroupSelection.nodes().slice();if(this.updateSelections(n,a.ticks,{combinedRotation:u,textAlign:k,textBaseline:y,range:this.scale.range}),!t||this.animationManager.isSkipped())this.resetSelectionNodes();else{let K=Nx(R.map(q=>q.datum.tickId),a.ticks.map(q=>q.tickId));this.animationState.transition("update",K)}this.tickLineGroup.visible=this.tick.enabled,this.gridLineGroup.visible=this.gridLine.enabled,this.tickLabelGroup.visible=this.label.enabled;let{enabled:F,stroke:_,width:V}=this.line;this.lineNode.setProperties({stroke:_,strokeWidth:F?V:0}),this.updateLabels(),this.updateGridLines(),this.updateTickLines(),this.updateTitle(!a.ticks.length),this.updateCrossLines()}getAxisLineCoordinates(){let[t,n]=ss(this.range);return{x:0,y1:t,y2:n}}getTickLineCoordinates(t){let a=this.label.getSideFlag()*this.getTickSize(),u=Math.min(0,a),y=u+Math.abs(a),k=t.translationY;return{x1:u,x2:y,y:k}}getLabelStyles(t,n){let{label:a}=this,u={color:a.color,spacing:a.spacing,fontFamily:a.fontFamily,fontSize:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight},y;a.itemStyler&&(y=this.moduleCtx.callbackCache.call(a.itemStyler,ge(ge({},t),u)));let{color:k,fontFamily:R,fontSize:F,fontStyle:_,fontWeight:V,spacing:K}=En(y,n,u);return{fill:k,fontFamily:R,fontSize:F,fontStyle:_,fontWeight:V,spacing:K}}getTickLabelProps(t,n){let{label:a}=this,{combinedRotation:u,textBaseline:y,textAlign:k,range:R}=n,F=t.tickLabel,V=a.getSideFlag()*(this.getTickSize()+a.spacing+this.seriesAreaPadding),K=F!==""&&F!=null;return He(ge({},this.getLabelStyles({value:t.tickLabel})),{tickId:t.tickId,rotation:u,rotationCenterX:V,translationY:t.translationY,text:F,textAlign:k,textBaseline:y,visible:K,x:V,y:0,range:R})}getTickSize(){return this.tick.enabled?this.tick.size:0}setTitleProps(t,n){var pe;let{title:a}=this;if(!a.enabled){t.enabled=!1,t.node.visible=!1;return}t.color=a.color,t.fontFamily=a.fontFamily,t.fontSize=a.fontSize,t.fontStyle=a.fontStyle,t.fontWeight=a.fontWeight,t.enabled=a.enabled,t.wrapping=a.wrapping;let u=t.node,y=((pe=a.spacing)!=null?pe:0)+n.spacing,k=this.label.getSideFlag(),R=Fn(this.rotation),F=k===-1&&R>Math.PI&&R<Math.PI*2?-1:1,_=F*k*Math.PI/2,V=F===1?"bottom":"top",{range:K}=this,q=Math.floor(F*k*(K[0]+K[1])/2),$=Math.floor(k===-1?F*-y:-y),{callbackCache:te}=this.moduleCtx,{formatter:se=Ce=>Ce.defaultValue}=a,de=te.call(se,this.getTitleFormatterParams());t.text=de,u.setProperties({visible:!0,text:de,textBaseline:V,x:q,y:$,rotation:_})}processData(){this._domainCalculated=!1}calculateLayout(t,n){var K,q;let{rotation:a,parallelFlipRotation:u,regularFlipRotation:y}=this.calculateRotations(),k=this.label.getSideFlag();this.updateScale({domain:t,skipDomainCalculation:this._domainCalculated}),this._domainCalculated=t==null;let R=this.processTicks(n,u,y);this.tickGenerationResult=R.tickGenerationResult;let F=ki.merge(R.boxes),_=this.getTransformBox(F),V=this.isAnySeriesActive();return this.crossLines.forEach($=>{var se,de;var te;$.sideFlag=-k,$.direction=a===-Math.PI/2?"x":"y",$ instanceof ys&&((se=(te=$.label).parallel)!=null||(te.parallel=this.label.parallel)),$.parallelFlipRotation=u,$.regularFlipRotation=y,(de=$.calculateLayout)==null||de.call($,V,this.reverse)}),{primaryTickCount:(q=(K=R.tickGenerationResult)==null?void 0:K.primaryTickCount)!=null?q:n,bbox:_}}processTicks(t,n,a){var Ce;let u=this.label.getSideFlag(),y=u*(this.getTickSize()+this.label.spacing+this.seriesAreaPadding),R=this.label.enabled||this.tick.enabled||this.gridLine.enabled?this.generateTicks({primaryTickCount:t,parallelFlipRotation:n,regularFlipRotation:a,labelX:y,sideFlag:u}):ED,{tickData:F,combinedRotation:_,textBaseline:V,textAlign:K}=R;this.updateLayoutState(F.fractionDigits);let q=[],{x:$,y1:te,y2:se}=this.getAxisLineCoordinates(),de=new ki($+Math.min(u*this.seriesAreaPadding,0),te,this.seriesAreaPadding,se-te);q.push(de),this.tick.enabled&&F.ticks.forEach(Se=>{let{x1:ve,x2:ke,y:De}=this.getTickLineCoordinates(Se),Te=new ki(ve,De,ke-ve,0);q.push(Te)});let{tempText:pe}=this;if(this.label.enabled&&F.ticks.forEach(Se=>{let ve=this.getTickLabelProps(Se,{combinedRotation:_,textAlign:K,textBaseline:V,range:this.scale.range});if(!ve.visible)return;pe.setProperties(He(ge({},ve),{translationY:Math.round(Se.translationY)}));let ke=pe.getBBox();ke&&q.push(ke)}),(Ce=this.title)!=null&&Ce.enabled){let Se=ki.merge(q).width;this.setTitleProps(this.tempCaption,{spacing:Se});let ve=this.tempCaption.node.getBBox();ve&&q.push(ve)}return{tickGenerationResult:R,boxes:q}}updateLayoutState(t){this.layout.label={fractionDigits:t,spacing:this.label.spacing,format:this.label.format}}getTransformBox(t){let n=new iu,{rotation:a,translationX:u,translationY:y}=this.getAxisTransform();return iu.updateTransformMatrix(n,1,1,a,u,y),n.transformBBox(t)}setDomain(t){this.dataDomain=this.normaliseDataDomain(t),this.reverse&&this.dataDomain.domain.reverse(),this.scale.domain=this.dataDomain.domain}updateScale(t){var u;let n=t==null?void 0:t.domain;((u=t==null?void 0:t.skipDomainCalculation)!=null?u:!1)||(n?this.setDomain(n):this.calculateDomain()),this.updateRange(),this.scale.interval=this.interval.step,Ha.is(this.scale)&&(this.scale.nice=this.nice,this.scale.update())}calculateRotations(){let t=ma(this.rotation),n=Fn(t),a=Fn(t-Math.PI/2);return{rotation:t,parallelFlipRotation:n,regularFlipRotation:a}}generateTicks({primaryTickCount:t,parallelFlipRotation:n,regularFlipRotation:a,labelX:u,sideFlag:y}){let{scale:k,interval:{minSpacing:R,maxSpacing:F},label:{parallel:_,rotation:V,fontFamily:K,fontSize:q,fontStyle:$,fontWeight:te}}=this,se=t!==void 0,{defaultRotation:de,configuredRotation:pe,parallelFlipFlag:Ce,regularFlipFlag:Se}=Lm({rotation:V,parallel:_,regularFlipRotation:a,parallelFlipRotation:n}),ve=pe+de,ke=new iu,{maxTickCount:De}=this.estimateTickCount(R,F),ze=!(Ha.is(k)||tc.is(k))||isNaN(De)?10:De,qe=fD(_,pe,0,y,Se),et=HI(_,pe,y,Ce),$e=ho.toFontString({fontFamily:K,fontSize:q,fontStyle:$,fontWeight:te}),lt=Zh.getMeasurer({font:$e}),at={fontFamily:K,fontSize:q,fontStyle:$,fontWeight:te,textBaseline:et,textAlign:qe},ht={ticks:[],rawTicks:[],fractionDigits:0,labelCount:0},vt=0,wt=0,Ct=!0,yt=[],Et=!1;for(;Ct&&vt<=ze&&!Et;){wt=0,qe=fD(_,pe,0,y,Se);let Dt=this.getTickStrategies({secondaryAxis:se,index:vt});for(let Ot of Dt){({tickData:ht,index:vt,autoRotation:wt,terminate:Et}=Ot({index:vt,tickData:ht,textProps:at,labelOverlap:Ct,terminate:Et,primaryTickCount:t}));let It=pe!==0||wt!==0,Rt=ve+wt,Xt=jI(this.label.minSpacing,It);iu.updateTransformMatrix(ke,1,1,Rt,0,0),qe=fD(_,pe,wt,y,Se),yt=Wx(ht.ticks,u,ke,lt),Ct=this.label.avoidCollisions?_x(yt,Xt):!1}}let At=de+pe+wt;return!se&&ht.rawTicks.length>0&&(t=ht.rawTicks.length),{tickData:ht,primaryTickCount:t,combinedRotation:At,textBaseline:et,textAlign:qe,labelData:yt}}getTickStrategies({index:t,secondaryAxis:n}){let{scale:a,label:u}=this,{minSpacing:y}=this.interval,k=Ha.is(a)||tc.is(a),R=u.enabled&&u.avoidCollisions,F=!k&&t!==0&&R,_=u.autoRotate===!0&&u.rotation===void 0,V=[],K;this.interval.values?K=3:n?K=1:F?K=2:K=0;let q=({index:$,tickData:te,primaryTickCount:se,terminate:de})=>this.createTickData(K,$,te,de,se);if(V.push(q),!k&&!isNaN(y)){let $=({index:te,tickData:se,primaryTickCount:de,terminate:pe})=>this.createTickData(2,te,se,pe,de);V.push($)}if(R&&_){let $=({index:te,tickData:se,labelOverlap:de,terminate:pe})=>{var Ce;return{index:te,tickData:se,autoRotation:de?Fn(ma((Ce=this.label.autoRotateAngle)!=null?Ce:0)):0,terminate:pe}};V.push($)}return V}createTickData(t,n,a,u,y){let{scale:k}=this,{step:R,values:F,minSpacing:_,maxSpacing:V}=this.interval,{maxTickCount:K,minTickCount:q,tickCount:$}=this.estimateTickCount(_,V),te=Ha.is(k)||tc.is(k),se=!te||isNaN(K)?10:K,de=Ce=>te?Math.max($-Ce,q):K,pe=R==null&&F==null&&de(n)>q&&(te||t===2);for(;n<=se;){let Ce=a.rawTicks;if(a=this.getTicks({tickGenerationType:t,previousTicks:Ce,minTickCount:q,maxTickCount:K,primaryTickCount:y,tickCount:de(n)}),n++,!pe||!th(a.rawTicks,Ce))break}return u||(u=R!=null||F!=null),{tickData:a,index:n,autoRotation:0,terminate:u}}getTicks({tickGenerationType:t,previousTicks:n,tickCount:a,minTickCount:u,maxTickCount:y,primaryTickCount:k}){var Se;let{range:R,scale:F,visibleRange:_}=this,V=Hx(),K;switch(t){case 3:if(K=this.interval.values,Ha.is(F)){let[ve,ke]=ss(F.getDomain().map(Number));K=K.filter(De=>De>=ve&&De<=ke).sort((De,Te)=>De-Te)}break;case 1:Ha.is(F)?K=this.updateSecondaryAxisTicks(k):K=this.createTicks(a,u,y);break;case 2:K=this.filterTicks(n,a);break;default:K=this.createTicks(a,u,y);break}let q=K.reduce((ve,ke)=>Math.max(ve,typeof ke=="number"?tx(ke):0),0),$=((Se=F.bandwidth)!=null?Se:0)/2,te=[],se=0,de=Math.max(0,Math.floor(_[0]*K.length)),pe=Math.min(K.length,Math.ceil(_[1]*K.length)),Ce=K.slice(de,pe);this.onFormatChange(Ce,q,K,this.label.format);for(let ve=0;ve<Ce.length;ve++){let ke=Ce[ve],De=F.convert(ke)+$;if(R.length>0&&!this.inRange(De,.001))continue;let Te=this.formatTick(ke,de+ve,q);te.push({tick:ke,tickId:V(Te),tickLabel:Te,translationY:Math.floor(De)}),!(Te===""||Te==null)&&se++}return{rawTicks:K,fractionDigits:q,ticks:te,labelCount:se}}filterTicks(t,n){let{minSpacing:a,maxSpacing:u}=this.interval,k=!isNaN(a)||!isNaN(u)?Math.ceil(t.length/n):2;return t.filter((R,F)=>F%k===0)}createTicks(t,n,a){var y,k;let{scale:u}=this;return t&&(Ha.is(u)||tc.is(u))&&(u.tickCount=t,u.minTickCount=n!=null?n:0,u.maxTickCount=a!=null?a:1/0),(k=(y=u.ticks)==null?void 0:y.call(u))!=null?k:[]}estimateTickCount(t,n){return h0(this.calculateRangeWithBleed(),t,n,Ha.defaultTickCount,this.defaultTickMinSpacing)}updateCrossLines(){let t=this.isAnySeriesActive();this.crossLines.forEach(n=>{n.update(t)})}updateTickLines(){let{tick:t,label:n}=this,a=n.getSideFlag();this.tickLineGroupSelection.each((u,y)=>{var k,R,F;u.strokeWidth=(k=y.tickWidth)!=null?k:t.width,u.stroke=(R=y.tickStroke)!=null?R:t.stroke,u.x1=a*((F=y.tickSize)!=null?F:this.getTickSize()),u.x2=0})}calculateAvailableRange(){return dm(this.range)}calculateRangeWithBleed(){return ga(this.calculateAvailableRange()/dm(this.visibleRange),2)}calculateDomain(){let{includeInvisibleDomains:t,boundSeries:n,direction:a}=this,u=t?n:n.filter(k=>k.isEnabled()),y=u.length===1?u[0].getDomain(a):u.flatMap(k=>k.getDomain(a));this.setDomain(y)}getAxisTransform(){return{rotation:ma(this.rotation),translationX:Math.floor(this.translation.x),translationY:Math.floor(this.translation.y)}}updatePosition(){let{crossLineRangeGroup:t,crossLineLineGroup:n,crossLineLabelGroup:a,axisGroup:u,gridGroup:y,translation:k}=this,{rotation:R}=this.calculateRotations(),F=Math.floor(k.x),_=Math.floor(k.y);t.setProperties({rotation:R,translationX:F,translationY:_}),n.setProperties({rotation:R,translationX:F,translationY:_}),a.setProperties({rotation:R,translationX:F,translationY:_}),y.setProperties({rotation:R,translationX:F,translationY:_}),u.datum=this.getAxisTransform()}updateSecondaryAxisTicks(t){throw new Error("AG Charts - unexpected call to updateSecondaryAxisTicks() - check axes configuration.")}updateSelections(t,n,a){let u=k=>k.tickId,y=n.map(k=>this.getTickLabelProps(k,a));this.lineNode.datum=t,this.gridLineGroupSelection.update(this.gridLength?n:[],void 0,u),this.tickLineGroupSelection.update(n,void 0,u),this.tickLabelGroupSelection.update(y,void 0,u)}updateGridLines(){let t=this.label.getSideFlag(),{gridLine:{style:n,width:a},gridPadding:u,gridLength:y}=this;y===0||n.length===0||this.gridLineGroupSelection.each((k,R,F)=>{let{stroke:_,lineDash:V}=n[F%n.length];k.setProperties({x1:u,x2:-t*y+u,stroke:_,strokeWidth:a,lineDash:V})})}updateLabels(){this.label.enabled&&this.tickLabelGroupSelection.each((t,n)=>{t.setProperties(n,["fill","fontFamily","fontSize","fontStyle","fontWeight","text","textAlign","textBaseline"])})}updateTitle(t,n){let{title:a,lineNode:u,tickLineGroup:y,tickLabelGroup:k}=this;a.enabled&&!t&&n==null&&(n=Wi.computeChildrenBBox([y,k,u]).width+(this.tickLabelGroup.visible?0:this.seriesAreaPadding)),n!=null||(n=0),this.setTitleProps(a.caption,{spacing:n})}formatTick(t,n,a){let{labelFormatter:u,label:{formatter:y},moduleCtx:{callbackCache:k}}=this,R;return y?R=k.call(y,{value:t,index:n,fractionDigits:a}):u&&(R=k.call(u,t)),String(R!=null?R:t)}formatDatum(t){let{label:{formatter:n},moduleCtx:{callbackCache:a},datumFormatter:u=this.labelFormatter}=this,y;return n?y=a.call(n,{value:t,index:NaN}):u?y=a.call(u,t):ja(t)&&(y=t.filter(Boolean).join(" - ")),String(y!=null?y:t)}getScaleValueFormatter(t){if(t&&this.scale.tickFormat)try{return this.scale.tickFormat({specifier:t})}catch(n){hi.warnOnce(`the format string ${t} is invalid, ignoring.`)}return n=>this.formatDatum(n)}getBBox(){return this.axisGroup.getBBox()}initCrossLine(t){t.scale=this.scale,t.gridLength=this.gridLength}isAnySeriesActive(){return this.boundSeries.some(t=>this.includeInvisibleDomains||t.isEnabled())}clipTickLines(t,n,a,u){this.tickLineGroup.setClipRect(new ki(t,n,a,u))}clipGrid(t,n,a,u){this.gridGroup.setClipRect(new ki(t,n,a,u))}getTitleFormatterParams(){var a;let{direction:t}=this,n=[];for(let u of this.boundSeries){let y=u.getKeys(t),k=u.getNames(t);for(let R=0;R<y.length;R++)n.push({key:y[R],name:k[R]})}return{direction:t,boundSeries:n,defaultValue:(a=this.title)==null?void 0:a.text}}normaliseDataDomain(t){return{domain:[...t],clipped:!1}}getLayoutState(){return ge({id:this.id,rect:this.getBBox(),gridPadding:this.gridPadding,seriesAreaPadding:this.seriesAreaPadding,tickSize:this.getTickSize(),direction:this.direction,domain:this.dataDomain.domain,scale:this.scale},this.layout)}getModuleMap(){return this.moduleMap}createModuleContext(){var t;return(t=this.axisContext)!=null||(this.axisContext=this.createAxisContext()),He(ge({},this.moduleCtx),{parent:this.axisContext})}createAxisContext(){let{scale:t}=this;return{axisId:this.id,scale:this.scale,direction:this.direction,continuous:Ha.is(t)||tc.is(t),getCanvasBounds:()=>Wo.toCanvas(this.axisGroup),seriesKeyProperties:()=>this.boundSeries.reduce((n,a)=>(a.getKeyProperties(this.direction).forEach(y=>{n.indexOf(y)<0&&n.push(y)}),n),[]),scaleValueFormatter:n=>this.getScaleValueFormatter(n),scaleInvert:tc.is(t)?n=>{var a;return(a=t.invertNearest)==null?void 0:a.call(t,n)}:n=>{var a;return(a=t.invert)==null?void 0:a.call(t,n)},scaleInvertNearest:n=>{var a;return(a=t.invertNearest)==null?void 0:a.call(t,n)},attachLabel:n=>this.attachLabel(n),inRange:(n,a)=>this.inRange(n,a)}}animateReadyUpdate(t){let{animationManager:n}=this.moduleCtx,a=Al(this),u=pb(a);to(this.id,"axis-group",n,[this.axisGroup],u.group),to(this.id,"line",n,[this.lineNode],u.line),to(this.id,"line-paths",n,[this.gridLineGroupSelection,this.tickLineGroupSelection],u.tick,(y,k)=>k.tickId,t),to(this.id,"tick-labels",n,[this.tickLabelGroupSelection],u.label,(y,k)=>k.tickId,t)}resetSelectionNodes(){let t=Al(this);io([this.axisGroup],z0()),io([this.gridLineGroupSelection,this.tickLineGroupSelection],mb(t)),io([this.tickLabelGroupSelection],AD()),io([this.lineNode],eT())}isReversed(){return this.reverse}},bs.defaultTickMinSpacing=50,bs.CrossLineConstructor=ys,b([Ge(Oi)],bs.prototype,"nice",2),b([Ge(Oi)],bs.prototype,"reverse",2),b([Ge(qA)],bs.prototype,"keys",2),b([Ge(Ei)],bs.prototype,"interval",2),b([Ge(Ei)],bs.prototype,"title",2),b([gv((e,t,n)=>e.onGridLengthChange(t,n))],bs.prototype,"gridLength",2),hp=bs}}),ig,tL=A({"packages/ag-charts-community/src/chart/axis/cartesianAxisLabel.ts"(){"use strict";Ai(),up(),ig=class extends go{constructor(){super(...arguments),this.autoRotateAngle=335}},b([Ge(Oi,{optional:!0})],ig.prototype,"autoRotate",2),b([Ge(Bn)],ig.prototype,"autoRotateAngle",2)}}),eM,gp,bv=A({"packages/ag-charts-community/src/chart/axis/cartesianAxis.ts"(){"use strict";Ai(),Tn(),G0(),tL(),eM=class wZ extends hp{static is(t){return t instanceof wZ}get direction(){return this.position==="top"||this.position==="bottom"?"x":"y"}updateDirection(){switch(this.position){case"top":this.rotation=-90,this.label.mirrored=!0,this.label.parallel=!0;break;case"right":this.rotation=0,this.label.mirrored=!0,this.label.parallel=!1;break;case"bottom":this.rotation=-90,this.label.mirrored=!1,this.label.parallel=!0;break;case"left":this.rotation=0,this.label.mirrored=!1,this.label.parallel=!1;break}this.axisContext&&(this.axisContext.position=this.position,this.axisContext.direction=this.direction)}update(t){this.updateDirection(),super.update(t)}calculateLayout(t,n){return this.updateDirection(),super.calculateLayout(t,n)}createAxisContext(){return He(ge({},super.createAxisContext()),{position:this.position})}createLabel(){return new ig}},b([Ge(ni,{optional:!0})],eM.prototype,"thickness",2),b([Ge(Uy)],eM.prototype,"position",2),gp=eM}}),Nm,Cv,zm=A({"packages/ag-charts-community/src/chart/axis/categoryAxis.ts"(){"use strict";Qd(),bn(),Ai(),bv(),Nm=class xZ extends gp{constructor(t,n=new zo){super(t,n),this.groupPaddingInner=.1,this.categoryAnimatable=!0,this.includeInvisibleDomains=!0}static is(t){return t instanceof xZ}domainOrderedToNormalizedDomain(t,n){let a=-1;for(let u of t){let y=n.indexOf(u);if(y===-1)a=1/0;else{if(y<=a)return!1;a=y}}return!0}calculateDomain(){let t,n=new Set,a=!0;for(let u of this.boundSeries){if(!this.includeInvisibleDomains&&!u.isEnabled())continue;let y=u.getDomain(this.direction);n.has(y)||(n.add(y),t==null?t=this.normaliseDataDomain(y).domain:(a&&(a=this.domainOrderedToNormalizedDomain(y,t)),t=this.normaliseDataDomain([...t,...y]).domain))}t!=null||(t=[]),this.setDomain(t),this.categoryAnimatable=a}update(){super.update(),this.categoryAnimatable||this.moduleCtx.animationManager.skip()}normaliseDataDomain(t){let n=[],a=new Set;for(let u of t){let y=u instanceof Date?u.getTime():u;a.has(y)||(a.add(y),n.push(u))}return{domain:n,clipped:!1}}updateScale(t){let{paddingInner:n,paddingOuter:a}=this;if(!pa(n)||!pa(a)){let u=this.reduceBandScalePadding();n!=null||(n=u.inner),a!=null||(a=u.outer)}this.scale.paddingInner=n!=null?n:0,this.scale.paddingOuter=a!=null?a:0,super.updateScale(t)}reduceBandScalePadding(){return this.boundSeries.reduce((t,n)=>{var u;let a=(u=n.getBandScalePadding)==null?void 0:u.call(n);return a&&(t.inner>a.inner&&(t.inner=a.inner),t.outer<a.outer&&(t.outer=a.outer)),t},{inner:1/0,outer:-1/0})}},Nm.className="CategoryAxis",Nm.type="category",b([Ge(Cn)],Nm.prototype,"groupPaddingInner",2),b([Ge(Cn,{optional:!0})],Nm.prototype,"paddingInner",2),b([Ge(Cn,{optional:!0})],Nm.prototype,"paddingOuter",2),Cv=Nm}}),V0,ID,ph,mh=A({"packages/ag-charts-community/src/module/module.ts"(){"use strict";V0=class{constructor(){this.destroyFns=[]}destroy(){for(let e of this.destroyFns)e()}},ID=class{constructor(){this.modules=[],this.dependencies=new Map,this.modulesByOptionKey=new Map}register(...e){for(let t of e){this.registerDependencies(t);let n=this.modules.find(a=>t.type===a.type&&("optionsKey"in t&&"optionsKey"in a?t.optionsKey===a.optionsKey:!0)&&t.identifier===a.identifier);if(n){if(t.packageType==="enterprise"&&n.packageType==="community"){let a=this.modules.indexOf(n);this.modules.splice(a,1,t),"optionsKey"in t&&this.modulesByOptionKey.set(t.optionsKey,t)}}else this.modules.push(t),"optionsKey"in t&&this.modulesByOptionKey.set(t.optionsKey,t)}}hasEnterpriseModules(){return this.modules.some(e=>e.packageType==="enterprise")}*byType(...e){let t=new Set,n=this.modules.filter(y=>e.includes(y.type)),a=y=>{var R;let k=this.dependencies.get(y);return(R=k==null?void 0:k.flatMap(a).concat(k))!=null?R:[]},u=[];for(let y of n){let k="optionsKey"in y?y.optionsKey:y.contextKey;if(!t.has(k)){for(let R of a(k)){if(t.has(R))continue;let F=this.modulesByOptionKey.get(R);if(!F){u.push(R);continue}e.includes(F.type)&&(yield F,t.add(R))}yield y,t.add(k)}}if(u.length>0)throw new Error(`Could not resolve module dependencies: ${u}`)}registerDependencies(e){if(e.dependencies==null||e.dependencies.length===0)return;let t="optionsKey"in e?e.optionsKey:e.contextKey;this.dependencies.set(t,e.dependencies)}},ph=new ID}});function TD(){return new Promise(e=>{setTimeout(e,0)})}var tM,iL=A({"packages/ag-charts-community/src/util/async.ts"(){"use strict";tM=class{constructor(){this.queue=[]}await(e=50){return new Promise(t=>{let n=()=>{clearTimeout(u),t(!0)},u=setTimeout(()=>{let y=this.queue.indexOf(n);y<0||(this.queue.splice(y,1),t(!1))},e);this.queue.push(n)})}notify(){this.queue.splice(0).forEach(e=>e())}}}}),Mo,iT=A({"packages/ag-charts-community/src/util/mutex.ts"(){"use strict";on(),Mo=class{constructor(){this.available=!0,this.acquireQueue=[]}acquire(e){return new Promise(t=>{this.acquireQueue.push([e,t]),this.available&&this.dispatchNext().catch(n=>hi.errorOnce(n))})}async acquireImmediately(e){return this.available?(await this.acquire(e),!0):!1}async waitForClearAcquireQueue(){return this.acquire(()=>Promise.resolve(void 0))}async dispatchNext(){var n,a;this.available=!1;let[e,t]=(n=this.acquireQueue.shift())!=null?n:[];for(;e;){try{await e(),t==null||t()}catch(u){hi.error("mutex callback error",u),t==null||t()}[e,t]=(a=this.acquireQueue.shift())!=null?a:[]}this.available=!0}}}}),j0,nT=A({"packages/ag-charts-community/src/util/observable.ts"(){"use strict";j0=class{constructor(){this.eventListeners=new Map}addEventListener(e,t){if(typeof t!="function")throw new Error("AG Charts - listener must be a Function");let n=this.eventListeners.get(e);n?n.add(t):this.eventListeners.set(e,new Set([t]))}removeEventListener(e,t){var n;(n=this.eventListeners.get(e))==null||n.delete(t),this.eventListeners.size===0&&this.eventListeners.delete(e)}hasEventListener(e){return this.eventListeners.has(e)}clearEventListeners(){this.eventListeners.clear()}fireEvent(e){var t;(t=this.eventListeners.get(e.type))==null||t.forEach(n=>n(e))}}}}),fr,H0=A({"packages/ag-charts-community/src/util/padding.ts"(){"use strict";zn(),Ai(),fr=class extends dn{constructor(e=0,t=e,n=e,a=t){super(),this.top=e,this.right=t,this.bottom=n,this.left=a}},b([Ge(ni)],fr.prototype,"top",2),b([Ge(ni)],fr.prototype,"right",2),b([Ge(ni)],fr.prototype,"bottom",2),b([Ge(ni)],fr.prototype,"left",2)}});function nL(e){return U0((t,n)=>ia().requestAnimationFrame(t),e)}function W0(e){return U0((t,n=0)=>{n===0?queueMicrotask(t):setTimeout(t,n)},e)}function U0(e,t){let n=0,a=!1,u,y,k=()=>a,R=()=>{a=!1,y==null||y(),y=void 0,u=void 0,n>0&&e(F)},F=()=>{let _=n;n=0,a=!0;let V=t({count:_});if(!V){R();return}V.then(R,R)};return{schedule(_){n===0&&!k()&&e(F,_),n++},async await(){if(k())for(u==null&&(u=new Promise(_=>{y=_}));k();)await u}}}var Sv=A({"packages/ag-charts-community/src/util/render.ts"(){"use strict";Rn()}}),iM,nM=A({"packages/ag-charts-community/src/util/eventEmitter.ts"(){"use strict";on(),iM=class{constructor(){this.events=new Map}on(e,t){var n;return this.events.has(e)||this.events.set(e,new Set),(n=this.events.get(e))==null||n.add(t),()=>this.off(e,t)}off(e,t){let n=this.events.get(e);n&&(n.delete(t),n.size===0&&this.events.delete(e))}emit(e,t){var n;for(let a of(n=this.events.get(e))!=null?n:[]){let u=a(t);u&&u.catch(y=>hi.error(y))}}clear(e){e?this.events.delete(e):this.events.clear()}}}}),aM,fh,ao,rc=A({"packages/ag-charts-community/src/chart/layout/layoutManager.ts"(){"use strict";vn(),nM(),on(),aM=(e=>(e[e.Caption=0]="Caption",e[e.Legend=1]="Legend",e[e.ToolbarLeft=2]="ToolbarLeft",e[e.ToolbarBottom=3]="ToolbarBottom",e[e.Navigator=4]="Navigator",e[e.Overlay=5]="Overlay",e))(aM||{}),fh=class{constructor(){this.events=new iM,this.elements=new Map}addListener(e,t){return this.events.on(e,t)}registerElement(e,t){return this.elements.has(e)?this.elements.get(e).add(t):this.elements.set(e,new Set([t])),()=>{var n;return(n=this.elements.get(e))==null?void 0:n.delete(t)}}createContext(e,t){var a;let n=new ao(e,t);for(let u of Object.values(aM))typeof u=="number"&&((a=this.elements.get(u))==null||a.forEach(y=>{var k;(k=y(n))==null||k.catch(R=>hi.error(R))}));return n}emitLayoutComplete(e,t){var y,k;let n="layout:complete",{width:a,height:u}=e;this.events.emit(n,{type:n,axes:(y=t.axes)!=null?y:[],chart:{width:a,height:u},clipSeries:(k=t.clipSeries)!=null?k:!1,series:t.series})}},ao=class{constructor(e,t){this.width=e,this.height=t,this.layoutBox=new ki(0,0,e,t)}}}}),wv,oM=A({"packages/ag-charts-community/src/chart/chartCaptions.ts"(){"use strict";Nc(),Ai(),cp(),rc(),wv=class{constructor(){this.title=new qa,this.subtitle=new qa,this.footnote=new qa}positionCaptions(e){let{title:t,subtitle:n,footnote:a}=this,u=e.layoutBox.height/10;if(t.enabled){let{spacing:y=n.enabled?qa.SMALL_PADDING:qa.LARGE_PADDING}=t;this.positionCaption("top",t,e.layoutBox,u),this.shrinkLayoutByCaption("top",t,e.layoutBox,y)}n.enabled&&(this.positionCaption("top",n,e.layoutBox,u),this.shrinkLayoutByCaption("top",n,e.layoutBox,n.spacing)),a.enabled&&(this.positionCaption("bottom",a,e.layoutBox,u),this.shrinkLayoutByCaption("bottom",a,e.layoutBox,a.spacing))}positionAbsoluteCaptions(e){let{title:t,subtitle:n,footnote:a}=this,{rect:u}=e.series;for(let y of[t,n,a])if(y.layoutStyle==="overlay"){if(y.textAlign==="left")y.node.x=u.x+y.padding;else if(y.textAlign==="right"){let k=y.node.getBBox();y.node.x=u.x+u.width-k.width-y.padding}}}computeX(e,t){return e==="left"?t.x:e==="right"?t.x+t.width:t.x+t.width/2}positionCaption(e,t,n,a){let u=Math.max(ho.getLineHeight(t.fontSize),a);t.node.x=this.computeX(t.textAlign,n)+t.padding,t.node.y=n.y+(e==="top"?0:n.height)+t.padding,t.node.textBaseline=e,t.computeTextWrap(n.width,u)}shrinkLayoutByCaption(e,t,n,a=0){if(t.layoutStyle==="block"){let u=t.node.getBBox();n.shrink(Math.ceil(e==="top"?u.y-n.y+u.height+a:n.y+n.height-u.y+a),e)}}},b([Ge(Ei)],wv.prototype,"title",2),b([Ge(Ei)],wv.prototype,"subtitle",2),b([Ge(Ei)],wv.prototype,"footnote",2)}}),rM,fb,lu=A({"packages/ag-charts-community/src/api/preset/chartTypeOriginator.ts"(){"use strict";Mr(),on(),bn(),rM=["candlestick","hollow-candlestick","ohlc","line","step-line","hlc","high-low"],fb=class{constructor(e){this.chartService=e,this.mementoOriginatorKey="chartType"}createMemento(){var t,n;let e=(n=(t=this.chartService.publicApi)==null?void 0:t.getOptions())==null?void 0:n.chartType;return e==null&&(e="candlestick"),e}guardMemento(e){return e==null||Qt(e)&&NA(rM,e)}restoreMemento(e,t,n){var u;if(n==null)return;let a={chartType:n};(u=this.chartService.publicApi)==null||u.updateDelta(a).catch(y=>hi.error("error restoring state",y))}}}}),vh,ng=A({"packages/ag-charts-community/src/util/listeners.ts"(){"use strict";on(),vh=class{constructor(){this.registeredListeners=new Map}addListener(e,t){let n={symbol:Symbol(e),handler:t};return this.registeredListeners.has(e)?this.registeredListeners.get(e).push(n):this.registeredListeners.set(e,[n]),()=>this.removeListener(n.symbol)}removeListener(e){for(let[t,n]of this.registeredListeners.entries()){let a=n.findIndex(u=>u.symbol===e);if(a>=0){n.splice(a,1),n.length===0&&this.registeredListeners.delete(t);break}}}dispatch(e,...t){for(let n of this.getListenersByType(e))try{n.handler(...t)}catch(a){hi.errorOnce(a)}}dispatchWrapHandlers(e,t,...n){for(let a of this.getListenersByType(e))try{t(a.handler,...n)}catch(u){hi.errorOnce(u)}}getListenersByType(e){var t;return(t=this.registeredListeners.get(e))!=null?t:[]}destroy(){this.registeredListeners.clear()}}}}),Tr,Bo=A({"packages/ag-charts-community/src/util/baseManager.ts"(){"use strict";ng(),Tr=class{constructor(){this.listeners=new vh,this.destroyFns=[]}addListener(e,t){return this.listeners.addListener(e,t)}destroy(){this.listeners.destroy(),this.destroyFns.forEach(e=>e())}}}}),Ks,sM,Cs=A({"packages/ag-charts-community/src/chart/interaction/interactionStateListener.ts"(){"use strict";Bo(),Ks=(e=>(e[e.Default=32]="Default",e[e.ZoomDrag=16]="ZoomDrag",e[e.Annotations=8]="Annotations",e[e.ContextMenu=4]="ContextMenu",e[e.Animation=2]="Animation",e[e.AnnotationsSelected=1]="AnnotationsSelected",e[e.All=63]="All",e))(Ks||{}),sM=class extends Tr{addListener(e,t,n=32){return super.addListener(e,a=>{this.getState()&n&&t(a)})}}}}),zc,aT=A({"packages/ag-charts-community/src/util/destroy.ts"(){"use strict";zc=class{constructor(){this.destroyFns=[]}destroy(){this.destroyFns.forEach(e=>e()),this.destroyFns.length=0}setFns(e){this.destroy(),this.destroyFns=e}push(...e){this.destroyFns.push(...e)}}}}),Bm,vb=A({"packages/ag-charts-community/src/version.ts"(){"use strict";Bm="11.0.0"}}),xv,K0,aL=A({"packages/ag-charts-community/src/api/state/historyManager.ts"(){"use strict";Cs(),pr(),aT(),vb(),xv=Symbol("previous-memento-not-found"),K0=class{constructor(e){this.history=[],this.historyIndex=-1,this.originators=new Map,this.clearState=new Map,this.maxHistoryLength=100,this.debug=la.create(!0,"history"),this.destroyFns=new zc,this.destroyFns.setFns([e.addListener("undo",this.undo.bind(this),63),e.addListener("redo",this.redo.bind(this),63)])}destroy(){this.destroyFns.destroy()}addMementoOriginator(e){this.originators.set(e.mementoOriginatorKey,e),this.clearState.set(e.mementoOriginatorKey,e.createMemento()),this.debugEvent("History add originator:",e.mementoOriginatorKey)}clear(){this.debug("History clear:",Object.keys(this.originators)),this.history=[],this.historyIndex=-1;for(let[e,t]of this.originators.entries())this.clearState.set(e,t.createMemento())}record(e,...t){this.historyIndex<this.history.length-1&&(this.history=this.history.slice(0,this.historyIndex+1)),this.history.length>this.maxHistoryLength&&(this.history=this.history.slice(-this.maxHistoryLength));let n=new Map;for(let a of t){if(!this.originators.has(a.mementoOriginatorKey))throw new Error(`Originator [${a.mementoOriginatorKey}] has not been added to the HistoryManager.`);n.set(a.mementoOriginatorKey,a.createMemento())}this.history.push({label:e,mementos:n}),this.historyIndex=this.history.length-1,this.debugEvent(`History record: [${e}]`)}undo(){let e=this.history[this.historyIndex];if(e){for(let t of e.mementos.keys()){let n=this.findPreviousMemento(t);if(n===xv)throw new Error(`Could not find previous memento for [${t}].`);this.restoreMemento(t,n)}this.historyIndex-=1,this.debugEvent(`History undo: [${e.label}]`)}}redo(){let e=this.history[this.historyIndex+1];if(e){for(let[t,n]of e.mementos.entries())this.restoreMemento(t,n);this.historyIndex+=1,this.debugEvent(`History redo: [${e.label}]`)}}findPreviousMemento(e){for(let t=this.historyIndex-1;t>=0;t--)if(this.history[t].mementos.has(e))return this.history[t].mementos.get(e);return this.clearState.has(e)?this.clearState.get(e):xv}restoreMemento(e,t){var n;(n=this.originators.get(e))==null||n.restoreMemento(Bm,Bm,t)}debugEvent(...e){this.debug(...e,this.history.map((t,n)=>n===this.historyIndex?`** ${t.label} **`:t.label))}}}}),cu,q0=A({"packages/ag-charts-community/src/api/state/memento.ts"(){"use strict";on(),bn(),cu=class s6{constructor(t){this.version=t.split("-")[0]}save(...t){let n={version:this.version};for(let a of Object.values(t))n[a.mementoOriginatorKey]=this.encode(a,a.createMemento());return n}restore(t,...n){if(typeof t!="object"){hi.warnOnce(`Could not restore data of type [${typeof t}], expecting an object, ignoring.`);return}if(t==null){hi.warnOnce("Could not restore data of type [null], expecting an object, ignoring.");return}if(!("version"in t)||typeof t.version!="string"){hi.warnOnce("Could not restore data, missing [version] string in object, ignoring.");return}for(let a of n){let u=this.decode(a,t[a.mementoOriginatorKey]);if(!a.guardMemento(u)){hi.warnOnce(`Could not restore [${a.mementoOriginatorKey}] data, value was invalid, ignoring.`,u);return}a.restoreMemento(this.version,t.version,u)}}encode(t,n){try{return JSON.parse(JSON.stringify(n,s6.encodeTypes))}catch(a){throw new Error(`Failed to encode [${t.mementoOriginatorKey}] value [${a}].`,{cause:a})}}decode(t,n){if(n==null)return n;try{return JSON.parse(JSON.stringify(n),s6.decodeTypes)}catch(a){throw new Error(`Failed to decode [${t.mementoOriginatorKey}] value [${a}].`,{cause:a})}}static encodeTypes(t,n){return je(this[t])?{__type:"date",value:this[t].toISOString()}:n}static decodeTypes(t,n){return ur(this[t])&&"__type"in this[t]&&this[t].__type==="date"?new Date(this[t].value):n}}}}),Mv,oL=A({"packages/ag-charts-community/src/api/state/stateManager.ts"(){"use strict";ra(),vb(),q0(),Mv=class{constructor(){this.caretaker=new cu(Bm),this.state=new Map}setState(e,t){yo(this.state.get(e.mementoOriginatorKey),t)||this.setStateAndRestore(e,t)}setStateAndRestore(e,t){this.state.set(e.mementoOriginatorKey,t),this.restoreState(e)}restoreState(e){let{caretaker:t,state:n}=this;if(!n.has(e.mementoOriginatorKey))return;let a=n.get(e.mementoOriginatorKey);t.restore({version:t.version,[e.mementoOriginatorKey]:a},e)}}}}),RD,PD=A({"packages/ag-charts-community/src/styles.css"(){RD=`.ag-charts-wrapper,.ag-charts-wrapper:after,.ag-charts-wrapper:before,.ag-charts-wrapper *,.ag-charts-wrapper *:after,.ag-charts-wrapper *:before{box-sizing:border-box}.ag-charts-wrapper{position:relative;user-select:none}.ag-charts-tab-guard{width:0%;height:0%;position:absolute;pointer-events:none}.ag-charts-canvas-center{width:100%;height:100%;position:absolute;touch-action:auto;pointer-events:auto;display:flex;align-items:var(--ag-charts-align);justify-content:var(--ag-charts-justify)}.ag-charts-canvas-container,.ag-charts-canvas{position:relative;user-select:none}.ag-charts-canvas-container>*,.ag-charts-canvas>*{display:block;pointer-events:none}.ag-charts-series-area{outline:none;pointer-events:none;position:absolute}.ag-charts-swapchain{outline:none;opacity:0;pointer-events:auto;position:absolute;width:100%;height:100%}.ag-charts-swapchain:focus-visible{opacity:1}.ag-charts-canvas-proxy,.ag-charts-canvas-overlay{inset:0;pointer-events:none;position:absolute;user-select:none}.ag-charts-canvas-overlay>*{position:absolute;pointer-events:auto}.ag-charts-theme-default,.ag-charts-theme-default-dark{--ag-charts-active-color: var(--ag-active-color, #2196f3);--ag-charts-background-color: var(--ag-background-color, #fff);--ag-charts-foreground-color: var(--ag-foreground-color, #181d1f);--ag-charts-border-color: var(--ag-border-color, #dddddd);--ag-charts-hover-color: color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 12%);--ag-charts-font-family: "Verdana", sans-serif;--ag-charts-font-size: var(--ag-font-size, 14px);--ag-charts-size: var(--ag-grid-size, 8px);--ag-charts-border: var(--ag-charts-border-color) var(--ag-borders, solid 1px);--ag-charts-border-critical: var(--ag-borders-critical, solid 1px);--ag-charts-floating-shadow: 0 2px 8px 0 color-mix(in srgb, black 8%, transparent);--ag-charts-layer-ui-overlay: 5;--ag-charts-layer-tooltip: 4;--ag-charts-layer-toolbar: 3;--ag-charts-layer-crosshair: 2;--ag-charts-layer-annotations: 1;--ag-charts-align: center;--ag-charts-justify: center;--ag-charts-axis-label-background-color: #474747;--ag-charts-axis-label-color: #ffffff;--ag-charts-tooltip-background-color: #fafafb;--ag-charts-tooltip-text-color: var(--ag-charts-foreground-color);--ag-charts-tooltip-border: 1px solid var(--ag-charts-border-color);--ag-charts-content-padding: 8px 12px;--ag-charts-content-gap: 8px;--ag-charts-content-compact-padding: 3px 6px;--ag-charts-tooltip-border-radius: 4px;--ag-charts-toolbar-foreground-color: var(--ag-header-foreground-color, var(--ag-charts-foreground-color));--ag-charts-toolbar-background-color: var( --ag-header-background-color, color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-foreground-color) 2%) );--ag-charts-toolbar-shadow: var(--ag-charts-floating-shadow);--ag-charts-toolbar-size: 34px;--ag-charts-toolbar-size-small: 24px;--ag-charts-toolbar-border: var(--ag-charts-border-critical, solid 1px) var(--ag-charts-border-color);--ag-charts-toolbar-hover-color: color-mix( in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 12% );--ag-charts-toolbar-focus-color: var(--ag-charts-active-color);--ag-charts-toolbar-active-background-color: var(--ag-charts-toolbar-hover-color);--ag-charts-toolbar-active-color: var(--ag-charts-active-color);--ag-charts-toolbar-disabled-foreground-color: var( --ag-disabled-foreground-color, color-mix(in srgb, transparent, var(--ag-charts-toolbar-foreground-color) 50%) );--ag-charts-toolbar-disabled-background-color: color-mix( in srgb, var(--ag-charts-toolbar-background-color), var(--ag-charts-toolbar-foreground-color) 6% );--ag-charts-toolbar-gap: var(--ag-charts-size);--ag-charts-toolbar-font-size: 13px;--ag-charts-toolbar-font-size-small: 12px;--ag-charts-toolbar-button-padding: 6px;--ag-charts-toolbar-button-padding-small: 1px;--ag-charts-popover-background-color: var(--ag-charts-toolbar-background-color);--ag-charts-popover-foreground-color: var(--ag-charts-toolbar-foreground-color);--ag-charts-popover-border: var(--ag-charts-toolbar-border);--ag-charts-popover-border-radius: var(--ag-border-radius, 4px);--ag-charts-popover-active-color: var(--ag-charts-toolbar-active-color);--ag-charts-popover-hover-color: var(--ag-charts-toolbar-hover-color);--ag-charts-popover-active-background-color: var(--ag-charts-toolbar-active-background-color);--ag-charts-popover-font-size: 14px;--ag-charts-popover-font-size-small: var(--ag-charts-toolbar-font-size-small);--ag-charts-popover-shadow: var(--ag-charts-floating-shadow);--ag-charts-dialog-input-group-label-color: color-mix(in srgb, transparent, var(--ag-charts-foreground-color) 55%);--ag-charts-dialog-tab-color--inactive: color-mix(in srgb, transparent, var(--ag-charts-foreground-color) 55%);--ag-charts-button-radius: var(--ag-border-radius, 4px);--ag-charts-focus-border-color: var(--ag-input-focus-border-color, var(--ag-charts-active-color));--ag-charts-focus-border: solid 1px var(--ag-charts-focus-border-color);--ag-charts-focus-border-shadow: var( --ag-input-focus-box-shadow, 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color, var(--ag-charts-active-color)) 20%) );--ag-charts-focus-box-shadow: var(--box-shadow), 0 0 0 2px #fff8, var(--ag-charts-focus-border-shadow);--ag-charts-icon-font-family: "agChartsDefault";--ag-charts-icon-font-weight: normal;--ag-charts-icon-font-color: color-mix(in srgb, transparent, var(--ag-charts-foreground-color), 90%);--ag-charts-icon-size: 20px;--ag-charts-input-background-color: var(--ag-charts-background-color);--ag-charts-input-background-color--hover: var(--ag-charts-hover-color);--ag-charts-input-background-color--active: var(--ag-charts-hover-color);--ag-charts-input-border-color: var(--ag-charts-border-color);--ag-charts-input-border-color--active: var(--ag-charts-active-color);--ag-charts-input-border-radius: var(--ag-border-radius, 4px);--ag-charts-input-color--active: var(--ag-charts-active-color);--ag-charts-input-focus-outline: var(--ag-charts-focus-border);--ag-charts-input-focus-box-shadow: var(--ag-charts-focus-border-shadow);--ag-charts-input-font-family: var(--ag-charts-font-family);--ag-charts-input-font-size: var(--ag-charts-font-size);--ag-charts-input-padding: 8px;--ag-charts-input-padding-large: 10px;--ag-charts-input-placeholder-color: #888888;--ag-charts-input-spacing: 8px;--ag-charts-input-transition-duration: .25s;--ag-charts-input-transition-duration--fast: .1s;--ag-charts-input-transition-timing-function: ease-out;--ag-charts-input-checkbox-background-color: #babbbc;--ag-charts-input-checkbox-background-color--checked: var(--ag-charts-active-color)}.ag-charts-theme-default-dark{--ag-charts-background-color: var(--ag-background-color, color-mix(in srgb, #fff, #182230 97%));--ag-charts-foreground-color: var(--ag-foreground-color, #fff);--ag-charts-border-color: var(--ag-border-color, rgba(255, 255, 255, .16));--ag-charts-hover-color: color-mix(in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 18%);--ag-charts-floating-shadow: 0 2px 12px 0 color-mix(in srgb, black 33.3%, transparent);--ag-charts-axis-label-background-color: #9caebb;--ag-charts-axis-label-color: #000000;--ag-charts-tooltip-background-color: #28313e;--ag-charts-tooltip-border: 1px solid #474e59;--ag-charts-toolbar-background-color: var(--ag-header-background-color, color-mix(in srgb, #fff, #182230 93%));--ag-charts-toolbar-hover-color: color-mix( in srgb, var(--ag-charts-background-color), var(--ag-charts-active-color) 18% );--ag-charts-dialog-input-group-label-text-color: #ffffff;--ag-charts-focus-border-shadow: var( --ag-input-focus-box-shadow, 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color, var(--ag-charts-active-color)) 20%) );--ag-charts-input-placeholder-color: #aaaaaa}.ag-charts-icon{display:block;width:var(--ag-charts-icon-size);height:var(--ag-charts-icon-size);speak:none;speak:never;mask:var(--icon) center / contain no-repeat;background-color:currentColor;transition:background-color .25s ease-in-out}.ag-charts-icon-align-center{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNNyAxMGg2djFIN3pNNCA3aDEydjFINHptMSA2aDEwdjFINXoiLz48L3N2Zz4=)}.ag-charts-icon-align-left{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNNCAxMGg2djFINHptMC0zaDEydjFINHptMCA2aDEwdjFINHoiLz48L3N2Zz4=)}.ag-charts-icon-align-right{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMTAgMTBoNnYxaC02ek00IDdoMTJ2MUg0em0yIDZoMTB2MUg2eiIvPjwvc3ZnPg==)}.ag-charts-icon-arrow-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE1LjI5MyA0LjVIMTIuNXYtMUgxN3Y0aC0xVjUuMjA3bC05LjY0NiA5LjY0Ny0uNzA4LS43MDh6IiBmaWxsPSIjMDAwIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03IDE2YTIuNSAyLjUgMCAxIDEtNSAwIDIuNSAyLjUgMCAwIDEgNSAwbS0yLjUgMS41YTEuNSAxLjUgMCAxIDAgMC0zIDEuNSAxLjUgMCAwIDAgMCAzIiBmaWxsPSIjMDAwIi8+PC9zdmc+)}.ag-charts-icon-arrow-down-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02IDhMMS41IDhMMTAgMThMMTguNSA4TDE0IDhMMTQgM0w2IDNMNiA4Wk03IDRMNyA5SDMuNjYyNDRMMTAgMTYuNDU2TDE2LjMzNzYgOUwxMyA5TDEzIDRMNyA0WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-arrow-up-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNCAxMkgxOC41TDEwIDJMMS41IDEySDZMNi4wMDAwMiAxN0gxNFYxMlpNMTMgMTZWMTFIMTYuMzM3NkwxMCAzLjU0NDA1TDMuNjYyNDQgMTFIN0w3LjAwMDAyIDE2SDEzWiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-callout-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMyA0LjVBMS41IDEuNSAwIDAgMSA0LjUgM2gxMUExLjUgMS41IDAgMCAxIDE3IDQuNXY4YTEuNSAxLjUgMCAwIDEtMS41IDEuNWgtNC41MTRhMjYgMjYgMCAwIDAtMi4wMTcgMS41NGwtLjMxNC4yNmMtLjU1LjQ1Ny0xLjExNS45MjYtMS43NiAxLjQtLjY2OS40OTEtMS41NjItLjAxMi0xLjU2Mi0uOFYxNEg0LjVBMS41IDEuNSAwIDAgMSAzIDEyLjV6TTQuNSA0YS41LjUgMCAwIDAtLjUuNXY4YS41LjUgMCAwIDAgLjUuNWgxLjgzM3YzLjM3MmEzNiAzNiAwIDAgMCAxLjY3OC0xLjMzOGwuMzItLjI2NWEyNiAyNiAwIDAgMSAyLjIyNS0xLjY4NWwuMTI2LS4wODRIMTUuNWEuNS41IDAgMCAwIC41LS41di04YS41LjUgMCAwIDAtLjUtLjV6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-candlestick-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNyAxdjNoMnYxMkg3djNINnYtM0g0VjRoMlYxek01IDVoM3YxMEg1ek0xMSAxNFY2aDJWMy4yNWgxVjZoMnY4aC0ydjIuNzVoLTFWMTR6bTEtN2gzdjZoLTN6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-close{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtNSA1IDEwIDEwTTUgMTUgMTUgNSIgc3Ryb2tlPSIjMDAwIi8+PC9zdmc+)}.ag-charts-icon-comment-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNy41MTMgMy45OTVhNi41IDYuNSAwIDAgMSA2LjA5OCAxMS40MWMtLjU4OC4zOTMtMS4yMTcuNTM2LTEuODI5LjU4NWExMyAxMyAwIDAgMS0xLjI3LjAxN0EyNyAyNyAwIDAgMCAxMCAxNkg0LjVhLjUuNSAwIDAgMS0uNS0uNVYxMHEwLS4yNDctLjAwNy0uNTEzYy0uMDA4LS40MTYtLjAxNi0uODU3LjAxNy0xLjI2OS4wNS0uNjEyLjE5Mi0xLjI0LjU4NS0xLjgzYTYuNSA2LjUgMCAwIDEgMi45MTgtMi4zOTNtMy41Ni42MWE1LjUgNS41IDAgMCAwLTUuNjQ2IDIuMzRjLS4yNjYuMzk3LS4zNzkuODQyLS40MiAxLjM1NC0uMDMuMzYtLjAyMi43MTgtLjAxNSAxLjEwOFE1IDkuNjg5IDUgMTB2NWg1cS4zMTEuMDAxLjU5My4wMDhjLjM5LjAwNy43NDcuMDE1IDEuMTA4LS4wMTUuNTEyLS4wNDEuOTU3LS4xNTQgMS4zNTUtLjQyYTUuNSA1LjUgMCAwIDAtMS45ODMtOS45NjciIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-crosshair-add-line{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTEwIDUuNWEuNS41IDAgMCAxIC41LjV2My41aDMuODc1YS41LjUgMCAwIDEgMCAxSDEwLjV2NC4yNWEuNS41IDAgMSAxLTEgMFYxMC41SDUuNjI1YS41LjUgMCAxIDEgMC0xSDkuNVY2YS41LjUgMCAwIDEgLjUtLjUiLz48L3N2Zz4=)}.ag-charts-icon-date-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMiAyaDF2MTZIMnptMTUgMGgxdjE2aC0xeiIgZmlsbD0iIzE4MUQxRiIvPjxwYXRoIGQ9Ik0xMy4xNTcgMTFINXYtMWg3Ljc5M0wxMSA4LjIwN2wuNzA3LS43MDcgMy4xODIgMy4xODItMy4xODIgMy4xODItLjcwNy0uNzA3eiIgZmlsbD0iIzAwMCIvPjwvc3ZnPg==)}.ag-charts-icon-date-price-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMyAySDJ2MTZoMXptMy41MDcgNC44OUw4LjUgNC44OTVWMTBINXYxaDMuNXY3aDF2LTdoNS4wODhsLTEuOTU3IDEuOTU3LjcwNy43MDcgMy4xODItMy4xODJMMTMuMzM4IDcuM2wtLjcwNy43MDdMMTQuNjI0IDEwSDkuNVY0LjkzMmwxLjk1NyAxLjk1Ny43MDctLjcwN0w4Ljk4MiAzIDUuOCA2LjE4MnoiIGZpbGw9IiMxODFEMUYiLz48L3N2Zz4=)}.ag-charts-icon-delete{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZD0iTTguNDk2IDguOTk2QS41LjUgMCAwIDEgOSA5LjQ5MnY0YS41LjUgMCAxIDEtMSAuMDA4di00YS41LjUgMCAwIDEgLjQ5Ni0uNTA0TTEyIDkuNWEuNS41IDAgMCAwLTEgMHY0YS41LjUgMCAwIDAgMSAweiIvPjxwYXRoIGZpbGw9IiMxMzE3MjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNVYzLjVBMi41IDIuNSAwIDAgMSA4LjUgMWgzQTIuNSAyLjUgMCAwIDEgMTQgMy41VjVoMi44MzNhLjUuNSAwIDAgMSAwIDFIMTV2MTAuMjVjMCAuNDE1LS4wNjYuODYzLS4zIDEuMjIxLS4yNTcuMzk0LS42NzIuNjEyLTEuMi42MTJoLTdjLS41MjggMC0uOTQzLS4yMTgtMS4yLS42MTItLjIzNC0uMzU4LS4zLS44MDYtLjMtMS4yMjFWNkgzLjMzM2EuNS41IDAgMCAxIDAtMXptMS0xLjVBMS41IDEuNSAwIDAgMSA4LjUgMmgzQTEuNSAxLjUgMCAwIDEgMTMgMy41VjVIN3pNNiAxNi4yNVY2aDh2MTAuMjVjMCAuMzM1LS4wNTkuNTU0LS4xMzguNjc1LS4wNTUuMDg1LS4xNC4xNTgtLjM2Mi4xNThoLTdjLS4yMjIgMC0uMzA3LS4wNzMtLjM2Mi0uMTU4LS4wOC0uMTIxLS4xMzgtLjM0LS4xMzgtLjY3NSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-disjoint-channel,.ag-charts-icon-disjoint-channel-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTkuMDI4IDE3LjQ2YTIuMjUgMi4yNSAwIDAgMC00LjA5Mi0xLjg1bC05LjUxMS0yLjM3OGEyLjI1IDIuMjUgMCAxIDAtLjIyNS45NzRsOS40NzUgMi4zNjlhMi4yNTEgMi4yNTEgMCAwIDAgNC4zNTMuODg2bS0xLjY2Mi0xLjk2NWExLjI1IDEuMjUgMCAxIDEtLjg4NSAyLjMzOCAxLjI1IDEuMjUgMCAwIDEgLjg4NS0yLjMzOE00LjM0MyAxMy42NjlhMS4yNSAxLjI1IDAgMSAwLTIuMzM4LS44ODUgMS4yNSAxLjI1IDAgMCAwIDIuMzM4Ljg4NU0zLjk3IDguNzY5YTIuMjUgMi4yNSAwIDAgMCAxLjQ1NS0yLjExbDkuNTExLTIuMzc4YTIuMjUgMi4yNSAwIDEgMC0uMjYtLjk2NUw1LjIgNS42ODVhMi4yNSAyLjI1IDAgMSAwLTEuMjMgMy4wODRtLjM3My0yLjU0N2ExLjI1IDEuMjUgMCAxIDEtMi4zMzguODg1IDEuMjUgMS4yNSAwIDAgMSAyLjMzOC0uODg1bTEzLjc1LTMuNDM4YTEuMjUgMS4yNSAwIDEgMS0yLjMzOC44ODUgMS4yNSAxLjI1IDAgMCAxIDIuMzM4LS44ODUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-drag-handle{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSI1Ljc1IiBjeT0iNy43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iOS43NSIgY3k9IjcuNzUiIHI9Ii43NSIgZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuNSIvPjxjaXJjbGUgY3g9IjEzLjc1IiBjeT0iNy43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iMTMuNzUiIGN5PSIxMS43NSIgcj0iLjc1IiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PGNpcmNsZSBjeD0iOS43NSIgY3k9IjExLjc1IiByPSIuNzUiIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjUiLz48Y2lyY2xlIGN4PSI1Ljc1IiBjeT0iMTEuNzUiIHI9Ii43NSIgZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuNSIvPjwvc3ZnPg==)}.ag-charts-icon-fibonacci-retracement-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA1aDEydjFIMnoiLz48Y2lyY2xlIGN4PSIxNS43NSIgY3k9IjUuNSIgcj0iMS43NSIgc3Ryb2tlPSIjMDAwIi8+PGNpcmNsZSBjeD0iNC4yNSIgY3k9IjE0LjUiIHI9IjEuNzUiIHN0cm9rZT0iIzAwMCIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik0xOCAxNUg2di0xaDEyem0wLTQuNUgydi0xaDE2eiIvPjwvc3ZnPg==)}.ag-charts-icon-fill-color{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtOC4wNzEgNC4wNi0uOTI0LS45MjQuNzA3LS43MDcgNy4yODggNy4yODgtNC45NSA0Ljk1YTMuNSAzLjUgMCAwIDEtNC45NSAwbC0xLjQxNC0xLjQxNGEzLjUgMy41IDAgMCAxIDAtNC45NXptLjcwNy43MDhMNC41MzYgOS4wMWEyLjUgMi41IDAgMCAwIDAgMy41MzZMNS45NSAxMy45NmEyLjUgMi41IDAgMCAwIDMuNTM1IDBsNC4yNDMtNC4yNDN6bTYuOSA3LjIwMi0uMzQ1LjM2My0uMzQ0LS4zNjNhLjUuNSAwIDAgMSAuNjg4IDBtLS4zNDUgMS4wOGE4IDggMCAwIDAtLjI4LjMyMyA0LjMgNC4zIDAgMCAwLS40MDkuNTgyYy0uMTEzLjIwMS0uMTQ0LjMyNi0uMTQ0LjM3OGEuODMzLjgzMyAwIDAgMCAxLjY2NyAwYzAtLjA1Mi0uMDMxLS4xNzctLjE0NC0uMzc4YTQuMyA0LjMgMCAwIDAtLjQxLS41ODIgOCA4IDAgMCAwLS4yOC0uMzIybS0uMzQ0LTEuMDguMzQ0LjM2My4zNDQtLjM2My4wMDIuMDAyLjAwNC4wMDQuMDEzLjAxMmE2IDYgMCAwIDEgLjIwNi4yMDhjLjEzMS4xMzYuMzA4LjMyNy40ODUuNTQ1LjE3Ni4yMTUuMzYzLjQ2Ny41MDcuNzI0LjEzNy4yNDMuMjczLjU1My4yNzMuODY4YTEuODMzIDEuODMzIDAgMSAxLTMuNjY3IDBjMC0uMzE1LjEzNi0uNjI1LjI3My0uODY4LjE0NC0uMjU3LjMzLS41MDkuNTA3LS43MjRhOSA5IDAgMCAxIC42NDUtLjcwOGwuMDQ2LS4wNDUuMDEzLS4wMTIuMDA0LS4wMDR6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-hollow-candlestick-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1vcGFjaXR5PSIuMTUiIGQ9Ik01IDVoM3YxMEg1eiIvPjxwYXRoIGZpbGw9IiMxMzE3MjIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTcgMXYzaDJ2MTJIN3YzSDZ2LTNINFY0aDJWMXpNNSA1aDN2MTBINXptNyAyaDN2NmgtM3ptLTEgN1Y2aDJWMy4yNWgxVjZoMnY4aC0ydjIuNzVoLTFWMTR6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-horizontal-line,.ag-charts-icon-horizontal-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNLjUgOS41aDcuMzA2YTIuMjUgMi4yNSAwIDAgMSA0LjM4OCAwSDE5LjV2MWgtNy4zMDZhMi4yNSAyLjI1IDAgMCAxLTQuMzg4IDBILjV6bTkuNSAxLjc1YTEuMjUgMS4yNSAwIDEgMCAwLTIuNSAxLjI1IDEuMjUgMCAwIDAgMCAyLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-line-color{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTQuMjQyIDIuNzIyYy0uNjEyIDAtMS4yLjI0My0xLjYzMi42NzVsLTEuMzQzIDEuMzQ0YS41LjUgMCAwIDAtLjExMi4xMTJMNC4wNSAxMS45NTljLS4yMDcuMjA3LS4zNi40Ni0uNDQ2Ljc0di4wMDFsLS42OSAyLjc2N3YuMDAyYS44Mi44MiAwIDAgMCAxLjAyMiAxLjAyMWguMDAybDIuNjM0LS44MjJjLjI4LS4wODUuNTM0LS4yMzcuNzQtLjQ0M2w3LjEwNy03LjEwOGEuNS41IDAgMCAwIC4xMTItLjExMmwxLjM0My0xLjM0M2EyLjMwOCAyLjMwOCAwIDAgMC0xLjYzMi0zLjk0TTE0LjEyMiA3bDEuMDQ0LTEuMDQ1YTEuMzA4IDEuMzA4IDAgMSAwLTEuODQ5LTEuODVMMTIuMjcxIDUuMTV6bS0yLjU1OC0xLjE0Mi02LjgwNyA2LjgwOWEuOC44IDAgMCAwLS4xOTYuMzI1bC0uNzUgMi40NjggMi40Ny0uNzQ5YS44LjggMCAwIDAgLjMyNS0uMTk0bDYuODA4LTYuODF6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-line-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTcuMzYyIDQuODczLTQuNTk0IDYuNjU0LTQuODUtMy4zMTctNC4yNTEgNi45NzctLjg1NC0uNTJMNy42MTIgNi43OWw0Ljg5OSAzLjM1IDQuMDI4LTUuODM2eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-line-style-dashed{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA5aDR2MUgyem0xMiAwaDR2MWgtNHpNOCA5aDR2MUg4eiIvPjwvc3ZnPg==)}.ag-charts-icon-line-style-dotted{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyLjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iNC41IiBjeT0iOS41IiByPSIuNSIgZmlsbD0iIzAwMCIvPjxjaXJjbGUgY3g9IjYuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSI4LjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iMTAuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSIxMi41IiBjeT0iOS41IiByPSIuNSIgZmlsbD0iIzAwMCIvPjxjaXJjbGUgY3g9IjE0LjUiIGN5PSI5LjUiIHI9Ii41IiBmaWxsPSIjMDAwIi8+PGNpcmNsZSBjeD0iMTYuNSIgY3k9IjkuNSIgcj0iLjUiIGZpbGw9IiMwMDAiLz48L3N2Zz4=)}.ag-charts-icon-line-style-solid{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMiA5aDE2djFIMnoiLz48L3N2Zz4=)}.ag-charts-icon-line-with-markers-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTguMTk4IDQuODg4LTMuNTU2IDQuOTE4YTIuMjUgMi4yNSAwIDEgMS0zLjg2Ni43NWwtMS40MzItLjlhMi4yNCAyLjI0IDAgMCAxLTIuMDA5LjQzNWwtMy44MjggNi40MjgtLjg2LS41MTJMNi40NSA5LjYyM2EyLjI1IDIuMjUgMCAxIDEgMy41MS0uNzYxbDEuMzI5LjgzNWEyLjI0IDIuMjQgMCAwIDEgMi41NTctLjQ5N2wzLjU0Mi00Ljg5OHptLTQuOTYgNS4xNTNhMS4yNSAxLjI1IDAgMSAwLS42NCAyLjQxOSAxLjI1IDEuMjUgMCAwIDAgLjY0LTIuNDE5TTkuMSA4LjMyMXEuMDY2LS4xOTIuMDY3LS40MDRhMS4yNSAxLjI1IDAgMSAwLS4wNjcuNDA0IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-lock,.ag-charts-icon-locked{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuMjA3IDMuNzY0YTIuODk0IDIuODk0IDAgMCAwLTIuODk1IDIuODk0VjloNS43ODlWNi42NThhMi44OTQgMi44OTQgMCAwIDAtMi44OTUtMi44OTRNMTQuMSA5VjYuNjU4YTMuODk0IDMuODk0IDAgMSAwLTcuNzg5IDB2Mi4zNDlBMi41IDIuNSAwIDAgMCA0IDExLjV2M0EyLjUgMi41IDAgMCAwIDYuNSAxN2g4YTIuNSAyLjUgMCAwIDAgMi41LTIuNXYtM0EyLjUgMi41IDAgMCAwIDE0LjUgOXpNNi41IDEwQTEuNSAxLjUgMCAwIDAgNSAxMS41djNBMS41IDEuNSAwIDAgMCA2LjUgMTZoOGExLjUgMS41IDAgMCAwIDEuNS0xLjV2LTNhMS41IDEuNSAwIDAgMC0xLjUtMS41eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-measurer-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibTQuNDYxIDEyLjcxIDEuNTMyLTEuNTMxIDEuNDE0IDEuNDE0LjcwNy0uNzA3TDYuNyAxMC40NzJsMS41MzItMS41MzMgMiAyIC43MDctLjcwNy0yLTIgNi4wMS02LjAxIDIuODMgMi44MjhMNS4wNSAxNy43NzggMi4yMjIgMTQuOTVsMS41MzItMS41MzIgMS40MTQgMS40MTQuNzA3LS43MDd6TS44MDggMTQuOTVsLjcwNy0uNzA3TDE0LjI0MyAxLjUxNWwuNzA3LS43MDcuNzA3LjcwNyAyLjgyOCAyLjgyOC43MDcuNzA3LS43MDcuNzA3TDUuNzU3IDE4LjQ4NWwtLjcwNy43MDctLjcwNy0uNzA3LTIuODI4LTIuODI4em0xMS4wNzgtNi44MzVMMTAuNDcgNi43bC43MDctLjcwNyAxLjQxNSAxLjQxNHptLjgyNC0zLjY1NCAxIDEgLjcwOC0uNzA3LTEtMXoiIGZpbGw9IiMxODFEMUYiLz48L3N2Zz4=)}.ag-charts-icon-note-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMyA0LjVBMS41IDEuNSAwIDAgMSA0LjUgM2gxMUExLjUgMS41IDAgMCAxIDE3IDQuNXY4YTEuNSAxLjUgMCAwIDEtMS41IDEuNWgtMy4yMWwtMS40NjkgMi41N2ExIDEgMCAwIDEtMS42ODIuMDg1TDcuMjQzIDE0SDQuNUExLjUgMS41IDAgMCAxIDMgMTIuNXpNNC41IDRhLjUuNSAwIDAgMC0uNS41djhhLjUuNSAwIDAgMCAuNS41aDMuMjU3bDIuMTk2IDMuMDc0TDExLjcxIDEzaDMuNzlhLjUuNSAwIDAgMCAuNS0uNXYtOGEuNS41IDAgMCAwLS41LS41eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNi41IDYuNUEuNS41IDAgMCAxIDcgNmg2YS41LjUgMCAwIDEgMCAxSDdhLjUuNSAwIDAgMS0uNS0uNU02LjUgOS41QS41LjUgMCAwIDEgNyA5aDZhLjUuNSAwIDAgMSAwIDFIN2EuNS41IDAgMCAxLS41LS41IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-ohlc-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZD0iTTEzIDExaC0zdi0xaDNWM2gxdjJoNHYxaC00djExaC0xek02IDE3di0yaDN2LTFINlY0SDV2MUgydjFoM3YxMXoiLz48L3N2Zz4=)}.ag-charts-icon-pan-end{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0ibTYuNjQ2IDEzLjgxMy0uMzUzLjM1NC43MDcuNzA3LjM1NC0uMzU0ek0xMS4xNjYgMTBsLjM1NC4zNTQuMzU0LS4zNTQtLjM1NC0uMzU0ek03LjM1NSA1LjQ4IDcgNS4xMjZsLS43MDcuNzA3LjM1My4zNTR6bTAgOS4wNCA0LjE2Ni00LjE2Ni0uNzA3LS43MDgtNC4xNjcgNC4xNjd6bTQuMTY2LTQuODc0TDcuMzU0IDUuNDhsLS43MDguNzA3IDQuMTY3IDQuMTY3ek0xMy4wODMgNXYxMGgxVjV6Ii8+PC9zdmc+)}.ag-charts-icon-pan-left{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTIuNzkgNS44MzMgOC42MjUgMTBsNC4xNjYgNC4xNjctLjcwNy43MDdMNy4yMSAxMGw0Ljg3My00Ljg3NHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-pan-right{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNy4yMSAxNC4xNjcgMTEuMzc2IDEwIDcuMjEgNS44MzNsLjcwNy0uNzA3TDEyLjc5IDEwbC00Ljg3MyA0Ljg3NHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-pan-start{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTYgNXYxMGgxVjV6TTkuNjI0IDEwbDQuMTY2LTQuMTY3LS43MDctLjcwN0w4LjIxIDEwbDQuODc0IDQuODc0LjcwNy0uNzA3eiIvPjwvc3ZnPg==)}.ag-charts-icon-parallel-channel,.ag-charts-icon-parallel-channel-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTcuNzIgNS4zMzFBMi4yNSAyLjI1IDAgMSAwIDE0LjcwNSAzLjZsLTkuNDkgNC41NjJhMi4yNSAyLjI1IDAgMSAwIC4yMDkgMS4wMWw5LjY2Mi00LjY0NmEyLjI1IDIuMjUgMCAwIDAgMi42MzQuODA1bS4zNzMtMi41NDdhMS4yNSAxLjI1IDAgMSAxLTIuMzM4Ljg4NSAxLjI1IDEuMjUgMCAwIDEgMi4zMzgtLjg4NU00LjM0MyA4LjY3YTEuMjUgMS4yNSAwIDEgMS0yLjMzOC44ODUgMS4yNSAxLjI1IDAgMCAxIDIuMzM4LS44ODVNNS4zMDcgMTYuNzI4YTIuMjUgMi4yNSAwIDEgMS0uNTI1LS44NThsOS45MjMtNC43N2EyLjI1IDIuMjUgMCAxIDEgLjM4MS45MjZ6bS0uOTY0LjI3NGExLjI1IDEuMjUgMCAxIDEtMi4zMzguODg1IDEuMjUgMS4yNSAwIDAgMSAyLjMzOC0uODg1bTEzLjAyMy01LjEwNmExLjI1IDEuMjUgMCAxIDAtLjg4NS0yLjMzOSAxLjI1IDEuMjUgMCAwIDAgLjg4NSAyLjMzOSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-position-bottom{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4yNSIgZD0iTTMgMTBoMTR2MUgzem0zLTNoOHYxSDZ6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTYgMTNoOHYxSDZ6Ii8+PC9zdmc+)}.ag-charts-icon-position-center{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBkPSJNMyAxMGgxNHYxSDN6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuMjUiIGQ9Ik02IDdoOHYxSDZ6bTAgNmg4djFINnoiLz48L3N2Zz4=)}.ag-charts-icon-position-top{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4yNSIgZD0iTTMgMTBoMTR2MUgzeiIvPjxwYXRoIGZpbGw9IiMwMDAiIGQ9Ik02IDdoOHYxSDZ6Ii8+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1vcGFjaXR5PSIuMjUiIGQ9Ik02IDEzaDh2MUg2eiIvPjwvc3ZnPg==)}.ag-charts-icon-price-label-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNC41IDNBMS41IDEuNSAwIDAgMCAzIDQuNVYxM2ExLjUgMS41IDAgMCAwIDEuNSAxLjVoLjgzM3YuMDU3Yy4yNDItLjI5OS41OTctLjUwMyAxLS41NDhWMTMuNUg0LjVBLjUuNSAwIDAgMSA0IDEzVjQuNWEuNS41IDAgMCAxIC41LS41aDExYS41LjUgMCAwIDEgLjUuNXY4YS41LjUgMCAwIDEtLjUuNWgtNC44MThsLS4xMjYuMDg0YTI2IDI2IDAgMCAwLTIuMjI1IDEuNjg1bC0uMzIuMjY1LS4wNjguMDU2YTEuNSAxLjUgMCAwIDEtMi42MDkgMS4zNTRjLjAzMy43NjMuOTA1IDEuMjM4IDEuNTYuNzU2LjY0Ni0uNDc0IDEuMjEtLjk0MyAxLjc2MS0xLjRsLjMxMy0uMjZBMjYgMjYgMCAwIDEgMTAuOTg2IDE0SDE1LjVhMS41IDEuNSAwIDAgMCAxLjUtMS41di04QTEuNSAxLjUgMCAwIDAgMTUuNSAzeiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC43MTYgMTQuODE1YTIuMjUgMi4yNSAwIDEgMS00LjIxIDEuNTkzIDIuMjUgMi4yNSAwIDAgMSA0LjIxLTEuNTkzbS0xLjY2MiAxLjk2NmExLjI1IDEuMjUgMCAxIDAtLjg4NS0yLjMzOSAxLjI1IDEuMjUgMCAwIDAgLjg4NSAyLjMzOSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-price-range-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOS4wNDYgMTVWNS44NzdoLjk0MlYxNXoiIGZpbGw9IiMxODFEMUYiLz48cGF0aCBkPSJNOS4wNDYgMTVWNS44NzdoLjk0MlYxNXoiIGZpbGw9IiMxODFEMUYiLz48cGF0aCBkPSJNOS41IDYuMjI4IDcuMTY3IDguMzc2IDYuNSA3Ljc2MiA5LjUgNWwzIDIuNzYyLS42NjcuNjE0eiIgZmlsbD0iIzAwMCIvPjxwYXRoIGQ9Ik0yIDE4di0xaDE2djF6TTIgM1YyaDE2djF6IiBmaWxsPSIjMTgxRDFGIi8+PC9zdmc+)}.ag-charts-icon-reset{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTIuMDQgNC40NDVhNS44MSA1LjgxIDAgMCAwLTcuMjU3IDIuNDUzLjUuNSAwIDAgMS0uODY1LS41MDJBNi44MSA2LjgxIDAgMSAxIDMgOS44MTNhLjUuNSAwIDAgMSAxIDAgNS44MSA1LjgxIDAgMSAwIDguMDQtNS4zNjgiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTQuMjg5IDMuMDAyYS41LjUgMCAwIDEgLjUuNXYyLjY1NWgyLjY1NWEuNS41IDAgMCAxIDAgMUg0LjI5YS41LjUgMCAwIDEtLjUtLjVWMy41MDJhLjUuNSAwIDAgMSAuNS0uNSIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.ag-charts-icon-settings{--icon: url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkIj48cGF0aCBkPSJNMTAgMTNhMyAzIDAgMSAwIDAtNiAzIDMgMCAwIDAgMCA2bTAtMWEyIDIgMCAxIDEtLjAwMS0zLjk5OUEyIDIgMCAwIDEgMTAgMTIiLz48cGF0aCBkPSJNMi4zMSAxNC4zNDVjLS44MTctMS40OTEuMDI3LTIuNDk5LjQ3NC0yLjg2NS41MzEtLjQzNC45NjktLjM2NS45NzItMS40OC0uMDAzLTEuMTE1LS40NDEtMS4wNDYtLjk3Mi0xLjQ4MS0uNDU0LS4zNzEtMS4zMTctMS40MDUtLjQzNC0yLjkzNmwuMDA1LS4wMDljLjg4NC0xLjUyIDIuMjA3LTEuMjkgMi43NTUtMS4wODMuNjQxLjI0My44MDEuNjU2IDEuNzY4LjEwMS45NjQtLjU2LjY4Ni0uOTA0Ljc5Ni0xLjU4Mi4wOTQtLjU3OC41NTktMS44NDMgMi4zMjYtMS44NDNoLjAxYzEuNzU5LjAwNSAyLjIyMiAxLjI2NiAyLjMxNiAxLjg0My4xMS42NzgtLjE2OCAxLjAyMi43OTYgMS41ODIuOTY3LjU1NSAxLjEyNy4xNDIgMS43NjgtLjEwMS41NDktLjIwOCAxLjg3Ni0uNDM4IDIuNzYgMS4wOTJzLjAyIDIuNTY1LS40MzQgMi45MzZjLS41MzEuNDM1LS45NjkuMzY2LS45NzIgMS40ODEuMDAzIDEuMTE1LjQ0MSAxLjA0Ni45NzIgMS40OC40NTQuMzcyIDEuMzE3IDEuNDA2LjQzNCAyLjkzN2wtLjAwNS4wMDljLS44ODQgMS41Mi0yLjIwNyAxLjI5LTIuNzU1IDEuMDgzLS42NDEtLjI0My0uODAxLS42NTYtMS43NjgtLjEwMS0uOTY0LjU2LS42ODYuOTA0LS43OTYgMS41ODEtLjA5NC41NzktLjU1OSAxLjg0NC0yLjMyNiAxLjg0NGgtLjAxYy0xLjc1OS0uMDA1LTIuMjIyLTEuMjY2LTIuMzE2LTEuODQ0LS4xMS0uNjc3LjE2OC0xLjAyMS0uNzk2LTEuNTgxLS45NjctLjU1NS0xLjEyNy0uMTQyLTEuNzY4LjEwMS0uNTQ5LjIwOC0xLjg3Ni40MzgtMi43Ni0xLjA5MmwtLjAyLS4wMzZ6TTkuOTg0IDIuMTYySDEwYzEuMzU1IDAgMS4zNDIgMS4wMzkgMS4zNTMgMS40MjUuMDA4LjMxMi4wNCAxLjE2IDEuMjU5IDEuODcybC4wMTUuMDA4YzEuMjI1LjcgMS45NzYuMzA0IDIuMjUxLjE1NS4zMzctLjE4MyAxLjIyNi0uNzExIDEuOTAyLjQ0NWwuMDA4LjAxNGMuNjc4IDEuMTczLS4yMjkgMS42ODItLjU1OCAxLjg4NC0uMjY2LjE2My0uOTg0LjYxNS0uOTkxIDIuMDI3di4wMTZjLjAwNyAxLjQxMi43MjUgMS44NjQuOTkxIDIuMDI3LjMyOC4yMDEgMS4yMjkuNzA3LjU2NiAxLjg3bC0uMDA4LjAxNGMtLjY3NyAxLjE3NC0xLjU3MS42NDMtMS45MS40NTktLjI3NS0uMTQ5LTEuMDI2LS41NDUtMi4yNTEuMTU0bC0uMDE1LjAwOWMtMS4yMTkuNzEyLTEuMjUxIDEuNTYtMS4yNTkgMS44NzItLjAxMS4zODYuMDAyIDEuNDI1LTEuMzUzIDEuNDI1cy0xLjM0Mi0xLjAzOS0xLjM1My0xLjQyNWMtLjAwOC0uMzEyLS4wNC0xLjE2LTEuMjU5LTEuODcybC0uMDE1LS4wMDljLTEuMjI1LS42OTktMS45NzYtLjMwMy0yLjI1MS0uMTU0LS4zMzYuMTgzLTEuMjE5LjcwNi0xLjg5NC0uNDMybC0uMDE2LS4wMjdjLS42NzgtMS4xNzQuMjI5LTEuNjgyLjU1OC0xLjg4NC4yNjYtLjE2My45ODQtLjYxNS45OTEtMi4wMjd2LS4wMTZjLS4wMDctMS40MTItLjcyNS0xLjg2NC0uOTkxLTIuMDI3LS4zMjgtLjIwMS0xLjIyOS0uNzA3LS41NjYtMS44N2wuMDA4LS4wMTRjLjY3Ny0xLjE3NCAxLjU3MS0uNjQzIDEuOTEtLjQ1OS4yNzUuMTQ5IDEuMDI2LjU0NSAyLjI1MS0uMTU1bC4wMTUtLjAwOGMxLjIxOS0uNzEyIDEuMjUxLTEuNTYgMS4yNTktMS44NzIuMDEtLjM4NC0uMDAyLTEuNDE3IDEuMzM3LTEuNDI1Ii8+PC9zdmc+)}.ag-charts-icon-step-line-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzE4MUQxRiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNiA0aDV2OGgzVjhoNXYxaC00djRoLTVWNUg3djEwSDJ2LTFoNHoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-text-annotation{--icon: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00IDRIMTZWN0gxNVY1SDEwLjVWMTVIMTRWMTZINlYxNUg5LjVWNUg1VjdINFY0WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==)}.ag-charts-icon-trend-line,.ag-charts-icon-trend-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNS4zMTQgMTAuOTM4YTIuMjUgMi4yNSAwIDEgMSAuMDEtMWg5LjM1MmEyLjI1IDIuMjUgMCAxIDEgLjAxIDF6bS0yLjE4OS43MjlhMS4yNSAxLjI1IDAgMSAwIDAtMi41IDEuMjUgMS4yNSAwIDAgMCAwIDIuNW0xMy43NSAwYTEuMjUgMS4yNSAwIDEgMCAwLTIuNSAxLjI1IDEuMjUgMCAwIDAgMCAyLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-unlock,.ag-charts-icon-unlocked{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNjUxIDMuNWEyLjg5NCAyLjg5NCAwIDAgMC0yLjg5NCAyLjg5NFY5SDE0LjVhMi41IDIuNSAwIDAgMSAyLjUgMi41djNhMi41IDIuNSAwIDAgMS0yLjUgMi41aC04QTIuNSAyLjUgMCAwIDEgNCAxNC41di0zQTIuNSAyLjUgMCAwIDEgNi41IDloLjI1N1Y2LjM5NGEzLjg5NCAzLjg5NCAwIDEgMSA3Ljc4OSAwIC41LjUgMCAwIDEtMSAwQTIuODk0IDIuODk0IDAgMCAwIDEwLjY1IDMuNU02LjUgMTBBMS41IDEuNSAwIDAgMCA1IDExLjV2M0ExLjUgMS41IDAgMCAwIDYuNSAxNmg4YTEuNSAxLjUgMCAwIDAgMS41LTEuNXYtM2ExLjUgMS41IDAgMCAwLTEuNS0xLjV6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-vertical-line,.ag-charts-icon-vertical-line-drawing{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNSA3LjgwNmEyLjI1IDIuMjUgMCAwIDEgMCA0LjM4OFYxOS41aC0xdi03LjMwNmEyLjI1IDIuMjUgMCAwIDEgMC00LjM4OFYuNWgxem0tLjUuOTQ0YTEuMjUgMS4yNSAwIDEgMSAwIDIuNSAxLjI1IDEuMjUgMCAwIDEgMC0yLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-zoom-in{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTEwIDUuNWEuNS41IDAgMCAxIC41LjV2My41aDMuODc1YS41LjUgMCAwIDEgMCAxSDEwLjV2NC4yNWEuNS41IDAgMSAxLTEgMFYxMC41SDUuNjI1YS41LjUgMCAxIDEgMC0xSDkuNVY2YS41LjUgMCAwIDEgLjUtLjUiLz48L3N2Zz4=)}.ag-charts-icon-zoom-out{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNS41IDEwYS41LjUgMCAwIDEgLjUtLjVoOGEuNS41IDAgMCAxIDAgMUg2YS41LjUgMCAwIDEtLjUtLjUiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-high-low-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNyA0aDJ2MTJINFY0aDNNNSA1aDN2MTBINXpNMTEgMTRWNmg1djhoLTVtMS03aDN2NmgtM3oiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.ag-charts-icon-hlc-series{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzEzMTcyMiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTguMTYzIDEuODM3LTUuMzM0IDExLjYyMUw2Ljk1NyA4LjEybC00LjE5OSA5LjYyMi0uOTE2LS40IDQuNzU2LTEwLjlMMTIuNDkgMTEuOCAxNy4yNTQgMS40MnoiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjQiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTUuODI1IDIuNzA0LjU1IDEzLjc4NWwuOTAyLjQzIDQuNzI0LTkuOTE5IDYuMDM0IDUuMDI5IDMuMjU1LTguMTQtLjkyOC0uMzctMi43NDUgNi44NnptNy44NTIgMTQuNjM2IDUuNzgtMTMuMTM5LS45MTUtLjQwMi01LjIxOSAxMS44Ni02LjAwNS01LjUwNC0zLjI3OCA3LjY0OC45Mi4zOTQgMi43MjItNi4zNTJ6IiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ag-charts-icon-zoom-in-alt{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXpvb20taW4iPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHgyPSIxNi42NSIgeTE9IjIxIiB5Mj0iMTYuNjUiLz48bGluZSB4MT0iMTEiIHgyPSIxMSIgeTE9IjgiIHkyPSIxNCIvPjxsaW5lIHgxPSI4IiB4Mj0iMTQiIHkxPSIxMSIgeTI9IjExIi8+PC9zdmc+)}.ag-charts-icon-zoom-out-alt{--icon: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXpvb20tb3V0Ij48Y2lyY2xlIGN4PSIxMSIgY3k9IjExIiByPSI4Ii8+PGxpbmUgeDE9IjIxIiB4Mj0iMTYuNjUiIHkxPSIyMSIgeTI9IjE2LjY1Ii8+PGxpbmUgeDE9IjgiIHgyPSIxNCIgeTE9IjExIiB5Mj0iMTEiLz48L3N2Zz4=)}.ag-charts-input{--input-layer-active: 1;--input-layer-focus: 2;color:inherit;font-family:var(--ag-charts-input-font-family);font-size:var(--ag-charts-input-font-size);transition-duration:var(--ag-charts-input-transition-duration);transition-property:none;transition-timing-function:var(--ag-charts-input-transition-timing-function)}.ag-charts-input:focus-visible{outline:var(--ag-charts-input-focus-outline);box-shadow:var(--ag-charts-input-focus-box-shadow);z-index:var(--input-layer-focus)}.ag-charts-button{background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);cursor:pointer;padding:var(--ag-charts-input-padding);transition-property:background,border-color}.ag-charts-button:hover{background:var(--ag-charts-input-background-color--hover)}.ag-charts-button:has(.ag-charts-icon){padding:2px}.ag-charts-checkbox{appearance:none;background:var(--ag-charts-input-checkbox-background-color);border-radius:9px;cursor:pointer;height:18px;margin:0;transition-duration:var(--ag-charts-input-transition-duration--fast);transition-property:margin;width:29px}.ag-charts-checkbox:before{display:block;background:var(--ag-charts-input-background-color);border-radius:7px;content:" ";height:14px;margin:2px;transition-duration:var(--ag-charts-input-transition-duration--fast);transition-property:margin;transition-timing-function:var(--ag-charts-input-transition-easing);width:14px}.ag-charts-checkbox:checked{background:var(--ag-charts-input-checkbox-background-color--checked)}.ag-charts-checkbox:checked:before{margin-left:13px}.ag-charts-select{background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);padding:3px 2px 4px;font-size:inherit}.ag-charts-textarea{--line-height: 1.38;background:var(--ag-charts-input-background-color);border:1px solid var(--ag-charts-input-border-color);border-radius:var(--ag-charts-input-border-radius);line-height:var(--line-height);font-family:var(--ag-charts-input-font-family);font-size:var(--ag-charts-input-font-size);padding:var(--ag-charts-input-padding-large) var(--ag-charts-input-padding)}.ag-charts-textarea[placeholder]:empty:before{color:var(--ag-charts-input-placeholder);content:attr(placeholder)}.ag-charts-proxy-container{pointer-events:none;position:absolute}.ag-charts-proxy-elem{-webkit-appearance:none;appearance:none;background:none;border:none;color:#0000;overflow:hidden;pointer-events:auto;position:absolute}.ag-charts-proxy-elem::-moz-range-thumb,.ag-charts-proxy-elem::-moz-range-track{opacity:0}.ag-charts-proxy-elem::-webkit-slider-runnable-track,.ag-charts-proxy-elem::-webkit-slider-thumb{opacity:0}.ag-charts-proxy-elem:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow)}.ag-charts-focus-indicator{position:absolute;display:block;pointer-events:none;user-select:none;width:100%;height:100%}.ag-charts-focus-indicator>div{position:absolute;outline:var(--ag-charts-focus-border);outline-width:2px;box-shadow:var(--ag-charts-focus-border-shadow)}.ag-charts-focus-indicator>svg{width:100%;height:100%;fill:none;stroke:var(--ag-charts-focus-border-color);stroke-width:2px}.ag-charts-overlay{color:#181d1f;pointer-events:none}.ag-charts-overlay.ag-charts-dark-overlay{color:#fff}.ag-charts-overlay--loading{color:#8c8c8c}.ag-charts-overlay__loading-background{background:#fff;pointer-events:none}.ag-charts-overlay.ag-charts-dark-overlay .ag-charts-overlay__loading-background{background:#192232}.ag-charts-tooltip{position:fixed;inset:unset;margin:0;padding:0;overflow:visible;width:max-content;max-width:100%;font:12px Verdana,sans-serif;color:var(--ag-charts-tooltip-text-color);background:var(--ag-charts-tooltip-background-color);border:var(--ag-charts-tooltip-border);border-radius:var(--ag-charts-tooltip-border-radius);box-shadow:0 4px 8px #00000014}.ag-charts-tooltip--compact{--ag-charts-content-padding: var(--ag-charts-content-compact-padding)}.ag-charts-tooltip--arrow:before{--tooltip-arrow-size: 8px;content:"";position:absolute;top:100%;left:50%;margin:0 auto;transform:translate(-50%) translateY(calc(var(--tooltip-arrow-size) * -.5)) rotate(45deg);display:block;width:var(--tooltip-arrow-size);height:var(--tooltip-arrow-size);border:inherit;background:inherit;border-top:none;border-left:none;clip-path:polygon(0 100%,100% 0,100% 100%)}.ag-charts-tooltip--no-interaction{pointer-events:none;user-select:none}.ag-charts-tooltip--wrap-always{overflow-wrap:break-word;word-break:break-word;hyphens:none}.ag-charts-tooltip--wrap-hyphenate{overflow-wrap:break-word;word-break:break-word;hyphens:auto}.ag-charts-tooltip--wrap-on-space{overflow-wrap:normal;word-break:normal}.ag-charts-tooltip--wrap-never{white-space:nowrap}.ag-charts-tooltip-heading,.ag-charts-tooltip-title,.ag-charts-tooltip-label,.ag-charts-tooltip-value{overflow:hidden;text-overflow:ellipsis}.ag-charts-tooltip-content{display:grid;grid:auto-flow minmax(1em,auto) / 1fr;padding:var(--ag-charts-content-padding);gap:var(--ag-charts-content-gap)}.ag-charts-tooltip-content:has(.ag-charts-tooltip-symbol){grid:auto-flow minmax(1em,auto) / auto 1fr}.ag-charts-tooltip-heading{grid-column:1 / -1}.ag-charts-tooltip-symbol{grid-column:1 / 2;align-self:center}.ag-charts-tooltip-symbol svg{display:block}.ag-charts-tooltip-title{grid-column:-2 / -1}.ag-charts-tooltip-row{grid-column:1 / -1;display:flex;gap:16px;align-items:baseline;justify-content:space-between;overflow:hidden}.ag-charts-tooltip-row--inline{grid-column:-2 / -1}.ag-charts-tooltip-label{flex:1;min-width:0}.ag-charts-tooltip-value{min-width:0}.ag-charts-popover{position:absolute;border:var(--ag-charts-popover-border);border-radius:var(--ag-charts-popover-border-radius);background:var(--ag-charts-popover-background-color);color:var(--ag-charts-popover-foreground-color);font-family:var(--ag-charts-font-family);font-size:var(--ag-charts-popover-font-size);box-shadow:var(--ag-charts-popover-shadow);z-index:var(--ag-charts-layer-ui-overlay)}.ag-charts-menu{--item-padding: 6px 12px;--icon-color: var(--ag-charts-popover-foreground-color);display:grid;grid:auto-flow auto / 1fr;column-gap:12px;font-size:var(--ag-charts-popover-font-size-small)}.ag-charts-menu:has(.ag-charts-menu__icon,.ag-charts-menu__row--stroke-width-visible){grid:auto-flow auto / auto 1fr}.ag-charts-menu__row--stroke-width-visible:before{content:"";height:var(--strokeWidth);width:12px;background:var(--icon-color)}.ag-charts-menu__row--stroke-width-visible[aria-disabled=true]:before{filter:grayscale(1);opacity:.5}.ag-charts-menu__row{display:grid;grid-column:1 / -1;grid-template-columns:subgrid;align-items:center;padding:var(--item-padding)}.ag-charts-menu__row:not(.ag-charts-menu__row--active){cursor:pointer}.ag-charts-menu__row:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.ag-charts-menu__row:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.ag-charts-menu__row:focus{background:var(--ag-charts-popover-hover-color)}.ag-charts-menu__row:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-menu__row--active{--icon-color: var(--ag-charts-popover-active-color);background:var(--ag-charts-popover-active-background-color);color:var(--ag-charts-popover-active-color)}.ag-charts-menu__label{grid-column:-1 / span 1}.ag-charts-toolbar{align-items:center;display:flex;flex-wrap:nowrap;position:absolute}.ag-charts-toolbar__button{align-items:center;background:var(--ag-charts-toolbar-background-color);border:var(--ag-charts-toolbar-border);color:var(--ag-charts-toolbar-foreground-color);cursor:pointer;display:flex;font:var(--ag-charts-toolbar-font-size) var(--ag-charts-font-family);justify-content:center;min-height:var(--ag-charts-toolbar-size);min-width:var(--ag-charts-toolbar-size);padding:var(--ag-charts-toolbar-button-padding);position:relative;transition:background-color .25s ease-in-out,border-color .25s ease-in-out,color .25s ease-in-out;white-space:nowrap}.ag-charts-toolbar__button:hover{background:var(--ag-charts-toolbar-hover-color);z-index:1}.ag-charts-toolbar__button:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-toolbar__button--active{background:var(--ag-charts-toolbar-active-background-color);border-color:var(--ag-charts-toolbar-active-color);color:var(--ag-charts-toolbar-active-color);z-index:2}.ag-charts-toolbar__button[aria-disabled=true]{background:var(--ag-charts-toolbar-disabled-background-color);color:var(--ag-charts-toolbar-disabled-foreground-color);cursor:default}.ag-charts-toolbar--horizontal{flex-direction:row;.ag-charts-toolbar__button{margin:0 0 0 -1px}.ag-charts-toolbar__button--first{border-bottom-left-radius:var(--ag-charts-button-radius);border-top-left-radius:var(--ag-charts-button-radius);margin:0}.ag-charts-toolbar__button--last{border-bottom-right-radius:var(--ag-charts-button-radius);border-top-right-radius:var(--ag-charts-button-radius)}}.ag-charts-toolbar--vertical{flex-direction:column;.ag-charts-toolbar__button{margin:-1px 0 0;max-width:100%}.ag-charts-toolbar__button--first{border-top-left-radius:var(--ag-charts-button-radius);border-top-right-radius:var(--ag-charts-button-radius);margin:0}.ag-charts-toolbar__button--last{border-bottom-left-radius:var(--ag-charts-button-radius);border-bottom-right-radius:var(--ag-charts-button-radius)}}.ag-charts-toolbar__icon+.ag-charts-toolbar__label{margin-left:var(--ag-charts-toolbar-gap)}.ag-charts-toolbar__icon,.ag-charts-toolbar__label{pointer-events:none}.ag-charts-floating-toolbar{border:none;display:flex;.ag-charts-toolbar{align-items:unset;position:unset}}.ag-charts-floating-toolbar__drag-handle{align-items:center;background:var(--ag-charts-toolbar-background-color);border:var(--ag-charts-toolbar-border);border-bottom-left-radius:var(--ag-charts-button-radius);border-top-left-radius:var(--ag-charts-button-radius);cursor:grab;display:flex;justify-content:center;min-width:24px;padding-left:0;padding-right:0}.ag-charts-floating-toolbar__drag-handle--dragging{cursor:grabbing}
`}});function bd(e){return e==="true"}function oT(e){return Number(e)}function Bc(e){return e}function Ya(e,t,n){n==null||n===""||n===""?e==null||e.removeAttribute(t):e==null||e.setAttribute(t,n.toString())}function ag(e,t){if(t!=null)for(let[n,a]of Object.entries(t))n!=="class"&&Ya(e,n,a)}function kv(e,t,n){var u,y;if(!(e instanceof HTMLElement))return;let a=e.getAttribute(t);return a===null?n:(y=(u=Av[t])==null?void 0:u.call(Av,a))!=null?y:void 0}function Gc(e,t,n){e!=null&&(n==null?e.style.removeProperty(t):e.style.setProperty(t,n.toString()))}function yb(e,t){for(let[n,a]of Object.entries(t))Gc(e,n,a)}var Av,vr=A({"packages/ag-charts-community/src/util/attributeUtil.ts"(){"use strict";Av={role:Bc,"aria-checked":bd,"aria-controls":Bc,"aria-describedby":Bc,"aria-disabled":bd,"aria-expanded":bd,"aria-haspopup":bd,"aria-hidden":bd,"aria-label":Bc,"aria-labelledby":Bc,"aria-live":Bc,"aria-orientation":Bc,"aria-selected":bd,"data-preventdefault":bd,class:Bc,id:Bc,tabindex:oT,title:Bc,placeholder:Bc}}}),rn,Dl=A({"packages/ag-charts-community/src/util/guardedElement.ts"(){"use strict";vr(),Rn(),rn=class Nz{constructor(t,n,a){this.element=t,this.topTabGuard=n,this.bottomTabGuard=a,this.destroyFns=[],this.guardTabIndex=0,this.hasFocus=!1,this.initTabGuard(this.topTabGuard,u=>this.onTab(u,!1)),this.initTabGuard(this.bottomTabGuard,u=>this.onTab(u,!0)),this.element.addEventListener("focus",()=>this.onFocus(),{capture:!0}),this.element.addEventListener("blur",u=>this.onBlur(u),{capture:!0})}set tabIndex(t){this.guardTabIndex=t,this.guardTabIndex===0?this.setGuardIndices(void 0):this.hasFocus||this.setGuardIndices(this.guardTabIndex)}destroy(){for(let t of this.destroyFns)t();this.destroyFns.length=0}initTabGuard(t,n){let a=()=>n(t);t.addEventListener("focus",a),this.destroyFns.push(()=>t.removeEventListener("focus",a))}setGuardIndices(t){let n=t;Ya(this.topTabGuard,"tabindex",n),Ya(this.bottomTabGuard,"tabindex",n)}onFocus(){this.hasFocus=!0,this.guardTabIndex!==0&&this.setGuardIndices(0)}onBlur({relatedTarget:t}){let{topTabGuard:n,bottomTabGuard:a}=this;this.hasFocus=!1,this.guardTabIndex!==0&&t!==n&&t!==a&&this.setGuardIndices(this.guardTabIndex)}onTab(t,n){if(this.guardTabIndex!==0){let a;t.tabIndex===0?(a=this.findExitTarget(!n),this.setGuardIndices(this.guardTabIndex)):a=this.findEnterTarget(n),a==null||a.focus()}}static queryFocusable(t,n){let a=ia();return Array.from(t.querySelectorAll(n)).filter(u=>{if(u instanceof HTMLElement){let y=a.getComputedStyle(u);return y.display!=="none"&&y.visibility!=="none"}return!1})}findEnterTarget(t){let n=Nz.queryFocusable(this.element,'[tabindex="0"]'),a=t?n.length-1:0;return n[a]}findExitTarget(t){let n=Nz.queryFocusable(Uo(),"[tabindex]").filter(y=>y.tabIndex>0).sort((y,k)=>y.tabIndex-k.tabIndex),{before:a,after:u}=Nz.findBeforeAndAfter(n,this.guardTabIndex);return t?a:u}static findBeforeAndAfter(t,n){let a=0,u=t.length-1,y,k;for(;a<=u;){let R=Math.floor((a+u)/2),F=t[R].tabIndex;if(F===n){y=t[R-1]||void 0,k=t[R+1]||void 0;break}else F<n?(y=t[R],a=R+1):(k=t[R],u=R-1)}return{before:y,after:k}}}}});function pp(e,t,n,a){t.addEventListener(n,a);let u=()=>t.removeEventListener(n,a);return e.push(u),u}function rT(e,t,n){pp(e,t,"keydown",a=>{a.key==="Escape"&&n(a)})}function rL(e,t,n){let a=pp(e,window,"mousedown",u=>{[0,2].includes(u.button)&&!sL(t,u)&&(n(),a())});return a}function sL(e,t){if(t.target instanceof Element){let{x:n,y:a,width:u,height:y}=e.getBoundingClientRect(),{clientX:k,clientY:R}=t;return k>=n&&R>=a&&k<=n+u&&R<=a+y}return!1}function lM(e){return!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey)}function bb(e,t,...n){return lM(e)&&(e.key===t||n.some(a=>e.key===a))}function cM(e,t,n,a){n&&pp(e,t,"keydown",u=>{bb(u,a)&&n.focus()})}function Cb(e,t,n,a,u,y){cM(e,t,u,y),cM(e,t,n,a),pp(e,t,"keydown",k=>{bb(k,a,y)&&k.preventDefault()})}function Sb(e){return e.toolbar.role="toolbar",e.toolbar.ariaOrientation=e.orientation,e.toolbar.ariaHidden=(e.buttons.length===0).toString(),Y0(e)}function Y0(e){let{orientation:t,buttons:n,wrapAround:a=!1,onEscape:u,onFocus:y,onBlur:k}=e,{nextKey:R,prevKey:F}=rg[t],_=$=>{$.target&&"tabIndex"in $.target&&(n.forEach(te=>te.tabIndex=-1),$.target.tabIndex=0)},[V,K]=a?[n.length,n.length]:[0,1/0],q=[];for(let $=0;$<n.length;$++){let te=n[(V+$-1)%K],se=n[$],de=n[(V+$+1)%K];pp(q,se,"focus",_),y&&pp(q,se,"focus",y),k&&pp(q,se,"blur",k),u&&rT(q,se,u),Cb(q,se,de,R,te,F),se.tabIndex=$===0?0:-1}return q}function sT(e){var $;let{sourceEvent:t,orientation:n,menu:a,buttons:u,closeCallback:y,autoCloseOnBlur:k=!1}=e,{nextKey:R,prevKey:F}=rg[n],_=og(t);Ya(_,"aria-expanded",!0);let V=new uM(a,_,y),K=()=>V.close(),{destroyFns:q}=V;if(a.role="menu",a.ariaOrientation=n,q.push(...Y0({orientation:n,buttons:u,onEscape:K,wrapAround:!0})),a.tabIndex=-1,rT(q,a,K),pp(q,a,"keydown",te=>{var se;te.target===a&&(te.key===R||te.key===F)&&(te.preventDefault(),(se=u[0])==null||se.focus())}),k){let te=se=>{!u.includes(se.relatedTarget)&&K()};for(let se of u)pp(q,se,"blur",te)}return($=u[0])==null||$.focus({preventScroll:!0}),V}function dM(e,t){return n=>{if(e.ariaDisabled==="true")return n.preventDefault();t(n)}}function Ss(e){return"button"in e?e.button===0:lM(e)&&(e.code==="Space"||e.key==="Enter")}function og(e){if((e==null?void 0:e.target)instanceof HTMLElement&&"tabindex"in e.target.attributes)return e.target}function Dv(e){let t=n=>{if(n.defaultPrevented)return;kv(n.target,"data-preventdefault",!0)&&bb(n,"ArrowRight","ArrowLeft","ArrowDown","ArrowUp")&&n.preventDefault()};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}var rg,uM,mp=A({"packages/ag-charts-community/src/util/keynavUtil.ts"(){"use strict";vr(),rg={horizontal:{nextKey:"ArrowRight",prevKey:"ArrowLeft"},vertical:{nextKey:"ArrowDown",prevKey:"ArrowUp"}},uM=class{constructor(e,t,n){this.lastFocus=t,this.closeCallback=n,this.destroyFns=[],this.destroyFns.push(rL(this.destroyFns,e,()=>this.close(!0)))}close(e){this.destroyFns.forEach(t=>t()),this.destroyFns.length=0,this.closeCallback(),this.finishClosing(e)}finishClosing(e){var t;this.destroyFns.forEach(n=>n()),this.destroyFns.length=0,Ya(this.lastFocus,"aria-expanded",!1),e||(t=this.lastFocus)==null||t.focus({preventScroll:!0}),this.lastFocus=void 0}}}}),LD,lL=A({"packages/ag-charts-community/src/util/sizeMonitor.ts"(){"use strict";Rn(),LD=class{constructor(){var e;this.elements=new Map,this.documentReady=!1,this.queuedObserveRequests=[],this.onLoad=()=>{this.documentReady=!0,this.queuedObserveRequests.forEach(([t,n])=>this.observe(t,n)),this.queuedObserveRequests=[]},typeof ResizeObserver!="undefined"&&(this.resizeObserver=new ResizeObserver(t=>{for(let{target:n,contentRect:{width:a,height:u}}of t){let y=this.elements.get(n);this.checkSize(y,n,a,u)}}),this.documentReady=Uo("readyState")==="complete",this.documentReady||(e=ia())==null||e.addEventListener("load",this.onLoad))}destroy(){var e,t;(e=ia())==null||e.removeEventListener("load",this.onLoad),(t=this.resizeObserver)==null||t.disconnect(),this.resizeObserver=null}checkSize(e,t,n,a){var u,y;e&&(n!==((u=e.size)==null?void 0:u.width)||a!==((y=e.size)==null?void 0:y.height))&&(e.size={width:n,height:a},e.cb(e.size,t))}observe(e,t){var a;if(!this.documentReady){this.queuedObserveRequests.push([e,t]);return}this.elements.has(e)?this.removeFromQueue(e):(a=this.resizeObserver)==null||a.observe(e);let n={cb:t};this.elements.set(e,n)}unobserve(e){var t;(t=this.resizeObserver)==null||t.unobserve(e),this.elements.delete(e),this.removeFromQueue(e),this.elements.size||this.destroy()}removeFromQueue(e){this.queuedObserveRequests=this.queuedObserveRequests.filter(([t])=>t!==e)}}}}),hM,gM=A({"packages/ag-charts-community/src/dom/domLayout.html"(){hM='<div role="presentation" class="ag-charts-wrapper ag-charts-styles" data-ag-charts><div role="presentation" class="ag-charts-canvas-center"><div role="presentation" class="ag-charts-canvas-container"><div role="presentation" class="ag-charts-canvas" aria-hidden="true"></div><div role="figure" class="ag-charts-canvas-proxy"><div role="presentation" class="ag-charts-series-area"></div></div><div role="presentation" class="ag-charts-canvas-overlay"></div></div></div></div>'}});function lT(e,t){if(typeof IntersectionObserver=="undefined")return;let n=new IntersectionObserver(a=>{for(let u of a)u.target===e&&t(u.intersectionRatio)},{root:e});return n.observe(e),n}function wb(e,t){let n=Hn("div");return n.className="ag-charts-tab-guard",e.insertAdjacentElement(t,n),n}var OD,pM,sg,mM,FD=A({"packages/ag-charts-community/src/dom/domManager.ts"(){"use strict";vn(),PD(),vr(),Bo(),Rn(),Dl(),mp(),lL(),gM(),OD=["styles","canvas","canvas-center","canvas-container","canvas-overlay","canvas-proxy","series-area"],pM=new Map([["styles",{childElementType:"style"}],["canvas",{childElementType:"canvas"}],["canvas-proxy",{childElementType:"div"}],["canvas-overlay",{childElementType:"div"}],["canvas-center",{childElementType:"div"}],["series-area",{childElementType:"div"}]]),sg={x:0,y:0,width:0,height:0,top:0,bottom:0,left:0,right:0,toJSON(){return sg}},mM=class extends Tr{constructor(e,t){super(),this.styles=new Map,this.container=void 0,this.containerSize=void 0,this.sizeMonitor=new LD;let n=Hn("div");n.innerHTML=hM,this.element=n.children.item(0),this.styleRootElement=t,this.rootElements=OD.reduce((R,F)=>{let _=`ag-charts-${F}`,V=this.element.classList.contains(_)?this.element:this.element.querySelector(`.${_}`);if(!V)throw new Error(`AG Charts - unable to find DOM element ${_}`);return R[F]={element:V,children:new Map,listeners:[]},R},{});let a=!1;this.observer=lT(this.element,R=>{R===0&&!a&&this.listeners.dispatch("hidden",{type:"hidden"}),a=R===0}),this.setSizeOptions(),this.addStyles("ag-charts-community",RD),e&&this.setContainer(e),this.destroyFns.push(Dv(this.element));let u=this.element.querySelector(".ag-charts-canvas-center");if(u==null)throw new Error("Error initializing tab guards");let y=wb(u,"beforebegin"),k=wb(u,"afterend");this.tabGuards=new rn(u,y,k)}destroy(){var e;super.destroy(),(e=this.observer)==null||e.unobserve(this.element),this.container&&this.sizeMonitor.unobserve(this.container),Object.values(this.rootElements).forEach(t=>{t.children.forEach(n=>n.remove()),t.element.remove()}),this.element.remove()}setSizeOptions(e=300,t=300,n,a){let{style:u}=this.element;u.width=`${n!=null?n:e}px`,u.height=`${a!=null?a:t}px`}updateContainerSize(){var t,n,a,u;let{style:e}=this.rootElements["canvas-center"].element;e.width=`${(n=(t=this.containerSize)==null?void 0:t.width)!=null?n:0}px`,e.height=`${(u=(a=this.containerSize)==null?void 0:a.height)!=null?u:0}px`}setTabGuardIndex(e){this.tabGuards.tabIndex=e}setContainer(e){if(e===this.container)return;if(this.container&&(this.container.removeChild(this.element),this.sizeMonitor.unobserve(this.container)),!(this.getShadowDocumentRoot(e)!=null))for(let n of this.rootElements.styles.children.keys())this.removeChild("styles",n);this.container=e;for(let[n,a]of this.styles)this.addStyles(n,a);e.appendChild(this.element),this.sizeMonitor.observe(e,n=>{this.containerSize=n,this.updateContainerSize(),this.listeners.dispatch("resize",{type:"resize"})}),this.listeners.dispatch("container-changed",{type:"container-changed"})}setThemeClass(e){let t="ag-charts-theme-";this.element.classList.forEach(n=>{n.startsWith(t)&&n!==e&&this.element.classList.remove(n)}),this.element.classList.add(e)}updateCanvasLabel(e){Ya(this.rootElements["canvas-proxy"].element,"aria-label",e)}getEventElement(e,t){return["focus","blur","keydown","keyup"].includes(t)?this.rootElements["series-area"].element:e}addEventListener(e,t,n){this.getEventElement(this.element,e).addEventListener(e,t,n)}removeEventListener(e,t,n){this.getEventElement(this.element,e).removeEventListener(e,t,n)}getBoundingClientRect(){return this.rootElements.canvas.element.getBoundingClientRect()}getOverlayClientRect(){var a,u;let e=ia(),t=new ki(0,0,e.innerWidth,e.innerHeight),n=this.getRawOverlayClientRect();return(u=(a=t.intersection(n))==null?void 0:a.toDOMRect())!=null?u:sg}getRawOverlayClientRect(){var u,y;let e=this.element;for(;e!=null;){let k=(u=e.computedStyleMap)==null?void 0:u.call(e),R=(y=k==null?void 0:k.get("overflow-y"))==null?void 0:y.toString();if(R==="auto"||R==="scroll")return ki.fromDOMRect(e.getBoundingClientRect());e=e.parentElement}let t=this.getShadowDocumentRoot();if(t!=null)return ki.fromDOMRect(t.getBoundingClientRect());let{innerWidth:n,innerHeight:a}=ia();return new ki(0,0,n,a)}getShadowDocumentRoot(e=this.container){var n,a;let t=(a=(n=e==null?void 0:e.ownerDocument)==null?void 0:n.body)!=null?a:Uo("body");for(;e!=null;){if(e===t)return;if(e.parentNode instanceof DocumentFragment)return e;e=e.parentNode}return this.container}getParent(e){return this.rootElements[e].element}getChildBoundingClientRect(e){let{children:t}=this.rootElements[e],n=[];for(let a of t.values())n.push(ki.fromDOMRect(a.getBoundingClientRect()));return ki.merge(n)}calculateCanvasPosition(e){var k;let t=0,n=0,{x:a=0,y:u=0}=(k=this.getChildBoundingClientRect("canvas"))!=null?k:{},y=e.getBoundingClientRect();return t=y.x-a,n=y.y-u,{x:t,y:n}}isManagedChildDOMElement(e,t,n){let{children:a}=this.rootElements[t],u=a==null?void 0:a.get(n);return u!=null&&e.contains(u)}contains(e,t){return t==null?this.element.contains(e):this.rootElements[t].element.contains(e)}addStyles(e,t){let n="data-ag-charts";if(this.styles.set(e,t),this.container==null)return;let a=k=>k.getAttribute(n)===e,u=k=>{let R=new Set(["TITLE","META"]),F=!0,_;for(let K of k.children){if(F&&R.has(K.tagName)){_=K;continue}if(F=!1,a(K))return;K.hasAttribute(n)&&(_=K)}let V=Hn("style");return _!=null?k.insertBefore(V,_.nextSibling):k.prepend(V),V},y;this.styleRootElement?y=u(this.styleRootElement):this.getShadowDocumentRoot(this.container)!=null?y=this.addChild("styles",e):y=u(Uo("head")),!(y==null||a(y))&&(y.setAttribute(n,e),y.innerHTML=t)}removeStyles(e){this.removeChild("styles",e)}updateCursor(e){this.element.style.cursor=e}getCursor(){return this.element.style.cursor}addChild(e,t,n,a){var _;let{element:u,children:y,listeners:k}=this.rootElements[e];if(!y)throw new Error("AG Charts - unable to create DOM elements after destroy()");if(y.has(t))return y.get(t);let{childElementType:R="div"}=(_=pM.get(e))!=null?_:{};if(n&&n.tagName.toLowerCase()!==R.toLowerCase())throw new Error("AG Charts - mismatching DOM element type");let F=n!=null?n:Hn(R);for(let[V,K,q]of k)F.addEventListener(V,K,q);if(y.set(t,F),a){let V=u.querySelector(a.query);if(V==null)throw new Error(`AG Charts - addChild query failed ${a.query}`);V.insertAdjacentElement(a.where,F)}else u==null||u.appendChild(F);return F}removeChild(e,t){var a;let{children:n}=this.rootElements[e];n&&((a=n.get(t))==null||a.remove(),n.delete(t))}incrementDataCounter(e){var n;let{dataset:t}=this.element;(n=t[e])!=null||(t[e]="0"),t[e]=String(Number(t[e])+1)}setDataBoolean(e,t){this.element.dataset[e]=String(t)}}}});function Ev(e,t){let{offsetX:n,offsetY:a,clientX:u,clientY:y}=t;return{type:e,offsetX:n,offsetY:a,clientX:u,clientY:y,sourceEvent:t}}var xb,Cd,Iv,Mb=A({"packages/ag-charts-community/src/widget/widgetEvents.ts"(){"use strict";xb=["blur","change","contextmenu","focus","keydown","keyup","click","dblclick","mouseenter","mousemove","mouseleave","wheel"],Cd={blur:e=>({type:"blur",sourceEvent:e}),change:e=>({type:"change",sourceEvent:e}),contextmenu:e=>Ev("contextmenu",e),focus:e=>({type:"focus",sourceEvent:e}),keydown:e=>({type:"keydown",sourceEvent:e}),keyup:e=>({type:"keyup",sourceEvent:e}),click:e=>Ev("click",e),dblclick:e=>Ev("dblclick",e),mouseenter:e=>Ev("mouseenter",e),mousemove:e=>Ev("mousemove",e),mouseleave:e=>Ev("mouseleave",e),wheel:e=>{let{offsetX:t,offsetY:n,clientX:a,clientY:u,deltaX:y,deltaY:k}=e;return{type:"wheel",offsetX:t,offsetY:n,clientX:a,clientY:u,deltaX:y,deltaY:k,sourceEvent:e}}},Iv=class{static alloc(e,t){return Cd[e](t)}static isHTMLEvent(e){return xb.includes(e)}}}}),_D,X0=A({"packages/ag-charts-community/src/widget/widgetListenerHTML.ts"(){"use strict";Mb(),_D=class{constructor(){this.maps={}}lazyGetMap(e){let t=this.maps[e];return t===void 0&&(t=new Map,this.maps[e]=t),t}add(e,t,n){let a=this.lazyGetMap(e);if(a.has(n))throw new Error("AG Charts - duplicate add(handler)");let u=y=>{let k=Iv.alloc(e,y);n(k,t)};t.getElement().addEventListener(e,u),a.set(n,u)}remove(e,t,n){let a=this.lazyGetMap(e),u=a.get(n);u&&t.getElement().removeEventListener(e,u),a.delete(n)}destroy(e){for(let t of Object.keys(this.maps))this.typedDestroy(t,e)}typedDestroy(e,t){let n=this.maps[e];if(n!=null)for(let[a,u]of n.entries())t.getElement().removeEventListener(e,u)}}}});function ND(e,t,n){let a=n.pageX-t.pageX,u=n.pageY-t.pageY;return{type:e,offsetX:t.offsetX+a,offsetY:t.offsetY+u,clientX:n.clientX,clientY:n.clientY,originDeltaX:a,originDeltaY:u,sourceEvent:n}}function Z0(e,t,n){if(e.globalDragCallbacks!=null)return;let a=ia(),u=R=>{R.stopPropagation(),R.stopImmediatePropagation()},y=R=>{var F;R.stopPropagation(),R.stopImmediatePropagation(),(F=e.globalDragCallbacks)==null||F.move(R)},k=R=>{var F;R.button===0&&(R.stopPropagation(),R.stopImmediatePropagation(),a.removeEventListener("mousedown",u,{capture:!0}),a.removeEventListener("mouseenter",u,{capture:!0}),a.removeEventListener("mouseleave",u,{capture:!0}),a.removeEventListener("mouseout",u,{capture:!0}),a.removeEventListener("mouseover",u,{capture:!0}),a.removeEventListener("mousemove",y,{capture:!0}),a.removeEventListener("mouseup",k,{capture:!0}),(F=e.globalDragCallbacks)==null||F.up(R),e.globalDragCallbacks=void 0)};a.addEventListener("mousedown",u,{capture:!0}),a.addEventListener("mouseenter",u,{capture:!0}),a.addEventListener("mouseleave",u,{capture:!0}),a.addEventListener("mouseout",u,{capture:!0}),a.addEventListener("mouseover",u,{capture:!0}),a.addEventListener("mousemove",y,{capture:!0}),a.addEventListener("mouseup",k,{capture:!0}),e.globalDragCallbacks=t,e.globalDragCallbacks.down(n)}var qs,kb=A({"packages/ag-charts-community/src/widget/widgetListenerInternal.ts"(){"use strict";so(),Rn(),ra(),qs=class zz{destroy(){var t;(t=this.dragTriggerRemovers)==null||t.forEach(n=>n()),this.dragTriggerRemovers=void 0,this.dragStartListeners=void 0,this.dragMoveListeners=void 0,this.dragEndListeners=void 0,zz.globalDragCallbacks===this.localDragCallbacks&&(zz.globalDragCallbacks=void 0)}add(t,n,a){var u,y,k;switch(t){case"drag-start":{(u=this.dragStartListeners)!=null||(this.dragStartListeners=[]),this.dragStartListeners.push(a),this.registerDragTrigger(n,a);break}case"drag-move":{(y=this.dragMoveListeners)!=null||(this.dragMoveListeners=[]),this.dragMoveListeners.push(a);break}case"drag-end":{(k=this.dragEndListeners)!=null||(this.dragEndListeners=[]),this.dragEndListeners.push(a);break}}}remove(t,n,a){switch(t){case"drag-start":return this.removeHandler(this.dragStartListeners,a);case"drag-move":return this.removeHandler(this.dragMoveListeners,a);case"drag-end":return this.removeHandler(this.dragEndListeners,a)}}removeHandler(t,n){let a=t==null?void 0:t.indexOf(n);a!==void 0&&(t==null||t.splice(a,1))}registerDragTrigger(t,n){var u;let a=y=>y.button===0&&this.startDrag(t,y);t.getElement().addEventListener("mousedown",a),(u=this.dragTriggerRemovers)!=null||(this.dragTriggerRemovers=new Map),this.dragTriggerRemovers.set(n,()=>t.getElement().removeEventListener("mousedown",a))}startDrag(t,n){let a={pageX:NaN,pageY:NaN,offsetX:NaN,offsetY:NaN};Jl(["pageX","pageY","offsetX","offsetY"],a,n);let u={down:y=>{this.localDragCallbacks=u;let k=ND("drag-start",a,y);this.dispatch("drag-start",t,k)},move:y=>{let k=ND("drag-move",a,y);this.dispatch("drag-move",t,k)},up:y=>{let k=ND("drag-end",a,y);this.dispatch("drag-end",t,k),this.endDrag(t,k)}};Z0(zz,u,n)}endDrag(t,{sourceEvent:n,clientX:a,clientY:u}){var R;let y=t.getElement(),k=y.getBoundingClientRect();Fs.containsPoint(k,a,u)||(y.dispatchEvent(new MouseEvent("mouseleave",n)),(R=n.target)==null||R.dispatchEvent(new MouseEvent("mouseenter",n)))}dispatch(t,n,a){var u,y,k;switch(t){case"drag-start":return(u=this.dragStartListeners)==null?void 0:u.forEach(R=>R(a,n));case"drag-move":return(y=this.dragMoveListeners)==null?void 0:y.forEach(R=>R(a,n));case"drag-end":return(k=this.dragEndListeners)==null?void 0:k.forEach(R=>R(a,n))}}}}}),zD,du,Gm=A({"packages/ag-charts-community/src/widget/widget.ts"(){"use strict";vr(),Rn(),Mb(),X0(),kb(),zD=class{constructor(e){this.elem=e}setBounds(e){var t;Em((t=this.elemContainer)!=null?t:this.elem,e)}getBounds(){var e;return RI((e=this.elemContainer)!=null?e:this.elem)}static setElementContainer(e,t){let n=e.getBounds();Em(t,n),yb(e.elem,{width:"100%",height:"100%"}),e.elem.remove(),e.elemContainer=t,e.elemContainer.replaceChildren(e.elem)}},du=class extends zD{constructor(e){super(e),this.elem=e,this.index=NaN,this.children=[]}getElement(){return this.elem}get clientWidth(){return this.elem.clientWidth}get clientHeight(){return this.elem.clientHeight}destroy(){var e,t,n,a;(e=this.parent)==null||e.removeChild(this),this.children.forEach(u=>{u.parent=void 0,u.destroy()}),this.children.length=0,this.destructor(),this.elem.remove(),(t=this.elemContainer)==null||t.remove(),(n=this.internalListener)==null||n.destroy(),(a=this.htmlListener)==null||a.destroy(this)}setHidden(e){Gc(this.elem,"display",e?"none":void 0)}isHidden(){var e,t;return((t=(e=ia())==null?void 0:e.getComputedStyle)==null?void 0:t.call(e,this.elem).display)==="none"}setCursor(e){Gc(this.elem,"cursor",e)}setTextContent(e){this.elem.textContent=e!=null?e:null}setAriaDescribedBy(e){Ya(this.elem,"aria-describedby",e)}setAriaHidden(e){Ya(this.elem,"aria-hidden",e)}setAriaLabel(e){Ya(this.elem,"aria-label",e)}setInnerHTML(e){this.elem.innerHTML=e}isDisabled(){return kv(this.elem,"aria-disabled",!1)}parseFloat(e){return e===""?0:parseFloat(e)}cssLeft(){return this.parseFloat(this.elem.style.left)}cssTop(){return this.parseFloat(this.elem.style.top)}focus(){this.elem.focus()}setPreventsDefault(e){Ya(this.elem,"data-preventdefault",e)}setTabIndex(e){Ya(this.elem,"tabindex",e)}addChild(e){this.addChildToDOM(e,this.getBefore(e)),this.children.push(e),e.index=this.children.length-1,e.parent=this,this.onChildAdded(e)}removeChild(e){let t=this.children.findIndex(n=>n===e);this.children.splice(t,1),this.removeChildFromDOM(e),this.onChildRemoved(e)}addClass(...e){this.elem.classList.add(...e)}removeClass(...e){this.elem.classList.remove(...e)}toggleClass(e,t){this.elem.classList.toggle(e,t)}appendOrInsert(e,t){t?t.getElement().insertAdjacentElement("beforebegin",e):this.elem.appendChild(e)}addChildToDOM(e,t){this.appendOrInsert(e.getElement(),t)}removeChildFromDOM(e){this.elem.removeChild(e.getElement())}onChildAdded(e){}onChildRemoved(e){}getBefore({domIndex:e}){if(e!==void 0)return this.children.filter(t=>t.domIndex!==void 0&&t.domIndex>e).reduce((t,n)=>!t||n.domIndex<t.domIndex?n:t,void 0)}addListener(e,t){var n,a;Iv.isHTMLEvent(e)?((n=this.htmlListener)!=null||(this.htmlListener=new _D),this.htmlListener.add(e,this,t)):((a=this.internalListener)!=null||(this.internalListener=new qs),this.internalListener.add(e,this,t))}removeListener(e,t){var n,a;Iv.isHTMLEvent(e)?(n=this.htmlListener)==null||n.remove(e,this,t):this.htmlListener!=null&&((a=this.internalListener)==null||a.remove(e,this,t))}}}}),Vm,yh=A({"packages/ag-charts-community/src/widget/boundedTextWidget.ts"(){"use strict";Rn(),Gm(),Vm=class extends du{constructor(){super(Uo().createElement("div")),this.textElement=ap("http://www.w3.org/2000/svg","text"),this.textElement.role="presentation",this.svgElement=ap("http://www.w3.org/2000/svg","svg"),this.svgElement.appendChild(this.textElement),this.svgElement.style.width="100%",this.svgElement.style.opacity="0",this.svgElement.role="presentation",this.elem.appendChild(this.svgElement),this.elem.role="presentation"}set textContent(e){var a;this.textElement.textContent=e;let t=this.textElement,n=(a=t.getBBox)==null?void 0:a.call(t);n&&this.svgElement.setAttribute("viewBox",`${n.x} ${n.y} ${n.width} ${n.height}`)}get textContent(){return this.textElement.textContent}destructor(){}}}}),uu,$0=A({"packages/ag-charts-community/src/widget/buttonWidget.ts"(){"use strict";vr(),Rn(),Gm(),uu=class extends du{constructor(){super(Uo().createElement("button")),this.setEnabled(!0)}destructor(){}setEnabled(e){Ya(this.elem,"aria-disabled",!e),Gc(this.elem,"pointer-events",e?void 0:"none")}addListener(e,t){return super.addListener(e,(n,a)=>{(e==="click"||e==="dblclick")&&this.isDisabled()||t(n,a)})}}}}),fp,Q0=A({"packages/ag-charts-community/src/widget/groupWidget.ts"(){"use strict";vr(),Rn(),Gm(),fp=class extends du{constructor(){super(Uo().createElement("div")),Ya(this.elem,"role","group")}destructor(){}}}}),fM,vM=A({"packages/ag-charts-community/src/widget/rovingTabContainerWidget.ts"(){"use strict";vr(),Rn(),mp(),Gm(),fM=class extends du{constructor(e,t){super(Uo().createElement("div")),this.focusedChildIndex=0,this.onChildFocus=(n,a)=>{let u=this.children[this.focusedChildIndex];this.focusedChildIndex=a.index,u==null||u.setTabIndex(-1),a.setTabIndex(0)},this.onChildKeyDown=(n,a)=>{var F;let u=this.orientation,[y,k]=u==="both"?[rg.horizontal,rg.vertical]:[rg[u],void 0],R=-1;if(lM(n.sourceEvent)){let _=n.sourceEvent.key;_===y.nextKey||_===(k==null?void 0:k.nextKey)?R=a.index+1:(_===y.prevKey||_===(k==null?void 0:k.prevKey))&&(R=a.index-1)}(F=this.children[R])==null||F.focus()},this.orientation=e,Ya(this.elem,"role",t)}get orientation(){var e;return(e=kv(this.elem,"aria-orientation"))!=null?e:"both"}set orientation(e){Ya(this.elem,"aria-orientation",e!=="both"?e:void 0)}focus(){var e;(e=this.children[this.focusedChildIndex])==null||e.focus()}onChildAdded(e){e.addListener("focus",this.onChildFocus),e.addListener("keydown",this.onChildKeyDown),e.setTabIndex(this.children.length===1?0:-1)}onChildRemoved(e){e.removeListener("focus",this.onChildFocus),e.removeListener("keydown",this.onChildKeyDown)}}}}),yM,cL=A({"packages/ag-charts-community/src/widget/listWidget.ts"(){"use strict";vr(),Rn(),vM(),Gm(),yM=class extends fM{constructor(){super("both","list"),this.setHidden(!0)}destructor(){this.children.forEach(e=>e.getElement().parentElement.remove())}addChildToDOM(e,t){let n=Uo().createElement("div");Ya(n,"role","listitem"),Gc(n,"position","absolute"),du.setElementContainer(e,n),this.appendOrInsert(n,t),this.setHidden(!1)}removeChildFromDOM(e){e.getElement().parentElement.remove(),this.setHidden(this.children.length===0)}setHidden(e){this.children.length===0&&(e=!0),super.setHidden(e)}}}}),vp,Ab=A({"packages/ag-charts-community/src/widget/nativeWidget.ts"(){"use strict";Gm(),vp=class extends du{constructor(e){super(e)}destructor(){}}}}),bM,J0,CM=A({"packages/ag-charts-community/src/widget/sliderWidget.ts"(){"use strict";vr(),Rn(),gh(),gn(),Gm(),bM=class TO extends du{constructor(){super(Uo().createElement("input")),this._step=TO.STEP_ONE,this.orientation="both"}get step(){return this._step}set step(t){this._step=t,this.getElement().step=t.attributeValue}get keyboardStep(){var t,n;return(n=(t=this._keyboardStep)==null?void 0:t.step)!=null?n:this._step}set keyboardStep(t){var n;if(t!==((n=this._keyboardStep)==null?void 0:n.step)&&(this._keyboardStep!==void 0&&(this.removeListener("keydown",this._keyboardStep.onKeyDown),this.removeListener("keyup",this._keyboardStep.onKeyUp),this.removeListener("blur",this._keyboardStep.onBlur),this._keyboardStep=void 0),t!==void 0)){let a=()=>this.getElement().step=t.attributeValue,u=()=>this.getElement().step=this._step.attributeValue;this._keyboardStep={step:t,onKeyDown:a,onKeyUp:u,onBlur:u},this.addListener("keydown",this._keyboardStep.onKeyDown),this.addListener("keyup",this._keyboardStep.onKeyUp),this.addListener("blur",this._keyboardStep.onBlur)}}get orientation(){var t;return(t=kv(this.elem,"aria-orientation"))!=null?t:"both"}set orientation(t){Ya(this.elem,"aria-orientation",t!=="both"?t:void 0),TO.registerDefaultPreventers(this,t)}destructor(){}clampValueRatio(t,n){let a=this.getValueRatio(),u=fn(t,a,n);return u!==a&&this.setValueRatio(u),u}setValueRatio(t,n){let{divider:a}=this.step,u=Math.round(t*1e4)/a,{ariaValueText:y=S0(u/a)}=n!=null?n:{},k=this.getElement();k.value=`${u}`,k.ariaValueText=y}getValueRatio(){return parseFloat(this.getElement().value)/this.step.divider}static registerDefaultPreventers(t,n){n==="both"?t.removeListener("keydown",TO.onKeyDown):t.addListener("keydown",TO.onKeyDown)}static onKeyDown(t,n){let a=[],{orientation:u}=n;u==="horizontal"?a=["ArrowUp","ArrowDown"]:u==="vertical"&&(a=["ArrowLeft","ArrowRight"]),a.includes(t.sourceEvent.code)&&t.sourceEvent.preventDefault()}},bM.STEP_ONE={attributeValue:"1",divider:1},bM.STEP_HUNDRETH={attributeValue:"0.01",divider:100},J0=bM}}),cT,dL=A({"packages/ag-charts-community/src/widget/switchWidget.ts"(){"use strict";vr(),$0(),cT=class extends uu{constructor(){super(),Ya(this.elem,"role","switch"),this.setChecked(!1)}setChecked(e){Ya(this.elem,"aria-checked",e)}}}}),eS,Sd=A({"packages/ag-charts-community/src/widget/toolbarWidget.ts"(){"use strict";vM(),eS=class extends fM{constructor(e="horizontal"){super(e,"toolbar")}destructor(){}}}});function jm(e,t){var n;return((n=t.params)==null?void 0:n.type)===e}function qr(e){if(e==="button")return new uu;if(e==="slider")return new J0;if(e==="toolbar")return new eS;if(e==="group")return new fp;if(e==="list")return new yM;if(e==="region")return new vp(Hn("div"));if(e==="text")return new Vm;if(e==="listswitch")return new cT;throw Error("AG Charts - error allocating meta")}function wd(e){let t={params:e,result:void 0};return t.result=qr(t.params.type),t}var BD,dT=A({"packages/ag-charts-community/src/dom/proxyInteractionService.ts"(){"use strict";vr(),Rn(),yh(),$0(),Q0(),cL(),Ab(),CM(),dL(),Sd(),BD=class{constructor(e,t){this.localeManager=e,this.domManager=t,this.destroyFns=[]}destroy(){this.destroyFns.forEach(e=>e())}addLocalisation(e){e(),this.destroyFns.push(this.localeManager.addListener("locale-changed",e))}createProxyContainer(e){let t=wd(e),{params:n,result:a}=t,u=a.getElement();return this.domManager.addChild("canvas-proxy",n.domManagerId,u),u.classList.add(...n.classList,"ag-charts-proxy-container"),u.role=n.type,"ariaOrientation"in n&&(u.ariaOrientation=n.ariaOrientation),jm("toolbar",t)&&(t.result.orientation=t.params.orientation),this.addLocalisation(()=>{u.ariaLabel=this.localeManager.t(n.ariaLabel.id,n.ariaLabel.params)}),a}createProxyElement(e){let t=wd(e);if(jm("button",t)){let{params:n,result:a}=t,u=a.getElement();if(this.initInteract(n,a),typeof n.textContent=="string")u.textContent=n.textContent;else{let{textContent:y}=n;this.addLocalisation(()=>{u.textContent=this.localeManager.t(y.id,y.params)})}this.setParent(t.params,t.result)}if(jm("slider",t)){let{params:n,result:a}=t,u=a.getElement();this.initInteract(n,a),u.type="range",u.role="presentation",u.style.margin="0px",this.addLocalisation(()=>{u.ariaLabel=this.localeManager.t(n.ariaLabel.id,n.ariaLabel.params)}),this.setParent(t.params,t.result)}if(jm("text",t)){let{params:n,result:a}=t;this.initElement(n,a),this.setParent(t.params,t.result)}if(jm("listswitch",t)){let{params:n,result:a}=t;this.initInteract(n,a),a.setTextContent(n.textContent),a.setChecked(n.ariaChecked),a.setAriaDescribedBy(n.ariaDescribedBy),this.setParent(t.params,t.result)}if(jm("region",t)){let{params:n,result:a}=t,u=a.getElement();this.initInteract(n,a),u.role="region",this.setParent(t.params,t.result)}return t.result}initElement(e,t){let n=t.getElement();return Ya(n,"id",e.id),Gc(n,"cursor",e.cursor),n.classList.toggle("ag-charts-proxy-elem",!0),n}initInteract(e,t){let{tabIndex:n,domIndex:a}=e,u=this.initElement(e,t);n!==void 0&&(u.tabIndex=n),a!==void 0&&(t.domIndex=a)}setParent(e,t){var n;if("parent"in e)(n=e.parent)==null||n.addChild(t);else{let a={where:e.where,query:".ag-charts-series-area"};this.domManager.addChild("canvas-proxy",e.domManagerId,t.getElement(),a)}}}}}),uT,SM,wM,yp=A({"packages/ag-charts-community/src/locale/defaultMessageFormatter.ts"(){"use strict";on(),uT=/\$\{(\w+)}(?:\[(\w+)])?/gi,SM={number:new Intl.NumberFormat("en-US"),percent:new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}),date:new Intl.DateTimeFormat("en-US",{dateStyle:"full"}),time:new Intl.DateTimeFormat("en-US",{timeStyle:"full"}),datetime:new Intl.DateTimeFormat("en-US",{dateStyle:"full",timeStyle:"full"})},wM=({defaultValue:e,variables:t})=>e==null?void 0:e.replaceAll(uT,(n,a,u)=>{let y=t[a],k=u!=null?SM[u]:null;return u!=null&&k==null&&hi.warnOnce(`Format style [${u}] is not supported`),k!=null?k.format(y):typeof y=="number"?SM.number.format(y):y instanceof Date?SM.datetime.format(y):String(y)})}}),tS,hT=A({"packages/ag-charts-community/src/locale/localeManager.ts"(){"use strict";Pe(),ng(),yp(),tS=class extends vh{constructor(){super(...arguments),this.localeText=void 0,this.getLocaleText=void 0}setLocaleText(e){this.localeText!==e&&(this.localeText=e,this.dispatch("locale-changed"))}setLocaleTextFormatter(e){this.getLocaleText=e,this.getLocaleText!==e&&(this.getLocaleText=e,this.dispatch("locale-changed"))}t(e,t={}){var y,k;let{localeText:n=f,getLocaleText:a}=this,u=n[e];return(k=(y=a==null?void 0:a({key:e,defaultValue:u,variables:t}))!=null?y:wM({key:e,defaultValue:u,variables:t}))!=null?k:e}}}});function xM({context:e,pixelRatio:t,width:n,height:a}){e.save(),e.setTransform(t,0,0,t,0,0),e.clearRect(0,0,n,a),e.restore()}function Db(e){if(la.check("canvas")){let t=e.save.bind(e),n=e.restore.bind(e),a=0;Object.assign(e,{save(){t(),a++},restore(){if(a===0)throw new Error("AG Charts - Unable to restore() past depth 0");n(),a--},verifyDepthZero(){if(a!==0)throw new Error(`AG Charts - Save/restore depth is non-zero: ${a}`)}})}}var Vc=A({"packages/ag-charts-community/src/scene/canvas/canvasUtil.ts"(){"use strict";pr()}}),lg,bp=A({"packages/ag-charts-community/src/scene/canvas/hdpiCanvas.ts"(){"use strict";Rn(),ac(),Vc(),lg=class{constructor(e){this.enabled=!0,this.width=600,this.height=300;let{width:t,height:n,pixelRatio:a,canvasElement:u,willReadFrequently:y=!1}=e;this.pixelRatio=a!=null?a:ia("devicePixelRatio"),this.element=u!=null?u:Hn("canvas"),this.element.style.display="block",this.element.style.width=(t!=null?t:this.width)+"px",this.element.style.height=(n!=null?n:this.height)+"px",this.element.width=Math.round((t!=null?t:this.width)*this.pixelRatio),this.element.height=Math.round((n!=null?n:this.height)*this.pixelRatio),this.context=this.element.getContext("2d",{willReadFrequently:y}),this.onEnabledChange(),this.resize(t!=null?t:0,n!=null?n:0),Db(this.context)}drawImage(e,t=0,n=0){return e.drawImage(this.context.canvas,t,n)}toDataURL(e){return this.element.toDataURL(e)}resize(e,t){if(!(e>0&&t>0))return;let{element:n,context:a,pixelRatio:u}=this;n.width=Math.round(e*u),n.height=Math.round(t*u),a.setTransform(u,0,0,u,0,0),n.style.width=e+"px",n.style.height=t+"px",this.width=e,this.height=t}clear(){xM(this)}destroy(){this.element.remove(),this.element.width=0,this.element.height=0,this.context.clearRect(0,0,0,0),Object.freeze(this)}onEnabledChange(){this.element&&(this.element.style.display=this.enabled?"":"none")}},b([gv(e=>e.onEnabledChange())],lg.prototype,"enabled",2)}}),MM,Cp=A({"packages/ag-charts-community/src/scene/canvas/hdpiOffscreenCanvas.ts"(){"use strict";Rn(),Vc(),MM=class{constructor(e){this.width=600,this.height=300;let{width:t,height:n,pixelRatio:a,willReadFrequently:u=!1}=e;this.pixelRatio=a!=null?a:ia("devicePixelRatio"),this.canvas=new OffscreenCanvas(t!=null?t:this.width,n!=null?n:this.height),this.context=this.canvas.getContext("2d",{willReadFrequently:u}),this.resize(t!=null?t:0,n!=null?n:0),Db(this.context)}drawImage(e,t=0,n=0){return e.drawImage(this.context.canvas,t,n)}resize(e,t){if(!(e>0&&t>0))return;let{canvas:n,context:a,pixelRatio:u}=this;n.width=Math.round(e*u),n.height=Math.round(t*u),a.setTransform(u,0,0,u,0,0),this.width=e,this.height=t}clear(){xM(this)}destroy(){this.canvas.width=0,this.canvas.height=0,this.context.clearRect(0,0,0,0),this.canvas=null,this.context=null,Object.freeze(this)}}}}),iS,Hm=A({"packages/ag-charts-community/src/scene/layersManager.ts"(){"use strict";pr(),bp(),Cp(),iS=class{constructor(e){this.canvas=e,this.debug=la.create(!0,"scene"),this.layersMap=new Map,this.nextLayerId=0}get size(){return this.layersMap.size}resize(e,t){this.canvas.resize(e,t),this.layersMap.forEach(({canvas:n})=>n.resize(e,t))}addLayer(e){let{width:t,height:n,pixelRatio:a}=this.canvas,{name:u}=e,y=new MM({width:t,height:n,pixelRatio:a});return this.layersMap.set(y,{id:this.nextLayerId++,name:u,canvas:y}),this.debug("Scene.addLayer() - layers",this.layersMap),y}removeLayer(e){this.layersMap.has(e)&&(this.layersMap.delete(e),e.destroy(),this.debug("Scene.removeLayer() -  layers",this.layersMap))}clear(){for(let e of this.layersMap.values())e.canvas.destroy();this.layersMap.clear()}}}}),GD,Eb,gT=A({"packages/ag-charts-community/src/scene/spriteRenderer.ts"(){"use strict";Zg(),GD=class MZ{constructor(){this.offscreenCanvas=new OffscreenCanvas(1,1),MZ.offscreenCanvasCount++;let t=this.offscreenCanvas.getContext("2d");if(t==null)throw new TypeError("AG Charts - invalid 2d context");this.renderCtx={ctx:t,devicePixelRatio:1,resized:!1,debugNodes:{}}}resize({spritePixelRatio:t,spriteWidth:n,spriteHeight:a}){this.offscreenCanvas.width=Math.max(n,0)*t,this.offscreenCanvas.height=Math.max(a,0)*t}renderSprite(t,n){t=aa(t);let{renderCtx:a,renderCtx:{ctx:u},offscreenCanvas:y}=this,{scale:k=1,translateX:R=0,translateY:F=0}=n!=null?n:{};u.save(),u.resetTransform(),u.clearRect(0,0,y.width,y.height),u.beginPath(),u.setTransform(k,0,0,k,R,F);for(let _ of t)_.preRender(),_.render(a);return u.closePath(),u.restore(),y.transferToImageBitmap()}},GD.offscreenCanvasCount=0,Eb=GD}});function Tv(e){for(let t of["B","KB","MB","GB"]){if(e<1536)return`${e.toFixed(1)}${t}`;e/=1024}return`${e.toFixed(1)}TB}`}function VD(){if(!("memory"in performance))return;let{totalJSHeapSize:e,usedJSHeapSize:t,jsHeapSizeLimit:n}=performance.memory,a=[];for(let u of[t,e,n])typeof u=="number"&&a.push(Tv(u));return`Heap ${a.join(" / ")}`}function kM(e,t,n,a,u={},y=ki.zero){if(!la.check("scene:stats","scene:stats:verbose"))return;let{layersRendered:k=0,layersSkipped:R=0,nodesRendered:F=0,nodesSkipped:_=0,opsPerformed:V=0,opsSkipped:K=0}=a!=null?a:{},q=performance.now(),et=t,{start:$}=et,te=wi(et,["start"]),se=Object.entries(te).map(([$e,lt])=>aS($e,lt)).filter($e=>$e!=null).join(" + "),de=Object.entries(u).map(([$e,lt])=>`${$e}: ${JSON.stringify(lt)}`).join(" ; "),pe=la.check("scene:stats:verbose"),Ce=VD(),Se=[`${aS("\u23F1\uFE0F",$,q)} (${se})`,`${de}`,`Layers: ${pe?Ys(k,R):e.size}; Sprites: ${Eb.offscreenCanvasCount}`,pe?`Nodes: ${Ys(F,_)}`:null,pe?`Ops: ${Ys(V,K)}`:null,pe&&Ce?Ce:null].filter(Qt),ve=new Rm($e=>n.measureText($e)),ke=new Map(Se.map($e=>[$e,ve.measureLines($e)])),De=Math.max(...Array.from(ke.values(),$e=>$e.width)),Te=pL(ke.values(),$e=>$e.height),ze=2+y.x;n.save(),n.fillStyle="white",n.fillRect(ze,0,De,Te),n.fillStyle="black";let qe=0;for(let[$e,lt]of ke.entries())qe+=lt.height,n.fillText($e,ze,qe);n.restore()}function uL(e){let t=Ny(ia("agChartsSceneDebug")),n=[];for(let a of t)a==="layout"?n.push("seriesRoot","legend","root",/.*Axis-\d+-axis.*/):n.push(a);e.debugNodeSearch=n}function hL(e,t){e.save();for(let[n,a]of Object.entries(t)){let u=Wo.toCanvas(a);if(!u){hi.log(`Scene.render() - no bbox for debugged node [${n}].`);continue}e.globalAlpha=.8,e.strokeStyle="red",e.lineWidth=1,e.strokeRect(u.x,u.y,u.width,u.height),e.fillStyle="red",e.strokeStyle="white",e.font="16px sans-serif",e.textBaseline="top",e.textAlign="left",e.lineWidth=2,e.strokeText(n,u.x,u.y,u.width),e.fillText(n,u.x,u.y,u.width)}e.restore()}function gL(e){let t=wi(e,[]);for(let n of Object.keys(t))pT.has(n)||typeof t[n]!="number"&&typeof t[n]!="string"&&typeof t[n]!="boolean"&&(jD.add(n),delete t[n]);return t}function Wm(e,t){var a;if(!la.check(!0,"scene"))return{};let n=0;return ge({node:t==="json"?gL(e):e,name:(a=e.name)!=null?a:e.id,dirty:e.dirty},Array.from(e.children(),u=>Wm(u,t)).reduce((u,y)=>{let{name:k}=y,{node:{visible:R,opacity:F,zIndex:_,translationX:V,translationY:K,rotation:q,scalingX:$,scalingY:te},node:se}=y;(!R||F<=0)&&(k=`(${k})`),Wi.is(se)&&se.renderToOffscreenCanvas&&(k=`*${k}*`);let de=Array.isArray(_)?`(${_.join(", ")})`:_,pe=[`${(n++).toString().padStart(3,"0")}|`,`${k!=null?k:"<unknown>"}`,`z: ${de}`,V&&`x: ${V}`,K&&`y: ${K}`,q&&`r: ${q}`,$!=null&&$!==1&&`sx: ${$}`,te!=null&&te!==1&&`sy: ${te}`].filter(ve=>!!ve).join(" "),Ce=pe,Se=1;for(;u[Ce]!=null&&Se<100;)Ce=`${pe} (${Se++})`;return u[Ce]=y,u},{}))}function nS(e){var u;if(!e.dirty)return{dirtyTree:{},paths:[]};let t=Array.from(e.children(),y=>nS(y)).filter(y=>y.paths.length>0),n=Wi.is(e)&&(u=e.name)!=null?u:e.id,a=t.length?t.flatMap(y=>y.paths).map(y=>`${n}.${y}`):[n];return{dirtyTree:ge({name:n,node:e,dirty:e.dirty},t.map(y=>y.dirtyTree).filter(y=>y.dirty!=null).reduce((y,k)=>{var R;return y[(R=k.name)!=null?R:"<unknown>"]=k,y},{})),paths:a}}function Ys(e,t){let n=e+t;return`${e} / ${n} (${Math.round(100*e/n)}%)`}function aS(e,t,n){let a=n!=null?n-t:t;return`${e}: ${Math.round(a*100)/100}ms`}function pL(e,t){let n=0;for(let a of e)n+=t(a);return n}var jD,pT,HD=A({"packages/ag-charts-community/src/scene/sceneDebug.ts"(){"use strict";Mr(),pr(),Rn(),on(),Nc(),bn(),vn(),xo(),xa(),gT(),Sl(),jD=new Set,pT=new Set(["gradient","zIndex","clipRect","cachedBBox","childNodeCounts","path","__zIndex","name","__scalingCenterX","__scalingCenterY","__rotationCenterX","__rotationCenterY","_previousDatum","__fill","__lineDash","borderPath","borderClipPath","_clipPath"])}}),Rv,oS=A({"packages/ag-charts-community/src/scene/scene.ts"(){"use strict";pr(),Rn(),Zl(),bp(),Hm(),xa(),HD(),Rv=class{constructor(e){this.debug=la.create(!0,"scene"),this.id=Os(this),this.root=null,this.pendingSize=null,this.isDirty=!1,this.canvas=new lg(e),this.layersManager=new iS(this.canvas)}get width(){var e,t;return(t=(e=this.pendingSize)==null?void 0:e[0])!=null?t:this.canvas.width}get height(){var e,t;return(t=(e=this.pendingSize)==null?void 0:e[1])!=null?t:this.canvas.height}setContainer(e){var n;let{element:t}=this.canvas;return(n=t.parentElement)==null||n.removeChild(t),e.appendChild(t),this}setRoot(e){var t;return this.root===e?this:(this.isDirty=!0,(t=this.root)==null||t._setLayerManager(),this.root=e,e&&(e.visible=!0,e._setLayerManager(this.layersManager)),this)}clear(){this.canvas.clear()}attachNode(e){return this.appendChild(e),()=>this.removeChild(e)}appendChild(e){var t;return(t=this.root)==null||t.appendChild(e),this}removeChild(e){var t;return(t=this.root)==null||t.removeChild(e),this}download(e,t){var n;y0(this.canvas.toDataURL(t),(n=e==null?void 0:e.trim())!=null?n:"image")}getDataURL(e){return this.canvas.toDataURL(e)}resize(e,t){return e=Math.round(e),t=Math.round(t),e>0&&t>0&&(e!==this.width||t!==this.height)?(this.pendingSize=[e,t],this.isDirty=!0,!0):!1}render(e){var K,q;let{debugSplitTimes:t={start:performance.now()},extraDebugStats:n,seriesRect:a}=e!=null?e:{},{canvas:u,canvas:{context:y}={},root:k,pendingSize:R}=this;if(!y)return;let F=performance.now();if(R&&(this.layersManager.resize(...R),this.pendingSize=null),k&&!k.visible){this.isDirty=!1;return}if((k==null?void 0:k.dirty)===!1&&!this.isDirty){this.debug.check()&&this.debug("Scene.render() - no-op",{tree:Wm(k,"console")}),kM(this.layersManager,t,y,void 0,n,a);return}let _={ctx:y,devicePixelRatio:(K=this.canvas.pixelRatio)!=null?K:1,resized:!!R,debugNodes:{}};la.check("scene:stats:verbose")&&(_.stats={layersRendered:0,layersSkipped:0,nodesRendered:0,nodesSkipped:0,opsPerformed:0,opsSkipped:0}),uL(_);let V=!1;if((k==null?void 0:k.dirty)!==!1&&(V=!0,u.clear()),k&&la.check("scene:dirtyTree")){let{dirtyTree:$,paths:te}=nS(k);la.create("scene:dirtyTree")("Scene.render() - dirtyTree",{dirtyTree:$,paths:te})}if(k&&V){if(k.visible&&k.preRender(),this.debug.check()){let $=Wm(k,"console");this.debug("Scene.render() - before",{canvasCleared:V,tree:$})}k.visible&&(y.save(),k.render(_),y.restore())}t["\u270D\uFE0F"]=performance.now()-F,(q=y.verifyDepthZero)==null||q.call(y),this.isDirty=!1,kM(this.layersManager,t,y,_.stats,n,a),hL(y,_.debugNodes),k&&this.debug.check()&&this.debug("Scene.render() - after",{tree:Wm(k,"console"),canvasCleared:V})}toSVG(){let{root:e,width:t,height:n}=this;if(e!=null)return pl.toSVG(e,t,n)}strip(){let{context:e,pixelRatio:t}=this.canvas;e.setTransform(t,0,0,t,0,0),this.layersManager.clear(),this.setRoot(null),this.isDirty=!1}destroy(){this.strip(),this.canvas.destroy(),Object.assign(this,{canvas:void 0})}},Rv.className="Scene"}}),WD,mT=A({"packages/ag-charts-community/src/util/callbackCache.ts"(){"use strict";on(),WD=class{constructor(){this.cache=new WeakMap}call(e,...t){let n,a=this.cache.get(e);try{n=JSON.stringify(t)}catch(u){return this.invoke(e,t,a)}return a==null&&(a=new Map,this.cache.set(e,a)),a.has(n)?a.get(n):this.invoke(e,t,a,n)}invoke(e,t,n,a){try{let u=e(...t);return n&&a!=null&&n.set(a,u),u}catch(u){hi.warnOnce("User callback errored, ignoring",u);return}}invalidateCache(){this.cache=new WeakMap}}}}),UD,mL=A({"packages/ag-charts-community/src/chart/annotation/annotationManager.ts"(){"use strict";Bo(),ra(),bn(),UD=class extends Tr{constructor(e){super(),this.annotationRoot=e,this.mementoOriginatorKey="annotations",this.annotations=[]}createMemento(){return this.annotations}guardMemento(e){return e==null||ja(e)}restoreMemento(e,t,n){this.annotations=this.cleanData(n!=null?n:[]).map(a=>{let u=this.getAnnotationTypeStyles(a.type);return En(a,u)}),this.listeners.dispatch("restore-annotations",{type:"restore-annotations",annotations:this.annotations})}updateData(e){this.annotations=this.cleanData(e!=null?e:[])}attachNode(e){return this.annotationRoot.append(e),()=>{var t;return(t=this.annotationRoot)==null||t.removeChild(e),this}}setAnnotationStyles(e){this.styles=e}getAnnotationTypeStyles(e){var t;return(t=this.styles)==null?void 0:t[e]}cleanData(e){for(let t of e)"textAlign"in t&&delete t.textAlign;return e}}}}),KD,fT=A({"packages/ag-charts-community/src/chart/axis/axisManager.ts"(){"use strict";xo(),xa(),Om(),KD=class{constructor(e){this.sceneRoot=e,this.axes=new Map,this.axisGridGroup=new Wi({name:"Axes-Grids",zIndex:1}),this.axisGroup=new Wi({name:"Axes",zIndex:2}),this.axisLabelGroup=new Wi({name:"Axes-Labels",zIndex:12}),this.axisCrosslineRangeGroup=new Wi({name:"Axes-Crosslines-Range",zIndex:3}),this.axisCrosslineLineGroup=new Wi({name:"Axes-Crosslines-Line",zIndex:7}),this.axisCrosslineLabelGroup=new Wi({name:"Axes-Crosslines-Label",zIndex:12}),this.sceneRoot.appendChild(this.axisGroup),this.sceneRoot.appendChild(this.axisGridGroup),this.sceneRoot.appendChild(this.axisLabelGroup),this.sceneRoot.appendChild(this.axisCrosslineRangeGroup),this.sceneRoot.appendChild(this.axisCrosslineLineGroup),this.sceneRoot.appendChild(this.axisCrosslineLabelGroup)}updateAxes(e,t){var a;let n={axisNode:this.axisGroup,gridNode:this.axisGridGroup,labelNode:this.axisLabelGroup,crossLineRangeNode:this.axisCrosslineRangeGroup,crossLineLineNode:this.axisCrosslineLineGroup,crossLineLabelNode:this.axisCrosslineLabelGroup};for(let u of e)t.includes(u)||(u.detachAxis(n),u.destroy());for(let u of t)e!=null&&e.includes(u)||u.attachAxis(n);this.axes.clear();for(let u of t){let y=u.createAxisContext();this.axes.has(y.direction)?(a=this.axes.get(y.direction))==null||a.push(y):this.axes.set(y.direction,[y])}}getAxisContext(e){var t;return(t=this.axes.get(e))!=null?t:[]}destroy(){this.axes.clear(),this.sceneRoot.removeChild(this.axisGroup),this.sceneRoot.removeChild(this.axisGridGroup)}}}}),Xs,kn=A({"packages/ag-charts-community/src/chart/data/dataService.ts"(){"use strict";pr(),ec(),ng(),on(),ac(),Xs=class extends vh{constructor(e){super(),this.animationManager=e,this.dispatchOnlyLatest=!0,this.dispatchThrottle=0,this.requestThrottle=300,this.isLoadingInitialData=!1,this.isLoadingData=!1,this.freshRequests=[],this.requestCounter=0,this.debug=la.create(!0,"data-model","data-source"),this.throttledFetch=this.createThrottledFetch(this.requestThrottle),this.throttledDispatch=this.createThrottledDispatch(this.dispatchThrottle)}updateCallback(e){typeof e=="function"&&(this.debug("DataService - updated data source callback"),this.dataSourceCallback=e,this.isLoadingInitialData=!0,this.animationManager.skip(),this.dispatch("data-source-change"))}clearCallback(){this.dataSourceCallback=void 0}load(e){this.isLoadingData=!0,this.throttledFetch(e)}isLazy(){return this.dataSourceCallback!=null}isLoading(){return this.isLazy()&&(this.isLoadingInitialData||this.isLoadingData)}createThrottledFetch(e){return fm(t=>this.fetch(t).catch(n=>hi.error("callback failed",n)),e,{leading:!1,trailing:!0})}createThrottledDispatch(e){return fm((t,n)=>{this.debug(`DataService - dispatching 'data-load' | ${t}`),this.dispatch("data-load",{type:"data-load",data:n})},e,{leading:!0,trailing:!0})}async fetch(e){if(!this.dataSourceCallback)throw new Error("DataService - [dataSource.getData] callback not initialised");let t=performance.now(),n=this.requestCounter++;this.debug(`DataService - requesting | ${n}`),this.freshRequests.push(n);let a;try{a=await this.dataSourceCallback(e),this.debug(`DataService - response | ${performance.now()-t}ms | ${n}`)}catch(y){this.debug(`DataService - request failed | ${n}`),hi.errorOnce(`DataService - request failed | [${y}]`)}this.isLoadingInitialData=!1;let u=this.freshRequests.findIndex(y=>y===n);if(u===-1||this.dispatchOnlyLatest&&u!==this.freshRequests.length-1){this.debug(`DataService - discarding stale request | ${n}`);return}this.freshRequests=this.freshRequests.slice(u+1),this.freshRequests.length===0&&(this.isLoadingData=!1),Array.isArray(a)?this.throttledDispatch(n,a):this.dispatch("data-error")}},b([vs({newValue(e){this.throttledDispatch=this.createThrottledDispatch(e)}})],Xs.prototype,"dispatchThrottle",2),b([vs({newValue(e){this.throttledFetch=this.createThrottledFetch(e)}})],Xs.prototype,"requestThrottle",2)}}),rS,sS=A({"packages/ag-charts-community/src/chart/interaction/animationBatch.ts"(){"use strict";Zn(),pr(),on(),rS=class{constructor(e){this.maxAnimationTime=e,this.debug=la.create(!0,"animation"),this.controllers=new Map,this.stoppedCbs=new Set,this.currentPhase=0,this.phases=new Map(jh.map(t=>[t,[]])),this.skipAnimations=!1,this.animationTimeConsumed=0,this.isReady=!1}get size(){return this.controllers.size}get consumedTimeMs(){return this.animationTimeConsumed}isActive(){return this.controllers.size>0}getActiveControllers(){var e;return(e=this.phases.get(jh[this.currentPhase]))!=null?e:[]}checkOverlappingId(e){e!=null&&this.controllers.has(e)&&(this.controllers.get(e).stop(),this.debug(`Skipping animation batch due to update of existing animation: ${e}`),this.skip())}addAnimation(e){var n;if(e.isComplete)return;if(jh.indexOf(e.phase)<this.currentPhase){this.debug("Skipping animation due to being for an earlier phase",e.id),e.stop();return}this.controllers.set(e.id,e),(n=this.phases.get(e.phase))==null||n.push(e)}removeAnimation(e){this.controllers.delete(e.id);let t=this.phases.get(e.phase),n=t==null?void 0:t.indexOf(e);n!=null&&n>=0&&(t==null||t.splice(n,1))}progress(e){if(!this.isReady)return;let t=e===0?.01:e,n=()=>{let _=jh[this.currentPhase];return{phaseControllers:[...this.getActiveControllers()],phase:_,phaseMeta:Xn[_]}},{phase:a,phaseControllers:u,phaseMeta:y}=n(),k=()=>jh[this.currentPhase]==null,R=()=>{for({phase:a,phaseControllers:u,phaseMeta:y}=n();!k()&&u.length===0;)this.currentPhase++,{phase:a,phaseControllers:u,phaseMeta:y}=n(),this.debug(`AnimationBatch - phase changing to ${a}`,{unusedTime:t},u)},F=this.controllers.size;this.debug(`AnimationBatch - ${e}ms; phase ${a} with ${u==null?void 0:u.length} of ${F}`);do{let _=t,V=y.skipIfNoEarlierAnimations&&this.animationTimeConsumed===0,K=0;for(let q of u)V?q.stop():t=Math.min(q.update(_),t),q.isComplete&&(K++,this.removeAnimation(q));this.animationTimeConsumed+=_-t,this.debug(`AnimationBatch - updated ${u.length} controllers; ${K} completed`),this.debug(`AnimationBatch - animationTimeConsumed: ${this.animationTimeConsumed}`),R()}while(t>0&&!k());this.animationTimeConsumed>this.maxAnimationTime&&(this.debug("Animation batch exceeded max animation time, skipping",[...this.controllers]),this.stop())}ready(){if(this.isReady)return;this.isReady=!0,this.debug(`AnimationBatch - ready; skipped: ${this.skipAnimations}`,[...this.controllers]);let e=!0;for(let[,t]of this.controllers)if(t.duration>0&&Xn[t.phase].skipIfNoEarlierAnimations!==!0){e=!1;break}if(!e)for(let[,t]of this.controllers)t.autoplay&&t.play(!0)}skip(e=!0){if(this.skipAnimations===!1&&e===!0){for(let t of this.controllers.values())t.stop();this.controllers.clear()}this.skipAnimations=e}play(){for(let e of this.controllers.values())e.play()}pause(){for(let e of this.controllers.values())e.pause()}stop(){for(let e of this.controllers.values())try{e.stop(),this.removeAnimation(e)}catch(t){hi.error("Error during animation stop",t)}this.dispatchStopped()}stopByAnimationId(e){if(e!=null&&this.controllers.has(e)){let t=this.controllers.get(e);t&&(t.stop(),this.removeAnimation(t))}}stopByAnimationGroupId(e){for(let t of this.controllers.values())t.groupId===e&&this.stopByAnimationId(t.id)}dispatchStopped(){this.stoppedCbs.forEach(e=>e()),this.stoppedCbs.clear()}isSkipped(){return this.skipAnimations}destroy(){this.stop(),this.controllers.clear()}}}});function Sp(e){let t=He(ge({},e),{preventDefault(){var n;(n=t.sourceEvent)==null||n.preventDefault()}});return t}function wp(e,t){e.dispatchWrapHandlers(t.type,(n,a)=>n(a),Sp(t))}var Um=A({"packages/ag-charts-community/src/chart/interaction/preventableEvent.ts"(){"use strict"}});function vT(e){return AM.includes(e)}function Ib(e){return DM.includes(e)}var AM,DM,EM,Tb,qD,xd,Km,cg=A({"packages/ag-charts-community/src/chart/interaction/interactionManager.ts"(){"use strict";pr(),Rn(),ra(),bn(),Cs(),Um(),AM=["click","dblclick","contextmenu","hover","leave","enter","page-left","wheel"],DM=["keydown","keyup"],EM=["mousemove","mouseup"],Tb=["pagehide","mousemove","mouseup"],qD=["click","dblclick","contextmenu","mousedown","mouseleave","mouseenter","touchstart","touchmove","touchend","touchcancel","wheel","keydown","keyup"],xd=class Bz extends sM{constructor(t,n){super(),this.keyboardOptions=t,this.domManager=n,this.debug=la.create(!0,"interaction"),this.eventHandler=a=>this.processEvent(a),this.clickHistory=[{offsetX:NaN,offsetY:NaN,type:"mousedown"}],this.dblclickHistory=[{offsetX:NaN,offsetY:NaN,type:"mousedown"},{offsetX:NaN,offsetY:NaN,type:"mouseup"},{offsetX:NaN,offsetY:NaN,type:"mousedown"}],this.stateQueue=34,this.rootElement=this.domManager.getShadowDocumentRoot();for(let a of qD)a.startsWith("touch")||a==="wheel"?this.domManager.addEventListener(a,this.eventHandler,{passive:!1}):this.domManager.addEventListener(a,this.eventHandler);for(let a of Tb)ia().addEventListener(a,this.eventHandler);this.containerChanged(!0),this.domManager.addListener("container-changed",()=>this.containerChanged())}containerChanged(t=!1){var a,u;let n=this.domManager.getShadowDocumentRoot();if(!(!t&&n===this.rootElement)){for(let y of EM)(a=this.rootElement)==null||a.removeEventListener(y,this.eventHandler);this.rootElement=n,this.debug("[InteractionManager] Switching rootElement to:",this.rootElement);for(let y of EM)(u=this.rootElement)==null||u.addEventListener(y,this.eventHandler)}}destroy(){var t;super.destroy();for(let n of Tb)ia().removeEventListener(n,this.eventHandler);for(let n of EM)(t=this.rootElement)==null||t.removeEventListener(n,this.eventHandler);for(let n of qD)this.domManager.removeEventListener(n,this.eventHandler);this.domManager.removeStyles("interactionManager")}pushState(t){this.stateQueue|=t}popState(t){this.stateQueue&=~t}getState(){return this.stateQueue&-this.stateQueue}processEvent(t){this.debug("Received raw event",t);let n=this.decideInteractionEventTypes(t);n!=null&&!Array.isArray(n)&&(n=[n]);for(let a of n!=null?n:[])this.dispatchEvent(t,a)}dispatchEvent(t,n){if(vT(n)){this.dispatchPointerEvent(t,n);return}let{relatedElement:a,targetElement:u}=this.extractElements(t);if(Ib(n)){let y=t;this.dispatchTypedEvent(this.listeners,{type:n,sourceEvent:y,relatedElement:a,targetElement:u})}}dispatchTypedEvent(t,n){let a=Sp(n);this.debug("Dispatching typed event",a,this.getState()),t.dispatchWrapHandlers(n.type,(u,y)=>u(y),a)}extractElements(t){let n,a;return"relatedTarget"in t&&t.relatedTarget instanceof HTMLElement&&(n=t.relatedTarget),"target"in t&&t.target instanceof HTMLElement&&(a=t.target),{relatedElement:n,targetElement:a}}dispatchPointerEvent(t,n){let a=this.calculateCoordinates(t);if(a==null)return;let u=this.buildPointerEvent(ge({type:n,event:t},a));this.debug("Dispatching pointer event",u,this.getState()),wp(this.listeners,u)}getEventHTMLTarget(t){if(t.target instanceof HTMLElement)return t.target;if(t.currentTarget instanceof HTMLElement)return t.currentTarget}recordDown(t){t instanceof MouseEvent&&(Jl(["offsetX","offsetY"],this.clickHistory[0],t),Jl(["offsetX","offsetY"],this.dblclickHistory[2],this.dblclickHistory[0]),Jl(["offsetX","offsetY"],this.dblclickHistory[0],t))}recordUp(t){t instanceof MouseEvent&&Jl(["offsetX","offsetY"],this.dblclickHistory[1],t)}decideInteractionEventTypes(t){switch(t.type){case"keydown":case"keyup":return this.keyboardOptions.enabled?t.type:void 0;case"click":case"dblclick":return t.type;case"contextmenu":case"wheel":return t.type;case"touchstart":case"mousedown":if(!this.isEventOverElement(t))return;this.recordDown(t);return;case"touchmove":case"mousemove":return this.isEventOverElement(t)?"hover":void 0;case"mouseup":case"touchend":if(!this.isEventOverElement(t))return;this.recordUp(t);return;case"mouseleave":case"touchcancel":return"leave";case"mouseenter":return"enter";case"pagehide":return"page-left"}}isEventOverElement(t){return t.target instanceof HTMLElement&&this.domManager.contains(t.target)}calculateCoordinates(t){var n;if(t instanceof MouseEvent)return this.getMouseEventCoords(t);if(typeof TouchEvent!="undefined"&&t instanceof TouchEvent){let a=(n=t.touches[0])!=null?n:t.changedTouches[0],{clientX:u,clientY:y,pageX:k,pageY:R}=a;return He(ge({},Bz.NULL_COORDS),{clientX:u,clientY:y,pageX:k,pageY:R})}else if(t instanceof PageTransitionEvent)return t.persisted?void 0:Bz.NULL_COORDS}getMouseEventCoords(t){let{clientX:n,clientY:a,pageX:u,pageY:y}=t,{offsetX:k,offsetY:R}=t,F=this.getEventHTMLTarget(t),{x:_=0,y:V=0}=F?this.domManager.calculateCanvasPosition(F):{};return k+=_,R+=V,{clientX:n,clientY:a,pageX:u,pageY:y,offsetX:k,offsetY:R}}static isWheelEvent(t){return t.type==="wheel"}static getWheelDeltas(t){let[n,a]=[NaN,NaN];if(this.isWheelEvent(t)){let u=t.deltaMode===0?.01:1;n=t.deltaX*u,a=t.deltaY*u}return{deltaX:n,deltaY:a}}buildPointerEvent(t){var pe,Ce,Se;let{type:n,event:a,clientX:u,clientY:y}=t,{offsetX:k,offsetY:R,pageX:F,pageY:_}=t;if(!pa(k)||!pa(R)){let ve=this.domManager.getBoundingClientRect();k=u-ve.left,R=y-ve.top}if(!pa(F)||!pa(_)){let ve=(pe=this.rootElement)==null?void 0:pe.getBoundingClientRect();F=u-((Ce=ve==null?void 0:ve.left)!=null?Ce:0),_=y-((Se=ve==null?void 0:ve.top)!=null?Se:0)}let{deltaX:V,deltaY:K}=Bz.getWheelDeltas(a),q=[];a.type==="click"?q=this.clickHistory:a.type==="dblclick"&&(q=this.dblclickHistory);let{relatedElement:$,targetElement:te}=this.extractElements(a),se="button"in a?Number(a.button):0,de={type:n,offsetX:k,offsetY:R,pageX:F,pageY:_,deltaX:V,deltaY:K,button:se,pointerHistory:q,sourceEvent:a,relatedElement:$,targetElement:te};return this.debug("InteractionManager - builtEvent: ",de,this.getState()),de}},xd.NULL_COORDS={clientX:-1/0,clientY:-1/0,pageX:-1/0,pageY:-1/0,offsetX:-1/0,offsetY:-1/0},Km=xd}});function YD(e){return e==null?!0:!isNaN(e)&&e>=0&&e<=2}var qm,XD=A({"packages/ag-charts-community/src/chart/interaction/animationManager.ts"(){"use strict";Zn(),pr(),Rn(),nM(),on(),sS(),cg(),qm=class{constructor(e,t){this.interactionManager=e,this.chartUpdateMutex=t,this.defaultDuration=1e3,this.batch=new rS(this.defaultDuration*1.5),this.debug=la.create(!0,"animation"),this.events=new iM,this.rafAvailable=typeof requestAnimationFrame!="undefined",this.isPlaying=!0,this.requestId=null,this.skipAnimations=!0,this.currentAnonymousAnimationId=0}addListener(e,t){return this.events.on(e,t)}animate(e){let t=this.batch;try{t.checkOverlappingId(e.id)}catch(R){this.failsafeOnError(R);return}let{id:n}=e;n==null&&(n=`__${this.currentAnonymousAnimationId}`,this.currentAnonymousAnimationId+=1);let a=this.isSkipped()||e.phase==="none";a&&this.debug("AnimationManager - skipping animation");let{delay:u,duration:y}=e;if(!YD(u))throw new Error(`Animation delay of ${u} is unsupported (${n})`);if(!YD(y))throw new Error(`Animation duration of ${y} is unsupported (${n})`);let k=new ox(He(ge({},e),{id:n,skip:a,autoplay:this.isPlaying?e.autoplay:!1,phase:e.phase,defaultDuration:this.defaultDuration}));if(!this.forceTimeJump(k,this.defaultDuration))return this.batch.addAnimation(k),k}play(){if(!this.isPlaying){this.isPlaying=!0,this.debug("AnimationManager.play()");try{this.batch.play()}catch(e){this.failsafeOnError(e)}this.requestAnimation()}}pause(){if(this.isPlaying){this.isPlaying=!1,this.cancelAnimation(),this.debug("AnimationManager.pause()");try{this.batch.pause()}catch(e){this.failsafeOnError(e)}}}stop(){this.isPlaying=!1,this.cancelAnimation(),this.debug("AnimationManager.stop()"),this.batch.stop()}stopByAnimationId(e){try{this.batch.stopByAnimationId(e)}catch(t){this.failsafeOnError(t)}}stopByAnimationGroupId(e){try{this.batch.stopByAnimationGroupId(e)}catch(t){this.failsafeOnError(t)}}reset(){this.isPlaying?(this.stop(),this.play()):this.stop()}skip(e=!0){this.skipAnimations=e}isSkipped(){return!this.rafAvailable||this.skipAnimations||this.batch.isSkipped()}isActive(){return this.isPlaying&&this.batch.isActive()}skipCurrentBatch(){this.debug.check()&&this.debug("AnimationManager - skipCurrentBatch()",{stack:new Error().stack}),this.batch.skip()}isSkippingFrames(){return!0}scheduleAnimationFrame(e){this.requestId=ia().requestAnimationFrame(t=>{e(t).catch(n=>hi.error(n))})}forceTimeJump(e,t){return!1}requestAnimation(){if(!this.rafAvailable||!this.batch.isActive()||this.requestId!==null)return;let e,t=async n=>{let a=()=>{let u=n-(e!=null?e:n);e=n,this.debug("AnimationManager - onAnimationFrame()",{controllersCount:this.batch.size,deltaTime:u}),this.interactionManager.pushState(2);try{this.batch.progress(u)}catch(y){this.failsafeOnError(y)}this.events.emit("animation-frame",{type:"animation-frame",deltaMs:u})};this.isSkippingFrames()?await this.chartUpdateMutex.acquireImmediately(a):await this.chartUpdateMutex.acquire(a),this.batch.isActive()?this.scheduleAnimationFrame(t):(this.batch.stop(),this.events.emit("animation-stop",{type:"animation-stop",deltaMs:this.batch.consumedTimeMs}))};this.events.emit("animation-start",{type:"animation-start",deltaMs:0}),this.scheduleAnimationFrame(t)}cancelAnimation(){this.requestId!==null&&(cancelAnimationFrame(this.requestId),this.requestId=null,this.startBatch())}failsafeOnError(e,t=!0){hi.error("Error during animation, skipping animations",e),t&&this.cancelAnimation()}startBatch(e){this.debug(`AnimationManager - startBatch() with skipAnimations=${e}.`),this.reset(),this.batch.destroy(),this.batch=new rS(this.defaultDuration*1.5),e===!0&&this.batch.skip()}endBatch(){this.batch.isActive()?(this.batch.ready(),this.requestAnimation()):(this.interactionManager.popState(2),this.batch.isSkipped()&&this.batch.skip(!1))}onBatchStop(e){this.batch.stoppedCbs.add(e)}destroy(){this.stop(),this.events.clear()}}}}),ZD,$D=A({"packages/ag-charts-community/src/chart/interaction/chartEventManager.ts"(){"use strict";Bo(),ZD=class extends Tr{legendItemClick(e,t,n,a,u){let y={type:"legend-item-click",legendType:e,series:t,itemId:n,enabled:a,legendItemName:u};this.listeners.dispatch("legend-item-click",y)}legendItemDoubleClick(e,t,n,a,u,y){let k={type:"legend-item-double-click",legendType:e,series:t,itemId:n,enabled:a,legendItemName:y,numVisibleItems:u};this.listeners.dispatch("legend-item-double-click",k)}axisHover(e,t){let n={type:"axis-hover",axisId:e,direction:t};this.listeners.dispatch("axis-hover",n)}}}}),IM,QD=A({"packages/ag-charts-community/src/chart/interaction/contextMenuRegistry.ts"(){"use strict";ng(),Um(),IM=class{constructor(){this.defaultActions=[],this.disabledActions=new Set,this.hiddenActions=new Set,this.listeners=new vh}static check(e,t){return t.type===e}static checkCallback(e,t,n){return e===t}dispatchContext(e,t,n,a){var R,F;let{sourceEvent:u}=t,y=(R=a==null?void 0:a.x)!=null?R:t.canvasX,k=(F=a==null?void 0:a.y)!=null?F:t.canvasY;u.stopPropagation(),this.listeners.dispatch("",Sp({type:e,x:y,y:k,context:n,sourceEvent:u}))}addListener(e){return this.listeners.addListener("",e)}filterActions(e){return this.defaultActions.filter(t=>t.id&&!this.hiddenActions.has(t.id)&&["all",e].includes(t.type))}registerDefaultAction(e){let t=e.id!=null&&!this.defaultActions.some(({id:n})=>n===e.id);return t&&this.defaultActions.push(e),()=>{let n=t?this.defaultActions.findIndex(({id:a})=>a===e.id):-1;n!==-1&&this.defaultActions.splice(n,1)}}enableAction(e){this.disabledActions.delete(e)}disableAction(e){this.disabledActions.add(e)}showAction(e){this.hiddenActions.add(e)}hideAction(e){this.hiddenActions.delete(e)}isDisabled(e){return this.disabledActions.has(e)}}}}),Ym,Rb=A({"packages/ag-charts-community/src/util/stateTracker.ts"(){"use strict";Ym=class extends Map{constructor(e,t){super(),this.defaultValue=e,this.defaultState=t}set(e,t){return this.delete(e),typeof t!="undefined"&&super.set(e,t),this}stateId(){var e;return(e=Array.from(this.keys()).pop())!=null?e:this.defaultState}stateValue(){var e;return(e=Array.from(this.values()).pop())!=null?e:this.defaultValue}}}}),Xm,Zm,ws=A({"packages/ag-charts-community/src/chart/interaction/cursorManager.ts"(){"use strict";Rb(),Xm=(e=>(e.Auto="auto",e.Default="default",e.Grab="grab",e.Grabbing="grabbing",e.Move="move",e.NotAllowed="not-allowed",e.Pointer="pointer",e.EWResize="ew-resize",e.NSResize="ns-resize",e.ZoomIn="zoom-in",e.ZoomOut="zoom-out",e))(Xm||{}),Zm=class{constructor(e){this.domManager=e,this.stateTracker=new Ym("default")}updateCursor(e,t){this.stateTracker.set(e,t),this.domManager.updateCursor(this.stateTracker.stateValue())}getCursor(){return this.domManager.getCursor()}}}});function fL(e,t){let n=e.screenX-t.screenX,a=e.screenY-t.screenY;return n*n+a*a}function yT(e,t){return Math.sqrt(fL(e,t))}var JD,Md,lS=A({"packages/ag-charts-community/src/chart/interaction/gestureDetector.ts"(){"use strict";Bo(),on(),ra(),Um(),JD=1,Md=class extends Tr{constructor(e){super(),this.domManager=e,this.touchstart=t=>this.onTouchStart(t),this.touchmove=t=>this.onTouchMove(t),this.touchend=t=>this.onTouchEnd(t),this.touchcancel=t=>this.onTouchCancel(t),this.pinch={finger1:{identifier:NaN,screenX:NaN,screenY:NaN},finger2:{identifier:NaN,screenX:NaN,screenY:NaN},origin:{x:NaN,y:NaN},distance:NaN,status:0},this.domManager.addEventListener("touchstart",this.touchstart,{passive:!0}),this.domManager.addEventListener("touchmove",this.touchmove,{passive:!1}),this.domManager.addEventListener("touchend",this.touchend),this.domManager.addEventListener("touchcancel",this.touchcancel)}destroy(){this.domManager.removeEventListener("touchstart",this.touchstart),this.domManager.removeEventListener("touchmove",this.touchmove),this.domManager.removeEventListener("touchend",this.touchend),this.domManager.removeEventListener("touchcancel",this.touchcancel)}findPinchTouches(e){let{touches:t}=e,{finger1:n,finger2:a}=this.pinch;if(this.pinch.status!==0&&t.length===2){if(t[0].identifier===n.identifier&&t[1].identifier===a.identifier)return[t[0],t[1]];if(t[0].identifier===a.identifier&&t[1].identifier===n.identifier)return[t[1],t[0]]}}copyTouchData(e){let t=["identifier","screenX","screenY"];Jl(t,this.pinch.finger1,e.touches[0]),Jl(t,this.pinch.finger2,e.touches[1]),this.pinch.distance=yT(this.pinch.finger1,this.pinch.finger2)}dispatchPinchEvent(e,t,n){let{finger1:a,finger2:u,origin:y}=this.pinch;this.listeners.dispatch(e,Sp({sourceEvent:n,type:e,finger1:a,finger2:u,deltaDistance:t,origin:y}))}onTouchStart(e){this.stopPinchTracking(e);let{pinch:t}=this;e.touches.length===2&&(t.status=1,this.copyTouchData(e),t.origin.x=(e.touches[0].clientX+e.touches[1].clientX)/2,t.origin.y=(e.touches[0].clientY+e.touches[1].clientY)/2)}onTouchMove(e){let t=this.findPinchTouches(e);if(t!==void 0){let[n,a]=t,{pinch:u}=this,y=yT(n,a),k=y-u.distance;u.status===1?Math.abs(k)>JD&&(u.status=2,this.copyTouchData(e),this.dispatchPinchEvent("pinch-start",0,e)):u.status===2?(u.distance=y,this.copyTouchData(e),this.dispatchPinchEvent("pinch-move",k,e)):hi.error(`unexpected pinch.status: ${u.status}`)}}onTouchEnd(e){this.stopPinchTracking(e)}onTouchCancel(e){this.stopPinchTracking(e)}stopPinchTracking(e){let{pinch:t}=this;t.status===2&&this.dispatchPinchEvent("pinch-end",0,e),this.pinch.status=0}}}}),cS,e1=A({"packages/ag-charts-community/src/chart/interaction/highlightManager.ts"(){"use strict";Bo(),Rb(),cS=class extends Tr{constructor(){super(...arguments),this.highlightStates=new Ym}updateHighlight(e,t){let{activeHighlight:n}=this;this.highlightStates.set(e,t),this.activeHighlight=this.highlightStates.stateValue(),this.isEqual(this.activeHighlight,n)||this.listeners.dispatch("highlight-change",{type:"highlight-change",currentHighlight:this.activeHighlight,previousHighlight:n,callerId:e})}getActiveHighlight(){return this.activeHighlight}isEqual(e,t){return e===t||e!=null&&t!=null&&(e==null?void 0:e.series)===(t==null?void 0:t.series)&&(e==null?void 0:e.itemId)===(t==null?void 0:t.itemId)&&(e==null?void 0:e.datum)===(t==null?void 0:t.datum)}}}}),TM,RM=A({"packages/ag-charts-community/src/chart/interaction/keyNavManager.ts"(){"use strict";Cs(),Um(),TM=class extends sM{constructor(e,t){super(),this.interactionManager=e,this.previousInputDevice="keyboard";let n=t.getRegion("series"),a=41;this.destroyFns.push(e.addListener("click",()=>this.onClick(),a),e.addListener("hover",()=>this.onMouse(),a),e.addListener("wheel",()=>this.onClick(),a),e.addListener("keydown",u=>this.onKeyDown(u),63),n.addListener("drag-start",()=>this.onClick(),a))}getState(){return this.interactionManager.getState()}destroy(){super.destroy()}onClick(){var e;(e=this.focusIndicator)==null||e.overrideFocusVisible(!1),this.previousInputDevice="mouse"}onMouse(){this.previousInputDevice="mouse"}onKeyDown(e){var F,_,V,K;let t=this.getState(),{key:n,code:a,altKey:u,shiftKey:y,metaKey:k,ctrlKey:R}=e.sourceEvent;if(R||k){if(n==="y"||n==="z"&&y)return(F=this.focusIndicator)==null||F.overrideFocusVisible(this.previousInputDevice==="keyboard"),this.dispatch("redo",0,e);if(n==="z")return(_=this.focusIndicator)==null||_.overrideFocusVisible(this.previousInputDevice==="keyboard"),this.dispatch("undo",0,e)}if(t&9){(V=this.focusIndicator)==null||V.overrideFocusVisible(!1);return}switch(n){case"+":return this.dispatch("nav-zoom",1,e);case"-":return this.dispatch("nav-zoom",-1,e)}if(!(u||y||k||R))switch((K=this.focusIndicator)==null||K.overrideFocusVisible(!0),a){case"ArrowDown":return this.dispatch("nav-vert",1,e);case"ArrowUp":return this.dispatch("nav-vert",-1,e);case"ArrowLeft":return this.dispatch("nav-hori",-1,e);case"ArrowRight":return this.dispatch("nav-hori",1,e);case"ZoomIn":case"Add":return this.dispatch("nav-zoom",1,e);case"ZoomOut":case"Substract":return this.dispatch("nav-zoom",-1,e);case"Space":case"Enter":return this.dispatch("submit",0,e)}}dispatch(e,t,n){let{previousInputDevice:a}=this;wp(this.listeners,{type:e,delta:t,sourceEvent:n,previousInputDevice:a});let u=["redo","undo","nav-zoom"];n.type==="keydown"&&!u.includes(e)&&(this.previousInputDevice="keyboard")}}}});function PM(e,t,n,a,u=32){var y;return(y=e==null?void 0:e.addListener(n,k=>{t.getState()&u&&a(k)}))!=null?y:()=>{}}function vL(e){if(e==null||!(e instanceof HTMLElement))return;let t=e;for(;t!=null&&!(t!=null&&t.classList.contains("ag-charts-wrapper"));){if(t.classList.contains("ag-charts-tooltip"))return t;t=t.parentElement}}function yL(e){var y,k;let{sourceEvent:t}=e,{className:n,classList:a,ariaHidden:u}=(k=(y=e.sourceEvent)==null?void 0:y.target)!=null?k:{};return n==="ag-charts-proxy-elem"||!(a instanceof DOMTokenList)?"leave":a.contains("ag-charts-annotations__axis-button-icon")||n==="ag-charts-swapchain"||n==="ag-charts-canvas-container"||n==="ag-charts-canvas-proxy"||(t==null?void 0:t.target)instanceof HTMLCanvasElement?"none":vL(t.target)&&u!=="true"?"wait":"leave"}var hu,Pb,LM,dg,dS=A({"packages/ag-charts-community/src/chart/interaction/regionManager.ts"(){"use strict";pr(),ng(),cg(),cg(),Um(),hu=class extends vh{},Pb=300,LM=3,dg=class{constructor(e){this.interactionManager=e,this.debug=la.create(!0,"region"),this.regions={root:{properties:{name:"root"},listeners:new hu},series:{properties:{name:"series"},listeners:new hu}},this.destroyFns=[],this.allRegionsListeners=new hu,this.isDragMoving=!1,this.blockNextClickEvent=!1,this.processPointerEvent=t=>{let n=yL(t),{current:a}=this,u=a;if(!this.isDragMoving&&this.deferredDragStart==null)switch(n){case"wait":return;case"none":u=this.pickRegion(t);break;case"leave":u=void 0;break}let y=u;a!==void 0&&(y==null?void 0:y.properties.name)!==a.properties.name&&this.dispatch(a,t,"leave"),y!==void 0&&y.properties.name!==(a==null?void 0:a.properties.name)&&this.dispatch(u,t,"enter"),y!==void 0&&this.dispatch(u,t),this.current=u}}destroy(){this.destroyFns.forEach(e=>e()),this.current=void 0,this.regions.root.listeners.destroy(),this.regions.series.listeners.destroy()}initRegions(e,t){this.regions.root.properties.widget=e,this.regions.series.properties.widget=t,e.addListener("wheel",this.processPointerEvent),e.addListener("contextmenu",this.processPointerEvent),e.addListener("click",this.processPointerEvent),e.addListener("dblclick",this.processPointerEvent),e.addListener("mouseenter",this.processPointerEvent),e.addListener("mousemove",this.processPointerEvent),e.addListener("mouseleave",this.processPointerEvent),e.addListener("drag-start",this.processPointerEvent),e.addListener("drag-move",this.processPointerEvent),e.addListener("drag-end",this.processPointerEvent)}getRegion(e){return this.makeObserver(this.regions[e])}listenAll(e,t,n=32){return PM(this.allRegionsListeners,this.interactionManager,e,t,n)}makeObserver(e){let{interactionManager:t}=this;class n{addListener(u,y,k=32){return PM(e==null?void 0:e.listeners,t,u,y,k)}}return new n}widgetEventTypeToRegionEventType(e,t){return t!==void 0?t:{contextmenu:"contextmenu",click:"click",dblclick:"dblclick",mouseenter:"enter",mousemove:"hover",mouseleave:"leave",wheel:"wheel","drag-start":"drag-start","drag-move":"drag","drag-end":"drag-end"}[e.type]}computeEventOffsets(e,t,n){let{deltaX:a,deltaY:u}=Km.getWheelDeltas(n.sourceEvent);if("mockRegion"in n.sourceEvent){let R=n.sourceEvent.mockRegion;if(R)return ge({deltaX:a,deltaY:u},R)}let y=t.getElement().getBoundingClientRect(),k=e.getElement().getBoundingClientRect();return{canvasX:n.clientX-y.x,canvasY:n.clientY-y.y,regionX:n.clientX-k.x,regionY:n.clientY-k.y,deltaX:a,deltaY:u}}dispatch(e,t,n){var k;let{widget:a}=(k=e==null?void 0:e.properties)!=null?k:{},{widget:u}=this.regions.root.properties;if(e==null||a==null||u==null)return;let y=Sp(He(ge({},this.computeEventOffsets(a,u,t)),{sourceEvent:t.sourceEvent,type:this.widgetEventTypeToRegionEventType(t,n),region:e.properties.name,timestamp:Date.now()}));switch(y.type){case"drag-start":{this.deferredDragStart=y;break}case"drag":{if(this.deferredDragStart)if(this.canStartDrag(y))this.dispatchEvent(e,this.deferredDragStart);else return;this.dispatchEvent(e,y),this.deferredDragStart=void 0,this.isDragMoving=!0,this.blockNextClickEvent=!0;break}case"drag-end":{this.isDragMoving&&this.dispatchEvent(e,y),this.deferredDragStart=void 0,this.isDragMoving=!1;break}case"click":{this.blockNextClickEvent||this.dispatchEvent(e,y),this.blockNextClickEvent=!1;break}case"leave":case"enter":(!this.isDragMoving||this.deferredDragStart!=null)&&this.dispatchEvent(e,y);break;case"hover":{this.blockNextClickEvent=!1,this.dispatchEvent(e,y);break}default:{this.dispatchEvent(e,y);break}}}dispatchEvent(e,t){this.debug("Dispatching region event: ",t),this.allRegionsListeners.dispatch(t.type,t),e.listeners.dispatch(t.type,t)}pickRegion({sourceEvent:e}){var t,n;return"mockRegion"in e&&e.mockRegion?e.mockRegion.region==="series"?this.regions.series:this.regions.root:e.target==((n=(t=this.regions.root)==null?void 0:t.properties.widget)==null?void 0:n.getElement())?this.regions.root:this.regions.series}canStartDrag(e){return this.deferredDragStart?e.timestamp-this.deferredDragStart.timestamp>Pb?!0:Math.abs(e.canvasX-this.deferredDragStart.canvasX)+Math.abs(e.canvasY-this.deferredDragStart.canvasY)>LM:!1}}}});function t1(e){var n,a,u,y,k;let t=(k=(a=(n=e.yBar)==null?void 0:n.upperPoint)!=null?a:e.midPoint)!=null?k:(y=(u=e.series).datumMidPoint)==null?void 0:y.call(u,e);if(t){let{x:R,y:F}=Wo.toCanvasPoint(e.series.contentGroup,t.x,t.y);return{canvasX:Math.round(R),canvasY:Math.round(F)}}}var OM=A({"packages/ag-charts-community/src/chart/series/seriesTypes.ts"(){"use strict";Sl()}}),uS,i1=A({"packages/ag-charts-community/src/chart/interaction/tooltipManager.ts"(){"use strict";Rb(),OM(),uS=class{constructor(e,t){this.domManager=e,this.tooltip=t,this.stateTracker=new Ym,this.suppressState=new Ym(!1),this.appliedState=null,t.setup(e),e.addListener("hidden",()=>this.tooltip.hide())}updateTooltip(e,t,n){var a;this.tooltip.enabled&&(n!=null||(n=(a=this.stateTracker.get(e))==null?void 0:a.content),this.stateTracker.set(e,{content:n,meta:t}),this.applyStates())}removeTooltip(e){this.tooltip.enabled&&(this.stateTracker.delete(e),this.applyStates())}suppressTooltip(e){this.suppressState.set(e,!0)}unsuppressTooltip(e){this.suppressState.delete(e)}getTooltipMeta(e){var t;return(t=this.stateTracker.get(e))==null?void 0:t.meta}destroy(){this.domManager.removeStyles("tooltip")}applyStates(){var u;let e=this.stateTracker.stateId(),t=e?this.stateTracker.get(e):null;if(this.suppressState.stateValue()||(t==null?void 0:t.meta)==null||(t==null?void 0:t.content)==null){this.appliedState=null,this.tooltip.hide();return}let n=this.domManager.getBoundingClientRect(),a=this.tooltip.bounds==="extended"?this.domManager.getOverlayClientRect():n;if(((u=this.appliedState)==null?void 0:u.content)===(t==null?void 0:t.content)){let y=this.tooltip.isVisible();this.tooltip.show(a,n,t==null?void 0:t.meta,null,y)}else this.tooltip.show(a,n,t==null?void 0:t.meta,t==null?void 0:t.content);this.appliedState=t}static makeTooltipMeta(e,t){var R,F;let{canvasX:n,canvasY:a}=e,u=t.series.properties.tooltip,y={canvasX:n,canvasY:a,enableInteraction:(F=(R=u.interaction)==null?void 0:R.enabled)!=null?F:!1,lastPointerEvent:{type:e.type,canvasX:n,canvasY:a},showArrow:u.showArrow,position:{type:u.position.type,xOffset:u.position.xOffset,yOffset:u.position.yOffset}},k=t1(t);return(u.position.type==="node"||u.position.type==="sparkline")&&k?He(ge({},y),{canvasX:k.canvasX,canvasY:k.canvasY}):y}}}});function jc(e){return{x:e.x1,y:e.y1}}function $m(e){return{x:e.x2,y:e.y2}}function bT(e){return{x:(e.x1+e.x2)/2,y:Math.min(e.y1,e.y2)}}function Qm(e){return{x:(e.x1+e.x2)/2,y:(e.y1+e.y2)/2}}function Pv(e){return{x:(e.x1+e.x2)/2,y:Math.max(e.y1,e.y2)}}function Lb(e){return Math.abs(e.x2-e.x1)}function n1(e){return Math.abs(e.y2-e.y1)}function FM(e){return{x1:Math.round(e.x1),y1:Math.round(e.y1),x2:Math.round(e.x2),y2:Math.round(e.y2)}}function Zs(e){return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}}function za(e,t,n,a){if(typeof e=="number")return{x1:e,y1:t,x2:n,y2:a};if("width"in e)return{x1:e.x,y1:e.y,x2:e.x+e.width,y2:e.y+e.height};throw new Error(`Values can not be converted into a vector4: [${JSON.stringify(e)}] [${t}] [${n}] [${a}]`)}function bh(){return{x1:0,y1:0,x2:0,y2:0}}var hS,CT=A({"packages/ag-charts-community/src/util/vector4.ts"(){"use strict";hS={bottomCenter:Pv,center:Qm,clone:Zs,end:$m,from:za,height:n1,round:FM,start:jc,topCenter:bT,origin:bh,width:Lb}}});function _M(e,t,n,a,u){return t+(a-t)*((u-e)/(n-e))}function ST(e,t,n,a,u){return e+(u-t)*((n-e)/(a-t))}function NM(e,t,n){return[ST(e,n.min,t,n.max,0),ST(e,n.min,t,n.max,1)]}function bL(e,t,n){let[a,u]=NM(e.x1,e.x2,t),[y,k]=NM(e.y1,e.y2,n);return{x1:a,x2:u,y1:y,y2:k}}function wT(e,t,n,a,u,y){if(n<=u&&y<=a)return n;let k=u-n,R=y-a,F=Math.abs(k)<Math.abs(R)?k:R;return fn(e,n+F,t)}function Ob(e,t,n){let{x:a={min:0,max:1},y:u={min:0,max:1}}=t,y=hS.from(n),k=hS.from(e),R=bL(k,a,u),F=wT(R.x1,R.x2,k.x1,k.x2,y.x1,y.x2),_=wT(R.y1,R.y2,k.y1,k.y2,y.y1,y.y2);return{x:{min:_M(k.x1,a.min,k.x2,a.max,F),max:_M(k.x1,a.min,k.x2,a.max,F+e.width)},y:{min:_M(k.y1,u.min,k.y2,u.max,_),max:_M(k.y1,u.min,k.y2,u.max,_+e.height)}}}var Hc=A({"packages/ag-charts-community/src/util/panToBBox.ts"(){"use strict";gn(),CT()}}),gS,Ch,zM,BM,Jm=A({"packages/ag-charts-community/src/chart/interaction/zoomManager.ts"(){"use strict";cs(),Jy(),Mr(),Bo(),nc(),on(),gn(),Hc(),Rb(),bn(),Tn(),gS=["rangeX","rangeY","ratioX","ratioY","autoScaleYAxis"],Ch=class{constructor(){this.enabled=!1,this.padding=0,this.manuallyAdjusted=!1}},zM=class extends Tr{constructor(){super(...arguments),this.mementoOriginatorKey="zoom",this.axisZoomManagers=new Map,this.state=new Ym(void 0,"initial"),this.axes=[],this.didLayoutAxes=!1,this.autoScaleYAxis=new Ch,this.lastRestoredState=void 0,this.independentAxes=!1,this.navigatorModule=!1,this.zoomModule=!1,this.pendingMemento=void 0}addLayoutListeners(e){this.destroyFns.push(e.addListener("layout:complete",()=>{let{pendingMemento:t}=this,n=!this.didLayoutAxes;this.didLayoutAxes=!0,t?this.restoreMemento(t.version,t.mementoVersion,t.memento):n&&this.autoScaleYZoom("zoom-manager")}))}createMemento(){let e=this.getDefinedZoom(),t={rangeX:this.getRangeDirection(e.x,"x"),rangeY:this.getRangeDirection(e.y,"y"),ratioX:{start:e.x.min,end:e.x.max},ratioY:{start:e.y.min,end:e.y.max}};return this.autoScaleYAxis.enabled&&(t.autoScaleYAxis=!this.autoScaleYAxis.manuallyAdjusted),t}guardMemento(e){if(e==null)return!0;if(!ur(e))return!1;for(let t of Object.keys(e))if(!NA(gS,t))return!1;return!0}restoreMemento(e,t,n){var R,F,_,V,K,q;let{independentAxes:a}=this;if(!this.axes||!this.didLayoutAxes){this.pendingMemento={version:e,mementoVersion:t,memento:n};return}this.pendingMemento=void 0;let u=this.getDefinedZoom();if(n!=null&&n.rangeX?u.x=(R=this.rangeToRatio(n.rangeX,"x"))!=null?R:{min:0,max:1}:n!=null&&n.ratioX?u.x={min:(F=n.ratioX.start)!=null?F:0,max:(_=n.ratioX.end)!=null?_:1}:u.x={min:0,max:1},(!this.navigatorModule||this.zoomModule)&&(n!=null&&n.rangeY?u.y=(V=this.rangeToRatio(n.rangeY,"y"))!=null?V:{min:0,max:1}:n!=null&&n.ratioY?u.y={min:(K=n.ratioY.start)!=null?K:0,max:(q=n.ratioY.end)!=null?q:1}:u.y={min:0,max:1}),(n==null?void 0:n.autoScaleYAxis)!=null&&(this.autoScaleYAxis.manuallyAdjusted=!n.autoScaleYAxis),this.lastRestoredState=u,a!==!0){this.updateZoom("zoom-manager",u);return}let y=this.getPrimaryAxis("x"),k=this.getPrimaryAxis("y");for(let $ of[y,k])$&&this.updateAxisZoom("zoom-manager",$.id,u[$.direction])}updateAxes(e){var n;this.axes=e;let t=new Map(e.map(a=>[a.id,this.axisZoomManagers.get(a.id)]));this.axisZoomManagers.clear();for(let a of e)this.axisZoomManagers.set(a.id,(n=t.get(a.id))!=null?n:new BM(a));this.state.size>0&&e.length>0&&this.updateZoom(this.state.stateId(),this.state.stateValue())}setIndependentAxes(e=!0){this.independentAxes=e}setAutoScaleYAxis(e,t){this.autoScaleYAxis.enabled=e,this.autoScaleYAxis.padding=t}setNavigatorEnabled(e=!0){this.navigatorModule=e}setZoomModuleEnabled(e=!0){this.zoomModule=e}isZoomEnabled(){return this.zoomModule}updateZoom(e,t){if(this.axisZoomManagers.size===0){let n=this.state.stateId();(n==="initial"||n===e)&&this.state.set(e,t);return}this.state.set(e,t),this.axisZoomManagers.forEach(n=>{n.updateZoom(e,t==null?void 0:t[n.getDirection()])}),this.applyChanges(e)}updateAxisZoom(e,t,n){var a;(a=this.axisZoomManagers.get(t))==null||a.updateZoom(e,n),this.applyChanges(e)}resetZoom(e){var n,a,u,y,k,R,F,_;this.autoScaleYAxis.manuallyAdjusted=!1;let t=this.getRestoredZoom();this.updateZoom(e,{x:{min:(a=(n=t==null?void 0:t.x)==null?void 0:n.min)!=null?a:0,max:(y=(u=t==null?void 0:t.x)==null?void 0:u.max)!=null?y:1},y:{min:(R=(k=t==null?void 0:t.y)==null?void 0:k.min)!=null?R:0,max:(_=(F=t==null?void 0:t.y)==null?void 0:F.max)!=null?_:1}})}resetAxisZoom(e,t){var u,y;let n=this.axisZoomManagers.get(t),a=n==null?void 0:n.getDirection();a!=null&&(a==="y"&&(this.autoScaleYAxis.manuallyAdjusted=!1),this.updateAxisZoom(e,t,(y=(u=this.getRestoredZoom())==null?void 0:u[a])!=null?y:{min:0,max:1}))}setAxisManuallyAdjusted(e,t){var a;((a=this.axisZoomManagers.get(t))==null?void 0:a.getDirection())==="y"&&(this.autoScaleYAxis.manuallyAdjusted=!0)}updatePrimaryAxisZoom(e,t,n){let a=this.getPrimaryAxis(t);a&&this.updateAxisZoom(e,a.id,n)}panToBBox(e,t,n){let a=this.getZoom();if(a===void 0||!a.x&&!a.y)return;if(!(t.width>0&&t.height>0&&Math.abs(n.width)<=Math.abs(t.width)&&Math.abs(n.height)<=Math.abs(t.height))){hi.warnOnce("cannot pan to target BBox - chart too small?");return}let y=Ob(t,a,n);this.independentAxes?(this.updatePrimaryAxisZoom(e,"x",y.x),this.updatePrimaryAxisZoom(e,"y",y.y)):this.updateZoom(e,y)}fireZoomPanStartEvent(e){this.listeners.dispatch("zoom-pan-start",{type:"zoom-pan-start",callerId:e})}extendToEnd(e,t,n){return this.extendWith(e,t,a=>Number(a)-n)}extendWith(e,t,n){let a=this.getPrimaryAxis(t);if(!a)return;let u=this.getDomainExtents(a);if(!u)return;let[,y]=u,k=n(y),R=this.rangeToRatio({start:k,end:y},t);R&&this.updateZoom(e,{[t]:R})}updateWith(e,t,n){let a=this.getPrimaryAxis(t);if(!a)return;let u=this.getDomainExtents(a);if(!u)return;let[y,k]=u;[y,k]=n(y,k);let R=this.rangeToRatio({start:y,end:k},t);R&&this.updateZoom(e,{[t]:R})}getZoom(){let e,t;if(this.axisZoomManagers.forEach(n=>{n.getDirection()==="x"?e!=null||(e=n.getZoom()):n.getDirection()==="y"&&(t!=null||(t=n.getZoom()))}),e||t)return{x:e,y:t}}getAxisZoom(e){var t,n;return(n=(t=this.axisZoomManagers.get(e))==null?void 0:t.getZoom())!=null?n:{min:0,max:1}}getAxisZooms(){let e={};for(let[t,n]of this.axisZoomManagers.entries())e[t]={direction:n.getDirection(),zoom:n.getZoom()};return e}getRestoredZoom(){return this.lastRestoredState}autoScaleYZoom(e,t=!0){let{independentAxes:n,autoScaleYAxis:a}=this,u=this.getZoom();if((u==null?void 0:u.x)==null||!a.enabled||a.manuallyAdjusted)return;let{padding:y}=a,k=n?this.primaryAxisZoom("y",u.x,{padding:y}):this.combinedAxisZoom("y",u.x,{padding:y});if(k!=null){if(n){let R=this.getPrimaryAxis("y"),F=R==null?void 0:this.axisZoomManagers.get(R.id);F==null||F.updateZoom("zoom-manager",k)}else for(let R of this.axisZoomManagers.values())R.getDirection()==="y"&&R.updateZoom("zoom-manager",k);t&&this.applyChanges(e)}}applyChanges(e){if(this.autoScaleYZoom(e,!1),!Array.from(this.axisZoomManagers.values(),a=>a.applyChanges()).includes(!0))return;let n={};for(let[a,u]of this.axisZoomManagers.entries())n[a]=u.getZoom();this.listeners.dispatch("zoom-change",He(ge({type:"zoom-change"},this.getZoom()),{axes:n,callerId:e}))}getRangeDirection(e,t){var F,_,V,K,q,$,te,se;let n=this.getPrimaryAxis(t);if(!n||!Ha.is(n.scale)&&!tc.is(n.scale))return;let a=this.getDomainPixelExtents(n);if(!a)return;let[u,y]=a,k,R;return u<=y?(k=(_=(F=n.scale).invert)==null?void 0:_.call(F,0),R=(K=(V=n.scale).invert)==null?void 0:K.call(V,u+(y-u)*e.max)):(k=($=(q=n.scale).invert)==null?void 0:$.call(q,u-(u-y)*e.min),R=(se=(te=n.scale).invert)==null?void 0:se.call(te,0)),{start:k,end:R}}rangeToRatio(e,t){var K,q,$,te;let n=this.getPrimaryAxis(t);if(!n)return;let a=this.getDomainPixelExtents(n);if(!a)return;let[u,y]=a,k=e.start==null?u:(q=(K=n.scale).convert)==null?void 0:q.call(K,e.start),R=e.end==null?y:(te=($=n.scale).convert)==null?void 0:te.call($,e.end);if(!pa(k)||!pa(R))return;let F=y-u,_=Math.abs((k-u)/F),V=Math.abs((R-u)/F);return{min:_,max:V}}getPrimaryAxis(e){var t;return(t=this.axes)==null?void 0:t.find(n=>n.direction===e)}getDomainExtents(e){var u,y;let t=(y=(u=e.scale).getDomain)==null?void 0:y.call(u),n=t==null?void 0:t.at(0),a=t==null?void 0:t.at(-1);if(!(n==null||a==null))return[n,a]}getDomainPixelExtents(e){var u,y,k,R,F,_;let t=(y=(u=e.scale).getDomain)==null?void 0:y.call(u),n=(R=(k=e.scale).convert)==null?void 0:R.call(k,t==null?void 0:t.at(0)),a=(_=(F=e.scale).convert)==null?void 0:_.call(F,t==null?void 0:t.at(-1));if(!(!pa(n)||!pa(a)))return[n,a]}getDefinedZoom(){var t,n,a,u,y,k,R,F;let e=this.getZoom();return{x:{min:(n=(t=e==null?void 0:e.x)==null?void 0:t.min)!=null?n:0,max:(u=(a=e==null?void 0:e.x)==null?void 0:a.max)!=null?u:1},y:{min:(k=(y=e==null?void 0:e.y)==null?void 0:y.min)!=null?k:0,max:(F=(R=e==null?void 0:e.y)==null?void 0:R.max)!=null?F:1}}}zoomBounds(e,t,n,a){let u=e.scale,y=u.range;u.range=[0,1];let[k,R]=ss(t.scale.domain),F=1,_=!1,V=0,K=!1;for(let te of t.boundSeries){let[se,de]=te.getRange("y",[n.min,n.max]),pe=(se-k)/(R-k),Ce=(de-k)/(R-k);if([pe,Ce]=ss([pe,Ce]),!Number.isFinite(pe)||!Number.isFinite(Ce))continue;let{connectsToYAxis:Se}=te;pe<F&&(F=pe,_=!Se||se<0),Ce>V&&(V=Ce,K=!Se||de>0)}u.range=y;let q=(_?a:0)+(K?a:0),$=(V-F)*(1+q);if(!($<=0||$>=1)){if(_&&K){let te=(V+F)/2;F=te-$/2,V=te+$/2}else!_&&K?V=F+$:_&&!K&&(F=V-$);return F<0?(V+=-F,F=0):V>1&&(F-=V-1,V=1),{min:F,max:V}}}primaryAxisZoom(e,t,{padding:n=0}={}){let a=e==="x"?"y":"x",u=this.getPrimaryAxis(a),y=this.getPrimaryAxis(e);if(!(u==null||y==null))return this.zoomBounds(u,y,t,n)}combinedAxisZoom(e,t,{padding:n=0}={}){let a=e==="x"?"y":"x",u=new Map;for(let R of this.axes)if(R.direction===a)for(let F of R.boundSeries)u.set(F,R);let y=1,k=0;for(let R of this.axes)if(R.direction===e)for(let F of R.boundSeries){let _=u.get(F);if(_==null)continue;let V=this.zoomBounds(_,R,t,n);if(V==null)return;y=Math.min(y,V.min),k=Math.max(k,V.max)}if(!(y>k))return{min:y,max:k}}},BM=class{constructor(e){this.axis=e;let[t=0,n=1]=e.visibleRange;this.state=new Ym({min:t,max:n}),this.currentZoom=this.state.stateValue()}getDirection(){return this.axis.direction}updateZoom(e,t){this.state.set(e,t)}getZoom(){return Us(this.state.stateValue())}hasChanges(){let e=this.currentZoom,t=this.state.stateValue();return e.min!==t.min||e.max!==t.max}applyChanges(){let e=this.hasChanges();return this.currentZoom=this.state.stateValue(),e}}}}),ug,ef=A({"packages/ag-charts-community/src/chart/layout/seriesLabelLayoutManager.ts"(){"use strict";vn(),uD(),ug=class{constructor(){this.labelData=new Map}updateLabels(e,t,n=ki.zero){var k,R;let a={x:-t.left,y:-t.top,width:n.width+t.left+t.right,height:n.height+t.top+t.bottom},u=new Set(e.map(F=>F.id));for(let F of this.labelData.keys())u.has(F)||this.labelData.delete(F);for(let F of e){let _=F.getLabelData();_.every(Fx)&&this.labelData.set(F.id,_)}let y=$h(this.labelData,a,5);for(let F of e)(R=F.updatePlacedLabelData)==null||R.call(F,(k=y.get(F.id))!=null?k:[])}}}}),Lv,a1=A({"packages/ag-charts-community/src/chart/legend/legendManager.ts"(){"use strict";Bo(),on(),bn(),Lv=class extends Tr{constructor(e){super(),this.chartService=e,this.mementoOriginatorKey="legend",this.legendDataMap=new Map}createMemento(){return this.getData().filter(({hideInLegend:e,isFixed:t})=>!e&&!t).map(({enabled:e,seriesId:t,itemId:n,legendItemName:a})=>({visible:e,seriesId:t,itemId:n,legendItemName:a}))}guardMemento(e){return e==null||ja(e)}restoreMemento(e,t,n){n==null||n.forEach(a=>{var k;let{seriesId:u,data:y}=(k=this.getRestoredData(a))!=null?k:{};!u||!y||this.updateData(u,y)}),this.update()}getRestoredData(e){var y,k;let{seriesId:t,itemId:n,legendItemName:a,visible:u}=e;if(t){let F=((y=this.legendDataMap.get(t))!=null?y:[]).map(_=>{let V=_.seriesId===t&&(!n||_.itemId===n);return V&&_.isFixed&&this.warnFixed(_.seriesId,_.itemId),!_.isFixed&&V?He(ge({},_),{enabled:u}):_});return{seriesId:t,data:F}}if(!(n==null&&a==null))for(let R of this.getData()){if(n!=null&&R.itemId!==n||a!=null&&R.legendItemName!==a)continue;if(R.isFixed){this.warnFixed(R.seriesId,n);return}let F=((k=this.legendDataMap.get(R.seriesId))!=null?k:[]).map(_=>_.itemId===n||_.legendItemName===a?He(ge({},_),{enabled:u}):_);return{seriesId:R.seriesId,data:F}}}warnFixed(e,t){hi.warnOnce(`The legend item with seriesId [${e}] and itemId [${t}] is not configurable, this series item cannot be toggled through the legend.`)}update(e){this.listeners.dispatch("legend-change",{type:"legend-change",legendData:e!=null?e:this.getData()})}updateData(e,t=[]){this.legendDataMap.set(e,t)}clearData(){this.legendDataMap.clear()}toggleItem({enabled:e,seriesId:t,itemId:n,legendItemName:a}){if(a){this.getData().forEach(R=>{var _;let F=((_=this.legendDataMap.get(R.seriesId))!=null?_:[]).map(V=>V.legendItemName===a?He(ge({},V),{enabled:e}):V);this.updateData(R.seriesId,F)});return}let u=this.getData(t),y=u.length===1,k=u.map(R=>n==null&&y||R.itemId===n?He(ge({},R),{enabled:e}):R);this.updateData(t,k)}getData(e){var t;return e?(t=this.legendDataMap.get(e))!=null?t:[]:[...this.legendDataMap].reduce((n,[a,u])=>n.concat(u),[])}getDatum({seriesId:e,itemId:t}={}){return this.getData(e).find(n=>n.itemId===t)}getSeriesEnabled(e){let t=this.getData(e);if(t.length>0)return t.some(n=>n.enabled)}getItemEnabled({seriesId:e,itemId:t}={}){var n,a;return(a=(n=this.getDatum({seriesId:e,itemId:t}))==null?void 0:n.enabled)!=null?a:!0}}}}),xp,o1=A({"packages/ag-charts-community/src/chart/series/seriesStateManager.ts"(){"use strict";xp=class{constructor(){this.groups={}}registerSeries({internalId:e,seriesGrouping:t,visible:n,type:a}){var y;var u;t&&((y=(u=this.groups)[a])!=null||(u[a]={}),this.groups[a][e]={grouping:t,visible:n})}updateSeries({internalId:e,seriesGrouping:t,visible:n,type:a}){var y;if(!t)return;let u=(y=this.groups[a])==null?void 0:y[e];u&&(u.grouping=t,u.visible=n)}deregisterSeries({internalId:e,type:t}){this.groups[t]&&delete this.groups[t][e],this.groups[t]&&Object.keys(this.groups[t]).length===0&&delete this.groups[t]}getVisiblePeerGroupIndex({type:e,seriesGrouping:t,visible:n}){var k;if(!t)return{visibleGroupCount:n?1:0,visibleSameStackCount:n?1:0,index:0};let a=new Set,u=new Set;for(let R of Object.values((k=this.groups[e])!=null?k:{}))R.visible&&(a.add(R.grouping.groupIndex),R.grouping.groupIndex===t.groupIndex&&u.add(R.grouping.stackIndex));let y=Array.from(a);return y.sort((R,F)=>R-F),{visibleGroupCount:y.length,visibleSameStackCount:u.size,index:y.indexOf(t.groupIndex)}}}}}),hg,kd=A({"packages/ag-charts-community/src/chart/chartUpdateType.ts"(){"use strict";hg=(e=>(e[e.FULL=0]="FULL",e[e.UPDATE_DATA=1]="UPDATE_DATA",e[e.PROCESS_DATA=2]="PROCESS_DATA",e[e.PERFORM_LAYOUT=3]="PERFORM_LAYOUT",e[e.SERIES_UPDATE=4]="SERIES_UPDATE",e[e.PRE_SCENE_RENDER=5]="PRE_SCENE_RENDER",e[e.SCENE_RENDER=6]="SCENE_RENDER",e[e.NONE=7]="NONE",e))(hg||{})}}),El,Sh=A({"packages/ag-charts-community/src/chart/updateService.ts"(){"use strict";ng(),kd(),El=class extends vh{constructor(e){super(),this.updateCallback=e}update(e=0,t){this.updateCallback(e,t)}dispatchUpdateComplete(e){this.dispatch("update-complete",{type:"update-complete",minRect:e==null?void 0:e.minRect,minVisibleRect:e==null?void 0:e.minVisibleRect})}dispatchPreDomUpdate(){this.dispatch("pre-dom-update",{type:"pre-dom-update"})}dispatchPreSceneRender(e){this.dispatch("pre-scene-render",ge({type:"pre-scene-render"},e))}}}}),r1,xT=A({"packages/ag-charts-community/src/chart/chartContext.ts"(){"use strict";lu(),aL(),oL(),FD(),dT(),hT(),mh(),oS(),mT(),mL(),fT(),kn(),XD(),$D(),QD(),ws(),lS(),e1(),cg(),RM(),dS(),i1(),Jm(),rc(),ef(),a1(),o1(),Sh(),r1=class{constructor(e,t){this.callbackCache=new WD,this.chartEventManager=new ZD,this.highlightManager=new cS,this.layoutManager=new fh,this.localeManager=new tS,this.seriesStateManager=new xp,this.stateManager=new Mv,this.zoomManager=new zM,this.seriesLabelLayoutManager=new ug,this.contextModules=[];let{scene:n,root:a,syncManager:u,container:y,updateCallback:k,updateMutex:R,pixelRatio:F,styleContainer:_,chartType:V}=t;this.chartService=e,this.syncManager=u,this.domManager=new mM(y,_);let K=this.domManager.addChild("canvas","scene-canvas",n==null?void 0:n.canvas.element);this.scene=n!=null?n:new Rv({pixelRatio:F,canvasElement:K}),this.scene.setRoot(a),this.axisManager=new KD(a),this.legendManager=new Lv(this.chartService),this.annotationManager=new UD(e.annotationRoot),this.chartTypeOriginator=new fb(e),this.cursorManager=new Zm(this.domManager),this.interactionManager=new Km(e.keyboard,this.domManager),this.regionManager=new dg(this.interactionManager),this.keyNavManager=new TM(this.interactionManager,this.regionManager),this.contextMenuRegistry=new IM,this.gestureDetector=new Md(this.domManager),this.updateService=new El(k),this.proxyInteractionService=new BD(this.localeManager,this.domManager),this.historyManager=new K0(this.keyNavManager),this.animationManager=new qm(this.interactionManager,R),this.dataService=new Xs(this.animationManager),this.tooltipManager=new uS(this.domManager,e.tooltip),this.zoomManager.addLayoutListeners(this.layoutManager);for(let q of ph.byType("context")){if(!q.chartTypes.includes(V))continue;let $=q.moduleFactory(this);this.contextModules.push($),this[q.contextKey]=$}}destroy(){this.animationManager.destroy(),this.highlightManager.destroy(),this.axisManager.destroy(),this.callbackCache.invalidateCache(),this.chartEventManager.destroy(),this.domManager.destroy(),this.highlightManager.destroy(),this.keyNavManager.destroy(),this.regionManager.destroy(),this.interactionManager.destroy(),this.proxyInteractionService.destroy(),this.syncManager.destroy(),this.tooltipManager.destroy(),this.zoomManager.destroy(),this.contextModules.forEach(e=>e.destroy())}}}}),GM,MT=A({"packages/ag-charts-community/src/chart/chartHighlight.ts"(){"use strict";zn(),Ai(),GM=class extends dn{constructor(){super(...arguments),this.range="tooltip"}},b([Ge(uo(["tooltip","node"],"a range"))],GM.prototype,"range",2)}});function kT(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function AT(e,t){if(e==null||t==null)return e===t;if(e.size!==t.size)return!1;for(let[n,a]of e){let u=t.get(n);if(u==null||!kT(a,u))return!1}return!0}function s1(e,t){if(e.length!==t.length)return!1;for(let u=0;u<e.length;u+=1){let n=e[u],{idsMap:y}=n,k=wi(n,["idsMap"]),a=t[u],{idsMap:R}=a,F=wi(a,["idsMap"]);if(!yo(k,F)||!AT(y,R))return!1}return!0}function Fb(e,t){let k=e,{props:n}=k,a=wi(k,["props"]),R=t,{props:u}=R,y=wi(R,["props"]);return yo(a,y)&&s1(n,u)}function l1(e,t,n,a){return t===e.data&&th(n,e.ids)&&Fb(a,e.opts)}var pS=A({"packages/ag-charts-community/src/chart/data/caching.ts"(){"use strict";Mr(),ra()}}),ko,po,VM=A({"packages/ag-charts-community/src/chart/data/dataDomain.ts"(){"use strict";ko=class kZ{constructor(){this.domain=new Set}static is(t){return t instanceof kZ}extend(t){this.domain.add(t)}getDomain(){return Array.from(this.domain)}},po=class AZ{constructor(){this.domain=[1/0,-1/0]}static is(t){return t instanceof AZ}static extendDomain(t,n=[1/0,-1/0]){for(let a of t)typeof a=="number"&&(n[0]>a&&(n[0]=a),n[1]<a&&(n[1]=a));return n}extend(t){this.domain[0]>t&&(this.domain[0]=t),this.domain[1]<t&&(this.domain[1]=t)}getDomain(){return[...this.domain]}}}}),Wc,Uc,Yr,_b,Nb=A({"packages/ag-charts-community/src/chart/data/rangeLookup.ts"(){"use strict";Wc=0,Uc=1,Yr=2,_b=class{constructor(e){let t=e.reduce((y,k)=>Math.max(y,k.length),0),a=1<<32-Math.clz32(t);t===a/2&&(a=a>>>1),this.maxLevelSize=a;let u=new Float64Array((a*2-1)*2).fill(NaN);for(let y of e)for(let k=0;k<y.length;k+=1){let R=Number(y[k]),F=a+k-1,_=(F*Yr|0)+Wc,V=(F*Yr|0)+Uc,K=u[_],q=u[V];(!Number.isFinite(K)||R<K)&&(u[_]=R),(!Number.isFinite(q)||R>q)&&(u[V]=R)}for(let y=a/2|0;y>=1;y=y/2|0){let k=y-1|0,R=k+y|0;for(let F=0;F<y;F+=1){let _=k+F,V=R+F*2,K=V+1,q=u[(V*Yr|0)+Wc],$=u[(K*Yr|0)+Wc];u[(_*Yr|0)+Wc]=!Number.isFinite($)||q<$?q:$;let te=u[(V*Yr|0)+Uc],se=u[(K*Yr|0)+Uc];u[(_*Yr|0)+Uc]=!Number.isFinite(se)||te>se?te:se}}this.buffer=u}computeRangeInto(e,t,n,a,u,y,k){let R=u+y-1;if(R<t||u>n)return k;if(u>=t&&R<=n){let F=e[(a*Yr|0)+Wc],_=e[(a*Yr|0)+Uc];Number.isFinite(F)&&(k[0]=Math.min(k[0],F)),Number.isFinite(_)&&(k[1]=Math.max(k[1],_))}else y>1&&(a=a*2|0,y=y/2|0,this.computeRangeInto(e,t,n,a+1|0,u,y,k),this.computeRangeInto(e,t,n,a+2|0,u+y,y,k));return k}rangeBetween(e,t){let{maxLevelSize:n,buffer:a}=this,u=[1/0,-1/0];return this.computeRangeInto(a,e,t,0,0,n,u),u}get range(){let{buffer:e}=this;return[e[Wc],e[Uc]]}}}});function mS(e){return e.map(t=>ur(t)?JSON.stringify(t):t).join("-")}function gg(e){return Number.isInteger(e)?e:Math.abs(e)>1e4?Math.trunc(e):Math.round(e*1e4)/1e4}function $s(e){let t=e==null?void 0:e.map(Number);return t!=null&&t.every(Number.isFinite)?t:[]}function pg(e,t){var n;return(n=t==null?void 0:t.get(e.id))!=null?n:0}function fS(e,t){let n=[];for(let a=0;a<e;a+=1)n[a]=t;return n}function Ad(e,t){let n=[];for(let a of e){let u=a[t];if(u==null)return;n.push(u)}return n}function Mp(e){let t=[],n=0,a,u=new RegExp(`((?:(?:^|\\.)\\s*\\w+|\\[\\s*(?:'(?:[^']|(?<!\\\\)\\\\')*'|"(?:[^"]|(?<!\\\\)\\\\")*"|-?\\d+)\\s*\\])\\s*)`,"g");for(;a=u.exec(e);){if(a.index!==n)return;n=a.index+a[0].length;let y=a[1].trim();if(y.startsWith("."))t.push(y.slice(1).trim());else if(y.startsWith("[")){let k=y.slice(1,-1).trim();k.startsWith("'")?t.push(k.slice(1,-1).replace(new RegExp("(?<!\\\\)\\\\'","g"),"'")):k.startsWith('"')?t.push(k.slice(1,-1).replace(new RegExp('(?<!\\\\)\\\\"',"g"),'"')):t.push(k)}else t.push(y)}if(n===e.length)return t}function tf(e){return t=>{let n=t;for(let a of e)n=n[a];return n}}function jM(e){var n,a;let t=(u,y)=>{y.length>0&&(hi.log(`DataModel.processData() - ${u}`),hi.table(y))};hi.log("DataModel.processData() - processedData",e),t("Key Domains",e.domain.keys),t("Group Domains",(n=e.domain.groups)!=null?n:[]),t("Value Domains",e.domain.values),t("Aggregate Domains",(a=e.domain.aggValues)!=null?a:[])}var zb,kp,Ov,Il=A({"packages/ag-charts-community/src/chart/data/dataModel.ts"(){"use strict";pr(),Zg(),on(),gn(),bn(),VM(),Nb(),zb=Symbol("domain-ranges"),kp=Symbol("invalid"),Ov=class{constructor(e,t="standalone",n=!1){this.opts=e,this.mode=t,this.suppressFieldDotNotation=n,this.debug=la.create(!0,"data-model"),this.scopeCache=new Map,this.keys=[],this.values=[],this.aggregates=[],this.groupProcessors=[],this.propertyProcessors=[],this.reducers=[],this.processors=[];let a=!0;for(let y of e.props){if(y.type==="key"&&!a)throw new Error("AG Charts - internal config error: keys must come before values.");y.type==="value"&&a&&(a=!1)}let u=({matchGroupIds:y=[]})=>{for(let k of y)if(this.values.every(R=>R.groupId!==k))throw new Error(`AG Charts - internal config error: matchGroupIds properties must match defined groups (${k}).`)};for(let y of e.props)switch(y.type){case"key":this.keys.push(He(ge({},y),{index:this.keys.length,missing:new Map}));break;case"value":if(y.property==null)throw new Error(`AG Charts - internal config error: no properties specified for value definitions: ${JSON.stringify(y)}`);this.values.push(He(ge({},y),{index:this.values.length,missing:new Map}));break;case"aggregate":u(y),this.aggregates.push(He(ge({},y),{index:this.aggregates.length}));break;case"group-value-processor":u(y),this.groupProcessors.push(He(ge({},y),{index:this.groupProcessors.length}));break;case"property-value-processor":this.propertyProcessors.push(He(ge({},y),{index:this.propertyProcessors.length}));break;case"reducer":this.reducers.push(He(ge({},y),{index:this.reducers.length}));break;case"processor":this.processors.push(He(ge({},y),{index:this.processors.length}));break}}resolveProcessedDataDefById(e,t){var a;let n=(a=this.scopeCache.get(e.id))==null?void 0:a.get(t);if(!n)throw new Error(`AG Charts - didn't find property definition for [${t}, ${e.id}]`);return{index:n.index,def:n}}resolveProcessedDataIndexById(e,t){return this.resolveProcessedDataDefById(e,t).index}resolveProcessedDataDefsByIds(e,t){return t.map(n=>[n,this.resolveProcessedDataDefById(e,n)])}resolveKeysById(e,t,n){let a=this.resolveProcessedDataIndexById(e,t),u=n.keys[a];if(u==null)throw new Error(`AG Charts - didn't find keys for [${t}, ${e.id}]`);return u}resolveColumnById(e,t,n){var y;let a=this.resolveProcessedDataIndexById(e,t),u=(y=n.columns)==null?void 0:y[a];if(u==null)throw new Error(`AG Charts - didn't find column for [${t}, ${e.id}]`);return u}resolveProcessedDataDefsValues(e,{keys:t,values:n}){let a={};for(let[u,{index:y,def:k}]of e){let R=k.type==="key"?t:n;a[u]=R[y]}return a}getDomain(e,t,n,a){var y;let u=this.getDomainsByType(n!=null?n:"value",a);return(y=u==null?void 0:u[this.resolveProcessedDataIndexById(e,t)])!=null?y:[]}getDomainBetweenRange(e,t,[n,a],u){let y=t.map(_=>this.resolveProcessedDataIndexById(e,_)),k=y.join(":"),R=u[zb],F=R.get(k);if(F==null){let _=y.map(V=>u.columns[V]);F=new _b(_),R.set(k,F)}return F.rangeBetween(n,a)}getDomainsByType(e,t){switch(e){case"key":return t.domain.keys;case"value":return t.domain.values;case"aggregate":return t.domain.aggValues;case"group-value-processor":return t.domain.groups;default:return null}}processData(e,t){let{opts:{groupByKeys:n,groupByFn:a},aggregates:u,groupProcessors:y,reducers:k,processors:R,propertyProcessors:F}=this,_=performance.now();if(n&&this.keys.length===0)return;let V=this.extractData(e,t);n?V=this.groupData(V):a&&(V=this.groupData(V,a(V))),y.length>0&&this.postProcessGroups(V),u.length>0&&this.aggregateData(V),F.length>0&&this.postProcessProperties(V),k.length>0&&this.reduceData(V),R.length>0&&this.postProcessData(V),this.warnDataMissingProperties(e);let K=performance.now();return V.time=K-_,this.debug.check()&&jM(V),this.processScopeCache(),V}warnDataMissingProperties(e){if(e.length!==0)for(let t of ii(this.keys,this.values))for(let[n,a]of t.missing){if(a<e.length)continue;let u=n==null?"":` for ${n}`;hi.warnOnce(`the key '${t.property}' was not found in any data element${u}.`)}}processScopeCache(){var e;this.scopeCache.clear();for(let t of ii(this.keys,this.values,this.aggregates))if(t.idsMap)for(let[n,a]of t.idsMap)for(let u of a)if(!this.scopeCache.has(n))this.scopeCache.set(n,new Map([[u,t]]));else{if((e=this.scopeCache.get(n))!=null&&e.has(u))throw new Error("duplicate definition ids on the same scope are not allowed.");this.scopeCache.get(n).set(u,t)}}valueGroupIdxLookup({matchGroupIds:e}){let t=[];for(let[n,a]of this.values.entries())(!e||a.groupId&&e.includes(a.groupId))&&t.push(n);return t}valueIdxLookup(e,t){let n=e==null||e.length===0,a=typeof t=="string"?t:t.id,u=k=>{if(k.idsMap){for(let[R,F]of k.idsMap)if(e!=null&&e.includes(R)&&F.has(a))return!0}return!1},y=this.values.reduce((k,R,F)=>((R.scopes==null||n&&!R.scopes.length||R.scopes.some(V=>e==null?void 0:e.includes(V)))&&(R.property===a||R.id===a||u(R))&&k.push(F),k),[]);if(y.length===0)throw new Error(`AG Charts - configuration error, unknown property ${JSON.stringify(t)} in scope(s) ${JSON.stringify(e)}`);return y}extractData(e,t){let{dataDomain:n,processValue:a,scopes:u,allScopesHaveSameDefs:y}=this.initDataDomainProcessor(),k=new Map(t==null?void 0:t.map(Ce=>[Ce.id,Ce])),{keys:R,values:F}=this,_=e.length,V=0,K,q,$=R.map(Ce=>{let{invalidValue:Se}=Ce;return e.map((ve,ke)=>{let De=a(Ce,ve,ke);return De!==kp?De:(K!=null||(K=fS(_,!1)),K[ke]=!0,q!=null||(q=fS(_,!1)),q[ke]=!0,Se)})}),te,se=(Ce,Se)=>{te!=null||(te=new Map);let ve=te.get(Ce);ve==null&&(ve=fS(_,!1),te.set(Ce,ve)),ve[Se]=!0,q!=null||(q=fS(_,!1)),q[Se]=!0},de=[];F.forEach(Ce=>{let{invalidValue:Se}=Ce,ve=de.length>0?de[de.length-1]:void 0,ke=e.map((De,Te)=>{var et,$e;let ze=(K==null?void 0:K[Te])===!0,qe=ve==null?void 0:ve[Te];for(let lt of(et=Ce.scopes)!=null?et:u){let at=k.get(lt),ht=($e=at==null?void 0:at.data[Te])!=null?$e:De;qe=a(Ce,ht,Te,qe,lt),(ze||qe===kp)&&se(lt,Te)}return ze?Se:qe===kp?(V+=1,Se):qe});de.push(ke)});let pe=Ce=>{let Se=n.get(Ce),ve=Se.getDomain();return po.is(Se)&&ve[0]>ve[1]?[]:ve};return{type:"ungrouped",input:{count:e.length},rawData:e,rawDataSources:t!=null?new Map(t.map(Ce=>[Ce.id,Ce.data])):void 0,aggregation:void 0,keys:$,columns:de,invalidKeys:K,invalidDataScopes:te,invalidData:q,domain:{keys:R.map(pe),values:F.map(pe)},defs:{allScopesHaveSameDefs:y,keys:R,values:F},partialValidDataCount:V,time:0,[zb]:new Map}}groupData(e,t){var V;let n=new Map,{rawData:a,keys:u,invalidKeys:y,invalidDataScopes:k,invalidData:R}=e;for(let K=0;K<a.length;K+=1){let q=a[K],$=Ad(u,K);if($==null||$.length===0)continue;let te=(V=t==null?void 0:t({index:K,keys:$,values:void 0,aggValues:void 0,datum:q,validScopes:void 0}))!=null?V:$,se=mS(te);if((y==null?void 0:y[K])===!0)continue;let de;if(k!=null&&(R==null?void 0:R[K])===!0&&(de=new Set,k.forEach((Ce,Se)=>{Ce[K]===!1&&de.add(Se)}),de.size===0))continue;let pe=n.get(se);if(pe!=null){if(pe.datumIndices.push(K),de!=null&&pe.validScopes!=null)for(let Ce of pe.validScopes)de.has(Ce)||pe.validScopes.delete(Ce)}else n.set(se,{keys:te,datumIndices:[K],validScopes:de})}let F=[],_=[];for(let{keys:K,datumIndices:q,validScopes:$}of n.values())($==null?void 0:$.size)!==0&&(F.push(K),_.push({datumIndices:q,keys:K,aggregation:[],validScopes:$}));return He(ge({},e),{type:"grouped",domain:He(ge({},e.domain),{groups:F}),groups:_})}aggregateData(e){var y,k,R,F,_,V,K;let t=this.aggregates.map(()=>[1/0,-1/0]);e.domain.aggValues=t;let{keys:n,columns:a,rawData:u}=e;if(e.type==="ungrouped"){let q=u.map(($,te)=>{var de,pe,Ce,Se,ve,ke;let se=[];for(let[De,Te]of this.aggregates.entries()){let ze=this.valueGroupIdxLookup(Te),qe=(pe=(de=Te.groupAggregateFunction)==null?void 0:de.call(Te))!=null?pe:[1/0,-1/0],et=ze.map(ht=>a[ht][te]),$e=Ad(n,te),lt=$e!=null?Te.aggregateFunction(et,$e):void 0;lt&&(qe=(Se=(Ce=Te.groupAggregateFunction)==null?void 0:Ce.call(Te,lt,qe))!=null?Se:po.extendDomain(lt,qe));let at=((ke=(ve=Te.finalFunction)==null?void 0:ve.call(Te,qe))!=null?ke:qe).map(ht=>gg(ht));se[De]=at,po.extendDomain(at,t[De])}return se});e.aggregation=q}else for(let[q,$]of this.aggregates.entries()){let te=this.valueGroupIdxLookup($);for(let se of e.groups){if((y=se.aggregation)!=null||(se.aggregation=[]),se.validScopes!=null)continue;let de=se.keys,pe=(R=(k=$.groupAggregateFunction)==null?void 0:k.call($))!=null?R:[1/0,-1/0];for(let Se of se.datumIndices){let ve=te.map(De=>a[De][Se]),ke=$.aggregateFunction(ve,de);ke&&(pe=(_=(F=$.groupAggregateFunction)==null?void 0:F.call($,ke,pe))!=null?_:po.extendDomain(ke,pe))}let Ce=((K=(V=$.finalFunction)==null?void 0:V.call($,pe))!=null?K:pe).map(Se=>gg(Se));se.aggregation[q]=Ce,po.extendDomain(Ce,t[q])}}}postProcessGroups(e){let{groupProcessors:t}=this,{rawData:n,columns:a,invalidData:u}=e;for(let y of t){let k=this.valueGroupIdxLookup(y),R=y.adjust()();for(let F=0;F<n.length;F+=1)(u==null?void 0:u[F])!==!0&&R(a,k,F);for(let F of k){let V=this.values[F].valueType==="category",K=a[F],q=V?new ko:new po;for(let $=0;$<n.length;$+=1)(u==null?void 0:u[$])!==!0&&q.extend(K[$]);e.domain.values[F]=q.getDomain()}}}postProcessProperties(e){for(let{adjust:t,property:n,scopes:a}of this.propertyProcessors)for(let u of this.valueIdxLookup(a,n))t()(e,u)}reduceData(e){var t,n;(t=e.reduced)!=null||(e.reduced={});for(let a of this.reducers){let u=a.reducer(),y=a.initialValue,{rawData:k,keys:R,columns:F}=e;if(e.type==="grouped")for(let _ of e.groups)(!_.validScopes||(n=a.scopes)!=null&&n.some(V=>{var K;return(K=_.validScopes)==null?void 0:K.has(V)}))&&(y=u(y,{index:_.datumIndices,keys:_.datumIndices.flatMap(V=>R.map(K=>K[V])),values:_.datumIndices.map(V=>F[V]),datum:_.datumIndices.map(V=>k[V])}));else for(let _=0;_<k.length;_+=1)y=u(y,{index:[_],keys:R.map(V=>V[_]),values:[F[_]],datum:[k[_]]});e.reduced[a.property]=y}}postProcessData(e){var t;(t=e.reduced)!=null||(e.reduced={});for(let n of this.processors)e.reduced[n.property]=n.calculate(e,e.reduced[n.property])}initDataDomainProcessor(){let{keys:e,values:t}=this,n=new Set;for(let _ of t)if(_.scopes)for(let V of _.scopes)n.add(V);let a=new Map,u=new Map,y=!0,k=()=>{var _;for(let V of ii(e,t))V.valueType==="category"?a.set(V,new ko):(a.set(V,new po),y&&(y=((_=V.scopes)!=null?_:[]).length===n.size))};k();let R=this.buildAccessors(ii(e,t));return{dataDomain:a,processValue:(_,V,K,q,$)=>{var pe,Ce,Se,ve;let te,se;if(R.has(_.property)){try{se=R.get(_.property)(V)}catch(ke){}te=se!=null}else te=_.property in V,se=te?V[_.property]:_.missingValue;_.forceValue!=null&&(se=te&&WC(se)?-1*_.forceValue:_.forceValue,te=!0);let de="missingValue"in _;if(!te&&!de){let ke=(pe=_.missing.get($))!=null?pe:0;_.missing.set($,ke+1)}if(a.has(_)||k(),te&&((Ce=_.validation)==null?void 0:Ce.call(_,se,V,K))===!1)if("invalidValue"in _)se=_.invalidValue;else return this.mode!=="integrated"&&hi.warnOnce(`invalid value of type [${typeof se}] for [${_.scopes} / ${_.id}] ignored:`,`[${se}]`),kp;return _.processor&&(u.has(_)||u.set(_,_.processor()),se=(Se=u.get(_))==null?void 0:Se(se,q===kp?void 0:q)),(ve=a.get(_))==null||ve.extend(se),se},initDataDomain:k,scopes:n,allScopesHaveSameDefs:y}}buildAccessors(e){let t=new Map;if(this.suppressFieldDotNotation)return t;for(let n of e){if(!(n.property.includes(".")||n.property.includes("[")))continue;let u=Mp(n.property);if(u==null){hi.warnOnce("Invalid property path [%s]",n.property);continue}let y=tf(u);t.set(n.property,y)}return t}}}}),nf,Bb,Fv=A({"packages/ag-charts-community/src/chart/data/dataController.ts"(){"use strict";pr(),Rn(),pS(),Il(),nf=class qw{constructor(t,n){this.mode=t,this.suppressFieldDotNotation=n,this.debug=la.create(!0,"data-model"),this.requested=[],this.status="setup"}async request(t,n,a){if(this.status!=="setup")throw new Error("AG Charts - data request after data setup phase.");return new Promise((u,y)=>{this.requested.push({id:t,opts:a,data:n,resolve:u,reject:y})})}execute(t){if(this.status!=="setup")throw new Error("AG Charts - data request after data setup phase.");this.status="executed",this.debug("DataController.execute() - requested",this.requested);let n=this.validateRequests(this.requested);this.debug("DataController.execute() - validated",n);let a=this.mergeRequested(n);this.debug("DataController.execute() - merged",a),this.debug.check()&&(ia().processedData=[]);let u=[];for(let{data:y,ids:k,opts:R,resolves:F,rejects:_}of a){let V=t==null?void 0:t.find($=>l1($,y,k,R)),K,q;if(V==null)try{K=new Ov(R,this.mode,this.suppressFieldDotNotation),q=K.processData(y,n)}catch($){_.forEach(te=>te($));continue}else({dataModel:K,processedData:q}=V);u.push({opts:R,data:y,ids:k,dataModel:K,processedData:q}),this.debug.check()&&ia("processedData").push(q),(q==null?void 0:q.partialValidDataCount)===0?F.forEach($=>$({dataModel:K,processedData:q})):q?this.splitResult(K,q,k,F):_.forEach($=>$(new Error("AG Charts - no processed data generated")))}return u}validateRequests(t){let n=[];for(let[a,u]of t.entries())a>0&&u.data.length!==t[0].data.length&&u.opts.groupByData===!1?u.reject(new Error("all series[].data arrays must be of the same length and have matching keys.")):n.push(u);return n}mergeRequested(t){let n=[];for(let a of t){let u=n.find(qw.groupMatch(a));u?u.push(a):n.push([a])}return n.map(qw.mergeRequests)}splitResult(t,n,a,u){for(let y=0;y<a.length;y++){let k=u[y];k({dataModel:t,processedData:n})}}static groupMatch({data:t,opts:n}){function a(_){return _.filter(V=>V.type==="key").map(V=>V.property).join(";")}let{groupByData:u,groupByKeys:y=!1,groupByFn:k,props:R}=n,F=a(R);return([_])=>{var V;return(u===!1||_.data===t)&&((V=_.opts.groupByKeys)!=null?V:!1)===y&&_.opts.groupByFn===k&&a(_.opts.props)===F}}static mergeRequests(t){return t.reduce((n,_)=>{var{id:a,data:u,resolve:y,reject:k,opts:V}=_,K=V,{props:R}=K,F=wi(K,["props"]);var q,$,te,se,de;n.ids.push(a),n.rejects.push(k),n.resolves.push(y),(q=n.data)!=null||(n.data=u),($=n.opts)!=null||(n.opts=He(ge({},F),{props:[]}));for(let pe of R){let Ce=He(ge({},pe),{scopes:[a]});qw.createIdsMap(a,Ce);let Se=n.opts.props.find(ve=>ve.type===Ce.type&&qw.deepEqual(ve,Ce));if(!Se){n.opts.props.push(Ce);continue}(te=Se.scopes)!=null||(Se.scopes=[]),Se.scopes.push(...(se=Ce.scopes)!=null?se:[]),(Se.type==="key"||Se.type==="value")&&((de=Ce.idsMap)!=null&&de.size)&&qw.mergeIdsMap(Ce.idsMap,Se.idsMap)}return n},{ids:[],rejects:[],resolves:[],data:null,opts:null})}static mergeIdsMap(t,n){for(let[a,u]of t){let y=n.get(a);if(y==null)n.set(a,new Set(u));else for(let k of u)y.add(k)}}static createIdsMap(t,n){var a;n.id!=null&&((a=n.idsMap)!=null||(n.idsMap=new Map),n.idsMap.has(t)?n.idsMap.get(t).add(n.id):n.idsMap.set(t,new Set([n.id])))}static deepEqual(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;let a,u;if(Array.isArray(t)){if(u=t.length,u!==n.length)return!1;for(a=u-1;a>=0;a--)if(!qw.deepEqual(t[a],n[a]))return!1;return!0}let y=Object.keys(t);if(u=y.length,u!==Object.keys(n).length)return!1;for(a=u-1;a>=0;a--){let k=y[a];if(!qw.skipKeys.has(k)&&(!Object.hasOwn(n,k)||!qw.deepEqual(t[k],n[k])))return!1}return!0}return!1}},nf.skipKeys=new Set(["id","idsMap","type","scopes"]),Bb=nf}}),HM,gu,af=A({"packages/ag-charts-community/src/chart/factory/axisRegistry.ts"(){"use strict";HM=class{constructor(){this.axesMap=new Map,this.hidden=new Set,this.themeTemplates=new Map}register(e,t){this.axesMap.set(e,t.moduleFactory),t.themeTemplate&&this.setThemeTemplate(e,t.themeTemplate),t.hidden&&this.hidden.add(e)}create(e,t){let n=this.axesMap.get(e);if(n)return n(t);throw new Error(`AG Charts - unknown axis type: ${e}`)}has(e){return this.axesMap.has(e)}keys(){return this.axesMap.keys()}publicKeys(){return[...this.keys()].filter(e=>!this.hidden.has(e))}setThemeTemplate(e,t){return this.themeTemplates.set(e,t),this}getThemeTemplate(e){return this.themeTemplates.get(e)}},gu=new HM}});function c1(e){return yr.some(t=>t.type==="series"&&t.identifier===e)}function mg(e){var t;return(t=yr.find(n=>n.type==="series"&&n.identifier===e))==null?void 0:t.chartTypes}function WM(e){var n;return((n=mg(e))==null?void 0:n.find(a=>a==="cartesian"))==="cartesian"}function sc(e){var n;return((n=mg(e))==null?void 0:n.find(a=>a==="polar"))==="polar"}function of(e){var n;return((n=mg(e))==null?void 0:n.find(a=>a==="hierarchy"))==="hierarchy"}function lc(e){var n;return((n=mg(e))==null?void 0:n.find(a=>a==="topology"))==="topology"}function fg(e){var n;return((n=mg(e))==null?void 0:n.find(a=>a==="flow-proportion"))==="flow-proportion"}function UM(e){var n;return((n=mg(e))==null?void 0:n.find(a=>a==="standalone"))==="standalone"}function KM(e){var n;return((n=mg(e))==null?void 0:n.find(a=>a==="gauge"))==="gauge"}function cc(e){return e.packageType==="enterprise"}function qM(e){var n;if(!cc(e))throw new Error("AG Charts - internal configuration error, only enterprise modules need verification.");let t=yr.find(a=>a.type===e.type&&("optionsKey"in a&&"optionsKey"in e?a.optionsKey===e.optionsKey:!0)&&("contextKey"in a&&"contextKey"in e?a.contextKey===e.contextKey:!0)&&a.identifier===e.identifier&&e.chartTypes.every(u=>a.chartTypes.includes(u)));return t&&((n=t.useCount)!=null||(t.useCount=0),t.useCount++),t!=null}function vS(){return yr.filter(({useCount:e})=>e==null||e===0)}var yr,vg=A({"packages/ag-charts-community/src/chart/factory/expectedEnterpriseModules.ts"(){"use strict";yr=[{type:"root",optionsKey:"animation",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"annotations",chartTypes:["cartesian"]},{type:"root",optionsKey:"background",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],optionsInnerKey:"image"},{type:"root",optionsKey:"foreground",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],optionsInnerKey:"image"},{type:"root",optionsKey:"chartToolbar",chartTypes:["cartesian"]},{type:"root",optionsKey:"contextMenu",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"statusBar",chartTypes:["cartesian"],identifier:"status-bar"},{type:"root",optionsKey:"dataSource",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"]},{type:"root",optionsKey:"sync",chartTypes:["cartesian"]},{type:"root",optionsKey:"zoom",chartTypes:["cartesian","topology"]},{type:"root",optionsKey:"ranges",chartTypes:["cartesian"]},{type:"legend",optionsKey:"gradientLegend",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],identifier:"gradient"},{type:"root",optionsKey:"navigator",chartTypes:["cartesian"]},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"angle-category"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"angle-number"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"radius-category"},{type:"axis",optionsKey:"axes[]",chartTypes:["polar"],identifier:"radius-number"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"bar",community:!0},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"line",community:!0},{type:"axis",optionsKey:"axes[]",chartTypes:["cartesian"],identifier:"ordinal-time"},{type:"axis-option",optionsKey:"crosshair",chartTypes:["cartesian"]},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"box-plot"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"candlestick"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"cone-funnel"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"funnel"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"ohlc"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"heatmap"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"range-area"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"range-bar"},{type:"series",optionsKey:"series[]",chartTypes:["cartesian"],identifier:"waterfall"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"nightingale"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radar-area"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radar-line"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radial-bar"},{type:"series",optionsKey:"series[]",chartTypes:["polar"],identifier:"radial-column"},{type:"series",optionsKey:"series[]",chartTypes:["hierarchy"],identifier:"sunburst"},{type:"series",optionsKey:"series[]",chartTypes:["hierarchy"],identifier:"treemap"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-shape"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-line"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-marker"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-shape-background"},{type:"series",optionsKey:"series[]",chartTypes:["topology"],identifier:"map-line-background"},{type:"series",optionsKey:"series[]",chartTypes:["flow-proportion"],identifier:"chord"},{type:"series",optionsKey:"series[]",chartTypes:["flow-proportion"],identifier:"sankey"},{type:"series",optionsKey:"series[]",chartTypes:["standalone"],identifier:"pyramid"},{type:"series",optionsKey:"series[]",chartTypes:["gauge"],identifier:"linear-gauge"},{type:"series",optionsKey:"series[]",chartTypes:["gauge"],identifier:"radial-gauge"},{type:"series-option",optionsKey:"errorBar",chartTypes:["cartesian"],identifier:"error-bars"},{type:"context",contextKey:"sharedToolbar",chartTypes:["cartesian"]}]}}),Gb,rf,_v=A({"packages/ag-charts-community/src/chart/factory/legendRegistry.ts"(){"use strict";Gb=class{constructor(){this.legendMap=new Map,this.themeTemplates=new Map}register(e,{optionsKey:t,moduleFactory:n,themeTemplate:a}){this.legendMap.set(e,{optionsKey:t,moduleFactory:n}),this.themeTemplates.set(t,a)}create(e,t){var a;let n=(a=this.legendMap.get(e))==null?void 0:a.moduleFactory;if(n)return n(t);throw new Error(`AG Charts - unknown legend type: ${e}`)}getThemeTemplates(){return Object.fromEntries(this.themeTemplates)}getKeys(){return Array.from(this.legendMap.entries()).reduce((e,[t,n])=>(e[t]=n.optionsKey,e),{})}},rf=new Gb}}),Vb,YM,Xa,jb,Nv,yg=A({"packages/ag-charts-community/src/chart/factory/chartTypes.ts"(){"use strict";ra(),Vb=class extends Map{get(e){var t;return(t=super.get(e))!=null?t:"unknown"}isCartesian(e){return this.get(e)==="cartesian"}isPolar(e){return this.get(e)==="polar"}isHierarchy(e){return this.get(e)==="hierarchy"}isTopology(e){return this.get(e)==="topology"}isFlowProportion(e){return this.get(e)==="flow-proportion"}isStandalone(e){return this.get(e)==="standalone"}isGauge(e){return this.get(e)==="gauge"}get seriesTypes(){return Array.from(this.keys())}get cartesianTypes(){return this.seriesTypes.filter(e=>this.isCartesian(e))}get polarTypes(){return this.seriesTypes.filter(e=>this.isPolar(e))}get hierarchyTypes(){return this.seriesTypes.filter(e=>this.isHierarchy(e))}get topologyTypes(){return this.seriesTypes.filter(e=>this.isTopology(e))}get flowProportionTypes(){return this.seriesTypes.filter(e=>this.isFlowProportion(e))}get standaloneTypes(){return this.seriesTypes.filter(e=>this.isStandalone(e))}get gaugeTypes(){return this.seriesTypes.filter(e=>this.isGauge(e))}},YM=class extends Map{set(e,t){return super.set(e,En(t,this.get(e)))}},Xa=new Vb,jb=new Vb,Nv=new YM}}),zv,Oo,yS=A({"packages/ag-charts-community/src/chart/factory/seriesRegistry.ts"(){"use strict";nc(),ra(),yg(),zv=class{constructor(){this.seriesMap=new Map,this.themeTemplates=new Map}register(e,{chartTypes:[t],moduleFactory:n,tooltipDefaults:a,defaultAxes:u,themeTemplate:y,paletteFactory:k,solo:R,stackable:F,groupable:_,stackedByDefault:V,hidden:K}){this.setThemeTemplate(e,y),this.seriesMap.set(e,{moduleFactory:n,tooltipDefaults:a,defaultAxes:u,paletteFactory:k,solo:R,stackable:F,groupable:_,stackedByDefault:V}),Xa.set(e,t),K||jb.set(e,t)}create(e,t){var a;let n=(a=this.seriesMap.get(e))==null?void 0:a.moduleFactory;if(n)return n(t);throw new Error(`AG Charts - unknown series type: ${e}`)}cloneDefaultAxes(e,t){var u;let n=(u=this.seriesMap.get(e))==null?void 0:u.defaultAxes;if(n==null)return null;let a=typeof n=="function"?n(t):n;return{axes:Us(a)}}setThemeTemplate(e,t){let n=this.themeTemplates.get(e);this.themeTemplates.set(e,En(t,n))}getThemeTemplate(e){return this.themeTemplates.get(e)}getPaletteFactory(e){var t;return(t=this.seriesMap.get(e))==null?void 0:t.paletteFactory}getTooltipDefauls(e){var t;return(t=this.seriesMap.get(e))==null?void 0:t.tooltipDefaults}isSolo(e){var t,n;return(n=(t=this.seriesMap.get(e))==null?void 0:t.solo)!=null?n:!1}isGroupable(e){var t,n;return(n=(t=this.seriesMap.get(e))==null?void 0:t.groupable)!=null?n:!1}isStackable(e){var t,n;return(n=(t=this.seriesMap.get(e))==null?void 0:t.stackable)!=null?n:!1}isStackedByDefault(e){var t,n;return(n=(t=this.seriesMap.get(e))==null?void 0:t.stackedByDefault)!=null?n:!1}},Oo=new zv}}),Ap,bS,CS=A({"packages/ag-charts-community/src/chart/interaction/syncManager.ts"(){"use strict";Bo(),Ap=class uI extends Tr{constructor(t){super(),this.chart=t}subscribe(t=uI.DEFAULT_GROUP){let n=this.get(t);return n||(n=new Set,uI.chartsGroups.set(t,n)),n.add(this.chart),this}unsubscribe(t=uI.DEFAULT_GROUP){var n;return(n=this.get(t))==null||n.delete(this.chart),this}getChart(){return this.chart}getGroup(t=uI.DEFAULT_GROUP){let n=this.get(t);return n?Array.from(n):[]}getGroupSiblings(t=uI.DEFAULT_GROUP){return this.getGroup(t).filter(n=>n!==this.chart)}get(t){return uI.chartsGroups.get(t)}},Ap.chartsGroups=new Map,Ap.DEFAULT_GROUP=Symbol("sync-group-default"),bS=Ap}}),$n,sf=A({"packages/ag-charts-community/src/chart/keyboard.ts"(){"use strict";zn(),Ai(),$n=class extends dn{constructor(){super(...arguments),this.enabled=!1}},b([Ge(Oi)],$n.prototype,"enabled",2),b([Ge(Bn)],$n.prototype,"tabIndex",2)}});function bg(e){return typeof e=="string"&&Dd.includes(e)}function XM(e){let t=[],n=[],a=[...Dd];for(let u of e)u instanceof gp&&(bg(u.position)?n.push(u.position):t.push(u));for(let u of t){let y;do y=a.pop();while(y&&n.includes(y));if(y==null)break;u.position=y}}var Dd,DT=A({"packages/ag-charts-community/src/chart/mapping/prepareAxis.ts"(){"use strict";bv(),Dd=["top","right","bottom","left"]}});function Kc(e,t,n){var _,V,K,q;let a=($,te,se)=>{let de=[$];for(let pe of d1)pe in te&&te[pe]!=null&&de.push(`${pe}=${te[pe]}`);return se!=null&&se.seriesGrouping&&de.push(`seriesGrouping.groupId=${se==null?void 0:se.seriesGrouping.groupId}`),de.join(";")},u=new Map,y=0;for(let $ of e){let te=a($.type,$.properties,n==null?void 0:n[y]);u.has(te)||u.set(te,[]),(_=u.get(te))==null||_.push([$,y++])}let k=new Map;y=0;for(let $ of t){let te=a($.type,$,$);k.has(te)||k.set(te,[]),(V=k.get(te))==null||V.push([$,y++])}if(![...u.keys()].some($=>k.has($)))return{status:"no-overlap",oldKeys:u.keys(),newKeys:k.keys()};let F=[];for(let[$,te]of k.entries())for(let[se,de]of te){let pe=u.get($);if(pe==null||pe.length<1){F.push({opts:se,targetIdx:de,idx:de,status:"add"}),u.delete($);continue}let[Ce,Se]=pe.shift(),ve=(K=n==null?void 0:n[Se])!=null?K:{},ke=Qh(ve,se!=null?se:{}),{groupIndex:De,stackIndex:Te}=(q=ke==null?void 0:ke.seriesGrouping)!=null?q:{};De!=null||Te!=null?F.push({opts:se,series:Ce,diff:ke,targetIdx:de,idx:Se,status:"series-grouping"}):ke?F.push({opts:se,series:Ce,diff:ke,targetIdx:de,idx:Se,status:"update"}):F.push({opts:se,series:Ce,targetIdx:de,idx:Se,status:"no-op"}),pe.length===0&&u.delete($)}for(let $ of u.values())for(let[te,se]of $)F.push({series:te,idx:se,targetIdx:-1,status:"remove"});return{status:"overlap",changes:F}}var d1,Tl=A({"packages/ag-charts-community/src/chart/mapping/prepareSeries.ts"(){"use strict";nc(),d1=["direction","xKey","yKey","sizeKey","angleKey","radiusKey","normalizedTo"]}});function Cg(e){var n,a;let{series:t}=e;if(t)return(a=(n=t[0])==null?void 0:n.type)!=null?a:"line"}function Hb(e){let t=Cg(e);return t==null?!1:Xa.isCartesian(t)||WM(t)}function pu(e){let t=Cg(e);return t==null?!1:Xa.isPolar(t)||sc(t)}function Go(e){let t=Cg(e);return t==null?!1:Xa.isHierarchy(t)||of(t)}function Rl(e){let t=Cg(e);return t==null?!1:Xa.isTopology(t)||lc(t)}function ZM(e){let t=Cg(e);return t==null?!1:Xa.isFlowProportion(t)||fg(t)}function SS(e){let t=Cg(e);return t==null?!1:Xa.isStandalone(t)||UM(t)}function Dp(e){let t=Cg(e);return t==null?!1:Xa.isGauge(t)||KM(t)}function u1(e){let t=Cg(e);return pu(e)&&t!=="pie"&&t!=="donut"}function ET(e){return e==null?!1:Xa.has(e)}function IT(e){return e==null?!1:gu.has(e)}var lf=A({"packages/ag-charts-community/src/chart/mapping/types.ts"(){"use strict";af(),yg(),vg()}}),Bv,CL=A({"packages/ag-charts-community/src/chart/modulesManager.ts"(){"use strict";ip(),zn(),Bv=class extends Cl{applyOptions(e){for(let t of this.moduleMap.values())t.module.optionsKey in e&&Nn(t.moduleInstance)&&t.moduleInstance.set(e[t.module.optionsKey])}*legends(){for(let{module:e,moduleInstance:t}of this.moduleMap.values())e.type==="legend"&&(yield{legendType:e.identifier,legend:t})}}}}),Vo,h1,cf,g1=A({"packages/ag-charts-community/src/chart/overlay/overlay.ts"(){"use strict";Rn(),zn(),Ai(),Vo="ag-charts-overlay",h1="ag-charts-dark-overlay",cf=class extends dn{constructor(e,t){super(),this.className=e,this.defaultMessageId=t,this.enabled=!0}getText(e){var t;return e.t((t=this.text)!=null?t:this.defaultMessageId)}getElement(e,t,n){var a;if((a=this.content)==null||a.remove(),this.focusBox=n,this.renderer){let u=this.renderer();if(u instanceof HTMLElement)this.content=u;else{let y=Hn("div");y.innerHTML=u,this.content=y.firstElementChild}}else{let u=Hn("div",{display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",height:"100%",margin:"8px",font:"12px Verdana, sans-serif"});u.innerText=this.getText(t),this.content=u,e==null||e.animate({from:0,to:1,id:"overlay",phase:"add",groupId:"opacity",onUpdate(y){u.style.opacity=String(y)},onStop(){u.style.opacity="1"}})}return this.content}removeElement(e=()=>{var n;return(n=this.content)==null?void 0:n.remove()},t){if(this.content){if(t){let{content:n}=this;t.animate({from:1,to:0,phase:"remove",id:"overlay",groupId:"opacity",onUpdate(a){n.style.opacity=String(a)},onStop(){e==null||e()}})}else e==null||e();this.content=void 0,this.focusBox=void 0}}},b([Ge(Oi)],cf.prototype,"enabled",2),b([Ge(ei,{optional:!0})],cf.prototype,"text",2),b([Ge(vl,{optional:!0})],cf.prototype,"renderer",2)}}),wh,TT=A({"packages/ag-charts-community/src/chart/overlay/chartOverlays.ts"(){"use strict";zn(),Ai(),g1(),wh=class extends dn{constructor(){super(...arguments),this.darkTheme=!1,this.loading=new cf("ag-charts-loading-overlay","overlayLoadingData"),this.noData=new cf("ag-charts-no-data-overlay","overlayNoData"),this.noVisibleSeries=new cf("ag-charts-no-visible-series","overlayNoVisibleSeries"),this.unsupportedBrowser=new cf("ag-charts-unsupported-browser","overlayUnsupportedBrowser")}getFocusInfo(e){for(let t of[this.loading,this.noData,this.noVisibleSeries,this.unsupportedBrowser])if(t.focusBox!==void 0)return{text:t.getText(e),rect:t.focusBox}}destroy(){this.loading.removeElement(),this.noData.removeElement(),this.noVisibleSeries.removeElement(),this.unsupportedBrowser.removeElement()}},b([Ge(Oi)],wh.prototype,"darkTheme",2),b([Ge(Ei)],wh.prototype,"loading",2),b([Ge(Ei)],wh.prototype,"noData",2),b([Ge(Ei)],wh.prototype,"noVisibleSeries",2),b([Ge(Ei)],wh.prototype,"unsupportedBrowser",2)}});function RT(e,t){let{animationDuration:n}=Xn.add,a=n*t,u=Hn("div",`${Vo}--loading`,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",height:"100%",boxSizing:"border-box",font:"13px Verdana, sans-serif",userSelect:"none",animation:`ag-charts-loading ${a}ms linear 50ms both`}),y=Hn("span",{width:"45px",height:"40px",backgroundImage:["linear-gradient(#0000 calc(1 * 100% / 6), #ccc 0 calc(3 * 100% / 6), #0000 0), ","linear-gradient(#0000 calc(2 * 100% / 6), #ccc 0 calc(4 * 100% / 6), #0000 0), ","linear-gradient(#0000 calc(3 * 100% / 6), #ccc 0 calc(5 * 100% / 6), #0000 0)"].join(""),backgroundSize:"10px 400%",backgroundRepeat:"no-repeat",animation:"ag-charts-loading-matrix 1s infinite linear"}),k=Hn("p",{marginTop:"1em"});k.innerText=e;let R=Hn("div",`${Vo}__loading-background`,{position:"absolute",inset:"0",opacity:"0.5",zIndex:"-1"}),F=Hn("style");return F.innerText=["@keyframes ag-charts-loading { from { opacity: 0 } to { opacity: 1 } }","@keyframes ag-charts-loading-matrix {","0% { background-position: 0% 0%, 50% 0%, 100% 0%; }","100% { background-position: 0% 100%, 50% 100%, 100% 100%; }","}"].join(" "),u.replaceChildren(F,y,k,R),u}var PT=A({"packages/ag-charts-community/src/chart/overlay/loadingSpinner.ts"(){"use strict";Zn(),Rn(),g1()}}),$M,wS,xS=A({"packages/ag-charts-community/src/chart/series/seriesZIndexMap.ts"(){"use strict";$M=(e=>(e[e.BACKGROUND=0]="BACKGROUND",e[e.ANY_CONTENT=1]="ANY_CONTENT",e))($M||{}),wS=(e=>(e[e.FOREGROUND=0]="FOREGROUND",e[e.HIGHLIGHT=1]="HIGHLIGHT",e[e.LABEL=2]="LABEL",e))(wS||{})}}),MS,p1,LT,ir,dc,df,Pl=A({"packages/ag-charts-community/src/chart/series/series.ts"(){"use strict";ip(),xo(),gh(),Zl(),nc(),ng(),BI(),qu(),ra(),nT(),ac(),Tn(),xS(),MS=(e=>(e[e.EXACT_SHAPE_MATCH=0]="EXACT_SHAPE_MATCH",e[e.NEAREST_NODE=1]="NEAREST_NODE",e[e.AXIS_ALIGNED=2]="AXIS_ALIGNED",e))(MS||{}),p1=.25,LT=.125,ir=class{constructor(e,t,{datum:n},a){this.type=e,this.event=t,this.datum=n,this.seriesId=a.id}},dc=class{constructor(e,t,n){this.series=e,this.seriesGrouping=t,this.oldGrouping=n,this.type="groupingChanged"}},df=class extends j0{constructor(e){super(),this.destroyFns=[],this.usesPlacedLabels=!1,this.seriesGrouping=void 0,this.NodeEvent=ir,this.internalId=Os(this),this.contentGroup=new Aa({name:`${this.internalId}-content`,zIndex:1}),this.highlightGroup=new Aa({name:`${this.internalId}-highlight`,zIndex:1}),this.annotationGroup=new Aa({name:`${this.internalId}-annotation`}),this.labelGroup=new Aa({name:`${this.internalId}-series-labels`}),this.axes={x:void 0,y:void 0},this.directions=["x","y"],this.nodeDataRefresh=!0,this.moduleMap=new Cl,this.datumCallbackCache=new Map,this.connectsToYAxis=!1,this._declarationOrder=-1,this.seriesListeners=new vh,this._pickNodeCache=new C0;let{moduleCtx:t,pickModes:n,directionKeys:a={},directionNames:u={},canHaveAxes:y=!1,usesPlacedLabels:k=!1}=e;this.ctx=t,this.directionKeys=a,this.directionNames=u,this.canHaveAxes=y,this.usesPlacedLabels=k,this.highlightGroup=new Aa({name:`${this.internalId}-highlight`}),this.highlightNode=this.highlightGroup.appendChild(new Wi({name:"highlightNode",zIndex:0})),this.highlightLabel=this.highlightGroup.appendChild(new Wi({name:"highlightLabel",zIndex:10})),this.pickModes=n}get pickModeAxis(){return"main"}get id(){var e,t;return(t=(e=this.properties)==null?void 0:e.id)!=null?t:this.internalId}get type(){var e;return(e=this.constructor.type)!=null?e:""}get data(){var e;return(e=this._data)!=null?e:this._chartData}set visible(e){this.properties.visible=e,this.ctx.legendManager.toggleItem({enabled:e,seriesId:this.id}),this.ctx.legendManager.update(),this.visibleMaybeChanged()}get visible(){var e;return(e=this.ctx.legendManager.getSeriesEnabled(this.id))!=null?e:this.properties.visible}get hasData(){return this.data!=null&&this.data.length>0}get tooltipEnabled(){var e,t;return(t=(e=this.properties.tooltip)==null?void 0:e.enabled)!=null?t:!1}onDataChange(){this.nodeDataRefresh=!0,this._pickNodeCache.clear()}setOptionsData(e){this._data=e,this.onDataChange()}setChartData(e){this._chartData=e,this.data===e&&this.onDataChange()}onSeriesGroupingChange(e,t){let{internalId:n,type:a,visible:u}=this;e&&this.ctx.seriesStateManager.deregisterSeries(this),t&&this.ctx.seriesStateManager.registerSeries({internalId:n,type:a,visible:u,seriesGrouping:t}),this.fireEvent(new dc(this,t,e))}getBandScalePadding(){return{inner:1,outer:0}}attachSeries(e,t,n){e.appendChild(this.contentGroup),t.appendChild(this.highlightGroup),t.appendChild(this.labelGroup),n==null||n.appendChild(this.annotationGroup)}detachSeries(e,t,n){e==null||e.removeChild(this.contentGroup),t.removeChild(this.highlightGroup),t.removeChild(this.labelGroup),n==null||n.removeChild(this.annotationGroup)}setSeriesIndex(e){return e===this._declarationOrder?!1:(this._declarationOrder=e,this.contentGroup.zIndex=[1,e,0],this.highlightGroup.zIndex=[1,e,1],this.labelGroup.zIndex=[1,e,2],this.annotationGroup.zIndex=e,!0)}renderToOffscreenCanvas(){return!1}addEventListener(e,t){return super.addEventListener(e,t)}addListener(e,t){return this.seriesListeners.addListener(e,t)}dispatch(e,t){this.seriesListeners.dispatch(e,t)}addChartEventListeners(){}destroy(){this.destroyFns.forEach(e=>e()),this.destroyFns=[],this.resetDatumCallbackCache(),this.ctx.seriesStateManager.deregisterSeries(this)}getDirectionValues(e,t){let n=this.resolveKeyDirection(e),a=t==null?void 0:t[n],u=[];if(!a)return u;let y=(...k)=>{for(let R of k)Array.isArray(R)?y(...R):typeof R=="object"?y(...Object.values(R)):u.push(R)};return y(...a.map(k=>this.properties[k])),u}getKeys(e){return this.getDirectionValues(e,this.directionKeys)}getKeyProperties(e){var t;return(t=this.directionKeys[this.resolveKeyDirection(e)])!=null?t:[]}getNames(e){return this.getDirectionValues(e,this.directionNames)}resolveKeyDirection(e){return e}getDomain(e){let t=this.getSeriesDomain(e),n=this.moduleMap.mapModules(a=>a.getDomain(e)).flat();return n.length!==0?t.concat(n):t}getRange(e,t){return this.getSeriesRange(e,t)}markNodeDataDirty(){this.nodeDataRefresh=!0,this._pickNodeCache.clear(),this.visibleMaybeChanged()}visibleMaybeChanged(){this.ctx.seriesStateManager.updateSeries(this)}getOpacity(){let{dimOpacity:t=1,enabled:n=!0}=this.properties.highlightStyle.series;if(!n||t===1)return 1;switch(this.isItemIdHighlighted()){case 0:case 1:return 1;case 2:default:return t}}getStrokeWidth(e){let{strokeWidth:t,enabled:n=!0}=this.properties.highlightStyle.series;if(!n||t===void 0)return e;switch(this.isItemIdHighlighted()){case 1:return t;case 0:case 2:return e}}isItemIdHighlighted(){var t,n;let e=(n=(t=this.ctx.highlightManager)==null?void 0:t.getActiveHighlight())==null?void 0:n.series;return e==null?0:e!==this?2:1}getModuleTooltipParams(){return this.moduleMap.mapModules(e=>e.getTooltipParams()).reduce((e,t)=>Object.assign(e,t),{})}pickNode(e,t,n=!1){let{pickModes:a,pickModeAxis:u,visible:y,contentGroup:k}=this;if(!y||!k.visible||t==="highlight"&&!this.properties.highlight.enabled||t==="highlight-tooltip"&&!this.properties.highlight.enabled)return;let R=1/0;if(t==="tooltip"||t==="highlight-tooltip"){let{tooltip:q}=this.properties;R=typeof q.range=="number"?q.range:1/0,n||(n=q.range==="exact")}else if(t==="event"||t==="context-menu"){let{nodeClickRange:q}=this.properties;R=typeof q=="number"?q:1/0,n||(n=q==="exact")}let F=a.filter(q=>!n||q===0),{x:_,y:V}=e,K=JSON.stringify({x:_,y:V,maxDistance:R,selectedPickModes:F});if(this._pickNodeCache.has(K))return this._pickNodeCache.get(K);for(let q of F){let $;switch(q){case 0:$=this.pickNodeExactShape(e);break;case 1:$=this.pickNodeClosestDatum(e);break;case 2:$=u!=null?this.pickNodeMainAxisFirst(e,u==="main-category"):void 0;break}if($&&$.distance<=R)return this._pickNodeCache.set(K,{pickMode:q,match:$.datum,distance:$.distance})}return this._pickNodeCache.set(K,void 0)}pickNodeExactShape(e){let t=this.contentGroup.pickNode(e.x,e.y);if(t&&t.datum.missing!==!0)return{datum:t.datum,distance:0}}pickNodeClosestDatum(e){throw new Error("AG Charts - Series.pickNodeClosestDatum() not implemented")}pickNodeNearestDistantObject(e,t){let n=rs(e.x,e.y,t);if(n.nearest!==void 0&&n.nearest.datum.missing!==!0)return{datum:n.nearest.datum,distance:Math.sqrt(n.distanceSquared)}}pickNodeMainAxisFirst(e,t){throw new Error("AG Charts - Series.pickNodeMainAxisFirst() not implemented")}getLabelData(){return[]}updatePlacedLabelData(e){}fireNodeClickEvent(e,t){this.fireEvent(new this.NodeEvent("nodeClick",e,t,this))}fireNodeDoubleClickEvent(e,t){this.fireEvent(new this.NodeEvent("nodeDoubleClick",e,t,this))}createNodeContextMenuActionEvent(e,t){return new this.NodeEvent("nodeContextMenuAction",e,t,this)}onLegendInitialState(e,t){let{visible:n=!0,itemId:a,legendItemName:u}=t!=null?t:{};this.toggleSeriesItem(n,e,a,u)}onLegendItemClick(e){let{enabled:t,itemId:n,series:a,legendType:u}=e,y="legendItemName"in this.properties?this.properties.legendItemName:void 0,k="legendItemKey"in this.properties?this.properties.legendItemKey:void 0,R=y!=null&&y===e.legendItemName;(a.id===this.id||R||k!=null)&&this.toggleSeriesItem(t,u,n,y,e)}onLegendItemDoubleClick(e){let{enabled:t,itemId:n,series:a,numVisibleItems:u,legendType:y}=e,k="legendItemName"in this.properties?this.properties.legendItemName:void 0,R="legendItemKey"in this.properties?this.properties.legendItemKey:void 0,F=k!=null&&k===e.legendItemName;a.id===this.id||F||R!=null?this.toggleSeriesItem(!0,y,n,k,e):t&&u===1?this.toggleSeriesItem(!0,y,void 0,k):this.toggleSeriesItem(!1,y,void 0,k)}toggleSeriesItem(e,t,n,a,u){var R;let y=this.id;(e||t!=="category")&&(this.visible=e),this.nodeDataRefresh=!0,this._pickNodeCache.clear();let k={type:"seriesVisibilityChange",seriesId:y,itemId:n,legendItemName:(R=u==null?void 0:u.legendItemName)!=null?R:a,visible:e};this.fireEvent(k),this.ctx.legendManager.toggleItem({enabled:e,seriesId:y,itemId:n,legendItemName:a})}isEnabled(){return this.visible}getModuleMap(){return this.moduleMap}createModuleContext(){return He(ge({},this.ctx),{series:this})}getLabelText(e,t,n=fs){var a;return e.formatter&&(a=this.ctx.callbackCache.call(e.formatter,ge({seriesId:this.id},t)))!=null?a:n(t.value)}getMarkerStyle(e,t,n=e.getStyle()){var y,k;let a={size:(k=(y=t.datum.point)==null?void 0:y.size)!=null?k:0},u=En(a,n);if(e.itemStyler){let R=this.ctx.callbackCache.call(e.itemStyler,He(ge(ge({seriesId:this.id},u),t),{datum:t.datum.datum}));return En(R,u)}return u}updateMarkerStyle(e,t,n,a=t.getStyle(),{applyTranslation:u=!0,selected:y=!0}={}){let{point:k}=n.datum,R=this.getMarkerStyle(t,n,a),F=this.visible&&R.size>0&&k&&!isNaN(k.x)&&!isNaN(k.y);if(u?e.setProperties(He(ge({visible:F},R),{translationX:k==null?void 0:k.x,translationY:k==null?void 0:k.y})):e.setProperties(ge({visible:F},R)),y||(e.fillOpacity*=p1,e.strokeOpacity*=LT),typeof t.shape=="function"&&!e.dirtyPath){e.path.clear(!0),e.updatePath(),e.checkPathDirty();let _=e.getBBox();if(k!==void 0&&_.isFinite()){let V=_.computeCenter(),[K,q]=["x","y"].map(te=>{var se;return((se=R.strokeWidth)!=null?se:0)+Math.abs(V[te]-k[te])}),$=Math.max(_.width+K,_.height+q);k.focusSize=$}}}getMinRects(e,t){}get nodeDataDependencies(){var e;return(e=this._nodeDataDependencies)!=null?e:{seriesRectWidth:NaN,seriesRectHeight:NaN}}checkResize(e){let{width:t,height:n}=e!=null?e:{width:NaN,height:NaN},a=e?{seriesRectWidth:t,seriesRectHeight:n}:void 0,u=Qh(this.nodeDataDependencies,a)!=null;return u&&(this._nodeDataDependencies=a,this.markNodeDataDirty()),u}pickFocus(e){}resetDatumCallbackCache(){this.datumCallbackCache.clear()}cachedDatumCallback(e,t){let{datumCallbackCache:n}=this,a=n.get(e);if(a!=null)return a;let u=t();return n.set(e,u),u}},df.highlightedZIndex=1e12,b([vs({changeValue:function(e,t){this.onSeriesGroupingChange(t,e)}})],df.prototype,"seriesGrouping",2)}});function OT(e,t){let n=-t/e;return e!==0&&n>=0&&n<=1?[n]:[]}function SL(e,t,n){if(e===0)return OT(t,n);let a=t*t-4*e*n,u=[];if(a===0){let y=-t/(2*e);y>=0&&y<=1&&u.push(y)}else if(a>0){let y=Math.sqrt(a),k=(-t-y)/(2*e),R=(-t+y)/(2*e);k>=0&&k<=1&&u.push(k),R>=0&&R<=1&&u.push(R)}return u}function FT(e,t,n,a){if(e===0)return SL(t,n,a);let u=t/e,y=n/e,k=a/e,R=(3*y-u*u)/9,F=(9*u*y-27*k-2*u*u*u)/54,_=R*R*R+F*F,V=1/3,K=[];if(_>=0){let q=Math.sqrt(_),$=Math.sign(F+q)*Math.pow(Math.abs(F+q),V),te=Math.sign(F-q)*Math.pow(Math.abs(F-q),V),se=Math.abs(Math.sqrt(3)*($-te)/2),de=-V*u+($+te);if(de>=0&&de<=1&&K.push(de),se===0){let pe=-V*u-($+te)/2;pe>=0&&pe<=1&&K.push(pe)}}else{let q=Math.acos(F/Math.sqrt(-R*R*R)),$=V*u,te=2*Math.sqrt(-R),se=te*Math.cos(V*q)-$,de=te*Math.cos(V*(q+2*Math.PI))-$,pe=te*Math.cos(V*(q+4*Math.PI))-$;se>=0&&se<=1&&K.push(se),de>=0&&de<=1&&K.push(de),pe>=0&&pe<=1&&K.push(pe)}return K}var _T=A({"packages/ag-charts-community/src/scene/polyRoots.ts"(){"use strict"}});function Gv(e,t,n,a,u,y,k,R){let F=(n-e)*(R-y)-(a-t)*(k-u);if(F===0)return 0;let _=((k-u)*(t-y)-(e-u)*(R-y))/F,V=((n-e)*(t-y)-(a-t)*(e-u))/F;return _>=0&&_<=1&&V>=0&&V<=1?1:0}function NT(e,t,n,a,u,y,k,R,F,_,V,K){let q=0,$=_-K,te=V-F,se=F*(K-_)-_*(V-F),de=QM(e,n,u,k),pe=QM(t,a,y,R),Ce=$*de[0]+te*pe[0],Se=$*de[1]+te*pe[1],ve=$*de[2]+te*pe[2],ke=$*de[3]+te*pe[3]+se,De=FT(Ce,Se,ve,ke);for(let Te of De){let ze=Te*Te,qe=Te*ze,et=de[0]*qe+de[1]*ze+de[2]*Te+de[3],$e=pe[0]*qe+pe[1]*ze+pe[2]*Te+pe[3],lt;F===V?lt=($e-_)/(K-_):lt=(et-F)/(V-F),lt>=0&&lt<=1&&q++}return q}function QM(e,t,n,a){return[-e+3*t-3*n+a,3*e-6*t+3*n,-3*e+3*t,e]}function m1(e,t,n,a,u,y,k,R,F,_){if(isNaN(e)||isNaN(t))return 0;y&&([u,a]=[a,u]);let V=(_-R)/(F-k),K=R-V*k,q=Math.pow(V,2)+1,$=2*(V*(K-t)-e),te=Math.pow(e,2)+Math.pow(K-t,2)-Math.pow(n,2),se=Math.pow($,2)-4*q*te;if(se<0)return 0;let de=(-$+Math.sqrt(se))/2/q,pe=(-$-Math.sqrt(se))/2/q,Ce=0;return[de,pe].forEach(Se=>{if(!(Se>=Math.min(k,F)&&Se<=Math.max(k,F)))return;let ke=V*Se+K,De=Se-e,Te=ke-t,ze=Math.atan2(Te,De);Fc(ze,a,u)&&Ce++}),Ce}var f1=A({"packages/ag-charts-community/src/scene/intersection.ts"(){"use strict";Ko(),_T()}});function kS(e,t,n,a,u){return(1-u)**3*e+3*(1-u)**2*u*t+3*(1-u)*u**2*n+u**3*a}function JM(e,t,n,a,u){if(u<=Math.min(e,a))return e<a?0:1;if(u>=Math.max(e,a))return e<a?1:0;let y=0,k=1,R=NaN;for(let F=0;F<12;F+=1)R=(y+k)/2,kS(e,t,n,a,R)<u?y=R:k=R;return R}function ek(e,t,n,a,u,y,k,R,F){let _=(1-F)*e+F*n,V=(1-F)*t+F*a,K=(1-F)*n+F*u,q=(1-F)*a+F*y,$=(1-F)*u+F*k,te=(1-F)*y+F*R,se=(1-F)*_+F*K,de=(1-F)*V+F*q,pe=(1-F)*K+F*$,Ce=(1-F)*q+F*te,Se=(1-F)*se+F*pe,ve=(1-F)*de+F*Ce;return[[{x:e,y:t},{x:_,y:V},{x:se,y:de},{x:Se,y:ve}],[{x:Se,y:ve},{x:pe,y:Ce},{x:$,y:te},{x:k,y:R}]]}function AS(e,t,n,a){let u=-e+3*t-3*n+a,y=3*e-6*t+3*n,k=-3*e+3*t;if(u===0){if(y!==0){let F=-k/y;if(F>0&&F<1)return[F]}return[]}let R=y*y-4*u*k;if(R>=0){let F=Math.sqrt(R),_=(-y+F)/(2*u),V=(-y-F)/(2*u);return[_,V].filter(K=>K>0&&K<1)}return[]}function zT(e,t,n,a,u,y,k,R){let F=AS(e,n,u,k),_=AS(t,a,y,R);return[...F,..._]}var uf=A({"packages/ag-charts-community/src/scene/util/bezier.ts"(){"use strict"}}),Vv,mu=A({"packages/ag-charts-community/src/scene/extendedPath2D.ts"(){"use strict";Ko(),lD(),on(),vn(),f1(),uf(),Vv=class{constructor(){this.path2d=new Path2D,this.previousCommands=[],this.previousParams=[],this.previousClosedPath=!1,this.commands=[],this.params=[],this.openedPath=!1,this.closedPath=!1}isEmpty(){return this.commands.length===0}isDirty(){return this.closedPath!==this.previousClosedPath||this.previousCommands.length!==this.commands.length||this.previousParams.length!==this.params.length||this.previousCommands.toString()!==this.commands.toString()||this.previousParams.toString()!==this.params.toString()}getPath2D(){return this.path2d}moveTo(e,t){this.openedPath=!0,this.path2d.moveTo(e,t),this.commands.push(0),this.params.push(e,t)}lineTo(e,t){this.openedPath?(this.path2d.lineTo(e,t),this.commands.push(1),this.params.push(e,t)):this.moveTo(e,t)}rect(e,t,n,a){this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+a),this.lineTo(e,t+a),this.closePath()}roundRect(e,t,n,a,u){u=Math.min(u,n/2,a/2),this.moveTo(e,t+u),this.arc(e+u,t+u,u,Math.PI,1.5*Math.PI),this.lineTo(e+u,t),this.lineTo(e+n-u,t),this.arc(e+n-u,t+u,u,1.5*Math.PI,2*Math.PI),this.lineTo(e+n,t+u),this.lineTo(e+n,t+a-u),this.arc(e+n-u,t+a-u,u,0,Math.PI/2),this.lineTo(e+n-u,t+a),this.lineTo(e+u,t+a),this.arc(e+ +u,t+a-u,u,Math.PI/2,Math.PI),this.lineTo(e,t+a-u),this.closePath()}arc(e,t,n,a,u,y){this.openedPath=!0,this.path2d.arc(e,t,n,a,u,y),this.commands.push(2),this.params.push(e,t,n,a,u,y?1:0)}cubicCurveTo(e,t,n,a,u,y){this.openedPath||this.moveTo(e,t),this.path2d.bezierCurveTo(e,t,n,a,u,y),this.commands.push(3),this.params.push(e,t,n,a,u,y)}closePath(){this.openedPath&&(this.path2d.closePath(),this.commands.push(4),this.openedPath=!1,this.closedPath=!0)}clear(e){e&&(this.previousCommands=this.commands,this.previousParams=this.params,this.previousClosedPath=this.closedPath),this.path2d=new Path2D,this.openedPath=!1,this.closedPath=!1,this.commands=[],this.params=[]}isPointInPath(e,t){let n=this.commands,a=this.params,u=n.length,y=-1e4,k=-1e4,R=NaN,F=NaN,_=0,V=0,K=0;for(let q=0,$=0;q<u;q++)switch(n[q]){case 0:K+=Gv(R,F,_,V,y,k,e,t),_=a[$++],R=_,V=a[$++],F=V;break;case 1:K+=Gv(_,V,a[$++],a[$++],y,k,e,t),_=a[$-2],V=a[$-1];break;case 3:K+=NT(_,V,a[$++],a[$++],a[$++],a[$++],a[$++],a[$++],y,k,e,t),_=a[$-2],V=a[$-1];break;case 2:{let te=a[$++],se=a[$++],de=a[$++],pe=a[$++],Ce=a[$++],Se=!!a[$++];if(K+=m1(te,se,de,pe,Ce,Se,y,k,e,t),!isNaN(R)){let ve=te+Math.cos(pe)*de,ke=se+Math.sin(pe)*de;K+=Gv(_,V,ve,ke,y,k,e,t)}_=te+Math.cos(Ce)*de,V=se+Math.sin(Ce)*de;break}case 4:K+=Gv(R,F,_,V,y,k,e,t);break}return K%2===1}distanceSquared(e,t){let n=1/0,a=this.commands,u=this.params,y=a.length,k=NaN,R=NaN,F=0,_=0;for(let V=0,K=0;V<y;V++)switch(a[V]){case 0:F=k=u[K++],_=R=u[K++];break;case 1:{let q=u[K++],$=u[K++];n=wl(e,t,F,_,q,$,n);break}case 3:hi.error("Command.Curve distanceSquare not implemented");break;case 2:{let q=u[K++],$=u[K++],te=u[K++],se=u[K++],de=u[K++],pe=q+Math.cos(se)*te,Ce=$+Math.sin(se)*te,Se=!!u[K++];n=wl(e,t,F,_,pe,Ce,n),n=zP(e,t,q,$,te,se,de,Se,n),F=q+Math.cos(de)*te,_=$+Math.sin(de)*te;break}case 4:n=wl(e,t,F,_,k,R,n);break}return n}getPoints(){let{commands:e,params:t}=this,n=[],a=0;for(let u of e)switch(u){case 0:case 1:n.push({x:t[a++],y:t[a++]});break;case 3:a+=4,n.push({x:t[a++],y:t[a++]});break;case 2:n.push({x:t[a++],y:t[a++]}),a+=4;break;case 4:break}return n}toSVG(e=(t,n)=>({x:t,y:n})){let t=[],{commands:n,params:a}=this,u=(k,...R)=>{t.push(k);for(let F=0;F<R.length;F+=2){let{x:_,y:V}=e(R[F],R[F+1]);t.push(_,V)}},y=0;for(let k of n)switch(k){case 0:u("M",a[y++],a[y++]);break;case 1:u("L",a[y++],a[y++]);break;case 3:u("C",a[y++],a[y++],a[y++],a[y++],a[y++],a[y++]);break;case 2:{let R=a[y++],F=a[y++],_=a[y++],V=a[y++],K=a[y++],q=a[y++],$=q?V-K:K-V;$<0&&($+=Math.ceil(-$/(2*Math.PI))*2*Math.PI),q&&($=-$);let te=Math.max(Math.ceil(Math.abs($)/(Math.PI/2)),1),se=$/te,de=4/3*Math.tan(se/4),pe=t.length===0?"M":"L";u(pe,R+Math.cos(V)*_,F+Math.sin(V)*_);for(let Ce=0;Ce<te;Ce+=1){let Se=V+se*(Ce+0),ve=V+se*(Ce+1),ke=_*Math.sin(Se),De=_*Math.cos(Se),Te=_*Math.sin(ve),ze=_*Math.cos(ve);u("C",R+De-de*ke,F+ke+de*De,R+ze+de*Te,F+Te-de*ze,R+ze,F+Te)}break}case 4:t.push("Z");break}return t.join(" ")}computeBBox(){let{commands:e,params:t}=this,[n,a,u,y]=[1/0,1/0,-1/0,-1/0],[k,R]=[NaN,NaN],[F,_]=[NaN,NaN],V=(q,$,te)=>{n=Math.min($,n),a=Math.min(q,a),u=Math.max(q,u),y=Math.max($,y),te&&([k,R]=[q,$])},K=0;for(let q of e)switch(q){case 0:V(t[K++],t[K++],!0),[F,_]=[k,R];break;case 1:V(t[K++],t[K++],!0);break;case 3:{let $=t[K++],te=t[K++],se=t[K++],de=t[K++],pe=t[K++],Ce=t[K++];V(pe,Ce,!0),zT(k,R,$,te,se,de,pe,Ce).forEach(ve=>{let ke=kS(k,$,se,pe,ve),De=kS(R,te,de,Ce,ve);V(ke,De)});break}case 2:{let $=t[K++],te=t[K++],se=t[K++],de=Fn(t[K++]),pe=Fn(t[K++]);t[K++]&&([de,pe]=[pe,de]);let Se=(ke,De)=>{let Te=$+se*Math.cos(ke),ze=te+se*Math.sin(ke);V(Te,ze,De)};Se(de),Se(pe,!0);let ve=[0,Math.PI/2,Math.PI,3*Math.PI/2];for(let ke of ve)(de<pe&&de<=ke&&ke<=pe||de>pe&&(de<=ke||ke<=pe))&&Se(ke);break}case 4:[k,R]=[F,_];break}return new ki(a,n,u-a,y-n)}}}});function qi(e){let{changeCb:t,convertor:n}=e!=null?e:{};return Mi({type:"path",convertor:n,changeCb:t})}var br,Ll=A({"packages/ag-charts-community/src/scene/shape/path.ts"(){"use strict";mu(),xa(),Er(),br=class extends ps{constructor(){super(...arguments),this.path=new Vv,this._clipX=NaN,this._clipY=NaN,this.clip=!1,this._dirtyPath=!0}set clipX(e){this._clipX=e,this.dirtyPath=!0}set clipY(e){this._clipY=e,this.dirtyPath=!0}set dirtyPath(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&this.markDirty())}get dirtyPath(){return this._dirtyPath}checkPathDirty(){var e,t,n,a;this._dirtyPath||(this.dirtyPath=this.path.isDirty()||((t=(e=this.fillShadow)==null?void 0:e.isDirty())!=null?t:!1)||((a=(n=this._clipPath)==null?void 0:n.isDirty())!=null?a:!1))}isPointInPath(e,t){return this.updatePathIfDirty(),this.path.closedPath&&this.path.isPointInPath(e,t)}distanceSquared(e,t){return this.distanceSquaredTransformedPoint(e,t)}svgPathData(e){return this.updatePathIfDirty(),this.path.toSVG(e)}distanceSquaredTransformedPoint(e,t){return this.updatePathIfDirty(),this.path.closedPath&&this.path.isPointInPath(e,t)?0:this.path.distanceSquared(e,t)}isDirtyPath(){return!1}updatePath(){}updatePathIfDirty(){(this.dirtyPath||this.isDirtyPath())&&(this.updatePath(),this.dirtyPath=!1)}preRender(){return this.updatePathIfDirty(),super.preRender(this.path.commands.length)}render(e){var n,a,u;let{ctx:t}=e;if(this.clip&&!isNaN(this._clipX)&&!isNaN(this._clipY)){t.save();let y=this.strokeWidth/2;(n=this._clipPath)!=null||(this._clipPath=new Vv),this._clipPath.clear(),this._clipPath.rect(-y,-y,this._clipX+y,this._clipY+y+y),t.clip((a=this._clipPath)==null?void 0:a.getPath2D()),this._clipX>0&&this._clipY>0&&this.drawPath(t),t.restore()}else this._clipPath=void 0,this.drawPath(t);(u=this.fillShadow)==null||u.markClean(),super.render(e)}drawPath(e){this.fillStroke(e,this.path.getPath2D())}toSVG(){if(!this.visible)return;let e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",this.svgPathData()),this.applySvgFillAttributes(e),this.applySvgStrokeAttributes(e),{elements:[e]}}},br.className="Path",b([qi()],br.prototype,"clip",2),b([qi()],br.prototype,"clipX",1),b([qi()],br.prototype,"clipY",1)}}),tk,ik=A({"packages/ag-charts-community/src/dom/focusIndicator.ts"(){"use strict";vn(),Ll(),Sl(),Rn(),tk=class{constructor(e){this.swapChain=e,this.div=Uo().createElement("div"),this.svg=Uo().createElementNS("http://www.w3.org/2000/svg","svg"),this.path=Uo().createElementNS("http://www.w3.org/2000/svg","path"),this.svg.append(this.path),this.element=Uo().createElement("div"),this.element.classList.add("ag-charts-focus-indicator"),this.element.ariaHidden="true",this.element.append(this.svg),this.swapChain.addListener("swap",t=>this.onSwap(t))}updateBounds(e,t,n=0,a=0){if(e!==void 0)if(e instanceof br){let u=(y,k)=>{let{x:R,y:F}=Wo.toCanvasPoint(e,y,k);return R-=n,F-=a,{x:R,y:F}};this.path.setAttribute("d",e.svgPathData(u)),this.show(this.svg)}else{if(t==null)Em(this.div,e);else{let u=Math.max(e.x,t.x),y=Math.max(e.y,t.y),k=Math.min(e.x+e.width,t.x+t.width),R=Math.min(e.y+e.height,t.y+t.height);Em(this.div,new ki(u,y,k-u,R-y))}this.show(this.div)}}onSwap(e){e!==this.element.parentElement&&(this.element.remove(),e.appendChild(this.element),this.overrideFocusVisible(this.focusVisible))}show(e){this.element.innerHTML="",this.element.append(e)}overrideFocusVisible(e){this.focusVisible=e;let t={true:"1",false:"0",undefined:""},n=this.element.parentElement;n==null||n.style.setProperty("opacity",t[`${e}`])}isFocusVisible(){let e=this.element.parentElement;return e!=null&&ia().getComputedStyle(e).opacity==="1"}}}}),Wb,nk=A({"packages/ag-charts-community/src/dom/focusSwapChain.ts"(){"use strict";vr(),Rn(),Wb=class{constructor(e,t,n,a){this.label1=e,this.label2=t,this.hasFocus=!1,this.skipDispatch=!1,this.listeners={blur:[],focus:[],swap:[]},this.onBlur=u=>!this.skipDispatch&&this.dispatch("blur",u),this.onFocus=u=>!this.skipDispatch&&this.dispatch("focus",u),Ya(this.label1,"id",`${n}-label1`),Ya(this.label2,"id",`${n}-label2`),Gc(this.label1,"display","none"),Gc(this.label2,"display","none"),this.activeAnnouncer=this.createAnnouncer(a),this.inactiveAnnouncer=this.createAnnouncer(a),Ya(this.activeAnnouncer,"tabindex",0),this.label2.insertAdjacentElement("afterend",this.activeAnnouncer),this.label2.insertAdjacentElement("afterend",this.inactiveAnnouncer),this.swap("")}createAnnouncer(e){let t=Hn("div");return t.role=e,t.className="ag-charts-swapchain",t.addEventListener("blur",this.onBlur),t.addEventListener("focus",this.onFocus),t}destroy(){for(let e of[this.activeAnnouncer,this.inactiveAnnouncer])e.removeEventListener("blur",this.onBlur),e.removeEventListener("focus",this.onFocus),e.remove()}focus(){this.activeAnnouncer.focus()}update(e){this.skipDispatch=!0,this.swap(e),this.hasFocus&&this.activeAnnouncer.focus(),this.skipDispatch=!1}addListener(e,t){this.listeners[e].push(t),e==="swap"&&t(this.activeAnnouncer)}dispatch(e,t){e==="focus"?this.hasFocus=!0:e==="blur"&&(this.hasFocus=!1),this.listeners[e].forEach(n=>n(t))}swap(e){let t=this.activeAnnouncer.tabIndex;this.label2.textContent=e,[this.inactiveAnnouncer,this.activeAnnouncer]=[this.activeAnnouncer,this.inactiveAnnouncer],[this.label1,this.label2]=[this.label2,this.label1],ag(this.inactiveAnnouncer,{"aria-labelledby":this.label1.id,"aria-hidden":!0,tabindex:void 0}),ag(this.activeAnnouncer,{"aria-labelledby":this.label1.id,"aria-hidden":!1,tabindex:t}),Gc(this.inactiveAnnouncer,"pointer-events","none"),Gc(this.activeAnnouncer,"pointer-events",void 0),this.dispatch("swap",this.activeAnnouncer)}}}});function ak(e,t){let n=t1(t.datum);if(n!=null)return{x:n.canvasX,y:n.canvasY};let a=t.bounds;if(a!=null){if(a instanceof ki){let{x:u,y}=a.computeCenter();return{x:e.x+u,y:e.y+y}}return Wo.toCanvas(a).computeCenter()}}function BT(e,t,n,a,u){let{bounds:y,showFocusBox:k,clipFocusBox:R=!0}=n;k&&(t==null||t.updateBounds(y,R?e:void 0,a,u))}function GT({bounds:e}){return e instanceof ki?e:e!=null?e.getBBox():ki.NaN}function ok(e,t){var u;let{x:n,y:a}=(u=ak(e,t))!=null?u:{};if(n!==void 0&&a!==void 0)return{type:"keyboard",canvasX:n,canvasY:a}}var VT=A({"packages/ag-charts-community/src/chart/keyboardUtil.ts"(){"use strict";vn(),Sl(),OM()}});function rk(e,t,n,a){let{top:u,right:y,bottom:k,left:R,width:F,height:_}=a;return R!=null?F!=null?y=n.width-R+F:y!=null&&(F=n.width-R-y):y!=null&&F!=null&&(R=n.width-y-F),u!=null?_!=null?k=n.height-u-_:k!=null&&(_=n.height-k-u):k!=null&&_!=null&&(u=n.height-k-_),F==null?_==null?(F=e,_=t):F=Math.ceil(e*_/t):_==null&&(_=Math.ceil(t*F/e)),R==null&&(y==null?R=Math.floor((n.width-F)/2):R=n.width-y-F),u==null&&(k==null?u=Math.floor((n.height-_)/2):u=n.height-_-k),{x:R,y:u,width:F,height:_}}var Ub=A({"packages/ag-charts-community/src/util/placement.ts"(){"use strict"}});function hf(e){if(e!=null)return e===""?"":(Ep!=null||(Ep=Hn("div")),Ep.textContent=String(e),Ep.innerHTML)}var Ep,Kb=A({"packages/ag-charts-community/src/util/sanitize.ts"(){"use strict";Rn(),Ep=null}}),qb,v1,Sg,Ol,Qs=A({"packages/ag-charts-community/src/chart/marker/marker.ts"(){"use strict";vn(),Ll(),Sl(),qb=["ArrowDown","ArrowUp","Circle","Cross","Diamond","Heart","MapPin","Plus","Square","Star","Triangle"],v1=Object.freeze({x:.5,y:.5}),Sg=class extends br{constructor(){super(...arguments),this.x=0,this.y=0,this.size=12}isBuiltIn(){var e;return qb.includes((e=this.constructor.className)!=null?e:"")}computeBBox(){if(!this.isBuiltIn())return this.updatePathIfDirty(),this.path.computeBBox();let{x:e,y:t,size:n}=this,{center:a}=this.constructor;return new ki(e-n*a.x,t-n*a.y,n,n)}applyPath(e,t){let{path:n}=this,{x:a,y:u}=this;n.clear();for(let{x:y,y:k,t:R}of t)a+=y*e,u+=k*e,R==="move"?n.moveTo(a,u):n.lineTo(a,u);n.closePath()}executeFill(e,t){if(t)return super.executeFill(e,t)}executeStroke(e,t){if(t)return super.executeStroke(e,t)}},b([qi()],Sg.prototype,"x",2),b([qi()],Sg.prototype,"y",2),b([qi({convertor:Math.abs})],Sg.prototype,"size",2),Ol=class extends nu(md(Yh(Sg))){},Ol.center=v1}}),Ip,DS=A({"packages/ag-charts-community/src/chart/marker/circle.ts"(){"use strict";Qs(),Ip=class extends Ol{updatePath(){let{x:e,y:t,path:n,size:a}=this,u=a/2;n.clear(),n.arc(e,t,u,0,Math.PI*2),n.closePath()}},Ip.className="Circle"}}),sk,y1,b1=A({"packages/ag-charts-community/src/chart/marker/cross.ts"(){"use strict";Qs(),sk=class DZ extends Ol{updatePath(){let t=this.size/4.2;super.applyPath(t,DZ.moves)}},sk.className="Cross",sk.moves=[{x:-1,y:0,t:"move"},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1},{x:1,y:1},{x:-1,y:1},{x:-1,y:-1},{x:-1,y:1},{x:-1,y:-1}],y1=sk}}),ES,lk,C1=A({"packages/ag-charts-community/src/chart/marker/diamond.ts"(){"use strict";Qs(),ES=class EZ extends Ol{updatePath(){let t=this.size/2;super.applyPath(t,EZ.moves)}},ES.className="Diamond",ES.moves=[{x:0,y:-1,t:"move"},{x:1,y:1},{x:-1,y:1},{x:-1,y:-1},{x:1,y:-1}],lk=ES}}),ck,IS,wL=A({"packages/ag-charts-community/src/chart/marker/heart.ts"(){"use strict";Qs(),ck=class IZ extends Ol{static rad(t){return t/180*Math.PI}updatePath(){let{x:t,path:n,size:a}=this,{rad:u}=IZ,y=a/4,k=this.y+y/2;n.clear(),n.arc(t-y,k-y,y,u(130),u(330)),n.arc(t+y,k-y,y,u(220),u(50)),n.lineTo(t,k+y),n.closePath()}},ck.className="Heart",IS=ck}}),jv,dk=A({"packages/ag-charts-community/src/chart/marker/pin.ts"(){"use strict";Qs(),jv=class extends Ol{updatePath(){let{path:e,x:t,y:n}=this,a=this.size,u=.5,y=1;e.clear(),e.moveTo(t+(.15625-u)*a,n+(.34375-y)*a),e.cubicCurveTo(t+(.15625-u)*a,n+(.151491-y)*a,t+(.307741-u)*a,n+(0-y)*a,t+(.5-u)*a,n+(0-y)*a),e.cubicCurveTo(t+(.692259-u)*a,n+(0-y)*a,t+(.84375-u)*a,n+(.151491-y)*a,t+(.84375-u)*a,n+(.34375-y)*a),e.cubicCurveTo(t+(.84375-u)*a,n+(.493824-y)*a,t+(.784625-u)*a,n+(.600181-y)*a,t+(.716461-u)*a,n+(.695393-y)*a),e.cubicCurveTo(t+(.699009-u)*a,n+(.719769-y)*a,t+(.681271-u)*a,n+(.743104-y)*a,t+(.663785-u)*a,n+(.766105-y)*a),e.cubicCurveTo(t+(.611893-u)*a,n+(.834367-y)*a,t+(.562228-u)*a,n+(.899699-y)*a,t+(.528896-u)*a,n+(.980648-y)*a),e.cubicCurveTo(t+(.524075-u)*a,n+(.992358-y)*a,t+(.512663-u)*a,n+(1-y)*a,t+(.5-u)*a,n+(1-y)*a),e.cubicCurveTo(t+(.487337-u)*a,n+(1-y)*a,t+(.475925-u)*a,n+(.992358-y)*a,t+(.471104-u)*a,n+(.980648-y)*a),e.cubicCurveTo(t+(.487337-u)*a,n+(1-y)*a,t+(.475925-u)*a,n+(.992358-y)*a,t+(.471104-u)*a,n+(.980648-y)*a),e.cubicCurveTo(t+(.437772-u)*a,n+(.899699-y)*a,t+(.388107-u)*a,n+(.834367-y)*a,t+(.336215-u)*a,n+(.766105-y)*a),e.cubicCurveTo(t+(.318729-u)*a,n+(.743104-y)*a,t+(.300991-u)*a,n+(.719769-y)*a,t+(.283539-u)*a,n+(.695393-y)*a),e.cubicCurveTo(t+(.215375-u)*a,n+(.600181-y)*a,t+(.15625-u)*a,n+(.493824-y)*a,t+(.15625-u)*a,n+(.34375-y)*a),e.closePath()}},jv.className="MapPin",jv.center={x:.5,y:1}}}),uk,hk,gk=A({"packages/ag-charts-community/src/chart/marker/plus.ts"(){"use strict";Qs(),uk=class TZ extends Ol{updatePath(){let t=this.size/3;super.applyPath(t,TZ.moves)}},uk.className="Plus",uk.moves=[{x:-.5,y:-.5,t:"move"},{x:0,y:-1},{x:1,y:0},{x:0,y:1},{x:1,y:0},{x:0,y:1},{x:-1,y:0},{x:0,y:1},{x:-1,y:0},{x:0,y:-1},{x:-1,y:0},{x:0,y:-1}],hk=uk}}),TS,jT=A({"packages/ag-charts-community/src/chart/marker/square.ts"(){"use strict";Qs(),TS=class extends Ol{updatePath(){let{path:e,x:t,y:n}=this,a=this.size/2;e.clear(),e.moveTo(this.align(t-a),this.align(n-a)),e.lineTo(this.align(t+a),this.align(n-a)),e.lineTo(this.align(t+a),this.align(n+a)),e.lineTo(this.align(t-a),this.align(n+a)),e.closePath()}},TS.className="Square"}}),RS,xL=A({"packages/ag-charts-community/src/chart/marker/star.ts"(){"use strict";Qs(),RS=class extends Ol{updatePath(){let{x:e,y:t,path:n,size:a}=this,u=5,y=a/2,k=y/2,R=Math.PI/2;n.clear();for(let F=0;F<u*2;F++){let _=F%2===0?y:k,V=F*Math.PI/u-R,K=e+Math.cos(V)*_,q=t+Math.sin(V)*_;n.lineTo(K,q)}n.closePath()}},RS.className="Star"}}),Yb,gf,PS=A({"packages/ag-charts-community/src/chart/marker/triangle.ts"(){"use strict";Qs(),Yb=class RZ extends Ol{updatePath(){let t=this.size*1.1;super.applyPath(t,RZ.moves)}},Yb.className="Triangle",Yb.moves=[{x:0,y:-.48,t:"move"},{x:.5,y:.87},{x:-1,y:0}],gf=Yb}});function S1(e){return typeof e=="string"&&mk.includes(e)}function w1(e){return class extends Ol{updatePath(){let{path:n,x:a,y:u,size:y}=this;e({path:n,x:a,y:u,size:y})}}}function ca(e="square"){return S1(e)?pk[e]:typeof e=="function"?w1(e):TS}var pk,mk,fu=A({"packages/ag-charts-community/src/chart/marker/util.ts"(){"use strict";DS(),b1(),C1(),wL(),Qs(),dk(),gk(),jT(),xL(),PS(),pk={circle:Ip,cross:y1,diamond:lk,heart:IS,pin:jv,plus:hk,square:TS,star:RS,triangle:gf},mk=Object.keys(pk)}});function fk(e,t,n=t*(5/3)){var F,_;let a=new Wi,u=Math.min(e.marker.strokeWidth,2),y=Math.min((_=(F=e.line)==null?void 0:F.strokeWidth)!=null?_:0,2),k=Math.max(e.marker.enabled===!1?0:t,e.line==null?0:n),R=Math.max(e.marker.enabled===!1?0:t,y);if(e.line!=null){let{stroke:V,strokeOpacity:K,lineDash:q}=e.line,$=new ms;$.x1=0,$.y1=R/2,$.x2=k,$.y2=R/2,$.stroke=V,$.strokeOpacity=K,$.strokeWidth=y,$.lineDash=q,a.append($)}if(e.marker.enabled!==!1){let{shape:V,fill:K,fillOpacity:q,stroke:$,strokeOpacity:te}=e.marker,se=ca(V),de=new se,{center:pe}=se;de.size=t,de.translationX=k/2+(pe.x-.5)*t,de.translationY=R/2+(pe.y-.5)*t,de.fill=K,de.fillOpacity=q,de.stroke=$,de.strokeOpacity=te,de.strokeWidth=u;let Ce=k/2+(pe.x-.5)*t,Se=R/2+(pe.y-.5)*t;if(typeof V=="string"){let ve=t/(t+u);de.translationX=Ce,de.translationY=Se,de.scalingX=ve,de.scalingY=ve}else{let ve=de.getBBox(),ke=Math.min(k/(ve.width+u),R/(ve.height+u),1);de.translationX=Ce*ke-ve.x*ke+(k-ve.width*ke)/2,de.translationY=Se*ke-ve.y*ke+(R-ve.height*ke)/2,de.scalingX=ke,de.scalingY=ke}a.append(de)}return Wi.toSVG(a,k,R)}var pf=A({"packages/ag-charts-community/src/chart/legend/legendSymbol.ts"(){"use strict";xo(),vd(),fu()}}),vk,Hv,x1,Xb,yk,M1=A({"packages/ag-charts-community/src/chart/tooltip/springAnimation.ts"(){"use strict";ng(),vk=.1,Hv=200,x1=12,Xb=.5,yk=class extends vh{constructor(){super(...arguments),this.x1=NaN,this.y1=NaN,this.x=NaN,this.y=NaN,this.vx=0,this.vy=0,this.t0=NaN,this.animationFrameHandle=void 0}reset(){this.x=NaN,this.y=NaN,this.animationFrameHandle!=null&&(cancelAnimationFrame(this.animationFrameHandle),this.animationFrameHandle=void 0)}update(e,t){if(Number.isNaN(this.x)||Number.isNaN(this.y)){this.x=e,this.y=t,this.vx=0,this.vy=0,this.emitUpdate(),this.animationFrameHandle!=null&&(cancelAnimationFrame(this.animationFrameHandle),this.animationFrameHandle=void 0);return}this.x1=e,this.y1=t,this.t0=Date.now(),this.animationFrameHandle==null&&(this.animationFrameHandle=requestAnimationFrame(this.onFrame.bind(this)))}onFrame(){this.animationFrameHandle=void 0;let{x1:e,y1:t,t0:n}=this,a=Date.now(),u=a-n;this.t0=a;let y=.001,k=Math.ceil(u/(y*1e3))|0,{x:R,y:F,vx:_,vy:V}=this;for(let K=0;K<k;K+=1){let q=R-e,$=F-t,te=-(Hv*q+x1*_)/vk,se=-(Hv*$+x1*V)/vk;_+=te*y,V+=se*y,R+=_*y,F+=V*y}Math.hypot(R-e,F-t)<Xb?(this.x=this.x1,this.y=this.y1,this.vx=0,this.vy=0):(this.x=R,this.y=F,this.vx=_,this.vy=V,this.animationFrameHandle=requestAnimationFrame(this.onFrame.bind(this))),this.emitUpdate()}emitUpdate(){this.dispatch("update",{type:"update",x:this.x,y:this.y})}}}});function HT(e){var n;if(typeof e=="string")return"";let t=[];return e.heading!=null&&t.push(e.heading),e.title!=null&&t.push(e.title),(n=e.data)==null||n.forEach(a=>{var u;t.push((u=a.label)!=null?u:a.fallbackLabel,a.value)}),t.join("; ")}function k1(e,t,n){let a="";e==null?a+=`<span class="${xs}-label">${hf(t)}</span>`:(a+=`<span class="${xs}-label">${hf(e)}</span>`,a+=" ",a+=`<span class="${xs}-value">${hf(t)}</span>`);let u=[`${xs}-row`];return n&&u.push(`${xs}-row--inline`),a=`<div class="${u.join(" ")}">${a}</div>`,a}function WT(e){var n,a,u,y,k;if(typeof e=="string")return e;let t="";if((e.heading==null||e.title==null)&&((n=e.data)==null?void 0:n.length)===1&&e.data[0].label==null&&e.data[0].value!=null){let R=e.data[0];t+=k1((a=e.heading)!=null?a:e.title,R.value,!1)}else{let R=e.title==null&&((u=e.data)==null?void 0:u.length)===1;e.heading!=null&&(t+=`<span class="${xs}-heading">${hf(e.heading)}</span>`,t+=" ");let F=e.symbol==null?void 0:fk(e.symbol,12);F!=null&&(e.title!=null||(y=e.data)!=null&&y.length)&&(t+=`<span class="${xs}-symbol">${F}</span>`),e.title!=null&&(t+=`<span class="${xs}-title">${hf(e.title)}</span>`,t+=" "),(k=e.data)==null||k.forEach(_=>{var V;t+=k1((V=_.label)!=null?V:_.fallbackLabel,_.value,R),t+=" "})}return t=`<div class="${xs}-content">${t.trimEnd()}</div>`,t}var xs,A1,Wv,vu,Js=A({"packages/ag-charts-community/src/chart/tooltip/tooltip.ts"(){"use strict";Rn(),gn(),Ub(),zn(),Kb(),Ai(),pf(),M1(),xs="ag-charts-tooltip",A1="ag-charts-tooltip--dark",Wv=class extends dn{constructor(){super(...arguments),this.type="pointer",this.xOffset=0,this.yOffset=0}},b([Ge(uo(["pointer","node","top","right","bottom","left","top-left","top-right","bottom-right","bottom-left",{value:"sparkline",undocumented:!0},{value:"sparkline-",undocumented:!0}],"a position type"))],Wv.prototype,"type",2),b([Ge(Bn)],Wv.prototype,"xOffset",2),b([Ge(Bn)],Wv.prototype,"yOffset",2),vu=class extends dn{constructor(){super(),this.enabled=!0,this.delay=0,this.range=void 0,this.wrapping="hyphenate",this.position=new Wv,this.darkTheme=!1,this.bounds="extended",this.destroyFns=[],this.springAnimation=new yk,this.enableInteraction=!1,this.wrapTypes=["always","hyphenate","on-space","never"],this.showTimeout=0,this._showArrow=!0,this._compact=!1,this._visible=!1,this.positionParams=void 0,this.destroyFns.push(this.springAnimation.addListener("update",this.updateTooltipPosition.bind(this)))}get interactive(){return this.enableInteraction}setup(e){"togglePopover"in ia().HTMLElement.prototype&&(this.element=e.addChild("canvas-overlay",xs),this.element.setAttribute("popover","manual"),this.element.className=xs)}destroy(e){e.removeChild("canvas-overlay",xs)}isVisible(){return this._visible}updateTooltipPosition(){var ke,De,Te,ze,qe,et,$e,lt;let{element:e,positionParams:t}=this;if(e==null||t==null)return;let{canvasRect:n,relativeRect:a,meta:u}=t,{x:y,y:k}=this.springAnimation,R=(De=(ke=u.position)==null?void 0:ke.type)!=null?De:this.position.type,F=(ze=(Te=u.position)==null?void 0:Te.xOffset)!=null?ze:0,_=(et=(qe=u.position)==null?void 0:qe.yOffset)!=null?et:0,V=a.x,K=a.y,q=a.width-e.clientWidth-1+V,$=a.height-e.clientHeight+K,te=this.getTooltipBounds({positionType:R,canvasX:y,canvasY:k,yOffset:_,xOffset:F,canvasRect:n}),se=rk(e.clientWidth,e.clientHeight,a,te);R==="sparkline"&&(se.x<=V||se.x>=q)&&(te=this.getTooltipBounds({positionType:"sparkline-constrained",canvasX:y,canvasY:k,yOffset:_,xOffset:F,canvasRect:n}),se=rk(e.clientWidth,e.clientHeight,a,te));let de=fn(V,se.x,q),pe=fn(K,se.y,$),Ce=de!==se.x||pe!==se.y,Se=(R==="node"||R==="pointer")&&!Ce&&!F&&!_,ve=(lt=($e=u.showArrow)!=null?$e:this.showArrow)!=null?lt:Se;this.updateShowArrow(ve),this.updateCompact(R==="sparkline"||R==="sparkline-constrained"),e.style.transform=`translate(${de}px, ${pe}px)`}show(e,t,n,a,u=!1){let{element:y}=this;if(y!=null&&a!=null)y.innerHTML=WT(a);else if(y==null||y.innerHTML===""){this.toggle(!1);return}let k={x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height};this.positionParams={canvasRect:t,relativeRect:k,meta:n},this.springAnimation.update(n.canvasX,n.canvasY),y.style.top=`${t.top}px`,y.style.left=`${t.left}px`,n.enableInteraction?(this.enableInteraction=!0,y.style.pointerEvents="auto",y.removeAttribute("aria-hidden")):(this.enableInteraction=!1,y.style.pointerEvents="none",y.setAttribute("aria-hidden","true")),this.delay>0&&!u?(this.toggle(!1),this.showTimeout=setTimeout(()=>{this.toggle(!0)},this.delay)):this.toggle(!0)}hide(){this.springAnimation.reset(),this.toggle(!1)}toggle(e){var a;if(!((a=this.element)!=null&&a.isConnected))return;this._visible=e;let{classList:t}=this.element,n=(u,y)=>t.toggle(`${xs}--${u}`,y);e||clearTimeout(this.showTimeout),n("no-interaction",!this.enableInteraction),n("arrow",this._showArrow),n("compact",this._compact),t.toggle(A1,this.darkTheme),this.element.togglePopover(e),e&&this.updateTooltipPosition();for(let u of this.wrapTypes)t.toggle(`${xs}--wrap-${u}`,u===this.wrapping)}updateShowArrow(e){this._showArrow=e}updateCompact(e){this._compact=e}getTooltipBounds(e){if(!this.element)return{};let{positionType:t,canvasX:n,canvasY:a,yOffset:u,xOffset:y,canvasRect:k}=e,{clientWidth:R,clientHeight:F}=this.element,_={width:R,height:F};switch(t){case"node":case"pointer":return _.top=a+u-F-8,_.left=n+y-R/2,_;case"top":return _.top=u,_.left=k.width/2-R/2+y,_;case"right":return _.top=k.height/2-F/2+u,_.left=k.width-R/2+y,_;case"left":return _.top=k.height/2-F/2+u,_.left=y,_;case"bottom":return _.top=k.height-F+u,_.left=k.width/2-R/2+y,_;case"top-left":return _.top=u,_.left=y,_;case"top-right":return _.top=u,_.left=k.width-R+y,_;case"bottom-right":return _.top=k.height-F+u,_.left=k.width-R+y,_;case"bottom-left":return _.top=k.height-F+u,_.left=y,_;case"sparkline":return _.top=a+u-F/2,_.left=n+y+8,_;case"sparkline-constrained":return _.top=a+u-F/2,_.left=n+y-8-R,_}}},b([Ge(Oi)],vu.prototype,"enabled",2),b([Ge(Oi,{optional:!0})],vu.prototype,"showArrow",2),b([Ge(ni)],vu.prototype,"delay",2),b([Ge(wm,{optional:!0})],vu.prototype,"range",2),b([Ge(iv)],vu.prototype,"wrapping",2),b([Ge(Ei)],vu.prototype,"position",2),b([Ge(Oi)],vu.prototype,"darkTheme",2),b([Ge(uo(["extended","canvas"]))],vu.prototype,"bounds",2)}});function mf(e,t,n,a){var k;let u=[...e].reverse(),y;for(let R of u){if(!R.visible||!R.contentGroup.visible)continue;let{match:F,distance:_}=(k=R.pickNode(t,n,a))!=null?k:{};if(!(!F||_==null)&&((!y||y.distance>_)&&(y={series:R,distance:_,datum:F}),_===0))break}return y}function bk(e,t){if(e==null||t.length===0)return[!1,!1];let n=e.valueOf(),a=t[0],u=t[t.length-1];if(typeof a=="string")return[n===a,n===u];let y=a.valueOf(),k=u.valueOf();return y>k&&([y,k]=[k,y]),[n===y,n===k]}function Tp(e,t,n,a,u){let{xValue:y,yValue:k}=e,[R,F]=bk(k,u),[_,V]=bk(y,a);return{datum:e,xKey:t,yKey:n,xValue:y,yValue:k,first:_,last:V,min:R,max:F}}function Da(e,[t,n],a){var k,R;let u=(k=EI(0,e-1,F=>{var V;let _=(V=a(F))==null?void 0:V[1];return!Number.isFinite(_)||_>t}))!=null?k:0,y=(R=iD(0,e-1,F=>{var V;let _=(V=a(F))==null?void 0:V[0];return!Number.isFinite(_)||_<n}))!=null?R:e-1;return y=Math.min(y+1,e),[u,y]}var LS=A({"packages/ag-charts-community/src/chart/series/util.ts"(){"use strict";qh()}}),Ck,ML=A({"packages/ag-charts-community/src/chart/series/seriesAreaManager.ts"(){"use strict";ik(),nk(),vn(),Sl(),Bo(),Zl(),gn(),Sv(),bn(),Ab(),kd(),cg(),i1(),VT(),Js(),Pl(),LS(),Ck=class extends Tr{constructor(e){super(),this.chart=e,this.id=Os(this),this.series=[],this.highlight={pendingHoverEvent:void 0,appliedHoverEvent:void 0,stashedHoverEvent:void 0},this.tooltip={lastHover:void 0},this.hoverDevice="mouse",this.focus={sortedSeries:[],series:void 0,seriesIndex:0,datumIndex:0,datum:void 0},this.hoverScheduler=nL(()=>{if(!(!this.tooltip.lastHover&&!this.highlight.pendingHoverEvent)){if(this.chart.getUpdateType()<=4){this.hoverScheduler.schedule();return}this.highlight.pendingHoverEvent&&this.handleHoverHighlight(!1),this.tooltip.lastHover&&this.handleHoverTooltip(this.tooltip.lastHover,!1)}});let t=41,n=34,a=63,{domManager:u}=e.ctx,y="series-area",k=u.addChild(y,"series-area-aria-label1"),R=u.addChild(y,"series-area-aria-label2");this.seriesWidget=new vp(u.getParent(y)),this.chartWidget=new vp(u.getParent("canvas-proxy")),this.containerWidget=new vp(u.getParent("canvas-container")),e.ctx.regionManager.initRegions(this.containerWidget,this.seriesWidget),this.swapChain=new Wb(k,R,this.id,"img"),this.swapChain.addListener("blur",()=>this.onBlur(n)),this.swapChain.addListener("focus",()=>this.onFocus(n)),this.focusIndicator=new tk(this.swapChain),this.focusIndicator.overrideFocusVisible(e.mode==="integrated"?!1:void 0),this.chart.ctx.keyNavManager.focusIndicator=this.focusIndicator;let F=e.ctx.regionManager.getRegion("series");this.destroyFns.push(()=>e.ctx.domManager.removeChild(y,"series-area-aria-label1"),()=>e.ctx.domManager.removeChild(y,"series-area-aria-label2"),F.addListener("drag",_=>this.onHoverLikeEvent(_),t),F.addListener("hover",_=>this.onHover(_),t),F.addListener("leave",()=>this.onLeave(),t),e.ctx.animationManager.addListener("animation-start",()=>this.clearAll()),e.ctx.domManager.addListener("resize",()=>this.clearAll()),e.ctx.highlightManager.addListener("highlight-change",_=>this.changeHighlightDatum(_)),e.ctx.keyNavManager.addListener("nav-hori",_=>this.onNavHori(_),n),e.ctx.keyNavManager.addListener("nav-vert",_=>this.onNavVert(_),n),e.ctx.keyNavManager.addListener("submit",_=>this.onSubmit(_),n),e.ctx.layoutManager.addListener("layout:complete",_=>this.layoutComplete(_)),e.ctx.regionManager.listenAll("contextmenu",_=>this.onContextMenu(_),a),e.ctx.regionManager.listenAll("click",_=>this.onClick(_)),e.ctx.regionManager.listenAll("dblclick",_=>this.onClick(_)),e.ctx.updateService.addListener("pre-scene-render",()=>this.preSceneRender()),e.ctx.zoomManager.addListener("zoom-change",()=>this.clearAll()),e.ctx.zoomManager.addListener("zoom-pan-start",()=>this.clearAll()))}dataChanged(){var t;var e;(t=(e=this.highlight).stashedHoverEvent)!=null||(e.stashedHoverEvent=this.highlight.appliedHoverEvent),this.chart.ctx.tooltipManager.removeTooltip(this.id),this.focusIndicator.updateBounds(void 0),this.clearHighlight()}preSceneRender(){this.focusIndicator.isFocusVisible()&&this.handleSeriesFocus(0,0,!0),this.highlight.stashedHoverEvent!=null&&(this.highlight.pendingHoverEvent=this.highlight.stashedHoverEvent,this.highlight.stashedHoverEvent=void 0,this.handleHoverHighlight(!0)),this.tooltip.lastHover!=null&&this.handleHoverTooltip(this.tooltip.lastHover,!0)}update(e,t){this.chart.ctx.updateService.update(e,t)}seriesChanged(e){this.focus.sortedSeries=[...e].sort((t,n)=>{var y,k;let a=(y=t.properties.focusPriority)!=null?y:1/0,u=(k=n.properties.focusPriority)!=null?k:1/0;return a===u&&([a,u]=[t._declarationOrder,n._declarationOrder]),a<u?-1:a>u?1:0}),this.series=e}layoutComplete(e){this.seriesRect=e.series.rect,this.hoverRect=e.series.paddedRect,this.seriesWidget.setBounds(e.series.paddedRect),this.chartWidget.setBounds(e.chart)}onContextMenu(e){let{Default:t,ContextMenu:n}=Ks;if(e.region==="root"){this.chart.ctx.interactionManager.getState()&(t|n)&&this.chart.ctx.contextMenuRegistry.dispatchContext("all",e,{});return}let a,u;if(this.focusIndicator.isFocusVisible())a=this.chart.ctx.highlightManager.getActiveHighlight(),a&&this.seriesRect&&a.midPoint&&(u=Wo.toCanvasPoint(a.series.contentGroup,a.midPoint.x,a.midPoint.y));else if(this.chart.ctx.interactionManager.getState()&(t|n)){let k=mf(this.series,{x:e.regionX,y:e.regionY},"context-menu");k&&(this.chart.ctx.highlightManager.updateHighlight(this.id),a=k.datum)}let y=a==null?void 0:a.series;this.clearAll(),this.chart.ctx.contextMenuRegistry.dispatchContext("series-area",e,{pickedSeries:y,pickedNode:a},u)}onLeave(){this.chart.ctx.cursorManager.updateCursor(this.id),this.focusIndicator.isFocusVisible()||this.clearAll()}onHover(e){this.hoverDevice="mouse",this.onHoverLikeEvent(e)}onHoverLikeEvent(e){if(Yf(e,"drag")&&(this.tooltip.lastHover=e),this.highlight.pendingHoverEvent=e,this.hoverScheduler.schedule(),this.chart.ctx.interactionManager.getState()===32){let{regionX:t,regionY:n}=e,a=mf(this.series,{x:t,y:n},"event");a!=null&&a.series.hasEventListener("nodeClick")||a!=null&&a.series.hasEventListener("nodeDoubleClick")?this.chart.ctx.cursorManager.updateCursor(this.id,"pointer"):this.chart.ctx.cursorManager.updateCursor(this.id)}}onClick(e){var n;if(this.hoverDevice="mouse",this.onHoverLikeEvent(e),(n=this.seriesRect)!=null&&n.containsPoint(e.canvasX,e.canvasY)&&this.checkSeriesNodeClick(e)){this.update(4),e.preventDefault();return}let t={type:e.type==="click"?"click":"doubleClick",event:e.sourceEvent};this.chart.fireEvent(t)}onFocus(e){this.chart.ctx.interactionManager.getState()&e&&(this.hoverDevice=this.focusIndicator.isFocusVisible()?"keyboard":"mouse",this.handleFocus(0,0))}onBlur(e){this.chart.ctx.interactionManager.getState()&e&&(this.hoverDevice="mouse",this.clearAll(),this.focusIndicator.overrideFocusVisible(void 0))}onNavVert(e){this.hoverDevice="keyboard",this.focus.seriesIndex+=e.delta,this.handleFocus(e.delta,0),e.preventDefault()}onNavHori(e){this.hoverDevice="keyboard",this.focus.datumIndex+=e.delta,this.handleFocus(0,e.delta),e.preventDefault()}onSubmit(e){let{series:t,datum:n}=this.focus,a=e.sourceEvent.sourceEvent;t!==void 0&&n!==void 0?t.fireNodeClickEvent(a,n):this.chart.fireEvent({type:"click",event:a}),e.preventDefault()}checkSeriesNodeClick(e){let t={x:e.regionX,y:e.regionY};e.region!=="series"&&(t=Wo.fromCanvasPoint(this.chart.seriesRoot,e.canvasX,e.canvasY));let n=mf(this.series,t,"event");return n==null?!1:e.type==="click"?(n.series.fireNodeClickEvent(e.sourceEvent,n.datum),!0):e.type==="dblclick"?(e.preventZoomDblClick=n.distance===0,n.series.fireNodeDoubleClickEvent(e.sourceEvent,n.datum),!0):!1}handleFocus(e,t){let n=this.chart.overlays.getFocusInfo(this.chart.ctx.localeManager);n==null?this.handleSeriesFocus(e,t):this.focusIndicator.updateBounds(new ki(0,0,n.rect.width,n.rect.height))}handleSeriesFocus(e,t,n=!1){if(this.chart.chartType==="hierarchy"){this.handleHierarchySeriesFocus(e,t,n);return}let{focus:a,seriesRect:u}=this,y=a.sortedSeries.filter(_=>_.visible);if(y.length===0)return;a.seriesIndex=fn(0,a.seriesIndex,y.length-1),a.series=y[a.seriesIndex];let{datumIndex:k,seriesIndex:R}=a,F=a.series.pickFocus({datumIndex:k,datumIndexDelta:t,otherIndex:R,otherIndexDelta:e,seriesRect:u});this.updatePickedFocus(F,n)}handleHierarchySeriesFocus(e,t,n){this.focus.series=this.focus.sortedSeries[0];let{focus:{series:a,seriesIndex:u,datumIndex:y},seriesRect:k}=this;if(a==null)return;let R=a.pickFocus({datumIndex:y,datumIndexDelta:t,otherIndex:u,otherIndexDelta:e,seriesRect:k});this.updatePickedFocus(R,n)}updatePickedFocus(e,t){let{focus:n,hoverRect:a,seriesRect:u}=this;if(e===void 0||n.series===void 0||a===void 0)return;let{datum:y,datumIndex:k}=e;if(n.datumIndex=k,n.datum=y,this.focusIndicator.isFocusVisible()&&this.chart.ctx.animationManager.reset(),this.focusIndicator.isFocusVisible()){let F=GT(e);if(u!=null){let K=F.clone();K.x+=u.x,K.y+=u.y,F=K}let{x:_,y:V}=F.computeCenter();a.containsPoint(_,V)||this.chart.ctx.zoomManager.panToBBox(this.id,a,F)}BT(u!=null?new ki(0,0,u.width,u==null?void 0:u.height):void 0,this.focusIndicator,e,u==null?void 0:u.x,u==null?void 0:u.y);let R=ok(a,e);if(R!==void 0&&this.hoverDevice==="keyboard"){this.tooltip.lastHover=void 0,this.highlight.appliedHoverEvent=void 0,this.highlight.pendingHoverEvent=void 0,this.highlight.stashedHoverEvent=void 0;let F=n.series.getTooltipContent(y),_=uS.makeTooltipMeta(R,y);this.chart.ctx.highlightManager.updateHighlight(this.id,y),this.chart.ctx.tooltipManager.updateTooltip(this.id,_,F),t||this.swapChain.update(this.getDatumAriaText(y,F))}}getDatumAriaText(e,t){var a,u,y;let n=t==null?"":HT(t);return this.chart.ctx.localeManager.t("ariaAnnounceHoverDatum",{datum:(y=(u=(a=e.series).getDatumAriaText)==null?void 0:u.call(a,e,n))!=null?y:n})}clearHighlight(){this.highlight.pendingHoverEvent=void 0,this.highlight.appliedHoverEvent=void 0,this.chart.ctx.highlightManager.updateHighlight(this.id)}clearTooltip(){this.chart.ctx.tooltipManager.removeTooltip(this.id),this.tooltip.lastHover=void 0}clearAll(){this.clearHighlight(),this.clearTooltip(),this.focusIndicator.updateBounds(void 0)}handleHoverHighlight(e){var _;this.highlight.appliedHoverEvent=this.highlight.pendingHoverEvent,this.highlight.pendingHoverEvent=void 0;let t=this.highlight.appliedHoverEvent;if(!t)return;let n=this.chart.ctx.interactionManager.getState();if(n!==32&&n!==8&&n!==1)return;let{canvasX:a,canvasY:u}=t;if(e?this.chart.ctx.animationManager.isActive():!((_=this.hoverRect)!=null&&_.containsPoint(a,u))){this.clearHighlight();return}let y={x:t.regionX,y:t.regionY};t.region!=="series"&&(y=Wo.fromCanvasPoint(this.chart.seriesRoot,a,u));let{range:k}=this.chart.highlight,R=k==="tooltip"?"highlight-tooltip":"highlight",F=mf(this.series,y,R);if(F){this.chart.ctx.highlightManager.updateHighlight(this.id,F.datum),this.hoverDevice="mouse";return}this.chart.ctx.highlightManager.updateHighlight(this.id)}handleHoverTooltip(e,t){var $;let n=this.chart.ctx.interactionManager.getState();if(n!==32&&n!==8&&n!==1)return;let{canvasX:a,canvasY:u,regionX:y,regionY:k}=e,R=e.sourceEvent.target;if(t?this.chart.ctx.animationManager.isActive():!(($=this.hoverRect)!=null&&$.containsPoint(a,u))){this.hoverDevice=="mouse"&&this.clearTooltip();return}if(R&&this.chart.tooltip.interactive&&this.chart.ctx.domManager.isManagedChildDOMElement(R,"canvas-overlay",xs))return;let F={x:y,y:k};e.region!=="series"&&(F=Wo.fromCanvasPoint(this.chart.seriesRoot,a,u));let _=mf(this.series,F,"tooltip");if(!_){this.hoverDevice=="mouse"&&this.clearTooltip();return}this.hoverDevice="mouse";let V=_.series.getTooltipContent(_.datum);if(this.chart.tooltip.enabled&&_.series.tooltipEnabled&&V!=null){let te=uS.makeTooltipMeta(e,_.datum);this.chart.ctx.tooltipManager.updateTooltip(this.id,te,V)}}changeHighlightDatum(e){var R,F;let t=new Set,{series:n=void 0,datum:a}=(R=e.currentHighlight)!=null?R:{},{series:u=void 0,datum:y}=(F=e.previousHighlight)!=null?F:{};u&&t.add(u),n&&t.add(n),u!=null&&u.properties.cursor&&y&&this.chart.ctx.cursorManager.updateCursor(u.id),n!=null&&n.properties.cursor&&(n==null?void 0:n.properties.cursor)!=="default"&&a&&this.chart.ctx.cursorManager.updateCursor(n.id,n.properties.cursor),n==null||u==null?this.update(4):this.update(4,{seriesToUpdate:t})}}}}),nr,Sk,D1=A({"packages/ag-charts-community/src/chart/series/seriesLayerManager.ts"(){"use strict";xo(),Ix(),gn(),xS(),nr=30,Sk=class{constructor(e){this.seriesRoot=e,this.groups=new Map,this.series=new Map,this.expectedSeriesCount=1,this.mode="normal"}setSeriesCount(e){this.expectedSeriesCount=e}requestGroup(e){var V;let{internalId:t,type:n,contentGroup:a,seriesGrouping:u}=e,{groupIndex:y=t}=u!=null?u:{},k=this.series.get(t);if(k!=null)throw new Error(`AG Charts - series already has an allocated layer: ${JSON.stringify(k)}`);this.series.size===0&&(this.mode=this.expectedSeriesCount>=nr?"aggressive-grouping":"normal");let R=this.groups.get(n);R==null&&(R=new Map,this.groups.set(n,R));let F=this.lookupIdx(y),_=R.get(F);return _==null&&(_={type:n,id:F,seriesIds:[],group:this.seriesRoot.appendChild(new Wi({name:`${(V=e.contentGroup.name)!=null?V:n}-managed-layer`,zIndex:e.contentGroup.zIndex,renderToOffscreenCanvas:!1}))},R.set(F,_)),this.series.set(t,{layerState:_,seriesConfig:e}),_.seriesIds.push(t),_.group.appendChild(a),_.group}changeGroup(e){var R,F;let{internalId:t,seriesGrouping:n,type:a,contentGroup:u,oldGrouping:y}=e,{groupIndex:k=t}=n!=null?n:{};(F=(R=this.groups.get(a))==null?void 0:R.get(k))!=null&&F.seriesIds.includes(t)||(this.series.has(t)&&this.releaseGroup({internalId:t,seriesGrouping:y,type:a,contentGroup:u}),this.requestGroup(e))}releaseGroup(e){var y,k,R;let{internalId:t,contentGroup:n,type:a}=e;if(!this.series.has(t))throw new Error(`AG Charts - series doesn't have an allocated layer: ${t}`);let u=(y=this.series.get(t))==null?void 0:y.layerState;u&&(u.seriesIds=u.seriesIds.filter(F=>F!==t),u.group.removeChild(n)),(u==null?void 0:u.seriesIds.length)===0?(this.seriesRoot.removeChild(u.group),(k=this.groups.get(u.type))==null||k.delete(u.id),(R=this.groups.get(a))==null||R.delete(t)):u!=null&&u.seriesIds.length>0&&(u.group.zIndex=this.getLowestSeriesZIndex(u.seriesIds)),this.series.delete(t)}updateLayerCompositing(){this.groups.forEach(e=>{e.forEach(t=>{let{group:n,seriesIds:a}=t,u;if(a.length===0)u=!1;else if(a.length>1)u=!0;else{let y=this.series.get(a[0]);u=(y==null?void 0:y.seriesConfig.renderToOffscreenCanvas())===!0}n.renderToOffscreenCanvas=u,n.zIndex=this.getLowestSeriesZIndex(a)})})}lookupIdx(e){return this.mode==="normal"?e:typeof e=="string"&&(e=Number(e.split("-").at(-1)),!e)?0:Math.floor(fn(0,e/this.expectedSeriesCount,1)*nr)}destroy(){this.groups.forEach(e=>{e.forEach(t=>{this.seriesRoot.removeChild(t.group)})}),this.groups.clear(),this.series.clear()}getLowestSeriesZIndex(e){let t=e.reduce((n,a)=>{let u=this.series.get(a),y=u==null?void 0:u.seriesConfig.contentGroup.zIndex;return n==null||y==null?y:Ex(n,y)<=0?n:y},void 0);return t!=null?t:1}}}}),UT,Rr=A({"packages/ag-charts-community/src/chart/update/dataWindowProcessor.ts"(){"use strict";kd(),UT=class{constructor(e,t,n,a,u){this.chart=e,this.dataService=t,this.updateService=n,this.zoomManager=a,this.animationManager=u,this.dirtyZoom=!1,this.dirtyDataSource=!1,this.lastAxisZooms=new Map,this.destroyFns=[],this.destroyFns.push(this.dataService.addListener("data-source-change",()=>this.onDataSourceChange()),this.dataService.addListener("data-load",()=>this.onDataLoad()),this.dataService.addListener("data-error",()=>this.onDataError()),this.updateService.addListener("update-complete",()=>this.onUpdateComplete()),this.zoomManager.addListener("zoom-change",()=>this.onZoomChange()))}destroy(){this.destroyFns.forEach(e=>e())}onDataLoad(){this.animationManager.skip(),this.updateService.update(1)}onDataError(){this.updateService.update(3)}onDataSourceChange(){this.dirtyDataSource=!0}onUpdateComplete(){!this.dirtyZoom&&!this.dirtyDataSource||this.updateWindow()}onZoomChange(){this.dirtyZoom=!0}updateWindow(){if(!this.dataService.isLazy())return;let e=this.getValidAxis(),t,n=!0;if(e){let a=this.zoomManager.getAxisZoom(e.id);t=this.getAxisWindow(e,a),n=this.shouldRefresh(e,a)}this.dirtyZoom=!1,this.dirtyDataSource=!1,n&&this.dataService.load({windowStart:t==null?void 0:t.min,windowEnd:t==null?void 0:t.max})}getValidAxis(){return this.chart.axes.find(e=>e.type==="time")}shouldRefresh(e,t){if(this.dirtyDataSource)return!0;if(!this.dirtyZoom)return!1;let n=this.lastAxisZooms.get(e.id);return n&&t.min===n.min&&t.max===n.max?!1:(this.lastAxisZooms.set(e.id,t),!0)}getAxisWindow(e,t){var k,R;let n=(R=(k=e.scale).getDomain)==null?void 0:R.call(k);if(!t||!n||n.length===0||isNaN(Number(n[0])))return;let a=Number(n[1])-Number(n[0]),u=new Date(Number(n[0])+a*t.min),y=new Date(Number(n[0])+a*t.max);return{min:u,max:y}}}}});function kL(){var t,n,a,u;let{userAgent:e}=ia().navigator;if(OS.test(e)){let y=parseFloat((n=(t=wk.exec(e))==null?void 0:t[1])!=null?n:"0"),k=Math.floor(y)>16;return k||hi.warnOnce(`Unsupported Safari version: ${y} ; ${e}`),!k}else if(E1.test(e)&&!xk.test(e)&&!KT.test(e)){let y=parseInt((u=(a=Fo.exec(e))==null?void 0:a[1])!=null?u:"0",10),k=y>126;return k||hi.warnOnce(`Unsupported Chrome version: ${y} ; ${e}`),!k}return!1}var OS,wk,E1,Fo,xk,KT,qT=A({"packages/ag-charts-community/src/util/browser.ts"(){"use strict";Rn(),on(),OS=/^((?!chrome|android).)*safari/i,wk=/Version\/(\d+(\.\d+)?)/,E1=/Chrome/,Fo=/Chrome\/(\d+)/,xk=/Edg/,KT=/OPR/}}),Mk,kk=A({"packages/ag-charts-community/src/chart/update/overlaysProcessor.ts"(){"use strict";vr(),qT(),g1(),Mk=class{constructor(e,t,n,a,u,y,k){this.chartLike=e,this.overlays=t,this.dataService=n,this.layoutManager=a,this.localeManager=u,this.animationManager=y,this.domManager=k,this.destroyFns=[],this.overlayElem=this.domManager.addChild("canvas-overlay","overlay"),this.overlayElem.role="status",this.overlayElem.ariaAtomic="false",this.overlayElem.ariaLive="polite",this.overlayElem.classList.toggle(Vo),this.destroyFns.push(this.layoutManager.addListener("layout:complete",R=>this.onLayoutComplete(R)))}destroy(){this.destroyFns.forEach(e=>e()),this.domManager.removeStyles("overlays"),this.domManager.removeChild("canvas-overlay","overlay")}onLayoutComplete({series:{rect:e}}){let t=this.dataService.isLoading(),n=this.chartLike.series.some(_=>_.hasData),a=this.chartLike.series.some(_=>_.visible);this.overlays.darkTheme?this.overlayElem.classList.add(h1):this.overlayElem.classList.remove(h1),this.overlayElem.style.left=`${e.x}px`,this.overlayElem.style.top=`${e.y}px`,this.overlayElem.style.width=`${e.width}px`,this.overlayElem.style.height=`${e.height}px`;let u=t,y=!t&&!n,k=n&&!a,R=this.overlays.unsupportedBrowser.enabled&&kL();u?this.showOverlay(this.overlays.loading,e):this.hideOverlay(this.overlays.loading),y?this.showOverlay(this.overlays.noData,e):this.hideOverlay(this.overlays.noData),k?this.showOverlay(this.overlays.noVisibleSeries,e):this.hideOverlay(this.overlays.noVisibleSeries),R?this.showOverlay(this.overlays.unsupportedBrowser,e):this.hideOverlay(this.overlays.unsupportedBrowser);let F=u||y||k||R;Ya(this.overlayElem,"aria-hidden",!F)}showOverlay(e,t){if(!e.enabled)return;let n=e.getElement(this.animationManager,this.localeManager,t);this.overlayElem.appendChild(n)}hideOverlay(e){e.removeElement(()=>{this.overlayElem.innerText="\xA0"},this.animationManager)}}}}),Ed,FS,Cr,Rp,Xr=A({"packages/ag-charts-community/src/chart/chart.ts"(){"use strict";mh(),vn(),xo(),Mr(),iL(),pr(),Rn(),Zl(),nc(),on(),iT(),ra(),nT(),H0(),zn(),ac(),Sv(),bn(),Ai(),cp(),Tn(),oM(),xT(),MT(),kd(),pS(),Fv(),af(),vg(),_v(),yS(),CS(),sf(),rc(),DT(),Tl(),lf(),CL(),TT(),PT(),Pl(),ML(),D1(),Js(),Rr(),kk(),Om(),Ed=la.create(!0,"opts"),FS=class extends dn{constructor(){super(...arguments),this.padding=new fr(0)}},b([Ge(Oi,{optional:!0})],FS.prototype,"clip",2),b([Ge(Ei)],FS.prototype,"padding",2),Cr=class PZ extends j0{constructor(t,n){var V,K,q,$,te;var a;super(),this.id=Os(this),this.seriesRoot=new Aa({name:`${this.id}-series-root`,zIndex:4}),this.annotationRoot=new Aa({name:`${this.id}-annotation-root`,zIndex:8}),this.titleGroup=new Wi({name:"titles",zIndex:12}),this.debug=la.create(),this.extraDebugStats={},this.data=[],this._firstAutoSize=!0,this._autoSizeNotify=new tM,this.padding=new fr(20),this.seriesArea=new FS,this.keyboard=new $n,this.mode="standalone",this.chartCaptions=new wv,this.suppressFieldDotNotation=!1,this.destroyed=!1,this._destroyFns=[],this.skipSync=!1,this.chartAnimationPhase="initial",this.modulesManager=new Bv,this.processors=[],this.queuedUserOptions=[],this.queuedChartOptions=[],this.firstApply=!0,this._pendingFactoryUpdatesCount=0,this._performUpdateSkipAnimations=!1,this._performUpdateNotify=new tM,this.performUpdateType=7,this.runningUpdateType=7,this.updateShortcutCount=0,this.seriesToUpdate=new Set,this.updateMutex=new Mo,this.updateRequestors={},this.performUpdateTrigger=W0(({count:se})=>{this.destroyed||this.updateMutex.acquire(async()=>{try{await this.performUpdate(se)}catch(de){hi.error("update error",de)}}).catch(de=>hi.errorOnce(de))}),this._performUpdateSplits={},this.axes=[],this.series=[],this._cachedData=void 0,this.onSeriesNodeClick=se=>{this.fireEvent(He(ge({},se),{type:"seriesNodeClick"}))},this.onSeriesNodeDoubleClick=se=>{this.fireEvent(He(ge({},se),{type:"seriesNodeDoubleClick"}))},this.onSeriesVisibilityChange=se=>{this.fireEvent(se)},this.seriesGroupingChanged=se=>{if(!(se instanceof dc))return;let{series:de,seriesGrouping:pe,oldGrouping:Ce}=se;de.contentGroup.isRoot()||this.seriesLayerManager.changeGroup({internalId:de.internalId,type:de.type,contentGroup:de.contentGroup,renderToOffscreenCanvas:()=>de.renderToOffscreenCanvas(),seriesGrouping:pe,oldGrouping:Ce})},this.chartOptions=t;let u=n==null?void 0:n.scene,y=(K=(V=n==null?void 0:n.container)!=null?V:t.processedOptions.container)!=null?K:void 0,k=(q=n==null?void 0:n.styleContainer)!=null?q:t.specialOverrides.styleContainer,R=new Wi({name:"root"});R.visible=!1,R.append(this.seriesRoot),R.append(this.annotationRoot),R.append(this.titleGroup),this.titleGroup.append(this.title.node),this.titleGroup.append(this.subtitle.node),this.titleGroup.append(this.footnote.node),this.tooltip=new vu,this.seriesLayerManager=new Sk(this.seriesRoot),this.mode=($=t.userOptions.mode)!=null?$:this.mode;let F=this.ctx=new r1(this,{chartType:this.getChartType(),scene:u,root:R,container:y,styleContainer:k,syncManager:new bS(this),pixelRatio:t.specialOverrides.overrideDevicePixelRatio,updateCallback:(se,de)=>this.update(se,de),updateMutex:this.updateMutex});this._destroyFns.push(F.domManager.addListener("resize",()=>this.parentResize(F.domManager.containerSize))),this.overlays=new wh,(te=(a=this.overlays.loading).renderer)!=null||(a.renderer=()=>RT(this.overlays.loading.getText(F.localeManager),F.animationManager.defaultDuration)),this.processors=[new UT(this,F.dataService,F.updateService,F.zoomManager,F.animationManager),new Mk(this,this.overlays,F.dataService,F.layoutManager,F.localeManager,F.animationManager,F.domManager)],this.highlight=new GM,this.container=y;let _=this.getModuleContext();F.domManager.setDataBoolean("animating",!1),this.seriesAreaManager=new Ck(this.initSeriesAreaDependencies()),this._destroyFns.push(F.layoutManager.registerElement(0,se=>{se.layoutBox.shrink(this.padding.toJson()),this.chartCaptions.positionCaptions(se)}),F.layoutManager.addListener("layout:complete",se=>this.chartCaptions.positionAbsoluteCaptions(se)),F.dataService.addListener("data-load",se=>{this.data=se.data}),this.title.registerInteraction(_,"beforebegin"),this.subtitle.registerInteraction(_,"beforebegin"),this.footnote.registerInteraction(_,"afterend"),F.interactionManager.addListener("page-left",()=>this.destroy()),F.animationManager.addListener("animation-frame",()=>{this.update(6)}),F.animationManager.addListener("animation-start",()=>F.domManager.setDataBoolean("animating",!0)),F.animationManager.addListener("animation-stop",()=>F.domManager.setDataBoolean("animating",!1)),F.zoomManager.addListener("zoom-change",()=>{this.series.forEach(de=>{var pe;return(pe=de.animationState)==null?void 0:pe.transition("updateData")});let se=this.chartAnimationPhase!=="initial";this.update(3,{forceNodeDataRefresh:!0,skipAnimations:se})})),this.parentResize(F.domManager.containerSize)}static getInstance(t){return PZ.chartsInstances.get(t)}get canvasElement(){return this.ctx.scene.canvas.element}download(t,n){this.ctx.scene.download(t,n)}getCanvasDataURL(t){return this.ctx.scene.getDataURL(t)}toSVG(){return this.ctx.scene.toSVG()}getOptions(){var t;return(t=this.queuedUserOptions.at(-1))!=null?t:this.chartOptions.userOptions}getChartOptions(){var t;return(t=this.queuedChartOptions.at(-1))!=null?t:this.chartOptions}initSeriesAreaDependencies(){let{ctx:t,tooltip:n,highlight:a,overlays:u,seriesRoot:y,mode:k}=this,R=this.getChartType();return{fireEvent:this.fireEvent.bind(this),getUpdateType:()=>this.performUpdateType,chartType:R,ctx:t,tooltip:n,highlight:a,overlays:u,seriesRoot:y,mode:k}}getModuleContext(){return this.ctx}getCaptionText(){return[this.title,this.subtitle,this.footnote].filter(t=>t.enabled&&t.text).map(t=>t.text).join(". ")}getAriaLabel(){return this.ctx.localeManager.t("ariaAnnounceChart",{seriesCount:this.series.length})}resetAnimations(){this.chartAnimationPhase="initial";for(let t of this.series)t.resetAnimation(this.chartAnimationPhase);for(let t of this.axes)t.resetAnimation(this.chartAnimationPhase);this.animationRect=void 0,this.ctx.animationManager.reset()}skipAnimations(){this.ctx.animationManager.skipCurrentBatch(),this._performUpdateSkipAnimations=!0}detachAndClear(){this.container=void 0,this.ctx.scene.clear()}destroy(t){if(this.destroyed)return;let n=t==null?void 0:t.keepTransferableResources,a;return this.performUpdateType=7,this._destroyFns.forEach(u=>u()),this.processors.forEach(u=>u.destroy()),this.tooltip.destroy(this.ctx.domManager),this.overlays.destroy(),this.modulesManager.destroy(),n?(this.ctx.scene.strip(),a={container:this.container,scene:this.ctx.scene}):(this.ctx.scene.destroy(),this.container=void 0),this.destroySeries(this.series),this.seriesLayerManager.destroy(),this.axes.forEach(u=>u.destroy()),this.axes=[],this.animationRect=void 0,this.ctx.destroy(),this.destroyed=!0,Object.freeze(this),a}requestFactoryUpdate(t){this.destroyed||(this._pendingFactoryUpdatesCount++,this.updateMutex.acquire(async()=>{if(!this.destroyed)try{await t(this)}finally{this.destroyed||this._pendingFactoryUpdatesCount--}}).catch(n=>hi.errorOnce(n)))}update(t=0,n){var R,F;let{forceNodeDataRefresh:a=!1,skipAnimations:u,seriesToUpdate:y=this.series,newAnimationBatch:k}=n!=null?n:{};a&&this.series.forEach(_=>_.markNodeDataDirty());for(let _ of y)this.seriesToUpdate.add(_);if(u&&(this.ctx.animationManager.skipCurrentBatch(),this._performUpdateSkipAnimations=!0),k&&this.ctx.animationManager.isActive()&&(this._performUpdateSkipAnimations=!0),this.skipSync=(R=n==null?void 0:n.skipSync)!=null?R:!1,this.debug.check()){let _=(F=new Error().stack)!=null?F:"<unknown>";_=_.replace(/\([^)]*/g,""),this.updateRequestors[_]=t}t<this.performUpdateType&&(this.performUpdateType=t,this.ctx.domManager.setDataBoolean("updatePending",!0),this.performUpdateTrigger.schedule(n==null?void 0:n.backOffMs))}async performUpdate(t){var V;let{performUpdateType:n,extraDebugStats:a,_performUpdateSplits:u,ctx:y}=this,k=[...this.seriesToUpdate];this.performUpdateType=7,this.seriesToUpdate.clear(),this.runningUpdateType=n,this.updateShortcutCount===0&&n<6&&(y.animationManager.startBatch(this._performUpdateSkipAnimations),y.animationManager.onBatchStop(()=>this.chartAnimationPhase="ready")),this.debug("Chart.performUpdate() - start",hg[n]);let R=performance.now();(V=u.start)!=null||(u.start=R);let F=K=>{var q;(q=u[K])!=null||(u[K]=0),u[K]+=performance.now()-R,R=performance.now()};switch(n){case 0:if(this.checkUpdateShortcut(0))break;this.ctx.updateService.dispatchPreDomUpdate(),this.updateDOM();case 1:if(this.checkUpdateShortcut(1))break;await this.updateData(),F("\u2B07\uFE0F");case 2:if(this.checkUpdateShortcut(2))break;await this.processData(),this.seriesAreaManager.dataChanged(),F("\u{1F3ED}");case 3:if(await this.checkFirstAutoSize(),this.checkUpdateShortcut(3))break;await this.processLayout(),F("\u2316");case 4:{if(this.checkUpdateShortcut(4))break;await this.updateSeries(k),F("\u{1F914}"),this.updateAriaLabels(),this.seriesLayerManager.updateLayerCompositing()}case 5:if(this.checkUpdateShortcut(5))break;y.updateService.dispatchPreSceneRender(this.getMinRects()),F("\u2196");case 6:if(this.checkUpdateShortcut(6))break;y.animationManager.endBatch(),a.updateShortcutCount=this.updateShortcutCount,y.scene.render({debugSplitTimes:u,extraDebugStats:a,seriesRect:this.seriesRect}),this.extraDebugStats={};for(let K of Object.keys(u))delete u[K];this.ctx.domManager.incrementDataCounter("sceneRenders");case 7:this.updateShortcutCount=0,this.updateRequestors={},this._performUpdateSkipAnimations=!1,y.animationManager.endBatch()}this.destroyed||(y.updateService.dispatchUpdateComplete(this.getMinRects()),this.ctx.domManager.setDataBoolean("updatePending",!1),this.runningUpdateType=7),this._performUpdateNotify.notify();let _=performance.now();this.debug("Chart.performUpdate() - end",{chart:this,durationMs:Math.round((_-u.start)*100)/100,count:t,performUpdateType:hg[n]})}updateThemeClassName(){let t="ag-charts-theme-",n=[`${t}default`,`${t}default-dark`],a=n[0],u=!1,{theme:y}=this.chartOptions.processedOptions;for(;typeof y!="string"&&y!=null;)y=y.baseTheme;typeof y=="string"&&(a=y.replace("ag-",t),u=y.includes("-dark")),n.includes(a)||(a=u?n[1]:n[0]),this.ctx.domManager.setThemeClass(a)}updateDOM(){this.updateThemeClassName();let{enabled:t,tabIndex:n}=this.keyboard;this.ctx.domManager.setTabGuardIndex(t?n!=null?n:0:-1)}updateAriaLabels(){this.ctx.domManager.updateCanvasLabel(this.getAriaLabel())}checkUpdateShortcut(t){return this.destroyed?!0:this.updateShortcutCount>3?(hi.warn(`exceeded the maximum number of simultaneous updates (${3+1}), discarding changes and rendering`,this.updateRequestors),!1):this.performUpdateType<=t?(this.updateShortcutCount++,!0):!1}async checkFirstAutoSize(){this.width!=null&&this.height!=null||this._lastAutoSize||await this._autoSizeNotify.await(500)||this.debug("Chart.checkFirstAutoSize() - timeout for first size update.")}onAxisChange(t,n){n==null&&t.length===0||this.ctx.axisManager.updateAxes(n!=null?n:[],t)}onSeriesChange(t,n){var u,y,k;let a=(u=n==null?void 0:n.filter(R=>!t.includes(R)))!=null?u:[];this.destroySeries(a),(y=this.seriesLayerManager)==null||y.setSeriesCount(t.length);for(let R of t){if(n!=null&&n.includes(R))continue;let F=this.seriesLayerManager.requestGroup(R);R.attachSeries(F,this.seriesRoot,this.annotationRoot);let _=this;R.chart={get mode(){return _.mode},get isMiniChart(){return!1},get seriesRect(){return _.seriesRect}},R.resetAnimation(this.chartAnimationPhase),this.addSeriesListeners(R),R.addChartEventListeners()}(k=this.seriesAreaManager)==null||k.seriesChanged(t)}destroySeries(t){t==null||t.forEach(n=>{n.removeEventListener("nodeClick",this.onSeriesNodeClick),n.removeEventListener("nodeDoubleClick",this.onSeriesNodeDoubleClick),n.removeEventListener("groupingChanged",this.seriesGroupingChanged),n.destroy(),this.seriesLayerManager.releaseGroup(n),n.detachSeries(void 0,this.seriesRoot,this.annotationRoot),n.chart=void 0})}addSeriesListeners(t){this.hasEventListener("seriesNodeClick")&&t.addEventListener("nodeClick",this.onSeriesNodeClick),this.hasEventListener("seriesNodeDoubleClick")&&t.addEventListener("nodeDoubleClick",this.onSeriesNodeDoubleClick),this.hasEventListener("seriesVisibilityChange")&&t.addEventListener("seriesVisibilityChange",this.onSeriesVisibilityChange),t.addEventListener("groupingChanged",this.seriesGroupingChanged)}assignSeriesToAxes(){for(let t of this.axes)t.boundSeries=this.series.filter(n=>n.axes[t.direction]===t)}assignAxesToSeries(){let t=lx(this.axes,n=>n.direction);for(let n of this.series)for(let a of n.directions){let u=t[a];if(!u){hi.warnOnce(`no available axis for direction [${a}]; check series and axes configuration.`);return}let y=n.getKeys(a),k=u.find(R=>!R.keys.length||y.some(F=>R.keys.includes(F)));if(!k){hi.warnOnce(`no matching axis for direction [${a}] and keys [${y}]; check series and axes configuration.`);return}n.axes[a]=k}}parentResize(t){var k;if(t==null||this.width!=null&&this.height!=null)return;let{width:n,height:a}=t;if(n=Math.floor(n),a=Math.floor(a),n===0&&a===0)return;let[u=0,y=0]=(k=this._lastAutoSize)!=null?k:[];u===n&&y===a||(this._lastAutoSize=[n,a],this.resize("SizeMonitor",{}))}resize(t,n){var K,q,$,te;let{scene:a,animationManager:u}=this.ctx,{inWidth:y,inHeight:k,inMinWidth:R,inMinHeight:F}=n;this.ctx.domManager.setSizeOptions(R!=null?R:this.minWidth,F!=null?F:this.minHeight,y!=null?y:this.width,k!=null?k:this.height);let _=(q=y!=null?y:this.width)!=null?q:(K=this._lastAutoSize)==null?void 0:K[0],V=(te=k!=null?k:this.height)!=null?te:($=this._lastAutoSize)==null?void 0:$[1];if(this.debug(`Chart.resize() from ${t}`,{width:_,height:V,stack:new Error().stack}),!(_==null||V==null||!pa(_)||!pa(V))&&a.resize(_,V)){u.reset();let se=!0;(this.width==null||this.height==null)&&this._firstAutoSize&&(se=!1,this._firstAutoSize=!1),this.update(3,{forceNodeDataRefresh:!0,skipAnimations:se}),this._autoSizeNotify.notify()}}async updateData(){this.series.forEach(n=>n.setChartData(this.data));let t=this.modulesManager.mapModules(n=>{var a;return(a=n.updateData)==null?void 0:a.call(n,this.data)});await Promise.all(t)}async processData(){this.series.some(u=>u.canHaveAxes)&&(this.assignAxesToSeries(),this.assignSeriesToAxes());for(let u of this.axes)u.processData();let t=new Bb(this.mode,this.suppressFieldDotNotation),n=this.series.map(u=>(u.resetDatumCallbackCache(),u.processData(t))),a=this.modulesManager.mapModules(u=>{var y;return(y=u.processData)==null?void 0:y.call(u,t)});this._cachedData=t.execute(this._cachedData),await Promise.all([...n,...a]),this.updateLegends()}updateLegends(t){for(let{legend:n,legendType:a}of this.modulesManager.legends())a==="category"?this.setCategoryLegendData(t):this.setLegendData(a,n)}setCategoryLegendData(t){var k,R;var n;let{ctx:{legendManager:a,stateManager:u}}=this;t&&this.series.forEach(F=>{let _=t.find(V=>V.seriesId===F.id);F.onLegendInitialState("category",_)});let y=this.series.flatMap(F=>{let _=F.getLegendData("category");return a.updateData(F.id,_),_});if(t){u.setStateAndRestore(a,t);return}if(this.mode!=="integrated"){let F={},_=new Map(this.series.map(V=>[V.id,V.type]));for(let{seriesId:V,symbol:{marker:K},label:q}of y.filter($=>!$.hideInLegend)){if(K.fill==null)continue;let $=_.get(V),te=(k=F[$])!=null?k:F[$]={};(R=te[n=q.text])!=null||(te[n]=K.fill),te[q.text]!==K.fill&&hi.warnOnce(`legend item '${q.text}' has multiple fill colors, this may cause unexpected behaviour.`)}}a.update()}setLegendData(t,n){n.data=this.series.filter(a=>a.properties.showInLegend).flatMap(a=>a.getLegendData(t))}async processLayout(){var y;let t=this.animationRect,{width:n,height:a}=this.ctx.scene,u=this.ctx.layoutManager.createContext(n,a);await this.performLayout(u),t&&!((y=this.animationRect)!=null&&y.equals(t))&&this.ctx.animationManager.skipCurrentBatch(),this.debug("Chart.performUpdate() - seriesRect",this.seriesRect)}async updateSeries(t){let{seriesRect:n}=this;await Promise.all(t.map(a=>a.update({seriesRect:n}))),this.ctx.seriesLabelLayoutManager.updateLabels(this.series.filter(a=>a.visible&&a.usesPlacedLabels),this.padding,this.seriesRect)}async waitForUpdate(t=1e4,n=!1){let a=performance.now();for(;this._pendingFactoryUpdatesCount>0||this.performUpdateType!==7||this.runningUpdateType!==7;){if(this._pendingFactoryUpdatesCount>0&&await this.updateMutex.waitForClearAcquireQueue(),(this.performUpdateType!==7||this.runningUpdateType!==7)&&await this._performUpdateNotify.await(),performance.now()-a>t){let u=`Chart.waitForUpdate() timeout of ${t} reached - first chart update taking too long.`;if(n)throw new Error(u);hi.warnOnce(u)}op()&&await TD()}}getMinRects(){let{width:t,height:n}=this.ctx.scene,a=this.series.map(V=>V.getMinRects(t,n)).filter(Hi);if(a.length===0)return;let u=0,y=0,k=0,R=0;for(let{minRect:V,minVisibleRect:K}of a)u=Math.max(u,V.width),y=Math.max(y,V.height),k=Math.max(k,K.width),R=Math.max(R,K.height);let F=new ki(0,0,u,y),_=F.clone();return k>0&&R>0&&(_=new ki(0,0,k,R)),{minRect:F,minVisibleRect:_}}filterMiniChartSeries(t){return t==null?void 0:t.filter(n=>n.showInMiniChart!==!1)}applyOptions(t){var se,de,pe,Ce,Se,ve;let n=this.firstApply?t.processedOptions:t.diffOptions(this.chartOptions);if(n==null||Object.keys(n).length===0)return;let a=this.firstApply?{}:this.chartOptions.processedOptions,u=t.processedOptions;Ed("Chart.applyOptions() - applying delta",n);let y=this.applyModules(u),k=["type","data","series","listeners","preset","theme","legend.listeners","navigator.miniChart.series","navigator.miniChart.label","locale.localeText","axes","topology","nodes","initialState","styleContainer"];n.listeners&&this.registerListeners(this,n.listeners),k0(this,n,{skip:k});let R=!1,F="no-op";n.series!=null&&(F=this.applySeries(this,n.series,a==null?void 0:a.series),R=!0),F==="replaced"&&this.resetAnimations(),this.applyAxes(this,u,a,F,[])&&(R=!0),n.data&&(this.data=n.data),(se=n.legend)!=null&&se.listeners&&this.modulesManager.isEnabled("legend")&&Object.assign(this.legend.listeners,n.legend.listeners),(de=n.locale)!=null&&de.localeText&&(this.modulesManager.getModule("locale").localeText=(pe=n.locale)==null?void 0:pe.localeText),this.chartOptions=t;let _=this.modulesManager.getModule("navigator"),V=this.modulesManager.getModule("zoom");!(_!=null&&_.enabled)&&!(V!=null&&V.enabled)&&this.ctx.zoomManager.updateZoom("chart");let K=_==null?void 0:_.miniChart,q=(ve=(Se=(Ce=u.navigator)==null?void 0:Ce.miniChart)==null?void 0:Se.series)!=null?ve:u.series;(K==null?void 0:K.enabled)===!0&&q!=null?this.applyMiniChartOptions(K,q,u,a):(K==null?void 0:K.enabled)===!1&&(K.series=[],K.axes=[]),this.ctx.annotationManager.setAnnotationStyles(t.annotationThemes),R||(R=this.shouldForceNodeDataRefresh(n,F));let te=R||y?0:3;this.maybeResetAnimations(F),Ed("Chart.applyOptions() - update type",hg[te],{seriesStatus:F,forceNodeDataRefresh:R}),this.update(te,{forceNodeDataRefresh:R,newAnimationBatch:!0}),this.ctx.legendManager.clearData(),this.applyInitialState(u),this.firstApply=!1}applyInitialState(t){var F,_,V;let{annotationManager:n,chartTypeOriginator:a,historyManager:u,stateManager:y,zoomManager:k}=this.ctx,{initialState:R}=t;if("annotations"in t&&((F=t.annotations)!=null&&F.enabled)&&(R==null?void 0:R.annotations)!=null){let K=R.annotations.map(q=>{let $=n.getAnnotationTypeStyles(q.type);return En(q,$)});y.setState(n,K)}(R==null?void 0:R.chartType)!=null&&y.setState(a,R.chartType),((_=t.navigator)!=null&&_.enabled||(V=t.zoom)!=null&&V.enabled)&&(R==null?void 0:R.zoom)!=null&&y.setState(k,R.zoom),(R==null?void 0:R.legend)!=null&&this.updateLegends(R.legend),R!=null&&u.clear()}maybeResetAnimations(t){if(this.mode==="standalone")switch(t){case"series-grouping-change":case"replaced":this.resetAnimations();break;default:}}shouldForceNodeDataRefresh(t,n){let a=!!t.data||n==="data-change"||n==="replaced",u=rf.getKeys(),y=Object.values(u).some(R=>t[R]!=null),k=t.title!=null&&t.subtitle!=null;return a||y||k}applyMiniChartOptions(t,n,a,u){var V,K,q,$,te;let y=(q=(K=(V=u==null?void 0:u.navigator)==null?void 0:V.miniChart)==null?void 0:K.series)!=null?q:u==null?void 0:u.series,k=this.applySeries(t,this.filterMiniChartSeries(n),this.filterMiniChartSeries(y));this.applyAxes(t,a,u,k,["axes[].tick","axes[].thickness","axes[].title","axes[].crosshair","axes[].gridLine","axes[].label"]);let R=t.series;for(let se of R)se.properties.id=void 0;let F=t.axes,_=F.find(se=>se.direction==="x");for(let se of F)se.gridLine.enabled=!1,se.label.enabled=se===_,se.tick.enabled=!1,se.interactionEnabled=!1;if(_!=null){let se=($=a.navigator)==null?void 0:$.miniChart,de=se==null?void 0:se.label,pe=(te=se==null?void 0:se.label)==null?void 0:te.interval;if(_.line.enabled=!1,_.label.set(In(de,["interval","rotation","minSpacing","autoRotate","autoRotateAngle"])),_.tick.set(In(pe,["enabled","width","size","color","interval","step"])),_.type==="grouped-category"){_.label.enabled=!1,_.label.rotation=0;let{depthOptions:Se}=_;if(Se.length===0)Se.set([{label:{enabled:!0}}]);else for(let ve=1;ve<Se.length;ve++)Se[ve].label.enabled=!1}let Ce=pe==null?void 0:pe.step;Ce!=null&&(_.interval.step=Ce)}}applyModules(t){var u;let{type:n}=this.constructor,a=!1;for(let y of ph.byType("root","legend")){let R=t[y.optionsKey]!=null&&y.chartTypes.includes(n);R!==this.modulesManager.isEnabled(y)&&(R?(this.modulesManager.addModule(y,F=>F.moduleFactory(this.getModuleContext())),y.type==="legend"&&((u=this.modulesManager.getModule(y))==null||u.attachLegend(this.ctx.scene)),this[y.optionsKey]=this.modulesManager.getModule(y)):(this.modulesManager.removeModule(y),delete this[y.optionsKey]),a=!0)}return a}initSeriesDeclarationOrder(t){for(let n=0;n<t.length;n++)t[n].setSeriesIndex(n)}applySeries(t,n,a){var V;if(!n)return"no-change";let u=Kc(t.series,n,a);if(u.status==="no-overlap"){Ed(`Chart.applySeries() - creating new series instances, status: ${u.status}`,u);let K=n.map(q=>this.createSeries(q));return this.initSeriesDeclarationOrder(K),t.series=K,"replaced"}Ed("Chart.applySeries() - matchResult",u);let y=[],k=!1,R=!1,F=!1,_=u.changes.toSorted((K,q)=>K.targetIdx-q.targetIdx);for(let K of _)switch(R||(R=K.status==="series-grouping"),k||(k=((V=K.diff)==null?void 0:V.data)!=null),F||(F=K.status!=="no-op"),K.status){case"add":{let q=this.createSeries(K.opts);y.push(q),Ed("Chart.applySeries() - created new series",q);break}case"remove":Ed(`Chart.applySeries() - removing series at previous idx ${K.idx}`,K.series);break;case"no-op":y.push(K.series),Ed(`Chart.applySeries() - no change to series at previous idx ${K.idx}`,K.series);break;case"series-grouping":case"update":default:{let{series:q,diff:$,idx:te}=K;Ed(`Chart.applySeries() - applying series diff previous idx ${te}`,$,q),this.applySeriesValues(q,$),q.markNodeDataDirty(),y.push(q)}}return this.initSeriesDeclarationOrder(y),Ed("Chart.applySeries() - final series instances",y),t.series=y,R?"series-grouping-change":k?"data-change":F?"updated":"no-op"}applyAxes(t,n,a,u,y=[]){if(!("axes"in n)||!n.axes)return!1;y=["axes[].type",...y];let{axes:k}=n;return!(u==="replaced")&&t.axes.length===k.length&&t.axes.every((_,V)=>_.type===k[V].type)&&Hb(a)?(t.axes.forEach((_,V)=>{var te,se;let K=(se=(te=a.axes)==null?void 0:te[V])!=null?se:{},q=Qh(K,k[V]);Ed(`Chart.applyAxes() - applying axis diff idx ${V}`,q);let $=`axes[${V}]`;k0(_,q,{path:$,skip:y})}),!0):(Ed(`Chart.applyAxes() - creating new axes instances; seriesStatus: ${u}`),t.axes=this.createAxis(k,y),!0)}createSeries(t){let n=Oo.create(t.type,this.getModuleContext());return this.applySeriesOptionModules(n,t),this.applySeriesValues(n,t),n}applySeriesOptionModules(t,n){let a=t.createModuleContext(),u=t.getModuleMap();for(let y of ph.byType("series-option"))y.optionsKey in n&&y.seriesTypes.includes(t.type)&&u.addModule(y,k=>k.moduleFactory(a))}applySeriesValues(t,n){let a=t.getModuleMap(),V=n,{type:u,data:y,listeners:k,seriesGrouping:R,showInMiniChart:F}=V,_=wi(V,["type","data","listeners","seriesGrouping","showInMiniChart"]);for(let K of yr)if(K.type==="series-option"&&K.optionsKey in _){let q=a.getModule(K.optionsKey);if(q){let $=_[K.optionsKey];delete _[K.optionsKey],q.properties.set($)}}t.properties.set(_),"data"in n&&t.setOptionsData(y),k&&this.registerListeners(t,k),"seriesGrouping"in n&&(R==null?t.seriesGrouping=void 0:t.seriesGrouping=ge(ge({},t.seriesGrouping),R))}createAxis(t,n){let a=[],u=this.getModuleContext();for(let y=0;y<t.length;y++){let k=t[y],R=gu.create(k.type,u);this.applyAxisModules(R,k),k0(R,k,{path:`axes[${y}]`,skip:n}),a.push(R)}return XM(a),a}applyAxisModules(t,n){let a=t.createModuleContext(),u=t.getModuleMap();for(let y of ph.byType("axis-option")){let k=n[y.optionsKey]!=null;k!==u.isEnabled(y)&&(k?(u.addModule(y,R=>R.moduleFactory(a)),t[y.optionsKey]=u.getModule(y)):(u.removeModule(y),delete t[y.optionsKey]))}}registerListeners(t,n){t.clearEventListeners();for(let[a,u]of Object.entries(n))Si(u)&&t.addEventListener(a,u)}},Cr.chartsInstances=new WeakMap,b([vs({newValue(e){this.destroyed||(this.ctx.domManager.setContainer(e),Cr.chartsInstances.set(e,this))},oldValue(e){Cr.chartsInstances.delete(e)}})],Cr.prototype,"container",2),b([vs({newValue(e){this.resize("width option",{inWidth:e})}})],Cr.prototype,"width",2),b([vs({newValue(e){this.resize("height option",{inHeight:e})}})],Cr.prototype,"height",2),b([vs({newValue(e){this.resize("minWidth option",{inMinWidth:e})}})],Cr.prototype,"minWidth",2),b([vs({newValue(e){this.resize("minHeight option",{inMinHeight:e})}})],Cr.prototype,"minHeight",2),b([Ge(Ei)],Cr.prototype,"padding",2),b([Ge(Ei)],Cr.prototype,"seriesArea",2),b([Ge(Ei)],Cr.prototype,"keyboard",2),b([Ge(uo(["standalone","integrated"],"a chart mode"))],Cr.prototype,"mode",2),b([tr("chartCaptions.title")],Cr.prototype,"title",2),b([tr("chartCaptions.subtitle")],Cr.prototype,"subtitle",2),b([tr("chartCaptions.footnote")],Cr.prototype,"footnote",2),b([Ge(Oi)],Cr.prototype,"suppressFieldDotNotation",2),b([vs({changeValue(e,t){this.onAxisChange(e,t)}})],Cr.prototype,"axes",2),b([vs({changeValue(e,t){this.onSeriesChange(e,t)}})],Cr.prototype,"series",2),Rp=Cr}}),_S,NS,zS,Ak,Ms=A({"packages/ag-charts-community/src/scene/util/quadtree.ts"(){"use strict";qu(),vn(),_S=class{constructor(e,t,n){this.root=new Ak(e,t,n)}clear(e){this.root.clear(e)}addValue(e,t){let n={hitTester:e,value:t,distanceSquared:(a,u)=>e.distanceSquared(a,u)};this.root.addElem(n)}find(e,t){let n={best:{nearest:void 0,distanceSquared:1/0}};return this.root.find(e,t,n),n.best}},NS=class{constructor(e,t,n,a){this.nw=e,this.ne=t,this.sw=n,this.se=a}addElem(e){this.nw.addElem(e),this.ne.addElem(e),this.sw.addElem(e),this.se.addElem(e)}find(e,t,n){this.nw.find(e,t,n),this.ne.find(e,t,n),this.sw.find(e,t,n),this.se.find(e,t,n)}},zS=class{constructor(e,t,n){this.capacity=e,this.maxdepth=t,this.boundary=n!=null?n:ki.NaN,this.elems=[],this.subdivisions=void 0}clear(e){this.elems.length=0,this.boundary=e,this.subdivisions=void 0}addElem(e){this.addCondition(e)&&(this.subdivisions===void 0?this.maxdepth===0||this.elems.length<this.capacity?this.elems.push(e):this.subdivide(e):this.subdivisions.addElem(e))}find(e,t,n){this.findCondition(e,t,n)&&(this.subdivisions===void 0?this.findAction(e,t,n):this.subdivisions.find(e,t,n))}subdivide(e){this.subdivisions=this.makeSubdivisions();for(let t of this.elems)this.subdivisions.addElem(t);this.subdivisions.addElem(e),this.elems.length=0}makeSubdivisions(){let{x:e,y:t,width:n,height:a}=this.boundary,{capacity:u}=this,y=this.maxdepth-1,k=n/2,R=a/2,F=new ki(e,t,k,R),_=new ki(e+k,t,k,R),V=new ki(e,t+R,k,R),K=new ki(e+k,t+R,k,R);return new NS(this.child(u,y,F),this.child(u,y,_),this.child(u,y,V),this.child(u,y,K))}},Ak=class LZ extends zS{addCondition(t){let{x:n,y:a}=t.hitTester.midPoint;return this.boundary.containsPoint(n,a)}findCondition(t,n,a){let{best:u}=a;return u.distanceSquared!==0&&this.boundary.distanceSquared(t,n)<u.distanceSquared}findAction(t,n,a){let u=rs(t,n,this.elems,a.best.distanceSquared);u.nearest!==void 0&&u.distanceSquared<a.best.distanceSquared&&(a.best=u)}child(t,n,a){return new LZ(t,n,a)}}}}),ar,Id=A({"packages/ag-charts-community/src/chart/series/dataModelSeries.ts"(){"use strict";cs(),gn(),Tn(),Pl(),ar=class extends df{constructor(){super(...arguments),this.showFocusBox=!0,this.clipFocusBox=!0}getScaleInformation({xScale:e,yScale:t}){let n=Ha.is(e),a=Ha.is(t);return{isContinuousX:n,isContinuousY:a,xScaleType:e==null?void 0:e.type,yScaleType:t==null?void 0:t.type}}getModulePropertyDefinitions(){var n,a;let e=(n=this.axes.x)==null?void 0:n.scale,t=(a=this.axes.y)==null?void 0:a.scale;return this.moduleMap.mapModules(u=>u.getPropertyDefinitions(this.getScaleInformation({xScale:e,yScale:t}))).flat()}async requestDataModel(e,t,n){n.props.push(...this.getModulePropertyDefinitions());let{dataModel:a,processedData:u}=await e.request(this.id,t!=null?t:[],n);return this.dataModel=a,this.processedData=u,this.dispatch("data-processed",{dataModel:a,processedData:u}),{dataModel:a,processedData:u}}isProcessedDataAnimatable(){var a,u;let e=(u=(a=this.processedData)==null?void 0:a.reduced)==null?void 0:u.animationValidation;if(!e)return!0;let{orderedKeys:t,uniqueKeys:n}=e;return t&&n}checkProcessedDataAnimatable(){this.isProcessedDataAnimatable()||this.ctx.animationManager.skipCurrentBatch()}pickFocus(e){let t=this.getNodeData();if(t===void 0||t.length===0)return;let n=this.computeFocusDatumIndex(e,t);if(n===void 0)return;let{showFocusBox:a,clipFocusBox:u}=this,y=t[n],k=He(ge({},e),{datumIndex:n}),R=this.computeFocusBounds(k);if(R!==void 0)return{bounds:R,showFocusBox:a,clipFocusBox:u,datum:y,datumIndex:n}}computeFocusDatumIndex(e,t){var R;let n=F=>{let{missing:_=!1,enabled:V=!0,focusable:K=!0}=t[F];return!_&&V&&K},a=F=>{for(;F>=0&&!n(F);)F+=e.datumIndexDelta;return F===-1?void 0:F},u=F=>{for(;F<t.length&&!n(F);)F+=e.datumIndexDelta;return F===t.length?void 0:F},y,k=fn(0,e.datumIndex,t.length-1);return e.datumIndexDelta<0?y=a(k):e.datumIndexDelta>0?y=u(k):y=(R=u(k))!=null?R:a(k),y===void 0?e.datumIndexDelta===0?void 0:e.datumIndex-e.datumIndexDelta:y}}}}),xh,ff,BS,Pp,vf,el,_n=A({"packages/ag-charts-community/src/chart/series/seriesProperties.ts"(){"use strict";zn(),Ai(),xh=class extends dn{constructor(){super(...arguments),this.fill="rgba(255,255,255, 0.33)",this.stroke="rgba(0, 0, 0, 0.4)",this.strokeWidth=2}},b([Ge(sa,{optional:!0})],xh.prototype,"fill",2),b([Ge(Cn,{optional:!0})],xh.prototype,"fillOpacity",2),b([Ge(sa,{optional:!0})],xh.prototype,"stroke",2),b([Ge(ni,{optional:!0})],xh.prototype,"strokeWidth",2),b([Ge(Cn,{optional:!0})],xh.prototype,"strokeOpacity",2),b([Ge(hd,{optional:!0})],xh.prototype,"lineDash",2),b([Ge(ni,{optional:!0})],xh.prototype,"lineDashOffset",2),ff=class extends dn{},b([Ge(ni,{optional:!0})],ff.prototype,"strokeWidth",2),b([Ge(Cn,{optional:!0})],ff.prototype,"dimOpacity",2),b([Ge(Oi,{optional:!0})],ff.prototype,"enabled",2),BS=class extends dn{constructor(){super(...arguments),this.color="black"}},b([Ge(sa,{optional:!0})],BS.prototype,"color",2),Pp=class extends dn{constructor(){super(...arguments),this.enabled=!0}},b([Ge(Oi,{optional:!0})],Pp.prototype,"enabled",2),vf=class extends dn{constructor(){super(...arguments),this.item=new xh,this.series=new ff,this.text=new BS}},b([Ge(Ei)],vf.prototype,"item",2),b([Ge(Ei)],vf.prototype,"series",2),b([Ge(Ei)],vf.prototype,"text",2),el=class extends dn{constructor(){super(...arguments),this.visible=!0,this.focusPriority=1/0,this.showInLegend=!0,this.cursor="default",this.nodeClickRange="exact",this.highlight=new Pp,this.highlightStyle=new vf}},b([Ge(ei,{optional:!0})],el.prototype,"id",2),b([Ge(Oi)],el.prototype,"visible",2),b([Ge(Kh,{optional:!0})],el.prototype,"focusPriority",2),b([Ge(Oi)],el.prototype,"showInLegend",2),b([Ge(ei)],el.prototype,"cursor",2),b([Ge(wm)],el.prototype,"nodeClickRange",2),b([Ge(Ei)],el.prototype,"highlight",2),b([Ge(Ei)],el.prototype,"highlightStyle",2)}}),qc,wg,Zb,yu,Lp,Op,Fl=A({"packages/ag-charts-community/src/chart/series/cartesian/cartesianSeries.ts"(){"use strict";Mm(),Qd(),cs(),gs(),vn(),xo(),Dr(),Ll(),ic(),Ms(),pr(),pv(),Ai(),zm(),Tn(),fu(),Id(),Pl(),_n(),qc={x:["xKey"],y:["yKey"]},wg={x:["xName"],y:["yName"]},Zb=class extends ir{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.xKey,this.yKey=a.properties.yKey}},yu=class extends el{constructor(){super(...arguments),this.pickOutsideVisibleMinorAxis=!1}},b([Ge(ei,{optional:!0})],yu.prototype,"legendItemName",2),b([Ge(Oi,{optional:!0})],yu.prototype,"pickOutsideVisibleMinorAxis",2),Lp=100,Op=class extends ar{constructor(K){var q=K,{pathsPerSeries:e=["path"],hasMarkers:t=!1,hasHighlightedLabels:n=!1,pathsZIndexSubOrderOffset:a=[],datumSelectionGarbageCollection:u=!0,markerSelectionGarbageCollection:y=!0,animationAlwaysUpdateSelections:k=!1,animationResetFns:R,directionKeys:F,directionNames:_}=q,V=wi(q,["pathsPerSeries","hasMarkers","hasHighlightedLabels","pathsZIndexSubOrderOffset","datumSelectionGarbageCollection","markerSelectionGarbageCollection","animationAlwaysUpdateSelections","animationResetFns","directionKeys","directionNames"]);if(super(ge({directionKeys:F,directionNames:_,canHaveAxes:!0},V)),this.NodeEvent=Zb,this.dataNodeGroup=this.contentGroup.appendChild(new Wi({name:`${this.id}-series-dataNodes`,zIndex:0})),this.markerGroup=this.contentGroup.appendChild(new Wi({name:`${this.id}-series-markers`,zIndex:1})),this.labelGroup=this.contentGroup.appendChild(new Aa({name:`${this.id}-series-labels`})),this.labelSelection=er.select(this.labelGroup,Lo),this.highlightSelection=er.select(this.highlightNode,()=>this.opts.hasMarkers?this.markerFactory():this.nodeFactory()),this.highlightLabelSelection=er.select(this.highlightLabel,Lo),this.annotationSelections=new Set,this.minRectsCache={dirtyNodeData:!0},this.debug=la.create(),!F||!_)throw new Error(`Unable to initialise series type ${this.type}`);this.opts={pathsPerSeries:e,hasMarkers:t,hasHighlightedLabels:n,pathsZIndexSubOrderOffset:a,directionKeys:F,directionNames:_,animationResetFns:R,animationAlwaysUpdateSelections:k,datumSelectionGarbageCollection:u,markerSelectionGarbageCollection:y},this.paths=e.map($=>new br({name:`${this.id}-${$}`})),this.datumSelection=er.select(this.dataNodeGroup,()=>this.nodeFactory(),u),this.markerSelection=er.select(this.markerGroup,()=>this.markerFactory(),y),this.animationState=new lp("empty",{empty:{update:{target:"ready",action:$=>this.animateEmptyUpdateReady($)},reset:"empty",skip:"ready",disable:"disabled"},ready:{updateData:"waiting",clear:"clearing",highlight:$=>this.animateReadyHighlight($),highlightMarkers:$=>this.animateReadyHighlightMarkers($),resize:$=>this.animateReadyResize($),reset:"empty",skip:"ready",disable:"disabled"},waiting:{update:{target:"ready",action:$=>{this.ctx.animationManager.isSkipped()?this.resetAllAnimation($):this.animateWaitingUpdateReady($)}},reset:"empty",skip:"ready",disable:"disabled"},disabled:{update:$=>this.resetAllAnimation($),reset:"empty"},clearing:{update:{target:"empty",action:$=>this.animateClearingUpdateEmpty($)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}get contextNodeData(){return this._contextNodeData}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}attachSeries(e,t,n){super.attachSeries(e,t,n),this.attachPaths(this.paths,t,n)}detachSeries(e,t,n){super.detachSeries(e,t,n),this.detachPaths(this.paths,t,n)}attachPaths(e,t,n){for(let a of e)this.contentGroup.appendChild(a)}detachPaths(e,t,n){for(let a of e)this.contentGroup.removeChild(a)}renderToOffscreenCanvas(){let e=this.getNodeData();return e!=null&&e.length>Lp}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"?this.animationState.transition("skip"):e==="disabled"&&this.animationState.transition("disable")}addChartEventListeners(){this.destroyFns.push(this.ctx.chartEventManager.addListener("legend-item-click",e=>this.onLegendItemClick(e)),this.ctx.chartEventManager.addListener("legend-item-double-click",e=>this.onLegendItemDoubleClick(e)))}destroy(){super.destroy(),this._contextNodeData=void 0}update({seriesRect:e}){var F,_;let{visible:t,_contextNodeData:n}=this,u=((_=(F=this.ctx.highlightManager)==null?void 0:F.getActiveHighlight())==null?void 0:_.series)===this,y=this.checkResize(e),k=this.updateHighlightSelection(u);this.updateSelections(t),this.updateNodes(k,u,t);let R=this.getAnimationData(e,n);R&&(y&&this.animationState.transition("resize",R),this.animationState.transition("update",R))}updateSelections(e){var a;var t;let n=!this.opts.animationAlwaysUpdateSelections&&this.ctx.animationManager.isSkipped();if(!(!e&&n)&&!(!this.nodeDataRefresh&&!this.isPathOrSelectionDirty())){if(this.nodeDataRefresh){this.nodeDataRefresh=!1,this.debug("CartesianSeries.updateSelections() - calling createNodeData() for",this.id),this.markQuadtreeDirty(),this._contextNodeData=this.createNodeData();let u=this.isProcessedDataAnimatable();this._contextNodeData&&((a=(t=this._contextNodeData).animationValid)!=null||(t.animationValid=u)),this.minRectsCache.dirtyNodeData=!0;let{dataModel:y,processedData:k}=this;y!==void 0&&k!==void 0&&this.dispatch("data-update",{dataModel:y,processedData:k})}this.updateSeriesSelections()}}updateSeriesSelections(e){var _;let{datumSelection:t,labelSelection:n,markerSelection:a,paths:u}=this,y=this._contextNodeData;if(!y)return;let{nodeData:k,labelData:R,itemId:F}=y;this.updatePaths({seriesHighlighted:e,itemId:F,contextData:y,paths:u}),this.datumSelection=this.updateDatumSelection({nodeData:k,datumSelection:t}),this.labelSelection=(_=this.updateLabelSelection({labelData:R,labelSelection:n}))!=null?_:n,this.opts.hasMarkers&&(this.markerSelection=this.updateMarkerSelection({nodeData:k,markerSelection:a}))}markerFactory(){let e=ca();return new e}updateNodes(e,t,n){var Ce;let{highlightSelection:a,highlightLabelSelection:u,opts:{hasMarkers:y,hasHighlightedLabels:k}}=this,R=!this.ctx.animationManager.isSkipped(),F=this.visible&&this._contextNodeData!=null&&n;this.contentGroup.visible=R||F,this.highlightGroup.visible=(R||F)&&t;let _=this.getOpacity();y?(this.updateMarkerNodes({markerSelection:a,isHighlight:!0}),this.animationState.transition("highlightMarkers",a)):(this.updateDatumNodes({datumSelection:a,isHighlight:!0}),this.animationState.transition("highlight",a)),k&&this.updateLabelNodes({labelSelection:u});let{dataNodeGroup:V,markerGroup:K,datumSelection:q,labelSelection:$,markerSelection:te,paths:se,labelGroup:de}=this,{itemId:pe}=(Ce=this.contextNodeData)!=null?Ce:{};V.opacity=_,V.visible=R||F,de.visible=F,y&&(K.opacity=_,K.visible=F),de&&(de.opacity=_),this.updatePathNodes({seriesHighlighted:t,itemId:pe,paths:se,opacity:_,visible:F,animationEnabled:R}),V.visible&&(this.updateDatumNodes({datumSelection:q,highlightedItems:e,isHighlight:!1}),this.usesPlacedLabels||this.updateLabelNodes({labelSelection:$}),y&&this.updateMarkerNodes({markerSelection:te,isHighlight:!1}))}getHighlightLabelData(e,t){let n=e.filter(a=>a.datum===t.datum&&a.itemId===t.itemId);return n.length===0?void 0:n}getHighlightData(e,t){return t?[t]:void 0}updateHighlightSelection(e){var F;let{highlightSelection:t,highlightLabelSelection:n,_contextNodeData:a}=this;if(!a)return;let u=(F=this.ctx.highlightManager)==null?void 0:F.getActiveHighlight(),y=e&&(u!=null&&u.datum)?u:void 0,k,R;if(y!=null){let _=this.isLabelEnabled(),{labelData:V,nodeData:K}=a;R=this.getHighlightData(K,y),k=_?this.getHighlightLabelData(V,y):void 0}return this.highlightSelection=this.updateHighlightSelectionItem({items:R,highlightSelection:t}),this.highlightLabelSelection=this.updateHighlightSelectionLabel({items:k,highlightLabelSelection:n}),R}markQuadtreeDirty(){this.quadtree=void 0}*datumNodesIter(){for(let{node:e}of this.datumSelection)e.datum.missing!==!0&&(yield e)}getQuadTree(){if(this.quadtree===void 0){let{width:e,height:t}=this.ctx.scene.canvas,n=new ki(0,0,e,t);this.quadtree=new _S(100,10,n),this.initQuadTree(this.quadtree)}return this.quadtree}initQuadTree(e){}pickNodeExactShape(e){var F;let t=super.pickNodeExactShape(e);if(t)return t;let{x:n,y:a}=e,{opts:{hasMarkers:u}}=this,y,{dataNodeGroup:k,markerGroup:R}=this;if(y=k.pickNode(n,a),!y&&u&&(y=R==null?void 0:R.pickNode(n,a)),y&&y.datum.missing!==!0)return{datum:y.datum,distance:0};for(let _ of this.moduleMap.modules()){let{datum:V}=(F=_.pickNodeExact(e))!=null?F:{};if(V!=null&&(V==null?void 0:V.missing)!==!0)return{datum:V,distance:0}}}pickNodeClosestDatum(e){var V,K;let{x:t,y:n}=e,{axes:a,_contextNodeData:u}=this;if(!u)return;let y=a.x,k=a.y,R={x:t,y:n},F=1/0,_;for(let q of u.nodeData){let{point:{x:$=NaN,y:te=NaN}={}}=q;if(isNaN($)||isNaN(te)||!((y==null?void 0:y.inRange($))&&(k==null?void 0:k.inRange(te))))continue;let de=Math.max((R.x-$)**2+(R.y-te)**2,0);de<F&&(F=de,_=q)}for(let q of this.moduleMap.modules()){let $=q.pickNodeNearest(e);if($!==void 0&&$.distanceSquared<F){F=$.distanceSquared,_=$.datum;break}}if(_){let q=Math.max(Math.sqrt(F)-((K=(V=_.point)==null?void 0:V.size)!=null?K:0),0);return{datum:_,distance:q}}}pickNodeMainAxisFirst(e,t){var te,se,de,pe;let{x:n,y:a}=e,{axes:u,_contextNodeData:y}=this,{pickOutsideVisibleMinorAxis:k}=this.properties;if(!y)return;let R=u.x,F=u.y,_=[R,F].filter(Cv.is).map(Ce=>Ce.direction);if(t&&_.length===0)return;let[V="x"]=_,K=[n,a];V!=="x"&&K.reverse();let q=[1/0,1/0],$;for(let Ce of y.nodeData){let{x:Se=NaN,y:ve=NaN}=(se=(te=Ce.point)!=null?te:Ce.midPoint)!=null?se:{};if(isNaN(Se)||isNaN(ve)||Ce.missing===!0)continue;let ke=[R==null?void 0:R.inRange(Se),F==null?void 0:F.inRange(ve)];if(V!=="x"&&ke.reverse(),!ke[0]||!k&&!ke[1])continue;let De=[Se,ve];V!=="x"&&De.reverse();let Te=!0;for(let ze=0;ze<De.length;ze++){let qe=Math.abs(De[ze]-K[ze]);if(qe>q[ze]){Te=!1;break}else qe<q[ze]&&(q[ze]=qe,q.fill(1/0,ze+1,q.length))}Te&&($=Ce)}if($){let Ce=Math.max(q[0]**2+q[1]**2-((pe=(de=$.point)==null?void 0:de.size)!=null?pe:0),0);for(let Se of this.moduleMap.modules()){let ve=Se.pickNodeMainAxisFirst(e);if(ve!==void 0&&ve.distanceSquared<Ce){$=ve.datum,Ce=ve.distanceSquared;break}}return{datum:$,distance:Math.sqrt(Ce)}}}isPathOrSelectionDirty(){return!1}shouldFlipXY(){return!1}getMinRects(e,t){let{dirtyNodeData:n,sizeCache:a,minRect:u,minVisibleRect:y}=this.minRectsCache,k=JSON.stringify({width:e,height:t});if(!(k!==a)&&!n&&u&&y)return{minRect:u,minVisibleRect:y};let F=this.computeMinRects(e,t);return this.minRectsCache={dirtyNodeData:!1,sizeCache:k,minRect:F==null?void 0:F.minRect,minVisibleRect:F==null?void 0:F.minVisibleRect},F}computeMinRects(e,t){var Ce,Se;let n=this._contextNodeData;if(!(n!=null&&n.nodeData.length))return;let{nodeData:a}=n,u=Array(a.length),y=Array(a.length);for(let[ve,{midPoint:ke}]of a.entries())u[ve]=(Ce=ke==null?void 0:ke.x)!=null?Ce:0,y[ve]=(Se=ke==null?void 0:ke.y)!=null?Se:0;u.sort((ve,ke)=>ve-ke),y.sort((ve,ke)=>ve-ke);let k,R,F,_,V=0,K=0;for(let ve=1;ve<a.length;ve++)u[ve]>=0&&(k!=null||(k=ve)),u[ve]>e&&(R!=null||(R=ve)),y[ve]>=0&&(F!=null||(F=ve)),y[ve]>t&&(_!=null||(_=ve)),V=Math.max(V,u[ve]-u[ve-1]),K=Math.max(K,y[ve]-y[ve-1]);R!=null||(R=a.length),_!=null||(_=a.length);let q=k!=null&&R!=null?u.slice(k,R):[],$=F!=null&&_!=null?y.slice(F,_):[],te=0,se=0;for(let ve=1;ve<Math.max(q.length,$.length);ve++){let ke=q[ve],De=q[ve-1],Te=$[ve],ze=$[ve-1];ke!=null&&De!=null&&(te=Math.max(te,ke-De)),Te!=null&&ze!=null&&(se=Math.max(se,Te-ze))}let de=new ki(0,0,V,K),pe=new ki(0,0,te,se);return{minRect:de,minVisibleRect:pe}}updateHighlightSelectionItem(e){let{opts:{hasMarkers:t}}=this,{items:n,highlightSelection:a}=e,u=n!=null?n:[];if(t){let y=a;return this.updateMarkerSelection({nodeData:u,markerSelection:y})}else return this.updateDatumSelection({nodeData:u,datumSelection:a})}updateHighlightSelectionLabel(e){var t;return this.updateLabelSelection({labelData:(t=e.items)!=null?t:[],labelSelection:e.highlightLabelSelection})}updateDatumSelection(e){return e.datumSelection}updateDatumNodes(e){}updateMarkerSelection(e){return e.markerSelection}updateMarkerNodes(e){}updatePaths(e){e.paths.forEach(t=>t.visible=!1)}updatePathNodes(e){let{paths:t,opacity:n,visible:a}=e;for(let u of t)u.opacity=n,u.visible=a}resetPathAnimation(e){var n,a;let{path:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&e.paths.forEach(u=>{io([u],t)})}resetDatumAnimation(e){var n,a;let{datum:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&io([e.datumSelection],t)}resetLabelAnimation(e){var n,a;let{label:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&io([e.labelSelection],t)}resetMarkerAnimation(e){var n,a;let{marker:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&this.opts.hasMarkers&&io([e.markerSelection],t)}resetAllAnimation(e){var t;this.ctx.animationManager.stopByAnimationGroupId(this.id),this.resetPathAnimation(e),this.resetDatumAnimation(e),this.resetLabelAnimation(e),this.resetMarkerAnimation(e),((t=e.contextData)==null?void 0:t.animationValid)===!1&&this.ctx.animationManager.skipCurrentBatch()}animateEmptyUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}animateWaitingUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}animateReadyHighlight(e){var n,a;let{datum:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&io([e],t)}animateReadyHighlightMarkers(e){var n,a;let{marker:t}=(a=(n=this.opts)==null?void 0:n.animationResetFns)!=null?a:{};t&&io([e],t)}animateReadyResize(e){this.resetAllAnimation(e)}animateClearingUpdateEmpty(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}getAnimationData(e,t){let{_contextNodeData:n}=this;return n?{datumSelection:this.datumSelection,markerSelection:this.markerSelection,labelSelection:this.labelSelection,annotationSelections:[...this.annotationSelections],contextData:n,previousContextData:t,paths:this.paths,seriesRect:e}:void 0}updateLabelSelection(e){return e.labelSelection}getScaling(e){if(e instanceof Ws){let{range:t,domain:n}=e;return{type:"log",convert:a=>e.convert(a),domain:[n[0],n[1]],range:[t[0],t[1]]}}else if(e instanceof Ha){let{range:t}=e,n=e.getDomain();return{type:"continuous",domain:[n[0],n[1]],range:[t[0],t[1]]}}else if(e instanceof zo){let{domain:t}=e;return{type:"category",domain:t,inset:e.inset,step:e.step}}}calculateScaling(){let e={};for(let t of Object.values(s0)){let n=this.axes[t];if(!n)continue;let a=this.getScaling(n.scale);a!=null&&(e[t]=a)}return e}}}}),YT,GS,I1,AL=A({"packages/ag-charts-community/src/chart/cartesianChart.ts"(){"use strict";Gr(),cs(),Mr(),on(),gn(),zm(),Xr(),Tn(),Fl(),YT=["top","right","bottom","left"],GS=class OZ extends Rp{constructor(t,n){super(t,n),this.paired=!0,this.firstSeriesTranslation=!0,this.lastUpdateClipRect=void 0}onAxisChange(t,n){super.onAxisChange(t,n),this.ctx!=null&&this.ctx.zoomManager.updateAxes(t)}destroySeries(t){super.destroySeries(t),this.firstSeriesTranslation=!0}getChartType(){return"cartesian"}setRootClipRects(t){let{seriesRoot:n,annotationRoot:a}=this;n.setClipRect(t),a.setClipRect(t)}performLayout(t){let{firstSeriesTranslation:n,seriesRoot:a,annotationRoot:u}=this,{clipSeries:y,seriesRect:k,visible:R}=this.updateAxes(t.layoutBox);this.seriesRoot.visible=R,this.seriesRect=k,this.animationRect=t.layoutBox;let{x:F,y:_}=k;if(n){for(let $ of[a,u])$.translationX=Math.floor(F),$.translationY=Math.floor(_);this.firstSeriesTranslation=!1}else{let{translationX:$,translationY:te}=a;Ju(this.id,"seriesRect",this.ctx.animationManager,[a,u],{translationX:$,translationY:te},{translationX:Math.floor(F),translationY:Math.floor(_)},{phase:"update"})}let V=k.clone().grow(this.seriesArea.padding),K=this.seriesArea.clip||y?V:void 0,{lastUpdateClipRect:q}=this;this.lastUpdateClipRect=K,this.ctx.animationManager.isActive()&&q!=null?this.ctx.animationManager.animate({id:this.id,groupId:"clip-rect",phase:"update",from:q,to:V,onUpdate:$=>this.setRootClipRects($),onComplete:()=>this.setRootClipRects(K)}):this.setRootClipRects(K),this.ctx.layoutManager.emitLayoutComplete(t,{axes:this.axes.map($=>$.getLayoutState()),series:{visible:R,rect:k,paddedRect:V,shouldFlipXY:this.shouldFlipXY()},clipSeries:y})}updateAxes(t){let{clipSeries:n,seriesRect:a,overflows:u}=this.resolveAxesLayout(t);for(let y of this.axes)y.update(),y.setCrossLinesVisible(!u),this.clipAxis(y,a,t);return{clipSeries:n,seriesRect:a,visible:!u}}resolveAxesLayout(t){let n,a,u=0,y=10;do if(a=n!=null?n:this.getDefaultState(),n=this.updateAxesPass(new Map(a.axisAreaWidths),t.clone()),u++>y){hi.warn("Max iterations reached. Unable to stabilize axes layout.");break}while(!this.isLayoutStable(n,a));return this.lastAreaWidths=n.axisAreaWidths,n}updateAxesPass(t,n){var pe,Ce,Se,ve,ke,De,Te;let a=new Map,u={},y=!1,k=!1;for(let ze of YT){let qe=this.seriesArea.padding[ze],et=this.axes.findLast($e=>$e.position===ze);et?et.seriesAreaPadding=qe:n.shrink(qe,ze)}let R=((pe=t.get("left"))!=null?pe:0)+((Ce=t.get("right"))!=null?Ce:0),F=((Se=t.get("top"))!=null?Se:0)+((ve=t.get("bottom"))!=null?ve:0),_=this.buildCrossLinePadding(t);n.width<=R+_.hPadding||n.height<=F+_.vPadding?y=!0:n.shrink(_);let V=n.clone().shrink(Object.fromEntries(t));for(let ze of this.axes){let{position:qe="left",direction:et}=ze;this.sizeAxis(ze,V,qe);let $e=this.getSyncedDomain(ze),lt=et==="y",at=ze.calculateLayout($e,ze.nice?u[et]:void 0);(ke=u[et])!=null||(u[et]=at.primaryTickCount),k||(k=ze.dataDomain.clipped||ze.visibleRange[0]>0||ze.visibleRange[1]<1),a.set(ze.id,Math.ceil((De=ze.thickness)!=null?De:lt?at.bbox.width:at.bbox.height))}let K=Object.entries(lx(this.axes,ze=>{var qe;return(qe=ze.position)!=null?qe:"left"})),{width:q,height:$,canvas:te}=this.ctx.scene,se=new Map,de=new Map;for(let[ze,qe]of K){let $e=ze==="left"||ze==="right"?$%te.pixelRatio:q%te.pixelRatio,lt=0;for(let at of qe){de.set(at.id,$e);let ht=(Te=a.get(at.id))!=null?Te:0;lt=Math.max(lt,$e+ht),at.layoutConstraints.stacked&&($e+=ht+OZ.AxesPadding)}se.set(ze,Math.ceil(lt))}for(let[ze,qe]of K)this.positionAxes({axes:qe,position:ze,axisWidths:a,axisOffsets:de,axisAreaWidths:se,axisBound:n,seriesRect:V});return{clipSeries:k,seriesRect:V,axisAreaWidths:se,overflows:y}}buildCrossLinePadding(t){var a;let n={top:0,right:0,bottom:0,left:0,hPadding:0,vPadding:0};this.axes.forEach(u=>{var y;(y=u.crossLines)==null||y.forEach(k=>{var R;(R=k.calculatePadding)==null||R.call(k,n)})});for(let[u,y=0]of Object.entries(n))n[u]=Math.max(y-((a=t.get(u))!=null?a:0),0);return n.hPadding=n.left+n.right,n.vPadding=n.top+n.bottom,n}clampToOutsideSeriesRect(t,n,a,u){let y=a==="x"?t.x:t.y,k=a==="x"?t.width:t.height;return u===1?Math.min(n,y+k):Math.max(n,y)}getSyncedDomain(t){let n=this.modulesManager.getModule("sync");if(!(n!=null&&n.enabled))return;let a=n.getSyncedDomain(t);if(a&&t.dataDomain.domain.length){let u,{domain:y}=t.scale;if(Ha.is(t.scale)){let[k,R]=ss(a);u=k!==y[0]||R!==y[1]}else u=!th(a,y);u&&!this.skipSync&&n.updateSiblings()}return a}sizeAxis(t,n,a){let u=t instanceof Cv,y=a==="left"||a==="right",{width:k,height:R}=n,F=y?R:k,_=0,V=F,{min:K,max:q}=this.ctx.zoomManager.getAxisZoom(t.id),{width:$,unit:te,align:se}=t.layoutConstraints;te==="px"?V=_+$:V=V*$/100,se==="end"&&(_=F-(V-_),V=F),y&&(u?[K,q]=[1-q,1-K]:[_,V]=[V,_]),t.range=[_,V],t.visibleRange=[K,q],t.gridLength=y?k:R}positionAxes(t){var te,se,de,pe;let{axes:n,axisBound:a,axisWidths:u,axisOffsets:y,axisAreaWidths:k,seriesRect:R,position:F}=t,_=(te=k.get(F))!=null?te:0,V="x",K="y",q=1;(F==="top"||F==="bottom")&&(V="y",K="x");let $=a[V];(F==="right"||F==="bottom")&&(q=-1,$+=V==="x"?a.width:a.height);for(let Ce of n){let Se=(se=k.get(K==="x"?"left":"top"))!=null?se:0,ve=(de=u.get(Ce.id))!=null?de:0,ke=(pe=y.get(Ce.id))!=null?pe:0;Ce.gridPadding=_-ke-ve,Ce.translation[K]=a[K]+Se,Ce.translation[V]=this.clampToOutsideSeriesRect(R,$+q*(ke+ve),V,q)}}shouldFlipXY(){return this.series.every(t=>t instanceof Op&&t.shouldFlipXY())}getDefaultState(){let t=new Map;if(this.lastAreaWidths)for(let{position:n="left"}of this.axes){let a=this.lastAreaWidths.get(n);a!=null&&t.set(n,a)}return{axisAreaWidths:t,clipSeries:!1,overflows:!1}}isLayoutStable(t,n){if(n.overflows!==t.overflows||n.clipSeries!==t.clipSeries)return!1;for(let a of t.axisAreaWidths.keys())if(!n.axisAreaWidths.has(a))return!1;for(let[a,u]of n.axisAreaWidths.entries()){let y=t.axisAreaWidths.get(a);if((u!=null||y!=null)&&u!==y)return!1}return!0}clipAxis(t,n,a){var F,_,V,K;let u=Math.ceil((_=(F=t.gridLine)==null?void 0:F.width)!=null?_:0),y=Math.ceil((K=(V=t.line)==null?void 0:V.width)!=null?K:0),{width:k,height:R}=n;switch(k+=t.direction==="x"?u:y,R+=t.direction==="y"?u:y,t.clipGrid(n.x,n.y,k,R),t.position){case"left":case"right":t.clipTickLines(a.x,n.y-u,a.width+u,n.height+u*2);break;case"top":case"bottom":t.clipTickLines(n.x-u,a.y,n.width+u*2,a.height+u);break}}},GS.className="CartesianChart",GS.type="cartesian",GS.AxesPadding=15,I1=GS}}),Uv,Fp,T1=A({"packages/ag-charts-community/src/chart/chartProxy.ts"(){"use strict";mh(),nc(),ac(),kd(),Uv=class FZ{constructor(t,n,a){this.factoryApi=n,this.licenseManager=a,this.chart=t}static isInstance(t){var n;return t instanceof FZ||((n=t.constructor)==null?void 0:n.name)==="AgChartInstanceProxy"&&t.chart!=null?!0:t.chart!=null&&this.validateImplementation(t)}static validateImplementation(t){var u;let n=["getOptions","destroy"],a=Object.keys((u=Object.getPrototypeOf(t))!=null?u:{});return n.every(y=>a.includes(y))}async update(t){this.factoryApi.update(t,this),await this.chart.waitForUpdate()}async updateDelta(t){this.factoryApi.updateUserDelta(this,t),await this.chart.waitForUpdate()}getOptions(){let t=Us(this.chart.getOptions());for(let n of Object.keys(t))n.startsWith("_")&&delete t[n];return t}waitForUpdate(){return this.chart.waitForUpdate()}async download(t){let n=await this.prepareResizedChart(this,t);try{n.chart.download(t==null?void 0:t.fileName,t==null?void 0:t.fileFormat)}finally{n.destroy()}}async __toSVG(t){let n=await this.prepareResizedChart(this,ge({width:600,height:300},t));try{return n.chart.toSVG()}finally{n.destroy()}}async getImageDataURL(t){let n=await this.prepareResizedChart(this,t);try{return n.chart.getCanvasDataURL(t==null?void 0:t.fileFormat)}finally{n.destroy()}}getState(){return this.factoryApi.caretaker.save(...this.getEnabledOriginators())}async setState(t){let n=this.getEnabledOriginators();if(!n.includes(this.chart.ctx.legendManager)){await this.setStateOriginators(t,n);return}await this.setStateOriginators(t,n.filter(a=>a!==this.chart.ctx.zoomManager)),await this.setStateOriginators(t,[this.chart.ctx.zoomManager])}resetAnimations(){this.chart.resetAnimations()}skipAnimations(){this.chart.skipAnimations()}destroy(){this.releaseChart?(this.releaseChart(),this.chart=null):(this.chart.publicApi=void 0,this.chart.destroy())}async prepareResizedChart(t,n={}){var te,se,de,pe,Ce,Se,ve,ke;let{chart:a}=t,u=(se=(te=n.width)!=null?te:a.width)!=null?se:a.ctx.scene.canvas.width,y=(pe=(de=n.height)!=null?de:a.height)!=null?pe:a.ctx.scene.canvas.height,k=t.getState(),R=ph.hasEnterpriseModules(),F=He(ge({},a.chartOptions.processedOverrides),{container:document.createElement("div"),width:u,height:y}),_=a.getOptions();R&&(F.animation={enabled:!1},(Ce=this.licenseManager)!=null&&Ce.isDisplayWatermark()&&(F.foreground={text:this.licenseManager.getWatermarkMessage(),image:{url:"data:image/svg+xml;base64, ",width:170,height:25,right:25,bottom:50,opacity:.7}}));let V=ge({},a.chartOptions.specialOverrides),K=ge({},a.chartOptions.optionMetadata);n.width!=null&&n.height!=null&&(V.overrideDevicePixelRatio=1);let q=this.factoryApi.create(_,F,V,K);await q.setState(k),q.chart.ctx.zoomManager.updateZoom("chartProxy",a.ctx.zoomManager.getZoom()),q.chart.ctx.legendManager.clearData(),q.chart.ctx.legendManager.update(a.ctx.legendManager.getData()),a.series.forEach((De,Te)=>{De.visible||(q.chart.series[Te].visible=!1)});let $=[];for(let De of a.modulesManager.legends())$.push((ve=(Se=De.legend.pagination)==null?void 0:Se.currentPage)!=null?ve:0);for(let De of q.chart.modulesManager.legends()){let Te=(ke=$.shift())!=null?ke:0;De.legend.pagination&&De.legend.pagination.setPage(Te)}return q.chart.update(0,{forceNodeDataRefresh:!0}),await q.waitForUpdate(),q}getEnabledOriginators(){var _,V,K;let{chartOptions:{processedOptions:t,optionMetadata:n},ctx:{annotationManager:a,chartTypeOriginator:u,zoomManager:y,legendManager:k}}=this.chart,R=[];return"annotations"in t&&((_=t.annotations)!=null&&_.enabled)&&R.push(a),n.presetType==="price-volume"&&R.push(u),((V=t.navigator)!=null&&V.enabled||(K=t.zoom)!=null&&K.enabled)&&R.push(y),"legend"in this.chart&&R.push(k),R}async setStateOriginators(t,n){this.factoryApi.caretaker.restore(t,...n),this.chart.ctx.updateService.update(2,{forceNodeDataRefresh:!0}),await this.chart.waitForUpdate()}},Uv.chartInstances=new WeakMap,b([vs({oldValue(e){e.destroyed||(e.publicApi=void 0),Uv.chartInstances.delete(e)},newValue(e){e&&(e.publicApi=this,Uv.chartInstances.set(e,this))}})],Uv.prototype,"chart",2),Fp=Uv}}),Kv,fa=A({"packages/ag-charts-community/src/locale/locale.ts"(){"use strict";mh(),ac(),Ai(),Kv=class extends V0{constructor(e){super(),this.ctx=e,this.localeText=void 0}},b([gv(e=>{e.ctx.localeManager.setLocaleText(e.localeText)}),Ge(o0,{optional:!0})],Kv.prototype,"localeText",2),b([gv(e=>{e.ctx.localeManager.setLocaleTextFormatter(e.getLocaleText)}),Ge(vl,{optional:!0})],Kv.prototype,"getLocaleText",2)}}),XT,R1=A({"packages/ag-charts-community/src/locale/localeModule.ts"(){"use strict";fa(),XT={type:"root",optionsKey:"locale",packageType:"community",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new Kv(e)}}});function ZT(e,t=1/0){switch(typeof e){case"undefined":return"undefined";case"number":if(isNaN(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";default:return e=JSON.stringify(e),e.length>t?`${e.slice(0,t)}... (+${e.length-t} characters)`:e}}function P1(e){let t=1;for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t++;return t}var $T=A({"packages/ag-charts-community/src/util/string.util.ts"(){"use strict"}});function Dk(e,t){var a,u,y;let n=JSON.stringify(e,null,0);return bu.has(t)||bu.set(t,new Map),(a=bu.get(t))!=null&&a.has(n)||(u=bu.get(t))==null||u.set(n,t(e)),(y=bu.get(t))==null?void 0:y.get(n)}function tl(e){let t=new Map,n=(...y)=>y.map(k=>typeof k=="object"||typeof k=="symbol"?k:(t.has(k)||t.set(k,{v:k}),t.get(k))),a={},u=new WeakMap;return(...y)=>{let k=y.length===0?[a]:n(...y),R=u;for(let V of k.slice(0,-1))R.has(V)||R.set(V,new WeakMap),R=R.get(V);let F=k.at(-1),_=R.get(F);return _||(_=e(...y),R.set(F,_)),_}}var bu,Ek=A({"packages/ag-charts-community/src/util/memo.ts"(){"use strict";bu=new WeakMap}});function yf(e,t=[0,0]){for(let n of e)typeof n=="number"&&(n<0&&(t[0]+=n),n>0&&(t[1]+=n));return t}function VS(e,t){return{id:e,matchGroupIds:[t],type:"aggregate",aggregateFunction:a=>yf(a)}}function bf(e,t){return{id:e,type:"aggregate",matchGroupIds:t?[t]:void 0,aggregateFunction:n=>yf(n),groupAggregateFunction:(n,a=[0,0])=>{var u,y;return a[0]+=(u=n==null?void 0:n[0])!=null?u:0,a[1]+=(y=n==null?void 0:n[1])!=null?y:0,a}}}function jS(e,t){return{id:e,matchGroupIds:[t],type:"aggregate",aggregateFunction:a=>po.extendDomain(a)}}function Ik(e){return{id:e,type:"aggregate",aggregateFunction:()=>[0,1],groupAggregateFunction:(t,n=[0,0])=>{var a,u;return n[0]+=(a=t==null?void 0:t[0])!=null?a:0,n[1]+=(u=t==null?void 0:t[1])!=null?u:0,n}}}function QT(e,t){return{id:e,matchGroupIds:t?[t]:void 0,type:"aggregate",aggregateFunction:a=>yf(a),groupAggregateFunction:(a,u=[0,0,-1])=>{var y,k;return u[0]+=(y=a==null?void 0:a[0])!=null?y:0,u[1]+=(k=a==null?void 0:a[1])!=null?k:0,u[2]++,u},finalFunction:(a=[0,0,0])=>{let u=a[0]+a[1];return u>=0?[0,u/a[2]]:[u/a[2],0]}}}function HS(e,t,n){let a={id:e,matchGroupIds:n?[n]:void 0,type:"aggregate",aggregateFunction:(u,y=[])=>{let k=y[1]-y[0];return t.aggregateFunction(u).map(R=>R/k)}};return t.groupAggregateFunction&&(a.groupAggregateFunction=t.groupAggregateFunction),a}function $b(e){return()=>{let t=0;return n=>pa(n)?(t+=e?Math.max(0,n):n,t):n}}function WS(){return()=>{let e=0;return t=>{if(!pa(t))return t;let n=e;return e+=t,n}}}var US=A({"packages/ag-charts-community/src/chart/data/aggregateFunctions.ts"(){"use strict";bn(),VM()}});function Tk(e){return e!=null&&cb(e)}function L1(e){return e!=null}function Rk(e){switch(e){case"number":case"log":case"ordinal-time":case"time":case"color":return Tk;default:return L1}}function Pk(e){switch(e){case"number":case"log":case"time":case"color":return"range";default:return"category"}}function Td(e,t,n={}){return ge({property:e,type:"key",valueType:Pk(t),validation:Rk(t)},n)}function Yi(e,t,n={}){return ge({property:e,type:"value",valueType:Pk(t),validation:Rk(t)},n)}function Yc(e,t={}){let y=t,{min:n=-1/0,max:a=1/0}=y,u=wi(y,["min","max"]);return ge({type:"value",property:e,valueType:"range",validation:Tk,processor:()=>k=>pa(k)?fn(n,k,a):k},u)}function il(e,t,n={}){let k=n,{onlyPositive:a}=k,u=wi(k,["onlyPositive"]);return He(ge({},Yi(e,t,u)),{processor:$b(a)})}function DL(e,t,n={}){return He(ge({},Yi(e,t,n)),{processor:WS()})}function _p(e,t,n,a,u){return[Yi(e,u,a),i(a.groupId,t,n,a.separateNegative),...a.rangeId!=null?[jS(a.rangeId,a.groupId)]:[]]}function JT(e,t,n){return[Yi(e,t,n),v(n.groupId)]}function EL({normaliseTo:e,mode:t}){let n=(a,u)=>{if(u===0)return null;let y=(a!=null?a:0)*e/u;return y>=0?Math.min(e,y):Math.max(-e,y)};return()=>()=>(a,u,y)=>{let k=O1(t,a,u,y);for(let R of u){let F=a[R],_=F[y];if(_==null){F[y]=void 0;continue}F[y]=typeof _=="number"?n(_,k):_.map(V=>n(V,k))}}}function O1(e,t,n,a){let u=[0,0];for(let y of n){let R=t[y][a];if(R==null)continue;let F=typeof R=="number"?R:Math.max(...R.map(V=>V!=null?V:0)),_=F<0?0:1;e==="sum"?u[_]+=F:_===0?u[_]=Math.min(u[_],F):u[_]=Math.max(u[_],F)}return Math.max(Math.abs(u[0]),u[1])}function KS(e,t,n="sum"){return{type:"group-value-processor",matchGroupIds:e,adjust:Dk({normaliseTo:t,mode:n},EL)}}function Zr({normaliseTo:e,zeroDomain:t,rangeMin:n,rangeMax:a}){let u=e[1]-e[0],y=(k,R,F)=>{let _=e[0]+(k-R)/F*u;return F===0?t:_>=e[1]?e[1]:_<e[0]?e[0]:_};return()=>(k,R)=>{let[F,_]=k.domain.values[R];n!=null&&(F=n),a!=null&&(_=a);let V=_-F;k.domain.values[R]=[e[0],e[1]];let{rawData:K}=k,q=k.columns[R];for(let $=0;$<K.length;$+=1)q[$]=y(q[$],F,V)}}function Cf(e,t,n,a,u){return{type:"property-value-processor",property:e,adjust:Dk({normaliseTo:t,rangeMin:a,rangeMax:u,zeroDomain:n},Zr)}}function Qb(e){return{type:"processor",property:"animationValidation",calculate(t){let{keys:n,values:a}=t.defs,{input:{count:u},domain:{keys:y,values:k},rawData:R,keys:F,columns:_}=t,V=Ee|Ve;if(R.length!==0){for(let K=0;V!==0&&K<n.length;K++)V&=Je(u,n[K],y[K],F[K]);for(let K=0;V!==0&&K<a.length;K++){let q=a[K];e!=null&&e.includes(q.id)&&(V&=Je(u,q,k[K],_[K]))}}return{uniqueKeys:(V&Ee)!==0,orderedKeys:(V&Ve)!==0}}}}function eR({mode:e,separateNegative:t}){return()=>()=>(n,a,u)=>{let y=[0,0];for(let k of a){let R=n[k],F=R[u],_=WC(F)&&t?0:1;pa(F)&&(e==="normal"&&(y[_]+=F),R[u]=y[_],e==="trailing"&&(y[_]+=F))}}}function Lk({mode:e,sum:t}){return()=>{let n=[],a=!0;return()=>(u,y,k)=>{let R=0;for(let F of y){let _=u[F],V=_[k],K=a&&t==="current"?0:n[F];n[F]=V;let q=t==="current"?V:K;if(!pa(V)||!pa(K)){_[k]=R;continue}e==="normal"&&(R+=q),_[k]=R,e==="trailing"&&(R+=q)}a=!1}}}function i(e,t,n,a=!1){let u;if(t.startsWith("window")){let y=t.endsWith("-trailing")?"trailing":"normal";u=Dk({mode:y,sum:n},Lk)}else u=Dk({mode:t,separateNegative:a},eR);return{type:"group-value-processor",matchGroupIds:[e],adjust:u}}function o(){return()=>(e,t,n)=>{let a=new Float64Array(32),u=0;for(let y of t){let k=e[y],R=k[n];a[u]=Number.isFinite(R)?R:NaN,u+=1,k[n]=a.subarray(0,u)}}}function v(e){return{type:"group-value-processor",matchGroupIds:[e],adjust:o}}function I(e){var t;return(t=e.id)!=null?t:e.property}function N(e,t,n){var R,F;let a=new Map,u=t.defs.values;for(let _=0;_<u.length;_+=1){let V=u[_];if(((R=V.scopes)==null?void 0:R.includes(e))===!1)continue;let K=I(V);if(a.has(K))return;a.set(K,_)}let y=[],k=n.defs.values;for(let _=0;_<k.length;_+=1){let V=k[_];if(((F=V.scopes)==null?void 0:F.includes(e))===!1)continue;let K=I(V),q=a.get(K);if(q==null)return;a.delete(K),y.push({previousIndex:q,nextIndex:_})}if(a.size===0)return y}function W(e,t,n,a,u){for(let{previousIndex:y,nextIndex:k}of n){let R=e[y],F=t[k],_=R[a],V=F[u];if(_!==V)return!1}return!0}function Z(e,t,n=!0){return{type:"processor",property:"diff",calculate(a,u){let y=new Map,k=new Map,R=new Map,F=new Map,_=t.keys,V=a.keys,K=t.columns,q=a.columns,$=N(e,t,a);if($==null)return u;let te=Math.max(t.rawData.length,a.rawData.length);for(let pe=0;pe<te;pe++){let Ce=pe<t.rawData.length,Se=pe<a.rawData.length,ve=Ce?Ad(_,pe):void 0,ke=ve!=null?ee(ve):"",De=Se?Ad(V,pe):void 0,Te=De!=null?ee(De):"";if(Se&&Ce&&ke===Te){W(K,q,$,pe,pe)||R.set(Te,pe);continue}let ze=F.get(Te);ze!=null?((n||!W(K,q,$,ze,pe))&&(R.set(Te,pe),y.set(Te,pe)),F.delete(Te)):Se&&k.set(Te,pe);let qe=k.get(ke);qe!=null?((n||!W(K,q,$,qe,pe))&&(R.set(ke,pe),y.set(ke,pe)),k.delete(ke)):Ce&&(R.delete(ke),F.set(ke,pe))}let de={changed:k.size>0||R.size>0||F.size>0,added:new Set(k.keys()),updated:new Set(R.keys()),removed:new Set(F.keys()),moved:new Set(y.keys())};return He(ge({},u),{[e]:de})}}}function ee(e,...t){let n;return ja(e)?n=e.map(u=>D0(u)).join("___"):n=D0(e),(typeof n=="string"||typeof n=="number"||typeof n=="boolean"||n instanceof Date)&&t.length>0&&(n+=`___${t.join("___")}`),n}var le,we,Ae,Ee,Ve,Je,gt=A({"packages/ag-charts-community/src/chart/data/processors.ts"(){"use strict";Ek(),gn(),bn(),fv(),US(),Il(),le={type:"reducer",property:"smallestKeyInterval",initialValue:1/0,reducer:()=>{let e=NaN;return(t=1/0,n)=>{let a=n.keys[0],u=Math.abs(a-e);return e=a,!isNaN(u)&&u>0&&u<t?u:t}}},we={type:"reducer",property:"largestKeyInterval",initialValue:-1/0,reducer:()=>{let e=NaN;return(t=-1/0,n)=>{let a=n.keys[0],u=Math.abs(a-e);return e=a,!isNaN(u)&&u>0&&u>t?u:t}}},Ae={type:"processor",property:"sortedGroupDomain",calculate:({domain:{groups:e}})=>e==null?void 0:e.slice().sort((t,n)=>{for(let a=0;a<t.length;a++){let u=t[a]-n[a];if(u!==0)return u}return 0})},Ee=1,Ve=2,Je=(e,t,n,a)=>{var k,R;let u=Ee|Ve;if(t.valueType==="category")return n.length!==e&&(u&=~Ee),u;let y=(k=a[0])==null?void 0:k.valueOf();for(let F=1;u!==0&&F<a.length;F++){let _=(R=a[F])==null?void 0:R.valueOf();(!Number.isFinite(_)||y>_)&&(u&=~Ve),Number.isFinite(_)&&y===_&&(u&=~Ee),y=_}return u}}});function kt(e){let t=e.reduce((a,u)=>a<u.length?u.length:a,0),n=new va;for(let a=0;a<e.length;a++){let u=e[a];for(;u.length<t;)u.push("");n.insertTick(u,a)}return n}function xt(e,t,n){let a=t.index-e.index,u=n/a;t.change-=u,t.shift+=n,e.change+=u,t.prelim+=n,t.mod+=n}function Ft(e,t,n){return t.getSiblings().indexOf(e.ancestor)>=0?e.ancestor:n}function Ht({children:e}){let t=0,n=0;for(let a=e.length-1;a>=0;a--){let u=e[a];u.prelim+=t,u.mod+=t,n+=u.change,t+=u.shift+n}}function Gt(e,t){let n=e.getLeftSibling();if(n){let a=e,u=e,y=n,k=u.getLeftmostSibling(),R=u.mod,F=a.mod,_=y.mod,V=k.mod;for(;y.nextRight()&&u.nextLeft();){y=y.nextRight(),u=u.nextLeft(),k=k.nextLeft(),a=a.nextRight(),a.ancestor=e;let K=y.prelim+_-(u.prelim+R)+1;K>0&&(xt(Ft(y,e,t),e,K),R+=K,F+=K),_+=y.mod,R+=u.mod,V+=k.mod,F+=a.mod}y.nextRight()&&!a.nextRight()?a.mod+=_-F:(u.nextLeft()&&!k.nextLeft()&&(k.mod+=R-V),t=e)}return t}function Wt(e){let{children:t}=e;if(t.length){let[n]=t;for(let y of t)Wt(y),n=Gt(y,n);Ht(e);let a=(t[0].prelim+t.at(-1).prelim)/2,u=e.getLeftSibling();u?(e.prelim=u.prelim+1,e.mod=e.prelim-a):e.prelim=a}else{let n=e.getLeftSibling();e.prelim=n?n.prelim+1:0}}function di(e,t,n){e.x=e.prelim+t,e.y=e.depth,n.insertNode(e);for(let a of e.children)di(a,t+e.mod,n)}function Di(e){let{children:t}=e,n=0;for(let a of t)Di(a),a.children.length?n+=a.leafCount:n++;e.leafCount=n,t.length?(e.subtreeLeft=t[0].subtreeLeft,e.subtreeRight=t[t.length-1].subtreeRight,e.x=(e.subtreeLeft+e.subtreeRight)/2):(e.subtreeLeft=e.x,e.subtreeRight=e.x)}function un(e){let t=new Un,n=kt(e);return Wt(n),di(n,-n.prelim,t),Di(n),t}var xn,va,Un,Ra=A({"packages/ag-charts-community/src/chart/axis/tree.ts"(){"use strict";xn=class{constructor(){this.top=1/0,this.right=-1/0,this.bottom=-1/0,this.left=1/0}update(e,t){e>this.right&&(this.right=e),e<this.left&&(this.left=e),t>this.bottom&&(this.bottom=t),t<this.top&&(this.top=t)}},va=class _Z{constructor(t="",n,a){this.label=t,this.parent=n,this.refId=a,this.x=0,this.y=0,this.subtreeLeft=NaN,this.subtreeRight=NaN,this.children=[],this.leafCount=0,this.prelim=0,this.mod=0,this.ancestor=this,this.change=0,this.shift=0,this.index=0,this.screenX=0,this.screenY=0,this.depth=n?n.depth+1:0}insertTick(t,n){let a=this;for(let u=0;u<t.length;u++){let y=t[u],k=u!==t.length-1,{children:R}=a,F=R.find(_=>_.label===y);if(F&&k)a=F;else{let _=new _Z(y,a,n);_.index=R.length,R.push(_),k&&(a=_)}}}getLeftSibling(){var t;return this.index>0?(t=this.parent)==null?void 0:t.children[this.index-1]:void 0}getLeftmostSibling(){var t;return this.index>0?(t=this.parent)==null?void 0:t.children[0]:void 0}nextLeft(){return this.children[0]}nextRight(){return this.children.at(-1)}getSiblings(){var t,n;return(n=(t=this.parent)==null?void 0:t.children.filter((a,u)=>u!==this.index))!=null?n:[]}},Un=class{constructor(){this.dimensions=new xn,this.nodes=[],this.depth=0}insertNode(e){this.depth<e.depth&&(this.depth=e.depth),this.dimensions.update(e.x,e.y),this.nodes.push(e)}scalingX(e,t){let n=1;if(e>0){let{left:a,right:u}=this.dimensions;n=e/(u-a)}return t&&(n*=-1),n}scalingY(e,t){let n=1;if(e>0){let{top:a,bottom:u}=this.dimensions;n=e/(u-a)}return t&&(n*=-1),n}}}}),Ui,ya,or,ba,_l=A({"packages/ag-charts-community/src/chart/axis/groupedCategoryAxis.ts"(){"use strict";Qd(),vn(),ic(),Sl(),Ko(),Mr(),Zg(),gn(),zn(),$T(),gD(),Nc(),Ai(),gt(),yd(),zm(),Ra(),Ui=class extends dn{constructor(){super(...arguments),this.enabled=!0}},b([Ge(Oi)],Ui.prototype,"enabled",2),b([Ge(Oi,{optional:!0})],Ui.prototype,"avoidCollisions",2),b([Ge(sa,{optional:!0})],Ui.prototype,"color",2),b([Ge(ni,{optional:!0})],Ui.prototype,"spacing",2),b([Ge(Tc,{optional:!0})],Ui.prototype,"fontStyle",2),b([Ge(Rc,{optional:!0})],Ui.prototype,"fontWeight",2),b([Ge(Bn.restrict({min:1}),{optional:!0})],Ui.prototype,"fontSize",2),b([Ge(ei,{optional:!0})],Ui.prototype,"fontFamily",2),ya=class extends dn{constructor(){super(...arguments),this.enabled=!0}},b([Ge(Oi)],ya.prototype,"enabled",2),b([Ge(ni,{optional:!0})],ya.prototype,"width",2),b([Ge(sa,{optional:!0})],ya.prototype,"stroke",2),or=class extends dn{constructor(){super(...arguments),this.label=new Ui,this.tick=new ya}},b([Ge(Ei)],or.prototype,"label",2),b([Ge(Ei)],or.prototype,"tick",2),ba=class extends Cv{constructor(e){super(e),this.tickScale=new zo,this.depthOptions=new Uh(or),this.includeInvisibleDomains=!0,this.tickScale.paddingInner=1,this.tickScale.paddingOuter=0}resizeTickTree(){if(!this.tickTreeLayout)return;let{nodes:e}=this.tickTreeLayout,{range:t,step:n,inset:a,bandwidth:u}=this.scale,y=Math.abs(t[1]-t[0])-n,k=this.tickTreeLayout.scalingX(y,t[0]>t[1]),R=a+u/2,F=0;for(let _ of e){let V=_.x*k;F>V&&(F=V),_.screenX=V+R}for(let _ of e)_.screenX-=F}getDepthOptionsMap(e){var u,y,k,R,F,_,V,K,q;let t=[],{depthOptions:n,label:a}=this;for(let $=0;$<e;$++)t.push(((y=(u=n[$])==null?void 0:u.label.enabled)!=null?y:a.enabled)?{enabled:!0,spacing:(R=(k=n[$])==null?void 0:k.label.spacing)!=null?R:a.spacing,lineHeight:ho.getLineHeight((V=(_=(F=n[$])==null?void 0:F.label.fontSize)!=null?_:a.fontSize)!=null?V:10),avoidCollisions:(q=(K=n[$])==null?void 0:K.label.avoidCollisions)!=null?q:a.avoidCollisions}:{enabled:!1,spacing:0,lineHeight:0,avoidCollisions:!1});return t}updateCategoryLabels(){this.computedLayout&&this.tickLabelGroupSelection.update(this.computedLayout.tickLabelLayout).each((e,t)=>e.setProperties(t))}updateAxisLine(){this.computedLayout&&(this.lineNode.visible=this.line.enabled,this.lineNode.stroke=this.line.stroke,this.lineNode.strokeWidth=this.line.width)}computeLayout(){var vt;if(this.updateDirection(),this.updateScale(),this.updateRange(),this.resizeTickTree(),!((vt=this.tickTreeLayout)!=null&&vt.depth))return{bbox:ki.zero,separatorLayout:[],tickLabelLayout:[]};let{step:e}=this.scale,{title:t,label:n,range:a,depthOptions:u}=this,{depth:y,nodes:k}=this.tickTreeLayout,R=Math.ceil(n.fontSize/e),F=ma(this.rotation),_=this.position==="top"||this.position==="bottom",V=n.getSideFlag(),K=[],q=new Map,$=new ru,{defaultRotation:te,configuredRotation:se}=Lm({rotation:n.rotation,parallel:n.parallel,regularFlipRotation:Fn(F-Math.PI/2),parallelFlipRotation:Fn(F)}),de=te+se,pe=this.getDepthOptionsMap(y),Ce=(wt,Ct)=>{var Dt,Ot;let yt=y-wt.depth;if(!((Dt=pe[yt])!=null&&Dt.enabled)||Ct%R!==0||!cd(wt.screenX,a))return!1;let Et=this.formatTick(wt.label,Ct-1),At=this.getLabelStyles({value:Et,depth:yt},(Ot=u[yt])==null?void 0:Ot.label);return $.setProperties(He(ge({},At),{text:Et,textAlign:"center",textBaseline:n.parallel?"hanging":"bottom",rotation:0,translationX:0,translationY:wt.screenX})),!0},Se=0,ve={};k.forEach((wt,Ct)=>{var Dt;let yt=y-wt.depth,Et=P1(wt.label);if((Dt=ve[yt])!=null||(ve[yt]=1),ve[yt]<Et&&(ve[yt]=Et),!(!Ce(wt,Ct)||!$.getBBox())&&(q.set(Ct,$.getBBox()),!wt.leafCount)){$.rotation=de;let{width:Ot}=$.getBBox();Se<Ot&&(Se=Ot)}});let ke=Hx(),De=V*pe[0].spacing,Te=new Map,ze=wt=>{let Ct=Se;for(let yt=1;yt<=wt;yt++)Ct+=pe[yt].spacing,(n.mirrored||yt!==wt)&&(Ct+=ve[yt]*pe[yt].lineHeight);return Ct};k.forEach((wt,Ct)=>{var Ot;if(Ct===0)return;let yt=Ce(wt,Ct),Et=!wt.children.length,At=y-wt.depth;if(wt.parent){let It=Et?wt.x:wt.x-(wt.leafCount-1)/2;if(!Te.has(It)){let Rt=(Ot=this.depthOptions[At])==null?void 0:Ot.tick,Xt=Se;for(let Yt=0;Yt<=At;Yt++)Xt+=pe[Yt].spacing,Yt!==0&&(Xt+=ve[Yt]*pe[Yt].lineHeight);Te.set(It,{tickSize:Xt,tickStroke:Rt==null?void 0:Rt.stroke,tickWidth:(Rt==null?void 0:Rt.enabled)!==!1?Rt==null?void 0:Rt.width:0})}}if(!yt)return;if($.x=De,$.y=0,Et){let{width:It}=q.get(Ct),Rt=rb(de);$.rotation=de,$.textAlign="end",$.textBaseline="middle",$.rotationCenterX=De-It/2,$.translationX=(pe[At].spacing-It)/2*Rt*V,n.mirrored&&($.translationX+=It)}else $.rotation=_?te:-Math.PI/2,$.rotationCenterX=De,$.translationX=V*ze(At);if(pe[At].avoidCollisions){let It=Et?e:wt.leafCount*e;if($.getBBox().height>It){q.delete(Ct);return}}let{text:Dt=""}=$;K.push({text:Dt,visible:!0,range:this.scale.range,tickId:ke(Dt),fill:$.fill,fontFamily:$.fontFamily,fontSize:$.fontSize,fontStyle:$.fontStyle,fontWeight:$.fontWeight,rotation:$.rotation,rotationCenterX:$.rotationCenterX,textAlign:$.textAlign,textBaseline:$.textBaseline,translationX:$.translationX,translationY:$.translationY,x:$.x,y:$.y}),q.set(Ct,Wo.toCanvas($))});let{enabled:qe,stroke:et,width:$e}=this.line;this.lineNode.datum={x:0,y1:a[0],y2:a[1]},this.lineNode.setProperties({stroke:et,strokeWidth:qe?$e:0});let lt=[...Te.values()];lt.push(lt[0]);let at=[this.lineNode.getBBox(),new ki(0,0,lt[0].tickSize*V,0)];t.enabled&&(this.updateTitle(!1,lt[0].tickSize),at.push(t.caption.node.getBBox()));let ht=ki.merge(ii(q.values(),at));return{bbox:this.getTransformBox(ht),separatorLayout:lt,tickLabelLayout:K}}update(){if(!this.computedLayout)return;let{tickScale:e,gridLine:t,gridLength:n}=this,{separatorLayout:a}=this.computedLayout,u=e.ticks().map((y,k)=>He(ge({},a[k]),{tick:y,tickId:ee(y,k),tickLabel:y.filter(Boolean).join(" - "),translationY:Math.round(e.convert(y))}));this.gridLineGroupSelection.update(t.enabled&&n?u:[]),this.tickLineGroupSelection.update(this.tick.enabled?u:[]),this.updatePosition(),this.updateCategoryLabels(),this.updateAxisLine(),this.updateGridLines(),this.updateTickLines(),this.updateTitle(),this.resetSelectionNodes()}calculateLayout(){let{separatorLayout:e,tickLabelLayout:t,bbox:n}=this.computeLayout();return this.computedLayout={separatorLayout:e,tickLabelLayout:t},{bbox:n,primaryTickCount:void 0}}onGridVisibilityChange(){this.gridLineGroupSelection.clear(),this.tickLabelGroupSelection.clear()}updateRange(){super.updateRange(),this.tickScale.range=this.scale.range}calculateDomain(){var u;let{direction:e}=this,t=this.boundSeries.filter(y=>y.visible).flatMap(y=>y.getDomain(e));this.setDomain((u=ep(t))!=null?u:sx(t));let n=this.dataDomain.domain.map(Ny);this.tickTreeLayout=un(n);let a=[];for(let y of this.tickTreeLayout.nodes)y.leafCount||y.refId==null||a.push(this.dataDomain.domain[y.refId]);this.scale.domain=bI(this.dataDomain.domain,a),this.tickScale.domain=n.concat([[""]])}updateGridLines(){if(!this.gridLength)return;let{width:e,style:t}=this.gridLine,n=this.gridLength*-this.label.getSideFlag();this.gridLineGroupSelection.each((a,u,y)=>{let{stroke:k,lineDash:R}=t[y%t.length],F=u.translationY;a.visible=this.inRange(F),a.x1=0,a.x2=n,a.y=F,a.stroke=k,a.strokeWidth=e,a.lineDash=R})}updateScale(e){super.updateScale(e),this.scale.paddingOuter=this.scale.paddingInner/2}},ba.className="GroupedCategoryAxis",ba.type="grouped-category",b([Ge(wx)],ba.prototype,"depthOptions",2)}});function Ok(e,t,n){let[a,u]=ss(e);a=IL(Math.floor(a),u,t);let y=YS(a,u,t),k=t-1;u=a+k*y;let R=n?[u,a]:[a,u],F=qS(a,y,t);return{domain:R,ticks:F}}function IL(e,t,n){let a=Math.abs(t-e)/(n-1),u=Math.floor(Math.log10(a)),y=Math.pow(10,u);return Math.floor(e/y)*y}function qS(e,t,n){let a=Math.floor(Math.log10(t)),u=t>0&&t<1?Math.abs(a):0,y=Math.pow(10,u),k=[];for(let R=0;R<n;R++){let F=e+t*R;k[R]=Math.round(F*y)/y}return k}function YS(e,t,n){let a=n-1,u=(t-e)/a;return Jb(u)}function Jb(e){let t=Math.floor(Math.log10(e)),n=Math.pow(10,t),a=e/n*10;return a>0&&a<=1?n/10:a>1&&a<=2?2*n/10:a>1&&a<=5?5*n/10:a>5&&a<=10?10*n/10:a>10&&a<=20?20*n/10:a>20&&a<=40?40*n/10:a>40&&a<=50?50*n/10:a>50&&a<=100?100*n/10:a}var Cu=A({"packages/ag-charts-community/src/util/secondaryAxisTicks.ts"(){"use strict";gn()}}),Xc,Np=A({"packages/ag-charts-community/src/scale/linearScale.ts"(){"use strict";tu(),cs(),Xc=class extends Ha{constructor(){super([0,1],[0,1]),this.type="number"}toDomain(e){return e}ticks(){var a;let e=(a=this.tickCount)!=null?a:Ha.defaultTickCount;if(!this.domain||this.domain.length<2||e<1||!this.domain.every(isFinite))return[];this.refresh();let[t,n]=this.getDomain();if(this.interval){let u=Math.abs(this.interval);if(!Dm((n-t)/u,this.getPixelRange()))return u0(t,n,u)}return gd(t,n,e,this.minTickCount,this.maxTickCount)}update(){!this.domain||this.domain.length<2||this.nice&&this.updateNiceDomain()}getTickStep(e,t){var n;return(n=this.interval)!=null?n:pd(e,t,this.tickCount,this.minTickCount,this.maxTickCount)}updateNiceDomain(){let e=this.tickCount,[t,n]=this.domain;if(e===1)[t,n]=PP(t,n);else if(e>1){let a=t>n?Math.ceil:Math.floor,u=t>n?Math.floor:Math.ceil,y=4;for(let k=0;k<y;k++){let R=t,F=n,_=this.getTickStep(t,n),[V,K]=this.domain;if(t=a(V/_)*_,n=u(K/_)*_,t===R&&n===F)break}}this.niceDomain=[t,n]}tickFormat({ticks:e,specifier:t}){return tD(e!=null?e:this.ticks(),t)}}}}),rr,Su=A({"packages/ag-charts-community/src/chart/axis/numberAxis.ts"(){"use strict";Np(),Mr(),gb(),Cu(),Ai(),bv(),rr=class extends gp{constructor(e,t=new Xc){super(e,t),this.min=NaN,this.max=NaN}normaliseDataDomain(e){let{min:t,max:n}=this,{extent:a,clipped:u}=rx(e,t,n);return{domain:a,clipped:u}}updateSecondaryAxisTicks(e){var a;if(!((a=this.dataDomain)!=null&&a.domain.length))return[];let{domain:t,ticks:n}=Ok(this.dataDomain.domain,e!=null?e:0,this.reverse);return this.scale.nice=!1,this.scale.domain=t,this.scale.update(),n}},rr.className="NumberAxis",rr.type="number",b([Ge(Hs(Ar,tv("max"))),Fm(NaN)],rr.prototype,"min",2),b([Ge(Hs(Ar,Wa("min"))),Fm(NaN)],rr.prototype,"max",2)}}),eC,uc,qv=A({"packages/ag-charts-community/src/chart/axis/logAxis.ts"(){"use strict";gs(),Mr(),gb(),on(),Cu(),bn(),Ai(),Su(),eC=ka(e=>yn(e)&&e!==0,"a non-zero number"),uc=class extends rr{constructor(e){super(e,new Ws),this.min=NaN,this.max=NaN}normaliseDataDomain(e){let{min:t,max:n}=this,{extent:a,clipped:u}=rx(e,t,n);return a[0]<0&&a[1]>0?(hi.warn("The log axis domain crosses zero, the chart data cannot be rendered. See log axis documentation for more information."),{domain:[],clipped:u}):a[0]===0||a[1]===0?(hi.warn("The log axis domain contains a value of 0, the chart data cannot be rendered. See log axis documentation for more information."),{domain:[],clipped:u}):{domain:a,clipped:u}}set base(e){this.scale.base=e}get base(){return this.scale.base}updateSecondaryAxisTicks(e){var a;if(!((a=this.dataDomain)!=null&&a.domain.length))return[];let{domain:t,ticks:n}=Ok(this.dataDomain.domain,e!=null?e:0,this.reverse);return this.scale.nice=!1,this.scale.domain=t,this.scale.update(),n}},uc.className="LogAxis",uc.type="log",b([Ge(Hs(Ar,eC,tv("max"))),Fm(NaN)],uc.prototype,"min",2),b([Ge(Hs(Ar,eC,Wa("min"))),Fm(NaN)],uc.prototype,"max",2)}}),Yv,FO=A({"packages/ag-charts-community/src/chart/axis/timeAxis.ts"(){"use strict";Qy(),Mr(),Cu(),Ai(),bv(),Yv=class extends gp{constructor(e){super(e,new rv),this.min=void 0,this.max=void 0}normaliseDataDomain(e){var u,y;let{min:t,max:n}=this,a=!1;return typeof t=="number"&&(t=new Date(t)),typeof n=="number"&&(n=new Date(n)),e.length>2&&(e=(y=(u=ep(e))==null?void 0:u.map(k=>new Date(k)))!=null?y:[]),t instanceof Date&&(a||(a=t>e[0]),e=[t,e[1]]),n instanceof Date&&(a||(a=n<e[1]),e=[e[0],n]),e[0]>e[1]&&(e=[]),{domain:e,clipped:a}}onFormatChange(e,t,n,a){a?super.onFormatChange(e,t,n,a):(this.labelFormatter=this.scale.tickFormat({ticks:e,domain:n}),this.datumFormatter=this.scale.tickFormat({ticks:e,domain:n,formatOffset:1}))}updateSecondaryAxisTicks(e){var a;if(!((a=this.dataDomain)!=null&&a.domain.length))return[];let{domain:t,ticks:n}=Ok(this.dataDomain.domain.map(Number),e!=null?e:0,this.reverse);return this.scale.nice=!1,this.scale.domain=t.map(u=>new Date(u)),this.scale.update(),n}},Yv.className="TimeAxis",Yv.type="time",b([Ge(Hs(bl,tv("max")),{optional:!0})],Yv.prototype,"min",2),b([Ge(Hs(bl,Wa("min")),{optional:!0})],Yv.prototype,"max",2)}}),XS,_O=A({"packages/ag-charts-community/src/scene/util/corner.ts"(){"use strict";XS=(e,{x0:t,y0:n,x1:a,y1:u,cx:y,cy:k},R,F)=>{if(F&&e.moveTo(t,n),t!==a||n!==u){let _=Math.atan2(n-k,t-y),V=Math.atan2(u-k,a-y);e.arc(y,k,R,_,V)}else e.lineTo(t,n)}}}),wu,Mh,tC,Za,zp=A({"packages/ag-charts-community/src/scene/shape/rect.ts"(){"use strict";vn(),mu(),_O(),Ll(),Er(),wu=1e-6,Mh=(e,t,n,a,u)=>{let y=!1,k=!1,R=a-Math.sqrt(Math.max(u**2-n**2,0)),F=0,_=0,V=n-Math.sqrt(Math.max(u**2-a**2,0));return R>e?(y=!0,R=e,F=n-Math.sqrt(Math.max(u**2-(a-e)**2))):R<wu&&(R=0),V>t?(k=!0,_=a-Math.sqrt(Math.max(u**2-(n-t)**2)),V=t):V<wu&&(V=0),{leading0:R,leading1:F,trailing0:_,trailing1:V,leadingClipped:y,trailingClipped:k}},tC=(e,t,n,a,u,y,k)=>{let{topLeft:R,topRight:F,bottomRight:_,bottomLeft:V}=y,K=Math.max(R+V,F+_),q=Math.max(R+F,V+_);if(K<=0&&q<=0){k==null?e.rect(t,n,a,u):e.rect(k.x,k.y,k.width,k.height);return}else if(k==null&&R===F&&R===_&&R===V){e.roundRect(t,n,a,u,R);return}if(a<0&&(t+=a,a=Math.abs(a)),u<0&&(n+=u,u=Math.abs(u)),a<=0||u<=0)return;if(k==null)k=new ki(t,n,a,u);else{let Te=Math.max(t,k.x),ze=Math.min(t+a,k.x+k.width),qe=Math.max(n,k.y),et=Math.min(n+u,k.y+k.height);k=new ki(Te,qe,ze-Te,et-qe)}let $=Math.max(K/u,q/a,1);$>1&&(R/=$,F/=$,_/=$,V/=$);let te=!0,se=!0,de=!0,pe=!0,Ce,Se,ve,ke;if(te){let Te=Mh(k.height,k.width,Math.max(t+R-k.x,0),Math.max(n+R-k.y,0),R);Te.leadingClipped&&(pe=!1),Te.trailingClipped&&(se=!1);let ze=Math.max(k.x+Te.leading1,k.x),qe=Math.max(k.y+Te.leading0,k.y),et=Math.max(k.x+Te.trailing1,k.x),$e=Math.max(k.y+Te.trailing0,k.y),lt=t+R,at=n+R;Ce={x0:ze,y0:qe,x1:et,y1:$e,cx:lt,cy:at}}if(se){let Te=Mh(k.width,k.height,Math.max(n+F-k.y,0),Math.max(k.x+k.width-(t+a-F),0),F);Te.leadingClipped&&(te=!1),Te.trailingClipped&&(de=!1);let ze=Math.min(k.x+k.width-Te.leading0,k.x+k.width),qe=Math.max(k.y+Te.leading1,k.y),et=Math.min(k.x+k.width-Te.trailing0,k.x+k.width),$e=Math.max(k.y+Te.trailing1,k.y),lt=t+a-F,at=n+F;Se={x0:ze,y0:qe,x1:et,y1:$e,cx:lt,cy:at}}if(de){let Te=Mh(k.height,k.width,Math.max(k.x+k.width-(t+a-_),0),Math.max(k.y+k.height-(n+u-_),0),_);Te.leadingClipped&&(se=!1),Te.trailingClipped&&(pe=!1);let ze=Math.min(k.x+k.width-Te.leading1,k.x+k.width),qe=Math.min(k.y+k.height-Te.leading0,k.y+k.height),et=Math.min(k.x+k.width-Te.trailing1,k.x+k.width),$e=Math.min(k.y+k.height-Te.trailing0,k.y+k.height),lt=t+a-_,at=n+u-_;ve={x0:ze,y0:qe,x1:et,y1:$e,cx:lt,cy:at}}if(pe){let Te=Mh(k.width,k.height,Math.max(k.y+k.height-(n+u-V),0),Math.max(t+V-k.x,0),V);Te.leadingClipped&&(de=!1),Te.trailingClipped&&(te=!1);let ze=Math.max(k.x+Te.leading0,k.x),qe=Math.min(k.y+k.height-Te.leading1,k.y+k.height),et=Math.max(k.x+Te.trailing0,k.x),$e=Math.min(k.y+k.height-Te.trailing1,k.y+k.height),lt=t+V,at=n+u-V;ke={x0:ze,y0:qe,x1:et,y1:$e,cx:lt,cy:at}}let De=!1;te&&Ce!=null&&(XS(e,Ce,R,!De),De||(De=!0)),se&&Se!=null&&(XS(e,Se,F,!De),De||(De=!0)),de&&ve!=null&&(XS(e,ve,_,!De),De||(De=!0)),pe&&ke!=null&&XS(e,ke,V,!De),e.closePath()},Za=class extends br{constructor(){super(...arguments),this.borderPath=new Vv,this.x=0,this.y=0,this.width=10,this.height=10,this.topLeftCornerRadius=0,this.topRightCornerRadius=0,this.bottomRightCornerRadius=0,this.bottomLeftCornerRadius=0,this.clipBBox=void 0,this.crisp=!1,this.lastUpdatePathStrokeWidth=ps.defaultStyles.strokeWidth,this.effectiveStrokeWidth=ps.defaultStyles.strokeWidth,this.hittester=super.isPointInPath.bind(this),this.distanceCalculator=super.distanceSquaredTransformedPoint.bind(this),this.microPixelEffectOpacity=1}set cornerRadius(e){this.topLeftCornerRadius=e,this.topRightCornerRadius=e,this.bottomRightCornerRadius=e,this.bottomLeftCornerRadius=e}isDirtyPath(){return this.lastUpdatePathStrokeWidth!==this.strokeWidth||!!(this.path.isDirty()||this.borderPath.isDirty())}updatePath(){var de,pe,Ce;let{path:e,borderPath:t,crisp:n,topLeftCornerRadius:a,topRightCornerRadius:u,bottomRightCornerRadius:y,bottomLeftCornerRadius:k}=this,{x:R,y:F,width:_,height:V,strokeWidth:K,clipBBox:q}=this,te=1/((pe=(de=this.layerManager)==null?void 0:de.canvas.pixelRatio)!=null?pe:1),se=1;if(e.clear(!0),t.clear(!0),n&&(_<=te&&(se*=_/te),V<=te&&(se*=V/te),_=this.align(R,_),V=this.align(F,V),R=this.align(R),F=this.align(F),q=q!=null?new ki(this.align(q.x),this.align(q.y),this.align(q.x,q.width),this.align(q.y,q.height)):void 0),K)if(_<te){let Se=R+te/2;t.moveTo(Se,F),t.lineTo(Se,F+V),K=te,this.borderClipPath=void 0}else if(V<te){let Se=F+te/2;t.moveTo(R,Se),t.lineTo(R+_,Se),K=te,this.borderClipPath=void 0}else if(K<_&&K<V){let Se=K/2;R+=Se,F+=Se,_-=K,V-=K;let ve=q==null?void 0:q.clone().shrink(Se),ke={topLeft:a>0?a-K:0,topRight:u>0?u-K:0,bottomRight:y>0?y-K:0,bottomLeft:k>0?k-K:0};this.borderClipPath=void 0,_>0&&V>0&&(ve==null||(ve==null?void 0:ve.width)>0&&(ve==null?void 0:ve.height)>0)&&(tC(e,R,F,_,V,ke,ve),tC(t,R,F,_,V,ke,ve))}else this.borderClipPath=(Ce=this.borderClipPath)!=null?Ce:new Vv,this.borderClipPath.clear(!0),this.borderClipPath.rect(R,F,_,V),t.rect(R,F,_,V);else{let Se={topLeft:a,topRight:u,bottomRight:y,bottomLeft:k};this.borderClipPath=void 0,tC(e,R,F,_,V,Se,q)}if([a,u,y,k].every(Se=>Se===0)){let Se=this.getBBox();this.hittester=Se.containsPoint.bind(Se),this.distanceSquared=(ve,ke)=>this.getBBox().distanceSquared(ve,ke)}else this.hittester=super.isPointInPath,this.distanceCalculator=super.distanceSquaredTransformedPoint;this.effectiveStrokeWidth=K,this.lastUpdatePathStrokeWidth=K,this.microPixelEffectOpacity=se}computeBBox(){var y;let{x:e,y:t,width:n,height:a,clipBBox:u}=this;return(y=u==null?void 0:u.clone())!=null?y:new ki(e,t,n,a)}isPointInPath(e,t){return this.hittester(e,t)}get midPoint(){return{x:this.x+this.width/2,y:this.y+this.height/2}}distanceSquared(e,t){return this.distanceCalculator(e,t)}applyFillAlpha(e){let{fillOpacity:t,microPixelEffectOpacity:n,opacity:a}=this;e.globalAlpha*=a*t*n}renderStroke(e){let{stroke:t,effectiveStrokeWidth:n}=this;if(t&&n){let{globalAlpha:a}=e,{strokeOpacity:u,lineDash:y,lineDashOffset:k,lineCap:R,lineJoin:F,borderPath:_,borderClipPath:V,opacity:K,microPixelEffectOpacity:q}=this;V&&e.clip(V.getPath2D()),this.applyStroke(e),e.globalAlpha*=K*u*q,e.lineWidth=n,y&&e.setLineDash(y),k&&(e.lineDashOffset=k),R&&(e.lineCap=R),F&&(e.lineJoin=F),e.stroke(_.getPath2D()),e.globalAlpha=a}}},Za.className="Rect",b([qi()],Za.prototype,"x",2),b([qi()],Za.prototype,"y",2),b([qi()],Za.prototype,"width",2),b([qi()],Za.prototype,"height",2),b([qi()],Za.prototype,"topLeftCornerRadius",2),b([qi()],Za.prototype,"topRightCornerRadius",2),b([qi()],Za.prototype,"bottomRightCornerRadius",2),b([qi()],Za.prototype,"bottomLeftCornerRadius",2),b([qi()],Za.prototype,"clipBBox",2),b([qi()],Za.prototype,"crisp",2)}}),xg,kh=A({"packages/ag-charts-community/src/chart/background/background.ts"(){"use strict";mh(),xo(),zp(),ic(),ac(),Ai(),Om(),xg=class extends V0{constructor(e){super(),this.ctx=e,this.rectNode=new Za,this.textNode=new Lo,this.fill="white",this.node=this.createNode(),this.node.append([this.rectNode,this.textNode]),this.visible=!0,this.destroyFns.push(e.scene.attachNode(this.node),e.layoutManager.addListener("layout:complete",t=>this.onLayoutComplete(t)))}createNode(){return new Wi({name:"background",zIndex:0})}onLayoutComplete(e){let{width:t,height:n}=e.chart;this.rectNode.width=t,this.rectNode.height=n}},b([Ge(Oi),Kr("node","visible")],xg.prototype,"visible",2),b([Ge(sa,{optional:!0}),Kr("rectNode","fill")],xg.prototype,"fill",2),b([Ge(Ei,{optional:!0})],xg.prototype,"image",2),b([Ge(ei,{optional:!0}),Kr("textNode")],xg.prototype,"text",2)}}),Xv,NO=A({"packages/ag-charts-community/src/chart/background/backgroundModule.ts"(){"use strict";kh(),Xv={type:"root",optionsKey:"background",packageType:"community",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new xg(e)}}});function Mg({orientation:e,bboxes:t,maxHeight:n,maxWidth:a,itemPaddingY:u=0,itemPaddingX:y=0,forceResult:k=!1}){let R=e==="horizontal",F={max:R?a:n,fn:R?q=>q.width:q=>q.height,padding:R?y:u},_={max:R?n:a,fn:R?q=>q.height:q=>q.width,padding:R?u:y},V=0,K=[];for(;V<t.length;){let q=t.slice(V),$=ZS(q,V,F,_,k);if(!$)return;V+=$.processedBBoxCount,K.push($.pageIndices)}return Rd(K,e,t,u,y)}function ZS(e,t,n,a,u){let k=Hz(e,n);if(k<1){if(!u)return;k=1}let R=k;for(;R>=1;){let F=jz(e,t,R,n,a,u);if(F==null&&R<=1)return;if(F==null){R--;continue}if(typeof F=="number"){if(F<=1)return;R=F<R&&F>1?F:R,R--;continue}return{processedBBoxCount:F.length*F[0].length,pageIndices:F}}}function jz(e,t,n,a,u,y){var K;let k=[],R=0,F=0,_=[],V=[];for(let q=0;q<e.length;q++){let $=(q+n)%n;$===0&&(R+=F,F=0,_.length>0&&k.push(_),_=[]);let te=a.fn(e[q])+a.padding;V[$]=Math.max((K=V[$])!=null?K:0,te),F=Math.max(F,u.fn(e[q])+u.padding);let se=R+F,de=!y||k.length>0;if(se>u.max&&de){_=[];break}if(V.reduce((Ce,Se)=>Ce+Se,0)>a.max&&!y)return V.length<n?V.length:void 0;_.push(q+t)}return _.length>0&&k.push(_),k.length>0?k:void 0}function Rd(e,t,n,a,u){let y=0,k=0;return{pages:e.map(F=>{t==="horizontal"&&(F=$S(F));let _=0,V=F.map($=>{let te=$.map(pe=>(_=Math.max(pe,_),n[pe])),se=0,de=0;return te.forEach(pe=>{se+=pe.height+a,de=Math.max(de,pe.width+u)}),{indices:$,bboxes:te,columnHeight:Math.ceil(se),columnWidth:Math.ceil(de)}}),K=0,q=0;return V.forEach($=>{K+=$.columnWidth,q=Math.max(q,$.columnHeight)}),y=Math.max(K,y),k=Math.max(q,k),{columns:V,startIndex:F[0][0],endIndex:_,pageWidth:K,pageHeight:q}}),maxPageWidth:y,maxPageHeight:k}}function $S(e){let t=[];for(let n of e[0])t.push([]);return e.forEach((n,a)=>{n.forEach((u,y)=>{t[y][a]=u})}),t}function Hz(e,t){let n=e.length,a=0;for(let u=0;u<n;u++)if(a+=t.fn(e[u])+t.padding,a>t.max)return n/u<2?Math.ceil(n/2):u;return n}var Pd=A({"packages/ag-charts-community/src/chart/gridLayout.ts"(){"use strict"}}),Ah,Sf,qo,xu,Wz=A({"packages/ag-charts-community/src/chart/pagination/pagination.ts"(){"use strict";xo(),ic(),Sl(),Zl(),gn(),zn(),ac(),Ai(),kd(),PS(),fu(),Ah=class extends dn{constructor(){super(...arguments),this.color="black",this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}},b([Ge(sa)],Ah.prototype,"color",2),b([Ge(Tc,{optional:!0})],Ah.prototype,"fontStyle",2),b([Ge(Rc,{optional:!0})],Ah.prototype,"fontWeight",2),b([Ge(ni)],Ah.prototype,"fontSize",2),b([Ge(ei)],Ah.prototype,"fontFamily",2),Sf=class extends dn{constructor(){super(...arguments),this.size=15,this.fill=void 0,this.fillOpacity=void 0,this.stroke=void 0,this.strokeWidth=1,this.strokeOpacity=1}},b([Ge(ni)],Sf.prototype,"size",2),b([Ge(sa,{optional:!0})],Sf.prototype,"fill",2),b([Ge(Cn,{optional:!0})],Sf.prototype,"fillOpacity",2),b([Ge(sa,{optional:!0})],Sf.prototype,"stroke",2),b([Ge(ni)],Sf.prototype,"strokeWidth",2),b([Ge(Cn)],Sf.prototype,"strokeOpacity",2),qo=class extends dn{constructor(e){super(),this.parent=e,this.shape="triangle",this.size=15,this.padding=8}},b([vs({changeValue(){this.parent.marker===this&&this.parent.onMarkerShapeChange()}})],qo.prototype,"shape",2),b([Ge(ni)],qo.prototype,"size",2),b([Ge(ni)],qo.prototype,"padding",2),xu=class extends dn{constructor(e,t){super(),this.chartUpdateCallback=e,this.pageUpdateCallback=t,this.id=Os(this),this.marker=new qo(this),this.activeStyle=new Sf,this.inactiveStyle=new Sf,this.highlightStyle=new Sf,this.label=new Ah,this.group=new Aa({name:"pagination"}),this.labelNode=new Lo,this.destroyFns=[],this.totalPages=0,this.currentPage=0,this.translationX=0,this.translationY=0,this.nextButtonDisabled=!1,this.previousButtonDisabled=!1,this._visible=!0,this._enabled=!0,this._orientation="vertical",this._nextButton=new gf,this._previousButton=new gf,this.labelNode.setProperties({textBaseline:"middle",fontSize:12,fontFamily:"Verdana, sans-serif",fill:"black",y:1}),this.group.append([this.nextButton,this.previousButton,this.labelNode]),this.update(),this.updateMarkers()}destroy(){this.destroyFns.forEach(e=>e())}set visible(e){this._visible=e,this.updateGroupVisibility()}get visible(){return this._visible}set enabled(e){this._enabled=e,this.updateGroupVisibility()}get enabled(){return this._enabled}updateGroupVisibility(){this.group.visible=this.enabled&&this.visible}set orientation(e){switch(this._orientation=e,e){case"horizontal":{this.previousButton.rotation=-Math.PI/2,this.nextButton.rotation=Math.PI/2;break}case"vertical":default:this.previousButton.rotation=0,this.nextButton.rotation=Math.PI}}get orientation(){return this._orientation}set nextButton(e){this._nextButton!==e&&(this.group.removeChild(this._nextButton),this._nextButton=e,this.group.appendChild(e))}get nextButton(){return this._nextButton}set previousButton(e){this._previousButton!==e&&(this.group.removeChild(this._previousButton),this._previousButton=e,this.group.appendChild(e))}get previousButton(){return this._previousButton}update(){this.updateLabel(),this.updatePositions(),this.enableOrDisableButtons()}updatePositions(){this.group.translationX=this.translationX,this.group.translationY=this.translationY,this.updateLabelPosition(),this.updateNextButtonPosition()}updateLabelPosition(){let{size:e,padding:t}=this.marker;this.nextButton.size=e,this.previousButton.size=e,this.labelNode.x=e/2+t}updateNextButtonPosition(){let e=this.labelNode.getBBox();this.nextButton.translationX=e.width+(this.marker.size/2+this.marker.padding)*2}updateLabel(){let{currentPage:e,totalPages:t,labelNode:n,label:{color:a,fontStyle:u,fontWeight:y,fontSize:k,fontFamily:R}}=this;n.text=`${e+1} / ${t}`,n.fill=a,n.fontStyle=u,n.fontWeight=y,n.fontSize=k,n.fontFamily=R}updateMarkers(){let{nextButton:e,previousButton:t,nextButtonDisabled:n,previousButtonDisabled:a,activeStyle:u,inactiveStyle:y,highlightStyle:k,highlightActive:R}=this,F=(_,V)=>V?y:_===R?k:u;this.updateMarker(e,F("next",n)),this.updateMarker(t,F("previous",a))}updateMarker(e,t){var a;let{size:n}=this.marker;e.size=n,e.fill=t.fill,e.fillOpacity=(a=t.fillOpacity)!=null?a:1,e.stroke=t.stroke,e.strokeWidth=t.strokeWidth,e.strokeOpacity=t.strokeOpacity}enableOrDisableButtons(){let{currentPage:e,totalPages:t}=this,n=t===0,a=e===t-1,u=e===0;this.nextButtonDisabled=a||n,this.previousButtonDisabled=u||n}setPage(e){e=fn(0,e,Math.max(0,this.totalPages-1)),this.currentPage!==e&&(this.currentPage=e,this.onPaginationChanged())}getCursor(e){return{previous:this.previousButtonDisabled,next:this.nextButtonDisabled}[e]?void 0:"pointer"}onClick(e,t){e.preventDefault(),t==="next"&&!this.nextButtonDisabled?(this.incrementPage(),this.onPaginationChanged()):t==="previous"&&!this.previousButtonDisabled&&(this.decrementPage(),this.onPaginationChanged())}onMouseHover(e){this.highlightActive=e,this.updateMarkers(),this.chartUpdateCallback(6)}onPaginationChanged(){this.pageUpdateCallback(this.currentPage)}incrementPage(){this.currentPage=Math.min(this.currentPage+1,this.totalPages-1)}decrementPage(){this.currentPage=Math.max(this.currentPage-1,0)}onMarkerShapeChange(){let e=nu(ca(this.marker.shape||gf));this.previousButton=new e,this.nextButton=new e,this.updatePositions(),this.updateMarkers(),this.chartUpdateCallback(6)}attachPagination(e){e.append(this.group)}getBBox(){return this.group.getBBox()}computeCSSBounds(){let e=Wo.toCanvas(this.previousButton),t=Wo.toCanvas(this.nextButton);return{prev:e,next:t}}},xu.className="Pagination",b([Ge(Ei)],xu.prototype,"marker",2),b([Ge(Ei)],xu.prototype,"activeStyle",2),b([Ge(Ei)],xu.prototype,"inactiveStyle",2),b([Ge(Ei)],xu.prototype,"highlightStyle",2),b([Ge(Ei)],xu.prototype,"label",2)}}),Pr,QS=A({"packages/ag-charts-community/src/chart/legend/legendDOMProxy.ts"(){"use strict";Sl(),aT(),Rn(),Pr=class{constructor(e,t){this.idPrefix=t,this.dirty=!0,this.destroyFns=new zc,this.itemList=e.proxyInteractionService.createProxyContainer({type:"list",domManagerId:`${t}-toolbar`,classList:["ag-charts-proxy-legend-toolbar"],ariaLabel:{id:"ariaLabelLegend"}}),this.paginationGroup=e.proxyInteractionService.createProxyContainer({type:"group",domManagerId:`${t}-pagination`,classList:["ag-charts-proxy-legend-pagination"],ariaLabel:{id:"ariaLabelLegendPagination"},ariaOrientation:"horizontal"}),this.itemDescription=Hn("p"),this.itemDescription.style.display="none",this.itemDescription.id=`${t}-ariaDescription`,this.itemDescription.textContent=this.getItemAriaDescription(e.localeManager),this.itemList.getElement().append(this.itemDescription)}destroy(){this.destroyFns.destroy()}initLegendList(e){if(!this.dirty)return;let{ctx:t,itemSelection:n,datumReader:a,itemListener:u}=e,y=t.localeManager,k=n.length;n.each((R,F,_)=>{var K;(K=R.proxyButton)==null||K.destroy(),R.proxyButton=t.proxyInteractionService.createProxyElement({type:"listswitch",id:`ag-charts-legend-item-${_}`,textContent:this.getItemAriaText(y,a.getItemLabel(F),_,k),ariaChecked:!!R.datum.enabled,ariaDescribedBy:this.itemDescription.id,parent:this.itemList});let V=R.proxyButton;V.addListener("click",q=>u.onClick(q.sourceEvent,R.datum,V)),V.addListener("dblclick",q=>u.onDoubleClick(q.sourceEvent,R.datum)),V.addListener("mouseenter",q=>u.onHover(q.sourceEvent,R)),V.addListener("mouseleave",()=>u.onLeave()),V.addListener("contextmenu",q=>u.onContextClick(q.sourceEvent,R)),V.addListener("blur",()=>u.onLeave()),V.addListener("focus",q=>u.onHover(q.sourceEvent,R))}),this.dirty=!1}update(e){this.updateVisibility(e.visible),e.visible&&(this.initLegendList(e),this.updateItemProxyButtons(e),this.updatePaginationProxyButtons(e))}updateVisibility(e){this.itemList.setHidden(!e),this.paginationGroup.setHidden(!e)}updateItemProxyButtons({itemSelection:e,group:t,pagination:n,interactive:a}){let u=Wo.toCanvas(t);this.itemList.setBounds(u);let y=Math.max(...e.nodes().map(k=>k.getBBox().height));e.each((k,R)=>{if(k.proxyButton){let F=k.pageIndex===n.currentPage,{x:_,y:V,height:K,width:q}=Wo.toCanvas(k),$=(y-K)/2,te={x:_-u.x,y:V-$-u.y,height:y,width:q};k.proxyButton.setCursor("pointer"),k.proxyButton.setEnabled(a&&F),k.proxyButton.setBounds(te)}})}updatePaginationProxyButtons(e){var _,V,K,q,$,te;let{ctx:t,pagination:n,oldPages:a,newPages:u}=e;this.paginationGroup.setHidden(!n.visible);let y=((_=a==null?void 0:a.length)!=null?_:u.length)>1,k=u.length>1;y!==k&&(k?(this.prevButton=t.proxyInteractionService.createProxyElement({type:"button",id:`${this.idPrefix}-prev-page`,textContent:{id:"ariaLabelLegendPagePrevious"},tabIndex:0,parent:this.paginationGroup}),this.prevButton.addListener("click",se=>n.onClick(se.sourceEvent,"previous")),this.prevButton.addListener("mouseenter",()=>n.onMouseHover("previous")),this.prevButton.addListener("mouseleave",()=>n.onMouseHover(void 0)),(V=this.nextButton)!=null||(this.nextButton=t.proxyInteractionService.createProxyElement({type:"button",id:`${this.idPrefix}-next-page`,textContent:{id:"ariaLabelLegendPageNext"},tabIndex:0,parent:this.paginationGroup})),this.nextButton.addListener("click",se=>n.onClick(se.sourceEvent,"next")),this.nextButton.addListener("mouseenter",()=>n.onMouseHover("next")),this.nextButton.addListener("mouseleave",()=>n.onMouseHover(void 0))):((K=this.nextButton)==null||K.destroy(),(q=this.prevButton)==null||q.destroy(),this.nextButton=void 0,this.prevButton=void 0));let{prev:R,next:F}=n.computeCSSBounds();($=this.prevButton)==null||$.setBounds(R),(te=this.nextButton)==null||te.setBounds(F),this.updatePaginationCursors(e)}updatePaginationCursors({pagination:e}){var t,n;(t=this.nextButton)==null||t.setCursor(e.getCursor("next")),(n=this.prevButton)==null||n.setCursor(e.getCursor("previous"))}onDataUpdate(e,t){this.dirty=e.length!==t.length||e.some((n,a,u)=>{let[y,k]=[t[a],e[a]];return y.id!==k.id})}onLocaleChanged(e,t,n){let a=t.length;t.each(({proxyButton:u},y,k)=>{let R=u==null?void 0:u.getElement();if(R!=null){let F=n.getItemLabel(y);R.textContent=this.getItemAriaText(e,F,k,a)}}),this.itemDescription.textContent=this.getItemAriaDescription(e)}onPageChange(e){this.updateItemProxyButtons(e),this.updatePaginationCursors(e)}getItemAriaText(e,t,n,a){return n>=0&&t?(n++,e.t("ariaLabelLegendItem",{label:t,index:n,count:a})):e.t("ariaLabelLegendItemUnknown")}getItemAriaDescription(e){return e.t("ariaDescriptionLegendItem")}}}});function zO(e,t,n,a){let u={defaultPrevented:!1,apiEvent:{type:e,itemId:t,seriesId:n,event:a,preventDefault:()=>u.defaultPrevented=!0}};return u}var Zc=A({"packages/ag-charts-community/src/chart/legend/legendEvent.ts"(){"use strict"}}),Ld,BO=A({"packages/ag-charts-community/src/scene/image.ts"(){"use strict";xa(),Ld=class extends pl{constructor(e){super(),this.sourceImage=e,this.x=0,this.y=0,this.width=0,this.height=0,this.opacity=1}updateBitmap(e,t,n,a){this.sourceImage=e,this.width=e.width/t,this.height=e.height/t,this.x=n/t,this.y=a/t,this.markDirty()}render(e){let{ctx:t}=e,n=this.sourceImage;n&&(t.globalAlpha=this.opacity,t.drawImage(n,0,0,n.width,n.height,this.x,this.y,this.width,this.height)),super.render(e)}},b([Mi()],Ld.prototype,"x",2),b([Mi()],Ld.prototype,"y",2),b([Mi()],Ld.prototype,"width",2),b([Mi()],Ld.prototype,"height",2),b([Mi()],Ld.prototype,"opacity",2)}}),sr,wf=A({"packages/ag-charts-community/src/chart/legend/legendMarkerLabel.ts"(){"use strict";vn(),xo(),BO(),ic(),Sl(),ac(),bn(),sr=class extends Yh(Wi){constructor(){super({name:"markerLabelGroup"}),this.label=new Lo,this.symbolsGroup=new Wi({name:"legend-markerLabel-symbols"}),this.bitmap=new Ld,this.bitmapDirty=!0,this.enabled=!0,this.pageIndex=NaN,this._marker=void 0,this._line=void 0;let{marker:e,label:t,line:n}=this;t.textBaseline="middle",t.fontSize=12,t.fontFamily="Verdana, sans-serif",t.fill="black",t.y=1,this.updateSymbols(e,n),this.append([this.symbolsGroup,t])}destroy(){var e;super.destroy(),(e=this.proxyButton)==null||e.destroy()}get marker(){return this._marker}get line(){return this._line}updateSymbols(e,t){this._marker===e&&this._line===t||(this.bitmapDirty=!0,this._marker=e,this._line=t,this.symbolsGroup.clear(),this.symbolsGroup.append([this.bitmap,t,e].filter(Hi)))}setEnabled(e){this.enabled=e,this.refreshVisibilities()}refreshVisibilities(){let e=this.enabled?1:.5;this.label.opacity=e,this.opacity=e,this.bitmap.opacity=e,this.setBitmapVisibility(!this.enabled)}setBitmapVisibility(e){let{line:t,marker:n}=this;n!=null&&(n.visible=!e),t!=null&&(t.visible=!e),this.bitmap.visible=e}update(e,{spriteAAPadding:t,spritePixelRatio:n},a){var ve,ke,De;let{marker:u,line:y}=this,{length:k,spacing:R,isCustomMarker:F}=a,_=1/0,V=1/0,K=1/0,q=1/0,$=1/0,te=0,se=0;if(u){let{size:Te}=u,ze=u.constructor.center,qe=(Te+u.strokeWidth)/2;te=(ze.x-.5)*Te,se=(ze.y-.5)*Te,F?(u.x=0,u.y=0,u.translationX=te*Te+k/2,u.translationY=se*Te,q=u.translationY-qe,$=u.translationX-qe):(u.x=te+k/2,u.y=se,q=u.y-qe,$=u.x-qe)}y&&(y.x1=0,y.x2=k,y.y1=0,y.y2=0,y.markDirty(),_=-y.strokeWidth/2,V=y.x1,K=y.x2);let de=Math.min(V,K,$),pe=Math.min(_,q),Ce=(ve=y==null?void 0:y.x2)!=null?ve:-1/0,Se=((ke=u==null?void 0:u.x)!=null?ke:0)+((De=u==null?void 0:u.size)!=null?De:0)/2;if(this.label.x=Math.max(Ce,Se)+R,this.bitmapDirty){this.setBitmapVisibility(!1);let Te=te+(t+de)*n,ze=se+(t-pe)*n,qe=e.renderSprite(this.symbolsGroup,{scale:n,translateX:Math.floor(Te),translateY:Math.floor(ze)});this.bitmap.updateBitmap(qe,n,Math.ceil(-Te),Math.ceil(-ze)),this.bitmapDirty=!1,this.refreshVisibilities()}}computeBBox(){let{label:e,line:t,marker:n}=this;return this.toParent(Wi.computeChildrenBBox([e,t,n].filter(Hi),!1))}},sr.className="MarkerLabel",b([Kr("label")],sr.prototype,"text",2),b([Kr("label")],sr.prototype,"fontStyle",2),b([Kr("label")],sr.prototype,"fontWeight",2),b([Kr("label")],sr.prototype,"fontSize",2),b([Kr("label")],sr.prototype,"fontFamily",2),b([Kr("label","fill")],sr.prototype,"color",2)}}),Zv,$r,xf,$v,Nl,kg,tR,ks,Uz=A({"packages/ag-charts-community/src/chart/legend/legend.ts"(){"use strict";vn(),xo(),Dr(),vd(),gT(),Sl(),Rn(),Zl(),on(),gn(),ra(),zn(),ac(),Nc(),pD(),Ai(),kd(),Pd(),cg(),rc(),fu(),Wz(),Js(),Om(),QS(),Zc(),wf(),Zv=class extends dn{constructor(){super(...arguments),this.maxLength=void 0,this.color="black",this.fontStyle=void 0,this.fontWeight=void 0,this.fontSize=12,this.fontFamily="Verdana, sans-serif"}},b([Ge(ni,{optional:!0})],Zv.prototype,"maxLength",2),b([Ge(sa)],Zv.prototype,"color",2),b([Ge(Tc,{optional:!0})],Zv.prototype,"fontStyle",2),b([Ge(Rc,{optional:!0})],Zv.prototype,"fontWeight",2),b([Ge(ni)],Zv.prototype,"fontSize",2),b([Ge(ei)],Zv.prototype,"fontFamily",2),b([Ge(vl,{optional:!0})],Zv.prototype,"formatter",2),$r=class extends dn{constructor(){super(...arguments),this.size=15,this.padding=8}},b([gv(e=>{var t;return(t=e.parent)==null?void 0:t.onMarkerShapeChange()})],$r.prototype,"shape",2),b([Ge(ni)],$r.prototype,"size",2),b([Ge(ni)],$r.prototype,"padding",2),b([Ge(ni,{optional:!0})],$r.prototype,"strokeWidth",2),b([Ge(Oi)],$r.prototype,"enabled",2),xf=class extends dn{},b([Ge(ni,{optional:!0})],xf.prototype,"strokeWidth",2),b([Ge(ni,{optional:!0})],xf.prototype,"length",2),$v=class extends dn{constructor(){super(...arguments),this.paddingX=16,this.paddingY=8,this.showSeriesStroke=!1,this.marker=new $r,this.label=new Zv,this.line=new xf}},b([Ge(ni,{optional:!0})],$v.prototype,"maxWidth",2),b([Ge(ni)],$v.prototype,"paddingX",2),b([Ge(ni)],$v.prototype,"paddingY",2),b([Ge(Oi)],$v.prototype,"showSeriesStroke",2),b([Ge(Ei)],$v.prototype,"marker",2),b([Ge(Ei)],$v.prototype,"label",2),b([Ge(Ei)],$v.prototype,"line",2),Nl=class extends dn{},b([Ge(vl,{optional:!0})],Nl.prototype,"legendItemClick",2),b([Ge(vl,{optional:!0})],Nl.prototype,"legendItemDoubleClick",2),kg="legend-visibility",tR="legend-other-series",ks=class extends dn{constructor(e){super(),this.ctx=e,this.id=Os(this),this.group=new Aa({name:"legend",zIndex:13}),this.itemSelection=er.select(this.group,sr),this.spriteRenderer=void 0,this.oldSize=[0,0],this.pages=[],this.maxPageSize=[0,0],this.paginationTrackingIndex=0,this.truncatedItems=new Set,this._data=[],this._symbolsDirty=!0,this.toggleSeries=!0,this.item=new $v,this.listeners=new Nl,this.enabled=!0,this.position="bottom",this.spacing=20,this.destroyFns=[],this.size=[0,0],this._visible=!0,this.item.marker.parent=this,this.pagination=new xu(t=>e.updateService.update(t),t=>this.updatePageNumber(t)),this.pagination.attachPagination(this.group),this.destroyFns.push(e.contextMenuRegistry.registerDefaultAction({id:kg,type:"legend",label:"contextMenuToggleSeriesVisibility",action:t=>this.contextToggleVisibility(t)}),e.contextMenuRegistry.registerDefaultAction({id:tR,type:"legend",label:"contextMenuToggleOtherSeries",action:t=>this.contextToggleOtherSeries(t)}),e.legendManager.addListener("legend-change",this.onLegendDataChange.bind(this))),this.destroyFns.push(e.layoutManager.registerElement(1,t=>this.positionLegend(t)),e.localeManager.addListener("locale-changed",()=>this.onLocaleChanged()),()=>this.group.remove()),this.domProxy=new Pr(this.ctx,this.id),this.ctx.historyManager.addMementoOriginator(e.legendManager)}set data(e){this.domProxy.onDataUpdate(this._data,e),this._data=e,this._symbolsDirty=!0,this.updateGroupVisibility()}get data(){return this._data}onLegendDataChange({legendData:e=[]}){if(!this.enabled)return;let t=e.filter(a=>!a.hideInLegend),{data:n}=this;yo(e,n)||(this.data=t)}destroy(){this.ctx.domManager.removeChild("canvas-overlay",`${this.id}-toolbar`),this.ctx.domManager.removeChild("canvas-overlay",`${this.id}-pagination`),this.destroyFns.forEach(e=>e()),this.pagination.destroy(),this.itemSelection.clear(),this.domProxy.destroy()}onMarkerShapeChange(){this.itemSelection.clear(),this.group.markDirty()}getOrientation(){if(this.orientation!==void 0)return this.orientation;switch(this.position){case"right":case"left":return"vertical";case"bottom":case"top":return"horizontal"}}set visible(e){this._visible=e,this.updateGroupVisibility()}get visible(){return this._visible}updateGroupVisibility(){this.group.visible=this.enabled&&this.visible&&this.data.length>0}attachLegend(e){e.appendChild(this.group)}getItemLabel(e){let{ctx:{callbackCache:t}}=this,{formatter:n}=this.item.label;if(n){let a=e.datum;return t.call(n,ge({itemId:e.itemId,value:e.label.text,seriesId:e.seriesId},a&&{datum:a}))}return e.label.text}calcLayout(e,t){var qe;let{paddingX:n,paddingY:a,label:u,maxWidth:y,label:{maxLength:k=1/0,fontStyle:R,fontWeight:F,fontSize:_,fontFamily:V}}=this.item,K=[...this.data];this.reverseOrder&&K.reverse(),this.itemSelection.update(K);let q=[],$=ho.toFontString(u),te=.8,se=y!=null?y:e*te,de=this.calculateSpriteDimensions();if((qe=this.spriteRenderer)!=null||(this.spriteRenderer=new Eb),this.spriteRenderer.resize(de),this.itemSelection.each((et,$e)=>{var wt;et.fontStyle=R,et.fontWeight=F,et.fontSize=_,et.fontFamily=V;let lt=this.updateMarkerLabel(this.spriteRenderer,et,$e,de),at=(wt=$e.itemId)!=null?wt:$e.id,ht=this.getItemLabel($e),vt=(ht!=null?ht:"<unknown>").replace(/\r?\n/g," ");et.text=this.truncate(vt,k,se,lt,$,at),q.push(et.getBBox())}),this._symbolsDirty=!1,e=Math.max(1,e),t=Math.max(1,t),!isFinite(e))return{};let pe=this.size,Ce=this.oldSize;pe[0]=e,pe[1]=t,(pe[0]!==Ce[0]||pe[1]!==Ce[1])&&(Ce[0]=pe[0],Ce[1]=pe[1]);let{pages:Se,maxPageHeight:ve,maxPageWidth:ke}=this.updatePagination(q,e,t),De=this.pages;this.pages=Se,this.maxPageSize=[ke-n,ve-a];let Te=this.pagination.currentPage,ze=this.pages[Te];return this.pages.length<1||!ze?(this.visible=!1,{oldPages:De}):(this.visible=!0,this.updatePositions(Te),this.update(),{oldPages:De})}isCustomMarker(e,t){return e&&t!==void 0&&typeof t!="string"}calcSymbolsEnabled(e){var k;let{showSeriesStroke:t,marker:n}=this.item,a=!!n.enabled||!t||((k=e.marker.enabled)!=null?k:!0),u=!!(e.line&&t),y=this.isCustomMarker(a,e.marker.shape);return{markerEnabled:a,lineEnabled:u,isCustomMarker:y}}calcSymbolsLengths(e){var K;let{marker:t,line:n}=this.item,{markerEnabled:a,lineEnabled:u}=this.calcSymbolsEnabled(e),{strokeWidth:y}=this.getMarkerStyles(e),{strokeWidth:k}=u?this.getLineStyles(e):{strokeWidth:0},R,{shape:F}=e.marker;if(this.isCustomMarker(a,F)){let q=ca(F),$=new q;$.updatePath();let te=$.getBBox();R=Math.max(te.width,te.height)}let _=a?t.size:0,V=u?(K=n.length)!=null?K:25:0;return{markerLength:_,markerStrokeWidth:y,lineLength:V,lineStrokeWidth:k,customMarkerSize:R}}calculateSpriteDimensions(){let e=0,t=0,n=0,a=0;return this.itemSelection.each((y,k)=>{let{symbol:R}=k,{markerLength:F,markerStrokeWidth:_,lineLength:V,lineStrokeWidth:K,customMarkerSize:q=-1/0}=this.calcSymbolsLengths(R),$=F+_;a=Math.max(a,V,q,F),t=Math.max(t,V,q,$),n=Math.max(n,K,$),e=Math.max(e,_+.5)}),t+=e*2,n+=e*2,{spritePixelRatio:ia().devicePixelRatio,spriteAAPadding:e,spriteWidth:t,spriteHeight:n,markerWidth:a}}updateMarkerLabel(e,t,n,a){let{marker:u,paddingX:y}=this.item,{markerWidth:k}=a,{symbol:R}=n,F=y,{markerEnabled:_,lineEnabled:V,isCustomMarker:K}=this.calcSymbolsEnabled(R);if(this._symbolsDirty){let{shape:de=R.marker.shape}=u,pe=ca(de);t.updateSymbols(new pe({zIndex:1}),new ms({zIndex:0}))}let q=u.padding,{marker:$,line:te}=t;$!=null&&($.size=_||!V?u.size:0);let se={length:k,spacing:q,isCustomMarker:K};if((_||V)&&(F+=q+k),$){let{strokeWidth:de,fill:pe,stroke:Ce,fillOpacity:Se,strokeOpacity:ve}=this.getMarkerStyles(R);$.fill=pe,$.stroke=Ce,$.strokeWidth=de,$.fillOpacity=Se,$.strokeOpacity=ve}if(!V&&te!=null)te.strokeWidth=0;else if(te){let de=this.getLineStyles(R);te.stroke=de.stroke,te.strokeOpacity=de.strokeOpacity,te.strokeWidth=de.strokeWidth,te.lineDash=de.lineDash}return t.update(e,a,se),F}truncate(e,t,n,a,u,y){let k=!1;e.length>t&&(e=e.substring(0,t),k=!0);let R=Zh.getMeasurer({font:u}),F=mv.truncateLine(e,R,n-a,k);return F.endsWith(ho.EllipsisChar)?this.truncatedItems.add(y):this.truncatedItems.delete(y),F}updatePagination(e,t,n){let a=this.getOrientation(),u=Math.min(this.paginationTrackingIndex,e.length);this.pagination.orientation=a,this.pagination.translationX=0,this.pagination.translationY=0;let{pages:y,maxPageHeight:k,maxPageWidth:R,paginationBBox:F,paginationVertical:_}=this.calculatePagination(e,t,n),V=y.findIndex(Se=>Se.endIndex>=u);this.pagination.currentPage=fn(0,V,y.length-1);let{paddingX:K,paddingY:q}=this.item,$=8,te=R-K,se=k-q,de=0,pe=-F.y-this.item.marker.size/2;_?pe+=se+$:(de+=-F.x+te+$,pe+=(se-F.height)/2),this.pagination.translationX=de,this.pagination.translationY=pe,this.pagination.update(),this.pagination.updateMarkers();let Ce=0;return this.itemSelection.each((Se,ve,ke)=>{var De,Te;ke>((Te=(De=y[Ce])==null?void 0:De.endIndex)!=null?Te:1/0)&&Ce++,Se.pageIndex=Ce}),{maxPageHeight:k,maxPageWidth:R,pages:y}}calculatePagination(e,t,n){var se,de,pe;let{paddingX:a,paddingY:u}=this.item,y=this.getOrientation(),k=["left","right"].includes(this.position),R=this.pagination.getBBox(),F=new ki(0,0,0,0),_=[],V=0,K=0,q=0,$=Ce=>Ce.width===R.width&&Ce.height===R.height,te=this.maxWidth!==void 0&&this.maxHeight!==void 0;do{if(q++>10){hi.warn("unable to find stable legend layout.");break}R=F;let Ce=t-(k?0:R.width),Se=n-(k?R.height:0),ve=Mg({orientation:y,bboxes:e,maxHeight:Se,maxWidth:Ce,itemPaddingY:u,itemPaddingX:a,forceResult:te});_=(se=ve==null?void 0:ve.pages)!=null?se:[],V=(de=ve==null?void 0:ve.maxPageWidth)!=null?de:0,K=(pe=ve==null?void 0:ve.maxPageHeight)!=null?pe:0;let ke=_.length;if(this.pagination.visible=ke>1,this.pagination.totalPages=ke,this.pagination.update(),this.pagination.updateMarkers(),F=this.pagination.getBBox(),!this.pagination.visible)break}while(!$(F));return{maxPageWidth:V,maxPageHeight:K,pages:_,paginationBBox:F,paginationVertical:k}}updatePositions(e=0){let{item:{paddingY:t},itemSelection:n,pages:a}=this;if(a.length<1||!a[e])return;let{columns:u,startIndex:y,endIndex:k}=a[e],R=0,F=0,_=u.length,V=u[0].indices.length,K=this.getOrientation()==="horizontal",q=u[0].bboxes[0].height+t,$=[];n.each((te,se,de)=>{var ke,De;if(de<y||de>k){te.visible=!1;return}let pe=de-y,Ce,Se;K?(Ce=pe%_,Se=Math.floor(pe/_)):(Ce=Math.floor(pe/V),Se=pe%V),te.visible=!0;let ve=u[Ce];ve&&(F=Math.floor(q*Se),R=Math.floor((ke=$[Se])!=null?ke:0),$[Se]=((De=$[Se])!=null?De:0)+ve.columnWidth,te.translationX=R,te.translationY=F)})}updatePageNumber(e){let{itemSelection:t,group:n,pagination:a,pages:u,toggleSeries:y}=this,{startIndex:k,endIndex:R}=u[e];k===0?this.paginationTrackingIndex=0:e===u.length-1?this.paginationTrackingIndex=R:this.paginationTrackingIndex=Math.floor((k+R)/2),this.pagination.update(),this.pagination.updateMarkers(),this.updatePositions(e),this.domProxy.onPageChange({itemSelection:t,group:n,pagination:a,interactive:y}),this.ctx.updateService.update(6)}update(){let{label:{color:e}}=this.item;this.itemSelection.each((t,n)=>{t.setEnabled(n.enabled),t.color=e}),this.updateContextMenu()}updateContextMenu(){let{toggleSeries:e,ctx:{contextMenuRegistry:t}}=this;e?(t.hideAction(kg),t.hideAction(tR)):(t.showAction(kg),t.showAction(tR))}getLineStyles(e){var k,R;let{stroke:t,strokeOpacity:n=1,strokeWidth:a,lineDash:u}=(k=e.line)!=null?k:{},y=Math.min(2,a!=null?a:1);return{stroke:t,strokeOpacity:n,strokeWidth:(R=this.item.line.strokeWidth)!=null?R:y,lineDash:u}}getMarkerStyles(e){var R;let{fill:t,stroke:n,strokeOpacity:a=1,fillOpacity:u=1,strokeWidth:y}=e.marker,k=Math.min(2,y!=null?y:1);return{fill:t,stroke:n,strokeOpacity:a,fillOpacity:u,strokeWidth:(R=this.item.marker.strokeWidth)!=null?R:k}}computePagedBBox(){let e=Wi.computeChildrenBBox(this.group.children());if(this.pages.length>1){let[t,n]=this.maxPageSize;e.height=Math.max(n,e.height),e.width=Math.max(t,e.width)}return e}findNode(e){var a;let{datum:t,proxyButton:n}=(a=this.itemSelection.select(u=>{var y;return((y=u.datum)==null?void 0:y.itemId)===e.itemId})[0])!=null?a:{};if(t===void 0||n===void 0)throw new Error(`AG Charts - Missing required properties { datum: ${t}, proxyButton: ${JSON.stringify(n)} }`);return{datum:t,proxyButton:n}}contextToggleVisibility(e){let{datum:t,proxyButton:n}=this.findNode(e);this.doClick(e.event,t,n)}contextToggleOtherSeries(e){this.doDoubleClick(e.event,this.findNode(e).datum)}onContextClick(e,t){var R;let n=t.datum;this.preventHidingAll&&((R=this.contextMenuDatum)!=null&&R.enabled)&&this.getVisibleItemCount()<=1?this.ctx.contextMenuRegistry.disableAction(kg):this.ctx.contextMenuRegistry.enableAction(kg);let{offsetX:a,offsetY:u}=e,{x:y,y:k}=Wo.toCanvasPoint(t,a,u);this.ctx.contextMenuRegistry.dispatchContext("legend",{sourceEvent:e,canvasX:y,canvasY:k},{legendItem:n})}onClick(e,t,n){this.doClick(e,t,n)&&e.preventDefault()}getVisibleItemCount(){return this.ctx.chartService.series.flatMap(e=>e.getLegendData("category")).filter(e=>e.enabled).length}doClick(e,t,n){var se;let{listeners:{legendItemClick:a},ctx:{chartService:u,highlightManager:y},preventHidingAll:k,toggleSeries:R}=this;if(!t)return!1;let{legendType:F,seriesId:_,itemId:V,enabled:K}=t,q=u.series.find(de=>de.id===_);if(!q)return!1;let $=K,te=zO("click",V,q.id,e);return a==null||a(te.apiEvent),te.defaultPrevented||(R&&($=!K,k&&!$&&this.getVisibleItemCount()<2&&($=!0),n.setChecked($),this.ctx.chartEventManager.legendItemClick(F,q,V,$,t.legendItemName)),$?y.updateHighlight(this.id,{series:q,itemId:V,datum:void 0}):y.updateHighlight(this.id),this.ctx.legendManager.update(),this.ctx.updateService.update(2,{forceNodeDataRefresh:!0,skipAnimations:(se=t.skipAnimations)!=null?se:!1})),!0}onDoubleClick(e,t){this.doDoubleClick(e,t)&&e.preventDefault()}doDoubleClick(e,t){var K;let{listeners:{legendItemDoubleClick:n},ctx:{chartService:a},toggleSeries:u}=this;if(a.mode==="integrated"||!t)return!1;let{legendType:y,id:k,itemId:R,seriesId:F}=t,_=a.series.find(q=>q.id===k);if(!_)return!1;let V=zO("dblclick",R,_.id,e);if(n==null||n(V.apiEvent),V.defaultPrevented)return!0;if(u){let q=a.series.flatMap(se=>se.getLegendData("category")),$=q.filter(se=>se.enabled).length,te=q.find(se=>se.itemId===R&&se.seriesId===F);this.ctx.chartEventManager.legendItemDoubleClick(y,_,R,(K=te==null?void 0:te.enabled)!=null?K:!1,$,te==null?void 0:te.legendItemName)}return this.ctx.legendManager.update(),this.ctx.updateService.update(2,{forceNodeDataRefresh:!0}),!0}toTooltipMeta(e,t){let n;if(e instanceof FocusEvent){let{x:y,y:k}=Wo.toCanvas(t).computeCenter();n={type:"keyboard",canvasX:y,canvasY:k}}else{e.preventDefault();let{x:y,y:k}=Wo.toCanvasPoint(t,e.offsetX,e.offsetY);n={type:"hover",canvasX:y,canvasY:k}}let{canvasX:a,canvasY:u}=n;return{canvasX:a,canvasY:u,lastPointerEvent:n,showArrow:!1}}onHover(e,t){var u;if(!this.enabled)throw new Error("AG Charts - onHover handler called on disabled legend");this.pagination.setPage(t.pageIndex);let n=t.datum,a=n?this.ctx.chartService.series.find(y=>y.id===(n==null?void 0:n.id)):void 0;if(n&&this.truncatedItems.has((u=n.itemId)!=null?u:n.id)){let y=this.toTooltipMeta(e,t);this.ctx.tooltipManager.updateTooltip(this.id,y,{title:this.getItemLabel(n)})}else this.ctx.tooltipManager.removeTooltip(this.id);n!=null&&n.enabled&&a?this.updateHighlight({series:a,itemId:n==null?void 0:n.itemId,datum:void 0}):this.updateHighlight()}onLeave(){this.ctx.tooltipManager.removeTooltip(this.id),this.updateHighlight()}updateHighlight(e){let t=this.ctx.interactionManager.getState();t===32?this.ctx.highlightManager.updateHighlight(this.id,e):t===2&&(this.pendingHighlightDatum=e,this.ctx.animationManager.onBatchStop(()=>{this.ctx.highlightManager.updateHighlight(this.id,this.pendingHighlightDatum)}))}onLocaleChanged(){this.domProxy.onLocaleChanged(this.ctx.localeManager,this.itemSelection,this)}positionLegend(e){let t=this.positionLegendScene(e);this.positionLegendDOM(t)}positionLegendScene(e){if(!this.enabled||!this.data.length)return;let{layoutBox:t}=e,{x:n,y:a,width:u,height:y}=t,[k,R]=this.calculateLegendDimensions(t),{oldPages:F}=this.calcLayout(k,R),_=this.computePagedBBox(),V=()=>{switch(this.position){case"top":case"left":return 0;case"bottom":return y-_.height;case"right":default:return u-_.width}};if(this.visible){let K=this.spacing,q,$;switch(this.position){case"top":case"bottom":q=(u-_.width)/2,$=V(),t.shrink(_.height+K,this.position);break;case"left":case"right":default:q=V(),$=(y-_.height)/2,t.shrink(_.width+K,this.position)}this.group.translationX=Math.floor(n+q-_.x),this.group.translationY=Math.floor(a+$-_.y)}return F}positionLegendDOM(e){let{ctx:t,itemSelection:n,pagination:a,pages:u,toggleSeries:y,group:k}=this,R=this.visible&&this.enabled;this.domProxy.update({visible:R,interactive:y,ctx:t,itemSelection:n,group:k,pagination:a,oldPages:e,newPages:u,datumReader:this,itemListener:this})}calculateLegendDimensions(e){let{width:t,height:n}=e,a=t/n,u=.5,y=.2,k=.25,R,F;switch(this.position){case"top":case"bottom":{let _=a<1?Math.min(u,y*(1/a)):y;R=this.maxWidth?Math.min(this.maxWidth,t):t,F=this.maxHeight?Math.min(this.maxHeight,n):Math.round(n*_);break}case"left":case"right":default:{let _=a>1?Math.min(u,k*a):k;R=this.maxWidth?Math.min(this.maxWidth,t):Math.round(t*_),F=this.maxHeight?Math.min(this.maxHeight,n):n}}return[R,F]}},ks.className="Legend",b([Ge(Oi)],ks.prototype,"toggleSeries",2),b([Ge(Ei)],ks.prototype,"pagination",2),b([Ge(Ei)],ks.prototype,"item",2),b([Ge(Ei)],ks.prototype,"listeners",2),b([gv((e,t,n)=>{if(e.updateGroupVisibility(),t===n)return;let{ctx:{legendManager:a,stateManager:u}}=e;n===!1&&t===!0&&u.restoreState(a)}),Ge(Oi)],ks.prototype,"enabled",2),b([Ge(Uy)],ks.prototype,"position",2),b([Ge(ni,{optional:!0})],ks.prototype,"maxWidth",2),b([Ge(ni,{optional:!0})],ks.prototype,"maxHeight",2),b([Ge(Oi,{optional:!0})],ks.prototype,"reverseOrder",2),b([Ge(uo(["horizontal","vertical"],"an orientation"),{optional:!0})],ks.prototype,"orientation",2),b([Ge(Oi,{optional:!0})],ks.prototype,"preventHidingAll",2),b([Ge(ni)],ks.prototype,"spacing",2)}}),iR,nR=A({"packages/ag-charts-community/src/chart/legend/legendModule.ts"(){"use strict";Uz(),iR={type:"legend",optionsKey:"legend",identifier:"category",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new ks(e),packageType:"community",removable:"standalone-only"}}}),GO={};E(GO,{CARTESIAN_AXIS_TYPE:()=>PL,CARTESIAN_POSITION:()=>RL,FONT_SIZE:()=>TL,POLAR_AXIS_SHAPE:()=>aR,POLAR_AXIS_TYPE:()=>F1});var TL,RL,PL,F1,aR,Mf=A({"packages/ag-charts-community/src/chart/themes/constants.ts"(){"use strict";TL=(e=>(e[e.SMALL=12]="SMALL",e[e.MEDIUM=13]="MEDIUM",e[e.LARGE=17]="LARGE",e))(TL||{}),RL=(e=>(e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e))(RL||{}),PL=(e=>(e.CATEGORY="category",e.GROUPED_CATEGORY="grouped-category",e.ORDINAL_TIME="ordinal-time",e.NUMBER="number",e.TIME="time",e.LOG="log",e))(PL||{}),F1=(e=>(e.ANGLE_CATEGORY="angle-category",e.ANGLE_NUMBER="angle-number",e.RADIUS_CATEGORY="radius-category",e.RADIUS_NUMBER="radius-number",e))(F1||{}),aR=(e=>(e.CIRCLE="circle",e.POLYGON="polygon",e))(aR||{})}}),_1={};E(_1,{DEFAULT_ANNOTATION_BACKGROUND_FILL:()=>Fd,DEFAULT_ANNOTATION_COLOR:()=>gc,DEFAULT_ANNOTATION_HANDLE_FILL:()=>Dg,DEFAULT_ANNOTATION_STATISTICS_COLOR:()=>X1,DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE:()=>Z1,DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL:()=>uR,DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE:()=>hR,DEFAULT_ANNOTATION_STATISTICS_FILL:()=>Y1,DEFAULT_ANNOTATION_STATISTICS_STROKE:()=>ow,DEFAULT_AXIS_GRID_COLOUR:()=>Gp,DEFAULT_AXIS_LINE_COLOUR:()=>hc,DEFAULT_BACKGROUND_COLOUR:()=>Fk,DEFAULT_CAPTION_ALIGNMENT:()=>ey,DEFAULT_CAPTION_LAYOUT_STYLE:()=>Jv,DEFAULT_COLOURS:()=>oR,DEFAULT_CROSS_LINES_COLOUR:()=>iC,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:()=>Od,DEFAULT_FIBONACCI_STROKES:()=>q1,DEFAULT_FONT_FAMILY:()=>$a,DEFAULT_FUNNEL_SERIES_COLOR_RANGE:()=>Vp,DEFAULT_GAUGE_SERIES_COLOR_RANGE:()=>Dh,DEFAULT_GRIDLINE_ENABLED:()=>jp,DEFAULT_HIERARCHY_FILLS:()=>U1,DEFAULT_HIERARCHY_STROKES:()=>K1,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:()=>Bp,DEFAULT_INVERTED_BACKGROUND_COLOUR:()=>tw,DEFAULT_INVERTED_LABEL_COLOUR:()=>z1,DEFAULT_LABEL_COLOUR:()=>mo,DEFAULT_MUTED_LABEL_COLOUR:()=>nl,DEFAULT_NAVIGATOR_STROKE:()=>kf,DEFAULT_PADDING:()=>Ag,DEFAULT_POLAR_SERIES_STROKE:()=>H1,DEFAULT_SEPARATION_LINES_COLOUR:()=>nC,DEFAULT_SHADOW_COLOUR:()=>Qv,DEFAULT_SPARKLINE_CROSSHAIR_STROKE:()=>W1,DEFAULT_TEXTBOX_COLOR:()=>_k,DEFAULT_TEXTBOX_FILL:()=>$1,DEFAULT_TEXTBOX_STROKE:()=>Q1,DEFAULT_TEXT_ANNOTATION_COLOR:()=>ty,DEFAULT_TOOLBAR_POSITION:()=>iy,IS_COMMUNITY:()=>ew,IS_DARK_THEME:()=>JS,IS_ENTERPRISE:()=>N1,PALETTE_ALT_DOWN_FILL:()=>cR,PALETTE_ALT_DOWN_STROKE:()=>sR,PALETTE_ALT_NEUTRAL_FILL:()=>dR,PALETTE_ALT_NEUTRAL_STROKE:()=>j1,PALETTE_ALT_UP_FILL:()=>lR,PALETTE_ALT_UP_STROKE:()=>rR,PALETTE_DOWN_FILL:()=>nw,PALETTE_DOWN_STROKE:()=>iw,PALETTE_NEUTRAL_FILL:()=>V1,PALETTE_NEUTRAL_STROKE:()=>aw,PALETTE_UP_FILL:()=>G1,PALETTE_UP_STROKE:()=>B1});var JS,ew,N1,$a,mo,z1,Bp,nl,Gp,hc,iC,nC,Fk,tw,Qv,oR,Ag,Jv,ey,kf,B1,iw,G1,nw,aw,V1,rR,sR,lR,cR,dR,j1,H1,Od,W1,Dh,Vp,U1,K1,gc,q1,ty,Fd,Dg,Y1,ow,X1,Z1,uR,hR,$1,Q1,_k,iy,jp,_o=A({"packages/ag-charts-community/src/chart/themes/symbols.ts"(){"use strict";JS=Symbol("is-dark-theme"),ew=Symbol("is-community"),N1=Symbol("is-enterprise"),$a=Symbol("default-font"),mo=Symbol("default-label-colour"),z1=Symbol("default-inverted-label-colour"),Bp=Symbol("default-inside-series-label-colour"),nl=Symbol("default-muted-label-colour"),Gp=Symbol("default-axis-grid-colour"),hc=Symbol("default-axis-line-colour"),iC=Symbol("default-cross-lines-colour"),nC=Symbol("default-separation-lines-colour"),Fk=Symbol("default-background-colour"),tw=Symbol("default-inverted-background-colour"),Qv=Symbol("default-shadow-colour"),oR=Symbol("default-colours"),Ag=Symbol("default-padding"),Jv=Symbol("default-caption-layout-style"),ey=Symbol("default-caption-alignment"),kf=Symbol("default-navigator-stroke"),B1=Symbol("palette-up-stroke"),iw=Symbol("palette-down-stroke"),G1=Symbol("palette-up-fill"),nw=Symbol("palette-down-fill"),aw=Symbol("palette-neutral-stroke"),V1=Symbol("palette-neutral-fill"),rR=Symbol("palette-alt-up-stroke"),sR=Symbol("palette-alt-down-stroke"),lR=Symbol("palette-alt-up-fill"),cR=Symbol("palette-alt-down-fill"),dR=Symbol("palette-gray-fill"),j1=Symbol("palette-gray-stroke"),H1=Symbol("default-polar-series-stroke"),Od=Symbol("default-diverging-series-colour-range"),W1=Symbol("default-sparkline-crosshair-stroke"),Dh=Symbol("default-gauge-series-colour-range"),Vp=Symbol("default-funnel-series-colour-range"),U1=Symbol("default-hierarchy-fills"),K1=Symbol("default-hierarchy-strokes"),gc=Symbol("default-annotation-stroke"),q1=Symbol("default-hierarchy-strokes"),ty=Symbol("default-text-annotation-color"),Fd=Symbol("default-annotation-background-fill"),Dg=Symbol("default-annotation-handle-fill"),Y1=Symbol("default-annotation-statistics-fill"),ow=Symbol("default-annotation-statistics-stroke"),X1=Symbol("default-annotation-statistics-color"),Z1=Symbol("default-annotation-statistics-divider-stroke"),uR=Symbol("default-annotation-statistics-fill"),hR=Symbol("default-annotation-statistics-stroke"),$1=Symbol("default-textbox-fill"),Q1=Symbol("default-textbox-stroke"),_k=Symbol("default-textbox-color"),iy=Symbol("default-toolbar-position"),jp=Symbol("default-gridline-enabled")}});function gR(e,t){return n=>t(n)?[He(ge({},e[0]),{position:e[1].position}),He(ge({},e[1]),{position:e[0].position})]:e}function Nk({takeColors:e}){let{fills:[t],strokes:[n]}=e(1);return{fill:t,stroke:n}}function pR(e){return{marker:Nk(e)}}var rw=A({"packages/ag-charts-community/src/chart/themes/util.ts"(){"use strict"}});function J1(e,t,n,a,u){let{addPhaseFn:y,updatePhaseFn:k,removePhaseFn:R}=u,F=(_,V,K)=>{n.animate({id:`${e}_${t}_${V.id}_${_}`,groupId:e,from:0,to:1,ease:bo,collapsable:!1,onUpdate(q,$){$&&_!=="removed"||(V.path.clear(!0),K(q,V),V.checkPathDirty())},onStop(){_==="added"&&(V.path.clear(!0),K(1,V),V.checkPathDirty())},phase:zs[_]})};for(let _ of a)n.isSkipped()||(F("removed",_,R),F("updated",_,k)),F("added",_,y)}var eE=A({"packages/ag-charts-community/src/motion/pathMotion.ts"(){"use strict";_y(),Gr()}});function Ea({id:e},t,n,...a){Ju(e,t,n,a,{opacity:0},{opacity:1},{phase:"trailing"})}function aC({id:e},t,n,...a){Ju(e,t,n,a,{opacity:1},{opacity:0},{phase:"remove"})}function Af(e){return{opacity:1}}var Eh=A({"packages/ag-charts-community/src/chart/series/seriesLabelUtil.ts"(){"use strict";Gr()}}),tE,mR=A({"packages/ag-charts-community/src/scene/util/changeDetectableProperties.ts"(){"use strict";zn(),tE=class extends dn{constructor(){super(...arguments),this._dirty=!0}markDirty(){this._dirty=!0}markClean(e){this._dirty=!1}isDirty(){return this._dirty}}}}),Mu,zk=A({"packages/ag-charts-community/src/scene/dropShadow.ts"(){"use strict";Ai(),xa(),mR(),Mu=class extends tE{constructor(){super(...arguments),this.enabled=!0,this.color="rgba(0, 0, 0, 0.5)",this.xOffset=0,this.yOffset=0,this.blur=5}},b([Ge(Oi),Mi()],Mu.prototype,"enabled",2),b([Ge(sa),Mi()],Mu.prototype,"color",2),b([Ge(Bn),Mi()],Mu.prototype,"xOffset",2),b([Ge(Bn),Mi()],Mu.prototype,"yOffset",2),b([Ge(ni),Mi()],Mu.prototype,"blur",2)}}),LL,_d,iE=A({"packages/ag-charts-community/src/chart/series/seriesMarker.ts"(){"use strict";nx(),mR(),Ai(),fu(),LL=ka(e=>S1(e)||typeof e=="function","a marker shape keyword such as 'circle', 'diamond' or 'square' or an object extending the Marker class"),_d=class extends tE{constructor(){super(...arguments),this.enabled=!0,this.shape="circle",this.size=6,this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1}getStyle(){let{size:e,shape:t,fill:n,fillOpacity:a,stroke:u,strokeWidth:y,strokeOpacity:k}=this;return{size:e,shape:t,fill:n,fillOpacity:a,stroke:u,strokeWidth:y,strokeOpacity:k}}getDiameter(){return this.size+this.strokeWidth}},b([Ge(Oi),Mi()],_d.prototype,"enabled",2),b([Ge(LL),Mi()],_d.prototype,"shape",2),b([Ge(ni),Mi()],_d.prototype,"size",2),b([Ge(sa,{optional:!0}),Mi()],_d.prototype,"fill",2),b([Ge(Cn),Mi()],_d.prototype,"fillOpacity",2),b([Ge(sa,{optional:!0}),Mi()],_d.prototype,"stroke",2),b([Ge(ni),Mi()],_d.prototype,"strokeWidth",2),b([Ge(Cn),Mi()],_d.prototype,"strokeOpacity",2),b([Ge(vl,{optional:!0}),Mi()],_d.prototype,"itemStyler",2)}}),OL,pc,oC=A({"packages/ag-charts-community/src/chart/series/seriesTooltip.ts"(){"use strict";zn(),Ai(),Js(),OL=class extends dn{constructor(){super(...arguments),this.enabled=!1}},b([Ge(Oi)],OL.prototype,"enabled",2),pc=class extends dn{constructor(){super(...arguments),this.enabled=!0,this.interaction=new OL,this.position=new Wv,this.range=void 0,this.class=void 0}formatTooltip(e,t){var a;let n=(a=this.renderer)==null?void 0:a.call(this,t);return typeof n=="string"?n:n!=null?ge(ge({},e),n):e}},b([Ge(Oi)],pc.prototype,"enabled",2),b([Ge(Oi,{optional:!0})],pc.prototype,"showArrow",2),b([Ge(vl,{optional:!0})],pc.prototype,"renderer",2),b([Ge(Ei)],pc.prototype,"interaction",2),b([Ge(Ei)],pc.prototype,"position",2),b([Ge(wm,{optional:!0})],pc.prototype,"range",2),b([Ge(ei,{optional:!0})],pc.prototype,"class",2)}}),r,l,m,D=A({"packages/ag-charts-community/src/chart/series/cartesian/interpolationProperties.ts"(){"use strict";zn(),Ai(),r=uo(["linear","smooth","step"],"a line style"),l=uo(["start","middle","end"]),m=class extends dn{constructor(){super(...arguments),this.type="linear",this.tension=1,this.position="end"}},b([Ge(r)],m.prototype,"type",2),b([Ge(Cn)],m.prototype,"tension",2),b([Ge(l)],m.prototype,"position",2)}}),L,B=A({"packages/ag-charts-community/src/chart/series/cartesian/areaSeriesProperties.ts"(){"use strict";zk(),Ai(),yd(),iE(),oC(),Fl(),D(),L=class extends yu{constructor(){super(...arguments),this.xName=void 0,this.fill="#c16068",this.fillOpacity=1,this.stroke="#874349",this.strokeWidth=2,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.interpolation=new m,this.shadow=new Mu,this.marker=new _d,this.label=new mr,this.tooltip=new pc,this.connectMissingData=!1}},b([Ge(ei)],L.prototype,"xKey",2),b([Ge(ei,{optional:!0})],L.prototype,"xName",2),b([Ge(ei)],L.prototype,"yKey",2),b([Ge(ei,{optional:!0})],L.prototype,"yName",2),b([Ge(ei,{optional:!0})],L.prototype,"yFilterKey",2),b([Ge(ni,{optional:!0})],L.prototype,"normalizedTo",2),b([Ge(sa)],L.prototype,"fill",2),b([Ge(Cn)],L.prototype,"fillOpacity",2),b([Ge(sa)],L.prototype,"stroke",2),b([Ge(ni)],L.prototype,"strokeWidth",2),b([Ge(Cn)],L.prototype,"strokeOpacity",2),b([Ge(hd)],L.prototype,"lineDash",2),b([Ge(ni)],L.prototype,"lineDashOffset",2),b([Ge(Ei)],L.prototype,"interpolation",2),b([Ge(Ei)],L.prototype,"shadow",2),b([Ge(Ei)],L.prototype,"marker",2),b([Ge(Ei)],L.prototype,"label",2),b([Ge(Ei)],L.prototype,"tooltip",2),b([Ge(Oi)],L.prototype,"connectMissingData",2)}});function H(e){switch(e.type){case"linear":case"step":return[{x:e.x0,y:e.y0},{x:e.x1,y:e.y1}];case"cubic":return[{x:e.cp0x,y:e.cp0y},{x:e.cp3x,y:e.cp3y}]}}function U(e){let t=H(e);return t[0].x>t[1].x&&t.reverse(),t}function X(e,t){let{x:n,y:a}=t;switch(e.type){case"linear":return{type:"linear",moveTo:e.moveTo,x0:n,y0:a,x1:n,y1:a};case"step":return{type:"step",moveTo:e.moveTo,x0:n,y0:a,x1:n,y1:a,stepX:n};case"cubic":return{type:"cubic",moveTo:e.moveTo,cp0x:n,cp0y:a,cp1x:n,cp1y:a,cp2x:n,cp2y:a,cp3x:n,cp3y:a}}}function Q(e,t,n){let[a,u]=H(e),y=u.x!==a.x?(n.x-t.x)/(u.x-a.x):0,k=u.y!==a.y?(n.y-t.y)/(u.y-a.y):0;switch(e.type){case"linear":return{type:"linear",moveTo:e.moveTo,x0:t.x,y0:t.y,x1:n.x,y1:n.y};case"cubic":return{type:"cubic",moveTo:e.moveTo,cp0x:t.x,cp0y:t.y,cp1x:n.x-(e.cp2x-a.x)*y,cp1y:n.y-(e.cp2y-a.y)*k,cp2x:n.x-(e.cp1x-a.x)*y,cp2y:n.y-(e.cp1y-a.y)*k,cp3x:n.x,cp3y:n.y};case"step":return{type:"step",moveTo:e.moveTo,x0:t.x,y0:t.y,x1:n.x,y1:n.y,stepX:n.x-(e.stepX-a.x)*y}}}function ie(e,t,n){let{moveTo:a}=e,[u,y]=U(e),{x:k,y:R}=u,{x:F,y:_}=y;if(n<k)return Q(e,u,u);if(t>F)return Q(e,y,y);switch(e.type){case"linear":{let V=R===_?void 0:(_-R)/(F-k),K=V==null?R:V*(t-k)+R,q=V==null?R:V*(n-k)+R;return{type:"linear",moveTo:a,x0:t,y0:K,x1:n,y1:q}}case"step":if(n<=e.stepX){let V=e.y0;return{type:"step",moveTo:a,x0:t,y0:V,x1:n,y1:V,stepX:n}}else if(t>=e.stepX){let V=e.y1;return{type:"step",moveTo:a,x0:t,y0:V,x1:n,y1:V,stepX:t}}else{let{y0:V,y1:K,stepX:q}=e;return{type:"step",moveTo:a,x0:t,y0:V,x1:n,y1:K,stepX:q}}case"cubic":{let V=JM(e.cp0x,e.cp1x,e.cp2x,e.cp3x,t),[K,q]=ek(e.cp0x,e.cp0y,e.cp1x,e.cp1y,e.cp2x,e.cp2y,e.cp3x,e.cp3y,V),$=JM(q[0].x,q[1].x,q[2].x,q[3].x,n);return[q,K]=ek(q[0].x,q[0].y,q[1].x,q[1].y,q[2].x,q[2].y,q[3].x,q[3].y,$),{type:"cubic",moveTo:a,cp0x:q[0].x,cp0y:q[0].y,cp1x:q[1].x,cp1y:q[1].y,cp2x:q[2].x,cp2y:q[2].y,cp3x:q[3].x,cp3y:q[3].y}}}}function ue(e){let t=[],n=0,a=NaN,u=NaN;for(let{x:y,y:k}of e){if(n>0){let R=n===1;t.push({type:"linear",moveTo:R,x0:a,y0:u,x1:y,y1:k})}n+=1,a=y,u=k}return t}function be(e,t){let n=[],a=0,u=NaN,y=NaN,k=typeof t=="number"?t:Me[t];for(let{x:R,y:F}of e){if(a>0){let _=a===1,V=u+(R-u)*k;n.push({type:"step",moveTo:_,x0:u,y0:y,x1:R,y1:F,stepX:V})}a+=1,u=R,y=F}return n}function ye(e,t){let n=Array.isArray(e)?e:Array.from(e);if(n.length<=1)return[];let a=n.map((y,k)=>{let R=k===0?y:n[k-1],F=k===n.length-1?y:n[k+1],_=k===0||k===n.length-1;if(Math.sign(R.y-y.y)===Math.sign(F.y-y.y))return 0;if(!_){let V=Math.abs(R.y-F.y),K=Math.abs(y.y-R.y)/V,q=Math.abs(y.y-F.y)/V;if(K<=Ie||1-K<=Ie||q<=Ie||1-q<=Ie)return 0}return(F.y-R.y)/(F.x-R.x)});a[1]===0&&(a[0]*=2),a[a.length-2]===0&&(a[a.length-1]*=2);let u=[];for(let y=1;y<n.length;y+=1){let k=n[y-1],R=a[y-1],F=n[y],_=a[y],V=F.x-k.x,K=F.y-k.y,q=V*t/3,$=V*R*t/3,te=V*t/3,se=V*_*t/3;_===0&&Math.abs($)>Math.abs(K)&&(q*=Math.abs(K/$),$=Math.sign($)*Math.abs(K)),R===0&&Math.abs(se)>Math.abs(K)&&(te*=Math.abs(K/se),se=Math.sign(se)*Math.abs(K)),u.push({type:"cubic",moveTo:y===1,cp0x:k.x,cp0y:k.y,cp1x:k.x+q,cp1y:k.y+$,cp2x:F.x-te,cp2y:F.y-se,cp3x:F.x,cp3y:F.y})}return u}var Me,Ie,Oe=A({"packages/ag-charts-community/src/chart/series/cartesian/lineInterpolation.ts"(){"use strict";uf(),Me={start:0,middle:.5,end:1},Ie=.05}});function Re(e,t,n){return(t-e)*n+e}function Be(e,t){let{x0:n,y0:a,x1:u,y1:y}=e,R=(y-a)/(u-n)*(t-n)+a;return{leftCp1x:n,leftCp1y:a,leftCp2x:t,leftCp2y:R,stepX:t,stepY0:R,stepY1:R,rightCp1x:t,rightCp1y:R,rightCp2x:u,rightCp2y:y}}function Ue(e,t){let{cp0x:n,cp0y:a,cp1x:u,cp1y:y,cp2x:k,cp2y:R,cp3x:F,cp3y:_}=e,V=JM(n,u,k,F,t),[K,q]=ek(n,a,u,y,k,R,F,_,V),$=K[3].y;return{leftCp1x:K[1].x,leftCp1y:K[1].y,leftCp2x:K[2].x,leftCp2y:K[2].y,stepX:t,stepY0:$,stepY1:$,rightCp1x:q[1].x,rightCp1y:q[1].y,rightCp2x:q[2].x,rightCp2y:q[2].y}}function Ne(e){let{x0:t,y0:n,x1:a,y1:u,stepX:y}=e;return{leftCp1x:(t+y)/2,leftCp1y:n,leftCp2x:(t+y)/2,leftCp2y:n,stepX:y,stepY0:n,stepY1:u,rightCp1x:(y+a)/2,rightCp1y:u,rightCp2x:(y+a)/2,rightCp2y:u}}function Qe(e,t){return e.type==="linear"?Be(e,t):e.type==="cubic"?Ue(e,t):Ne(e)}function nt(e,t,n,a,u,y,k){switch(t){case 0:k?e.moveTo(u,y):e.moveTo(n,a);break;case 1:k?e.lineTo(u,y):e.lineTo(n,a);break}}function rt(e,t,n,a,u,y){y?e.lineTo(t,n):e.lineTo(a,u)}function ut(e,t,n,a,u,y,k,R,F,_){_?e.cubicCurveTo(y,k,a,u,t,n):e.cubicCurveTo(a,u,y,k,R,F)}function Mt(e,t,n,a,u,y,k){k?(e.lineTo(y,u),e.lineTo(y,n),e.lineTo(t,n)):(e.lineTo(y,n),e.lineTo(y,u),e.lineTo(a,u))}function Tt(e,t,n,a){let[u,y]=H(t);switch(nt(e,n,u.x,u.y,y.x,y.y,a),t.type){case"linear":rt(e,t.x0,t.y0,t.x1,t.y1,a);break;case"cubic":ut(e,t.cp0x,t.cp0y,t.cp1x,t.cp1y,t.cp2x,t.cp2y,t.cp3x,t.cp3y,a);break;case"step":Mt(e,t.x0,t.y0,t.x1,t.y1,t.stepX,a);break}}function _t(e,t,n){let[a,u]=H(e),[y,k]=H(t),R=Re(a.x,y.x,n),F=Re(a.y,y.y,n),_=Re(u.x,k.x,n),V=Re(u.y,k.y,n);return[{x:R,y:F},{x:_,y:V}]}function Kt(e,t,n,a,u,y){let[{x:k,y:R},{x:F,y:_}]=_t(t,n,a);if(nt(e,u,k,R,F,_,y),t.type==="cubic"&&n.type==="cubic"){let V=Re(t.cp1x,n.cp1x,a),K=Re(t.cp1y,n.cp1y,a),q=Re(t.cp2x,n.cp2x,a),$=Re(t.cp2y,n.cp2y,a);ut(e,k,R,V,K,q,$,F,_,y)}else if(t.type==="step"&&n.type==="step"){let V=Re(t.stepX,n.stepX,a);Mt(e,k,R,F,_,V,y)}else if(t.type==="linear"&&n.type==="linear")rt(e,k,R,F,_,y);else{let V;t.type==="step"?V=t.stepX:n.type==="step"?V=n.stepX:V=(k+F)/2;let K=Qe(t,V),q=Qe(n,V),$=Re(K.leftCp1x,q.leftCp1x,a),te=Re(K.leftCp1y,q.leftCp1y,a),se=Re(K.leftCp2x,q.leftCp2x,a),de=Re(K.leftCp2y,q.leftCp2y,a),pe=Re(K.stepX,q.stepX,a),Ce=Re(K.stepY0,q.stepY0,a),Se=Re(K.stepY1,q.stepY1,a),ve=Re(K.rightCp1x,q.rightCp1x,a),ke=Re(K.rightCp1y,q.rightCp1y,a),De=Re(K.rightCp2x,q.rightCp2x,a),Te=Re(K.rightCp2y,q.rightCp2y,a);y?(e.cubicCurveTo(De,Te,ve,ke,pe,Se),e.lineTo(pe,Ce),e.cubicCurveTo(se,de,$,te,k,R)):(e.cubicCurveTo($,te,se,de,pe,Ce),e.lineTo(pe,Se),e.cubicCurveTo(ve,ke,De,Te,F,_))}}var gi=A({"packages/ag-charts-community/src/chart/series/cartesian/lineInterpolationPlotting.ts"(){"use strict";uf(),Oe()}});function Ci(e,t){return e==null||t==null||typeof e!="object"||typeof t!="object"?!1:"id"in e&&"id"in t?e.id===t.id:e.toString()===t.toString()}function xi(e,t){if(!t)return NaN;if(e instanceof Date&&(e=e.getTime()),t.type==="continuous"&&typeof e=="number")return(e-t.domain[0])/(t.domain[1]-t.domain[0])*(t.range[1]-t.range[0])+t.range[0];if(t.type==="log"&&typeof e=="number")return t.convert(e);if(t.type!=="category")return NaN;let n=t.domain.findIndex(u=>u===e);return n>=0||t.domain.findIndex(u=>Ci(e,u))>=0?t.inset+t.step*n:NaN}function li(e){return D0(e).valueOf()}function Bi({data:e},t){return e.map((n,a)=>({xValue0Index:t.indexOf(li(n.xValue0)),xValue1Index:t.indexOf(li(n.xValue1)),datumIndex:a}))}function Fi(e,t){let n=t.scales.x,a=e.scales.x;if((n==null?void 0:n.type)!=="category"||(a==null?void 0:a.type)!=="category")return!0;let u=-1/0;for(let y of n.domain){let k=xi(y,a);if(Number.isFinite(k)){if(k<u)return!1;u=k}else continue}return!0}function hn(e,t){let n=-1/0;for(let a of e){let u=xi(a.value,t.scales.x);if(Number.isFinite(u)){if(u<n)return!1;n=u}else continue}return!0}function ji(e,t){let n=new Map;for(let{xValue0:V,xValue1:K}of e.data){let q=li(V),$=li(K);n.set(q,V).set($,K)}let a=Array.from(n,([V,K])=>({axisValue:V,value:K}));a.sort((V,K)=>xi(V.value,e.scales.x)-xi(K.value,e.scales.x));let u=[];for(let{xValue0:V,xValue1:K}of t.data){let q=li(V),$=li(K);n.has(q)||(n.set(q,V),u.push({axisValue:q,value:V})),n.has($)||(n.set($,K),u.push({axisValue:$,value:K}))}u.sort((V,K)=>xi(V.value,t.scales.x)-xi(K.value,t.scales.x));let y=a,k=0;for(let V of u){for(let K=y.length-1;K>k;K-=1){let q=xi(V.value,t.scales.x),$=xi(y[K].value,t.scales.x);if(q>$){k=K+1;break}}y.splice(k,0,V),k+=1}if(!hn(y,t))return;let R=y.map(V=>V.axisValue),F=Bi(t,R),_=Bi(e,R);return{axisValues:R,oldDataAxisIndices:F,newDataAxisIndices:_}}function An(e,t,n){if(n.xValue1Index===n.xValue0Index+1)return e;let a=H(e),u=(a[1].x-a[0].x)/(n.xValue1Index-n.xValue0Index),y=a[0].x+(t-n.xValue0Index)*u,k=y+u;return ie(e,y,k)}function Zi(e,t){let[n,a]=H(e),u=xi(0,t.scales.y);return Q(e,{x:n.x,y:u},{x:a.x,y:u})}function Ki(e){let[t,n]=H(e);return X(e,{x:(t.x+n.x)/2,y:(t.y+n.y)/2})}function Dn(e,t,n,a,u,y){var K,q;let k,R;if(u.xValue0Index>=y.xValue1Index){let $=(K=a.findLast(se=>se.xValue1Index<=y.xValue1Index))==null?void 0:K.datumIndex,te=$!=null?n.data[$]:void 0;k=te==null?void 0:te.xValue1,R=te==null?void 0:te.yValue1}else if(u.xValue0Index<=y.xValue0Index){let $=(q=a.find(se=>se.xValue0Index>=y.xValue0Index))==null?void 0:q.datumIndex,te=$!=null?n.data[$]:void 0;k=te==null?void 0:te.xValue0,R=te==null?void 0:te.yValue0}if(k==null||R==null)switch(t){case 0:return Zi(e,n);case 1:return Ki(e)}let F=xi(k,n.scales.x),_=xi(R,n.scales.y),V={x:F,y:_};return Q(e,V,V)}function Qa(e,t){var u;if(t==null)return;let n=li(e.xValue0),a=li(e.xValue1);return(u=t.find(y=>li(y.xValue0)===n&&li(y.xValue1)===a))==null?void 0:u.span}function Kn(e,t,n,a,u,y,k){let R=e.data[a.datumIndex],F=R.span,_=Qa(R,u);if(_!=null)k.removed.push({from:_,to:_}),k.moved.push({from:_,to:F}),k.added.push({from:F,to:F});else{let V=Dn(F,t,e,n,a,y);k.added.push({from:V,to:F})}}function pn(e,t,n,a,u,y,k){let R=e.data[a.datumIndex],F=R.span,_=Qa(R,u);if(_!=null)k.removed.push({from:F,to:F}),k.moved.push({from:F,to:_}),k.added.push({from:_,to:_});else{let V=Dn(F,t,e,n,a,y);k.removed.push({from:F,to:V})}}function Wn(e,t,n,a,u){let y=t[u.xValue0Index],k=n.data.find(de=>li(de.xValue0)===y),R=t[u.xValue1Index],F=n.data.find(de=>li(de.xValue1)===R);if(k==null||F==null)return;let[{x:_},{x:V}]=H(e),K=xi(k.xValue0,n.scales.x),q=xi(k.yValue0,n.scales.y),$=xi(F.xValue1,n.scales.x),te=xi(F.yValue1,n.scales.y),se=a.data[u.datumIndex].span;return se=Q(se,{x:K,y:q},{x:$,y:te}),se=ie(se,_,V),se}function $i(e,t,n,a,u,y,k,R,F){let _=u+1,V=k.find(Se=>Se.xValue0Index<=u&&Se.xValue1Index>=_),K=y.find(Se=>Se.xValue0Index<=u&&Se.xValue1Index>=_),q=t.zeroData,$=e.zeroData;if(V==null&&K!=null){Kn(e,n,y,K,q,R,F);return}else if(V!=null&&K==null){pn(t,n,k,V,$,R,F);return}else if(V==null||K==null)return;let te;V.xValue0Index===K.xValue0Index&&V.xValue1Index===K.xValue1Index?te=0:V.xValue0Index<=K.xValue0Index&&V.xValue1Index>=K.xValue1Index?te=-1:V.xValue0Index>=K.xValue0Index&&V.xValue1Index<=K.xValue1Index?te=1:te=0;let se=t.data[V.datumIndex],de=An(se.span,u,V),pe=e.data[K.datumIndex],Ce=An(pe.span,u,K);if(te===1){let Se=Wn(de,a,t,e,K);Se!=null?(F.removed.push({from:de,to:Se}),F.moved.push({from:Se,to:Ce}),F.added.push({from:Ce,to:Ce})):pn(t,n,k,V,$,R,F)}else if(te===-1){let Se=Wn(Ce,a,e,t,V);Se!=null?(F.removed.push({from:de,to:de}),F.moved.push({from:de,to:Se}),F.added.push({from:Se,to:Ce})):Kn(e,n,y,K,q,R,F)}else F.removed.push({from:de,to:de}),F.moved.push({from:de,to:Ce}),F.added.push({from:Ce,to:Ce})}function Pi(e,t,n,a){var _,V,K,q,$,te,se,de;let u={removed:[],moved:[],added:[]},{axisValues:y,oldDataAxisIndices:k,newDataAxisIndices:R}=e,F={xValue0Index:Math.max((V=(_=k.at(0))==null?void 0:_.xValue0Index)!=null?V:-1/0,(q=(K=R.at(0))==null?void 0:K.xValue0Index)!=null?q:-1/0),xValue1Index:Math.min((te=($=k.at(-1))==null?void 0:$.xValue1Index)!=null?te:1/0,(de=(se=R.at(-1))==null?void 0:se.xValue1Index)!=null?de:1/0)};for(let pe=0;pe<y.length-1;pe+=1)$i(t,n,a,y,pe,R,k,F,u);return u}function en(e,t,n){var u;let{span:a}=t;switch(n){case 0:return(u=Qa(t,e.zeroData))!=null?u:Zi(a,e);case 1:return Ki(a)}}function Mn(e,t,n){let a=[],u=[];for(let y of t.data){let k=y.span,R=en(t,y,n);u.push({from:k,to:R})}for(let y of e.data){let k=y.span,R=en(e,y,n);a.push({from:R,to:k})}return{removed:u,moved:[],added:a}}function Li(e,t,n){if(!Fi(e,t))return;let a=ji(e,t);return a==null?Mn(e,t,n):Pi(a,e,t,n)}var Xi,Ti=A({"packages/ag-charts-community/src/chart/series/cartesian/lineInterpolationUtil.ts"(){"use strict";fv(),Oe(),Xi=(e=>(e[e.Zero=0]="Zero",e[e.Split=1]="Split",e))(Xi||{})}});function Sn(e){return e.type==="continuous"||e.type==="log"}function Vi(e){return e.type==="category"}function Ja(e,t){return e===void 0||t===void 0?e!==void 0||t!==void 0:Sn(e)&&Sn(t)?e.type===t.type&&th(e.domain,t.domain)&&th(e.range,t.range):Vi(e)&&Vi(t)?e.inset===t.inset&&e.step===t.step&&th(e.domain,t.domain):!1}function oo(e){return e==null?!1:e.type==="category"?e.domain.every(t=>t!=null):e.domain.every(t=>Number.isFinite(t)||t instanceof Date)&&e.range.every(t=>Number.isFinite(t))}var Ba=A({"packages/ag-charts-community/src/chart/series/cartesian/scaling.ts"(){"use strict";Mr()}});function Ca(e,t){let n,a=e.map(u=>u.point);switch(t.type){case"linear":n=ue(a);break;case"smooth":n=ye(a,t.tension);break;case"step":n=be(a,t.position);break}return n.map((u,y)=>({span:u,xValue0:e[y].xDatum,yValue0:e[y].yDatum,xValue1:e[y+1].xDatum,yValue1:e[y+1].yDatum}))}function lr(e,t,n=.001){return Math.abs(e.x-t.x)<n&&Math.abs(e.y-t.y)<n}function Yo({path:e},t){let n;for(let{span:a}of t){let[u,y]=H(a),k=n!=null&&lr(n,u)?1:0;Tt(e,a,k,!1),n=y}}function Nd(e,t,n){let a;for(let u of n){let[y,k]=_t(u.from,u.to,e),R=a!=null&&lr(a,y)?1:0;Kt(t.path,u.from,u.to,e,R,!1),a=k}}function rC(e,t,n){let a=(R,F)=>Nd(R,F,t.removed),u=(R,F)=>Nd(R,F,t.moved),y=(R,F)=>Nd(R,F,t.added),k=Bk(e,n);return{status:e,path:{addPhaseFn:y,updatePhaseFn:u,removePhaseFn:a},pathProperties:k}}function Bk(e,t){let n=t==="none"?"updated":e,a={fromFn:u=>{let y;return e==="removed"?y={finish:{visible:!1}}:e==="added"?y={start:{visible:!0}}:y={},ge({phase:zs[n]},y)},toFn:u=>({phase:zs[n]})};return t==="fade"?{fromFn:u=>{let y=e==="added"?0:u.opacity;return ge({opacity:y},a.fromFn(u))},toFn:u=>ge({opacity:e==="removed"?0:1},a.toFn(u))}:a}function Eg(e,t,n){var _,V,K;let a=((_=e.scales.x)==null?void 0:_.type)==="category",u=((V=t.scales.x)==null?void 0:V.type)==="category";if(a!==u||!oo(e.scales.x)||!oo(t.scales.x)||e.strokeData==null||t.strokeData==null)return;let y="updated";t.visible&&!e.visible?y="removed":!t.visible&&e.visible&&(y="added");let k=Li({scales:e.scales,data:e.strokeData.spans},{scales:t.scales,data:t.strokeData.spans},1);if(k==null)return;let R=rC(y,k,"fade"),F=((K=n==null?void 0:n.changed)!=null?K:!0)||!Ja(e.scales.x,t.scales.x)||!Ja(e.scales.y,t.scales.y)||y!=="updated";return{status:y,stroke:R,hasMotion:F}}var sw=A({"packages/ag-charts-community/src/chart/series/cartesian/lineUtil.ts"(){"use strict";Gr(),Oe(),gi(),Ti(),Ba()}});function Ig({path:e},{spans:t,phantomSpans:n}){for(let a=0;a<t.length;a+=1){let{span:u}=t[a],y=n[a].span;Tt(e,u,0,!1),Tt(e,y,1,!0),e.closePath()}}function fR(e,{path:t},n,a){for(let u=0;u<n.length;u+=1){let y=n[u],k=a[u];Kt(t,y.from,y.to,e,0,!1),Kt(t,k.from,k.to,e,1,!0),t.closePath()}}function nE(e,t,n,a){let u=(F,_)=>fR(F,_,t.removed,n.removed),y=(F,_)=>fR(F,_,t.moved,n.moved),k=(F,_)=>fR(F,_,t.added,n.added),R=Bk(e,a);return{status:e,path:{addPhaseFn:k,updatePhaseFn:y,removePhaseFn:u},pathProperties:R}}function FL(e,t){var K,q;let n=((K=e.scales.x)==null?void 0:K.type)==="category",a=((q=t.scales.x)==null?void 0:q.type)==="category";if(n!==a||!oo(e.scales.x)||!oo(t.scales.x))return;let u="updated";t.visible&&!e.visible?u="removed":!t.visible&&e.visible&&(u="added");let y=Li({scales:e.scales,data:e.fillData.spans},{scales:t.scales,data:t.fillData.spans},0);if(y==null)return;let k=Li({scales:e.scales,data:e.fillData.phantomSpans},{scales:t.scales,data:t.fillData.phantomSpans},0);if(k==null)return;let R=Li({scales:e.scales,data:e.strokeData.spans,zeroData:e.fillData.phantomSpans},{scales:t.scales,data:t.strokeData.spans,zeroData:t.fillData.phantomSpans},0);if(R==null)return;let F="none",_=nE(u,y,k,F),V=rC(u,R,F);return{status:u,fill:_,stroke:V}}var p6=A({"packages/ag-charts-community/src/chart/series/cartesian/areaUtil.ts"(){"use strict";Oe(),gi(),Ti(),sw(),Ba()}});function _L({id:e},t,n,...a){let u={phase:n?zs[n]:"trailing"};Ju(e,"markers",t,a,{opacity:0},{opacity:1},u),a.forEach(y=>y.cleanup())}function Kz({id:e},t,...n){Ju(e,"markers",t,n,{scalingX:0,scalingY:0},{scalingX:1,scalingY:1},{phase:"initial"}),n.forEach(a=>a.cleanup())}function qz({id:e,nodeDataDependencies:t},n,...a){let u=t.seriesRectWidth;to(e,"markers",n,a,{fromFn:(R,F)=>{var K,q;let _=(q=(K=F.midPoint)==null?void 0:K.x)!=null?q:u,V=fn(0,QC(_/u),1);return isNaN(V)&&(V=0),{scalingX:0,scalingY:0,delay:V,duration:Jg,phase:"initial"}},toFn:()=>({scalingX:1,scalingY:1})})}function NL(e){return{opacity:1,scalingX:1,scalingY:1}}function zL(e,t){var n,a,u,y;return{translationX:(a=(n=t.point)==null?void 0:n.x)!=null?a:NaN,translationY:(y=(u=t.point)==null?void 0:u.y)!=null?y:NaN}}function WZ(e,t){let n=(k,R)=>{let F=e[R][k];return Array.isArray(F)?F[0]:F},a=k=>{let{xValue:R}=k;return e.moved[R]?{point:n(R,"moved"),status:"updated"}:e.removed[R]?{point:n(R,"removed"),status:"removed"}:e.added[R]?{point:n(R,"added"),status:"added"}:{status:"unknown"}};return{fromFn:(k,R)=>{var K,q,$,te,se,de;let{status:F,point:_}=a(R);if(F==="unknown")return{opacity:0};let V={translationX:(q=(K=_==null?void 0:_.from)==null?void 0:K.x)!=null?q:k.translationX,translationY:(te=($=_==null?void 0:_.from)==null?void 0:$.y)!=null?te:k.translationY,opacity:k.opacity,phase:zs[F]};return t==="added"?He(ge({},V),{opacity:0,translationX:(se=_==null?void 0:_.to)==null?void 0:se.x,translationY:(de=_==null?void 0:_.to)==null?void 0:de.y,phase:zs.added}):(F==="added"&&(V.opacity=0),V)},toFn:(k,R)=>{var K,q;let{status:F,point:_}=a(R);if(F==="unknown")return{opacity:0};let V={translationX:R.point.x,translationY:R.point.y,opacity:1,phase:zs[F]};return F==="removed"||t==="removed"?He(ge({},V),{translationX:(K=_==null?void 0:_.to)==null?void 0:K.x,translationY:(q=_==null?void 0:_.to)==null?void 0:q.y,opacity:0,phase:zs.removed}):V}}}function BL(e,{datumIndex:t}){var _;let n=e.getNodeData();if(n===void 0)return;let a=n[t],{point:u}=a;if(a==null||u==null)return;let y=(_=u.focusSize)!=null?_:e.getFormattedMarkerStyle(a).size,k=y/2,R=a.point.x-k,F=a.point.y-k;return new ki(R,F,y,y)}var GL=A({"packages/ag-charts-community/src/chart/series/cartesian/markerUtil.ts"(){"use strict";Zn(),Gr(),vn(),gn(),_y()}});function UZ(e,t,n){let a=n;for(let{x:u,y}of t)a?e.lineTo(u,y):(e.moveTo(u,y),a=!0)}function KZ(e,t,n,a){let u=Array.isArray(t)?t:Array.from(t);if(u.length===0||(a?e.lineTo(u[0].x,u[0].y):e.moveTo(u[0].x,u[0].y),u.length<=1))return;let y=u.map((k,R)=>{let F=R===0?k:u[R-1],_=R===u.length-1?k:u[R+1],V=R===0||R===u.length-1;if(Math.sign(F.y-k.y)===Math.sign(_.y-k.y))return 0;if(!V){let K=Math.abs(F.y-_.y),q=Math.abs(k.y-F.y)/K,$=Math.abs(k.y-_.y)/K;if(q<=VL||1-q<=VL||$<=VL||1-$<=VL)return 0}return(_.y-F.y)/(_.x-F.x)});y[1]===0&&(y[0]*=2),y[y.length-2]===0&&(y[y.length-1]*=2);for(let k=1;k<u.length;k+=1){let R=u[k-1],F=y[k-1],_=u[k],V=y[k],K=_.x-R.x,q=_.y-R.y,$=K*n/3,te=K*F*n/3,se=K*n/3,de=K*V*n/3;V===0&&Math.abs(te)>Math.abs(q)&&($*=Math.abs(q/te),te=Math.sign(te)*Math.abs(q)),F===0&&Math.abs(de)>Math.abs(q)&&(se*=Math.abs(q/de),de=Math.sign(de)*Math.abs(q)),e.cubicCurveTo(R.x+$,R.y+te,_.x-se,_.y-de,_.x,_.y)}}function qZ(e,t,n,a){var y;let u;for(let k of t){if(u!=null){let R=u.x<k.x?n:1-n,F=(k.x-u.x)*R+u.x;e.lineTo(F,(y=u==null?void 0:u.y)!=null?y:k.y),e.lineTo(F,k.y),e.lineTo(k.x,k.y)}else a?e.lineTo(k.x,k.y):e.moveTo(k.x,k.y);u=k}}var VL,YZ=A({"packages/ag-charts-community/src/chart/series/cartesian/linePlotter.ts"(){"use strict";VL=.05}});function XZ(e){return e.reduce(({min:t,max:n},a)=>((t==null||t.point.x>a.point.x)&&(t=a),(n==null||n.point.x<a.point.x)&&(n=a),{min:t,max:n}),{})}function m6(e,t,n){let a=(t.y-e.y)/(t.x-e.x),u=(n-e.x)*a+e.y;return{x:n,y:u}}function f6(e,t,n,a){let u=-1,y=0,k=[];for(;y<e.length;){if(e[y].change===t){k.push(e[y]),y++;continue}if(e[y].change===n){y++;continue}k.length>0&&(a(k,u,y),k.length=0),u=y,y++}k.length>0&&a(k,u,y)}function ZZ(e,t){f6(e,"out","in",(n,a,u)=>{var y,k;a===-1&&e[u]?n.forEach(R=>R.to=e[u].from):u===e.length&&e[a]?n.forEach(R=>R.to=e[a].from):t==="intersect"&&((y=e[a])!=null&&y.from)&&((k=e[u])!=null&&k.from)?n.forEach(R=>R.to=m6(e[a].from,e[u].from,R.from.x)):n.forEach(R=>R.to=R.from)}),f6(e,"in","out",(n,a,u)=>{var y,k;a===-1&&e[u]?n.forEach(R=>R.from=e[u].to):u===e.length&&e[a]?n.forEach(R=>R.from=e[a].to):t==="intersect"&&((y=e[a])!=null&&y.to)&&((k=e[u])!=null&&k.to)?n.forEach(R=>R.from=m6(e[a].to,e[u].to,R.to.x)):n.forEach(R=>R.from=R.to)})}function v6(e,t,n){let a=isNaN(e.x)?t.x:e.x,u=isNaN(e.y)?t.y:e.y,y=t.x-e.x,k=t.y-e.y,R=isNaN(y)?0:y*n,F=isNaN(k)?0:k*n;return{x:a+R,y:u+F}}function y6(e,t,n,a=!1){var y,k;let{path:u}=t;(n==null?void 0:n.type)==="smooth"?KZ(u,e,(y=n.tension)!=null?y:1,a):(n==null?void 0:n.type)==="step"?qZ(u,e,C6[(k=n.position)!=null?k:"end"],a):UZ(u,e,a)}function b6(e,t){let n,a,u=[],y=()=>{a!=null&&(u.push(a),a=void 0)};for(let k of e){let{from:R,to:F}=k,_=t[k.change];if(_==null||R==null||F==null)continue;let V=v6(R,F,_);if(k.moveTo===!1)a!=null||(a=[]),a.push(V);else if(k.moveTo===!0||!n)y(),a=[V];else if(n){let K=k.moveTo==="in"?_:1-_,{x:q,y:$}=v6(n,V,K);a!=null||(a=[]),a.push({x:q,y:$}),y(),a=[V]}n=V}return y(),u}function $Z(e,t,n,a){b6(e,t).forEach(u=>{y6(u,n,a)})}function Yz({id:e,visible:t,nodeDataDependencies:n},a,...u){let{seriesRectWidth:y,seriesRectHeight:k}=n;Ju(e,"path_properties",a,u,{clipX:0},{clipX:y},{phase:"initial",start:{clip:!0,clipY:k,visible:t},finish:{clip:!1,visible:t}})}function VO({id:e},t,n,a="add",...u){Ju(e,t,n,u,{opacity:0},{opacity:1},{phase:a})}function QZ({id:e},t,n,...a){Ju(e,t,n,a,{opacity:1},{opacity:0},{phase:"remove"})}function Xz(e){return t=>({visible:e.getVisible(),opacity:e.getOpacity(),clipScalingX:1,clip:!1})}function jO({nodeDataDependencies:e},t){let n=a=>isFinite(a)?a:0;t.clipX=n(e.seriesRectWidth),t.clipY=n(e.seriesRectHeight)}var C6,Zz=A({"packages/ag-charts-community/src/chart/series/cartesian/pathUtil.ts"(){"use strict";Gr(),YZ(),C6={start:0,middle:.5,end:1}}}),S6,w6,HO,JZ=A({"packages/ag-charts-community/src/chart/series/cartesian/areaSeries.ts"(){"use strict";Gr(),eE(),Mm(),xo(),xa(),Mr(),ra(),bn(),fv(),qv(),FO(),Tn(),Il(),gt(),fu(),Js(),Pl(),Eh(),xS(),LS(),B(),p6(),Fl(),sw(),GL(),Zz(),S6=.125,w6=.25,HO=class extends Op{constructor(e){super({moduleCtx:e,directionKeys:qc,directionNames:wg,pathsPerSeries:["fill","stroke"],pathsZIndexSubOrderOffset:[0,1e3],hasMarkers:!0,markerSelectionGarbageCollection:!1,pickModes:[2,0],animationResetFns:{path:Xz({getVisible:()=>this.visible,getOpacity:()=>this.getOpacity()}),label:Af,marker:(t,n)=>ge(ge({},NL(t)),zL(t,n))}}),this.properties=new L,this.connectsToYAxis=!0,this.backgroundGroup=new Wi({name:`${this.id}-background`,zIndex:0}),this._isStacked=void 0}get pickModeAxis(){return"main"}renderToOffscreenCanvas(){return super.renderToOffscreenCanvas()||this.contextNodeData!=null&&(this.contextNodeData.fillData.spans.length>Lp||this.contextNodeData.strokeData.spans.length>Lp)}attachSeries(e,t,n){super.attachSeries(e,t,n),e.appendChild(this.backgroundGroup)}detachSeries(e,t,n){super.detachSeries(e,t,n),e==null||e.removeChild(this.backgroundGroup)}attachPaths([e,t]){this.backgroundGroup.appendChild(e),this.contentGroup.appendChild(t),t.zIndex=-1}isStacked(){var t,n;return((n=(t=this.seriesGrouping)==null?void 0:t.stackCount)!=null?n:1)>1}setSeriesIndex(e){let t=this.isStacked();return!super.setSeriesIndex(e)&&this._isStacked===t?!1:(this._isStacked=t,t?(this.backgroundGroup.zIndex=[0,e],this.contentGroup.zIndex=[1,e,0]):(this.backgroundGroup.zIndex=[1,e,0,0],this.contentGroup.zIndex=[1,e,0,1]),!0)}async processData(e){var Ce,Se;if(this.data==null||!this.properties.isValid())return;let{data:t,visible:n,seriesGrouping:{groupIndex:a=this.id,stackCount:u=1}={}}=this,{xKey:y,yKey:k,yFilterKey:R,connectMissingData:F,normalizedTo:_}=this.properties,V=!this.ctx.animationManager.isSkipped(),K=(Ce=this.axes.x)==null?void 0:Ce.scale,q=(Se=this.axes.y)==null?void 0:Se.scale,{xScaleType:$,yScaleType:te}=this.getScaleInformation({xScale:K,yScale:q}),se={value:`area-stack-${a}-yValue`,values:`area-stack-${a}-yValues`,stack:`area-stack-${a}-yValue-stack`,marker:`area-stack-${a}-yValues-marker`},de=[];Hi(_)&&de.push(KS(Object.values(se),_,"range")),V&&de.push(Qb());let pe={invalidValue:null};(Hi(_)||F)&&u>1&&(pe.invalidValue=0),n||(pe.forceValue=0),await this.requestDataModel(e,t,{props:[Td(y,$,{id:"xValue"}),Yi(k,te,ge({id:"yValueRaw"},pe)),...R!=null?[Yi(R,te,{id:"yFilterRaw"})]:[],...JT(k,te,He(ge({id:"yValueStack"},pe),{groupId:se.stack})),Yi(k,te,He(ge({id:"yValue"},pe),{groupId:se.value})),..._p(k,"window","current",He(ge({id:"yValueEnd"},pe),{groupId:se.values}),te),..._p(k,"normal","current",He(ge({id:"yValueCumulative"},pe),{groupId:se.marker}),te),...de],groupByKeys:!0,groupByData:!1}),this.animationState.transition("updateData")}getSeriesDomain(e){var F;let{processedData:t,dataModel:n,axes:a}=this;if(!t||!n||!((F=t.rawData)!=null&&F.length))return[];let u=a.y,y=n.resolveProcessedDataDefById(this,"xValue"),k=n.getDomain(this,"xValue","key",t),R=n.getDomain(this,"yValueEnd","value",t);if(e==="x")return(y==null?void 0:y.def.type)==="key"&&y.def.valueType==="category"?k:$s(ep(k));if(u instanceof uc||u instanceof Yv)return $s(R);{let _=[R[0]>0?0:R[0],R[1]<0?0:R[1]];return $s(_)}}getSeriesRange(e,t){let{dataModel:n,processedData:a}=this;if(!n||!a)return[NaN,NaN];let u=this.axes.x.scale,y=n.resolveKeysById(this,"xValue",a),[k,R]=Da(y.length,t,V=>{let K=u.convert(y[V]);return[K,K]}),[F,_]=n.getDomainBetweenRange(this,["yValueEnd"],[k,R],a);return[Math.min(F,0),Math.max(_,0)]}createNodeData(){var Yt,Ut,oi;let{axes:e,data:t,processedData:n,dataModel:a}=this,u=e.x,y=e.y;if(!u||!y||!t||!a||!(n!=null&&n.rawData.length)||n.type!=="grouped"||!this.properties.isValid())return;let{yKey:k,xKey:R,yFilterKey:F,marker:_,label:V,fill:K,stroke:q,connectMissingData:$,interpolation:te}=this.properties,{scale:se}=u,{scale:de}=y,{isContinuousY:pe}=this.getScaleInformation({xScale:se,yScale:de}),Ce=((Yt=se.bandwidth)!=null?Yt:0)/2,Se=a.resolveKeysById(this,"xValue",n),ve=a.resolveColumnById(this,"yValueEnd",n),ke=a.resolveColumnById(this,"yValueRaw",n),De=a.resolveColumnById(this,"yValueCumulative",n),Te=F!=null?a.resolveColumnById(this,"yFilterRaw",n):void 0,ze=a.resolveColumnById(this,"yValueStack",n),qe=(ti,ai,ui)=>{let qt;return(Hi(this.properties.normalizedTo)?pe&&cb(ui):!isNaN(ui))&&(qt=ai),{x:se.convert(ti)+Ce,y:de.convert(qt),size:_.size}},et=[],$e=[],{visibleSameStackCount:lt}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this),at=!1,{rawData:ht}=n;n.groups.forEach(({datumIndices:ti})=>{ti.forEach(ai=>{var Ni,nn,Gi;let ui=Se[ai];if(ui==null)return;let qt=ht[ai],Zt=ke[ai],pi=De[ai],si=ve[ai],ci=Number.isFinite(Zt),yi=qe(ui,+pi,Zt),sn=Te!=null?Te[ai]===Zt:void 0;if(sn===!1&&(at=!0),ci&&_&&$e.push({index:ai,series:this,itemId:k,datum:qt,datumIndex:ai,midPoint:{x:yi.x,y:yi.y},cumulativeValue:si,yValue:Zt,xValue:ui,yKey:k,xKey:R,point:yi,fill:(Ni=_.fill)!=null?Ni:K,stroke:(nn=_.stroke)!=null?nn:q,strokeWidth:(Gi=_.strokeWidth)!=null?Gi:this.getStrokeWidth(this.properties.strokeWidth),selected:sn}),ci&&V){let Pn=this.getLabelText(V,{value:Zt,datum:qt,xKey:R,yKey:k,xName:this.properties.xName,yName:this.properties.yName});et.push({index:ai,series:this,itemId:k,datum:qt,x:yi.x,y:yi.y,labelText:Pn})}})});let vt=ti=>ti.flatMap(ai=>Array.isArray(ai)?Ca(ai,te):new Array(ai.skip).fill(null)),wt=n.groups.flatMap(ti=>ti.datumIndices),Ct=(ti,ai)=>({point:{x:se.convert(ti)+Ce,y:de.convert(ai)},xDatum:ti,yDatum:ai}),yt=ti=>{let ai=[];for(let ui=0;ui<wt.length;ui+=1){let qt=wt[ui],Zt=Se[qt],pi=ze[qt],si=pi[ti],ci=Number.isFinite(si);if($&&!ci)continue;let yi=ui>0?ze[wt[ui-1]]:void 0,sn=ui<wt.length-1?ze[wt[ui+1]]:void 0,Ni=0,nn=0;for(let Pn=0;Pn<=ti;Pn+=1){let Ln=pi[Pn];if(Number.isFinite(Ln)){let _r=yi==null||Number.isFinite(yi[Pn]),ul=sn==null||Number.isFinite(sn[Pn]);_r&&(Ni+=Ln),ul&&(nn+=Ln)}}let Gi=ai[ai.length-1];if(!$&&(Ni!==nn||!ci))if(!ci&&Array.isArray(Gi)&&Gi.length===1)ai[ai.length-1]={skip:1};else{let Pn=Ct(Zt,Ni),Ln=Ct(Zt,nn);Array.isArray(Gi)?Gi.push(Pn):Gi!=null&&(Gi.skip+=1),ai.push(ci?[Ln]:{skip:0})}else{let Pn=Math.max(Ni,nn),Ln=Ct(Zt,Pn);Array.isArray(Gi)?Gi.push(Ln):Gi!=null?(Gi.skip+=1,ai.push([Ln])):ai.push([Ln])}}return vt(ai)},Et=(oi=(Ut=this.seriesGrouping)==null?void 0:Ut.stackIndex)!=null?oi:0,At=()=>{let ti=wt.map(ai=>{let ui=Se[ai],Zt=ze[ai][Et];if(!($&&!Number.isFinite(Zt)))return Ct(ui,0)}).filter(ai=>ai!=null);return Ca(ti,te)},Dt=yt(Et),Ot=Dt.map(()=>null);for(let ti=Et-1;ti>=-1;ti-=1){let ai;for(let ui=0;ui<Ot.length;ui+=1)Ot[ui]==null&&(ai!=null||(ai=ti!==-1?yt(ti):At()),Ot[ui]=ai[ui])}let It=Dt.map((ti,ai)=>ti!=null?ti:Ot[ai]),Rt=Dt.filter(ti=>ti!=null);return{itemId:k,fillData:{itemId:k,spans:It,phantomSpans:Ot},strokeData:{itemId:k,spans:Rt},labelData:et,nodeData:$e,scales:this.calculateScaling(),visible:this.visible,stackVisible:lt>0,crossFiltering:at}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}markerFactory(){let{shape:e}=this.properties.marker,t=ca(e);return new t}updatePathNodes(e){var F;let{opacity:t,visible:n,animationEnabled:a}=e,[u,y]=e.paths,k=((F=this.contextNodeData)==null?void 0:F.crossFiltering)===!0,R=this.getStrokeWidth(this.properties.strokeWidth);y.setProperties({fill:void 0,lineCap:"round",lineJoin:"round",pointerEvents:1,stroke:this.properties.stroke,strokeWidth:R,strokeOpacity:this.properties.strokeOpacity*(k?w6:1),lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset,opacity:t,visible:n||a}),u.setProperties({stroke:void 0,lineJoin:"round",pointerEvents:1,fill:this.properties.fill,fillOpacity:this.properties.fillOpacity*(k?S6:1),fillShadow:this.properties.shadow,opacity:t,visible:n||a}),jO(this,y),jO(this,u)}updatePaths(e){this.updateAreaPaths(e.paths,e.contextData)}updateAreaPaths(e,t){for(let n of e)n.visible=t.visible;if(t.visible)this.updateFillPath(e,t),this.updateStrokePath(e,t);else for(let n of e)n.path.clear(),n.markDirty()}updateFillPath(e,t){let[n]=e;n.path.clear(),Ig(n,t.fillData),n.markDirty()}updateStrokePath(e,t){let{spans:n}=t.strokeData,[,a]=e;a.path.clear(),Yo(a,n),a.markDirty()}updateMarkerSelection(e){var u;let{nodeData:t,markerSelection:n}=e,a=this.properties.marker.enabled||((u=this.contextNodeData)==null?void 0:u.crossFiltering)===!0;return this.properties.marker.isDirty()&&(n.clear(),n.cleanup()),n.update(a?t:[])}getMarkerItemBaseStyle(e){var a,u,y,k,R;let{marker:t}=this.properties,n=e?this.properties.highlightStyle.item:void 0;return{fill:(a=n==null?void 0:n.fill)!=null?a:t.fill,fillOpacity:(u=n==null?void 0:n.fillOpacity)!=null?u:t.fillOpacity,stroke:(y=n==null?void 0:n.stroke)!=null?y:t.stroke,strokeWidth:(k=n==null?void 0:n.strokeWidth)!=null?k:t.strokeWidth,strokeOpacity:(R=n==null?void 0:n.strokeOpacity)!=null?R:t.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a,u,y){let{marker:k}=this.properties,{itemStyler:R}=k;if(R==null)return;let{id:F,properties:_}=this,{xKey:V,yKey:K}=_,{xDomain:q,yDomain:$}=this.cachedDatumCallback("domain",()=>({xDomain:this.getSeriesDomain("x"),yDomain:this.getSeriesDomain("y")}));return this.cachedDatumCallback(ee(e,y?"highlight":"node"),()=>R(ge(He(ge({seriesId:F},Tp(t,V,K,q,$)),{xValue:n,yValue:a,highlighted:y}),u)))}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n}=e,{xKey:a,yKey:u,marker:y,fill:k,stroke:R,strokeWidth:F,fillOpacity:_,strokeOpacity:V,highlightStyle:K}=this.properties,q=this.getSeriesDomain("x"),$=this.getSeriesDomain("y"),te=En(n&&K.item,y.getStyle(),{fill:k,stroke:R,strokeWidth:F,fillOpacity:_,strokeOpacity:V});t.each((se,de)=>{this.updateMarkerStyle(se,y,He(ge({},Tp(de,a,u,q,$)),{highlighted:n}),te,{selected:de.selected})}),n||this.properties.marker.markClean()}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;return n.update(t)}updateLabelNodes(e){let{labelSelection:t}=e,{enabled:n,fontStyle:a,fontWeight:u,fontSize:y,fontFamily:k,color:R}=this.properties.label;t.each((F,_)=>{let{x:V,y:K,labelText:q}=_;q&&n&&this.visible?(F.fontStyle=a,F.fontWeight=u,F.fontSize=y,F.fontFamily=k,F.textAlign="center",F.textBaseline="bottom",F.text=q,F.x=V,F.y=K-10,F.fill=R,F.visible=!0):F.visible=!1})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:u,properties:y}=this,{xKey:k,xName:R,yKey:F,yName:_,tooltip:V}=y,K=u.x,q=u.y;if(!n||!a||a.rawData.length===0||!K||!q)return;let{datumIndex:$}=e,te=a.rawData[$],se=n.resolveKeysById(this,"xValue",a)[$],de=n.resolveColumnById(this,"yValueRaw",a)[$];if(se==null)return;let pe=this.getMarkerItemBaseStyle(!1);return Object.assign(pe,this.getMarkerItemStyleOverrides(String($),te,se,de,pe,!1)),V.formatTooltip({heading:K.formatDatum(se),symbol:this.legendItemSymbol(),data:[{label:_,fallbackLabel:F,value:q.formatDatum(de)}]},ge(ge({seriesId:t,datum:te,title:_,xKey:k,xName:R,yKey:F,yName:_},pe),this.getModuleTooltipParams()))}legendItemSymbol(){var F,_,V;let{fill:e,stroke:t,fillOpacity:n,strokeOpacity:a,strokeWidth:u,lineDash:y,marker:k}=this.properties,R=!k.enabled||k.fill===void 0;return{marker:{shape:k.shape,fill:R?e:k.fill,fillOpacity:R?n:k.fillOpacity,stroke:(F=k.stroke)!=null?F:t,strokeOpacity:(_=k.strokeOpacity)!=null?_:a,strokeWidth:(V=k.strokeWidth)!=null?V:0,enabled:k.enabled||u<=0},line:{stroke:t,strokeOpacity:a,strokeWidth:u,lineDash:y}}}getLegendData(e){var F;if(!this.properties.isValid()||e!=="category")return[];let{id:t,ctx:{legendManager:n},visible:a}=this,{yKey:u,yName:y,legendItemName:k,showInLegend:R}=this.properties;return[{legendType:e,id:t,itemId:u,seriesId:t,enabled:a&&n.getItemEnabled({seriesId:t,itemId:u}),label:{text:(F=k!=null?k:y)!=null?F:u},symbol:this.legendItemSymbol(),legendItemName:k,hideInLegend:!R}]}animateEmptyUpdateReady(e){let{markerSelection:t,labelSelection:n,contextData:a,paths:u}=e,{animationManager:y}=this.ctx;this.updateAreaPaths(u,a),Yz(this,y,...u),io([t],zL),qz(this,y,t),Ea(this,"labels",y,n)}animateReadyResize(e){let{contextData:t,paths:n}=e;this.updateAreaPaths(n,t),super.animateReadyResize(e)}animateWaitingUpdateReady(e){let{animationManager:t}=this.ctx,{markerSelection:n,labelSelection:a,contextData:u,paths:y,previousContextData:k}=e,[R,F]=y;if(R==null&&F==null)return;this.resetMarkerAnimation(e),this.resetLabelAnimation(e);let _=()=>{this.resetPathAnimation(e),this.updateAreaPaths(y,u)},V=()=>{t.skipCurrentBatch(),_()};if(u==null||k==null){_(),_L(this,t,"added",n),VO(this,"fill_path_properties",t,"add",R),VO(this,"stroke_path_properties",t,"add",F),Ea(this,"labels",t,a);return}if(u.crossFiltering!==k.crossFiltering){V();return}let K=FL(u,k);if(K===void 0){V();return}else if(K.status==="no-op")return;_L(this,t,void 0,n),to(this.id,"fill_path_properties",t,[R],K.fill.pathProperties),J1(this.id,"fill_path_update",t,[R],K.fill.path),to(this.id,"stroke_path_properties",t,[F],K.stroke.pathProperties),J1(this.id,"stroke_path_update",t,[F],K.stroke.path),Ea(this,"labels",t,a),this.ctx.animationManager.animate({id:this.id,groupId:"reset_after_animation",phase:"trailing",from:{},to:{},onComplete:()=>this.updateAreaPaths(y,u)})}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new Wi}getFormattedMarkerStyle(e){let{xKey:t,yKey:n}=e,a=this.getSeriesDomain("x"),u=this.getSeriesDomain("y");return this.getMarkerStyle(this.properties.marker,He(ge({},Tp(e,t,n,a,u)),{highlighted:!0}))}computeFocusBounds(e){return BL(this,e)}},HO.className="AreaSeries",HO.type="area"}}),x6,e$=A({"packages/ag-charts-community/src/chart/series/cartesian/areaSeriesModule.ts"(){"use strict";Mf(),_o(),rw(),JZ(),x6={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"area",moduleFactory:e=>new HO(e),stackable:!0,tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"left"},{type:"category",position:"bottom"}],themeTemplate:{series:{nodeClickRange:"nearest",tooltip:{position:{type:"node"}},fillOpacity:.8,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,shadow:{enabled:!1,color:Qv,xOffset:3,yOffset:3,blur:5},interpolation:{type:"linear",tension:1,position:"end"},marker:{enabled:!1,shape:"circle",size:7,strokeWidth:0},label:{enabled:!1,fontSize:12,fontFamily:$a,color:mo}}},paletteFactory:e=>{let{marker:t}=pR(e);return{fill:t.fill,stroke:t.stroke,marker:t}}}}});function $z(e,t){for(let n of t){let a=n.datum;a===void 0?hi.error("undefined datum"):e.addValue(n,a)}}function Qz(e,t){let{x:n,y:a}=t,{nearest:u,distanceSquared:y}=e.getQuadTree().find(n,a);if(u!==void 0)return{datum:u.value,distance:Math.sqrt(y)}}var Jz=A({"packages/ag-charts-community/src/chart/series/cartesian/quadtreeUtil.ts"(){"use strict";on()}}),WO,e3,t3=A({"packages/ag-charts-community/src/chart/series/cartesian/abstractBarSeries.ts"(){"use strict";Qd(),cs(),Mr(),bn(),Ai(),zm(),_l(),Tn(),Il(),Fl(),Jz(),WO=class extends yu{constructor(){super(...arguments),this.direction="vertical"}},b([Ge(Ur)],WO.prototype,"direction",2),e3=class extends Op{constructor(){super(...arguments),this.groupScale=new zo,this.smallestDataInterval=void 0,this.largestDataInterval=void 0}padBandExtent(e,t){var y;let n=typeof t=="boolean"?1:.5,a=pa(this.smallestDataInterval)?this.smallestDataInterval*n:0,u=(y=ep(e))!=null?y:[NaN,NaN];return typeof t=="boolean"?u[t?0:1]-=(t?1:-1)*a:(u[0]-=a,u[1]+=a),$s(u)}getBandScalePadding(){return{inner:.3,outer:.15}}shouldFlipXY(){return!this.isVertical()}isVertical(){return this.properties.direction==="vertical"}getBarDirection(){return this.shouldFlipXY()?"x":"y"}getCategoryDirection(){return this.shouldFlipXY()?"y":"x"}getValueAxis(){let e=this.getBarDirection();return this.axes[e]}getCategoryAxis(){let e=this.getCategoryDirection();return this.axes[e]}getBandwidth(e){return Ha.is(e.scale)?e.scale.calcBandwidth(this.smallestDataInterval):e.scale.bandwidth}updateGroupScale(e){let t=[],{groupScale:n}=this,a=this.getBandwidth(e),{index:u,visibleGroupCount:y}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);for(let R=0;R<y;R++)t.push(String(R));return n.domain=t,n.range=[0,a!=null?a:0],e instanceof ba?n.paddingInner=e.groupPaddingInner:e instanceof Cv?(n.paddingInner=e.groupPaddingInner,n.round=n.padding!==0):n.padding=0,{barWidth:n.bandwidth>=1?n.bandwidth:n.rawBandwidth,groupIndex:u}}resolveKeyDirection(e){return this.getBarDirection()==="x"?e==="x"?"y":"x":e}initQuadTree(e){$z(e,this.datumNodesIter())}pickNodeClosestDatum(e){return Qz(this,e)}}}}),UO,Lr,t$=A({"packages/ag-charts-community/src/chart/series/cartesian/barSeriesProperties.ts"(){"use strict";zk(),Ai(),yd(),oC(),t3(),UO=class extends mr{constructor(){super(...arguments),this.placement="inside-center",this.padding=0}},b([Ge(uo(["inside-center","inside-start","inside-end","outside-start","outside-end"],"a placement"))],UO.prototype,"placement",2),b([Ge(Bn)],UO.prototype,"padding",2),Lr=class extends WO{constructor(){super(...arguments),this.fill="#c16068",this.fillOpacity=1,this.stroke="#874349",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.crisp=void 0,this.shadow=new Mu,this.label=new UO,this.tooltip=new pc,this.sparklineMode=!1,this.fastDataProcessing=!1}},b([Ge(ei)],Lr.prototype,"xKey",2),b([Ge(ei,{optional:!0})],Lr.prototype,"xName",2),b([Ge(ei)],Lr.prototype,"yKey",2),b([Ge(ei,{optional:!0})],Lr.prototype,"yName",2),b([Ge(ei,{optional:!0})],Lr.prototype,"yFilterKey",2),b([Ge(ei,{optional:!0})],Lr.prototype,"stackGroup",2),b([Ge(Bn,{optional:!0})],Lr.prototype,"normalizedTo",2),b([Ge(sa)],Lr.prototype,"fill",2),b([Ge(Cn)],Lr.prototype,"fillOpacity",2),b([Ge(sa)],Lr.prototype,"stroke",2),b([Ge(ni)],Lr.prototype,"strokeWidth",2),b([Ge(Cn)],Lr.prototype,"strokeOpacity",2),b([Ge(hd)],Lr.prototype,"lineDash",2),b([Ge(ni)],Lr.prototype,"lineDashOffset",2),b([Ge(ni)],Lr.prototype,"cornerRadius",2),b([Ge(Oi,{optional:!0})],Lr.prototype,"crisp",2),b([Ge(vl,{optional:!0})],Lr.prototype,"itemStyler",2),b([Ge(Ei,{optional:!0})],Lr.prototype,"shadow",2),b([Ge(Ei)],Lr.prototype,"label",2),b([Ge(Ei)],Lr.prototype,"tooltip",2),b([Ge(Oi)],Lr.prototype,"sparklineMode",2),b([Ge(Oi)],Lr.prototype,"fastDataProcessing",2)}});function M6(e,t){var n,a,u,y,k,R;e.crisp=(n=t.crisp)!=null?n:!0,e.fill=t.fill,e.stroke=t.stroke,e.strokeWidth=t.strokeWidth,e.fillOpacity=t.fillOpacity,e.strokeOpacity=t.strokeOpacity,e.lineDash=t.lineDash,e.lineDashOffset=t.lineDashOffset,e.fillShadow=t.fillShadow,e.topLeftCornerRadius=t.topLeftCornerRadius!==!1&&(a=t.cornerRadius)!=null?a:0,e.topRightCornerRadius=t.topRightCornerRadius!==!1&&(u=t.cornerRadius)!=null?u:0,e.bottomRightCornerRadius=t.bottomRightCornerRadius!==!1&&(y=t.cornerRadius)!=null?y:0,e.bottomLeftCornerRadius=t.bottomLeftCornerRadius!==!1&&(k=t.cornerRadius)!=null?k:0,e.visible=(R=t.visible)!=null?R:!0}function k6(e,t,_){var V=_,{datum:n,isHighlighted:a,style:u,highlightStyle:y,itemStyler:k,seriesId:R}=V,F=wi(V,["datum","isHighlighted","style","highlightStyle","itemStyler","seriesId"]);var ve,ke,De,Te,ze,qe,et,$e;let{fill:K,fillOpacity:q,stroke:$,strokeWidth:te,strokeOpacity:se,lineDash:de,lineDashOffset:pe,cornerRadius:Ce=0}=En(a&&y,u),Se;return k&&(Se=e.cachedDatumCallback(ee(t,a?"highlight":"node"),()=>k(ge({datum:n.datum,xKey:n.xKey,fill:K,fillOpacity:q,stroke:$,strokeWidth:te,strokeOpacity:se,lineDash:de,lineDashOffset:pe,cornerRadius:Ce,highlighted:a,seriesId:R},F)))),{fill:(ve=Se==null?void 0:Se.fill)!=null?ve:K,fillOpacity:(ke=Se==null?void 0:Se.fillOpacity)!=null?ke:q,stroke:(De=Se==null?void 0:Se.stroke)!=null?De:$,strokeWidth:(Te=Se==null?void 0:Se.strokeWidth)!=null?Te:te,strokeOpacity:(ze=Se==null?void 0:Se.strokeOpacity)!=null?ze:se,lineDash:(qe=Se==null?void 0:Se.lineDash)!=null?qe:de,lineDashOffset:(et=Se==null?void 0:Se.lineDashOffset)!=null?et:pe,cornerRadius:($e=Se==null?void 0:Se.cornerRadius)!=null?$e:Ce,topLeftCornerRadius:u.topLeftCornerRadius,topRightCornerRadius:u.topRightCornerRadius,bottomRightCornerRadius:u.bottomRightCornerRadius,bottomLeftCornerRadius:u.bottomLeftCornerRadius,fillShadow:u.fillShadow}}function A6(e,t,n,a){if(t!=null){let[u,y]=t;if(u!==0||y!==1)return!1}if(Ha.is(e)){let u=e.calcBandwidth(a)-e.calcBandwidth(n);if(u>0&&u<1)return!1}return!0}function jL(e,t,n){let{startingX:a,startingY:u}=n$(e,t);return{isVertical:e,calculate:(k,R)=>{let F=e?k.x:a,_=e?u:k.y,V=e?k.width:0,K=e?0:k.height,{opacity:q}=k;R&&(isNaN(F)||isNaN(_))&&({x:F,y:_}=R,V=e?R.width:0,K=e?0:R.height,e&&!KO(R)?_+=R.height:!e&&KO(R)&&(F+=R.width));let $;return k.clipBBox==null?$=void 0:KO(k)?$=e?new ki(F,_-K,V,K):new ki(F-V,_,V,K):$=new ki(F,_,V,K),{x:F,y:_,width:V,height:K,clipBBox:$,opacity:q}},mode:n}}function i$(e,t){return{isVertical:e,calculate:n=>({x:e?n.x:n.x+n.width/2,y:e?n.y+n.height/2:n.y,width:e?n.width:0,height:e?0:n.height,clipBBox:n.clipBBox,opacity:n.opacity}),mode:t}}function HL(e){let t=u=>u==null||isNaN(u.x)||isNaN(u.y);return{toFn:(u,y,k)=>k==="removed"&&u.datum==null&&e.mode==="fade"?He(ge({},WL(u,y)),{opacity:0}):k==="removed"||t(y)?e.calculate(y,u.previousDatum):{x:y.x,y:y.y,width:y.width,height:y.height,clipBBox:y.clipBBox,opacity:y.opacity},fromFn:(u,y,k)=>{k==="updated"&&t(y)?k="removed":k==="updated"&&t(u.previousDatum)&&(k="added");let R;k==="added"&&u.previousDatum==null&&e.mode==="fade"?R=He(ge({},WL(u,y)),{opacity:0}):k==="unknown"||k==="added"?R=e.calculate(y,u.previousDatum):R={x:u.x,y:u.y,width:u.width,height:u.height,clipBBox:u.clipBBox,opacity:u.opacity};let F=zs[k];return He(ge({},R),{phase:F})}}}function n$(e,t){let n=t[e?"y":"x"],a=1/0,u=0;return n?(e?u=n.scale.convert(Ha.is(n.scale)?0:Math.max(...n.range)):a=n.scale.convert(Ha.is(n.scale)?0:Math.min(...n.range)),{startingX:a,startingY:u}):{startingX:a,startingY:u}}function WL(e,{x:t,y:n,width:a,height:u,clipBBox:y,opacity:k}){return{x:t,y:n,width:a,height:u,clipBBox:y,opacity:k}}function i3(e){if(e===void 0)return;let{x:t,y:n,width:a,height:u}=e;return new ki(t,n,a,u)}var KO,n3=A({"packages/ag-charts-community/src/chart/series/cartesian/barUtil.ts"(){"use strict";Gr(),cs(),vn(),gn(),ra(),Tn(),gt(),KO=e=>{var t;return WC((t=e.yValue)!=null?t:0)}}});function D6(e,t,n){if(t.enabled&&n){let{x:a,y:u,text:y,textAlign:k,textBaseline:R}=n,{color:F,fontStyle:_,fontWeight:V,fontSize:K,fontFamily:q}=t;e.setProperties({visible:!0,x:a,y:u,text:y,fill:F,fontStyle:_,fontWeight:V,fontSize:K,fontFamily:q,textAlign:k,textBaseline:R})}else e.visible=!1}function E6({isUpward:e,isVertical:t,placement:n,padding:a=0,rect:u}){let y=u.x+u.width/2,k=u.y+u.height/2,R="center",F="middle";if(n!=="inside-center"){let _=(e?1:-1)*(t?-1:1),{direction:V,textAlignment:K}=I6[n],q=(V+1)*.5;if(t){let $=e?u.y+u.height:u.y,te=u.height*_;k=$+te*q+a*K*_,F=K===_?"top":"bottom"}else{let $=e?u.x:u.x+u.width,te=u.width*_;y=$+te*q+a*K*_,R=K===_?"left":"right"}}return{x:y,y:k,textAlign:R,textBaseline:F}}var I6,T6=A({"packages/ag-charts-community/src/chart/series/cartesian/labelUtil.ts"(){"use strict";I6={"inside-start":{inside:!0,direction:-1,textAlignment:1},"inside-end":{inside:!0,direction:1,textAlignment:-1},"outside-start":{inside:!1,direction:-1,textAlignment:-1},"outside-end":{inside:!1,direction:1,textAlignment:1}}}}),a3,o3,R6,P6,r3,UL,L6=A({"packages/ag-charts-community/src/chart/series/cartesian/barSeries.ts"(){"use strict";Gr(),cs(),vn(),xa(),Dr(),zp(),gn(),bn(),qv(),Tn(),Il(),gt(),Js(),Pl(),Eh(),LS(),t3(),t$(),n3(),Fl(),T6(),Ba(),a3=0,o3=1,R6=2,P6=3,r3=4,UL=class extends e3{constructor(e){super({moduleCtx:e,directionKeys:qc,directionNames:wg,pickModes:[2,1,0],pathsPerSeries:[],hasHighlightedLabels:!0,datumSelectionGarbageCollection:!1,animationAlwaysUpdateSelections:!0,animationResetFns:{datum:WL,label:Af}}),this.properties=new Lr,this.connectsToYAxis=!0,this.dataAggregationFilters=void 0}get pickModeAxis(){return this.properties.sparklineMode?"main":void 0}crossFilteringEnabled(){return this.properties.yFilterKey!=null&&(this.seriesGrouping==null||this.seriesGrouping.stackIndex===0)}async processData(e){var Te,ze,qe,et,$e,lt,at,ht;if(!this.properties.isValid()||!this.data)return;let{xKey:t,yKey:n,yFilterKey:a,normalizedTo:u,fastDataProcessing:y}=this.properties,{seriesGrouping:{groupIndex:k=this.id}={},data:R}=this,F=(ze=(Te=this.seriesGrouping)==null?void 0:Te.groupCount)!=null?ze:0,_=(et=(qe=this.seriesGrouping)==null?void 0:qe.stackCount)!=null?et:0,V=!y||u!=null||F>1||_>1,K=!this.ctx.animationManager.isSkipped(),q=($e=this.getCategoryAxis())==null?void 0:$e.scale,$=(lt=this.getValueAxis())==null?void 0:lt.scale,{isContinuousX:te,xScaleType:se,yScaleType:de}=this.getScaleInformation({xScale:q,yScale:$}),pe=`bar-stack-${k}-yValues`,Ce=`${pe}-trailing`,Se=this.visible?{}:{forceValue:0},ve=[Td(t,se,{id:"xValue"}),Yi(n,de,ge({id:"yValue-raw",invalidValue:null},Se))];this.crossFilteringEnabled()&&ve.push(Yi(a,de,ge({id:"yFilterValue",invalidValue:null},Se))),V&&ve.push(..._p(n,"normal","current",ge({id:"yValue-end",rangeId:"yValue-range",invalidValue:null,missingValue:0,groupId:pe,separateNegative:!0},Se),de),..._p(n,"trailing","current",ge({id:"yValue-start",invalidValue:null,missingValue:0,groupId:Ce,separateNegative:!0},Se),de)),te&&ve.push(le,we),pa(u)&&ve.push(KS([pe,Ce],Math.abs(u),"range")),K&&this.processedData&&ve.push(Z(this.id,this.processedData)),(K||!V)&&ve.push(Qb());let{dataModel:ke,processedData:De}=await this.requestDataModel(e,R,{props:ve,groupByKeys:V,groupByData:!V});this.dataAggregationFilters=this.aggregateData(ke,De),this.smallestDataInterval=(at=De.reduced)==null?void 0:at.smallestKeyInterval,this.largestDataInterval=(ht=De.reduced)==null?void 0:ht.largestKeyInterval,this.animationState.transition("updateData")}getSeriesDomain(e){var F,_;let{processedData:t,dataModel:n}=this;if(n==null||t==null)return[];let a=(_=(F=t.rawDataSources)==null?void 0:F.get(this.id))!=null?_:t.rawData;if(a==null||a.length===0)return[];let u=n.resolveProcessedDataDefById(this,"xValue"),y=n.getDomain(this,"xValue","key",t),k=t.type==="grouped"?n.getDomain(this,"yValue-end","value",t):n.getDomain(this,"yValue-raw","value",t),R=this.crossFilteringEnabled()?n.getDomain(this,"yFilterValue","value",t):void 0;if(R!=null&&(k=[Math.min(k[0],R[0]),Math.max(k[1],R[1])]),e===this.getCategoryDirection())return(u==null?void 0:u.def.type)==="key"&&u.def.valueType==="category"?y:this.padBandExtent(y);if(this.getValueAxis()instanceof uc)return $s(k);{let V=[Math.min(0,k[0]),Math.max(0,k[1])];return $s(V)}}getSeriesRange(e,t){var K;let{dataModel:n,processedData:a}=this;if(!n||!a||this.getBarDirection()==="x")return[NaN,NaN];let u=this.axes.x.scale,y=n.resolveKeysById(this,"xValue",a),k=(K=u.bandwidth)!=null?K:0,[R,F]=Da(y.length,t,q=>{let $=u.convert(y[q]);return[$,$+k]}),[_,V]=n.getDomainBetweenRange(this,a.type==="ungrouped"?["yValue-raw"]:["yValue-end"],[R,F],a);return[Math.min(_,0),Math.max(V,0)]}aggregateData(e,t){}visibleRange(e,t,n,a){return[0,e]}createNodeData(){var Xt,Yt;let{dataModel:e,processedData:t,groupScale:n,dataAggregationFilters:a}=this,u=this.getCategoryAxis(),y=this.getValueAxis();if(!e||!t||!u||!y||!this.properties.isValid())return;let k=(Yt=(Xt=t.rawDataSources)==null?void 0:Xt.get(this.id))!=null?Yt:t.rawData;if(k==null||k.length===0)return;let R=u.scale,F=y.scale,{xKey:_,yKey:V,xName:K,yName:q,fill:$,stroke:te,strokeWidth:se,cornerRadius:de,legendItemName:pe,label:Ce}=this.properties,Se=y.isReversed(),{barWidth:ve,groupIndex:ke}=this.updateGroupScale(u),De=n.convert(String(ke)),Te=Ha.is(R)?ve*-.5:0,ze=e.resolveKeysById(this,"xValue",t),qe=e.resolveColumnById(this,"yValue-raw",t),et=this.crossFilteringEnabled()?e.resolveColumnById(this,"yFilterValue",t):void 0,$e=!this.ctx.animationManager.isSkipped(),lt=Ut=>R.convert(ze[Ut])+De+Te,at=F.convert(0),ht=({datum:Ut,datumIndex:oi,valueIndex:ti,xValue:ai,yValue:ui,cumulativeValue:qt,phantom:Zt,currY:pi,prevY:si,x:ci,width:yi,isPositive:sn,yRange:Ni,labelText:nn,opacity:Gi,crossScale:Pn=1})=>{let Ln=sn!==Se,_r=F.convert(pi),ul=F.convert(si),Hu=F.convert(Ni),ts=this.getBarDirection()==="x",Ph=yi*.5*(1-Pn),wc={x:ts?Math.min(_r,ul):ci+Ph,y:ts?ci+Ph:Math.min(_r,ul),width:ts?Math.abs(ul-_r):yi*Pn,height:ts?yi*Pn:Math.abs(ul-_r)},JE=new ki(wc.x,wc.y,wc.width,wc.height),RC={x:ts?Math.min(at,Hu):ci+Ph,y:ts?ci+Ph:Math.min(at,Hu),width:ts?Math.abs(at-Hu):yi*Pn,height:ts?yi*Pn:Math.abs(at-Hu)},IA=this.shouldFlipXY()?wc.height:wc.width;return{series:this,itemId:Zt?ee(V,Zt):V,datum:Ut,datumIndex:oi,valueIndex:ti,cumulativeValue:qt,phantom:Zt,xValue:ai,yValue:ui,yKey:V,xKey:_,capDefaults:{lengthRatioMultiplier:IA,lengthMax:IA},x:RC.x,y:RC.y,width:RC.width,height:RC.height,midPoint:{x:wc.x+wc.width/2,y:wc.y+wc.height/2},fill:$,stroke:te,opacity:Gi,strokeWidth:se,cornerRadius:de,topLeftCornerRadius:ts!==Ln,topRightCornerRadius:Ln,bottomRightCornerRadius:ts===Ln,bottomLeftCornerRadius:!Ln,clipBBox:JE,label:nn!=null?ge({text:nn},E6({isUpward:Ln,isVertical:!ts,placement:Ce.placement,padding:Ce.padding,rect:wc})):void 0,missing:ui==null,focusable:!Zt}},vt=[],wt=[],Ct=[],yt=(Ut,oi,ti,ai,ui,qt,Zt,pi)=>{let si=ze[Ut];if(si==null)return;let ci=qe[Ut],yi=et!=null?Number(et[Ut]):void 0,sn=ci>=0&&!Object.is(ci,-0);if(!Number.isFinite(qt)||yi!=null&&!Number.isFinite(yi))return;let Ni=ci!=null?this.getLabelText(this.properties.label,{datum:k[Ut],value:yi!=null?yi:ci,xKey:_,yKey:V,xName:K,yName:q,legendItemName:pe}):void 0,nn=yi!=null&&yi>ci,Gi=ht({datum:k[Ut],datumIndex:Ut,valueIndex:oi,xValue:si,yValue:yi!=null?yi:ci,cumulativeValue:yi!=null?yi:qt,phantom:!1,currY:yi!=null?ui+yi:qt,prevY:ui,x:ti,width:ai,isPositive:sn,yRange:Math.max(ui+(yi!=null?yi:-1/0),Zt),labelText:Ni,opacity:pi,crossScale:nn?.6:void 0});if(wt.push(Gi),Ct.push(Gi),yi!=null){let Pn=ht({datum:k[Ut],datumIndex:Ut,valueIndex:oi,xValue:si,yValue:yi,cumulativeValue:yi,phantom:!0,currY:qt,prevY:ui,x:ti,width:ai,isPositive:sn,yRange:Zt,labelText:void 0,opacity:pi,crossScale:void 0});vt.push(Pn)}},[Et,At]=ss(u.range),[Dt,Ot]=R.range,It=Ot-Dt,Rt=a==null?void 0:a.find(Ut=>Ut.maxRange>It);if(t.type==="grouped"){let Ut=ve,oi=e.resolveColumnById(this,"yValue-start",t),ti=e.resolveColumnById(this,"yValue-end",t),ai=e.resolveProcessedDataIndexById(this,"yValue-range");t.groups.forEach(({datumIndices:ui,aggregation:qt})=>{let Zt=qt[ai];ui.forEach((pi,si)=>{let ci=lt(pi),yi=qe[pi],sn=yi>=0&&!Object.is(yi,-0),Ni=Number(oi[pi]),nn=Number(ti[pi]),Gi=Zt[sn?1:0];yt(pi,si,ci,Ut,Ni,nn,Gi,1)})})}else if(Rt==null){let Ut=ve,[oi,ti]=this.visibleRange(k.length,Et,At,lt);t.rawData.length<1e3&&(oi=0,ti=t.rawData.length);for(let ai=oi;ai<ti;ai+=1){let ui=lt(ai),qt=Number(qe[ai]);yt(ai,0,ui,Ut,0,qt,qt,1)}}else{let{maxRange:Ut,indexData:oi}=Rt,[ti,ai]=this.visibleRange(Ut,Et,At,ui=>{let qt=ui*r3,Zt=oi[qt+a3],pi=oi[qt+o3],si=(Zt+pi)/2|0;return Zt!==-1?lt(si):NaN});for(let ui=ti;ui<ai;ui+=1){let qt=ui*r3,Zt=oi[qt+a3],pi=oi[qt+o3],si=oi[qt+R6],ci=oi[qt+P6];if(Zt===-1)continue;let yi=lt((Zt+pi)/2|0),sn=Math.abs(lt(pi)-lt(Zt))+ve,Ni=ze[ci]!=null?Number(qe[ci]):NaN,nn=ze[si]!=null?Number(qe[si]):NaN;if(Ni>0){let Gi=nn>=0?nn/Ni:1;yt(ci,0,yi,sn,0,Ni,Ni,Gi)}if(nn<0){let Gi=Ni<=0?Ni/nn:1;yt(si,1,yi,sn,0,nn,nn,Gi)}}}return{itemId:V,nodeData:vt.length>0?[...vt,...wt]:wt,labelData:Ct,scales:this.calculateScaling(),visible:this.visible||$e,groupScale:this.getScaling(this.groupScale)}}nodeFactory(){return new Za}getHighlightData(e,t){let n=e.find(a=>a.datum===t.datum&&!a.phantom);return n!=null?[n]:void 0}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>this.getDatumId(t))}getItemBaseStyle(e){var u,y,k,R,F,_,V,K;let{properties:t}=this,{cornerRadius:n}=t,a=e?t.highlightStyle.item:void 0;return{fill:(u=a==null?void 0:a.fill)!=null?u:t.fill,fillOpacity:(y=a==null?void 0:a.fillOpacity)!=null?y:t.fillOpacity,stroke:(k=a==null?void 0:a.stroke)!=null?k:t.stroke,strokeWidth:(R=a==null?void 0:a.strokeWidth)!=null?R:t.strokeWidth,strokeOpacity:(F=a==null?void 0:a.strokeOpacity)!=null?F:t.strokeOpacity,lineDash:(V=(_=a==null?void 0:a.lineDash)!=null?_:t.lineDash)!=null?V:[],lineDashOffset:(K=a==null?void 0:a.lineDashOffset)!=null?K:t.lineDashOffset,cornerRadius:n}}getItemStyleOverrides(e,t,n,a,u,y){let{id:k,properties:R}=this,{xKey:F,yKey:_,itemStyler:V}=R;if(V==null)return;let{xDomain:K,yDomain:q}=this.cachedDatumCallback("domain",()=>({xDomain:this.getSeriesDomain("x"),yDomain:this.getSeriesDomain("y")}));return this.cachedDatumCallback(ee(e,y?"highlight":"node"),()=>V(ge(He(ge({seriesId:k},Tp(t,F,_,K,q)),{xValue:n,yValue:a,highlighted:y}),u)))}updateDatumNodes(e){var ve;if(!this.properties.isValid())return;let{xKey:t,yKey:n,stackGroup:a,fill:u,fillOpacity:y,stroke:k,strokeWidth:R,strokeOpacity:F,lineDash:_,lineDashOffset:V,itemStyler:K,shadow:q,highlightStyle:{item:$}}=this.properties,te=this.axes.x,se=(ve=this.properties.crisp)!=null?ve:A6(te==null?void 0:te.scale,te==null?void 0:te.visibleRange,this.smallestDataInterval,this.largestDataInterval),de=this.getCategoryDirection()==="x",pe={fill:u,stroke:k,lineDash:_,lineDashOffset:V,fillShadow:q,strokeWidth:this.getStrokeWidth(R),fillOpacity:0,strokeOpacity:0},Ce=this.getSeriesDomain("x"),Se=this.getSeriesDomain("y");e.datumSelection.each((ke,De)=>{var et,$e,lt,at;let Te=ge({seriesId:this.id,isHighlighted:e.isHighlight,highlightStyle:$,style:pe,itemStyler:K,stackGroup:a},Tp(De,t,n,Ce,Se));pe.fillOpacity=y*(De.phantom?.2:1),pe.strokeOpacity=F*(De.phantom?.2:1),pe.cornerRadius=De.cornerRadius,pe.topLeftCornerRadius=De.topLeftCornerRadius,pe.topRightCornerRadius=De.topRightCornerRadius,pe.bottomRightCornerRadius=De.bottomRightCornerRadius,pe.bottomLeftCornerRadius=De.bottomLeftCornerRadius;let ze=de?(($e=(et=De.clipBBox)==null?void 0:et.width)!=null?$e:De.width)>0:((at=(lt=De.clipBBox)==null?void 0:lt.height)!=null?at:De.height)>0,qe=k6(this,this.getDatumId(De),Te);qe.crisp=se,qe.visible=ze,M6(ke,qe)})}updateLabelSelection(e){let t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t,n=>{n.pointerEvents=1})}updateLabelNodes(e){e.labelSelection.each((t,n)=>{D6(t,this.properties.label,n.label)})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:u}=this,{xKey:y,xName:k,yKey:R,yName:F,legendItemName:_,stackGroup:V,tooltip:K}=u,q=this.getCategoryAxis(),$=this.getValueAxis();if(!n||!a||a.rawData.length===0||!q||!$)return;let{datumIndex:te}=e,se=a.rawData[te],de=n.resolveKeysById(this,"xValue",a)[te],pe=n.resolveColumnById(this,"yValue-raw",a)[te];if(de==null)return;let Ce=this.getItemBaseStyle(!1);return Object.assign(Ce,this.getItemStyleOverrides(String(te),se,de,pe,Ce,!1)),K.formatTooltip({heading:q.formatDatum(de),symbol:this.legendItemSymbol(),data:[{label:F,fallbackLabel:R,value:$.formatDatum(pe)}]},ge(ge({seriesId:t,datum:se,title:F,xKey:y,xName:k,yKey:R,yName:F,legendItemName:_,stackGroup:V},Ce),this.getModuleTooltipParams()))}legendItemSymbol(){let{fill:e,stroke:t,strokeWidth:n,fillOpacity:a,strokeOpacity:u}=this.properties;return{marker:{fill:e,fillOpacity:a,stroke:t,strokeWidth:n,strokeOpacity:u}}}getLegendData(e){var F;let{showInLegend:t}=this.properties;if(e!=="category"||!this.properties.isValid())return[];let{id:n,ctx:{legendManager:a},visible:u}=this,{yKey:y,yName:k,legendItemName:R}=this.properties;return[{legendType:"category",id:n,itemId:y,seriesId:n,enabled:u&&a.getItemEnabled({seriesId:n,itemId:y}),label:{text:(F=R!=null?R:k)!=null?F:y},symbol:this.legendItemSymbol(),legendItemName:R,hideInLegend:!t}]}animateEmptyUpdateReady({datumSelection:e,labelSelection:t,annotationSelections:n}){let a=HL(jL(this.isVertical(),this.axes,"normal"));to(this.id,"nodes",this.ctx.animationManager,[e],a),Ea(this,"labels",this.ctx.animationManager,t),Ea(this,"annotations",this.ctx.animationManager,...n)}animateWaitingUpdateReady(e){var V,K,q,$,te,se;let{datumSelection:t,labelSelection:n,annotationSelections:a,previousContextData:u}=e;this.ctx.animationManager.stopByAnimationGroupId(this.id);let y=(q=(K=(V=this.processedData)==null?void 0:V.reduced)==null?void 0:K.diff)==null?void 0:q[this.id];y==null&&((te=($=this.processedData)==null?void 0:$.reduced)==null?void 0:te.diff)!=null&&(y={changed:!0,added:new Set(Array.from(t,({datum:de})=>this.getDatumId(de))),updated:new Set,removed:new Set,moved:new Set});let k=u==null?"fade":"normal",R=HL(jL(this.isVertical(),this.axes,k));to(this.id,"nodes",this.ctx.animationManager,[t],R,(de,pe)=>this.getDatumId(pe),y);let F=u!=null&&(!Ja(e.contextData.scales.x,u.scales.x)||!Ja(e.contextData.scales.y,u.scales.y)||!Ja(e.contextData.groupScale,e.previousContextData.groupScale));(((se=y==null?void 0:y.changed)!=null?se:!1)||F)&&(Ea(this,"labels",this.ctx.animationManager,n),Ea(this,"annotations",this.ctx.animationManager,...a))}getDatumId(e){return ee(e.xValue,e.valueIndex,e.phantom)}isLabelEnabled(){return this.properties.label.enabled}computeFocusBounds({datumIndex:e}){var n;let t=(n=this.contextNodeData)==null?void 0:n.nodeData[e].clipBBox;return i3(t)}},UL.className="BarSeries",UL.type="bar"}}),s3,O6=A({"packages/ag-charts-community/src/chart/series/cartesian/barSeriesModule.ts"(){"use strict";Mf(),_o(),rw(),L6(),s3={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"bar",moduleFactory:e=>new UL(e),stackable:!0,groupable:!0,tooltipDefaults:{range:"exact"},defaultAxes:gR([{type:"number",position:"left"},{type:"category",position:"bottom"}],e=>(e==null?void 0:e.direction)==="horizontal"),themeTemplate:{series:{direction:"vertical",fillOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,label:{enabled:!1,fontWeight:"normal",fontSize:12,fontFamily:$a,color:Bp,placement:"inside-center"},shadow:{enabled:!1,color:Qv,xOffset:3,yOffset:3,blur:5},errorBar:{cap:{lengthRatio:.3}}}},paletteFactory:Nk}}}),qO,l3,Ao,a$=A({"packages/ag-charts-community/src/chart/series/cartesian/bubbleSeriesProperties.ts"(){"use strict";nx(),ac(),Ai(),yd(),iE(),oC(),Fl(),qO=class extends _d{constructor(){super(...arguments),this.maxSize=30}},b([Ge(ni),Mi()],qO.prototype,"maxSize",2),b([Ge(Wy,{optional:!0}),Mi()],qO.prototype,"domain",2),l3=class extends mr{constructor(){super(...arguments),this.placement="top"}},b([Ge(lh)],l3.prototype,"placement",2),Ao=class extends yu{constructor(){super(...arguments),this.colorRange=["#ffff00","#00ff00","#0000ff"],this.label=new l3,this.tooltip=new pc,this.marker=new qO}},b([Ge(ei)],Ao.prototype,"xKey",2),b([Ge(ei)],Ao.prototype,"yKey",2),b([Ge(ei)],Ao.prototype,"sizeKey",2),b([Ge(ei,{optional:!0})],Ao.prototype,"labelKey",2),b([Ge(ei,{optional:!0})],Ao.prototype,"colorKey",2),b([Ge(ei,{optional:!0})],Ao.prototype,"xFilterKey",2),b([Ge(ei,{optional:!0})],Ao.prototype,"yFilterKey",2),b([Ge(ei,{optional:!0})],Ao.prototype,"sizeFilterKey",2),b([Ge(ei,{optional:!0})],Ao.prototype,"xName",2),b([Ge(ei,{optional:!0})],Ao.prototype,"yName",2),b([Ge(ei,{optional:!0})],Ao.prototype,"sizeName",2),b([Ge(ei,{optional:!0})],Ao.prototype,"labelName",2),b([Ge(ei,{optional:!0})],Ao.prototype,"colorName",2),b([Ge(Wy,{optional:!0})],Ao.prototype,"colorDomain",2),b([Ge(hs)],Ao.prototype,"colorRange",2),b([Ge(ei,{optional:!0})],Ao.prototype,"title",2),b([tr("marker.shape")],Ao.prototype,"shape",2),b([tr("marker.size")],Ao.prototype,"size",2),b([tr("marker.maxSize")],Ao.prototype,"maxSize",2),b([tr("marker.domain",{optional:!0})],Ao.prototype,"domain",2),b([tr("marker.fill",{optional:!0})],Ao.prototype,"fill",2),b([tr("marker.fillOpacity")],Ao.prototype,"fillOpacity",2),b([tr("marker.stroke",{optional:!0})],Ao.prototype,"stroke",2),b([tr("marker.strokeWidth")],Ao.prototype,"strokeWidth",2),b([tr("marker.strokeOpacity")],Ao.prototype,"strokeOpacity",2),b([tr("marker.itemStyler",{optional:!0})],Ao.prototype,"itemStyler",2),b([Ge(Ei)],Ao.prototype,"label",2),b([Ge(Ei)],Ao.prototype,"tooltip",2)}}),F6,YO,o$=A({"packages/ag-charts-community/src/chart/series/cartesian/bubbleSeries.ts"(){"use strict";cv(),Np(),xo(),xa(),ic(),Mr(),ra(),Nc(),Tn(),Il(),gt(),fu(),Js(),Pl(),Eh(),a$(),Fl(),GL(),F6=class extends Zb{constructor(e,t,n,a){super(e,t,n,a),this.sizeKey=a.properties.sizeKey}},YO=class extends Op{constructor(e){super({moduleCtx:e,directionKeys:qc,directionNames:wg,pickModes:[2,1,0],pathsPerSeries:[],hasMarkers:!0,markerSelectionGarbageCollection:!1,animationResetFns:{label:Af,marker:NL},usesPlacedLabels:!0}),this.NodeEvent=F6,this.clipFocusBox=!1,this.properties=new Ao,this.sizeScale=new Xc,this.colorScale=new ou}get pickModeAxis(){return"main-category"}async processData(e){var De,Te,ze,qe;if(!this.properties.isValid()||this.data==null||!this.visible)return;let t=(De=this.axes.x)==null?void 0:De.scale,n=(Te=this.axes.y)==null?void 0:Te.scale,{xScaleType:a,yScaleType:u}=this.getScaleInformation({xScale:t,yScale:n}),y=this.colorScale.type,k=this.sizeScale.type,{xKey:R,yKey:F,sizeKey:_,xFilterKey:V,yFilterKey:K,sizeFilterKey:q,labelKey:$,colorDomain:te,colorRange:se,colorKey:de,marker:pe}=this.properties,{dataModel:Ce,processedData:Se}=await this.requestDataModel(e,this.data,{props:[Yi(R,a,{id:"xValue"}),Yi(F,u,{id:"yValue"}),...V!=null?[Yi(V,a,{id:"xFilterValue"})]:[],...K!=null?[Yi(K,u,{id:"yFilterValue"})]:[],...q!=null?[Yi(q,k,{id:"sizeFilterValue"})]:[],Yi(_,k,{id:"sizeValue"}),...de?[Yi(de,y,{id:"colorValue"})]:[],...$?[Yi($,"band",{id:"labelValue"})]:[]]}),ve=Ce.resolveProcessedDataIndexById(this,"sizeValue"),ke=(ze=Se.domain.values[ve])!=null?ze:[];if(this.sizeScale.domain=pe.domain?pe.domain:ke,de){let et=Ce.resolveProcessedDataIndexById(this,"colorValue");this.colorScale.domain=(qe=te!=null?te:Se.domain.values[et])!=null?qe:[],this.colorScale.range=se,this.colorScale.update()}this.animationState.transition("updateData")}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;if(!n||!t)return[];let a=e==="x"?"xValue":"yValue",u=t.resolveProcessedDataDefById(this,a),y=t.getDomain(this,a,"value",n);return(u==null?void 0:u.def.type)==="value"&&(u==null?void 0:u.def.valueType)==="category"?y:$s(ep(y))}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){var It,Rt;let{axes:e,dataModel:t,processedData:n,colorScale:a,sizeScale:u,visible:y}=this,{xKey:k,yKey:R,sizeKey:F,xFilterKey:_,yFilterKey:V,sizeFilterKey:K,labelKey:q,xName:$,yName:te,sizeName:se,labelName:de,label:pe,colorKey:Ce,marker:Se}=this.properties,ve=ca(Se.shape),{placement:ke}=pe,De=e.x,Te=e.y;if(!(t&&(n!=null&&n.rawData.length)&&y&&De&&Te))return;let ze=t.resolveColumnById(this,"xValue",n),qe=t.resolveColumnById(this,"yValue",n),et=F!=null?t.resolveColumnById(this,"sizeValue",n):void 0,$e=Ce!=null?t.resolveColumnById(this,"colorValue",n):void 0,lt=q!=null?t.resolveColumnById(this,"labelValue",n):void 0,at=_!=null?t.resolveColumnById(this,"xFilterValue",n):void 0,ht=V!=null?t.resolveColumnById(this,"yFilterValue",n):void 0,vt=K!=null?t.resolveColumnById(this,"sizeFilterValue",n):void 0,wt=De.scale,Ct=Te.scale,yt=((It=wt.bandwidth)!=null?It:0)/2,Et=((Rt=Ct.bandwidth)!=null?Rt:0)/2,At=[];u.range=[Se.size,Se.maxSize];let Dt=pe.getFont(),Ot=Zh.getMeasurer({font:Dt});return n.rawData.forEach((Xt,Yt)=>{let Ut=ze[Yt],oi=qe[Yt],ti=et==null?void 0:et[Yt],ai=wt.convert(Ut)+yt,ui=Ct.convert(oi)+Et,qt;at!=null&&ht!=null&&(qt=at[Yt]===Ut&&ht[Yt]===oi,vt!=null&&qt&&(qt=vt[Yt]===ti));let Zt=this.getLabelText(pe,{value:lt!=null?lt[Yt]:oi,datum:Xt,xKey:k,yKey:R,sizeKey:F,labelKey:q,xName:$,yName:te,sizeName:se,labelName:de}),pi=Ot.measureText(String(Zt)),si=ti!=null?u.convert(ti):Se.size,ci=$e!=null?a.convert($e[Yt]):void 0;At.push({series:this,itemId:R,yKey:R,xKey:k,datum:Xt,datumIndex:Yt,xValue:Ut,yValue:oi,sizeValue:ti,point:{x:ai,y:ui,size:si},midPoint:{x:ai,y:ui},fill:ci,label:ge({text:Zt},pi),marker:ve,placement:ke,selected:qt})}),{itemId:R,nodeData:At,labelData:At,scales:this.calculateScaling(),visible:this.visible}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}getLabelData(){var e,t;return this.isLabelEnabled()?(t=(e=this.contextNodeData)==null?void 0:e.labelData)!=null?t:[]:[]}markerFactory(){let{shape:e}=this.properties.marker,t=ca(e);return new t}updateMarkerSelection(e){let{nodeData:t,markerSelection:n}=e;this.properties.marker.isDirty()&&(n.clear(),n.cleanup());let a=this.properties.marker.enabled?t:[];return n.update(a,void 0,u=>ee([u.xValue,u.yValue,u.label.text]))}getMarkerItemBaseStyle(e){var u,y,k,R,F;let{properties:t}=this,{marker:n}=t,a=e?t.highlightStyle.item:void 0;return{fill:(u=a==null?void 0:a.fill)!=null?u:n.fill,fillOpacity:(y=a==null?void 0:a.fillOpacity)!=null?y:n.fillOpacity,stroke:(k=a==null?void 0:a.stroke)!=null?k:n.stroke,strokeWidth:(R=a==null?void 0:a.strokeWidth)!=null?R:n.strokeWidth,strokeOpacity:(F=a==null?void 0:a.strokeOpacity)!=null?F:n.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a){let{id:u,properties:y}=this,{xKey:k,yKey:R,sizeKey:F,labelKey:_,marker:V}=y,{itemStyler:K}=V;if(K!=null)return this.cachedDatumCallback(ee(e,a?"highlight":"node"),()=>K(ge({seriesId:u,datum:t,xKey:k,yKey:R,sizeKey:F,labelKey:_,highlighted:a},n)))}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n}=e,{xKey:a,yKey:u,sizeKey:y,labelKey:k,marker:R}=this.properties,{size:F,shape:_,fill:V,fillOpacity:K,stroke:q,strokeWidth:$,strokeOpacity:te}=En(n&&this.properties.highlightStyle.item,R.getStyle()),se={size:F,shape:_,fill:V,fillOpacity:K,stroke:q,strokeWidth:$,strokeOpacity:te};this.sizeScale.range=[R.size,R.maxSize],t.each((de,pe)=>{this.updateMarkerStyle(de,R,{datum:pe,highlighted:n,xKey:a,yKey:u,sizeKey:y,labelKey:k},se,{selected:pe.selected})}),n||this.properties.marker.markClean()}updatePlacedLabelData(e){this.labelSelection.update(e.map(t=>He(ge({},t.datum),{point:{x:t.x,y:t.y,size:t.datum.point.size}})),t=>{t.pointerEvents=1}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){let{label:t}=this.properties;e.labelSelection.each((n,a)=>{var u,y,k,R;n.text=a.label.text,n.fill=t.color,n.x=(y=(u=a.point)==null?void 0:u.x)!=null?y:0,n.y=(R=(k=a.point)==null?void 0:k.y)!=null?R:0,n.fontStyle=t.fontStyle,n.fontWeight=t.fontWeight,n.fontSize=t.fontSize,n.fontFamily=t.fontFamily,n.textAlign="left",n.textBaseline="top"})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:u,properties:y}=this,{xKey:k,xName:R,yKey:F,yName:_,sizeKey:V,sizeName:K,labelKey:q,labelName:$,title:te,tooltip:se}=y,de=u.x,pe=u.y;if(!n||!a||a.rawData.length===0||!de||!pe)return;let{datumIndex:Ce}=e,Se=a.rawData[Ce],ve=n.resolveColumnById(this,"xValue",a)[Ce],ke=n.resolveColumnById(this,"yValue",a)[Ce];if(ve==null)return;let De=[{label:R,fallbackLabel:k,value:de.formatDatum(ve)},{label:_,fallbackLabel:F,value:pe.formatDatum(ke)}];if(V!=null){let ze=n.resolveColumnById(this,"sizeValue",a)[Ce];De.push({label:K,fallbackLabel:V,value:String(ze)})}let Te=this.getMarkerItemBaseStyle(!1);return Object.assign(Te,this.getMarkerItemStyleOverrides(String(Ce),Se,Te,!1)),se.formatTooltip({title:te,symbol:this.legendItemSymbol(),data:De},ge(ge({seriesId:t,datum:Se,title:F,xKey:k,xName:R,yKey:F,yName:_,sizeKey:V,sizeName:K,labelKey:q,labelName:$},Te),this.getModuleTooltipParams()))}legendItemSymbol(){let{marker:e}=this.properties,{shape:t,fill:n,stroke:a,fillOpacity:u,strokeOpacity:y,strokeWidth:k}=e;return{marker:{shape:t,fill:n!=null?n:"rgba(0, 0, 0, 0)",stroke:a!=null?a:"rgba(0, 0, 0, 0)",fillOpacity:u!=null?u:1,strokeOpacity:y!=null?y:1,strokeWidth:k!=null?k:0}}}getLegendData(){var k;if(!this.properties.isValid())return[];let{id:e,ctx:{legendManager:t},visible:n}=this,{yKey:a,yName:u,title:y}=this.properties;return[{legendType:"category",id:e,itemId:a,seriesId:e,enabled:n&&t.getItemEnabled({seriesId:e,itemId:a}),label:{text:(k=y!=null?y:u)!=null?k:a},symbol:this.legendItemSymbol()}]}animateEmptyUpdateReady({markerSelection:e,labelSelection:t}){Kz(this,this.ctx.animationManager,e),Ea(this,"labels",this.ctx.animationManager,t)}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new Wi}getFormattedMarkerStyle(e){let{xKey:t,yKey:n,sizeKey:a,labelKey:u}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:e,xKey:t,yKey:n,sizeKey:a,labelKey:u,highlighted:!1})}computeFocusBounds(e){return BL(this,e)}},YO.className="BubbleSeries",YO.type="bubble"}}),_6,r$=A({"packages/ag-charts-community/src/chart/series/cartesian/bubbleSeriesModule.ts"(){"use strict";Mf(),_o(),rw(),o$(),_6={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"bubble",moduleFactory:e=>new YO(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{shape:"circle",size:7,maxSize:30,fillOpacity:.8,tooltip:{position:{type:"node"}},label:{enabled:!1,fontSize:12,fontFamily:$a,color:mo}}},paletteFactory:Nk}}}),al,s$=A({"packages/ag-charts-community/src/chart/series/cartesian/histogramSeriesProperties.ts"(){"use strict";zk(),Ai(),yd(),oC(),Fl(),al=class extends yu{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.areaPlot=!1,this.aggregation="sum",this.shadow=new Mu,this.label=new mr,this.tooltip=new pc}},b([Ge(ei)],al.prototype,"xKey",2),b([Ge(ei,{optional:!0})],al.prototype,"yKey",2),b([Ge(ei,{optional:!0})],al.prototype,"xName",2),b([Ge(ei,{optional:!0})],al.prototype,"yName",2),b([Ge(sa,{optional:!0})],al.prototype,"fill",2),b([Ge(Cn)],al.prototype,"fillOpacity",2),b([Ge(sa,{optional:!0})],al.prototype,"stroke",2),b([Ge(ni)],al.prototype,"strokeWidth",2),b([Ge(Cn)],al.prototype,"strokeOpacity",2),b([Ge(hd)],al.prototype,"lineDash",2),b([Ge(ni)],al.prototype,"lineDashOffset",2),b([Ge(ni)],al.prototype,"cornerRadius",2),b([Ge(Oi)],al.prototype,"areaPlot",2),b([Ge(sh,{optional:!0})],al.prototype,"bins",2),b([Ge(uo(["count","sum","mean"],"a histogram aggregation"))],al.prototype,"aggregation",2),b([Ge(ni,{optional:!0})],al.prototype,"binCount",2),b([Ge(Ei)],al.prototype,"shadow",2),b([Ge(Ei)],al.prototype,"label",2),b([Ge(Ei)],al.prototype,"tooltip",2)}}),c3,XO,l$=A({"packages/ag-charts-community/src/chart/series/cartesian/histogramSeries.ts"(){"use strict";Gr(),xa(),zp(),tu(),bn(),Tn(),US(),Il(),gt(),Js(),Pl(),Eh(),n3(),Fl(),s$(),Jz(),c3=10,XO=class extends Op{constructor(e){super({moduleCtx:e,directionKeys:qc,directionNames:wg,pickModes:[1,0],datumSelectionGarbageCollection:!1,animationResetFns:{datum:WL,label:Af}}),this.properties=new al,this.calculatedBins=[]}deriveBins(e){let t=gd(e[0],e[1],c3),n=pd(e[0],e[1],c3),[a]=t,u=y=>[y,y+n];return[[a-n,a],...t.map(u)]}calculateNiceBins(e,t){let n=Math.floor(e[0]),a=e[1],u=t||1,{start:y,binSize:k}=this.calculateNiceStart(n,a,u);return this.getBins(y,a,k,u)}getBins(e,t,n,a){let u=[],y=this.calculatePrecision(n);for(let k=0;k<a;k++){let R=Math.round((e+k*n)*y)/y,F=Math.round((e+(k+1)*n)*y)/y;k===a-1&&(F=Math.max(F,t)),u[k]=[R,F]}return u}calculatePrecision(e){let t=10;if(isFinite(e)&&e>0)for(;e<1;)t*=10,e*=10;return t}calculateNiceStart(e,t,n){let a=Math.abs(t-e)/n,u=Math.floor(Math.log10(a)),y=Math.pow(10,u);return{start:Math.floor(e/y)*y,binSize:a}}async processData(e){var K,q;this.visible||(this.processedData=void 0,this.animationState.transition("updateData"));let{xKey:t,yKey:n,areaPlot:a,aggregation:u}=this.properties,y=(K=this.axes.x)==null?void 0:K.scale,k=(q=this.axes.y)==null?void 0:q.scale,{xScaleType:R,yScaleType:F}=this.getScaleInformation({yScale:k,xScale:y}),_=[Td(t,R),Ae];if(n){let $=Ik("groupAgg");u==="count"||(u==="sum"?$=bf("groupAgg"):u==="mean"&&($=QT("groupAgg"))),a&&($=HS("groupAgg",$)),_.push(Yi(n,F,{invalidValue:void 0}),$)}else{let $=Ik("groupAgg");a&&($=HS("groupAgg",$)),_.push($)}let V=$=>{var pe;let te=$s($.domain.keys[0]);if(te.length===0)return $.domain.groups=[],()=>[];let se=yn(this.properties.binCount)?this.calculateNiceBins(te,this.properties.binCount):(pe=this.properties.bins)!=null?pe:this.deriveBins(te),de=se.length;return this.calculatedBins=[...se],Ce=>{let Se=Ce.keys[0];for(let ve=0;ve<de;ve++){let ke=se[ve];if(Se>=ke[0]&&Se<ke[1]||ve===de-1&&Se<=ke[1])return ke}return[]}};!this.ctx.animationManager.isSkipped()&&this.processedData&&_.push(Z(this.id,this.processedData,!1)),await this.requestDataModel(e,this.data,{props:_,groupByFn:V}),this.animationState.transition("updateData")}getSeriesDomain(e){var k,R,F,_;let{processedData:t,dataModel:n}=this;if(!t||!n||!this.calculatedBins.length)return[];let a=n.getDomain(this,"groupAgg","aggregate",t),u=(k=this.calculatedBins)==null?void 0:k[0][0],y=(_=this.calculatedBins)==null?void 0:_[((F=(R=this.calculatedBins)==null?void 0:R.length)!=null?F:0)-1][1];return $s(e==="x"?[u,y]:a)}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){var Se,ve;let{id:e,axes:t,processedData:n}=this,a=t.x,u=t.y;if(!a||!u)return;let{scale:y}=a,{scale:k}=u,{xKey:R,yKey:F,xName:_,yName:V,fill:K,stroke:q,strokeWidth:$,cornerRadius:te}=this.properties,se=(Se=this.properties.label.formatter)!=null?Se:ke=>String(ke.value),de=[],pe={itemId:(ve=this.properties.yKey)!=null?ve:this.id,nodeData:de,labelData:de,scales:this.calculateScaling(),animationValid:!0,visible:this.visible};if(!this.visible||n==null||n.rawData.length===0||n.type!=="grouped")return pe;let{rawData:Ce}=n;return n.groups.forEach(({keys:ke,datumIndices:De,aggregation:Te},ze)=>{var oi;let[[qe,et]=[0,0]]=Te,$e=De.length,lt=ke,[at,ht]=lt,vt=De.map(ti=>Ce[ti]),wt=y.convert(at),Ct=y.convert(ht),yt=qe+et,Et=k.convert(0),At=k.convert(yt),Dt=Math.abs(Ct-wt),Ot=Math.abs(At-Et),It=Math.min(wt,Ct),Rt=Math.min(Et,At),Xt;yt!==0&&(Xt={x:It+Dt/2,y:Rt+Ot/2,text:(oi=this.cachedDatumCallback(ee(ze,"label"),()=>se({value:yt,datum:vt,seriesId:e,xKey:R,yKey:F,xName:_,yName:V})))!=null?oi:String(yt)});let Yt={x:It+Dt/2,y:Rt+Ot/2},Ut=u.isReversed();de.push({series:this,datumIndex:ze,datum:vt,aggregatedValue:yt,frequency:$e,domain:lt,yKey:F,xKey:R,x:It,y:Rt,xValue:wt,yValue:At,width:Dt,height:Ot,midPoint:Yt,fill:K,stroke:q,cornerRadius:te,topLeftCornerRadius:!Ut,topRightCornerRadius:!Ut,bottomRightCornerRadius:Ut,bottomLeftCornerRadius:Ut,opacity:1,strokeWidth:$,label:Xt})}),de.sort((ke,De)=>ke.x-De.x),pe}nodeFactory(){return new Za}updateDatumSelection(e){let{nodeData:t,datumSelection:n}=e;return n.update(t,a=>{a.crisp=!0},a=>a.domain.join("_"))}getItemBaseStyle(e){var a,u,y,k,R;let{properties:t}=this,n=e?t.highlightStyle.item:void 0;return{fill:(a=n==null?void 0:n.fill)!=null?a:t.fill,fillOpacity:(u=n==null?void 0:n.fillOpacity)!=null?u:t.fillOpacity,stroke:(y=n==null?void 0:n.stroke)!=null?y:t.stroke,strokeWidth:(k=n==null?void 0:n.strokeWidth)!=null?k:t.strokeWidth,strokeOpacity:(R=n==null?void 0:n.strokeOpacity)!=null?R:t.strokeOpacity}}updateDatumNodes(e){let{isHighlight:t}=e,{fillOpacity:n,strokeOpacity:a,lineDash:u,lineDashOffset:y,shadow:k,highlightStyle:{item:{fill:R,fillOpacity:F=n,stroke:_,strokeWidth:V}}}=this.properties;e.datumSelection.each((K,q,$)=>{var ke,De;let{cornerRadius:te,topLeftCornerRadius:se,topRightCornerRadius:de,bottomRightCornerRadius:pe,bottomLeftCornerRadius:Ce}=q,Se=t&&V!==void 0?V:q.strokeWidth,ve=t?F:n;K.fill=(ke=t?R:void 0)!=null?ke:q.fill,K.stroke=(De=t?_:void 0)!=null?De:q.stroke,K.fillOpacity=ve,K.strokeOpacity=a,K.strokeWidth=Se,K.lineDash=u,K.lineDashOffset=y,K.topLeftCornerRadius=se?te:0,K.topRightCornerRadius=de?te:0,K.bottomRightCornerRadius=pe?te:0,K.bottomLeftCornerRadius=Ce?te:0,K.fillShadow=k,K.zIndex=t?df.highlightedZIndex:$,K.visible=q.height>0})}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;return n.update(t,a=>{a.pointerEvents=1,a.textAlign="center",a.textBaseline="middle"})}updateLabelNodes(e){let{fontStyle:t,fontWeight:n,fontFamily:a,fontSize:u,color:y}=this.properties.label,k=this.isLabelEnabled();e.labelSelection.each((R,F)=>{k&&(F!=null&&F.label)?(R.text=F.label.text,R.x=F.label.x,R.y=F.label.y,R.fontStyle=t,R.fontWeight=n,R.fontFamily=a,R.fontSize=u,R.fill=y,R.visible=!0):R.visible=!1})}initQuadTree(e){let{value:t}=this.contentGroup.children().next();t&&$z(e,t.children())}pickNodeClosestDatum(e){return Qz(this,e)}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:u,properties:y,ctx:{localeManager:k}}=this,{xKey:R,xName:F,yKey:_,yName:V,tooltip:K}=y,q=u.x,$=u.y;if(!n||(a==null?void 0:a.type)!=="grouped"||a.rawData.length===0||!q||!$)return;let te=e.datumIndex,{aggregation:se,datumIndices:de,keys:pe}=a.groups[te],[[Ce,Se]=[0,0]]=se,ve=de.length,ke=pe,[De,Te]=ke,ze=Ce+Se,qe={data:de.map($e=>a.rawData[$e]),aggregatedValue:ze,frequency:ve,domain:ke},et=[{label:F,fallbackLabel:R,value:`${q.formatDatum(De)} - ${q.formatDatum(Te)}`},{label:k.t("seriesHistogramTooltipFrequency"),value:$.formatDatum(ve)}];if(_!=null){let $e;switch(y.aggregation){case"sum":$e=k.t("seriesHistogramTooltipSum",{yName:V});break;case"mean":$e=k.t("seriesHistogramTooltipMean",{yName:V});break;case"count":$e=k.t("seriesHistogramTooltipCount",{yName:V});break}et.push({label:$e,value:$.formatDatum(ze)})}return K.formatTooltip({symbol:this.legendItemSymbol(),data:et},ge({seriesId:t,datum:qe,title:V,xKey:R,xName:F,yKey:_,yName:V,xRange:[De,Te],frequency:ve},this.getItemBaseStyle(!1)))}legendItemSymbol(){let{fill:e,fillOpacity:t,stroke:n,strokeWidth:a,strokeOpacity:u}=this.properties;return{marker:{fill:e!=null?e:"rgba(0, 0, 0, 0)",stroke:n!=null?n:"rgba(0, 0, 0, 0)",fillOpacity:t,strokeOpacity:u,strokeWidth:a}}}getLegendData(e){var R;if(e!=="category")return[];let{id:t,ctx:{legendManager:n},visible:a}=this,{xKey:u,yName:y,showInLegend:k}=this.properties;return[{legendType:"category",id:t,itemId:u,seriesId:t,enabled:a&&n.getItemEnabled({seriesId:t,itemId:u}),label:{text:(R=y!=null?y:u)!=null?R:"Frequency"},symbol:this.legendItemSymbol(),hideInLegend:!k}]}animateEmptyUpdateReady({datumSelection:e,labelSelection:t}){let n=HL(jL(!0,this.axes,"normal"));to(this.id,"datums",this.ctx.animationManager,[e],n),Ea(this,"labels",this.ctx.animationManager,t)}animateWaitingUpdateReady(e){var a,u,y;let t=(y=(u=(a=this.processedData)==null?void 0:a.reduced)==null?void 0:u.diff)==null?void 0:y[this.id],n=HL(jL(!0,this.axes,"normal"));to(this.id,"datums",this.ctx.animationManager,[e.datumSelection],n,(k,R)=>ee(R.domain),t),Ea(this,"labels",this.ctx.animationManager,e.labelSelection)}isLabelEnabled(){return this.properties.label.enabled}computeFocusBounds({datumIndex:e}){var t;return i3((t=this.contextNodeData)==null?void 0:t.nodeData[e])}},XO.className="HistogramSeries",XO.type="histogram"}}),N6,c$=A({"packages/ag-charts-community/src/chart/series/cartesian/histogramSeriesModule.ts"(){"use strict";Mf(),_o(),l$(),N6={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"histogram",moduleFactory:e=>new XO(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{strokeWidth:1,fillOpacity:1,strokeOpacity:1,lineDash:[0],lineDashOffset:0,label:{enabled:!1,fontSize:12,fontFamily:$a,color:Bp},shadow:{enabled:!1,color:Qv,xOffset:3,yOffset:3,blur:5}}},paletteFactory:({takeColors:e})=>{let{fills:[t],strokes:[n]}=e(1);return{fill:t,stroke:n}}}}}),ol,d$=A({"packages/ag-charts-community/src/chart/series/cartesian/lineSeriesProperties.ts"(){"use strict";Ai(),yd(),iE(),oC(),Fl(),D(),ol=class extends yu{constructor(){super(...arguments),this.stroke="#874349",this.strokeWidth=2,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.interpolation=new m,this.marker=new _d,this.label=new mr,this.tooltip=new pc,this.connectMissingData=!1,this.sparklineMode=!1}},b([Ge(ei)],ol.prototype,"xKey",2),b([Ge(ei)],ol.prototype,"yKey",2),b([Ge(ei,{optional:!0})],ol.prototype,"xName",2),b([Ge(ei,{optional:!0})],ol.prototype,"yName",2),b([Ge(ei,{optional:!0})],ol.prototype,"yFilterKey",2),b([Ge(ei,{optional:!0})],ol.prototype,"stackGroup",2),b([Ge(ni,{optional:!0})],ol.prototype,"normalizedTo",2),b([Ge(ei,{optional:!0})],ol.prototype,"title",2),b([Ge(sa)],ol.prototype,"stroke",2),b([Ge(ni)],ol.prototype,"strokeWidth",2),b([Ge(Cn)],ol.prototype,"strokeOpacity",2),b([Ge(hd)],ol.prototype,"lineDash",2),b([Ge(ni)],ol.prototype,"lineDashOffset",2),b([Ge(Ei)],ol.prototype,"interpolation",2),b([Ge(Ei)],ol.prototype,"marker",2),b([Ge(Ei)],ol.prototype,"label",2),b([Ge(Ei)],ol.prototype,"tooltip",2),b([Ge(Oi)],ol.prototype,"connectMissingData",2),b([Ge(Oi)],ol.prototype,"sparklineMode",2)}}),z6,KL,B6=A({"packages/ag-charts-community/src/chart/series/cartesian/lineSeries.ts"(){"use strict";Gr(),eE(),Mm(),xo(),xa(),Mr(),ra(),bn(),Tn(),Il(),gt(),pf(),fu(),Js(),Pl(),Eh(),LS(),Fl(),d$(),sw(),GL(),Zz(),z6=.25,KL=class extends Op{constructor(e){super({moduleCtx:e,directionKeys:qc,directionNames:wg,hasMarkers:!0,pickModes:[2,1,0],markerSelectionGarbageCollection:!1,animationResetFns:{path:Xz({getVisible:()=>this.visible,getOpacity:()=>this.getOpacity()}),label:Af,marker:(t,n)=>ge(ge({},NL(t)),zL(t,n))}}),this.clipFocusBox=!1,this.properties=new ol,this.dataAggregationFilters=void 0}get pickModeAxis(){return this.properties.sparklineMode?"main":"main-category"}async processData(e){var ve,ke;if(this.data==null||!this.properties.isValid())return;let{data:t,visible:n,seriesGrouping:{groupIndex:a=this.id,stackCount:u=1}={}}=this,{xKey:y,yKey:k,yFilterKey:R,connectMissingData:F,normalizedTo:_}=this.properties,V=!this.ctx.animationManager.isSkipped(),K=(ve=this.axes.x)==null?void 0:ve.scale,q=(ke=this.axes.y)==null?void 0:ke.scale,{isContinuousX:$,xScaleType:te,yScaleType:se}=this.getScaleInformation({xScale:K,yScale:q}),de={invalidValue:null};F&&u>1&&(de.invalidValue=0,n||(de.forceValue=0));let pe=[];if($||pe.push(Td(y,te,{id:"xKey"})),pe.push(Yi(y,te,{id:"xValue"}),Yi(k,se,He(ge({id:"yValueRaw"},de),{invalidValue:void 0}))),R!=null&&pe.push(Yi(R,se,{id:"yFilterRaw"})),u>1){let De=[`line-stack-${a}-yValues`,`line-stack-${a}-yValues-trailing`,`line-stack-${a}-yValues-marker`];pe.push(..._p(k,"window","current",He(ge({id:"yValueEnd"},de),{groupId:De[0]}),se),..._p(k,"window-trailing","current",He(ge({id:"yValueStart"},de),{groupId:De[1]}),se),..._p(k,"normal","current",He(ge({id:"yValueCumulative"},de),{groupId:De[2]}),se)),Hi(_)&&pe.push(KS([De[0],De[1],De[2]],_,"range"))}V&&(pe.push(Qb($?["xValue"]:void 0)),this.processedData&&pe.push(Z(this.id,this.processedData)));let{dataModel:Ce,processedData:Se}=await this.requestDataModel(e,t,{props:pe});this.dataAggregationFilters=this.aggregateData(Ce,Se),this.animationState.transition("updateData")}getSeriesDomain(e){var u,y;let{dataModel:t,processedData:n}=this;if(!t||!(n!=null&&n.rawData.length))return[];let a=t.resolveProcessedDataDefById(this,"xValue");if(e==="x"){let k=t.getDomain(this,"xValue","value",n);return(a==null?void 0:a.def.type)==="value"&&a.def.valueType==="category"?k:$s(ep(k))}else{let R=((y=(u=this.seriesGrouping)==null?void 0:u.stackCount)!=null?y:1)>1?t.getDomain(this,"yValueEnd","value",n):t.getDomain(this,"yValueRaw","value",n);return $s(R)}}visibleRangeIndices(e,t){var k;let{dataModel:n,processedData:a}=this;if(!n||!a)return[0,0];let u=this.axes.x.scale,y=n.resolveColumnById(this,"xValue",a);return Da((k=t==null?void 0:t.length)!=null?k:y.length,e,R=>{var _;let F=u.convert(y[(_=t==null?void 0:t[R])!=null?_:R]);return[F,F]})}getSeriesRange(e,t){let{dataModel:n,processedData:a}=this;if(!n||!a)return[NaN,NaN];let[u,y]=this.visibleRangeIndices(t);return n.getDomainBetweenRange(this,["yValueRaw"],[u,y],a)}aggregateData(e,t){}createNodeData(){var oi,ti,ai,ui,qt,Zt,pi;let{dataModel:e,processedData:t,axes:n,dataAggregationFilters:a}=this,u=n.x,y=n.y;if(!e||!t||t.rawData.length===0||!u||!y)return;let{xKey:k,yKey:R,yFilterKey:F,xName:_,yName:V,marker:K,label:q,connectMissingData:$,interpolation:te,legendItemName:se}=this.properties,de=((ti=(oi=this.seriesGrouping)==null?void 0:oi.stackCount)!=null?ti:1)>1,pe=u.scale,Ce=y.scale,Se=((ai=pe.bandwidth)!=null?ai:0)/2,ve=((ui=Ce.bandwidth)!=null?ui:0)/2,ke=K.enabled?K.size:0,{rawData:De}=t,Te=e.resolveColumnById(this,"xValue",t),ze=e.resolveColumnById(this,"yValueRaw",t),qe=de?e.resolveColumnById(this,"yValueEnd",t):void 0,et=de?e.resolveColumnById(this,"yValueCumulative",t):ze,$e=F!=null?e.resolveColumnById(this,"yFilterRaw",t):void 0,lt=si=>pe.convert(Te[si])+Se,at=si=>Ce.convert(et[si])+ve,ht={lengthRatioMultiplier:this.properties.marker.getDiameter(),lengthMax:1/0},vt=[],wt,Ct=si=>{let ci=De[si],yi=Te[si],sn=ze[si],Ni=qe==null?void 0:qe[si],nn=$e==null?void 0:$e[si],Gi=lt(si),Pn=at(si);if(!Number.isFinite(Gi))return;if(sn!=null){let _r=q.enabled?this.getLabelText(q,{value:sn,datum:ci,xKey:k,yKey:R,xName:_,yName:V,legendItemName:se}):void 0;vt.push({series:this,datum:ci,datumIndex:si,yKey:R,xKey:k,point:{x:Gi,y:Pn,size:ke},midPoint:{x:Gi,y:Pn},cumulativeValue:Ni,yValue:sn,xValue:yi,capDefaults:ht,labelText:_r,selected:nn})}if(wt==null)return;let Ln=wt[wt.length-1];if(sn!=null){let _r={point:{x:Gi,y:Pn},xDatum:yi,yDatum:sn};Array.isArray(Ln)?Ln.push(_r):Ln!=null?(Ln.skip+=1,wt.push([_r])):wt.push([_r])}else $||(Array.isArray(Ln)||Ln==null?wt.push({skip:0}):Ln.skip+=1)},[yt,Et]=pe.range,At=Et-yt,Dt=a==null?void 0:a.find(si=>si.maxRange>At),Ot=Dt==null?void 0:Dt.indices,[It,Rt]=this.visibleRangeIndices(u.range,Ot);It=Math.max(It-1,0),Rt=Math.min(Rt+1,(qt=Ot==null?void 0:Ot.length)!=null?qt:Te.length),t.rawData.length<1e3&&(It=0,Rt=t.rawData.length),Ot==null&&(wt=[]);for(let si=It;si<Rt;si+=1)Ct((Zt=Ot==null?void 0:Ot[si])!=null?Zt:si);let Xt=wt==null?void 0:wt.flatMap(si=>Array.isArray(si)?Ca(si,te):[]),Yt=Xt!=null?{itemId:R,spans:Xt}:void 0,Ut=(pi=$e==null?void 0:$e.some((si,ci)=>si===ze[ci]))!=null?pi:!1;return{itemId:R,nodeData:vt,labelData:vt,strokeData:Yt,scales:this.calculateScaling(),visible:this.visible,crossFiltering:Ut}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}markerFactory(){let{shape:e}=this.properties.marker,t=ca(e);return new t}updatePathNodes(e){var k;let{paths:[t],opacity:n,visible:a,animationEnabled:u}=e,y=((k=this.contextNodeData)==null?void 0:k.crossFiltering)===!0;t.setProperties({fill:void 0,lineJoin:"round",pointerEvents:1,opacity:n,stroke:this.properties.stroke,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.properties.strokeOpacity*(y?z6:1),lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset}),u||(t.visible=a),jO(this,t)}updateMarkerSelection(e){var u;let{nodeData:t}=e,{markerSelection:n}=e;return t=this.properties.marker.enabled||((u=this.contextNodeData)==null?void 0:u.crossFiltering)===!0?t:[],this.properties.marker.isDirty()&&(n.clear(),n.cleanup()),n.update(t,void 0,y=>ee(y.xValue))}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n}=e,{xKey:a,yKey:u,stroke:y,strokeWidth:k,strokeOpacity:R,marker:F,highlightStyle:_}=this.properties,V=this.getSeriesDomain("x"),K=this.getSeriesDomain("y"),q=En(n&&_.item,F.getStyle(),{stroke:y,strokeWidth:k,strokeOpacity:R}),$=this.ctx.animationManager.isSkipped();t.each((te,se)=>{this.updateMarkerStyle(te,F,He(ge({},Tp(se,a,u,V,K)),{highlighted:n}),q,{applyTranslation:$,selected:se.selected})}),n||F.markClean()}updateLabelSelection(e){return e.labelSelection.update(this.isLabelEnabled()?e.labelData:[])}updateLabelNodes(e){let{enabled:t,fontStyle:n,fontWeight:a,fontSize:u,fontFamily:y,color:k}=this.properties.label;e.labelSelection.each((R,F)=>{t&&(F!=null&&F.labelText)?(R.fontStyle=n,R.fontWeight=a,R.fontSize=u,R.fontFamily=y,R.textAlign="center",R.textBaseline="bottom",R.text=F.labelText,R.x=F.point.x,R.y=F.point.y-10,R.fill=k,R.visible=!0):R.visible=!1})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:u,properties:y}=this,{xKey:k,xName:R,yKey:F,yName:_,tooltip:V}=y,K=u.x,q=u.y;if(!n||!a||a.rawData.length===0||!K||!q)return;let{datumIndex:$}=e,te=a.rawData[$],se=n.resolveColumnById(this,"xValue",a)[$],de=n.resolveColumnById(this,"yValueRaw",a)[$];if(se!=null)return V.formatTooltip({heading:K.formatDatum(se),symbol:this.legendItemSymbol(),data:[{label:_,fallbackLabel:F,value:q.formatDatum(de)}]},ge({seriesId:t,datum:te,title:_,xKey:k,xName:R,yKey:F,yName:_},this.getModuleTooltipParams()))}legendItemSymbol(){var k,R,F,_,V,K,q;let e="rgba(0, 0, 0, 0)",{stroke:t,strokeOpacity:n,strokeWidth:a,lineDash:u,marker:y}=this.properties;return{marker:{shape:y.shape,fill:(k=y.fill)!=null?k:e,stroke:(F=(R=y.stroke)!=null?R:t)!=null?F:e,fillOpacity:(_=y.fillOpacity)!=null?_:1,strokeOpacity:(K=(V=y.strokeOpacity)!=null?V:n)!=null?K:1,strokeWidth:(q=y.strokeWidth)!=null?q:0,enabled:y.enabled},line:{stroke:t!=null?t:e,strokeOpacity:n,strokeWidth:a,lineDash:u}}}getLegendData(e){var _,V;if(!(this.properties.isValid()&&e==="category"))return[];let{id:t,ctx:{legendManager:n},visible:a}=this,{yKey:u,yName:y,title:k,legendItemName:R,showInLegend:F}=this.properties;return[{legendType:"category",id:t,itemId:u,legendItemName:R,seriesId:t,enabled:a&&n.getItemEnabled({seriesId:t,itemId:u}),label:{text:(V=(_=R!=null?R:k)!=null?_:y)!=null?V:u},symbol:this.legendItemSymbol(),hideInLegend:!F}]}updatePaths(e){this.updateLinePaths(e.paths,e.contextData)}plotNodeDataPoints(e,t){if(t.length===0)return;let n=t[0].point;e.moveTo(n.x,n.y);for(let a=1;a<t.length;a+=1){let{x:u,y}=t[a].point;e.lineTo(u,y)}}updateLinePaths(e,t){var u;let n=(u=t.strokeData)==null?void 0:u.spans,[a]=e;a.path.clear(),n!=null?Yo(a,n):this.plotNodeDataPoints(a.path,t.nodeData),a.markDirty()}animateEmptyUpdateReady(e){let{markerSelection:t,labelSelection:n,annotationSelections:a,contextData:u,paths:y}=e,{animationManager:k}=this.ctx;this.updateLinePaths(y,u),Yz(this,k,...y),io([t],zL),qz(this,k,t),Ea(this,"labels",k,n),Ea(this,"annotations",k,...a)}animateReadyResize(e){let{contextData:t,paths:n}=e;this.updateLinePaths(n,t),super.animateReadyResize(e)}animateWaitingUpdateReady(e){var q,$,te;let{animationManager:t}=this.ctx,{markerSelection:n,labelSelection:a,annotationSelections:u,contextData:y,paths:k,previousContextData:R}=e,[F]=k;this.resetMarkerAnimation(e),this.resetLabelAnimation(e);let _=()=>{this.resetPathAnimation(e),this.updateLinePaths(k,y)},V=()=>{t.skipCurrentBatch(),_()};if(y==null||R==null){_(),_L(this,t,"added",n),VO(this,"path_properties",t,"add",F),Ea(this,"labels",t,a),Ea(this,"annotations",t,...u);return}if(y.crossFiltering!==R.crossFiltering){V();return}let K=Eg(y,R,(te=($=(q=this.processedData)==null?void 0:q.reduced)==null?void 0:$.diff)==null?void 0:te[this.id]);if(K===void 0){V();return}else if(K.status==="no-op")return;to(this.id,"path_properties",t,[F],K.stroke.pathProperties),K.status==="added"?this.updateLinePaths(k,y):K.status==="removed"?this.updateLinePaths(k,R):J1(this.id,"path_update",t,[F],K.stroke.path),K.hasMotion&&(_L(this,t,void 0,n),Ea(this,"labels",t,a),Ea(this,"annotations",t,...u))}isLabelEnabled(){return this.properties.label.enabled}getBandScalePadding(){return{inner:1,outer:.1}}nodeFactory(){return new Wi}getFormattedMarkerStyle(e){let{xKey:t,yKey:n}=this.properties,a=this.getSeriesDomain("x"),u=this.getSeriesDomain("y");return this.getMarkerStyle(this.properties.marker,He(ge({},Tp(e,t,n,a,u)),{highlighted:!0}))}computeFocusBounds(e){return BL(this,e)}},KL.className="LineSeries",KL.type="line"}}),d3,G6=A({"packages/ag-charts-community/src/chart/series/cartesian/lineSeriesModule.ts"(){"use strict";Mf(),_o(),rw(),B6(),d3={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"line",moduleFactory:e=>new KL(e),stackable:!0,tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"left"},{type:"category",position:"bottom"}],themeTemplate:{series:{tooltip:{position:{type:"node"}},strokeWidth:2,strokeOpacity:1,lineDash:[0],lineDashOffset:0,interpolation:{type:"linear",tension:1,position:"end"},marker:{shape:"circle",size:7,strokeWidth:0},label:{enabled:!1,fontSize:12,fontFamily:$a,color:mo},errorBar:{cap:{lengthRatio:1}}}},paletteFactory:e=>{let{marker:t}=pR(e);return{stroke:t.fill,marker:t}}}}}),u3,Sr,u$=A({"packages/ag-charts-community/src/chart/series/cartesian/scatterSeriesProperties.ts"(){"use strict";ac(),Ai(),yd(),iE(),oC(),Fl(),u3=class extends mr{constructor(){super(...arguments),this.placement="top"}},b([Ge(lh)],u3.prototype,"placement",2),Sr=class extends yu{constructor(){super(...arguments),this.colorRange=["#ffff00","#00ff00","#0000ff"],this.label=new u3,this.tooltip=new pc,this.marker=new _d}},b([Ge(ei)],Sr.prototype,"xKey",2),b([Ge(ei)],Sr.prototype,"yKey",2),b([Ge(ei,{optional:!0})],Sr.prototype,"labelKey",2),b([Ge(ei,{optional:!0})],Sr.prototype,"colorKey",2),b([Ge(ei,{optional:!0})],Sr.prototype,"xFilterKey",2),b([Ge(ei,{optional:!0})],Sr.prototype,"yFilterKey",2),b([Ge(ei,{optional:!0})],Sr.prototype,"xName",2),b([Ge(ei,{optional:!0})],Sr.prototype,"yName",2),b([Ge(ei,{optional:!0})],Sr.prototype,"labelName",2),b([Ge(ei,{optional:!0})],Sr.prototype,"colorName",2),b([Ge(Wy,{optional:!0})],Sr.prototype,"colorDomain",2),b([Ge(hs)],Sr.prototype,"colorRange",2),b([Ge(ei,{optional:!0})],Sr.prototype,"title",2),b([tr("marker.shape")],Sr.prototype,"shape",2),b([tr("marker.size")],Sr.prototype,"size",2),b([tr("marker.fill")],Sr.prototype,"fill",2),b([tr("marker.fillOpacity")],Sr.prototype,"fillOpacity",2),b([tr("marker.stroke")],Sr.prototype,"stroke",2),b([tr("marker.strokeWidth")],Sr.prototype,"strokeWidth",2),b([tr("marker.strokeOpacity")],Sr.prototype,"strokeOpacity",2),b([tr("marker.itemStyler",{optional:!0})],Sr.prototype,"itemStyler",2),b([Ge(Ei)],Sr.prototype,"label",2),b([Ge(Ei)],Sr.prototype,"tooltip",2)}}),ZO,h$=A({"packages/ag-charts-community/src/chart/series/cartesian/scatterSeries.ts"(){"use strict";cv(),xo(),xa(),ic(),Mr(),ra(),Nc(),Tn(),Il(),gt(),fu(),Js(),Pl(),Eh(),Fl(),GL(),u$(),ZO=class extends Op{constructor(e){super({moduleCtx:e,directionKeys:qc,directionNames:wg,pickModes:[2,1,0],pathsPerSeries:[],hasMarkers:!0,markerSelectionGarbageCollection:!1,animationResetFns:{marker:NL,label:Af},usesPlacedLabels:!0}),this.clipFocusBox=!1,this.properties=new Sr,this.colorScale=new ou}get pickModeAxis(){return"main-category"}async processData(e){var de,pe,Ce;if(!this.properties.isValid()||this.data==null||!this.visible)return;let t=(de=this.axes.x)==null?void 0:de.scale,n=(pe=this.axes.y)==null?void 0:pe.scale,{xScaleType:a,yScaleType:u}=this.getScaleInformation({xScale:t,yScale:n}),y=this.colorScale.type,{xKey:k,yKey:R,xFilterKey:F,yFilterKey:_,labelKey:V,colorKey:K,colorDomain:q,colorRange:$}=this.properties,{dataModel:te,processedData:se}=await this.requestDataModel(e,this.data,{props:[Yi(k,a,{id:"xValue"}),Yi(R,u,{id:"yValue"}),...F!=null?[Yi(F,a,{id:"xFilterValue"})]:[],..._!=null?[Yi(_,u,{id:"yFilterValue"})]:[],...K?[Yi(K,y,{id:"colorValue"})]:[],...V?[Yi(V,"band",{id:"labelValue"})]:[]]});if(K){let Se=te.resolveProcessedDataIndexById(this,"colorValue");this.colorScale.domain=(Ce=q!=null?q:se.domain.values[Se])!=null?Ce:[],this.colorScale.range=$,this.colorScale.update()}this.animationState.transition("updateData")}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;if(!n||!t)return[];let a=e==="x"?"xValue":"yValue",u=t.resolveProcessedDataDefById(this,a),y=t.getDomain(this,a,"value",n);return(u==null?void 0:u.def.type)==="value"&&(u==null?void 0:u.def.valueType)==="category"?y:$s(ep(y))}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){var Ct,yt;let{axes:e,dataModel:t,processedData:n,colorScale:a,visible:u}=this,{xKey:y,yKey:k,xFilterKey:R,yFilterKey:F,labelKey:_,colorKey:V,xName:K,yName:q,labelName:$,marker:te,label:se}=this.properties,{placement:de}=se,pe=ca(te.shape),Ce=e.x,Se=e.y;if(!(t&&(n!=null&&n.rawData.length)&&u&&Ce&&Se))return;let ve=t.resolveColumnById(this,"xValue",n),ke=t.resolveColumnById(this,"yValue",n),De=V!=null?t.resolveColumnById(this,"colorValue",n):void 0,Te=_!=null?t.resolveColumnById(this,"labelValue",n):void 0,ze=R!=null?t.resolveColumnById(this,"xFilterValue",n):void 0,qe=F!=null?t.resolveColumnById(this,"yFilterValue",n):void 0,et=Ce.scale,$e=Se.scale,lt=((Ct=et.bandwidth)!=null?Ct:0)/2,at=((yt=$e.bandwidth)!=null?yt:0)/2,ht=[],vt=se.getFont(),wt=Zh.getMeasurer({font:vt});return n.rawData.forEach((Et,At)=>{let Dt=ve[At],Ot=ke[At],It=et.convert(Dt)+lt,Rt=$e.convert(Ot)+at,Xt=ze!=null&&qe!=null?ze[At]===Dt&&qe[At]===Ot:void 0,Yt=this.getLabelText(se,{value:Te!=null?Te==null?void 0:Te[At]:Ot,datum:Et,xKey:y,yKey:k,labelKey:_,xName:K,yName:q,labelName:$}),Ut=wt.measureText(Yt),oi=De!=null?a.convert(De[At]):void 0;ht.push({series:this,itemId:k,yKey:k,xKey:y,datum:Et,datumIndex:At,xValue:Dt,yValue:Ot,capDefaults:{lengthRatioMultiplier:te.getDiameter(),lengthMax:1/0},point:{x:It,y:Rt,size:te.size},midPoint:{x:It,y:Rt},fill:oi,label:ge({text:Yt},Ut),marker:pe,placement:de,selected:Xt})}),{itemId:k,nodeData:ht,labelData:ht,scales:this.calculateScaling(),visible:this.visible}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}getLabelData(){var e,t;return this.isLabelEnabled()?(t=(e=this.contextNodeData)==null?void 0:e.labelData)!=null?t:[]:[]}markerFactory(){let{shape:e}=this.properties.marker,t=ca(e);return new t}updateMarkerSelection(e){let{nodeData:t,markerSelection:n}=e;return this.properties.marker.isDirty()&&(n.clear(),n.cleanup()),n.update(this.properties.marker.enabled?t:[])}getMarkerItemBaseStyle(e){var u,y,k,R,F;let{properties:t}=this,{marker:n}=t,a=e?t.highlightStyle.item:void 0;return{fill:(u=a==null?void 0:a.fill)!=null?u:n.fill,fillOpacity:(y=a==null?void 0:a.fillOpacity)!=null?y:n.fillOpacity,stroke:(k=a==null?void 0:a.stroke)!=null?k:n.stroke,strokeWidth:(R=a==null?void 0:a.strokeWidth)!=null?R:n.strokeWidth,strokeOpacity:(F=a==null?void 0:a.strokeOpacity)!=null?F:n.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a){let{id:u,properties:y}=this,{xKey:k,yKey:R,labelKey:F,marker:_}=y,{itemStyler:V}=_;if(V!=null)return this.cachedDatumCallback(ee(e,a?"highlight":"node"),()=>V(ge({seriesId:u,datum:t,xKey:k,yKey:R,labelKey:F,highlighted:a},n)))}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n}=e,{xKey:a,yKey:u,labelKey:y,marker:k,highlightStyle:R}=this.properties,F=En(n&&R.item,k.getStyle());t.each((_,V)=>{this.updateMarkerStyle(_,k,{datum:V,highlighted:n,xKey:a,yKey:u,labelKey:y},F,{selected:V.selected})}),n||k.markClean()}updatePlacedLabelData(e){this.labelSelection.update(e.map(t=>He(ge({},t.datum),{point:{x:t.x,y:t.y,size:t.datum.point.size}})),t=>{t.pointerEvents=1}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){let{label:t}=this.properties;e.labelSelection.each((n,a)=>{var u,y,k,R;n.text=a.label.text,n.fill=t.color,n.x=(y=(u=a.point)==null?void 0:u.x)!=null?y:0,n.y=(R=(k=a.point)==null?void 0:k.y)!=null?R:0,n.fontStyle=t.fontStyle,n.fontWeight=t.fontWeight,n.fontSize=t.fontSize,n.fontFamily=t.fontFamily,n.textAlign="left",n.textBaseline="top"})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:u,properties:y}=this,{xKey:k,xName:R,yKey:F,yName:_,labelKey:V,labelName:K,title:q,tooltip:$}=y,te=u.x,se=u.y;if(!n||!a||a.rawData.length===0||!te||!se)return;let{datumIndex:de}=e,pe=a.rawData[de],Ce=n.resolveColumnById(this,"xValue",a)[de],Se=n.resolveColumnById(this,"yValue",a)[de];if(Ce==null)return;let ve=this.getMarkerItemBaseStyle(!1);return Object.assign(ve,this.getMarkerItemStyleOverrides(String(de),pe,ve,!1)),$.formatTooltip({symbol:this.legendItemSymbol(),title:q,data:[{label:R,fallbackLabel:k,value:te.formatDatum(Ce)},{label:_,fallbackLabel:F,value:se.formatDatum(Se)}]},ge(ge({seriesId:t,datum:pe,title:_,xKey:k,xName:R,yKey:F,yName:_,labelKey:V,labelName:K},ve),this.getModuleTooltipParams()))}legendItemSymbol(){let{shape:e,fill:t,stroke:n,fillOpacity:a,strokeOpacity:u,strokeWidth:y}=this.properties.marker;return{marker:{shape:e,fill:t!=null?t:"rgba(0, 0, 0, 0)",stroke:n!=null?n:"rgba(0, 0, 0, 0)",fillOpacity:a!=null?a:1,strokeOpacity:u!=null?u:1,strokeWidth:y!=null?y:0}}}getLegendData(e){var F;if(!this.properties.isValid()||e!=="category")return[];let{yKey:t,yName:n,title:a,showInLegend:u}=this.properties,{id:y,ctx:{legendManager:k},visible:R}=this;return[{legendType:"category",id:y,itemId:t,seriesId:y,enabled:R&&k.getItemEnabled({seriesId:y,itemId:t}),label:{text:(F=a!=null?a:n)!=null?F:t},symbol:this.legendItemSymbol(),hideInLegend:!u}]}animateEmptyUpdateReady(e){let{markerSelection:t,labelSelection:n,annotationSelections:a}=e;Kz(this,this.ctx.animationManager,t),Ea(this,"labels",this.ctx.animationManager,n),Ea(this,"annotations",this.ctx.animationManager,...a)}isLabelEnabled(){return this.properties.label.enabled}nodeFactory(){return new Wi}getFormattedMarkerStyle(e){let{xKey:t,yKey:n,labelKey:a}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:e,xKey:t,yKey:n,labelKey:a,highlighted:!0})}computeFocusBounds(e){return BL(this,e)}},ZO.className="ScatterSeries",ZO.type="scatter"}}),V6,g$=A({"packages/ag-charts-community/src/chart/series/cartesian/scatterSeriesModule.ts"(){"use strict";Mf(),_o(),rw(),h$(),V6={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["cartesian"],identifier:"scatter",moduleFactory:e=>new ZO(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:"number",position:"bottom"},{type:"number",position:"left"}],themeTemplate:{series:{shape:"circle",size:7,fillOpacity:.8,tooltip:{position:{type:"node"}},label:{enabled:!1,fontSize:12,fontFamily:$a,color:mo},errorBar:{cap:{lengthRatio:1}}}},paletteFactory:Nk}}}),h3,j6=A({"packages/ag-charts-community/src/scene/sectorBox.ts"(){"use strict";Ql(),h3=class l6{constructor(t,n,a,u){this.startAngle=t,this.endAngle=n,this.innerRadius=a,this.outerRadius=u}clone(){let{startAngle:t,endAngle:n,innerRadius:a,outerRadius:u}=this;return new l6(t,n,a,u)}equals(t){return this.startAngle===t.startAngle&&this.endAngle===t.endAngle&&this.innerRadius===t.innerRadius&&this.outerRadius===t.outerRadius}[Dc](t,n){return new l6(this.startAngle*(1-n)+t.startAngle*n,this.endAngle*(1-n)+t.endAngle*n,this.innerRadius*(1-n)+t.innerRadius*n,this.outerRadius*(1-n)+t.outerRadius*n)}}}});function g3({startAngle:e,endAngle:t,innerRadius:n,outerRadius:a}){let u=1/0,y=1/0,k=-1/0,R=-1/0,F=(_,V)=>{u=Math.min(_,u),y=Math.min(V,y),k=Math.max(_,k),R=Math.max(V,R)};return F(n*Math.cos(e),n*Math.sin(e)),F(n*Math.cos(t),n*Math.sin(t)),F(a*Math.cos(e),a*Math.sin(e)),F(a*Math.cos(t),a*Math.sin(t)),Fc(0,e,t)&&F(a,0),Fc(Math.PI*.5,e,t)&&F(0,a),Fc(Math.PI,e,t)&&F(-a,0),Fc(Math.PI*1.5,e,t)&&F(0,-a),new ki(u,y,k-u,R-y)}function $O(e,t,n){let a=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),{innerRadius:u,outerRadius:y}=n;if(n.startAngle===n.endAngle||a<Math.min(u,y)||a>Math.max(u,y))return!1;let k=ab(n.startAngle),R=ab(n.endAngle),F=Math.atan2(t,e);return k<R?F<=R&&F>=k:F<=R&&F>=-Math.PI||F>=k&&F<=Math.PI}function H6(e,t){let{startAngle:n,endAngle:a,innerRadius:u,outerRadius:y}=t,k={x:y*Math.cos(n),y:y*Math.sin(n)},R={x:y*Math.cos(a),y:y*Math.sin(a)},F=u===0?{x:0,y:0}:{x:u*Math.cos(n),y:u*Math.sin(n)},_=u===0?{x:0,y:0}:{x:u*Math.cos(a),y:u*Math.sin(a)};return Gv(e.start.x,e.start.y,e.end.x,e.end.y,k.x,k.y,F.x,F.y)||Gv(e.start.x,e.start.y,e.end.x,e.end.y,R.x,R.y,_.x,_.y)||m1(0,0,y,n,a,!0,e.start.x,e.start.y,e.end.x,e.end.y)}function W6(e,t){let n={x:e.x,y:e.y},a={x:e.x+e.width,y:e.y},u={x:e.x,y:e.y+e.height},y={x:e.x+e.width,y:e.y+e.height};return H6({start:n,end:a},t)||H6({start:u,end:y},t)}function U6(e,t,n,a){if(n===0&&a===0)return 0;if(Math.asin(Math.abs(1*n)/(e+1*n))+Math.asin(Math.abs(1*a)/(e+1*a))-t<0)return 1;let y=0,k=1;for(let R=0;R<8;R+=1){let F=(y+k)/2;Math.asin(Math.abs(F*n)/(e+F*n))+Math.asin(Math.abs(F*a)/(e+F*a))-t<0?y=F:k=F}return y}function Gk(e,t){return ob(e,t)<K6?t:Fn(e-t)+t}function QO(e,t,n=0){let u=Math.abs(t-e)>=2*Math.PI?2*Math.PI:Fn(t-e);return e=Gk(e,n),t=e+u,{startAngle:e,endAngle:t}}function JO(e,t,n,a,u,y){let k=Math.sin(y),R=Math.cos(y),F=e**2+t**2-n**2,_,V,K,q;if(R>.5){let Se=k/R,ve=1+Se**2,ke=-2*(e+t*Se),De=ke**2-4*ve*F;if(De<0)return;let Te=(-ke+Math.sqrt(De))/(2*ve),ze=(-ke-Math.sqrt(De))/(2*ve);_=Te,V=Te*Se,K=ze,q=ze*Se}else{let Se=R/k,ve=1+Se**2,ke=-2*(t+e*Se),De=ke**2-4*ve*F;if(De<0)return;let Te=(-ke+Math.sqrt(De))/(2*ve),ze=(-ke-Math.sqrt(De))/(2*ve);_=Te*Se,V=Te,K=ze*Se,q=ze}let $=R,te=k,se=_*$+V*te,de=K*$+q*te,pe=se>0?Gk(Math.atan2(V-t,_-e),a):NaN,Ce=de>0?Gk(Math.atan2(q-t,K-e),a):NaN;if(pe>=a&&pe<=u)return pe;if(Ce>=a&&Ce<=u)return Ce}function eF(e,t,n,a,u,y){let k=Math.hypot(e,t),R=(k**2-n**2+y**2)/(2*k),F=k-R,_=Math.atan2(t,e),V=Math.acos(-F/n),K=Gk(_+V,a),q=Gk(_-V,a);if(K>=a&&K<=u)return K;if(q>=a&&q<=u)return q}var K6,qL=A({"packages/ag-charts-community/src/scene/util/sector.ts"(){"use strict";Ko(),vn(),f1(),K6=1e-6}}),tF,mc,iF=A({"packages/ag-charts-community/src/scene/shape/sector.ts"(){"use strict";j6(),qL(),Ll(),tF=class{constructor(e,t,n,a,u){this.cx=e,this.cy=t,this.r=n,this.a0=a,this.a1=u,this.a0>=this.a1&&(this.a0=NaN,this.a1=NaN)}isValid(){return Number.isFinite(this.a0)&&Number.isFinite(this.a1)}pointAt(e){return{x:this.cx+this.r*Math.cos(e),y:this.cy+this.r*Math.sin(e)}}clipStart(e){e==null||!this.isValid()||e<this.a0||(this.a0=e,(Number.isNaN(e)||this.a0>=this.a1)&&(this.a0=NaN,this.a1=NaN))}clipEnd(e){e==null||!this.isValid()||e>this.a1||(this.a1=e,(Number.isNaN(e)||this.a0>=this.a1)&&(this.a0=NaN,this.a1=NaN))}},mc=class extends br{constructor(){super(...arguments),this.centerX=0,this.centerY=0,this.innerRadius=10,this.outerRadius=20,this.startAngle=0,this.endAngle=Math.PI*2,this.clipSector=void 0,this.concentricEdgeInset=0,this.radialEdgeInset=0,this.startOuterCornerRadius=0,this.endOuterCornerRadius=0,this.startInnerCornerRadius=0,this.endInnerCornerRadius=0}set inset(e){this.concentricEdgeInset=e,this.radialEdgeInset=e}set cornerRadius(e){this.startOuterCornerRadius=e,this.endOuterCornerRadius=e,this.startInnerCornerRadius=e,this.endInnerCornerRadius=e}computeBBox(){return g3(this).translate(this.centerX,this.centerY)}normalizedRadii(){let{concentricEdgeInset:e}=this,{innerRadius:t,outerRadius:n}=this;return t=t>0?t+e:0,n=Math.max(n-e,0),{innerRadius:t,outerRadius:n}}normalizedClipSector(){let{clipSector:e}=this;if(e==null)return;let{startAngle:t,endAngle:n}=QO(this.startAngle,this.endAngle),{innerRadius:a,outerRadius:u}=this.normalizedRadii(),y=QO(e.startAngle,e.endAngle,t);return new h3(Math.max(t,y.startAngle),Math.min(n,y.endAngle),Math.max(a,e.innerRadius),Math.min(u,e.outerRadius))}getAngleOffset(e){return e>0?this.radialEdgeInset/e:0}arc(e,t,n,a,u,y,k,R){if(e<=0)return;let{startAngle:F,endAngle:_}=QO(this.startAngle,this.endAngle),{innerRadius:V,outerRadius:K}=this.normalizedRadii(),q=this.normalizedClipSector();if(R&&V<=0)return;let $=R?this.getAngleOffset(V+e):this.getAngleOffset(K-e),te=k?F+$+t:_-$-t,se=R?V+e:K-e,de=se*Math.cos(te),pe=se*Math.sin(te);if(q!=null&&(!k&&!(te>=F-1e-6&&te<=q.endAngle-1e-6)||k&&!(te>=q.startAngle+1e-6&&te<=_-1e-6)||R&&se<q.innerRadius-1e-6||!R&&se>q.outerRadius+1e-6))return;let Ce=new tF(de,pe,e,n,a);if(q!=null){R?(Ce.clipStart(JO(de,pe,e,n,a,q.endAngle)),Ce.clipEnd(JO(de,pe,e,n,a,q.startAngle))):(Ce.clipStart(JO(de,pe,e,n,a,q.startAngle)),Ce.clipEnd(JO(de,pe,e,n,a,q.endAngle)));let Te,ze;if(k?(Te=eF(de,pe,e,n,a,q.innerRadius),ze=eF(de,pe,e,n,a,q.outerRadius)):(Te=eF(de,pe,e,n,a,q.outerRadius),ze=eF(de,pe,e,n,a,q.innerRadius)),Ce.clipStart(Te),Ce.clipEnd(ze),Te!=null){let{x:qe,y:et}=Ce.pointAt(Te),$e=Gk(Math.atan2(et,qe),F);k?y==null||y.clipStart($e):u.clipEnd($e)}if(ze!=null){let{x:qe,y:et}=Ce.pointAt(ze),$e=Gk(Math.atan2(et,qe),F);k?u.clipStart($e):y==null||y.clipEnd($e)}}if(q!=null){let{x:Te,y:ze}=Ce.pointAt((Ce.a0+Ce.a1)/2);if(!$O(Te,ze,q))return}let{x:Se,y:ve}=Ce.pointAt(k===R?Ce.a0:Ce.a1),ke=Gk(Math.atan2(ve,Se),F),De=R?y:u;return k?De==null||De.clipStart(ke):De==null||De.clipEnd(ke),Ce}updatePath(){var oi,ti,ai,ui,qt;let{path:t,centerX:n,centerY:a,concentricEdgeInset:u,radialEdgeInset:y}=this,{startOuterCornerRadius:k,endOuterCornerRadius:R,startInnerCornerRadius:F,endInnerCornerRadius:_}=this,{startAngle:V,endAngle:K}=QO(this.startAngle,this.endAngle),{innerRadius:q,outerRadius:$}=this.normalizedRadii(),te=this.normalizedClipSector(),se=K-V,de=se>=2*Math.PI-1e-6;if(t.clear(),q===0&&$===0||q>$)return;if(((oi=te==null?void 0:te.startAngle)!=null?oi:V)===((ti=te==null?void 0:te.endAngle)!=null?ti:K))return;if(de&&this.clipSector==null&&k===0&&R===0&&F===0&&_===0){t.moveTo(n+$*Math.cos(V),a+$*Math.sin(V)),t.arc(n,a,$,V,K),q>u&&(t.moveTo(n+q*Math.cos(K),a+q*Math.sin(K)),t.arc(n,a,q,K,V,!0)),t.closePath();return}else if(this.clipSector==null&&Math.abs(q-$)<1e-6){t.arc(n,a,$,V,K,!1),t.arc(n,a,$,K,V,!0),t.closePath();return}let pe=this.getAngleOffset(q),Ce=this.getAngleOffset($);if(se<2*Ce)return;let ve=((ai=te==null?void 0:te.innerRadius)!=null?ai:q)>u,ke=q<u||se<2*pe,De=$-q,Te=Math.max(k,F,R,_),ze=Te>0?Math.min(De/Te,1):1;k*=ze,R*=ze,F*=ze,_*=ze;let qe=U6($,se-2*Ce,-k,-R);if(k*=qe,R*=qe,!ke&&ve){let Zt=U6(q,se-2*pe,F,_);F*=Zt,_*=Zt}else F=0,_=0;let et=Math.max(k+F,R+_),$e=et>0?Math.min(De/et,1):1;k*=$e,R*=$e,F*=$e,_*=$e;let lt=0,at=0,ht=k/($-k),vt=R/($-R);if(ht>=0&&ht<1-1e-6)lt=Math.asin(ht);else{lt=se/2;let Zt=$/(1/Math.sin(lt)+1);k=Math.min(Zt,k)}if(vt>=0&&vt<1-1e-6)at=Math.asin(vt);else{at=se/2;let Zt=$/(1/Math.sin(at)+1);R=Math.min(Zt,R)}let wt=Math.asin(F/(q+F)),Ct=Math.asin(_/(q+_)),yt=(ui=te==null?void 0:te.outerRadius)!=null?ui:$,Et=this.getAngleOffset(yt),At=new tF(0,0,yt,V+Et,K-Et),Dt=(qt=te==null?void 0:te.innerRadius)!=null?qt:q,Ot=this.getAngleOffset(Dt),It=ve?new tF(0,0,Dt,V+Ot,K-Ot):void 0;te!=null&&(At.clipStart(te.startAngle),At.clipEnd(te.endAngle),It==null||It.clipStart(te.startAngle),It==null||It.clipEnd(te.endAngle));let Rt=this.arc(k,lt,V-Math.PI*.5,V+lt,At,It,!0,!1),Xt=this.arc(R,at,K-at,K+Math.PI*.5,At,It,!1,!1),Yt=this.arc(_,Ct,K+Math.PI*.5,K+Math.PI-Ct,At,It,!1,!0),Ut=this.arc(F,wt,V+Math.PI+wt,V+Math.PI*1.5,At,It,!0,!0);if(ke){let Zt=se<Math.PI*.5?y*(1+Math.cos(se))/Math.sin(se):NaN,pi;Zt>0&&Zt<$?pi=Math.max(Math.hypot(y,Zt),q):pi=y,pi=Math.max(pi,q);let si=V+se*.5;t.moveTo(n+pi*Math.cos(si),a+pi*Math.sin(si))}else if(!((Ut==null?void 0:Ut.isValid())===!0||(It==null?void 0:It.isValid())===!0)){let Zt=V+se/2,pi=q*Math.cos(Zt),si=q*Math.sin(Zt);t.moveTo(n+pi,a+si)}if((Rt==null?void 0:Rt.isValid())===!0){let{cx:Zt,cy:pi,r:si,a0:ci,a1:yi}=Rt;t.arc(n+Zt,a+pi,si,ci,yi)}if(At.isValid()){let{r:Zt,a0:pi,a1:si}=At;t.arc(n,a,Zt,pi,si)}if((Xt==null?void 0:Xt.isValid())===!0){let{cx:Zt,cy:pi,r:si,a0:ci,a1:yi}=Xt;t.arc(n+Zt,a+pi,si,ci,yi)}if(!ke){if((Yt==null?void 0:Yt.isValid())===!0){let{cx:Zt,cy:pi,r:si,a0:ci,a1:yi}=Yt;t.arc(n+Zt,a+pi,si,ci,yi)}if((It==null?void 0:It.isValid())===!0){let{r:Zt,a0:pi,a1:si}=It;t.arc(n,a,Zt,si,pi,!0)}if((Ut==null?void 0:Ut.isValid())===!0){let{cx:Zt,cy:pi,r:si,a0:ci,a1:yi}=Ut;t.arc(n+Zt,a+pi,si,ci,yi)}}t.closePath()}isPointInPath(e,t){var k;let{startAngle:n,endAngle:a,innerRadius:u,outerRadius:y}=(k=this.clipSector)!=null?k:this;return $O(e-this.centerX,t-this.centerY,{startAngle:n,endAngle:a,innerRadius:Math.min(u,y),outerRadius:Math.max(u,y)})}},mc.className="Sector",b([qi()],mc.prototype,"centerX",2),b([qi()],mc.prototype,"centerY",2),b([qi()],mc.prototype,"innerRadius",2),b([qi()],mc.prototype,"outerRadius",2),b([qi()],mc.prototype,"startAngle",2),b([qi()],mc.prototype,"endAngle",2),b([qi()],mc.prototype,"clipSector",2),b([qi()],mc.prototype,"concentricEdgeInset",2),b([qi()],mc.prototype,"radialEdgeInset",2),b([qi()],mc.prototype,"startOuterCornerRadius",2),b([qi()],mc.prototype,"endOuterCornerRadius",2),b([qi()],mc.prototype,"startInnerCornerRadius",2),b([qi()],mc.prototype,"endInnerCornerRadius",2)}}),zl,ny,YL=A({"packages/ag-charts-community/src/chart/themes/defaultColors.ts"(){"use strict";zl={BLUE:"#5090dc",ORANGE:"#ffa03a",GREEN:"#459d55",CYAN:"#34bfe1",YELLOW:"#e1cc00",VIOLET:"#9669cb",GRAY:"#b5b5b5",MAGENTA:"#bd5aa7",BROWN:"#8a6224",RED:"#ef5452"},ny={BLUE:"#2b5c95",ORANGE:"#cc6f10",GREEN:"#1e652e",CYAN:"#18859e",YELLOW:"#a69400",VIOLET:"#603c88",GRAY:"#575757",MAGENTA:"#7d2f6d",BROWN:"#4f3508",RED:"#a82529"}}}),p3,nF,aF,aE,oF,XL,da,p$=A({"packages/ag-charts-community/src/chart/series/polar/donutSeriesProperties.ts"(){"use strict";zk(),on(),zn(),Ai(),cp(),yd(),YL(),_n(),oC(),p3=class extends qa{constructor(){super(...arguments),this.showInLegend=!1}},b([Ge(Oi)],p3.prototype,"showInLegend",2),nF=class extends mr{constructor(){super(...arguments),this.spacing=2}set(e,t){return super.set(e)}},b([Ge(ei)],nF.prototype,"text",2),b([Ge(Bn)],nF.prototype,"spacing",2),aF=class extends dn{constructor(){super(...arguments),this.fill="transparent",this.fillOpacity=1}},b([Ge(sa)],aF.prototype,"fill",2),b([Ge(Cn)],aF.prototype,"fillOpacity",2),aE=class extends mr{constructor(){super(...arguments),this.offset=3,this.minAngle=0,this.minSpacing=4,this.maxCollisionOffset=50,this.avoidCollisions=!0}},b([Ge(ni)],aE.prototype,"offset",2),b([Ge(Bn.restrict({min:0,max:360}))],aE.prototype,"minAngle",2),b([Ge(ni)],aE.prototype,"minSpacing",2),b([Ge(ni)],aE.prototype,"maxCollisionOffset",2),b([Ge(Oi)],aE.prototype,"avoidCollisions",2),oF=class extends mr{constructor(){super(...arguments),this.positionOffset=0,this.positionRatio=.5}},b([Ge(Bn)],oF.prototype,"positionOffset",2),b([Ge(Cn)],oF.prototype,"positionRatio",2),XL=class extends dn{constructor(){super(...arguments),this.length=10,this.strokeWidth=1}},b([Ge(hs,{optional:!0})],XL.prototype,"colors",2),b([Ge(ni)],XL.prototype,"length",2),b([Ge(ni)],XL.prototype,"strokeWidth",2),da=class extends el{constructor(){super(...arguments),this.fills=Object.values(zl),this.strokes=Object.values(ny),this.fillOpacity=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.outerRadiusOffset=0,this.outerRadiusRatio=1,this.strokeWidth=1,this.sectorSpacing=0,this.hideZeroValueSectorsInLegend=!1,this.innerLabels=new Uh(nF),this.title=new p3,this.innerCircle=new aF,this.shadow=new Mu,this.calloutLabel=new aE,this.sectorLabel=new oF,this.calloutLine=new XL,this.tooltip=new pc}isValid(){let e=super.isValid();return this.innerRadiusRatio==null&&this.innerRadiusOffset==null?(hi.warnOnce("Either an [innerRadiusRatio] or an [innerRadiusOffset] must be set to render a donut series."),!1):e}},b([Ge(ei)],da.prototype,"angleKey",2),b([Ge(ei,{optional:!0})],da.prototype,"angleName",2),b([Ge(ei,{optional:!0})],da.prototype,"angleFilterKey",2),b([Ge(ei,{optional:!0})],da.prototype,"radiusKey",2),b([Ge(ei,{optional:!0})],da.prototype,"radiusName",2),b([Ge(ni,{optional:!0})],da.prototype,"radiusMin",2),b([Ge(ni,{optional:!0})],da.prototype,"radiusMax",2),b([Ge(ei,{optional:!0})],da.prototype,"calloutLabelKey",2),b([Ge(ei,{optional:!0})],da.prototype,"calloutLabelName",2),b([Ge(ei,{optional:!0})],da.prototype,"sectorLabelKey",2),b([Ge(ei,{optional:!0})],da.prototype,"sectorLabelName",2),b([Ge(ei,{optional:!0})],da.prototype,"legendItemKey",2),b([Ge(hs)],da.prototype,"fills",2),b([Ge(hs)],da.prototype,"strokes",2),b([Ge(Cn)],da.prototype,"fillOpacity",2),b([Ge(Cn)],da.prototype,"strokeOpacity",2),b([Ge(hd)],da.prototype,"lineDash",2),b([Ge(ni)],da.prototype,"lineDashOffset",2),b([Ge(ni)],da.prototype,"cornerRadius",2),b([Ge(vl,{optional:!0})],da.prototype,"itemStyler",2),b([Ge(Bn)],da.prototype,"rotation",2),b([Ge(Bn)],da.prototype,"outerRadiusOffset",2),b([Ge(Cn)],da.prototype,"outerRadiusRatio",2),b([Ge(Bn,{optional:!0})],da.prototype,"innerRadiusOffset",2),b([Ge(Cn,{optional:!0})],da.prototype,"innerRadiusRatio",2),b([Ge(ni)],da.prototype,"strokeWidth",2),b([Ge(Bn)],da.prototype,"sectorSpacing",2),b([Ge(Oi)],da.prototype,"hideZeroValueSectorsInLegend",2),b([Ge(wx)],da.prototype,"innerLabels",2),b([Ge(Ei)],da.prototype,"title",2),b([Ge(Ei)],da.prototype,"innerCircle",2),b([Ge(Ei)],da.prototype,"shadow",2),b([Ge(Ei)],da.prototype,"calloutLabel",2),b([Ge(Ei)],da.prototype,"sectorLabel",2),b([Ge(Ei)],da.prototype,"calloutLine",2),b([Ge(Ei)],da.prototype,"tooltip",2)}});function oE(e,t,n,a){let u=[n.convert(0),n.convert(1)],y=[a.convert(0),a.convert(1)],k=Math.PI/-2+ma(t),R=e?"initial":"update",F=({radius:te})=>({innerRadius:u[0],outerRadius:u[0]+(u[1]-u[0])*te}),_=({radius:te})=>({innerRadius:y[0],outerRadius:y[0]+(y[1]-y[0])*te});return{nodes:{toFn:(te,se,de,{prevLive:pe})=>{var ze,qe;let{startAngle:Ce,endAngle:Se,innerRadius:ve,outerRadius:ke}=se,{stroke:De,fill:Te}=se.sectorFormat;if(de==="removed"&&pe?(Ce=(ze=pe.datum)==null?void 0:ze.endAngle,Se=(qe=pe.datum)==null?void 0:qe.endAngle):de==="removed"&&!pe&&(Ce=k,Se=k),de==="removed"){let et=F(se);ve=et.innerRadius,ke=et.outerRadius}return{startAngle:Ce,endAngle:Se,outerRadius:ke,innerRadius:ve,stroke:De,fill:Te}},fromFn:(te,se,de,{prevFromProps:pe})=>{var ze,qe,et,$e,lt,at;let{startAngle:Ce,endAngle:Se,innerRadius:ve,outerRadius:ke}=te,{fill:De,stroke:Te}=se.sectorFormat;if(de==="unknown"||de==="added"&&!pe?(Ce=k,Se=k,ve=se.innerRadius,ke=se.outerRadius):de==="added"&&pe&&(Ce=(ze=pe.endAngle)!=null?ze:k,Se=(qe=pe.endAngle)!=null?qe:k,ve=(et=pe.innerRadius)!=null?et:se.innerRadius,ke=($e=pe.outerRadius)!=null?$e:se.outerRadius),de==="added"&&!e){let ht=_(se);ve=ht.innerRadius,ke=ht.outerRadius}return de==="updated"&&(De=(lt=te.fill)!=null?lt:De,Te=(at=typeof te.stroke=="string"?te.stroke:void 0)!=null?at:Te),{startAngle:Ce,endAngle:Se,innerRadius:ve,outerRadius:ke,fill:De,stroke:Te,phase:R}}},innerCircle:{fromFn:(te,se)=>{var de,pe,Ce;return{size:(Ce=(pe=(de=te.previousDatum)==null?void 0:de.radius)!=null?pe:te.size)!=null?Ce:0,phase:R}},toFn:(te,se)=>{var de;return{size:(de=se.radius)!=null?de:0}}}}}function m3(e,t){return{startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,outerRadius:t.outerRadius,fill:t.sectorFormat.fill,stroke:t.sectorFormat.stroke}}function f3(e,t){let n=t.y-e.centerY,a=t.x-e.centerX,u=Math.atan2(n,a),y=e.getItemNodes();for(let k of y)if(k.datum.missing!==!0&&Fc(u,k.startAngle,k.endAngle)){let R=Math.sqrt(a*a+n*n),F=0;return R<k.innerRadius?F=k.innerRadius-R:R>k.outerRadius&&(F=R-k.outerRadius),{datum:k.datum,distance:F}}}var v3=A({"packages/ag-charts-community/src/chart/series/polar/pieUtil.ts"(){"use strict";Ko()}}),y3,rF=A({"packages/ag-charts-community/src/chart/series/polar/polarZIndexMap.ts"(){"use strict";y3=(e=>(e[e.BACKGROUND=0]="BACKGROUND",e[e.FOREGROUND=1]="FOREGROUND",e[e.HIGHLIGHT=2]="HIGHLIGHT",e[e.LABEL=3]="LABEL",e))(y3||{})}}),ZL,sF=A({"packages/ag-charts-community/src/chart/series/polar/polarSeries.ts"(){"use strict";Mm(),xo(),xa(),Dr(),Ll(),ic(),pv(),Tn(),Id(),Pl(),rF(),ZL=class extends ar{constructor(y){var k=y,{useLabelLayer:e=!1,pickModes:t=[1,0],canHaveAxes:n=!1,animationResetFns:a}=k,u=wi(k,["useLabelLayer","pickModes","canHaveAxes","animationResetFns"]);super(He(ge({},u),{useLabelLayer:e,pickModes:t,directionKeys:{x:["angleKey"],y:["radiusKey"]},directionNames:{x:["angleName"],y:["radiusName"]},canHaveAxes:n})),this.itemGroup=this.contentGroup.appendChild(new Wi),this.nodeData=[],this.itemSelection=er.select(this.itemGroup,()=>this.nodeFactory(),!1),this.labelSelection=er.select(this.labelGroup,()=>this.labelFactory(),!1),this.highlightSelection=er.select(this.highlightGroup,()=>this.nodeFactory()),this.highlightLabelSelection=er.select(this.highlightLabel,()=>this.labelFactory()),this.centerX=0,this.centerY=0,this.radius=0,this.animationResetFns=a,this.animationState=new lp("empty",{empty:{update:{target:"ready",action:R=>this.animateEmptyUpdateReady(R)},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",highlight:R=>this.animateReadyHighlight(R),highlightMarkers:R=>this.animateReadyHighlightMarkers(R),resize:R=>this.animateReadyResize(R),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:R=>this.animateWaitingUpdateReady(R)},reset:"empty",skip:"ready"},clearing:{update:{target:"empty",action:R=>this.animateClearingUpdateEmpty(R)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}getItemNodes(){return[...this.itemGroup.children()]}getNodeData(){return this.nodeData}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[e,1],this.highlightGroup.zIndex=[e,2],this.labelGroup.zIndex=[e,3],!0):!1}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}labelFactory(){let e=new Lo;return e.pointerEvents=1,e}addChartEventListeners(){var e;this.destroyFns.push((e=this.ctx.chartEventManager)==null?void 0:e.addListener("legend-item-click",t=>this.onLegendItemClick(t)))}getInnerRadius(){return 0}computeLabelsBBox(e,t){return null}resetAllAnimation(){var n;let{item:e,label:t}=(n=this.animationResetFns)!=null?n:{};this.ctx.animationManager.stopByAnimationGroupId(this.id),e&&io([this.itemSelection,this.highlightSelection],e),t&&io([this.labelSelection,this.highlightLabelSelection],t),this.itemSelection.cleanup(),this.labelSelection.cleanup(),this.highlightSelection.cleanup(),this.highlightLabelSelection.cleanup()}animateEmptyUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}animateWaitingUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}animateReadyHighlight(e){var a;let{item:t,label:n}=(a=this.animationResetFns)!=null?a:{};t&&io([this.highlightSelection],t),n&&io([this.highlightLabelSelection],n)}animateReadyHighlightMarkers(e){}animateReadyResize(e){this.resetAllAnimation()}animateClearingUpdateEmpty(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation()}computeFocusBounds(e){var n;let t=(n=this.getNodeData())==null?void 0:n[e.datumIndex];if(t!==void 0)return this.itemSelection.select(a=>a instanceof br&&a.datum===t)[0]}getSeriesRange(e,t){return[NaN,NaN]}}}}),q6,lF,m$=A({"packages/ag-charts-community/src/chart/series/polar/donutSeries.ts"(){"use strict";Gr(),Np(),vn(),xo(),xa(),xa(),Dr(),vd(),iF(),ic(),qL(),Ko(),nc(),on(),gn(),ra(),Tn(),kd(),Il(),gt(),DS(),Js(),Pl(),Eh(),p$(),v3(),sF(),rF(),q6=class extends ir{constructor(e,t,n,a){super(e,t,n,a),this.angleKey=a.properties.angleKey,this.radiusKey=a.properties.radiusKey,this.calloutLabelKey=a.properties.calloutLabelKey,this.sectorLabelKey=a.properties.sectorLabelKey}},lF=class extends ZL{constructor(e){super({moduleCtx:e,pickModes:[1,0],useLabelLayer:!0,animationResetFns:{item:m3,label:Af}}),this.properties=new da,this.phantomNodeData=void 0,this.backgroundGroup=new Aa({name:`${this.id}-background`,zIndex:0}),this.noVisibleData=!1,this.previousRadiusScale=new Xc,this.radiusScale=new Xc,this.phantomGroup=this.backgroundGroup.appendChild(new Wi({name:"phantom"})),this.phantomSelection=er.select(this.phantomGroup,()=>this.nodeFactory(),!1),this.calloutLabelGroup=this.contentGroup.appendChild(new Wi({name:"pieCalloutLabels"})),this.calloutLabelSelection=new er(this.calloutLabelGroup,Wi),this.zerosumRingsGroup=this.backgroundGroup.appendChild(new Wi({name:`${this.id}-zerosumRings`})),this.zerosumOuterRing=this.zerosumRingsGroup.appendChild(new Ip),this.zerosumInnerRing=this.zerosumRingsGroup.appendChild(new Ip),this.innerLabelsGroup=this.contentGroup.appendChild(new Wi({name:"innerLabels"})),this.innerCircleGroup=this.backgroundGroup.appendChild(new Wi({name:`${this.id}-innerCircle`})),this.innerLabelsSelection=er.select(this.innerLabelsGroup,Lo),this.innerCircleSelection=er.select(this.innerCircleGroup,Ip),this.surroundingRadius=void 0,this.NodeEvent=q6,this.angleScale=new Xc,this.angleScale.domain=[0,1],this.angleScale.range=[-Math.PI,Math.PI].map(t=>t+Math.PI/2),this.phantomGroup.opacity=.2}get calloutNodeData(){var e;return(e=this.phantomNodeData)!=null?e:this.nodeData}attachSeries(e,t,n){super.attachSeries(e,t,n),e==null||e.appendChild(this.backgroundGroup)}detachSeries(e,t,n){super.detachSeries(e,t,n),e==null||e.removeChild(this.backgroundGroup)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.backgroundGroup.zIndex=[0,e],!0):!1}nodeFactory(){return new mc}getSeriesDomain(e){return e==="x"?this.angleScale.domain:this.radiusScale.domain}async processData(e){var se,de,pe,Ce,Se;if(this.data==null||!this.properties.isValid())return;let{visible:t,id:n}=this,{angleKey:a,angleFilterKey:u,radiusKey:y,calloutLabelKey:k,sectorLabelKey:R,legendItemKey:F}=this.properties,_=(ve,ke,De)=>t&&this.ctx.legendManager.getItemEnabled({seriesId:n,itemId:De}),V=!this.ctx.animationManager.isSkipped(),K=[],q=[];F?K.push(Td(F,"band",{id:"legendItemKey"})):k?K.push(Td(k,"band",{id:"calloutLabelKey"})):R&&K.push(Td(R,"band",{id:"sectorLabelKey"}));let $=this.radiusScale.type,te=this.angleScale.type;y&&q.push(Yc(y,{id:"radiusValue",min:(se=this.properties.radiusMin)!=null?se:0,max:this.properties.radiusMax}),Yi(y,$,{id:"radiusRaw"}),Cf("radiusValue",[0,1],1,(de=this.properties.radiusMin)!=null?de:0,this.properties.radiusMax)),k&&q.push(Yi(k,"band",{id:"calloutLabelValue"})),R&&q.push(Yi(R,"band",{id:"sectorLabelValue"})),F&&q.push(Yi(F,"band",{id:"legendItemValue"})),u&&q.push(il(u,te,{id:"angleFilterValue",onlyPositive:!0,validation:_,invalidValue:0}),Yi(u,te,{id:"angleFilterRaw"}),Cf("angleFilterValue",[0,1],0,0)),V&&this.processedData&&K.length>0&&q.push(Z(this.id,this.processedData)),q.push(Qb()),await this.requestDataModel(e,this.data,{props:[...K,il(a,te,{id:"angleValue",onlyPositive:!0,validation:_,invalidValue:0}),Yi(a,te,{id:"angleRaw"}),Cf("angleValue",[0,1],0,0),...q]});for(let ve of(Se=(Ce=(pe=this.processedData)==null?void 0:pe.defs)==null?void 0:Ce.values)!=null?Se:[]){let{id:ke,missing:De,property:Te}=ve,ze=pg(this,De);ke!=="angleRaw"&&ze>0&&hi.warnOnce(`no value was found for the key '${String(Te)}' on ${ze} data element${ze>1?"s":""}`)}this.animationState.transition("updateData")}maybeRefreshNodeData(){var n;if(!this.nodeDataRefresh)return;let{nodeData:e=[],phantomNodeData:t}=(n=this.createNodeData())!=null?n:{};this.nodeData=e,this.phantomNodeData=t,this.nodeDataRefresh=!1}getProcessedDataValues(e,t){let n=e.resolveColumnById(this,"angleValue",t),a=e.resolveColumnById(this,"angleRaw",t),u=this.properties.angleFilterKey!=null?e.resolveColumnById(this,"angleFilterValue",t):void 0,y=this.properties.angleFilterKey!=null?e.resolveColumnById(this,"angleFilterRaw",t):void 0,k=this.properties.radiusKey?e.resolveColumnById(this,"radiusValue",t):void 0,R=this.properties.radiusKey?e.resolveColumnById(this,"radiusRaw",t):void 0,F=this.properties.calloutLabelKey?e.resolveColumnById(this,"calloutLabelValue",t):void 0,_=this.properties.sectorLabelKey?e.resolveColumnById(this,"sectorLabelValue",t):void 0,V=this.properties.legendItemKey?e.resolveColumnById(this,"legendItemValue",t):void 0;return{angleValues:n,angleRawValues:a,angleFilterValues:u,angleFilterRawValues:y,radiusValues:k,radiusRawValues:R,calloutLabelValues:F,sectorLabelValues:_,legendItemValues:V}}createNodeData(){var De;let{id:e,processedData:t,dataModel:n,angleScale:a,ctx:{legendManager:u},visible:y}=this,{rotation:k,innerRadiusRatio:R}=this.properties;if(!this.properties.isValid())return this.zerosumOuterRing.visible=!0,this.zerosumInnerRing.visible=!0,{itemId:e,nodeData:[],labelData:[]};if(!(t!=null&&t.rawData.length)||!n||t.type!=="ungrouped")return;let{angleValues:F,angleRawValues:_,angleFilterValues:V,angleFilterRawValues:K,radiusValues:q,radiusRawValues:$,calloutLabelValues:te,sectorLabelValues:se,legendItemValues:de}=this.getProcessedDataValues(n,t),pe=(De=K==null?void 0:K.some((Te,ze)=>Te>_[ze]))!=null?De:!1,Ce=0,Se=0,ve=[],ke=K!=null?[]:void 0;return t.rawData.forEach((Te,ze)=>{var It;let qe=pe?V[ze]:F[ze],et=K!=null&&!pe?Math.sqrt(K[ze]/_[ze]):1,$e=a.convert(Ce)+ma(k);Ce=qe,Se+=qe;let lt=a.convert(Ce)+ma(k),at=Math.abs(lt-$e),ht=$e+at/2,vt=_[ze],Ct=((It=q==null?void 0:q[ze])!=null?It:1)*et,yt=$==null?void 0:$[ze],Et=de==null?void 0:de[ze],At=this.getLabels(Te,ht,at,!0,te==null?void 0:te[ze],se==null?void 0:se[ze],Et),Dt=this.getSectorFormat(Te,ze,!1),Ot=ge({itemId:ze,series:this,datum:Te,datumIndex:ze,angleValue:vt,midAngle:ht,midCos:Math.cos(ht),midSin:Math.sin(ht),startAngle:$e,endAngle:lt,radius:Ct,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(Ct),0),sectorFormat:Dt,radiusValue:yt,legendItemValue:Et,enabled:y&&u.getItemEnabled({seriesId:e,itemId:ze}),focusable:!0},At);ve.push(Ot),ke!=null&&ke.push(He(ge({},Ot),{radius:1,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(1),0),focusable:!1}))}),this.zerosumOuterRing.visible=Se===0,this.zerosumInnerRing.visible=Se===0&&R!=null&&R!==1&&R>0,{itemId:e,nodeData:ve,labelData:ve,phantomNodeData:ke}}getLabels(e,t,n,a,u,y,k){let{calloutLabel:R,sectorLabel:F,legendItemKey:_}=this.properties,V=!a||R.enabled?this.properties.calloutLabelKey:void 0,K=!a||F.enabled?this.properties.sectorLabelKey:void 0;if(!V&&!K&&!_)return{};let q={datum:e,angleKey:this.properties.angleKey,angleName:this.properties.angleName,radiusKey:this.properties.radiusKey,radiusName:this.properties.radiusName,calloutLabelKey:this.properties.calloutLabelKey,calloutLabelName:this.properties.calloutLabelName,sectorLabelKey:this.properties.sectorLabelKey,sectorLabelName:this.properties.sectorLabelName,legendItemKey:this.properties.legendItemKey},$={};return V&&n>ma(R.minAngle)&&($.calloutLabel=He(ge({},this.getTextAlignment(t)),{text:this.getLabelText(R,He(ge({},q),{value:u})),hidden:!1,collisionTextAlign:void 0,collisionOffsetY:0,box:void 0})),K&&($.sectorLabel={text:this.getLabelText(F,He(ge({},q),{value:y}))}),_!=null&&k!=null&&($.legendItem={key:_,text:k}),$}getTextAlignment(e){let t=[{textAlign:"center",textBaseline:"bottom"},{textAlign:"left",textBaseline:"middle"},{textAlign:"center",textBaseline:"hanging"},{textAlign:"right",textBaseline:"middle"}],n=ab(e),a=-.75*Math.PI,u=n-a,y=Math.floor(u/(Math.PI/2)),k=Ty(y,t.length);return t[k]}getSectorFormat(e,t,n){var ke,De,Te,ze,qe,et,$e,lt;let{angleKey:a,radiusKey:u,calloutLabelKey:y,sectorLabelKey:k,legendItemKey:R,fills:F,strokes:_,itemStyler:V}=this.properties,K=_[t%_.length],{fill:q,fillOpacity:$,stroke:te,strokeWidth:se,strokeOpacity:de,lineDash:pe,lineDashOffset:Ce,cornerRadius:Se}=En(n&&this.properties.highlightStyle.item,{fill:F.length>0?F[t%F.length]:void 0,stroke:K,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.getOpacity()},this.properties),ve;return V&&(ve=this.cachedDatumCallback(ee(this.getDatumIdFromData(e),n?"highlight":"hide"),()=>V({datum:e,angleKey:a,radiusKey:u,calloutLabelKey:y,sectorLabelKey:k,legendItemKey:R,fill:q,fillOpacity:$,stroke:te,strokeWidth:se,strokeOpacity:de,lineDash:pe,lineDashOffset:Ce,cornerRadius:Se,highlighted:n,seriesId:this.id}))),{fill:(ke=ve==null?void 0:ve.fill)!=null?ke:q,fillOpacity:(De=ve==null?void 0:ve.fillOpacity)!=null?De:$,stroke:(Te=ve==null?void 0:ve.stroke)!=null?Te:te,strokeWidth:(ze=ve==null?void 0:ve.strokeWidth)!=null?ze:se,strokeOpacity:(qe=ve==null?void 0:ve.strokeOpacity)!=null?qe:de,lineDash:(et=ve==null?void 0:ve.lineDash)!=null?et:pe,lineDashOffset:($e=ve==null?void 0:ve.lineDashOffset)!=null?$e:Ce,cornerRadius:(lt=ve==null?void 0:ve.cornerRadius)!=null?lt:Se}}getInnerRadius(){let{radius:e}=this,{innerRadiusRatio:t=1,innerRadiusOffset:n=0}=this.properties,a=e*t+n;return a===e||a<0?0:a}getOuterRadius(){let{outerRadiusRatio:e,outerRadiusOffset:t}=this.properties;return Math.max(this.radius*e+t,0)}updateRadiusScale(e){var a;let t=[this.getInnerRadius(),this.getOuterRadius()];this.radiusScale.range=t,e&&(this.previousRadiusScale.range=t);let n=u=>He(ge({},u),{innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(u.radius),0)});this.nodeData=this.nodeData.map(n),this.phantomNodeData=(a=this.phantomNodeData)==null?void 0:a.map(n)}getTitleTranslationY(){var u,y;let e=Math.max(0,this.radiusScale.range[1]);if(e===0)return NaN;let n=2+((y=(u=this.properties.title)==null?void 0:u.spacing)!=null?y:0),a=Math.max(0,-e);return-e-n-a}update({seriesRect:e}){let{title:t}=this.properties,n={seriesRectWidth:e==null?void 0:e.width,seriesRectHeight:e==null?void 0:e.height},a=Qh(this.nodeDataDependencies,n)!=null;if(a&&(this._nodeDataDependencies=n),this.maybeRefreshNodeData(),this.updateTitleNodes(),this.updateRadiusScale(a),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.backgroundGroup.translationX=this.centerX,this.backgroundGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),t){let u=this.getTitleTranslationY();t.node.y=isFinite(u)?u:0;let y=t.node.getBBox();t.node.visible=t.enabled&&isFinite(u)&&!this.bboxIntersectsSurroundingSeries(y)}for(let u of[this.zerosumInnerRing,this.zerosumOuterRing])u.fillOpacity=0,u.stroke=this.properties.calloutLabel.color,u.strokeWidth=1,u.strokeOpacity=1;this.updateNodeMidPoint(),this.updateSelections(),this.updateNodes(e)}updateTitleNodes(){var n,a;let{oldTitle:e}=this,{title:t}=this.properties;e!==t&&(e&&((n=this.labelGroup)==null||n.removeChild(e.node)),t&&(t.node.textBaseline="bottom",(a=this.labelGroup)==null||a.appendChild(t.node)),this.oldTitle=t)}updateNodeMidPoint(){var t;let e=n=>{let a=n.innerRadius+(n.outerRadius-n.innerRadius)/2;n.midPoint={x:n.midCos*Math.max(0,a),y:n.midSin*Math.max(0,a)}};this.nodeData.forEach(e),(t=this.phantomNodeData)==null||t.forEach(e)}updateSelections(){this.updateGroupSelection(),this.updateInnerCircleSelection()}updateGroupSelection(){var _;let{itemSelection:e,highlightSelection:t,phantomSelection:n,highlightLabelSelection:a,calloutLabelSelection:u,labelSelection:y,innerLabelsSelection:k}=this,R=this.nodeData.map(V=>He(ge({},V),{sectorFormat:ge({},V.sectorFormat)})),F=(V,K)=>{V.update(K,void 0,q=>this.getDatumId(q)),this.ctx.animationManager.isSkipped()&&V.cleanup()};F(e,this.nodeData),F(t,R),F(n,(_=this.phantomNodeData)!=null?_:[]),u.update(this.calloutNodeData,V=>{let K=new ms;K.tag=0,K.pointerEvents=1,V.appendChild(K);let q=new Lo;q.tag=1,q.pointerEvents=1,V.appendChild(q)}),y.update(this.nodeData),a.update(R),k.update(this.properties.innerLabels,V=>{V.pointerEvents=1})}updateInnerCircleSelection(){let{innerCircle:e}=this.properties,t=0,n=this.getInnerRadius();if(n>0){let u=Math.min(n,this.getOuterRadius()),y=1;t=Math.ceil(u*2+y)}let a=e?[{radius:t}]:[];this.innerCircleSelection.update(a)}updateNodes(e){let t=this.ctx.highlightManager.getActiveHighlight(),{visible:n}=this;this.backgroundGroup.visible=n,this.contentGroup.visible=n,this.highlightGroup.visible=n&&(t==null?void 0:t.series)===this,this.highlightLabel.visible=n&&(t==null?void 0:t.series)===this,this.labelGroup.visible=n,this.contentGroup.opacity=this.getOpacity(),this.innerCircleSelection.each((y,{radius:k})=>{var R,F;y.setProperties({fill:(R=this.properties.innerCircle)==null?void 0:R.fill,opacity:(F=this.properties.innerCircle)==null?void 0:F.fillOpacity,size:k})});let a=this.ctx.animationManager.isSkipped(),u=(y,k,R,F)=>{let _=this.getSectorFormat(k.datum,k.itemId,F);k.sectorFormat.fill=_.fill,k.sectorFormat.stroke=_.stroke,a&&(y.startAngle=k.startAngle,y.endAngle=k.endAngle,y.innerRadius=k.innerRadius,y.outerRadius=k.outerRadius),(F||a)&&(y.fill=_.fill,y.stroke=_.stroke),y.strokeWidth=_.strokeWidth,y.fillOpacity=_.fillOpacity,y.strokeOpacity=_.strokeOpacity,y.lineDash=_.lineDash,y.lineDashOffset=_.lineDashOffset,y.cornerRadius=_.cornerRadius,y.fillShadow=this.properties.shadow;let V=Math.max((this.properties.sectorSpacing+(_.stroke!=null?_.strokeWidth:0))/2,0);y.inset=V,y.lineJoin=this.properties.sectorSpacing>=0||V>0?"miter":"round"};this.itemSelection.each((y,k,R)=>u(y,k,R,!1)),this.highlightSelection.each((y,k,R)=>{u(y,k,R,!0),y.visible=k.itemId===(t==null?void 0:t.itemId)}),this.phantomSelection.each((y,k,R)=>u(y,k,R,!1)),this.updateCalloutLineNodes(),this.updateCalloutLabelNodes(e),this.updateSectorLabelNodes(),this.updateInnerLabelNodes(),this.updateZerosumRings(),this.animationState.transition("update")}updateCalloutLineNodes(){var y;let{calloutLine:e}=this.properties,t=e.length,n=e.strokeWidth,a=(y=e.colors)!=null?y:this.properties.strokes,{offset:u}=this.properties.calloutLabel;this.calloutLabelSelection.selectByTag(0).forEach((k,R)=>{var K;let F=k.datum,{calloutLabel:_,outerRadius:V}=F;if(_!=null&&_.text&&!_.hidden&&V!==0){k.visible=!0,k.strokeWidth=n,k.stroke=a[R%a.length],k.fill=void 0;let q=F.midCos*V,$=F.midSin*V,te=F.midCos*(V+t),se=F.midSin*(V+t);if(((K=_.collisionTextAlign)!=null?K:_.collisionOffsetY!==0)&&_.box!=null){let pe=_.box,Ce=te,Se=se;te<pe.x?Ce=pe.x:te>pe.x+pe.width&&(Ce=pe.x+pe.width),se<pe.y?Se=pe.y:se>pe.y+pe.height&&(Se=pe.y+pe.height);let ve=Ce-te,ke=Se-se,De=Math.sqrt(Math.pow(ve,2)+Math.pow(ke,2)),Te=De-u;Te>0&&(te=te+ve*Te/De,se=se+ke*Te/De)}k.x1=q,k.y1=$,k.x2=te,k.y2=se}else k.visible=!1})}getLabelOverflow(e,t,n){let a=-this.centerX,u=a+n.width,y=-this.centerY,k=y+n.height,R=1,F=1;t.x+R<a?F=(t.x+t.width-a)/t.width:t.x+t.width-R>u&&(F=(u-t.x)/t.width);let _=t.y+R<y||t.y+t.height-R>k,V=F===1?e.length:Math.floor(e.length*F)-1,K=this.bboxIntersectsSurroundingSeries(t);return{textLength:V,hasVerticalOverflow:_,hasSurroundingSeriesOverflow:K}}bboxIntersectsSurroundingSeries(e){let{surroundingRadius:t}=this;if(t==null)return!1;let n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],a=t**2;return n.some(u=>u.x**2+u.y**2>a)}computeCalloutLabelCollisionOffsets(){let{radiusScale:e}=this,{calloutLabel:t,calloutLine:n}=this.properties,{offset:a,minSpacing:u}=t,y=e.convert(0),k=pe=>!pe.calloutLabel||pe.outerRadius===0,R=this.calloutNodeData,F=R.filter(pe=>!k(pe));if(F.forEach(pe=>{let Ce=pe.calloutLabel;Ce!=null&&(Ce.hidden=!1,Ce.collisionTextAlign=void 0,Ce.collisionOffsetY=0)}),F.length<=1)return;let _=F.filter(pe=>pe.midCos<0).sort((pe,Ce)=>pe.midSin-Ce.midSin),V=F.filter(pe=>pe.midCos>=0).sort((pe,Ce)=>pe.midSin-Ce.midSin),K=F.filter(pe=>{var Ce;return pe.midSin<0&&((Ce=pe.calloutLabel)==null?void 0:Ce.textAlign)==="center"}).sort((pe,Ce)=>pe.midCos-Ce.midCos),q=F.filter(pe=>{var Ce;return pe.midSin>=0&&((Ce=pe.calloutLabel)==null?void 0:Ce.textAlign)==="center"}).sort((pe,Ce)=>pe.midCos-Ce.midCos),$=pe=>{var ze;let Ce=pe.calloutLabel;if(Ce==null)return ki.zero.clone();let Se=pe.outerRadius+n.length+a,ve=pe.midCos*Se,ke=pe.midSin*Se+Ce.collisionOffsetY,De=(ze=Ce.collisionTextAlign)!=null?ze:Ce.textAlign,Te=Ce.textBaseline;return Lo.computeBBox(Ce.text,ve,ke,{font:this.properties.calloutLabel,textAlign:De,textBaseline:Te})},te=(pe,Ce,Se)=>{let ve=$(pe).grow(u/2),ke=$(Ce).grow(u/2);if(ve.x<ke.x+ke.width&&ve.x+ve.width>ke.x&&(Se==="to-top"?ve.y<ke.y+ke.height:ve.y+ve.height>ke.y)){let Te=Se==="to-top"?ve.y-ke.y-ke.height:ve.y+ve.height-ke.y;Ce.calloutLabel.collisionOffsetY=Te}},se=pe=>{let Ce=pe.slice().sort((ve,ke)=>Math.abs(ve.midSin)-Math.abs(ke.midSin))[0],Se=pe.indexOf(Ce);for(let ve=Se-1;ve>=0;ve--){let ke=pe[ve+1],De=pe[ve];te(ke,De,"to-top")}for(let ve=Se+1;ve<pe.length;ve++){let ke=pe[ve-1],De=pe[ve];te(ke,De,"to-bottom")}},de=pe=>{let Ce=F.some(ze=>ze.calloutLabel.collisionOffsetY!==0),Se=pe.map(ze=>$(ze)),ve=Se.map(ze=>ze.clone().grow(u/2)),ke=!1;for(let ze=0;ze<ve.length&&!ke;ze++){let qe=ve[ze];for(let et=ze+1;et<pe.length;et++){let $e=ve[et];if(qe.collidesBBox($e)){ke=!0;break}}}let De=R.map(ze=>{let{startAngle:qe,endAngle:et,outerRadius:$e}=ze;return{startAngle:qe,endAngle:et,innerRadius:y,outerRadius:$e}}),Te=Se.some(ze=>De.some(qe=>W6(ze,qe)));!ke&&!Ce&&!Te||pe.filter(ze=>ze.calloutLabel.textAlign==="center").forEach(ze=>{let qe=ze.calloutLabel;ze.midCos<0?qe.collisionTextAlign="right":ze.midCos>0?qe.collisionTextAlign="left":qe.collisionTextAlign="center"})};se(_),se(V),de(K),de(q)}updateCalloutLabelNodes(e){let{radiusScale:t}=this,{calloutLabel:n,calloutLine:a}=this.properties,u=a.length,{offset:y,color:k}=n,R=new Lo;this.calloutLabelSelection.selectByTag(1).forEach(F=>{var ve;let{datum:_}=F,V=_.calloutLabel,K=t.convert(_.radius),q=Math.max(0,K);if(!(V!=null&&V.text)||q===0||V.hidden){F.visible=!1;return}let $=q+u+y,te=_.midCos*$,se=_.midSin*$+V.collisionOffsetY,de={textAlign:(ve=V.collisionTextAlign)!=null?ve:V.textAlign,textBaseline:V.textBaseline};R.text=V.text,R.x=te,R.y=se,R.setFont(this.properties.calloutLabel),R.setAlign(de);let pe=R.getBBox(),Ce=V.text,Se=!0;if(n.avoidCollisions){let{textLength:ke,hasVerticalOverflow:De}=this.getLabelOverflow(V.text,pe,e);Ce=V.text.length===ke?V.text:`${V.text.substring(0,ke)}\u2026`,Se=!De}F.text=Ce,F.x=te,F.y=se,F.setFont(this.properties.calloutLabel),F.setAlign(de),F.fill=k,F.visible=Se})}computeLabelsBBox(e,t){let{calloutLabel:n,calloutLine:a}=this.properties,u=a.length,{offset:y,maxCollisionOffset:k,minSpacing:R}=n;if(!n.avoidCollisions)return null;this.maybeRefreshNodeData(),this.updateRadiusScale(!1),this.computeCalloutLabelCollisionOffsets();let F=[],_=new Lo,V,{title:K}=this.properties;if(K!=null&&K.text&&K.enabled){let q=this.getTitleTranslationY();isFinite(q)&&(_.text=K.text,_.x=0,_.y=q,_.setFont(K),_.setAlign({textBaseline:"bottom",textAlign:"center"}),V=_.getBBox(),F.push(V))}return this.calloutNodeData.forEach(q=>{var Ce;let $=q.calloutLabel;if(!$||q.outerRadius===0)return null;let te=q.outerRadius+u+y,se=q.midCos*te,de=q.midSin*te+$.collisionOffsetY;_.text=$.text,_.x=se,_.y=de,_.setFont(this.properties.calloutLabel),_.setAlign({textAlign:(Ce=$.collisionTextAlign)!=null?Ce:$.textAlign,textBaseline:$.textBaseline});let pe=_.getBBox();if($.box=pe,Math.abs($.collisionOffsetY)>k){$.hidden=!0;return}if(V){let Se=-this.centerY,ve=new ki(V.x-R,Se,V.width+2*R,V.y+V.height+R-Se);if(pe.collidesBBox(ve)){$.hidden=!0;return}}if(e.hideWhenNecessary){let{textLength:Se,hasVerticalOverflow:ve,hasSurroundingSeriesOverflow:ke}=this.getLabelOverflow($.text,pe,t),De=$.text.length>2&&Se<2;if(ve||De||ke){$.hidden=!0;return}}$.hidden=!1,F.push(pe)}),F.length===0?null:ki.merge(F)}updateSectorLabelNodes(){let{radiusScale:e}=this,t=e.convert(0),{fontSize:n,fontStyle:a,fontWeight:u,fontFamily:y,positionOffset:k,positionRatio:R,color:F}=this.properties.sectorLabel,_=(V,K)=>{let{sectorLabel:q,outerRadius:$}=K,te=!1;if(q&&$!==0){let se=t*(1-R)+$*R+k;V.fill=F,V.fontStyle=a,V.fontWeight=u,V.fontSize=n,V.fontFamily=y,V.text=q.text,V.x=K.midCos*se,V.y=K.midSin*se,V.textAlign="center",V.textBaseline="middle";let de=V.getBBox(),pe=[[de.x,de.y],[de.x+de.width,de.y],[de.x+de.width,de.y+de.height],[de.x,de.y+de.height]],{startAngle:Ce,endAngle:Se}=K,ve={startAngle:Ce,endAngle:Se,innerRadius:t,outerRadius:$};pe.every(([ke,De])=>$O(ke,De,ve))&&(te=!0)}V.visible=te};this.labelSelection.each(_),this.highlightLabelSelection.each(_)}updateInnerLabelNodes(){let e=[],t=[];this.innerLabelsSelection.each((V,K)=>{let{fontStyle:q,fontWeight:$,fontSize:te,fontFamily:se,color:de}=K;V.fontStyle=q,V.fontWeight=$,V.fontSize=te,V.fontFamily=se,V.text=K.text,V.x=0,V.y=0,V.fill=de,V.textAlign="center",V.textBaseline="alphabetic",e.push(V.getBBox()),t.push(K.spacing)});let n=V=>V===0?0:t[V],a=V=>V===t.length-1?0:t[V],u=e.reduce((V,K,q)=>V+K.height+n(q)+a(q),0),y=Math.max(...e.map(V=>V.width)),k=this.getInnerRadius(),F=Math.sqrt(Math.pow(y/2,2)+Math.pow(u/2,2))<=(k>0?k:this.getOuterRadius()),_=[];for(let V=0,K=-u/2;V<e.length;V++){let $=e[V].height+K+n(V);_.push($),K=$+a(V)}this.innerLabelsSelection.each((V,K,q)=>{V.y=_[q],V.visible=F})}updateZerosumRings(){this.zerosumOuterRing.size=this.getOuterRadius()*2,this.zerosumInnerRing.size=this.getInnerRadius()*2}pickNodeClosestDatum(e){return f3(this,e)}getTooltipContent(e){var ze,qe,et;let{id:t,dataModel:n,processedData:a,properties:u}=this,{legendItemKey:y,calloutLabelKey:k,calloutLabelName:R,sectorLabelKey:F,sectorLabelName:_,angleKey:V,angleName:K,radiusKey:q,radiusName:$,tooltip:te}=u,se=this.properties.title.text;if(!n||!a||a.rawData.length===0)return;let{datumIndex:de}=e,pe=a.rawData[de],{angleRawValues:Ce,legendItemValues:Se,calloutLabelValues:ve,sectorLabelValues:ke}=this.getProcessedDataValues(n,a),De=Ce[de],Te=(et=(qe=(ze=Se==null?void 0:Se[de])!=null?ze:k===V||ve==null?void 0:ve[de])!=null?qe:F===V||ke==null?void 0:ke[de])!=null?et:K;return te.formatTooltip({title:se,symbol:this.legendItemSymbol(de),data:[{label:Te,fallbackLabel:V,value:String(De)}]},ge({seriesId:t,datum:pe,title:K,legendItemKey:y,calloutLabelKey:k,calloutLabelName:R,sectorLabelKey:F,sectorLabelName:_,angleKey:V,angleName:K,radiusKey:q,radiusName:$},this.getSectorFormat(pe,de,!1)))}legendItemSymbol(e){var a;let t=(a=this.processedData)==null?void 0:a.rawData[e],n=this.getSectorFormat(t,e,!1);return{marker:{fill:n.fill,stroke:n.stroke,fillOpacity:this.properties.fillOpacity,strokeOpacity:this.properties.strokeOpacity,strokeWidth:this.properties.strokeWidth}}}getLegendData(e){var Ce,Se,ve,ke,De;let{visible:t,processedData:n,dataModel:a,id:u,ctx:{legendManager:y}}=this;if(!a||!n||!this.properties.isValid()||e!=="category")return[];let{angleKey:k,calloutLabelKey:R,sectorLabelKey:F,legendItemKey:_,showInLegend:V}=this.properties;if(!_&&(!R||R===k)&&(!F||F===k))return[];let{angleRawValues:K,calloutLabelValues:q,sectorLabelValues:$,legendItemValues:te}=this.getProcessedDataValues(a,n),se=((Ce=this.properties.title)==null?void 0:Ce.showInLegend)&&this.properties.title.text,de=[],pe=this.properties.hideZeroValueSectorsInLegend;for(let Te=0;Te<n.rawData.length;Te++){let ze=n.rawData[Te],qe=K[Te];if(pe&&qe===0)continue;let et=[];se&&et.push(se);let $e=this.getLabels(ze,2*Math.PI,2*Math.PI,!1,q==null?void 0:q[Te],$==null?void 0:$[Te],te==null?void 0:te[Te]);_&&$e.legendItem!==void 0?et.push($e.legendItem.text):R&&R!==k&&((Se=$e.calloutLabel)==null?void 0:Se.text)!==void 0?et.push((ve=$e.calloutLabel)==null?void 0:ve.text):F&&F!==k&&((ke=$e.sectorLabel)==null?void 0:ke.text)!==void 0&&et.push((De=$e.sectorLabel)==null?void 0:De.text),et.length!==0&&de.push({legendType:"category",id:u,datum:ze,itemId:Te,seriesId:u,enabled:t&&y.getItemEnabled({seriesId:u,itemId:Te}),label:{text:et.join(" - ")},symbol:this.legendItemSymbol(Te),legendItemName:_!=null?ze[_]:void 0,hideInLegend:!V})}return de}setLegendState(e){let{id:t,ctx:{legendManager:n,updateService:a}}=this;e.forEach((u,y)=>n.toggleItem({enabled:u,seriesId:t,itemId:y})),n.update(),a.update(4)}animateEmptyUpdateReady(e){let{animationManager:t}=this.ctx,n=oE(!0,this.properties.rotation,this.radiusScale,this.previousRadiusScale);to(this.id,"nodes",t,[this.itemSelection,this.highlightSelection,this.phantomSelection],n.nodes,(a,u)=>this.getDatumId(u)),to(this.id,"innerCircle",t,[this.innerCircleSelection],n.innerCircle),Ea(this,"callout",t,this.calloutLabelSelection),Ea(this,"sector",t,this.labelSelection),Ea(this,"highlight",t,this.highlightLabelSelection),Ea(this,"inner",t,this.innerLabelsSelection),this.previousRadiusScale.range=this.radiusScale.range}animateWaitingUpdateReady(){var $,te,se,de,pe,Ce,Se;let{itemSelection:e,highlightSelection:t,phantomSelection:n,processedData:a,radiusScale:u,previousRadiusScale:y}=this,{animationManager:k}=this.ctx,R=(te=($=a==null?void 0:a.reduced)==null?void 0:$.diff)==null?void 0:te[this.id];this.ctx.animationManager.stopByAnimationGroupId(this.id);let F=((se=R==null?void 0:R.moved.size)!=null?se:0)===0,_=((de=a==null?void 0:a.defs.keys.length)!=null?de:0)>0,V=(Se=(Ce=(pe=a==null?void 0:a.reduced)==null?void 0:pe.animationValidation)==null?void 0:Ce.uniqueKeys)!=null?Se:!0;(!F||!_||!V)&&this.ctx.animationManager.skipCurrentBatch();let K=!this.nodeData.some(ve=>ve.enabled),q=oE(!1,this.properties.rotation,u,y);to(this.id,"nodes",k,[e,t,n],q.nodes,(ve,ke)=>this.getDatumId(ke),R),to(this.id,"innerCircle",k,[this.innerCircleSelection],q.innerCircle),Ea(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),Ea(this,"sector",this.ctx.animationManager,this.labelSelection),Ea(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.noVisibleData!==K&&(this.noVisibleData=K,Ea(this,"inner",this.ctx.animationManager,this.innerLabelsSelection)),this.previousRadiusScale.range=this.radiusScale.range}animateClearingUpdateEmpty(){let{itemSelection:e,highlightSelection:t,phantomSelection:n,radiusScale:a,previousRadiusScale:u}=this,{animationManager:y}=this.ctx,k=oE(!1,this.properties.rotation,a,u);to(this.id,"nodes",y,[e,t,n],k.nodes,(R,F)=>this.getDatumId(F)),to(this.id,"innerCircle",y,[this.innerCircleSelection],k.innerCircle),aC(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),aC(this,"sector",this.ctx.animationManager,this.labelSelection),aC(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),aC(this,"inner",this.ctx.animationManager,this.innerLabelsSelection),this.previousRadiusScale.range=this.radiusScale.range}getDatumIdFromData(e){var u,y,k;let{calloutLabelKey:t,sectorLabelKey:n,legendItemKey:a}=this.properties;if((k=(y=(u=this.processedData)==null?void 0:u.reduced)==null?void 0:y.animationValidation)!=null&&k.uniqueKeys){if(a)return e[a];if(t)return e[t];if(n)return e[n]}}getDatumId(e){let{datumIndex:t}=e,n=this.getDatumIdFromData(e.datum);return String(n!=null?n:t)}},lF.className="DonutSeries",lF.type="donut"}}),Y6,f$=A({"packages/ag-charts-community/src/chart/series/polar/donutTheme.ts"(){"use strict";Mf(),_o(),Y6={series:{title:{enabled:!0,fontWeight:"normal",fontSize:14,fontFamily:$a,color:nl,spacing:5},calloutLabel:{enabled:!0,fontSize:12,fontFamily:$a,color:mo,offset:3,minAngle:0},sectorLabel:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:$a,color:Bp,positionOffset:0,positionRatio:.5},calloutLine:{length:10,strokeWidth:2},fillOpacity:1,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,rotation:0,sectorSpacing:1,shadow:{enabled:!1,color:Qv,xOffset:3,yOffset:3,blur:5},innerLabels:{fontSize:12,fontFamily:$a,color:mo,spacing:2}}}}}),X6,b3,Z6=A({"packages/ag-charts-community/src/chart/series/polar/pieTheme.ts"(){"use strict";Mf(),_o(),X6={series:{title:{enabled:!0,fontWeight:"normal",fontSize:14,fontFamily:$a,color:nl,spacing:5},calloutLabel:{enabled:!0,fontSize:12,fontFamily:$a,color:mo,offset:3,minAngle:0},sectorLabel:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:$a,color:Bp,positionOffset:0,positionRatio:.5},calloutLine:{length:10,strokeWidth:2},fillOpacity:1,strokeOpacity:1,strokeWidth:0,lineDash:[0],lineDashOffset:0,rotation:0,sectorSpacing:1,shadow:{enabled:!1,color:Qv,xOffset:3,yOffset:3,blur:5}}},b3=({takeColors:e,colorsCount:t})=>{let{fills:n,strokes:a}=e(t);return{fills:n,strokes:a,calloutLine:{colors:a}}}}}),$6,v$=A({"packages/ag-charts-community/src/chart/series/polar/donutSeriesModule.ts"(){"use strict";m$(),f$(),Z6(),$6={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["polar"],identifier:"donut",moduleFactory:e=>new lF(e),tooltipDefaults:{range:"exact"},themeTemplate:Y6,paletteFactory:b3}}}),C3,rE,cF,$L,Ga,y$=A({"packages/ag-charts-community/src/chart/series/polar/pieSeriesProperties.ts"(){"use strict";zk(),zn(),Ai(),cp(),yd(),YL(),_n(),oC(),C3=class extends qa{constructor(){super(...arguments),this.showInLegend=!1}},b([Ge(Oi)],C3.prototype,"showInLegend",2),rE=class extends mr{constructor(){super(...arguments),this.offset=3,this.minAngle=0,this.minSpacing=4,this.maxCollisionOffset=50,this.avoidCollisions=!0}},b([Ge(ni)],rE.prototype,"offset",2),b([Ge(Bn.restrict({min:0,max:360}))],rE.prototype,"minAngle",2),b([Ge(ni)],rE.prototype,"minSpacing",2),b([Ge(ni)],rE.prototype,"maxCollisionOffset",2),b([Ge(Oi)],rE.prototype,"avoidCollisions",2),cF=class extends mr{constructor(){super(...arguments),this.positionOffset=0,this.positionRatio=.5}},b([Ge(Bn)],cF.prototype,"positionOffset",2),b([Ge(Cn)],cF.prototype,"positionRatio",2),$L=class extends dn{constructor(){super(...arguments),this.length=10,this.strokeWidth=1}},b([Ge(hs,{optional:!0})],$L.prototype,"colors",2),b([Ge(ni)],$L.prototype,"length",2),b([Ge(ni)],$L.prototype,"strokeWidth",2),Ga=class extends el{constructor(){super(...arguments),this.fills=Object.values(zl),this.strokes=Object.values(ny),this.fillOpacity=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.outerRadiusOffset=0,this.outerRadiusRatio=1,this.strokeWidth=1,this.sectorSpacing=0,this.hideZeroValueSectorsInLegend=!1,this.title=new C3,this.shadow=new Mu,this.calloutLabel=new rE,this.sectorLabel=new cF,this.calloutLine=new $L,this.tooltip=new pc}},b([Ge(ei)],Ga.prototype,"angleKey",2),b([Ge(ei,{optional:!0})],Ga.prototype,"angleName",2),b([Ge(ei,{optional:!0})],Ga.prototype,"angleFilterKey",2),b([Ge(ei,{optional:!0})],Ga.prototype,"radiusKey",2),b([Ge(ei,{optional:!0})],Ga.prototype,"radiusName",2),b([Ge(ni,{optional:!0})],Ga.prototype,"radiusMin",2),b([Ge(ni,{optional:!0})],Ga.prototype,"radiusMax",2),b([Ge(ei,{optional:!0})],Ga.prototype,"calloutLabelKey",2),b([Ge(ei,{optional:!0})],Ga.prototype,"calloutLabelName",2),b([Ge(ei,{optional:!0})],Ga.prototype,"sectorLabelKey",2),b([Ge(ei,{optional:!0})],Ga.prototype,"sectorLabelName",2),b([Ge(ei,{optional:!0})],Ga.prototype,"legendItemKey",2),b([Ge(hs)],Ga.prototype,"fills",2),b([Ge(hs)],Ga.prototype,"strokes",2),b([Ge(Cn)],Ga.prototype,"fillOpacity",2),b([Ge(Cn)],Ga.prototype,"strokeOpacity",2),b([Ge(hd)],Ga.prototype,"lineDash",2),b([Ge(ni)],Ga.prototype,"lineDashOffset",2),b([Ge(ni)],Ga.prototype,"cornerRadius",2),b([Ge(vl,{optional:!0})],Ga.prototype,"itemStyler",2),b([Ge(Bn)],Ga.prototype,"rotation",2),b([Ge(Bn)],Ga.prototype,"outerRadiusOffset",2),b([Ge(Cn)],Ga.prototype,"outerRadiusRatio",2),b([Ge(ni)],Ga.prototype,"strokeWidth",2),b([Ge(Bn)],Ga.prototype,"sectorSpacing",2),b([Ge(Oi)],Ga.prototype,"hideZeroValueSectorsInLegend",2),b([Ge(Ei)],Ga.prototype,"title",2),b([Ge(Ei)],Ga.prototype,"shadow",2),b([Ge(Ei)],Ga.prototype,"calloutLabel",2),b([Ge(Ei)],Ga.prototype,"sectorLabel",2),b([Ge(Ei)],Ga.prototype,"calloutLine",2),b([Ge(Ei)],Ga.prototype,"tooltip",2)}}),Q6,dF,b$=A({"packages/ag-charts-community/src/chart/series/polar/pieSeries.ts"(){"use strict";Gr(),Np(),vn(),xo(),xa(),Dr(),vd(),iF(),ic(),qL(),Ko(),nc(),on(),gn(),ra(),Tn(),kd(),Il(),gt(),DS(),Js(),Pl(),Eh(),y$(),v3(),sF(),rF(),Q6=class extends ir{constructor(e,t,n,a){super(e,t,n,a),this.angleKey=a.properties.angleKey,this.radiusKey=a.properties.radiusKey,this.calloutLabelKey=a.properties.calloutLabelKey,this.sectorLabelKey=a.properties.sectorLabelKey}},dF=class extends ZL{constructor(e){super({moduleCtx:e,pickModes:[1,0],useLabelLayer:!0,animationResetFns:{item:m3,label:Af}}),this.properties=new Ga,this.phantomNodeData=void 0,this.backgroundGroup=new Aa({name:`${this.id}-background`,zIndex:0}),this.previousRadiusScale=new Xc,this.radiusScale=new Xc,this.phantomGroup=this.backgroundGroup.appendChild(new Wi({name:"phantom"})),this.phantomSelection=er.select(this.phantomGroup,()=>this.nodeFactory(),!1),this.calloutLabelGroup=this.contentGroup.appendChild(new Wi({name:"pieCalloutLabels"})),this.calloutLabelSelection=new er(this.calloutLabelGroup,Wi),this.zerosumRingsGroup=this.backgroundGroup.appendChild(new Wi({name:`${this.id}-zerosumRings`})),this.zerosumOuterRing=this.zerosumRingsGroup.appendChild(new Ip),this.surroundingRadius=void 0,this.NodeEvent=Q6,this.angleScale=new Xc,this.angleScale.domain=[0,1],this.angleScale.range=[-Math.PI,Math.PI].map(t=>t+Math.PI/2),this.phantomGroup.opacity=.2}get calloutNodeData(){var e;return(e=this.phantomNodeData)!=null?e:this.nodeData}attachSeries(e,t,n){super.attachSeries(e,t,n),e.appendChild(this.backgroundGroup)}detachSeries(e,t,n){super.detachSeries(e,t,n),e==null||e.removeChild(this.backgroundGroup)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.backgroundGroup.zIndex=[0,e],!0):!1}nodeFactory(){let e=new mc;return e.miterLimit=1e9,e}getSeriesDomain(e){return e==="x"?this.angleScale.domain:this.radiusScale.domain}async processData(e){var de,pe,Ce,Se,ve,ke,De,Te;if(this.data==null||!this.properties.isValid())return;let{visible:t,id:n,ctx:{legendManager:a}}=this,{angleKey:u,angleFilterKey:y,radiusKey:k,calloutLabelKey:R,sectorLabelKey:F,legendItemKey:_}=this.properties,V=(ze,qe,et)=>t&&a.getItemEnabled({seriesId:n,itemId:et}),K=!this.ctx.animationManager.isSkipped(),q=[],$=[];_?q.push(Td(_,"band",{id:"legendItemKey"})):R?q.push(Td(R,"band",{id:"calloutLabelKey"})):F&&q.push(Td(F,"band",{id:"sectorLabelKey"}));let te=this.radiusScale.type,se=this.angleScale.type;k&&$.push(Yc(k,{id:"radiusValue",min:(de=this.properties.radiusMin)!=null?de:0,max:this.properties.radiusMax}),Yi(k,te,{id:"radiusRaw"}),Cf("radiusValue",[0,1],1,(pe=this.properties.radiusMin)!=null?pe:0,this.properties.radiusMax)),R&&$.push(Yi(R,"band",{id:"calloutLabelValue"})),F&&$.push(Yi(F,"band",{id:"sectorLabelValue"})),_&&$.push(Yi(_,"band",{id:"legendItemValue"})),y&&$.push(il(y,se,{id:"angleFilterValue",onlyPositive:!0,validation:V,invalidValue:0}),Yi(y,se,{id:"angleFilterRaw"}),Cf("angleFilterValue",[0,1],0,0)),K&&((ve=(Se=(Ce=this.processedData)==null?void 0:Ce.reduced)==null?void 0:Se.animationValidation)!=null&&ve.uniqueKeys)&&q.length>0&&$.push(Z(this.id,this.processedData)),$.push(Qb()),await this.requestDataModel(e,this.data,{props:[...q,il(u,se,{id:"angleValue",onlyPositive:!0,validation:V,invalidValue:0}),Yi(u,se,{id:"angleRaw"}),Cf("angleValue",[0,1],0,0),...$]});for(let ze of(Te=(De=(ke=this.processedData)==null?void 0:ke.defs)==null?void 0:De.values)!=null?Te:[]){let{id:qe,missing:et,property:$e}=ze,lt=pg(this,et);qe!=="angleRaw"&&lt>0&&hi.warnOnce(`no value was found for the key '${String($e)}' on ${lt} data element${lt>1?"s":""}`)}this.animationState.transition("updateData")}maybeRefreshNodeData(){var n;if(!this.nodeDataRefresh)return;let{nodeData:e=[],phantomNodeData:t}=(n=this.createNodeData())!=null?n:{};this.nodeData=e,this.phantomNodeData=t,this.nodeDataRefresh=!1}getProcessedDataValues(e,t){let n=e.resolveColumnById(this,"angleValue",t),a=e.resolveColumnById(this,"angleRaw",t),u=this.properties.angleFilterKey!=null?e.resolveColumnById(this,"angleFilterValue",t):void 0,y=this.properties.angleFilterKey!=null?e.resolveColumnById(this,"angleFilterRaw",t):void 0,k=this.properties.radiusKey?e.resolveColumnById(this,"radiusValue",t):void 0,R=this.properties.radiusKey?e.resolveColumnById(this,"radiusRaw",t):void 0,F=this.properties.calloutLabelKey?e.resolveColumnById(this,"calloutLabelValue",t):void 0,_=this.properties.sectorLabelKey?e.resolveColumnById(this,"sectorLabelValue",t):void 0,V=this.properties.legendItemKey?e.resolveColumnById(this,"legendItemValue",t):void 0;return{angleValues:n,angleRawValues:a,angleFilterValues:u,angleFilterRawValues:y,radiusValues:k,radiusRawValues:R,calloutLabelValues:F,sectorLabelValues:_,legendItemValues:V}}createNodeData(){var ke;let{id:e,processedData:t,dataModel:n,angleScale:a,ctx:{legendManager:u},visible:y}=this,{rotation:k}=this.properties;if(!(t!=null&&t.rawData.length)||!n||t.type!=="ungrouped")return;let{angleValues:R,angleRawValues:F,angleFilterValues:_,angleFilterRawValues:V,radiusValues:K,radiusRawValues:q,calloutLabelValues:$,sectorLabelValues:te,legendItemValues:se}=this.getProcessedDataValues(n,t),de=(ke=V==null?void 0:V.some((De,Te)=>De>F[Te]))!=null?ke:!1,pe=0,Ce=0,Se=[],ve=V!=null?[]:void 0;return t.rawData.forEach((De,Te)=>{var Ot;let ze=de?_[Te]:R[Te],qe=V!=null&&!de?Math.sqrt(V[Te]/F[Te]):1,et=a.convert(pe)+ma(k);pe=ze,Ce+=ze;let $e=a.convert(pe)+ma(k),lt=Math.abs($e-et),at=et+lt/2,ht=F[Te],wt=((Ot=K==null?void 0:K[Te])!=null?Ot:1)*qe,Ct=q==null?void 0:q[Te],yt=se==null?void 0:se[Te],Et=this.getLabels(De,at,lt,!0,$==null?void 0:$[Te],te==null?void 0:te[Te],yt),At=this.getSectorFormat(De,Te,!1),Dt=ge({itemId:Te,series:this,datum:De,datumIndex:Te,angleValue:ht,midAngle:at,midCos:Math.cos(at),midSin:Math.sin(at),startAngle:et,endAngle:$e,radius:wt,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(wt),0),sectorFormat:At,radiusValue:Ct,legendItemValue:yt,enabled:y&&u.getItemEnabled({seriesId:e,itemId:Te})},Et);Se.push(Dt),ve!=null&&ve.push(He(ge({},Dt),{radius:1,innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(1),0)}))}),this.zerosumOuterRing.visible=Ce===0,{itemId:e,nodeData:Se,labelData:Se,phantomNodeData:ve}}getLabels(e,t,n,a,u,y,k){let{calloutLabel:R,sectorLabel:F,legendItemKey:_}=this.properties,V=!a||R.enabled?this.properties.calloutLabelKey:void 0,K=!a||F.enabled?this.properties.sectorLabelKey:void 0;if(!V&&!K&&!_)return{};let q={datum:e,angleKey:this.properties.angleKey,angleName:this.properties.angleName,radiusKey:this.properties.radiusKey,radiusName:this.properties.radiusName,calloutLabelKey:this.properties.calloutLabelKey,calloutLabelName:this.properties.calloutLabelName,sectorLabelKey:this.properties.sectorLabelKey,sectorLabelName:this.properties.sectorLabelName,legendItemKey:this.properties.legendItemKey},$={};return V&&n>ma(R.minAngle)&&($.calloutLabel=He(ge({},this.getTextAlignment(t)),{text:this.getLabelText(R,He(ge({},q),{value:u})),hidden:!1,collisionTextAlign:void 0,collisionOffsetY:0,box:void 0})),K&&($.sectorLabel={text:this.getLabelText(F,He(ge({},q),{value:y}))}),_!=null&&k!=null&&($.legendItem={key:_,text:k}),$}getTextAlignment(e){let t=[{textAlign:"center",textBaseline:"bottom"},{textAlign:"left",textBaseline:"middle"},{textAlign:"center",textBaseline:"hanging"},{textAlign:"right",textBaseline:"middle"}],n=ab(e),a=-.75*Math.PI,u=n-a,y=Math.floor(u/(Math.PI/2)),k=Ty(y,t.length);return t[k]}getSectorFormat(e,t,n){var ke,De,Te,ze,qe,et,$e,lt;let{angleKey:a,radiusKey:u,calloutLabelKey:y,sectorLabelKey:k,legendItemKey:R,fills:F,strokes:_,itemStyler:V}=this.properties,K=_[t%_.length],{fill:q,fillOpacity:$,stroke:te,strokeWidth:se,strokeOpacity:de,lineDash:pe,lineDashOffset:Ce,cornerRadius:Se}=En(n&&this.properties.highlightStyle.item,{fill:F.length>0?F[t%F.length]:void 0,stroke:K,strokeWidth:this.getStrokeWidth(this.properties.strokeWidth),strokeOpacity:this.getOpacity()},this.properties),ve;return V&&(ve=this.cachedDatumCallback(ee(this.getDatumIdFromData(e),n?"highlight":"hide"),()=>V({datum:e,angleKey:a,radiusKey:u,calloutLabelKey:y,sectorLabelKey:k,legendItemKey:R,fill:q,strokeOpacity:de,stroke:te,strokeWidth:se,fillOpacity:$,lineDash:pe,lineDashOffset:Ce,cornerRadius:Se,highlighted:n,seriesId:this.id}))),{fill:(ke=ve==null?void 0:ve.fill)!=null?ke:q,fillOpacity:(De=ve==null?void 0:ve.fillOpacity)!=null?De:$,stroke:(Te=ve==null?void 0:ve.stroke)!=null?Te:te,strokeWidth:(ze=ve==null?void 0:ve.strokeWidth)!=null?ze:se,strokeOpacity:(qe=ve==null?void 0:ve.strokeOpacity)!=null?qe:de,lineDash:(et=ve==null?void 0:ve.lineDash)!=null?et:pe,lineDashOffset:($e=ve==null?void 0:ve.lineDashOffset)!=null?$e:Ce,cornerRadius:(lt=ve==null?void 0:ve.cornerRadius)!=null?lt:Se}}getOuterRadius(){return Math.max(this.radius*this.properties.outerRadiusRatio+this.properties.outerRadiusOffset,0)}updateRadiusScale(e){var a;let t=[0,this.getOuterRadius()];this.radiusScale.range=t,e&&(this.previousRadiusScale.range=t);let n=u=>He(ge({},u),{innerRadius:Math.max(this.radiusScale.convert(0),0),outerRadius:Math.max(this.radiusScale.convert(u.radius),0)});this.nodeData=this.nodeData.map(n),this.phantomNodeData=(a=this.phantomNodeData)==null?void 0:a.map(n)}getTitleTranslationY(){var u,y;let e=Math.max(0,this.radiusScale.range[1]);if(e===0)return NaN;let n=2+((y=(u=this.properties.title)==null?void 0:u.spacing)!=null?y:0),a=Math.max(0,-e);return-e-n-a}update({seriesRect:e}){let{title:t}=this.properties,n={seriesRectWidth:e==null?void 0:e.width,seriesRectHeight:e==null?void 0:e.height},a=Qh(this.nodeDataDependencies,n)!=null;if(a&&(this._nodeDataDependencies=n),this.maybeRefreshNodeData(),this.updateTitleNodes(),this.updateRadiusScale(a),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.backgroundGroup.translationX=this.centerX,this.backgroundGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),t){let u=this.getTitleTranslationY();t.node.y=isFinite(u)?u:0;let y=t.node.getBBox();t.node.visible=t.enabled&&isFinite(u)&&!this.bboxIntersectsSurroundingSeries(y)}this.zerosumOuterRing.fillOpacity=0,this.zerosumOuterRing.stroke=this.properties.calloutLabel.color,this.zerosumOuterRing.strokeWidth=1,this.zerosumOuterRing.strokeOpacity=1,this.updateNodeMidPoint(),this.updateSelections(),this.updateNodes(e)}updateTitleNodes(){var n,a;let{oldTitle:e}=this,{title:t}=this.properties;e!==t&&(e&&((n=this.labelGroup)==null||n.removeChild(e.node)),t&&(t.node.textBaseline="bottom",(a=this.labelGroup)==null||a.appendChild(t.node)),this.oldTitle=t)}updateNodeMidPoint(){var t;let e=n=>{let a=n.innerRadius+(n.outerRadius-n.innerRadius)/2;n.midPoint={x:n.midCos*Math.max(0,a),y:n.midSin*Math.max(0,a)}};this.nodeData.forEach(e),(t=this.phantomNodeData)==null||t.forEach(e)}updateSelections(){this.updateGroupSelection()}updateGroupSelection(){var F;let{itemSelection:e,highlightSelection:t,phantomSelection:n,highlightLabelSelection:a,calloutLabelSelection:u,labelSelection:y}=this,k=this.nodeData.map(_=>He(ge({},_),{sectorFormat:ge({},_.sectorFormat)})),R=(_,V)=>{_.update(V,void 0,K=>this.getDatumId(K)),this.ctx.animationManager.isSkipped()&&_.cleanup()};R(e,this.nodeData),R(t,k),R(n,(F=this.phantomNodeData)!=null?F:[]),u.update(this.calloutNodeData,_=>{let V=new ms;V.tag=0,V.pointerEvents=1,_.appendChild(V);let K=new Lo;K.tag=1,K.pointerEvents=1,_.appendChild(K)}),y.update(this.nodeData),a.update(k)}updateNodes(e){let t=this.ctx.highlightManager.getActiveHighlight(),{visible:n}=this;this.backgroundGroup.visible=n,this.contentGroup.visible=n,this.highlightGroup.visible=n&&(t==null?void 0:t.series)===this,this.highlightLabel.visible=n&&(t==null?void 0:t.series)===this,this.labelGroup&&(this.labelGroup.visible=n),this.contentGroup.opacity=this.getOpacity();let a=this.ctx.animationManager.isSkipped(),u=(y,k,R,F)=>{let _=this.getSectorFormat(k.datum,k.itemId,F);k.sectorFormat.fill=_.fill,k.sectorFormat.stroke=_.stroke,a&&(y.startAngle=k.startAngle,y.endAngle=k.endAngle,y.innerRadius=k.innerRadius,y.outerRadius=k.outerRadius),(F||a)&&(y.fill=_.fill,y.stroke=_.stroke),y.strokeWidth=_.strokeWidth,y.fillOpacity=_.fillOpacity,y.strokeOpacity=_.strokeOpacity,y.lineDash=_.lineDash,y.lineDashOffset=_.lineDashOffset,y.cornerRadius=_.cornerRadius,y.fillShadow=this.properties.shadow;let V=Math.max((this.properties.sectorSpacing+(_.stroke!=null?_.strokeWidth:0))/2,0);y.inset=V,y.lineJoin=this.properties.sectorSpacing>=0||V>0?"miter":"round"};this.itemSelection.each((y,k,R)=>u(y,k,R,!1)),this.highlightSelection.each((y,k,R)=>{u(y,k,R,!0),y.visible=k.itemId===(t==null?void 0:t.itemId)}),this.phantomSelection.each((y,k,R)=>u(y,k,R,!1)),this.updateCalloutLineNodes(),this.updateCalloutLabelNodes(e),this.updateSectorLabelNodes(),this.updateZerosumRings(),this.animationState.transition("update")}updateCalloutLineNodes(){var y;let{calloutLine:e}=this.properties,t=e.length,n=e.strokeWidth,a=(y=e.colors)!=null?y:this.properties.strokes,{offset:u}=this.properties.calloutLabel;this.calloutLabelSelection.selectByTag(0).forEach((k,R)=>{var K;let F=k.datum,{calloutLabel:_,outerRadius:V}=F;if(_!=null&&_.text&&!_.hidden&&V!==0){k.visible=!0,k.strokeWidth=n,k.stroke=a[R%a.length],k.fill=void 0;let q=F.midCos*V,$=F.midSin*V,te=F.midCos*(V+t),se=F.midSin*(V+t);if(((K=_.collisionTextAlign)!=null?K:_.collisionOffsetY!==0)&&_.box!=null){let pe=_.box,Ce=te,Se=se;te<pe.x?Ce=pe.x:te>pe.x+pe.width&&(Ce=pe.x+pe.width),se<pe.y?Se=pe.y:se>pe.y+pe.height&&(Se=pe.y+pe.height);let ve=Ce-te,ke=Se-se,De=Math.sqrt(Math.pow(ve,2)+Math.pow(ke,2)),Te=De-u;Te>0&&(te=te+ve*Te/De,se=se+ke*Te/De)}k.x1=q,k.y1=$,k.x2=te,k.y2=se}else k.visible=!1})}getLabelOverflow(e,t,n){let a=-this.centerX,u=a+n.width,y=-this.centerY,k=y+n.height,R=1,F=1;t.x+R<a?F=(t.x+t.width-a)/t.width:t.x+t.width-R>u&&(F=(u-t.x)/t.width);let _=t.y+R<y||t.y+t.height-R>k,V=F===1?e.length:Math.floor(e.length*F)-1,K=this.bboxIntersectsSurroundingSeries(t);return{textLength:V,hasVerticalOverflow:_,hasSurroundingSeriesOverflow:K}}bboxIntersectsSurroundingSeries(e){let{surroundingRadius:t}=this;if(t==null)return!1;let n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],a=t**2;return n.some(u=>u.x**2+u.y**2>a)}computeCalloutLabelCollisionOffsets(){let{radiusScale:e}=this,{calloutLabel:t,calloutLine:n}=this.properties,{offset:a,minSpacing:u}=t,y=e.convert(0),k=pe=>!pe.calloutLabel||pe.outerRadius===0,R=this.calloutNodeData,F=R.filter(pe=>!k(pe));if(F.forEach(pe=>{let Ce=pe.calloutLabel;Ce!=null&&(Ce.hidden=!1,Ce.collisionTextAlign=void 0,Ce.collisionOffsetY=0)}),F.length<=1)return;let _=F.filter(pe=>pe.midCos<0).sort((pe,Ce)=>pe.midSin-Ce.midSin),V=F.filter(pe=>pe.midCos>=0).sort((pe,Ce)=>pe.midSin-Ce.midSin),K=F.filter(pe=>{var Ce;return pe.midSin<0&&((Ce=pe.calloutLabel)==null?void 0:Ce.textAlign)==="center"}).sort((pe,Ce)=>pe.midCos-Ce.midCos),q=F.filter(pe=>{var Ce;return pe.midSin>=0&&((Ce=pe.calloutLabel)==null?void 0:Ce.textAlign)==="center"}).sort((pe,Ce)=>pe.midCos-Ce.midCos),$=pe=>{var ze;let Ce=pe.calloutLabel;if(Ce==null)return ki.zero.clone();let Se=pe.outerRadius+n.length+a,ve=pe.midCos*Se,ke=pe.midSin*Se+Ce.collisionOffsetY,De=(ze=Ce.collisionTextAlign)!=null?ze:Ce.textAlign,Te=Ce.textBaseline;return Lo.computeBBox(Ce.text,ve,ke,{font:this.properties.calloutLabel,textAlign:De,textBaseline:Te})},te=(pe,Ce,Se)=>{let ve=$(pe).grow(u/2),ke=$(Ce).grow(u/2);if(ve.x<ke.x+ke.width&&ve.x+ve.width>ke.x&&(Se==="to-top"?ve.y<ke.y+ke.height:ve.y+ve.height>ke.y)){let Te=Se==="to-top"?ve.y-ke.y-ke.height:ve.y+ve.height-ke.y;Ce.calloutLabel.collisionOffsetY=Te}},se=pe=>{let Ce=pe.slice().sort((ve,ke)=>Math.abs(ve.midSin)-Math.abs(ke.midSin))[0],Se=pe.indexOf(Ce);for(let ve=Se-1;ve>=0;ve--){let ke=pe[ve+1],De=pe[ve];te(ke,De,"to-top")}for(let ve=Se+1;ve<pe.length;ve++){let ke=pe[ve-1],De=pe[ve];te(ke,De,"to-bottom")}},de=pe=>{let Ce=F.some(ze=>ze.calloutLabel.collisionOffsetY!==0),Se=pe.map(ze=>$(ze)),ve=Se.map(ze=>ze.clone().grow(u/2)),ke=!1;for(let ze=0;ze<ve.length&&!ke;ze++){let qe=ve[ze];for(let et=ze+1;et<pe.length;et++){let $e=ve[et];if(qe.collidesBBox($e)){ke=!0;break}}}let De=R.map(ze=>{let{startAngle:qe,endAngle:et,outerRadius:$e}=ze;return{startAngle:qe,endAngle:et,innerRadius:y,outerRadius:$e}}),Te=Se.some(ze=>De.some(qe=>W6(ze,qe)));!ke&&!Ce&&!Te||pe.filter(ze=>ze.calloutLabel.textAlign==="center").forEach(ze=>{let qe=ze.calloutLabel;ze.midCos<0?qe.collisionTextAlign="right":ze.midCos>0?qe.collisionTextAlign="left":qe.collisionTextAlign="center"})};se(_),se(V),de(K),de(q)}updateCalloutLabelNodes(e){let{radiusScale:t}=this,{calloutLabel:n,calloutLine:a}=this.properties,u=a.length,{offset:y,color:k}=n,R=new Lo;this.calloutLabelSelection.selectByTag(1).forEach(F=>{var ve;let{datum:_}=F,V=_.calloutLabel,K=t.convert(_.radius),q=Math.max(0,K);if(!(V!=null&&V.text)||q===0||V.hidden){F.visible=!1;return}let $=q+u+y,te=_.midCos*$,se=_.midSin*$+V.collisionOffsetY,de={textAlign:(ve=V.collisionTextAlign)!=null?ve:V.textAlign,textBaseline:V.textBaseline};R.text=V.text,R.x=te,R.y=se,R.setFont(this.properties.calloutLabel),R.setAlign(de);let pe=R.getBBox(),Ce=V.text,Se=!0;if(n.avoidCollisions){let{textLength:ke,hasVerticalOverflow:De}=this.getLabelOverflow(V.text,pe,e);Ce=V.text.length===ke?V.text:`${V.text.substring(0,ke)}\u2026`,Se=!De}F.text=Ce,F.x=te,F.y=se,F.setFont(this.properties.calloutLabel),F.setAlign(de),F.fill=k,F.visible=Se})}computeLabelsBBox(e,t){let{calloutLabel:n,calloutLine:a}=this.properties,u=a.length,{offset:y,maxCollisionOffset:k,minSpacing:R}=n;if(!n.avoidCollisions)return null;this.maybeRefreshNodeData(),this.updateRadiusScale(!1),this.computeCalloutLabelCollisionOffsets();let F=[],_=new Lo,V,{title:K}=this.properties;if(K!=null&&K.text&&K.enabled){let q=this.getTitleTranslationY();isFinite(q)&&(_.text=K.text,_.x=0,_.y=q,_.setFont(K),_.setAlign({textBaseline:"bottom",textAlign:"center"}),V=_.getBBox(),F.push(V))}return this.calloutNodeData.forEach(q=>{var Ce;let $=q.calloutLabel;if(!$||q.outerRadius===0)return null;let te=q.outerRadius+u+y,se=q.midCos*te,de=q.midSin*te+$.collisionOffsetY;_.text=$.text,_.x=se,_.y=de,_.setFont(this.properties.calloutLabel),_.setAlign({textAlign:(Ce=$.collisionTextAlign)!=null?Ce:$.textAlign,textBaseline:$.textBaseline});let pe=_.getBBox();if($.box=pe,Math.abs($.collisionOffsetY)>k){$.hidden=!0;return}if(V){let Se=-this.centerY,ve=new ki(V.x-R,Se,V.width+2*R,V.y+V.height+R-Se);if(pe.collidesBBox(ve)){$.hidden=!0;return}}if(e.hideWhenNecessary){let{textLength:Se,hasVerticalOverflow:ve,hasSurroundingSeriesOverflow:ke}=this.getLabelOverflow($.text,pe,t),De=$.text.length>2&&Se<2;if(ve||De||ke){$.hidden=!0;return}}$.hidden=!1,F.push(pe)}),F.length===0?null:ki.merge(F)}updateSectorLabelNodes(){var q;let{radiusScale:e}=this,t=e.convert(0),{fontSize:n,fontStyle:a,fontWeight:u,fontFamily:y,positionOffset:k,positionRatio:R,color:F}=this.properties.sectorLabel,_=t>0,V=((q=this.ctx.legendManager.getData(this.id))==null?void 0:q.filter($=>$.enabled).length)===1,K=($,te)=>{let{sectorLabel:se,outerRadius:de,startAngle:pe,endAngle:Ce}=te,Se=!1;if(se&&de!==0){let ve=t*(1-R)+de*R+k;$.fill=F,$.fontStyle=a,$.fontWeight=u,$.fontSize=n,$.fontFamily=y,$.text=se.text,!_&&V?($.x=0,$.y=0):($.x=te.midCos*ve,$.y=te.midSin*ve),$.textAlign="center",$.textBaseline="middle";let De=$.getBBox(),Te=[[De.x,De.y],[De.x+De.width,De.y],[De.x+De.width,De.y+De.height],[De.x,De.y+De.height]],ze={startAngle:pe,endAngle:Ce,innerRadius:t,outerRadius:de};Te.every(([qe,et])=>$O(qe,et,ze))&&(Se=!0)}$.visible=Se};this.labelSelection.each(K),this.highlightLabelSelection.each(K)}updateZerosumRings(){this.zerosumOuterRing.size=this.getOuterRadius()*2}pickNodeClosestDatum(e){return f3(this,e)}getTooltipContent(e){var ze,qe,et;let{id:t,dataModel:n,processedData:a,properties:u}=this,{legendItemKey:y,calloutLabelKey:k,calloutLabelName:R,sectorLabelKey:F,sectorLabelName:_,angleKey:V,angleName:K,radiusKey:q,radiusName:$,tooltip:te}=u,se=this.properties.title.text;if(!n||!a||a.rawData.length===0)return;let{datumIndex:de}=e,pe=a.rawData[de],{angleRawValues:Ce,legendItemValues:Se,calloutLabelValues:ve,sectorLabelValues:ke}=this.getProcessedDataValues(n,a),De=Ce[de],Te=(et=(qe=(ze=Se==null?void 0:Se[de])!=null?ze:k===V||ve==null?void 0:ve[de])!=null?qe:F===V||ke==null?void 0:ke[de])!=null?et:K;return te.formatTooltip({title:se,symbol:this.legendItemSymbol(de),data:[{label:Te,fallbackLabel:V,value:String(De)}]},ge({seriesId:t,datum:pe,title:K,legendItemKey:y,calloutLabelKey:k,calloutLabelName:R,sectorLabelKey:F,sectorLabelName:_,angleKey:V,angleName:K,radiusKey:q,radiusName:$},this.getSectorFormat(pe,de,!1)))}legendItemSymbol(e){var a;let t=(a=this.processedData)==null?void 0:a.rawData[e],n=this.getSectorFormat(t,e,!1);return{marker:{fill:n.fill,stroke:n.stroke,fillOpacity:this.properties.fillOpacity,strokeOpacity:this.properties.strokeOpacity,strokeWidth:this.properties.strokeWidth}}}getLegendData(e){var Ce,Se,ve,ke,De;let{id:t,visible:n,processedData:a,dataModel:u,ctx:{legendManager:y}}=this;if(!u||!a||e!=="category")return[];let{angleKey:k,calloutLabelKey:R,sectorLabelKey:F,legendItemKey:_,showInLegend:V}=this.properties;if(!_&&(!R||R===k)&&(!F||F===k))return[];let{calloutLabelValues:K,sectorLabelValues:q,legendItemValues:$,angleRawValues:te}=this.getProcessedDataValues(u,a),se=((Ce=this.properties.title)==null?void 0:Ce.showInLegend)&&this.properties.title.text,de=[],pe=this.properties.hideZeroValueSectorsInLegend;for(let Te=0;Te<a.rawData.length;Te++){let ze=a.rawData[Te],qe=te[Te];if(pe&&qe===0)continue;let et=[];se&&et.push(se);let $e=this.getLabels(ze,2*Math.PI,2*Math.PI,!1,K==null?void 0:K[Te],q==null?void 0:q[Te],$==null?void 0:$[Te]);_&&$e.legendItem!==void 0?et.push($e.legendItem.text):R&&R!==k&&((Se=$e.calloutLabel)==null?void 0:Se.text)!==void 0?et.push((ve=$e.calloutLabel)==null?void 0:ve.text):F&&F!==k&&((ke=$e.sectorLabel)==null?void 0:ke.text)!==void 0&&et.push((De=$e.sectorLabel)==null?void 0:De.text),et.length!==0&&de.push({legendType:"category",id:t,datum:ze,itemId:Te,seriesId:t,enabled:n&&y.getItemEnabled({seriesId:t,itemId:Te}),label:{text:et.join(" - ")},symbol:this.legendItemSymbol(Te),legendItemName:_!=null?ze[_]:void 0,hideInLegend:!V})}return de}setLegendState(e){let{id:t,ctx:{legendManager:n,updateService:a}}=this;e.forEach((u,y)=>n.toggleItem({enabled:u,seriesId:t,itemId:y})),n.update(),a.update(4)}animateEmptyUpdateReady(e){let{animationManager:t}=this.ctx,n=oE(!0,this.properties.rotation,this.radiusScale,this.previousRadiusScale);to(this.id,"nodes",t,[this.itemSelection,this.highlightSelection,this.phantomSelection],n.nodes,(a,u)=>this.getDatumId(u)),Ea(this,"callout",t,this.calloutLabelSelection),Ea(this,"sector",t,this.labelSelection),Ea(this,"highlight",t,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}animateWaitingUpdateReady(){var q,$,te,se,de,pe,Ce;let{itemSelection:e,highlightSelection:t,phantomSelection:n,processedData:a,radiusScale:u,previousRadiusScale:y}=this,{animationManager:k}=this.ctx,R=($=(q=a==null?void 0:a.reduced)==null?void 0:q.diff)==null?void 0:$[this.id];this.ctx.animationManager.stopByAnimationGroupId(this.id);let F=((te=R==null?void 0:R.moved.size)!=null?te:0)===0,_=((se=a==null?void 0:a.defs.keys.length)!=null?se:0)>0,V=(Ce=(pe=(de=a==null?void 0:a.reduced)==null?void 0:de.animationValidation)==null?void 0:pe.uniqueKeys)!=null?Ce:!0;(!F||!_||!V)&&this.ctx.animationManager.skipCurrentBatch();let K=oE(!1,this.properties.rotation,u,y);to(this.id,"nodes",k,[e,t,n],K.nodes,(Se,ve)=>this.getDatumId(ve),R),Ea(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),Ea(this,"sector",this.ctx.animationManager,this.labelSelection),Ea(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}animateClearingUpdateEmpty(){let{itemSelection:e,highlightSelection:t,phantomSelection:n,radiusScale:a,previousRadiusScale:u}=this,{animationManager:y}=this.ctx,k=oE(!1,this.properties.rotation,a,u);to(this.id,"nodes",y,[e,t,n],k.nodes,(R,F)=>this.getDatumId(F)),aC(this,"callout",this.ctx.animationManager,this.calloutLabelSelection),aC(this,"sector",this.ctx.animationManager,this.labelSelection),aC(this,"highlight",this.ctx.animationManager,this.highlightLabelSelection),this.previousRadiusScale.range=this.radiusScale.range}getDatumIdFromData(e){var u,y,k;let{calloutLabelKey:t,sectorLabelKey:n,legendItemKey:a}=this.properties;if((k=(y=(u=this.processedData)==null?void 0:u.reduced)==null?void 0:y.animationValidation)!=null&&k.uniqueKeys){if(a)return e[a];if(t)return e[t];if(n)return e[n]}}getDatumId(e){let{datumIndex:t}=e,n=this.getDatumIdFromData(e.datum);return n!=null?String(n):`${t}`}},dF.className="PieSeries",dF.type="pie"}}),J6,C$=A({"packages/ag-charts-community/src/chart/series/polar/pieSeriesModule.ts"(){"use strict";b$(),Z6(),J6={type:"series",optionsKey:"series[]",packageType:"community",chartTypes:["polar"],identifier:"pie",moduleFactory:e=>new dF(e),tooltipDefaults:{range:"exact"},themeTemplate:X6,paletteFactory:b3}}});function S3(){ph.register(Xv,iR,XT,x6,s3,_6,d3,V6,$6,J6,N6);for(let e of[rr,Cv,Yv,ba,uc])gu.register(e.type,{moduleFactory:t=>new e(t),hidden:e===ba})}var w3=A({"packages/ag-charts-community/src/chart/factory/registerInbuiltModules.ts"(){"use strict";R1(),mh(),zm(),_l(),qv(),Su(),FO(),NO(),nR(),e$(),O6(),r$(),c$(),G6(),g$(),v$(),C$(),af()}});function S$(){for(let e of ph.modules){if(e.packageType==="enterprise"&&!qM(e)&&hi.errorOnce("Unexpected enterprise module registered: "+e.identifier),e.type==="root"&&e.themeTemplate)for(let t of e.chartTypes)Nv.set(t,e.themeTemplate);if(e.type==="series"){if(e.chartTypes.length>1)throw new Error(`AG Charts - Module definition error: ${e.identifier}`);Oo.register(e.identifier,e)}if(e.type==="series-option"&&e.themeTemplate)for(let t of e.seriesTypes)Oo.setThemeTemplate(t,e.themeTemplate);if(e.type==="axis-option"&&e.themeTemplate)for(let t of e.axisTypes){let n=gu.getThemeTemplate(t),a=En(e.themeTemplate,n);gu.setThemeTemplate(t,a)}e.type==="axis"&&gu.register(e.identifier,e),e.type==="legend"&&rf.register(e.identifier,e)}if(ph.hasEnterpriseModules()){let e=vS();e.length>0&&hi.errorOnce("Enterprise modules expected but not registered: ",e)}}var w$=A({"packages/ag-charts-community/src/chart/factory/setupModules.ts"(){"use strict";mh(),on(),ra(),af(),yg(),vg(),_v(),yS()}});function x$(e){return e.type==="sankey"||e.type==="chord"}var uF,M$=A({"packages/ag-charts-community/src/chart/flowProportionChart.ts"(){"use strict";Xr(),uF=class extends Rp{getChartType(){return"flow-proportion"}async updateData(){await super.updateData();let{nodes:e}=this.getOptions();this.series.forEach(t=>{x$(t)&&t.setChartNodes(e)})}performLayout(e){let{seriesRoot:t,annotationRoot:n}=this,{layoutBox:a}=e;a.shrink(this.seriesArea.padding.toJson());let u=a.clone();this.seriesRect=u,this.animationRect=u,t.visible=this.series.some(y=>y.visible);for(let y of[t,n])y.translationX=Math.floor(u.x),y.translationY=Math.floor(u.y);this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:t.visible,rect:u,paddedRect:u}})}},uF.className="FlowProportionChart",uF.type="flow-proportion"}}),Vk,x3=A({"packages/ag-charts-community/src/chart/axis/polarAxis.ts"(){"use strict";Ai(),G0(),Vk=class extends hp{constructor(){super(...arguments),this.shape="polygon",this.innerRadiusRatio=0,this.defaultTickMinSpacing=20}computeLabelsBBox(e,t){return null}computeRange(){}getAxisLinePoints(){}},b([Ge(uo(["polygon","circle"],"a polar axis shape"))],Vk.prototype,"shape",2),b([Ge(Cn)],Vk.prototype,"innerRadiusRatio",2)}});function k$(e){return e.type==="radial-gauge"}function A$(e){return e.type==="linear-gauge"}var hF,D$=A({"packages/ag-charts-community/src/chart/gaugeChart.ts"(){"use strict";Np(),qL(),Ko(),on(),bv(),x3(),Xr(),Tn(),hF=class extends Rp{getChartType(){return"gauge"}updateRadialGauge(e,t){let n=this.axes.find(qe=>qe.direction==="x");if(!(n instanceof Vk))return;n.computeRange();let a=e.x,u=a+e.width,y=e.y,k=y+e.height,[R,F]=n.range,V=Px(F-R)>Math.PI,K=V||Fc(1.5*Math.PI,R,F),q=V||Fc(0*Math.PI,R,F),$=V||Fc(.5*Math.PI,R,F),te=V||Fc(1*Math.PI,R,F),se;te&&!q?se="right":!te&&q?se="left":se="center";let de;K&&!$?de="bottom":!K&&$?de="top":de="middle";let pe=g3({startAngle:R,endAngle:F,innerRadius:0,outerRadius:.5}),Ce=-(pe.x+pe.width/2)*2,Se=-(pe.y+pe.height/2)*2,{minimumRadius:ve=0,maximumRadius:ke}=t,De=Math.max(.5*Math.min(e.width/pe.width,e.height/pe.height),0),Te=Math.min(ke!=null?ke:1/0,Math.max(De,ve!=null?ve:0)),ze=8;for(let qe=0;qe<ze;qe+=1){let et=Te<=ve||qe===ze-1,$e=e.x+e.width/2+Ce*Te,lt=e.y+e.height/2+Se*Te;n.translation.x=$e,n.translation.y=lt,n.gridLength=Te,n.calculateLayout();let at=n.computeLabelsBBox({hideWhenNecessary:et},e);if(et)break;let ht=0;if(at!=null){let vt=at.x+$e,wt=vt+at.width,Ct=at.y+lt,yt=Ct+at.height;ht=Math.max(y-Ct,a-vt,yt-k,wt-u,0)}if(ht>0)Te=Math.max(Te-ht,ve);else break}n.translation.x=e.x+e.width/2+Ce*Te,n.translation.y=e.y+e.height/2+Se*Te,t.centerX=e.width/2+Ce*Te,t.centerY=e.height/2+Se*Te,t.radius=Te,t.textAlign=se,t.verticalAlign=de,(Te===0||Te>De)&&hi.warnOnce("There was insufficient space to display the Radial Gauge.")}updateLinearGauge(e,t){let n=this.axes.find(de=>de.direction==="x"),a=this.axes.find(de=>de.direction==="y");if(!(n instanceof gp)||!(a instanceof gp))return e;let{horizontal:u,thickness:y}=t,k=0,R=0,F=new Xc;F.domain=[0,100],F.range=u?n.range:a.range;let _=F.ticks();u?k=t.computeInset("x",_):R=t.computeInset("y",_);let V=e.width-Math.abs(k),K=e.height-Math.abs(R),q=Math.max(u?V:y,0),$=Math.max(u?y:K,0),te=e.x+(V-q)/2+Math.max(k,0),se=e.y+(K-$)/2-Math.min(R,0);n.range=[0,q],n.gridLength=q,n.calculateLayout(),n.translation.x=te,n.translation.y=se+(n.position==="bottom"?y:0),a.range=[0,$],a.gridLength=$,a.calculateLayout(),a.translation.x=te+(a.position==="right"?y:0),a.translation.y=se,t.originX=te-e.x,t.originY=se-e.y,(q===0||$===0)&&hi.warnOnce("There was insufficient space to display the Linear Gauge.")}performLayout(e){let{seriesRoot:t,annotationRoot:n,series:a,seriesArea:u}=this,{layoutBox:y}=e,k=y.clone();y.shrink(u.padding.toJson());let R=this.series[0];k$(R)?this.updateRadialGauge(y,R):A$(R)&&this.updateLinearGauge(y,R),this.axes.forEach(F=>F.update()),this.seriesRect=k.clone().translate(k.x-y.x,k.y-y.y),this.animationRect=y,t.visible=a.some(F=>F.visible);for(let F of[t,n])F.translationX=Math.floor(y.x),F.translationY=Math.floor(y.y);this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:t.visible,rect:k,paddedRect:y}})}getAriaLabel(){let e=[],t=this.getCaptionText();t.length!==0&&e.push(t);for(let a of this.series)e.push(a.getCaptionText());let n=e.join(". ");return this.ctx.localeManager.t("ariaAnnounceGaugeChart",{caption:n})}},hF.className="GaugeChart",hF.type="gauge"}}),gF,E$=A({"packages/ag-charts-community/src/chart/hierarchyChart.ts"(){"use strict";Xr(),gF=class extends Rp{constructor(e,t){super(e,t)}getChartType(){return"hierarchy"}performLayout(e){let{seriesRoot:t,annotationRoot:n}=this,{layoutBox:a}=e;a.shrink(this.seriesArea.padding.toJson());let u=a.clone();this.seriesRect=u,this.animationRect=u;for(let y of[t,n])y.translationX=Math.floor(u.x),y.translationY=Math.floor(u.y);t.visible=this.series[0].visible,t.setClipRect(u.clone()),this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:!0,rect:u,paddedRect:u}})}getAriaLabel(){let e=this.getCaptionText();return this.ctx.localeManager.t("ariaAnnounceHierarchyChart",{caption:e})}},gF.className="HierarchyChart",gF.type="hierarchy"}});function I$(e){return e instanceof ZL}function T$(e){return e instanceof Vk}var pF,R$=A({"packages/ag-charts-community/src/chart/polarChart.ts"(){"use strict";vn(),Zg(),H0(),x3(),Xr(),Tn(),sF(),Om(),pF=class extends Rp{constructor(e,t){super(e,t),this.padding=new fr(40),this.ctx.axisManager.axisGroup.zIndex=5}getChartType(){return"polar"}async performLayout(e){let{layoutBox:t}=e;t.shrink(this.seriesArea.padding.toJson());let n=t.clone();this.seriesRect=n,this.animationRect=n,this.seriesRoot.translationX=n.x,this.seriesRoot.translationY=n.y,await this.computeCircle(n),this.axes.forEach(a=>a.update()),this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:!0,rect:n,paddedRect:n}})}updateAxes(e,t,n,a){var F;let u=this.axes.find(_=>_.direction==="x"),y=this.axes.find(_=>_.direction==="y");if(!(u instanceof Vk)||!(y instanceof Vk))return;let k=u.scale,R=y.innerRadiusRatio;u.innerRadiusRatio=R,u.computeRange(),u.gridLength=a,y.gridAngles=(F=k.ticks)==null?void 0:F.call(k).map(_=>k.convert(_)),y.gridRange=u.range,y.range=[a,a*R],[u,y].forEach(_=>{_.translation.x=e.x+t,_.translation.y=e.y+n,_.calculateLayout()})}async computeCircle(e){let t=this.series.filter(I$),n=this.axes.filter(T$),a=(_,V,K)=>{this.updateAxes(e,_,V,K),t.forEach($=>{$.centerX=_,$.centerY=V,$.radius=K});let q=t.filter($=>$.type==="donut"||$.type==="pie");if(q.length>1){let $=q.map(te=>{let se=te.getInnerRadius();return{series:te,innerRadius:se}}).sort((te,se)=>te.innerRadius-se.innerRadius);$.at(-1).series.surroundingRadius=void 0;for(let te=0;te<$.length-1;te++)$[te].series.surroundingRadius=$[te+1].innerRadius}},u=e.width/2,y=e.height/2,k=Math.max(0,Math.min(e.width,e.height)/2),R=k;a(u,y,R);let F=async({hideWhenNecessary:_=!1}={})=>{let V=[];for(let $ of ii(n,t)){let te=await $.computeLabelsBBox({hideWhenNecessary:_},e);te&&V.push(te)}if(V.length===0){a(u,y,k);return}let K=ki.merge(V),q=this.refineCircle(K,R,e);a(q.centerX,q.centerY,q.radius),R=q.radius};await F(),await F(),await F(),await F({hideWhenNecessary:!0}),await F({hideWhenNecessary:!0});for(let _ of ii(n,t))await _.computeLabelsBBox({hideWhenNecessary:!0},e);return{radius:R,centerX:u,centerY:y}}refineCircle(e,t,n){let u=-t,y=-t,k=t,R=t,F=Math.max(0,u-e.x),_=Math.max(0,y-e.y),V=Math.max(0,e.x+e.width-k),K=Math.max(0,e.y+e.height-R);F=V=Math.max(F,V),_=K=Math.max(_,K);let q=n.width-F-V,$=n.height-_-K,te=Math.min(q,$)/2,se=.5*n.width/2,de=.5*n.height/2,pe=Math.min(se,de);if(te<pe){te=pe;let ve=F+V,ke=_+K;if(2*te+ke>n.height){let De=n.height-2*te;Math.min(_,K)*2>De?(_=De/2,K=De/2):_>K?_=De-K:K=De-_}if(2*te+ve>n.width){let De=n.width-2*te;Math.min(F,V)*2>De?(F=De/2,V=De/2):F>V?F=De-V:V=De-F}}let Ce=F+2*te+V,Se=_+2*te+K;return{centerX:(n.width-Ce)/2+F+te,centerY:(n.height-Se)/2+_+te,radius:te}}},pF.className="PolarChart",pF.type="polar"}}),mF,P$=A({"packages/ag-charts-community/src/chart/standaloneChart.ts"(){"use strict";Xr(),mF=class extends Rp{constructor(e,t){super(e,t)}getChartType(){return"standalone"}performLayout(e){let{seriesRoot:t,annotationRoot:n}=this,{layoutBox:a}=e,u=a.clone();a.shrink(this.seriesArea.padding.toJson()),this.seriesRect=a,this.animationRect=a;for(let y of[t,n])y.translationX=Math.floor(a.x),y.translationY=Math.floor(a.y);t.visible=this.series[0].visible,this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:!0,rect:u,paddedRect:a}})}getAriaLabel(){let e=this.getCaptionText();return this.ctx.localeManager.t("ariaAnnounceHierarchyChart",{caption:e})}},mF.className="StandaloneChart",mF.type="standalone"}}),QL,fF,vF,yF,bF,CF,ej=A({"packages/ag-charts-community/src/chart/series/topology/mercatorScale.ts"(){"use strict";vn(),QL=Math.PI/180,fF=e=>e*QL,vF=e=>-Math.log(Math.tan(Math.PI*.25+e*QL*.5)),yF=e=>e/QL,bF=e=>(Math.atan(Math.exp(-e))-Math.PI*.25)/(QL*.5),CF=class c6{constructor(t,n){this.domain=t,this.range=n,this.type="mercator",this.bounds=c6.bounds(t)}static bounds(t){let[[n,a],[u,y]]=t,k=fF(n),R=vF(a),F=fF(u),_=vF(y);return new ki(Math.min(k,F),Math.min(R,_),Math.abs(F-k),Math.abs(_-R))}static fixedScale(){return new c6([[yF(0),bF(0)],[yF(1),bF(1)]],[[0,0],[1,1]])}convert([t,n]){let[[a,u],[y,k]]=this.range,R=(y-a)/this.bounds.width,F=(k-u)/this.bounds.height;return[(fF(t)-this.bounds.x)*R+a,(vF(n)-this.bounds.y)*F+u]}invert([t,n]){let[[a,u],[y,k]]=this.range,R=(y-a)/this.bounds.width,F=(k-u)/this.bounds.height;return[yF((t-a)/R+this.bounds.x),bF((n-u)/F+this.bounds.y)]}}}});function tj(e){return e.type==="map-shape"||e.type==="map-line"||e.type==="map-marker"||e.type==="map-shape-background"||e.type==="map-line-background"}var SF,L$=A({"packages/ag-charts-community/src/chart/topologyChart.ts"(){"use strict";Su(),Xr(),ej(),SF=class extends Rp{constructor(e,t){super(e,t),this.xAxis=new rr(this.getModuleContext()),this.xAxis.position="bottom",this.yAxis=new rr(this.getModuleContext()),this.yAxis.position="left",this.ctx.zoomManager.updateAxes([this.xAxis,this.yAxis])}getChartType(){return"topology"}async updateData(){await super.updateData();let{topology:e}=this.getOptions();this.series.forEach(t=>{tj(t)&&t.setChartTopology(e)})}performLayout(e){let{seriesRoot:t,annotationRoot:n}=this,{layoutBox:a}=e;a.shrink(this.seriesArea.padding.toJson());let u=a.clone();this.seriesRect=u,this.animationRect=u;let y=this.series.filter(tj),k=y.reduce((_,V)=>{if(!V.visible)return _;let K=V.topologyBounds;return K==null?_:_==null?K:(_.merge(K),_)},void 0),R;if(k!=null){let{lon0:_,lat0:V,lon1:K,lat1:q}=k,$=[[_,V],[K,q]],te=CF.bounds($),{width:se,height:de}=u,pe=Math.min(se/te.width,de/te.height),Ce=te.width*pe,Se=te.height*pe,ve=(se-Ce)/2,ke=(de-Se)/2,De=ve,Te=ke,ze=ve+Ce,qe=ke+Se,et=this.ctx.zoomManager.getAxisZoom(this.xAxis.id),$e=this.ctx.zoomManager.getAxisZoom(this.yAxis.id),lt=(ze-De)/(et.max-et.min),at=De-lt*et.min,ht=(qe-Te)/(1-$e.min-(1-$e.max)),vt=Te-ht*(1-$e.max);R=new CF($,[[at,vt],[at+lt,vt+ht]])}y.forEach(_=>{_.scale=R});let F=this.series.some(_=>_.visible);t.visible=F;for(let _ of[t,n])_.translationX=Math.floor(u.x),_.translationY=Math.floor(u.y),_.setClipRect(u.clone());this.ctx.layoutManager.emitLayoutComplete(e,{series:{visible:F,rect:u,paddedRect:u}})}},SF.className="TopologyChart",SF.type="topology"}}),ku,wF=A({"packages/ag-charts-community/src/module/enterpriseModule.ts"(){"use strict";ku={isEnterprise:!1}}});function Hp(e,t){let n={};for(let[a,u]of Object.entries(t))u!==Wp&&Object.hasOwn(e,a)&&(n[a]=u);return n}var Wp,ij=A({"packages/ag-charts-community/src/api/preset/presetUtils.ts"(){"use strict";Wp=Symbol("IGNORED_PROP")}});function O$(e){return e.type==="radial-gauge"}function F$(e){return e.type==="linear-gauge"}function _$(e){let nn=e,{animation:t,background:n,container:a,contextMenu:u,footnote:y,height:k,listeners:R,locale:F,minHeight:_,minWidth:V,padding:K,subtitle:q,theme:$,title:te,width:se,type:de,cursor:pe,nodeClickRange:Ce,tooltip:Se,value:ve,scale:ke={},startAngle:De,endAngle:Te,highlightStyle:ze,segmentation:qe,bar:et,needle:$e,targets:lt,outerRadius:at,innerRadius:ht,outerRadiusRatio:vt,innerRadiusRatio:wt,cornerRadius:Ct,cornerMode:yt,label:Et,secondaryLabel:At,spacing:Dt}=nn,Ot=wi(nn,["animation","background","container","contextMenu","footnote","height","listeners","locale","minHeight","minWidth","padding","subtitle","theme","title","width","type","cursor","nodeClickRange","tooltip","value","scale","startAngle","endAngle","highlightStyle","segmentation","bar","needle","targets","outerRadius","innerRadius","outerRadiusRatio","innerRadiusRatio","cornerRadius","cornerMode","label","secondaryLabel","spacing"]),{fills:It,fillMode:Rt,fill:Xt,fillOpacity:Yt,stroke:Ut,strokeWidth:oi,strokeOpacity:ti,lineDash:ai,lineDashOffset:ui,min:qt=0,max:Zt=1,interval:pi={},label:si={}}=ke,ci=Hp(e,{animation:t,background:n,container:a,contextMenu:u,footnote:y,height:k,listeners:R,locale:F,minHeight:_,minWidth:V,padding:K,subtitle:q,theme:$,title:te,width:se}),yi=Hp(ke,{fills:It,fillMode:Rt,fill:Xt,fillOpacity:Yt,stroke:Ut,strokeWidth:oi,strokeOpacity:ti,lineDash:ai,lineDashOffset:ui}),sn=Hp(e,ge({startAngle:Wp,endAngle:Wp,needle:$e!=null?ge({enabled:!0},$e):Wp,scale:yi,type:de,cursor:pe,nodeClickRange:Ce,listeners:R,tooltip:Se,value:ve,highlightStyle:ze,segmentation:qe,bar:et,targets:lt,outerRadius:at,innerRadius:ht,outerRadiusRatio:vt,innerRadiusRatio:wt,cornerRadius:Ct,cornerMode:yt,label:Et,secondaryLabel:At,spacing:Dt},Ot)),Ni=[{type:"angle-number",min:qt,max:Zt,startAngle:De,endAngle:Te,interval:pi!=null?pi:{},label:si!=null?si:{}},{type:"radius-number"}];return He(ge({},ci),{series:[sn],axes:Ni})}function N$(e){let nn=e,{animation:t,background:n,container:a,contextMenu:u,footnote:y,height:k,listeners:R,locale:F,minHeight:_,minWidth:V,padding:K,subtitle:q,theme:$,title:te,width:se,type:de,cursor:pe,nodeClickRange:Ce,tooltip:Se,value:ve,scale:ke={},direction:De="vertical",thickness:Te,highlightStyle:ze,segmentation:qe,bar:et,targets:$e,cornerRadius:lt,cornerMode:at,label:ht}=nn,vt=wi(nn,["animation","background","container","contextMenu","footnote","height","listeners","locale","minHeight","minWidth","padding","subtitle","theme","title","width","type","cursor","nodeClickRange","tooltip","value","scale","direction","thickness","highlightStyle","segmentation","bar","targets","cornerRadius","cornerMode","label"]),{fills:wt,fillMode:Ct,fill:yt,fillOpacity:Et,stroke:At,strokeWidth:Dt,strokeOpacity:Ot,lineDash:It,lineDashOffset:Rt,min:Xt=0,max:Yt=1,interval:Ut={},label:oi={}}=ke,ti=Hp(e,{animation:t,background:n,container:a,contextMenu:u,footnote:y,height:k,listeners:R,locale:F,minHeight:_,minWidth:V,padding:K,subtitle:q,theme:$,title:te,width:se}),ai=Hp(ke,{fills:wt,fillMode:Ct,fill:yt,fillOpacity:Et,stroke:At,strokeWidth:Dt,strokeOpacity:Ot,lineDash:It,lineDashOffset:Rt}),ui=Hp(e,ge({scale:ai,type:de,cursor:pe,nodeClickRange:Ce,listeners:R,tooltip:Se,value:ve,direction:De,thickness:Te,highlightStyle:ze,segmentation:qe,bar:et,targets:$e,cornerRadius:lt,cornerMode:at,label:ht},vt)),Gi=oi,{placement:qt}=Gi,Zt=wi(Gi,["placement"]),pi,si,ci=De==="horizontal";ci?(pi=qt==="before"?"top":"bottom",si="left"):(pi=qt==="after"?"right":"left",si="bottom");let yi={type:"number",position:pi,min:Xt,max:Yt,reverse:!ci,interval:Ut,label:Zt,nice:!1},sn={type:"number",position:si,min:0,max:1,label:{enabled:!1}},Ni=ci?[yi,sn]:[sn,yi];return He(ge({},ti),{series:[ui],axes:Ni})}function nj(e,t){if(t==null)return e;let u=t,{targets:n}=u,a=wi(u,["targets"]);return e=En(e,a),e.targets!=null&&n!=null&&(e.targets=Ly(e.targets,n)),e}function z$(e,t){if(O$(e)){let pe=nj(e,t);return _$(pe)}else if(F$(e)){let pe=nj(e,t);return N$(pe)}let{animation:n,background:a,container:u,contextMenu:y,footnote:k,height:R,listeners:F,locale:_,minHeight:V,minWidth:K,padding:q,subtitle:$,theme:te,title:se,width:de}=e;return Hp(e,{animation:n,background:a,container:u,contextMenu:y,footnote:k,height:R,listeners:F,locale:_,minHeight:V,minWidth:K,padding:q,subtitle:$,theme:te,title:se,width:de})}var B$=A({"packages/ag-charts-community/src/api/preset/gauge.ts"(){"use strict";Fa(),ra(),ij()}});function fc(e,t){if(ur(e))return t(e)}function G$(e,t,n){var at,ht;let lt=e,{dateKey:a="date",highKey:u="high",openKey:y="open",lowKey:k="low",closeKey:R="close",volumeKey:F="volume",chartType:_="candlestick",navigator:V=!1,volume:K=!0,rangeButtons:q=!0,statusBar:$=!0,toolbar:te=!0,zoom:se=!0,theme:de,data:pe}=lt,Ce=wi(lt,["dateKey","highKey","openKey","lowKey","closeKey","volumeKey","chartType","navigator","volume","rangeButtons","statusBar","toolbar","zoom","theme","data"]),Se=j$(de,_,a,u,k,y,R),ve=V$(de,n,y,R,K,F),De={navigator:ge({enabled:V},K?{miniChart:{enabled:V,series:[{type:"line",xKey:a,yKey:F,marker:{enabled:!1}}]},height:40,minHandle:{height:46},maxHandle:{height:46}}:null)},Te={annotations:{enabled:te,toolbar:{enabled:te},optionsToolbar:{enabled:te},data:pe,xKey:a,volumeKey:K?F:void 0}},ze=$?{statusBar:{enabled:!0,data:pe,highKey:u,openKey:y,lowKey:k,closeKey:R,volumeKey:K?F:void 0}}:null,qe={zoom:{enabled:se,enableIndependentAxes:!0}},et={ranges:{enabled:q}},$e=K?[{type:"number",position:"left",keys:[F],label:{enabled:!1},crosshair:{enabled:!1},gridLine:{enabled:!1},nice:!1,layoutConstraints:{stacked:!1,width:20,unit:"percentage",align:"end"}}]:[];return ge(ge(ge(ge(ge(ge({theme:ge({baseTheme:typeof de=="string"?de:"ag-financial"},En(typeof de=="object"?de:null,{overrides:{common:{title:{padding:4},padding:{top:6,right:8,bottom:5},chartToolbar:{enabled:te}}}})),animation:{enabled:!1},legend:{enabled:!1},series:[...ve,...Se],seriesArea:{clip:!0},axes:[{type:"number",position:"right",keys:[y,R,u,k],interval:{maxSpacing:(at=fc(de,vt=>{var wt,Ct,yt,Et,At;return(At=(Et=(yt=(Ct=(wt=vt.overrides)==null?void 0:wt.common)==null?void 0:Ct.axes)==null?void 0:yt.number)==null?void 0:Et.interval)==null?void 0:At.maxSpacing}))!=null?at:45},label:{format:(ht=fc(de,vt=>{var wt,Ct,yt,Et,At;return(At=(Et=(yt=(Ct=(wt=vt.overrides)==null?void 0:wt.common)==null?void 0:Ct.axes)==null?void 0:yt.number)==null?void 0:Et.label)==null?void 0:At.format}))!=null?ht:".2f"},crosshair:{enabled:!0,snap:!1},layoutConstraints:{stacked:!1,width:100,unit:"percentage",align:"start"}},...$e,{type:"ordinal-time",position:"bottom",line:{enabled:!1},label:{enabled:!0},crosshair:{enabled:!0}}],tooltip:{enabled:!1},data:pe},Te),De),ze),qe),et),Ce)}function V$(e,t,n,a,u,y){var F;if(!u)return[];let k=fc(e,_=>{var V,K,q;return(q=(K=(V=_.overrides)==null?void 0:V.bar)==null?void 0:K.series)==null?void 0:q.fill}),R=k?{fill:k}:{itemStyler({datum:_}){let{up:V,down:K}=t().palette;return{fill:_[n]<_[a]?V==null?void 0:V.fill:K==null?void 0:K.fill}}};return[He(ge({type:"bar",xKey:"date",yKey:y,tooltip:{enabled:!1},highlight:{enabled:!1},fillOpacity:(F=fc(e,_=>{var V,K,q;return(q=(K=(V=_.overrides)==null?void 0:V.bar)==null?void 0:K.series)==null?void 0:q.fillOpacity}))!=null?F:.5},R),{focusPriority:1,fastDataProcessing:!0})]}function j$(e,t,n,a,u,y,k){let R={xKey:n,openKey:y,closeKey:k,highKey:a,lowKey:u},F={xKey:n,yKey:k},_={pickOutsideVisibleMinorAxis:!0};switch(t!=null?t:"candlestick"){case"ohlc":return H$(_,R);case"line":return W$(_,e,F);case"step-line":return U$(_,e,F);case"hlc":return K$(_,e,F,R);case"high-low":return q$(_,e,R);case"candlestick":return aj(_,R);case"hollow-candlestick":return Y$(_,e,R);default:return hi.warnOnce(`unknown chart type: ${t}; expected one of: ${rj.join(", ")}`),aj(_,R)}}function H$(e,t){return[ge(ge({type:"ohlc",focusPriority:0},e),t)]}function W$(e,t,n){var a,u;return[He(ge(ge({type:"line",focusPriority:0},e),n),{stroke:(a=fc(t,y=>{var k,R,F;return(F=(R=(k=y.overrides)==null?void 0:k.line)==null?void 0:R.series)==null?void 0:F.stroke}))!=null?a:aw,marker:(u=fc(t,y=>{var k,R,F;return(F=(R=(k=y.overrides)==null?void 0:k.line)==null?void 0:R.series)==null?void 0:F.marker}))!=null?u:{enabled:!1}})]}function U$(e,t,n){var a,u,y;return[He(ge(ge({type:"line",focusPriority:0},e),n),{stroke:(a=fc(t,k=>{var R,F,_;return(_=(F=(R=k.overrides)==null?void 0:R.line)==null?void 0:F.series)==null?void 0:_.stroke}))!=null?a:aw,interpolation:(u=fc(t,k=>{var R,F,_;return(_=(F=(R=k.overrides)==null?void 0:R.line)==null?void 0:F.series)==null?void 0:_.interpolation}))!=null?u:{type:"step"},marker:(y=fc(t,k=>{var R,F,_;return(_=(F=(R=k.overrides)==null?void 0:R.line)==null?void 0:F.series)==null?void 0:_.marker}))!=null?y:{enabled:!1}})]}function K$(e,t,n,{xKey:a,highKey:u,closeKey:y,lowKey:k}){var F,_,V,K,q,$,te,se,de,pe,Ce;let R=oj(xF,t);return[He(ge({type:xF,focusPriority:0},e),{xKey:a,yHighKey:u,yLowKey:y,fill:(F=R.fill)!=null?F:G1,stroke:(_=R.stroke)!=null?_:B1,fillOpacity:(V=fc(t,Se=>{var ve,ke,De;return(De=(ke=(ve=Se.overrides)==null?void 0:ve["range-area"])==null?void 0:ke.series)==null?void 0:De.fillOpacity}))!=null?V:.3,strokeWidth:(K=fc(t,Se=>{var ve,ke,De;return(De=(ke=(ve=Se.overrides)==null?void 0:ve["range-area"])==null?void 0:ke.series)==null?void 0:De.strokeWidth}))!=null?K:2}),He(ge({type:xF,focusPriority:0},e),{xKey:a,yHighKey:y,yLowKey:k,fill:(q=R.fill)!=null?q:nw,stroke:($=R.stroke)!=null?$:iw,fillOpacity:(te=fc(t,Se=>{var ve,ke,De;return(De=(ke=(ve=Se.overrides)==null?void 0:ve["range-area"])==null?void 0:ke.series)==null?void 0:De.fillOpacity}))!=null?te:.3,strokeWidth:(se=fc(t,Se=>{var ve,ke,De;return(De=(ke=(ve=Se.overrides)==null?void 0:ve["range-area"])==null?void 0:ke.series)==null?void 0:De.strokeWidth}))!=null?se:2}),He(ge(ge({type:"line"},e),n),{stroke:(de=fc(t,Se=>{var ve,ke,De;return(De=(ke=(ve=Se.overrides)==null?void 0:ve.line)==null?void 0:ke.series)==null?void 0:De.stroke}))!=null?de:j1,strokeWidth:(pe=fc(t,Se=>{var ve,ke,De;return(De=(ke=(ve=Se.overrides)==null?void 0:ve.line)==null?void 0:ke.series)==null?void 0:De.strokeWidth}))!=null?pe:2,marker:(Ce=fc(t,Se=>{var ve,ke,De;return(De=(ke=(ve=Se.overrides)==null?void 0:ve.line)==null?void 0:ke.series)==null?void 0:De.marker}))!=null?Ce:{enabled:!1}})]}function q$(e,t,{xKey:n,highKey:a,lowKey:u}){var k,R;let y=oj("range-bar",t);return[He(ge({type:"range-bar"},e),{xKey:n,yHighKey:a,yLowKey:u,fill:(k=y.fill)!=null?k:V1,stroke:(R=y.stroke)!=null?R:aw,tooltip:{range:"nearest"},focusPriority:0,fastDataProcessing:!0})]}function aj(e,t){return[ge(ge({type:"candlestick",focusPriority:0},e),t)]}function Y$(e,t,n){var u,y;let a=fc(t,k=>{var R,F,_;return(_=(F=(R=k.overrides)==null?void 0:R.candlestick)==null?void 0:F.series)==null?void 0:_.item});return[He(ge(ge({type:"candlestick",focusPriority:0},e),n),{item:{up:{fill:(y=(u=a==null?void 0:a.up)==null?void 0:u.fill)!=null?y:"transparent"}}})]}function oj(e,t){let n=fc(t,u=>{var y,k,R;return(R=(k=(y=u.overrides)==null?void 0:y[e])==null?void 0:k.series)==null?void 0:R.fill}),a=fc(t,u=>{var y,k,R;return(R=(k=(y=u.overrides)==null?void 0:y[e])==null?void 0:k.series)==null?void 0:R.stroke});return{fill:n,stroke:a}}var rj,xF,X$=A({"packages/ag-charts-community/src/api/preset/priceVolumePreset.ts"(){"use strict";_o(),on(),ra(),bn(),rj=["ohlc","line","step-line","hlc","high-low","candlestick","hollow-candlestick"],xF="range-area"}});function Z$(e,t){return typeof e=="string"?He(ge({},t),{baseTheme:e}):e!=null?He(ge({},e),{baseTheme:k3(e.baseTheme,t)}):t}function sj(e){if(Array.isArray(e)&&e.length!==0){let t=e[0];if(typeof t=="number")return{data:e.map((a,u)=>({x:u,y:a})),series:[{xKey:"x",yKey:"y"}],datumKey:"y"};if(Array.isArray(t))return{data:e.map(a=>({x:a[0],y:a[1],datum:a})),series:[{xKey:"x",yKey:"y"}],datumKey:"datum"}}return{data:e}}function $$(e,t){switch(e==null?void 0:e.type){case"number":{let{type:n,visible:a,stroke:u,strokeWidth:y,min:k,max:R,reverse:F}=e;return Hp(e,{type:n,reverse:F,min:k,max:R})}case"time":{let{type:n,visible:a,stroke:u,strokeWidth:y,min:k,max:R,reverse:F}=e;return Hp(e,{type:n,reverse:F,min:k,max:R})}case"category":{let{type:n,visible:a,stroke:u,strokeWidth:y,paddingInner:k,paddingOuter:R,reverse:F}=e;return Hp(e,{type:n,reverse:F,paddingInner:k,paddingOuter:R})}}return{type:t}}function Q$(e,t,n){var u,y,k,R;let a={};return(e==null?void 0:e.stroke)!=null&&(a.style=[{stroke:e==null?void 0:e.stroke}],(u=a.enabled)!=null||(a.enabled=!0)),(e==null?void 0:e.strokeWidth)!=null&&(a.width=e==null?void 0:e.strokeWidth,(y=a.enabled)!=null||(a.enabled=!0)),n.type==="bar"&&n.direction!=="horizontal"&&((k=a.enabled)!=null||(a.enabled=!0)),(e==null?void 0:e.visible)!=null&&(a.enabled=e.visible),(R=a.enabled)!=null||(a.enabled=t),a}function J$(e){let at=e,{background:t,container:n,height:a,listeners:u,locale:y,minHeight:k,minWidth:R,padding:F,width:_,theme:V,data:K,crosshair:q,axis:$,min:te,max:se,tooltip:de,context:pe}=at,Ce=wi(at,["background","container","height","listeners","locale","minHeight","minWidth","padding","width","theme","data","crosshair","axis","min","max","tooltip","context"]),Se=Hp(e,{background:t,container:n,height:a,listeners:u,locale:y,minHeight:k,minWidth:R,padding:F,width:_,tooltip:Wp,context:Wp,data:Wp,crosshair:Wp,axis:Wp,min:Wp,max:Wp,theme:Wp}),{data:ve,series:[ke]=[],datumKey:De}=sj(K),Te=Ce;ke!=null&&Object.assign(Te,ke),Te.tooltip=He(ge({},de),{renderer:dj(pe,de,De)}),Se.theme=k3(V,cj),Se.data=ve,Se.series=[Te];let ze=Te.type!=="bar"||Te.direction!=="horizontal",[qe,et]=ze?["bottom","left"]:["left","bottom"],$e=ge(He(ge({},$$($,"category")),{position:qe}),Hp(e,{crosshair:q})),lt=ge({type:"number",gridLine:Q$($,!1,e),position:et},Hp(e,{min:te,max:se}));return Se.axes=ze?[lt,$e]:[$e,lt],Se}var M3,MF,kF,AF,lj,cj,k3,dj,eQ=A({"packages/ag-charts-community/src/api/preset/sparkline.ts"(){"use strict";Fa(),_o(),Ek(),ij(),M3={title:{enabled:!1},label:{enabled:!1},line:{enabled:!1},gridLine:{enabled:!1},crosshair:{enabled:!1,stroke:W1,lineDash:[0],label:{enabled:!1}}},MF=He(ge({},M3),{nice:!1}),kF={position:{type:"sparkline"}},AF={style:[{stroke:Gp}],width:2},lj={number:{gridLine:AF},time:{gridLine:AF},category:{gridLine:AF}},cj={overrides:{common:{animation:{enabled:!1},contextMenu:{enabled:!1},keyboard:{enabled:!1},background:{visible:!1},padding:{top:0,right:0,bottom:0,left:0},axes:{number:He(ge({},MF),{interval:{values:[0]}}),log:ge({},MF),time:ge({},MF),category:ge({},M3)}},bar:{series:{crisp:!1,label:{placement:"inside-end",padding:4},sparklineMode:!0},tooltip:He(ge({},kF),{range:"nearest"}),axes:lj},line:{seriesArea:{padding:{top:2,right:2,bottom:2,left:2}},series:{sparklineMode:!0,strokeWidth:1,marker:{enabled:!1,size:3},tooltip:kF}},area:{seriesArea:{padding:{top:1,right:0,bottom:1,left:0}},series:{strokeWidth:1,fillOpacity:.4,tooltip:kF}}}},k3=tl(Z$),dj=tl((e,t,n)=>a=>{var V,K;let u=a.datum[a.xKey],y=a.datum[a.yKey],k=n!=null?a.datum[n]:a.datum,R=(V=t==null?void 0:t.renderer)==null?void 0:V.call(t,{context:e,datum:k,xValue:u,yValue:y});if(typeof R=="string")return R;let F=R==null?void 0:R.title,_=R==null?void 0:R.content;return F!=null&&_!=null?{heading:F,title:void 0,data:[{label:void 0,value:_}]}:{heading:(K=F!=null?F:_)!=null?K:y.toFixed(2),title:void 0,data:[]}})}}),uj,hj,tQ=A({"packages/ag-charts-community/src/api/preset/presets.ts"(){"use strict";B$(),X$(),eQ(),uj={"price-volume":G$,gauge:z$,sparkline:J$},hj={sparkline:sj}}});function gj(e,t){var k,R,F,_;let n=[],a=Dp(e),u=Cg(e),y=u?Xa.get(u):"unknown";for(let V of yr)if(!(y!=="unknown"&&!V.chartTypes.includes(y))){if(V.type==="root"||V.type==="legend"){let K=e[V.optionsKey];if(K==null)continue;V.optionsInnerKey?K[V.optionsInnerKey]&&(n.push(`${V.optionsKey}.${V.optionsInnerKey}`),delete K[V.optionsInnerKey]):(n.push(V.optionsKey),delete e[V.optionsKey])}else if(V.type==="axis"){if(!("axes"in e)||!((k=e.axes)!=null&&k.some(K=>K.type===V.identifier)))continue;n.push(`axis[type=${V.identifier}]`),e.axes=e.axes.filter(K=>K.type!==V.identifier)}else if(V.type==="axis-option"){if(!("axes"in e)||!((R=e.axes)!=null&&R.some(K=>K[V.optionsKey])))continue;n.push(`axis.${V.optionsKey}`),e.axes.forEach(K=>{K[V.optionsKey]&&delete K[V.optionsKey]})}else if(V.type==="series"){if(V.community||!((F=e.series)!=null&&F.some(K=>K.type===V.identifier)))continue;n.push(`series[type=${V.identifier}]`),e.series=e.series.filter(K=>K.type!==V.identifier)}else if(V.type==="series-option"){if(!((_=e.series)!=null&&_.some(K=>K[V.optionsKey])))continue;n.push(`series.${V.optionsKey}`),e.series.forEach(K=>{K[V.optionsKey]&&delete K[V.optionsKey]})}}if(n.length&&!t){a&&(n=["AgCharts.createGauge"]);let V="ag-charts-enterprise",K="https://ag-grid.com/charts/javascript/installation/";e.mode==="integrated"&&(V="ag-grid-charts-enterprise' or 'ag-grid-enterprise/charts-enterprise",K="https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/"),hi.warnOnce([`unable to use these enterprise features as '${V}' has not been loaded:`,"",...n,"",`See: ${K}`].join(`
`))}}function iQ(e){let t="mode"in e&&e.mode==="integrated";for(let n of ph.byType("root","legend")){let a=e[n.optionsKey],u=a!=null&&a.enabled===!1,y=!("removable"in n)||n.removable===!0||n.removable==="standalone-only"&&!t;u&&y&&delete e[n.optionsKey]}}var nQ=A({"packages/ag-charts-community/src/chart/factory/processEnterpriseOptions.ts"(){"use strict";mh(),on(),lf(),yg(),vg()}});function aQ(e,t,n){let{errors:a}=mj(e,t,n);for(let{message:u}of a)hi.warn(u);return a.length===0}function pj(e,t,n){let a=Qt(n)?n:n[JL],u=a?`; expecting ${a}`:"";return`${e?`Option \`${e}\``:"Value"} cannot be set to \`${ZT(t)}\`${u}, ignoring.`}function mj(e,t,n=""){if(!ur(e))return{valid:null,errors:[{path:n,value:e,message:pj(n,e,"an object")}]};let a=new Set(Object.keys(e)),u=[],y={};function k(R){return ja(t)?`${n}[${R}]`:n?`${n}.${R}`:R}for(let[R,F]of Object.entries(t)){a.delete(R);let _=e[R];if(!(!F[fj]&&typeof _=="undefined"))if(Si(F))F(_)?y[R]=_:u.push({key:R,path:n,value:_,message:pj(k(R),_,F)});else{let V=mj(_,F,k(R));y[R]=V.valid,u.push(...V.errors)}}for(let R of a)u.push({key:R,path:n,unknown:!0,message:`Unknown option \`${k(R)}\`, ignoring.`});return{valid:y,errors:u}}function sC(e,t){return Object.assign(n=>e(n),{[JL]:t})}var JL,fj,vj,oQ,rQ,sQ,lQ,A3,lC,yj,bj,cQ,dQ,D3,uQ=A({"packages/ag-charts-community/src/util/validate.ts"(){"use strict";on(),$T(),bn(),JL=Symbol("description"),fj=Symbol("required"),vj=(...e)=>sC(t=>e.some(n=>n(t)),e.map(t=>t[JL]).filter(Boolean).join(" or ")),oQ=sC(ja,"an array"),rQ=sC(Xd,"a boolean"),sQ=sC(Si,"a function"),lQ=sC(pa,"a number"),A3=sC(ur,"an object"),lC=sC(Qt,"a string"),yj=(e,t=!0)=>sC(n=>pa(n)&&(n>e||t&&n===e),`a number greater than ${t?"or equal to ":""}${e}`),bj=(e,t)=>sC(n=>pa(n)&&n>=e&&n<=t,`a number between ${e} and ${t} inclusive`),cQ=yj(0),dQ=bj(0,1),D3=(e,t)=>sC(n=>ja(n)&&n.every(e),t!=null?t:`${e[JL]} array`)}});function E3(e){return e!=null&&e.up||e!=null&&e.down||e!=null&&e.neutral?"user-full":e!=null&&e.fills||e!=null&&e.strokes?"user-indexed":"inbuilt"}var Cj=A({"packages/ag-charts-community/src/module/coreModulesTypes.ts"(){"use strict"}});function Sj(e){return wj[e]===!0}var e2,DF,wj,xj,Up,cC,lw=A({"packages/ag-charts-community/src/chart/themes/chartTheme.ts"(){"use strict";Cj(),wF(),nc(),ra(),bn(),af(),yg(),_v(),yS(),Mf(),YL(),_o(),e2="white",DF={get cartesian(){return{seriesTypes:Xa.cartesianTypes,commonOptions:["zoom","navigator"]}},get polar(){return{seriesTypes:Xa.polarTypes,commonOptions:[]}},get hierarchy(){return{seriesTypes:Xa.hierarchyTypes,commonOptions:[]}},get topology(){return{seriesTypes:Xa.topologyTypes,commonOptions:[]}},get"flow-proportion"(){return{seriesTypes:Xa.flowProportionTypes,commonOptions:[]}},get standalone(){return{seriesTypes:Xa.standaloneTypes,commonOptions:[]}},get gauge(){return{seriesTypes:Xa.gaugeTypes,commonOptions:[]}}},wj={"radial-gauge":!0,"linear-gauge":!0},xj=Object.values(DF).reduce((e,{commonOptions:t})=>e.concat(t),[]),Up=class d6{static getAxisDefaults(t){return En(t,{title:{enabled:!1,text:"Axis Title",spacing:25,fontWeight:"normal",fontSize:13,fontFamily:$a,color:mo},label:{fontSize:12,fontFamily:$a,spacing:11,color:mo,avoidCollisions:!0},line:{enabled:!0,width:1,stroke:hc},tick:{enabled:!1,width:1,stroke:hc},gridLine:{enabled:!0,style:[{stroke:Gp,lineDash:[]}]},crossLines:{enabled:!1,fill:iC,stroke:iC,fillOpacity:.1,strokeWidth:1,label:{enabled:!1,fontSize:12,fontFamily:$a,padding:5,color:mo}},crosshair:{enabled:!0}})}getChartDefaults(){return{minHeight:300,minWidth:300,background:{visible:!0,fill:Fk},padding:{top:Ag,right:Ag,bottom:Ag,left:Ag},keyboard:{enabled:!0},title:{enabled:!1,text:"Title",fontWeight:"normal",fontSize:17,fontFamily:$a,color:mo,wrapping:"hyphenate",layoutStyle:Jv,textAlign:ey},subtitle:{enabled:!1,text:"Subtitle",spacing:20,fontSize:13,fontFamily:$a,color:nl,wrapping:"hyphenate",layoutStyle:Jv,textAlign:ey},footnote:{enabled:!1,text:"Footnote",spacing:20,fontSize:13,fontFamily:$a,color:"rgb(140, 140, 140)",wrapping:"hyphenate",layoutStyle:Jv,textAlign:ey},legend:{position:"bottom",spacing:30,listeners:{},toggleSeries:!0,item:{paddingX:16,paddingY:8,marker:{size:15,padding:8},showSeriesStroke:!0,label:{color:mo,fontSize:12,fontFamily:$a}},reverseOrder:!1,pagination:{marker:{size:12},activeStyle:{fill:mo},inactiveStyle:{fill:nl},highlightStyle:{fill:mo},label:{color:mo}}},tooltip:{enabled:!0,darkTheme:JS,delay:0},overlays:{darkTheme:JS},listeners:{}}}constructor(t={}){let{overrides:n,palette:a}=Us(t),u=this.createChartConfigPerChartType(this.getDefaults()),y={};n&&this.mergeOverrides(u,y,n);let _=this.getDefaultColors(),{fills:k,strokes:R}=_,F=wi(_,["fills","strokes"]);this.palette=Oy(En(a,ge({fills:Object.values(k),strokes:Object.values(R)},F))),this.paletteType=E3(a),this.config=Oy(this.templateTheme(u)),this.presets=Oy(y)}mergeOverrides(t,n,a){for(let{seriesTypes:u,commonOptions:y}of Object.values(DF)){let k=ge({},a.common);for(let R of xj)y.includes(R)||delete k[R];if(k)for(let R of u){let F=R;Sj(F)||(t[F]=En(k,t[F]))}}Xa.seriesTypes.forEach(u=>{let y=u,k=a[y];Sj(y)?n[y]=k:t[y]=En(k,t[y])})}createChartConfigPerChartType(t){var n;for(let[a,{seriesTypes:u}]of Object.entries(DF)){let y=Nv.get(a);for(let k of u)(n=t[k])!=null||(t[k]=Us(y))}return t}getDefaults(){let t=(n,a)=>{var k;let u={},y=ge(ge(ge({axes:{}},rf.getThemeTemplates()),this.getChartDefaults()),Nv.get(n));for(let R of a){u[R]=En(Oo.getThemeTemplate(R),(k=u[R])!=null?k:Us(y));let{axes:F}=u[R];for(let _ of gu.keys())F[_]=En(F[_],gu.getThemeTemplate(_),d6.cartesianAxisDefault[_])}return u};return En(t("cartesian",Xa.cartesianTypes),t("polar",Xa.polarTypes),t("hierarchy",Xa.hierarchyTypes),t("topology",Xa.topologyTypes),t("flow-proportion",Xa.flowProportionTypes),t("standalone",Xa.standaloneTypes),t("gauge",Xa.gaugeTypes))}static applyTemplateTheme(t,n,a){if(ja(t))for(let u=0;u<t.length;u++){let y=t[u];typeof y=="symbol"&&(a!=null&&a.has(y))&&(t[u]=a.get(y))}else for(let[u,y]of Object.entries(t))typeof y=="symbol"&&(a!=null&&a.has(y))&&(t[u]=a.get(y))}templateTheme(t,n=!0){let a=n?Us(t):t,u=this.getTemplateParameters();return Jh(a,d6.applyTemplateTheme,void 0,void 0,u),a}getDefaultColors(){return{fills:zl,strokes:ny,up:{fill:zl.GREEN,stroke:ny.GREEN},down:{fill:zl.RED,stroke:ny.RED},neutral:{fill:zl.GRAY,stroke:ny.GRAY},altUp:{fill:zl.BLUE,stroke:ny.BLUE},altDown:{fill:zl.ORANGE,stroke:ny.ORANGE},altNeutral:{fill:zl.GRAY,stroke:ny.GRAY}}}getTemplateParameters(){var u,y,k,R,F,_,V,K,q,$,te,se,de,pe,Ce,Se,ve,ke,De,Te,ze,qe,et,$e;let{isEnterprise:t}=ku,n=new Map;n.set(JS,!1),n.set(N1,t),n.set(ew,!t),n.set($a,"Verdana, sans-serif"),n.set(mo,"#464646"),n.set(z1,"#fff"),n.set(nl,"#8c8c8c"),n.set(Gp,"#e0eaf1"),n.set(hc,"#c3c3c3"),n.set(iC,"#464646"),n.set(nC,"#d9d9d9"),n.set(kf,"#ddd"),n.set(Bp,e2),n.set(Fk,e2),n.set(tw,"black"),n.set(Qv,"#00000080"),n.set(Od,[zl.ORANGE,zl.YELLOW,zl.GREEN]),n.set(W1,"#aaa"),n.set(Dh,[zl.GREEN,zl.YELLOW,zl.RED]),n.set(Vp,["#5090dc","#629be0","#73a6e3","#85b1e7","#96bcea","#a8c8ee","#b9d3f1","#cbdef5"]),n.set(Ag,20),n.set(Jv,"block"),n.set(ey,"center"),n.set(U1,["#fff","#e0e5ea","#c1ccd5","#a3b4c1","#859cad"]),n.set(K1,["#fff","#c5cbd1","#a4b1bd","#8498a9","#648096"]),n.set(q1,["#797b86","#e24c4a","#f49d2d","#65ab58","#409682","#4db9d2","#5090dc","#3068f9","#e24c4a","#913aac","#d93e64"]),n.set(H1,e2),n.set(gc,zl.BLUE),n.set(ty,zl.BLUE),n.set(Fd,zl.BLUE),n.set(Dg,e2),n.set(Y1,"#fafafa"),n.set(ow,"#ddd"),n.set(X1,"#000"),n.set(Z1,"#181d1f"),n.set(uR,"#e35c5c"),n.set(hR,"#e35c5c"),n.set($1,"#fafafa"),n.set(Q1,"#ddd"),n.set(_k,"#000"),n.set(iy,"top"),n.set(jp,!1);let a=this.getDefaultColors();return n.set(B1,(y=(u=this.palette.up)==null?void 0:u.stroke)!=null?y:a.up.stroke),n.set(G1,(R=(k=this.palette.up)==null?void 0:k.fill)!=null?R:a.up.fill),n.set(iw,(_=(F=this.palette.down)==null?void 0:F.stroke)!=null?_:a.down.stroke),n.set(nw,(K=(V=this.palette.down)==null?void 0:V.fill)!=null?K:a.down.fill),n.set(aw,($=(q=this.palette.neutral)==null?void 0:q.stroke)!=null?$:a.neutral.stroke),n.set(V1,(se=(te=this.palette.neutral)==null?void 0:te.fill)!=null?se:a.neutral.fill),n.set(rR,(pe=(de=this.palette.altUp)==null?void 0:de.stroke)!=null?pe:a.up.stroke),n.set(lR,(Se=(Ce=this.palette.altUp)==null?void 0:Ce.fill)!=null?Se:a.up.fill),n.set(sR,(ke=(ve=this.palette.altDown)==null?void 0:ve.stroke)!=null?ke:a.down.stroke),n.set(cR,(Te=(De=this.palette.altDown)==null?void 0:De.fill)!=null?Te:a.down.fill),n.set(dR,(qe=(ze=this.palette.altNeutral)==null?void 0:ze.fill)!=null?qe:a.altNeutral.fill),n.set(j1,($e=(et=this.palette.altNeutral)==null?void 0:et.stroke)!=null?$e:a.altNeutral.stroke),n}},Up.cartesianAxisDefault={number:Up.getAxisDefaults({line:{enabled:!1}}),log:Up.getAxisDefaults({base:10,line:{enabled:!1},interval:{minSpacing:NaN}}),category:Up.getAxisDefaults({groupPaddingInner:.1,label:{autoRotate:!0},gridLine:{enabled:jp},crosshair:{enabled:!1}}),["grouped-category"]:Up.getAxisDefaults({tick:{enabled:!0,stroke:nC},label:{spacing:10,rotation:270},paddingInner:.4,groupPaddingInner:.2,crosshair:{enabled:!1}}),time:Up.getAxisDefaults({gridLine:{enabled:jp}}),["ordinal-time"]:Up.getAxisDefaults({groupPaddingInner:0,label:{autoRotate:!1},gridLine:{enabled:jp}}),["angle-category"]:Up.getAxisDefaults({label:{spacing:5},gridLine:{enabled:jp}}),["angle-number"]:Up.getAxisDefaults({label:{spacing:5},gridLine:{enabled:jp}}),["radius-category"]:Up.getAxisDefaults({line:{enabled:!1}}),["radius-number"]:Up.getAxisDefaults({line:{enabled:!1}})},cC=Up}}),t2,Au,jk,sE,vR=A({"packages/ag-charts-community/src/chart/themes/darkTheme.ts"(){"use strict";lw(),_o(),t2="#192232",Au={BLUE:"#5090dc",ORANGE:"#ffa03a",GREEN:"#459d55",CYAN:"#34bfe1",YELLOW:"#e1cc00",VIOLET:"#9669cb",GRAY:"#b5b5b5",MAGENTA:"#bd5aa7",BROWN:"#8a6224",RED:"#ef5452"},jk={BLUE:"#74a8e6",ORANGE:"#ffbe70",GREEN:"#6cb176",CYAN:"#75d4ef",YELLOW:"#f6e559",VIOLET:"#aa86d8",GRAY:"#a1a1a1",MAGENTA:"#ce7ab9",BROWN:"#997b52",RED:"#ff7872"},sE=class extends cC{getDefaultColors(){return{fills:Au,strokes:jk,up:{fill:Au.GREEN,stroke:jk.GREEN},down:{fill:Au.RED,stroke:jk.RED},neutral:{fill:Au.GRAY,stroke:jk.GRAY},altUp:{fill:Au.BLUE,stroke:jk.BLUE},altDown:{fill:Au.ORANGE,stroke:jk.ORANGE},altNeutral:{fill:Au.GRAY,stroke:jk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(JS,!0),e.set(H1,t2),e.set(kf,"#4b525d"),e.set(mo,"#fff"),e.set(nl,"#7d91a0"),e.set(Gp,"#545a6e"),e.set(iC,"#fff"),e.set(nC,"#7f8389"),e.set(Od,[Au.ORANGE,Au.YELLOW,Au.GREEN]),e.set(Dh,[Au.GREEN,Au.YELLOW,Au.RED]),e.set(Vp,["#5090dc","#4882c6","#4073b0","#38659a","#305684","#28486e","#203a58","#182b42"]),e.set(U1,["#192834","#253746","#324859","#3f596c","#4d6a80"]),e.set(K1,["#192834","#3b5164","#496275","#577287","#668399"]),e.set(Fk,t2),e.set(tw,"white"),e.set(Bp,t2),e.set(gc,Au.BLUE),e.set(ty,"#fff"),e.set(Fd,Au.BLUE),e.set(Dg,t2),e.set(Y1,"#28313e"),e.set(ow,"#4b525d"),e.set(X1,"#fff"),e.set(Z1,"#fff"),e.set($1,"#28313e"),e.set(Q1,"#4b525d"),e.set(_k,"#fff"),e}constructor(e){super(e)}}}}),Kp,Hk,Mj,hQ=A({"packages/ag-charts-community/src/chart/themes/financialDark.ts"(){"use strict";vR(),_o(),Kp={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#A9A9A9"},Hk={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#909090"},Mj=class extends sE{getDefaultColors(){return{fills:ge({},Kp),strokes:ge({},Hk),up:{fill:Kp.GREEN,stroke:Hk.GREEN},down:{fill:Kp.RED,stroke:Hk.RED},neutral:{fill:Kp.BLUE,stroke:Hk.BLUE},altUp:{fill:Kp.GREEN,stroke:Hk.GREEN},altDown:{fill:Kp.RED,stroke:Hk.RED},altNeutral:{fill:Kp.GRAY,stroke:Hk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(Od,[Kp.GREEN,Kp.BLUE,Kp.RED]),e.set(gc,Kp.BLUE),e.set(Fd,Kp.BLUE),e.set(Gp,"#343A4E"),e.set(Ag,0),e.set(Jv,"overlay"),e.set(ey,"left"),e.set(iy,"bottom"),e.set(jp,!0),e}}}}),qp,Wk,kj,gQ=A({"packages/ag-charts-community/src/chart/themes/financialLight.ts"(){"use strict";lw(),_o(),qp={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#A9A9A9"},Wk={GREEN:"#089981",RED:"#F23645",BLUE:"#5090dc",GRAY:"#909090"},kj=class extends cC{getDefaultColors(){return{fills:ge({},qp),strokes:ge({},Wk),up:{fill:qp.GREEN,stroke:Wk.GREEN},down:{fill:qp.RED,stroke:Wk.RED},neutral:{fill:qp.BLUE,stroke:Wk.BLUE},altUp:{fill:qp.GREEN,stroke:Wk.GREEN},altDown:{fill:qp.RED,stroke:Wk.RED},altNeutral:{fill:qp.GRAY,stroke:Wk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(Od,[qp.GREEN,qp.BLUE,qp.RED]),e.set(gc,qp.BLUE),e.set(Fd,qp.BLUE),e.set(Gp,"#F2F3F3"),e.set(Ag,0),e.set(Jv,"overlay"),e.set(ey,"left"),e.set(iy,"bottom"),e.set(jp,!0),e}}}}),Du,Uk,Aj,pQ=A({"packages/ag-charts-community/src/chart/themes/materialDark.ts"(){"use strict";vR(),_o(),Du={BLUE:"#2196F3",ORANGE:"#FF9800",GREEN:"#4CAF50",CYAN:"#00BCD4",YELLOW:"#FFEB3B",VIOLET:"#7E57C2",GRAY:"#9E9E9E",MAGENTA:"#F06292",BROWN:"#795548",RED:"#F44336"},Uk={BLUE:"#90CAF9",ORANGE:"#FFCC80",GREEN:"#A5D6A7",CYAN:"#80DEEA",YELLOW:"#FFF9C4",VIOLET:"#B39DDB",GRAY:"#E0E0E0",MAGENTA:"#F48FB1",BROWN:"#A1887F",RED:"#EF9A9A"},Aj=class extends sE{getDefaultColors(){return{fills:Du,strokes:Uk,up:{fill:Du.GREEN,stroke:Uk.GREEN},down:{fill:Du.RED,stroke:Uk.RED},neutral:{fill:Du.GRAY,stroke:Uk.GRAY},altUp:{fill:Du.BLUE,stroke:Uk.BLUE},altDown:{fill:Du.RED,stroke:Uk.RED},altNeutral:{fill:Du.GRAY,stroke:Uk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(Od,[Du.ORANGE,Du.YELLOW,Du.GREEN]),e.set(Vp,["#2196f3","#208FEC","#1E88E5","#1C7FDC","#1976d2","#176EC9","#1565c0"]),e.set(Dh,[Du.GREEN,Du.YELLOW,Du.RED]),e.set(gc,Du.BLUE),e.set(Fd,Du.BLUE),e}}}}),Eu,Kk,Dj,mQ=A({"packages/ag-charts-community/src/chart/themes/materialLight.ts"(){"use strict";lw(),_o(),Eu={BLUE:"#2196F3",ORANGE:"#FF9800",GREEN:"#4CAF50",CYAN:"#00BCD4",YELLOW:"#FFEB3B",VIOLET:"#7E57C2",GRAY:"#9E9E9E",MAGENTA:"#F06292",BROWN:"#795548",RED:"#F44336"},Kk={BLUE:"#1565C0",ORANGE:"#E65100",GREEN:"#2E7D32",CYAN:"#00838F",YELLOW:"#F9A825",VIOLET:"#4527A0",GRAY:"#616161",MAGENTA:"#C2185B",BROWN:"#4E342E",RED:"#B71C1C"},Dj=class extends cC{getDefaultColors(){return{fills:Eu,strokes:Kk,up:{fill:Eu.GREEN,stroke:Kk.GREEN},down:{fill:Eu.RED,stroke:Kk.RED},neutral:{fill:Eu.GRAY,stroke:Kk.GRAY},altUp:{fill:Eu.BLUE,stroke:Kk.BLUE},altDown:{fill:Eu.RED,stroke:Kk.RED},altNeutral:{fill:Eu.GRAY,stroke:Kk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(Od,[Eu.ORANGE,Eu.YELLOW,Eu.GREEN]),e.set(Vp,["#2196f3","#329EF4","#42a5f5","#53ADF6","#64b5f6","#7AC0F8","#90caf9"]),e.set(Dh,[Eu.GREEN,Eu.YELLOW,Eu.RED]),e.set(gc,Eu.BLUE),e.set(Fd,Eu.BLUE),e}}}}),As,qk,Ej,fQ=A({"packages/ag-charts-community/src/chart/themes/polychromaDark.ts"(){"use strict";vR(),_o(),As={BLUE:"#436ff4",PURPLE:"#9a7bff",MAGENTA:"#d165d2",PINK:"#f0598b",RED:"#f47348",ORANGE:"#f2a602",YELLOW:"#e9e201",GREEN:"#21b448",CYAN:"#00b9a2",MODERATE_BLUE:"#00aee4",GRAY:"#bbbbbb"},qk={BLUE:"#6698ff",PURPLE:"#c0a3ff",MAGENTA:"#fc8dfc",PINK:"#ff82b1",RED:"#ff9b70",ORANGE:"#ffcf4e",YELLOW:"#ffff58",GREEN:"#58dd70",CYAN:"#51e2c9",MODERATE_BLUE:"#4fd7ff",GRAY:"#eeeeee"},Ej=class extends sE{getDefaultColors(){return{fills:As,strokes:qk,up:{fill:As.GREEN,stroke:qk.GREEN},down:{fill:As.RED,stroke:qk.RED},neutral:{fill:As.GRAY,stroke:qk.GRAY},altUp:{fill:As.BLUE,stroke:qk.BLUE},altDown:{fill:As.RED,stroke:qk.RED},altNeutral:{fill:As.GRAY,stroke:qk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(Od,[As.BLUE,As.RED]),e.set(Vp,[As.BLUE,As.PURPLE,As.MAGENTA,As.PINK,As.RED,As.ORANGE,As.YELLOW,As.GREEN]),e.set(Dh,[As.BLUE,As.RED]),e.set(gc,As.BLUE),e.set(Fd,As.BLUE),e}}}}),Ds,Yk,Ij,vQ=A({"packages/ag-charts-community/src/chart/themes/polychromaLight.ts"(){"use strict";lw(),_o(),Ds={BLUE:"#436ff4",PURPLE:"#9a7bff",MAGENTA:"#d165d2",PINK:"#f0598b",RED:"#f47348",ORANGE:"#f2a602",YELLOW:"#e9e201",GREEN:"#21b448",CYAN:"#00b9a2",MODERATE_BLUE:"#00aee4",GRAY:"#bbbbbb"},Yk={BLUE:"#2346c9",PURPLE:"#7653d4",MAGENTA:"#a73da9",PINK:"#c32d66",RED:"#c84b1c",ORANGE:"#c87f00",YELLOW:"#c1b900",GREEN:"#008c1c",CYAN:"#00927c",MODERATE_BLUE:"#0087bb",GRAY:"#888888"},Ij=class extends cC{getDefaultColors(){return{fills:Ds,strokes:Yk,up:{fill:Ds.GREEN,stroke:Yk.GREEN},down:{fill:Ds.RED,stroke:Yk.RED},neutral:{fill:Ds.GRAY,stroke:Yk.GRAY},altUp:{fill:Ds.BLUE,stroke:Yk.BLUE},altDown:{fill:Ds.RED,stroke:Yk.RED},altNeutral:{fill:Ds.GRAY,stroke:Yk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(Od,[Ds.BLUE,Ds.RED]),e.set(Vp,[Ds.BLUE,Ds.PURPLE,Ds.MAGENTA,Ds.PINK,Ds.RED,Ds.ORANGE,Ds.YELLOW,Ds.GREEN]),e.set(Dh,[Ds.BLUE,Ds.RED]),e.set(gc,Ds.BLUE),e.set(Fd,Ds.BLUE),e}}}}),zd,cw,Tj,yQ=A({"packages/ag-charts-community/src/chart/themes/sheetsDark.ts"(){"use strict";vR(),_o(),zd={BLUE:"#4472C4",ORANGE:"#ED7D31",GRAY:"#A5A5A5",YELLOW:"#FFC000",MODERATE_BLUE:"#5B9BD5",GREEN:"#70AD47",DARK_GRAY:"#7B7B7B",DARK_BLUE:"#264478",VERY_DARK_GRAY:"#636363",DARK_YELLOW:"#997300"},cw={BLUE:"#6899ee",ORANGE:"#ffa55d",GRAY:"#cdcdcd",YELLOW:"#ffea53",MODERATE_BLUE:"#82c3ff",GREEN:"#96d56f",DARK_GRAY:"#a1a1a1",DARK_BLUE:"#47689f",VERY_DARK_GRAY:"#878787",DARK_YELLOW:"#c0993d"},Tj=class extends sE{getDefaultColors(){return{fills:He(ge({},zd),{RED:zd.ORANGE}),strokes:He(ge({},cw),{RED:cw.ORANGE}),up:{fill:zd.GREEN,stroke:cw.GREEN},down:{fill:zd.ORANGE,stroke:cw.ORANGE},neutral:{fill:zd.GRAY,stroke:cw.GRAY},altUp:{fill:zd.BLUE,stroke:cw.BLUE},altDown:{fill:zd.ORANGE,stroke:cw.ORANGE},altNeutral:{fill:zd.GRAY,stroke:cw.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(Od,[zd.ORANGE,zd.YELLOW,zd.GREEN]),e.set(Dh,[zd.GREEN,zd.YELLOW,zd.ORANGE]),e.set(gc,zd.BLUE),e.set(Fd,zd.BLUE),e}}}}),Iu,dC,Rj,bQ=A({"packages/ag-charts-community/src/chart/themes/sheetsLight.ts"(){"use strict";lw(),_o(),Iu={BLUE:"#5281d5",ORANGE:"#ff8d44",GRAY:"#b5b5b5",YELLOW:"#ffd02f",MODERATE_BLUE:"#6aabe6",GREEN:"#7fbd57",DARK_GRAY:"#8a8a8a",DARK_BLUE:"#335287",VERY_DARK_GRAY:"#717171",DARK_YELLOW:"#a98220"},dC={BLUE:"#214d9b",ORANGE:"#c25600",GRAY:"#7f7f7f",YELLOW:"#d59800",MODERATE_BLUE:"#3575ac",GREEN:"#4b861a",DARK_GRAY:"#575757",DARK_BLUE:"#062253",VERY_DARK_GRAY:"#414141",DARK_YELLOW:"#734f00"},Rj=class extends cC{getDefaultColors(){return{fills:He(ge({},Iu),{RED:Iu.ORANGE}),strokes:He(ge({},dC),{RED:dC.ORANGE}),up:{fill:Iu.GREEN,stroke:dC.GREEN},down:{fill:Iu.ORANGE,stroke:dC.ORANGE},neutral:{fill:dC.GRAY,stroke:dC.GRAY},altUp:{fill:Iu.BLUE,stroke:dC.BLUE},altDown:{fill:Iu.ORANGE,stroke:dC.ORANGE},altNeutral:{fill:Iu.GRAY,stroke:dC.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(Od,[Iu.ORANGE,Iu.YELLOW,Iu.GREEN]),e.set(Dh,[Iu.GREEN,Iu.YELLOW,Iu.ORANGE]),e.set(gc,Iu.BLUE),e.set(Fd,Iu.BLUE),e}}}}),Tu,Xk,Pj,CQ=A({"packages/ag-charts-community/src/chart/themes/vividDark.ts"(){"use strict";vR(),_o(),Tu={BLUE:"#0083ff",ORANGE:"#ff6600",GREEN:"#00af00",CYAN:"#00ccff",YELLOW:"#f7c700",VIOLET:"#ac26ff",GRAY:"#a7a7b7",MAGENTA:"#e800c5",BROWN:"#b54300",RED:"#ff0000"},Xk={BLUE:"#67b7ff",ORANGE:"#ffc24d",GREEN:"#5cc86f",CYAN:"#54ebff",VIOLET:"#fff653",YELLOW:"#c18aff",GRAY:"#aeaeae",MAGENTA:"#f078d4",BROWN:"#ba8438",RED:"#ff726e"},Pj=class extends sE{getDefaultColors(){return{fills:Tu,strokes:Xk,up:{fill:Tu.GREEN,stroke:Xk.GREEN},down:{fill:Tu.RED,stroke:Xk.RED},neutral:{fill:Tu.GRAY,stroke:Xk.GRAY},altUp:{fill:Tu.BLUE,stroke:Xk.BLUE},altDown:{fill:Tu.ORANGE,stroke:Xk.ORANGE},altNeutral:{fill:Tu.GRAY,stroke:Xk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(Od,[Tu.ORANGE,Tu.YELLOW,Tu.GREEN]),e.set(Vp,["#0083ff","#0076e6","#0069cc","#005cb3","#004f99","#004280","#003466","#00274c"]),e.set(Dh,[Tu.GREEN,Tu.YELLOW,Tu.RED]),e.set(gc,Tu.BLUE),e.set(Fd,Tu.BLUE),e}}}}),Ru,Zk,Lj,SQ=A({"packages/ag-charts-community/src/chart/themes/vividLight.ts"(){"use strict";lw(),_o(),Ru={BLUE:"#0083ff",ORANGE:"#ff6600",GREEN:"#00af00",CYAN:"#00ccff",YELLOW:"#f7c700",VIOLET:"#ac26ff",GRAY:"#a7a7b7",MAGENTA:"#e800c5",BROWN:"#b54300",RED:"#ff0000"},Zk={BLUE:"#0f68c0",ORANGE:"#d47100",GREEN:"#007922",CYAN:"#009ac2",VIOLET:"#bca400",YELLOW:"#753cac",GRAY:"#646464",MAGENTA:"#9b2685",BROWN:"#6c3b00",RED:"#cb0021"},Lj=class extends cC{getDefaultColors(){return{fills:Ru,strokes:Zk,up:{fill:Ru.GREEN,stroke:Zk.GREEN},down:{fill:Ru.RED,stroke:Zk.RED},neutral:{fill:Ru.GRAY,stroke:Zk.GRAY},altUp:{fill:Ru.BLUE,stroke:Zk.BLUE},altDown:{fill:Ru.ORANGE,stroke:Zk.ORANGE},altNeutral:{fill:Ru.GRAY,stroke:Zk.GRAY}}}getTemplateParameters(){let e=super.getTemplateParameters();return e.set(Od,[Ru.ORANGE,Ru.YELLOW,Ru.GREEN]),e.set(Vp,["#0083ff","#1a8fff","#339cff","#4da8ff","#66b5ff","#80c1ff","#99cdff","#b3daff"]),e.set(Dh,[Ru.GREEN,Ru.YELLOW,Ru.RED]),e.set(gc,Ru.BLUE),e.set(Fd,Ru.BLUE),e}}}});function wQ(e){if(e instanceof cC)return e;if(e==null||typeof e=="string"){let t=EF[e];return t?t():(hi.warnOnce(`the theme [${e}] is invalid, using [ag-default] instead.`),lE())}if(aQ(e,Fj,"theme")){let t=xQ(e),n=t.baseTheme?i2(t.baseTheme):lE();return new n.constructor(t)}return lE()}function xQ(e){let t=e,n,a=[];for(;typeof t=="object";)n!=null||(n=t.palette),t.overrides&&a.push(t.overrides),t=t.baseTheme;return{baseTheme:t,overrides:En(...a),palette:n}}var lE,Oj,EF,i2,Fj,IF=A({"packages/ag-charts-community/src/chart/mapping/themes.ts"(){"use strict";on(),Ek(),ra(),uQ(),lw(),vR(),hQ(),gQ(),pQ(),mQ(),fQ(),vQ(),yQ(),bQ(),CQ(),SQ(),lE=tl(()=>new cC),Oj=tl(()=>new sE),EF={"ag-default-dark":Oj,"ag-sheets-dark":tl(()=>new Tj),"ag-polychroma-dark":tl(()=>new Ej),"ag-vivid-dark":tl(()=>new Pj),"ag-material-dark":tl(()=>new Aj),"ag-financial-dark":tl(()=>new Mj),null:lE,undefined:lE,"ag-default":lE,"ag-sheets":tl(()=>new Rj),"ag-polychroma":tl(()=>new Ij),"ag-vivid":tl(()=>new Lj),"ag-material":tl(()=>new Dj),"ag-financial":tl(()=>new kj)},i2=tl(wQ),Fj={baseTheme:vj(lC,A3),overrides:A3,palette:{fills:D3(lC),strokes:D3(lC),up:{fill:lC,stroke:lC},down:{fill:lC,stroke:lC},neutral:{fill:lC,stroke:lC}}}}}),_j,TF,I3,Nj=A({"packages/ag-charts-community/src/module/optionsModule.ts"(){"use strict";Fa(),tQ(),af(),yg(),vg(),nQ(),yS(),IF(),lf(),lw(),Mr(),pr(),Rn(),nc(),on(),ra(),bn(),Cj(),wF(),_j=new Set(["map-shape-background","map-line-background"]),TF=class Yw{constructor(t,n,a,u,y){this.debug=la.create(!0,"opts"),this.optionMetadata=u!=null?u:{},this.processedOverrides=n!=null?n:{};let k=null;if(t instanceof Yw){if(k=t,this.specialOverrides=k.specialOverrides,!y)throw new Error("AG Charts - internal error: deltaOptions must be supplied.");this.userOptions=En(y,Us(k.userOptions,Yw.OPTIONS_CLONE_OPTS))}else this.userOptions=t,this.specialOverrides=this.specialOverridesDefaults(ge({},a));let R,F,_,V;y!=null&&Yw.isFastPathDelta(y)&&k!=null?{activeTheme:R,processedOptions:F,defaultAxes:_,fastDelta:V}=this.fastSetup(y,k):{activeTheme:R,processedOptions:F,defaultAxes:_}=this.slowSetup(n,y),this.activeTheme=R,this.processedOptions=F,this.defaultAxes=_,this.fastDelta=V}static isFastPathDelta(t){for(let n of Object.keys(t))if(!this.FAST_PATH_OPTIONS.has(n))return!1;return!0}fastSetup(t,n){let{activeTheme:a,defaultAxes:u,processedOptions:y}=n,{presetType:k}=this.optionMetadata,R=k?hj[k]:void 0;k!=null&&t.data!=null&&R!=null&&(t=En(R(t.data),t)),this.fastSeriesSetup(t,y);let F=En(t,y);return{activeTheme:a,defaultAxes:u,processedOptions:F,fastDelta:t}}fastSeriesSetup(t,n){var a;t.series&&((a=t.series)!=null&&a.every((u,y)=>{var k,R;return hD(u,(R=(k=n.series)==null?void 0:k[y])!=null?R:{})})?delete t.series:t.series=t.series.map((u,y)=>{var k,R;return En(u,(R=(k=n.series)==null?void 0:k[y])!=null?R:{})}))}slowSetup(t,n){var se,pe,Ce;let a=Us(this.userOptions,Yw.OPTIONS_CLONE_OPTS);n&&(a=En(n,a));let{presetType:u}=this.optionMetadata;if(u!=null){let Se=uj[u],ve=this.userOptions,ke=this.userOptions.type,De=ke!=null?i2(this.userOptions.theme).presets[ke]:void 0;this.debug(">>> AgCharts.createOrUpdate() - applying preset",ve),a=(se=Se==null?void 0:Se(ve,De,()=>this.activeTheme))!=null?se:a}ku.isEnterprise||gj(a);let y=i2(a.theme);this.sanityCheck(a),this.removeDisabledOptions(a);let k=this.getDefaultAxes(a),R=this.optionsType(a),de=this.getSeriesThemeConfig(R,y),{axes:F={},annotations:_={},series:V}=de,K=wi(de,["axes","annotations","series"]),[q,$]=this.splitAnnotationsOptions(_),te=En(t,a,q,K,k);return this.processAxesOptions(te,F),this.processSeriesOptions(te,y),this.processMiniChartSeriesOptions(te,y),this.annotationThemes=$,te=Us(te,Yw.OPTIONS_CLONE_OPTS),(Hb(te)||SS(te)||u1(te))&&((pe=te.legend)==null?void 0:pe.enabled)==null&&((Ce=te.legend)!=null||(te.legend={}),te.legend.enabled=te.series.length>1),this.enableConfiguredOptions(te,this.userOptions),y.templateTheme(te,!1),this.removeDisabledOptions(a),iQ(te),ku.isEnterprise||gj(te,!0),this.debug("AgCharts.createOrUpdate() - processed options",te),{activeTheme:y,processedOptions:te,defaultAxes:k}}diffOptions(t){var n;return this===t?{}:t==null?this.processedOptions:(n=this.fastDelta)!=null?n:Qh(t.processedOptions,this.processedOptions)}getSeriesThemeConfig(t,n){var a;return(a=n==null?void 0:n.config[t])!=null?a:{}}getDefaultAxes(t){var u,y;let n=this.optionsType(t),a=(y=(u=t.series)==null?void 0:u.find(k=>{var R;return((R=k.type)!=null?R:"line")===n}))!=null?y:{};return Oo.cloneDefaultAxes(n,a)}optionsType(t){var n,a,u;return(u=(a=(n=t.series)==null?void 0:n[0])==null?void 0:a.type)!=null?u:"line"}sanityCheck(t){this.axesTypeIntegrity(t),this.seriesTypeIntegrity(t),this.soloSeriesIntegrity(t)}splitAnnotationsOptions(t){let R=t,{axesButtons:n=null,enabled:a=null,optionsToolbar:u=null,toolbar:y=null}=R,k=wi(R,["axesButtons","enabled","optionsToolbar","toolbar"]);return n==null&&a==null&&u==null&&y==null?[{},k]:[{annotations:{axesButtons:n,enabled:a,optionsToolbar:u,toolbar:y}},k]}processAxesOptions(t,n){var a;"axes"in t&&(t.axes=(a=t.axes)==null?void 0:a.map(u=>{var $,se,de;let te=En(($=n[u.type])==null?void 0:$[u.position],n[u.type]),{crossLines:y}=te,k=wi(te,["crossLines"]);u.crossLines&&(u.crossLines=Ly(u.crossLines,y));let R=(se=k.gridLine)==null?void 0:se.style;(de=u.gridLine)!=null&&de.style&&(R!=null&&R.length)&&(u.gridLine.style=u.gridLine.style.map((Ce,Se)=>Ce.stroke!=null||Ce.lineDash!=null?En(Ce,R.at(Se%R.length)):Ce));let pe=En(u,k),{top:F,right:_,bottom:V,left:K}=pe;return wi(pe,["top","right","bottom","left"])}))}processSeriesOptions(t,n){var R,F;let a=this.getTooltipPositionDefaults(t),u=ur(t.theme)?E3((R=t.theme)==null?void 0:R.palette):"inbuilt",y={colourIndex:0,userPalette:u},k=(F=t.series)==null?void 0:F.map(_=>{var de,pe;(de=_.type)!=null||(_.type=this.getDefaultSeriesType(t));let Ce=(pe=this.getSeriesThemeConfig(_.type,n).series)!=null?pe:{},{innerLabels:V}=Ce,K=wi(Ce,["innerLabels"]),q=_j.has(_.type)?{colourIndex:0,userPalette:u}:y,$=this.getSeriesPalette(_.type,q,n),te=this.getTooltipRangeDefaults(t,_.type),se=En(this.getSeriesGroupingOptions(_),_,a,te,K,$,{visible:!0});return se.innerLabels&&(se.innerLabels=Ly(se.innerLabels,V)),se});t.series=this.setSeriesGroupingOptions(k!=null?k:[])}processMiniChartSeriesOptions(t,n){var y,k;let a=(k=(y=t.navigator)==null?void 0:y.miniChart)==null?void 0:k.series;if(a==null)return;let u={colourIndex:0,userPalette:ur(t.theme)?E3(t.theme.palette):"inbuilt"};a=a.map(R=>{var V,K;(V=R.type)!=null||(R.type="line");let q=(K=this.getSeriesThemeConfig(R.type,n).series)!=null?K:{},{innerLabels:F}=q,_=wi(q,["innerLabels"]);return En(this.getSeriesGroupingOptions(R),R,_,this.getSeriesPalette(R.type,u,n))}),t.navigator.miniChart.series=this.setSeriesGroupingOptions(a)}getSeriesPalette(t,n,a){let u=Oo.getPaletteFactory(t),{colourIndex:y,userPalette:k}=n,{fills:R=[],strokes:F=[]}=a.palette;return u==null?void 0:u({userPalette:k,colorsCount:Math.max(R.length,F.length),themeTemplateParameters:a.getTemplateParameters(),palette:a.palette,takeColors(_){return n.colourIndex+=_,{fills:Zf(R,_,y),strokes:Zf(F,_,y)}}})}getSeriesGroupingOptions(t){let n=Oo.isGroupable(t.type),a=Oo.isStackable(t.type),u=Oo.isStackedByDefault(t.type);t.grouped&&!n&&hi.warnOnce(`unsupported grouping of series type "${t.type}".`),(t.stacked||t.stackGroup)&&!a&&hi.warnOnce(`unsupported stacking of series type "${t.type}".`);let{grouped:y,stacked:k}=t;return k!=null||(k=(u||t.stackGroup!=null)&&!(n&&y)),y!=null||(y=!0),{stacked:a&&k,grouped:n&&y&&!(a&&k)}}setSeriesGroupingOptions(t){let n=this.getSeriesGrouping(t);this.debug("setSeriesGroupingOptions() - series grouping: ",n);let a={},u=n.reduce((y,k)=>{var F;var R;return k.groupType==="default"||((F=y[R=k.seriesType])!=null||(y[R]=0),y[k.seriesType]+=k.groupType==="stack"?1:k.series.length),y},{});return n.flatMap(y=>{var R;var k;switch((R=a[k=y.seriesType])!=null||(a[k]=0),y.groupType){case"stack":{let F=a[y.seriesType]++;return y.series.map((_,V)=>Object.assign(_,{seriesGrouping:{groupId:y.groupId,groupIndex:F,groupCount:u[y.seriesType],stackIndex:V,stackCount:y.series.length}}))}case"group":return y.series.map(F=>Object.assign(F,{seriesGrouping:{groupId:y.groupId,groupIndex:a[y.seriesType]++,groupCount:u[y.seriesType],stackIndex:0,stackCount:0}}))}return y.series}).map(F=>{var _=F,{stacked:y,grouped:k}=_,R=wi(_,["stacked","grouped"]);return R})}getSeriesGroupId(t){var n;return[t.type,t.xKey,t.stacked?(n=t.stackGroup)!=null?n:"stacked":"grouped"].filter(Boolean).join("-")}getSeriesGrouping(t){let n=new Map;return t.reduce((a,u)=>{let y=u.type;if(!u.stacked&&!u.grouped)a.push({groupType:"default",seriesType:y,series:[u],groupId:"__default__"});else{let k=this.getSeriesGroupId(u);if(!n.has(k)){let F={groupType:u.stacked?"stack":"group",seriesType:y,series:[],groupId:k};n.set(k,F),a.push(F)}n.get(k).series.push(u)}return a},[])}getDefaultSeriesType(t){if(Hb(t))return"line";if(pu(t))return"pie";if(Go(t))return"treemap";if(Rl(t))return"map-shape";if(ZM(t))return"sankey";if(SS(t))return"pyramid";if(Dp(t))return"radial-gauge";throw new Error("Invalid chart options type detected.")}getTooltipPositionDefaults(t){var R;let n=(R=t.tooltip)==null?void 0:R.position;if(!_a(n))return;let{type:a,xOffset:u,yOffset:y}=n,k={};return Qt(a)&&oa(Uu,a)&&(k.type=a),pa(u)&&(k.xOffset=u),pa(y)&&(k.yOffset=y),{tooltip:{position:k}}}getTooltipRangeDefaults(t,n){var a,u,y;return{tooltip:{range:(y=(a=t.tooltip)==null?void 0:a.range)!=null?y:(u=Oo.getTooltipDefauls(n))==null?void 0:u.range}}}axesTypeIntegrity(t){if("axes"in t&&t.axes){let n=t.axes;for(let{type:a}of n)if(!IT(a)){delete t.axes;let u=gu.publicKeys().join(", ");hi.warnOnce(`unknown axis type: ${a}; expected one of: ${u}`)}}}seriesTypeIntegrity(t){var n;t.series=(n=t.series)==null?void 0:n.filter(({type:a})=>{if(a==null||ET(a)||c1(a))return!0;hi.warnOnce(`unknown series type: ${JSON.stringify(a)}; expected one of: ${jb.seriesTypes.join(", ")}`)})}soloSeriesIntegrity(t){let n=t.series;if(n&&n.length>1&&n.some(a=>Oo.isSolo(a.type))){let a=this.optionsType(t);if(Oo.isSolo(a))hi.warn(`series[0] of type '${a}' is incompatible with other series types. Only processing series[0]`),t.series=n.slice(0,1);else{let{solo:u,nonSolo:y}=lx(n,R=>Oo.isSolo(R.type)?"solo":"nonSolo"),k=sx(u.map(R=>R.type)).join(", ");hi.warn(`Unable to mix these series types with the lead series type: ${k}`),t.series=y}}}static enableConfiguredJsonOptions(t,n){n&&"enabled"in n&&!n._enabledFromTheme&&t.enabled==null&&(n.enabled=!0)}static cleanupEnabledFromThemeJsonOptions(t){t._enabledFromTheme!=null&&delete t._enabledFromTheme}enableConfiguredOptions(t,n){Jh(n,Yw.enableConfiguredJsonOptions,new Set(["data","theme"]),t),Jh(t,Yw.cleanupEnabledFromThemeJsonOptions,new Set(["data","theme"]))}static removeDisabledOptionJson(t){"enabled"in t&&t.enabled===!1&&Object.keys(t).forEach(n=>{n!=="enabled"&&delete t[n]})}removeDisabledOptions(t){Jh(t,Yw.removeDisabledOptionJson,new Set(["data","theme"]))}specialOverridesDefaults(t){if(t.window!=null?au(t.window):typeof window!="undefined"?t.window=window:typeof global!="undefined"&&(t.window=global.window),t.document!=null?rD(t.document):typeof document!="undefined"?t.document=document:typeof global!="undefined"&&(t.document=global.document),t.window==null)throw new Error("AG Charts - unable to resolve global window");if(t.document==null)throw new Error("AG Charts - unable to resolve global document");return t}},TF.OPTIONS_CLONE_OPTS=new Set(["data","container"]),TF.FAST_PATH_OPTIONS=new Set(["data","width","height"]),I3=TF}}),zj,RF,Bj,MQ=A({"packages/ag-charts-community/src/util/pool.ts"(){"use strict";pr(),zj=100,RF=class hI{constructor(t,n,a,u,y,k=zj){this.name=t,this.buildItem=n,this.releaseItem=a,this.destroyItem=u,this.maxPoolSize=y,this.cleanupTimeMs=k,this.freePool=[],this.busyPool=new Set}static getPool(t,n,a,u,y){return this.pools.has(t)||this.pools.set(t,new hI(t,n,a,u,y)),this.pools.get(t)}isFull(){return this.freePool.length+this.busyPool.size>=this.maxPoolSize}obtain(t){if(this.freePool.length===0&&this.isFull())throw new Error("AG Charts - pool exhausted");let n=this.freePool.pop();return n==null?(n=this.buildItem(t),hI.debug(`Pool[name=${this.name}]: Created instance (${this.freePool.length} / ${this.busyPool.size+1} / ${this.maxPoolSize})`,n)):hI.debug(`Pool[name=${this.name}]: Re-used instance (${this.freePool.length} / ${this.busyPool.size+1} / ${this.maxPoolSize})`,n),this.busyPool.add(n),{item:n,release:()=>this.release(n)}}release(t){if(!this.busyPool.has(t))throw new Error("AG Charts - cannot free item from pool which is not tracked as busy.");hI.debug(`Pool[name=${this.name}]: Releasing instance (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`,t),this.releaseItem(t),this.busyPool.delete(t),this.freePool.push(t),hI.debug(`Pool[name=${this.name}]: Returned instance to free pool (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`,t),this.cleanPoolTimer&&clearTimeout(this.cleanPoolTimer),this.cleanPoolTimer=setTimeout(()=>{this.cleanPool()},this.cleanupTimeMs)}cleanPool(){let t=this.freePool.splice(0);for(let n of t)this.destroyItem(n);hI.debug(`Pool[name=${this.name}]: Cleaned pool of ${t.length} items (${this.freePool.length} / ${this.busyPool.size} / ${this.maxPoolSize})`)}destroy(){this.cleanPool();for(let t of this.busyPool.values())this.destroyItem(t);this.busyPool.clear()}},RF.pools=new Map,RF.debug=la.create(!0,"pool"),Bj=RF}});function Gj(e){if(Hb(e))return"cartesian";if(pu(e))return"polar";if(Go(e))return"hierarchy";if(Rl(e))return"topology";if(ZM(e))return"flow-proportion";if(SS(e))return"standalone";if(Dp(e))return"gauge";throw new Error(`AG Chart - unknown type of chart for options with type: ${e.type}`)}var n2,dw,ay,T3,Vj=A({"packages/ag-charts-community/src/api/agCharts.ts"(){"use strict";AL(),Xr(),T1(),w3(),w$(),M$(),D$(),E$(),lf(),R$(),P$(),L$(),wF(),Nj(),pr(),nc(),MQ(),vb(),q0(),n2=la.create(!0,"opts"),dw=class{static licenseCheck(e){var t,n;this.licenseChecked||(this.licenseManager=(t=ku.licenseManager)==null?void 0:t.call(ku,e),(n=this.licenseManager)==null||n.validateLicense(),this.licenseChecked=!0)}static getLicenseDetails(e){var t;return(t=ku.licenseManager)==null?void 0:t.call(ku,{}).getLicenseDetails(e)}static getInstance(e){return T3.getInstance(e)}static create(e,t){var a,u;this.licenseCheck(e);let n=T3.createOrUpdate({userOptions:e,licenseManager:this.licenseManager,optionsMetadata:t});return(a=this.licenseManager)!=null&&a.isDisplayWatermark()&&this.licenseManager&&((u=ku.injectWatermark)==null||u.call(ku,n.chart.ctx.domManager,this.licenseManager.getWatermarkMessage())),n}static createFinancialChart(e){return this.create(e,{presetType:"price-volume"})}static createGauge(e){return this.create(e,{presetType:"gauge"})}static __createSparkline(e){let a=e,{pool:t}=a,n=wi(a,["pool"]);return this.create(n,{presetType:"sparkline",pool:t!=null?t:!0})}},dw.licenseChecked=!1,ay=class Xw{static getInstance(t){let n=Rp.getInstance(t);return n?Fp.chartInstances.get(n):void 0}static initialiseModules(){Xw.initialised||(S3(),S$(),Xw.initialised=!0)}static createOrUpdate(t){var De,Te,ze,et,$e,lt,at;let{proxy:n}=t,{userOptions:a,licenseManager:u,processedOverrides:y=(De=n==null?void 0:n.chart.chartOptions.processedOverrides)!=null?De:{},specialOverrides:k=(Te=n==null?void 0:n.chart.chartOptions.specialOverrides)!=null?Te:{},optionsMetadata:R=(ze=n==null?void 0:n.chart.chartOptions.optionMetadata)!=null?ze:{},deltaOptions:F}=t,_=ku.styles!=null?[["ag-charts-enterprise",ku.styles]]:[],{presetType:V}=R;Xw.initialiseModules(),n2(">>> AgCharts.createOrUpdate() user options",a);let K=a;dw.optionsMutationFn&&K&&(K=dw.optionsMutationFn(Us(K),V),n2(">>> AgCharts.createOrUpdate() MUTATED user options",K));let qe=K!=null?K:{},{overrideDevicePixelRatio:q,document:$,window:te,styleContainer:se}=qe,de=wi(qe,["overrideDevicePixelRatio","document","window","styleContainer"]),pe=(et=F?n==null?void 0:n.chart.getChartOptions():de)!=null?et:de,Ce=new I3(pe,y,He(ge({},k),{document:$,window:te,overrideDevicePixelRatio:q,styleContainer:se}),R,F),Se=!1,ve=n==null?void 0:n.chart,ke;return(ve==null||Gj(Ce.processedOptions)!==Gj(ve==null?void 0:ve.chartOptions.processedOptions))&&(ke=($e=this.getPool(Ce))==null?void 0:$e.obtain(Ce),ke?ve=ke.item:(Se=!0,ve=Xw.createChartInstance(Ce,ve)),_==null||_.forEach(([ht,vt])=>{ve==null||ve.ctx.domManager.addStyles(ht,vt)})),n==null?(n=new Fp(ve,Xw.callbackApi,u),n.releaseChart=ke==null?void 0:ke.release):(ke||Se)&&((lt=n.releaseChart)==null||lt.call(n),n.chart=ve,n.releaseChart=ke==null?void 0:ke.release),n2.check()&&typeof window!="undefined"&&((at=window.agChartInstances)!=null||(window.agChartInstances={}),window.agChartInstances[ve.id]=ve),ve.queuedUserOptions.push(Ce.userOptions),ve.queuedChartOptions.push(Ce),ve.requestFactoryUpdate(ht=>{ht.applyOptions(Ce);let vt=ht.queuedUserOptions.indexOf(Ce.userOptions)+1;ht.queuedUserOptions.splice(0,vt),ht.queuedChartOptions.splice(0,vt)}),n}static markRemovedProperties(t){if(typeof t=="object")for(let[n,a]of Object.entries(t))typeof a=="undefined"&&Object.assign(t,{[n]:Symbol("UNSET")})}static updateUserDelta(t,n){n=Us(n,new Set(["data"])),Jh(n,Xw.markRemovedProperties,new Set(["data"])),n2(">>> AgCharts.updateUserDelta() user delta",n),Xw.createOrUpdate({proxy:t,deltaOptions:n})}static createChartInstance(t,n){let a=n==null?void 0:n.destroy({keepTransferableResources:!0}),u=Xw.getChartByOptions(t.processedOptions);return new u(t,a)}static getChartByOptions(t){if(Hb(t))return I1;if(Go(t))return gF;if(pu(t))return pF;if(Rl(t))return SF;if(ZM(t))return uF;if(SS(t))return mF;if(Dp(t))return hF;throw new Error("AG Charts - couldn't apply configuration, check options are correctly structured and series types are specified")}static getPool(t){var n;if(t.optionMetadata.pool===!0)return Bj.getPool((n=t.optionMetadata.presetType)!=null?n:"default",this.createChartInstance,this.detachAndClear,this.destroy,1/0)}},ay.caretaker=new cu(Bm),ay.initialised=!1,ay.callbackApi={caretaker:ay.caretaker,create(e,t,n,a){return ay.createOrUpdate({userOptions:e,processedOverrides:t,specialOverrides:n,optionsMetadata:a})},update(e,t){return ay.createOrUpdate({userOptions:e,proxy:t})},updateUserDelta(e,t){return ay.updateUserDelta(e,t)}},ay.detachAndClear=e=>e.detachAndClear(),ay.destroy=e=>e.destroy(),T3=ay}}),Df,jj=A({"packages/ag-charts-community/src/scene/shape/arc.ts"(){"use strict";Ko(),gn(),vn(),Ll(),Er(),Df=class extends br{constructor(){super(),this.centerX=0,this.centerY=0,this.radius=10,this.startAngle=0,this.endAngle=Math.PI*2,this.counterClockwise=!1,this.type=0,this.restoreOwnStyles()}get fullPie(){return eo(Fn(this.startAngle),Fn(this.endAngle))}updatePath(){let e=this.path;e.clear(),e.arc(this.centerX,this.centerY,this.radius,this.startAngle,this.endAngle,this.counterClockwise),this.type===1?e.closePath():this.type===2&&!this.fullPie&&(e.lineTo(this.centerX,this.centerY),e.closePath())}computeBBox(){return new ki(this.centerX-this.radius,this.centerY-this.radius,this.radius*2,this.radius*2)}isPointInPath(e,t){let n=this.getBBox();return this.type!==0&&n.containsPoint(e,t)&&this.path.isPointInPath(e,t)}},Df.className="Arc",Df.defaultStyles=He(ge({},ps.defaultStyles),{lineWidth:1,fillStyle:null}),b([qi()],Df.prototype,"centerX",2),b([qi()],Df.prototype,"centerY",2),b([qi()],Df.prototype,"radius",2),b([qi()],Df.prototype,"startAngle",2),b([qi()],Df.prototype,"endAngle",2),b([qi()],Df.prototype,"counterClockwise",2),b([qi()],Df.prototype,"type",2)}});function R3(e,t,n){let a=Math.sqrt(e**2+t**2),y=Math.atan2(t,e)+n;return{x:Math.cos(y)*a,y:Math.sin(y)*a}}function Hj(e,t,n,a,u){let y=ob(e,t),k=y*(1-a)/2;if(e+=k,t-=k,y<.001)return 2*n*u;if(y>=2*Math.PI){let $=e+y/2;e=$-Math.PI,t=$+Math.PI}let R=n*Math.cos(e),F=n*Math.sin(e),_=n*Math.cos(t),V=n*Math.sin(t),K=Math.floor(Math.sqrt((R-_)**2+(F-V)**2)),q=2*n*u;return Math.max(1,Math.min(q,K))}var Yp,Wj=A({"packages/ag-charts-community/src/scene/shape/radialColumnShape.ts"(){"use strict";Ko(),gn(),vn(),Ll(),Yp=class extends br{constructor(){super(...arguments),this.isBeveled=!0,this.columnWidth=0,this.startAngle=0,this.endAngle=0,this.outerRadius=0,this.innerRadius=0,this.axisInnerRadius=0,this.axisOuterRadius=0,this.isRadiusAxisReversed=!1}set cornerRadius(e){}computeBBox(){let{innerRadius:e,outerRadius:t,columnWidth:n}=this,a=this.getRotation(),u=-n/2,y=n/2,k=-t,R=-e,F=1/0,_=1/0,V=-1/0,K=-1/0;for(let q=0;q<4;q+=1){let{x:$,y:te}=R3(q%2===0?u:y,q<2?k:R,a);F=Math.min($,F),_=Math.min(te,_),V=Math.max($,V),K=Math.max(te,K)}return new ki(F,_,V-F,K-_)}getRotation(){let{startAngle:e,endAngle:t}=this,n=ob(e,t);return Fn(e+n/2+Math.PI/2)}updatePath(){let{isBeveled:e}=this;e?this.updateBeveledPath():this.updateRectangularPath(),this.checkPathDirty()}updateRectangularPath(){let{columnWidth:e,innerRadius:t,outerRadius:n,path:a}=this,u=-e/2,y=e/2,k=-n,R=-t,F=this.getRotation(),_=[[u,R],[u,k],[y,k],[y,R]].map(([V,K])=>R3(V,K,F));a.clear(!0),a.moveTo(_[0].x,_[0].y),a.lineTo(_[1].x,_[1].y),a.lineTo(_[2].x,_[2].y),a.lineTo(_[3].x,_[3].y),a.closePath()}updateBeveledPath(){let{columnWidth:e,path:t,outerRadius:n,innerRadius:a,axisInnerRadius:u,axisOuterRadius:y,isRadiusAxisReversed:k}=this,R=eo(a,u),F=Math.asin(e/2/a),_=this.getRotation(),V=(ze,qe)=>R3(ze,qe,_),K=(ze,qe)=>Math.sqrt(ze**2+qe**2),q=(ze,qe)=>qe>ze?0:Math.sqrt(ze**2-qe**2),$=(ze,qe,et)=>et?ze<qe:ze>qe,te=R&&!isNaN(F)&&F<Math.PI/6,se=-e/2,de=e/2,pe=-n,Ce=-a*(te?Math.cos(F):1),Se=$(y,K(a,e/2),!k);if(Se){let ze=q(y,a);se=-ze,de=ze}t.clear(!0);let ve=V(se,Ce);t.moveTo(ve.x,ve.y);let ke=eo(a,n),De=$(y,K(n,e/2),!k);if(ke&&te)t.arc(0,0,a,Fn(-F-Math.PI/2)+_,Fn(F-Math.PI/2)+_,!1);else if(De){let ze=-q(y,e/2),qe=q(y,n);if(!Se){let et=V(se,ze);t.lineTo(et.x,et.y)}if(t.arc(0,0,y,Math.atan2(ze,se)+_,Math.atan2(pe,-qe)+_,!1),!eo(qe,0)){let et=V(qe,pe);t.lineTo(et.x,et.y)}t.arc(0,0,y,Math.atan2(pe,qe)+_,Math.atan2(ze,de)+_,!1)}else{let ze=V(se,pe),qe=V(de,pe);t.lineTo(ze.x,ze.y),t.lineTo(qe.x,qe.y)}let Te=V(de,Ce);if(t.lineTo(Te.x,Te.y),te)t.arc(0,0,a,Fn(F-Math.PI/2)+_,Fn(-F-Math.PI/2)+_,!0);else{let ze=V(se,Ce);t.lineTo(ze.x,ze.y)}t.closePath()}},Yp.className="RadialColumnShape",b([qi()],Yp.prototype,"isBeveled",2),b([qi()],Yp.prototype,"columnWidth",2),b([qi()],Yp.prototype,"startAngle",2),b([qi()],Yp.prototype,"endAngle",2),b([qi()],Yp.prototype,"outerRadius",2),b([qi()],Yp.prototype,"innerRadius",2),b([qi()],Yp.prototype,"axisInnerRadius",2),b([qi()],Yp.prototype,"axisOuterRadius",2),b([qi()],Yp.prototype,"isRadiusAxisReversed",2)}}),P3={};E(P3,{Arc:()=>Df,BBox:()=>ki,BandScale:()=>zo,Caption:()=>qa,Circle:()=>Ip,Group:()=>Wi,Line:()=>ms,LinearScale:()=>Xc,Path:()=>br,RadialColumnShape:()=>Yp,Rect:()=>Za,Scene:()=>Rv,Sector:()=>mc,Shape:()=>ps,TranslatableGroup:()=>Aa,getRadialColumnWidth:()=>Hj,toRadians:()=>ma});var Uj=A({"packages/ag-charts-community/src/integrated-charts-scene.ts"(){"use strict";cp(),DS(),Qd(),Np(),vn(),xo(),oS(),jj(),vd(),Ll(),Wj(),zp(),iF(),Er(),Ko()}}),L3={};E(L3,{ChartTheme:()=>cC,DEFAULT_ANNOTATION_BACKGROUND_FILL:()=>Fd,DEFAULT_ANNOTATION_COLOR:()=>gc,DEFAULT_ANNOTATION_HANDLE_FILL:()=>Dg,DEFAULT_ANNOTATION_STATISTICS_COLOR:()=>X1,DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE:()=>Z1,DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL:()=>uR,DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE:()=>hR,DEFAULT_ANNOTATION_STATISTICS_FILL:()=>Y1,DEFAULT_ANNOTATION_STATISTICS_STROKE:()=>ow,DEFAULT_AXIS_GRID_COLOUR:()=>Gp,DEFAULT_AXIS_LINE_COLOUR:()=>hc,DEFAULT_BACKGROUND_COLOUR:()=>Fk,DEFAULT_CAPTION_ALIGNMENT:()=>ey,DEFAULT_CAPTION_LAYOUT_STYLE:()=>Jv,DEFAULT_COLOURS:()=>oR,DEFAULT_CROSS_LINES_COLOUR:()=>iC,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:()=>Od,DEFAULT_FIBONACCI_STROKES:()=>q1,DEFAULT_FONT_FAMILY:()=>$a,DEFAULT_FUNNEL_SERIES_COLOR_RANGE:()=>Vp,DEFAULT_GAUGE_SERIES_COLOR_RANGE:()=>Dh,DEFAULT_GRIDLINE_ENABLED:()=>jp,DEFAULT_HIERARCHY_FILLS:()=>U1,DEFAULT_HIERARCHY_STROKES:()=>K1,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:()=>Bp,DEFAULT_INVERTED_BACKGROUND_COLOUR:()=>tw,DEFAULT_INVERTED_LABEL_COLOUR:()=>z1,DEFAULT_LABEL_COLOUR:()=>mo,DEFAULT_MUTED_LABEL_COLOUR:()=>nl,DEFAULT_NAVIGATOR_STROKE:()=>kf,DEFAULT_PADDING:()=>Ag,DEFAULT_POLAR_SERIES_STROKE:()=>H1,DEFAULT_SEPARATION_LINES_COLOUR:()=>nC,DEFAULT_SHADOW_COLOUR:()=>Qv,DEFAULT_SPARKLINE_CROSSHAIR_STROKE:()=>W1,DEFAULT_TEXTBOX_COLOR:()=>_k,DEFAULT_TEXTBOX_FILL:()=>$1,DEFAULT_TEXTBOX_STROKE:()=>Q1,DEFAULT_TEXT_ANNOTATION_COLOR:()=>ty,DEFAULT_TOOLBAR_POSITION:()=>iy,IS_COMMUNITY:()=>ew,IS_DARK_THEME:()=>JS,IS_ENTERPRISE:()=>N1,PALETTE_ALT_DOWN_FILL:()=>cR,PALETTE_ALT_DOWN_STROKE:()=>sR,PALETTE_ALT_NEUTRAL_FILL:()=>dR,PALETTE_ALT_NEUTRAL_STROKE:()=>j1,PALETTE_ALT_UP_FILL:()=>lR,PALETTE_ALT_UP_STROKE:()=>rR,PALETTE_DOWN_FILL:()=>nw,PALETTE_DOWN_STROKE:()=>iw,PALETTE_NEUTRAL_FILL:()=>V1,PALETTE_NEUTRAL_STROKE:()=>aw,PALETTE_UP_FILL:()=>G1,PALETTE_UP_STROKE:()=>B1,getChartTheme:()=>i2,themeNames:()=>Kj,themeSymbols:()=>_1,themes:()=>EF});var Kj,qj=A({"packages/ag-charts-community/src/integrated-charts-theme.ts"(){"use strict";IF(),IF(),_o(),lw(),IF(),_o(),Kj=Object.keys(EF)}}),O3={};E(O3,{Color:()=>Jo,interpolateColor:()=>mI});var Yj=A({"packages/ag-charts-community/src/integrated-charts-util.ts"(){"use strict";qC(),Br()}}),Xj,kQ=A({"packages/ag-charts-community/src/main-modules.ts"(){"use strict";Vj(),w3(),Uj(),qj(),Yj(),vb(),Vj(),vb(),w3(),Xj={VERSION:Bm,_Scene:P3,_Theme:L3,_Util:O3,create:dw.create.bind(dw),createSparkline:dw.__createSparkline.bind(dw),setup:S3,isEnterprise:!1}}});function F3(){return(e,t)=>{let n=[`Property [${e}] is deprecated.`,t].filter(Boolean).join(" ");hi.warnOnce(n)}}function AQ(e,t){let n=F3(),a=t==null?void 0:t.default;return vo((u,y,k)=>(k!==a&&n(y.toString(),e),k))}function DQ(e,t){let n=F3();return vo((a,u,y)=>(y!==a[e]&&(n(u.toString(),`Use [${e}] instead.`),ls(a,e,t?t(y):y)),qf),(a,u)=>(n(u.toString(),`Use [${e}] instead.`),Ns(a,e)))}var EQ=A({"packages/ag-charts-community/src/util/deprecation.ts"(){"use strict";ml(),on(),ra()}}),IQ=A({"packages/ag-charts-community/src/util/types.ts"(){"use strict"}});function TQ(e,t){return typeof t=="number"?{x:e.x+t,y:e.y+t}:{x:e.x+t.x,y:e.y+t.y}}function _3(e,t){return typeof t=="number"?{x:e.x-t,y:e.y-t}:{x:e.x-t.x,y:e.y-t.y}}function RQ(e,t){return typeof t=="number"?{x:e.x*t,y:e.y*t}:{x:e.x*t.x,y:e.y*t.y}}function N3(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function PQ(e){return e.x*e.x+e.y*e.y}function LQ(e,t){let n=_3(e,t);return Math.sqrt(n.x*n.x+n.y*n.y)}function OQ(e,t){let n=_3(e,t);return n.x*n.x+n.y*n.y}function FQ(e){let t=N3(e);return{x:e.x/t,y:e.y/t}}function _Q(e,t=z3()){return Math.atan2(e.y,e.x)-Math.atan2(t.y,t.x)}function NQ(e,t,n=z3()){let a=N3(e);return{x:n.x+a*Math.cos(t),y:n.y+a*Math.sin(t)}}function zQ(e,t,n){let a=t.x-e.x;return(n==null?t.y-e.y:n-t.y-(n-e.y))/a}function BQ(e,t,n){return(n==null?e.y:n-e.y)-t*e.x}function GQ(e,t,n=0,a){return{x:e===1/0?1/0:(n-t)/e,y:a==null?n:a-n}}function VQ(e,t,n=0,a){let u=e===1/0?1/0:e*n+t;return{x:n,y:a==null?u:a-u}}function jQ(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function HQ(e,t){return e.x===t.x&&e.y===t.y}function WQ(e,t){if(typeof e=="number")return{x:e,y:t};if("regionX"in e)return{x:e.regionX,y:e.regionY};if("offsetWidth"in e)return{x:e.offsetWidth,y:e.offsetHeight};if("width"in e)return[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y+e.height}];if("x1"in e)return[{x:e.x1,y:e.y1},{x:e.x2,y:e.y2}];throw new Error(`Values can not be converted into a vector: [${JSON.stringify(e)}] [${t}]`)}function UQ(e,t){return e.x=t.x,e.y=t.y,e}function KQ(e){var t,n;return{x:(t=e==null?void 0:e.x)!=null?t:0,y:(n=e==null?void 0:e.y)!=null?n:0}}function z3(){return{x:0,y:0}}var cE,Zj=A({"packages/ag-charts-community/src/util/vector.ts"(){"use strict";cE={add:TQ,angle:_Q,apply:UQ,equal:HQ,distance:LQ,distanceSquared:OQ,from:WQ,gradient:zQ,intercept:BQ,intersectAtX:VQ,intersectAtY:GQ,length:N3,lengthSquared:PQ,multiply:RQ,normalized:FQ,origin:z3,required:KQ,rotate:NQ,round:jQ,sub:_3}}}),qQ=A({"packages/ag-charts-community/src/module/axisModule.ts"(){"use strict"}}),YQ=A({"packages/ag-charts-community/src/module/axisOptionModule.ts"(){"use strict"}}),XQ=A({"packages/ag-charts-community/src/module/baseModule.ts"(){"use strict"}}),ZQ=A({"packages/ag-charts-community/src/module/coreModules.ts"(){"use strict"}}),$Q=A({"packages/ag-charts-community/src/module/optionsModuleTypes.ts"(){"use strict"}}),QQ=A({"packages/ag-charts-community/src/module/axisContext.ts"(){"use strict"}}),JQ=A({"packages/ag-charts-community/src/module/moduleContext.ts"(){"use strict"}}),eJ=A({"packages/ag-charts-community/src/chart/chartAnimationPhase.ts"(){"use strict"}}),tJ=A({"packages/ag-charts-community/src/chart/series/seriesEvents.ts"(){"use strict"}}),B3,yR,$j,iJ=A({"packages/ag-charts-community/src/chart/series/hierarchy/hierarchySeries.ts"(){"use strict";Mm(),cv(),on(),gn(),pv(),Pl(),B3=class Gz{constructor(t,n,a,u,y,k,R,F,_,V){this.series=t,this.index=n,this.rootIndex=a,this.datum=u,this.sizeValue=y,this.colorValue=k,this.sumSize=R,this.depth=F,this.parent=_,this.children=V,this.midPoint={x:0,y:0}}contains(t){let n=t;for(;n!=null&&n.index>=this.index;){if(n===this)return!0;n=n.parent}return!1}walk(t,n=Gz.Walk.PreOrder){n===Gz.Walk.PreOrder&&t(this),this.children.forEach(a=>{a.walk(t,n)}),n===Gz.Walk.PostOrder&&t(this)}*[Symbol.iterator](){yield this;for(let t of this.children)yield*t}},B3.Walk={PreOrder:0,PostOrder:1},yR=B3,$j=class extends df{constructor(e){super({moduleCtx:e,pickModes:[1,0]}),this.rootNode=new yR(this,0,0,void 0,0,void 0,0,void 0,void 0,[]),this.colorDomain=[0,0],this.maxDepth=0,this.colorScale=new ou,this.focusPath=[],this.animationState=new lp("empty",{empty:{update:{target:"ready",action:t=>this.animateEmptyUpdateReady(t)},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",highlight:t=>this.animateReadyHighlight(t),resize:t=>this.animateReadyResize(t),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:t=>this.animateWaitingUpdateReady(t)},reset:"empty",skip:"ready"},clearing:{update:{target:"empty",action:t=>this.animateClearingUpdateEmpty(t)},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}processData(){let{childrenKey:e,sizeKey:t,colorKey:n,colorRange:a}=this.properties,u=0,y=()=>(u+=1,u),k=0,R=1/0,F=-1/0,_=($,te,se)=>{let de=y(),pe=se.depth!=null?se.depth+1:0,Ce=e!=null?$[e]:void 0,Se=Ce==null||Ce.length===0,ve=t!=null?$[t]:void 0;Number.isFinite(ve)?ve=Math.max(ve,0):ve=Se?1:0;let ke=ve;k=Math.max(k,pe);let De=n!=null?$[n]:void 0;return typeof De=="number"&&(R=Math.min(R,De),F=Math.max(F,De)),V(new yR(this,de,te!=null?te:0,$,ve,De,ke,pe,se,[]),te,Ce)},V=($,te,se)=>(se==null||se.forEach((de,pe)=>{let Ce=_(de,te!=null?te:pe,$);$.children.push(Ce),$.sumSize+=Ce.sumSize}),$),K=V(new yR(this,0,0,void 0,0,void 0,0,void 0,void 0,[]),void 0,this.data),q=[R,F];this.colorScale.domain=R<F?[R,F]:[0,1],this.colorScale.range=a!=null?a:["black"],this.colorScale.update(),this.rootNode=K,this.maxDepth=k,this.colorDomain=q,this.focusPath=[{nodeDatum:this.rootNode,childIndex:0}]}update({seriesRect:e}){this.updateSelections(),this.updateNodes();let t=this.getAnimationData();this.checkResize(e)&&this.animationState.transition("resize",t),this.animationState.transition("update",t)}resetAllAnimation(e){var n;let t=(n=this.animationResetFns)==null?void 0:n.datum;this.ctx.animationManager.stopByAnimationGroupId(this.id),t!=null&&io(e.datumSelections,t)}animateEmptyUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}animateWaitingUpdateReady(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}animateReadyHighlight(e){var n;let t=(n=this.animationResetFns)==null?void 0:n.datum;t!=null&&io([e],t)}animateReadyResize(e){this.resetAllAnimation(e)}animateClearingUpdateEmpty(e){this.ctx.animationManager.skipCurrentBatch(),this.resetAllAnimation(e)}isProcessedDataAnimatable(){return!0}checkProcessedDataAnimatable(){this.isProcessedDataAnimatable()||this.ctx.animationManager.skipCurrentBatch()}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(e){let{colorKey:t,colorName:n,colorRange:a}=this.properties,{id:u,ctx:{legendManager:y},visible:k}=this;return e==="gradient"&&t!=null&&a!=null?[{legendType:"gradient",enabled:k&&y.getItemEnabled({seriesId:u}),seriesId:u,colorName:n,colorRange:a,colorDomain:this.colorDomain}]:[]}getDatumIdFromData(e){return`${e.index}`}getDatumId(e){return this.getDatumIdFromData(e)}pickFocus(e){var y,k;if(this.rootNode.children.length===0)return;this.focusPath.length===0&&hi.error("this.focusPath should not be empty");let{datumIndexDelta:t,otherIndexDelta:n}=e,{focusPath:a}=this,u=a.length-2;if(n!==0||a.length===1){let R=Math.max(0,u+n);if(a[R+1]==null){let F=a[a.length-1];for(;F.nodeDatum.children.length>0&&((y=F.nodeDatum.depth)!=null?y:-1)<R;){let _={nodeDatum:F.nodeDatum.children[0],childIndex:0};a.push(_),F=_}return this.computeFocusOutputs(F)}else return a.length=R+2,this.computeFocusOutputs(a[R+1])}else{if(t===0)return this.computeFocusOutputs(a[a.length-1]);{let R=a[u+1].childIndex+t,F=a[u].nodeDatum,_=(k=F==null?void 0:F.children)==null?void 0:k.length;if(_!=null){let V=fn(0,R,_-1),K={nodeDatum:F.children[V],childIndex:V};return a[u+1]=K,a.length=u+2,this.computeFocusOutputs(K)}}}}getDatumAriaText(e,t){var n;if(!(e instanceof yR)){hi.error(`datum is not HierarchyNode: ${JSON.stringify(e)}`);return}return this.ctx.localeManager.t("ariaAnnounceHierarchyDatum",{level:((n=e.depth)!=null?n:-1)+1,count:e.children.length,description:t})}computeFocusOutputs({nodeDatum:e,childIndex:t}){let n=this.computeFocusBounds(e);if(n)return{datum:e,datumIndex:t,otherIndex:e.depth,bounds:n,showFocusBox:!0,clipFocusBox:!0}}}}}),uw,nJ=A({"packages/ag-charts-community/src/chart/series/hierarchy/hierarchySeriesProperties.ts"(){"use strict";Ai(),YL(),_n(),uw=class extends el{constructor(){super(...arguments),this.childrenKey="children",this.fills=Object.values(zl),this.strokes=Object.values(ny)}},b([Ge(ei)],uw.prototype,"childrenKey",2),b([Ge(ei,{optional:!0})],uw.prototype,"sizeKey",2),b([Ge(ei,{optional:!0})],uw.prototype,"colorKey",2),b([Ge(ei,{optional:!0})],uw.prototype,"colorName",2),b([Ge(hs)],uw.prototype,"fills",2),b([Ge(hs)],uw.prototype,"strokes",2),b([Ge(hs,{optional:!0})],uw.prototype,"colorRange",2)}}),aJ=A({"packages/ag-charts-community/src/chart/series/topologySeries.ts"(){"use strict"}}),oJ=A({"packages/ag-charts-community/src/chart/series/flowProportionSeries.ts"(){"use strict"}}),rJ=A({"packages/ag-charts-community/src/chart/series/topology/geojson.ts"(){"use strict"}}),Qj,sJ=A({"packages/ag-charts-community/src/chart/series/topology/lonLatBbox.ts"(){"use strict";Qj=class{constructor(e,t,n,a){this.lon0=e,this.lat0=t,this.lon1=n,this.lat1=a}merge(e){this.lon0=Math.min(this.lon0,e.lon0),this.lat0=Math.min(this.lat0,e.lat0),this.lon1=Math.max(this.lon1,e.lon1),this.lat1=Math.max(this.lat1,e.lat1)}}}}),lJ=A({"packages/ag-charts-community/src/chart/series/gaugeSeries.ts"(){"use strict"}}),PF,Jj,cJ=A({"packages/ag-charts-community/src/chart/axis/axisTicks.ts"(){"use strict";Np(),vn(),xo(),Dr(),ic(),gh(),Zl(),gn(),gD(),Nc(),tu(),Om(),N0(),up(),PF=class u6{constructor(){this.id=Os(this),this.axisGroup=new Aa({name:`${this.id}-AxisTicks`,zIndex:2}),this.labelSelection=er.select(this.axisGroup,Lo),this.interval=new _m,this.label=new go,this.scale=new Xc,this.position="bottom",this.translationX=0,this.translationY=0,this.padding=0}attachAxis(t){t.appendChild(this.axisGroup)}calculateLayout(){this.scale.interval=this.interval.step;let t=[],n=this.generateTicks(),{translationX:a,translationY:u}=this;return this.labelSelection.update(n.ticks.map(y=>this.createLabelDatum(y)),void 0,y=>y.tickId),this.labelSelection.each((y,k)=>{y.setProperties(k),k.visible&&t.push(y.getBBox())}),this.axisGroup.setProperties({translationX:a,translationY:u}),ki.merge(t)}getLabelParams(t){let{padding:n}=this,{translate:a}=t;switch(this.position){case"top":case"bottom":return{x:a,y:n,textAlign:"center",textBaseline:"top"};case"left":case"right":return{x:n,y:a,textAlign:"start",textBaseline:"middle"}}}inRange(t,n=.001){let[a,u]=ss(this.scale.range);return t>=a-n&&t<=u+n}createLabelDatum(t){let{x:n,y:a,textBaseline:u,textAlign:y}=this.getLabelParams(t);return{visible:!!t.tickLabel,tickId:t.tickId,fill:this.label.color,fontFamily:this.label.fontFamily,fontSize:this.label.fontSize,fontStyle:this.label.fontStyle,fontWeight:this.label.fontWeight,rotation:0,rotationCenterX:0,text:t.tickLabel,textAlign:y,textBaseline:u,x:n,y:a}}generateTicks(){let{minSpacing:t,maxSpacing:n}=this.interval,a=ga(dm(this.scale.range),2),{maxTickCount:u,minTickCount:y,tickCount:k}=h0(a,t,n,u6.DefaultTickCount,u6.DefaultMinSpacing);k&&(this.scale.tickCount=k,this.scale.minTickCount=y,this.scale.maxTickCount=u);let R=this.getTicksData();if(this.position==="bottom"||this.position==="top"){let F=Zh.getMeasurer({font:this.label}),_=this.scale.getDomain(),K=_[0]>_[1]?-1:1,q=-1/0*K;R.ticks=R.ticks.filter($=>Math.sign($.translate-q)!==K?!1:(q=$.translate+F.textWidth($.tickLabel,!0)*K,!0))}return R}getTicksData(){var k,R,F;let t=[],n=this.scale.ticks(),a=n.reduce((_,V)=>Math.max(_,tx(V)),0),u=Hx(),y=this.label.format?this.scale.tickFormat({ticks:n,specifier:this.label.format}):_=>fs(_,a);for(let _=0;_<n.length;_++){let V=n[_],K=this.scale.convert(V);if(!this.inRange(K))continue;let q=(F=(R=(k=this.label).formatter)==null?void 0:R.call(k,{value:V,index:_,fractionDigits:a}))!=null?F:y(V),$=u(q);t.push({tick:V,tickId:$,tickLabel:q,translate:K})}return{rawTicks:n,fractionDigits:a,ticks:t}}},PF.DefaultTickCount=5,PF.DefaultMinSpacing=50,Jj=PF}}),dJ=A({"packages/ag-charts-community/src/chart/chartAxis.ts"(){"use strict"}}),eH,uJ=A({"packages/ag-charts-community/src/chart/legend/legendDatum.ts"(){"use strict";eH=0}});function hJ(e,t){let n=Hn("button",LF("ag-charts-input ag-charts-button",t));return e.label!==void 0?n.append(e.label):(n.append(tH(e.icon)),n.ariaLabel=e.altText),n.addEventListener("click",e.onPress),ag(n,t),n}function gJ(e,t){let n=Hn("input",LF("ag-charts-input ag-charts-checkbox",t));return n.type="checkbox",n.checked=e.checked,n.addEventListener("change",a=>e.onChange(n.checked,a)),n.addEventListener("keydown",a=>{Ss(a)&&(a.preventDefault(),n.click())}),ag(n,t),n}function pJ(e,t){let n=Hn("select",LF("ag-charts-input ag-charts-select",t));return n.append(...e.options.map(a=>{let u=Hn("option");return u.value=a.value,u.textContent=a.label,u})),Ya(n,"data-preventdefault",!1),n.value=e.value,n.addEventListener("change",a=>e.onChange(n.value,a)),ag(n,t),n}function mJ(e,t){let n=Hn("textarea",LF("ag-charts-input ag-charts-textarea",t));return n.value=e.value,n.addEventListener("input",a=>e.onChange(n.value,a)),ag(n,t),n}function tH(e){let t=Hn("span",`ag-charts-icon ag-charts-icon-${e}`);return Ya(t,"aria-hidden",!0),t}function LF(e,t){return t==null?e:`${e} ${t.class}`}var fJ=A({"packages/ag-charts-community/src/dom/elements.ts"(){"use strict";vr(),Rn(),mp()}}),vJ=A({"packages/ag-charts-community/src/scale/scale.ts"(){"use strict"}}),iH,yJ=A({"packages/ag-charts-community/src/scene/gradient/conicGradient.ts"(){"use strict";Ko(),Tm(),iH=class extends fd{constructor(e,t,n=0,a){super(e,t,a),this.angle=n}createCanvasGradient(e,t){let{angle:a}=this,u=Fn(ma(a+90)),y=t.x+t.width*.5,k=t.y+t.height*.5;return e.createConicGradient(u,y,k)}}}}),OF,bJ=A({"packages/ag-charts-community/src/scene/shape/svgPath.ts"(){"use strict";Ll(),OF=class extends br{constructor(e=""){super(),this.x=0,this.y=0,this.commands=[],this._d="",this.d=e}get d(){return this._d}set d(e){if(e!==this._d){this._d=e,this.commands.length=0;for(let[t,n,a]of e.matchAll(/([A-Z])([0-9. ]*)/g)){let u=a.split(/\s+/g).map(Number);this.commands.push([n,u])}this.checkPathDirty()}}updatePath(){let{path:e,x:t,y:n}=this;e.clear();let a=t,u=n;for(let[y,k]of this.commands)switch(y){case"M":e.moveTo(t+k[0],n+k[1]),a=t+k[0];break;case"C":e.cubicCurveTo(t+k[0],n+k[1],t+k[2],n+k[3],t+k[4],n+k[5]),a=t+k[4],u=n+k[5];break;case"H":e.lineTo(t+k[0],u),a=n+k[0];break;case"L":e.lineTo(t+k[0],n+k[1]),a=t+k[0],u=n+k[1];break;case"V":e.lineTo(a,n+k[0]),u=n+k[0];break;case"Z":e.closePath();break;default:throw new Error(`Could not translate command '${y}' with '${k.join(" ")}'`)}e.closePath()}},b([qi()],OF.prototype,"x",2),b([qi()],OF.prototype,"y",2)}}),FF,G3,nH=A({"packages/ag-charts-community/src/chart/marker/arrowUp.ts"(){"use strict";Qs(),FF=class NZ extends Ol{updatePath(){let t=this.size/2;super.applyPath(t,NZ.moves)}},FF.className="ArrowUp",FF.moves=[{x:0,y:0,t:"move"},{x:1,y:1.2},{x:-.5,y:0},{x:0,y:.8},{x:-1,y:0},{x:0,y:-.8},{x:-.5,y:0}],G3=FF}}),V3,CJ=A({"packages/ag-charts-community/src/chart/marker/arrowDown.ts"(){"use strict";nH(),Qs(),V3=class extends Ol{updatePath(){let e=this.size/2;super.applyPath(e,G3.moves.map(t=>({x:t.x*-1,y:t.y*-1})))}},V3.className="ArrowDown"}}),aH={};E(aH,{ButtonWidget:()=>uu,NativeWidget:()=>vp,SliderWidget:()=>J0,ToolbarWidget:()=>eS,WIDGET_HTML_EVENTS:()=>xb,Widget:()=>du,WidgetEventUtil:()=>Iv});var oH=A({"packages/ag-charts-community/src/widget/exports.ts"(){"use strict";Gm(),Mb(),Ab(),Sd(),$0(),CM()}}),j3,_F,H3=A({"packages/ag-charts-community/src/components/popover/popover.ts"(){"use strict";mh(),Rn(),mp(),j3="canvas-overlay",_F=class extends V0{constructor(e,t,n){super(),this.ctx=e,this.hideFns=[],this.moduleId=`popover-${t}`,n!=null&&n.detached?this.element=Hn("div"):this.element=e.domManager.addChild(j3,this.moduleId),this.element.setAttribute("role","presentation"),this.destroyFns.push(()=>e.domManager.removeChild(j3,this.moduleId))}attachTo(e){this.element.parentElement||e.element.append(this.element)}hide(e){let{lastFocus:t=this.lastFocus}=e!=null?e:{};this.element.children.length!==0&&(this.hideFns.forEach(n=>n()),t==null||t.focus(),this.lastFocus=void 0)}removeChildren(){this.element.replaceChildren()}showWithChildren(e,t){if(!this.element.parentElement)throw new Error("Can not show popover that has not been attached to a parent.");let n=Hn("div","ag-charts-popover");if(t.ariaLabel!=null&&n.setAttribute("aria-label",t.ariaLabel),t.class!=null&&n.classList.add(t.class),n.replaceChildren(...e),this.element.replaceChildren(n),this.hideFns.push(()=>this.removeChildren()),t.onHide&&this.hideFns.push(t.onHide),t.initialFocus&&t.sourceEvent){let a=og(t.sourceEvent);a!==void 0&&(this.lastFocus=a,this.initialFocus=t.initialFocus)}return n}getPopoverElement(){return this.element.firstElementChild}updatePosition(e){var n;let t=this.getPopoverElement();t&&(t.style.setProperty("right","unset"),t.style.setProperty("bottom","unset"),e.x!=null&&t.style.setProperty("left",`${Math.floor(e.x)}px`),e.y!=null&&t.style.setProperty("top",`${Math.floor(e.y)}px`),(n=this.initialFocus)==null||n.focus(),this.initialFocus=void 0)}}}}),W3,rH=A({"packages/ag-charts-community/src/components/popover/anchoredPopover.ts"(){"use strict";Rn(),gn(),H3(),W3=class extends _F{setAnchor(e,t){this.anchor=e,this.fallbackAnchor=t,this.updatePosition(e),this.repositionWithinBounds()}showWithChildren(e,t){var y,k;let n=(y=t.anchor)!=null?y:this.anchor,a=(k=t.fallbackAnchor)!=null?k:this.fallbackAnchor,u=super.showWithChildren(e,t);return n&&this.setAnchor(n,a),ia().requestAnimationFrame(()=>{this.repositionWithinBounds()}),u}repositionWithinBounds(){let{anchor:e,ctx:t,fallbackAnchor:n}=this,a=this.getPopoverElement();if(!e||!a)return;let u=t.domManager.getBoundingClientRect(),{offsetWidth:y,offsetHeight:k}=a,R=fn(0,e.x,u.width-y),F=fn(0,e.y,u.height-k);R!==e.x&&(n==null?void 0:n.x)!=null&&(R=fn(0,n.x-y,u.width-y)),F!==e.y&&(n==null?void 0:n.y)!=null&&(F=fn(0,n.y-k,u.height-k)),this.updatePosition({x:R,y:F})}}}}),sH,SJ=A({"packages/ag-charts-community/src/components/menu/menu.ts"(){"use strict";Rn(),mp(),rH(),sH=class extends W3{show(e){let t=e.items.map(a=>this.createRow(e,a)),n=this.showWithChildren(t,e);n.classList.add("ag-charts-menu"),n.setAttribute("role","menu"),this.menuCloser=sT({orientation:"vertical",menu:n,buttons:t,sourceEvent:e.sourceEvent,closeCallback:()=>this.hide()}),this.hideFns.push(()=>{var a;(a=this.menuCloser)==null||a.finishClosing(),this.menuCloser=void 0})}createRow(e,t){let{menuItemRole:n="menuitem"}=e,a=t.value===e.value,u=Hn("div","ag-charts-menu__row");if(u.setAttribute("role",n),n==="menuitemradio"&&u.setAttribute("aria-checked",(e.value===t.value).toString()),typeof t.value=="string"&&(u.dataset.popoverId=t.value),u.classList.toggle("ag-charts-menu__row--active",a),t.icon!=null){let F=Hn("span",`ag-charts-menu__icon ${nb(t.icon)}`);u.appendChild(F)}let y=t.strokeWidth!=null;if(y&&(u.classList.toggle("ag-charts-menu__row--stroke-width-visible",y),u.style.setProperty("--strokeWidth",y?`${t.strokeWidth}px`:null)),t.label!=null){let F=Hn("span","ag-charts-menu__label");F.textContent=this.ctx.localeManager.t(t.label),u.appendChild(F)}"altText"in t&&(u.ariaLabel=this.ctx.localeManager.t(t.altText));let k=()=>{var F;(F=e.onPress)==null||F.call(e,t)},R=F=>{Ss(F)&&(k(),F.preventDefault(),F.stopPropagation())};return u.addEventListener("keydown",R),u.addEventListener("click",R),u.addEventListener("mousemove",()=>{u.focus({preventScroll:!0})}),u}}}}),U3,lH=A({"packages/ag-charts-community/src/components/popover/draggablePopover.ts"(){"use strict";Zj(),H3(),U3=class extends _F{constructor(){super(...arguments),this.dragged=!1}setDragHandle(e){e.addListener("drag-start",t=>{e.addClass(this.dragHandleDraggingClass),this.onDragStart(t)}),e.addListener("drag-move",this.onDragMove.bind(this)),e.addListener("drag-end",()=>{e.removeClass(this.dragHandleDraggingClass),this.onDragEnd.bind(this)})}onDragStart(e){let t=this.getPopoverElement();t&&(e.sourceEvent.preventDefault(),this.dragged=!0,this.dragStartState={client:cE.from(e.clientX,e.clientY),position:cE.from(Number(t.style.getPropertyValue("left").replace("px","")),Number(t.style.getPropertyValue("top").replace("px","")))})}onDragMove(e){let{dragStartState:t}=this,n=this.getPopoverElement();if(!t||!n)return;let a=cE.sub(cE.from(e.clientX,e.clientY),t.client),u=cE.add(t.position,a),y=this.ctx.domManager.getBoundingClientRect(),k={};u.x>=y.x&&u.x+n.offsetWidth<=y.width&&(k.x=u.x),u.y>=y.y&&u.y+n.offsetHeight<=y.height&&(k.y=u.y),this.updatePosition(k)}onDragEnd(){this.dragStartState=void 0}}}}),bR,wJ=A({"packages/ag-charts-community/src/components/toolbar/toolbarButtonProperties.ts"(){"use strict";zn(),Ai(),bR=class extends dn{},b([Ge(ei,{optional:!0})],bR.prototype,"icon",2),b([Ge(ei,{optional:!0})],bR.prototype,"label",2),b([Ge(ei,{optional:!0})],bR.prototype,"ariaLabel",2),b([Ge(ei,{optional:!0})],bR.prototype,"tooltip",2)}}),K3,cH=A({"packages/ag-charts-community/src/components/toolbar/toolbarButtonWidget.ts"(){"use strict";vr(),Rn(),$0(),K3=class extends uu{constructor(e){super(),this.localeManager=e}update(e){let{localeManager:t}=this;e.tooltip&&(this.elem.title=t.t(e.tooltip));let n="";if(e.icon!=null&&(n=`<span class="${nb(e.icon)} ag-charts-toolbar__icon"></span>`),e.label!=null){let a=t.t(e.label);n=`${n}<span class="ag-charts-toolbar__label">${a}</span>`}this.elem.innerHTML=n}setChecked(e){Ya(this.elem,"aria-checked",e)}}}}),q3,NF,dH,uH=A({"packages/ag-charts-community/src/components/toolbar/toolbar.ts"(){"use strict";vn(),ng(),zn(),Sd(),cH(),q3="ag-charts-toolbar__button--active",NF=class extends eS{constructor(e,t="horizontal"){super(t),this.localeManager=e,this.horizontalSpacing=10,this.verticalSpacing=10,this.events=new vh,this.hasPrefix=!1,this.buttonWidgets=[],this.addClass("ag-charts-toolbar"),this.toggleClass("ag-charts-toolbar--horizontal",t==="horizontal"),this.toggleClass("ag-charts-toolbar--vertical",t==="vertical")}addToolbarListener(e,t){return this.events.addListener(e,t)}clearButtons(){for(let e of this.buttonWidgets)e.destroy();this.buttonWidgets.splice(0)}updateButtons(e){var n;let{buttonWidgets:t}=this;for(let[a,u]of e.entries())((n=this.buttonWidgets.at(a))!=null?n:this.createButton(a,u)).update(u);for(let a=e.length;a<t.length;a++){let u=this.buttonWidgets.at(a);u==null||u.destroy()}this.buttonWidgets.splice(e.length),this.refreshButtonClasses()}updateButtonByIndex(e,t){var n;(n=this.buttonWidgets.at(e))==null||n.update(t)}clearActiveButton(){for(let e of this.buttonWidgets)e.toggleClass(q3,!1)}toggleActiveButtonByIndex(e){if(e!==-1)for(let[t,n]of this.buttonWidgets.entries())n.toggleClass(q3,e!=null&&e===t)}toggleButtonEnabledByIndex(e,t){var n;e!==-1&&((n=this.buttonWidgets.at(e))==null||n.setEnabled(t))}toggleSwitchCheckedByIndex(e,t){var n;e!==-1&&((n=this.buttonWidgets.at(e))==null||n.setChecked(t))}getButtonBounds(){return this.buttonWidgets.map(e=>this.getButtonWidgetBounds(e))}setButtonHiddenByIndex(e,t){var n;(n=this.buttonWidgets.at(e))==null||n.setHidden(t)}getButtonWidgetBounds(e){let t=this.getBounds(),n=e.getBounds();return new ki(n.x+t.x,n.y+t.y,n.width,n.height)}refreshButtonClasses(){var y;let{buttonWidgets:e,hasPrefix:t}=this,n,a,u;for(let[k,R]of e.entries())n=!t&&k===0||u!=R.section,a=k===e.length-1||R.section!=((y=e.at(k+1))==null?void 0:y.section),R.toggleClass("ag-charts-toolbar__button--first",n),R.toggleClass("ag-charts-toolbar__button--last",a),R.toggleClass("ag-charts-toolbar__button--gap",k>0&&n),u=R.section}createButton(e,t){let n=this.createButtonWidget();return n.addClass("ag-charts-toolbar__button"),n.addListener("click",a=>{let u=ge({index:e},t instanceof dn?t.toJson():t),y=this.getButtonWidgetBounds(n);this.events.dispatch("button-pressed",{event:a,button:u,buttonBounds:y})}),n.addListener("focus",()=>{this.events.dispatch("button-focused",{button:{index:e}})}),t.section&&(n.section=t.section),this.buttonWidgets.push(n),this.addChild(n),n}},dH=class extends NF{createButtonWidget(){return new K3(this.localeManager)}}}}),hH,gH,pH,xJ=A({"packages/ag-charts-community/src/components/toolbar/floatingToolbar.ts"(){"use strict";vn(),Rn(),gn(),Ab(),lH(),uH(),hH=class extends U3{constructor(e,t,n){super(e,t),this.onPopoverMoved=n,this.dragHandleDraggingClass="ag-charts-floating-toolbar__drag-handle--dragging"}show(e,t){this.showWithChildren(e,He(ge({},t),{class:"ag-charts-floating-toolbar"}))}hide(){this.dragged=!1,super.hide()}getBounds(){var t,n,a,u;let e=this.getPopoverElement();return new ki((t=e==null?void 0:e.offsetLeft)!=null?t:0,(n=e==null?void 0:e.offsetTop)!=null?n:0,(a=e==null?void 0:e.offsetWidth)!=null?a:0,(u=e==null?void 0:e.offsetHeight)!=null?u:0)}hasBeenDragged(){return this.dragged}setAnchor(e,t,n){var _;let a=this.getPopoverElement();if(!a)return;let u=(_=e.position)!=null?_:"above",{offsetWidth:y,offsetHeight:k}=a,R=e.y-k-n,F=e.x-y/2;u==="below"?R=e.y+n:u==="right"?(R=e.y-k/2,F=e.x+t):u==="above-left"&&(F=e.x),this.updatePosition({x:F,y:R})}ignorePointerEvents(){let e=this.getPopoverElement();e&&(e.style.pointerEvents="none")}capturePointerEvents(){let e=this.getPopoverElement();e&&(e.style.pointerEvents="unset")}updatePosition(e){let t=this.getBounds(),n=this.ctx.domManager.getBoundingClientRect();e.x=Math.floor(fn(0,e.x,n.width-t.width)),e.y=Math.floor(fn(0,e.y,n.height-t.height)),super.updatePosition(e),this.onPopoverMoved()}},gH=class extends NF{constructor(e,t){super(e.localeManager),this.hasPrefix=!0,this.popover=new hH(e,t,this.onPopoverMoved.bind(this)),this.dragHandle=new pH(e.localeManager.t("toolbarAnnotationsDragHandle")),this.popover.setDragHandle(this.dragHandle)}show(e){this.popover.show([this.dragHandle.getElement(),this.getElement()],e)}hide(){this.popover.hide()}setAnchor(e){this.popover.setAnchor(e,this.horizontalSpacing,this.verticalSpacing)}hasBeenDragged(){return this.popover.hasBeenDragged()}ignorePointerEvents(){this.popover.ignorePointerEvents()}capturePointerEvents(){this.popover.capturePointerEvents()}onPopoverMoved(){var n;let e=this.popover.getBounds();if((n=this.popoverBounds)!=null&&n.equals(e))return;this.popoverBounds=e.clone();let t=this.getButtonBounds();this.events.dispatch("toolbar-moved",{popoverBounds:e,buttonBounds:t})}getButtonWidgetBounds(e){let t=this.popover.getBounds(),n=super.getButtonWidgetBounds(e),a=this.dragHandle.getBounds();return new ki(n.x+t.x-a.width,n.y+t.y,n.width,n.height)}},pH=class extends vp{constructor(e){super(Hn("div","ag-charts-floating-toolbar__drag-handle"));let t=new vp(Hn("span",`${nb("drag-handle")} ag-charts-toolbar__icon`));t.setAriaHidden(!0),this.addChild(t),this.elem.title=e}}}}),mH={};E(mH,{AND:()=>Hs,ARRAY:()=>sh,ARRAY_OF:()=>ud,AbstractBarSeries:()=>e3,AbstractBarSeriesProperties:()=>WO,ActionOnSet:()=>vs,AnchoredPopover:()=>W3,Animation:()=>ox,AnimationManager:()=>qm,Arc:()=>Df,ArrowDown:()=>V3,ArrowUp:()=>G3,Axis:()=>hp,AxisInterval:()=>_m,AxisLabel:()=>go,AxisTick:()=>yv,AxisTicks:()=>Jj,BBox:()=>ki,BBoxValues:()=>Fs,BOOLEAN:()=>Oi,BOOLEAN_ARRAY:()=>xI,Background:()=>xg,BackgroundModule:()=>Xv,BandScale:()=>zo,BarSeries:()=>UL,BarSeriesModule:()=>s3,BaseModuleInstance:()=>V0,BaseProperties:()=>dn,BaseToolbar:()=>NF,ButtonWidget:()=>uu,COLOR_STRING:()=>sa,COLOR_STRING_ARRAY:()=>hs,CachedTextMeasurer:()=>Ox,CachedTextMeasurerPool:()=>Zh,Caption:()=>qa,CartesianAxis:()=>gp,CartesianSeries:()=>Op,CartesianSeriesNodeEvent:()=>Zb,CartesianSeriesProperties:()=>yu,CategoryAxis:()=>Cv,ChangeDetectableProperties:()=>tE,ChartAxisDirection:()=>s0,ChartEventManager:()=>ZD,ChartOptions:()=>I3,ChartUpdateType:()=>hg,Circle:()=>Ip,CollapseMode:()=>Xi,Color:()=>Jo,ColorScale:()=>ou,ConicGradient:()=>iH,ContextMenuRegistry:()=>IM,ContinuousScale:()=>Ha,Cursor:()=>Xm,CursorManager:()=>Zm,DATE:()=>yl,DATE_ARRAY:()=>MI,DATE_OR_DATETIME_MS:()=>bl,DEFAULT_CARTESIAN_DIRECTION_KEYS:()=>qc,DEFAULT_CARTESIAN_DIRECTION_NAMES:()=>wg,DEFAULT_TOOLTIP_CLASS:()=>xs,DEFAULT_TOOLTIP_DARK_CLASS:()=>A1,DIRECTION:()=>Ur,DOMManager:()=>mM,DataController:()=>Bb,DataModel:()=>Ov,DataModelSeries:()=>ar,DataService:()=>Xs,Debug:()=>la,Default:()=>Fm,Deprecated:()=>AQ,DeprecatedAndRenamedTo:()=>DQ,Diamond:()=>lk,DraggablePopover:()=>U3,DropShadow:()=>Mu,ExtendedPath2D:()=>Vv,FONT_STYLE:()=>Tc,FONT_WEIGHT:()=>Rc,FUNCTION:()=>vl,FloatingToolbar:()=>gH,GREATER_THAN:()=>Wa,GestureDetector:()=>Md,Gradient:()=>fd,Group:()=>Wi,GroupedCategoryAxis:()=>ba,HdpiCanvas:()=>lg,HierarchyNode:()=>yR,HierarchySeries:()=>$j,HierarchySeriesProperties:()=>uw,HighlightManager:()=>cS,HighlightProperties:()=>Pp,HighlightStyle:()=>vf,INTERACTION_RANGE:()=>wm,INTERPOLATION_STEP_POSITION:()=>l,INTERPOLATION_TYPE:()=>r,Image:()=>Ld,InteractionManager:()=>Km,InteractionState:()=>Ks,InterpolationProperties:()=>m,Invalidating:()=>xr,KeyNavManager:()=>TM,LABEL_PLACEMENT:()=>lh,LARGEST_KEY_INTERVAL:()=>we,LESS_THAN:()=>tv,LINE_CAP:()=>kI,LINE_DASH:()=>hd,LINE_JOIN:()=>AI,LINE_STYLE:()=>DI,Label:()=>mr,LayoutElement:()=>aM,LayoutManager:()=>fh,LegendMarkerLabel:()=>sr,Line:()=>ms,LineSeries:()=>KL,LineSeriesModule:()=>d3,LinearGradient:()=>sp,LinearScale:()=>Xc,Listeners:()=>vh,Logger:()=>hi,LonLatBBox:()=>Qj,MARKER_SHAPE:()=>LL,MATCHING_CROSSLINE_TYPE:()=>E0,MAX_SPACING:()=>qy,MIN_SPACING:()=>xm,Marker:()=>Ol,Menu:()=>sH,MercatorScale:()=>CF,ModuleRegistry:()=>ID,Motion:()=>Yn,NAN:()=>Jd,NODE_UPDATE_STATE_TO_PHASE_MAPPING:()=>zs,NUMBER:()=>Bn,NUMBER_ARRAY:()=>Wy,NUMBER_OR_NAN:()=>Ar,NativeWidget:()=>vp,Node:()=>pl,OBJECT:()=>Ei,OBJECT_ARRAY:()=>wx,OR:()=>rh,OVERFLOW_STRATEGY:()=>xx,ObserveChanges:()=>gv,OrdinalTimeScale:()=>tc,PHASE_METADATA:()=>Xn,PHASE_ORDER:()=>jh,PLACEMENT:()=>r0,PLAIN_OBJECT:()=>o0,POINTER_INTERACTION_TYPES:()=>AM,POSITION:()=>Uy,POSITION_TOP_COORDINATES:()=>ub,POSITIVE_NUMBER:()=>ni,PREV_NEXT_KEYS:()=>rg,Padding:()=>fr,ParallelStateMachine:()=>jx,Path:()=>br,PointerEvents:()=>OA,PolarAxis:()=>Vk,PolarSeries:()=>ZL,PolarZIndexMap:()=>y3,Popover:()=>_F,PropertiesArray:()=>Uh,ProxyInteractionService:()=>BD,ProxyOnWrite:()=>VP,ProxyProperty:()=>tr,ProxyPropertyOnWrite:()=>Kr,QUICK_TRANSITION:()=>Jg,RATIO:()=>Cn,REAL_NUMBER:()=>Kh,RENDER_TO_OFFSCREEN_CANVAS_THRESHOLD:()=>Lp,RadialColumnShape:()=>Yp,Range:()=>oc,Rect:()=>Za,RegionManager:()=>dg,RepeatType:()=>JC,Rotatable:()=>nu,RotatableGroup:()=>v0,RotatableText:()=>Pm,SKIP_JS_BUILTINS:()=>ZC,SMALLEST_KEY_INTERVAL:()=>le,SORT_DOMAIN_GROUPS:()=>Ae,STRING:()=>ei,STRING_ARRAY:()=>qA,Scalable:()=>md,ScalableGroup:()=>TI,Scene:()=>Rv,SceneChangeDetection:()=>Mi,ScenePathChangeDetection:()=>qi,Sector:()=>mc,SectorBox:()=>h3,Selection:()=>er,Series:()=>df,SeriesContentZIndexMap:()=>wS,SeriesGroupingChangedEvent:()=>dc,SeriesItemHighlightStyle:()=>xh,SeriesMarker:()=>_d,SeriesNodeEvent:()=>ir,SeriesNodePickMode:()=>MS,SeriesProperties:()=>el,SeriesTooltip:()=>pc,SeriesZIndexMap:()=>$M,Shape:()=>ps,SimpleTextMeasurer:()=>Rm,SliderWidget:()=>J0,Square:()=>TS,StateMachine:()=>lp,StateMachineProperty:()=>VI,SvgPath:()=>OF,TEXT_ALIGN:()=>Ky,TEXT_WRAP:()=>iv,TICK_INTERVAL:()=>_0,Text:()=>Lo,TextUtils:()=>ho,TextWrapper:()=>mv,ThemeConstants:()=>GO,ThemeSymbols:()=>_1,TimeScale:()=>rv,Toolbar:()=>dH,ToolbarButtonProperties:()=>bR,ToolbarButtonWidget:()=>K3,ToolbarWidget:()=>eS,Tooltip:()=>vu,TooltipManager:()=>uS,TooltipPosition:()=>Wv,Transformable:()=>Wo,TransformableText:()=>ru,Translatable:()=>Yh,TranslatableGroup:()=>Aa,Triangle:()=>gf,UNION:()=>uo,UpdateService:()=>El,VERTICAL_ALIGN:()=>Pc,Validate:()=>Ge,Vec2:()=>cE,Vec4:()=>hS,WIDGET_HTML_EVENTS:()=>xb,Widget:()=>du,WidgetEventUtil:()=>Iv,ZIndexMap:()=>CD,ZoomManager:()=>zM,__FORCE_MODULE_DETECTION:()=>eH,accumulateGroup:()=>i,accumulateStack:()=>v,accumulatedValue:()=>$b,accumulativeValueProperty:()=>il,addHitTestersToQuadtree:()=>$z,adjustLabelPlacement:()=>E6,angleBetween:()=>ob,angleDiff:()=>NP,animationValidation:()=>Qb,areScalingEqual:()=>Ja,area:()=>HS,arraysEqual:()=>th,backfillPathPointData:()=>ZZ,buildFormatter:()=>ta,buildResetPathFn:()=>Xz,calculateDefaultTimeTickFormat:()=>Cx,calculateDerivativeExtrema:()=>AS,calculateDerivativeExtremaXY:()=>zT,calculateLabelChartPadding:()=>yD,calculateLabelTranslation:()=>Kx,calculatePlacement:()=>rk,checkCrisp:()=>A6,circularSliceArray:()=>Zf,clamp:()=>fn,clampArray:()=>Yu,clippedRoundRect:()=>tC,clockwiseAngle:()=>sD,clockwiseAngles:()=>_c,collapsedStartingBarPosition:()=>jL,compareDates:()=>nD,computeBarFocusBounds:()=>i3,computeMarkerFocusBounds:()=>BL,countFractionDigits:()=>tx,createButton:()=>hJ,createCheckbox:()=>gJ,createDatumId:()=>ee,createDeprecationWarning:()=>F3,createElement:()=>Hn,createElementId:()=>PI,createElementNS:()=>ap,createIcon:()=>tH,createId:()=>Os,createSelect:()=>pJ,createTextArea:()=>mJ,dateToNumber:()=>kr,datesSortOrder:()=>Ax,datumKeys:()=>Ad,datumStylerProperties:()=>Tp,debounce:()=>eh,deconstructSelectionsOrNodes:()=>Vh,deepClone:()=>Us,deepFreeze:()=>Oy,deepMerge:()=>Py,defaultTimeTickFormat:()=>Vy,diff:()=>Z,displacePointFromVector:()=>FI,doOnce:()=>Zd,downloadUrl:()=>y0,drawCorner:()=>XS,easing:()=>Yn,enterpriseModule:()=>ku,evaluateBezier:()=>kS,excludesType:()=>Yf,extent:()=>ep,extractDecoratedProperties:()=>FA,findMaxIndex:()=>iD,findMaxValue:()=>LP,findMinIndex:()=>EI,findMinMax:()=>ss,findMinValue:()=>p0,findQuadtreeMatch:()=>Qz,findRangeExtent:()=>dm,fixNumericExtent:()=>$s,focusCursorAtEnd:()=>_P,formatNumber:()=>w0,formatPercent:()=>S0,formatValue:()=>fs,fromToMotion:()=>to,generateUUID:()=>Bh,getAngleRatioRadians:()=>rb,getDatumRefPoint:()=>t1,getDocument:()=>Uo,getElementBBox:()=>RI,getIconClassNames:()=>nb,getLastFocus:()=>og,getMarker:()=>ca,getMissCount:()=>pg,getPath:()=>Ns,getPathComponents:()=>Mp,getRadialColumnWidth:()=>Hj,getRectConfig:()=>k6,getWindow:()=>ia,groupAccumulativeValueProperty:()=>_p,groupAverage:()=>QT,groupBy:()=>lx,groupCount:()=>Ik,groupStackValueProperty:()=>JT,groupSum:()=>bf,hasNoModifiers:()=>lM,identity:()=>Xf,inRange:()=>cd,includes:()=>NA,initMenuKeyNav:()=>sT,initRovingTabIndex:()=>Y0,initToolbarKeyNav:()=>Sb,interpolatePoints:()=>Ca,isArray:()=>ja,isBetweenAngles:()=>Fc,isBoolean:()=>Xd,isButtonClickEvent:()=>Ss,isContinuous:()=>cb,isDate:()=>je,isDecoratedObject:()=>YC,isDefined:()=>Hi,isDenseInterval:()=>Dm,isEnumKey:()=>bi,isEnumValue:()=>oa,isFiniteNumber:()=>pa,isFunction:()=>Si,isHtmlElement:()=>XC,isInputPending:()=>op,isInteger:()=>Wf,isNegative:()=>WC,isNumber:()=>yn,isNumberEqual:()=>eo,isObject:()=>ur,isObjectLike:()=>Ri,isPlainObject:()=>_a,isProperties:()=>Nn,isRegExp:()=>mm,isScaleValid:()=>oo,isString:()=>Qt,isSymbol:()=>jt,isValidDate:()=>dd,jsonApply:()=>k0,jsonDiff:()=>Qh,jsonPropertyCompare:()=>hD,jsonWalk:()=>Jh,keyProperty:()=>Td,labelDirectionHandling:()=>hb,legendSymbolSvg:()=>fk,lineDistanceSquared:()=>wl,listDecoratedProperties:()=>Xu,makeAccessibleClickListener:()=>dM,mapValues:()=>_A,markerFadeInAnimation:()=>_L,markerPaletteFactory:()=>pR,markerScaleInAnimation:()=>Kz,markerSwipeScaleInAnimation:()=>qz,mergeArrayDefaults:()=>Ly,mergeDefaults:()=>En,midpointStartingBarPosition:()=>i$,minMax:()=>XZ,mod:()=>Ty,moduleRegistry:()=>ph,motion:()=>fH,nearestSquared:()=>rs,nearestSquaredInContainer:()=>kP,normaliseGroupTo:()=>KS,normalisePropertyTo:()=>Cf,normalisedExtentWithMetadata:()=>rx,normalizeAngle180:()=>ab,normalizeAngle360:()=>Fn,normalizeAngle360Inclusive:()=>Px,objectsEqual:()=>yo,objectsEqualWith:()=>Zu,pairUpSpans:()=>Li,partialAssign:()=>Jl,pathFadeInAnimation:()=>VO,pathFadeOutAnimation:()=>QZ,pathMotion:()=>J1,pathSwipeInAnimation:()=>Yz,pickByMatchingAngle:()=>f3,pickNode:()=>mf,plotAreaPathFill:()=>Ig,plotInterpolatedAreaSeriesFillSpans:()=>fR,plotInterpolatedLinePathStroke:()=>Nd,plotLinePathStroke:()=>Yo,plotPath:()=>y6,predicateWithMessage:()=>ka,prepareAreaFillAnimationFns:()=>nE,prepareAreaPathAnimation:()=>FL,prepareAxisAnimationContext:()=>Al,prepareAxisAnimationFunctions:()=>pb,prepareBarAnimationFunctions:()=>HL,prepareLinePathAnimation:()=>Eg,prepareLinePathPropertyAnimation:()=>Bk,prepareLinePathStrokeAnimationFns:()=>rC,prepareMarkerAnimation:()=>WZ,preparePieSeriesAnimationFunctions:()=>oE,range:()=>u0,rangedValueProperty:()=>Yc,renderPartialPath:()=>$Z,resetAxisGroupFn:()=>z0,resetAxisLabelSelectionFn:()=>AD,resetAxisLineSelectionFn:()=>eT,resetAxisSelectionFn:()=>mb,resetBarSelectionsFn:()=>WL,resetIds:()=>Xg,resetLabelFn:()=>Af,resetMarkerFn:()=>NL,resetMarkerPositionFn:()=>zL,resetMotion:()=>io,resetPieSelectionsFn:()=>m3,round:()=>ga,sanitizeHtml:()=>hf,scale:()=>xi,sectorBox:()=>g3,seriesLabelFadeInAnimation:()=>Ea,seriesLabelFadeOutAnimation:()=>aC,setAttribute:()=>Ya,setAttributes:()=>ag,setDocument:()=>rD,setElementBBox:()=>Em,setElementStyle:()=>Gc,setPath:()=>ls,setWindow:()=>au,shallowClone:()=>M0,singleSeriesPaletteFactory:()=>Nk,solveBezier:()=>JM,sortAndUniqueDates:()=>II,sortBasedOnArray:()=>bI,splitBezier:()=>ek,splitPairData:()=>b6,staticFromToMotion:()=>Ju,stopPageScrolling:()=>Dv,stringify:()=>Bt,sum:()=>VS,sumValues:()=>yf,swapAxisCondition:()=>gR,throttle:()=>fm,toArray:()=>Ny,toDegrees:()=>OI,toRadians:()=>ma,tooltipContentAriaLabel:()=>HT,trailingAccumulatedValue:()=>WS,trailingAccumulatedValueProperty:()=>DL,unique:()=>sx,updateClipPath:()=>jO,updateLabelNode:()=>D6,updateRect:()=>M6,validateCrossLineValues:()=>Ux,valueProperty:()=>Yi,visibleRangeIndices:()=>Da,without:()=>In});var fH,MJ=A({"packages/ag-charts-community/src/module-support.ts"(){"use strict";Gr(),Mm(),Ko(),Mr(),m0(),gb(),ml(),Rn(),EQ(),gh(),ec(),nc(),mp(),ng(),qu(),gn(),ra(),Ub(),zn(),ac(),qh(),pv(),Ma(),Nc(),pD(),ev(),IQ(),bn(),Ai(),Zj(),CT(),qQ(),YQ(),XQ(),ZQ(),Nj(),$Q(),mh(),QQ(),JQ(),wF(),kh(),NO(),eJ(),Tn(),DD(),Il(),Fv(),kn(),gt(),US(),Sh(),rc(),XD(),$D(),QD(),ws(),lS(),e1(),cg(),RM(),dS(),i1(),Jm(),Om(),Pl(),tJ(),Eh(),_n(),iE(),oC(),OM(),xS(),LS(),L6(),O6(),Ba(),t3(),Fl(),B6(),G6(),sw(),Ti(),n3(),p6(),GL(),T6(),Zz(),Jz(),D(),Id(),sF(),v3(),rF(),iJ(),nJ(),aJ(),oJ(),rJ(),sJ(),ej(),lJ(),G0(),N0(),up(),MD(),x3(),zm(),_l(),bv(),cJ(),dJ(),vv(),bD(),uJ(),pf(),Js(),Zn(),_y(),Mm(),Gr(),eE(),FD(),fJ(),dT(),Zl(),YL(),kd(),q0(),tu(),qC(),vr(),pr(),on(),Kb(),fv(),so(),H0(),lD(),Qy(),Qd(),cs(),Jy(),cv(),Np(),vJ(),Bs(),zk(),mR(),xo(),xa(),Sl(),Dr(),Tm(),NI(),yJ(),Ll(),qL(),_O(),bJ(),ic(),cs(),Jy(),yd(),Qs(),fu(),wf(),C1(),jT(),PS(),nH(),CJ(),Js(),j6(),bp(),BO(),mu(),uf(),_y(),cp(),DS(),vn(),xo(),oS(),jj(),vd(),mD(),Ll(),Wj(),zp(),iF(),Er(),rw(),_o(),Mf(),oH(),SJ(),rH(),lH(),H3(),wJ(),cH(),uH(),xJ(),fH=ge(ge({},yI),nv)}}),pt={};E(pt,{AG_CHARTS_LOCALE_EN_US:()=>f,AgCharts:()=>dw,AgChartsCommunityModule:()=>Xj,AgErrorBarSupportedSeriesTypes:()=>zi,AgTooltipPositionType:()=>Uu,Marker:()=>Ol,VERSION:()=>Bm,_ModuleSupport:()=>mH,_Scene:()=>P3,_Theme:()=>L3,_Util:()=>O3,_Widget:()=>aH,setupCommunityModules:()=>S3,time:()=>QI});var mt=A({"packages/ag-charts-community/src/main.ts"(){"use strict";Pe(),Fa(),kQ(),dp(),Qs(),Uj(),qj(),Yj(),MJ(),oH()}}),zF=Object.defineProperty,vH=Object.getOwnPropertyDescriptor,kJ=Object.getOwnPropertyNames,AJ=Object.prototype.hasOwnProperty,DJ=(e,t)=>{for(var n in t)zF(e,n,{get:t[n],enumerable:!0})},Y3=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of kJ(t))!AJ.call(e,u)&&u!==n&&zF(e,u,{get:()=>t[u],enumerable:!(a=vH(t,u))||a.enumerable});return e},EJ=(e,t,n)=>(Y3(e,t,"default"),n&&Y3(n,t,"default")),IJ=e=>Y3(zF({},"__esModule",{value:!0}),e),me=(e,t,n,a)=>{for(var u=a>1?void 0:a?vH(t,n):t,y=e.length-1,k;y>=0;y--)(k=e[y])&&(u=(a?k(t,n,u):k(u))||u);return a&&u&&zF(t,n,u),u},X3={};DJ(X3,{AgCharts:()=>My.AgCharts,AgChartsEnterpriseModule:()=>YSe,LicenseManager:()=>qSe,VERSION:()=>My.VERSION,setupEnterpriseModules:()=>YY}),oe.exports=IJ(X3);var a2=(mt(),T(pt)),TJ=(mt(),T(pt));function Z3(e,t,n){let a=(y,k,R,F)=>{let _=e[0];for(let V=y;R>0?V<=k:V>k;V+=R){let K=e[V];if(F(_,K))return!0;_=K}return!1},u=Math.floor(e.length/2);return a(t,u,t,n)?!0:a(e.length-t,u,-t,n)}var RJ=(mt(),T(pt)),{OR:PJ,POSITIVE_NUMBER:LJ,NAN:OJ,AxisInterval:FJ,Validate:_J}=RJ._ModuleSupport,$3=class extends FJ{constructor(){super(...arguments),this.minSpacing=NaN}};me([_J(PJ(LJ,OJ))],$3.prototype,"minSpacing",2);var Q3=(mt(),T(pt)),J3=(mt(),T(pt)),NJ=(mt(),T(pt)),{BaseProperties:yH,ChartAxisDirection:zJ,ARRAY:BJ,BOOLEAN:eB,COLOR_STRING:tB,FONT_STYLE:GJ,FONT_WEIGHT:VJ,LINE_DASH:jJ,NUMBER:bH,OBJECT:HJ,POSITIVE_NUMBER:WJ,RATIO:CH,STRING:SH,UNION:wH,AND:UJ,Validate:rl,MATCHING_CROSSLINE_TYPE:xH,createId:KJ,Group:iB}=NJ._ModuleSupport,oy=class extends yH{constructor(){super(...arguments),this.fontSize=14,this.fontFamily="Verdana, sans-serif",this.padding=5,this.color="rgba(87, 87, 87, 1)"}};me([rl(eB,{optional:!0})],oy.prototype,"enabled",2),me([rl(SH,{optional:!0})],oy.prototype,"text",2),me([rl(GJ,{optional:!0})],oy.prototype,"fontStyle",2),me([rl(VJ,{optional:!0})],oy.prototype,"fontWeight",2),me([rl(WJ)],oy.prototype,"fontSize",2),me([rl(SH)],oy.prototype,"fontFamily",2),me([rl(bH)],oy.prototype,"padding",2),me([rl(tB,{optional:!0})],oy.prototype,"color",2),me([rl(eB,{optional:!0})],oy.prototype,"parallel",2);var Tg=class extends yH{constructor(){super(...arguments),this.id=KJ(this),this.shape="polygon",this.label=new oy,this.scale=void 0,this.clippedRange=[-1/0,1/0],this.gridLength=0,this.sideFlag=-1,this.parallelFlipRotation=0,this.regularFlipRotation=0,this.direction=zJ.X,this.axisInnerRadius=0,this.axisOuterRadius=0,this.lineGroup=new iB({name:this.id}),this.rangeGroup=new iB({name:this.id}),this.labelGroup=new iB({name:this.id}),this._isRange=void 0}assignCrossLineGroup(e,t){e!==this._isRange&&(e?this.rangeGroup.appendChild(t):this.lineGroup.appendChild(t)),this._isRange=e}setSectorNodeProps(e){var t,n,a;e.fill=this.fill,e.fillOpacity=(t=this.fillOpacity)!=null?t:1,e.stroke=this.stroke,e.strokeOpacity=(n=this.strokeOpacity)!=null?n:1,e.strokeWidth=(a=this.strokeWidth)!=null?a:1,e.lineDash=this.lineDash}setLabelNodeProps(e,t,n,a,u){let{label:y}=this;e.x=t,e.y=n,e.text=y.text,e.textAlign="center",e.textBaseline=a,e.rotation=u,e.rotationCenterX=t,e.rotationCenterY=n,e.fill=y.color,e.fontFamily=y.fontFamily,e.fontSize=y.fontSize,e.fontStyle=y.fontStyle,e.visible=!0}};me([rl(eB,{optional:!0})],Tg.prototype,"enabled",2),me([rl(wH(["range","line"],"a crossLine type"),{optional:!0})],Tg.prototype,"type",2),me([rl(UJ(xH("range"),BJ.restrict({length:2})),{optional:!0})],Tg.prototype,"range",2),me([rl(xH("value"),{optional:!0})],Tg.prototype,"value",2),me([rl(tB,{optional:!0})],Tg.prototype,"fill",2),me([rl(CH,{optional:!0})],Tg.prototype,"fillOpacity",2),me([rl(tB,{optional:!0})],Tg.prototype,"stroke",2),me([rl(bH,{optional:!0})],Tg.prototype,"strokeWidth",2),me([rl(CH,{optional:!0})],Tg.prototype,"strokeOpacity",2),me([rl(jJ,{optional:!0})],Tg.prototype,"lineDash",2),me([rl(wH(["polygon","circle"],"a shape"))],Tg.prototype,"shape",2),me([rl(HJ)],Tg.prototype,"label",2);var{ChartAxisDirection:qJ,validateCrossLineValues:YJ,normalizeAngle360:nB,isNumberEqual:MH,Group:XJ,Path:kH,Sector:ZJ,RotatableText:$J,ContinuousScale:QJ}=J3._ModuleSupport,aB=class extends Tg{constructor(){super(),this.direction=qJ.X,this.polygonNode=new kH,this.sectorNode=new ZJ,this.lineNode=new kH,this.crossLineRange=new XJ,this.labelNode=new $J,this.crossLineRange.append(this.polygonNode),this.crossLineRange.append(this.sectorNode),this.crossLineRange.append(this.lineNode),this.labelGroup.append(this.labelNode)}update(e){let{scale:t,shape:n,type:a,value:u,range:y}=this;if(!t||!a||!YJ(a,u,y,t,()=>{var V,K;if(!QJ.is(t))return!0;let[R,F]=y!=null?y:[u,void 0],_=(K=(V=t.getDomain)==null?void 0:V.call(t))!=null?K:t.domain;return R>=_[0]&&R<=_[1]&&(a==="line"||F>=R&&F<=_[1])})){this.rangeGroup.visible=!1,this.lineGroup.visible=!1,this.labelGroup.visible=!1;return}this.rangeGroup.visible=e,this.lineGroup.visible=e,this.labelGroup.visible=e,a==="line"&&n==="circle"&&t instanceof J3._ModuleSupport.BandScale&&(this.type="range",this.range=[u,u]),this.updateLineNode(e),this.updatePolygonNode(e),this.updateSectorNode(e),this.updateLabelNode(e)}updateLineNode(e){var q,$;let{scale:t,type:n,value:a,lineNode:u}=this;if(!e||n!=="line"||!t){u.visible=!1;return}let y=t.convert(a);if(isNaN(y)){u.visible=!1;return}let{axisInnerRadius:k,axisOuterRadius:R}=this;u.visible=!0,u.stroke=this.stroke,u.strokeOpacity=(q=this.strokeOpacity)!=null?q:1,u.strokeWidth=($=this.strokeWidth)!=null?$:1,u.fill=void 0,u.lineDash=this.lineDash;let F=R*Math.cos(y),_=R*Math.sin(y),V=k*Math.cos(y),K=k*Math.sin(y);u.path.clear(!0),u.path.moveTo(V,K),u.path.lineTo(F,_),this.assignCrossLineGroup(!1,this.crossLineRange)}updatePolygonNode(e){var te;let{polygonNode:t,range:n,scale:a,shape:u,type:y}=this;if(!e||y!=="range"||u!=="polygon"||!a||!n){t.visible=!1;return}let k=(te=a.ticks)==null?void 0:te.call(a);if(!k){t.visible=!1;return}let{axisInnerRadius:R,axisOuterRadius:F}=this,_=k.indexOf(n[0]),V=k.indexOf(n[1]),q=(_<=V?k.slice(_,V+1):k.slice(_).concat(k.slice(0,V+1))).map(se=>a.convert(se));t.visible=!0,this.setSectorNodeProps(t);let{path:$}=t;$.clear(!0),q.forEach((se,de)=>{let pe=F*Math.cos(se),Ce=F*Math.sin(se);de===0?$.moveTo(pe,Ce):$.lineTo(pe,Ce)}),R===0?$.lineTo(0,0):q.slice().reverse().forEach(se=>{let de=R*Math.cos(se),pe=R*Math.sin(se);$.lineTo(de,pe)}),t.path.closePath(),this.assignCrossLineGroup(!0,this.crossLineRange)}updateSectorNode(e){var K;let{sectorNode:t,range:n,scale:a,shape:u,type:y}=this;if(!e||y!=="range"||u!=="circle"||!a||!n){t.visible=!1;return}let{axisInnerRadius:k,axisOuterRadius:R}=this,F=n.map(q=>a.convert(q)),_=(K=a.step)!=null?K:0,V=a instanceof J3._ModuleSupport.BandScale?_/2:0;t.visible=!0,this.setSectorNodeProps(t),t.centerX=0,t.centerY=0,t.innerRadius=k,t.outerRadius=R,t.startAngle=F[0]-V,t.endAngle=F[1]+V,this.assignCrossLineGroup(!0,this.crossLineRange)}updateLabelNode(e){var q,$;let{label:t,labelNode:n,range:a,scale:u,type:y}=this;if(!e||t.enabled===!1||!t.text||!u||y==="range"&&!a){n.visible=!0;return}let{axisInnerRadius:k,axisOuterRadius:R}=this,F,_,V,K;if(y==="line"){let te=nB(u.convert(this.value)),se=1.5*Math.PI,de=MH(te,se)||te>se||te<Math.PI/2,pe=(k+R)/2*Math.cos(te),Ce=(k+R)/2*Math.sin(te);F=pe+t.padding*Math.cos(te+Math.PI/2),_=Ce+t.padding*Math.sin(te+Math.PI/2),K=de?"top":"bottom",V=de?te:te-Math.PI}else{let[te,se]=a.map(ve=>nB(u.convert(ve))),de=(te+se)/2;te>se&&(de-=Math.PI),de=nB(de);let pe=(MH(de,0)||de>0)&&de<Math.PI,Ce,Se=($=(q=u.ticks)==null?void 0:q.call(u))!=null?$:[];this.shape==="circle"||Se.length<3?Ce=R-t.padding:Ce=R*Math.cos(Math.PI/Se.length)-t.padding,F=Ce*Math.cos(de),_=Ce*Math.sin(de),K=pe?"bottom":"top",V=pe?de-Math.PI/2:de+Math.PI/2}this.setLabelNodeProps(n,F,_,K,V)}};aB.className="AngleCrossLine";var{ChartAxisDirection:JJ,NUMBER:AH,UNION:eee,ProxyOnWrite:tee,TextWrapper:iee,TextUtils:nee,Validate:oB,angleBetween:aee,isNumberEqual:CR,toRadians:BF,normalizeAngle360:SR,normalizeAngle360Inclusive:oee,Path:ree,RotatableText:see,Transformable:lee,BBox:cee}=Q3._ModuleSupport,rB=class extends Q3._ModuleSupport.AxisLabel{constructor(){super(...arguments),this.orientation="fixed"}};me([oB(eee(["fixed","parallel","perpendicular"],"a label orientation"))],rB.prototype,"orientation",2);var o2=class extends Q3._ModuleSupport.PolarAxis{constructor(e,t){super(e,t),this.startAngle=0,this.endAngle=void 0,this.labelData=[],this.tickData=[],this.radiusLine=this.axisGroup.appendChild(new ree),this.includeInvisibleDomains=!0}get direction(){return JJ.X}createLabel(){return new rB}update(){this.updateScale(),this.updatePosition(),this.updateGridLines(),this.updateTickLines(),this.updateLabels(),this.updateRadiusLine(),this.updateCrossLines()}normalizedAngles(){let e=SR(-Math.PI/2+BF(this.startAngle)),t=this.endAngle!=null?oee(BF(this.endAngle)-BF(this.startAngle)):2*Math.PI,n=e+t;return[e,n]}computeRange(){this.range=this.normalizedAngles()}calculateAvailableRange(){let{range:e,gridLength:t}=this;return aee(e[0],e[1])*t}updatePosition(){let{translation:e,axisGroup:t,gridGroup:n,crossLineRangeGroup:a,crossLineLineGroup:u,crossLineLabelGroup:y}=this,k=Math.floor(e.x),R=Math.floor(e.y);t.translationX=k,t.translationY=R,n.translationX=k,n.translationY=R,a.translationX=k,a.translationY=R,u.translationX=k,u.translationY=R,y.translationX=k,y.translationY=R}updateRadiusLine(){let e=this.radiusLine,{path:t}=e;t.clear(!0);let{points:n,closePath:a}=this.getAxisLinePoints();n.forEach(({x:u,y,moveTo:k,arc:R,radius:F=0,startAngle:_=0,endAngle:V=0})=>{R?t.arc(u,y,F,_,V):k?t.moveTo(u,y):t.lineTo(u,y)}),a&&t.closePath(),e.visible=this.line.enabled,e.stroke=this.line.stroke,e.strokeWidth=this.line.width,e.fill=void 0}getAxisLinePoints(){var R;let{scale:e,shape:t,gridLength:n}=this,[a,u]=this.range,y=CR(u-a,2*Math.PI),k=[];if(t==="circle")y?k.push({x:n,y:0,moveTo:!0},{x:0,y:0,radius:n,startAngle:0,endAngle:2*Math.PI,arc:!0,moveTo:!1}):k.push({x:n*Math.cos(a),y:n*Math.sin(a),moveTo:!0},{x:0,y:0,radius:n,startAngle:SR(a),endAngle:SR(u),arc:!0,moveTo:!1});else if(t==="polygon"){let F=(R=e.ticks)==null?void 0:R.call(e).map(_=>e.convert(_));F&&F.length>2&&F.forEach((_,V)=>{let K=n*Math.cos(_),q=n*Math.sin(_),$=V===0;k.push({x:K,y:q,moveTo:$})})}return{points:k,closePath:y}}updateGridLines(){let{scale:e,gridLength:t,gridLine:{enabled:n,style:a,width:u},innerRadiusRatio:y}=this;if(!(a&&t>0))return;let k=this.tickData,R=t*y,F=a.length,_=V=>V.value;this.gridLineGroupSelection.update(n?k:[],void 0,_).each((V,K,q)=>{let{value:$}=K,{stroke:te,lineDash:se}=a[q%F],de=e.convert($);V.x1=R*Math.cos(de),V.y1=R*Math.sin(de),V.x2=t*Math.cos(de),V.y2=t*Math.sin(de),V.stroke=te,V.strokeWidth=u,V.lineDash=se,V.fill=void 0}),this.gridLineGroupSelection.cleanup()}updateLabels(){let{label:e,tickLabelGroupSelection:t}=this,n=this.tickData;t.update(e.enabled?n:[]).each((a,u,y)=>{let k=this.labelData[y];if(!k||k.hidden){a.visible=!1;return}a.text=k.text,a.setFont(e),a.fill=e.color,a.x=k.x,a.y=k.y,a.textAlign=k.textAlign,a.textBaseline=k.textBaseline,a.visible=!0,k.rotation?(a.rotation=k.rotation,a.rotationCenterX=k.x,a.rotationCenterY=k.y):a.rotation=0})}updateTickLines(){let{scale:e,gridLength:t,tick:n,tickLineGroupSelection:a}=this,u=this.tickData;a.update(n.enabled?u:[]).each((y,k)=>{let{value:R}=k,F=e.convert(R),_=Math.cos(F),V=Math.sin(F);y.x1=t*_,y.y1=t*V,y.x2=(t+n.size)*_,y.y2=(t+n.size)*V,y.stroke=n.stroke,y.strokeWidth=n.width})}createLabelNodeData(e,t,n){let{label:a,gridLength:u,scale:y,tick:k}=this;if(!a.enabled)return[];let R=new see,F=n.x-this.translation.x,_=n.x+n.width-this.translation.x,V=e.map((K,q)=>{var et;let{value:$}=K,te=u+a.spacing+k.size,se=y.convert($),de=Math.cos(se),pe=Math.sin(se),Ce=te*de,Se=te*pe,{textAlign:ve,textBaseline:ke}=this.getLabelAlign(se),De=q===e.length-1&&$!==e[0]&&CR(SR(se),SR(y.convert(e[0]))),Te=this.getLabelRotation(se),ze=String($);if(a.formatter){let{callbackCache:$e}=this.moduleCtx;ze=(et=$e.call(a.formatter,{value:$,index:q}))!=null?et:""}R.text=ze,R.x=Ce,R.y=Se,R.setFont(a),R.textAlign=ve,R.textBaseline=ke,R.rotation=Te,Te&&(R.rotationCenterX=Ce,R.rotationCenterY=Se);let qe=Te?lee.toCanvas(R):R.getBBox();if(qe&&t.hideWhenNecessary&&!Te){let $e=F-qe.x,lt=qe.x+qe.width-_,at=1;if($e>at||lt>at){let ht=qe.width-Math.max($e,lt);ze=iee.wrapText(ze,{maxWidth:ht,font:a,textWrap:"never"}),ze===nee.EllipsisChar&&(ze=""),R.text=ze,qe=R.getBBox()}}return{text:ze,x:Ce,y:Se,textAlign:ve,textBaseline:ke,hidden:ze===""||K.hidden||De,rotation:Te,box:qe}});return a.avoidCollisions&&this.avoidLabelCollisions(V),V}computeLabelsBBox(e,t){this.tickData=this.generateAngleTicks(),this.labelData=this.createLabelNodeData(this.tickData,e,t);let n=this.labelData.map(({box:a})=>a).filter(a=>a!=null);return!this.label.enabled||n.length===0?null:cee.merge(n)}getLabelOrientation(){let{label:e}=this;return e instanceof rB?e.orientation:"fixed"}getLabelRotation(e){var a;let t=BF((a=this.label.rotation)!=null?a:0);e=SR(e);let n=this.getLabelOrientation();return n==="parallel"?(t+=e,e>=0&&e<Math.PI?t-=Math.PI/2:t+=Math.PI/2):n==="perpendicular"&&(t+=e,e>=Math.PI/2&&e<1.5*Math.PI&&(t+=Math.PI)),t}getLabelAlign(e){let t=Math.cos(e),n=Math.sin(e),a,u,y=this.getLabelOrientation(),k=CR(t,0),R=CR(n,0),F=CR(t,1),_=CR(n,-1),V=t>0&&!k,K=n>0&&!R;return y==="parallel"?(a="center",u=F&&R||K?"top":"bottom"):y==="perpendicular"?(a=_||V?"left":"right",u="middle"):(a="right",k?a="center":V&&(a="left"),u="bottom",R?u="middle":K&&(u="top")),{textAlign:a,textBaseline:u}}updateCrossLines(){this.crossLines.forEach(e=>{if(e instanceof aB){let{shape:t,gridLength:n,innerRadiusRatio:a}=this;e.shape=t,e.axisOuterRadius=n,e.axisInnerRadius=n*a}}),super.updateCrossLines()}};o2.CrossLineConstructor=aB,me([tee("rotation"),oB(AH)],o2.prototype,"startAngle",2),me([oB(AH,{optional:!0})],o2.prototype,"endAngle",2);var{RATIO:DH,OBJECT:dee,Validate:sB,isNumberEqual:EH,BandScale:uee}=TJ._ModuleSupport,dE=class extends o2{constructor(e){super(e,new uee),this.groupPaddingInner=0,this.paddingInner=0,this.interval=new $3}generateAngleTicks(){var _;let{scale:e,gridLength:t}=this,{values:n,minSpacing:a}=this.interval,u=(_=n!=null?n:e.ticks())!=null?_:[];if(u.length<2||isNaN(a))return u.map(V=>({value:V,visible:!0}));let y=u[0],k=e.convert(y),R=t*Math.cos(k),F=t*Math.sin(k);for(let V=1;V<u.length-1;V++){let K=u[V],q=e.convert(K);if(q-k>Math.PI)break;let $=t*Math.cos(q),te=t*Math.sin(q);if(Math.sqrt(($-R)**2+(te-F)**2)>a){let de=new Set([y]);return Z3(u,V,(pe,Ce)=>{de.add(Ce)}),u.map(pe=>{let Ce=de.has(pe);return{value:pe,visible:Ce}})}}return[{value:y,visible:!0}]}avoidLabelCollisions(e){let{minSpacing:t}=this.label;if(Number.isFinite(t)||(t=0),e.length<3)return;let n=(F,_)=>{if(F.hidden||_.hidden)return!1;let V=F.box.clone().grow(t/2),K=_.box.clone().grow(t/2);return V.collidesBBox(K)},a=e[0],u=e.at(-1),y=new Set([a]),k=EH(a.x,u.x)&&EH(a.y,u.y),R=Math.floor(e.length/2);for(let F=1;F<=R;F++){let _=k?e.slice(0,-1):e;if(!Z3(_,F,n)){Z3(_,F,(K,q)=>{y.add(q)});break}}e.forEach(F=>{y.has(F)||(F.hidden=!0,F.box=void 0)})}};dE.className="AngleCategoryAxis",dE.type="angle-category",me([sB(DH)],dE.prototype,"groupPaddingInner",2),me([sB(DH)],dE.prototype,"paddingInner",2),me([sB(dee)],dE.prototype,"interval",2);var hee={type:"axis",optionsKey:"axes[]",packageType:"enterprise",chartTypes:["polar"],identifier:"angle-category",moduleFactory:e=>new dE(e)},gee=(mt(),T(pt)),pee=(mt(),T(pt)),{range:IH,isDenseInterval:mee,isNumberEqual:fee,LinearScale:vee,Invalidating:yee}=pee._ModuleSupport,TH=class extends vee{constructor(){super(...arguments),this.arcLength=0,this.niceTickStep=0}ticks(){if(!this.domain||this.domain.length<2||this.domain.some(u=>!isFinite(u))||this.arcLength<=0)return[];this.refresh();let{interval:e}=this,[t,n]=this.getDomain();if(e){let u=Math.abs(e),y=this.getPixelRange();if(!mee((n-t)/u,y))return IH(t,n,u)}let a=this.nice&&this.niceTickStep?this.niceTickStep:this.getTickStep(t,n);return IH(t,n,a)}hasNiceRange(){let e=this.range.slice().sort((n,a)=>n-a);return[Math.PI,2*Math.PI].some(n=>fee(n,e[1]-e[0]))}getNiceStepAndTickCount(){let[e,t]=this.niceDomain,n=this.getTickStep(e,t),a=isNaN(this.maxTickCount)?1/0:this.maxTickCount,u=Math.abs(t-e)/n,y=Math.pow(2,Math.ceil(Math.log(u)/Math.log(2)));return y>a&&(y/=2,n*=2),{count:y,step:n}}updateNiceDomain(){if(super.updateNiceDomain(),!this.hasNiceRange())return;let e=this.niceDomain[0]>this.niceDomain[1],t=e?this.niceDomain[1]:this.niceDomain[0],{step:n,count:a}=this.getNiceStepAndTickCount(),u=1/n,y=n>=1?Math.ceil(t/n+a)*n:Math.ceil((t+a*n)*u)/u;this.niceDomain=e?[y,t]:[t,y],this.niceTickStep=n}getPixelRange(){return this.arcLength}};me([yee],TH.prototype,"arcLength",2);var{AND:RH,Default:PH,GREATER_THAN:bee,LESS_THAN:Cee,NUMBER_OR_NAN:LH,OBJECT:See,Validate:lB,angleBetween:wee,isNumberEqual:OH,normalisedExtentWithMetadata:xee,findMinMax:Mee}=gee._ModuleSupport,wR=class extends o2{constructor(e){super(e,new TH),this.shape="circle",this.min=NaN,this.max=NaN,this.interval=new $3}normaliseDataDomain(e){let{min:t,max:n}=this,{extent:a,clipped:u}=xee(e,t,n);return{domain:a,clipped:u}}getRangeArcLength(){let{range:e}=this,t=Math.min(...e),n=Math.max(...e),a=wee(t,n)||2*Math.PI,u=this.gridLength;return a*u}generateAngleTicks(){let e=this.getRangeArcLength(),{scale:t,range:n}=this,{values:a,minSpacing:u,maxSpacing:y}=this.interval,k=y?Math.floor(e/y):1,R=u?Math.floor(e/u):1/0,F=Math.floor(4/Math.PI*Math.abs(n[0]-n[1]));t.tickCount=Math.max(k,Math.min(R,F)),t.minTickCount=k,t.maxTickCount=R,t.arcLength=e;let _;if(a!=null){let[V,K]=Mee(t.getDomain().map(Number));_=a.filter(q=>q>=V&&q<=K).sort((q,$)=>q-$)}else _=t.ticks();return _.map(V=>({value:V,visible:!0}))}avoidLabelCollisions(e){let{minSpacing:t}=this.label;Number.isFinite(t)||(t=0);let n=(y,k)=>{if(y.hidden||k.hidden)return!1;let R=y.box.clone().grow(t/2),F=k.box.clone().grow(t/2);return R.collidesBBox(F)},a=e[0],u=e.at(-1);a!==u&&OH(a.x,u.x)&&OH(a.y,u.y)&&(u.hidden=!0);for(let y=1;y<e.length;y*=2){let k=!1;for(let R=y;R<e.length;R+=y){let F=e[R],_=e[R-y];if(n(_,F)){k=!0;break}}if(!k){e.forEach((R,F)=>{F%y>0&&(R.hidden=!0,R.box=void 0)});return}}e.forEach((y,k)=>{k>0&&(y.hidden=!0,y.box=void 0)})}};wR.className="AngleNumberAxis",wR.type="angle-number",me([lB(RH(LH,Cee("max"))),PH(NaN)],wR.prototype,"min",2),me([lB(RH(LH,bee("min"))),PH(NaN)],wR.prototype,"max",2),me([lB(See)],wR.prototype,"interval",2);var kee={type:"axis",optionsKey:"axes[]",packageType:"enterprise",chartTypes:["polar"],identifier:"angle-number",moduleFactory:e=>new wR(e)},FH=(mt(),T(pt)),{OrdinalTimeScale:Aee,sortAndUniqueDates:Dee}=FH._ModuleSupport,cB=class extends FH._ModuleSupport.CategoryAxis{constructor(e){super(e,new Aee),this._lastSetDomain=void 0}normaliseDataDomain(e){return{domain:e,clipped:!1}}setDomain(e){if(this._lastSetDomain===e)return;this._lastSetDomain=e;let t=Dee(e);super.setDomain(t)}onFormatChange(e,t,n,a){a?super.onFormatChange(e,t,n,a):this.labelFormatter=this.scale.tickFormat({ticks:e,domain:n})}};cB.className="OrdinalTimeAxis",cB.type="ordinal-time";var Eee={type:"axis",optionsKey:"axes[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"ordinal-time",moduleFactory:e=>new cB(e)},Iee=(mt(),T(pt)),dB=(mt(),T(pt)),uB=(mt(),T(pt)),{ChartAxisDirection:Tee,Validate:Ree,NUMBER:Pee,validateCrossLineValues:Lee,clamp:_H,normalizeAngle360:Oee,toRadians:Fee,isNumberEqual:_ee,Group:Nee,Path:zee,Sector:Bee,RotatableText:Gee}=uB._ModuleSupport,NH=class extends oy{constructor(){super(...arguments),this.positionAngle=void 0}};me([Ree(Pee,{optional:!0})],NH.prototype,"positionAngle",2);var hB=class extends Tg{constructor(){super(),this.direction=Tee.Y,this.label=new NH,this.polygonNode=new zee,this.sectorNode=new Bee,this.crossLineRange=new Nee,this.labelNode=new Gee,this.outerRadius=0,this.innerRadius=0,this.crossLineRange.append(this.polygonNode),this.crossLineRange.append(this.sectorNode),this.labelGroup.append(this.labelNode)}update(e){let{scale:t,type:n,value:a,range:u}=this;if(!t||!n||!Lee(n,a,u,t)){this.rangeGroup.visible=!1,this.lineGroup.visible=!1,this.labelGroup.visible=!1;return}n==="line"&&t instanceof uB._ModuleSupport.BandScale&&(this.type="range",this.range=[a,a]),this.updateRadii();let{innerRadius:y,outerRadius:k}=this;e&&(e=y>=this.axisInnerRadius&&k<=this.axisOuterRadius),this.rangeGroup.visible=e,this.lineGroup.visible=e,this.labelGroup.visible=e,this.updatePolygonNode(e),this.updateSectorNode(e),this.updateLabelNode(e),this.assignCrossLineGroup(this.type==="range",this.crossLineRange)}updateRadii(){var F;let{range:e,scale:t,type:n,axisInnerRadius:a,axisOuterRadius:u}=this;if(!t)return{innerRadius:0,outerRadius:0};let y=_=>u+a-_,k=0,R=0;if(n==="line")k=y(t.convert(this.value)),R=k;else{let _=Math.abs((F=t==null?void 0:t.bandwidth)!=null?F:0),V=e.map(K=>t.convert(K));k=y(Math.max(...V)),R=y(Math.min(...V))+_}this.outerRadius=k,this.innerRadius=R}drawPolygon(e,t,n){t.forEach((a,u)=>{let y=e*Math.cos(a),k=e*Math.sin(a);u===0?n.path.moveTo(y,k):n.path.lineTo(y,k)}),n.path.closePath()}updatePolygonNode(e){let{gridAngles:t,polygonNode:n,scale:a,shape:u,type:y,innerRadius:k,outerRadius:R}=this;if(!e||u!=="polygon"||!a||!t){n.visible=!1;return}n.visible=!0;let F=this.getPadding();n.path.clear(!0),this.drawPolygon(R-F,t,n);let _=t.slice().reverse(),V=y==="line"?R-F:k+F;this.drawPolygon(V,_,n),this.setSectorNodeProps(n)}updateSectorNode(e){let{axisInnerRadius:t,axisOuterRadius:n,scale:a,sectorNode:u,shape:y,innerRadius:k,outerRadius:R}=this;if(!e||y!=="circle"||!a){u.visible=!1;return}u.visible=!0,u.startAngle=0,u.endAngle=2*Math.PI;let F=this.getPadding(),_=_H(t,k+F,n),V=_H(t,R-F,n);u.innerRadius=Math.min(_,V),u.outerRadius=Math.max(_,V),this.setSectorNodeProps(u)}updateLabelNode(e){var se,de;let{innerRadius:t,label:n,labelNode:a,scale:u,shape:y,type:k}=this;if(!e||n.enabled===!1||!n.text||!u){a.visible=!1;return}let R=Oee(Fee(((se=n.positionAngle)!=null?se:0)-90)),F=(_ee(R,0)||R>0)&&R<Math.PI,_=F?R-Math.PI/2:R+Math.PI/2,V=0,K=(de=this.gridAngles)!=null?de:[];k==="line"?V=t+n.padding:y==="circle"||K.length<3?V=t-n.padding:V=t*Math.cos(Math.PI/K.length)-n.padding;let q=V*Math.cos(R),$=V*Math.sin(R),te;k==="line"?te=F?"top":"bottom":te=F?"bottom":"top",this.setLabelNodeProps(a,q,$,te,_)}getPadding(){var a,u;let{scale:e}=this;if(!e)return 0;let t=Math.abs((a=e.bandwidth)!=null?a:0),n=Math.abs((u=e.step)!=null?u:0);return e instanceof uB._ModuleSupport.BandScale?(n-t)/2:0}};hB.className="RadiusCrossLine";var{ChartAxisDirection:Vee,Default:jee,ZIndexMap:Hee,NUMBER:zH,BOOLEAN:Wee,Validate:gB,isNumberEqual:Uee,normalizeAngle360:BH,toRadians:Kee,Caption:qee,Group:Yee,Path:Xee,Selection:Zee}=dB._ModuleSupport,pB=class extends dB._ModuleSupport.AxisLabel{constructor(){super(...arguments),this.autoRotateAngle=335}};me([gB(Wee,{optional:!0})],pB.prototype,"autoRotate",2),me([gB(zH)],pB.prototype,"autoRotateAngle",2);var GF=class extends dB._ModuleSupport.PolarAxis{constructor(){super(...arguments),this.positionAngle=0,this.gridPathGroup=this.gridGroup.appendChild(new Yee({name:`${this.id}-gridPaths`,zIndex:Hee.AXIS_GRID})),this.gridPathSelection=Zee.select(this.gridPathGroup,Xee)}get direction(){return Vee.Y}getAxisTransform(){let e=this.scale.range[0],{translation:t,positionAngle:n,innerRadiusRatio:a}=this,u=e*a,y=Kee(n);return{translationX:t.x,translationY:t.y-e-u,rotation:y,rotationCenterX:0,rotationCenterY:e+u}}updateSelections(e,t,n){var se;super.updateSelections(e,t,n);let{gridLine:{enabled:a,style:u,width:y},shape:k}=this;if(!u)return;let R=this.prepareTickData(t),F=u.length,_=(de,pe)=>{let{stroke:Ce,lineDash:Se}=u[pe%F];de.stroke=Ce,de.strokeWidth=y,de.lineDash=Se,de.fill=void 0},[V,K]=(se=this.gridRange)!=null?se:[0,2*Math.PI],q=Uee(K-V,2*Math.PI),$=(de,pe)=>{let{path:Ce}=de;Ce.clear(!0);let Se=this.getTickRadius(pe);q?(Ce.moveTo(Se,0),Ce.arc(0,0,Se,0,2*Math.PI)):(Ce.moveTo(Se*Math.cos(V),Se*Math.sin(V)),Ce.arc(0,0,Se,BH(V),BH(K))),q&&Ce.closePath()},te=(de,pe)=>{let{path:Ce}=de,Se=this.gridAngles;if(Ce.clear(!0),!Se||Se.length<3)return;let ve=this.getTickRadius(pe);Se.forEach((ke,De)=>{let Te=ve*Math.cos(ke),ze=ve*Math.sin(ke);De===0?Ce.moveTo(Te,ze):Ce.lineTo(Te,ze),Se.forEach((qe,et)=>{let $e=ve*Math.cos(qe),lt=ve*Math.sin(qe);et===0?Ce.moveTo($e,lt):Ce.lineTo($e,lt)}),Ce.closePath()}),Ce.closePath()};this.gridPathSelection.update(a?R:[]).each((de,pe,Ce)=>{_(de,Ce),k==="circle"?$(de,pe):te(de,pe)})}updateTitle(){let e=R=>R.defaultValue,{title:t,range:n,moduleCtx:{callbackCache:a}}=this,{formatter:u=e}=this.title;t.caption.enabled=t.enabled,t.caption.fontFamily=t.fontFamily,t.caption.fontSize=t.fontSize,t.caption.fontStyle=t.fontStyle,t.caption.fontWeight=t.fontWeight,t.caption.color=t.color,t.caption.wrapping=t.wrapping;let y=!1,k=t.caption.node;t.enabled&&(y=!0,k.rotation=Math.PI/2,k.x=Math.floor((n[0]+n[1])/2),k.y=-qee.SMALL_PADDING,k.textAlign="center",k.textBaseline="bottom",k.text=a.call(u,this.getTitleFormatterParams())),k.visible=y}updateCrossLines(){this.crossLines.forEach(e=>{if(e instanceof hB){let{shape:t,gridAngles:n,range:a,innerRadiusRatio:u}=this,y=a[0];e.shape=t,e.gridAngles=n,e.axisOuterRadius=y,e.axisInnerRadius=y*u}}),super.updateCrossLines()}createLabel(){return new pB}};GF.CrossLineConstructor=hB,me([gB(zH),jee(0)],GF.prototype,"positionAngle",2);var{RATIO:mB,ProxyPropertyOnWrite:GH,Validate:fB,BandScale:VH}=Iee._ModuleSupport,uE=class extends GF{constructor(e){super(e,new VH),this.shape="circle",this.groupPaddingInner=0,this.paddingInner=0,this.paddingOuter=0}prepareTickData(e){return e.slice().reverse()}getTickRadius(e){let{scale:t,innerRadiusRatio:n}=this,a=t.range[0],u=a*n;if(t instanceof VH){let y=t.ticks(),k=y.length-1-y.indexOf(e.tickId);return k===0?u:t.inset+t.step*(k-.5)+t.bandwidth/2}else{let y=(a-u)/t.domain.length;return a-e.translationY+u-y/2}}};uE.className="RadiusCategoryAxis",uE.type="radius-category",me([fB(mB)],uE.prototype,"groupPaddingInner",2),me([GH("scale","paddingInner"),fB(mB)],uE.prototype,"paddingInner",2),me([GH("scale","paddingOuter"),fB(mB)],uE.prototype,"paddingOuter",2);var $ee={type:"axis",optionsKey:"axes[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radius-category",moduleFactory:e=>new uE(e)},Qee=(mt(),T(pt)),{AND:jH,Default:HH,GREATER_THAN:Jee,LESS_THAN:ete,NUMBER_OR_NAN:WH,Validate:UH,normalisedExtentWithMetadata:tte,LinearScale:ite}=Qee._ModuleSupport,r2=class extends GF{constructor(e){super(e,new ite),this.shape="polygon",this.min=NaN,this.max=NaN}prepareTickData(e){var a;let{scale:t}=this,n=(a=t.getDomain)==null?void 0:a.call(t)[1];return e.filter(({tick:u})=>u!==n).sort((u,y)=>y.tick-u.tick)}getTickRadius(e){let{scale:t}=this,n=t.range[0],a=n*this.innerRadiusRatio;return n-e.translationY+a}normaliseDataDomain(e){let{min:t,max:n}=this,{extent:a,clipped:u}=tte(e,t,n);return{domain:a,clipped:u}}};r2.className="RadiusNumberAxis",r2.type="radius-number",me([UH(jH(WH,ete("max"))),HH(NaN)],r2.prototype,"min",2),me([UH(jH(WH,Jee("min"))),HH(NaN)],r2.prototype,"max",2);var nte={type:"axis",optionsKey:"axes[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radius-number",moduleFactory:e=>new r2(e)},KH=(mt(),T(pt)),{BOOLEAN:ate,POSITIVE_NUMBER:ote,ObserveChanges:qH,Validate:YH}=KH._ModuleSupport,vB=class extends KH._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!0,e.animationManager.skip(!1)}};me([qH((e,t)=>{e.ctx.animationManager.skip(!t)}),YH(ate)],vB.prototype,"enabled",2),me([qH((e,t)=>{e.ctx.animationManager.defaultDuration=t}),YH(ote,{optional:!0})],vB.prototype,"duration",2);var rte={type:"root",optionsKey:"animation",packageType:"enterprise",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new vB(e),themeTemplate:{animation:{enabled:!0}}},VF=(mt(),T(pt)),yB=(mt(),T(pt)),ste='<div contenteditable="plaintext-only" class="ag-charts-text-input__textarea" tabindex="0"></div>',{focusCursorAtEnd:lte}=yB._ModuleSupport,XH="text-input",ZH="canvas-overlay",cte=class extends yB._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.layout={getTextInputCoords:()=>({x:0,y:0}),getTextPosition:()=>"center",alignment:"center",textAlign:"center"},this.visible=!1,this.element=e.domManager.addChild(ZH,XH),this.element.classList.add("ag-charts-text-input"),this.destroyFns.push(()=>e.domManager.removeChild(ZH,XH))}setKeyDownHandler(e){this.element.addEventListener("keydown",e),this.destroyFns.push(()=>this.element.removeEventListener("keydown",e))}show(e){var n,a,u,y,k,R,F,_,V,K,q,$,te,se,de;this.element.innerHTML=ste;let t=this.element.firstElementChild;t.isContentEditable||(t.contentEditable="true"),t.setAttribute("placeholder",this.ctx.localeManager.t((n=e.placeholderText)!=null?n:"inputTextareaPlaceholder")),(a=e.styles)!=null&&a.placeholderColor&&t.style.setProperty("--ag-charts-input-placeholder-color",(u=e.styles)==null?void 0:u.placeholderColor),t.innerText=(y=e.text)!=null?y:"",t.style.color=(R=(k=e.styles)==null?void 0:k.color)!=null?R:"inherit",t.style.fontFamily=(_=(F=e.styles)==null?void 0:F.fontFamily)!=null?_:"inherit",t.style.fontSize=(V=e.styles)!=null&&V.fontSize?`${e.styles.fontSize}px`:"inherit",t.style.fontStyle=(q=(K=e.styles)==null?void 0:K.fontStyle)!=null?q:"inherit",t.style.fontWeight=typeof(($=e.styles)==null?void 0:$.fontWeight)=="number"?`${e.styles.fontWeight}`:(se=(te=e.styles)==null?void 0:te.fontWeight)!=null?se:"inherit",lte(t),t.addEventListener("input",()=>{var pe;this.updatePosition(),(pe=e.onChange)==null||pe.call(e,this.getValue(),this.getBBox())}),t.addEventListener("click",pe=>{pe.stopPropagation()}),e.layout&&(this.layout=e.layout,this.updatePosition()),(de=e.onChange)==null||de.call(e,this.getValue(),this.getBBox()),this.visible=!0}hide(){this.element.innerHTML="",this.layout={getTextInputCoords:()=>({x:0,y:0}),getTextPosition:()=>"center",alignment:"center",textAlign:"center"},this.visible=!1}isVisible(){return this.visible}updateColor(e){this.element.firstElementChild&&(this.element.firstElementChild.style.color=e)}updateFontSize(e){if(this.element.firstElementChild)return this.element.firstElementChild.style.fontSize=`${e}px`,this.updatePosition(),this.getBBox()}getValue(){if(this.element.firstElementChild)return this.element.firstElementChild.innerText.trim()}updatePosition(){let{element:e}=this,t=e.firstElementChild;if(!t)return;let n=this.ctx.domManager.getBoundingClientRect(),{width:a,getTextInputCoords:u,getTextPosition:y,alignment:k,textAlign:R}=this.layout;e.style.setProperty("width",a?`${a}px`:"unset");let F=t.getBoundingClientRect(),_=u(F.height),V=_.x;k==="center"?V-=(a!=null?a:F.width)/2:k==="right"&&(V-=a!=null?a:F.width);let K=y(),q=_.y;K==="center"?q-=F.height/2:K==="bottom"&&(q-=F.height),e.style.setProperty("top",`${q}px`),e.style.setProperty("left",`${V}px`),e.style.setProperty("max-width",`${n.width-V}px`),e.style.setProperty("text-align",k),t.style.setProperty("text-align",R)}getBBox(){let{left:e,top:t,width:n,height:a}=this.element.getBoundingClientRect();return new yB._ModuleSupport.BBox(e,t,n,a)}},dte=(mt(),T(pt)),{BOOLEAN:ute,BaseProperties:hte,Validate:$H,UNION:gte}=dte._ModuleSupport,pte=gte(["x","y","xy"],"an axis type"),bB=class extends hte{constructor(){super(...arguments),this.enabled=!0,this.axes="y"}};me([$H(ute)],bB.prototype,"enabled",2),me([$H(pte,{optional:!0})],bB.prototype,"axes",2);var mte=(mt(),T(pt)),CB=(e=>(e.Line="line",e.HorizontalLine="horizontal-line",e.VerticalLine="vertical-line",e.DisjointChannel="disjoint-channel",e.ParallelChannel="parallel-channel",e.FibonacciRetracement="fibonacci-retracement",e.Callout="callout",e.Comment="comment",e.Note="note",e.Text="text",e.Arrow="arrow",e.ArrowUp="arrow-up",e.ArrowDown="arrow-down",e.DateRange="date-range",e.PriceRange="price-range",e.DatePriceRange="date-price-range",e.QuickDatePriceRange="quick-date-price-range",e))(CB||{}),fte=Object.values(CB);function vte(e){for(let t of fte)if(t===e)return t}var yte=(mt(),T(pt)),bte=(mt(),T(pt)),Cte=(mt(),T(pt)),{BOOLEAN:s2,COLOR_STRING:SB,DATE:wB,FONT_STYLE:Ste,FONT_WEIGHT:wte,FUNCTION:xte,LINE_DASH:Mte,LINE_STYLE:kte,NUMBER:hE,OBJECT:l2,OR:xB,POSITIVE_NUMBER:MB,RATIO:QH,STRING:xR,TEXT_ALIGN:Ate,UNION:jF,BaseProperties:$k,Validate:ua,generateUUID:Dte}=Cte._ModuleSupport,HF=class extends $k{};me([ua(xB(xR,hE,wB))],HF.prototype,"x",2),me([ua(hE)],HF.prototype,"y",2);var Ete=class extends Pu(hw(iW($k))){},kB=class extends Pu(hw(uC(EB(mE($k))))){constructor(){super(...arguments),this.cornerRadius=2}};me([ua(s2)],kB.prototype,"enabled",2),me([ua(MB)],kB.prototype,"cornerRadius",2);var Ite=class extends uC($k){},Tte=class extends Pu(hw(uC($k))){},gE=class extends mE($k){constructor(){super(...arguments),this.label="",this.position="top",this.alignment="left"}};me([ua(xR)],gE.prototype,"label",2),me([ua(jF(["top","center","bottom"]),{optional:!0})],gE.prototype,"position",2),me([ua(jF(["left","center","right"]),{optional:!0})],gE.prototype,"alignment",2);var Rte=class extends mE($k){},c2=class extends mE($k){constructor(){super(...arguments),this.label=""}};me([ua(xR)],c2.prototype,"label",2),me([ua(jF(["top","inside","bottom"]),{optional:!0})],c2.prototype,"position",2),me([ua(jF(["left","center","right"]),{optional:!0})],c2.prototype,"alignment",2);function pE(e){class t extends Lte(iW(e)){constructor(){super(...arguments),this.id=Dte()}isValidWithContext(a,u){return super.isValid(u)}}return t}function AB(e){class t extends e{constructor(){super(...arguments),this.start=new HF,this.end=new HF}}return me([ua(l2)],t.prototype,"start",2),me([ua(l2)],t.prototype,"end",2),t}function JH(e){class t extends e{}return me([ua(xB(xR,hE,wB))],t.prototype,"x",2),me([ua(hE)],t.prototype,"y",2),t}function eW(e){class t extends e{}return me([ua(xB(xR,hE,wB))],t.prototype,"value",2),t}function DB(e){class t extends e{constructor(){super(...arguments),this.background=new Ite}}return me([ua(l2,{optional:!0})],t.prototype,"background",2),t}function Qk(e){class t extends e{constructor(){super(...arguments),this.handle=new Tte}}return me([ua(l2,{optional:!0})],t.prototype,"handle",2),t}function tW(e){class t extends e{constructor(){super(...arguments),this.axisLabel=new kB}}return me([ua(l2,{optional:!0})],t.prototype,"axisLabel",2),t}function EB(e){class t extends e{constructor(){super(...arguments),this.textAlign="center"}}return me([ua(MB,{optional:!0})],t.prototype,"padding",2),me([ua(Ate,{optional:!0})],t.prototype,"textAlign",2),me([ua(xte,{optional:!0})],t.prototype,"formatter",2),t}function Pte(e){class t extends e{}return t}function IB(e){class t extends e{}return me([ua(s2,{optional:!0})],t.prototype,"extendStart",2),me([ua(s2,{optional:!0})],t.prototype,"extendEnd",2),t}function Lte(e){class t extends e{}return me([ua(s2,{optional:!0})],t.prototype,"locked",2),t}function TB(e){class t extends e{setLocaleManager(a){var u;(u=this.localeManager)!=null||(this.localeManager=a)}}return t}function iW(e){class t extends e{}return me([ua(s2,{optional:!0})],t.prototype,"visible",2),t}function uC(e){class t extends e{}return me([ua(SB,{optional:!0})],t.prototype,"fill",2),me([ua(QH,{optional:!0})],t.prototype,"fillOpacity",2),t}function Pu(e){class t extends e{}return me([ua(SB,{optional:!0})],t.prototype,"stroke",2),me([ua(QH,{optional:!0})],t.prototype,"strokeOpacity",2),me([ua(hE,{optional:!0})],t.prototype,"strokeWidth",2),t}function hw(e){class t extends e{constructor(){super(...arguments),this.lineCap=void 0,this.computedLineDash=void 0}}return me([ua(Mte,{optional:!0})],t.prototype,"lineDash",2),me([ua(hE,{optional:!0})],t.prototype,"lineDashOffset",2),me([ua(kte,{optional:!0})],t.prototype,"lineStyle",2),t}function mE(e){class t extends e{constructor(){super(...arguments),this.fontSize=12,this.fontFamily="Verdana, sans-serif"}}return me([ua(Ste,{optional:!0})],t.prototype,"fontStyle",2),me([ua(wte,{optional:!0})],t.prototype,"fontWeight",2),me([ua(MB)],t.prototype,"fontSize",2),me([ua(xR)],t.prototype,"fontFamily",2),me([ua(SB,{optional:!0})],t.prototype,"color",2),t}var Ote=(mt(),T(pt));function gw(e,t){if(e.start==null||e.end==null)return;let n=vc(e.start,t),a=vc(e.end,t);if(!(n==null||a==null))return{x1:n.x,y1:n.y,x2:a.x,y2:a.y}}function vc(e,t){let n=fE(e.x,t.xAxis),a=fE(e.y,t.yAxis);return{x:n,y:a}}function fE(e,t){var a;if(e==null)return 0;let n=((a=t.scale.bandwidth)!=null?a:0)/2;return t.scale.convert(e)+n}function Qr(e,t){let n=d2(e.x,t.xAxis),a=d2(e.y,t.yAxis);return{x:n,y:a}}function d2(e,t){var a;let n=((a=t.scale.bandwidth)!=null?a:0)/2;return t.continuous?t.scaleInvert(e-n):t.scaleInvertNearest(e-n)}var Fte=(mt(),T(pt)),{BaseProperties:_te}=Fte._ModuleSupport,RB=class extends pE(AB(Qk(_te))){constructor(){super(...arguments),this.snapToAngle=45}isValidWithContext(e,t){return super.isValid(t)}getDefaultColor(e){}getDefaultOpacity(e){}},{STRING:Nte,Validate:zte}=Ote._ModuleSupport,nW=class extends TB(EB(mE(RB))){constructor(){super(...arguments),this.text="",this.position="top",this.alignment="left",this.placement="inside",this.placeholderText="inputTextareaPlaceholder"}isValidWithContext(e,t){return super.isValid(t)}getDefaultColor(e){return this.color}getDefaultOpacity(e){}getPlaceholderColor(){}getPadding(){let{padding:e=0}=this;return{top:e,right:e,bottom:e,left:e}}getText(){var n;let e=this.text.length==0,t=this.text;return e&&(t=(n=this.placeholderText)!=null?n:"",this.localeManager&&(t=this.localeManager.t(t))),{text:t,isPlaceholder:e}}getTextInputCoords(e,t){return vc(this.end,e)}getTextPosition(){return this.position}};me([zte(Nte)],nW.prototype,"text",2);var{STRING:Bte,Validate:Gte,isObject:Vte,Color:aW}=bte._ModuleSupport,jte={top:6,right:12,bottom:9,left:12},ry=class extends uC(Pu(nW)){constructor(){super(...arguments),this.type="callout",this.position="bottom",this.alignment="left"}static is(e){return Vte(e)&&e.type==="callout"}getDefaultColor(e){switch(e){case"fill-color":return this.fill;case"line-color":return this.stroke;case"text-color":default:return this.color}}getDefaultOpacity(e){switch(e){case"fill-color":return this.fillOpacity;case"line-color":return this.strokeOpacity;case"text-color":default:return}}getPlaceholderColor(){var a;let{r:e,g:t,b:n}=aW.fromString((a=this.color)!=null?a:"#888888");return new aW(e,t,n,.66).toString()}getPadding(){let{padding:e}=this;return e==null?ge({},jte):{top:e,right:e,bottom:e,left:e}}getTextInputCoords(e,t){var k,R;let n=super.getTextInputCoords(e,t),a=this.getPadding(),u=typeof a=="number"?a:(k=a==null?void 0:a.left)!=null?k:0,y=typeof a=="number"?a:(R=a==null?void 0:a.bottom)!=null?R:0;return{x:n.x+u,y:n.y-y}}};me([Gte(Bte)],ry.prototype,"type",2);var Hte=(mt(),T(pt)),Wte=(mt(),T(pt)),{STRING:Ute,BaseProperties:Kte,Validate:qte}=Wte._ModuleSupport,WF=class extends pE(JH(Qk(EB(mE(Kte))))){constructor(){super(...arguments),this.text="",this.position="top",this.alignment="left",this.placement="inside",this.placeholderText="inputTextareaPlaceholder"}isValidWithContext(e,t){return super.isValid(t)}getDefaultColor(e){return this.color}getDefaultOpacity(e){}getPlaceholderColor(){}getPadding(){let{padding:e=0}=this;return{top:e,right:e,bottom:e,left:e}}getText(){var n;let e=this.text.length==0;return{text:e?(n=this.placeholderText)!=null?n:"":this.text,isPlaceholder:e}}getTextInputCoords(e,t){return vc(this,e)}getTextPosition(){return this.position}};me([qte(Ute)],WF.prototype,"text",2);var{STRING:Yte,Validate:Xte,isObject:Zte,Color:oW}=Hte._ModuleSupport,UF={top:8,right:14,bottom:8,left:14},hC=class extends uC(Pu(WF)){constructor(){super(...arguments),this.type="comment",this.position="bottom",this.alignment="left"}static is(e){return Zte(e)&&e.type==="comment"}getDefaultColor(e){switch(e){case"fill-color":return this.fill;case"line-color":return this.stroke;case"text-color":default:return this.color}}getDefaultOpacity(e){switch(e){case"fill-color":return this.fillOpacity;case"line-color":return this.strokeOpacity;case"text-color":default:return}}getPlaceholderColor(){var a;let{r:e,g:t,b:n}=oW.fromString((a=this.color)!=null?a:"#888888");return new oW(e,t,n,.66).toString()}getPadding(){let{padding:e,fontSize:t}=this;return e==null?{top:Math.max(t*.4,UF.top),bottom:Math.max(t*.4,UF.bottom),left:Math.max(t*.8,UF.left),right:Math.max(t*.8,UF.right)}:{top:e,right:e,bottom:e,left:e}}getTextInputCoords(e,t){let n=super.getTextInputCoords(e,t),a=this.getPadding();return{x:n.x+a.left,y:n.y-a.bottom}}};me([Xte(Yte)],hC.prototype,"type",2);var $te=(mt(),T(pt)),Qte=(mt(),T(pt)),{Vec2:vE}=Qte._ModuleSupport;function u2(e,t){return e?"dashed":t!=null?t:"solid"}function rW(e,t){switch(t){case"solid":return[];case"dashed":return[e*4,e*2];case"dotted":return[0,e*2]}}function MR(e,t,n,a){var y;let u=u2(e,n);return(y=t!=null?t:e)!=null?y:rW(a!=null?a:1,u)}function kR(e,t,n){let a=u2(t,n);return(e!=null?e:a==="dotted")?"round":void 0}function Jte(e,t){let[n,a]=vE.from(e),u=t.height,y=vE.gradient(a,n,u),k=vE.intercept(a,y,u),R=[{x:n.x,y:u!=null?u:0},{x:n.x,y:u==null?t.height:u-t.height}];if(y===1/0)return R;let F=[vE.intersectAtY(y,k,0,u),vE.intersectAtY(y,k,t.height,u),vE.intersectAtX(y,k,0,u),vE.intersectAtX(y,k,t.width,u)];return F=F.filter(_=>_.x>=t.x&&_.x<=t.width&&_.y>=t.y&&_.y<=t.height).sort((_,V)=>_.x===V.x?0:_.x<V.x?-1:1),F.length!==2?R:F}var{BOOLEAN:KF,OBJECT:AR,STRING:qF,BaseProperties:PB,Validate:Rg,isObject:YF}=$te._ModuleSupport,eie=class extends Pu(PB){},LB=class extends mE(uC(Pu(PB))){constructor(){super(...arguments),this.divider=new eie}};me([Rg(AR,{optional:!0})],LB.prototype,"divider",2);var OB=class extends uC(Pu(Qk(PB))){constructor(){super(...arguments),this.statistics=new LB}};me([Rg(AR,{optional:!0})],OB.prototype,"statistics",2);var DR=class extends TB(DB(Pu(hw(RB)))){constructor(){super(...arguments),this.direction="both",this.hasDateRange=!1,this.hasPriceRange=!1,this.statistics=new LB,this.getVolume=()=>{},this.text=new gE}getDefaultColor(e){switch(e){case"fill-color":return this.background.fill;case"line-color":return this.stroke;case"text-color":return this.text.color}}getDefaultOpacity(e){switch(e){case"fill-color":return this.background.fillOpacity;case"line-color":return this.strokeOpacity}}getLineDash(){return MR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return kR(this.lineCap,this.lineDash,this.lineStyle)}};me([Rg(AR,{optional:!0})],DR.prototype,"statistics",2),me([Rg(AR,{optional:!0})],DR.prototype,"text",2);function FB(e){class t extends e{constructor(){super(...arguments),this.hasDateRange=!0}}return t}function _B(e){class t extends e{constructor(){super(...arguments),this.hasPriceRange=!0}}return t}var Ef=class extends FB(DR){constructor(){super(...arguments),this.type="date-range",this.direction="horizontal"}static is(e){return YF(e)&&e.type==="date-range"}};me([Rg(qF)],Ef.prototype,"type",2),me([Rg(KF,{optional:!0})],Ef.prototype,"extendAbove",2),me([Rg(KF,{optional:!0})],Ef.prototype,"extendBelow",2);var If=class extends _B(DR){constructor(){super(...arguments),this.type="price-range",this.direction="vertical"}static is(e){return YF(e)&&e.type==="price-range"}};me([Rg(qF)],If.prototype,"type",2),me([Rg(KF,{optional:!0})],If.prototype,"extendLeft",2),me([Rg(KF,{optional:!0})],If.prototype,"extendRight",2);var pw=class extends FB(_B(DR)){constructor(){super(...arguments),this.type="date-price-range",this.direction="both"}static is(e){return YF(e)&&e.type==="date-price-range"}};me([Rg(qF)],pw.prototype,"type",2);var Xp=class extends FB(_B(DR)){constructor(){super(...arguments),this.type="quick-date-price-range",this.up=new OB,this.down=new OB,this.direction="both"}static is(e){return YF(e)&&e.type==="quick-date-price-range"}};me([Rg(qF)],Xp.prototype,"type",2),me([Rg(AR,{optional:!0})],Xp.prototype,"up",2),me([Rg(AR,{optional:!0})],Xp.prototype,"down",2);var tie=(mt(),T(pt)),iie=(mt(),T(pt)),{TextWrapper:nie,CachedTextMeasurerPool:aie,BBox:oie}=iie._ModuleSupport,XF=1.38;function sW(e){return{font:{fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight},textAlign:e.textAlign,textBaseline:e.position=="center"?"middle":e.position,lineHeight:XF,avoidOrphans:!1,textWrap:"always"}}function ZF(e,t,n){return n?nie.wrapText(t,He(ge({},sW(e)),{maxWidth:n})):t}function rie(e,t){var k;let n=sW(e),{lineMetrics:a,width:u}=aie.measureLines(t,n),y=a.length*((k=e.fontSize)!=null?k:14)*XF;return{width:u,height:y}}function NB(e,t,n,a){var k,R;let u=(k=a==null?void 0:a.width)!=null?k:0,y=(R=a==null?void 0:a.height)!=null?R:0;if(!a){let F=e.width!=null?ZF(e,t,e.width):t;({width:u,height:y}=rie(e,F))}return new oie(n.x,n.y,u,y)}function lW(e,t,n,a,{x:u,y}){let{visible:k=!0,fontFamily:R,fontSize:F=14,fontStyle:_,fontWeight:V,textAlign:K}=a,q=F*XF,$=a.position=="center"?"middle":a.position,te=n?a.getPlaceholderColor():a.color;e.setProperties({x:u,y,visible:k,text:t,fill:te,fontFamily:R,fontSize:F,fontStyle:_,fontWeight:V,textAlign:K,lineHeight:q,textBaseline:$})}var{OBJECT:sie,STRING:lie,BaseProperties:cie,Validate:cW,isObject:die,clamp:uie}=tie._ModuleSupport,hie=10,gie=11,dW=20,pie=22,mie=10,uW=dW+mie,hW=34,fie=class extends uC(Pu(cie)){},Pg=class extends uC(Pu(WF)){constructor(){super(...arguments),this.type="note",this.background=new fie,this.position="bottom",this.alignment="center",this.width=200}static is(e){return die(e)&&e.type==="note"}getDefaultColor(e){switch(e){case"line-color":return this.fill;case"text-color":return this.color}}getDefaultOpacity(e){switch(e){case"line-color":return this.fillOpacity;case"text-color":return}}getPadding(){var t;let e=(t=this.padding)!=null?t:hie;return{top:e,right:e,bottom:e,left:e}}getTextInputCoords(e,t){let{width:n,text:a}=this,u=super.getTextInputCoords(e,t),y=this.getPadding().top,k=NB(this,a,u);k.x=uie(n/2,k.x,e.seriesRect.width-n/2);let R=k.y-uW-y*2,F=k.y+gie+y*2,_=Math.max(k.height,t);return R-_-hW<0?(k.y=F,this.position="top"):(k.y=R+y,this.position="bottom"),{x:k.x,y:k.y}}};me([cW(lie)],Pg.prototype,"type",2),me([cW(sie,{optional:!0})],Pg.prototype,"background",2);var vie=(mt(),T(pt)),{BaseProperties:yie}=vie._ModuleSupport,bie=class extends pE(JH(Qk(yie))){isValidWithContext(e,t){return super.isValid(t)}getDefaultColor(e){}getDefaultOpacity(e){}},zB=class zZ extends uC(bie){constructor(){super(...arguments),this.size=32}static is(t){return t instanceof zZ}getDefaultColor(t){return t==="fill-color"?this.fill:void 0}getDefaultOpacity(t){return t==="fill-color"?this.fillOpacity:void 0}},Cie=(mt(),T(pt)),Sie=(mt(),T(pt)),{Logger:BB}=Sie._ModuleSupport;function h2(e,t,n,a){let u=!0;return u&&(u=sy(e,t.start,n,a&&`${a}[start] `)),u&&(u=sy(e,t.end,n,a&&`${a}[end] `)),u}function gW(e,t,n){let a=t.direction==="horizontal"?e.yAxis:e.xAxis,u=GB(t.value,a);return!u&&n&&BB.warnOnce(`${n}is outside the axis domain, ignoring. - value: [${t.value}]]`),u}function sy(e,t,n,a){if(t.x==null||t.y==null)return a&&BB.warnOnce(`${a}requires both an [x] and [y] property, ignoring.`),!1;let u=(n==null?void 0:n.x)===!1?!0:GB(t.x,e.xAxis),y=(n==null?void 0:n.y)===!1?!0:GB(t.y,e.yAxis);if(!u||!y){let k="x & y domains";return u&&(k="y domain"),y&&(k="x domain"),a&&BB.warnOnce(`${a}is outside the ${k}, ignoring. - x: [${t.x}], y: ${t.y}]`),!1}return!0}function GB(e,t){var a,u;let n=(u=(a=t.scale).getDomain)==null?void 0:u.call(a);return n&&t.continuous?e>=n[0]&&e<=n.at(-1):!0}function wie(e){return(e==null?void 0:e.x)!=null&&(e==null?void 0:e.y)!=null}var{OBJECT:pW,STRING:mW,BaseProperties:fW,Validate:$F,isObject:vW}=Cie._ModuleSupport,Lu=class extends pE(eW(Qk(tW(Pu(hw(fW)))))){constructor(){super(...arguments),this.direction="horizontal",this.type="horizontal-line",this.text=new gE}static is(e){return vW(e)&&e.type==="horizontal-line"}isValidWithContext(e,t){return super.isValid(t)&&gW(e,this,t)}getDefaultColor(){return this.stroke}getDefaultOpacity(){return this.strokeOpacity}getLineDash(){return MR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return kR(this.lineCap,this.lineDash,this.lineStyle)}};me([$F(mW)],Lu.prototype,"type",2),me([$F(pW,{optional:!0})],Lu.prototype,"text",2);var gC=class extends pE(eW(Qk(tW(Pu(hw(fW)))))){constructor(){super(...arguments),this.direction="vertical",this.type="vertical-line",this.text=new gE}static is(e){return vW(e)&&e.type==="vertical-line"}isValidWithContext(e,t){return super.isValid(t)&&gW(e,this,t)}getDefaultColor(){return this.stroke}getDefaultOpacity(){return this.strokeOpacity}getLineDash(){return MR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return kR(this.lineCap,this.lineDash,this.lineStyle)}};me([$F(mW)],gC.prototype,"type",2),me([$F(pW,{optional:!0})],gC.prototype,"text",2);var xie=(mt(),T(pt)),{NUMBER:yW,OBJECT:Mie,STRING:kie,BaseProperties:Aie,Validate:QF,isObject:Die,Logger:Eie}=xie._ModuleSupport,Tf=class extends pE(DB(AB(Qk(IB(Pu(hw(Aie))))))){constructor(){super(...arguments),this.type="disjoint-channel",this.text=new c2,this.snapToAngle=45}static is(e){return Die(e)&&e.type==="disjoint-channel"}get bottom(){let e={start:{x:this.start.x,y:this.start.y},end:{x:this.end.x,y:this.end.y}};return typeof e.start.y=="number"&&typeof e.end.y=="number"?(e.start.y-=this.startHeight,e.end.y-=this.endHeight):Eie.warnOnce(`Annotation [${this.type}] can only be used with a numeric y-axis.`),e}isValidWithContext(e,t){return super.isValid(t)&&h2(e,this,{y:!1},t)&&h2(e,this.bottom,{y:!1},t)}getDefaultColor(e){switch(e){case"fill-color":return this.background.fill;case"line-color":return this.stroke;case"text-color":return this.text.color}}getDefaultOpacity(e){switch(e){case"fill-color":return this.background.fillOpacity;case"line-color":return this.strokeOpacity}}getLineDash(){return MR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return kR(this.lineCap,this.lineDash,this.lineStyle)}};me([QF(kie)],Tf.prototype,"type",2),me([QF(yW)],Tf.prototype,"startHeight",2),me([QF(yW)],Tf.prototype,"endHeight",2),me([QF(Mie,{optional:!0})],Tf.prototype,"text",2);var Iie=(mt(),T(pt)),Tie=(mt(),T(pt)),Rie=(mt(),T(pt)),{OBJECT:Pie,STRING:bW,Validate:VB,isObject:CW}=Rie._ModuleSupport,JF=class extends TB(Pte(IB(Pu(hw(RB))))){constructor(){super(...arguments),this.text=new gE}isValidWithContext(e,t){return super.isValid(t)&&h2(e,this,void 0,t)}getDefaultColor(e){switch(e){case"line-color":return this.stroke;case"text-color":return this.text.color}}getDefaultOpacity(){return this.strokeOpacity}getLineDash(){return MR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return kR(this.lineCap,this.lineDash,this.lineStyle)}};me([VB(Pie,{optional:!0})],JF.prototype,"text",2);var mw=class extends JF{constructor(){super(...arguments),this.type="arrow",this.endCap="arrow"}static is(e){return CW(e)&&e.type==="arrow"}};me([VB(bW)],mw.prototype,"type",2);var fw=class extends JF{constructor(){super(...arguments),this.type="line"}static is(e){return CW(e)&&e.type==="line"}};me([VB(bW)],fw.prototype,"type",2);var{OBJECT:Lie,BOOLEAN:jB,COLOR_STRING:Oie,COLOR_STRING_ARRAY:Fie,Validate:yE,predicateWithMessage:_ie,isFiniteNumber:Nie}=Tie._ModuleSupport,zie=[10,6,4],Bie=_ie(e=>Nie(e)&&zie.includes(e),"Number of fibonacci ranges, 10, 6 or 4"),Jk=class extends JF{constructor(){super(...arguments),this.label=new Rte,this.reverse=!1,this.showFill=!0,this.isMultiColor=!0,this.strokes=[],this.bands=10}getDefaultColor(e){var t;switch(e){case"line-color":return(t=this.rangeStroke)!=null?t:this.stroke;case"text-color":return this.text.color}}};me([yE(Lie,{optional:!0})],Jk.prototype,"label",2),me([yE(jB,{optional:!0})],Jk.prototype,"reverse",2),me([yE(jB,{optional:!0})],Jk.prototype,"showFill",2),me([yE(jB,{optional:!0})],Jk.prototype,"isMultiColor",2),me([yE(Fie,{optional:!0})],Jk.prototype,"strokes",2),me([yE(Oie,{optional:!0})],Jk.prototype,"rangeStroke",2),me([yE(Bie,{optional:!0})],Jk.prototype,"bands",2);var{STRING:Gie,Validate:Vie,isObject:jie}=Iie._ModuleSupport,vw=class extends Jk{constructor(){super(...arguments),this.type="fibonacci-retracement"}static is(e){return jie(e)&&e.type==="fibonacci-retracement"}};me([Vie(Gie)],vw.prototype,"type",2);var Hie=(mt(),T(pt)),{NUMBER:Wie,STRING:Uie,OBJECT:SW,BaseProperties:Kie,Validate:e_,isObject:qie,Logger:Yie}=Hie._ModuleSupport,Rf=class extends pE(DB(AB(Qk(IB(Pu(hw(Kie))))))){constructor(){super(...arguments),this.type="parallel-channel",this.middle=new Ete,this.text=new c2,this.snapToAngle=45}static is(e){return qie(e)&&e.type==="parallel-channel"}get bottom(){let e={start:{x:this.start.x,y:this.start.y},end:{x:this.end.x,y:this.end.y}};return typeof e.start.y=="number"&&typeof e.end.y=="number"?(e.start.y-=this.height,e.end.y-=this.height):Yie.warnOnce(`Annotation [${this.type}] can only be used with a numeric y-axis.`),e}isValidWithContext(e,t){return super.isValid(t)&&h2(e,this,{y:!1},t)&&h2(e,this.bottom,{y:!1},t)}getDefaultColor(e){switch(e){case"fill-color":return this.background.fill;case"line-color":return this.stroke;case"text-color":return this.text.color}}getDefaultOpacity(e){switch(e){case"fill-color":return this.background.fillOpacity;case"line-color":return this.strokeOpacity}}getLineDash(){return MR(this.lineDash,this.computedLineDash,this.lineStyle,this.strokeWidth)}getLineCap(){return kR(this.lineCap,this.lineDash,this.lineStyle)}};me([e_(Uie)],Rf.prototype,"type",2),me([e_(Wie)],Rf.prototype,"height",2),me([e_(SW,{optional:!0})],Rf.prototype,"middle",2),me([e_(SW,{optional:!0})],Rf.prototype,"text",2);var Xie=(mt(),T(pt)),{STRING:Zie,Validate:$ie,isObject:Qie}=Xie._ModuleSupport,yw=class extends WF{constructor(){super(...arguments),this.type="text",this.position="bottom"}static is(e){return Qie(e)&&e.type==="text"}};me([$ie(Zie)],yw.prototype,"type",2);function eA(e){return Xp.is(e)}function t_(e){return fw.is(e)||Lu.is(e)||gC.is(e)||mw.is(e)||wW(e)}function bw(e){return Tf.is(e)||Rf.is(e)}function wW(e){return vw.is(e)}function pC(e){return ry.is(e)||hC.is(e)||Pg.is(e)||yw.is(e)}function g2(e){return Ef.is(e)||If.is(e)||pw.is(e)||Xp.is(e)}var{isObject:Jie}=yte._ModuleSupport;function HB(e){return pC(e)&&!Pg.is(e)}function tA(e){return t_(e)||bw(e)||g2(e)&&!Xp.is(e)}function ene(e){return t_(e)||bw(e)||g2(e)||ry.is(e)||Pg.is(e)}function tne(e){return Pg.is(e)}function ine(e){return bw(e)||g2(e)||ry.is(e)||hC.is(e)||zB.is(e)}function nne(e){return pC(e)&&!Pg.is(e)}function ER(e){return(t_(e)||bw(e)||g2(e))&&!eA(e)&&Jie(e.text)}function ane(e,t){"fontSize"in e&&(e.fontSize=t),ER(e)&&(e.text.fontSize=t)}function xW(e,t){var k,R,F;let n=(R=(k=t==null?void 0:t.strokeWidth)!=null?k:e.strokeWidth)!=null?R:1,a=(F=t==null?void 0:t.type)!=null?F:e.lineStyle,u=a!=null?a:u2(e.lineDash,a),y=rW(n,u);e.strokeWidth=n,e.computedLineDash=y,e.lineStyle=u,e.lineCap=u==="dotted"?"round":void 0}function i_(e,t,n,a,u,y){switch(t){case"fill-color":{"fill"in e&&(e.fill=a),"fillOpacity"in e&&(e.fillOpacity=u),"background"in e&&(e.background.fill=a,e.background.fillOpacity=u);break}case"line-color":{"axisLabel"in e&&(e.axisLabel.fill=a,e.axisLabel.fillOpacity=u,e.axisLabel.stroke=a,e.axisLabel.strokeOpacity=u),"fill"in e&&"fillOpacity"in e&&tne(e)?(e.fill=a,e.fillOpacity=u):("strokeOpacity"in e&&(e.strokeOpacity=u),"isMultiColor"in e&&"rangeStroke"in e?(e.isMultiColor=y,e.rangeStroke=a):"stroke"in e&&(e.stroke=a));break}case"text-color":{"color"in e&&(e.color=n),ER(e)&&(e.text.color=a);break}}}var{deepClone:Pf}=mte._ModuleSupport,one=class{constructor(){this.mementoOriginatorKey="annotation-defaults",this.colors=new Map(Object.values(CB).map(e=>[e,new Map([["line-color",void 0],["fill-color",void 0],["text-color",void 0]])])),this.fontSizes=new Map([["callout",void 0],["comment",void 0],["text",void 0],["arrow",void 0],["line",void 0],["disjoint-channel",void 0],["parallel-channel",void 0],["date-range",void 0],["price-range",void 0],["date-price-range",void 0]]),this.lineStyles=new Map([["line",void 0],["horizontal-line",void 0],["vertical-line",void 0],["disjoint-channel",void 0],["parallel-channel",void 0],["arrow",void 0],["date-range",void 0],["price-range",void 0],["date-price-range",void 0]]),this.lineTextAlignments=new Map([["line",void 0],["horizontal-line",void 0],["vertical-line",void 0],["disjoint-channel",void 0],["parallel-channel",void 0],["arrow",void 0],["date-range",void 0],["price-range",void 0],["date-price-range",void 0]]),this.lineTextPositions=new Map([["line",void 0],["horizontal-line",void 0],["vertical-line",void 0],["disjoint-channel",void 0],["parallel-channel",void 0],["arrow",void 0],["date-range",void 0],["price-range",void 0],["date-price-range",void 0]]),this.fibonacciBands=new Map([["fibonacci-retracement",void 0]])}createMemento(){return{colors:Pf(this.colors),fontSizes:Pf(this.fontSizes),lineStyles:Pf(this.lineStyles),lineTextAlignments:Pf(this.lineTextAlignments),lineTextPositions:Pf(this.lineTextPositions),fibonacciBands:Pf(this.fibonacciBands)}}guardMemento(e){return!0}restoreMemento(e,t,n){this.colors=Pf(n.colors),this.fontSizes=Pf(n.fontSizes),this.lineStyles=Pf(n.lineStyles),this.lineTextAlignments=Pf(n.lineTextAlignments),this.lineTextPositions=Pf(n.lineTextPositions),this.fibonacciBands=Pf(n.fibonacciBands)}setDefaultColor(e,t,n,a,u,y){var k;(k=this.colors.get(e))==null||k.set(t,[n,a,u,y])}setDefaultFontSize(e,t){this.fontSizes.set(e,t)}setDefaultLineStyleType(e,t){let n=this.lineStyles.get(e);n?n.type=t:this.lineStyles.set(e,{type:t})}setDefaultLineStyleWidth(e,t){let n=this.lineStyles.get(e);n?n.strokeWidth=t:this.lineStyles.set(e,{strokeWidth:t})}setDefaultLineTextAlignment(e,t){this.lineTextAlignments.set(e,t)}setDefaultLineTextPosition(e,t){this.lineTextPositions.set(e,t)}setDefaultFibonacciBands(e,t){e=="fibonacci-retracement"&&this.fibonacciBands.set(e,t)}applyDefaults(e){for(let[t,n]of this.colors)if(e.type===t)for(let[a,[u,y,k,R]=[]]of n)u&&y&&k!=null&&R!=null&&i_(e,a,u,y,k,R);for(let[t,n]of this.fontSizes)e.type!==t||n==null||ane(e,n);for(let[t,n]of this.lineStyles)e.type!==t||n==null||xW(e,n);for(let[t,n]of this.lineTextPositions)e.type!==t||n==null||(e.text.position=n);for(let[t,n]of this.lineTextAlignments)e.type!==t||n==null||(e.text.alignment=n);for(let[t,n]of this.fibonacciBands)e.type!==t||n==null||(e.bands=n)}},MW=(mt(),T(pt)),kW=(mt(),T(pt)),rne='<div class="ag-charts-color-picker__palette" tabindex="0"></div><div class="ag-charts-color-picker__color-row"><button class="ag-charts-color-picker__multi-color-button" tabindex="0" type="button"></button> <input class="ag-charts-color-picker__hue-input" tabindex="0" type="range" min="0" max="360" value="0"></div><input class="ag-charts-color-picker__alpha-input" tabindex="0" type="range" min="0" max="1" value="1" step="0.01"> <label class="ag-charts-color-picker__color-field"><span class="ag-charts-color-picker__color-label">Color</span> <input class="ag-charts-color-picker__color-input" tabindex="0" value="#000"></label>',{createElement:sne,Color:WB,clamp:n_}=kW._ModuleSupport,AW=e=>{try{let t=WB.fromString(e),[n,a,u]=t.toHSB();return[n,a,u,t.a]}catch(t){return}},DW=class extends kW._ModuleSupport.AnchoredPopover{constructor(e,t){super(e,"color-picker",t),this.hasChanged=!1,this.hideFns.push(()=>{var n;this.hasChanged&&((n=this.onChangeHide)==null||n.call(this))})}show(e){this.hasChanged=!1,this.onChangeHide=e.onChangeHide;let{element:t,initialFocus:n}=this.createColorPicker(e),a=this.showWithChildren([t],ge({initialFocus:n},e));a.classList.add("ag-charts-color-picker"),a.setAttribute("role","dialog")}createColorPicker(e){var se,de,pe,Ce;let t=(se=e.isMultiColor)!=null?se:!1,[n,a,u,y]=(pe=AW((de=e.color)!=null?de:"#f00"))!=null?pe:[0,1,.5,1];y=(Ce=e.opacity)!=null?Ce:y;let k=sne("div","ag-charts-color-picker__content");k.innerHTML=rne,k.ariaLabel=this.ctx.localeManager.t("ariaLabelColorPicker");let R=k.querySelector(".ag-charts-color-picker__palette"),F=k.querySelector(".ag-charts-color-picker__hue-input"),_=k.querySelector(".ag-charts-color-picker__multi-color-button"),V=k.querySelector(".ag-charts-color-picker__alpha-input"),K=k.querySelector(".ag-charts-color-picker__color-input"),q=k.querySelector(".ag-charts-color-picker__color-label");_.classList.toggle("ag-charts-color-picker__multi-color-button--hidden",!e.hasMultiColorOption);let $=(Se=!0)=>{var De;let ke=WB.fromHSB(n,a,u,y).toHexString();if(k.style.setProperty("--h",`${n}`),k.style.setProperty("--s",`${a}`),k.style.setProperty("--v",`${u}`),k.style.setProperty("--a",`${y}`),k.style.setProperty("--color",ke.slice(0,7)),k.style.setProperty("--color-a",ke),F.value=`${n}`,V.value=`${y}`,V.classList.toggle("ag-charts-color-picker__alpha-input--opaque",y===1),_.classList.toggle("ag-charts-color-picker__multi-color-button--active",t),q.classList.toggle("ag-charts-color-picker__color-label--multi-color",t),document.activeElement!==K&&(K.value=t?"Multi Colour":ke.toUpperCase()),Se||e.color==null){let Te=WB.fromHSB(n,a,u,1).toHexString();(De=e.onChange)==null||De.call(e,ke,Te,y,t)}Se&&(this.hasChanged=!0)};$(!1);let te=Se=>{Se.preventDefault();let ve=Se.currentTarget;ve.focus();let ke=ve.getBoundingClientRect(),De=({pageX:Te,pageY:ze})=>{t=!1,a=Math.min(Math.max((Te-ke.left)/ke.width,0),1),u=1-Math.min(Math.max((ze-ke.top)/ke.height,0),1),$()};De(Se),window.addEventListener("mousemove",De),window.addEventListener("mouseup",()=>window.removeEventListener("mousemove",De),{once:!0})};return k.addEventListener("mousedown",Se=>{Se.stopPropagation()}),k.addEventListener("keydown",Se=>{switch(Se.stopPropagation(),Se.key){case"Enter":case"Escape":this.hide();break;default:return}Se.preventDefault()}),R.addEventListener("mousedown",te),R.addEventListener("keydown",Se=>{if(Se.key==="ArrowLeft")a=n_(0,a-.01,1);else if(Se.key==="ArrowRight")a=n_(0,a+.01,1);else if(Se.key==="ArrowUp")u=n_(0,u+.01,1);else if(Se.key==="ArrowDown")u=n_(0,u-.01,1);else return;Se.preventDefault(),$()}),_.addEventListener("click",()=>{t=!t,$()}),F.addEventListener("input",Se=>{var ve;t=!1,n=(ve=Se.currentTarget.valueAsNumber)!=null?ve:0,$()}),V.addEventListener("input",Se=>{var ve;t=!1,y=(ve=Se.currentTarget.valueAsNumber)!=null?ve:0,$()}),K.addEventListener("input",Se=>{t=!1;let ve=AW(Se.currentTarget.value);ve!=null&&([n,a,u,y]=ve,$())}),K.addEventListener("blur",()=>$()),K.addEventListener("keydown",Se=>{Se.key==="Enter"&&(Se.currentTarget.blur(),$())}),{element:k,initialFocus:R}}},lne=[{label:"toolbarAnnotationsTrendLine",icon:"trend-line-drawing",value:"line"},{label:"toolbarAnnotationsHorizontalLine",icon:"horizontal-line-drawing",value:"horizontal-line"},{label:"toolbarAnnotationsVerticalLine",icon:"vertical-line-drawing",value:"vertical-line"},{label:"toolbarAnnotationsParallelChannel",icon:"parallel-channel-drawing",value:"parallel-channel"},{label:"toolbarAnnotationsDisjointChannel",icon:"disjoint-channel-drawing",value:"disjoint-channel"}],cne=[{label:"toolbarAnnotationsFibonacciRetracement",icon:"fibonacci-retracement-drawing",value:"fibonacci-retracement"}],dne=[{label:"Fibonacci - Extended",value:10},{label:"Fibonacci - 6 Band",value:6},{label:"Fibonacci - 4 Band",value:4}],une=[{label:"toolbarAnnotationsText",icon:"text-annotation",value:"text"},{label:"toolbarAnnotationsComment",icon:"comment-annotation",value:"comment"},{label:"toolbarAnnotationsCallout",icon:"callout-annotation",value:"callout"},{label:"toolbarAnnotationsNote",icon:"note-annotation",value:"note"}],hne=[{label:"toolbarAnnotationsArrow",icon:"arrow-drawing",value:"arrow"},{label:"toolbarAnnotationsArrowUp",icon:"arrow-up-drawing",value:"arrow-up"},{label:"toolbarAnnotationsArrowDown",icon:"arrow-down-drawing",value:"arrow-down"}],gne=[{label:"toolbarAnnotationsQuickDatePriceRange",icon:"measurer-drawing",value:"quick-date-price-range"},{label:"toolbarAnnotationsDateRange",icon:"date-range-drawing",value:"date-range"},{label:"toolbarAnnotationsPriceRange",icon:"price-range-drawing",value:"price-range"},{label:"toolbarAnnotationsDatePriceRange",icon:"date-price-range-drawing",value:"date-price-range"}],EW=[{strokeWidth:1,label:"1",value:1},{strokeWidth:2,label:"2",value:2},{strokeWidth:3,label:"3",value:3},{strokeWidth:4,label:"4",value:4},{strokeWidth:8,label:"8",value:8}],p2=[{icon:"line-style-solid",altText:"iconAltTextLineStyleSolid",value:"solid"},{icon:"line-style-dashed",altText:"iconAltTextLineStyleDashed",value:"dashed"},{icon:"line-style-dotted",altText:"iconAltTextLineStyleDotted",value:"dotted"}],IW=[{label:"10",value:10},{label:"12",value:12},{label:"14",value:14},{label:"16",value:16},{label:"18",value:18},{label:"22",value:22},{label:"28",value:28},{label:"36",value:36},{label:"46",value:46}],{ARRAY:pne,BOOLEAN:mne,NUMBER:fne,OBJECT:vne,STRING:yne,UNION:bne,Color:TW,FloatingToolbar:Cne,InteractionState:RW,Listeners:Sne,Menu:UB,PropertiesArray:wne,ToolbarButtonProperties:PW,ToolbarButtonWidget:xne,Validate:bE}=MW._ModuleSupport,IR=class extends PW{constructor(){super(...arguments),this.checkedOverrides=new PW}};me([bE(bne(["line-stroke-width","line-style-type","line-color","fill-color","text-color","text-size","delete","settings","lock"]))],IR.prototype,"value",2),me([bE(vne,{optional:!0})],IR.prototype,"checkedOverrides",2),me([bE(yne,{optional:!0})],IR.prototype,"color",2),me([bE(fne,{optional:!0})],IR.prototype,"strokeWidth",2),me([bE(Boolean,{optional:!0})],IR.prototype,"isMultiColor",2);var Mne=class extends xne{update(e){super.update(e),e.value==="line-stroke-width"&&this.updateLineStrokeWidth(e),(e.value==="fill-color"||e.value==="line-color"||e.value==="text-color")&&this.updateFillColor(e)}updateFillColor(e){var n;let t=this.getElement();t.classList.add("ag-charts-annotations__color-picker-button"),t.classList.toggle("ag-charts-annotations__color-picker-button--multi-color",e.isMultiColor),t.style.setProperty("--color",(n=e.color)!=null?n:null)}updateLineStrokeWidth(e){let t=this.getElement();t.classList.add("ag-charts-annotations__stroke-width-button"),t.style.setProperty("--stroke-width",`${e.strokeWidth}px`)}},kne=class extends Cne{createButtonWidget(){return new Mne(this.localeManager)}},KB=class extends MW._ModuleSupport.BaseProperties{constructor(e,t){super(),this.ctx=e,this.getActiveDatum=t,this.enabled=!0,this.buttons=new wne(IR),this.destroyFns=[],this.events=new Sne,this.visibleButtons=[],this.toolbar=new kne(this.ctx,"annotation-options"),this.colorPicker=new DW(this.ctx),this.textSizeMenu=new UB(this.ctx,"text-size"),this.lineStyleTypeMenu=new UB(this.ctx,"annotations-line-style-type"),this.lineStrokeWidthMenu=new UB(this.ctx,"annotations-line-stroke-width");let n=e.regionManager.getRegion("series");this.destroyFns.push(this.toolbar.addToolbarListener("button-pressed",this.onButtonPress.bind(this)),this.toolbar.addToolbarListener("toolbar-moved",this.onToolbarMoved.bind(this)),n.addListener("drag-start",this.onDragStart.bind(this),RW.All),n.addListener("drag-end",this.onDragEnd.bind(this),RW.All),()=>this.colorPicker.destroy())}onDragStart(){this.toolbar.ignorePointerEvents()}onDragEnd(){this.toolbar.capturePointerEvents()}destroy(){for(let e of this.destroyFns)e()}addListener(e,t){return this.events.addListener(e,t)}show(){this.toolbar.show({})}hide(){this.toolbar.hide()}updateButtons(e){let t={["line-style-type"]:tA(e),["line-stroke-width"]:tA(e),["line-color"]:ene(e),["text-color"]:nne(e),["fill-color"]:ine(e),["text-size"]:HB(e),settings:ER(e),lock:!0,delete:!0};this.visibleButtons=this.buttons.filter(n=>t[n.value]),this.toolbar.clearButtons(),this.toolbar.updateButtons(this.visibleButtons),this.refreshButtons(e)}setAnchorScene(e){this.toolbar.hasBeenDragged()||this.toolbar.setAnchor(e.getAnchor())}hideOverlays(){this.toolbar.clearActiveButton(),this.colorPicker.hide({lastFocus:null}),this.textSizeMenu.hide(),this.lineStyleTypeMenu.hide(),this.lineStrokeWidthMenu.hide(),this.dispatch("hid-overlays")}clearActiveButton(){this.toolbar.clearActiveButton()}updateColors(e){this.updateColorPickerColor("line-color",e.getDefaultColor("line-color"),e.getDefaultOpacity("line-color"),"isMultiColor"in e&&(e==null?void 0:e.isMultiColor)),this.updateColorPickerColor("fill-color",e.getDefaultColor("fill-color"),e.getDefaultOpacity("fill-color"),"isMultiColor"in e&&(e==null?void 0:e.isMultiColor)),this.updateColorPickerColor("text-color",e.getDefaultColor("text-color"),e.getDefaultOpacity("text-color"),"isMultiColor"in e&&(e==null?void 0:e.isMultiColor))}updateColorPickerColor(e,t,n,a){if(t!=null&&n!=null){let{r:u,g:y,b:k}=TW.fromString(t);t=TW.fromArray([u,y,k,n]).toHexString()}this.updateButtonByValue(e,{color:t,isMultiColor:a})}updateFontSize(e){this.updateButtonByValue("text-size",{label:e!=null?String(e):void 0})}updateLineStyleType(e){this.updateButtonByValue("line-style-type",{icon:e.icon})}updateStrokeWidth(e){this.updateButtonByValue("line-stroke-width",{label:e.label,strokeWidth:e.value})}dispatch(e,t){this.events.dispatch(e,t)}onButtonPress({event:e,button:t}){let n=this.getActiveDatum();if(n)switch(this.hideOverlays(),t.value){case"line-style-type":{let a=tA(n)?u2(n.lineDash,n.lineStyle):void 0;this.lineStyleTypeMenu.show({items:p2,ariaLabel:this.ctx.localeManager.t("toolbarAnnotationsLineStyle"),value:a,sourceEvent:e.sourceEvent,onPress:u=>this.onLineStyleTypeMenuPress(u,n),class:"ag-charts-annotations__line-style-type-menu"});break}case"line-stroke-width":{let a=tA(n)?n.strokeWidth:void 0;this.lineStrokeWidthMenu.show({items:EW,ariaLabel:this.ctx.localeManager.t("toolbarAnnotationsLineStrokeWidth"),value:a,sourceEvent:e.sourceEvent,onPress:u=>this.onLineStrokeWidthMenuPress(u,n),class:"ag-charts-annotations__line-stroke-width-menu"});break}case"line-color":case"fill-color":case"text-color":{this.toolbar.toggleActiveButtonByIndex(t.index),this.colorPicker.show({color:n==null?void 0:n.getDefaultColor(t.value),opacity:n==null?void 0:n.getDefaultOpacity(t.value),sourceEvent:e.sourceEvent,hasMultiColorOption:"isMultiColor"in n,isMultiColor:"isMultiColor"in n&&(n==null?void 0:n.isMultiColor),onChange:n!=null?this.onColorPickerChange.bind(this,t.value,n):void 0,onChangeHide:(a=>{this.dispatch("saved-color",{type:n.type,colorPickerType:t.value,color:n.getDefaultColor(a)})}).bind(this,t.value)});break}case"text-size":{let a=pC(n)?n.fontSize:void 0;this.textSizeMenu.show({items:IW,ariaLabel:this.ctx.localeManager.t("toolbarAnnotationsTextSize"),value:a,sourceEvent:e.sourceEvent,onPress:u=>this.onTextSizeMenuPress(u,n),class:"ag-charts-annotations__text-size-menu"});break}case"delete":{this.dispatch("pressed-delete");break}case"lock":{n.locked=!n.locked,this.refreshButtons(n),this.dispatch("pressed-lock");break}case"settings":{this.toolbar.toggleActiveButtonByIndex(t.index),this.dispatch("pressed-settings",e);break}}}onToolbarMoved(e){let{buttonBounds:t,popoverBounds:n}=e,a={x:n.x,y:n.y+n.height+4},u={y:n.y-4};this.colorPicker.setAnchor(a,u);for(let[y,k]of t.entries()){let R=this.visibleButtons.at(y);if(!R)continue;let F={x:k.x,y:k.y+k.height-1},_={y:k.y};switch(R.value){case"line-stroke-width":this.lineStrokeWidthMenu.setAnchor(F,_);break;case"line-style-type":this.lineStyleTypeMenu.setAnchor(F,_);break;case"text-size":this.textSizeMenu.setAnchor(F,_);break}}}onColorPickerChange(e,t,n,a,u,y){this.dispatch("updated-color",{type:t.type,colorPickerType:e,colorOpacity:n,color:a,opacity:u,isMultiColor:y}),this.updateColorPickerColor(e,n,u,y)}onTextSizeMenuPress(e,t){if(!HB(t))return;let n=e.value;this.dispatch("updated-font-size",{type:t.type,fontSize:n}),this.textSizeMenu.hide(),this.updateFontSize(n)}onLineStyleTypeMenuPress(e,t){if(!tA(t))return;let n=e.value;this.dispatch("updated-line-style",{type:t.type,lineStyleType:n}),this.lineStyleTypeMenu.hide(),this.updateLineStyleType(e)}onLineStrokeWidthMenuPress(e,t){if(!tA(t))return;let n=e.value;this.dispatch("updated-line-width",{type:t.type,strokeWidth:n}),this.lineStrokeWidthMenu.hide(),this.updateStrokeWidth(e)}refreshButtons(e){var n;let t=(n=e.locked)!=null?n:!1;for(let[a,u]of this.visibleButtons.entries())u&&(u.value==="lock"?(this.toolbar.toggleSwitchCheckedByIndex(a,t),this.updateButtonByIndex(a,t?u.checkedOverrides.toJson():u.toJson())):this.toolbar.toggleButtonEnabledByIndex(a,!t));HB(e)&&this.updateFontSize(e.fontSize),this.updateColors(e),this.updateLineStyles(e)}updateLineStyles(e){var a,u;if(!tA(e))return;let t=(a=e.strokeWidth)!=null?a:1,n=u2(e.lineDash,e.lineStyle);this.updateStrokeWidth({strokeWidth:t,value:t,label:String(t)}),this.updateLineStyleType((u=p2.find(y=>y.value===n))!=null?u:p2[0])}updateButtonByValue(e,t){let n=this.visibleButtons.findIndex(a=>a.value===e);n!==-1&&this.updateButtonByIndex(n,t)}updateButtonByIndex(e,t){var a;let n=this.visibleButtons.at(e);n&&this.toolbar.updateButtonByIndex(e,He(ge(ge({},n.toJson()),t),{value:(a=t.value)!=null?a:n.value}))}};me([bE(mne)],KB.prototype,"enabled",2),me([bE(pne)],KB.prototype,"buttons",2);var Ane=(mt(),T(pt)),{StateMachine:LW,StateMachineProperty:qB,Vec2:OW,Debug:Dne}=Ane._ModuleSupport,Bl=class extends LW{constructor(e){let t=({context:n})=>{var a;(a=this.node)==null||a.drag(this.datum,this.offset,n,this.snapping),e.update()};super("idle",{idle:{dragStart:{target:"dragging",action:({offset:n,context:a})=>{var u;this.hasMoved=!1,this.dragStart=n,this.offset=n,(u=this.node)==null||u.dragStart(this.datum,n,a)}}},dragging:{keyDown:t,keyUp:t,drag:({offset:n,context:a})=>{var u;this.hasMoved=OW.lengthSquared(OW.sub(n,this.dragStart))>0,this.offset=n,(u=this.node)==null||u.drag(this.datum,n,a,this.snapping),e.update()},dragEnd:{target:LW.parent,action:()=>{var n;(n=this.node)==null||n.stopDragging(),e.stopInteracting(),this.hasMoved&&e.recordAction("Move annotation"),e.update()}}}}),this.debug=Dne.create(!0,"annotations"),this.hasMoved=!1,this.snapping=!1}};me([qB()],Bl.prototype,"snapping",2),me([qB()],Bl.prototype,"datum",2),me([qB()],Bl.prototype,"node",2);var Ene=(mt(),T(pt)),{STRING:Ine,Validate:Tne,isObject:Rne}=Ene._ModuleSupport,iA=class extends zB{constructor(){super(...arguments),this.type="arrow-down"}static is(e){return Rne(e)&&e.type==="arrow-down"}};me([Tne(Ine)],iA.prototype,"type",2);var Pne=(mt(),T(pt)),a_=(mt(),T(pt)),CE=(mt(),T(pt)),FW=class BZ extends CE._ModuleSupport.Group{constructor(){super(...arguments),this.active=!1,this.locked=!1,this.visible=!1,this.zIndex=1}drag(t){let{handle:n,locked:a}=this;return a?{point:{x:n.x,y:n.y},offset:{x:0,y:0}}:{point:t,offset:{x:t.x-n.x,y:t.y-n.y}}}toggleActive(t){this.active=t,t||(this.handle.strokeWidth=BZ.INACTIVE_STROKE_WIDTH)}toggleHovered(t){this.glow.visible=!this.locked&&t,this.glow.dirtyPath=!0}toggleDragging(t){this.locked||(this.handle.visible=!t,this.glow.visible=this.glow.visible&&!t,this.handle.dirtyPath=!0,this.glow.dirtyPath=!0)}toggleLocked(t){this.locked=t}getCursor(){}containsPoint(t,n){return this.handle.containsPoint(t,n)}};FW.INACTIVE_STROKE_WIDTH=2;var nA=FW,YB=class GZ extends nA{constructor(){super(),this.handle=new CE._ModuleSupport.Circle,this.glow=new CE._ModuleSupport.Circle,this.append([this.handle]),this.handle.size=GZ.HANDLE_SIZE,this.handle.strokeWidth=nA.INACTIVE_STROKE_WIDTH,this.handle.zIndex=2}update(t){this.handle.setProperties(He(ge({},t),{strokeWidth:nA.INACTIVE_STROKE_WIDTH}))}drag(t){return{point:t,offset:{x:0,y:0}}}};YB.HANDLE_SIZE=7,YB.GLOW_SIZE=9;var aA=YB,o_=class Ug extends nA{constructor(){super(),this.handle=new CE._ModuleSupport.Rect,this.glow=new CE._ModuleSupport.Rect,this.gradient="horizontal",this.append([this.glow,this.handle]),this.handle.cornerRadius=Ug.CORNER_RADIUS,this.handle.width=Ug.HANDLE_SIZE,this.handle.height=Ug.HANDLE_SIZE,this.handle.strokeWidth=nA.INACTIVE_STROKE_WIDTH,this.handle.zIndex=2,this.glow.cornerRadius=Ug.CORNER_RADIUS,this.glow.width=Ug.GLOW_SIZE,this.glow.height=Ug.GLOW_SIZE,this.glow.strokeWidth=0,this.glow.fillOpacity=.2,this.glow.zIndex=1,this.glow.visible=!1}toggleLocked(t){if(super.toggleLocked(t),t){let n=(Ug.HANDLE_SIZE-aA.HANDLE_SIZE)/2;this.handle.cornerRadius=1,this.handle.fill=this.handle.stroke,this.handle.strokeWidth=0,this.handle.x+=n,this.handle.y+=n,this.handle.width=aA.HANDLE_SIZE,this.handle.height=aA.HANDLE_SIZE,this.glow.width=aA.GLOW_SIZE,this.glow.height=aA.GLOW_SIZE}else this.handle.cornerRadius=Ug.CORNER_RADIUS,this.handle.width=Ug.HANDLE_SIZE,this.handle.height=Ug.HANDLE_SIZE,this.glow.width=Ug.GLOW_SIZE,this.glow.height=Ug.GLOW_SIZE,this.cachedStyles&&this.handle.setProperties(this.cachedStyles)}update(t){var n,a;if(this.cachedStyles=ge({},t),this.active||delete t.strokeWidth,this.locked){delete t.fill,delete t.strokeWidth;let u=(Ug.HANDLE_SIZE-aA.HANDLE_SIZE)/2;t.x-=u,t.y-=u,this.cachedStyles.x-=u,this.cachedStyles.y-=u}this.handle.setProperties(t),this.glow.setProperties(He(ge({},t),{x:((n=t.x)!=null?n:this.glow.x)-2,y:((a=t.y)!=null?a:this.glow.y)-2,strokeWidth:0,fill:t.stroke}))}drag(t){return this.locked?{point:t,offset:{x:0,y:0}}:this.gradient==="vertical"?{point:{x:t.x,y:this.handle.y},offset:{x:t.x-this.handle.x,y:0}}:{point:{x:this.handle.x,y:t.y},offset:{x:0,y:t.y-this.handle.y}}}getCursor(){if(!this.locked)return this.gradient==="vertical"?"col-resize":"row-resize"}};o_.HANDLE_SIZE=12,o_.GLOW_SIZE=16,o_.CORNER_RADIUS=4;var TR=o_,XB=class RO extends nA{constructor(){super(),this.handle=new CE._ModuleSupport.Circle,this.glow=new CE._ModuleSupport.Circle,this.append([this.glow,this.handle]),this.handle.size=RO.HANDLE_SIZE,this.handle.strokeWidth=nA.INACTIVE_STROKE_WIDTH,this.handle.zIndex=2,this.glow.size=RO.GLOW_SIZE,this.glow.strokeWidth=0,this.glow.fillOpacity=.2,this.glow.zIndex=1,this.glow.visible=!1}toggleLocked(t){super.toggleLocked(t),t?(this.handle.fill=this.handle.stroke,this.handle.strokeWidth=0,this.handle.size=aA.HANDLE_SIZE,this.glow.size=aA.GLOW_SIZE):(this.handle.size=RO.HANDLE_SIZE,this.glow.size=RO.GLOW_SIZE,this.cachedStyles&&this.handle.setProperties(this.cachedStyles))}update(t){this.cachedStyles=ge({},t),this.active||delete t.strokeWidth,this.locked&&(delete t.fill,delete t.strokeWidth),this.handle.setProperties(t),this.glow.setProperties(He(ge({},t),{strokeWidth:0,fill:t.stroke}))}getCursor(){return"pointer"}};XB.HANDLE_SIZE=11,XB.GLOW_SIZE=17;var Gl=XB,{ZIndexMap:Lne,isObject:One}=a_._ModuleSupport,Bd=class extends a_._ModuleSupport.Group{constructor(){super(...arguments),this.name="AnnotationScene",this.zIndex=Lne.CHART_ANNOTATION}static isCheck(e,t){return One(e)&&Object.hasOwn(e,"type")&&e.type===t}toggleHovered(e){this.toggleHandles(e)}*nonHandleChildren(){for(let e of this.children())e instanceof nA||(yield e)}computeBBoxWithoutHandles(){return a_._ModuleSupport.Transformable.toCanvas(this,a_._ModuleSupport.Group.computeChildrenBBox(this.nonHandleChildren()))}updateNode(e,t,n){if(!n&&t){this.removeChild(t);return}return n&&t==null&&(t=new e,this.appendChild(t)),t}},Fne=(mt(),T(pt)),_ne=(mt(),T(pt)),{Vec2:_W,toRadians:Nne}=_ne._ModuleSupport;function ZB(e,t,n=!1,a,u=1){if(!n)return Qr(e,t);let y=a?vc(a,t):_W.origin();return Qr(r_(e,y,u),t)}function r_({x:e,y:t},n,a,u=1){let{x:y,y:k}=n,R=Math.sqrt(Math.pow(e-y,2)+Math.pow(t-k,2)),F=Math.atan2(t-k,e-y),_=Nne(a),V=Math.round(F/_)*_;return{x:y+R*Math.cos(V),y:k+R*Math.sin(V)*u}}function $B(e,t){let n={};return Object.entries(e).forEach(([a,u])=>{n[a]=vc(u,t)}),n}function NW(e,t,n){let a=[],u={};Object.entries(e).forEach(([V,K])=>{let q=_W.add(K,t);a.push(q);let $=Qr(q,n);u[V]=$});let{xAxis:y,yAxis:k}=n,R=(V,K,q)=>K>=V&&K<=q,F=a.every(V=>R(y.bounds.x,V.x,y.bounds.x+y.bounds.width)),_=a.every(V=>R(k.bounds.y,V.y,k.bounds.y+k.bounds.height));return{vectors:u,translateX:F,translateY:_}}var{Vec2:QB}=Fne._ModuleSupport,zW=class extends Bd{constructor(){super(...arguments),this.handle=new Gl,this.anchor={x:0,y:0,position:"above"}}update(e,t){let n=vc(e,t);this.updateHandle(e,n),this.anchor=this.updateAnchor(e,n,t)}dragStart(e,t,n){this.dragState=ge({offset:t},$B({handle:e},n))}drag(e,t,n){let{dragState:a}=this;if(e.locked||!a)return;let u=QB.add(a.handle,QB.sub(t,a.offset)),y=Qr(u,n);sy(n,y)&&(e.x=y.x,e.y=y.y)}translate(e,t,n){let a=QB.add(vc(e,n),t),u=Qr(a,n);sy(n,u)&&(e.x=u.x,e.y=u.y)}toggleHandles(e){this.handle.visible=!!e,this.handle.toggleHovered(this.activeHandle==="handle")}toggleActive(e){this.toggleHandles(e),this.handle.toggleActive(e)}stopDragging(){this.handle.toggleDragging(!1)}copy(e,t,n){let a=vc(e,n),u=Qr({x:a.x-30,y:a.y-30},n);return t.x=u.x,t.y=u.y,t}getAnchor(){return this.anchor}getCursor(){return"pointer"}containsPoint(e,t){let{handle:n}=this;return this.activeHandle=void 0,n.containsPoint(e,t)?(this.activeHandle="handle",!0):!1}getNodeAtCoords(e,t){if(this.handle.containsPoint(e,t))return"handle"}updateHandle(e,t,n){var k;let{x:a,y:u}=this.getHandleCoords(e,t,n),y=this.getHandleStyles(e);this.handle.update(He(ge({},y),{x:a,y:u})),this.handle.toggleLocked((k=e.locked)!=null?k:!1)}updateAnchor(e,t,n){let a=this.getHandleCoords(e,t);return{x:a.x+n.seriesRect.x,y:a.y+n.seriesRect.y,position:this.anchor.position}}getHandleCoords(e,t,n){return{x:t.x,y:t.y}}getHandleStyles(e){return{fill:e.handle.fill,stroke:e.handle.stroke,strokeOpacity:e.handle.strokeOpacity,strokeWidth:e.handle.strokeWidth}}},BW=class extends zW{constructor(){super(),this.append([this.handle])}update(e,t){super.update(e,t);let n=vc(e,t);this.updateShape(e,n)}updateShape(e,t){this.updateShapeStyles(e),this.updateShapePath(e,t)}updateShapeStyles(e){var n;let{shape:t}=this;t.fill=e.fill,t.fillOpacity=(n=e.fillOpacity)!=null?n:1}updateShapePath(e,t){let{shape:n}=this;n.x=t.x,n.y=t.y,n.size=e.size}containsPoint(e,t){return super.containsPoint(e,t)||this.shape.containsPoint(e,t)}getNodeAtCoords(e,t){return this.shape.containsPoint(e,t)?"shape":super.getNodeAtCoords(e,t)}},s_=class extends BW{constructor(){super(),this.type="arrow-down",this.shape=new Pne._ModuleSupport.ArrowDown,this.append([this.shape])}static is(e){return Bd.isCheck(e,"arrow-down")}updateAnchor(e,t,n){let a=super.updateAnchor(e,t,n);return a.y-=e.size,a}getHandleCoords(e,t){let n=Gl.HANDLE_SIZE/2,a=super.getHandleCoords(e,t);return a.y+=n,a}},zne=(mt(),T(pt)),{StateMachine:l_,StateMachineProperty:Bne,Debug:Gne}=zne._ModuleSupport,JB=class extends l_{constructor(e){let t=({point:a})=>{let u=this.createDatum();u.set({x:a.x,y:a.y}),e.create(u)},n=()=>{var a;(a=this.node)==null||a.toggleActive(!0),e.showAnnotationOptions(),e.update()};super("start",{start:{click:{target:"waiting-first-render",action:t},drag:{target:"waiting-first-render",action:t},cancel:l_.parent,reset:l_.parent},"waiting-first-render":{render:{target:l_.parent,action:n}}}),this.debug=Gne.create(!0,"annotations")}};me([Bne()],JB.prototype,"node",2);var Vne=class extends JB{createDatum(){return new iA}},GW={type:"arrow-down",datum:iA,scene:s_,isDatum:iA.is,translate:(e,t,n,a)=>{iA.is(t)&&s_.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(iA.is(t)&&iA.is(n)&&s_.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{iA.is(t)&&s_.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Vne(He(ge({},e),{create:t("arrow-down")})),dragState:e=>new Bl(e)},jne=(mt(),T(pt)),{STRING:Hne,Validate:Wne,isObject:Une}=jne._ModuleSupport,oA=class extends zB{constructor(){super(...arguments),this.type="arrow-up"}static is(e){return Une(e)&&e.type==="arrow-up"}};me([Wne(Hne)],oA.prototype,"type",2);var Kne=(mt(),T(pt)),c_=class extends BW{constructor(){super(),this.type="arrow-up",this.shape=new Kne._ModuleSupport.ArrowUp,this.append([this.shape])}static is(e){return Bd.isCheck(e,"arrow-up")}getHandleCoords(e,t){let n=Gl.HANDLE_SIZE/2,a=super.getHandleCoords(e,t);return a.y-=n,a}},qne=class extends JB{createDatum(){return new oA}},VW={type:"arrow-up",datum:oA,scene:c_,isDatum:oA.is,translate:(e,t,n,a)=>{oA.is(t)&&c_.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(oA.is(t)&&oA.is(n)&&c_.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{oA.is(t)&&c_.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new qne(He(ge({},e),{create:t("arrow-up")})),dragState:e=>new Bl(e)},Yne=(mt(),T(pt)),jW=(mt(),T(pt)),Xne=(mt(),T(pt)),Zne=(mt(),T(pt)),{Vec2:$ne,Vec4:HW}=Zne._ModuleSupport,WW=class extends Bd{extendLine({x1:e,y1:t,x2:n,y2:a},u,y){let k={x1:e,y1:t,x2:n,y2:a};if(!u.extendStart&&!u.extendEnd)return k;let[R,F]=Jte(k,y.yAxis.bounds),_=k.x2<k.x1,V=k.y1>=k.y2,K=k.x2===k.x1;return u.extendEnd&&(K?k.y2=V?F.y:R.y:(k.x2=_?R.x:F.x,k.y2=_?R.y:F.y)),u.extendStart&&(K?k.y1=V?R.y:F.y:(k.x1=_?F.x:R.x,k.y1=_?F.y:R.y)),k}dragStart(e,t,n){this.dragState=ge({offset:t},$B({start:e.start,end:e.end},n))}drag(e,t,n,a){e.locked||(this.activeHandle?this.dragHandle(e,t,n,a):this.dragAll(e,t,n))}dragAll(e,t,n){let{dragState:a}=this;a&&this.translatePoints(e,a.start,a.end,$ne.sub(t,a.offset),n)}translatePoints(e,t,n,a,u){var F,_,V,K;let{vectors:y,translateX:k,translateY:R}=NW({start:t,end:n},a,u);k&&(e.start.x=(F=y.start)==null?void 0:F.x,e.end.x=(_=y.end)==null?void 0:_.x),(this.ignoreYBounds||R)&&(e.start.y=(V=y.start)==null?void 0:V.y,e.end.y=(K=y.end)==null?void 0:K.y)}translate(e,t,n){this.translatePoints(e,vc(e.start,n),vc(e.end,n),t,n)}copy(e,t,n){let a=gw(e,n);if(!a)return;let u=this.computeBBoxWithoutHandles(),y={x:-u.width/2,y:-u.height/2};return this.translatePoints(t,HW.start(a),HW.end(a),y,n),t}},{Vec4:UW}=Xne._ModuleSupport,e4=class extends WW{constructor(){super(...arguments),this.start=new Gl,this.end=new Gl,this.anchor={x:0,y:0,position:"above"}}update(e,t){let n=gw(e,t);n!=null&&(this.updateHandles(e,n),this.updateAnchor(e,n,t))}toggleHandles(e){if(typeof e=="boolean")this.start.visible=e,this.end.visible=e;else for(let[t,n]of Object.entries(e))this[t].visible=n;this.start.toggleHovered(this.activeHandle==="start"),this.end.toggleHovered(this.activeHandle==="end")}toggleActive(e){this.toggleHandles(e),this.start.toggleActive(e),this.end.toggleActive(e)}dragHandle(e,t,n,a){let{activeHandle:u,dragState:y}=this;if(!u||!y)return;this[u].toggleDragging(!0);let k=a?this.snapToAngle(e,t,n):Qr(this[u].drag(t).point,n);!k||!sy(n,k)||(e[u].x=k.x,e[u].y=k.y)}snapToAngle(e,t,n){let{activeHandle:a}=this,y=["start","end"].find(R=>R!==a);if(!a||!y)return;this[a].toggleDragging(!0);let k=vc(e[y],n);return Qr(r_(t,k,e.snapToAngle),n)}stopDragging(){this.start.toggleDragging(!1),this.end.toggleDragging(!1)}getAnchor(){return this.anchor}getCursor(){return"pointer"}containsPoint(e,t){let{start:n,end:a}=this;return this.activeHandle=void 0,n.containsPoint(e,t)?(this.activeHandle="start",!0):a.containsPoint(e,t)?(this.activeHandle="end",!0):!1}getNodeAtCoords(e,t){if(this.start.containsPoint(e,t)||this.end.containsPoint(e,t))return"handle"}updateHandles(e,t,n){var a,u;this.start.update(ge(ge({},this.getHandleStyles(e,"start")),this.getHandleCoords(e,t,"start"))),this.end.update(ge(ge({},this.getHandleStyles(e,"end")),this.getHandleCoords(e,t,"end",n))),this.start.toggleLocked((a=e.locked)!=null?a:!1),this.end.toggleLocked((u=e.locked)!=null?u:!1)}updateAnchor(e,t,n,a){this.anchor={x:t.x1+n.seriesRect.x,y:t.y1+n.seriesRect.y,position:this.anchor.position}}getHandleCoords(e,t,n,a){return n==="start"?UW.start(t):UW.end(t)}getHandleStyles(e,t){return{fill:e.handle.fill,stroke:e.handle.stroke,strokeOpacity:e.handle.strokeOpacity,strokeWidth:e.handle.strokeWidth}}},{Vec2:KW,Vec4:qW}=jW._ModuleSupport,Qne=class extends e4{constructor(){super(...arguments),this.label=new jW._ModuleSupport.Text({zIndex:1}),this.anchor={x:0,y:0,position:"above-left"}}setTextInputBBox(e){this.textInputBBox=e,this.markDirty()}update(e,t){let n=gw(e,t);if(n==null)return;let a=this.getTextBBox(e,n);this.updateLabel(e,a,n),this.updateHandles(e,n,a),this.updateShape(e,a,n),this.updateAnchor(e,n,t,a)}dragHandle(e,t,n,a){let{activeHandle:u,dragState:y}=this;if(!u||!y)return;this[u].toggleDragging(!0);let k=KW.add(y.end,KW.sub(t,y.offset)),R=a?this.snapToAngle(e,k,n):Qr(k,n);!R||!sy(n,R)||(e[u].x=R.x,e[u].y=R.y)}containsPoint(e,t){let{label:n}=this;return super.containsPoint(e,t)||n.containsPoint(e,t)}getNodeAtCoords(e,t){return this.label.containsPoint(e,t)?"text":super.getNodeAtCoords(e,t)}getTextBBox(e,t){let{text:n}=e.getText();return NB(e,n,qW.end(t),this.textInputBBox)}updateLabel(e,t,n){let{text:a,isPlaceholder:u}=e.getText();lW(this.label,a,u,e,this.getLabelCoords(e,t,n))}updateShape(e,t,n){}getLabelCoords(e,t,n){return qW.end(n)}getHandleStyles(e,t){var n;return He(ge({},super.getHandleStyles(e,t)),{stroke:(n=e.handle.stroke)!=null?n:e.color})}},{drawCorner:Jne,Path:eae}=Yne._ModuleSupport,d_=class extends Qne{constructor(){super(),this.type="callout",this.shape=new eae,this.append([this.shape,this.label,this.start,this.end])}static is(e){return Bd.isCheck(e,"callout")}drag(e,t,n,a){e.locked||(this.activeHandle==="end"?this.dragHandle(e,t,n,a):this.dragAll(e,t,n))}getLabelCoords(e,t,n){var y;let a=e.getPadding(),{bodyBounds:u={x:0,y:0,width:0,height:0}}=(y=this.getDimensions(e,t,n))!=null?y:{};return{x:u.x+a.left,y:u.y-a.bottom}}getHandleStyles(e,t){var n;return t==="start"?{fill:e.handle.fill,stroke:(n=e.handle.stroke)!=null?n:e.stroke,strokeOpacity:e.handle.strokeOpacity,strokeWidth:e.handle.strokeWidth}:{fill:void 0,strokeWidth:0}}updateAnchor(e,t,n,a){var k;let{bodyBounds:u}=(k=this.getDimensions(e,a,t))!=null?k:{},y=u!=null?u:a;this.anchor={x:y.x+n.seriesRect.x,y:y.y+n.seriesRect.y-y.height,position:this.anchor.position}}updateShape(e,t,n){var k,R,F,_;let{shape:a}=this;a.fill=e.fill,a.fillOpacity=(k=e.fillOpacity)!=null?k:1,a.stroke=e.stroke,a.strokeWidth=(R=e.strokeWidth)!=null?R:1,a.strokeOpacity=(F=e.strokeOpacity)!=null?F:1;let{tailPoint:u,bodyBounds:y}=(_=this.getDimensions(e,t,n))!=null?_:{};!u||!y||this.updatePath(u,y)}updatePath(e,t){let{x:n,y:a}=e,{x:u,y,width:k,height:R}=t,F=y-R,_=u+k,V=this.calculateCalloutPlacement({x:n,y:a},t),K=8,q=[{coordinates:{x0:u,x1:u+K,y0:F+K,y1:F,cx:V==="topLeft"?n:u+K,cy:V==="topLeft"?a:F+K},type:V==="topLeft"?"calloutCorner":"corner"},{coordinates:{x0:u+K,x1:_-K,y0:F,y1:F,cx:n,cy:a},type:V==="top"?"calloutSide":"side"},{coordinates:{x0:_-K,x1:_,y0:F,y1:F+K,cx:V==="topRight"?n:_-K,cy:V==="topRight"?a:F+K},type:V==="topRight"?"calloutCorner":"corner"},{coordinates:{x0:_,x1:_,y0:F+K,y1:y-K,cx:n,cy:a},type:V==="right"?"calloutSide":"side"},{coordinates:{x0:_,x1:_-K,y0:y-K,y1:y,cx:V==="bottomRight"?n:_-K,cy:V==="bottomRight"?a:y-K},type:V==="bottomRight"?"calloutCorner":"corner"},{coordinates:{x0:_-K,x1:u+K,y0:y,y1:y,cx:n,cy:a},type:V==="bottom"?"calloutSide":"side"},{coordinates:{x0:u+K,x1:u,y0:y,y1:y-K,cx:V==="bottomLeft"?n:u+K,cy:V==="bottomLeft"?a:y-K},type:V==="bottomLeft"?"calloutCorner":"corner"},{coordinates:{x0:u,x1:u,y0:y-K,y1:F+K,cx:n,cy:a},type:V==="left"?"calloutSide":"side"}],{path:$}=this.shape;$.clear(),$.moveTo(u,F+K),q.forEach(({coordinates:te,type:se})=>{this.drawPath($,te,K,se)}),$.closePath()}drawPath(e,{x0:t,y0:n,x1:a,y1:u,cx:y,cy:k},R,F){switch(F){case"calloutCorner":{e.lineTo(y,k),e.lineTo(a,u);break}case"corner":{Jne(e,{x0:t,x1:a,y0:n,y1:u,cx:y,cy:k},R,!1);break}case"calloutSide":{if(t!==a){let V=t>a?-1:1,K=Math.min(t,a)+Math.abs(a-t)/2;e.lineTo(K-6*V,n),e.lineTo(y,k),e.lineTo(K+6*V,n),e.lineTo(a,u)}else{let V=n>u?-1:1,K=Math.min(n,u)+Math.abs(n-u)/2;e.lineTo(t,K-6*V),e.lineTo(y,k),e.lineTo(t,K+6*V),e.lineTo(a,u)}break}case"side":default:{e.lineTo(a,u);break}}}calculateCalloutPlacement(e,t){let n=t.x+t.width,a=t.y-t.height,u,y;return e.x>n?u="right":e.x<t.x&&(u="left"),e.y>t.y?y="bottom":e.y<a&&(y="top"),u&&y?`${y}${u[0].toUpperCase()}${u.substring(1)}`:y!=null?y:u}getDimensions(e,t,n){let{fontSize:a}=e,u=e.getPadding(),y=u.left+u.right,k=u.top+u.bottom,R=t.width+y,F=Math.max(t.height+k,a+k);return{tailPoint:{x:n.x1,y:n.y1},bodyBounds:{x:t.x,y:t.y,width:R,height:F}}}containsPoint(e,t){let{start:n,end:a,shape:u}=this;if(this.activeHandle=void 0,n.containsPoint(e,t))return this.activeHandle="start",!0;let y=a.containsPoint(e,t)||u.containsPoint(e,t);return y&&(this.activeHandle="end"),y}},tae=(mt(),T(pt));function t4({key:e}){return e==="Escape"}function i4({key:e,shiftKey:t}){return!t&&e==="Enter"}var{StateMachine:ly,StateMachineProperty:YW,Debug:iae}=tae._ModuleSupport,n4=class extends ly{constructor(e){let t=({point:q})=>{let $=this.createDatum();$.set({start:q,end:q,visible:!0}),e.create($)},n=()=>{let{node:q}=this;q==null||q.toggleActive(!0),q==null||q.toggleHandles({start:!0})},a=()=>{e.showTextInput(),this.datum&&(this.datum.visible=!1)},u=()=>{e.hideTextInput(),this.datum&&(this.datum.visible=!0),e.deselect()},y=q=>{var $;($=this.node)==null||$.setTextInputBBox(q),e.update()},k=({point:q})=>{let{datum:$,node:te}=this;$==null||$.set({end:q}),te==null||te.toggleActive(!0),te==null||te.toggleHandles({end:!1}),e.update()},R=()=>{var q;e.showAnnotationOptions(),(q=this.node)==null||q.toggleHandles({end:!0})},F=({colorPickerType:q,colorOpacity:$,color:te,opacity:se,isMultiColor:de})=>{let{datum:pe}=this;pe&&(q==="text-color"&&e.updateTextInputColor(te),i_(pe,q,$,te,se,de),e.update())},_=q=>{let{datum:$,node:te}=this;!$||!te||!pC($)||($.fontSize=q,e.updateTextInputFontSize(q),e.update())},V=()=>{e.delete()},K=({textInputValue:q,bbox:$})=>{let{datum:te}=this;if($!=null&&q!=null&&q.length>0){if(!pC(te))return;let se=ZF(te,q,$.width);te==null||te.set({text:se}),e.update(),e.recordAction(`Create ${te==null?void 0:te.type} annotation`)}else e.delete()};super("start",{start:{click:{target:"waiting-first-render",action:t},dragStart:{target:"waiting-first-render",action:t},cancel:ly.parent,reset:ly.parent},"waiting-first-render":{render:{target:"end",action:n}},end:{hover:k,drag:k,click:{target:"edit",action:R},dragEnd:{target:"edit",action:R},reset:{target:ly.parent,action:V},cancel:{target:ly.parent,action:V}},edit:{onEnter:a,updateTextInputBBox:y,color:F,fontSize:_,textInput:[{guard:t4,target:ly.parent,action:V},{guard:i4,target:ly.parent,action:K}],click:{target:ly.parent,action:K},dragStart:{target:ly.parent,action:K},resize:{target:ly.parent,action:K},onExit:u,cancel:{target:ly.parent,action:V}}}),this.debug=iae.create(!0,"annotations")}};me([YW()],n4.prototype,"datum",2),me([YW()],n4.prototype,"node",2);var nae=class extends n4{createDatum(){return new ry}},XW={type:"callout",datum:ry,scene:d_,isDatum:ry.is,translate:(e,t,n,a)=>{if(ry.is(t)&&d_.is(e))return e.translate(t,n,a)},copy:(e,t,n,a)=>{if(ry.is(t)&&ry.is(n)&&d_.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{ry.is(t)&&d_.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new nae(He(ge({},e),{create:t("callout")})),dragState:e=>new Bl(e)},ZW=(mt(),T(pt)),aae=(mt(),T(pt)),a4=class extends zW{constructor(){super(...arguments),this.label=new aae._ModuleSupport.Text({zIndex:1}),this.anchor={x:0,y:0,position:"above-left"}}setTextInputBBox(e){this.textInputBBox=e,this.markDirty()}update(e,t){let n=vc(e,t),a=this.getTextBBox(e,n,t);this.updateLabel(e,a),this.updateHandle(e,n,a),this.updateShape(e,a),this.anchor=this.updateAnchor(e,a,t)}copy(e,t,n){let a=vc(e,n),u=this.getTextBBox(e,a,n),y=e.getPadding(),k=y.left+y.right,R=y.top+y.bottom,F=(u.width+k)/2,_=u.height+R,V=Qr({x:a.x-F,y:a.y-_},n);return t.x=V.x,t.y=V.y,t}containsPoint(e,t){let{label:n}=this;return super.containsPoint(e,t)||n.visible&&n.containsPoint(e,t)}getNodeAtCoords(e,t){return this.label.visible&&this.label.containsPoint(e,t)?"text":super.getNodeAtCoords(e,t)}getTextBBox(e,t,n){let{text:a}=e.getText();return NB(e,a,{x:t.x,y:t.y},this.textInputBBox)}updateLabel(e,t){let{text:n,isPlaceholder:a}=e.getText();lW(this.label,n,a,e,this.getLabelCoords(e,t))}updateShape(e,t){}updateAnchor(e,t,n){return{x:t.x+n.seriesRect.x,y:t.y+n.seriesRect.y-t.height,position:this.anchor.position}}getLabelCoords(e,t){return t}getHandleCoords(e,t,n){return n}getHandleStyles(e){var n;let t=super.getHandleStyles(e);return t.stroke=(n=e.handle.stroke)!=null?n:e.color,t}},{drawCorner:o4}=ZW._ModuleSupport,u_=class extends a4{constructor(){super(),this.type="comment",this.shape=new ZW._ModuleSupport.Path,this.append([this.shape,this.label,this.handle])}static is(e){return Bd.isCheck(e,"comment")}updateShape(e,t){var a,u,y,k;let{shape:n}=this;n.fill=e.fill,n.fillOpacity=(a=e.fillOpacity)!=null?a:1,n.stroke=(u=e.stroke)!=null?u:"transparent",n.strokeWidth=(y=e.strokeWidth)!=null?y:1,n.strokeOpacity=(k=e.strokeOpacity)!=null?k:1,this.updatePath(e,t)}getLabelCoords(e,t){let n=e.getPadding();return{x:t.x+n.left,y:t.y-n.bottom}}getHandleStyles(e){var t,n;return{fill:e.handle.fill,stroke:(n=(t=e.handle.stroke)!=null?t:e.stroke)!=null?n:e.fill,strokeOpacity:e.handle.strokeOpacity,strokeWidth:e.handle.strokeWidth}}updateAnchor(e,t,n){let a=super.updateAnchor(e,t,n),u=e.getPadding();return a.y-=u.bottom+u.top,a}updatePath(e,t){let n=e.getPadding(),{x:a,y:u}=t,{width:y,height:k}=t,{fontSize:R}=e,F=n.left+n.right,_=n.top+n.bottom;y=y+F,k=Math.max(k+_,R+_);let V=u-k,K=a+y,q=(R*XF+_)/2,{path:$}=this.shape;$.clear(),$.moveTo(a,u),$.lineTo(a,V+q),o4($,{x0:a,x1:a+q,y0:V+q,y1:V,cx:a+q,cy:V+q},q,!1),$.lineTo(K-q,V),o4($,{x0:K-q,x1:K,y0:V,y1:V+q,cx:K-q,cy:V+q},q,!1),$.lineTo(K,u-q),o4($,{x0:K,x1:K-q,y0:u-q,y1:u,cx:K-q,cy:u-q},q,!1),$.closePath()}containsPoint(e,t){return super.containsPoint(e,t)||this.shape.containsPoint(e,t)}},oae=(mt(),T(pt)),{StateMachine:Cw,StateMachineProperty:$W,Debug:rae}=oae._ModuleSupport,m2=class extends Cw{constructor(e){let t=({point:V})=>{let K=this.createDatum();K.set({x:V.x,y:V.y}),e.create(K)},n=()=>{var V;(V=this.node)==null||V.toggleActive(!0),e.showAnnotationOptions(),e.update()},a=()=>{e.showTextInput(),this.datum&&(this.datum.visible=!1)},u=()=>{e.hideTextInput(),this.datum&&(this.datum.visible=!0),e.deselect()},y=V=>{var K;(K=this.node)==null||K.setTextInputBBox(V),e.update()},k=({colorPickerType:V,colorOpacity:K,color:q,opacity:$,isMultiColor:te})=>{this.datum&&(V==="text-color"&&e.updateTextInputColor(q),i_(this.datum,V,K,q,$,te),e.update())},R=V=>{let{datum:K,node:q}=this;!K||!q||!pC(K)||(K.fontSize=V,e.updateTextInputFontSize(V),e.update())},F=()=>{e.delete()},_=({textInputValue:V,bbox:K})=>{if(K!=null&&V!=null&&V.length>0){let{datum:q}=this;if(!pC(q))return;let $=ZF(q,V,K.width);q==null||q.set({text:$}),e.update(),e.recordAction(`Create ${q==null?void 0:q.type} annotation`)}else e.delete()};super("start",{start:{click:{target:"waiting-first-render",action:t},dragStart:{target:"waiting-first-render",action:t},cancel:Cw.parent,reset:Cw.parent},"waiting-first-render":{render:{target:"edit",action:n}},edit:{onEnter:a,updateTextInputBBox:y,color:k,fontSize:R,textInput:[{guard:t4,target:Cw.parent,action:F},{guard:i4,target:Cw.parent,action:_}],click:{target:Cw.parent,action:_},dragStart:{target:Cw.parent,action:_},resize:{target:Cw.parent,action:_},onExit:u,cancel:{target:Cw.parent,action:F}}}),this.debug=rae.create(!0,"annotations")}};me([$W()],m2.prototype,"datum",2),me([$W()],m2.prototype,"node",2);var sae=class extends m2{createDatum(){return new hC}},QW={type:"comment",datum:hC,scene:u_,isDatum:hC.is,translate:(e,t,n,a)=>{hC.is(t)&&u_.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(hC.is(t)&&hC.is(n)&&u_.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{hC.is(t)&&u_.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new sae(He(ge({},e),{create:t("comment")})),dragState:e=>new Bl(e)},lae=(mt(),T(pt)),h_=(mt(),T(pt)),{calculateLabelTranslation:cae,ChartAxisDirection:dae}=h_._ModuleSupport,JW=class extends h_._ModuleSupport.Group{constructor(){super({name:"AnnotationAxisLabelGroup"}),this.label=new h_._ModuleSupport.Text({zIndex:1}),this.rect=new h_._ModuleSupport.Rect;let{label:e}=this;e.fontSize=12,e.fontFamily="Verdana, sans-serif",e.fill="black",e.textBaseline="middle",e.textAlign="center",this.append([this.rect,this.label])}update(e){this.updateLabel(e),this.updateRect(e),this.updatePosition(e)}updateLabel({value:e,styles:t,context:n}){let{fontWeight:a,fontSize:u,fontStyle:y,fontFamily:k,textAlign:R,color:F="white",formatter:_=n.scaleValueFormatter()}=t;this.label.setProperties({fontWeight:a,fontSize:u,fontStyle:y,fontFamily:k,textAlign:R,fill:F,text:_(e)})}updateRect({styles:e}){let{rect:t}=this,{cornerRadius:n,fill:a,fillOpacity:u,stroke:y,strokeOpacity:k}=e;t.setProperties({cornerRadius:n,fill:a,fillOpacity:u,stroke:y,strokeOpacity:k})}updatePosition({x:e,y:t,context:n,styles:{padding:a}}){var te,se;let{label:u,rect:y}=this,k=(te=u.getBBox())==null?void 0:te.clone(),R=a!=null?a:8,F=a!=null?a:5;k.grow(R,"horizontal"),k.grow(F,"vertical");let _=n.direction===dae.X?F/2:R,{xTranslation:V,yTranslation:K}=cae({yDirection:!0,padding:n.labelPadding-_,position:(se=n.position)!=null?se:"left",bbox:k}),q=e+V,$=t+K;u.x=q,u.y=$,y.x=q-k.width/2,y.y=$-k.height/2,y.height=k.height,y.width=k.width}};JW.className="AxisLabel";var g_=(mt(),T(pt)),{Vec2:mC}=g_._ModuleSupport,Zp=class extends g_._ModuleSupport.Line{constructor(){super(...arguments),this.growCollisionBox=9,this.clipMask=new Map}setProperties(e,t){return super.setProperties(e,t),this.updateCollisionBBox(),this}updateCollisionBBox(){let{growCollisionBox:e,strokeWidth:t,x1:n,y1:a,x2:u,y2:y}=this,k=t+e;k%2===0&&(k+=1);let R=mC.from(n,a-Math.floor(k/2)),F=mC.from(u,y),_=mC.distance(R,F);this.collisionBBox=new g_._ModuleSupport.BBox(R.x,R.y,_,k)}isPointInPath(e,t){var q;let{collisionBBox:n,x1:a,y1:u,x2:y,y2:k}=this;if(!n)return!1;let R=mC.from(a,u),F=mC.from(y,k),_=mC.sub(mC.from(e,t),R),V=mC.sub(F,R),K=mC.rotate(_,mC.angle(_,V),R);return(q=n.containsPoint(K.x,K.y))!=null?q:!1}render(e){this.applyClipMask(e.ctx),super.render(e),this.closeClipMask(e.ctx)}setClipMask(e,t){let n=this.clipMask.get(e);g_._ModuleSupport.jsonDiff(n,t)!=null&&this.markDirty(),t?this.clipMask.set(e,t):this.clipMask.delete(e)}applyClipMask(e){let{clipMask:t}=this;t.size!==0&&this.clipMask.forEach(n=>{let{x:a,y:u,radius:y}=n;e.save(),e.beginPath(),e.rect(0,0,e.canvas.width,e.canvas.height),e.ellipse(a,u,y,y,0,Math.PI*2,0,!0),e.clip()})}closeClipMask(e){this.clipMask.size!==0&&e.restore()}},uae=(mt(),T(pt)),SE=class extends uae._ModuleSupport.TransformableText{constructor(){super(...arguments),this.growCollisionBox={top:4,right:4,bottom:4,left:4}}isPointInPath(e,t){let n=this.fromParentPoint(e,t),a=this.computeBBoxWithoutTransforms();return a?a.grow(this.growCollisionBox).containsPoint(n.x,n.y):!1}},hae=(mt(),T(pt)),{Vec2:Ou}=hae._ModuleSupport;function RR(e,t,n,a,u,y,k){let{alignment:R,position:F}=n;if(!y||!u){t.setClipMask(e);return}let _=tU(a,n.fontSize,k),{point:V,textBaseline:K}=iU(_,F,R);nU(u,y,n,V,_.angle,K);let{x:q,y:$,width:te,height:se}=u.getBBox(),de=Ou.length(Ou.from(te,se)),pe={x:q+te/2,y:$+se/2,radius:de/2+Ou.length(_.offset)};return F==="center"?t.setClipMask(e,pe):t.setClipMask(e),{clipMask:pe,numbers:_}}function eU(e,t,n,a,u,y,k){if(!k||!y)return;let{alignment:R,position:F}=a,[_,V]=t.y1<=n.y1?[t,n]:[n,t],K=_;F==="bottom"?K=V:F==="inside"&&(K={x1:(_.x1+V.x1)/2,y1:(_.y1+V.y1)/2,x2:(_.x2+V.x2)/2,y2:(_.y2+V.y2)/2});let q=tU(K,a.fontSize,u),{point:$,textBaseline:te}=iU(q,F==="inside"?"center":F,R,e);nU(y,k,a,$,q.angle,te)}function tU(e,t,n){let[a,u]=Ou.from(e);a.x>u.x&&([a,u]=[u,a]);let y=Ou.normalized(Ou.sub(u,a)),k=Ou.angle(y),R=Ou.multiply(y,Gl.HANDLE_SIZE/2+(t!=null?t:14)/2),F=Ou.multiply(y,(n!=null?n:2)/2+(t!=null?t:14)/3);return{left:a,right:u,normal:y,angle:k,inset:R,offset:F}}function iU({left:e,right:t,normal:n,angle:a,inset:u,offset:y},k,R,F){let _;R==="right"?_=Ou.sub(t,u):R==="center"?_=Ou.add(e,Ou.multiply(n,Ou.distance(e,t)/2)):_=Ou.add(e,u);let V="bottom";return k==="bottom"?(_=Ou.rotate(y,a+Math.PI/2,_),V="top"):k==="center"&&!F?V="middle":_=Ou.rotate(y,a-Math.PI/2,_),{point:_,textBaseline:V}}function nU(e,t,n,a,u,y){e.setProperties({text:t,x:a.x,y:a.y,rotation:u,rotationCenterX:a.x,rotationCenterY:a.y,fill:n.color,fontFamily:n.fontFamily,fontSize:n.fontSize,fontStyle:n.fontStyle,fontWeight:n.fontWeight,textAlign:n.alignment,textBaseline:y})}var{ChartAxisDirection:gae,Vec2:PR,Vec4:r4}=lae._ModuleSupport,rA=class extends Bd{constructor(){super(),this.type="cross-line",this.line=new Zp,this.middle=new TR,this.isHorizontal=!1,this.append([this.line,this.middle])}static is(e){return Bd.isCheck(e,"cross-line")}update(e,t){var y;let{seriesRect:n}=t;this.seriesRect=n,this.isHorizontal=Lu.is(e);let a=this.isHorizontal?t.yAxis:t.xAxis,u=this.convertCrossLine(e,a);if(u==null){this.visible=!1;return}this.visible=(y=e.visible)!=null?y:!0,this.visible&&(this.updateLine(e,u),this.updateHandle(e,u),this.updateText(e,u),this.updateAxisLabel(e,a,u))}updateLine(e,t){let{line:n}=this,{lineDashOffset:a,stroke:u,strokeWidth:y,strokeOpacity:k}=e,{x1:R,y1:F,x2:_,y2:V}=t;n.setProperties({x1:R,y1:F,x2:_,y2:V,lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:a,stroke:u,strokeWidth:y,strokeOpacity:k,fillOpacity:0})}updateHandle(e,t){var _,V,K;let{middle:n}=this,{locked:a,stroke:u,strokeWidth:y,strokeOpacity:k}=e,R={fill:e.handle.fill,stroke:(_=e.handle.stroke)!=null?_:u,strokeOpacity:(V=e.handle.strokeOpacity)!=null?V:k,strokeWidth:(K=e.handle.strokeWidth)!=null?K:y},F=PR.sub(r4.center(t),PR.from(n.handle.width/2,n.handle.height/2));n.gradient=this.isHorizontal?"horizontal":"vertical",n.update(ge(ge({},R),F)),n.toggleLocked(a!=null?a:!1)}updateText(e,t){this.text=this.updateNode(SE,this.text,!!e.text.label),RR(this.line.id,this.line,e.text,t,this.text,e.text.label,e.strokeWidth)}createAxisLabel(e){let t=new JW;return e.attachLabel(t),t}updateAxisLabel(e,t,n){this.axisLabel||(this.axisLabel=this.createAxisLabel(t));let{axisLabel:a,seriesRect:u}=this,{direction:y,position:k}=t;if(e.axisLabel.enabled){a.visible=this.visible;let R=k==="left"||k==="top"?r4.start(n):r4.end(n),F=y===gae.X?R.x:R.y;if(!t.inRange(F)){a.visible=!1;return}a.update(He(ge({},PR.add(R,PR.required(u))),{value:e.value,styles:e.axisLabel,context:t}))}else a.visible=!1}toggleHandles(e){this.middle.visible=e,this.middle.toggleHovered(this.activeHandle==="middle")}destroy(){var e;super.destroy(),(e=this.axisLabel)==null||e.destroy()}toggleActive(e){this.toggleHandles(e),this.middle.toggleActive(e)}dragStart(e,t,n){let a=Lu.is(e)?{x:t.x,y:fE(e.value,n.yAxis)}:{x:fE(e.value,n.xAxis),y:t.y};this.dragState={offset:t,middle:a}}drag(e,t,n){let{activeHandle:a,dragState:u}=this;if(e.locked)return;let y;if(a)this[a].toggleDragging(!0),y=this[a].drag(t).point;else if(u)y=PR.add(u.middle,PR.sub(t,u.offset));else return;let k=Qr(y,n),R=Lu.is(e);e.set({value:R?k.y:k.x})}translate(e,{x:t,y:n},a){if(e.locked)return;let{axisContext:u,translation:y}=Lu.is(e)?{axisContext:a.yAxis,translation:n}:{axisContext:a.xAxis,translation:t},k=fE(e.value,u)+y,R=d2(k,u);isNaN(R)||e.set({value:R})}stopDragging(){this.middle.toggleDragging(!1)}copy(e,t,n){let a=Lu.is(e),u=this.isHorizontal?n.yAxis:n.xAxis,y=this.convertCrossLine(e,u);if(!y)return;let k=a?-30:0,R=a?0:-30,F=Qr({x:y.x1+R,y:y.y1+k},n);return t.set({value:a?F.y:F.x}),t}getCursor(){return this.activeHandle==null?"pointer":this[this.activeHandle].getCursor()}containsPoint(e,t){let{middle:n,line:a,text:u}=this;return this.activeHandle=void 0,n.containsPoint(e,t)?(this.activeHandle="middle",!0):a.isPointInPath(e,t)||!!(u!=null&&u.containsPoint(e,t))}getNodeAtCoords(e,t){var n;if((n=this.text)!=null&&n.containsPoint(e,t))return"text";if(this.line.isPointInPath(e,t))return"line";if(this.middle.containsPoint(e,t))return"handle"}getAnchor(){let e=this.computeBBoxWithoutHandles();return this.isHorizontal?{x:e.x+e.width/2,y:e.y}:{x:e.x+e.width,y:e.y+e.height/2,position:"right"}}convertCrossLine(e,t){var V;if(e.value==null)return;let n=0,a=0,u=0,y=0,{bounds:k,scale:R}=t,F=((V=R.bandwidth)!=null?V:0)/2,_=R.convert(e.value)+F;return Lu.is(e)?(a=k.width,u=_,y=_):(n=_,a=_,y=k.height),{x1:n,y1:u,x2:a,y2:y}}},pae=(mt(),T(pt)),{StateMachine:p_,StateMachineProperty:mae,Debug:fae}=pae._ModuleSupport,s4=class extends p_{constructor(e,t){let n=({point:u})=>{let y=e==="horizontal",k=y?new Lu:new gC;k.set({value:y?u.y:u.x}),t.create(k),t.recordAction(`Create ${y?"horizontal-line":"vertical-line"} annotation`)},a=()=>{var u;(u=this.node)==null||u.toggleActive(!0),t.showAnnotationOptions(),t.update()};super("start",{start:{click:{target:"waiting-first-render",action:n},drag:{target:"waiting-first-render",action:n},reset:p_.parent,cancel:p_.parent},"waiting-first-render":{render:{target:p_.parent,action:a}}}),this.debug=fae.create(!0,"annotations")}};me([mae()],s4.prototype,"node",2);var aU={type:"horizontal-line",datum:Lu,scene:rA,isDatum:Lu.is,translate:(e,t,n,a)=>{Lu.is(t)&&rA.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(Lu.is(t)&&Lu.is(n)&&rA.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{Lu.is(t)&&rA.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new s4("horizontal",He(ge({},e),{create:t("horizontal-line")})),dragState:e=>new Bl(e)},oU={type:"vertical-line",datum:gC,scene:rA,isDatum:gC.is,translate:(e,t,n,a)=>{gC.is(t)&&rA.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(gC.is(t)&&gC.is(n)&&rA.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{gC.is(t)&&rA.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new s4("vertical",He(ge({},e),{create:t("vertical-line")})),dragState:e=>new Bl(e)},vae=(mt(),T(pt)),rU=(mt(),T(pt)),yae=(mt(),T(pt)),{Vec4:bae}=yae._ModuleSupport,sU=class{static updateBackground(e,t,n,a){var _,V;let{background:u}=this,{seriesRect:y}=a;u.path.clear(!0);let k=bae.from(0,0,y.width,y.height),R=this.getBackgroundPoints(e,t,n,k);for(let K=0;K<R.length;K++){let q=R[K];K===0?u.path.moveTo(q.x,q.y):u.path.lineTo(q.x,q.y)}u.path.closePath(),u.checkPathDirty();let F=(V=(_=this.getBackgroundStyles)==null?void 0:_.call(this,e))!=null?V:e.background;u.setProperties({fill:F.fill,fillOpacity:F.fillOpacity})}},lU=class extends WW{constructor(){super(...arguments),this.handles={},this.topLine=new Zp,this.bottomLine=new Zp,this.background=new rU._ModuleSupport.Path({zIndex:-1}),this.anchor={x:0,y:0},this.updateBackground=sU.updateBackground.bind(this)}update(e,t){let{locked:n,visible:a}=e,u=gw(e,t),y=gw(e.bottom,t);if(u==null||y==null){this.visible=!1;return}else this.visible=a!=null?a:!0;let k=this.extendLine(u,e,t),R=this.extendLine(y,e,t);this.updateLines(e,k,R,t,u,y),this.updateHandles(e,u,y),this.updateText(e,u,y),this.updateBackground(e,k,R,t),this.updateAnchor(u,y);for(let F of Object.values(this.handles))F.toggleLocked(n!=null?n:!1)}snapToAngle(e,t,n,a,u,y){let{handles:k}=this,R=k[a].handle,F=k[n].drag(e).point;return Qr(r_(F,R,u,y),t)}toggleHandles(e){let{handles:t}=this;if(typeof e=="boolean"){for(let[n,a]of Object.entries(t))a.visible=e,a.toggleHovered(this.activeHandle===n);return}for(let[n,a]of Object.entries(e)){let u=t[n];u.visible=a!=null?a:!0,u.toggleHovered(this.activeHandle===n)}}toggleActive(e){this.toggleHandles(e);for(let t of Object.values(this.handles))t.toggleActive(e)}stopDragging(){let{activeHandle:e,handles:t}=this;e!=null&&t[e].toggleDragging(!1)}getAnchor(){return this.anchor}getCursor(){return this.activeHandle==null?"pointer":this.handles[this.activeHandle].getCursor()}containsPoint(e,t){let{handles:n,topLine:a,bottomLine:u,text:y}=this;this.activeHandle=void 0;for(let[k,R]of Object.entries(n))if(R.containsPoint(e,t))return this.activeHandle=k,!0;return a.containsPoint(e,t)||u.containsPoint(e,t)||!!(y!=null&&y.containsPoint(e,t))}getNodeAtCoords(e,t){var n;if((n=this.text)!=null&&n.containsPoint(e,t))return"text";if(this.topLine.containsPoint(e,t)||this.bottomLine.containsPoint(e,t))return"line";for(let[a,u]of Object.entries(this.handles))if(u.containsPoint(e,t))return"handle"}updateAnchor(e,t){let{x:n,y:a}=rU._ModuleSupport.Transformable.toCanvasPoint(this.topLine,(e.x1+e.x2)/2,Math.min(e.y1,e.y2,t.y1,t.y2));this.anchor.x=n,this.anchor.y=a}},{Vec2:sA,Vec4:m_}=vae._ModuleSupport,f_=class extends lU{constructor(){super(),this.type="disjoint-channel",this.ignoreYBounds=!0,this.handles={topLeft:new Gl,topRight:new Gl,bottomLeft:new Gl,bottomRight:new TR},this.append([this.background,this.topLine,this.bottomLine,...Object.values(this.handles)])}static is(e){return Bd.isCheck(e,"disjoint-channel")}dragHandle(e,t,n,a){let{activeHandle:u,handles:y}=this;if(u==null)return;let{offset:k}=y[u].drag(t);y[u].toggleDragging(!0);let R=V=>Qr(V,n),F=e.toJson(),_=e.snapToAngle;switch(u){case"topLeft":case"bottomLeft":{let V=u==="topLeft"?1:-1,K=a?this.snapToAngle(t,n,"topLeft","topRight",_,V):R({x:y.topLeft.handle.x+k.x,y:y.topLeft.handle.y+k.y*V}),q=a?this.snapToAngle(t,n,"bottomLeft","bottomRight",_,-V):R({x:y.bottomLeft.handle.x+k.x,y:y.bottomLeft.handle.y+k.y*-V});if((K==null?void 0:K.y)==null||(q==null?void 0:q.y)==null||e.start.y==null)return;let $=e.startHeight+(K.y-e.start.y)*2;e.start.x=K.x,e.start.y=K.y,e.startHeight=$;break}case"topRight":{let V=a?this.snapToAngle(t,n,"topRight","topLeft",_):R({x:y.topRight.handle.x+k.x,y:y.topRight.handle.y+k.y});if((V==null?void 0:V.y)==null||e.end.y==null)return;let K=e.endHeight+(V.y-e.end.y)*2;e.end.x=V.x,e.end.y=V.y,e.endHeight=K;break}case"bottomRight":{let V=R({x:y.bottomLeft.handle.x+k.x,y:y.bottomLeft.handle.y+k.y}),K=R({x:y.bottomRight.handle.x+k.x,y:y.bottomRight.handle.y+k.y});if(!V||!K||e.start.y==null||e.end.y==null)return;let q=e.end.y-K.y,$=e.startHeight-(e.endHeight-q);e.startHeight=$,e.endHeight=q}}e.isValidWithContext(n)||e.set(F)}updateLines(e,t,n){let{topLine:a,bottomLine:u}=this,{lineDashOffset:y,stroke:k,strokeOpacity:R,strokeWidth:F}=e,_={lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:y,stroke:k,strokeOpacity:R,strokeWidth:F};a.setProperties(ge(ge({},t),_)),u.setProperties(ge(ge({},n),_))}updateHandles(e,t,n){var F,_,V;let{handles:{topLeft:a,topRight:u,bottomLeft:y,bottomRight:k}}=this,R={fill:e.handle.fill,stroke:(F=e.handle.stroke)!=null?F:e.stroke,strokeOpacity:(_=e.handle.strokeOpacity)!=null?_:e.strokeOpacity,strokeWidth:(V=e.handle.strokeWidth)!=null?V:e.strokeWidth};a.update(ge(ge({},R),m_.start(t))),u.update(ge(ge({},R),m_.end(t))),y.update(ge(ge({},R),m_.start(n))),k.update(ge(ge({},R),sA.sub(m_.end(n),sA.from(k.handle.width/2,k.handle.height/2))))}updateText(e,t,n){this.text=this.updateNode(SE,this.text,!!e.text.label),eU(!1,t,n,e.text,e.strokeWidth,this.text,e.text.label)}getBackgroundPoints(e,t,n,a){let u=t.x1>t.x2,y=t.y1>t.y2,k=y?a.y2:a.y1,R=y?a.y1:a.y2,F=sA.from(t);return e.extendEnd&&t.y2===R&&F.push(sA.from(u?a.x1:a.x2,y?a.y1:a.y2)),e.extendEnd&&n.y2===k&&F.push(sA.from(u?a.x1:a.x2,y?a.y2:a.y1)),F.push(...sA.from(n).reverse()),e.extendStart&&n.y1===R&&F.push(sA.from(u?a.x2:a.x1,y?a.y1:a.y2)),e.extendStart&&t.y1===k&&F.push(sA.from(u?a.x2:a.x1,y?a.y2:a.y1)),F}},Cae=(mt(),T(pt)),{StateMachine:lA,StateMachineProperty:l4,Debug:Sae}=Cae._ModuleSupport,v_=class extends lA{constructor(e){let t=({point:F})=>{let _=new Tf;_.set({start:F,end:F,startHeight:0,endHeight:0}),e.create(_)},n=()=>{let{node:F}=this;F==null||F.toggleActive(!0),F==null||F.toggleHandles({topLeft:!0,topRight:!1,bottomLeft:!1,bottomRight:!1})},a=({offset:F,context:_})=>{let{datum:V,snapping:K}=this;V&&(V.set({end:ZB(F,_,K,V.start,V.snapToAngle)}),e.update())},u=()=>{var F;(F=this.node)==null||F.toggleHandles({topRight:!0}),e.update()},y=({point:F})=>{var se;let{datum:_,node:V}=this;if((_==null?void 0:_.start.y)==null||(_==null?void 0:_.end.y)==null)return;let K=_.end.y-((se=F.y)!=null?se:0),q=(_.start.y-_.end.y)*2+K,$={x:_.start.x,y:_.start.y-q},te={x:_.end.x,y:F.y};V==null||V.toggleHandles({bottomLeft:!0,bottomRight:!0}),!(!e.validatePoint($)||!e.validatePoint(te))&&(_.set({startHeight:q,endHeight:K}),e.update())},k=({point:F})=>{var se;let{datum:_,node:V}=this;if((_==null?void 0:_.start.y)==null||(_==null?void 0:_.end.y)==null)return;let K=_.end.y-((se=F.y)!=null?se:0),q=(_.start.y-_.end.y)*2+K,$={x:_.start.x,y:_.start.y-K},te={x:_.end.x,y:F.y};V==null||V.toggleHandles(!0),!(!e.validatePoint($)||!e.validatePoint(te))&&(_.set({startHeight:q,endHeight:K}),e.recordAction("Create disjoint-channel annotation"),e.showAnnotationOptions(),e.update())},R=()=>e.delete();super("start",{start:{click:{target:"waiting-first-render",action:t},drag:{target:"waiting-first-render",action:t},reset:lA.parent},"waiting-first-render":{render:{target:"end",action:n}},end:{hover:a,drag:a,click:{target:"height",action:u},dragEnd:{target:"height",action:u},reset:{target:lA.parent,action:R},cancel:{target:lA.parent,action:R}},height:{hover:y,click:{target:lA.parent,action:k},drag:{target:lA.parent,action:k},reset:{target:lA.parent,action:R},cancel:{target:lA.parent,action:R}}}),this.debug=Sae.create(!0,"annotations"),this.snapping=!1}};me([l4()],v_.prototype,"datum",2),me([l4()],v_.prototype,"node",2),me([l4()],v_.prototype,"snapping",2);var cU={type:"disjoint-channel",datum:Tf,scene:f_,isDatum:Tf.is,translate:(e,t,n,a)=>{Tf.is(t)&&f_.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(Tf.is(t)&&Tf.is(n)&&f_.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{Tf.is(t)&&f_.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new v_(He(ge({},e),{create:t("disjoint-channel")})),dragState:e=>new Bl(e)},wae=(mt(),T(pt)),Sw=(mt(),T(pt)),c4=[0,23.6,38.2,50,61.8,78.6,100],xae=[161.8,261.8,361.8,423.6],Mae=[...c4,...xae],kae={10:Mae,6:c4,4:c4.filter(e=>e!==78.6&&e!==23.6)},Aae=10;function Dae({x1:e,y1:t,x2:n,y2:a},u,y,k=10){let R=a-t,F=y?1:-1,_=y?t:a,V=_,K=[];return kae[k].forEach((q,$)=>{let te=_+R*(q/100)*F,se=u.yAxis.scaleInvert(te);K.push({id:$,x1:e,x2:n,y1:V,y2:te,tag:q==100?0:1,label:{x1:Math.min(e,n)-Aae,x2:n,y1:te,y2:te,text:`${(q/100).toFixed(3)} (${se.toFixed(2)})`}}),V=te}),K}var{Vec2:Eae,Vec4:dU}=Sw._ModuleSupport,Iae=class extends Bd{constructor(){super(),this.trendLine=new Zp,this.rangeFillsGroup=new Sw._ModuleSupport.Group({name:`${this.id}-range-fills`}),this.rangeFillsGroupSelection=Sw._ModuleSupport.Selection.select(this.rangeFillsGroup,Sw._ModuleSupport.Range),this.rangeStrokesGroup=new Sw._ModuleSupport.Group({name:`${this.id}-range-strokes`}),this.rangeStrokesGroupSelection=Sw._ModuleSupport.Selection.select(this.rangeStrokesGroup,Zp),this.labelsGroup=new Sw._ModuleSupport.Group({name:`${this.id}-ranges-labels`}),this.labelsGroupSelection=Sw._ModuleSupport.Selection.select(this.labelsGroup,SE),this.anchor={x:0,y:0,position:"above"},this.append([this.trendLine,this.rangeFillsGroup,this.rangeStrokesGroup,this.labelsGroup])}update(e,t){var R;let n=gw(e,t);if(n==null){this.visible=!1;return}if(n=dU.round(n),this.visible=(R=e.visible)!=null?R:!0,!this.visible)return;this.updateTrendLine(e,n),this.updateHandles(e,n),this.updateAnchor(e,n,t);let{reverse:a}=e,u=this.extendLine(n,e,t);this.updateRanges(e,u,t);let y=a?n.y2:n.y1,k=He(ge({},u),{y1:y,y2:y});this.updateText(e,k)}extendLine({x1:e,y1:t,x2:n,y2:a},u,y){let k={x1:e,y1:t,x2:n,y2:a};if(!u.extendStart&&!u.extendEnd)return k;let{x:R,width:F}=y.xAxis.bounds;return u.extendEnd&&(k[e>n?"x1":"x2"]=R+F),u.extendStart&&(k[e>n?"x2":"x1"]=R),k}updateTrendLine(e,t){let{trendLine:n}=this,{lineDashOffset:a,strokeWidth:u,strokeOpacity:y,stroke:k}=e;n.setProperties(He(ge({},t),{lineCap:e.getLineCap(),lineDash:[3,4],lineDashOffset:a,strokeWidth:u,strokeOpacity:y,fillOpacity:0,stroke:k}))}updateRangeStrokes(e){let{lineDashOffset:t,strokeWidth:n,strokeOpacity:a,strokes:u,rangeStroke:y,isMultiColor:k}=e;this.rangeStrokesGroupSelection.each((R,{x1:F,x2:_,y2:V,tag:K},q)=>{let $=V,te=k?u[q%u.length]:y;R.setProperties({x1:F,x2:_,y1:$,y2:$,stroke:te,strokeOpacity:a,strokeWidth:n,lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:t,tag:K})})}updateRanges(e,t,n){let a=Dae(t,n,e.reverse,e.bands),u=y=>y.id;this.rangeFillsGroupSelection.update(a,void 0,u),this.rangeStrokesGroupSelection.update(a,void 0,u),this.labelsGroupSelection.update(a,void 0,u),this.updateRangeFills(e),this.updateRangeStrokes(e),this.updateRangeLabels(e,n)}updateRangeFills(e){let{lineDashOffset:t,strokeWidth:n,strokeOpacity:a,strokes:u,rangeStroke:y,showFill:k,isMultiColor:R}=e;this.rangeFillsGroupSelection.each((F,{x1:_,x2:V,y1:K,y2:q},$)=>{let te=R?u[$%u.length]:y;if(!k){F.visible=!1;return}F.setProperties({x1:_,x2:V,y1:K,y2:q,startLine:!1,endLine:!1,isRange:!0,stroke:te,strokeOpacity:a,fill:te,fillOpacity:(a!=null?a:1)*.15,strokeWidth:n,lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:t,visible:!0})})}updateRangeLabels(e,{xAxis:t}){let{rangeStrokesGroupSelection:n}=this,{strokes:a,strokeWidth:u,rangeStroke:y,isMultiColor:k,label:{color:R,fontFamily:F,fontSize:_,fontStyle:V,fontWeight:K}}=e;this.labelsGroupSelection.each((q,$,te)=>{let se=R!=null?R:k?a[te%a.length]:y,de=n.at(te);if(!de)return;let De=$.label,{text:pe}=De,Ce=wi(De,["text"]),Se={label:pe,position:"center",alignment:"left",color:se,fontFamily:F,fontSize:_,fontStyle:V,fontWeight:K};RR(q.id,de,Se,Ce,q),q.setProperties({text:pe,x:Ce.x1,y:Ce.y1,textBaseline:"middle",textAlign:"end",fill:se,fontFamily:F,fontSize:_,fontStyle:V,fontWeight:K});let{x:ve}=q.getBBox();ve>=t.bounds.x&&ve<=t.bounds.x+t.bounds.width||RR(q.id,de,Se,Ce,q,pe,u)})}updateText(e,t){let n=this.rangeStrokesGroupSelection.selectByTag(0)[0],{text:a,strokeWidth:u}=e;this.text=this.updateNode(SE,this.text,!!a.label),RR(n.id,n,a,t,this.text,a.label,u)}updateAnchor(e,t,n,a){let u=dU.topCenter(t);Eae.apply(this.anchor,Sw._ModuleSupport.Transformable.toCanvasPoint(this.trendLine,u.x,u.y))}containsPoint(e,t){let{trendLine:n,rangeStrokesGroupSelection:a,text:u}=this,y=!1;return a.each(k=>y||(y=k.isPointInPath(e,t))),y||n.isPointInPath(e,t)||!!(u!=null&&u.containsPoint(e,t))}getNodeAtCoords(e,t){var n;if((n=this.text)!=null&&n.containsPoint(e,t))return"text";if(this.trendLine.isPointInPath(e,t))return"line"}getHandleStyles(e){var t,n,a;return{fill:e.handle.fill,stroke:(t=e.handle.stroke)!=null?t:e.stroke,strokeOpacity:(n=e.handle.strokeOpacity)!=null?n:e.strokeOpacity,strokeWidth:(a=e.handle.strokeWidth)!=null?a:e.strokeWidth}}drag(e,t,n,a){e.locked||(this.activeHandle?this.dragHandle(e,t,n,a):this.dragAll(e,t,n))}getAnchor(){return this.anchor}getCursor(){return"pointer"}},{Vec2:Tae,Vec4:uU}=wae._ModuleSupport,y_=class extends Iae{constructor(){super(),this.type="fibonacci-retracement",this.start=new Gl,this.end=new Gl,this.append([this.start,this.end])}static is(e){return Bd.isCheck(e,"fibonacci-retracement")}containsPoint(e,t){let{start:n,end:a}=this;return this.activeHandle=void 0,n.containsPoint(e,t)?(this.activeHandle="start",!0):a.containsPoint(e,t)?(this.activeHandle="end",!0):super.containsPoint(e,t)}getNodeAtCoords(e,t){return this.start.containsPoint(e,t)||this.end.containsPoint(e,t)?"handle":super.getNodeAtCoords(e,t)}dragStart(e,t,n){this.dragState=ge({offset:t},$B({start:e.start,end:e.end},n))}stopDragging(){this.start.toggleDragging(!1),this.end.toggleDragging(!1)}dragAll(e,t,n){let{dragState:a}=this;a&&this.translatePoints({datum:e,start:a.start,end:a.end,translation:Tae.sub(t,a.offset),context:n})}dragHandle(e,t,n,a){let{activeHandle:u,dragState:y}=this;if(!u||!y)return;this[u].toggleDragging(!0);let k=a?this.snapToAngle(e,t,n):Qr(this[u].drag(t).point,n);!k||!sy(n,k)||(e[u].x=k.x,e[u].y=k.y)}snapToAngle(e,t,n){let{activeHandle:a}=this,y=["start","end"].find(R=>R!==a);if(!a||!y)return;this[a].toggleDragging(!0);let k=vc(e[y],n);return Qr(r_(t,k,e.snapToAngle),n)}translatePoints({datum:e,start:t,end:n,translation:a,context:u}){var F,_,V,K;let{vectors:y,translateX:k,translateY:R}=NW({start:t,end:n},a,u);k&&(e.start.x=(F=y.start)==null?void 0:F.x,e.end.x=(_=y.end)==null?void 0:_.x),(this.ignoreYBounds||R)&&(e.start.y=(V=y.start)==null?void 0:V.y,e.end.y=(K=y.end)==null?void 0:K.y)}translate(e,t,n){this.translatePoints({datum:e,start:vc(e.start,n),end:vc(e.end,n),translation:t,context:n})}copy(e,t,n){let a=gw(e,n);if(!a)return;let u=this.computeBBoxWithoutHandles();return this.translatePoints({datum:t,start:{x:a.x1,y:a.y1},end:{x:a.x2,y:a.y2},translation:{x:-u.width/2,y:-u.height/2},context:n}),t}toggleHandles(e){if(typeof e=="boolean")this.start.visible=e,this.end.visible=e;else for(let[t,n]of Object.entries(e))this[t].visible=n;this.start.toggleHovered(this.activeHandle==="start"),this.end.toggleHovered(this.activeHandle==="end")}toggleActive(e){this.toggleHandles(e),this.start.toggleActive(e),this.end.toggleActive(e)}updateHandles(e,t,n){var a,u;this.start.update(ge(ge({},this.getHandleStyles(e)),this.getHandleCoords(e,t,"start"))),this.end.update(ge(ge({},this.getHandleStyles(e)),this.getHandleCoords(e,t,"end",n))),this.start.toggleLocked((a=e.locked)!=null?a:!1),this.end.toggleLocked((u=e.locked)!=null?u:!1)}getHandleCoords(e,t,n,a){return n==="start"?uU.start(t):uU.end(t)}},Rae=(mt(),T(pt)),{StateMachine:LR,StateMachineProperty:d4,Debug:Pae}=Rae._ModuleSupport,OR=class extends LR{constructor(e){let t=({point:R})=>{let F=this.createDatum();F.set({start:R,end:R}),e.create(F)},n=()=>{let{node:R}=this;R==null||R.toggleActive(!0),R==null||R.toggleHandles({start:!0,end:!1})},a=({offset:R,context:F})=>{let{datum:_,snapping:V}=this;_&&(_.set({end:ZB(R,F,V,_.start,_.snapToAngle)}),e.update())},u=()=>{var R;(R=this.node)==null||R.toggleHandles({end:!0}),e.update()},y=()=>e.delete(),k=()=>{var R;e.showAnnotationOptions(),e.recordAction(`Create ${(R=this.datum)==null?void 0:R.type} annotation`)};super("start",{start:{click:{target:"waiting-first-render",action:t},drag:{target:"waiting-first-render",action:t},reset:LR.parent},"waiting-first-render":{render:{target:"end",action:n}},end:{hover:a,click:{target:LR.parent,action:u},drag:a,dragEnd:{target:LR.parent,action:u},reset:{target:LR.parent,action:y},cancel:{target:LR.parent,action:y},onExit:k}}),this.debug=Pae.create(!0,"annotations"),this.snapping=!1}};me([d4()],OR.prototype,"datum",2),me([d4()],OR.prototype,"node",2),me([d4()],OR.prototype,"snapping",2);var Lae=class extends OR{createDatum(){return new mw}},Oae=class extends OR{createDatum(){return new fw}},Fae=class extends OR{createDatum(){return new vw}},hU={type:"fibonacci-retracement",datum:vw,scene:y_,isDatum:vw.is,translate:(e,t,n,a)=>{vw.is(t)&&y_.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(vw.is(t)&&vw.is(n)&&y_.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{vw.is(t)&&y_.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Fae(He(ge({},e),{create:t("fibonacci-retracement")})),dragState:e=>new Bl(e)},gU=(mt(),T(pt)),u4=(mt(),T(pt)),{Vec2:f2}=u4._ModuleSupport,_ae=class extends u4._ModuleSupport.Group{},b_=class extends _ae{constructor(){super(),this.type="arrow",this.path=new u4._ModuleSupport.Path,this.armLength=6,this.append([this.path])}update(e){var q;let{path:t}=this,K=e,{x:n,y:a,angle:u}=K,y=wi(K,["x","y","angle"]),k=f2.from(n,a),R=3*Math.PI/4,F=this.armLength+((q=e.strokeWidth)!=null?q:0)*2,_=f2.rotate(f2.from(0,F),u+R,k),V=f2.rotate(f2.from(F,0),u-R,k);t.setProperties(y),t.fillOpacity=0,t.path.clear(),t.path.moveTo(_.x,_.y),t.path.lineTo(k.x,k.y),t.path.lineTo(V.x,V.y)}},{Vec2:cy,Vec4:pU}=gU._ModuleSupport,cA=class extends e4{constructor(){super(),this.type="line",this.line=new Zp,this.append([this.line,this.start,this.end])}static is(e){return Bd.isCheck(e,"line")}update(e,t){var a;let n=gw(e,t);if(n==null){this.visible=!1;return}n=pU.round(n),this.visible=(a=e.visible)!=null?a:!0,this.visible&&(this.updateLine(e,n,t),this.updateHandles(e,n),this.updateText(e,n),this.updateCaps(e,n),this.updateAnchor(e,n,t))}updateLine(e,t,n){let{line:a}=this,{lineDashOffset:u,stroke:y,strokeWidth:k,strokeOpacity:R}=e,F=this.extendLine(t,e,n);a.setProperties(He(ge({},F),{lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:u,stroke:y,strokeWidth:k,strokeOpacity:R,fillOpacity:0}))}updateText(e,t){this.text=this.updateNode(SE,this.text,!!e.text.label),RR(this.line.id,this.line,e.text,t,this.text,e.text.label,e.strokeWidth)}updateCaps(e,t){if(!e.startCap&&this.startCap&&(this.removeChild(this.startCap),this.startCap=void 0),!e.endCap&&this.endCap&&(this.removeChild(this.endCap),this.endCap=void 0),!e.startCap&&!e.endCap)return;let{stroke:n,strokeWidth:a,strokeOpacity:u}=e,[y,k]=cy.from(t),R=cy.angle(cy.sub(k,y));e.startCap&&(this.startCap&&this.startCap.type!==e.startCap&&(this.removeChild(this.startCap),this.startCap=void 0),this.startCap==null&&(this.startCap=new b_,this.append([this.startCap])),this.startCap.update({x:y.x,y:y.y,angle:R-Math.PI,stroke:n,strokeWidth:a,strokeOpacity:u})),e.endCap&&(this.endCap&&this.endCap.type!==e.endCap&&(this.removeChild(this.endCap),this.endCap=void 0),this.endCap==null&&(this.endCap=new b_,this.append([this.endCap])),this.endCap.update({x:k.x,y:k.y,angle:R,stroke:n,strokeWidth:a,strokeOpacity:u}))}updateAnchor(e,t,n,a){let u=pU.topCenter(t);cy.apply(this.anchor,gU._ModuleSupport.Transformable.toCanvasPoint(this.line,u.x,u.y))}containsPoint(e,t){let{line:n,text:a}=this;return super.containsPoint(e,t)||n.isPointInPath(e,t)||!!(a!=null&&a.containsPoint(e,t))}getNodeAtCoords(e,t){var n;return(n=this.text)!=null&&n.containsPoint(e,t)?"text":this.line.isPointInPath(e,t)?"line":super.getNodeAtCoords(e,t)}getHandleCoords(e,t,n,a){let{startCap:u,endCap:y}=this,[k,R]=cy.from(t),F=cy.angle(cy.sub(R,k));return u&&(k=cy.rotate(cy.from(0,-Gl.HANDLE_SIZE/2),F,k)),y&&(R=cy.rotate(cy.from(0,Gl.HANDLE_SIZE/2),F,R)),n==="start"?k:R}getHandleStyles(e){var t,n,a;return{fill:e.handle.fill,stroke:(t=e.handle.stroke)!=null?t:e.stroke,strokeOpacity:(n=e.handle.strokeOpacity)!=null?n:e.strokeOpacity,strokeWidth:(a=e.handle.strokeWidth)!=null?a:e.strokeWidth}}},mU={type:"line",datum:fw,scene:cA,isDatum:fw.is,translate:(e,t,n,a)=>{fw.is(t)&&cA.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(fw.is(t)&&fw.is(n)&&cA.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{fw.is(t)&&cA.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Oae(He(ge({},e),{create:t("line")})),dragState:e=>new Bl(e)},fU={type:"arrow",datum:mw,scene:cA,isDatum:mw.is,translate:(e,t,n,a)=>{mw.is(t)&&cA.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(mw.is(t)&&mw.is(n)&&cA.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{mw.is(t)&&cA.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Lae(He(ge({},e),{create:t("arrow")})),dragState:e=>new Bl(e)},h4=(mt(),T(pt)),Lf=(mt(),T(pt)),vU=(mt(),T(pt));function yU(e,t=0,n=0){let a=t;for(let u of e)if(Array.isArray(u)){for(let y of u)bU(y,a);a+=vU._ModuleSupport.Group.computeChildrenBBox(u).width+n}else bU(u,a),a+=u.getBBox().width+n}function Nae(e,t=0,n=0){let a=t;for(let u of e)if(Array.isArray(u)){for(let y of u)CU(y,a);a+=vU._ModuleSupport.Group.computeChildrenBBox(u).height+n}else CU(u,a),a+=u.getBBox().height+n}function bU(e,t){"x1"in e?(e.x2=t+(e.x2-e.x1),e.x1=t):e.x=t}function CU(e,t){"y1"in e?(e.y2=t+(e.y2-e.y1),e.y1=t):e.y=t}function SU(e,t){"x1"in e?(e.x1+=t,e.x2+=t):e.x+=t}function wU(e,t){"y1"in e?(e.y1+=t,e.y2+=t):e.y+=t}var{Vec4:zae}=Lf._ModuleSupport,xU=class extends Lf._ModuleSupport.Group{constructor(){super(),this.name="MeasurerStatisticsScene",this.background=new Lf._ModuleSupport.Rect,this.dateRangeBarsText=new Lf._ModuleSupport.Text,this.dateRangeDivider=new Lf._ModuleSupport.Line,this.dateRangeValueText=new Lf._ModuleSupport.Text,this.priceRangeValueText=new Lf._ModuleSupport.Text,this.priceRangeDivider=new Lf._ModuleSupport.Line,this.priceRangePercentageText=new Lf._ModuleSupport.Text,this.volumeText=new Lf._ModuleSupport.Text,this.volumeFormatter=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:2,maximumFractionDigits:2}),this.append([this.background,this.dateRangeBarsText,this.dateRangeDivider,this.dateRangeValueText,this.priceRangeValueText,this.priceRangeDivider,this.priceRangePercentageText,this.volumeText])}update(e,t,n,a,u,y){this.verticalDirection=u;let k=this.updateStatistics(e,t,n,y),R=Lf._ModuleSupport.Group.computeChildrenBBox(k.flat()),F=10;R.grow(F),this.updateBackground(e,R,F),this.reposition(k,F,a)}updateStatistics(e,t,n,a){let{dateRangeBarsText:u,dateRangeDivider:y,dateRangeValueText:k,priceRangeValueText:R,priceRangeDivider:F,priceRangePercentageText:_,volumeText:V}=this,K=8,q=6,$=e.statistics.fontSize+3,te=-2,se=this.getTextStyles(e),de=He(ge({},this.getDividerStyles(e)),{x1:0,y1:0,x2:0,y2:$}),pe=[u,y,k],Ce=[R,F,_],Se=[];return t.priceRange&&(R.setProperties(He(ge({},se),{text:this.formatPriceRangeValue(t.priceRange.value,a)})),F.setProperties(de),_.setProperties(He(ge({},se),{text:this.formatPriceRangePercentage(t.priceRange.percentage,a)})),yU(Ce,n.x,K),Se.push(Ce)),t.dateRange&&(u.setProperties(He(ge({},se),{text:this.formatDateRangeBars(t.dateRange.bars,a)})),y.setProperties(de),k.setProperties(He(ge({},se),{text:this.formatDateRangeValue(t.dateRange.value)})),yU(pe,n.x,K),Se.push(pe)),t.volume!=null?(V.setProperties(He(ge({},se),{x:n.x,text:this.formatVolume(t.volume,a),visible:!0})),Se.push(V)):V.visible=!1,Nae(Se,n.y,q),F.y1+=te,F.y2+=te,y.y1+=te,y.y2+=te,Se}updateBackground(e,t,n){let a=this.getBackgroundStyles(e);this.background.setProperties(He(ge(ge({},a),t),{x:t.x-t.width/2+n,y:t.y}))}reposition(e,t,n){let{width:a,height:u}=n.seriesRect,y=zae.from(this.background.getBBox()),k=0;y.x1<0&&(k=-y.x1),y.x2>a&&(k=a-y.x2);let R=Math.min(t,u-y.y2);for(let F of e)if(Array.isArray(F)){let _=Lf._ModuleSupport.Group.computeChildrenBBox(F).width;for(let V of F)SU(V,k-_/2),wU(V,R)}else SU(F,k-F.getBBox().width/2),wU(F,R);this.background.x+=k,this.background.y+=R}getTextStyles(e){return{fill:e.statistics.color,fontFamily:e.statistics.fontFamily,fontSize:e.statistics.fontSize,fontStyle:e.statistics.fontStyle,fontWeight:e.statistics.fontWeight,textBaseline:"top"}}getDividerStyles(e){return{stroke:e.statistics.divider.stroke,strokeOpacity:e.statistics.divider.strokeOpacity,strokeWidth:e.statistics.divider.strokeWidth}}getBackgroundStyles(e){return{fill:e.statistics.fill,stroke:e.statistics.stroke,strokeOpacity:e.statistics.strokeOpacity,strokeWidth:e.statistics.strokeWidth,cornerRadius:4}}formatDateRangeBars(e,t){var n;return(n=t==null?void 0:t.t("measurerDateRangeBars",{value:e}))!=null?n:`${e}`}formatDateRangeValue(e){let t=[],n=e>=0?"":"-";e=Math.abs(e);let a=1e3*60,u=a*60,y=u*24,k=Math.floor(e/a),R=Math.floor(e/u),F=Math.floor(e/y),_=R%(y/u),V=k%(u/a);return F>=1&&t.push(`${F}d`),R>=1&&(e<y||_!==0)&&t.push(`${_}h`),(e<u||V!==0)&&t.push(`${V}m`),t[0]=`${n}${t[0]}`,t.join(" ")}formatPriceRangeValue(e,t){var n;return(n=t==null?void 0:t.t("measurerPriceRangeValue",{value:Number(e.toFixed(2))}))!=null?n:`${e}`}formatPriceRangePercentage(e,t){var n;return(n=t==null?void 0:t.t("measurerPriceRangePercent",{value:e}))!=null?n:`${e}`}formatVolume(e,t){var a;let n=isNaN(e)?"":this.volumeFormatter.format(e);return(a=t==null?void 0:t.t("measurerVolume",{value:n}))!=null?a:n}},Bae=class extends xU{getDirectionStyles(e){return this.verticalDirection==="down"?e.down.statistics:e.up.statistics}getTextStyles(e){let t=this.getDirectionStyles(e);return He(ge({},super.getTextStyles(e)),{fill:t.color,fontFamily:t.fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight})}getDividerStyles(e){let t=this.getDirectionStyles(e);return{stroke:t.divider.stroke,strokeOpacity:t.divider.strokeOpacity,strokeWidth:t.divider.strokeWidth}}getBackgroundStyles(e){let t=this.getDirectionStyles(e);return He(ge({},super.getBackgroundStyles(e)),{fill:t.fill,stroke:t.stroke,strokeOpacity:t.strokeOpacity,strokeWidth:t.strokeWidth})}},{Vec2:fC,Vec4:wE}=h4._ModuleSupport,$p=class extends e4{constructor(){super(),this.type="measurer",this.horizontalLine=new Zp,this.verticalLine=new Zp,this.horizontalStartLine=new Zp,this.horizontalEndLine=new Zp,this.verticalStartLine=new Zp,this.verticalEndLine=new Zp,this.horizontalEndCap=new b_,this.verticalEndCap=new b_,this.background=new h4._ModuleSupport.Path({zIndex:-1}),this.updateBackground=sU.updateBackground.bind(this),this.statistics=this.createStatisticsScene(),this.statistics.zIndex=1,this.append([this.background,this.verticalStartLine,this.verticalEndLine,this.horizontalStartLine,this.horizontalEndLine,this.horizontalLine,this.verticalLine,this.horizontalEndCap,this.verticalEndCap,this.start,this.end,this.statistics])}static is(e){return Bd.isCheck(e,"measurer")}createStatisticsScene(){return new xU}update(e,t){var k;let n=gw(e,t);if(n==null){this.visible=!1;return}if(this.visible=(k=e.visible)!=null?k:!0,!this.visible)return;let a=this.extendPerpendicular(n,e,t),u=He(ge({},a),{y2:a.y1}),y=He(ge({},a),{y1:a.y2});this.verticalDirection=n.y1<n.y2?"down":"up",this.updateVisibilities(e),this.updateLines(e,n),this.updateHandles(e,n),this.updateText(e,n),this.updateCaps(e,n),this.updateBoundingLines(e,a),this.updateBackground(e,u,y,t),this.updateStatistics(e,n,t),this.updateAnchor(e,n,t)}extendPerpendicular(e,t,n){let a={x1:Math.min(e.x1,e.x2),x2:Math.max(e.x1,e.x2),y1:Math.min(e.y1,e.y2),y2:Math.max(e.y1,e.y2)},[u,y]=fC.from(n.yAxis.bounds);return Ef.is(t)?(t.extendAbove&&(a.y1=u.y),t.extendBelow&&(a.y2=y.y)):If.is(t)&&(t.extendLeft&&(a.x1=u.x),t.extendRight&&(a.x2=y.x)),a}updateVisibilities(e){let{horizontalStartLine:t,horizontalEndLine:n,horizontalEndCap:a,verticalStartLine:u,verticalEndLine:y,verticalEndCap:k}=this,{direction:R}=e;u.visible=R!=="vertical",y.visible=R!=="vertical",a.visible=R!=="vertical",t.visible=R!=="horizontal",n.visible=R!=="horizontal",k.visible=R!=="horizontal"}updateLines(e,t){let{horizontalLine:n,verticalLine:a}=this,{direction:u}=e,{x1:y,y1:k,x2:R,y2:F}=t,_=fC.round(wE.center(t)),V=this.getLineStyles(e);u!=="vertical"&&n.setProperties(He(ge({},V),{x1:y,x2:R,y1:_.y,y2:_.y})),u!=="horizontal"&&a.setProperties(He(ge({},V),{x1:_.x,x2:_.x,y1:k,y2:F}))}updateText(e,t){let{direction:n}=e,a=fC.round(wE.center(t)),u,y=ge({},t);n==="vertical"?(u=this.verticalLine,y.x1=a.x,y.x2=a.x):(u=this.horizontalLine,y.y1=a.y,y.y2=a.y),this.text=this.updateNode(SE,this.text,!!e.text.label);let{id:k}=u,R=RR(k,u,e.text,y,this.text,e.text.label,e.strokeWidth),F;if(n==="both"&&R&&this.text){let _=wE.from(this.text.getBBox()),{offset:V}=R.numbers;_.x1<=a.x+V.x&&_.x2>=a.x-V.x&&(F={x:a.x,y:R.clipMask.y,radius:this.text.getBBox().height/2+fC.length(V)})}this.verticalLine.setClipMask(k,F)}updateCaps(e,t){let{horizontalEndCap:n,verticalEndCap:a}=this,{direction:u}=e,{x1:y,y1:k,x2:R,y2:F}=t,_=fC.round(wE.center(t)),{stroke:V,strokeWidth:K,strokeOpacity:q}=this.getLineStyles(e),$={stroke:V,strokeWidth:K,strokeOpacity:q};if(u!=="vertical"){let te=y<=R?0:Math.PI,se=R;u==="horizontal"&&(se+=y<=R?-2:2),n.update(He(ge({},$),{x:se,y:_.y,angle:te}))}if(u!=="horizontal"){let te=k<=F?Math.PI/2:Math.PI/-2,se=F;u==="vertical"&&(se+=k<=F?-2:2),a.update(He(ge({},$),{x:_.x,y:se,angle:te}))}}updateBoundingLines(e,t){let{verticalStartLine:n,verticalEndLine:a,horizontalStartLine:u,horizontalEndLine:y}=this,{direction:k}=e,{x1:R,y1:F,x2:_,y2:V}=t,K=this.getLineStyles(e);k==="horizontal"&&(n.setProperties(He(ge({},K),{x1:R,y1:F,x2:R,y2:V})),a.setProperties(He(ge({},K),{x1:_,y1:F,x2:_,y2:V}))),k==="vertical"&&(u.setProperties(He(ge({},K),{x1:R,y1:F,x2:_,y2:F})),y.setProperties(He(ge({},K),{x1:R,y1:V,x2:_,y2:V})))}updateStatistics(e,t,n){let a=fC.add(wE.bottomCenter(t),fC.from(0,10)),u={volume:this.getVolume(e)};e.hasPriceRange&&(u.priceRange={percentage:this.getPriceRangePercentage(e),value:this.getPriceRangeValue(e)}),e.hasDateRange&&(u.dateRange={bars:this.getDateRangeBars(t,n),value:this.getDateRangeValue(e)}),this.statistics.update(e,u,a,n,this.verticalDirection,e.localeManager)}updateAnchor(e,t,n,a){let u=wE.topCenter(t);fC.apply(this.anchor,h4._ModuleSupport.Transformable.toCanvasPoint(this.horizontalLine,u.x,u.y))}getBackgroundPoints(e,t,n,a){let[u,y]=fC.from(t),[k,R]=fC.from(n);return[u,y,R,k]}getLineStyles(e){let{lineDashOffset:t,stroke:n,strokeWidth:a,strokeOpacity:u}=e;return{lineCap:e.getLineCap(),lineDash:e.getLineDash(),lineDashOffset:t,stroke:n,strokeWidth:a,strokeOpacity:u,fillOpacity:0}}getBackgroundStyles(e){let{background:t}=e;return{fill:t.fill,fillOpacity:t.fillOpacity}}getHandleStyles(e){var t,n,a;return{fill:e.handle.fill,stroke:(t=e.handle.stroke)!=null?t:e.stroke,strokeOpacity:(n=e.handle.strokeOpacity)!=null?n:e.strokeOpacity,strokeWidth:(a=e.handle.strokeWidth)!=null?a:e.strokeWidth}}containsPoint(e,t){let{horizontalLine:n,text:a,verticalLine:u,horizontalStartLine:y,horizontalEndLine:k,verticalStartLine:R,verticalEndLine:F}=this;return super.containsPoint(e,t)||n.isPointInPath(e,t)||u.isPointInPath(e,t)||y.visible&&y.isPointInPath(e,t)||k.visible&&k.isPointInPath(e,t)||R.visible&&R.isPointInPath(e,t)||F.visible&&F.isPointInPath(e,t)||!!(a!=null&&a.containsPoint(e,t))}getNodeAtCoords(e,t){var n;return(n=this.text)!=null&&n.containsPoint(e,t)?"text":this.start.containsPoint(e,t)||this.end.containsPoint(e,t)?"handle":"line"}getDateRangeBars(e,t){let{step:n}=t.xAxis.scale,a=e.x1<=e.x2?1:-1;return n?Math.round(wE.width(e)/n)*a:0}getDateRangeValue(e){if(e.start.x==null||e.end.x==null||!(e.start.x instanceof Date)||!(e.end.x instanceof Date))throw new Error("Can not create a date range measurement of non-date x-axis.");return e.end.x.getTime()-e.start.x.getTime()}getPriceRangePercentage(e){if(e.start.y==null||e.end.y==null)throw new Error("Can not create a price range measurement of a non-numeric y-axis");return(e.end.y-e.start.y)/e.start.y}getPriceRangeValue(e){if(e.start.y==null||e.end.y==null)throw new Error("Can not create a price range measurement of a non-numeric y-axis");return e.end.y-e.start.y}getVolume(e){return e.getVolume(e.start.x,e.end.x)}},C_=class extends $p{constructor(){super(...arguments),this.type="quick-measurer"}static is(e){return Bd.isCheck(e,"quick-measurer")}createStatisticsScene(){return new Bae}getDirectionStyles(e){return this.verticalDirection==="down"?e.down:e.up}getLineStyles(e){let t=this.getDirectionStyles(e);return He(ge({},super.getLineStyles(e)),{stroke:t.stroke,strokeWidth:t.strokeWidth,strokeOpacity:t.strokeOpacity})}getBackgroundStyles(e){let t=this.getDirectionStyles(e);return{fill:t.fill,fillOpacity:t.fillOpacity}}getHandleStyles(e){var n,a,u;let t=this.getDirectionStyles(e);return{fill:t.handle.fill,stroke:(n=t.handle.stroke)!=null?n:t.stroke,strokeOpacity:(a=t.handle.strokeOpacity)!=null?a:t.strokeOpacity,strokeWidth:(u=t.handle.strokeWidth)!=null?u:t.strokeWidth}}},Gae=(mt(),T(pt)),{StateMachine:FR,StateMachineProperty:MU,Debug:Vae}=Gae._ModuleSupport,_R=class extends FR{constructor(e){let t=({point:k})=>{let R=this.createDatum();R.set({start:k,end:k}),e.create(R)},n=({point:k})=>{let{datum:R,node:F}=this;R==null||R.set({end:k}),F==null||F.toggleActive(!0),F==null||F.toggleHandles({end:!1}),e.update()},a=()=>{var k;(k=this.node)==null||k.toggleHandles({end:!0})},u=()=>e.delete(),y=()=>{var k;e.showAnnotationOptions(),!eA(this.datum)&&e.recordAction(`Create ${(k=this.node)==null?void 0:k.type} annotation`)};super("start",{start:{reset:FR.parent,click:{target:"end",action:t},drag:{target:"end",action:t}},end:{hover:n,drag:n,click:{target:FR.parent,action:a},dragEnd:{target:FR.parent,action:a},reset:{target:FR.parent,action:u},cancel:{target:FR.parent,action:u},onExit:y}}),this.debug=Vae.create(!0,"annotations")}};me([MU()],_R.prototype,"datum",2),me([MU()],_R.prototype,"node",2);var jae=class extends _R{createDatum(){return new Ef}},Hae=class extends _R{createDatum(){return new If}},Wae=class extends _R{createDatum(){return new pw}},Uae=class extends _R{createDatum(){return new Xp}},kU={type:"date-range",datum:Ef,scene:$p,isDatum:Ef.is,translate:(e,t,n,a)=>{Ef.is(t)&&$p.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(Ef.is(t)&&Ef.is(n)&&$p.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{Ef.is(t)&&$p.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new jae(He(ge({},e),{create:t("date-range")})),dragState:e=>new Bl(e)},AU={type:"price-range",datum:If,scene:$p,isDatum:If.is,translate:(e,t,n,a)=>{If.is(t)&&$p.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(If.is(t)&&If.is(n)&&$p.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{If.is(t)&&$p.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Hae(He(ge({},e),{create:t("date-range")})),dragState:e=>new Bl(e)},DU={type:"date-price-range",datum:pw,scene:$p,isDatum:pw.is,translate:(e,t,n,a)=>{pw.is(t)&&$p.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(pw.is(t)&&pw.is(n)&&$p.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{pw.is(t)&&$p.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Wae(He(ge({},e),{create:t("date-range")})),dragState:e=>new Bl(e)},EU={type:"quick-date-price-range",datum:Xp,scene:C_,isDatum:Xp.is,translate:(e,t,n,a)=>{Xp.is(t)&&C_.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(Xp.is(t)&&Xp.is(n)&&C_.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{Xp.is(t)&&C_.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Uae(He(ge({},e),{create:t("quick-date-price-range")})),dragState:e=>new Bl(e)},v2=(mt(),T(pt)),{ZIndexMap:IU,TextWrapper:Kae,clamp:qae}=v2._ModuleSupport,S_=class extends a4{constructor(){super(),this.type="note",this.shape=new v2._ModuleSupport.Rect,this.iconBackground=new v2._ModuleSupport.SvgPath("M22 1.83333C22 0.820811 21.1792 0 20.1667 0H1.83333C0.820811 0 0 0.82081 0 1.83333V13.9868C0 14.9994 0.820811 15.8202 1.83333 15.8202L5.88971 15.8202C6.44575 15.8202 6.97175 16.0725 7.31971 16.5062L9.57006 19.3112C10.304 20.2259 11.6962 20.2259 12.4301 19.3112L14.6804 16.5062C15.0284 16.0725 15.5544 15.8202 16.1104 15.8202L20.1667 15.8202C21.1792 15.8202 22 14.9994 22 13.9868V1.83333Z"),this.iconLines=new v2._ModuleSupport.SvgPath("M17.1114 5.75C17.1114 6.16421 16.7756 6.5 16.3614 6.5H5.63916C5.22495 6.5 4.88916 6.16421 4.88916 5.75V5.75C4.88916 5.33579 5.22495 5 5.63916 5H16.3614C16.7756 5 17.1114 5.33579 17.1114 5.75V5.75ZM17.1114 9.25C17.1114 9.66421 16.7756 10 16.3614 10H5.63916C5.22495 10 4.88916 9.66421 4.88916 9.25V9.25C4.88916 8.83579 5.22495 8.5 5.63916 8.5H16.3614C16.7756 8.5 17.1114 8.83579 17.1114 9.25V9.25Z"),this.active=!1,this.shape.visible=!1,this.label.visible=!1,this.iconBackground.fillShadow=new v2._ModuleSupport.DropShadow,this.append([this.shape,this.label,this.iconBackground,this.iconLines,this.handle])}static is(e){return Bd.isCheck(e,"note")}update(e,t){this.updateIcon(e,t),super.update(e,t)}getTextBBox(e,t,n){let a=super.getTextBBox(e,t,n);a.x-=e.width/2,a.x=qae(0,a.x,n.seriesRect.width-e.width);let u=e.getPadding().top,y=a.y-uW-u*2,k=a.y+Gl.HANDLE_SIZE+u*2;return y-a.height-hW<0?(a.y=k,e.position="top"):(a.y=y+u,e.position="bottom"),a}updateLabel(e,t){let n=e.visible===!1?!1:this.label.visible;super.updateLabel(e,t),this.label.visible=n,this.label.text=Kae.wrapText(e.text,{font:{fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight},avoidOrphans:!1,textAlign:e.textAlign,textBaseline:"hanging",textWrap:"always",maxWidth:200})}updateShape(e,t){var y,k,R;let{shape:n}=this;n.fill=e.background.fill,n.fillOpacity=(y=e.background.fillOpacity)!=null?y:1,n.stroke=e.background.stroke,n.strokeOpacity=(k=e.background.strokeOpacity)!=null?k:1,n.strokeWidth=(R=e.background.strokeWidth)!=null?R:1,n.cornerRadius=4;let a=e.getPadding().top,u=e.position==="top";n.x=t.x-a,n.width=e.width+a*2,n.height=t.height+a*2,n.y=t.y+(u?0:-t.height)-a}updateIcon(e,t){var R,F,_,V;let{active:n,iconBackground:a,iconLines:u}=this,{x:y,y:k}=vc(e,t);a.x=y-pie/2,a.y=k-dW,u.x=a.x,u.y=a.y,a.fill=e.fill,a.fillOpacity=(R=e.fillOpacity)!=null?R:1,a.stroke=e.stroke,a.strokeOpacity=(F=e.strokeOpacity)!=null?F:1,a.strokeWidth=(_=e.strokeWidth)!=null?_:1,u.fill=e.stroke,n?a.fillShadow.color=(V=e.fill)!=null?V:"rgba(0, 0, 0, 0.22)":a.fillShadow.color="rgba(0, 0, 0, 0.22)"}updateAnchor(e,t,n){let a=e.getPadding().top,u=e.position==="top",y=u?1:-1;return{x:t.x+n.seriesRect.x+e.width/2,y:t.y+n.seriesRect.y+y*(t.height+a),position:u?"below":"above"}}getLabelCoords(e,t){let n=e.position==="top",a=e.getPadding().top;return{x:t.x,y:t.y+(n?a/2:0)}}getHandleCoords(e,t,n){return{x:t.x,y:t.y+Gl.HANDLE_SIZE/2+4}}getHandleStyles(e){var t;return{fill:e.handle.fill,stroke:(t=e.handle.stroke)!=null?t:e.fill,strokeOpacity:e.handle.strokeOpacity,strokeWidth:e.handle.strokeWidth}}toggleHovered(e){super.toggleHovered(e),this.label.visible=e,this.shape.visible=e,this.zIndex=e?IU.CHART_ANNOTATION_FOCUSED:IU.CHART_ANNOTATION}toggleActive(e){super.toggleActive(e),this.label.visible=e,this.shape.visible=e,this.active=e}containsPoint(e,t){return this.shape.visible&&this.shape.containsPoint(e,t)||this.iconBackground.containsPoint(e,t)?!0:super.containsPoint(e,t)}},Yae=class extends m2{createDatum(){return new Pg}},TU={type:"note",datum:Pg,scene:S_,isDatum:Pg.is,translate:(e,t,n,a)=>{Pg.is(t)&&S_.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(Pg.is(t)&&Pg.is(n)&&S_.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{Pg.is(t)&&S_.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Yae(He(ge({},e),{create:t("note")})),dragState:e=>new Bl(e)},Xae=(mt(),T(pt)),{Vec2:vC,Vec4:NR}=Xae._ModuleSupport,w_=class extends lU{constructor(){super(),this.type="parallel-channel",this.ignoreYBounds=!0,this.handles={topLeft:new Gl,topMiddle:new TR,topRight:new Gl,bottomLeft:new Gl,bottomMiddle:new TR,bottomRight:new Gl},this.middleLine=new Zp,this.append([this.background,this.topLine,this.middleLine,this.bottomLine,...Object.values(this.handles)])}static is(e){return Bd.isCheck(e,"parallel-channel")}dragHandle(e,t,n,a){let{activeHandle:u,handles:y}=this;if(u==null)return;let{offset:k}=y[u].drag(t);y[u].toggleDragging(!0);let R=e.toJson(),F=[],_=[];switch(u){case"topLeft":case"bottomLeft":F=["topLeft","bottomLeft"],_=["topRight","bottomRight"];break;case"topMiddle":F=["topLeft","topRight"],k.y-=TR.HANDLE_SIZE/2;break;case"topRight":case"bottomRight":F=["topRight","bottomRight"],_=["topLeft","bottomLeft"];break;case"bottomMiddle":F=["bottomLeft","bottomRight"],k.y-=TR.HANDLE_SIZE/2;break}let V=e.snapToAngle,K=F.map((q,$)=>a&&_[$]?this.snapToAngle(t,n,q,_[$],V):Qr(vC.add(y[q].handle,k),n)).filter(wie);if(!K.some(q=>!sy(n,q,{y:!1}))){if((u==="topMiddle"||u==="bottomMiddle")&&e.start.y!=null){let q=Qr(vC.add(y.topLeft.handle,k),n);sy(n,q)&&(u==="topMiddle"?e.height+=q.y-e.start.y:e.height-=q.y-e.start.y)}for(let[q,$]of K.entries())switch(F[q]){case"topLeft":e.start.x=$.x,e.start.y=$.y;break;case"topRight":e.end.x=$.x,e.end.y=$.y;break}e.isValidWithContext(n)||e.set(R)}}containsPoint(e,t){return super.containsPoint(e,t)||this.middleLine.visible&&this.middleLine.strokeWidth>0&&this.middleLine.containsPoint(e,t)}getNodeAtCoords(e,t){return this.middleLine.visible&&this.middleLine.strokeWidth>0&&this.middleLine.containsPoint(e,t)?"line":super.getNodeAtCoords(e,t)}updateLines(e,t,n,a,u,y){var de,pe,Ce,Se,ve,ke;let{topLine:k,middleLine:R,bottomLine:F}=this,{lineDashOffset:_,stroke:V,strokeOpacity:K,strokeWidth:q}=e,$=e.getLineDash(),te={lineCap:e.getLineCap(),lineDash:$,lineDashOffset:_,stroke:V,strokeOpacity:K,strokeWidth:q};k.setProperties(ge(ge({},t),te)),F.setProperties(ge(ge({},n),te));let se=this.extendLine({x1:u.x1,y1:y.y1+(u.y1-y.y1)/2,x2:u.x2,y2:y.y2+(u.y2-y.y2)/2},e,a);R.setProperties(He(ge({},se),{lineDash:(de=e.middle.lineDash)!=null?de:$,lineDashOffset:(pe=e.middle.lineDashOffset)!=null?pe:_,stroke:(Ce=e.middle.stroke)!=null?Ce:V,strokeOpacity:(Se=e.middle.strokeOpacity)!=null?Se:K,strokeWidth:(ve=e.middle.strokeWidth)!=null?ve:q,visible:(ke=e.middle.visible)!=null?ke:!0}))}updateHandles(e,t,n){var V,K,q;let{handles:{topLeft:a,topMiddle:u,topRight:y,bottomLeft:k,bottomMiddle:R,bottomRight:F}}=this,_={fill:e.handle.fill,stroke:(V=e.handle.stroke)!=null?V:e.stroke,strokeOpacity:(K=e.handle.strokeOpacity)!=null?K:e.strokeOpacity,strokeWidth:(q=e.handle.strokeWidth)!=null?q:e.strokeWidth};a.update(ge(ge({},_),NR.start(t))),y.update(ge(ge({},_),NR.end(t))),k.update(ge(ge({},_),NR.start(n))),F.update(ge(ge({},_),NR.end(n))),u.update(ge(ge({},_),vC.sub(NR.center(t),vC.from(u.handle.width/2,u.handle.height/2)))),R.update(ge(ge({},_),vC.sub(NR.center(n),vC.from(R.handle.width/2,R.handle.height/2))))}updateText(e,t,n){this.text=this.updateNode(SE,this.text,!!e.text.label),eU(!0,t,n,e.text,e.strokeWidth,this.text,e.text.label)}getBackgroundPoints(e,t,n,a){let u=t.x1>t.x2,y=t.y1>t.y2,k=t.x1!==n.x1&&t.y1!==n.y1,R=t.x2!==n.x2&&t.y2!==n.y2,F=vC.from(t);return e.extendEnd&&R&&F.push(vC.from(u?a.x1:a.x2,y?a.y1:a.y2)),F.push(...vC.from(n).reverse()),e.extendStart&&k&&F.push(vC.from(u?a.x2:a.x1,y?a.y2:a.y1)),F}},Zae=(mt(),T(pt)),{StateMachine:dA,StateMachineProperty:g4,Debug:$ae}=Zae._ModuleSupport,x_=class extends dA{constructor(e){let t=({point:F})=>{let _=new Rf;_.set({start:F,end:F,height:0}),e.create(_)},n=()=>{let{node:F}=this;F==null||F.toggleActive(!0),F==null||F.toggleHandles({topLeft:!0,topMiddle:!1,topRight:!1,bottomLeft:!1,bottomMiddle:!1,bottomRight:!1})},a=({offset:F,context:_})=>{let{datum:V,snapping:K}=this;V&&(V.set({end:ZB(F,_,K,V.start,V.snapToAngle)}),e.update())},u=()=>{var F;(F=this.node)==null||F.toggleHandles({topRight:!0}),e.update()},y=({point:F})=>{var $;let{datum:_,node:V}=this;if((_==null?void 0:_.start.y)==null||(_==null?void 0:_.end.y)==null)return;let K=_.end.y-(($=F.y)!=null?$:0),q=_.start.y-K;V==null||V.toggleHandles({bottomLeft:!0,bottomRight:!0}),!(!e.validatePoint({x:_.start.x,y:q})||!e.validatePoint({x:_.end.x,y:F.y}))&&(_.set({height:K}),e.update())},k=({point:F})=>{var $;let{datum:_,node:V}=this;if((_==null?void 0:_.start.y)==null||(_==null?void 0:_.end.y)==null)return;let K=_.end.y-(($=F.y)!=null?$:0),q=_.start.y-K;V==null||V.toggleHandles(!0),!(!e.validatePoint({x:_.start.x,y:q})||!e.validatePoint({x:_.end.x,y:F.y}))&&(_.set({height:K}),e.recordAction("Create parallel-channel annotation"),e.showAnnotationOptions(),e.update())},R=()=>e.delete();super("start",{start:{click:{target:"waiting-first-render",action:t},drag:{target:"waiting-first-render",action:t},reset:dA.parent},"waiting-first-render":{render:{target:"end",action:n}},end:{hover:a,drag:a,click:{target:"height",action:u},dragEnd:{target:"height",action:u},reset:{target:dA.parent,action:R},cancel:{target:dA.parent,action:R}},height:{hover:y,click:{target:dA.parent,action:k},drag:{target:dA.parent,action:k},reset:{target:dA.parent,action:R},cancel:{target:dA.parent,action:R}}}),this.debug=$ae.create(!0,"annotations"),this.snapping=!1}};me([g4()],x_.prototype,"datum",2),me([g4()],x_.prototype,"node",2),me([g4()],x_.prototype,"snapping",2);var RU={type:"parallel-channel",datum:Rf,scene:w_,isDatum:Rf.is,translate:(e,t,n,a)=>{Rf.is(t)&&w_.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(Rf.is(t)&&Rf.is(n)&&w_.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{Rf.is(t)&&w_.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new x_(He(ge({},e),{create:t("parallel-channel")})),dragState:e=>new Bl(e)},M_=class extends a4{constructor(){super(),this.type="text",this.append([this.label,this.handle])}static is(e){return Bd.isCheck(e,"text")}getHandleCoords(e,t){let n=Gl.HANDLE_SIZE/2;return{x:t.x+n,y:t.y+2+n}}},Qae=class extends m2{createDatum(){return new yw}},PU={type:"text",datum:yw,scene:M_,isDatum:yw.is,translate:(e,t,n,a)=>{yw.is(t)&&M_.is(e)&&e.translate(t,n,a)},copy:(e,t,n,a)=>{if(yw.is(t)&&yw.is(n)&&M_.is(e))return e.copy(t,n,a)},update:(e,t,n)=>{yw.is(t)&&M_.is(e)&&e.update(t,n)},createState:(e,{createDatum:t})=>new Qae(He(ge({},e),{create:t("text")})),dragState:e=>new Bl(e)},Qp={[mU.type]:mU,[aU.type]:aU,[oU.type]:oU,[RU.type]:RU,[cU.type]:cU,[hU.type]:hU,[XW.type]:XW,[QW.type]:QW,[TU.type]:TU,[PU.type]:PU,[fU.type]:fU,[VW.type]:VW,[GW.type]:GW,[kU.type]:kU,[AU.type]:AU,[DU.type]:DU,[EU.type]:EU};function xE(e){for(let{isDatum:t}of Object.values(Qp))if(t(e))return e}var Jae=(mt(),T(pt)),{ActionOnSet:eoe,ParallelStateMachine:toe,StateMachine:p4,StateMachineProperty:yC,Debug:ioe}=Jae._ModuleSupport,k_=class extends toe{constructor(e){super(new noe(t=>{this.snapping=t}),new aoe(()=>{this.node=this.active==null?void 0:e.node(this.active)}),new uA(e,t=>{this.active=t,this.datum=this.active==null?void 0:e.datum(this.active),this.node=this.active==null?void 0:e.node(this.active)})),this.snapping=!1}getActive(){return this.active}isActive(e){return e===this.active}};me([yC()],k_.prototype,"snapping",2),me([yC()],k_.prototype,"datum",2),me([yC()],k_.prototype,"node",2);var noe=class extends p4{constructor(e){super("idle",{idle:{hover:({shiftKey:t})=>e(t),keyDown:({shiftKey:t})=>e(t),keyUp:({shiftKey:t})=>e(t),click:({shiftKey:t})=>e(t),drag:({shiftKey:t})=>e(t)},dragging:{},["text-input"]:{}})}},aoe=class extends p4{constructor(e){super("idle",{idle:{onEnter:e,render:e},dragging:{onEnter:e,render:e},["text-input"]:{render:e}})}},uA=class extends p4{constructor(e,t){let n=Se=>ve=>{e.create(Se,ve),this.active=e.selectLast()},a=()=>{this.active!=null&&e.delete(this.active),this.active=void 0,e.select()},u={createDatum:n},y=He(ge({},e),{delete:a,showTextInput:()=>{this.active!=null&&e.showTextInput(this.active)},deselect:()=>{let Se=this.active;this.active=void 0,this.hovered=void 0,e.select(this.active,Se)},showAnnotationOptions:()=>{this.active!=null&&e.showAnnotationOptions(this.active)}}),k=Object.fromEntries(Object.entries(Qp).map(([Se,ve])=>[Se,ve.createState(y,u)])),R=Object.fromEntries(Object.entries(Qp).map(([Se,ve])=>[Se,ve.dragState(e,u)])),F=({colorPickerType:Se,colorOpacity:ve,color:ke,opacity:De,isMultiColor:Te})=>{this.datum&&(Se==="text-color"&&e.updateTextInputColor(ke),i_(this.datum,Se,ve,ke,De,Te),e.update())},_=Se=>{let{datum:ve,node:ke}=this;!ve||!ke||(pC(ve)?(ve.fontSize=Se,e.updateTextInputFontSize(Se)):ER(ve)&&(ve.text.fontSize=Se),e.update())},V=Se=>{let{datum:ve,node:ke}=this;!ve||!ke||!tA(ve)||(xW(ve,Se),e.update())},K=Se=>{let{node:ve}=this;!ve||!("setTextInputBBox"in ve)||(ve.setTextInputBBox(Se),e.update())},q=({textInputValue:Se,bbox:ve})=>{let{datum:ke}=this;if(ve!=null&&Se!=null&&Se.length>0){if(!pC(ke))return;let De=ZF(ke,Se,ve.width);ke.set({text:De}),e.update(),e.recordAction(`Change ${ke.type} annotation text`)}else e.delete(this.active),e.recordAction(`Delete ${ke==null?void 0:ke.type} annotation`)},$=()=>{e.updateTextInputBBox(void 0)},te=()=>this.active!=null,se=()=>this.copied!=null,de=()=>{let{active:Se,datum:ve}=this;return Se==null||!ve?!1:ER(ve)&&!ve.locked},pe=()=>this.active!=null&&!eA(this.datum),Ce=()=>this.hovered!=null;super("idle",{idle:ge({onEnter:()=>{e.select(this.active,this.active),this.hoverCoords&&(this.hovered=e.hoverAtCoords(this.hoverCoords,this.active))},hover:({offset:Se})=>{this.hovered=e.hoverAtCoords(Se,this.active),this.hoverCoords=Se},translate:{guard:te,action:({translation:Se})=>{e.startInteracting(),e.translate(this.active,Se),e.update()}},translateEnd:{guard:te,action:()=>{e.stopInteracting()}},copy:{guard:pe,action:()=>{this.copied=e.copy(this.active)}},cut:{guard:pe,action:()=>{this.copied=e.copy(this.active),a()}},paste:{guard:se,action:()=>{e.paste(this.copied)}},selectLast:()=>{let Se=this.active;this.active=e.selectLast(),e.select(this.active,Se)},click:[{guard:()=>{let{active:Se,hovered:ve,datum:ke}=this;return Se==null||ve!==Se||!ke?!1:pC(ke)&&!ke.locked},target:"text-input"},{action:()=>{let Se=this.active;this.active=this.hovered,e.select(this.active,Se)}}],dblclick:{guard:de,action:({offset:Se})=>{let ve=e.getNodeAtCoords(Se,this.active)==="text"?"text":"line";e.showAnnotationSettings(this.active,void 0,ve)}},dragStart:[{guard:Ce,target:"dragging",action:()=>{let Se=this.active;this.active=this.hovered,e.select(this.active,Se),e.startInteracting()}},{action:()=>{let Se=this.active;this.active=this.hovered,e.select(this.active,Se)}}],color:{guard:te,action:F},fontSize:{guard:te,action:_},lineProps:{guard:te,action:Se=>{let ve=xE(this.datum);ve==null||ve.set(Se),e.update(),e.recordAction(`Change ${ve==null?void 0:ve.type} ${Object.entries(Se).map(([ke,De])=>`${ke} to ${De}`).join(", ")}`)}},lineStyle:{guard:te,action:V},lineText:{guard:te,action:Se=>{let ve=xE(this.datum);ER(ve)&&(bw(ve)&&Se.position==="center"&&(Se.position="inside"),ve.text.set(Se),e.update())}},updateTextInputBBox:{guard:te,action:K},toolbarPressSettings:{guard:de,action:Se=>{e.showAnnotationSettings(this.active,Se)}},reset:()=>{var Se;this.active!=null&&((Se=this.node)==null||Se.toggleActive(!1)),this.hovered=void 0,this.active=void 0,e.select(this.active,this.active),e.resetToIdle()},delete:()=>{var Se;this.active!=null&&(e.delete(this.active),!eA(this.datum)&&e.recordAction(`Delete ${(Se=this.datum)==null?void 0:Se.type} annotation`))},deleteAll:()=>{e.deleteAll()}},k),dragging:ge({onEnter:(Se,ve)=>{if(this.active==null)return;let ke=e.getAnnotationType(this.active);ke&&(this.transitionRoot(ke),this.transitionRoot("dragStart",ve))}},R),["text-input"]:{onEnter:()=>{if(this.active==null)return;let Se=xE(this.datum);!Se||!("getTextInputCoords"in Se)||(e.startInteracting(),e.showTextInput(this.active),Se.visible=!1,e.update())},updateTextInputBBox:{guard:te,action:K},resize:{target:"idle",action:q},click:{target:"idle",action:q},drag:{target:"idle",action:q},textInput:[{guard:t4,target:"idle",action:$},{guard:i4,target:"idle",action:q}],color:{guard:te,action:F},fontSize:{guard:te,action:_},cancel:{target:"idle",action:$},onExit:()=>{e.stopInteracting(),e.hideTextInput();let Se=this.active;if(this.active=this.hovered=void 0,e.select(this.active,Se),Se==null)return;let ve=e.datum(Se),ke=e.node(Se);!ve||!ke||(ve.visible=!0)}}}),this.setActive=t,this.debug=ioe.create(!0,"annotations"),this.snapping=!1}};me([eoe({changeValue(e){this.setActive(e)}}),yC()],uA.prototype,"active",2),me([yC()],uA.prototype,"hovered",2),me([yC()],uA.prototype,"hoverCoords",2),me([yC()],uA.prototype,"copied",2),me([yC()],uA.prototype,"snapping",2),me([yC()],uA.prototype,"datum",2),me([yC()],uA.prototype,"node",2);var m4=(mt(),T(pt)),{ARRAY:ooe,BOOLEAN:roe,UNION:soe,ActionOnSet:loe,LayoutElement:coe,Menu:doe,PropertiesArray:uoe,ToolbarButtonProperties:hoe,Validate:f4}=m4._ModuleSupport,LU=class extends hoe{};me([f4(soe(["line-menu","fibonacci-menu","text-menu","shape-menu","measurer-menu","clear"]))],LU.prototype,"value",2);var v4=class extends m4._ModuleSupport.BaseProperties{constructor(e){super(),this.ctx=e,this.enabled=!0,this.buttons=new uoe(LU),this.events=new m4._ModuleSupport.Listeners,this.annotationMenu=new doe(this.ctx,"annotations"),this.destroyFns=[],this.toolbar=e.sharedToolbar.getSharedToolbar("annotations");let t=this.onKeyDown.bind(this);this.toolbar.addListener("keydown",t),this.destroyFns.push(this.toolbar.addToolbarListener("button-pressed",this.onToolbarButtonPress.bind(this)),e.layoutManager.registerElement(coe.ToolbarLeft,this.onLayoutStart.bind(this)),()=>{this.toolbar.removeListener("keydown",t),this.toolbar.destroy()})}destroy(){for(let e of this.destroyFns)e()}addListener(e,t){return this.events.addListener(e,t)}toggleVisibility(e){this.toolbar.setHidden(!e)}toggleClearButtonEnabled(e){let t=this.buttons.findIndex(n=>n.value==="clear");this.toolbar.toggleButtonEnabledByIndex(t,e)}resetButtonIcons(){for(let[e,t]of this.buttons.entries())switch(t.value){case"line-menu":this.updateButtonByIndex(e,{icon:"trend-line-drawing",value:"line-menu"});break;case"fibonacci-menu":this.updateButtonByIndex(e,{icon:"fibonacci-retracement-drawing",value:"fibonacci-menu"});break;case"text-menu":this.updateButtonByIndex(e,{icon:"text-annotation",value:"text-menu"});break;case"shape-menu":this.updateButtonByIndex(e,{icon:"arrow-drawing",value:"shape-menu"});break}}hideOverlays(){this.annotationMenu.hide()}clearActiveButton(){this.toolbar.clearActiveButton()}dispatch(e,t){this.events.dispatch(e,t)}onLayoutStart(e){this.enabled&&(this.toolbar.updateButtons(this.buttons),this.toolbar.layout(e.layoutBox))}onToolbarButtonPress({event:e,button:t,buttonBounds:n}){switch(t.value){case"clear":this.dispatch("pressed-clear");break;case"line-menu":this.onToolbarButtonPressShowMenu(e,n,t.value,"toolbarAnnotationsLineAnnotations",lne);break;case"fibonacci-menu":this.onToolbarButtonPressShowMenu(e,n,t.value,"toolbarAnnotationsFibonacciAnnotations",cne);break;case"text-menu":this.onToolbarButtonPressShowMenu(e,n,t.value,"toolbarAnnotationsTextAnnotations",une);break;case"shape-menu":this.onToolbarButtonPressShowMenu(e,n,t.value,"toolbarAnnotationsShapeAnnotations",hne);break;case"measurer-menu":this.onToolbarButtonPressShowMenu(e,n,t.value,"toolbarAnnotationsMeasurerAnnotations",gne);break}}onToolbarButtonPressShowMenu(e,t,n,a,u){this.dispatch("pressed-show-menu");let y=this.buttons.findIndex(k=>k.value===n);this.toolbar.toggleActiveButtonByIndex(y),this.annotationMenu.setAnchor({x:t.x+t.width+6,y:t.y}),this.annotationMenu.show({items:u,ariaLabel:this.ctx.localeManager.t(a),class:"ag-charts-annotations__toolbar-menu",sourceEvent:e.sourceEvent,onPress:this.onButtonPressMenuCreateAnnotation.bind(this,n)})}onButtonPressMenuCreateAnnotation(e,t){let n=this.buttons.findIndex(a=>a.value===e);this.updateButtonByIndex(n,{icon:t.icon}),this.dispatch("pressed-create-annotation",{annotation:t.value}),this.annotationMenu.hide()}onKeyDown({sourceEvent:e}){e.key==="Escape"&&this.dispatch("cancel-create-annotation")}updateButtonByIndex(e,t){var a;let n=this.buttons.at(e);n&&(n.set(He(ge(ge({},n.toJson()),t),{value:(a=t.value)!=null?a:n.value})),this.toolbar.updateButtonByIndex(e,ge({},n.toJson())))}};me([f4(roe),loe({changeValue(e){var t;(t=this.toolbar)==null||t.setHidden(!e)}})],v4.prototype,"enabled",2),me([f4(ooe)],v4.prototype,"buttons",2);var OU=(mt(),T(pt)),{BaseModuleInstance:goe,InteractionState:y2,Validate:poe,BOOLEAN:moe,ChartAxisDirection:foe,getIconClassNames:voe}=OU._ModuleSupport,ME="ag-charts-annotations__axis-button",FU=class extends goe{constructor(e,t,n,a){super(),this.ctx=e,this.axisCtx=t,this.onButtonClick=n,this.seriesRect=a,this.enabled=!0,this.snap=!1,this.padding=0;let{button:u,wrapper:y}=this.setup();this.wrapper=y,this.button=u,this.toggleVisibility(!1),this.updateButtonElement(),this.snap=!!t.scale.bandwidth;let k=this.ctx.regionManager.getRegion("series"),R=y2.Default|y2.Annotations|y2.AnnotationsSelected;e.domManager.addEventListener("focusin",({target:F})=>{let _=F instanceof HTMLElement?F:void 0;!(_&&e.domManager.contains(_,"series-area"))&&_!==this.button.getElement()&&this.hide()}),this.destroyFns.push(k.addListener("hover",F=>this.show(F),R),k.addListener("drag",F=>this.show(F),y2.Annotations|y2.AnnotationsSelected),k.addListener("leave",()=>this.hide(),R),e.highlightManager.addListener("highlight-change",F=>this.onHighlightChange(F)),e.keyNavManager.addListener("nav-hori",()=>this.onKeyPress()),e.keyNavManager.addListener("nav-vert",()=>this.onKeyPress()),e.zoomManager.addListener("zoom-pan-start",()=>this.hide()),e.zoomManager.addListener("zoom-change",()=>this.hide()),()=>this.destroyElements(),()=>this.wrapper.remove(),()=>this.button.destroy())}update(e,t){this.seriesRect=e,this.padding=t}setup(){let e=this.ctx.domManager.addChild("canvas-overlay",`${ME}-${this.axisCtx.axisId}`);e.classList.add(`${ME}-wrapper`);let t=new OU._Widget.ButtonWidget;return t.addClass(ME),t.setTabIndex(-1),t.setAriaLabel(this.ctx.localeManager.t("ariaLabelAddHorizontalLine")),e.appendChild(t.getElement()),{wrapper:e,button:t}}destroyElements(){this.ctx.domManager.removeChild("canvas-overlay",ME)}show(e){let{canvasX:t,canvasY:n}=e;if(!(this.enabled&&this.seriesRect.containsPoint(t,n))){this.hide();return}this.toggleVisibility(!0);let a=this.getButtonCoordinates({x:t,y:n});this.coords=this.getAxisCoordinates(a),this.updatePosition(a)}hide(){this.toggleVisibility(!1)}onHighlightChange(e){e.currentHighlight||this.hide()}onKeyPress(){this.snap||this.hide()}getButtonCoordinates({x:e,y:t}){let{axisCtx:{direction:n,position:a},seriesRect:u,snap:y,axisCtx:k,padding:R}=this,{clientWidth:F,clientHeight:_}=this.button,[V,K]=[u.y,u.y+u.height],[q,$]=[u.x,u.x+u.width];if(y&&(e=fE(d2(e-u.x,k),k)+u.x,t=fE(d2(t-u.y,k),k)+u.y),n===foe.X){let se=_-Math.max(0,R-5);e=e-F/2,t=a==="top"?V-_+se:K-se}else{let se=F-Math.max(0,R-9);e=a==="left"?q-F+se:$-se,t=t-_/2}return{x:e,y:t}}getAxisCoordinates(e){let{seriesRect:t}=this,{clientWidth:n,clientHeight:a}=this.button,u=e.x-t.x+n/2,y=e.y-t.y+a/2;return{x:u,y}}toggleVisibility(e){let{button:t}=this;if(t==null)return;let n=this.enabled&&e;this.toggleClass("-hidden",!n)}toggleClass(e,t){this.wrapper.classList.toggle(`${ME}-wrapper-${e}`,t)}updatePosition({x:e,y:t}){this.wrapper.style.transform=`translate(${Math.round(e)}px, ${Math.round(t)}px)`}updateButtonElement(){let{button:e}=this;e.addListener("click",()=>this.onButtonClick(this.coords)),e.addListener("drag-start",()=>{}),e.setInnerHTML(`<span class="${voe("zoom-in")} ${ME}-icon"></span>`)}};me([poe(moe)],FU.prototype,"enabled",2);var yoe=(mt(),T(pt)),boe=(mt(),T(pt)),{Color:_U,DraggablePopover:Coe,NativeWidget:y4,Vec2:Vl,createButton:A_,createCheckbox:Soe,createElement:ww,createElementId:NU,createSelect:woe,createTextArea:xoe,initRovingTabIndex:zU,getIconClassNames:Moe,getWindow:koe,mapValues:b4,setAttribute:Aoe,setAttributes:C4}=boe._ModuleSupport,BU=class h6 extends Coe{constructor(t,n){super(t,n),this.dragHandleDraggingClass="ag-charts-dialog__drag-handle--dragging",this.colorPicker=new DW(this.ctx,{detached:!0}),this.destroyFns.push(t.layoutManager.addListener("layout:complete",this.onLayoutComplete.bind(this)))}showWithChildren(t,n){let a=super.showWithChildren(t,n);return a.classList.add("ag-charts-dialog"),a.setAttribute("role","dialog"),a.addEventListener("mousedown",u=>{var y;(y=u.target.classList)!=null&&y.contains("ag-charts-dialog__color-picker-button")||this.colorPicker.hide()}),a.addEventListener("keydown",this.onKeyDown.bind(this)),koe().requestAnimationFrame(()=>this.reposition()),this.colorPicker.attachTo(this),a}updatePosition(t){var u;super.updatePosition(t);let{anchor:n,fallbackAnchor:a}=(u=this.getColorPickerAnchors())!=null?u:{};n&&this.colorPicker.setAnchor(n,a)}createTabs(t,n,a){let u=ww("div","ag-charts-dialog__tabs"),y=b4(a,()=>NU("ag-charts-dialog__tab")),k=b4(a,()=>NU("ag-charts-dialog__tab-panel"));for(let[$,te]of Object.entries(a))C4(te.panel,{id:k[$],role:"tabpanel","aria-labelledby":y[$]});let R=$=>{var te;for(let[se,de]of Object.entries(a))de.panel.classList.toggle("ag-charts-dialog__tab-panel--active",se===$),V[se].classList.toggle("ag-charts-dialog__tab-button--active",se===$),Aoe(V[se],"aria-selected",se===$),se===$&&((te=de.onShow)==null||te.call(de))},F=new y4(ww("div","ag-charts-dialog__header"));F.addListener("drag-start",$=>{let{sourceEvent:te}=$;te.target instanceof Element&&te.target.classList.contains("ag-charts-dialog__header")&&this.onDragStart($)}),F.addListener("drag-move",$=>this.onDragMove($)),F.addListener("drag-end",()=>this.onDragEnd());let _=new Eoe;this.setDragHandle(_);let V=b4(a,($,te)=>A_({label:this.ctx.localeManager.t($.label),onPress:()=>R(te)},{id:y[te],class:"ag-charts-dialog__tab-button",role:"tab","aria-controls":k[te]})),K=ww("div","ag-charts-dialog__tab-list");C4(K,{role:"tablist","aria-label":this.ctx.localeManager.t(t)}),K.append(...Object.values(V));let q=this.createHeaderCloseButton();return F.getElement().append(_.getElement(),K,q),u.append(F.getElement(),...Object.values(a).map($=>$.panel)),R(n),zU({orientation:"horizontal",buttons:Object.values(V)}),{tabs:u,initialFocus:V[n]}}createTabPanel(){return ww("div","ag-charts-dialog__tab-panel")}createInputGroupLine(){return ww("div","ag-charts-dialog__input-group-line")}createRadioGroup({label:t,options:n,value:a,onChange:u}){let y=this.createInputGroup(t);C4(y,{role:"radiogroup",tabindex:-1,"aria-label":this.ctx.localeManager.t(t)});let k="ag-charts-dialog__button--active",R=[];for(let F of n){let{icon:_,altText:V}=F,K=this.ctx.localeManager.t(V),q=A_({icon:_,altText:K,onPress:()=>{for(let $ of Array.from(y.children))$.classList.remove(k),$.ariaChecked="false";q.classList.add(k),q.ariaChecked="true",u(F.value)}},{"aria-checked":F.value===a,class:"ag-charts-dialog__button",role:"radio",title:K});F.value===a&&q.classList.add(k),y.appendChild(q),R.push(q)}return zU({orientation:"horizontal",buttons:R}),y}createSelect({altText:t,label:n,options:a,value:u,onChange:y}){let k=this.createInputGroup(n),R=this.ctx.localeManager.t(t),F=woe({value:u,options:a,onChange:y},{class:"ag-charts-dialog__select","aria-label":R,title:R});return k.append(F),k}createTextArea({placeholder:t,value:n,onChange:a}){let u=t?this.ctx.localeManager.t(t):void 0;return xoe({value:n,onChange:a},{placeholder:u})}createCheckbox({label:t,checked:n,onChange:a}){let u=`ag-charts__${t}`,y=this.createInputGroup(t,{for:u}),k=Soe({checked:n,onChange:a},{class:"ag-charts-dialog__checkbox",role:"switch",id:u});return y.append(k),y}createColorPicker({color:t,opacity:n,label:a,altText:u,onChange:y,onChangeHide:k,isMultiColor:R,hasMultiColorOption:F}){let _=this.createInputGroup(a),V=this.ctx.localeManager.t(u),K=A_({label:V,onPress:q=>{var se;let{anchor:$,fallbackAnchor:te}=(se=this.getColorPickerAnchors(K))!=null?se:{};this.colorPicker.show({anchor:$,fallbackAnchor:te,color:t,opacity:n,isMultiColor:R,hasMultiColorOption:F,sourceEvent:q,onChange:(de,pe,Ce,Se)=>{K.style.setProperty("--color",de),K.classList.toggle("ag-charts-dialog__color-picker-button--multi-color",Se),y(de,pe,Ce,Se)},onChangeHide:k})}},{"aria-label":V,tabindex:0,class:"ag-charts-dialog__color-picker-button",title:V});if(R)K.classList.toggle("ag-charts-dialog__color-picker-button--multi-color");else if(t){let q=_U.fromHexString(t),$=new _U(q.r,q.g,q.b,n);K.style.setProperty("--color",$.toHexString())}return _.append(K),this.hideFns.push(()=>{this.colorPicker.hide()}),_}createHeaderCloseButton(){return A_({icon:"close",altText:this.ctx.localeManager.t("iconAltTextClose"),onPress:()=>this.hide()},{class:"ag-charts-dialog__close-button"})}createInputGroup(t,n){let a=ww("div","ag-charts-dialog__input-group"),u=ww("label","ag-charts-dialog__input-group-label");return u.innerText=this.ctx.localeManager.t(t),n!=null&&n.for&&u.setAttribute("for",n.for),a.appendChild(u),a}onLayoutComplete(t){this.seriesRect=t.series.paddedRect,this.reposition()}onKeyDown(t){t.altKey||t.ctrlKey||t.metaKey||t.isComposing||t.key!=="Escape"||this.hide()}reposition(){let{seriesRect:t,ctx:n}=this,a=n.domManager.getBoundingClientRect(),u=this.getPopoverElement();if(!t||!u)return;let y=Vl.from(0,t.y),k=Vl.from(a.width,t.height),R=Vl.from(u),F=Vl.from(.5,1),_;if(t.width>1e3){let V=Vl.sub(Vl.add(y,Vl.multiply(k,F)),Vl.multiply(R,F));_=Vl.sub(V,Vl.from(0,h6.offset))}else{let V=Vl.sub(Vl.add(y,k),R);_=Vl.sub(V,h6.offset)}this.updatePosition(_)}getColorPickerAnchors(t){if(t&&(this.colorPickerAnchorElement=t),!this.colorPickerAnchorElement)return;let n=this.colorPickerAnchorElement.getBoundingClientRect(),a=this.ctx.domManager.getBoundingClientRect(),u=Vl.sub(Vl.from(n.x,n.y),Vl.from(a.left,a.top)),y=Vl.add(u,Vl.from(0,n.height+5)),k=Vl.sub(u,Vl.from(0,5));return{anchor:y,fallbackAnchor:k}}};BU.offset=60;var Doe=BU,Eoe=class extends y4{constructor(){super(ww("div","ag-charts-dialog__drag-handle"));let e=new y4(ww("span",Moe("drag-handle")));e.setAriaHidden(!0),this.addChild(e)}},{Listeners:Ioe,focusCursorAtEnd:Toe}=yoe._ModuleSupport,Roe=class extends Doe{constructor(e){super(e,"settings"),this.events=new Ioe,this.hideFns.push(()=>this.events.dispatch("hidden"))}addListener(e,t){return this.events.addListener(e,t)}show(e,t){let n=this.createLinearLineTab(e,t),a=this.createLinearTextTab(e,t),u="dialogHeaderLine";bw(e)?u="dialogHeaderChannel":wW(e)?u="dialogHeaderFibonacciRange":e.type==="date-range"?u="dialogHeaderDateRange":e.type==="price-range"?u="dialogHeaderPriceRange":e.type==="date-price-range"&&(u="dialogHeaderDatePriceRange");let{tabs:y,initialFocus:k}=this.createTabs("ariaLabelSettingsTabBar",t.initialSelectedTab,{line:{label:u,panel:n},text:{label:"dialogHeaderText",panel:a.panel,onShow:a.onShow}});t.initialFocus=k,this.showWithChildren([y],t).classList.add("ag-charts-dialog--annotation-settings")}createLinearLineTab(e,t){var _,V,K,q,$,te,se,de,pe,Ce,Se;let n=this.createTabPanel(),a=this.createInputGroupLine(),u=this.createInputGroupLine(),y="isMultiColor"in e,k=this.createColorPickerInput("line-color",e.getDefaultColor("line-color"),e.getDefaultOpacity("line-color"),y?e.isMultiColor:!1,y,t.onChangeLineColor,t.onChangeHideLineColor),R=this.createStrokeWidthSelect((_=e.strokeWidth)!=null?_:2,t.onChangeLineStyleWidth),F=this.createLineStyleRadioGroup((V=e.lineStyle)!=null?V:"solid",t.onChangeLineStyleType);if(a.append(k),"background"in e){let ve=this.createColorPickerInput("fill-color",e.getDefaultColor("fill-color"),e.getDefaultOpacity("fill-color"),!1,!1,t.onChangeFillColor,t.onChangeHideFillColor);a.append(ve),u.append(R)}else"showFill"in e?(a.append(this.createCheckbox({label:"dialogInputShowFill",checked:(K=e.showFill)!=null?K:!0,onChange:ve=>t.onChangeLine({showFill:ve})})),u.append(R)):a.append(R);return u.append(F),n.append(a,u),"bands"in e&&n.append(this.createFibonacciRatioSelect((q=e.bands)!=null?q:10,ve=>t.onChangeLine({bands:ve}))),"extendStart"in e&&"extendEnd"in e&&n.append(this.createCheckbox({label:bw(e)?"dialogInputExtendChannelStart":"dialogInputExtendLineStart",checked:($=e.extendStart)!=null?$:!1,onChange:ve=>t.onChangeLine({extendStart:ve})}),this.createCheckbox({label:bw(e)?"dialogInputExtendChannelEnd":"dialogInputExtendLineEnd",checked:(te=e.extendEnd)!=null?te:!1,onChange:ve=>t.onChangeLine({extendEnd:ve})})),"extendAbove"in e&&"extendBelow"in e&&n.append(this.createCheckbox({label:"dialogInputExtendAbove",checked:(se=e.extendAbove)!=null?se:!1,onChange:ve=>t.onChangeLine({extendAbove:ve})}),this.createCheckbox({label:"dialogInputExtendBelow",checked:(de=e.extendBelow)!=null?de:!1,onChange:ve=>t.onChangeLine({extendBelow:ve})})),"extendLeft"in e&&"extendRight"in e&&n.append(this.createCheckbox({label:"dialogInputExtendLeft",checked:(pe=e.extendLeft)!=null?pe:!1,onChange:ve=>t.onChangeLine({extendLeft:ve})}),this.createCheckbox({label:"dialogInputExtendRight",checked:(Ce=e.extendRight)!=null?Ce:!1,onChange:ve=>t.onChangeLine({extendRight:ve})})),"reverse"in e&&"showFill"in e&&n.append(this.createCheckbox({label:"dialogInputReverse",checked:(Se=e.reverse)!=null?Se:!1,onChange:ve=>t.onChangeLine({reverse:ve})})),n}createLinearTextTab(e,t){var K;let n=this.createTabPanel(),a=this.createTextArea({placeholder:"inputTextareaPlaceholder",value:e.text.label,onChange:q=>t.onChangeText({label:q})}),u=this.createInputGroupLine(),y=this.createFontSizeSelect(e.text.fontSize,t.onChangeTextFontSize),k=this.createColorPickerInput("text-color",e.text.color,1,!1,!1,t.onChangeTextColor,t.onChangeHideTextColor);u.append(y,k);let R=this.createInputGroupLine(),F=e.text.position==="inside"?"center":e.text.position,_=this.createPositionRadioGroup(F!=null?F:"top",q=>t.onChangeText({position:q})),V=this.createAlignmentRadioGroup((K=e.text.alignment)!=null?K:"center",q=>t.onChangeText({alignment:q}));return R.append(_,V),n.append(a,u,R),{panel:n,onShow:()=>Toe(a)}}createColorPickerInput(e,t,n,a,u,y,k){let R=e==="fill-color"?"dialogInputFillColorPicker":"dialogInputColorPicker",F=e==="fill-color"?"dialogInputFillColorPickerAltText":"dialogInputColorPickerAltText";return this.createColorPicker({label:R,altText:F,color:t,opacity:n,isMultiColor:a,hasMultiColorOption:u,onChange:y,onChangeHide:k})}createStrokeWidthSelect(e,t){return this.createSelect({label:"dialogInputStrokeWidth",altText:"dialogInputStrokeWidthAltText",options:EW.map(({label:n,value:a})=>({label:n,value:`${a}`})),value:String(e),onChange:n=>t(Number(n))})}createFibonacciRatioSelect(e,t){return this.createSelect({label:"dialogInputFibonacciBands",altText:"dialogInputFibonacciBandsAltText",options:dne.map(({label:n,value:a})=>({label:n,value:`${a}`})),value:String(e),onChange:n=>t(Number(n))})}createLineStyleRadioGroup(e,t){return this.createRadioGroup({label:"dialogInputLineStyle",options:[{icon:"line-style-solid",altText:"iconAltTextLineStyleSolid",value:"solid"},{icon:"line-style-dashed",altText:"iconAltTextLineStyleDashed",value:"dashed"},{icon:"line-style-dotted",altText:"iconAltTextLineStyleDotted",value:"dotted"}],value:e,onChange:t})}createFontSizeSelect(e,t){return this.createSelect({label:"dialogInputFontSize",altText:"dialogInputFontSizeAltText",options:IW.map(({label:n,value:a})=>({label:n,value:String(a)})),value:String(e),onChange:n=>t(Number(n))})}createPositionRadioGroup(e,t){return this.createRadioGroup({label:"dialogInputPosition",options:[{icon:"position-top",altText:"iconAltTextPositionTop",value:"top"},{icon:"position-center",altText:"iconAltTextPositionCenter",value:"center"},{icon:"position-bottom",altText:"iconAltTextPositionBottom",value:"bottom"}],value:e,onChange:t})}createAlignmentRadioGroup(e,t){return this.createRadioGroup({label:"dialogInputAlign",options:[{icon:"align-left",altText:"iconAltTextAlignLeft",value:"left"},{icon:"align-center",altText:"iconAltTextAlignCenter",value:"center"},{icon:"align-right",altText:"iconAltTextAlignRight",value:"right"}],value:e,onChange:t})}};function S4(e){return e.gridPadding+e.seriesAreaPadding+e.tickSize+e.label.spacing}function Poe(e,t,n){for(let{update:a}of Object.values(Qp))a(e,t,n)}var{BOOLEAN:Loe,OBJECT:w4,ChartUpdateType:Ooe,InteractionState:bC,ObserveChanges:Foe,PropertiesArray:_oe,Validate:D_,ChartAxisDirection:Noe,Vec2:kE,isValidDate:x4,keyProperty:zoe,valueProperty:Boe,Selection:Goe,BBox:Voe}=VF._ModuleSupport,b2=class VZ extends VF._ModuleSupport.BaseModuleInstance{constructor(t){super(),this.ctx=t,this.enabled=!0,this.toolbar=new v4(this.ctx),this.optionsToolbar=new KB(this.ctx,()=>{let n=this.state.getActive();if(n!=null)return xE(this.annotationData.at(n))}),this.axesButtons=new bB,this.data=void 0,this.xKey=void 0,this.volumeKey=void 0,this.annotationData=new _oe(VZ.createAnnotationDatum),this.defaults=new one,this.container=new VF._ModuleSupport.Group({name:"static-annotations"}),this.annotations=new Goe(this.container,this.createAnnotationScene.bind(this)),this.settingsDialog=new Roe(this.ctx),this.textInput=new cte(this.ctx),this.postUpdateFns=[],this.state=this.setupStateMachine(),this.setupListeners(),this.setupDOM(),this.ctx.historyManager.addMementoOriginator(t.annotationManager),this.ctx.historyManager.addMementoOriginator(this.defaults),this.textInput.setKeyDownHandler(this.onTextInput.bind(this))}setupStateMachine(){let{ctx:t}=this;return new k_({resetToIdle:()=>{t.cursorManager.updateCursor("annotations"),t.interactionManager.popState(bC.Annotations),t.tooltipManager.unsuppressTooltip("annotations"),this.hideOverlays(),this.optionsToolbar.hide(),this.deleteEphemeralAnnotations(),this.update()},hoverAtCoords:(n,a)=>{var y;let u;return this.annotations.each((k,R,F)=>{let _=k.containsPoint(n.x,n.y);_&&(u!=null||(u=F)),k.toggleHovered(_||a===F)}),this.ctx.cursorManager.updateCursor("annotations",u==null||(y=this.annotations.at(u))==null?void 0:y.getCursor()),u},getNodeAtCoords:(n,a)=>{let u=this.annotations.at(a);if(u)return u.getNodeAtCoords(n.x,n.y)},translate:(n,a)=>{let u=this.annotations.at(n),y=xE(this.annotationData.at(n));if(!(!u||!y))return this.translateNode(u,y,a)},copy:n=>{let a=this.annotations.at(n),u=xE(this.annotationData.at(n));if(!(!a||!u))return this.createAnnotationDatumCopy(a,u)},paste:n=>{this.createAnnotation(n.type,n,!1),this.postUpdateFns.push(()=>{this.state.transitionAsync("selectLast"),this.state.transitionAsync("copy")})},select:(n,a)=>{let{annotations:u,optionsToolbar:y,toolbar:k,ctx:{interactionManager:R,tooltipManager:F}}=this;this.hideOverlays(),k.clearActiveButton(),k.resetButtonIcons();let _=n!=null?u.at(n):null,V=a!=null?u.at(a):null;V===_&&_!=null||(V==null||V.toggleActive(!1),y.hide(),_?(R.pushState(bC.AnnotationsSelected),_.toggleActive(!0),F.suppressTooltip("annotations"),y.updateButtons(this.annotationData.at(n)),this.postUpdateFns.push(()=>{y.show(),y.setAnchorScene(_)})):(R.popState(bC.AnnotationsSelected),R.popState(bC.Annotations),F.unsuppressTooltip("annotations")),this.deleteEphemeralAnnotations(),this.update())},selectLast:()=>(this.ctx.interactionManager.pushState(bC.AnnotationsSelected),this.annotationData.length-1),startInteracting:()=>{this.ctx.interactionManager.pushState(bC.Annotations)},stopInteracting:()=>{this.ctx.interactionManager.popState(bC.Annotations)},create:(n,a)=>{this.createAnnotation(n,a)},delete:n=>{this.annotationData.splice(n,1)},deleteAll:()=>{this.annotationData.splice(0,this.annotationData.length)},validatePoint:n=>{let a=this.getAnnotationContext();return a?sy(a,n):!0},getAnnotationType:n=>vte(this.annotationData[n].type),datum:n=>this.annotationData.at(n),node:n=>this.annotations.at(n),recordAction:n=>{this.recordActionAfterNextUpdate(n)},update:()=>{this.postUpdateFns.push(()=>{let n=this.state.getActive(),a=n!=null?this.annotations.at(n):null;a!=null&&this.optionsToolbar.setAnchorScene(a)}),this.update()},showTextInput:n=>{let a=xE(this.annotationData.at(n));if(!this.annotations.at(n)||!a||!("getTextInputCoords"in a)||!("getTextPosition"in a))return;let y={color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight,placeholderColor:a.getPlaceholderColor()},k=this.getAnnotationContext(),R=_=>kE.add(a.getTextInputCoords(k,_),kE.required(this.seriesRect)),F=()=>a.getTextPosition();this.textInput.show({styles:y,layout:{getTextInputCoords:R,getTextPosition:F,alignment:a.alignment,textAlign:a.textAlign,width:a.width},text:a.text,placeholderText:a.placeholderText,onChange:(_,V)=>{this.state.transition("updateTextInputBBox",V)}}),this.ctx.cursorManager.updateCursor("annotations")},hideTextInput:()=>{this.textInput.hide()},updateTextInputColor:n=>{this.textInput.updateColor(n)},updateTextInputFontSize:n=>{let a=this.textInput.updateFontSize(n);this.state.transition("updateTextInputBBox",a)},updateTextInputBBox:n=>{this.state.transition("updateTextInputBBox",n)},showAnnotationOptions:n=>{let a=this.annotations.at(n);!a||eA(this.annotationData.at(n))||(this.optionsToolbar.updateButtons(this.annotationData.at(n)),this.optionsToolbar.show(),this.optionsToolbar.setAnchorScene(a))},showAnnotationSettings:(n,a,u="line")=>{let y=this.annotationData.at(n);if(!t_(y)&&!bw(y)&&!g2(y)||eA(y))return;let k=_=>(V,K,q,$)=>{this.setColorAndDefault(y.type,_,V,K,q,$),this.optionsToolbar.updateColorPickerColor(_,K,q,$)},R=_=>()=>{this.recordActionAfterNextUpdate(`Change ${y.type} ${_} to ${y.getDefaultColor(_)}`,["annotations","defaults"]),this.update()},F={initialSelectedTab:u,ariaLabel:this.ctx.localeManager.t("ariaLabelAnnotationSettingsDialog"),sourceEvent:a,onChangeLine:_=>{this.state.transition("lineProps",_),_.bands&&this.defaults.setDefaultFibonacciBands(y.type,_.bands)},onChangeText:_=>{this.state.transition("lineText",_),_.alignment&&this.defaults.setDefaultLineTextAlignment(y.type,_.alignment),_.position&&this.defaults.setDefaultLineTextPosition(y.type,_.position),this.recordActionAfterNextUpdate(`Change ${y.type} text ${Object.entries(_).map(([V,K])=>`${V} to ${K}`).join(", ")}`)},onChangeFillColor:k("fill-color"),onChangeHideFillColor:R("fill-color"),onChangeLineColor:k("line-color"),onChangeHideLineColor:R("line-color"),onChangeLineStyleType:_=>{var V;this.setLineStyleTypeAndDefault(y.type,_),this.optionsToolbar.updateLineStyleType((V=p2.find(K=>K.value===_))!=null?V:p2[0])},onChangeLineStyleWidth:_=>{this.setLineStyleWidthAndDefault(y.type,_),this.optionsToolbar.updateStrokeWidth({strokeWidth:_,value:_,label:String(_)})},onChangeTextColor:k("text-color"),onChangeHideTextColor:R("text-color"),onChangeTextFontSize:_=>{this.setFontSizeAndDefault(y.type,_)}};this.settingsDialog.show(y,F)}})}setupListeners(){let{ctx:t,optionsToolbar:n,settingsDialog:a,toolbar:u}=this,{All:y,Default:k,Annotations:R,AnnotationsSelected:F,ZoomDrag:_}=bC,V=t.regionManager.getRegion("series"),K=t.regionManager.getRegion("root"),q=k|_|R|F;this.destroyFns.push(V.addListener("hover",this.onHover.bind(this),y),V.addListener("click",this.onClick.bind(this),y),V.addListener("dblclick",this.onDoubleClick.bind(this),y),V.addListener("drag-start",this.onDragStart.bind(this),q),V.addListener("drag",this.onDrag.bind(this),q),V.addListener("drag-end",this.onDragEnd.bind(this),y),t.interactionManager.addListener("keydown",this.onKeyDown.bind(this),y),t.interactionManager.addListener("keyup",this.onKeyUp.bind(this),y),K.addListener("click",this.onCancel.bind(this),y),t.annotationManager.addListener("restore-annotations",this.onRestoreAnnotations.bind(this)),t.layoutManager.addListener("layout:complete",this.onLayoutComplete.bind(this)),t.updateService.addListener("pre-scene-render",this.onPreRender.bind(this)),t.zoomManager.addListener("zoom-change",()=>this.onResize()),t.domManager.addListener("resize",()=>this.onResize()),u.addListener("cancel-create-annotation",()=>{this.cancel(),this.reset(),this.update()}),u.addListener("pressed-create-annotation",({annotation:$})=>{this.cancel(),this.ctx.interactionManager.pushState(bC.Annotations),this.state.transition($),this.update()}),u.addListener("pressed-clear",()=>{this.clear()}),u.addListener("pressed-show-menu",()=>{this.cancel(),this.reset()}),u.addListener("pressed-unrelated",()=>{this.reset()}),n.addListener("pressed-delete",()=>{this.cancel(),this.delete(),this.reset()}),n.addListener("pressed-settings",({sourceEvent:$})=>{this.state.transition("toolbarPressSettings",$)}),n.addListener("pressed-lock",()=>{this.update()}),n.addListener("hid-overlays",()=>{this.settingsDialog.hide()}),n.addListener("saved-color",({type:$,colorPickerType:te,color:se})=>{this.recordActionAfterNextUpdate(`Change ${$} ${te} to ${se}`,["annotations","defaults"])}),n.addListener("updated-color",({type:$,colorPickerType:te,colorOpacity:se,color:de,opacity:pe,isMultiColor:Ce})=>{this.setColorAndDefault($,te,se,de,pe,Ce)}),n.addListener("updated-font-size",({type:$,fontSize:te})=>{this.setFontSizeAndDefault($,te)}),n.addListener("updated-line-style",({type:$,lineStyleType:te})=>{this.setLineStyleTypeAndDefault($,te)}),n.addListener("updated-line-width",({type:$,strokeWidth:te})=>{this.setLineStyleWidthAndDefault($,te)}),a.addListener("hidden",()=>{this.optionsToolbar.clearActiveButton()}))}setupDOM(){let{ctx:t,toolbar:n}=this;this.destroyFns.push(t.annotationManager.attachNode(this.container),()=>t.domManager.removeStyles(ME),()=>n.destroy())}async processData(t){if(!this.enabled||this.data==null||this.xKey==null||this.volumeKey==null)return;let n=[zoe(this.xKey,void 0,{id:"date"}),Boe(this.volumeKey,"number",{id:"volume"})],{dataModel:a,processedData:u}=await t.request("annotations",this.data,{props:n});this.dataModel=a,this.processedData=u}createAnnotationScene(t){if(t.type in Qp)return new Qp[t.type].scene;throw new Error(`AG Charts - Cannot create annotation scene of type [${t.type}], expected one of [${Object.keys(Qp)}], ignoring.`)}static createAnnotationDatum(t){if(t.type in Qp)return new Qp[t.type].datum().set(t);throw new Error(`AG Charts - Cannot create annotation datum of unknown type [${t.type}], expected one of [${Object.keys(Qp)}], ignoring.`)}createAnnotation(t,n,a=!0){if(this.annotationData.push(n),a){let u=this.ctx.annotationManager.getAnnotationTypeStyles(t);u&&n.set(u),this.defaults.applyDefaults(n)}this.injectDatumDependencies(n),this.update()}injectDatumDependencies(t){"setLocaleManager"in t&&t.setLocaleManager(this.ctx.localeManager),"getVolume"in t&&(t.getVolume=this.getDatumRangeVolume.bind(this))}getDatumRangeVolume(t,n){let{dataModel:a,processedData:u}=this;if(!x4(t)||!x4(n)||!a||!u||this.volumeKey==null)return;t>n&&([t,n]=[n,t]);let y=a.resolveKeysById({id:"annotations"},"date",u),k=a.resolveColumnById({id:"annotations"},"volume",u);return u.rawData.reduce((R,F,_)=>{let V=y[_];return x4(V)&&V>=t&&V<=n?R+k[_]:R},0)}translateNode(t,n,a){let u=this.getAnnotationConfig(n),y=this.getAnnotationContext();y&&u.translate(t,n,a,y)}createAnnotationDatumCopy(t,n){let a=this.getAnnotationConfig(n),u=new a.datum;u.set(n.toJson());let y=this.getAnnotationContext();if(y)return a.copy(t,n,u,y)}getAnnotationConfig(t){if(t.type in Qp)return Qp[t.type];throw new Error(`AG Charts - Cannot get annotation config of unknown type [${t.type}], expected one of [${Object.keys(Qp)}], ignoring.`)}onRestoreAnnotations(t){this.enabled&&(this.clear(),this.annotationData.set(t.annotations),this.update())}onLayoutComplete(t){var a,u,y;let n=t.series.paddedRect;this.seriesRect=n;for(let k of(a=t.axes)!=null?a:[])k.direction===VF._ModuleSupport.ChartAxisDirection.X?this.xAxis=this.getAxis(k,n,(u=this.xAxis)==null?void 0:u.button):this.yAxis=this.getAxis(k,n,(y=this.yAxis)==null?void 0:y.button)}onPreRender(){this.updateAnnotations(),this.state.transition("render")}getAxis(t,n,a){let u=this.ctx.axisManager.getAxisContext(t.direction)[0],{position:y="bottom",direction:k}=u,R=t.gridPadding+t.seriesAreaPadding,F=new Voe(0,0,n.width,n.height).grow(R,y),_=u.direction===Noe.X?"vertical":"horizontal",{axesButtons:V}=this;if(this.enabled&&V.enabled&&(V.axes==="xy"||V.axes===k)){a!=null||(a=new FU(this.ctx,u,$=>this.onAxisButtonClick($,_),n));let q=S4(t);a.update(n,q)}else a==null||a.destroy(),a=void 0;return{layout:t,context:u,bounds:F,button:a}}recordActionAfterNextUpdate(t,n=["annotations"]){let{defaults:a,ctx:{annotationManager:u,historyManager:y}}=this,k=n.map(R=>R==="defaults"?a:u);this.postUpdateFns.push(()=>{y.record(t,...k)})}setColorAndDefault(t,n,a,u,y,k){this.state.transition("color",{colorPickerType:n,colorOpacity:a,color:u,opacity:y,isMultiColor:k}),this.defaults.setDefaultColor(t,n,a,u,y,k)}setFontSizeAndDefault(t,n){this.state.transition("fontSize",n),this.defaults.setDefaultFontSize(t,n),this.recordActionAfterNextUpdate(`Change ${t} font size to ${n}`,["annotations","defaults"])}setLineStyleTypeAndDefault(t,n){this.state.transition("lineStyle",{type:n}),this.defaults.setDefaultLineStyleType(t,n),this.recordActionAfterNextUpdate(`Change ${t} line style to ${n}`,["annotations","defaults"])}setLineStyleWidthAndDefault(t,n){this.state.transition("lineStyle",{strokeWidth:n}),this.defaults.setDefaultLineStyleWidth(t,n),this.recordActionAfterNextUpdate(`Change ${t} stroke width to ${n}`,["annotations","defaults"])}updateAnnotations(){let{annotationData:t,annotations:n,seriesRect:a,ctx:{annotationManager:u}}=this,y=this.getAnnotationContext();!a||!y||(u.updateData(t.toJson().filter(k=>!eA(k))),this.toolbar.toggleClearButtonEnabled(t.length>0),n.update(t!=null?t:[],void 0,k=>k.id).each((k,R)=>{if(!this.validateDatum(R)){k.visible=!1;return}this.injectDatumDependencies(R),Poe(k,R,y)}),this.postUpdateFns.forEach(k=>k()),this.postUpdateFns=[])}validateDatum(t){let n=this.getAnnotationContext();return n?t.isValidWithContext(n,`Annotation [${t.type}] `):!0}getAnnotationContext(){let{seriesRect:t,xAxis:n,yAxis:a}=this;if(t&&n&&a)return{seriesRect:t,xAxis:He(ge({},n.context),{bounds:n.bounds,labelPadding:S4(n.layout)}),yAxis:He(ge({},a.context),{bounds:a.bounds,labelPadding:S4(n.layout)})}}onHover(t){let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let u=t.sourceEvent.shiftKey,y=kE.from(t),k=Qr(y,a);n.transition("hover",{offset:y,point:k,shiftKey:u,context:a})}onClick(t){let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let u=t.sourceEvent.shiftKey,y=Qr(kE.from(t),a),k=this.textInput.getValue(),R=this.textInput.getBBox();n.transition("click",{point:y,shiftKey:u,textInputValue:k,bbox:R})}onDoubleClick(t){let{state:n}=this;if(!this.getAnnotationContext())return;let u=kE.from(t);n.transition("dblclick",{offset:u})}onAxisButtonClick(t,n){this.cancel(),this.reset();let a=this.getAnnotationContext();if(!this.annotationData||!a)return;let{state:u,ctx:{interactionManager:y}}=this;y.pushState(bC.Annotations);let k=n==="horizontal";if(u.transition(k?"horizontal-line":"vertical-line"),this.optionsToolbar.hide(),!t)return;let R=Qr(t,a);sy(a,R)&&(u.transition("click",{point:R,shiftKey:!1}),this.update())}onResize(){let t=this.textInput.getValue(),n=this.textInput.getBBox();this.state.transition("resize",{textInputValue:t,bbox:n})}onDragStart(t){let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let u=kE.from(t),y=Qr(u,a),k=this.textInput.getValue(),R=this.textInput.getBBox();n.transition("dragStart",{context:a,offset:u,point:y,textInputValue:k,bbox:R})}onDrag(t){let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let u=kE.from(t),y=Qr(u,a),k=t.sourceEvent.shiftKey,R=this.textInput.getValue(),F=this.textInput.getBBox();n.transition("drag",{context:a,offset:u,point:y,shiftKey:k,textInputValue:R,bbox:F})}onDragEnd(){this.state.transition("dragEnd")}onCancel(){this.cancel(),this.reset()}onDelete(){this.textInput.isVisible()||(this.cancel(),this.delete(),this.reset(),this.update())}onTextInput(t){let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let{key:u,shiftKey:y}=t,k=this.textInput.getValue(),R=this.textInput.getBBox();n.transition("textInput",{key:u,shiftKey:y,textInputValue:k,bbox:R,context:a})}onKeyDown(t){var $,te;let{state:n}=this,a=this.getAnnotationContext();if(!a)return;let{sourceEvent:u}=t,{shiftKey:y,ctrlKey:k,metaKey:R}=u,F=k||R,_=k||y;this.state.transition("keyDown",{shiftKey:y,context:a});let V={x:0,y:0},K=Math.max(($=a==null?void 0:a.xAxis.scale.bandwidth)!=null?$:0,_?10:1),q=Math.max((te=a==null?void 0:a.yAxis.scale.bandwidth)!=null?te:0,_?10:1);switch(u.key){case"ArrowDown":V.y=q;break;case"ArrowUp":V.y=-q;break;case"ArrowLeft":V.x=-K;break;case"ArrowRight":V.x=K;break;case"Escape":this.onCancel();return;case"Backspace":case"Delete":this.onDelete();return}if((V.x||V.y)&&(n.transition("translate",{translation:V}),u.stopPropagation(),u.preventDefault()),!!F)switch(u.key){case"c":n.transition("copy");return;case"x":n.transition("cut"),this.recordActionAfterNextUpdate("Cut annotation");return;case"v":n.transition("paste"),this.recordActionAfterNextUpdate("Paste annotation");return}}onKeyUp(t){let{shiftKey:n}=t.sourceEvent,a=this.getAnnotationContext();a&&(this.state.transition("keyUp",{shiftKey:n,context:a}),this.state.transition("translateEnd"))}clear(){this.cancel(),this.deleteAll(),this.reset()}reset(){this.state.transition("reset")}cancel(){this.state.transition("cancel")}delete(){this.state.transition("delete")}deleteAll(){this.state.transition("deleteAll")}deleteEphemeralAnnotations(){for(let[t,n]of this.annotationData.entries())eA(n)&&this.annotationData.splice(t,1)}hideOverlays(){this.settingsDialog.hide(),this.toolbar.hideOverlays(),this.optionsToolbar.hideOverlays()}update(t=Ooe.PRE_SCENE_RENDER){this.ctx.updateService.update(t,{skipAnimations:!0})}};me([Foe((e,t,n)=>{var y;let{ctx:{annotationManager:a,stateManager:u}}=e;t!==n&&((y=e.toolbar)==null||y.toggleVisibility(!!t),n===!1&&t===!0?u.restoreState(a):t===!1&&e.clear())}),D_(Loe)],b2.prototype,"enabled",2),me([D_(w4)],b2.prototype,"toolbar",2),me([D_(w4)],b2.prototype,"optionsToolbar",2),me([D_(w4)],b2.prototype,"axesButtons",2);var joe=b2,Hoe=(mt(),T(pt)),{ThemeSymbols:Va}=Hoe._ModuleSupport,dy={stroke:Va.DEFAULT_ANNOTATION_COLOR,strokeOpacity:1,strokeWidth:2},Fu={fill:Va.DEFAULT_ANNOTATION_HANDLE_FILL,strokeOpacity:1,strokeWidth:2},C2={color:Va.DEFAULT_TEXT_ANNOTATION_COLOR,fontSize:14,fontFamily:Va.DEFAULT_FONT_FAMILY},GU=He(ge({},C2),{enabled:!0,color:"white",fill:Va.DEFAULT_ANNOTATION_COLOR,fontSize:12}),E_=He(ge({},C2),{color:Va.DEFAULT_TEXT_ANNOTATION_COLOR,textAlign:"left"}),hA=He(ge({},C2),{position:"top",alignment:"center",color:Va.DEFAULT_ANNOTATION_COLOR}),M4=He(ge({},C2),{fontSize:12,color:Va.DEFAULT_ANNOTATION_STATISTICS_COLOR,fill:Va.DEFAULT_ANNOTATION_STATISTICS_FILL,stroke:Va.DEFAULT_ANNOTATION_STATISTICS_STROKE,strokeWidth:1,divider:{stroke:Va.DEFAULT_ANNOTATION_STATISTICS_DIVIDER_STROKE,strokeWidth:1,strokeOpacity:.5}}),k4=He(ge({},dy),{background:{fill:Va.DEFAULT_ANNOTATION_BACKGROUND_FILL,fillOpacity:.2},handle:ge({},Fu),text:ge({},hA),statistics:ge({},M4)}),Woe={buttons:[{icon:"trend-line-drawing",tooltip:"toolbarAnnotationsLineAnnotations",value:"line-menu"},{icon:"fibonacci-retracement-drawing",tooltip:"toolbarAnnotationsFibonacciAnnotations",value:"fibonacci-menu"},{icon:"text-annotation",tooltip:"toolbarAnnotationsTextAnnotations",value:"text-menu"},{icon:"arrow-drawing",tooltip:"toolbarAnnotationsShapeAnnotations",value:"shape-menu"},{icon:"measurer-drawing",tooltip:"toolbarAnnotationsMeasurerAnnotations",value:"measurer-menu"},{icon:"delete",tooltip:"toolbarAnnotationsClearAll",value:"clear"}]},Uoe={buttons:[{icon:"text-annotation",tooltip:"toolbarAnnotationsTextColor",value:"text-color"},{icon:"line-color",tooltip:"toolbarAnnotationsLineColor",value:"line-color"},{icon:"fill-color",tooltip:"toolbarAnnotationsFillColor",value:"fill-color"},{tooltip:"toolbarAnnotationsTextSize",value:"text-size"},{tooltip:"toolbarAnnotationsLineStrokeWidth",value:"line-stroke-width"},{icon:"line-style-solid",tooltip:"toolbarAnnotationsLineStyle",value:"line-style-type"},{icon:"settings",tooltip:"toolbarAnnotationsSettings",value:"settings"},{icon:"unlocked",tooltip:"toolbarAnnotationsLock",ariaLabel:"toolbarAnnotationsLock",checkedOverrides:{icon:"locked",tooltip:"toolbarAnnotationsUnlock"},value:"lock"},{icon:"delete",tooltip:"toolbarAnnotationsDelete",value:"delete"}]},Koe={enabled:!1,line:He(ge({},dy),{handle:ge({},Fu),text:ge({},hA)}),"horizontal-line":He(ge({},dy),{handle:ge({},Fu),axisLabel:ge({},GU),text:ge({},hA)}),"vertical-line":He(ge({},dy),{handle:ge({},Fu),axisLabel:ge({},GU),text:ge({},hA)}),"disjoint-channel":He(ge({},dy),{background:{fill:Va.DEFAULT_ANNOTATION_BACKGROUND_FILL,fillOpacity:.2},handle:ge({},Fu),text:ge({},hA)}),"parallel-channel":He(ge({},dy),{middle:{lineDash:[6,5],strokeWidth:1},background:{fill:Va.DEFAULT_ANNOTATION_BACKGROUND_FILL,fillOpacity:.2},handle:ge({},Fu),text:ge({},hA)}),"fibonacci-retracement":He(ge({},dy),{strokes:Va.DEFAULT_FIBONACCI_STROKES,rangeStroke:Va.DEFAULT_ANNOTATION_COLOR,handle:ge({},Fu),text:He(ge({},hA),{position:"center"}),label:He(ge({},C2),{color:void 0,fontSize:10})}),callout:He(ge(ge({},dy),E_),{color:Va.DEFAULT_LABEL_COLOUR,handle:ge({},Fu),fill:Va.DEFAULT_ANNOTATION_BACKGROUND_FILL,fillOpacity:.2}),comment:He(ge({},E_),{color:"white",fontWeight:700,handle:ge({},Fu),fill:Va.DEFAULT_ANNOTATION_COLOR}),note:He(ge({},E_),{color:Va.DEFAULT_TEXTBOX_COLOR,fill:Va.DEFAULT_ANNOTATION_COLOR,stroke:Va.DEFAULT_ANNOTATION_HANDLE_FILL,strokeWidth:1,strokeOpacity:1,handle:ge({},Fu),background:{fill:Va.DEFAULT_TEXTBOX_FILL,stroke:Va.DEFAULT_TEXTBOX_STROKE,strokeWidth:1}}),text:He(ge({},E_),{handle:ge({},Fu)}),arrow:He(ge({},dy),{handle:ge({},Fu),text:ge({},hA)}),"arrow-up":{fill:Va.PALETTE_UP_FILL,handle:He(ge({},Fu),{stroke:Va.DEFAULT_ANNOTATION_COLOR})},"arrow-down":{fill:Va.PALETTE_DOWN_FILL,handle:He(ge({},Fu),{stroke:Va.DEFAULT_ANNOTATION_COLOR})},"date-range":ge({},k4),"price-range":ge({},k4),"date-price-range":ge({},k4),"quick-date-price-range":{up:He(ge({},dy),{fill:Va.DEFAULT_ANNOTATION_BACKGROUND_FILL,fillOpacity:.2,handle:ge({},Fu),statistics:He(ge({},M4),{color:"#fff",fill:Va.DEFAULT_ANNOTATION_BACKGROUND_FILL,strokeWidth:0,divider:{stroke:"#fff",strokeWidth:1,strokeOpacity:.5}})}),down:He(ge({},dy),{stroke:Va.DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE,fill:Va.DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL,fillOpacity:.2,handle:He(ge({},Fu),{stroke:Va.DEFAULT_ANNOTATION_STATISTICS_DOWN_STROKE}),statistics:He(ge({},M4),{color:"#fff",fill:Va.DEFAULT_ANNOTATION_STATISTICS_DOWN_FILL,strokeWidth:0,divider:{stroke:"#fff",strokeWidth:1,strokeOpacity:.5}})})},axesButtons:{enabled:!0},toolbar:Woe,optionsToolbar:Uoe},qoe={type:"root",optionsKey:"annotations",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new joe(e),themeTemplate:{annotations:Koe}},A4=(mt(),T(pt)),VU=(mt(),T(pt)),{BaseProperties:Yoe,ObserveChanges:Xoe,ProxyProperty:Zoe,Validate:AE,NUMBER:I_,POSITIVE_NUMBER:jU,RATIO:$oe,createElement:Qoe,calculatePlacement:Joe}=VU._ModuleSupport,CC=class extends Yoe{constructor(){super(),this.opacity=1,this.loadedSynchronously=!0,this.containerWidth=0,this.containerHeight=0,this.onLoad=void 0,this.onImageLoad=()=>{var e;this.loadedSynchronously||(this.node.visible=!1,this.performLayout(this.containerWidth,this.containerHeight),(e=this.onLoad)==null||e.call(this))},this.imageElement=Qoe("img"),this.imageElement.onload=this.onImageLoad,this.node=new VU._ModuleSupport.Image(this.imageElement)}get complete(){return this.imageElement.width>0&&this.imageElement.height>0}performLayout(e,t){this.containerWidth=e,this.containerHeight=t;let n={x:0,y:0,width:e,height:t},a=Joe(this.imageElement.width,this.imageElement.height,n,this);return this.node.setProperties(this.complete?ge({visible:!0,opacity:this.opacity},a):{visible:!1}),a}};me([AE(I_,{optional:!0})],CC.prototype,"top",2),me([AE(I_,{optional:!0})],CC.prototype,"right",2),me([AE(I_,{optional:!0})],CC.prototype,"bottom",2),me([AE(I_,{optional:!0})],CC.prototype,"left",2),me([AE(jU,{optional:!0})],CC.prototype,"width",2),me([AE(jU,{optional:!0})],CC.prototype,"height",2),me([AE($oe)],CC.prototype,"opacity",2),me([Zoe("imageElement.src"),Xoe(e=>e.loadedSynchronously=e.complete)],CC.prototype,"url",2);var{ActionOnSet:ere,OBJECT:tre,Validate:ire}=A4._ModuleSupport,HU=class extends A4._ModuleSupport.Background{constructor(){super(...arguments),this.image=new CC}onLayoutComplete(e){if(super.onLayoutComplete(e),this.image){let{width:t,height:n}=e.chart;this.image.performLayout(t,n)}}onImageLoad(){this.ctx.updateService.update(A4._ModuleSupport.ChartUpdateType.SCENE_RENDER)}};me([ire(tre,{optional:!0}),ere({newValue(e){this.node.appendChild(e.node),e.onLoad=()=>this.onImageLoad()},oldValue(e){this.node.removeChild(e.node),e.onLoad=void 0}})],HU.prototype,"image",2);var nre={type:"root",optionsKey:"background",packageType:"enterprise",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new HU(e)},bxe=(mt(),T(pt)),WU=(mt(),T(pt)),{BOOLEAN:are,ActionOnSet:ore,LayoutElement:rre,Logger:sre,Menu:lre,Validate:cre}=WU._ModuleSupport,D4=[{label:"toolbarSeriesTypeOHLC",icon:"ohlc-series",value:"ohlc"},{label:"toolbarSeriesTypeCandles",icon:"candlestick-series",value:"candlestick"},{label:"toolbarSeriesTypeHollowCandles",icon:"hollow-candlestick-series",value:"hollow-candlestick"},{label:"toolbarSeriesTypeLine",icon:"line-series",value:"line"},{label:"toolbarSeriesTypeStepLine",icon:"step-line-series",value:"step-line"},{label:"toolbarSeriesTypeHLC",icon:"hlc-series",value:"hlc"},{label:"toolbarSeriesTypeHighLow",icon:"high-low-series",value:"high-low"}],UU=class extends WU._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!1,this.menu=new lre(this.ctx,"chart-toolbar"),this.toolbar=e.sharedToolbar.getSharedToolbar("chartToolbar"),this.destroyFns.push(this.toolbar.addToolbarListener("button-pressed",this.onButtonPressed.bind(this)),e.layoutManager.registerElement(rre.ToolbarLeft,this.onLayoutStart.bind(this)),()=>this.toolbar.destroy())}onLayoutStart(e){this.enabled&&(this.updateButton(),this.toolbar.layout(e.layoutBox))}onButtonPressed({event:e,buttonBounds:t}){this.menu.setAnchor({x:t.x+t.width+6,y:t.y}),this.menu.show({items:D4,menuItemRole:"menuitemradio",ariaLabel:this.ctx.localeManager.t("toolbarSeriesTypeDropdown"),class:"ag-charts-chart-toolbar__menu",value:this.getChartType(),sourceEvent:e.sourceEvent,onPress:n=>{this.setChartType(n.value),this.hidePopover()},onHide:()=>{this.toolbar.clearActiveButton()}}),this.toolbar.toggleActiveButtonByIndex(0)}updateButton(){var n;let e=this.getChartType(),t=(n=D4.find(a=>a.value===e))==null?void 0:n.icon;t!=null&&this.toolbar.updateButtons([{icon:t,tooltip:"toolbarSeriesTypeDropdown"}])}hidePopover(){this.toolbar.clearActiveButton(),this.menu.hide()}setChartType(e){var n;let t={chartType:e};(n=this.ctx.chartService.publicApi)==null||n.updateDelta(t).catch(a=>sre.error(a))}getChartType(){var t,n;let e=(n=(t=this.ctx.chartService.publicApi)==null?void 0:t.getOptions())==null?void 0:n.chartType;return e==null||!D4.some(a=>a.value===e)?"candlestick":e}};me([cre(are),ore({changeValue(e){var t;(t=this.toolbar)==null||t.setHidden(!e)}})],UU.prototype,"enabled",2);var dre={type:"root",optionsKey:"chartToolbar",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new UU(e)},ure=(mt(),T(pt)),zR=(mt(),T(pt)),T_="ag-charts-context-menu",R_="ag-charts-dark-context-menu",{BOOLEAN:KU,Validate:qU,createElement:E4,initMenuKeyNav:hre,makeAccessibleClickListener:gre,ContextMenuRegistry:S2,Logger:YU}=zR._ModuleSupport,I4="context-menu";function pre(e,t){let{children:n}=e!=null?e:{};if(!n)return[];let a=[];for(let u of Array.from(n))u instanceof t&&a.push(u);return a}var T4=class extends zR._ModuleSupport.BaseModuleInstance{constructor(e){if(super(),this.ctx=e,this.enabled=!0,this.darkTheme=!1,this.extraActions=[],this.extraNodeActions=[],this.extraSeriesAreaActions=[],this.extraLegendItemActions=[],this.pickedNode=void 0,this.showEvent=void 0,this.x=0,this.y=0,this.interactionManager=e.interactionManager,this.registry=e.contextMenuRegistry,this.groups={default:[],extra:[],extraSeriesArea:[],extraNode:[],extraLegendItem:[]},this.element=e.domManager.addChild("canvas-overlay",I4),this.element.classList.add(T_),this.element.addEventListener("contextmenu",t=>t.preventDefault()),this.destroyFns.push(()=>{var t;return(t=this.element.parentNode)==null?void 0:t.removeChild(this.element)}),this.doClose(),this.destroyFns.push(e.domManager.addListener("hidden",()=>this.hide())),typeof MutationObserver!="undefined"){let t=new MutationObserver(()=>{this.menuElement&&this.element.contains(this.menuElement)&&this.reposition()});t.observe(this.element,{childList:!0}),this.mutationObserver=t,this.destroyFns.push(()=>t.disconnect())}this.destroyFns.push(this.registry.registerDefaultAction({id:"download",type:"all",label:"contextMenuDownload",action:()=>{var a;let t=e.chartService.title,n="image";t!=null&&t.enabled&&(t==null?void 0:t.text)!==void 0&&(n=t.text.replace(/\.+/,"")),(a=this.ctx.chartService.publicApi)==null||a.download({fileName:n}).catch(u=>{YU.error("Unable to download chart",u)})}})),this.destroyFns.push(this.registry.addListener(t=>this.onContext(t)))}onContext(e){if(!this.enabled)return;e.preventDefault(),this.showEvent=e.sourceEvent,this.x=e.x,this.y=e.y,this.groups.default=this.registry.filterActions(e.type),this.pickedNode=void 0,this.pickedLegendItem=void 0,this.groups.extra=this.extraActions.map(({label:R,action:F})=>({type:"all",label:R,action:F})),this.groups.extraSeriesArea=[],this.groups.extraNode=[],S2.check("series-area",e)&&(this.pickedNode=e.context.pickedNode,this.groups.extraSeriesArea=this.extraSeriesAreaActions.map(({label:R,action:F})=>({type:"series-area",label:R,action:F})),this.pickedNode&&(this.groups.extraNode=this.extraNodeActions.map(({label:R,action:F})=>({type:"node",label:R,action:F})))),this.groups.extraLegendItem=[],S2.check("legend",e)&&(this.pickedLegendItem=e.context.legendItem,this.pickedLegendItem&&(this.groups.extraLegendItem=this.extraLegendItemActions.map(({label:R,action:F})=>({type:"legend",label:R,action:F}))));let{default:t,extra:n,extraSeriesArea:a,extraNode:u,extraLegendItem:y}=this.groups;[t,n,a,u,y].reduce((R,F)=>F.length+R,0)!==0&&this.show(e.sourceEvent)}show(e){var a;this.interactionManager.pushState(zR._ModuleSupport.InteractionState.ContextMenu),this.element.classList.toggle(R_,this.darkTheme);let t=this.renderMenu();(a=this.menuCloser)==null||a.close(),this.menuElement?this.element.replaceChild(t,this.menuElement):this.element.appendChild(t),this.menuElement=t,this.element.style.display="block";let n=pre(t,HTMLButtonElement);this.menuCloser=hre({menu:t,buttons:n,orientation:"vertical",sourceEvent:e,autoCloseOnBlur:!0,closeCallback:()=>this.doClose()})}hide(){var e;(e=this.menuCloser)==null||e.close()}doClose(){this.interactionManager.popState(zR._ModuleSupport.InteractionState.ContextMenu),this.menuElement&&(this.element.removeChild(this.menuElement),this.menuElement=void 0,this.menuCloser=void 0),this.element.style.display="none"}renderMenu(){let e=E4("div");return e.classList.add(`${T_}__menu`),e.classList.toggle(R_,this.darkTheme),e.role="menu",this.appendMenuGroup(e,this.groups.default,!1),this.appendMenuGroup(e,this.groups.extra),this.appendMenuGroup(e,this.groups.extraSeriesArea),this.pickedNode&&this.appendMenuGroup(e,this.groups.extraNode),this.pickedLegendItem&&this.appendMenuGroup(e,this.groups.extraLegendItem),e}appendMenuGroup(e,t,n=!0){t.length!==0&&(n&&e.appendChild(this.createDividerElement()),t.forEach(a=>{let u=this.renderItem(a);u&&e.appendChild(u)}))}renderItem(e){if(e&&typeof e=="object"&&e.constructor===Object)return this.createActionElement(e)}createDividerElement(){let e=E4("div");return e.classList.add(`${T_}__divider`),e.classList.toggle(R_,this.darkTheme),e.role="separator",e}createActionElement({id:e,label:t,type:n,action:a}){let u=!!(e&&this.registry.isDisabled(e));return this.createButtonElement(n,t,a,u)}createButtonOnClick(e,t){return S2.checkCallback("legend",e,t)?n=>{if(this.pickedLegendItem){let{seriesId:a,itemId:u}=this.pickedLegendItem;t({type:"contextmenu",seriesId:a,itemId:u,event:n}),this.hide()}}:S2.checkCallback("series-area",e,t)?()=>{t({type:"seriesContextMenuAction",event:this.showEvent}),this.hide()}:S2.checkCallback("node",e,t)?()=>{let{pickedNode:n,showEvent:a}=this,u=n==null?void 0:n.series.createNodeContextMenuActionEvent(a,n);u?t(u):YU.error("series node not found"),this.hide()}:()=>{t({type:"contextMenuEvent",event:this.showEvent}),this.hide()}}createButtonElement(e,t,n,a){let u=E4("button");return u.classList.add(`${T_}__item`),u.classList.toggle(R_,this.darkTheme),u.ariaDisabled=a.toString(),u.textContent=this.ctx.localeManager.t(t),u.role="menuitem",u.onclick=gre(u,this.createButtonOnClick(e,n)),u.addEventListener("mouseover",()=>u.focus({preventScroll:!0})),u}reposition(){let{x:e,y:t}=this;this.element.style.top="unset",this.element.style.bottom="unset";let n=this.ctx.domManager.getBoundingClientRect(),{offsetWidth:a,offsetHeight:u}=this.element;e=zR._ModuleSupport.clamp(0,e,n.width-a),t=zR._ModuleSupport.clamp(0,t,n.height-u),this.element.style.left=`${e}px`,this.element.style.top=`calc(${t}px - 0.5em)`}destroy(){var e;super.destroy(),(e=this.mutationObserver)==null||e.disconnect(),this.ctx.domManager.removeStyles(I4),this.ctx.domManager.removeChild("canvas-overlay",I4)}};me([qU(KU)],T4.prototype,"enabled",2),me([qU(KU)],T4.prototype,"darkTheme",2);var mre={type:"root",packageType:"enterprise",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],optionsKey:"contextMenu",moduleFactory:e=>new T4(e),themeTemplate:{contextMenu:{enabled:!0,darkTheme:ure._ModuleSupport.ThemeSymbols.IS_DARK_THEME}}},fre=(mt(),T(pt)),BR=(mt(),T(pt)),R4=(mt(),T(pt)),{BaseProperties:vre,BOOLEAN:XU,FUNCTION:ZU,NUMBER:P_,STRING:$U,Validate:SC,createId:yre,setAttribute:bre}=R4._ModuleSupport,Cre="ag-charts-crosshair-label",GR=class extends R4._ModuleSupport.ChangeDetectableProperties{constructor(){super(...arguments),this.enabled=!0,this.xOffset=0,this.yOffset=0,this.format=void 0,this.renderer=void 0}};me([SC(XU)],GR.prototype,"enabled",2),me([SC(P_)],GR.prototype,"xOffset",2),me([SC(P_)],GR.prototype,"yOffset",2),me([SC($U,{optional:!0})],GR.prototype,"format",2),me([SC(ZU,{optional:!0})],GR.prototype,"renderer",2);var VR=class extends vre{constructor(e,t,n){super(),this.domManager=e,this.id=yre(this),this.enabled=!0,this.xOffset=0,this.yOffset=0,this.renderer=void 0,this.element=e.addChild("canvas-overlay",`crosshair-label-${this.id}`),this.element.classList.add(Cre),bre(this.element,"aria-hidden",!0),this.element.setAttribute("data-key",t),this.element.setAttribute("data-axis-id",n)}show(e){let{element:t}=this,n=e.x+this.xOffset,a=e.y+this.yOffset;t.style.top=`${Math.round(a)}px`,t.style.left=`${Math.round(n)}px`,this.toggle(!0)}setLabelHtml(e){e!==void 0&&(this.element.innerHTML=e)}getBBox(){let{element:e}=this;return new R4._ModuleSupport.BBox(e.clientLeft,e.clientTop,e.clientWidth,e.clientHeight)}toggle(e){this.element.classList.toggle("ag-charts-crosshair-label--hidden",!e)}destroy(){this.domManager.removeChild("canvas-overlay",`crosshair-label-${this.id}`)}toLabelHtml(e,t){var R,F;if(typeof e=="string")return e;t=t!=null?t:{};let{text:n=(R=t.text)!=null?R:"",color:a=t.color,backgroundColor:u=t.backgroundColor,opacity:y=(F=t.opacity)!=null?F:1}=e;return`<div class="ag-charts-crosshair-label-content" style="${`opacity: ${y}; background-color: ${u==null?void 0:u.toLowerCase()}; color: ${a}`}">
                    <span>${n}</span>
                </div>`}};me([SC(XU)],VR.prototype,"enabled",2),me([SC(P_)],VR.prototype,"xOffset",2),me([SC(P_)],VR.prototype,"yOffset",2),me([SC($U,{optional:!0})],VR.prototype,"format",2),me([SC(ZU,{optional:!0})],VR.prototype,"renderer",2);var{Group:Sre,TranslatableGroup:wre,Line:QU,BBox:P4,createId:xre,POSITIVE_NUMBER:JU,RATIO:Mre,BOOLEAN:e8,COLOR_STRING:kre,LINE_DASH:Are,OBJECT:Dre,InteractionState:w2,Validate:gA,ZIndexMap:t8,formatNumber:Ere,isInteger:Ire,ChartAxisDirection:i8}=BR._ModuleSupport,xw=class extends BR._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.id=xre(this),this.enabled=!1,this.stroke="rgb(195, 195, 195)",this.lineDash=[6,3],this.lineDashOffset=0,this.strokeWidth=1,this.strokeOpacity=1,this.snap=!0,this.label=new GR,this.seriesRect=new P4(0,0,0,0),this.hoverRect=new P4(0,0,0,0),this.bounds=new P4(0,0,0,0),this.crosshairGroup=new wre({name:"crosshairs",zIndex:t8.SERIES_CROSSHAIR}),this.lineGroup=this.crosshairGroup.appendChild(new Sre({name:`${this.id}-crosshair-lines`,zIndex:t8.SERIES_CROSSHAIR})),this.lineGroupSelection=BR._ModuleSupport.Selection.select(this.lineGroup,QU,!1),this.activeHighlight=void 0,this.axisCtx=e.parent,this.labels={};let t=e.regionManager.getRegion("series"),n=w2.Default|w2.Annotations|w2.AnnotationsSelected;this.hideCrosshairs(),e.domManager.addEventListener("focusin",({target:a})=>{let u=a instanceof HTMLElement&&e.domManager.contains(a,"series-area");this.crosshairGroup.visible&&!u&&(this.hideCrosshairs(),this.ctx.updateService.update(BR._ModuleSupport.ChartUpdateType.PERFORM_LAYOUT))}),this.destroyFns.push(e.scene.attachNode(this.crosshairGroup),t.addListener("hover",a=>this.onMouseMove(a),n),t.addListener("drag",a=>this.onMouseMove(a),w2.Annotations|w2.AnnotationsSelected),t.addListener("leave",()=>this.onMouseOut(),n),e.keyNavManager.addListener("nav-hori",()=>this.onKeyPress()),e.keyNavManager.addListener("nav-vert",()=>this.onKeyPress()),e.zoomManager.addListener("zoom-pan-start",()=>this.onMouseOut()),e.zoomManager.addListener("zoom-change",()=>this.onMouseOut()),e.highlightManager.addListener("highlight-change",a=>this.onHighlightChange(a)),e.layoutManager.addListener("layout:complete",a=>this.layout(a)),()=>Object.entries(this.labels).forEach(([a,u])=>u.destroy()))}layout({series:{rect:e,paddedRect:t,visible:n},axes:a}){if(!n||!a||!this.enabled)return;this.seriesRect=e,this.hoverRect=t;let{position:u="left",axisId:y}=this.axisCtx,k=a.find(V=>V.id===y);if(!k)return;this.axisLayout=k,this.bounds=e.clone().grow(k.gridPadding+k.seriesAreaPadding,u);let{crosshairGroup:R,bounds:F}=this;R.translationX=Math.round(F.x),R.translationY=Math.round(F.y);let _=["pointer",...this.axisCtx.seriesKeyProperties()];this.updateSelections(_),this.updateLines(),this.updateLabels(_)}updateSelections(e){this.lineGroupSelection.update(e,t=>t.append(new QU),t=>t)}updateLabels(e){var a;let{labels:t,ctx:n}=this;for(let u of e)this.label.enabled&&((a=t[u])!=null||(t[u]=new VR(n.domManager,u,this.axisCtx.axisId))),t[u]&&this.updateLabel(t[u]);this.labelFormatter=this.axisCtx.scaleValueFormatter(this.label.format)}updateLabel(e){let{enabled:t,xOffset:n,yOffset:a,format:u,renderer:y}=this.label;e.enabled=t,e.xOffset=n,e.yOffset=a,e.format=u,e.renderer=y}updateLines(){let{lineGroupSelection:e,bounds:t,stroke:n,strokeWidth:a,strokeOpacity:u,lineDash:y,lineDashOffset:k,axisLayout:R}=this;if(!R)return;let F=this.isVertical();e.each(_=>{_.stroke=n,_.strokeWidth=a,_.strokeOpacity=u,_.lineDash=y,_.lineDashOffset=k,_.y1=0,_.y2=F?t.height:0,_.x1=0,_.x2=F?0:t.width})}isVertical(){return this.axisCtx.direction===i8.X}formatValue(e){var u;let{labelFormatter:t,axisLayout:n,ctx:{callbackCache:a}}=this;if(t){let y=a.call(t,e);if(y!=null)return y}if(typeof e=="number"){let y=((u=n==null?void 0:n.label.fractionDigits)!=null?u:0)+(Ire(e)?0:1);return Ere(e,y)}return String(e!=null?e:"")}onMouseMove(e){if(!this.enabled||this.snap)return;let{crosshairGroup:t,hoverRect:n}=this,{canvasX:a,canvasY:u}=e;if(n.containsPoint(a,u)){let y=this.getData(e);this.updatePositions(y),t.visible=!0}else this.hideCrosshairs();this.ctx.updateService.update(BR._ModuleSupport.ChartUpdateType.SCENE_RENDER)}onMouseOut(){this.hideCrosshairs(),this.ctx.updateService.update(BR._ModuleSupport.ChartUpdateType.SCENE_RENDER)}onKeyPress(){this.enabled&&!this.snap&&this.hideCrosshairs()}onHighlightChange(e){var k,R,F;if(!this.enabled)return;let{crosshairGroup:t,axisCtx:n}=this,{datum:a,series:u}=(k=e.currentHighlight)!=null?k:{},y=a&&(((R=u==null?void 0:u.axes.x)==null?void 0:R.id)===n.axisId||((F=u==null?void 0:u.axes.y)==null?void 0:F.id)===n.axisId);if(this.activeHighlight=y?e.currentHighlight:void 0,!this.activeHighlight)this.hideCrosshairs();else if(this.snap){let _=this.getActiveHighlightData(this.activeHighlight);this.updatePositions(_),t.visible=!0}}isInRange(e){return this.axisCtx.inRange(e)}updatePositions(e){let{seriesRect:t,lineGroupSelection:n}=this;n.each((a,u)=>{let y=e[u];if(!y){a.visible=!1,this.hideLabel(u);return}a.visible=!0;let{value:k,position:R}=y,F=0,_=0;this.isVertical()?(F=R,a.x=Math.round(F)):(_=R,a.y=Math.round(_)),this.label.enabled?this.showLabel(F+t.x,_+t.y,k,u):this.hideLabel(u)})}getData(e){var K,q;let{axisCtx:t}=this,n="pointer",{datum:a,xKey:u="",yKey:y=""}=(K=this.activeHighlight)!=null?K:{},{regionX:k,regionY:R}=e,F=this.isVertical(),_=F?k:R,V=(q=a==null?void 0:a[F?u:y])!=null?q:"";return t.continuous&&(V=t.scaleInvert(_)),{[n]:{position:_,value:V}}}getActiveHighlightData(e){var se,de,pe;let{axisCtx:t}=this,{datum:n,series:a,xKey:u="",aggregatedValue:y,cumulativeValue:k,midPoint:R}=e,F=a.getKeyProperties(t.direction),_=((se=t.scale.bandwidth)!=null?se:0)/2,V=((de=a.axes[t.direction])==null?void 0:de.id)===t.axisId,K=F.indexOf("yKey")>-1&&V,q=F.indexOf("xKey")>-1&&V,$=y!=null?y:k;if(K&&$!==void 0){let Ce=t.scale.convert($)+_;return this.isInRange(Ce)?{yKey:{value:$,position:Ce}}:{}}if(q){let Ce=(pe=this.isVertical()?R==null?void 0:R.x:R==null?void 0:R.y)!=null?pe:0,Se=t.continuous?t.scaleInvert(Ce):n[u];return this.isInRange(Ce)?{xKey:{value:Se,position:Ce}}:{}}let te={};return F.forEach(Ce=>{let Se=a.properties[Ce],ve=n[Se],ke=t.scale.convert(ve)+_;this.isInRange(ke)&&(te[Ce]={value:ve,position:ke})}),te}getLabelHtml(e,t){var u,y,k;let n=(k=(y=(u=this.axisLayout)==null?void 0:u.label)==null?void 0:y.fractionDigits)!=null?k:0,a={text:this.formatValue(e)};return this.label.renderer?t.toLabelHtml(this.label.renderer({value:e,fractionDigits:n}),a):t.toLabelHtml(a)}showLabel(e,t,n,a){if(!this.axisLayout)return;let{bounds:u}=this,y=this.labels[a],k=this.getLabelHtml(n,y);y.setLabelHtml(k);let{width:R,height:F}=y.getBBox(),_=this.axisCtx.position,V=this.axisLayout.label.spacing+this.axisLayout.tickSize;this.axisCtx.direction===i8.X?(V-=4,y.show({x:e-R/2,y:_==="bottom"?u.y+u.height+V:u.y-F-V})):(V-=8,y.show({x:_==="right"?u.x+u.width+V:u.x-R-V,y:t-F/2}))}hideCrosshairs(){this.crosshairGroup.visible=!1;for(let e of Object.keys(this.labels))this.hideLabel(e)}hideLabel(e){var t;(t=this.labels[e])==null||t.toggle(!1)}};me([gA(e8)],xw.prototype,"enabled",2),me([gA(kre,{optional:!0})],xw.prototype,"stroke",2),me([gA(Are,{optional:!0})],xw.prototype,"lineDash",2),me([gA(JU)],xw.prototype,"lineDashOffset",2),me([gA(JU)],xw.prototype,"strokeWidth",2),me([gA(Mre)],xw.prototype,"strokeOpacity",2),me([gA(e8)],xw.prototype,"snap",2),me([gA(Dre)],xw.prototype,"label",2);var Tre={type:"axis-option",optionsKey:"crosshair",packageType:"enterprise",chartTypes:["cartesian"],axisTypes:["category","ordinal-time","number","log","time"],moduleFactory:e=>new xw(e),themeTemplate:{crosshair:{snap:!0,stroke:fre._ModuleSupport.ThemeSymbols.DEFAULT_MUTED_LABEL_COLOUR,strokeWidth:1,strokeOpacity:1,lineDash:[5,6],lineDashOffset:0,label:{enabled:!0}}}},n8=(mt(),T(pt)),{BOOLEAN:Rre,FUNCTION:Pre,ActionOnSet:x2,Validate:a8}=n8._ModuleSupport,jR=class extends n8._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.enabled=!1,this.getData=()=>Promise.resolve(),this.dataService=e.dataService}updateCallback(e,t){this.dataService&&(e&&t!=null?this.dataService.updateCallback(t):this.dataService.clearCallback())}};me([x2({newValue(e){this.updateCallback(e,this.getData)}}),a8(Rre)],jR.prototype,"enabled",2),me([x2({newValue(e){this.updateCallback(this.enabled,e)}}),a8(Pre)],jR.prototype,"getData",2),me([x2({newValue(e){this.dataService.requestThrottle=e}})],jR.prototype,"requestThrottle",2),me([x2({newValue(e){this.dataService.dispatchThrottle=e}})],jR.prototype,"updateThrottle",2),me([x2({newValue(e){this.dataService.dispatchOnlyLatest=!e}})],jR.prototype,"updateDuringInteraction",2);var Lre={type:"root",optionsKey:"dataSource",packageType:"enterprise",chartTypes:["cartesian","hierarchy","polar","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new jR(e),themeTemplate:{dataSource:{enabled:!1}}},Ore=(mt(),T(pt)),M2=(mt(),T(pt)),k2=(mt(),T(pt)),{nearestSquaredInContainer:Fre,partialAssign:_re,mergeDefaults:o8,BBox:Mw}=k2._ModuleSupport,Nre=class{constructor(e){this.components=e,this.union=Mw.merge(e)}containsPoint(e,t){if(!this.union.containsPoint(e,t))return!1;for(let n of this.components)if(n.containsPoint(e,t))return!0;return!1}},zre=class extends k2._ModuleSupport.Group{constructor(){super(),this.capLength=NaN,this._datum=void 0,this.whiskerPath=new k2._ModuleSupport.Path,this.capsPath=new k2._ModuleSupport.Path,this.bboxes=new Nre([]),this.append([this.whiskerPath,this.capsPath])}get datum(){return this._datum}set datum(e){this._datum=e}calculateCapLength(e,t){let{lengthRatio:n=1,length:a}=e,{lengthRatioMultiplier:u,lengthMax:y}=t,k=a!=null?a:n*u;return Math.min(k,y)}getItemStylerParams(e,t,n){let{datum:a}=this;if(a==null||e.itemStyler==null)return;let{xLowerKey:u,xUpperKey:y,yLowerKey:k,yUpperKey:R}=e;return He(ge({},t),{datum:a.datum,seriesId:a.datum.seriesId,xKey:a.xKey,yKey:a.yKey,xLowerKey:u,xUpperKey:y,yLowerKey:k,yUpperKey:R,highlighted:n})}formatStyles(e,t,n){let k=e,{cap:a}=k,u=wi(k,["cap"]),y=this.getItemStylerParams(t,e,n);if(y!=null&&t.itemStyler!=null){let R=t.itemStyler(y);u=o8(R,u),a=o8(R==null?void 0:R.cap,R,a)}return{whiskerStyle:u,capsStyle:a}}applyStyling(e,t){_re(["visible","stroke","strokeWidth","strokeOpacity","lineDash","lineDashOffset"],e,t)}update(e,t,n){if(this.datum===void 0)return;let{whiskerStyle:a,capsStyle:u}=this.formatStyles(e,t,n),{xBar:y,yBar:k,capDefaults:R}=this.datum,F=this.whiskerPath;this.applyStyling(F,a),F.path.clear(!0),k!==void 0&&(F.path.moveTo(k.lowerPoint.x,k.lowerPoint.y),F.path.lineTo(k.upperPoint.x,k.upperPoint.y)),y!==void 0&&(F.path.moveTo(y.lowerPoint.x,y.lowerPoint.y),F.path.lineTo(y.upperPoint.x,y.upperPoint.y)),F.path.closePath(),this.capLength=this.calculateCapLength(u!=null?u:{},R);let _=this.capLength/2,V=this.capsPath;this.applyStyling(V,u),V.path.clear(!0),k!==void 0&&(V.path.moveTo(k.lowerPoint.x-_,k.lowerPoint.y),V.path.lineTo(k.lowerPoint.x+_,k.lowerPoint.y),V.path.moveTo(k.upperPoint.x-_,k.upperPoint.y),V.path.lineTo(k.upperPoint.x+_,k.upperPoint.y)),y!==void 0&&(V.path.moveTo(y.lowerPoint.x,y.lowerPoint.y-_),V.path.lineTo(y.lowerPoint.x,y.lowerPoint.y+_),V.path.moveTo(y.upperPoint.x,y.upperPoint.y-_),V.path.lineTo(y.upperPoint.x,y.upperPoint.y+_)),V.path.closePath()}updateBBoxes(){var R;let{capLength:e,whiskerPath:t,capsPath:n}=this,{yBar:a,xBar:u}=(R=this.datum)!=null?R:{},y=e/2,k=[];if(a!==void 0){let F=a.lowerPoint.y-a.upperPoint.y;k.push(new Mw(a.lowerPoint.x,a.upperPoint.y,t.strokeWidth,F),new Mw(a.lowerPoint.x-y,a.lowerPoint.y,e,n.strokeWidth),new Mw(a.upperPoint.x-y,a.upperPoint.y,e,n.strokeWidth))}if(u!==void 0){let F=u.upperPoint.x-u.lowerPoint.x;k.push(new Mw(u.lowerPoint.x,u.upperPoint.y,F,t.strokeWidth),new Mw(u.lowerPoint.x,u.lowerPoint.y-y,n.strokeWidth,e),new Mw(u.upperPoint.x,u.upperPoint.y-y,n.strokeWidth,e))}this.bboxes.components=k,this.bboxes.union=Mw.merge(k)}containsPoint(e,t){return this.bboxes.containsPoint(e,t)}pickNode(e,t){return this.containsPoint(e,t)?this:void 0}nearestSquared(e,t,n){let{bboxes:a}=this;if(a.union.distanceSquared(e,t)>n)return{nearest:void 0,distanceSquared:1/0};let{distanceSquared:u}=Mw.nearestBox(e,t,a.components);return{nearest:this,distanceSquared:u}}},Bre=class extends k2._ModuleSupport.Group{nearestSquared(e,t){let{nearest:n,distanceSquared:a}=Fre(e,t,{children:this.children()});if(n!==void 0&&!isNaN(a))return{datum:n.datum,distanceSquared:a}}},Gre=(mt(),T(pt)),{BaseProperties:r8,Validate:Or,BOOLEAN:s8,COLOR_STRING:l8,FUNCTION:Vre,LINE_DASH:c8,NUMBER:jre,OBJECT:Hre,POSITIVE_NUMBER:L_,RATIO:L4,STRING:pA}=Gre._ModuleSupport,kw=class extends r8{};me([Or(s8,{optional:!0})],kw.prototype,"visible",2),me([Or(l8,{optional:!0})],kw.prototype,"stroke",2),me([Or(L_,{optional:!0})],kw.prototype,"strokeWidth",2),me([Or(L4,{optional:!0})],kw.prototype,"strokeOpacity",2),me([Or(c8,{optional:!0})],kw.prototype,"lineDash",2),me([Or(L_,{optional:!0})],kw.prototype,"lineDashOffset",2),me([Or(jre,{optional:!0})],kw.prototype,"length",2),me([Or(L4,{optional:!0})],kw.prototype,"lengthRatio",2);var Gd=class extends r8{constructor(){super(...arguments),this.visible=!0,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.cap=new kw}};me([Or(pA,{optional:!0})],Gd.prototype,"yLowerKey",2),me([Or(pA,{optional:!0})],Gd.prototype,"yLowerName",2),me([Or(pA,{optional:!0})],Gd.prototype,"yUpperKey",2),me([Or(pA,{optional:!0})],Gd.prototype,"yUpperName",2),me([Or(pA,{optional:!0})],Gd.prototype,"xLowerKey",2),me([Or(pA,{optional:!0})],Gd.prototype,"xLowerName",2),me([Or(pA,{optional:!0})],Gd.prototype,"xUpperKey",2),me([Or(pA,{optional:!0})],Gd.prototype,"xUpperName",2),me([Or(s8,{optional:!0})],Gd.prototype,"visible",2),me([Or(l8,{optional:!0})],Gd.prototype,"stroke",2),me([Or(L_,{optional:!0})],Gd.prototype,"strokeWidth",2),me([Or(L4,{optional:!0})],Gd.prototype,"strokeOpacity",2),me([Or(c8,{optional:!0})],Gd.prototype,"lineDash",2),me([Or(L_,{optional:!0})],Gd.prototype,"lineDashOffset",2),me([Or(Vre,{optional:!0})],Gd.prototype,"itemStyler",2),me([Or(Hre)],Gd.prototype,"cap",2);var{fixNumericExtent:Wre,groupAccumulativeValueProperty:Ure,isDefined:Lg,mergeDefaults:Kre,valueProperty:O_,ChartAxisDirection:O4,Logger:qre}=M2._ModuleSupport;function Yre(e){for(let t of M2.AgErrorBarSupportedSeriesTypes)if(t===e.series.type)return e.series;throw new Error(`AG Charts - unsupported series type '${e.series.type}', error bars supported series types: ${M2.AgErrorBarSupportedSeriesTypes.join(", ")}`)}var Xre=class PO extends M2._ModuleSupport.BaseModuleInstance{constructor(t){super(),this.properties=new Gd;let n=Yre(t),{annotationGroup:a,annotationSelections:u}=n;this.cartesianSeries=n,this.groupNode=new Bre({name:`${a.id}-errorBars`}),a.appendChild(this.groupNode),this.selection=M2._ModuleSupport.Selection.select(this.groupNode,()=>this.errorBarFactory()),u.add(this.selection),n.addEventListener("seriesVisibilityChange",y=>this.onToggleSeriesItem(y)),this.destroyFns.push(n.addListener("data-processed",y=>this.onDataProcessed(y)),n.addListener("data-update",y=>this.onDataUpdate(y)),t.highlightManager.addListener("highlight-change",y=>this.onHighlightChange(y)),()=>a.removeChild(this.groupNode),()=>u.delete(this.selection))}hasErrorBars(){let{xLowerKey:t,xUpperKey:n,yLowerKey:a,yUpperKey:u}=this.properties;return Lg(t)&&Lg(n)||Lg(a)&&Lg(u)}isStacked(){var n;let t=(n=this.cartesianSeries.seriesGrouping)==null?void 0:n.stackCount;return t==null?!1:t>0}getUnstackPropertyDefinition(t){let n=[],{xLowerKey:a,xUpperKey:u,yLowerKey:y,yUpperKey:k,xErrorsID:R,yErrorsID:F}=this.getMaybeFlippedKeys(),{xScaleType:_,yScaleType:V}=t;return y!=null&&k!=null&&n.push(O_(y,V,{id:`${F}-lower`}),O_(k,V,{id:`${F}-upper`})),a!=null&&u!=null&&n.push(O_(a,_,{id:`${R}-lower`}),O_(u,_,{id:`${R}-upper`})),n}getStackPropertyDefinition(t){var de,pe;let n=[],{cartesianSeries:a}=this,{xLowerKey:u,xUpperKey:y,yLowerKey:k,yUpperKey:R,xErrorsID:F,yErrorsID:_}=this.getMaybeFlippedKeys(),{xScaleType:V,yScaleType:K}=t,q=(pe=(de=a.seriesGrouping)==null?void 0:de.groupIndex)!=null?pe:a.id,$=ge({invalidValue:null,missingValue:0,separateNegative:!0},a.visible?{}:{forceValue:0}),te=(Ce,Se,ve,ke)=>Ure(Ce,"normal","current",ge({id:`${Se}-${ve}`,groupId:`errorGroup-${q}-${ve}`},$),ke),se=(Ce,Se,ve,ke)=>{n.push(...te(Ce,ve,"lower",ke),...te(Se,ve,"upper",ke))};return k!=null&&R!=null&&se(k,R,_,K),u!=null&&y!=null&&se(u,y,F,V),n}getPropertyDefinitions(t){return this.isStacked()?this.getStackPropertyDefinition(t):this.getUnstackPropertyDefinition(t)}onDataProcessed(t){this.dataModel=t.dataModel,this.processedData=t.processedData}getDomain(t){let{xLowerKey:n,xUpperKey:a,xErrorsID:u,yLowerKey:y,yUpperKey:k,yErrorsID:R}=this.getMaybeFlippedKeys();if(t===O4.X?Lg(n)&&Lg(a):Lg(y)&&Lg(k)){let{dataModel:_,processedData:V,cartesianSeries:K}=this;if(_!=null&&V!=null){let q={x:u,y:R}[t],$=_.getDomain(K,`${q}-lower`,"value",V),te=_.getDomain(K,`${q}-upper`,"value",V),se=[Math.min(...$,...te),Math.max(...$,...te)];return Wre(se)}}return[]}onDataUpdate(t){this.dataModel=t.dataModel,this.processedData=t.processedData,Lg(t.dataModel)&&Lg(t.processedData)&&(this.createNodeData(),this.update())}getNodeData(){var t;return this.hasErrorBars()?(t=this.cartesianSeries.contextNodeData)==null?void 0:t.nodeData:void 0}createNodeData(){var u,y;let t=this.getNodeData(),n=(u=this.cartesianSeries.axes[O4.X])==null?void 0:u.scale,a=(y=this.cartesianSeries.axes[O4.Y])==null?void 0:y.scale;if(!(!n||!a||!t))for(let k=0;k<t.length;k++){let{midPoint:R,xLower:F,xUpper:_,yLower:V,yUpper:K}=this.getDatum(t,k);if(R!=null){let q,$;Lg(F)&&Lg(_)&&(q={lowerPoint:{x:this.convert(n,F),y:R.y},upperPoint:{x:this.convert(n,_),y:R.y}}),Lg(V)&&Lg(K)&&($={lowerPoint:{x:R.x,y:this.convert(a,V)},upperPoint:{x:R.x,y:this.convert(a,K)}}),t[k].xBar=q,t[k].yBar=$}}}getMaybeFlippedKeys(){let{xLowerKey:t,xUpperKey:n,yLowerKey:a,yUpperKey:u}=this.properties,[y,k]=["xValue-errors","yValue-errors"];return this.cartesianSeries.shouldFlipXY()&&([t,a]=[a,t],[n,u]=[u,n],[y,k]=[k,y]),{xLowerKey:t,xUpperKey:n,xErrorsID:y,yLowerKey:a,yUpperKey:u,yErrorsID:k}}static getDatumKey(t,n,a){if(n==null)return;let u=t.datum[n];if(u!=null){if(typeof u!="number"){qre.warnOnce(`Found [${n}] error value of type ${typeof u}. Expected number type`);return}return u+a}}getDatum(t,n){let{xLowerKey:a,xUpperKey:u,yLowerKey:y,yUpperKey:k}=this.getMaybeFlippedKeys(),R=t[n],F=R.cumulativeValue==null||!this.isStacked()?0:R.cumulativeValue-R.yValue,[_,V]=this.cartesianSeries.shouldFlipXY()?[F,0]:[0,F];return{midPoint:R.midPoint,xLower:PO.getDatumKey(R,a,_),xUpper:PO.getDatumKey(R,u,_),yLower:PO.getDatumKey(R,y,V),yUpper:PO.getDatumKey(R,k,V)}}convert(t,n){var u;let a=((u=t.bandwidth)!=null?u:0)/2;return t.convert(n)+a}update(){let t=this.getNodeData();t!=null&&(this.selection.update(t),this.selection.each((n,a,u)=>this.updateNode(n,a,u)))}updateNode(t,n,a){t.datum=n,t.update(this.getDefaultStyle(),this.properties,!1),t.updateBBoxes()}pickNodeExact(t){let{x:n,y:a}=t,u=this.groupNode.pickNode(n,a);if(u!=null)return{datum:u.datum,distanceSquared:0}}pickNodeNearest(t){return this.groupNode.nearestSquared(t.x,t.y)}pickNodeMainAxisFirst(t){return this.groupNode.nearestSquared(t.x,t.y)}getTooltipParams(){let{xLowerKey:t,xUpperKey:n,yLowerKey:a,yUpperKey:u,xLowerName:y=t,xUpperName:k=n,yLowerName:R=a,yUpperName:F=u}=this.properties;return{xLowerKey:t,xLowerName:y,xUpperKey:n,xUpperName:k,yLowerKey:a,yLowerName:R,yUpperKey:u,yUpperName:F}}onToggleSeriesItem(t){this.groupNode.visible=t.visible}makeStyle(t){return{visible:t.visible,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,stroke:t.stroke,strokeWidth:t.strokeWidth,strokeOpacity:t.strokeOpacity,cap:Kre(this.properties.cap,t)}}getDefaultStyle(){return this.makeStyle(this.getWhiskerProperties())}getHighlightStyle(){return this.makeStyle(this.getWhiskerProperties())}restyleHighlightChange(t,n,a){var y;let u=this.getNodeData();if(u!=null){for(let k=0;k<u.length;k++)if(t===u[k]){(y=this.selection.at(k))==null||y.update(n,this.properties,a);break}}}onHighlightChange(t){let{previousHighlight:n,currentHighlight:a}=t;(a==null?void 0:a.series)===this.cartesianSeries&&this.restyleHighlightChange(a,this.getHighlightStyle(),!0),(n==null?void 0:n.series)===this.cartesianSeries&&this.restyleHighlightChange(n,this.getDefaultStyle(),!1),this.groupNode.opacity=this.cartesianSeries.getOpacity()}errorBarFactory(){return new zre}getWhiskerProperties(){let{stroke:t,strokeWidth:n,visible:a,strokeOpacity:u,lineDash:y,lineDashOffset:k}=this.properties;return{stroke:t,strokeWidth:n,visible:a,strokeOpacity:u,lineDash:y,lineDashOffset:k}}},Zre=(mt(),T(pt)),$re={series:{errorBar:{visible:!0,stroke:Zre._ModuleSupport.ThemeSymbols.DEFAULT_LABEL_COLOUR,strokeWidth:1,strokeOpacity:1,cap:{length:void 0,lengthRatio:void 0}}}},Qre={type:"series-option",identifier:"error-bars",optionsKey:"errorBar",packageType:"enterprise",chartTypes:["cartesian"],seriesTypes:Ore.AgErrorBarSupportedSeriesTypes,moduleFactory:e=>new Xre(e),themeTemplate:$re},F_=(mt(),T(pt)),{ZIndexMap:Jre,ActionOnSet:ese,Validate:F4,ProxyPropertyOnWrite:d8,OBJECT:tse,RATIO:ise,COLOR_STRING:nse}=F_._ModuleSupport,__=class extends F_._ModuleSupport.Background{constructor(){super(...arguments),this.image=new CC,this.fill="transparent",this.fillOpacity=void 0}createNode(){return new F_._ModuleSupport.Group({name:"foreground",zIndex:Jre.FOREGROUND})}onLayoutComplete(e){super.onLayoutComplete(e);let{width:t,height:n}=e.chart,a={x:0,y:0,width:t,height:n};this.image&&(a=this.image.performLayout(t,n)),this.text&&this.updateTextNode(a)}onImageLoad(){this.ctx.updateService.update(F_._ModuleSupport.ChartUpdateType.SCENE_RENDER)}updateTextNode(e){let{textNode:t}=this;t.fontWeight="bold",t.fontFamily="Impact, sans-serif",t.fontSize=19,t.opacity=.7,t.fill="#9b9b9b",t.textBaseline="top";let n=this.textNode.getBBox(),a=10;t.x=e.x+e.width/2-n.width/2,t.y=e.y+e.height+a}};me([F4(tse,{optional:!0}),ese({newValue(e){this.node.appendChild(e.node),e.onLoad=()=>this.onImageLoad()},oldValue(e){this.node.removeChild(e.node),e.onLoad=void 0}})],__.prototype,"image",2),me([F4(nse,{optional:!0}),d8("rectNode","fill")],__.prototype,"fill",2),me([F4(ise,{optional:!0}),d8("rectNode","fillOpacity")],__.prototype,"fillOpacity",2);var ase={type:"root",optionsKey:"foreground",packageType:"enterprise",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],moduleFactory:e=>new __(e)},ose=(mt(),T(pt)),A2=(mt(),T(pt)),u8=(mt(),T(pt)),rse=(mt(),T(pt)),{TranslatableGroup:sse,ScenePathChangeDetection:h8}=rse._ModuleSupport,_4=class extends sse{constructor(){super(...arguments),this.inset=0,this.cornerRadius=0}applyClip(e,t){let{cornerRadius:n,inset:a}=this,{x:u,y,width:k,height:R}=t;e.beginPath(),e.roundRect(u+a,y+a,k-2*a,R-2*a,n),e.clip()}};me([h8()],_4.prototype,"inset",2),me([h8()],_4.prototype,"cornerRadius",2);var{Validate:N4,BOOLEAN:lse,POSITIVE_NUMBER:g8,ZIndexMap:DE,ActionOnSet:p8,CategoryAxis:cse,TextUtils:dse,Padding:use,Logger:m8,Group:EE,BBox:f8,ProxyProperty:v8}=u8._ModuleSupport,z4=class{constructor(){this.top=0,this.bottom=0}};me([N4(g8)],z4.prototype,"top",2),me([N4(g8)],z4.prototype,"bottom",2);var HR=class extends u8._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!1,this.padding=new z4,this.root=new EE({name:"root"}),this.seriesRoot=this.root.appendChild(new _4({name:"Series-root",zIndex:DE.SERIES_LAYER,renderToOffscreenCanvas:!0})),this.axisGridGroup=this.root.appendChild(new EE({name:"Axes-Grids",zIndex:DE.AXIS_GRID})),this.axisGroup=this.root.appendChild(new EE({name:"Axes-Grids",zIndex:DE.AXIS_GRID})),this.axisLabelGroup=this.root.appendChild(new EE({name:"Axes-Labels",zIndex:DE.SERIES_LABEL})),this.axisCrosslineRangeGroup=this.root.appendChild(new EE({name:"Axes-Crosslines-Range",zIndex:DE.SERIES_CROSSLINE_RANGE})),this.axisCrosslineLineGroup=this.root.appendChild(new EE({name:"Axes-Crosslines-Line",zIndex:DE.SERIES_CROSSLINE_LINE})),this.axisCrosslineLabelGroup=this.root.appendChild(new EE({name:"Axes-Crosslines-Label",zIndex:DE.SERIES_LABEL})),this.data=[],this._destroyed=!1,this.miniChartAnimationPhase="initial",this.axes=[],this.series=[]}destroy(){this._destroyed||(this.destroySeries(this.series),this.axes.forEach(e=>e.destroy()),this.axes=[],this._destroyed=!0)}onSeriesChange(e,t){var a;let n=(a=t==null?void 0:t.filter(u=>!e.includes(u)))!=null?a:[];this.destroySeries(n);for(let u of e){if(t!=null&&t.includes(u))continue;u.attachSeries(this.seriesRoot,this.seriesRoot,void 0);let y=this;u.chart={get mode(){return"standalone"},get isMiniChart(){return!0},get seriesRect(){return y.seriesRect}},u.resetAnimation(this.miniChartAnimationPhase==="initial"?"initial":"disabled")}}destroySeries(e){e==null||e.forEach(t=>{t.destroy(),t.detachSeries(this.seriesRoot,this.seriesRoot,void 0),t.chart=void 0})}assignSeriesToAxes(){this.axes.forEach(e=>{e.boundSeries=this.series.filter(t=>t.axes[e.direction]===e)})}assignAxesToSeries(){let e={};this.axes.forEach(t=>{var u;let n=t.direction;((u=e[n])!=null?u:e[n]=[]).push(t)}),this.series.forEach(t=>{t.directions.forEach(n=>{let a=e[n];if(!a){m8.warnOnce(`no available axis for direction [${n}]; check series and axes configuration.`);return}let u=t.getKeys(n),y=this.findMatchingAxis(a,u);if(!y){m8.warnOnce(`no matching axis for direction [${n}] and keys [${u}]; check series and axes configuration.`);return}t.axes[n]=y})})}findMatchingAxis(e,t){for(let n of e){if(!n.keys.length)return n;if(t){for(let a of t)if(n.keys.includes(a))return n}}}updateData(e){this.series.forEach(t=>t.setChartData(e)),this.miniChartAnimationPhase==="initial"&&this.ctx.animationManager.onBatchStop(()=>{this.miniChartAnimationPhase="ready",this.series.forEach(t=>t.resetAnimation("disabled"))})}async processData(e){this.series.some(t=>t.canHaveAxes)&&(this.assignAxesToSeries(),this.assignSeriesToAxes());for(let t of this.axes)t.processData();await Promise.all(this.series.map(t=>(t.resetDatumCallbackCache(),t.processData(e))))}computeAxisPadding(){let e=new use;return this.enabled&&this.axes.forEach(({position:t,thickness:n,line:a,label:u})=>{var k;if(t==null)return;let y;n?y=n:y=(a.enabled?a.width:0)+(u.enabled?dse.getLineHeight((k=u.fontSize)!=null?k:0)+u.spacing:0),e[t]=Math.ceil(y)}),e}async layout(e,t){let{padding:n}=this,a=this.seriesRect!=null,u=new f8(0,0,e,t-(n.top+n.bottom));this.seriesRect=u,this.seriesRoot.translationY=n.top,this.seriesRoot.setClipRectCanvasSpace(new f8(0,-n.top,e,t)),this.axes.forEach(y=>{let{position:k="left"}=y;switch(k){case"top":case"bottom":y.range=[0,u.width],y.gridLength=u.height;break;case"right":case"left":{let R=y instanceof cse;y.range=R?[0,u.height]:[u.height,0],y.gridLength=u.width;break}}y.gridPadding=0,y.translation.x=0,y.translation.y=0,k==="right"?y.translation.x=e:k==="bottom"&&(y.translation.y=t),y.calculateLayout(),y.update(a)}),await Promise.all(this.series.map(y=>y.update({seriesRect:u})))}};me([N4(lse)],HR.prototype,"enabled",2),me([v8(["seriesRoot","inset"])],HR.prototype,"inset",2),me([v8(["seriesRoot","cornerRadius"])],HR.prototype,"cornerRadius",2),me([p8({changeValue(e,t=[]){let n={axisNode:this.axisGroup,gridNode:this.axisGridGroup,labelNode:this.axisLabelGroup,crossLineLineNode:this.axisCrosslineLineGroup,crossLineRangeNode:this.axisCrosslineRangeGroup,crossLineLabelNode:this.axisCrosslineLabelGroup};for(let a of t)e.includes(a)||(a.detachAxis(n),a.destroy());for(let a of e)t!=null&&t.includes(a)||a.attachAxis(n)}})],HR.prototype,"axes",2),me([p8({changeValue(e,t){this.onSeriesChange(e,t)}})],HR.prototype,"series",2);var hse=(mt(),T(pt)),{clamp:gse,SliderWidget:y8}=hse._ModuleSupport,pse=class{constructor(e,t){this.ctx=e,this.sliderHandlers=t,this._min=0,this._max=1,this.minRange=.001,this.dragStartX=0,this.ctx=e,this.toolbar=e.proxyInteractionService.createProxyContainer({type:"toolbar",domManagerId:"navigator-toolbar",classList:["ag-charts-proxy-navigator-toolbar"],orientation:"vertical",ariaLabel:{id:"ariaLabelNavigator"}}),this.sliders=[e.proxyInteractionService.createProxyElement({type:"slider",domIndex:1,ariaLabel:{id:"ariaLabelNavigatorMinimum"},parent:this.toolbar,cursor:"ew-resize"}),e.proxyInteractionService.createProxyElement({type:"slider",domIndex:0,ariaLabel:{id:"ariaLabelNavigatorRange"},parent:this.toolbar,cursor:"grab"}),e.proxyInteractionService.createProxyElement({type:"slider",ariaLabel:{id:"ariaLabelNavigatorMaximum"},parent:this.toolbar,cursor:"ew-resize"})];for(let[n,a]of["min","pan","max"].entries()){let u=this.sliders[n];u.step=y8.STEP_HUNDRETH,u.keyboardStep=y8.STEP_ONE,u.orientation="horizontal",u.setPreventsDefault(!1),u.addListener("drag-start",y=>this.onDragStart(u,y,a)),u.addListener("drag-move",y=>this.onDrag(u,y,a)),u.addListener("drag-end",()=>this.updateSliderRatios()),u.addListener("contextmenu",y=>this.onContextMenu(u,y))}this.sliders[0].addListener("change",()=>this.onMinSliderChange()),this.sliders[1].addListener("change",()=>this.onPanSliderChange()),this.sliders[2].addListener("change",()=>this.onMaxSliderChange()),this.updateSliderRatios(),this.updateVisibility(!1)}destroy(){this.toolbar.destroy()}updateVisibility(e){this.toolbar.setHidden(!e)}updateZoom(){let{_min:e,_max:t}=this;if(!(e==null||t==null))return this.ctx.zoomManager.updateZoom("navigator",{x:{min:e,max:t}})}updateBounds(e){this.toolbar.setBounds(e)}updateSliderBounds(e,t){this.sliders[e].setBounds(t)}updateMinMax(e,t){this._min=e,this._max=t,this.updateSliderRatios()}updateSliderRatios(){let{_min:e,_max:t}=this,n=this.ctx.localeManager.t("ariaValuePanRange",{min:e,max:t});this.sliders[0].setValueRatio(e),this.sliders[1].setValueRatio(e,{ariaValueText:n}),this.sliders[2].setValueRatio(t)}toCanvasOffsets(e){return{offsetX:this.dragStartX+e.originDeltaX}}onDragStart(e,t,n){let a=this.toolbar.cssLeft(),u=e.cssLeft();this.dragStartX=a+u+t.offsetX,this.sliderHandlers.onDragStart(n,this.toCanvasOffsets(t))}onDrag(e,t,n){this.sliderHandlers.onDrag(n,this.toCanvasOffsets(t))}onContextMenu(e,{sourceEvent:t,offsetX:n,offsetY:a}){let{x:u,y}=this.toolbar.getBounds(),{x:k,y:R}=e.getBounds(),F=n+u+k,_=a+y+R;this.ctx.contextMenuRegistry.dispatchContext("all",{sourceEvent:t,canvasX:F,canvasY:_},{})}onPanSliderChange(){let e=this.sliders[1].getValueRatio(),t=this._max-this._min;this._min=gse(0,e,1-t),this._max=this._min+t,this.updateZoom()}onMinSliderChange(){this._min=this.sliders[0].clampValueRatio(0,this._max-this.minRange),this.updateZoom()}onMaxSliderChange(){this._max=this.sliders[2].clampValueRatio(this._min+this.minRange,1),this.updateZoom()}},b8=(mt(),T(pt)),{Validate:N_,ScenePathChangeDetection:z_,POSITIVE_NUMBER:B4,BOOLEAN:mse,BBox:fse,ExtendedPath2D:vse}=b8._ModuleSupport,mA=class extends b8._ModuleSupport.Path{constructor(){super(...arguments),this.zIndex=3,this.centerX=0,this.centerY=0,this.width=8,this.height=16,this.cornerRadius=4,this.grip=!0,this.gripPath=new vse}setCenter(e,t){this.dirtyPath=!0,(this.centerX!==e||this.centerY!==t)&&(this.centerX=e,this.centerY=t,this.markDirty())}static align(e,t,n,a,u,y,k,R,F){let _=e.align(n+u*k)+F,V=_+e.align(n+u*k,u*(R-k))-2*F,K=e.align(a+y/2);e.setCenter(_,K),t.setCenter(V,K)}computeBBox(){let{centerX:e,centerY:t,width:n,height:a}=this,u=e-n/2,y=t-a/2;return new fse(u,y,n,a)}isPointInPath(e,t){return this.getBBox().containsPoint(e,t)}updatePath(){var q,$,te;let{centerX:e,centerY:t,path:n,gripPath:a,strokeWidth:u,cornerRadius:y,grip:k}=this,R=u/2,F=(te=($=(q=this.layerManager)==null?void 0:q.canvas)==null?void 0:$.pixelRatio)!=null?te:1;n.clear(),a.clear();let _=Math.floor(this.width/2*F)/F,V=Math.floor(this.height/2*F)/F;n.roundRect(e-_+R,t-V+R,2*(_-R),2*(V-R),y);let K=3;if(k)for(let se=-.5;se<=.5;se+=1)for(let de=-1;de<=1;de+=1)a.arc(e+se*K,t+de*K,1,0,2*Math.PI),a.closePath()}renderFill(e,t){let{stroke:n}=this;super.renderFill(e,t),e.fillStyle=typeof n=="string"?n:"black",e.fill(this.gripPath.getPath2D())}};mA.className="RangeHandle",me([N_(B4),z_()],mA.prototype,"width",2),me([N_(B4),z_()],mA.prototype,"height",2),me([N_(B4),z_()],mA.prototype,"cornerRadius",2),me([N_(mse),z_()],mA.prototype,"grip",2);var yse=(mt(),T(pt)),{Path:bse,BBox:D2,ExtendedPath2D:Cse,clippedRoundRect:G4,POSITIVE_NUMBER:Sse,Validate:wse,ScenePathChangeDetection:xse}=yse._ModuleSupport,V4=class extends bse{constructor(){super(...arguments),this.cornerRadius=4,this.zIndex=2,this.x=0,this.y=0,this.width=200,this.height=30,this.min=0,this.max=1,this.visiblePath=new Cse}layout(e,t,n,a,u,y){u=isNaN(u)?this.min:u,y=isNaN(y)?this.max:y,(e!==this.x||t!==this.y||n!==this.width||this.height!==a||u!==this.min||y!==this.max)&&(this.x=e,this.y=t,this.width=n,this.height=a,this.min=u,this.max=y,this.dirtyPath=!0,this.markDirty())}computeBBox(){let{x:e,y:t,width:n,height:a}=this;return new D2(e,t,n,a)}computeVisibleRangeBBox(){let{x:e,y:t,width:n,height:a,min:u,max:y}=this,k=e+n*u,R=e+n*y;return new D2(k,t,R-k,a)}updatePath(){let{path:e,visiblePath:t,x:n,y:a,width:u,height:y,min:k,max:R,strokeWidth:F,cornerRadius:_}=this,V=F/2;e.clear(),t.clear();let K=this.align(n)+V,q=this.align(a)+V,$=this.align(n,u)-2*V,te=this.align(a,y)-2*V,se=this.align(n+u*k)+V,de=se+this.align(n+u*k,u*(R-k))-2*V,pe={topLeft:_,topRight:_,bottomRight:_,bottomLeft:_};G4(e,K,q,$,te,pe,new D2(K,q,se-K,te)),G4(e,K,q,$,te,pe,new D2(de,q,$+K-de,te)),G4(t,K,q,$,te,pe,new D2(se,q,de-se,te))}renderStroke(e,t){super.renderStroke(e,t),super.renderStroke(e,this.visiblePath.getPath2D())}};V4.className="RangeMask",me([wse(Sse),xse()],V4.prototype,"cornerRadius",2);var B_=(mt(),T(pt)),Mse=class extends B_._ModuleSupport.Group{constructor(e){super({name:"rangeSelectorGroup",zIndex:B_._ModuleSupport.ZIndexMap.NAVIGATOR}),this.x=0,this.y=0,this.width=200,this.height=30,this.lOffset=0,this.rOffset=0,this.background=this.appendChild(new B_._ModuleSupport.TranslatableGroup({name:"navigator-background",zIndex:1})),this.append(e)}layout(e,t,n,a,u,y){this.x=e,this.y=t,this.width=n,this.height=a,this.lOffset=u,this.rOffset=y,this.background.translationX=e,this.background.translationY=t,this.markDirty()}updateBackground(e,t){e!=null&&this.background.removeChild(e),t!=null&&this.background.appendChild(t),this.markDirty()}computeBBox(){let{x:e,y:t,width:n,height:a,lOffset:u,rOffset:y}=this;return new B_._ModuleSupport.BBox(e-u,t,n+(u+y),a)}},{clamp:j4,BaseModuleInstance:kse,ObserveChanges:H4,Validate:G_,BOOLEAN:Ase,POSITIVE_NUMBER:W4}=A2._ModuleSupport,WR=class extends kse{constructor(e){super(),this.ctx=e,this.enabled=!1,this.mask=new V4,this.minHandle=new mA,this.maxHandle=new mA,this.maskVisibleRange={id:"navigator-mask-visible-range",getBBox:()=>this.mask.computeVisibleRangeBBox(),toCanvasBBox:()=>this.mask.computeVisibleRangeBBox(),fromCanvasPoint:(t,n)=>({x:t,y:n})},this.height=30,this.cornerRadius=0,this.spacing=10,this.x=0,this.y=0,this.width=0,this.rangeSelector=new Mse([this.mask,this.minHandle,this.maxHandle]),this.destroyFns.push(e.scene.attachNode(this.rangeSelector),this.ctx.localeManager.addListener("locale-changed",()=>this.updateZoom()),this.ctx.layoutManager.registerElement(A2._ModuleSupport.LayoutElement.Navigator,t=>this.onLayoutStart(t)),this.ctx.layoutManager.addListener("layout:complete",t=>this.onLayoutComplete(t)),e.zoomManager.addListener("zoom-change",t=>this.onZoomChange(t))),this.domProxy=new pse(e,this),this.updateGroupVisibility(),this.miniChart=new HR(e)}updateBackground(e,t){var n;(n=this.rangeSelector)==null||n.updateBackground(e,t)}updateGroupVisibility(){let{enabled:e}=this;this.rangeSelector==null||e===this.rangeSelector.visible||(this.rangeSelector.visible=e,this.domProxy.updateVisibility(e),e?this.updateZoom():this.ctx.zoomManager.updateZoom("navigator"))}onLayoutStart(e){if(this.enabled){let{layoutBox:t}=e,n=this.height+this.spacing;t.shrink(n,"bottom"),this.y=t.y+t.height+this.spacing}else this.y=0;if(this.enabled&&this.miniChart){let{top:t,bottom:n}=this.miniChart.computeAxisPadding();e.layoutBox.shrink(t+n,"bottom"),this.y-=n,this.miniChart.inset=this.mask.strokeWidth/2,this.miniChart.cornerRadius=this.mask.cornerRadius}}async onLayoutComplete(e){var y;let{x:t,width:n}=e.series.rect,{y:a,height:u}=this;if(this.domProxy.updateVisibility(this.enabled),this.enabled){let{_min:k,_max:R}=this.domProxy;this.layoutNodes(t,a,n,u,k,R),this.domProxy.updateBounds({x:t,y:a,width:n,height:u})}this.x=t,this.width=n,await((y=this.miniChart)==null?void 0:y.layout(n,u))}canDrag(){let e=A2._ModuleSupport.InteractionState.Default|A2._ModuleSupport.InteractionState.Animation|A2._ModuleSupport.InteractionState.ZoomDrag;return this.enabled&&this.ctx.interactionManager.getState()&e}onDragStart(e,{offsetX:t}){this.canDrag()&&(e==="pan"&&(this.panStart=(t-this.x)/this.width-this.domProxy._min),this.ctx.zoomManager.fireZoomPanStartEvent("navigator"))}onDrag(e,{offsetX:t}){if(!this.canDrag())return;let{panStart:n,x:a,width:u}=this,{minRange:y}=this.domProxy,{_min:k,_max:R}=this.domProxy,F=(t-a)/u;if(e==="min")k=j4(0,F,R-y);else if(e==="max")R=j4(k+y,F,1);else if(e==="pan"&&n!=null){let _=R-k;k=j4(0,F-n,1-_),R=k+_}this.domProxy._min=k,this.domProxy._max=R,this.updateZoom()}onZoomChange(e){let{x:t}=e;if(!t)return;let{x:n,y:a,width:u,height:y}=this,{min:k,max:R}=t;this.domProxy.updateMinMax(k,R),this.layoutNodes(n,a,u,y,k,R)}layoutNodes(e,t,n,a,u,y){let{rangeSelector:k,mask:R,minHandle:F,maxHandle:_}=this;R.layout(e,t,n,a,u,y),k.layout(e,t,n,a,F.width/2,_.width/2),mA.align(F,_,e,t,n,a,u,y,R.strokeWidth/2),u+(y-u)/2<.5?(F.zIndex=3,_.zIndex=4):(F.zIndex=4,_.zIndex=3),[F,this.maskVisibleRange,_].forEach((V,K)=>{let q=V.getBBox(),$={x:q.x-e,y:q.y-t,height:q.height,width:q.width};this.domProxy.updateSliderBounds(K,$)})}updateZoom(){this.enabled&&this.domProxy.updateZoom()}updateData(e){var t;return(t=this.miniChart)==null?void 0:t.updateData(e)}async processData(e){var t;if(this.miniChart)return(t=this.miniChart)==null?void 0:t.processData(e)}};me([H4((e,t,n)=>{e.updateBackground(n==null?void 0:n.root,t==null?void 0:t.root)})],WR.prototype,"miniChart",2),me([G_(Ase),H4((e,t)=>{e.ctx.zoomManager.setNavigatorEnabled(!!t),e.updateGroupVisibility()})],WR.prototype,"enabled",2),me([G_(W4)],WR.prototype,"height",2),me([G_(W4),H4((e,t)=>{e.mask.cornerRadius=t})],WR.prototype,"cornerRadius",2),me([G_(W4)],WR.prototype,"spacing",2);var{DEFAULT_FONT_FAMILY:Dse,DEFAULT_LABEL_COLOUR:Ese,DEFAULT_INVERTED_BACKGROUND_COLOUR:Ise,DEFAULT_BACKGROUND_COLOUR:C8,DEFAULT_NAVIGATOR_STROKE:U4}=ose._ModuleSupport.ThemeSymbols,Tse={type:"root",optionsKey:"navigator",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new WR(e),removable:!1,themeTemplate:{navigator:{enabled:!1,height:18,cornerRadius:4,mask:{fill:Ise,fillOpacity:.1,stroke:U4,strokeWidth:1},minHandle:{fill:C8,stroke:U4,strokeWidth:1,width:12,height:24,cornerRadius:4},maxHandle:{fill:C8,stroke:U4,strokeWidth:1,width:12,height:24,cornerRadius:4},miniChart:{enabled:!1,label:{color:Ese,fontSize:10,fontFamily:Dse,spacing:5},padding:{top:0,bottom:0}}}}},S8=(mt(),T(pt)),Rse=(mt(),T(pt)),{AND:Pse,ARRAY:w8,FUNCTION:Lse,NUMBER:Ose,OR:Fse,ToolbarButtonProperties:_se,Validate:Nse}=Rse._ModuleSupport,x8=class extends _se{};me([Nse(Fse(Ose,Pse(w8,w8.restrict({length:2})),Lse))],x8.prototype,"value",2);var{BOOLEAN:zse,OBJECT:Bse,ChartAxisDirection:K4,LayoutElement:Gse,PropertiesArray:Vse,Toolbar:jse,Validate:M8}=S8._ModuleSupport,q4=class extends S8._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!1,this.buttons=new Vse(x8),this.verticalSpacing=10,this.toolbar=new jse(this.ctx.localeManager),this.toolbar.addClass("ag-charts-range-buttons"),e.domManager.addChild("canvas-overlay","range-buttons",this.toolbar.getElement()),this.destroyFns.push(this.toolbar.addToolbarListener("button-pressed",this.onButtonPress.bind(this)),e.layoutManager.registerElement(Gse.ToolbarBottom,this.onLayoutStart.bind(this)),e.zoomManager.addListener("zoom-change",this.onZoomChanged.bind(this)),this.teardown.bind(this))}teardown(){this.ctx.domManager.removeChild("canvas-overlay","range-buttons"),this.toolbar.destroy()}onLayoutStart(e){let{buttons:t,ctx:n,enabled:a,toolbar:u,verticalSpacing:y}=this,{layoutBox:k}=e;if(!a||!n.zoomManager.isZoomEnabled()){u.setHidden(!0);return}u.setHidden(!1),u.updateButtons(t);let R=u.getBounds().height;u.setBounds({x:k.x,y:k.y+k.height-R,width:k.width,height:R}),k.shrink({bottom:R+y})}onZoomChanged(){this.toolbar.clearActiveButton()}onButtonPress({button:{index:e}}){let{zoomManager:t}=this.ctx,n=this.buttons.at(e);if(!n)return;let{value:a}=n;typeof a=="number"?t.extendToEnd("zoom-buttons",K4.X,a):Array.isArray(a)?t.updateWith("zoom-buttons",K4.X,()=>a):typeof a=="function"&&t.updateWith("zoom-buttons",K4.X,a),this.toolbar.toggleActiveButtonByIndex(e)}};me([M8(zse)],q4.prototype,"enabled",2),me([M8(Bse)],q4.prototype,"buttons",2);var k8=1e3*60*60*24,Y4=k8*30,Hse=k8*365,Wse={type:"root",optionsKey:"ranges",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new q4(e),themeTemplate:{ranges:{enabled:!1,buttons:[{label:"toolbarRange1Month",ariaLabel:"toolbarRange1MonthAria",value:Y4},{label:"toolbarRange3Months",ariaLabel:"toolbarRange3MonthsAria",value:3*Y4},{label:"toolbarRange6Months",ariaLabel:"toolbarRange6MonthsAria",value:6*Y4},{label:"toolbarRangeYearToDate",ariaLabel:"toolbarRangeYearToDateAria",value:(e,t)=>[new Date(`${new Date(t).getFullYear()}-01-01`).getTime(),t]},{label:"toolbarRange1Year",ariaLabel:"toolbarRange1YearAria",value:Hse},{label:"toolbarRangeAll",ariaLabel:"toolbarRangeAllAria",value:(e,t)=>[e,t]}]}}},Cxe=(mt(),T(pt)),A8=(mt(),T(pt)),D8=class LO extends A8._ModuleSupport.BaseModuleInstance{constructor(t){super(),this.ctx=t,this.activeSections=new Set,this.sectionButtons={annotations:[],chartToolbar:[]}}getSharedToolbar(t){return this.sharedToolbar||this.createSharedToolbar(),this.toolbarWithSection(t)}createSharedToolbar(){this.sharedToolbar=new A8._ModuleSupport.Toolbar(this.ctx.localeManager,"vertical"),this.sharedToolbar.addClass("ag-charts-shared-toolbar"),this.ctx.domManager.addChild("canvas-overlay","shared-toolbar",this.sharedToolbar.getElement()),this.destroyFns.push(()=>{var t;(t=this.sharedToolbar)==null||t.destroy(),this.sharedToolbar=void 0,this.ctx.domManager.removeChild("canvas-overlay","shared-toolbar")})}toolbarWithSection(t){let n=this.sharedToolbar,a={layout:u=>{if(this.firstLayoutSection!=null&&this.firstLayoutSection!==t&&this.activeSections.has(this.firstLayoutSection))return;this.firstLayoutSection=t;let y=n.getBounds().width;n.setBounds({x:u.x,y:u.y,width:y}),u.shrink({left:y+n.horizontalSpacing})},addToolbarListener:(u,y)=>n.addToolbarListener(u,k=>{let R=this.getSectionIndex(t,k.button.index);if(R<0)return;let F=He(ge({},k),{button:this.sectionButtons[t][R]});y(F)}),updateButtons:u=>{this.sectionButtons[t]=u;let y=LO.SECTION_ORDER.flatMap(k=>this.sectionButtons[k]);n.updateButtons(y)},updateButtonByIndex:(u,y)=>{n.updateButtonByIndex(this.getIndex(t,u),y)},toggleActiveButtonByIndex:u=>{n.toggleActiveButtonByIndex(this.getIndex(t,u))},toggleButtonEnabledByIndex:(u,y)=>{n.toggleButtonEnabledByIndex(this.getIndex(t,u),y)},setHidden:u=>{u?this.activeSections.delete(t):this.activeSections.add(t);let y=0;for(let k of LO.SECTION_ORDER){if(k!==t){y+=this.sectionButtons[k].length;continue}for(let R of this.sectionButtons[t].keys())n.setButtonHiddenByIndex(y+R,u)}},destroy:()=>{a.setHidden(!0),this.activeSections.size===0&&this.destroy()},clearActiveButton:n.clearActiveButton.bind(n),addListener:n.addListener.bind(n),removeListener:n.removeListener.bind(n)};return a.setHidden(!1),a}getIndex(t,n){let a=0;for(let u of LO.SECTION_ORDER){if(u===t)return a+n;a+=this.sectionButtons[u].length}return-1}getSectionIndex(t,n){let a=0;for(let u of LO.SECTION_ORDER){if(u===t)return n>=a+this.sectionButtons[t].length?-1:n-a;a+=this.sectionButtons[u].length}return-1}};D8.SECTION_ORDER=["chartToolbar","annotations"];var Use=D8,Kse={type:"context",contextKey:"sharedToolbar",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new Use(e)},UR=(mt(),T(pt)),X4=(mt(),T(pt)),{CachedTextMeasurerPool:E2,ZIndexMap:qse,LayoutElement:Yse,Validate:Ih,BaseProperties:Xse,OBJECT:KR,BOOLEAN:Zse,STRING:qR,COLOR_STRING:$se,RATIO:Qse,valueProperty:Jse,TextUtils:ele,Group:tle,Label:I2,Rect:ile,Text:$c}=X4._ModuleSupport,E8={ohlc:62,candlestick:62,"hollow-candlestick":62,line:96,"step-line":96,hlc:184,"high-low":800},nle={up:"positive",down:"negative"},ale={hlc:"altNeutral"},Z4=class extends Xse{constructor(){super(...arguments),this.fill="black",this.fillOpacity=1}};me([Ih($se)],Z4.prototype,"fill",2),me([Ih(Qse)],Z4.prototype,"fillOpacity",2);var Og=class extends X4._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!1,this.openKey=void 0,this.highKey=void 0,this.lowKey=void 0,this.closeKey=void 0,this.volumeKey=void 0,this.title=new I2,this.positive=new I2,this.negative=new I2,this.neutral=new I2,this.altNeutral=new I2,this.background=new Z4,this.layoutStyle="block",this.id="status-bar",this.data=void 0,this.layer=new tle({name:"StatusBar",zIndex:qse.STATUS_BAR}),this.labelGroup=this.layer.appendChild(new X4._ModuleSupport.TranslatableGroup),this.backgroundNode=this.labelGroup.appendChild(new ile),this.labels=[{label:"O",configuration:2,title:this.labelGroup.appendChild(new $c),value:this.labelGroup.appendChild(new $c),id:"openValue",key:"openKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"H",configuration:16,title:this.labelGroup.appendChild(new $c),value:this.labelGroup.appendChild(new $c),id:"highValue",key:"highKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"H",configuration:256,title:this.labelGroup.appendChild(new $c),value:this.labelGroup.appendChild(new $c),style:"neutral",id:"highValue",key:"highKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"L",configuration:8,title:this.labelGroup.appendChild(new $c),value:this.labelGroup.appendChild(new $c),id:"lowValue",key:"lowKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"L",configuration:512,title:this.labelGroup.appendChild(new $c),value:this.labelGroup.appendChild(new $c),style:"neutral",id:"lowValue",key:"lowKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"C",configuration:4,title:this.labelGroup.appendChild(new $c),value:this.labelGroup.appendChild(new $c),id:"closeValue",key:"closeKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"C",configuration:128,title:this.labelGroup.appendChild(new $c),value:this.labelGroup.appendChild(new $c),id:"closeValue",key:"closeKey",style:"neutral",domain:void 0,formatter:new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},{label:"",configuration:64,title:this.labelGroup.appendChild(new $c),value:this.labelGroup.appendChild(new $c),style:"neutral",id:"closeValue",key:"closeKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:2,maximumFractionDigits:2})},{label:"Vol",configuration:32,title:this.labelGroup.appendChild(new $c),value:this.labelGroup.appendChild(new $c),id:"volumeValue",key:"volumeKey",domain:void 0,formatter:new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:2,maximumFractionDigits:2})}],this.highlightManager=e.highlightManager,this.labelGroup.visible=!1,this.destroyFns.push(e.scene.attachNode(this.layer),e.layoutManager.registerElement(Yse.Overlay,t=>this.startPerformLayout(t)),e.layoutManager.addListener("layout:complete",t=>this.onLayoutComplete(t)),e.highlightManager.addListener("highlight-change",()=>this.updateHighlight()))}async processData(e){if(!this.enabled||this.data==null)return;let t=[];for(let u of this.labels){let{id:y,key:k}=u,R=this[k];R==null?u.domain=void 0:t.push(Jse(R,"number",{id:y}))}if(t.length===0)return;let{processedData:n,dataModel:a}=await e.request(this.id,this.data,{props:t});for(let u of this.labels){let{id:y,key:k}=u;this[k]!=null&&(u.domain=a.getDomain(this,y,"value",n))}}startPerformLayout(e){var q;if(this.labelGroup.translationX=0,this.labelGroup.translationY=0,!this.enabled)return;let{layoutBox:t}=e,n=4,a=12,u=0,y=8;this.labelGroup.translationY=t.y+u;let k=Math.max(this.title.fontSize,this.positive.fontSize,this.negative.fontSize),R=ele.getLineHeight(k),F=(q=E8[this.getChartType()])!=null?q:0,_=0,V,K="alphabetic";if(this.layoutStyle==="block")t.shrink(u+R+y,"top"),V=k+(R-k)/2;else{let{title:$}=this.ctx.chartService;if(K="top",V=u+$.padding,$.enabled){let te=$.node.getBBox();_=te.x+te.width+a}else _=$.padding}for(let{label:$,configuration:te,title:se,value:de,domain:pe,formatter:Ce}of this.labels){if(pe==null||!(F&te)){se.visible=!1,de.visible=!1;continue}let Se=Math.max(E2.measureText(Ce.format(pe[0]),{font:this.positive.getFont(),textBaseline:K,textAlign:"left"}).width,E2.measureText(Ce.format(pe[1]),{font:this.positive.getFont(),textBaseline:K,textAlign:"left"}).width,E2.measureText(Ce.format(pe[0]),{font:this.negative.getFont(),textBaseline:K,textAlign:"left"}).width,E2.measureText(Ce.format(pe[1]),{font:this.negative.getFont(),textBaseline:K,textAlign:"left"}).width);se.visible=!0,de.visible=!0;let ve=E2.measureText($,{font:this.title.getFont(),textBaseline:K,textAlign:"left"});se.setFont(this.title),se.fill=this.title.color,se.text=$,se.textBaseline=K,se.y=V,se.x=_,_+=ve.width+n,de.textBaseline=K,de.y=V,de.x=_,_+=Se+a}this.backgroundNode.x=0,this.backgroundNode.y=0,this.backgroundNode.width=_-a,this.backgroundNode.height=R+u+y,this.backgroundNode.fill=this.background.fill,this.backgroundNode.fillOpacity=this.background.fillOpacity}onLayoutComplete(e){this.labelGroup.translationX=e.series.rect.x,this.updateHighlight()}updateHighlight(){var u,y,k,R;if(!this.enabled)return;let e=this.highlightManager.getActiveHighlight(),t=(y=e==null?void 0:e.datum)!=null?y:(u=this.data)==null?void 0:u.at(-1);if(t==null){this.labelGroup.visible=!1;return}this.labelGroup.visible=!0;let n=e==null?void 0:e.itemId,a=n!=null?nle[n]:void 0;a==null&&this.openKey!=null&&this.closeKey!=null&&(t[this.openKey]<t[this.closeKey]?a="positive":a="negative");for(let{domain:F,value:_,key:V,formatter:K,style:q}of this.labels){if(F==null)continue;let $=(k=q!=null?q:a)!=null?k:"neutral";$==="neutral"&&($=(R=ale[this.getChartType()])!=null?R:$);let te=this[V],se=te!=null?t==null?void 0:t[te]:void 0;_.setFont(this[$]),_.fill=this[$].color,_.text=typeof se=="number"?K.format(se):""}}getChartType(){var t,n;let e=(n=(t=this.ctx.chartService.publicApi)==null?void 0:t.getOptions())==null?void 0:n.chartType;return(e==null||E8[e]==null)&&(e="candlestick"),e}};me([Ih(Zse)],Og.prototype,"enabled",2),me([Ih(qR,{optional:!0})],Og.prototype,"openKey",2),me([Ih(qR,{optional:!0})],Og.prototype,"highKey",2),me([Ih(qR,{optional:!0})],Og.prototype,"lowKey",2),me([Ih(qR,{optional:!0})],Og.prototype,"closeKey",2),me([Ih(qR,{optional:!0})],Og.prototype,"volumeKey",2),me([Ih(KR)],Og.prototype,"title",2),me([Ih(KR)],Og.prototype,"positive",2),me([Ih(KR)],Og.prototype,"negative",2),me([Ih(KR)],Og.prototype,"neutral",2),me([Ih(KR)],Og.prototype,"altNeutral",2),me([Ih(KR)],Og.prototype,"background",2),me([Ih(qR)],Og.prototype,"layoutStyle",2);var ole={type:"root",identifier:"status-bar",optionsKey:"statusBar",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new Og(e),themeTemplate:{statusBar:{enabled:!1,layoutStyle:UR._ModuleSupport.ThemeSymbols.DEFAULT_CAPTION_LAYOUT_STYLE,title:{color:UR._ModuleSupport.ThemeSymbols.DEFAULT_LABEL_COLOUR},positive:{color:UR._ModuleSupport.ThemeSymbols.PALETTE_UP_STROKE},negative:{color:UR._ModuleSupport.ThemeSymbols.PALETTE_DOWN_STROKE},neutral:{color:UR._ModuleSupport.ThemeSymbols.PALETTE_NEUTRAL_STROKE},background:{fill:UR._ModuleSupport.ThemeSymbols.DEFAULT_BACKGROUND_COLOUR,fillOpacity:.5},altNeutral:{color:"gray"}}}},rle=(mt(),T(pt)),{BOOLEAN:$4,STRING:sle,UNION:lle,BaseProperties:cle,CartesianAxis:I8,ChartUpdateType:T8,isDate:dle,isDefined:ule,isFiniteNumber:V_,unique:hle,ObserveChanges:T2,TooltipManager:gle,Validate:R2,Logger:ple}=rle._ModuleSupport,IE=class extends cle{constructor(e){super(),this.moduleContext=e,this.enabled=!1,this.axes="x",this.nodeInteraction=!0,this.zoom=!0}updateSiblings(e){let{syncManager:t}=this.moduleContext;for(let n of t.getGroupSiblings(e!=null?e:this.groupId))this.updateChart(n)}updateChart(e,t=T8.UPDATE_DATA){e.ctx.updateService.update(t,{skipSync:!0})}enabledZoomSync(){let{syncManager:e,zoomManager:t}=this.moduleContext;this.disableZoomSync=t.addListener("zoom-change",()=>{var n;for(let a of e.getGroupSiblings(this.groupId))(n=a.modulesManager.getModule("sync"))!=null&&n.zoom&&a.ctx.zoomManager.updateZoom("sync",this.mergeZoom(a))})}enabledNodeInteractionSync(){let{highlightManager:e,syncManager:t}=this.moduleContext;this.disableNodeInteractionSync=e.addListener("highlight-change",n=>{var a,u,y,k,R,F,_,V,K,q,$,te;for(let se of t.getGroupSiblings(this.groupId))if((a=se.modulesManager.getModule("sync"))!=null&&a.nodeInteraction){if(!((u=n.currentHighlight)!=null&&u.datum)){se.ctx.highlightManager.updateHighlight(se.id),se.ctx.tooltipManager.removeTooltip(se.id);continue}for(let de of se.axes){let pe=this.axes==="xy"?"x":this.axes;if(!I8.is(de)||de.direction!==pe)continue;let Ce=se.series.map(Se=>{let ve=Se.getKeys(de.direction);if(de.keys.length&&!de.keys.some(et=>ve.includes(et)))return;let{nodeData:ke}=Se.contextNodeData;if(!(ke!=null&&ke.length))return;let De=ke[0][`${de.direction}Key`],Te=n.currentHighlight.datum[De],ze=dle(Te);ze&&(Te=Te.getTime());let qe=ke.find(et=>{let $e=et.datum[De];return ze?$e.getTime()===Te:$e===Te});return qe?{series:Se,nodeDatum:qe}:null}).filter(ule);if(Ce.length<2&&((y=Ce[0])==null?void 0:y.nodeDatum)!==se.ctx.highlightManager.getActiveHighlight()){let{series:Se,nodeDatum:ve}=(k=Ce[0])!=null?k:{};if(se.ctx.highlightManager.updateHighlight(se.id,ve),ve){let ke=(V=(_=(R=ve.midPoint)==null?void 0:R.x)!=null?_:(F=ve.point)==null?void 0:F.x)!=null?V:0,De=(te=($=(K=ve.midPoint)==null?void 0:K.y)!=null?$:(q=ve.point)==null?void 0:q.y)!=null?te:0,Te=gle.makeTooltipMeta({type:"hover",canvasX:ke,canvasY:De},ve);delete Te.lastPointerEvent,se.ctx.tooltipManager.updateTooltip(se.id,Te,Se.getTooltipContent(ve))}else se.ctx.tooltipManager.removeTooltip(se.id);this.updateChart(se,T8.SERIES_UPDATE)}}}})}getSyncedDomain(e){if(!I8.is(e)||this.axes!=="xy"&&this.axes!==e.direction)return;let{syncManager:t}=this.moduleContext,n=t.getGroup(this.groupId),[{axes:a}]=n,{direction:u,min:y,max:k,nice:R,reverse:F}=e;for(let _ of a)if(u===_.direction&&(R!==_.nice||F!==_.reverse||y!==_.min&&(V_(y)||V_(_.min))||k!==_.max&&(V_(k)||V_(_.max)))){ple.warnOnce("To allow synchronization, ensure that all charts have matching min, max, nice, and reverse properties on the synchronized axes."),this.enabled=!1;return}return hle(n.flatMap(_=>_.series).filter(_=>{if(_.visible){let V=_.getKeys(e.direction);return e.keys.length?e.keys.some(K=>V.includes(K)):!0}}).flatMap(_=>_.getDomain(e.direction)))}mergeZoom(e){var a,u;let{zoomManager:t}=this.moduleContext;if(this.axes==="xy")return t.getZoom();let n=(a=e.ctx.zoomManager.getZoom())!=null?a:{};return n[this.axes]=(u=t.getZoom())==null?void 0:u[this.axes],n}onEnabledChange(){let{syncManager:e}=this.moduleContext;this.enabled?e.subscribe(this.groupId):e.unsubscribe(this.groupId),this.updateSiblings(),this.onNodeInteractionChange(),this.onZoomChange()}onGroupIdChange(e,t){if(!this.enabled||e===t)return;let{syncManager:n}=this.moduleContext;n.unsubscribe(t),n.subscribe(e),this.updateSiblings(t),this.updateSiblings(e)}onAxesChange(){if(!this.enabled)return;let{syncManager:e}=this.moduleContext;this.updateChart(e.getChart())}onNodeInteractionChange(){var e;this.enabled&&this.nodeInteraction?this.enabledNodeInteractionSync():(e=this.disableNodeInteractionSync)==null||e.call(this)}onZoomChange(){var e;this.enabled&&this.zoom?this.enabledZoomSync():(e=this.disableZoomSync)==null||e.call(this)}destroy(){var t;let{syncManager:e}=this.moduleContext;e.unsubscribe(this.groupId),this.updateSiblings(),(t=this.disableZoomSync)==null||t.call(this)}};IE.className="Sync",me([R2($4),T2(e=>e.onEnabledChange())],IE.prototype,"enabled",2),me([R2(sle,{optional:!0}),T2((e,t,n)=>e.onGroupIdChange(t,n))],IE.prototype,"groupId",2),me([R2(lle(["x","y","xy"],"an axis")),T2(e=>e.onAxesChange())],IE.prototype,"axes",2),me([R2($4),T2(e=>e.onNodeInteractionChange())],IE.prototype,"nodeInteraction",2),me([R2($4),T2(e=>e.onZoomChange())],IE.prototype,"zoom",2);var mle={type:"root",optionsKey:"sync",packageType:"enterprise",chartTypes:["cartesian"],moduleFactory:e=>new IE(e),themeTemplate:{sync:{enabled:!1}}},Aw=(mt(),T(pt)),R8=(mt(),T(pt)),{COLOR_STRING:fle,RATIO:vle,Validate:P8}=R8._ModuleSupport,j_=class extends R8._ModuleSupport.Rect{constructor(){super(...arguments),this.fill="rgb(33, 150, 243)",this.fillOpacity=.2}};j_.className="ZoomRect",me([P8(fle)],j_.prototype,"fill",2),me([P8(vle)],j_.prototype,"fillOpacity",2);var Q4=(mt(),T(pt)),yle=(mt(),T(pt)),{clamp:ble,isNumberEqual:L8,round:O8}=yle._ModuleSupport,Do={min:0,max:1},J4="end",eG="middle",H_=(e,t=Do.min,n=Do.max)=>ble(t,e,n);function tG(){return{x:ge({},Do),y:ge({},Do)}}function jl(e){return e.x.max-e.x.min}function Fg(e){return e.y.max-e.y.min}function F8(e,t,n=1e-10){return L8(e.min,t.min,n)&&L8(e.max,t.max,n)}function iG(e,t,n){return F8(e.x,t.x,n)&&F8(e.y,t.y,n)}function nG(e,t,n){let a=O8(jl(e),10)<=t,u=O8(Fg(e),10)<=n;return a||u}function Vd(e){var t,n,a,u,y,k,R,F;return{x:{min:(n=(t=e==null?void 0:e.x)==null?void 0:t.min)!=null?n:Do.min,max:(u=(a=e==null?void 0:e.x)==null?void 0:a.max)!=null?u:Do.max},y:{min:(k=(y=e==null?void 0:e.y)==null?void 0:y.min)!=null?k:Do.min,max:(F=(R=e==null?void 0:e.y)==null?void 0:R.max)!=null?F:Do.max}}}function Dw(e,t,n){if(!e)return{x:0,y:0};let a=H_(t-e.x,0,e.x+e.width),u=H_(n-e.y,0,e.y+e.height),y=1/e.width*a,k=1-1/e.height*u;return{x:H_(y),y:H_(k)}}function TE(e,t,n){return{x:{min:e.x.min+t,max:e.x.max+t},y:{min:e.y.min+n,max:e.y.max+n}}}function _8(e,t,n){return{x:{min:e.x.min,max:e.x.min+jl(e)*t},y:{min:e.y.min,max:e.y.min+Fg(e)*n}}}function N8(e,t,n){let a=jl(e),u=Fg(e),y=e.x.min+a/2,k=e.y.min+u/2;return{x:{min:y-a*t/2,max:y+a*t/2},y:{min:k-u*n/2,max:k+u*n/2}}}function uy(e,t,n,a){let{min:u,max:y}=t,k=u+(y-u)/2,R=e.max-e.min;switch(n){case"start":return{min:u,max:t.min+R};case"end":return{min:t.max-R,max:y};case"middle":return{min:k-R/2,max:k+R/2};case"pointer":return aG(e,t,a!=null?a:k);default:return{min:u,max:y}}}function aG(e,t,n){let a=e.max-e.min,u=t.max-t.min,y=n*(1-(u-a)),k=n-y,R=e.min+k,F=e.max+k;return{min:R,max:F}}function Cle(e,t,n){return{x:{min:e.x.min*t,max:e.x.max*t},y:{min:e.y.min*n,max:e.y.max*n}}}function Of(e){let t=tG();return t.x=W_(e.x),t.y=W_(e.y),t}function W_(e){let t=e.max-e.min,n=e.max>Do.max?Do.max-t:e.min,a=e.min<Do.min?t:e.max;return n=Math.max(Do.min,n),a=Math.min(Do.max,a),{min:n,max:a}}function z8({min:e,max:t},n,a){if(t===n.max)e=t-a;else if(e===n.min)t=e+a;else{let u=e+(t-e)/2;e=u-a/2,t=u+a/2}return{min:e,max:t}}var Sle=class{update(e,t,n,a,u,y){var k;return(k=this.oldZoom)!=null||(this.oldZoom=Vd(t===Q4._ModuleSupport.ChartAxisDirection.X?He(ge({},u),{x:y}):He(ge({},u),{y}))),this.updateCoords(e.regionX,e.regionY),this.updateZoom(t,n,a)}stop(){this.coords=void 0,this.oldZoom=void 0}updateCoords(e,t){this.coords?(this.coords.x2=e,this.coords.y2=t):this.coords={x1:e,y1:t,x2:e,y2:t}}updateZoom(e,t,n){let{coords:a,oldZoom:u}=this,y=Vd(u);if(!a||!u)return e===Q4._ModuleSupport.ChartAxisDirection.X?y.x:y.y;let k=Dw(n,a.x1,a.y1),R=Dw(n,a.x2,a.y2);if(e===Q4._ModuleSupport.ChartAxisDirection.X){let _=(R.x-k.x)*jl(u);return y.x.max+=_,y.x=uy(y.x,u.x,t,k.x),y=Of(y),y.x}let F=(R.y-k.y)*Fg(u);return y.y.max-=F,y.y=uy(y.y,u.y,t,k.y),y=Of(y),y.y}},oG="zoom-action",rG="pan-action",wle=class{constructor(e,t,n,a,u){this.contextMenuRegistry=e,this.zoomManager=t,this.getModuleProperties=n,this.getRect=a,this.updateZoom=u}registerActions(e,t){if(!e)return;let{contextMenuRegistry:n}=this,a=n.registerDefaultAction({id:oG,type:"series-area",label:"contextMenuZoomToCursor",action:this.onZoomToHere.bind(this)}),u=n.registerDefaultAction({id:rG,type:"series-area",label:"contextMenuPanToCursor",action:this.onPanToHere.bind(this)});return this.toggleActions(t),()=>{a(),u()}}toggleActions(e){let{contextMenuRegistry:t}=this,{minRatioX:n,minRatioY:a}=this.getModuleProperties();nG(e,n,a)?t.disableAction(oG):t.enableAction(oG),iG(e,tG())?t.disableAction(rG):t.enableAction(rG)}computeOrigin(e){let t=this.getRect(),{enabled:n}=this.getModuleProperties();if(!n||!t||!(e!=null&&e.target)||!(e instanceof MouseEvent))return;let a={x:0,y:0,width:t.width,height:t.height};return Dw(a,e.offsetX,e.offsetY)}onZoomToHere({event:e}){let t=this.computeOrigin(e);if(!t)return;let{isScalingX:n,isScalingY:a,minRatioX:u,minRatioY:y}=this.getModuleProperties(),k=Vd(this.zoomManager.getZoom()),R=t.x*jl(k),F=t.y*Fg(k),_=Do.max-Do.min,V=_/2,K={x:{min:t.x-V,max:t.x+V},y:{min:t.y-V,max:t.y+V}};K=N8(K,n?u:_,a?y:_),K=TE(K,k.x.min-t.x+R,k.y.min-t.y+F),this.updateZoom(Of(K))}onPanToHere({event:e}){let t=this.computeOrigin(e);if(!t)return;let n=Vd(this.zoomManager.getZoom()),a=jl(n),u=Fg(n),y=t.x*a,k=t.y*u,R=(Do.max-Do.min)/2,F={x:{min:t.x-R,max:t.x+R},y:{min:t.y-R,max:t.y+R}};F=N8(F,a,u),F=TE(F,n.x.min-t.x+y,n.y.min-t.y+k),this.updateZoom(Of(F))}},sG=(mt(),T(pt)),{BBoxValues:xle}=sG._ModuleSupport,Mle=class{constructor(e){this.axesHandlers=e,this.axes=[]}initAxis(e,t,n,a){let{X:u,Y:y}=sG._ModuleSupport.ChartAxisDirection,k={[u]:"ew-resize",[y]:"ns-resize"}[a],R="afterend",F=e.proxyInteractionService.createProxyElement({type:"region",domManagerId:t,where:R});return F.setCursor(k),F.addListener("drag-start",()=>n.onDragStart(t,a)),F.addListener("drag-move",_=>n.onDrag(_)),F.addListener("drag-end",n.onDragEnd),F.addListener("dblclick",()=>n.onDoubleClick(t,a)),{axisId:t,div:F}}destroy(){this.axes.forEach(e=>e.div.destroy())}update(e){let{X:t,Y:n}=sG._ModuleSupport.ChartAxisDirection,a=[...e.axisManager.getAxisContext(t),...e.axisManager.getAxisContext(n)],{removed:u,added:y}=this.diffAxisIds(a);u.length>0&&(this.axes=this.axes.filter(k=>u.includes(k.axisId)?(k.div.destroy(),!1):!0));for(let k of y){let{axisId:R,direction:F}=k;this.axes.push(this.initAxis(e,R,this.axesHandlers,F))}for(let k of this.axes){let F=a.filter(_=>_.axisId===k.axisId)[0].getCanvasBounds();k.div.setHidden(xle.isEmpty(F)),F!==void 0&&k.div.setBounds(F)}}diffAxisIds(e){let t=this.axes.map(y=>y.axisId),n=e.map(y=>y.axisId),a=t.filter(y=>!n.includes(y)),u=e.filter(y=>!t.includes(y.axisId));return{removed:a,added:u}}},kle=(mt(),T(pt)),B8=16,Ale={off:1,short:.01,long:.002},Dle=class{constructor(){this.deceleration=1,this.zoomCoordsHistoryIndex=0,this.coordsHistory=[]}get decelerationValue(){var t;let{deceleration:e}=this;return Math.max(typeof e=="number"?e:(t=Ale[e])!=null?t:1,1e-4)}addListener(e,t){return this.onUpdate=t,()=>{this.onUpdate=void 0}}stopInteractions(){this.inertiaHandle!=null&&(cancelAnimationFrame(this.inertiaHandle),this.inertiaHandle=void 0)}update(e){var y,k;this.updateCoords(e.regionX,e.regionY);let{x1:t=0,y1:n=0,x2:a=0,y2:u=0}=(y=this.coords)!=null?y:{};(k=this.onUpdate)==null||k.call(this,{type:"update",deltaX:t-a,deltaY:n-u})}start(){this.coordsMonitorTimeout=setInterval(this.recordCurrentZoomCoords.bind(this),16)}stop(){let{coordsHistory:e}=this,t=0,n=0,a=0;if(e.length>0){let u=this.zoomCoordsHistoryIndex%B8,y=u-1;y<0&&(y=e.length-1);let k=u;k>=e.length&&(k=0);let R=e[y],F=e[k];t=R.x-F.x,n=R.y-F.y,a=R.t-F.t}if(this.coords=void 0,clearInterval(this.coordsMonitorTimeout),this.coordsMonitorTimeout=void 0,this.zoomCoordsHistoryIndex=0,this.coordsHistory.length=0,a>0&&this.decelerationValue<1){let u=t/a,y=n/a,k=Math.hypot(u,y),R=Math.atan2(y,u),F=performance.now();this.inertiaHandle=kle._ModuleSupport.getWindow().requestAnimationFrame(_=>{this.animateInertia(_,_,F,k,R)})}}recordCurrentZoomCoords(){let{coords:e,coordsHistory:t,zoomCoordsHistoryIndex:n}=this;if(!e)return;let{x2:a,y2:u}=e,y=Date.now();t[n%B8]={x:a,y:u,t:y},this.zoomCoordsHistoryIndex+=1}animateInertia(e,t,n,a,u){var _;let y=1-this.decelerationValue,k=-a/Math.log(y),R=a*(y**(t-n)-1)/Math.log(y),F=a*(y**(e-n)-1)/Math.log(y);(_=this.onUpdate)==null||_.call(this,{type:"update",deltaX:-Math.cos(u)*(F-R),deltaY:-Math.sin(u)*(F-R)}),!(F>=k-1)&&(this.inertiaHandle=requestAnimationFrame(V=>{this.animateInertia(V,e,n,a,u)}))}updateCoords(e,t){this.coords?this.coords={x1:this.coords.x2,y1:this.coords.y2,x2:e,y2:t}:this.coords={x1:e,y1:t,x2:e,y2:t}}translateZooms(e,t,n,a){let u=Dw(e,e.x+Math.abs(n),e.y+e.height-Math.abs(a)),y=Math.sign(n)*u.x,k=-Math.sign(a)*u.y,R={};for(let[F,{direction:_,zoom:V}]of Object.entries(t)){if(V&&V.min===Do.min&&V.max===Do.max)continue;let K=Vd({[_]:V});K=Of(TE(K,y*jl(K),k*Fg(K))),R[F]={direction:_,zoom:K[_]}}return R}},Ele=(mt(),T(pt)),Ile=200,Tle=class{update(e,t,n,a){let u=e.deltaX*t*Ile;return this.translateZooms(n,a,u)}translateZooms(e,t,n){let a={},u=Dw(e,e.x+Math.abs(n),0),y=n<0?-u.x:u.x;for(let[k,{direction:R,zoom:F}]of Object.entries(t)){if(R!==Ele._ModuleSupport.ChartAxisDirection.X)continue;let _=Vd({x:F});_=Of(TE(_,y*jl(_),0)),a[k]={direction:R,zoom:_.x}}return a}},G8=(mt(),T(pt)),Rle=class{updateAxes(e,t,n,a){var q,$;let u=e.sourceEvent,y={},{anchorPointX:k,anchorPointY:R,isScalingX:F,isScalingY:_,scrollingStep:V}=t,K=Dw(n,(q=u.offsetX)!=null?q:u.clientX,($=u.offsetY)!=null?$:u.clientY);for(let[te,{direction:se,zoom:de}]of Object.entries(a)){if(de==null)continue;let pe=ge({},de),Ce=V*e.deltaY*(de.max-de.min);if(se===G8._ModuleSupport.ChartAxisDirection.X&&F)pe.max+=Ce,pe=uy(pe,de,k,K.x);else if(se===G8._ModuleSupport.ChartAxisDirection.Y&&_)pe.max+=Ce,pe=uy(pe,de,R,K.y);else continue;y[te]={direction:se,zoom:W_(pe)}}return y}update(e,t,n,a){let{anchorPointX:u,anchorPointY:y,isScalingX:k,isScalingY:R,scrollingStep:F}=t,_=Dw(n,e.canvasX,e.canvasY),V=e.deltaY,K=Vd(a);return K.x.max+=k?F*V*jl(a):0,K.y.max+=R?F*V*Fg(a):0,k&&(K.x=uy(K.x,a.x,u,_.x)),R&&(K.y=uy(K.y,a.y,y,_.y)),K=Of(K),K}updateDelta(e,t,n){let{anchorPointX:a,anchorPointY:u,isScalingX:y,isScalingY:k,scrollingStep:R}=t,F=Vd(n);return F.x.max+=y?R*-e*jl(n):0,F.y.max+=k?R*-e*Fg(n):0,y&&(F.x=uy(F.x,n.x,a)),k&&(F.y=uy(F.y,n.y,u)),F=Of(F),F}},Ple=class{constructor(e){this.rect=e,this.rect.visible=!1}update(e,t,n,a){this.rect.visible=!0,this.updateCoords(e.canvasX,e.canvasY,t,n,a),this.updateRect(n)}stop(e,t,n){let a=Vd();if(!e||!t)return a;this.coords&&(a=this.createZoomFromCoords(t,n));let u=t.width/e.width,y=t.height/e.height;return a=Of(Cle(a,u,y)),this.reset(),a}reset(){this.coords=void 0,this.rect.visible=!1}didUpdate(){return this.rect.visible&&this.rect.width>0&&this.rect.height>0}updateCoords(e,t,n,a,u){if(!this.coords){this.coords={x1:e,y1:t,x2:e,y2:t};return}let{coords:y}=this;if(y.x2=e,y.y2=t,!a)return;let{isScalingX:k,isScalingY:R,keepAspectRatio:F,minRatioX:_,minRatioY:V}=n,K=Vd(u),q=this.getNormalisedDimensions(),$=K.x.max-K.x.min,te=K.y.max-K.y.min,se=_/$,de=V/te;if(k&&q.width/a.width<se&&(y.x2<y.x1?y.x2=y.x1-a.width*se:y.x2=y.x1+a.width*se),F&&k&&R){let pe=a.width/a.height;y.y2<y.y1?y.y2=Math.min(y.y1-q.width/pe,y.y1-a.height*de):y.y2=Math.max(y.y1+q.width/pe,y.y1+a.height*de)}else R&&q.height/a.height<de&&(y.y2<y.y1?y.y2=y.y1-a.height*de:y.y2=y.y1+a.height*de);k||(y.x1=a.x,y.x2=a.x+a.width),R||(y.y1=a.y,y.y2=a.y+a.height)}updateRect(e){if(!e)return;let{rect:t}=this,n=this.getNormalisedDimensions(),{width:a,height:u}=n,{x:y,y:k}=n;y=Math.max(y,e.x),y-=Math.max(0,y+a-(e.x+e.width)),k=Math.max(k,e.y),k-=Math.max(0,k+u-(e.y+e.height)),t.x=y,t.y=k,t.width=a,t.height=u}createZoomFromCoords(e,t){let n=Vd(t),a=this.getNormalisedDimensions(),u=Dw(e,a.x,a.y+a.height),y=a.width/e.width,k=a.height/e.height,R=_8(n,y,k),F=u.x*jl(n),_=u.y*Fg(n);return R=TE(R,F,_),R=Of(R),R}getNormalisedDimensions(){var F;let{x1:e=0,y1:t=0,x2:n=0,y2:a=0}=(F=this.coords)!=null?F:{},u=e<=n?e:n,y=t<=a?t:a,k=e<=n?n-e:e-n,R=t<=a?a-t:t-a;return{x:u,y,width:k,height:R}}},Lle=(mt(),T(pt)),{ARRAY:Ole,BOOLEAN:Fle,STRING:_le,UNION:Nle,ActionOnSet:zle,BaseProperties:Ble,ChartAxisDirection:Gle,InteractionState:V8,NativeWidget:Vle,PropertiesArray:jle,Toolbar:Hle,ToolbarButtonProperties:Wle,Validate:U_,createElement:Ule}=Lle._ModuleSupport,lG=class extends Wle{};me([U_(Nle(["reset","zoom-in","zoom-out","pan-left","pan-right","pan-start","pan-end"]))],lG.prototype,"value",2),me([U_(_le)],lG.prototype,"section",2);var cG=class extends Ble{constructor(e,t,n,a,u,y){super(),this.ctx=e,this.getModuleProperties=t,this.getResetZoom=n,this.updateZoom=a,this.updateAxisZoom=u,this.resetZoom=y,this.enabled=!1,this.buttons=new jle(lG),this.verticalSpacing=10,this.detectionRange=38,this.destroyFns=[],this.container=new Vle(Ule("div")),this.container.addClass("ag-charts-zoom-buttons"),e.domManager.addChild("canvas-overlay","zoom-buttons",this.container.getElement()),this.toolbar=new Hle(e.localeManager),this.container.addChild(this.toolbar),this.toggleVisibility(!1),this.destroyFns.push(this.toolbar.addToolbarListener("button-pressed",this.onButtonPress.bind(this)),this.toolbar.addToolbarListener("button-focused",this.onButtonFocus.bind(this)),e.interactionManager.addListener("hover",this.onHover.bind(this),V8.All),e.interactionManager.addListener("leave",this.onLeave.bind(this),V8.All),e.layoutManager.addListener("layout:complete",this.onLayoutComplete.bind(this)),this.teardown.bind(this))}destroy(){for(let e of this.destroyFns)e()}teardown(){this.ctx.domManager.removeChild("canvas-overlay","zoom-buttons"),this.container.destroy()}onLayoutComplete(e){let{buttons:t,container:n}=this,{rect:a}=e.series;this.toolbar.updateButtons(t),this.toggleButtons();let u=n.getBounds().height;n.setBounds({y:a.y+a.height-u})}onHover(e){if(!this.enabled||this.toolbar.isHidden())return;let{container:t,detectionRange:n,ctx:{scene:a}}=this,{offsetY:u,sourceEvent:{target:y}}=e,k=t.getElement(),R=k.offsetTop-n,F=u>R&&u<a.canvas.element.offsetHeight||y===k;this.toggleVisibility(F)}onLeave(){this.toggleVisibility(!1)}toggleVisibility(e,t=!1){let{container:n,toolbar:a,verticalSpacing:u}=this;a.toggleClass("ag-charts-zoom-buttons__toolbar--hidden",!e);let y=a.getElement();y.style.transitionDuration=t?"0s":"",y.style.transform=e?"translateY(0)":`translateY(${n.getBounds().height+u}px)`}toggleButtons(){let e=Vd(this.ctx.zoomManager.getZoom()),{minRatioX:t,minRatioY:n}=this.getModuleProperties();for(let[a,u]of this.buttons.entries()){let y=!0;switch(u==null?void 0:u.value){case"pan-start":y=e.x.min>Do.min;break;case"pan-end":y=e.x.max<Do.max;break;case"pan-left":y=e.x.min>Do.min;break;case"pan-right":y=e.x.max<Do.max;break;case"zoom-out":y=!iG(e,tG());break;case"zoom-in":y=!nG(e,t,n);break;case"reset":y=!iG(e,this.getResetZoom());break}this.toolbar.toggleButtonEnabledByIndex(a,y)}}onButtonPress({button:e}){if(!this.enabled||this.toolbar.isHidden())return;let t=this.getModuleProperties();if(t.independentAxes&&e.value!=="reset"){let n=this.ctx.zoomManager.getAxisZooms();for(let[a,{direction:u,zoom:y}]of Object.entries(n))y!=null&&this.onButtonPressAxis(e,t,a,u,y)}else this.onButtonPressUnified(e,t)}onButtonFocus(e){this.toggleVisibility(!0,!0)}onButtonPressAxis(e,t,n,a,u){let{anchorPointX:y,anchorPointY:k,isScalingX:R,isScalingY:F,scrollingStep:_}=t,V=ge({},u),K=u.max-u.min;switch(e.value){case"pan-start":V.max=K,V.min=0;break;case"pan-end":V.min=V.max-K,V.max=Do.max;break;case"pan-left":V.min-=K*_,V.max-=K*_;break;case"pan-right":V.min+=K*_,V.max+=K*_;break;case"zoom-in":case"zoom-out":{let q=a===Gle.X,$=q&&R||!q&&F,te=e.value==="zoom-in"?1-_:1+_;$||(te=1);let pe=q?y==="pointer"?J4:y:k==="pointer"?eG:k;V.max=V.min+(V.max-V.min)*te,V=uy(V,u,pe);break}}this.updateAxisZoom(n,a,W_(V))}onButtonPressUnified(e,t){let{anchorPointX:n,anchorPointY:a,isScalingX:u,isScalingY:y,scrollingStep:k}=t,R=Vd(this.ctx.zoomManager.getZoom()),F=Vd(R);switch(e.value){case"reset":this.resetZoom();return;case"pan-start":F.x.max=jl(F),F.x.min=0;break;case"pan-end":F.x.min=Do.max-jl(F),F.x.max=Do.max;break;case"pan-left":F=TE(F,-jl(F)*k,0);break;case"pan-right":F=TE(F,jl(F)*k,0);break;case"zoom-in":case"zoom-out":{let _=e.value==="zoom-in"?1-k:1+k,V=n==="pointer"?J4:n,K=a==="pointer"?eG:a;F=_8(F,u?_:1,y?_:1),F.x=uy(F.x,R.x,V),F.y=uy(F.y,R.y,K);break}}this.updateZoom(Of(F))}};me([U_(Fle),zle({changeValue(e){var t;(t=this.toolbar)==null||t.setHidden(!e)}})],cG.prototype,"enabled",2),me([U_(Ole)],cG.prototype,"buttons",2);var{BOOLEAN:Ew,NUMBER:j8,RATIO:dG,UNION:K_,OBJECT:H8,OR:Kle,ActionOnSet:q_,ChartAxisDirection:uG,ChartUpdateType:qle,Validate:Hl,ProxyProperty:Yle,round:Xle}=Aw._ModuleSupport,W8=e=>Xle(e,10),U8=K_(["pointer","start","middle","end"],"an anchor cord"),K8="zoom-cursor",hG="zoom-tooltip",gG=class extends Aw._ModuleSupport.BaseProperties{constructor(e){super(),this.onChange=e,this.enabled=!1,this.padding=0}};me([Hl(Ew),q_({changeValue(e){this.onChange({enabled:e,padding:this.padding})}})],gG.prototype,"enabled",2),me([Hl(dG),q_({changeValue(e){this.onChange({enabled:this.enabled,padding:e})}})],gG.prototype,"padding",2);var yc=class extends Aw._ModuleSupport.BaseModuleInstance{constructor(e){super(),this.ctx=e,this.enabled=!1,this.enableAxisDragging=!0,this.buttons=new cG(this.ctx,this.getModuleProperties.bind(this),this.getResetZoom.bind(this),this.updateZoom.bind(this),this.updateAxisZoom.bind(this),this.resetZoom.bind(this)),this.enableDoubleClickToReset=!0,this.enablePanning=!0,this.enableScrolling=!0,this.enableSelecting=!1,this.panKey="alt",this.axes="x",this.scrollingStep=(Do.max-Do.min)/10,this.keepAspectRatio=!1,this.minVisibleItemsX=2,this.minVisibleItemsY=2,this.anchorPointX=J4,this.anchorPointY=eG,this.autoScaling=new gG(q=>{this.ctx.zoomManager.setAutoScaleYAxis(q.enabled,q.padding)}),this.axisDragger=new Sle,this.panner=new Dle,this.scroller=new Rle,this.scrollPanner=new Tle,this.deceleration="short",this.dragState=0,this.minRatioX=0,this.minRatioY=0,this.destroyContextMenuActions=void 0,this.isFirstWheelEvent=!0,this.debouncedWheelReset=Aw._ModuleSupport.debounce(()=>{this.isFirstWheelEvent=!0},100),this._didAutoZoomOnMount=!1;let t=new j_;this.selector=new Ple(t),this.contextMenu=new wle(e.contextMenuRegistry,e.zoomManager,this.getModuleProperties.bind(this),()=>this.paddedRect,this.updateZoom.bind(this));let{Default:n,ZoomDrag:a,Animation:u,Annotations:y,AnnotationsSelected:k}=Aw._ModuleSupport.InteractionState,R=n|u|a,F=n|u,_=R|y|k,V=e.regionManager.getRegion("series");this.domProxy=new Mle({onDragStart:(q,$)=>this.onAxisDragStart(q,$),onDrag:q=>this.onDrag({regionX:q.offsetX,regionY:q.offsetY,canvasX:NaN,canvasY:NaN}),onDragEnd:()=>this.onDragEnd(),onDoubleClick:(q,$)=>{this.hoveredAxis={id:q,direction:$},this.onDoubleClick(),this.hoveredAxis=void 0}});let K="drag-start";this.destroyFns.push(e.scene.attachNode(t),e.keyNavManager.addListener("nav-zoom",q=>this.onNavZoom(q)),V.addListener("dblclick",q=>this.onDoubleClick(q),F),V.addListener("drag",q=>this.onDrag(q),R),V.addListener(K,q=>this.onDragStart(q),R),V.addListener("drag-end",()=>this.onDragEnd(),R),V.addListener("wheel",q=>this.onWheel(q),_),e.gestureDetector.addListener("pinch-move",q=>this.onPinchMove(q)),e.layoutManager.addListener("layout:complete",q=>this.onLayoutComplete(q)),e.updateService.addListener("update-complete",q=>this.onUpdateComplete(q)),e.zoomManager.addListener("zoom-change",q=>this.onZoomChange(q)),e.zoomManager.addListener("zoom-pan-start",q=>this.onZoomPanStart(q)),this.panner.addListener("update",q=>this.onPanUpdate(q)),()=>this.teardown())}teardown(){var e;this.ctx.zoomManager.setZoomModuleEnabled(!1),this.buttons.destroy(),(e=this.destroyContextMenuActions)==null||e.call(this)}onEnabledChange(e){var n;this.ctx.zoomManager.setZoomModuleEnabled(e);let t=this.getZoom();this.contextMenu&&((n=this.destroyContextMenuActions)==null||n.call(this),this.destroyContextMenuActions=this.contextMenu.registerActions(e,t))}onDoubleClick(e){let{enabled:t,enableDoubleClickToReset:n,hoveredAxis:a,ctx:{zoomManager:u}}=this;!t||!n||(a?u.resetAxisZoom("zoom",a.id):e!=null&&e.preventZoomDblClick||this.resetZoom())}onDragStart(e){let{enabled:t,enableAxisDragging:n,enablePanning:a,enableSelecting:u,hoveredAxis:y,ctx:{cursorManager:k,zoomManager:R}}=this;if(!t)return;this.panner.stopInteractions();let F=0;if(n&&y)F=1;else if(e!=null){let _=this.isPanningKeyPressed(e.sourceEvent);a&&(!u||_)?(k.updateCursor(K8,"grabbing"),F=2,this.panner.start()):u&&!this.isMinZoom(this.getZoom())&&!_&&(F=3)}(this.dragState=F)!==0&&R.fireZoomPanStartEvent("zoom")}onDrag(e){let{anchorPointX:t,anchorPointY:n,axisDragger:a,dragState:u,enabled:y,paddedRect:k,panner:R,selector:F,seriesRect:_,hoveredAxis:V,ctx:{interactionManager:K,tooltipManager:q,updateService:$,zoomManager:te}}=this;if(!y||!k||!_)return;K.pushState(Aw._ModuleSupport.InteractionState.ZoomDrag);let se=this.getZoom();switch(u){case 1:{if(!V)break;let{id:de,direction:pe}=V,Ce=pe===Aw._ModuleSupport.ChartAxisDirection.X?t:n,Se=te.getAxisZoom(de),ve=a.update(e,pe,Ce,_,se,Se);te.setAxisManuallyAdjusted("zoom",de),this.updateAxisZoom(de,pe,ve);break}case 2:R.update(e);break;case 3:F.update(e,this.getModuleProperties(),k,se);break;case 0:return}q.updateTooltip(hG),$.update(qle.PERFORM_LAYOUT,{skipAnimations:!0})}onDragEnd(){let{axisDragger:e,dragState:t,enabled:n,panner:a,selector:u,ctx:{cursorManager:y,interactionManager:k,tooltipManager:R}}=this;if(k.popState(Aw._ModuleSupport.InteractionState.ZoomDrag),!(!n||t===0)){switch(t){case 1:this.hoveredAxis=void 0,e.stop();break;case 2:a.stop();break;case 3:{if(!u.didUpdate())break;let F=this.getZoom();if(this.isMinZoom(F))break;let _=u.stop(this.seriesRect,this.paddedRect,F);this.updateZoom(_);break}}this.dragState=0,y.updateCursor(K8),R.removeTooltip(hG)}}onNavZoom(e){let{enabled:t,enableScrolling:n,scroller:a}=this;!t||!n||(e.preventDefault(),this.updateZoom(a.updateDelta(e.delta,this.getModuleProperties(),this.getZoom())))}onWheel(e){let{enabled:t,enablePanning:n,enableScrolling:a,paddedRect:u}=this;if(!t||!a||!u)return;let y=e.sourceEvent,{deltaX:k,deltaY:R}=y,F=k!=null&&R!=null&&Math.abs(k)>Math.abs(R);n&&F?this.onWheelPanning(e):this.onWheelScrolling(e)}onWheelPanning(e){let{scrollingStep:t,scrollPanner:n,seriesRect:a,ctx:{zoomManager:u}}=this;if(!a)return;e.preventDefault();let y=n.update(e,t,a,u.getAxisZooms());for(let[k,{direction:R,zoom:F}]of Object.entries(y))this.updateAxisZoom(k,R,F)}onWheelScrolling(e){let{enableAxisDragging:t,enableIndependentAxes:n,hoveredAxis:a,scroller:u,seriesRect:y,ctx:{zoomManager:k}}=this;if(!y)return;let R=this.getZoom(),F=this.isMaxZoom(R)&&e.deltaY>0||this.isMinZoom(R)&&e.deltaY<0;(!this.isFirstWheelEvent||!F)&&e.preventDefault(),this.isFirstWheelEvent=!1,this.debouncedWheelReset();let _=t&&a!=null,V=this.isScalingX(),K=this.isScalingY();_&&(V=a.direction===Aw._ModuleSupport.ChartAxisDirection.X,K=!V);let q=this.getModuleProperties({isScalingX:V,isScalingY:K});if(n===!0){let $=u.updateAxes(e,q,y,k.getAxisZooms());for(let[te,{direction:se,zoom:de}]of Object.entries($))_&&a.id!==te||this.updateAxisZoom(te,se,de)}else{let $=u.update(e,q,y,this.getZoom());this.updateUnifiedZoom($)}}onAxisDragStart(e,t){this.hoveredAxis={id:e,direction:t},this.onDragStart(void 0)}onPinchMove(e){let{enabled:t,enableScrolling:n,paddedRect:a,seriesRect:u}=this;if(!t||!n||!a||!u)return;let y=this.getZoom(),k=Vd(y),R=e.deltaDistance*-.01,F=Dw(u,e.origin.x,e.origin.y);this.isScalingX()&&(k.x.max+=R*jl(y),k.x=aG(k.x,y.x,F.x)),this.isScalingY()&&(k.y.max+=R*(y.y.max-y.y.min),k.y=aG(k.y,y.y,F.y)),this.updateZoom(Of(k)),e.preventDefault()}onLayoutComplete(e){this.domProxy.update(this.ctx);let{enabled:t}=this;if(!t)return;let{series:{rect:n,paddedRect:a,shouldFlipXY:u}}=e;this.seriesRect=n,this.paddedRect=a,this.shouldFlipXY=u,this._didAutoZoomOnMount=!0}onUpdateComplete(e){let{minRect:t,minVisibleRect:n}=e,{enabled:a,minVisibleItemsX:u,minVisibleItemsY:y,paddedRect:k,shouldFlipXY:R}=this;if(!a||!k||!t||!n)return;let F=this.getZoom(),_=R?y:u,V=R?u:y,K=n.width*_/k.width,q=n.height*V/k.height,$=W8(K*jl(F)),te=W8(q*Fg(F));this.isScalingX()&&(this.minRatioX=Math.min(1,$)),this.isScalingY()&&(this.minRatioY=Math.min(1,te)),this.minRatioX||(this.minRatioX=this.minRatioY||0),this.minRatioY||(this.minRatioY=this.minRatioX||0)}onZoomChange(e){e.callerId!=="zoom"&&this.panner.stopInteractions();let t=this.getZoom();this.contextMenu.toggleActions(t)}onZoomPanStart(e){e.callerId==="zoom"&&this.panner.stopInteractions()}onPanUpdate(e){let{panner:t,seriesRect:n,ctx:{tooltipManager:a,zoomManager:u}}=this;if(!n)return;let y=t.translateZooms(n,u.getAxisZooms(),e.deltaX,e.deltaY);for(let[k,{direction:R,zoom:F}]of Object.entries(y))this.updateAxisZoom(k,R,F);a.updateTooltip(hG)}isPanningKeyPressed(e){switch(this.panKey){case"alt":return e.altKey;case"ctrl":return e.ctrlKey;case"shift":return e.shiftKey;case"meta":return e.metaKey}}isScalingX(){return this.axes==="xy"?!0:this.shouldFlipXY?this.axes==="y":this.axes==="x"}isScalingY(){return this.axes==="xy"?!0:this.shouldFlipXY?this.axes==="x":this.axes==="y"}getAnchorPointX(){return this.shouldFlipXY?this.anchorPointY:this.anchorPointX}getAnchorPointY(){return this.shouldFlipXY?this.anchorPointX:this.anchorPointY}isMinZoom(e){return nG(e,this.minRatioX,this.minRatioY)}isMaxZoom(e){let t=Do.max-Do.min;return jl(e)===t&&Fg(e)===t}updateZoom(e){this.enableIndependentAxes?this.updatePrimaryAxisZooms(e):this.updateUnifiedZoom(e)}resetZoom(){this.ctx.zoomManager.resetZoom("zoom")}updatePrimaryAxisZoom(e,t){this.ctx.zoomManager.updatePrimaryAxisZoom("zoom",t,e[t])}updatePrimaryAxisZooms(e){this.updatePrimaryAxisZoom(e,uG.X),this.updatePrimaryAxisZoom(e,uG.Y)}updateUnifiedZoom(e){let{minRatioX:t,minRatioY:n,ctx:{zoomManager:a}}=this,u=this.getZoom(),y=jl(e);y<=jl(u)&&y<t&&(e.x=z8(e.x,u.x,t));let R=Fg(e);R<=Fg(u)&&R<n&&(e.y=z8(e.y,u.y,n)),a.updateZoom("zoom",e)}updateAxisZoom(e,t,n){let{enableIndependentAxes:a,minRatioX:u,minRatioY:y,ctx:{zoomManager:k}}=this;if(!n)return;let R=this.getZoom();if(a!==!0){R[t]=n,this.updateUnifiedZoom(R);return}let F=n.max-n.min,_=R[t].max-R[t].min,V=t===uG.X?u:y;F<=_&&F<V||k.updateAxisZoom("zoom",e,n)}getZoom(){return Vd(this.ctx.zoomManager.getZoom())}getResetZoom(){return Vd(this.ctx.zoomManager.getRestoredZoom())}getModuleProperties(e){var t,n,a,u,y,k,R,F,_,V;return{anchorPointX:(t=e==null?void 0:e.anchorPointX)!=null?t:this.getAnchorPointX(),anchorPointY:(n=e==null?void 0:e.anchorPointY)!=null?n:this.getAnchorPointY(),enabled:(a=e==null?void 0:e.enabled)!=null?a:this.enabled,independentAxes:(u=e==null?void 0:e.independentAxes)!=null?u:this.enableIndependentAxes===!0,isScalingX:(y=e==null?void 0:e.isScalingX)!=null?y:this.isScalingX(),isScalingY:(k=e==null?void 0:e.isScalingY)!=null?k:this.isScalingY(),keepAspectRatio:(R=e==null?void 0:e.keepAspectRatio)!=null?R:this.keepAspectRatio,minRatioX:(F=e==null?void 0:e.minRatioX)!=null?F:this.minRatioX,minRatioY:(_=e==null?void 0:e.minRatioY)!=null?_:this.minRatioY,scrollingStep:(V=e==null?void 0:e.scrollingStep)!=null?V:this.scrollingStep}}};me([q_({newValue(e){this.onEnabledChange(e)}}),Hl(Ew)],yc.prototype,"enabled",2),me([Hl(Ew)],yc.prototype,"enableAxisDragging",2),me([Hl(H8)],yc.prototype,"buttons",2),me([Hl(Ew)],yc.prototype,"enableDoubleClickToReset",2),me([q_({changeValue(e){this.ctx.zoomManager.setIndependentAxes(!!e)}}),Hl(Ew,{optional:!0})],yc.prototype,"enableIndependentAxes",2),me([Hl(Ew)],yc.prototype,"enablePanning",2),me([Hl(Ew)],yc.prototype,"enableScrolling",2),me([Hl(Ew)],yc.prototype,"enableSelecting",2),me([Hl(K_(["alt","ctrl","meta","shift"],"a pan key"))],yc.prototype,"panKey",2),me([Hl(K_(["x","y","xy"],"an axis"))],yc.prototype,"axes",2),me([Hl(dG)],yc.prototype,"scrollingStep",2),me([Hl(Ew)],yc.prototype,"keepAspectRatio",2),me([Hl(j8.restrict({min:1}))],yc.prototype,"minVisibleItemsX",2),me([Hl(j8.restrict({min:1}))],yc.prototype,"minVisibleItemsY",2),me([Hl(U8)],yc.prototype,"anchorPointX",2),me([Hl(U8)],yc.prototype,"anchorPointY",2),me([Hl(H8)],yc.prototype,"autoScaling",2),me([Yle("panner.deceleration"),Hl(Kle(dG,K_(["off","short","long"],"a deceleration")))],yc.prototype,"deceleration",2);var Zle={enabled:!0,buttons:[{icon:"zoom-out",tooltip:"toolbarZoomZoomOut",value:"zoom-out",section:"scale"},{icon:"zoom-in",tooltip:"toolbarZoomZoomIn",value:"zoom-in",section:"scale"},{icon:"pan-left",tooltip:"toolbarZoomPanLeft",value:"pan-left",section:"pan"},{icon:"pan-right",tooltip:"toolbarZoomPanRight",value:"pan-right",section:"pan"},{icon:"reset",tooltip:"toolbarZoomReset",value:"reset",section:"reset"}]},$le={type:"root",optionsKey:"zoom",packageType:"enterprise",chartTypes:["cartesian","topology"],moduleFactory:e=>new yc(e),themeTemplate:{zoom:{anchorPointX:"end",anchorPointY:"middle",axes:"x",buttons:Zle,enabled:!1,enableAxisDragging:!0,enableDoubleClickToReset:!0,enablePanning:!0,enableScrolling:!0,enableSelecting:!1,deceleration:"short",minVisibleItemsX:2,minVisibleItemsY:2,panKey:"alt",scrollingStep:.1,autoScaling:{enabled:!1,padding:.25}}}},Qle=(mt(),T(pt)),Jle=(mt(),T(pt)),{BOOLEAN:q8,OBJECT:ece,POSITION:tce,POSITIVE_NUMBER:pG,BaseProperties:ice,AxisTicks:nce,ZIndexMap:ace,ProxyProperty:mG,Validate:RE,LayoutElement:oce,createId:rce,Group:sce,Rect:lce,Triangle:cce,TranslatableGroup:dce,LinearGradient:uce}=Jle._ModuleSupport,fG=class extends ice{constructor(){super(...arguments),this.thickness=16,this.preferredLength=100}};me([RE(pG)],fG.prototype,"thickness",2),me([RE(pG)],fG.prototype,"preferredLength",2);var Y_=class{constructor(e){this.axisTicks=e}};me([mG("axisTicks.label")],Y_.prototype,"label",2),me([mG("axisTicks.interval")],Y_.prototype,"interval",2),me([mG("axisTicks.padding")],Y_.prototype,"padding",2);var PE=class{constructor(e){this.ctx=e,this.id=rce(this),this.legendGroup=new dce({name:"legend",zIndex:ace.LEGEND}),this.gradientRect=new lce,this.arrow=new cce,this.ticksGroup=new sce({name:"legend-axis-group"}),this.destroyFns=[],this.enabled=!1,this.position="bottom",this.reverseOrder=!1,this.gradient=new fG,this.spacing=20,this.data=[],this.highlightManager=e.highlightManager,this.axisTicks=new nce,this.axisTicks.attachAxis(this.ticksGroup),this.scale=new Y_(this.axisTicks),this.legendGroup.append([this.gradientRect,this.arrow,this.ticksGroup]),this.destroyFns.push(e.highlightManager.addListener("highlight-change",()=>this.onChartHoverChange()),e.layoutManager.registerElement(oce.Legend,t=>this.onStartLayout(t)),()=>this.legendGroup.remove())}isVertical(){return this.position==="right"||this.position==="left"}destroy(){this.destroyFns.forEach(e=>e())}attachLegend(e){e.appendChild(this.legendGroup)}onStartLayout(e){let[t]=this.data;if(!this.enabled||!(t!=null&&t.enabled)){this.legendGroup.visible=!1;return}let{colorRange:n}=this.normalizeColorArrays(t);this.updateGradientRect(e.layoutBox,n);let a=this.updateAxis(t),{left:u,top:y}=this.getMeasurements(e.layoutBox,a);this.updateArrow(),this.legendGroup.visible=!0,this.legendGroup.translationX=u,this.legendGroup.translationY=y}normalizeColorArrays(e){let t=e.colorDomain.slice(),n=e.colorRange.slice();if(t.length===n.length)return{colorDomain:t,colorRange:n};t.length>n.length&&n.splice(t.length);let[a,u]=t,y=n.length;return t=n.map((k,R)=>R===0?a:R===y-1?u:a+(u-a)*R/(y-1)),{colorDomain:t,colorRange:n}}updateGradientRect(e,t){let{gradientRect:n}=this,{preferredLength:a,thickness:u}=this.gradient,y;this.isVertical()?(y=0,n.width=u,n.height=Math.min(e.height,a)):(y=90,n.width=Math.min(e.width,a),n.height=u);let k=new uce("oklch",t.map((R,F)=>({offset:F/(t.length-1),color:R})),y);n.fill=k}updateAxis(e){let{axisTicks:t}=this,n=this.isVertical(),a=this.reverseOrder!==n;return t.position=this.position,t.translationX=n?this.gradient.thickness:0,t.translationY=n?0:this.gradient.thickness,t.scale.domain=a?e.colorDomain.slice().reverse():e.colorDomain,t.scale.range=n?[0,this.gradientRect.height]:[0,this.gradientRect.width],t.calculateLayout()}updateArrow(){var _;let e=this.highlightManager.getActiveHighlight(),{arrow:t}=this;if((e==null?void 0:e.colorValue)==null){t.visible=!1;return}let{scale:n,label:a}=this.axisTicks,u=(_=a.fontSize)!=null?_:0,y=n.convert(e.colorValue),{x:k,y:R}=this.gradientRect,F=Math.PI;this.isVertical()?(k-=u/2,R+=y,F/=2):(k+=y,R-=u/2),t.visible=!0,t.fill=a.color,t.rotation=F,t.size=u,t.translationX=k,t.translationY=R}getMeasurements(e,t){let{x:n,y:a}=e,{width:u,height:y}=this.gradientRect;switch(this.isVertical()?u+=t.width+5:y+=t.height+5,this.position){case"left":a+=e.height/2-y/2,e.shrink(u+this.spacing,"left");break;case"right":n+=e.width-u,a+=e.height/2-y/2,e.shrink(u+this.spacing,"right");break;case"top":n+=e.width/2-u/2,e.shrink(y+this.spacing,"top");break;case"bottom":n+=e.width/2-u/2,a+=e.height-y,e.shrink(y+this.spacing,"bottom")}return{top:a,left:n}}onChartHoverChange(){this.enabled&&this.updateArrow()}};PE.className="GradientLegend",me([RE(q8)],PE.prototype,"enabled",2),me([RE(tce)],PE.prototype,"position",2),me([RE(q8)],PE.prototype,"reverseOrder",2),me([RE(ece)],PE.prototype,"gradient",2),me([RE(pG)],PE.prototype,"spacing",2);var{ThemeSymbols:{DEFAULT_FONT_FAMILY:hce,DEFAULT_LABEL_COLOUR:gce},ThemeConstants:{FONT_SIZE:pce}}=Qle._ModuleSupport,mce={type:"legend",optionsKey:"gradientLegend",packageType:"enterprise",chartTypes:["cartesian","polar","hierarchy","topology","flow-proportion","standalone","gauge"],identifier:"gradient",moduleFactory:e=>new PE(e),themeTemplate:{enabled:!1,position:"bottom",spacing:20,scale:{padding:13,label:{color:gce,fontSize:pce.SMALL,fontFamily:hce},interval:{minSpacing:1}},gradient:{preferredLength:100,thickness:16},reverseOrder:!1},removable:"standalone-only"},fce=class{constructor(){this.ieCompatibility=!1}init(){this.ieCompatibility=this.md5("hello")!="5d41402abc4b2a76b9719d911017c592"}md5cycle(e,t){let n=e[0],a=e[1],u=e[2],y=e[3];n=this.ff(n,a,u,y,t[0],7,-680876936),y=this.ff(y,n,a,u,t[1],12,-389564586),u=this.ff(u,y,n,a,t[2],17,606105819),a=this.ff(a,u,y,n,t[3],22,-1044525330),n=this.ff(n,a,u,y,t[4],7,-176418897),y=this.ff(y,n,a,u,t[5],12,1200080426),u=this.ff(u,y,n,a,t[6],17,-1473231341),a=this.ff(a,u,y,n,t[7],22,-45705983),n=this.ff(n,a,u,y,t[8],7,1770035416),y=this.ff(y,n,a,u,t[9],12,-1958414417),u=this.ff(u,y,n,a,t[10],17,-42063),a=this.ff(a,u,y,n,t[11],22,-1990404162),n=this.ff(n,a,u,y,t[12],7,1804603682),y=this.ff(y,n,a,u,t[13],12,-40341101),u=this.ff(u,y,n,a,t[14],17,-1502002290),a=this.ff(a,u,y,n,t[15],22,1236535329),n=this.gg(n,a,u,y,t[1],5,-165796510),y=this.gg(y,n,a,u,t[6],9,-1069501632),u=this.gg(u,y,n,a,t[11],14,643717713),a=this.gg(a,u,y,n,t[0],20,-373897302),n=this.gg(n,a,u,y,t[5],5,-701558691),y=this.gg(y,n,a,u,t[10],9,38016083),u=this.gg(u,y,n,a,t[15],14,-660478335),a=this.gg(a,u,y,n,t[4],20,-405537848),n=this.gg(n,a,u,y,t[9],5,568446438),y=this.gg(y,n,a,u,t[14],9,-1019803690),u=this.gg(u,y,n,a,t[3],14,-187363961),a=this.gg(a,u,y,n,t[8],20,1163531501),n=this.gg(n,a,u,y,t[13],5,-1444681467),y=this.gg(y,n,a,u,t[2],9,-51403784),u=this.gg(u,y,n,a,t[7],14,1735328473),a=this.gg(a,u,y,n,t[12],20,-1926607734),n=this.hh(n,a,u,y,t[5],4,-378558),y=this.hh(y,n,a,u,t[8],11,-2022574463),u=this.hh(u,y,n,a,t[11],16,1839030562),a=this.hh(a,u,y,n,t[14],23,-35309556),n=this.hh(n,a,u,y,t[1],4,-1530992060),y=this.hh(y,n,a,u,t[4],11,1272893353),u=this.hh(u,y,n,a,t[7],16,-155497632),a=this.hh(a,u,y,n,t[10],23,-1094730640),n=this.hh(n,a,u,y,t[13],4,681279174),y=this.hh(y,n,a,u,t[0],11,-358537222),u=this.hh(u,y,n,a,t[3],16,-722521979),a=this.hh(a,u,y,n,t[6],23,76029189),n=this.hh(n,a,u,y,t[9],4,-640364487),y=this.hh(y,n,a,u,t[12],11,-421815835),u=this.hh(u,y,n,a,t[15],16,530742520),a=this.hh(a,u,y,n,t[2],23,-995338651),n=this.ii(n,a,u,y,t[0],6,-198630844),y=this.ii(y,n,a,u,t[7],10,1126891415),u=this.ii(u,y,n,a,t[14],15,-1416354905),a=this.ii(a,u,y,n,t[5],21,-57434055),n=this.ii(n,a,u,y,t[12],6,1700485571),y=this.ii(y,n,a,u,t[3],10,-1894986606),u=this.ii(u,y,n,a,t[10],15,-1051523),a=this.ii(a,u,y,n,t[1],21,-2054922799),n=this.ii(n,a,u,y,t[8],6,1873313359),y=this.ii(y,n,a,u,t[15],10,-30611744),u=this.ii(u,y,n,a,t[6],15,-1560198380),a=this.ii(a,u,y,n,t[13],21,1309151649),n=this.ii(n,a,u,y,t[4],6,-145523070),y=this.ii(y,n,a,u,t[11],10,-1120210379),u=this.ii(u,y,n,a,t[2],15,718787259),a=this.ii(a,u,y,n,t[9],21,-343485551),e[0]=this.add32(n,e[0]),e[1]=this.add32(a,e[1]),e[2]=this.add32(u,e[2]),e[3]=this.add32(y,e[3])}cmn(e,t,n,a,u,y){return t=this.add32(this.add32(t,e),this.add32(a,y)),this.add32(t<<u|t>>>32-u,n)}ff(e,t,n,a,u,y,k){return this.cmn(t&n|~t&a,e,t,u,y,k)}gg(e,t,n,a,u,y,k){return this.cmn(t&a|n&~a,e,t,u,y,k)}hh(e,t,n,a,u,y,k){return this.cmn(t^n^a,e,t,u,y,k)}ii(e,t,n,a,u,y,k){return this.cmn(n^(t|~a),e,t,u,y,k)}md51(e){let t=e.length,n=[1732584193,-271733879,-1732584194,271733878],a;for(a=64;a<=e.length;a+=64)this.md5cycle(n,this.md5blk(e.substring(a-64,a)));e=e.substring(a-64);let u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(a=0;a<e.length;a++)u[a>>2]|=e.charCodeAt(a)<<(a%4<<3);if(u[a>>2]|=128<<(a%4<<3),a>55)for(this.md5cycle(n,u),a=0;a<16;a++)u[a]=0;return u[14]=t*8,this.md5cycle(n,u),n}md5blk(e){let t=[];for(let n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}rhex(e){let t="0123456789abcdef".split(""),n="",a=0;for(;a<4;a++)n+=t[e>>a*8+4&15]+t[e>>a*8&15];return n}hex(e){for(let t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")}md5(e){return this.hex(this.md51(e))}add32(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)}add32Std(e,t){return e+t&4294967295}add32Compat(e,t){let n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535}};function vG(e){return e==null||e.length===0}var X_={"01":"GRID","02":"CHARTS","0102":"BOTH"},Y8="https://ag-grid.com/charts/licensing/",yG=class ql{constructor(t){this.watermarkMessage=void 0,this.totalMessageLength=124,this.document=t,this.md5=new fce,this.md5.init()}validateLicense(){let t=this.getLicenseDetails(ql.licenseKey,ql.gridContext),n=`AG ${t.currentLicenseType==="BOTH"?"Grid and ":""}Charts Enterprise`,a="";if(t.suppliedLicenseType==="BOTH"?a="AG Grid and AG Charts Enterprise":t.suppliedLicenseType==="GRID"?a="AG Grid Enterprise":t.suppliedLicenseType!==void 0&&(a="AG Charts Enterprise"),t.missing)(!this.isWebsiteUrl()||this.isForceWatermark())&&this.outputMissingLicenseKey(n);else if(t.expired){let u=ql.getChartsReleaseDate(),y=ql.formatDate(u);this.outputExpiredKey(t.expiry,y,a)}else t.valid?t.isTrial&&t.trialExpired&&this.outputExpiredTrialKey(t.expiry,n,a):this.outputInvalidLicenseKey(!!t.incorrectLicenseType,n,a)}static extractExpiry(t){let n=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(ql.decode(n),10))}static extractLicenseComponents(t){let n=t.replace(/[\u200B-\u200D\uFEFF]/g,"");if(n=n.replace(/\r?\n|\r/g,""),t.length<=32)return{md5:null,license:t,version:null,isTrial:null};let a=n.length-32,u=n.substring(a),y=n.substring(0,a),[k,R,F]=ql.extractBracketedInformation(n);return{md5:u,license:y,version:k,isTrial:R,type:F}}getLicenseDetails(t,n=!1){let a="CHARTS";if(vG(t))return{licenseKey:t,valid:!1,missing:!0,currentLicenseType:a};let u=ql.getChartsReleaseDate(),{md5:y,license:k,version:R,isTrial:F,type:_}=ql.extractLicenseComponents(t),V=y===this.md5.md5(k)&&t.indexOf("For_Trialing_ag-Grid_Only")===-1,K,q,$=null,te=!1,se;function de(){K=$<new Date,q=void 0}if(V&&($=ql.extractExpiry(k),V=!isNaN($.getTime()),V))switch(q=u>$,R){case"legacy":case"2":{V=!1;break}case"3":vG(_)?V=!1:(se=_,_!==X_["02"]&&_!==X_["0102"]?(V=!1,te=!0):F&&de())}return V?{licenseKey:t,valid:V,expiry:ql.formatDate($),expired:q,version:R,isTrial:F,trialExpired:K,invalidLicenseTypeForCombo:n?se!=="BOTH":void 0,incorrectLicenseType:te,currentLicenseType:a,suppliedLicenseType:se}:{licenseKey:t,valid:V,incorrectLicenseType:te,currentLicenseType:a,suppliedLicenseType:se}}isDisplayWatermark(){return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!vG(this.watermarkMessage)}getWatermarkMessage(){var t;return(t=this.watermarkMessage)!=null?t:""}getHostname(){var u;if(!this.document)return"localhost";let t=(u=this.document.defaultView)!=null?u:window;if(!t)return"localhost";let n=t.location,{hostname:a=""}=n;return a}isForceWatermark(){var a,u;if(!this.document)return!1;let t=((u=(a=this.document)==null?void 0:a.defaultView)!=null?u:typeof window!="undefined")?window:void 0;if(!t)return!1;let{pathname:n}=t.location;return n?n.indexOf("forceWatermark")!==-1:!1}isWebsiteUrl(){let t=this.getHostname();return/^((?:[\w-]+\.)?ag-grid\.com)$/.exec(t)!==null}isLocalhost(){let t=this.getHostname();return/^(?:127\.0\.0\.1|localhost)$/.exec(t)!==null}static formatDate(t){let n=["January","February","March","April","May","June","July","August","September","October","November","December"],a=t.getDate(),u=t.getMonth(),y=t.getFullYear();return a+" "+n[u]+" "+y}static getChartsReleaseDate(){return new Date(parseInt(ql.decode(ql.RELEASE_INFORMATION),10))}static decode(t){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="",u,y,k,R,F,_,V,K=0,q=t.replace(/[^A-Za-z0-9+/=]/g,"");for(;K<q.length;)R=n.indexOf(q.charAt(K++)),F=n.indexOf(q.charAt(K++)),_=n.indexOf(q.charAt(K++)),V=n.indexOf(q.charAt(K++)),u=R<<2|F>>4,y=(F&15)<<4|_>>2,k=(_&3)<<6|V,a=a+String.fromCharCode(u),_!=64&&(a=a+String.fromCharCode(y)),V!=64&&(a=a+String.fromCharCode(k));return a=ql.utf8_decode(a),a}static utf8_decode(t){t=t.replace(/rn/g,"n");let n="";for(let a=0;a<t.length;a++){let u=t.charCodeAt(a);u<128?n+=String.fromCharCode(u):u>127&&u<2048?(n+=String.fromCharCode(u>>6|192),n+=String.fromCharCode(u&63|128)):(n+=String.fromCharCode(u>>12|224),n+=String.fromCharCode(u>>6&63|128),n+=String.fromCharCode(u&63|128))}return n}static setGridContext(t=!1){ql.gridContext=t}static setLicenseKey(t){ql.licenseKey=t}static extractBracketedInformation(t){if(!t.includes("["))return["legacy",!1,void 0];let n=t.match(/\[(.*?)\]/g).map(R=>R.replace("[","").replace("]",""));if(!n||n.length===0)return["legacy",!1,void 0];let a=n.filter(R=>R==="TRIAL").length===1,u=n.filter(R=>R.startsWith("v"))[0],y=u?u.replace("v",""):"legacy",k=X_[n.filter(R=>X_[R])[0]];return[y,a,k]}centerPadAndOutput(t){let n=this.totalMessageLength-t.length;console.error(t.padStart(n/2+t.length,"*").padEnd(this.totalMessageLength,"*"))}padAndOutput(t,n="*",a=""){console.error(t.padEnd(this.totalMessageLength-a.length,n)+a)}outputInvalidLicenseKey(t,n,a){ql.gridContext||(t?(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Incompatible License Key "),this.padAndOutput(`* Your license key is for ${a} only and does not cover you for ${n}.`," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${Y8}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")):(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Invalid License Key "),this.padAndOutput("* Your license key is not valid."," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${Y8}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""))),this.watermarkMessage="Invalid License"}outputExpiredTrialKey(t,n,a){ql.gridContext||(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${n} License `),this.centerPadAndOutput(" Trial Period Expired. "),this.padAndOutput(`* Your trial only license for ${a} expired on ${t}.`," ","*"),this.padAndOutput("* Please email info@ag-grid.com to purchase a license."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="Trial Period Expired"}outputMissingLicenseKey(t){ql.gridContext||(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${t} License `),this.centerPadAndOutput(" License Key Not Found "),this.padAndOutput(`* All ${t} features are unlocked for trial.`," ","*"),this.padAndOutput("* If you want to hide the watermark please email info@ag-grid.com for a trial license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="For Trial Use Only"}outputExpiredKey(t,n,a){ql.gridContext||(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${a} License `),this.centerPadAndOutput(" Incompatible Software Version "),this.padAndOutput(`* Your license key works with versions of ${a} released before ${t}.`," ","*"),this.padAndOutput(`* The version you are trying to use was released on ${n}.`," ","*"),this.padAndOutput("* Please contact info@ag-grid.com to renew your license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="License Expired"}};yG.RELEASE_INFORMATION="MTczMzkwNTUyNzEyOQ==",yG.gridContext=!1;var YR=yG,vce=(mt(),T(pt)),{createElement:yce}=vce._ModuleSupport;function bce(e,t){let n=e.addChild("canvas-overlay","watermark"),a=yce("span");a.innerText=t,n.addEventListener("animationend",()=>{e.removeChild("canvas-overlay","watermark"),e.removeStyles("watermark")}),n.classList.add("ag-watermark"),n.appendChild(a)}var Cce=(mt(),T(pt)),X8=(mt(),T(pt)),Sce=(mt(),T(pt)),{findMinMax:wce,findMinValue:xce,findMaxValue:Mce}=Sce._ModuleSupport,_u=0,_g=1,Ng=2,zg=3,Ff=4;function P2(e,t=1){let n=Math.ceil(Math.log2(e.length/t))-1;return n=Math.min(Math.max(n,0),16),2**n|0}function L2(e){return wce(e.map(t=>Number(t)))}function Z_(e,t,n){return(e.valueOf()-t)/(n-t)}function $_(e,t){return Math.min(Math.floor(e*t),t-1)*Ff|0}function O2(e,t,n,a,u,y){let k=new Int32Array(y*Ff).fill(-1),R=new Float64Array(y*Ff).fill(NaN);for(let F=0;F<e.length;F+=1){let _=e[F],V=t[F],K=n[F];if(_==null||V==null||K==null)continue;let q=Z_(_,a,u),$=V.valueOf(),te=K.valueOf(),se=$_(q,y),de=k[se+_u]===-1;(de||q<R[se+_u])&&(k[se+_u]=F,R[se+_u]=q),(de||q>R[se+_g])&&(k[se+_g]=F,R[se+_g]=q),(de||te<R[se+Ng])&&(k[se+Ng]=F,R[se+Ng]=te),(de||$>R[se+zg])&&(k[se+zg]=F,R[se+zg]=$)}return{indexData:k,valueData:R}}function F2(e,t,n,{inPlace:a=!1}={}){let u=n/2|0,y=a?e:new Int32Array(u*Ff),k=a?t:new Float64Array(u*Ff);for(let R=0;R<u;R+=1){let F=R*Ff|0,_=F*2|0,V=_+Ff|0,K=e[V+_u]===-1,q=K||t[_+_u]<t[V+_u]?_:V;y[F+_u]=e[q+_u],k[F+_u]=t[q+_u];let $=K||t[_+_g]>t[V+_g]?_:V;y[F+_g]=e[$+_g],k[F+_g]=t[$+_g];let te=K||t[_+Ng]<t[V+Ng]?_:V;y[F+Ng]=e[te+Ng],k[F+Ng]=t[te+Ng];let se=K||t[_+zg]>t[V+zg]?_:V;y[F+zg]=e[se+zg],k[F+zg]=t[se+zg]}return{maxRange:u,indexData:y,valueData:k}}function kce(e,t,n,a){let u=xce(0,e-1,k=>{let R=a(k);return!Number.isFinite(R)||R>t?k:void 0});u=Math.max((u!=null?u:0)-1,0);let y=Mce(0,e-1,k=>{let R=a(k);return!Number.isFinite(R)||R<n?k:void 0});return y=Math.min((y!=null?y:e)+2,e),[u,y]}var Sxe=(mt(),T(pt)),Z8={xMin:_u,xMax:_g,yMin:Ng,yMax:zg,span:Ff},Ace=1e3,Dce=5;function Ece(e,t,n){if(e.length<Ace)return;let[a,u]=L2(n),y=P2(e,Dce),{indexData:k,valueData:R}=O2(e,t,t,a,u,y),F=[{maxRange:y,indexData:k,indexes:Z8}];for(;y>64;)({indexData:k,valueData:R,maxRange:y}=F2(k,R,y)),F.push({maxRange:y,indexData:k,indexes:Z8});return F.reverse(),F}var{ChartAxisDirection:Ice,ContinuousScale:Tce,OrdinalTimeScale:Rce}=X8._ModuleSupport,Pce=class extends X8._ModuleSupport.BarSeries{visibleRange(e,t,n,a){return kce(e,t,n,a)}aggregateData(e,t){if(t.rawData.length===0||t.type!=="ungrouped")return;let n=this.axes[Ice.X];if(n==null||!(Tce.is(n.scale)||Rce.is(n.scale)))return;let a=e.resolveKeysById(this,"xValue",t),u=e.resolveColumnById(this,"yValue-raw",t),{index:y}=e.resolveProcessedDataDefById(this,"xValue"),k=t.domain.keys[y];return Ece(a,u,k)}},{BarSeriesModule:Lce}=Cce._ModuleSupport,Oce=He(ge({},Lce),{type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"bar",moduleFactory:e=>new Pce(e)}),Fce=(mt(),T(pt)),bG=(mt(),T(pt));function _ce(e){return{from:e?{scalingX:1,scalingY:0}:{scalingX:0,scalingY:1},to:{scalingX:1,scalingY:1}}}function Nce(e){return(t,n)=>e?{scalingCenterY:n.scaledValues.medianValue}:{scalingCenterX:n.scaledValues.medianValue}}var $8=(mt(),T(pt)),{ScalableGroup:zce,Rect:XR,Line:_2,BBox:Bce,Selection:Q8,Logger:Gce}=$8._ModuleSupport,Vce=class extends zce{constructor(){super(),this.append([new XR({tag:0}),new XR({tag:0}),new XR({tag:2}),new XR({tag:1}),new _2({tag:3}),new _2({tag:3}),new _2({tag:4}),new _2({tag:4})])}updateDatumStyles(e,t,n,a){let{bandwidth:u,scaledValues:{xValue:y,medianValue:k}}=e,{minValue:R,q1Value:F,q3Value:_,maxValue:V}=e.scaledValues;(n&&!a||!n&&a)&&([V,_,F,R]=[R,F,_,V]);let K=(At,Dt,Ot,It)=>n?{y:At,x:Dt,width:It,height:Ot}:{x:At,y:Dt,width:Ot,height:It},q=(At,Dt,Ot)=>n?{y1:At,y2:Dt,x:Ot}:{x1:At,x2:Dt,y:Ot},$=(At,Dt,Ot)=>n?{x1:Dt,x2:Ot,y:At}:{x:At,y1:Dt,y2:Ot},te=(At,Dt,Ot,It)=>({x:At,y:Dt,width:Ot,height:It}=K(At,Dt,Ot,It),new Bce(At,Dt,Ot,It)),{fill:se,fillOpacity:de,stroke:pe,strokeWidth:Ce,strokeOpacity:Se,lineDash:ve,lineDashOffset:ke,cornerRadius:De,cap:Te,whisker:ze}=t,qe=Q8.select(this,XR),et=qe.selectByTag(0),[$e]=qe.selectByTag(2),[lt]=qe.selectByTag(1),at=qe.selectByTag(3),ht=qe.selectByTag(4);ze.strokeWidth>u&&(ze.strokeWidth=u);let vt=K(F,y,_-F,u);$e.setProperties(vt),et[0].setProperties(vt),et[0].setProperties({cornerRadius:De,clipBBox:te(F,y,Math.round(k-F+Ce/2),u)}),et[1].setProperties(vt),et[1].setProperties({cornerRadius:De,clipBBox:te(Math.round(k-Ce/2),y,Math.floor(_-k+Ce/2),u)});let wt=Math.max(Math.round(k-Ce/2),F+Ce),Ct=Math.min(Math.round(k+Ce/2),_-Ce);lt.setProperties(vt),lt.setProperties({visible:wt<Ct,cornerRadius:De,clipBBox:te(wt,y+Ce,Ct-wt,Math.max(0,u-Ce*2))});let yt=Math.floor(y+u*(1-Te.lengthRatio)/2),Et=Math.ceil(y+u*(1+Te.lengthRatio)/2);ht[0].setProperties($(R,yt,Et)),ht[1].setProperties($(V,yt,Et)),at[0].setProperties(q(Math.round(R+ze.strokeWidth/2),F,Math.floor(y+u/2))),at[1].setProperties(q(_,Math.round(V-ze.strokeWidth/2),Math.floor(y+u/2)));for(let At of et)At.setProperties({fill:se,fillOpacity:de,strokeWidth:Ce*2,strokeOpacity:0});lt.setProperties({fill:pe,fillOpacity:Se,strokeWidth:0});for(let At of[...at,...ht])At.setProperties(ze);$e.setProperties({stroke:pe,strokeWidth:Ce,strokeOpacity:Se,lineDash:ve,lineDashOffset:ke,cornerRadius:De,fillOpacity:0})}distanceSquared(e,t){let n=Q8.selectByClass(this,XR,_2);return $8._ModuleSupport.nearestSquared(e,t,n).distanceSquared}get midPoint(){let e=this.datum;return e.midPoint===void 0?(Gce.error("BoxPlotGroup.datum.midPoint is undefined"),{x:NaN,y:NaN}):e.midPoint}},jce=(mt(),T(pt)),{BaseProperties:J8,AbstractBarSeriesProperties:Hce,SeriesTooltip:Wce,Validate:ro,COLOR_STRING:Q_,FUNCTION:Uce,LINE_DASH:e7,OBJECT:CG,POSITIVE_NUMBER:N2,RATIO:J_,STRING:Jp,mergeDefaults:Kce}=jce._ModuleSupport,t7=class extends J8{constructor(){super(...arguments),this.lengthRatio=.5}};me([ro(J_)],t7.prototype,"lengthRatio",2);var ZR=class extends J8{};me([ro(Q_,{optional:!0})],ZR.prototype,"stroke",2),me([ro(N2)],ZR.prototype,"strokeWidth",2),me([ro(J_)],ZR.prototype,"strokeOpacity",2),me([ro(e7,{optional:!0})],ZR.prototype,"lineDash",2),me([ro(N2)],ZR.prototype,"lineDashOffset",2);var Xo=class extends Hce{constructor(){super(...arguments),this.fill="#c16068",this.fillOpacity=1,this.stroke="#333",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.cap=new t7,this.whisker=new ZR,this.tooltip=new Wce,this.backgroundFill="white"}toJson(){let{stroke:e,strokeWidth:t,strokeOpacity:n,lineDash:a,lineDashOffset:u}=this,y=super.toJson();return y.whisker=Kce(y.whisker,{stroke:e,strokeWidth:t,strokeOpacity:n,lineDash:a,lineDashOffset:u}),y}};me([ro(Jp)],Xo.prototype,"xKey",2),me([ro(Jp)],Xo.prototype,"minKey",2),me([ro(Jp)],Xo.prototype,"q1Key",2),me([ro(Jp)],Xo.prototype,"medianKey",2),me([ro(Jp)],Xo.prototype,"q3Key",2),me([ro(Jp)],Xo.prototype,"maxKey",2),me([ro(Jp,{optional:!0})],Xo.prototype,"xName",2),me([ro(Jp,{optional:!0})],Xo.prototype,"yName",2),me([ro(Jp,{optional:!0})],Xo.prototype,"minName",2),me([ro(Jp,{optional:!0})],Xo.prototype,"q1Name",2),me([ro(Jp,{optional:!0})],Xo.prototype,"medianName",2),me([ro(Jp,{optional:!0})],Xo.prototype,"q3Name",2),me([ro(Jp,{optional:!0})],Xo.prototype,"maxName",2),me([ro(Q_,{optional:!0})],Xo.prototype,"fill",2),me([ro(J_)],Xo.prototype,"fillOpacity",2),me([ro(Q_)],Xo.prototype,"stroke",2),me([ro(N2)],Xo.prototype,"strokeWidth",2),me([ro(J_)],Xo.prototype,"strokeOpacity",2),me([ro(e7)],Xo.prototype,"lineDash",2),me([ro(N2)],Xo.prototype,"lineDashOffset",2),me([ro(N2)],Xo.prototype,"cornerRadius",2),me([ro(Uce,{optional:!0})],Xo.prototype,"itemStyler",2),me([ro(CG)],Xo.prototype,"cap",2),me([ro(CG)],Xo.prototype,"whisker",2),me([ro(CG)],Xo.prototype,"tooltip",2),me([ro(Q_)],Xo.prototype,"backgroundFill",2);var{extractDecoratedProperties:i7,fixNumericExtent:qce,keyProperty:Yce,mergeDefaults:SG,SeriesNodePickMode:n7,SMALLEST_KEY_INTERVAL:Xce,valueProperty:z2,diff:Zce,animationValidation:$ce,computeBarFocusBounds:Qce,createDatumId:a7,Color:wG,ContinuousScale:Jce,motion:o7}=bG._ModuleSupport,ede=class extends bG._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.xKey,this.minKey=a.properties.minKey,this.q1Key=a.properties.q1Key,this.medianKey=a.properties.medianKey,this.q3Key=a.properties.q3Key,this.maxKey=a.properties.maxKey}},xG=class extends bG._ModuleSupport.AbstractBarSeries{constructor(e){super({moduleCtx:e,pickModes:[n7.NEAREST_NODE,n7.EXACT_SHAPE_MATCH],directionKeys:{x:["xKey"],y:["medianKey","q1Key","q3Key","minKey","maxKey"]},directionNames:{x:["xName"],y:["medianName","q1Name","q3Name","minName","maxName"]},pathsPerSeries:[],hasHighlightedLabels:!0}),this.properties=new Xo,this.NodeEvent=ede}async processData(e){var se,de,pe;if(!this.properties.isValid()||!this.visible)return;let{xKey:t,minKey:n,q1Key:a,medianKey:u,q3Key:y,maxKey:k}=this.properties,R=!this.ctx.animationManager.isSkipped(),F=(se=this.getCategoryAxis())==null?void 0:se.scale,_=(de=this.getValueAxis())==null?void 0:de.scale,{isContinuousX:V,xScaleType:K,yScaleType:q}=this.getScaleInformation({xScale:F,yScale:_}),$=[];R&&this.processedData&&$.push(Zce(this.id,this.processedData)),R&&$.push($ce());let{processedData:te}=await this.requestDataModel(e,this.data,{props:[Yce(t,K,{id:"xValue"}),z2(n,q,{id:"minValue"}),z2(a,q,{id:"q1Value"}),z2(u,q,{id:"medianValue"}),z2(y,q,{id:"q3Value"}),z2(k,q,{id:"maxValue"}),...V?[Xce]:[],...$]});this.smallestDataInterval=(pe=te.reduced)==null?void 0:pe.smallestKeyInterval,this.animationState.transition("updateData")}getSeriesDomain(e){let{processedData:t,dataModel:n}=this;if(!(t&&n))return[];if(e===this.getBarDirection()){let k=n.getDomain(this,"minValue","value",t),R=n.getDomain(this,"maxValue","value",t);return qce([Math.min(...k),Math.max(...R)])}let{index:a,def:u}=n.resolveProcessedDataDefById(this,"xValue"),y=t.domain.keys[a];return u.type==="key"&&u.valueType==="category"?y:this.padBandExtent(y)}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){let{visible:e,dataModel:t,processedData:n}=this,a=this.getCategoryAxis(),u=this.getValueAxis();if(!(t&&n!=null&&n.rawData.length!==0&&a&&u))return;let{xKey:y,fill:k,fillOpacity:R,stroke:F,strokeWidth:_,strokeOpacity:V,lineDash:K,lineDashOffset:q,cap:$,whisker:te}=this.properties,se=[],de=t.resolveKeysById(this,"xValue",n),pe=t.resolveColumnById(this,"minValue",n),Ce=t.resolveColumnById(this,"q1Value",n),Se=t.resolveColumnById(this,"medianValue",n),ve=t.resolveColumnById(this,"q3Value",n),ke=t.resolveColumnById(this,"maxValue",n),{barWidth:De,groupIndex:Te}=this.updateGroupScale(a),ze=Jce.is(a.scale)?De*-.5:0,{groupScale:qe}=this,et=this.isVertical(),$e={itemId:y,nodeData:se,labelData:[],scales:this.calculateScaling(),visible:this.visible};return e&&n.rawData.forEach((lt,at)=>{let ht=de[at];if(ht==null)return;let vt=pe[at],wt=Ce[at],Ct=Se[at],yt=ve[at],Et=ke[at];if([vt,wt,Ct,yt,Et].some(Ut=>typeof Ut!="number")||vt>wt||wt>Ct||Ct>yt||yt>Et)return;let At={xValue:Math.round(a.scale.convert(ht)),minValue:Math.round(u.scale.convert(vt)),q1Value:Math.round(u.scale.convert(wt)),medianValue:Math.round(u.scale.convert(Ct)),q3Value:Math.round(u.scale.convert(yt)),maxValue:Math.round(u.scale.convert(Et))};At.xValue+=Math.round(qe.convert(String(Te)))+ze;let Dt=Math.round(De),Ot=Math.abs(At.q3Value-At.q1Value),It=At.xValue+Dt/2,Rt=Math.min(At.q3Value,At.q1Value)+Ot/2,Xt={x:et?It:Rt,y:et?Rt:It},Yt;et?Yt={x:Xt.x-Dt/2,y:At.minValue,width:Dt,height:At.maxValue-At.minValue}:Yt={x:At.minValue,y:Xt.y-Dt/2,width:At.maxValue-At.minValue,height:Dt},se.push({series:this,itemId:ht,datum:lt,datumIndex:at,xKey:y,bandwidth:Dt,scaledValues:At,cap:$,whisker:te,fill:k,fillOpacity:R,stroke:F,strokeWidth:_,strokeOpacity:V,lineDash:K,lineDashOffset:q,midPoint:Xt,focusRect:Yt})}),$e}legendItemSymbol(){let{fill:e,fillOpacity:t,stroke:n,strokeWidth:a,strokeOpacity:u}=this.properties;return{marker:{fill:e,fillOpacity:t,stroke:n,strokeOpacity:u,strokeWidth:a}}}getLegendData(e){var F;let{id:t,ctx:{legendManager:n},visible:a}=this,{xKey:u,yName:y,showInLegend:k,legendItemName:R}=this.properties;return!u||e!=="category"?[]:[{legendType:"category",id:t,itemId:t,seriesId:t,enabled:a&&n.getItemEnabled({seriesId:t,itemId:t}),label:{text:(F=R!=null?R:y)!=null?F:t},symbol:this.legendItemSymbol(),legendItemName:R,hideInLegend:!k}]}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:u}=this,{xKey:y,xName:k,yName:R,medianKey:F,medianName:_,q1Key:V,q1Name:K,q3Key:q,q3Name:$,minKey:te,minName:se,maxKey:de,maxName:pe,legendItemName:Ce,tooltip:Se}=u,ve=this.getCategoryAxis(),ke=this.getValueAxis();if(!n||!a||a.rawData.length===0||!ve||!ke)return;let{datumIndex:De}=e,Te=a.rawData[De],ze=n.resolveKeysById(this,"xValue",a)[De],qe=n.resolveColumnById(this,"minValue",a)[De],et=n.resolveColumnById(this,"q1Value",a)[De],$e=n.resolveColumnById(this,"medianValue",a)[De],lt=n.resolveColumnById(this,"q3Value",a)[De],at=n.resolveColumnById(this,"maxValue",a)[De];if(ze==null)return;let ht=this.getItemBaseStyle(!1);return Object.assign(ht,this.getItemStyleOverrides(String(De),Te,ht,!1)),Se.formatTooltip({heading:ve.formatDatum(ze),title:Ce!=null?Ce:R,symbol:this.legendItemSymbol(),data:[{label:se,fallbackLabel:te,value:ke.formatDatum(qe)},{label:K,fallbackLabel:V,value:ke.formatDatum(et)},{label:_,fallbackLabel:F,value:ke.formatDatum($e)},{label:$,fallbackLabel:q,value:ke.formatDatum(lt)},{label:pe,fallbackLabel:de,value:ke.formatDatum(at)}]},ge({seriesId:t,datum:Te,title:R,xKey:y,xName:k,yName:R,medianKey:F,medianName:_,q1Key:V,q1Name:K,q3Key:q,q3Name:$,minKey:te,minName:se,maxKey:de,maxName:pe},ht))}animateEmptyUpdateReady({datumSelection:e}){let t=this.isVertical(),{from:n,to:a}=_ce(t);o7.resetMotion([e],Nce(t)),o7.staticFromToMotion(this.id,"datums",this.ctx.animationManager,[e],n,a,{phase:"initial"})}isLabelEnabled(){return!1}updateDatumSelection(e){var n;let t=(n=e.nodeData)!=null?n:[];return e.datumSelection.update(t)}getItemBaseStyle(e){var k,R,F,_,V,K,q,$;let{properties:t}=this,{cornerRadius:n,cap:a,whisker:u}=t,y=e?t.highlightStyle.item:void 0;return{fill:(k=y==null?void 0:y.fill)!=null?k:t.fill,fillOpacity:(R=y==null?void 0:y.fillOpacity)!=null?R:t.fillOpacity,stroke:(F=y==null?void 0:y.stroke)!=null?F:t.stroke,strokeWidth:(_=y==null?void 0:y.strokeWidth)!=null?_:t.strokeWidth,strokeOpacity:(V=y==null?void 0:y.strokeOpacity)!=null?V:t.strokeOpacity,lineDash:(q=(K=y==null?void 0:y.lineDash)!=null?K:t.lineDash)!=null?q:[],lineDashOffset:($=y==null?void 0:y.lineDashOffset)!=null?$:t.lineDashOffset,cornerRadius:n,cap:a,whisker:u}}getItemStyleOverrides(e,t,n,a){let{id:u,properties:y}=this,{xKey:k,minKey:R,q1Key:F,medianKey:_,q3Key:V,maxKey:K,itemStyler:q}=y;if(q!=null)return this.cachedDatumCallback(a7(e,a?"highlight":"node"),()=>q(ge({seriesId:u,datum:t,xKey:k,minKey:R,q1Key:F,medianKey:_,q3Key:V,maxKey:K,highlighted:a},n)))}updateDatumNodes({datumSelection:e,isHighlight:t}){var u;let n=this.isVertical(),a=(u=this.getValueAxis())==null?void 0:u.isReversed();e.each((y,k)=>{let R=this.getFormattedStyles(k,t?"highlight":"node");t&&(R=SG(this.properties.highlightStyle.item,R));let{stroke:F,strokeWidth:_,strokeOpacity:V,lineDash:K,lineDashOffset:q}=R;R.whisker=SG(R.whisker,{stroke:F,strokeWidth:_,strokeOpacity:V,lineDash:K,lineDashOffset:q}),y.updateDatumStyles(k,R,n,a)})}updateLabelNodes(){}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;return n.update(t)}nodeFactory(){return new Vce}getFormattedStyles(e,t){let{id:n,properties:a}=this,{xKey:u,minKey:y,q1Key:k,medianKey:R,q3Key:F,maxKey:_,itemStyler:V,backgroundFill:K,cornerRadius:q}=a,{datum:$,stroke:te,strokeWidth:se,strokeOpacity:de,lineDash:pe,lineDashOffset:Ce,cap:Se,whisker:ve}=e,ke,De;if(!0)ke=e.fill,De=a.fillOpacity;else{try{ke=wG.mix(wG.fromString(K),wG.fromString(e.fill),a.fillOpacity).toString()}catch(qe){ke=e.fill}De=void 0}let ze={fill:ke,fillOpacity:De,stroke:te,strokeWidth:se,strokeOpacity:de,lineDash:pe,lineDashOffset:Ce,cornerRadius:q,cap:i7(Se),whisker:i7(ve)};if(V){let qe=this.cachedDatumCallback(a7($.index,t),()=>V(He(ge({datum:$,seriesId:n,highlighted:t==="highlight"},ze),{xKey:u,minKey:y,q1Key:k,medianKey:R,q3Key:F,maxKey:_})));if(qe)return SG(qe,ze)}return ze}computeFocusBounds({datumIndex:e}){var t;return Qce((t=this.contextNodeData)==null?void 0:t.nodeData[e].focusRect)}};xG.className="BoxPlotSeries",xG.type="box-plot";var tde=(mt(),T(pt)),{CARTESIAN_AXIS_TYPE:r7}=tde._ModuleSupport.ThemeConstants,ide={series:{direction:"vertical",strokeWidth:2},axes:{[r7.NUMBER]:{crosshair:{snap:!1}},[r7.CATEGORY]:{groupPaddingInner:.2,crosshair:{enabled:!1,snap:!1}}}},{Color:MG,swapAxisCondition:nde,ThemeSymbols:{DEFAULT_BACKGROUND_COLOUR:ade},ThemeConstants:{CARTESIAN_AXIS_TYPE:s7,CARTESIAN_POSITION:l7}}=Fce._ModuleSupport,ode={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"box-plot",moduleFactory:e=>new xG(e),tooltipDefaults:{range:"exact"},defaultAxes:nde([{type:s7.NUMBER,position:l7.LEFT},{type:s7.CATEGORY,position:l7.BOTTOM}],e=>(e==null?void 0:e.direction)==="horizontal"),themeTemplate:ide,groupable:!0,paletteFactory:({takeColors:e,themeTemplateParameters:t})=>{var R;let n=t.get(ade),a=(R=Array.isArray(n)?n[0]:n)!=null?R:"white",{fills:[u],strokes:[y]}=e(1),k;try{k=MG.mix(MG.fromString(a),MG.fromString(u),.3).toString()}catch(F){k=u}return{fill:k,stroke:y,backgroundFill:a}}},rde=(mt(),T(pt)),kG=(mt(),T(pt)),AG=(mt(),T(pt)),sde=1e3,c7=_u,lde=zg,cde=Ng,d7=_g;function dde(e,t,n,a){if(e.length<sde)return;let[u,y]=L2(a),k=P2(e),{indexData:R,valueData:F}=O2(e,t,n,u,y,k),_=[{maxRange:k,indexData:R}];for(;k>64;)({indexData:R,valueData:F,maxRange:k}=F2(R,F,k)),_.push({maxRange:k,indexData:R});return _.reverse(),_}var{fixNumericExtent:ude,keyProperty:hde,createDatumId:u7,SeriesNodePickMode:h7,ChartAxisDirection:g7,SMALLEST_KEY_INTERVAL:gde,valueProperty:eN,diff:pde,animationValidation:mde,computeBarFocusBounds:fde,visibleRangeIndices:DG,Logger:p7,ContinuousScale:vde,OrdinalTimeScale:yde}=AG._ModuleSupport,bde=class extends AG._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.xKey,this.openKey=a.properties.openKey,this.closeKey=a.properties.closeKey,this.highKey=a.properties.highKey,this.lowKey=a.properties.lowKey}},m7=class extends AG._ModuleSupport.AbstractBarSeries{constructor(e){super({moduleCtx:e,pickModes:[h7.AXIS_ALIGNED,h7.EXACT_SHAPE_MATCH],directionKeys:{x:["xKey"],y:["lowKey","highKey","openKey","closeKey"]},directionNames:{x:["xName"],y:["lowName","highName","openName","closeName"]},pathsPerSeries:[]}),this.NodeEvent=bde,this.dataAggregationFilters=void 0}async processData(e){var se,de,pe;if(!this.properties.isValid()||!this.visible)return;let{xKey:t,openKey:n,closeKey:a,highKey:u,lowKey:y}=this.properties,k=!this.ctx.animationManager.isSkipped(),R=(se=this.getCategoryAxis())==null?void 0:se.scale,F=(de=this.getValueAxis())==null?void 0:de.scale,{isContinuousX:_,xScaleType:V,yScaleType:K}=this.getScaleInformation({xScale:R,yScale:F}),q=[];k&&(this.processedData&&q.push(pde(this.id,this.processedData)),q.push(mde())),n&&q.push(eN(n,K,{id:"openValue",invalidValue:void 0,missingValue:void 0}));let{dataModel:$,processedData:te}=await this.requestDataModel(e,this.data,{props:[hde(t,V,{id:"xValue"}),eN(a,K,{id:"closeValue"}),eN(u,K,{id:"highValue"}),eN(y,K,{id:"lowValue"}),..._?[gde]:[],...q]});this.smallestDataInterval=(pe=te.reduced)==null?void 0:pe.smallestKeyInterval,this.dataAggregationFilters=this.aggregateData($,te),this.animationState.transition("updateData")}aggregateData(e,t){if(t.rawData.length===0)return;let n=this.axes[g7.X];if(n==null||!(vde.is(n.scale)||yde.is(n.scale)))return;let a=e.resolveKeysById(this,"xValue",t),u=e.resolveColumnById(this,"highValue",t),y=e.resolveColumnById(this,"lowValue",t),{index:k}=e.resolveProcessedDataDefById(this,"xValue"),R=t.domain.keys[k];return dde(a,u,y,R)}getSeriesDomain(e){let{processedData:t,dataModel:n}=this;if(!(t&&n))return[];let{openKey:a}=this.properties;if(e===this.getBarDirection()){let R=n.getDomain(this,"lowValue","value",t),F=n.getDomain(this,"highValue","value",t),_=a?n.getDomain(this,"openValue","value",t):[],V=n.getDomain(this,"closeValue","value",t);return ude([Math.min(...R,...F,..._,...V),Math.max(...F,...R,..._,...V)])}let{index:u,def:y}=n.resolveProcessedDataDefById(this,"xValue"),k=t.domain.keys[u];return y.type==="key"&&y.valueType==="category"?k:this.padBandExtent(k)}getSeriesRange(e,t){var V;let{dataModel:n,processedData:a}=this;if(!n||!a)return[NaN,NaN];let y=this.axes[g7.X].scale,k=n.resolveKeysById(this,"xValue",a),R=(V=y.bandwidth)!=null?V:0,[F,_]=DG(k.length,t,K=>{let q=y.convert(k[K]);return[q,q+R]});return n.getDomainBetweenRange(this,["highValue","lowValue"],[F,_],a)}createNodeData(){let{visible:e,dataModel:t,processedData:n}=this,a=this.getCategoryAxis(),u=this.getValueAxis();if(!(t&&n!=null&&n.rawData.length!==0&&a&&u))return;let y=[],{xKey:k,highKey:R,lowKey:F}=this.properties,{rawData:_}=n,V=t.resolveKeysById(this,"xValue",n),K=t.resolveColumnById(this,"openValue",n),q=t.resolveColumnById(this,"closeValue",n),$=t.resolveColumnById(this,"highValue",n),te=t.resolveColumnById(this,"lowValue",n),{groupScale:se}=this,{barWidth:de,groupIndex:pe}=this.updateGroupScale(a),Ce=se.convert(String(pe)),Se=de>=1?de:se.rawBandwidth,ve={itemId:k,nodeData:y,labelData:[],scales:this.calculateScaling(),visible:this.visible};if(!e)return ve;let ke=(at,ht,vt,wt,Ct,yt,Et,At)=>{let Dt=_[at],Ot=a.scale.convert(ht)+Ce+Et/2,It=u.scale.convert(vt),Rt=u.scale.convert(wt),Xt=u.scale.convert(Ct),Yt=u.scale.convert(yt),Ut=wt>vt,oi=Ut?"up":"down",ti=Math.min(Xt,Yt),ai=Math.max(Xt,Yt)-ti,ui={x:Ot,y:ti+ai/2};y.push({series:this,itemId:oi,datum:Dt,datumIndex:at,xKey:k,xValue:ht,openValue:vt,closeValue:wt,highValue:Ct,lowValue:yt,midPoint:ui,aggregatedValue:wt,isRising:Ut,centerX:Ot,width:Et,y:ti,height:ai,yOpen:It,yClose:Rt,crisp:At})},{dataAggregationFilters:De}=this,Te=a.scale,[ze,qe]=Te.range,et=qe-ze,$e=at=>Te.convert(V[at])+Ce,lt=De==null?void 0:De.find(at=>at.maxRange>et);if(lt==null){let[at,ht]=DG(_.length,a.range,vt=>{let wt=$e(vt);return[wt,wt+Se]});n.rawData.length<1e3&&(at=0,ht=n.rawData.length);for(let vt=at;vt<ht;vt+=1){let wt=V[vt];if(wt==null)continue;let Ct=K[vt],yt=q[vt],Et=$[vt],At=te[vt],Dt=At!=null&&At<=Ct&&At<=yt,Ot=Et!=null&&Et>=Ct&&Et>=yt;if(!Dt){p7.warnOnce(`invalid low value for key [${F}] in data element, low value cannot be higher than datum open or close values`);continue}if(!Ot){p7.warnOnce(`invalid high value for key [${R}] in data element, high value cannot be lower than datum open or close values.`);continue}ke(vt,wt,Ct,yt,Et,At,Se,!0)}}else{let{maxRange:at,indexData:ht}=lt,[vt,wt]=DG(at,a.range,Ct=>{let yt=Ct*Ff,Et=ht[yt+c7],At=ht[yt+d7];if(Et!==-1)return[$e(Et),$e(At)+Se]});for(let Ct=vt;Ct<wt;Ct+=1){let yt=Ct*Ff,Et=ht[yt+c7],At=ht[yt+d7],Dt=ht[yt+lde],Ot=ht[yt+cde];if(Et===-1)continue;let It=(Et+At)/2|0,Rt=V[It];if(Rt==null)continue;let Xt=K[Et],Yt=q[At],Ut=$[Dt],oi=te[Ot],ti=Math.abs($e(At)-$e(Et))+Se;ke(It,Rt,Xt,Yt,Ut,oi,ti,!1)}}return ve}isVertical(){return!0}isLabelEnabled(){return!1}updateDatumSelection(e){var n;let t=(n=e.nodeData)!=null?n:[];return e.datumSelection.update(t)}updateLabelNodes(e){}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;return n.update(t)}getItemBaseStyle(e,t){var y,k,R,F,_,V,K;let{properties:n}=this,a=n.item[e],u=t?n.highlightStyle.item:void 0;return{fill:(y=u==null?void 0:u.fill)!=null?y:a.fill,fillOpacity:(k=u==null?void 0:u.fillOpacity)!=null?k:a.fillOpacity,stroke:(R=u==null?void 0:u.stroke)!=null?R:a.stroke,strokeWidth:(F=u==null?void 0:u.strokeWidth)!=null?F:a.strokeWidth,strokeOpacity:(_=u==null?void 0:u.strokeOpacity)!=null?_:a.strokeOpacity,lineDash:(V=u==null?void 0:u.lineDash)!=null?V:a.lineDash,lineDashOffset:(K=u==null?void 0:u.lineDashOffset)!=null?K:a.lineDashOffset}}getItemStyleOverrides(e,t,n,a,u){let{id:y,properties:k}=this,{itemStyler:R}=k;if(R==null)return;let{xKey:F,openKey:_,closeKey:V,highKey:K,lowKey:q}=k;return this.cachedDatumCallback(u7(e,u?"highlight":"node"),()=>R(ge({seriesId:y,datum:t,itemId:n,xKey:F,openKey:_,closeKey:V,highKey:K,lowKey:q,highlighted:u},a)))}getTooltipContent(e){var ht,vt,wt,Ct,yt;let{id:t,dataModel:n,processedData:a,properties:u}=this,{xKey:y,xName:k,yName:R,openKey:F,openName:_,highKey:V,highName:K,lowKey:q,lowName:$,closeKey:te,closeName:se,legendItemName:de,tooltip:pe}=u,Ce=this.getCategoryAxis(),Se=this.getValueAxis();if(!n||!a||a.rawData.length===0||!Ce||!Se)return;let{datumIndex:ve}=e,ke=a.rawData[ve],De=n.resolveKeysById(this,"xValue",a)[ve],Te=n.resolveColumnById(this,"openValue",a)[ve],ze=n.resolveColumnById(this,"highValue",a)[ve],qe=n.resolveColumnById(this,"lowValue",a)[ve],et=n.resolveColumnById(this,"closeValue",a)[ve];if(De==null)return;let $e=et>=Te?"up":"down",lt=this.properties.item[$e],at=this.getItemBaseStyle($e,!1);return Object.assign(at,this.getItemStyleOverrides(String(ve),ke,$e,at,!1)),pe.formatTooltip({heading:Ce.formatDatum(De),title:de,symbol:{marker:{fill:(ht=lt.fill)!=null?ht:lt.stroke,fillOpacity:(wt=(vt=lt.fillOpacity)!=null?vt:lt.strokeOpacity)!=null?wt:1,stroke:lt.stroke,strokeWidth:(Ct=lt.strokeWidth)!=null?Ct:1,strokeOpacity:(yt=lt.strokeOpacity)!=null?yt:1}},data:[{label:_,fallbackLabel:F,value:Se.formatDatum(Te)},{label:K,fallbackLabel:V,value:Se.formatDatum(ze)},{label:$,fallbackLabel:q,value:Se.formatDatum(qe)},{label:se,fallbackLabel:te,value:Se.formatDatum(et)}]},ge({seriesId:t,datum:ke,title:R,itemId:$e,xKey:y,xName:k,yName:R,openKey:F,openName:_,highKey:V,highName:K,lowKey:q,lowName:$,closeKey:te,closeName:se},at))}getDatumId(e){return u7(e.xValue)}computeFocusBounds(e){var R;let t=(R=this.getNodeData())==null?void 0:R.at(e.datumIndex);if(t==null)return;let{centerX:n,y:a,width:u,height:y}=t,k={x:n-u/2,y:a,width:u,height:y};return fde(k)}},Cde=(mt(),T(pt)),Sde=(mt(),T(pt)),{Path:wde,ScenePathChangeDetection:fA,BBox:xde}=Sde._ModuleSupport,wC=class extends wde{constructor(){super(...arguments),this.centerX=0,this.y=0,this.width=0,this.height=0,this.yOpen=0,this.yClose=0,this.crisp=!1,this.strokeAlignment=0}computeBBox(){let{centerX:e,y:t,width:n,height:a}=this;return new xde(e-n/2,t,n,a)}isPointInPath(e,t){return this.getBBox().containsPoint(e,t)}distanceSquared(e,t){return this.getBBox().distanceSquared(e,t)}get midPoint(){return{x:this.centerX,y:this.y+this.height/2}}alignedCoordinates(){let{y:e,width:t,height:n,crisp:a,strokeAlignment:u}=this,{centerX:y,yOpen:k,yClose:R}=this,F=y-t/2,_=y+t/2,V=e,K=e+n;if(a&&t>1){y=this.align(y),k=this.align(k),R=this.align(R);let $=this.align(t/2);F=y-$,_=y+$,V=this.align(e),K=V+this.align(V,n)}let q=(V+K)/2;return y+=u,F+=u,_+=u,V-=u,K+=u,k+=k<q?u:-u,R+=R<q?u:-u,{centerX:y,x0:F,x1:_,y0:V,y1:K,yOpen:k,yClose:R}}executeStroke(e,t){let{width:n,strokeWidth:a}=this;n<a&&(e.lineWidth=n),super.executeStroke(e,t)}};me([fA()],wC.prototype,"centerX",2),me([fA()],wC.prototype,"y",2),me([fA()],wC.prototype,"width",2),me([fA()],wC.prototype,"height",2),me([fA()],wC.prototype,"yOpen",2),me([fA()],wC.prototype,"yClose",2),me([fA()],wC.prototype,"crisp",2),me([fA()],wC.prototype,"strokeAlignment",2);var Mde=class extends wC{updatePath(){let{path:e}=this,{centerX:t,x0:n,x1:a,y0:u,y1:y,yOpen:k,yClose:R}=this.alignedCoordinates();e.clear(),e.moveTo(t,u),e.lineTo(t,y),Math.abs(a-n)>1&&(e.moveTo(n,k),e.lineTo(t,k),e.moveTo(t,R),e.lineTo(a,R))}},{ScenePathChangeDetection:B2,ExtendedPath2D:kde}=Cde._ModuleSupport,$R=class extends wC{constructor(){super(...arguments),this.wickPath=new kde,this.wickStroke=void 0,this.wickStrokeWidth=void 0,this.wickStrokeOpacity=void 0}updatePath(){let{path:e,stroke:t,strokeWidth:n,strokeOpacity:a,lineDash:u,lineDashOffset:y,wickStroke:k,wickStrokeWidth:R,wickStrokeOpacity:F,wickLineDash:_,wickLineDashOffset:V,strokeAlignment:K}=this,{centerX:q,x0:$,x1:te,y0:se,y1:de,yOpen:pe,yClose:Ce}=this.alignedCoordinates();this.path.clear(),this.wickPath.clear();let ve=k!=null&&k!==t||R!=null&&R!==n||F!=null&&F!==a||_!=null&&_!==u||V!=null&&V!==y?this.wickPath:e;if(Math.abs(te-$)<=3){ve.moveTo(q,se),ve.lineTo(q,de);return}let ke=Math.min(pe,Ce),De=Math.max(pe,Ce);ve.moveTo(q,se),ve.lineTo(q,ke+n/2),ve.moveTo(q,de),ve.lineTo(q,De-n/2);let Te=K+n/2,ze=De-ke-2*Te;if(ze>0)e.rect($+Te,ke+Te,te-$-2*Te,ze);else{let qe=(ke+De)/2;e.moveTo($,qe),e.lineTo(te,qe)}}drawPath(e){super.drawPath(e);let{wickPath:t}=this;if(t.isEmpty())return;let{stroke:n,strokeWidth:a,strokeOpacity:u,lineDash:y,lineDashOffset:k,wickStroke:R=n,wickStrokeWidth:F=a,wickStrokeOpacity:_=u,wickLineDash:V=y,wickLineDashOffset:K=k}=this;F!==0&&(e.globalAlpha*=_,typeof R=="string"&&(e.strokeStyle=R),e.lineWidth=F,V!=null&&e.setLineDash(V),e.lineDashOffset=K,e.stroke(t.getPath2D()))}};me([B2()],$R.prototype,"wickStroke",2),me([B2()],$R.prototype,"wickStrokeWidth",2),me([B2()],$R.prototype,"wickStrokeOpacity",2),me([B2()],$R.prototype,"wickLineDash",2),me([B2()],$R.prototype,"wickLineDashOffset",2);var Ade=(mt(),T(pt)),Dde=(mt(),T(pt)),{BaseProperties:f7,Validate:sl,AbstractBarSeriesProperties:Ede,SeriesTooltip:Ide,STRING:hy,COLOR_STRING:Tde,FUNCTION:Rde,LINE_DASH:Pde,OBJECT:tN,POSITIVE_NUMBER:v7,RATIO:Lde}=Dde._ModuleSupport,LE=class extends f7{constructor(){super(...arguments),this.stroke="#333",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};me([sl(Tde)],LE.prototype,"stroke",2),me([sl(v7)],LE.prototype,"strokeWidth",2),me([sl(Lde)],LE.prototype,"strokeOpacity",2),me([sl(Pde)],LE.prototype,"lineDash",2),me([sl(v7)],LE.prototype,"lineDashOffset",2);var EG=class extends f7{constructor(){super(...arguments),this.up=new LE,this.down=new LE}};me([sl(tN)],EG.prototype,"up",2),me([sl(tN)],EG.prototype,"down",2);var em=class extends Ede{};me([sl(hy)],em.prototype,"xKey",2),me([sl(hy)],em.prototype,"openKey",2),me([sl(hy)],em.prototype,"closeKey",2),me([sl(hy)],em.prototype,"highKey",2),me([sl(hy)],em.prototype,"lowKey",2),me([sl(hy,{optional:!0})],em.prototype,"xName",2),me([sl(hy,{optional:!0})],em.prototype,"yName",2),me([sl(hy,{optional:!0})],em.prototype,"openName",2),me([sl(hy,{optional:!0})],em.prototype,"closeName",2),me([sl(hy,{optional:!0})],em.prototype,"highName",2),me([sl(hy,{optional:!0})],em.prototype,"lowName",2);var iN=class extends em{constructor(){super(...arguments),this.tooltip=new Ide,this.item=new EG}};me([sl(tN)],iN.prototype,"tooltip",2),me([sl(tN)],iN.prototype,"item",2),me([sl(Rde,{optional:!0})],iN.prototype,"itemStyler",2);var{BaseProperties:IG,SeriesTooltip:Ode,Validate:bc,COLOR_STRING:TG,FUNCTION:Fde,LINE_DASH:y7,OBJECT:G2,POSITIVE_NUMBER:V2,RATIO:RG}=Ade._ModuleSupport,QR=class extends IG{};me([bc(TG,{optional:!0})],QR.prototype,"stroke",2),me([bc(V2)],QR.prototype,"strokeWidth",2),me([bc(RG)],QR.prototype,"strokeOpacity",2),me([bc(y7,{optional:!0})],QR.prototype,"lineDash",2),me([bc(V2)],QR.prototype,"lineDashOffset",2);var gy=class extends IG{constructor(){super(...arguments),this.fill="#c16068",this.fillOpacity=1,this.stroke="#333",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.wick=new QR}};me([bc(TG,{optional:!0})],gy.prototype,"fill",2),me([bc(RG)],gy.prototype,"fillOpacity",2),me([bc(TG)],gy.prototype,"stroke",2),me([bc(V2)],gy.prototype,"strokeWidth",2),me([bc(RG)],gy.prototype,"strokeOpacity",2),me([bc(y7)],gy.prototype,"lineDash",2),me([bc(V2)],gy.prototype,"lineDashOffset",2),me([bc(V2)],gy.prototype,"cornerRadius",2),me([bc(G2)],gy.prototype,"wick",2);var PG=class extends IG{constructor(){super(...arguments),this.up=new gy,this.down=new gy}};me([bc(G2)],PG.prototype,"up",2),me([bc(G2)],PG.prototype,"down",2);var nN=class extends em{constructor(){super(...arguments),this.item=new PG,this.tooltip=new Ode}};me([bc(G2)],nN.prototype,"item",2),me([bc(G2)],nN.prototype,"tooltip",2),me([bc(Fde,{optional:!0})],nN.prototype,"itemStyler",2);var{createDatumId:_de}=kG._ModuleSupport,LG=class extends m7{constructor(){super(...arguments),this.properties=new nN}nodeFactory(){return new $R}updateDatumNodes({datumSelection:e,isHighlight:t}){let{id:n,properties:a}=this,{xKey:u,highKey:y,lowKey:k,openKey:R,closeKey:F,item:_,itemStyler:V}=a,{up:K,down:q}=_,{fill:$,fillOpacity:te,stroke:se,strokeWidth:de,strokeOpacity:pe,lineDash:Ce,lineDashOffset:Se}=K,{stroke:ve,strokeWidth:ke,strokeOpacity:De,lineDash:Te,lineDashOffset:ze}=K.wick,{fill:qe,fillOpacity:et,stroke:$e,strokeWidth:lt,strokeOpacity:at,lineDash:ht,lineDashOffset:vt}=q,{stroke:wt,strokeWidth:Ct,strokeOpacity:yt,lineDash:Et,lineDashOffset:At}=q.wick,Dt=t?a.highlightStyle.item:void 0;e.each((Ot,It)=>{var pi,si,ci,yi,sn,Ni,nn,Gi,Pn,Ln,_r,ul,Hu,ts,Ph,wc,JE,RC,IA,XY,ZY,$Y,QY,JY,eX;let{isRising:Rt,centerX:Xt,width:Yt,y:Ut,height:oi,yOpen:ti,yClose:ai,crisp:ui}=It,qt;if(V!=null){let{fill:ZSe,fillOpacity:$Se,stroke:QSe,strokeWidth:JSe,strokeOpacity:ewe,lineDash:twe,lineDashOffset:iwe}=Rt?K:q;qt=this.cachedDatumCallback(_de(this.getDatumId(It),t?"highlight":"node"),()=>V({seriesId:n,itemId:It.itemId,xKey:u,highKey:y,lowKey:k,openKey:R,closeKey:F,datum:It.datum,fill:ZSe,fillOpacity:$Se,strokeOpacity:ewe,stroke:QSe,strokeWidth:JSe,lineDash:twe,lineDashOffset:iwe,highlighted:t}))}Ot.centerX=Xt,Ot.width=Yt,Ot.y=Ut,Ot.height=oi,Ot.yOpen=ti,Ot.yClose=ai,Ot.crisp=ui,Ot.fill=(si=(pi=Dt==null?void 0:Dt.fill)!=null?pi:qt==null?void 0:qt.fill)!=null?si:Rt?$:qe,Ot.fillOpacity=(yi=(ci=Dt==null?void 0:Dt.fillOpacity)!=null?ci:qt==null?void 0:qt.fillOpacity)!=null?yi:Rt?te:et,Ot.stroke=(Ni=(sn=Dt==null?void 0:Dt.stroke)!=null?sn:qt==null?void 0:qt.stroke)!=null?Ni:Rt?se:$e,Ot.strokeWidth=(Gi=(nn=Dt==null?void 0:Dt.strokeWidth)!=null?nn:qt==null?void 0:qt.strokeWidth)!=null?Gi:Rt?de:lt,Ot.strokeOpacity=(Ln=(Pn=Dt==null?void 0:Dt.strokeOpacity)!=null?Pn:qt==null?void 0:qt.strokeOpacity)!=null?Ln:Rt?pe:at,Ot.lineDash=(ul=(_r=Dt==null?void 0:Dt.lineDash)!=null?_r:qt==null?void 0:qt.lineDash)!=null?ul:Rt?Ce:ht,Ot.lineDashOffset=(ts=(Hu=Dt==null?void 0:Dt.lineDashOffset)!=null?Hu:qt==null?void 0:qt.lineDashOffset)!=null?ts:Rt?Se:vt;let Zt=qt==null?void 0:qt.wick;Ot.wickStroke=(wc=(Ph=Dt==null?void 0:Dt.stroke)!=null?Ph:Zt==null?void 0:Zt.stroke)!=null?wc:Rt?ve:wt,Ot.wickStrokeWidth=(RC=(JE=Dt==null?void 0:Dt.strokeWidth)!=null?JE:Zt==null?void 0:Zt.strokeWidth)!=null?RC:Rt?ke:Ct,Ot.wickStrokeOpacity=(XY=(IA=Dt==null?void 0:Dt.strokeOpacity)!=null?IA:Zt==null?void 0:Zt.strokeOpacity)!=null?XY:Rt?De:yt,Ot.wickLineDash=($Y=(ZY=Dt==null?void 0:Dt.lineDash)!=null?ZY:Zt==null?void 0:Zt.lineDash)!=null?$Y:Rt?Te:Et,Ot.wickLineDashOffset=(JY=(QY=Dt==null?void 0:Dt.lineDashOffset)!=null?QY:Zt==null?void 0:Zt.lineDashOffset)!=null?JY:Rt?ze:At,Ot.strokeAlignment=((eX=qt==null?void 0:qt.strokeWidth)!=null?eX:Rt?de:lt)/2})}legendItemSymbol(){var u,y;let{up:e,down:t}=this.properties.item,n=new kG._ModuleSupport.LinearGradient("rgb",[{color:e.fill,offset:0},{color:e.fill,offset:.5},{color:t.fill,offset:.5}],90),a=new kG._ModuleSupport.LinearGradient("rgb",[{color:e.stroke,offset:0},{color:e.stroke,offset:.5},{color:t.stroke,offset:.5}],90);return{marker:{fill:n,fillOpacity:e.fillOpacity,stroke:a,strokeWidth:(u=e.strokeWidth)!=null?u:1,strokeOpacity:(y=e.strokeOpacity)!=null?y:1}}}getLegendData(e){var _;let{id:t,data:n,visible:a,ctx:{legendManager:u}}=this,{xKey:y,yName:k,showInLegend:R,legendItemName:F}=this.properties;return!(n!=null&&n.length)||!y||e!=="category"?[]:[{legendType:"category",id:t,itemId:t,seriesId:t,enabled:a&&u.getItemEnabled({seriesId:t,itemId:t}),label:{text:(_=F!=null?F:k)!=null?_:t},symbol:this.legendItemSymbol(),legendItemName:F,hideInLegend:!R}]}};LG.className="CandleStickSeries",LG.type="candlestick";var Nde=(mt(),T(pt)),{CARTESIAN_AXIS_TYPE:b7}=Nde._ModuleSupport.ThemeConstants,zde={series:{highlightStyle:{item:{strokeWidth:3}}},animation:{enabled:!1},axes:{[b7.NUMBER]:{crosshair:{snap:!1}},[b7.ORDINAL_TIME]:{groupPaddingInner:0,crosshair:{enabled:!0}}}},{CARTESIAN_AXIS_TYPE:C7,CARTESIAN_POSITION:S7}=rde._ModuleSupport.ThemeConstants,Bde={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"candlestick",moduleFactory:e=>new LG(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:C7.NUMBER,position:S7.LEFT},{type:C7.ORDINAL_TIME,position:S7.BOTTOM}],themeTemplate:zde,groupable:!1,paletteFactory:({takeColors:e,colorsCount:t,userPalette:n,palette:a})=>{if(n==="user-indexed"){let{fills:u,strokes:y}=e(t);return{item:{up:{fill:"transparent",stroke:y[0]},down:{fill:u[0],stroke:y[0]}}}}return{item:{up:a.up,down:a.down}}}},Gde=(mt(),T(pt)),Vde=(mt(),T(pt)),jde=(mt(),T(pt)),Hde=(mt(),T(pt)),{Logger:Wde}=Hde._ModuleSupport;function w7(e,t,n){n||(t=Ude(t));let a=new Map;for(let y of e)a.set(y.id,{datum:y,linksBefore:[],linksAfter:[],maxPathLengthBefore:-1,maxPathLengthAfter:-1});let u=0;return a.forEach((y,k)=>{u=Math.max(u,OG(a,t,y,k,-1,[])+OG(a,t,y,k,1,[])+1)}),{links:t,nodeGraph:a,maxPathLength:u}}function x7(e,t,n,a){let u=a.indexOf(t);if(u!==-1){for(let k=u;k<a.length;k+=1)n.add(a[k]);return}a.push(t);let{toNode:y}=t;for(let k of e)k.fromNode===y&&x7(e,k,n,a);a.pop()}function Ude(e){let t=new Set;for(let n of e)x7(e,n,t,[]);return t.size!==0&&Wde.warnOnce("Some links formed circular references. These will be removed from the output."),t.size===0?e:e.filter(n=>!t.has(n))}function OG(e,t,n,a,u,y){if(y.includes(a))return 1/0;let k=u===-1?n.maxPathLengthBefore:n.maxPathLengthAfter;if(k===-1){k=0;let R=u===-1?n.linksBefore:n.linksAfter;for(let F of t){let{fromNode:_,toNode:V}=F,K=u===-1?V.id:_.id,q=u===-1?_.id:V.id,$=a===K?e.get(q):void 0;$!=null&&(R.push({node:$,link:F}),y==null||y.push(a),k=Math.max(k,OG(e,t,$,q,u,y)+1),y==null||y.pop())}u===-1?n.maxPathLengthBefore=k:n.maxPathLengthAfter=k}return k}var{DataModelSeries:Kde,DataController:qde,Validate:Yde,ARRAY:Xde,keyProperty:Zde,valueProperty:aN,Selection:OE,Group:JR,TransformableText:$de}=jde._ModuleSupport,FG=class extends Kde{constructor(){super(...arguments),this._chartNodes=void 0,this.nodeCount=0,this.linkCount=0,this.nodesDataModel=void 0,this.nodesProcessedData=void 0,this.processedNodes=new Map,this.linkGroup=this.contentGroup.appendChild(new JR({name:"linkGroup"})),this.nodeGroup=this.contentGroup.appendChild(new JR({name:"nodeGroup"})),this.focusLinkGroup=this.highlightNode.appendChild(new JR({name:"linkGroup"})),this.focusNodeGroup=this.highlightNode.appendChild(new JR({name:"nodeGroup"})),this.highlightLinkGroup=this.highlightNode.appendChild(new JR({name:"linkGroup"})),this.highlightNodeGroup=this.highlightNode.appendChild(new JR({name:"nodeGroup"})),this.labelSelection=OE.select(this.labelGroup,$de),this.linkSelection=OE.select(this.linkGroup,()=>this.linkFactory()),this.nodeSelection=OE.select(this.nodeGroup,()=>this.nodeFactory()),this.focusLinkSelection=OE.select(this.focusLinkGroup,()=>this.linkFactory()),this.focusNodeSelection=OE.select(this.focusNodeGroup,()=>this.nodeFactory()),this.highlightLinkSelection=OE.select(this.highlightLinkGroup,()=>this.linkFactory()),this.highlightNodeSelection=OE.select(this.highlightNodeGroup,()=>this.nodeFactory())}get nodes(){var e;return(e=this.properties.nodes)!=null?e:this._chartNodes}setChartNodes(e){this._chartNodes=e,this.nodes===e&&(this.nodeDataRefresh=!0)}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}async processData(e){let{data:t,nodes:n}=this;if(t==null||!this.properties.isValid())return;let{fromKey:a,toKey:u,sizeKey:y,idKey:k,labelKey:R}=this.properties,F=new qde("standalone",e.suppressFieldDotNotation),_=n!=null?F.request(this.id,n,{props:[Zde(k,void 0,{id:"idValue",includeProperty:!1}),...R!=null?[aN(R,void 0,{id:"labelValue",includeProperty:!1})]:[]],groupByKeys:!0}):null,V=this.requestDataModel(e,t,{props:[aN(a,void 0,{id:"fromValue",includeProperty:!1}),aN(u,void 0,{id:"toValue",includeProperty:!1}),...y!=null?[aN(y,void 0,{id:"sizeValue",includeProperty:!1,missingValue:0})]:[]],groupByKeys:!1});n!=null&&F.execute();let[K,q]=await Promise.all([_,V]);this.nodesDataModel=K==null?void 0:K.dataModel,this.nodesProcessedData=K==null?void 0:K.processedData;let $=new Map;if(K==null){let te=q.dataModel.resolveColumnById(this,"fromValue",q.processedData),se=q.dataModel.resolveColumnById(this,"toValue",q.processedData),de=pe=>{let Ce=$.size;return{series:this,itemId:void 0,datum:{},datumIndex:Ce,type:1,index:Ce,id:pe,size:0,label:pe}};q.processedData.rawData.forEach((pe,Ce)=>{let Se=te[Ce],ve=se[Ce];Se==null||ve==null||($.has(Se)||$.set(Se,de(Se)),$.has(ve)||$.set(ve,de(ve)))})}else{let te=K.dataModel.resolveColumnById(this,"idValue",K.processedData),se=R!=null?K.dataModel.resolveColumnById(this,"labelValue",K.processedData):void 0;K.processedData.rawData.forEach((de,pe)=>{let Ce=te[pe],Se=se==null?void 0:se[pe];$.set(Ce,{series:this,itemId:void 0,datum:de,datumIndex:pe,type:1,index:pe,id:Ce,size:0,label:Se})})}this.processedNodes=$}getNodeGraph(e,t,{includeCircularReferences:n}){let{dataModel:a,processedData:u}=this;if(a==null||u==null||u.rawData.length===0){let{links:te,nodeGraph:se,maxPathLength:de}=w7(new Map().values(),[],n);return this.nodeCount=0,this.linkCount=0,{nodeGraph:se,links:te,maxPathLength:de}}let{sizeKey:y}=this.properties,k=a.resolveColumnById(this,"fromValue",u),R=a.resolveColumnById(this,"toValue",u),F=y!=null?a.resolveColumnById(this,"sizeValue",u):void 0,_=new Map;this.processedNodes.forEach(te=>{let se=e(te);_.set(te.id,se)});let V=[];u.rawData.forEach((te,se)=>{let de=k[se],pe=R[se],Ce=F!=null?F[se]:1,Se=_.get(de),ve=_.get(pe);if(Ce<=0||Se==null||ve==null)return;let ke=t({series:this,itemId:void 0,datum:te,datumIndex:se,type:0,index:se,fromNode:Se,toNode:ve,size:Ce});V.push(ke)});let{links:K,nodeGraph:q,maxPathLength:$}=w7(_.values(),V,n);return this.nodeCount=q.size,this.linkCount=K.length,{nodeGraph:q,links:K,maxPathLength:$}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(e){var V,K,q,$,te,se,de,pe;let{seriesRect:t}=e,n={seriesRectWidth:(V=t==null?void 0:t.width)!=null?V:0,seriesRectHeight:(K=t==null?void 0:t.height)!=null?K:0};(this._nodeDataDependencies==null||this._nodeDataDependencies.seriesRectWidth!==n.seriesRectWidth||this._nodeDataDependencies.seriesRectHeight!==n.seriesRectHeight)&&(this._nodeDataDependencies=n),this.updateSelections();let a=($=(q=this.contextNodeData)==null?void 0:q.nodeData)!=null?$:[],u=(se=(te=this.contextNodeData)==null?void 0:te.labelData)!=null?se:[],y=(de=this.ctx.highlightManager)==null?void 0:de.getActiveHighlight();if((y==null?void 0:y.series)===this&&y.type==null){let{itemId:Ce}=y;y=Ce!=null?a.find(Se=>Se.type===1&&Se.id===Ce):void 0}else(y==null?void 0:y.series)!==this&&(y=void 0);this.contentGroup.visible=this.visible,this.contentGroup.opacity=y!=null&&(pe=this.properties.highlightStyle.series.dimOpacity)!=null?pe:1,this.labelSelection=this.updateLabelSelection({labelData:u,labelSelection:this.labelSelection}),this.updateLabelNodes({labelSelection:this.labelSelection}),this.linkSelection=this.updateLinkSelection({nodeData:a.filter(Ce=>Ce.type===0),datumSelection:this.linkSelection}),this.updateLinkNodes({datumSelection:this.linkSelection,isHighlight:!1}),this.nodeSelection=this.updateNodeSelection({nodeData:a.filter(Ce=>Ce.type===1),datumSelection:this.nodeSelection}),this.updateNodeNodes({datumSelection:this.nodeSelection,isHighlight:!1});let k,R,F,_;(y==null?void 0:y.type)===1?(k=a.filter(Ce=>Ce.type===0&&(Ce.toNode===y||Ce.fromNode===y)),R=k.map(Ce=>Ce.fromNode===y?Ce.toNode:Ce.fromNode),R.push(y),F=[],_=[y]):(y==null?void 0:y.type)===0?(k=[y],R=[y.fromNode,y.toNode],F=[y],_=[]):(k=[],R=[],F=[],_=[]),this.focusLinkSelection=this.updateLinkSelection({nodeData:k,datumSelection:this.focusLinkSelection}),this.updateLinkNodes({datumSelection:this.focusLinkSelection,isHighlight:!1}),this.focusNodeSelection=this.updateNodeSelection({nodeData:R,datumSelection:this.focusNodeSelection}),this.updateNodeNodes({datumSelection:this.focusNodeSelection,isHighlight:!1}),this.highlightLinkSelection=this.updateLinkSelection({nodeData:F,datumSelection:this.highlightLinkSelection}),this.updateLinkNodes({datumSelection:this.highlightLinkSelection,isHighlight:!0}),this.highlightNodeSelection=this.updateNodeSelection({nodeData:_,datumSelection:this.highlightNodeSelection}),this.updateNodeNodes({datumSelection:this.highlightNodeSelection,isHighlight:!0})}resetAnimation(e){}getSeriesDomain(e){return[]}getSeriesRange(e,t){return[NaN,NaN]}legendItemSymbol(e,t,n={}){let{fills:a,strokes:u}=this.properties,{fill:y=a[t%a.length],fillOpacity:k=1,stroke:R=u[t%u.length],strokeWidth:F=0,strokeOpacity:_=1}=n;return{marker:{fill:y,fillOpacity:k,stroke:R,strokeWidth:F,strokeOpacity:_}}}getLegendData(e){if(e!=="category")return[];let{showInLegend:t}=this.properties;return Array.from(this.processedNodes.values(),({id:n,label:a},u)=>({legendType:"category",id:this.id,itemId:n,seriesId:this.id,enabled:!0,label:{text:a!=null?a:n},symbol:this.legendItemSymbol(1,u),hideInLegend:!t,isFixed:!0}))}pickNodeClosestDatum({x:e,y:t}){let n=1/0,a;return this.linkSelection.each((u,y)=>{let k=u.containsPoint(e,t)?0:1/0;k<n&&(n=k,a=y)}),this.nodeSelection.each((u,y)=>{let k=u.distanceSquared(e,t);k<n&&(n=k,a=y)}),a!=null?{datum:a,distance:Math.sqrt(n)}:void 0}getDatumAriaText(e,t){var n;if(e.type===0)return this.ctx.localeManager.t("ariaAnnounceFlowProportionLink",{index:e.index+1,count:this.linkCount,from:e.fromNode.id,to:e.toNode.id,size:e.size,sizeName:(n=this.properties.sizeName)!=null?n:this.properties.sizeKey});if(e.type===1)return this.ctx.localeManager.t("ariaAnnounceFlowProportionNode",{index:e.index+1,count:this.nodeCount,description:t})}};me([Yde(Xde,{optional:!0,property:"nodes"})],FG.prototype,"_chartNodes",2);var Qde=(mt(),T(pt)),{BBox:Jde,Path:eue,ScenePathChangeDetection:vA}=Qde._ModuleSupport;function oN({radius:e,startAngle:t,endAngle:n,tension:a}){let u=e*Math.cos(t),y=e*Math.sin(t),k=e*Math.cos(n),R=e*Math.sin(n),F=u*a,_=y*a,V=k*a,K=R*a;return{x:[u,F,V,k],y:[y,_,K,R]}}var Iw=class extends eue{constructor(){super(...arguments),this.centerX=0,this.centerY=0,this.radius=0,this.startAngle1=0,this.endAngle1=0,this.startAngle2=0,this.endAngle2=0,this.tension=1}computeBBox(){let{centerX:e,centerY:t,radius:n,startAngle1:a,endAngle1:u,startAngle2:y,endAngle2:k,tension:R}=this,F=oN({radius:n,startAngle:a,endAngle:k,tension:R}),_=oN({radius:n,startAngle:y,endAngle:u,tension:R}),V=Math.min(...F.x,..._.x),K=Math.max(...F.x,..._.x)-V,q=Math.min(...F.y,..._.y),$=Math.max(...F.y,..._.y)-q;return new Jde(e+V,t+q,K,$)}tensionedCurveTo(e,t,n,a,u,y,k,R){let{path:F,tension:_}=this,V=1-_;F.cubicCurveTo((n-e)*V+e,(a-t)*V+t,(u-k)*V+k,(y-R)*V+R,k,R)}updatePath(){let{path:e,centerX:t,centerY:n,radius:a}=this,{startAngle1:u,endAngle1:y,startAngle2:k,endAngle2:R}=this;u>k&&([u,k]=[k,u],[y,R]=[R,y]),e.clear();let F=t+a*Math.cos(u),_=n+a*Math.sin(u);e.moveTo(F,_),this.tensionedCurveTo(F,_,t,n,t,n,t+a*Math.cos(R),n+a*Math.sin(R)),e.arc(t,n,a,R,k,!0),this.tensionedCurveTo(t+a*Math.cos(k),n+a*Math.sin(k),t,n,t,n,t+a*Math.cos(y),n+a*Math.sin(y)),e.arc(t,n,a,y,u,!0),e.closePath()}};me([vA()],Iw.prototype,"centerX",2),me([vA()],Iw.prototype,"centerY",2),me([vA()],Iw.prototype,"radius",2),me([vA()],Iw.prototype,"startAngle1",2),me([vA()],Iw.prototype,"endAngle1",2),me([vA()],Iw.prototype,"startAngle2",2),me([vA()],Iw.prototype,"endAngle2",2),me([vA()],Iw.prototype,"tension",2);var tue=(mt(),T(pt)),{BaseProperties:M7,SeriesTooltip:iue,SeriesProperties:nue,ARRAY:aue,COLOR_STRING:rN,COLOR_STRING_ARRAY:k7,FUNCTION:A7,LINE_DASH:D7,OBJECT:sN,POSITIVE_NUMBER:yA,RATIO:j2,STRING:bA,Validate:Ia,Label:oue}=tue._ModuleSupport,_G=class extends oue{constructor(){super(...arguments),this.spacing=1,this.maxWidth=1}};me([Ia(yA)],_G.prototype,"spacing",2),me([Ia(yA)],_G.prototype,"maxWidth",2);var xC=class extends M7{constructor(){super(...arguments),this.fill=void 0,this.fillOpacity=1,this.stroke=void 0,this.strokeOpacity=1,this.strokeWidth=1,this.lineDash=[0],this.lineDashOffset=0,this.tension=0}};me([Ia(rN,{optional:!0})],xC.prototype,"fill",2),me([Ia(j2)],xC.prototype,"fillOpacity",2),me([Ia(rN,{optional:!0})],xC.prototype,"stroke",2),me([Ia(j2)],xC.prototype,"strokeOpacity",2),me([Ia(yA)],xC.prototype,"strokeWidth",2),me([Ia(D7)],xC.prototype,"lineDash",2),me([Ia(yA)],xC.prototype,"lineDashOffset",2),me([Ia(j2)],xC.prototype,"tension",2),me([Ia(A7,{optional:!0})],xC.prototype,"itemStyler",2);var py=class extends M7{constructor(){super(...arguments),this.spacing=1,this.width=1,this.fill=void 0,this.fillOpacity=1,this.stroke=void 0,this.strokeOpacity=1,this.strokeWidth=1,this.lineDash=[0],this.lineDashOffset=0}};me([Ia(yA)],py.prototype,"spacing",2),me([Ia(yA)],py.prototype,"width",2),me([Ia(rN,{optional:!0})],py.prototype,"fill",2),me([Ia(j2)],py.prototype,"fillOpacity",2),me([Ia(rN,{optional:!0})],py.prototype,"stroke",2),me([Ia(j2)],py.prototype,"strokeOpacity",2),me([Ia(yA)],py.prototype,"strokeWidth",2),me([Ia(D7)],py.prototype,"lineDash",2),me([Ia(yA)],py.prototype,"lineDashOffset",2),me([Ia(A7,{optional:!0})],py.prototype,"itemStyler",2);var Nu=class extends nue{constructor(){super(...arguments),this.idKey="",this.idName=void 0,this.labelKey=void 0,this.labelName=void 0,this.sizeKey=void 0,this.sizeName=void 0,this.nodes=void 0,this.fills=[],this.strokes=[],this.label=new _G,this.link=new xC,this.node=new py,this.tooltip=new iue}};me([Ia(bA)],Nu.prototype,"fromKey",2),me([Ia(bA)],Nu.prototype,"toKey",2),me([Ia(bA)],Nu.prototype,"idKey",2),me([Ia(bA,{optional:!0})],Nu.prototype,"idName",2),me([Ia(bA,{optional:!0})],Nu.prototype,"labelKey",2),me([Ia(bA,{optional:!0})],Nu.prototype,"labelName",2),me([Ia(bA,{optional:!0})],Nu.prototype,"sizeKey",2),me([Ia(bA,{optional:!0})],Nu.prototype,"sizeName",2),me([Ia(aue,{optional:!0})],Nu.prototype,"nodes",2),me([Ia(k7)],Nu.prototype,"fills",2),me([Ia(k7)],Nu.prototype,"strokes",2),me([Ia(sN)],Nu.prototype,"label",2),me([Ia(sN)],Nu.prototype,"link",2),me([Ia(sN)],Nu.prototype,"node",2),me([Ia(sN)],Nu.prototype,"tooltip",2);var{SeriesNodePickMode:E7,CachedTextMeasurerPool:rue,TextWrapper:sue,TextUtils:lue,createDatumId:lN,angleBetween:cN,normalizeAngle360:cue,isBetweenAngles:I7,Logger:due,Sector:uue,evaluateBezier:dN}=Vde._ModuleSupport,uN=e=>e.startAngle+cN(e.startAngle,e.endAngle)/2,NG=class extends FG{constructor(e){super({moduleCtx:e,pickModes:[E7.NEAREST_NODE,E7.EXACT_SHAPE_MATCH]}),this.properties=new Nu}isLabelEnabled(){return(this.properties.labelKey!=null||this.nodes==null)&&this.properties.label.enabled}linkFactory(){return new Iw}nodeFactory(){return new uue}createNodeData(){let{id:e,_nodeDataDependencies:{seriesRectWidth:t,seriesRectHeight:n}={seriesRectWidth:0,seriesRectHeight:0}}=this,{fromKey:a,toKey:u,sizeKey:y,label:{spacing:k,maxWidth:R,fontSize:F},node:{width:_,spacing:V}}=this.properties,K=t/2,q=n/2,$=[],{nodeGraph:te,links:se}=this.getNodeGraph(at=>He(ge({},at),{centerX:K,centerY:q,innerRadius:NaN,outerRadius:NaN,startAngle:NaN,endAngle:NaN}),at=>He(ge({},at),{centerX:K,centerY:q,radius:NaN,startAngle1:NaN,endAngle1:NaN,startAngle2:NaN,endAngle2:NaN}),{includeCircularReferences:!0}),de=0;te.forEach(({datum:at,linksBefore:ht,linksAfter:vt},wt)=>{let Ct=ht.reduce((yt,{link:Et})=>yt+Et.size,0)+vt.reduce((yt,{link:Et})=>yt+Et.size,0);if(Ct===0)te.delete(wt);else{at.size=Ct,de+=at.size;let yt=this.getLabelText(this.properties.label,{datum:at.datum,value:at.label,fromKey:a,toKey:u,sizeKey:y,size:at.size});at.label=String(yt)}});let pe=0;if(this.isLabelEnabled()){let at=this.properties.label.getFont(),ht=0;te.forEach(({datum:vt})=>{let{id:wt,label:Ct}=vt;if(Ct==null)return;let yt=sue.wrapText(Ct,{maxWidth:R,font:this.properties.label,textWrap:"never"}),{width:Et}=rue.measureText(yt,{font:at,textAlign:"left",textBaseline:"middle"});ht=Math.max(Et,ht),$.push({id:wt,text:yt,centerX:K,centerY:q,angle:NaN,radius:NaN})}),pe=ht+k}let Ce=te.size,Se=Math.min(t,n)/2-_-pe,ve=V/Se;if(pe!==0&&(Ce*ve>=1.5*Math.PI||Se<=0)&&($=[],Se=Math.min(t,n)/2-_,ve=V/Se),Ce*ve>=2*Math.PI||Se<=0){due.warnOnce("There was insufficient space to display the Chord Series.");return}let ke=Se,De=Se+_,Te=Math.max((2*Math.PI-Ce*ve)/de,0),ze=0;te.forEach(({datum:at})=>{at.innerRadius=ke,at.outerRadius=De,at.startAngle=ze,at.endAngle=ze+at.size*Te,ze=at.endAngle+ve;let ht=(at.innerRadius+at.outerRadius)/2,vt=uN(at);at.midPoint={x:at.centerX+ht*Math.cos(vt),y:at.centerY+ht*Math.sin(vt)}});let qe=[];te.forEach(({datum:at,linksBefore:ht,linksAfter:vt})=>{let wt=uN(at),Ct=[...ht.map(Et=>({link:Et.link,distance:cN(uN(Et.node.datum),wt),after:!1})),...vt.map(Et=>({link:Et.link,distance:cN(uN(Et.node.datum),wt),after:!0}))],yt=at.startAngle;Ct.toSorted((Et,At)=>Et.distance-At.distance).forEach(({link:Et,after:At})=>{let Dt=Et.size*Te;At?(Et.startAngle1=yt,Et.endAngle1=yt+Dt):(Et.startAngle2=yt,Et.endAngle2=yt+Dt),yt+=Et.size*Te}),qe.push(at)});let{tension:et}=this.properties.link;se.forEach(at=>{at.radius=Se;let ht=oN({radius:Se,startAngle:at.startAngle1,endAngle:at.endAngle2,tension:et}),vt=oN({radius:Se,startAngle:at.startAngle2,endAngle:at.endAngle1,tension:et}),wt=dN(...ht.x,.5),Ct=dN(...ht.y,.5),yt=dN(...vt.x,.5),Et=dN(...vt.y,.5);at.midPoint={x:at.centerX+(wt+yt)/2,y:at.centerY+(Ct+Et)/2},qe.push(at)}),$.forEach(at=>{var vt;let ht=(vt=te.get(at.id))==null?void 0:vt.datum;ht!=null&&(at.radius=De+k,at.angle=cue(ht.startAngle+cN(ht.startAngle,ht.endAngle)/2))}),$.sort((at,ht)=>at.angle-ht.angle);let $e=1/0,lt=-1/0;return $=$.filter(at=>{let ht=lue.getLineHeight(F),vt=Math.atan2(ht/2,at.radius),wt=at.angle-vt,Ct=at.angle+vt;return I7($e,wt,Ct)||I7(lt,wt,Ct)?!1:($e=Math.min(wt,$e),lt=Math.max(Ct,lt),!0)}),{itemId:e,nodeData:qe,labelData:$}}updateLabelSelection(e){let t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){let{labelSelection:t}=e,{color:n,fontStyle:a,fontWeight:u,fontSize:y,fontFamily:k}=this.properties.label;t.each((R,{text:F,centerX:_,centerY:V,radius:K,angle:q})=>{R.visible=!0,R.translationX=_+K*Math.cos(q),R.translationY=V+K*Math.sin(q),R.text=F,R.fill=n,R.fontStyle=a,R.fontWeight=u,R.fontSize=y,R.fontFamily=k,R.textBaseline="middle",Math.cos(q)>=0?(R.textAlign="left",R.rotation=q):(R.textAlign="right",R.rotation=q-Math.PI)})}updateNodeSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>lN([t.type,t.id]))}getBaseNodeStyle(e){var V,K,q,$,te,se,de;let{properties:t}=this,{fill:n,fillOpacity:a,stroke:u,strokeOpacity:y,lineDash:k,lineDashOffset:R}=t.node,F=this.getStrokeWidth(t.node.strokeWidth),_=e?t.highlightStyle.item:void 0;return{fill:(V=_==null?void 0:_.fill)!=null?V:n,fillOpacity:(K=_==null?void 0:_.fillOpacity)!=null?K:a,stroke:(q=_==null?void 0:_.stroke)!=null?q:u,strokeOpacity:($=_==null?void 0:_.strokeOpacity)!=null?$:y,strokeWidth:(te=_==null?void 0:_.strokeWidth)!=null?te:F,lineDash:(se=_==null?void 0:_.lineDash)!=null?se:k,lineDashOffset:(de=_==null?void 0:_.lineDashOffset)!=null?de:R}}getNodeStyleOverrides(e,t,n,a,u,y,k){var se,de;let{id:R,properties:F}=this,{fills:_,strokes:V}=F,{itemStyler:K}=F.node,q=(se=y.fill)!=null?se:_[n%_.length],$=(de=y.stroke)!=null?de:V[n%V.length],te={};if(k||(te.fill=q,te.stroke=$),K!=null){let pe=this.cachedDatumCallback(lN(e,k?"highlight":"node"),()=>{let{fillOpacity:Ce=1,strokeOpacity:Se=1,strokeWidth:ve=0,lineDash:ke=[],lineDashOffset:De=0}=y;return K({seriesId:R,datum:t,highlighted:k,label:u,size:a,fill:q,fillOpacity:Ce,stroke:$,strokeOpacity:Se,strokeWidth:ve,lineDash:ke,lineDashOffset:De})});Object.assign(te,pe)}return te}updateNodeNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getBaseNodeStyle(n);t.each((u,y)=>{var V,K,q,$,te,se,de;let{datumIndex:k,size:R,label:F}=y,_=this.getNodeStyleOverrides(String(k),y,k,R,F,a,n);u.centerX=y.centerX,u.centerY=y.centerY,u.innerRadius=y.innerRadius,u.outerRadius=y.outerRadius,u.startAngle=y.startAngle,u.endAngle=y.endAngle,u.fill=(V=_.fill)!=null?V:a==null?void 0:a.fill,u.fillOpacity=(K=_.fillOpacity)!=null?K:a==null?void 0:a.fillOpacity,u.stroke=(q=_.stroke)!=null?q:a==null?void 0:a.stroke,u.strokeOpacity=($=_.strokeOpacity)!=null?$:a==null?void 0:a.strokeOpacity,u.strokeWidth=(te=_.strokeWidth)!=null?te:a==null?void 0:a.strokeWidth,u.lineDash=(se=_.lineDash)!=null?se:a==null?void 0:a.lineDash,u.lineDashOffset=(de=_.lineDashOffset)!=null?de:a==null?void 0:a.lineDashOffset,u.inset=u.strokeWidth/2})}updateLinkSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>lN([t.type,t.index,t.fromNode.id,t.toNode.id]))}getBaseLinkStyle(e){var K,q,$,te,se,de,pe;let{properties:t}=this,{fill:n,fillOpacity:a,stroke:u,strokeOpacity:y,lineDash:k,lineDashOffset:R,tension:F}=t.link,_=this.getStrokeWidth(t.link.strokeWidth),V=e?t.highlightStyle.item:void 0;return{fill:(K=V==null?void 0:V.fill)!=null?K:n,fillOpacity:(q=V==null?void 0:V.fillOpacity)!=null?q:a,stroke:($=V==null?void 0:V.stroke)!=null?$:u,strokeOpacity:(te=V==null?void 0:V.strokeOpacity)!=null?te:y,strokeWidth:(se=V==null?void 0:V.strokeWidth)!=null?se:_,lineDash:(de=V==null?void 0:V.lineDash)!=null?de:k,lineDashOffset:(pe=V==null?void 0:V.lineDashOffset)!=null?pe:R,tension:F}}getLinkStyleOverrides(e,t,n,a,u){var $,te;let{id:y,properties:k}=this,{fills:R,strokes:F}=k,{itemStyler:_}=k.link,V=($=a.fill)!=null?$:R[n%R.length],K=(te=a.stroke)!=null?te:F[n%F.length],q={};if(u||(q.fill=V,q.stroke=K),_!=null){let se=this.cachedDatumCallback(lN(e,u?"highlight":"node"),()=>{let{fillOpacity:de=1,strokeOpacity:pe=1,strokeWidth:Ce=0,lineDash:Se=[],lineDashOffset:ve=0,tension:ke}=a;return _({seriesId:y,datum:t,highlighted:u,tension:ke,fill:V,fillOpacity:de,stroke:K,strokeOpacity:pe,strokeWidth:Ce,lineDash:Se,lineDashOffset:ve})});Object.assign(q,se)}return q}updateLinkNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getBaseLinkStyle(n);t.each((u,y)=>{var _,V,K,q,$,te,se,de;let{datumIndex:k}=y,R=y.fromNode.datumIndex,F=this.getLinkStyleOverrides(String(k),y,R,a,n);u.centerX=y.centerX,u.centerY=y.centerY,u.radius=y.radius,u.startAngle1=y.startAngle1,u.endAngle1=y.endAngle1,u.startAngle2=y.startAngle2,u.endAngle2=y.endAngle2,u.fill=(_=F==null?void 0:F.fill)!=null?_:a.fill,u.fillOpacity=(V=F==null?void 0:F.fillOpacity)!=null?V:a.fillOpacity,u.stroke=(K=F==null?void 0:F.stroke)!=null?K:a.stroke,u.strokeOpacity=(q=F==null?void 0:F.strokeOpacity)!=null?q:a.strokeOpacity,u.strokeWidth=($=F==null?void 0:F.strokeWidth)!=null?$:a.strokeWidth,u.lineDash=(te=F==null?void 0:F.lineDash)!=null?te:a.lineDash,u.lineDashOffset=(se=F==null?void 0:F.lineDashOffset)!=null?se:a.lineDashOffset,u.tension=(de=F==null?void 0:F.tension)!=null?de:a.tension})}getTooltipContent(e){let{id:t,processedData:n,nodesProcessedData:a,properties:u}=this,{fromKey:y,toKey:k,sizeKey:R,sizeName:F,tooltip:_}=u,{datumIndex:V}=e,K=e.type===0?e.fromNode.index:e.index,q=e.type===0?`${e.fromNode.label} - ${e.toNode.label}`:e.label,$=e.type===0?n==null?void 0:n.rawData[e.datumIndex]:a==null?void 0:a.rawData[e.datumIndex],te=e.size,se;if(e.type===0){let de=e.fromNode.datumIndex,pe=this.getBaseLinkStyle(!1);Object.assign(pe,this.getLinkStyleOverrides(String(V),$,de,pe,!1)),se=pe}else{let de=e.label,pe=this.getBaseNodeStyle(!1);Object.assign(pe,this.getNodeStyleOverrides(String(V),$,V,te,de,pe,!1)),se=pe}return _.formatTooltip({title:q,symbol:this.legendItemSymbol(e.type,K,se),data:R!=null?[{label:F,fallbackLabel:R,value:String(te)}]:[]},ge({seriesId:t,datum:$,title:q,fromKey:y,toKey:k,sizeKey:R,sizeName:F,size:te},se))}computeFocusBounds({datumIndex:e}){var n;let t=(n=this.contextNodeData)==null?void 0:n.nodeData[e];if((t==null?void 0:t.type)===1){for(let a of this.nodeSelection)if(a.datum===t)return a.node;return}else if((t==null?void 0:t.type)===0){for(let a of this.linkSelection)if(a.datum===t)return a.node;return}}};NG.className="ChordSeries",NG.type="chord";var{DEFAULT_FONT_FAMILY:hue,DEFAULT_LABEL_COLOUR:gue}=Gde._ModuleSupport.ThemeSymbols,pue={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["flow-proportion"],solo:!0,identifier:"chord",tooltipDefaults:{range:"exact"},moduleFactory:e=>new NG(e),themeTemplate:{series:{highlightStyle:{series:{dimOpacity:.2}},label:{fontFamily:hue,color:gue,spacing:5,maxWidth:100},node:{spacing:8,width:10,strokeWidth:0},link:{fillOpacity:.5,strokeWidth:0,tension:.4}},legend:{enabled:!1,toggleSeries:!1}},paletteFactory({takeColors:e,colorsCount:t}){let{fills:n,strokes:a}=e(t);return{fills:n,strokes:a}}},mue=(mt(),T(pt)),fue=(mt(),T(pt)),{ThemeSymbols:{DEFAULT_INSIDE_SERIES_LABEL_COLOUR:vue,DEFAULT_FONT_FAMILY:yue},ThemeConstants:{CARTESIAN_AXIS_TYPE:eP,CARTESIAN_POSITION:tP}}=fue._ModuleSupport;function T7(e){var a;let u=(a=e==null?void 0:e.stageLabel)!=null?a:{},{placement:t}=u,n=wi(u,["placement"]);return(e==null?void 0:e.direction)!=="horizontal"?[{type:eP.CATEGORY,position:t==="after"?tP.RIGHT:tP.LEFT,label:n},{type:eP.NUMBER,position:tP.BOTTOM}]:[{type:eP.NUMBER,position:tP.LEFT},{type:eP.CATEGORY,position:t==="before"?tP.TOP:tP.BOTTOM,label:n}]}var bue={series:{direction:"vertical",strokeWidth:0,spacingRatio:.25,label:{enabled:!0,fontSize:12,fontFamily:yue,color:vue},dropOff:{enabled:!0,fillOpacity:.2,strokeWidth:0}},axes:{[eP.NUMBER]:{nice:!1,gridLine:{enabled:!1},crosshair:{enabled:!1},label:{enabled:!1,formatter(e){var t;return Math.abs(e.value).toFixed((t=e.fractionDigits)!=null?t:0)}}},[eP.CATEGORY]:{line:{enabled:!1}}}},Cue=(mt(),T(pt)),zG=(mt(),T(pt)),Sue=(mt(),T(pt)),{lineDistanceSquared:hN,BBox:wue,Path:xue,ScenePathChangeDetection:CA}=Sue._ModuleSupport,R7=1e-6;function P7([e,t],[n,a]){return Math.abs(e-n)<=R7&&Math.abs(t-a)<=R7}var MC=class extends xue{constructor(){super(...arguments),this.x0=0,this.y0=0,this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.x3=0,this.y3=0}get midPoint(){let{x0:e,y0:t,x1:n,y1:a,x2:u,y2:y,x3:k,y3:R}=this;return{x:(e+n+u+k)/4,y:(t+a+y+R)/4}}distanceSquared(e,t){if(this.containsPoint(e,t))return 0;let{x0:n,y0:a,x1:u,y1:y,x2:k,y2:R,x3:F,y3:_}=this;return Math.min(hN(e,t,n,a,u,y,1/0),hN(e,t,u,y,k,R,1/0),hN(e,t,k,R,F,_,1/0),hN(e,t,F,_,n,a,1/0))}computeBBox(){let{x0:e,y0:t,x1:n,y1:a,x2:u,y2:y,x3:k,y3:R}=this,F=Math.min(e,n,u,k),_=Math.max(e,n,u,k)-F,V=Math.min(t,a,y,R),K=Math.max(t,a,y,R)-V;return new wue(F,V,_,K)}updatePath(){let{path:e,x0:t,y0:n,x1:a,y1:u,x2:y,y2:k,x3:R,y3:F}=this,_=[[t,n],[a,u],[y,k],[R,F]];e.clear();let V,K;_.forEach(q=>{if(V!=null&&P7(V,q)||K!=null&&P7(K,q))return;let[$,te]=q;V==null?e.moveTo($,te):e.lineTo($,te),V!=null||(V=q),K=q}),e.closePath()}};me([CA()],MC.prototype,"x0",2),me([CA()],MC.prototype,"y0",2),me([CA()],MC.prototype,"x1",2),me([CA()],MC.prototype,"y1",2),me([CA()],MC.prototype,"x2",2),me([CA()],MC.prototype,"y2",2),me([CA()],MC.prototype,"x3",2),me([CA()],MC.prototype,"y3",2);var Mue=(mt(),T(pt)),{NODE_UPDATE_STATE_TO_PHASE_MAPPING:kue}=Mue._ModuleSupport;function L7(e,t,n,a){let{x0:u,y0:y,x1:k,y1:R,x2:F,y2:_,x3:V,y3:K,opacity:q}=e;return n?{x0:(u+V)/2,y0:(y+K)/2,x1:(k+F)/2,y1:(R+_)/2,x2:(k+F)/2,y2:(R+_)/2,x3:(u+V)/2,y3:(y+K)/2,opacity:q}:{x0:(u+k)/2,y0:(y+R)/2,x1:(u+k)/2,y1:(y+R)/2,x2:(F+V)/2,y2:(_+K)/2,x3:(F+V)/2,y3:(_+K)/2,opacity:q}}function Aue(e,t){let n=y=>y==null;return{fromFn:(y,k,R)=>{R==="updated"&&n(k)?R="removed":R==="updated"&&n(y.previousDatum)&&(R="added");let F;R==="added"&&y.previousDatum==null&&t==="fade"?F=He(ge({},H2(y,k)),{opacity:0}):R==="unknown"||R==="added"?F=L7(k,y.previousDatum,e,t):F={x0:y.x0,y0:y.y0,x1:y.x1,y1:y.y1,x2:y.x2,y2:y.y2,x3:y.x3,y3:y.y3,opacity:y.opacity};let _=kue[R];return He(ge({},F),{phase:_})},toFn:(y,k,R)=>{let F;return R==="removed"&&y.datum==null&&t==="fade"?F=He(ge({},H2(y,k)),{opacity:0}):R==="removed"||n(k)?F=L7(k,y.previousDatum,e,t):F=H2(y,k),F}}}function H2(e,t){let{x0:n,y0:a,x1:u,y1:y,x2:k,y2:R,x3:F,y3:_,opacity:V}=t;return{x0:n,y0:a,x1:u,y1:y,x2:k,y2:R,x3:F,y3:_,opacity:V}}var{SeriesNodePickMode:O7,SeriesZIndexMap:F7,valueProperty:Due,keyProperty:Eue,ChartAxisDirection:Iue,updateLabelNode:Tue,SMALLEST_KEY_INTERVAL:Rue,LARGEST_KEY_INTERVAL:Pue,diff:Lue,fixNumericExtent:Oue,seriesLabelFadeInAnimation:_7,resetMotion:Fue,resetLabelFn:_ue,animationValidation:Nue,computeBarFocusBounds:zue,createDatumId:Bue,ContinuousScale:Gue,Group:Vue,Selection:jue,PointerEvents:N7,motion:Hue}=zG._ModuleSupport,Wue=class extends zG._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.stageKey,this.yKey=a.properties.valueKey}},z7=class extends zG._ModuleSupport.AbstractBarSeries{constructor({moduleCtx:e,animationResetFns:t}){super({moduleCtx:e,pickModes:[O7.AXIS_ALIGNED,O7.EXACT_SHAPE_MATCH],hasHighlightedLabels:!0,directionKeys:{x:["stageKey"],y:["valueKey"]},directionNames:{x:[],y:[]},datumSelectionGarbageCollection:!1,animationResetFns:{datum:t.datum,label:_ue}}),this.NodeEvent=Wue,this.connectorNodeGroup=this.contentGroup.appendChild(new Vue({name:`${this.id}-series-connectorNodes`,zIndex:F7.BACKGROUND})),this.connectorSelection=jue.select(this.connectorNodeGroup,()=>this.connectionFactory()),this.connectorNodeGroup.pointerEvents=N7.None}get pickModeAxis(){return"main-category"}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.connectorNodeGroup.zIndex=[F7.BACKGROUND,e],!0):!1}isVertical(){return!super.isVertical()}connectionFactory(){return new MC}async processData(e){var te,se,de,pe;if(!this.properties.isValid())return;let{stageKey:t,valueKey:n}=this.properties,{visible:a,id:u}=this,y=(Ce,Se,ve)=>a&&this.ctx.legendManager.getItemEnabled({seriesId:u,itemId:ve}),k=(te=this.getCategoryAxis())==null?void 0:te.scale,R=(se=this.getValueAxis())==null?void 0:se.scale,{isContinuousX:F,xScaleType:_,yScaleType:V}=this.getScaleInformation({xScale:k,yScale:R}),K=[];this.ctx.animationManager.isSkipped()||(this.processedData&&K.push(Lue(this.id,this.processedData)),K.push(Nue()));let q=this.visible?{}:{forceValue:0},{processedData:$}=await this.requestDataModel(e,this.data,{props:[Eue(t,_,{id:"xValue"}),Due(n,V,He(ge({id:"yValue"},q),{validation:y,invalidValue:0})),...F?[Rue,Pue]:[],...K],groupByKeys:!1});this.smallestDataInterval=(de=$.reduced)==null?void 0:de.smallestKeyInterval,this.largestDataInterval=(pe=$.reduced)==null?void 0:pe.largestKeyInterval,this.animationState.transition("updateData")}getSeriesDomain(e){let{processedData:t,dataModel:n,id:a,ctx:{legendManager:u}}=this;if(!t||!n)return[];let{keys:[y],values:k}=t.domain;if(e===this.getCategoryDirection()){let R=n.resolveProcessedDataDefById(this,"xValue");return(R==null?void 0:R.def.type)==="key"&&(R==null?void 0:R.def.valueType)==="category"?this.hasData?y.filter((F,_)=>u.getItemEnabled({seriesId:a,itemId:_})):[]:this.padBandExtent(y)}else{let R=n.resolveProcessedDataIndexById(this,"yValue"),F=k[R][1],_=[-F,F];return Oue(_)}}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){let{hasData:e,data:t,dataModel:n,groupScale:a,processedData:u,id:y,ctx:{legendManager:k}}=this,R=this.getCategoryAxis(),F=this.getValueAxis();if(!(e&&t&&R&&F&&n&&(u==null?void 0:u.type)==="ungrouped"&&u.rawData.length!==0))return;let _=R.scale,V=F.scale,K=this.getBarDirection()===Iue.X,{stageKey:q,valueKey:$}=this.properties,{strokeWidth:te}=this.barStyle(),se=`${$}`,de={itemId:se,nodeData:[],labelData:[],connectorData:[],scales:this.calculateScaling(),visible:this.visible},pe=this.visible;if(!pe)return de;let Ce=n.resolveKeysById(this,"xValue",u),Se=n.resolveColumnById(this,"yValue",u),{barWidth:ve,groupIndex:ke}=this.updateGroupScale(R),De=Gue.is(_)?ve*-.5:0,Te;return u.rawData.forEach((ze,qe)=>{let et=pe&&k.getItemEnabled({seriesId:y,itemId:qe}),$e=Ce[qe];if($e==null)return;let lt=Math.round(_.convert($e))+a.convert(String(ke))+De,at=Se[qe],ht=Math.round(V.convert(-at)),vt=Math.round(V.convert(at)),wt=Math.max(te,Math.abs(vt-ht)),Ct={x:K?Math.min(vt,ht):lt,y:K?lt:Math.min(vt,ht),width:K?wt:ve,height:K?ve:wt},yt={x:Ct.x+Ct.width/2,y:Ct.y+Ct.height/2},Et=this.createLabelData({rect:Ct,barAlongX:K,yDatum:at,datum:ze,visible:et}),At={index:qe,series:this,itemId:se,datum:ze,datumIndex:qe,xValue:$e,yValue:at,xKey:q,yKey:$,x:Ct.x,y:Ct.y,width:Ct.width,height:Ct.height,midPoint:yt,strokeWidth:te,opacity:1,label:Et,visible:et};if(de.nodeData.push(At),Et!=null&&de.labelData.push(Et),Te!=null){let Dt=Te.rect,Ot=Te.nodeDatum,It=Te.datumIndex;K?de.connectorData.push({datum:Ot,datumIndex:It,x0:Dt.x,y0:Dt.y+Dt.height,x1:Dt.x+Dt.width,y1:Dt.y+Dt.height,x2:Ct.x+Ct.width,y2:Ct.y,x3:Ct.x,y3:Ct.y,opacity:1}):de.connectorData.push({datum:Ot,datumIndex:It,x0:Dt.x+Dt.width,y0:Dt.y,x1:Ct.x,y1:Ct.y,x2:Ct.x,y2:Ct.y+Ct.height,x3:Dt.x+Dt.width,y3:Dt.y+Dt.height,opacity:1})}et&&(Te={itemId:se,rect:Ct,nodeDatum:At,datumIndex:qe})}),de}updateNodes(e,t,n){var y,k;super.updateNodes(e,t,n);let{connectorSelection:a}=this,u=(k=(y=this.contextNodeData)==null?void 0:y.connectorData)!=null?k:[];this.connectorSelection=this.updateConnectorSelection({connectorSelection:a,connectorData:u}),this.updateConnectorNodes({connectorSelection:a})}updateDatumSelection(e){let{nodeData:t,datumSelection:n}=e,a=t!=null?t:[];return n.update(a,void 0,u=>this.getDatumId(u))}updateConnectorSelection(e){let{connectorData:t,connectorSelection:n}=e;return n.update(this.connectorEnabled()?t:[],void 0,a=>this.getDatumId(a.datum))}updateConnectorNodes(e){let{fills:t,strokes:n}=this.properties,{fill:a,fillOpacity:u,stroke:y,strokeOpacity:k,strokeWidth:R,lineDash:F,lineDashOffset:_}=this.connectorStyle();e.connectorSelection.each((V,K)=>{let{datumIndex:q}=K;V.setProperties(H2(V,K)),V.fill=a!=null?a:t[q%t.length],V.fillOpacity=u,V.stroke=y!=null?y:n[q%n.length],V.strokeOpacity=k,V.strokeWidth=R,V.lineDash=F,V.lineDashOffset=_})}getHighlightLabelData(e,t){let n=e.filter(a=>a.datum===t.datum);return n.length>0?n:void 0}updateLabelSelection(e){let t=this.properties.label.enabled?e.labelData:[];return e.labelSelection.update(t,n=>{n.pointerEvents=N7.None})}updateLabelNodes(e){e.labelSelection.each((t,n)=>{Tue(t,this.properties.label,n)})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:u}=this,{fills:y,strokes:k,stageKey:R,valueKey:F,tooltip:_,itemStyler:V}=u,K=this.getCategoryAxis(),q=this.getValueAxis();if(!n||!a||a.rawData.length===0||!K||!q)return;let{datumIndex:$}=e,te=a.rawData[$],se=n.resolveKeysById(this,"xValue",a)[$],de=n.resolveColumnById(this,"yValue",a)[$];if(se==null)return;let pe=ge({fill:y[$%y.length],stroke:k[$%k.length]},this.barStyle());if(V!=null){let Ce=this.cachedDatumCallback(Bue(String($),"node"),()=>V(ge({seriesId:t,datum:te,stageKey:R,valueKey:F,highlighted:!1},pe)));Object.assign(pe,Ce)}return _.formatTooltip({symbol:this.legendItemSymbol($),data:[{label:K.formatDatum(se),value:q.formatDatum(de)}]},ge({seriesId:t,datum:te,title:R,stageKey:R,valueKey:F},pe))}resetAllAnimation(e){super.resetAllAnimation(e),Fue([this.connectorSelection],H2)}animateEmptyUpdateReady({labelSelection:e}){let{connectorSelection:t}=this,n=this.isVertical(),u=Aue(n,"normal");Hue.fromToMotion(this.id,"connectors",this.ctx.animationManager,[t],u),_7(this,"labels",this.ctx.animationManager,e)}animateWaitingUpdateReady(e){let{labelSelection:t}=e;this.ctx.animationManager.stopByAnimationGroupId(this.id),_7(this,"labels",this.ctx.animationManager,t)}getDatumId(e){return`${e.xValue}`}isLabelEnabled(){return this.properties.label.enabled}computeFocusBounds({datumIndex:e}){var t;return zue((t=this.contextNodeData)==null?void 0:t.nodeData[e])}legendItemSymbol(e){var F,_;let{strokeWidth:t,fillOpacity:n,strokeOpacity:a}=this.barStyle(),{fills:u,strokes:y}=this.properties,k=(F=u[e%u.length])!=null?F:"black",R=(_=y[e%y.length])!=null?_:"black";return{marker:{fill:k,fillOpacity:n,stroke:R,strokeWidth:t,strokeOpacity:a}}}getLegendData(e){let{id:t,processedData:n,dataModel:a,ctx:{legendManager:u},visible:y}=this;if(!a||!n||e!=="category"||!this.properties.isValid())return[];let{showInLegend:k}=this.properties,R=a.resolveKeysById(this,"xValue",n);return n.rawData.map((F,_)=>{let V=R[_];if(V!=null)return{legendType:"category",id:t,itemId:_,seriesId:t,enabled:y&&u.getItemEnabled({seriesId:t,itemId:_}),label:{text:V},symbol:this.legendItemSymbol(_),skipAnimations:!0,hideInLegend:!k}}).filter(F=>F!=null)}},Uue=(mt(),T(pt)),{Label:Kue,AbstractBarSeriesProperties:que,SeriesTooltip:Yue,AxisLabel:Xue,Validate:Th,UNION:B7,COLOR_STRING_ARRAY:G7,LINE_DASH:Zue,OBJECT:BG,POSITIVE_NUMBER:GG,RATIO:V7,STRING:j7}=Uue._ModuleSupport,VG=class extends Kue{constructor(){super(...arguments),this.spacing=0}};me([Th(B7(["before","middle","after"],"a placement"))],VG.prototype,"placement",2),me([Th(GG)],VG.prototype,"spacing",2);var H7=class extends Xue{};me([Th(B7(["before","after"],"a placement"))],H7.prototype,"placement",2);var tm=class extends que{constructor(){super(...arguments),this.fills=[],this.fillOpacity=1,this.strokes=[],this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.label=new VG,this.stageLabel=new H7,this.tooltip=new Yue}};me([Th(j7)],tm.prototype,"stageKey",2),me([Th(j7)],tm.prototype,"valueKey",2),me([Th(G7)],tm.prototype,"fills",2),me([Th(V7)],tm.prototype,"fillOpacity",2),me([Th(G7)],tm.prototype,"strokes",2),me([Th(GG)],tm.prototype,"strokeWidth",2),me([Th(V7)],tm.prototype,"strokeOpacity",2),me([Th(Zue)],tm.prototype,"lineDash",2),me([Th(GG)],tm.prototype,"lineDashOffset",2),me([Th(BG)],tm.prototype,"label",2),me([Th(BG)],tm.prototype,"stageLabel",2),me([Th(BG)],tm.prototype,"tooltip",2);function W7(e,{x:t,y:n,width:a,height:u,opacity:y}){return{x1:t,y1:n,x2:t+a,y2:n+u,opacity:y}}var{formatValue:$ue,Line:Que}=Cue._ModuleSupport,jG=class extends z7{constructor(e){super({moduleCtx:e,animationResetFns:{datum:W7}}),this.properties=new tm}get hasData(){var a;let{id:e,ctx:{legendManager:t}}=this,n=(a=this.data)==null?void 0:a.reduce((u,y,k)=>u+(t.getItemEnabled({seriesId:e,itemId:k})?1:0),0);return n!=null&&n>1}getBandScalePadding(){return{inner:1,outer:0}}connectorEnabled(){return!0}barStyle(){return{fillOpacity:1,strokeOpacity:1,strokeWidth:0,lineDash:[],lineDashOffset:0}}connectorStyle(){let{fillOpacity:e,strokeOpacity:t,strokeWidth:n,lineDash:a,lineDashOffset:u}=this.properties;return{fillOpacity:e,strokeOpacity:t,strokeWidth:n,lineDash:a,lineDashOffset:u}}nodeFactory(){return new Que}createLabelData({rect:e,barAlongX:t,yDatum:n,datum:a,visible:u}){let{stageKey:y,valueKey:k,label:R}=this.properties,{spacing:F,placement:_}=R,V,K,q,$;if(t)switch(V=e.x+e.width/2,q="center",_){case"before":K=e.y-F,$="bottom";break;case"after":K=e.y+e.height+F,$="top";break;default:K=e.y+e.height/2,$="middle"}else switch(K=e.y+e.height/2,$="middle",_){case"before":V=e.x-F,q="right";break;case"after":V=e.x+e.width+F,q="left";break;default:V=e.x+e.width/2,q="center"}return{x:V,y:K,textAlign:q,textBaseline:$,text:this.getLabelText(R,{itemId:k,value:n,datum:a,stageKey:y,valueKey:k},te=>$ue(te,0)),itemId:k,datum:a,series:this,visible:u}}updateDatumNodes(e){let t=e.isHighlight?this.properties.highlightStyle.item:void 0;e.datumSelection.each((n,a)=>{var u,y,k;n.setProperties(W7(n,a)),n.stroke=t==null?void 0:t.stroke,n.strokeWidth=(u=t==null?void 0:t.strokeWidth)!=null?u:0,n.strokeOpacity=(y=t==null?void 0:t.strokeOpacity)!=null?y:1,n.lineDash=t==null?void 0:t.lineDash,n.lineDashOffset=(k=t==null?void 0:t.lineDashOffset)!=null?k:0})}};jG.className="ConeFunnelSeries",jG.type="cone-funnel";var Jue=(mt(),T(pt)),{ThemeSymbols:{DEFAULT_LABEL_COLOUR:ehe,DEFAULT_FONT_FAMILY:the},ThemeConstants:{CARTESIAN_AXIS_TYPE:U7}}=Jue._ModuleSupport,ihe={series:{direction:"vertical",strokeWidth:0,label:{enabled:!0,fontSize:12,fontFamily:the,color:ehe,placement:"before",spacing:4}},seriesArea:{padding:{top:20,bottom:20}},axes:{[U7.NUMBER]:{nice:!1,gridLine:{enabled:!1},crosshair:{enabled:!1},label:{enabled:!1,formatter(e){var t;return Math.abs(e.value).toFixed((t=e.fractionDigits)!=null?t:0)}}},[U7.CATEGORY]:{line:{enabled:!1}}}},nhe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"cone-funnel",moduleFactory:e=>new jG(e),solo:!0,tooltipDefaults:{range:"nearest"},defaultAxes:T7,themeTemplate:ihe,paletteFactory:({userPalette:e,themeTemplateParameters:t,takeColors:n,colorsCount:a})=>{let{fills:u}=n(a),y=t.get(mue._ModuleSupport.ThemeSymbols.DEFAULT_FUNNEL_SERIES_COLOR_RANGE),k=e==="inbuilt"?y:[u[0],u[1]];return{fills:k,strokes:k.slice(0)}}},ahe=(mt(),T(pt)),ohe=(mt(),T(pt)),{Label:rhe,DropShadow:she,AbstractBarSeriesProperties:lhe,BaseProperties:che,SeriesTooltip:dhe,AxisLabel:uhe,Validate:wr,UNION:hhe,BOOLEAN:ghe,COLOR_STRING_ARRAY:K7,COLOR_STRING:q7,FUNCTION:phe,LINE_DASH:Y7,OBJECT:W2,POSITIVE_NUMBER:gN,RATIO:U2,STRING:X7}=ohe._ModuleSupport,mhe=class extends rhe{},Z7=class extends uhe{};me([wr(hhe(["before","after"],"a placement"))],Z7.prototype,"placement",2);var Tw=class extends che{constructor(){super(...arguments),this.enabled=!0,this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};me([wr(ghe)],Tw.prototype,"enabled",2),me([wr(q7,{optional:!0})],Tw.prototype,"fill",2),me([wr(U2)],Tw.prototype,"fillOpacity",2),me([wr(q7,{optional:!0})],Tw.prototype,"stroke",2),me([wr(gN)],Tw.prototype,"strokeWidth",2),me([wr(U2)],Tw.prototype,"strokeOpacity",2),me([wr(Y7)],Tw.prototype,"lineDash",2),me([wr(gN)],Tw.prototype,"lineDashOffset",2);var jd=class extends lhe{constructor(){super(...arguments),this.fills=[],this.fillOpacity=1,this.strokes=[],this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.spacingRatio=0,this.dropOff=new Tw,this.shadow=new she().set({enabled:!1}),this.label=new mhe,this.stageLabel=new Z7,this.tooltip=new dhe}};me([wr(X7)],jd.prototype,"stageKey",2),me([wr(X7)],jd.prototype,"valueKey",2),me([wr(K7)],jd.prototype,"fills",2),me([wr(U2)],jd.prototype,"fillOpacity",2),me([wr(K7)],jd.prototype,"strokes",2),me([wr(gN)],jd.prototype,"strokeWidth",2),me([wr(U2)],jd.prototype,"strokeOpacity",2),me([wr(Y7)],jd.prototype,"lineDash",2),me([wr(gN)],jd.prototype,"lineDashOffset",2),me([wr(U2)],jd.prototype,"spacingRatio",2),me([wr(phe,{optional:!0})],jd.prototype,"itemStyler",2),me([wr(W2)],jd.prototype,"dropOff",2),me([wr(W2)],jd.prototype,"shadow",2),me([wr(W2)],jd.prototype,"label",2),me([wr(W2)],jd.prototype,"stageLabel",2),me([wr(W2)],jd.prototype,"tooltip",2);var{ChartAxisDirection:$7,getRectConfig:fhe,updateRect:vhe,checkCrisp:yhe,resetBarSelectionsFn:bhe,prepareBarAnimationFunctions:Q7,midpointStartingBarPosition:J7,formatValue:Che,Rect:She,motion:e9}=ahe._ModuleSupport,HG=class extends z7{constructor(e){super({moduleCtx:e,animationResetFns:{datum:bhe}}),this.properties=new jd}getBandScalePadding(){return{inner:this.properties.spacingRatio,outer:0}}connectorEnabled(){return this.properties.dropOff.enabled}barStyle(){let{fillOpacity:e,strokeOpacity:t,strokeWidth:n,lineDash:a,lineDashOffset:u}=this.properties;return{fillOpacity:e,strokeOpacity:t,strokeWidth:n,lineDash:a,lineDashOffset:u}}connectorStyle(){let{fill:e,fillOpacity:t,stroke:n,strokeOpacity:a,strokeWidth:u,lineDash:y,lineDashOffset:k}=this.properties.dropOff;return{fill:e,fillOpacity:t,stroke:n,strokeOpacity:a,strokeWidth:u,lineDash:y,lineDashOffset:k}}nodeFactory(){return new She}createLabelData({rect:e,yDatum:t,datum:n,visible:a}){let{valueKey:u,stageKey:y,label:k}=this.properties;return{x:e.x+e.width/2,y:e.y+e.height/2,textAlign:"center",textBaseline:"middle",text:this.getLabelText(k,{itemId:y,value:t,datum:n,valueKey:u,stageKey:y},R=>Che(R,0)),itemId:y,datum:n,series:this,visible:a}}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,{id:a}=this,{stageKey:u,valueKey:y,highlightStyle:{item:k},fills:R,strokes:F,fillOpacity:_,strokeOpacity:V,strokeWidth:K,lineDash:q,lineDashOffset:$,itemStyler:te,shadow:se}=this.properties,de=this.axes[$7.X],pe=yhe(de==null?void 0:de.scale,de==null?void 0:de.visibleRange,this.smallestDataInterval,this.largestDataInterval),Ce=this.getCategoryDirection()===$7.X;t.each((Se,ve)=>{var $e,lt;let{datumIndex:ke}=ve,De=($e=R[ke%R.length])!=null?$e:"black",Te=(lt=F[ke%F.length])!=null?lt:"black",ze={fill:De,stroke:Te,fillOpacity:_,strokeOpacity:V,lineDash:q,lineDashOffset:$,fillShadow:se,strokeWidth:this.getStrokeWidth(K)},qe=Ce?ve.width>0:ve.height>0,et=fhe(this,String(ve.datumIndex),{datum:ve,isHighlighted:n,style:ze,highlightStyle:k,itemStyler:te,seriesId:a,stageKey:u,valueKey:y});et.crisp=pe,et.visible=qe,vhe(Se,et)})}animateEmptyUpdateReady(e){super.animateEmptyUpdateReady(e);let{datumSelection:t}=e,n=this.isVertical(),u=Q7(J7(n,"normal"));e9.fromToMotion(this.id,"datums",this.ctx.animationManager,[t],u)}animateWaitingUpdateReady(e){var y,k;super.animateWaitingUpdateReady(e);let{datumSelection:t}=e,{processedData:n}=this,a=(k=(y=n==null?void 0:n.reduced)==null?void 0:y.diff)==null?void 0:k[this.id],u=Q7(J7(this.isVertical(),"fade"));e9.fromToMotion(this.id,"datums",this.ctx.animationManager,[t],u,(R,F)=>F.xValue,a)}};HG.className="FunnelSeries",HG.type="funnel";var whe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"funnel",moduleFactory:e=>new HG(e),solo:!0,tooltipDefaults:{range:"exact"},defaultAxes:T7,themeTemplate:bue,paletteFactory:({takeColors:e})=>{let{fills:t,strokes:n}=e(1);return{fills:t,strokes:n}}},xhe=(mt(),T(pt)),WG=(mt(),T(pt)),Mhe=(mt(),T(pt)),{CachedTextMeasurerPool:t9,TextUtils:i9,TextWrapper:pN,findMaxValue:n9,Logger:khe}=Mhe._ModuleSupport;function Ahe(e,t){let{fontSize:n,minimumFontSize:a=n}=e,{fontSize:u,minimumFontSize:y=u}=t,k=n-a,R=u-y,F=e.fontSize,_=t.fontSize,V=[{labelFontSize:n,secondaryLabelFontSize:u}];for(;F>a||_>y;){let K=k>0?(F-a)/k:-1,q=R>0?(_-y)/R:-1;K>q?F--:_--,V.push({labelFontSize:F,secondaryLabelFontSize:_})}return V.reverse(),V}function iP(e,t){return e.lineHeight!=null&&e.fontSize!=null?e.lineHeight*t/e.fontSize:i9.getLineHeight(t)}function a9(e,t,n,a,{padding:u},y){var se,de;let{spacing:k=0}=t,R=2*u,F=2*u+k,_=((se=t.minimumFontSize)!=null?se:t.fontSize)+((de=a.minimumFontSize)!=null?de:a.fontSize);if(_>y(_+F,!1).height-F)return;let V=Ahe(t,a),K={fontFamily:t.fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight},q={fontFamily:a.fontFamily,fontSize:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight},$,te;return n9(0,V.length-1,pe=>{let{labelFontSize:Ce,secondaryLabelFontSize:Se}=V[pe],ve=pe===0,ke=iP(t,Ce),De=iP(a,Se),Te=y(ke+De+F,ve),ze=Te.width-R,qe=Te.height-F;if(ke+De>qe||(($==null||$.fontSize!==Ce)&&(K.fontSize=Ce,$=r9(t,e,ze,qe,K,t.wrapping,ve?t.overflowStrategy:"hide")),$==null||$.width>ze||$.height>qe)||((te==null||te.fontSize!==Se)&&(q.fontSize=Se,te=r9(a,n,ze,qe,q,a.wrapping,ve?a.overflowStrategy:"hide")),te==null))return;let et=$.height+te.height;if(!(te.width>ze||et>qe))return{width:Math.max($.width,te.width),height:et+k,meta:Te.meta,label:$,secondaryLabel:te}})}function K2(e,t,{padding:n},a){var R;let u=2*n,y=Math.min((R=t.minimumFontSize)!=null?R:t.fontSize,t.fontSize),k={fontFamily:t.fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight};return n9(y,t.fontSize,F=>{var de;let _=iP(t,F),V=F===y,K=a(_+u,V),q=K.width-u,$=K.height-u;if(_>$)return;k.fontSize=F;let te=pN.wrapLines(e,{maxWidth:q,maxHeight:$,font:k,textWrap:t.wrapping,overflow:(de=V?t.overflowStrategy:void 0)!=null?de:"hide"});if(!te.length)return;let se=Dhe(te,{lineHeight:_,font:k,maxWidth:q,maxHeight:$});if(se)return[ge({fontSize:F,lineHeight:_},se),K.meta]})}function o9(e){return(e==null?void 0:e.minimumFontSize)!=null&&(e==null?void 0:e.fontSize)&&(e==null?void 0:e.minimumFontSize)>(e==null?void 0:e.fontSize)}function UG(e,t,n,a,u,y){let k=t.enabled?e:void 0,R=a.enabled?n:void 0;(o9(t)||o9(a))&&khe.warnOnce("minimumFontSize should be set to a value less than or equal to the font size");let F;k!=null&&R!=null&&(F=a9(k,t,R,a,u,y));let _;if(F==null&&k!=null&&(_=K2(k,t,u,y)),_!=null){let[K,q]=_;F={width:K.width,height:K.height,meta:q,label:K,secondaryLabel:void 0}}let V;if(F==null&&k==null&&R!=null&&(V=K2(R,a,u,y)),V!=null){let[K,q]=V;F={width:K.width,height:K.height,meta:q,label:void 0,secondaryLabel:K}}return F}function r9(e,t,n,a,u,y,k){let R=pN.wrapLines(t,{maxWidth:n,maxHeight:a,font:u,textWrap:y,overflow:k});if(!R.length)return;let F=iP(e,u.fontSize),{width:_}=t9.measureLines(R,{font:u});return{width:_,lineHeight:F,text:R.join(`
`),height:R.length*F,fontSize:u.fontSize}}function Dhe(e,{font:t,lineHeight:n=i9.defaultLineHeight,maxWidth:a,maxHeight:u=1/0}){let y=n*e.length;for(;y>u;){if(e.length===1)return;e.pop(),e[e.length-1]=pN.appendEllipsis(e.at(-1)),y=n*e.length}let k=t9.measureLines(e,{font:t}),R,F;if(k.width>a){let _=[];F=0;for(let V of k.lineMetrics){if(V.width>a){if(!_.length)return;break}_.push(V.text),F=Math.max(F,V.width)}R=pN.appendEllipsis(_.join(`
`))}else R=e.join(`
`),F=k.width;return{text:R,width:F,height:y}}var Ehe=(mt(),T(pt)),s9=(mt(),T(pt)),{Validate:q2,NUMBER:Ihe,POSITIVE_NUMBER:l9,TEXT_WRAP:The,OVERFLOW_STRATEGY:Rhe}=s9._ModuleSupport,nP=class extends s9._ModuleSupport.Label{constructor(){super(...arguments),this.wrapping="on-space",this.overflowStrategy="ellipsis"}};me([q2(The)],nP.prototype,"wrapping",2),me([q2(Rhe)],nP.prototype,"overflowStrategy",2),me([q2(l9,{optional:!0})],nP.prototype,"lineHeight",2),me([q2(l9,{optional:!0})],nP.prototype,"minimumFontSize",2);var kC=class extends nP{constructor(){super(...arguments),this.spacing=0}};me([q2(Ihe)],kC.prototype,"spacing",2);var Y2=class extends nP{},{CartesianSeriesProperties:Phe,SeriesTooltip:Lhe,Validate:Hd,AND:Ohe,ARRAY:Fhe,COLOR_STRING:_he,COLOR_STRING_ARRAY:Nhe,FUNCTION:zhe,OBJECT:c9,POSITIVE_NUMBER:d9,RATIO:Bhe,STRING:FE,TEXT_ALIGN:Ghe,VERTICAL_ALIGN:Vhe}=Ehe._ModuleSupport,Qc=class extends Phe{constructor(){super(...arguments),this.colorRange=["black","black"],this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.textAlign="center",this.verticalAlign="middle",this.itemPadding=0,this.label=new kC,this.tooltip=new Lhe}};me([Hd(FE,{optional:!0})],Qc.prototype,"title",2),me([Hd(FE)],Qc.prototype,"xKey",2),me([Hd(FE)],Qc.prototype,"yKey",2),me([Hd(FE,{optional:!0})],Qc.prototype,"colorKey",2),me([Hd(FE,{optional:!0})],Qc.prototype,"xName",2),me([Hd(FE,{optional:!0})],Qc.prototype,"yName",2),me([Hd(FE,{optional:!0})],Qc.prototype,"colorName",2),me([Hd(Ohe(Nhe,Fhe.restrict({minLength:1})))],Qc.prototype,"colorRange",2),me([Hd(_he,{optional:!0})],Qc.prototype,"stroke",2),me([Hd(Bhe)],Qc.prototype,"strokeOpacity",2),me([Hd(d9,{optional:!0})],Qc.prototype,"strokeWidth",2),me([Hd(Ghe)],Qc.prototype,"textAlign",2),me([Hd(Vhe)],Qc.prototype,"verticalAlign",2),me([Hd(d9)],Qc.prototype,"itemPadding",2),me([Hd(zhe,{optional:!0})],Qc.prototype,"itemStyler",2),me([Hd(c9)],Qc.prototype,"label",2),me([Hd(c9)],Qc.prototype,"tooltip",2);var{SeriesNodePickMode:u9,computeBarFocusBounds:jhe,getMissCount:Hhe,valueProperty:KG,ChartAxisDirection:AC,DEFAULT_CARTESIAN_DIRECTION_KEYS:Whe,DEFAULT_CARTESIAN_DIRECTION_NAMES:Uhe,createDatumId:Khe,Logger:qhe,ColorScale:Yhe,Rect:Xhe,PointerEvents:Zhe}=WG._ModuleSupport,$he=class extends WG._ModuleSupport.CartesianSeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.colorKey=a.properties.colorKey}},Qhe={left:-.5,center:0,right:-.5},Jhe={top:-.5,middle:0,bottom:-.5},qG=class extends WG._ModuleSupport.CartesianSeries{constructor(e){super({moduleCtx:e,directionKeys:Whe,directionNames:Uhe,pickModes:[u9.NEAREST_NODE,u9.EXACT_SHAPE_MATCH],pathsPerSeries:[],hasMarkers:!1,hasHighlightedLabels:!0}),this.properties=new Qc,this.NodeEvent=$he,this.colorScale=new Yhe}async processData(e){var te,se,de;let t=this.axes[AC.X],n=this.axes[AC.Y];if(!t||!n||!this.properties.isValid()||!((te=this.data)!=null&&te.length))return;let{xKey:a,yKey:u,colorRange:y,colorKey:k}=this.properties,R=(se=this.axes[AC.X])==null?void 0:se.scale,F=(de=this.axes[AC.Y])==null?void 0:de.scale,{xScaleType:_,yScaleType:V}=this.getScaleInformation({xScale:R,yScale:F}),K=this.colorScale.type,{dataModel:q,processedData:$}=await this.requestDataModel(e,this.data,{props:[KG(a,_,{id:"xValue"}),KG(u,V,{id:"yValue"}),...k?[KG(k,K,{id:"colorValue"})]:[]]});if(this.isColorScaleValid()){let pe=q.resolveProcessedDataIndexById(this,"colorValue");this.colorScale.domain=$.domain.values[pe],this.colorScale.range=y,this.colorScale.update()}}isColorScaleValid(){let{colorKey:e}=this.properties;if(!e)return!1;let{dataModel:t,processedData:n}=this;if(!t||!n)return!1;let a=t.resolveProcessedDataIndexById(this,"colorValue"),u=n.rawData.length,y=Hhe(this,n.defs.values[a].missing);return!(u===0||u===y)}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;return!t||!n?[]:e===AC.X?t.getDomain(this,"xValue","value",n):t.getDomain(this,"yValue","value",n)}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){var vt,wt,Ct,yt,Et;let{data:e,visible:t,axes:n,dataModel:a,processedData:u}=this,y=n[AC.X],k=n[AC.Y];if(!(e&&a&&(u!=null&&u.rawData.length)&&t&&y&&k))return;if(y.type!=="category"||k.type!=="category"){qhe.warnOnce(`Heatmap series expected axes to have "category" type, but received "${y.type}" and "${k.type}" instead.`);return}let{xKey:R,xName:F,yKey:_,yName:V,colorKey:K,colorName:q,textAlign:$,verticalAlign:te,itemPadding:se,label:de}=this.properties,pe=a.resolveColumnById(this,"xValue",u),Ce=a.resolveColumnById(this,"yValue",u),Se=K?a.resolveColumnById(this,"colorValue",u):void 0,ve=y.scale,ke=k.scale,De=((vt=ve.bandwidth)!=null?vt:0)/2,Te=((wt=ke.bandwidth)!=null?wt:0)/2,ze=[],qe=[],et=(Ct=ve.bandwidth)!=null?Ct:10,$e=(yt=ke.bandwidth)!=null?yt:10,lt=(et-2*se)*Qhe[$],at=($e-2*se)*Jhe[te],ht=()=>({width:et,height:$e,meta:null});return u.rawData.forEach((At,Dt)=>{let Ot=pe[Dt],It=Ce[Dt],Rt=ve.convert(Ot)+De,Xt=ke.convert(It)+Te,Yt=Se==null?void 0:Se[Dt],Ut=Yt==null?void 0:this.getLabelText(de,{value:Yt,datum:At,colorKey:K,colorName:q,xKey:R,yKey:_,xName:F,yName:V}),oi=UG(Ut,this.properties.label,void 0,this.properties.label,{padding:se},ht),ti={x:Rt,y:Xt,size:0};if(ze.push({series:this,itemId:_,datumIndex:Dt,yKey:_,xKey:R,xValue:Ot,yValue:It,colorValue:Yt,datum:At,point:ti,width:et,height:$e,midPoint:{x:Rt,y:Xt},missing:Yt==null}),(oi==null?void 0:oi.label)!=null){let{text:ai,fontSize:ui,lineHeight:qt,height:Zt}=oi.label,{fontStyle:pi,fontFamily:si,fontWeight:ci,color:yi}=this.properties.label,sn=ti.x+lt*(et-2*se),Ni=ti.y+at*($e-2*se)-(oi.height-Zt)*.5;qe.push({series:this,itemId:_,datum:At,text:ai,fontSize:ui,lineHeight:qt,fontStyle:pi,fontFamily:si,fontWeight:ci,color:yi,textAlign:$,verticalAlign:te,x:sn,y:Ni})}}),{itemId:(Et=this.properties.yKey)!=null?Et:this.id,nodeData:ze,labelData:qe,scales:this.calculateScaling(),visible:this.visible}}nodeFactory(){return new Xhe}update(e){return this.ctx.animationManager.skipCurrentBatch(),super.update(e)}updateDatumSelection(e){let{nodeData:t,datumSelection:n}=e,a=t!=null?t:[];return n.update(a)}getItemBaseStyle(e){var u,y,k,R;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{fill:n==null?void 0:n.fill,fillOpacity:(u=n==null?void 0:n.fillOpacity)!=null?u:1,stroke:(y=n==null?void 0:n.stroke)!=null?y:t.stroke,strokeWidth:(k=n==null?void 0:n.strokeWidth)!=null?k:a,strokeOpacity:(R=n==null?void 0:n.strokeOpacity)!=null?R:t.strokeOpacity}}getItemStyleOverrides(e,t,n,a,u){let{id:y,properties:k}=this,{xKey:R,yKey:F,colorRange:_,itemStyler:V}=k,K=this.isColorScaleValid()&&n!=null?this.colorScale.convert(n):_[0],q=a.fill==null?{fill:K}:void 0;if(V!=null){q!=null||(q={});let $=this.cachedDatumCallback(Khe(e,u?"highlight":"node"),()=>V(ge({seriesId:y,datum:t,xKey:R,yKey:F,highlighted:u,fill:K},a)));Object.assign(q,$)}return q}updateDatumNodes(e){var F;let{isHighlight:t}=e,n=this.axes[AC.X],[a,u]=(F=n==null?void 0:n.visibleRange)!=null?F:[],k=!(a!==0||u!==1),R=this.getItemBaseStyle(t);e.datumSelection.each((_,V)=>{var Ce,Se,ve,ke,De;let{datumIndex:K,colorValue:q,datum:$,point:te,width:se,height:de}=V,pe=this.getItemStyleOverrides(String(K),$,q,R,t);_.crisp=k,_.x=Math.floor(te.x-se/2),_.y=Math.floor(te.y-de/2),_.width=Math.ceil(se),_.height=Math.ceil(de),_.fill=(Ce=pe==null?void 0:pe.fill)!=null?Ce:R.fill,_.fillOpacity=(Se=pe==null?void 0:pe.fillOpacity)!=null?Se:R.fillOpacity,_.stroke=(ve=pe==null?void 0:pe.stroke)!=null?ve:R.stroke,_.strokeWidth=(ke=pe==null?void 0:pe.strokeWidth)!=null?ke:R.strokeWidth,_.strokeOpacity=(De=pe==null?void 0:pe.strokeOpacity)!=null?De:R.strokeOpacity})}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e,{enabled:a}=this.properties.label,u=a?t:[];return n.update(u)}updateLabelNodes(e){e.labelSelection.each((t,n)=>{t.text=n.text,t.fontSize=n.fontSize,t.lineHeight=n.lineHeight,t.fontStyle=n.fontStyle,t.fontFamily=n.fontFamily,t.fontWeight=n.fontWeight,t.fill=n.color,t.textAlign=n.textAlign,t.textBaseline=n.verticalAlign,t.x=n.x,t.y=n.y,t.pointerEvents=Zhe.None})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:u,properties:y,colorScale:k}=this,{xKey:R,xName:F,yKey:_,yName:V,colorKey:K,colorName:q,colorRange:$,title:te,legendItemName:se,tooltip:de}=y,pe=u[AC.X],Ce=u[AC.Y];if(!n||!a||a.rawData.length===0||!pe||!Ce)return;let{datumIndex:Se}=e,ve=a.rawData[Se],ke=n.resolveColumnById(this,"xValue",a)[Se],De=n.resolveColumnById(this,"yValue",a)[Se],Te=K!=null&&this.isColorScaleValid()?n.resolveColumnById(this,"colorValue",a)[Se]:void 0;if(ke==null)return;let ze=[],qe;Te==null?qe=$[0]:(qe=k.convert(Te),ze.push({label:q,fallbackLabel:K,value:String(Te)})),ze.push({label:F,fallbackLabel:R,value:pe.formatDatum(ke)},{label:V,fallbackLabel:_,value:Ce.formatDatum(De)});let et=qe!=null?{marker:{shape:"square",fill:qe,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1}}:void 0,$e=this.getItemBaseStyle(!1);return Object.assign($e,this.getItemStyleOverrides(String(Se),ve,Te,$e,!1)),de.formatTooltip({title:te!=null?te:se,symbol:et,data:ze},ge({seriesId:t,datum:ve,title:te,xKey:R,xName:F,yKey:_,yName:V,colorKey:K,colorName:q},$e))}getLegendData(e){return e!=="gradient"||!this.properties.isValid()||!this.isColorScaleValid()||!this.dataModel?[]:[{legendType:"gradient",enabled:this.visible,seriesId:this.id,colorName:this.properties.colorName,colorDomain:this.processedData.domain.values[this.dataModel.resolveProcessedDataIndexById(this,"colorValue")],colorRange:this.properties.colorRange}]}isLabelEnabled(){return this.properties.label.enabled&&!!this.properties.colorKey}getBandScalePadding(){return{inner:0,outer:0}}computeFocusBounds({datumIndex:e}){var k;let t=(k=this.contextNodeData)==null?void 0:k.nodeData[e];if(t===void 0)return;let{width:n,height:a,midPoint:u}=t,y={x:u.x-n/2,y:u.y-a/2,width:n,height:a};return jhe(y)}};qG.className="HeatmapSeries",qG.type="heatmap";var ege=(mt(),T(pt)),{ThemeSymbols:{DEFAULT_FONT_FAMILY:tge,DEFAULT_LABEL_COLOUR:ige},ThemeConstants:{FONT_SIZE:nge}}=ege._ModuleSupport,age={series:{label:{enabled:!1,color:ige,fontSize:nge.SMALL,fontFamily:tge,wrapping:"on-space",overflowStrategy:"ellipsis"},itemPadding:3},gradientLegend:{enabled:!0}},{ThemeSymbols:{DEFAULT_DIVERGING_SERIES_COLOR_RANGE:oge,DEFAULT_BACKGROUND_COLOUR:rge},ThemeConstants:{CARTESIAN_AXIS_TYPE:h9,CARTESIAN_POSITION:g9}}=xhe._ModuleSupport,sge={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"heatmap",moduleFactory:e=>new qG(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:h9.CATEGORY,position:g9.LEFT},{type:h9.CATEGORY,position:g9.BOTTOM}],themeTemplate:age,paletteFactory:({takeColors:e,colorsCount:t,userPalette:n,themeTemplateParameters:a})=>{var _;let u=a.get(oge),y=a.get(rge),k=(_=Array.isArray(y)?y[0]:y)!=null?_:"white",{fills:R,strokes:F}=e(t);return{stroke:n==="inbuilt"?k:F[0],colorRange:n==="inbuilt"?u:[R[0],R[1]]}}},lge=(mt(),T(pt)),p9=(mt(),T(pt)),wxe=(mt(),T(pt)),cge=1e3,m9=10;function f9(e,t,n,a,u,y){let k=e[y];if(k==null)return!1;let R=Z_(k,t,n),F=$_(R,u);return y===a[F+_u]||y===a[F+_g]||y===a[F+Ng]||y===a[F+zg]}function dge(e,t,n){if(e.length<cge)return;let[a,u]=L2(n),y=P2(e,m9),{indexData:k,valueData:R}=O2(e,t,t,a,u,y),F=[];for(let V=0;V<e.length;V+=1)f9(e,a,u,k,y,V)&&F.push(V);let _=[{maxRange:y,indices:F}];for(;F.length>m9&&y>64;)({maxRange:y}=F2(k,R,y,{inPlace:!0})),F=F.filter(f9.bind(null,e,a,u,k,y)),_.push({maxRange:y,indices:F});return _.reverse(),_}var{ChartAxisDirection:uge,ContinuousScale:hge,OrdinalTimeScale:gge}=p9._ModuleSupport,pge=class extends p9._ModuleSupport.LineSeries{aggregateData(e,t){if(t.rawData.length===0)return;let n=this.axes[uge.X];if(n==null||!(hge.is(n.scale)||gge.is(n.scale)))return;let a=e.resolveColumnById(this,"xValue",t),u=e.resolveColumnById(this,"yValueRaw",t),y=e.getDomain(this,"xValue","value",t);return dge(a,u,y)}},{LineSeriesModule:mge}=lge._ModuleSupport,fge=He(ge({},mge),{type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"line",moduleFactory:e=>new pge(e)}),vge=(mt(),T(pt)),yge=(mt(),T(pt)),{ColorScale:bge}=yge._ModuleSupport;function v9(e){if(e==null)return[];let t=new bge;t.domain=[0,1],t.range=e;let n=5;return Array.from({length:5},(a,u)=>t.convert(u/(n-1)))}var X2=(mt(),T(pt)),y9={fromFn:()=>({opacity:0,phase:"initial"}),toFn:()=>({opacity:1})};function b9(e,t){if(e==null)return"";if(t==null)return String(e);let[n,a]=t.scale.domain,u=n!==0?Math.ceil(Math.log10(Math.abs(n))):0,y=a!==0?Math.ceil(Math.log10(Math.abs(a))):0,k=Math.max(2-Math.max(u,y),0);return e.toFixed(k)}function Z2(e,t,n){var y;if(t.text!=null)return t.text;let a=n!=null?n:t.value,u=(y=t==null?void 0:t.formatter)==null?void 0:y.call(t,{seriesId:e.id,datum:void 0,value:a});if(u!=null)return String(u)}var Cge=(mt(),T(pt)),YG=class extends Cge.Marker{updatePath(){let{x:e,y:t,path:n,size:a}=this;n.clear(),n.moveTo(e,t-a/2),n.lineTo(e,t+a/2)}};YG.className="LineMarker";var Sge=(mt(),T(pt)),{BaseProperties:wge,Validate:C9,COLOR_STRING:xge,NUMBER:Mge,Logger:kge,ColorScale:Age}=Sge._ModuleSupport,aP=class extends wge{constructor(){super(...arguments),this.color="black"}};me([C9(Mge,{optional:!0})],aP.prototype,"stop",2),me([C9(xge,{optional:!0})],aP.prototype,"color",2);function Dge(e){let t;for(let{stop:n}of e)if(n!=null){if(t!=null&&n<t)return!1;t=n}return!0}function S9(e){return e.flatMap((t,n)=>{var y;let{offset:a}=t,u=(y=e.at(n+1))==null?void 0:y.color;return u!=null?[t,{offset:a,color:u}]:[t]})}function Ege(e,t){let n=t==="discrete"?1:0,a=e.map((u,y,{length:k})=>({offset:(y+n)/(k-1+n),color:u}));return t==="discrete"?S9(a):a}function w9(e,t,n,a){var $;if(e.length===0)return Ege(t,a);if(!Dge(e))return kge.warnOnce("[fills] must have the stops defined in ascending order"),[];let u=Math.min(...n),y=Math.max(...n),k=a==="discrete",R=new Float64Array(e.length),F=0,_=-1;for(let te=0;te<e.length;te+=1){let se=e[te];if(te>=_){_=e.length-1;for(let Ce=te+1;Ce<e.length;Ce+=1)if(e[Ce].stop!=null){_=Ce;break}}let{stop:de}=se;if(de==null){let Ce=e[F].stop,Se=e[_].stop,ve=Ce!=null?Ce:u,ke=Se!=null?Se:y,De=k&&Ce==null?1:0;de=ve+(ke-ve)*(te-F+De)/(_-F+De)}else F=te;let pe=(de-u)/(y-u);R[te]=pe}let V=($=e.find(te=>te.color!=null))==null?void 0:$.color,K,q=e.map(({color:te},se)=>{let de=R[se];return te!=null?V=te:V!=null?te=V:(K==null&&(K=new Age,K.domain=[0,1],K.range=t),te=K.convert(de)),{offset:de,color:te}});return a==="discrete"?S9(q):q}var Ige=(mt(),T(pt)),Tge=(mt(),T(pt)),{MARKER_SHAPE:Rge,UNION:XG,OR:Pge}=Tge._ModuleSupport,mN=XG(["continuous","discrete"],"a fill mode"),x9=Pge(Rge,XG(["line"],"a marker shape")),M9=XG(["container","item"],"a corner mode"),Lge=(mt(),T(pt)),{BaseProperties:k9,Validate:oP,OBJECT:Oge,BOOLEAN:Fge,NUMBER:ZG,NUMBER_ARRAY:_ge,Logger:Nge}=Lge._ModuleSupport,fN=class extends k9{getSegments(e,t){var F;let{values:n,step:a,count:u}=this,y=Math.min(...e.domain),k=Math.max(...e.domain),R;if(n!=null){let _=n.filter(V=>V>y&&V<k).sort((V,K)=>V-K);R=[y,..._,k]}else if(a!=null){let _=[];for(let V=y;V<k;V+=a)_.push(V);_.push(k),R=_}else if(u!=null){let _=u+1;R=Array.from({length:_+1},(V,K)=>K/_*(k-y)+y)}else{let _=(F=e.ticks)==null?void 0:F.call(e).filter(V=>V>y&&V<k);R=_!=null?[y,..._,k]:void 0}return R!=null&&R.length>t&&(Nge.warnOnce("the configured segmentation results in more than 1 item per pixel, ignoring. Supply a segmentation configuration that results in larger segments or omit this configuration"),R=void 0),R!=null||(R=[y,k]),R}};me([oP(_ge,{optional:!0})],fN.prototype,"values",2),me([oP(ZG,{optional:!0})],fN.prototype,"step",2),me([oP(ZG,{optional:!0})],fN.prototype,"count",2);var $2=class extends k9{constructor(){super(...arguments),this.enabled=!1,this.interval=new fN,this.spacing=0}};me([oP(Fge)],$2.prototype,"enabled",2),me([oP(Oge)],$2.prototype,"interval",2),me([oP(ZG)],$2.prototype,"spacing",2);var{BaseProperties:$G,SeriesTooltip:zge,SeriesProperties:Bge,PropertiesArray:QG,Validate:tn,BOOLEAN:A9,COLOR_STRING:_E,COLOR_STRING_ARRAY:Gge,FUNCTION:Vge,LINE_DASH:JG,NUMBER:rP,OBJECT_ARRAY:e5,OBJECT:NE,POSITIVE_NUMBER:DC,RATIO:zE,STRING:D9,UNION:t5,Label:jge}=Ige._ModuleSupport,Hge=t5(["before","after","middle"],"a placement"),Wge=t5(["inside-start","outside-start","inside-end","outside-end","inside-center","bar-inside","bar-inside-end","bar-outside-end","bar-end"],"an placement"),Uge=t5(["horizontal","vertical"],"an orientation"),E9=class extends jge{};me([tn(rP,{optional:!0})],E9.prototype,"spacing",2);var Wd=class extends $G{constructor(){super(...arguments),this.value=0,this.label=new E9}};me([tn(D9,{optional:!0})],Wd.prototype,"text",2),me([tn(rP)],Wd.prototype,"value",2),me([tn(x9,{optional:!0})],Wd.prototype,"shape",2),me([tn(Hge,{optional:!0})],Wd.prototype,"placement",2),me([tn(rP,{optional:!0})],Wd.prototype,"spacing",2),me([tn(DC,{optional:!0})],Wd.prototype,"size",2),me([tn(rP,{optional:!0})],Wd.prototype,"rotation",2),me([tn(_E,{optional:!0})],Wd.prototype,"fill",2),me([tn(zE,{optional:!0})],Wd.prototype,"fillOpacity",2),me([tn(_E,{optional:!0})],Wd.prototype,"stroke",2),me([tn(DC,{optional:!0})],Wd.prototype,"strokeWidth",2),me([tn(zE,{optional:!0})],Wd.prototype,"strokeOpacity",2),me([tn(JG,{optional:!0})],Wd.prototype,"lineDash",2),me([tn(DC,{optional:!0})],Wd.prototype,"lineDashOffset",2),me([tn(NE)],Wd.prototype,"label",2);var im=class extends $G{constructor(){super(...arguments),this.enabled=!0,this.thicknessRatio=1,this.fills=new QG(aP),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};me([tn(A9)],im.prototype,"enabled",2),me([tn(DC,{optional:!0})],im.prototype,"thickness",2),me([tn(zE)],im.prototype,"thicknessRatio",2),me([tn(e5)],im.prototype,"fills",2),me([tn(mN)],im.prototype,"fillMode",2),me([tn(_E,{optional:!0})],im.prototype,"fill",2),me([tn(zE)],im.prototype,"fillOpacity",2),me([tn(_E)],im.prototype,"stroke",2),me([tn(DC)],im.prototype,"strokeWidth",2),me([tn(zE)],im.prototype,"strokeOpacity",2),me([tn(JG)],im.prototype,"lineDash",2),me([tn(DC)],im.prototype,"lineDashOffset",2);var my=class extends $G{constructor(){super(...arguments),this.fills=new QG(aP),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.defaultFill="black"}};me([tn(e5)],my.prototype,"fills",2),me([tn(mN)],my.prototype,"fillMode",2),me([tn(_E,{optional:!0})],my.prototype,"fill",2),me([tn(zE)],my.prototype,"fillOpacity",2),me([tn(_E)],my.prototype,"stroke",2),me([tn(DC)],my.prototype,"strokeWidth",2),me([tn(zE)],my.prototype,"strokeOpacity",2),me([tn(JG)],my.prototype,"lineDash",2),me([tn(DC)],my.prototype,"lineDashOffset",2),me([tn(_E)],my.prototype,"defaultFill",2);var vN=class extends kC{constructor(){super(...arguments),this.placement="inside-center",this.avoidCollisions=!0}};me([tn(D9,{optional:!0})],vN.prototype,"text",2),me([tn(Wge)],vN.prototype,"placement",2),me([tn(A9)],vN.prototype,"avoidCollisions",2);var zu=class extends Bge{constructor(){super(...arguments),this.value=0,this.segmentation=new $2,this.defaultColorRange=[],this.targets=new QG(Wd),this.defaultTarget=new Wd,this.direction="vertical",this.thickness=1,this.cornerRadius=0,this.cornerMode="container",this.margin=0,this.scale=new my,this.bar=new im,this.label=new vN,this.tooltip=new zge}};me([tn(rP)],zu.prototype,"value",2),me([tn(NE)],zu.prototype,"segmentation",2),me([tn(Gge)],zu.prototype,"defaultColorRange",2),me([tn(e5)],zu.prototype,"targets",2),me([tn(NE)],zu.prototype,"defaultTarget",2),me([tn(Uge)],zu.prototype,"direction",2),me([tn(DC)],zu.prototype,"thickness",2),me([tn(DC)],zu.prototype,"cornerRadius",2),me([tn(M9)],zu.prototype,"cornerMode",2),me([tn(rP)],zu.prototype,"margin",2),me([tn(NE)],zu.prototype,"scale",2),me([tn(NE)],zu.prototype,"bar",2),me([tn(Vge,{optional:!0})],zu.prototype,"itemStyler",2),me([tn(NE)],zu.prototype,"label",2),me([tn(NE)],zu.prototype,"tooltip",2);var Kge=(mt(),T(pt)),{CachedTextMeasurerPool:qge,BBox:Yge}=Kge._ModuleSupport;function i5(e){let{x0:t,y0:n,x1:a,y1:u,horizontalInset:y,verticalInset:k}=e,R=Math.min(t,a)+y,F=Math.min(n,u)+k,_=Math.max(Math.abs(a-t)-2*y,0),V=Math.max(Math.abs(u-n)-2*k,0);return{x:R,y:F,width:_,height:V}}function Xge(e,t){if(t==null)return!0;let n=i5(e),a=1e-6,u=n.x+a,y=n.y+a,k=n.x+n.width-a,R=n.y+n.height-a,F=t.x,_=t.x+t.width,V=t.y,K=t.y+t.height;return Math.max(u,F)<=Math.min(k,_)&&Math.max(y,V)<=Math.min(R,K)}function n5(e){let{clipX0:t,clipX1:n,clipY0:a,clipY1:u}=e;return t!=null&&n!=null||a!=null&&u!=null}function Zge(e){if(!n5(e))return;let{x0:t,y0:n,x1:a,y1:u}=e,{x:y,y:k,width:R,height:F}=i5(e),{clipX0:_,clipX1:V,clipY0:K,clipY1:q}=e;(_==null||V==null)&&(_=t,V=a),(K==null||q==null)&&(K=n,q=u);let $=Math.min(_,V),te=Math.min(K,q),se=Math.abs(V-_),de=Math.abs(q-K);return _=Math.max(y,$),K=Math.max(k,te),V=Math.min(y+R,$+se),q=Math.min(k+F,te+de),new Yge(Math.min(_,V),Math.min(K,q),Math.abs(V-_),Math.abs(q-K))}function I9(e,t){let n=e?"initial":"update";return{node:{fromFn(u,y){let k=u.previousDatum,{x0:R,y0:F,x1:_,y1:V,clipX0:K,clipY0:q,clipX1:$,clipY1:te}=k!=null?k:y,{horizontalInset:se,verticalInset:de}=y,pe=k!=null&&n5(k),Ce=n5(y);return pe&&Ce||(!pe&&Ce?({x0:R,y0:F,x1:_,y1:V,clipX0:K,clipY0:q,clipX1:$,clipY1:te}=y,e&&(t?$=y.clipX0:te=y.clipY0)):pe&&!Ce?({x0:R,y0:F,x1:_,y1:V}=y,K=void 0,q=void 0,$=void 0,te=void 0):e&&(t?_=R:V=F)),{x0:R,y0:F,x1:_,y1:V,clipX0:K,clipY0:q,clipX1:$,clipY1:te,horizontalInset:se,verticalInset:de,phase:n}},toFn(u,y){let{x0:k,y0:R,x1:F,y1:_,clipX0:V,clipY0:K,clipX1:q,clipY1:$,horizontalInset:te,verticalInset:se}=y;return{x0:k,y0:R,x1:F,y1:_,clipX0:V,clipY0:K,clipX1:q,clipY1:$,horizontalInset:te,verticalInset:se}},applyFn(u,y){u.setProperties(yN(u,y))}}}}function yN(e,t){let{x:n,y:a,width:u,height:y}=i5(t),k=Zge(t),R=Xge(t,k);return{x:n,y:a,width:u,height:y,clipBBox:k,visible:R}}var $ge={Before:"right",Center:"center",After:"left"},Qge={Before:"top",Center:"middle",After:"bottom"},Jge={Before:-1,Center:-.5,After:0},epe={Before:0,Center:-.5,After:-1};function tpe(e,t,n,a,u){let{scale:y,bar:k}=a,{padding:R,horizontal:F}=n;t.each((_,V)=>{let K=Z2(e,V,u==null?void 0:u.label),q=()=>({width:y.width,height:y.height,meta:null}),$,te=V.avoidCollisions&&V.placement!=="outside-start"&&V.placement!=="outside-end";if(K==null)return;if(te){let at=K2(K,V,{padding:R},q);$=at==null?void 0:at[0]}else{let at={fontSize:V.fontSize,fontStyle:V.fontStyle,fontWeight:V.fontWeight,fontFamily:V.fontFamily,lineHeight:V.lineHeight},{width:ht,height:vt}=qge.measureText(K,{font:at});$={text:K,fontSize:V.fontSize,lineHeight:iP(V,V.fontSize),width:ht,height:vt}}if($==null){_.visible=!1;return}let se=F?y.x:y.y+y.height,de=F?y.x+y.width:y.y,pe=F?k.x:k.y+k.height,Ce=F?k.x+k.width:k.y,Se=V.spacing*(F?1:-1),ve,ke,De,Te;switch(V.placement){case"outside-start":ve=-1/0,ke=1/0,De=se-Se,Te="Before";break;case"outside-end":ve=-1/0,ke=1/0,De=de+Se,Te="After";break;case"inside-start":ve=se,ke=Ce,De=se+Se,Te="After";break;case"inside-end":ve=Ce,ke=de,De=de-Se,Te="Before";break;case"inside-center":ve=se,ke=de,De=(se+de)/2,Te="Center";break;case"bar-inside":ve=pe,ke=Ce,De=(pe+Ce)/2,Te="Center";break;case"bar-inside-end":ve=pe,ke=Ce,De=Ce-Se,Te="Before";break;case"bar-outside-end":ve=Ce,ke=de,De=Ce+Se,Te="After";break;case"bar-end":ve=-1/0,ke=1/0,De=Ce,Te="Center";break}let ze=F?De:y.x+y.width/2,qe=F?y.y+y.height/2:De,et,$e;F?(et=ze+Jge[Te]*$.width,$e=et+$.width):(et=qe+epe[Te]*$.height,$e=et+$.height);let lt=Math.min(et,$e)>=Math.min(ve,ke)&&Math.max(et,$e)<=Math.max(ve,ke);if(V.avoidCollisions&&!lt){_.visible=!1;return}_.visible=!0,_.text=$.text,_.fontSize=$.fontSize,_.lineHeight=$.lineHeight,_.textAlign=F?$ge[Te]:"center",_.textBaseline=F?"middle":Qge[Te],_.x=ze,_.y=qe})}var{fromToMotion:a5,resetMotion:ipe,SeriesNodePickMode:T9,StateMachine:npe,createDatumId:R9,ChartAxisDirection:fy,CachedTextMeasurerPool:ape,toRadians:ope,BBox:bN,Group:sP,PointerEvents:o5,Selection:lP,Rect:rpe,Text:P9,LinearGradient:spe,getMarker:lpe,easing:cpe}=X2._ModuleSupport,dpe={before:180,middle:0,after:0},upe={before:90,middle:0,after:-90},r5=class extends X2._ModuleSupport.Series{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[T9.EXACT_SHAPE_MATCH,T9.NEAREST_NODE]}),this.canHaveAxes=!0,this.properties=new zu,this.originX=0,this.originY=0,this.scaleGroup=this.contentGroup.appendChild(new sP({name:"scaleGroup"})),this.itemGroup=this.contentGroup.appendChild(new sP({name:"itemGroup"})),this.itemTargetGroup=this.contentGroup.appendChild(new sP({name:"itemTargetGroup"})),this.itemTargetLabelGroup=this.contentGroup.appendChild(new sP({name:"itemTargetLabelGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new sP({name:"itemLabelGroup"})),this.highlightTargetGroup=this.highlightGroup.appendChild(new sP({name:"itemTargetLabelGroup"})),this.scaleSelection=lP.select(this.scaleGroup,()=>this.nodeFactory()),this.datumSelection=lP.select(this.itemGroup,()=>this.nodeFactory()),this.targetSelection=lP.select(this.itemTargetGroup,t=>this.markerFactory(t)),this.targetLabelSelection=lP.select(this.itemTargetLabelGroup,P9),this.labelSelection=lP.select(this.itemLabelGroup,P9),this.highlightTargetSelection=lP.select(this.highlightTargetGroup,t=>this.markerFactory(t)),this.nodeDatum={series:this,datum:{}},this.animationState=new npe("empty",{empty:{update:{target:"ready",action:()=>this.animateEmptyUpdateReady()},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",resize:()=>this.animateReadyResize(),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:()=>this.animateWaitingUpdateReady()},reset:"empty",skip:"ready"},clearing:{update:{target:"empty"},reset:"empty",skip:"ready"}}),this.itemGroup.pointerEvents=o5.None,this.itemTargetLabelGroup.pointerEvents=o5.None,this.itemLabelGroup.pointerEvents=o5.None}get horizontal(){return this.properties.direction==="horizontal"}get thickness(){return this.properties.thickness}computeInset(e,t){var k,R;let{label:n}=this.properties,a;switch(n.placement){case"outside-start":a=1;break;case"outside-end":a=-1;break;default:return 0}let u=(k=n.text)==null?void 0:k.split(`
`),y;if(e===fy.Y)y=iP(n,n.fontSize)*((R=u==null?void 0:u.length)!=null?R:1);else{let F=n.getFont();y=(u!=null?u:t.map(V=>{var K;return(K=Z2(this,this.labelDatum(n,V)))!=null?K:""})).reduce((V,K)=>{let{width:q}=ape.measureText(K,{font:F});return Math.max(V,q)},0)}return a*(n.spacing+y)}get hasData(){return!0}nodeFactory(){let e=new rpe;return e.crisp=!0,e}markerFactory({shape:e}){let t=e!=="line"?lpe(e):YG,n=new t;return n.size=1,n}processData(){this.nodeDataRefresh=!0,this.animationState.transition("updateData")}formatLabel(e){let{axes:t,horizontal:n}=this,a=n?t[fy.X]:t[fy.Y];return b9(e,a)}createLinearGradient(e,t){let{properties:n,originX:a,originY:u,horizontal:y,axes:k}=this,{thickness:R,defaultColorRange:F}=n,_=y?k[fy.X]:k[fy.Y],{domain:V,range:K}=_.scale,q=K[1]-K[0],$=w9(e,F,V,t);return new spe("oklch",$,y?90:0,new bN(a,u,y?q:R,y?R:q))}getTargets(){let{properties:e}=this,t=e.defaultTarget;return Array.from(e.targets).map(n=>{var ze,qe,et,$e,lt,at,ht,vt,wt,Ct,yt,Et,At,Dt,Ot,It,Rt;let{text:a=t.text,value:u=(ze=t.value)!=null?ze:0,shape:y=(qe=t.shape)!=null?qe:"triangle",rotation:k=(et=t.rotation)!=null?et:0,strokeWidth:R=($e=t.strokeWidth)!=null?$e:0,placement:F=(lt=t.placement)!=null?lt:"middle",spacing:_=(at=t.spacing)!=null?at:0,size:V=(ht=t.size)!=null?ht:0,fill:K=(vt=t.fill)!=null?vt:"black",fillOpacity:q=(wt=t.fillOpacity)!=null?wt:1,stroke:$=(Ct=t.stroke)!=null?Ct:"black",strokeOpacity:te=(yt=t.strokeOpacity)!=null?yt:1,lineDash:se=(Et=t.lineDash)!=null?Et:[0],lineDashOffset:de=(At=t.lineDashOffset)!=null?At:0}=n,{enabled:pe=t.label.enabled,color:Ce=(Dt=t.label.color)!=null?Dt:"black",fontStyle:Se=(Ot=t.label.fontStyle)!=null?Ot:"normal",fontWeight:ve=(It=t.label.fontWeight)!=null?It:"normal",fontSize:ke=t.label.fontSize,fontFamily:De=t.label.fontFamily,spacing:Te=(Rt=t.label.spacing)!=null?Rt:0}=n.label;return{text:a,value:u,shape:y,placement:F,spacing:_,size:V,rotation:k,fill:K,fillOpacity:q,stroke:$,strokeWidth:R,strokeOpacity:te,lineDash:se,lineDashOffset:de,label:{enabled:pe,color:Ce,fontStyle:Se,fontWeight:ve,fontSize:ke,fontFamily:De,spacing:Te}}})}getTargetPoint(e){let t=this.axes[fy.X],n=this.axes[fy.Y];if(t==null||n==null)return{x:0,y:0};let{properties:a,originX:u,originY:y,horizontal:k}=this,{thickness:R}=a,{value:F,placement:_,spacing:V,size:K}=e,q=k?t:n,$=q.scale.convert(F)-q.scale.range[0],te;switch(_){case"before":te=-(V+K/2);break;case"after":te=R+V+K/2;break;default:te=R/2;break}return{x:u+t.range[0]+(k?$:te),y:y+n.range[0]+(k?te:$)}}getTargetLabel(e){let{size:t,placement:n,label:a}=e,{spacing:u,color:y,fontStyle:k,fontWeight:R,fontSize:F,fontFamily:_}=a,V=void 0,K=t/2+u,q,$,te=0,se=0;return this.horizontal?(q="center",n==="after"?($="top",se=K):($="bottom",se=-K)):($="middle",n==="before"?(q="right",te=-K):(q="left",te=K)),{offsetX:te,offsetY:se,fill:y,textAlign:q,textBaseline:$,fontStyle:k,fontWeight:R,fontSize:F,fontFamily:_,lineHeight:V}}labelDatum(e,t){let{placement:n,avoidCollisions:a,spacing:u,text:y,color:k,fontSize:R,minimumFontSize:F,fontStyle:_,fontWeight:V,fontFamily:K,lineHeight:q,wrapping:$,overflowStrategy:te,formatter:se=de=>this.formatLabel(de.value)}=e;return{placement:n,avoidCollisions:a,spacing:u,text:y,value:t,fill:k,fontSize:R,minimumFontSize:F,fontStyle:_,fontWeight:V,fontFamily:K,lineHeight:q,wrapping:$,overflowStrategy:te,formatter:se}}createNodeData(){var ui,qt,Zt,pi;let{id:e,properties:t,originX:n,originY:a,horizontal:u}=this;if(!t.isValid())return;let{value:y,segmentation:k,thickness:R,cornerRadius:F,cornerMode:_,bar:V,scale:K,label:q}=t,$=this.getTargets(),te=this.axes[fy.X],se=this.axes[fy.Y];if(te==null||se==null)return;let de=u?te:se,pe=te.scale,Ce=se.scale,Se=de.scale,{domain:ve}=de.scale;de.isReversed()&&(ve=ve.slice().reverse());let ke=[],De=[],Te=[],ze=[],[qe,et]=Se.range,$e=Math.abs(et-qe),[lt,at]=te.range;te.isReversed()&&([at,lt]=[lt,at]);let[ht,vt]=se.range;se.isReversed()&&([vt,ht]=[ht,vt]);let wt=u?pe.convert(y):at,Ct=u?vt:Ce.convert(y),yt=k.enabled?k.spacing/2:0,Et=u?yt:0,At=u?0:yt,Dt=Math.min((ui=V.thickness)!=null?ui:Math.round(V.thicknessRatio*R),R),Ot=-(R-Dt)/2,It=u?0:Ot,Rt=u?Ot:0,Xt=_==="item",Yt=Math.ceil($e),Ut=k.enabled?k.interval.getSegments(Se,Yt):void 0,oi=(qt=V.fill)!=null?qt:this.createLinearGradient(V.fills,V.fillMode),ti=(pi=(Zt=K.fill)!=null?Zt:V.enabled&&K.fills.length===0?K.defaultFill:void 0)!=null?pi:this.createLinearGradient(K.fills,K.fillMode);if(Ut==null&&Xt){let si=Math.min(...ve),ci=Math.max(...ve),yi={value:y,segmentStart:si,segmentEnd:ci};if(V.enabled){let Ln=Math.min(F,Dt/2,$e/2)*(de.isReversed()?-1:1),_r=u?Ln:0,ul=u?0:Ln;ke.push({series:this,itemId:"value",datum:yi,type:0,x0:n+lt-_r-It,y0:a+ht-ul-Rt,x1:n+wt+_r+It,y1:a+Ct+ul+Rt,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:F,topRightCornerRadius:F,bottomRightCornerRadius:F,bottomLeftCornerRadius:F,fill:oi,horizontalInset:Et,verticalInset:At})}let Ni=Math.min(F,R/2,$e/2)*(de.isReversed()?-1:1),nn=u?Ni:0,Gi=u?0:Ni;ze.push({series:this,itemId:"scale",datum:yi,type:0,x0:n+lt-nn,y0:a+ht-Gi,x1:n+at+nn,y1:a+vt+Gi,clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:F,topRightCornerRadius:F,bottomRightCornerRadius:F,bottomLeftCornerRadius:F,fill:ti,horizontalInset:Et,verticalInset:At})}else{Ut!=null||(Ut=ve);let si=n+lt-It,ci=a+ht-Rt,yi=n+wt+It,sn=a+Ct+Rt;for(let Ni=0;Ni<Ut.length-1;Ni+=1){let nn=Ut[Ni+0],Gi=Ut[Ni+1],Pn={value:y,segmentStart:nn,segmentEnd:Gi},Ln=Ni===0,_r=Ni===Ut.length-2,ul=Se.convert(nn),Hu=Se.convert(Gi),ts=Xt||Ln?F:0,Ph=Xt||_r?F:0,wc=u?ts:Ph,JE=Ph,RC=u?Ph:ts,IA=ts;V.enabled&&ke.push({series:this,itemId:`value-${Ni}`,datum:Pn,type:0,x0:n+(u?ul:lt),y0:a+(u?ht:ul),x1:n+(u?Hu:at),y1:a+(u?vt:Hu),clipX0:si,clipY0:ci,clipX1:yi,clipY1:sn,topLeftCornerRadius:wc,topRightCornerRadius:JE,bottomRightCornerRadius:RC,bottomLeftCornerRadius:IA,fill:oi,horizontalInset:Et,verticalInset:At}),ze.push({series:this,itemId:`scale-${Ni}`,datum:Pn,type:0,x0:n+(u?ul:lt),y0:a+(u?ht:ul),x1:n+(u?Hu:at),y1:a+(u?vt:Hu),clipX0:void 0,clipY0:void 0,clipX1:void 0,clipY1:void 0,topLeftCornerRadius:wc,topRightCornerRadius:JE,bottomRightCornerRadius:RC,bottomLeftCornerRadius:IA,fill:ti,horizontalInset:Et,verticalInset:At})}}q.enabled&&Te.push(this.labelDatum(q,y));let ai=u?dpe:upe;for(let si=0;si<$.length;si+=1){let ci=$[si],{value:yi,text:sn,shape:Ni,size:nn,fill:Gi,fillOpacity:Pn,stroke:Ln,strokeWidth:_r,strokeOpacity:ul,lineDash:Hu,lineDashOffset:ts}=ci,Ph=this.getTargetPoint(ci),wc=ope(ci.rotation+ai[ci.placement]);De.push({series:this,itemId:`target-${si}`,midPoint:Ph,datum:{value:yi},type:1,value:yi,text:sn,x:Ph.x,y:Ph.y,shape:Ni,size:nn,rotation:wc,fill:Gi,fillOpacity:Pn,stroke:Ln,strokeOpacity:ul,strokeWidth:_r,lineDash:Hu,lineDashOffset:ts,label:this.getTargetLabel(ci)})}return{itemId:e,nodeData:ke,targetData:De,labelData:Te,scaleData:ze}}updateSelections(e){(this.nodeDataRefresh||e)&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}highlightDatum(e){if(e!=null&&e.series===this&&e.type===1)return e}update({seriesRect:e}){var $,te,se,de,pe,Ce,Se,ve;let{datumSelection:t,labelSelection:n,targetSelection:a,targetLabelSelection:u,scaleSelection:y,highlightTargetSelection:k}=this,R=this.checkResize(e);this.updateSelections(R),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let F=(te=($=this.contextNodeData)==null?void 0:$.nodeData)!=null?te:[],_=(de=(se=this.contextNodeData)==null?void 0:se.labelData)!=null?de:[],V=(Ce=(pe=this.contextNodeData)==null?void 0:pe.targetData)!=null?Ce:[],K=(ve=(Se=this.contextNodeData)==null?void 0:Se.scaleData)!=null?ve:[],q=this.highlightDatum(this.ctx.highlightManager.getActiveHighlight());this.scaleSelection=this.updateScaleSelection({scaleData:K,scaleSelection:y}),this.updateScaleNodes({scaleSelection:y}),this.targetSelection=this.updateTargetSelection({targetData:V,targetSelection:a}),this.updateTargetNodes({targetSelection:a,isHighlight:!1}),this.targetLabelSelection=this.updateTargetLabelSelection({targetData:V,targetLabelSelection:u}),this.updateTargetLabelNodes({targetLabelSelection:u}),this.datumSelection=this.updateDatumSelection({nodeData:F,datumSelection:t}),this.updateDatumNodes({datumSelection:t}),this.labelSelection=this.updateLabelSelection({labelData:_,labelSelection:n}),this.updateLabelNodes({labelSelection:n}),this.highlightTargetSelection=this.updateTargetSelection({targetData:q!=null?[q]:[],targetSelection:k}),this.updateTargetNodes({targetSelection:k,isHighlight:!0}),R&&this.animationState.transition("resize"),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>R9(e.nodeData.length,t.itemId))}updateDatumNodes(e){let{datumSelection:t}=e,{ctx:n,properties:a}=this,{bar:u}=a,{fillOpacity:y,stroke:k,strokeOpacity:R,lineDash:F,lineDashOffset:_}=u,V=this.getStrokeWidth(u.strokeWidth),K=n.animationManager.isSkipped();t.each((q,$)=>{let{topLeftCornerRadius:te,topRightCornerRadius:se,bottomRightCornerRadius:de,bottomLeftCornerRadius:pe,fill:Ce}=$;q.fill=Ce,q.fillOpacity=y,q.stroke=k,q.strokeOpacity=R,q.strokeWidth=V,q.lineDash=F,q.lineDashOffset=_,q.topLeftCornerRadius=te,q.topRightCornerRadius=se,q.bottomRightCornerRadius=de,q.bottomLeftCornerRadius=pe,(K||q.previousDatum==null)&&q.setProperties(yN(q,$))})}updateScaleSelection(e){return e.scaleSelection.update(e.scaleData,void 0,t=>R9(e.scaleData.length,t.itemId))}updateScaleNodes(e){let{scaleSelection:t}=e,{scale:n}=this.properties,{fillOpacity:a,stroke:u,strokeOpacity:y,strokeWidth:k,lineDash:R,lineDashOffset:F}=n;t.each((_,V)=>{let{topLeftCornerRadius:K,topRightCornerRadius:q,bottomRightCornerRadius:$,bottomLeftCornerRadius:te,fill:se}=V;_.fill=se,_.fillOpacity=a,_.stroke=u,_.strokeOpacity=y,_.strokeWidth=k,_.lineDash=R,_.lineDashOffset=F,_.topLeftCornerRadius=K,_.topRightCornerRadius=q,_.bottomRightCornerRadius=$,_.bottomLeftCornerRadius=te,_.setProperties(yN(_,V))})}updateTargetSelection(e){return e.targetSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetNodes(e){let{targetSelection:t,isHighlight:n}=e,a=n?this.properties.highlightStyle.item:void 0;t.each((u,y)=>{var pe,Ce,Se,ve,ke,De,Te;let{x:k,y:R,size:F,rotation:_,fill:V,fillOpacity:K,stroke:q,strokeOpacity:$,strokeWidth:te,lineDash:se,lineDashOffset:de}=y;u.size=F,u.fill=(pe=a==null?void 0:a.fill)!=null?pe:V,u.fillOpacity=(Ce=a==null?void 0:a.fillOpacity)!=null?Ce:K,u.stroke=(Se=a==null?void 0:a.stroke)!=null?Se:q,u.strokeOpacity=(ve=a==null?void 0:a.strokeOpacity)!=null?ve:$,u.strokeWidth=(ke=a==null?void 0:a.strokeWidth)!=null?ke:te,u.lineDash=(De=a==null?void 0:a.lineDash)!=null?De:se,u.lineDashOffset=(Te=a==null?void 0:a.lineDashOffset)!=null?Te:de,u.translationX=k,u.translationY=R,u.rotation=_})}updateTargetLabelSelection(e){return e.targetLabelSelection.update(e.targetData)}updateTargetLabelNodes(e){let{targetLabelSelection:t}=e;t.each((n,a)=>{let{x:u,y,text:k}=a,{offsetX:R,offsetY:F,fill:_,fontStyle:V,fontWeight:K,fontSize:q,fontFamily:$,textAlign:te,textBaseline:se}=a.label;n.visible=!0,n.x=u+R,n.y=y+F,n.text=k,n.fill=_,n.fontStyle=V,n.fontWeight=K,n.fontSize=q,n.fontFamily=$,n.textAlign=te,n.textBaseline=se})}updateLabelSelection(e){return e.labelSelection.update(e.labelData,void 0,t=>"primary")}updateLabelNodes(e){let{labelSelection:t}=e,n=this.ctx.animationManager.isSkipped();t.each((a,u)=>{a.fill=u.fill,a.fontStyle=u.fontStyle,a.fontWeight=u.fontWeight,a.fontFamily=u.fontFamily}),(n||this.labelsHaveExplicitText())&&this.formatLabelText()}labelsHaveExplicitText(){for(let{datum:e}of this.labelSelection)if(e.text==null)return!1;return!0}formatLabelText(e){var Ce;let{labelSelection:t,horizontal:n,axes:a}=this,u=a[fy.X],y=a[fy.Y];if(u==null||y==null)return;let[k,R]=u.range,[F,_]=y.range,V=this.originX+Math.min(k,R),K=this.originY+Math.min(F,_),q=Math.abs(R-k),$=Math.abs(_-F),te=(Ce=e==null?void 0:e.label)!=null?Ce:this.properties.value,se;if(n){let Se=u.scale.convert(te);se=new bN(V,K,Se-V,$)}else{let Se=y.scale.convert(te);se=new bN(V,Se,q,$-Se)}let de={scale:new bN(V,K,q,$),bar:se},{margin:pe}=this.properties;tpe(this,t,{padding:pe,horizontal:n},de,e)}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),ipe([this.datumSelection],yN),this.formatLabelText()}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}animateLabelText(e={}){var u;let{animationManager:t}=this.ctx,n=0,a=0;if(this.labelSelection.each((y,k)=>{var R,F,_;y.opacity=1,n=(_=(F=(R=y.previousDatum)==null?void 0:R.value)!=null?F:e.from)!=null?_:k.value,a=k.value}),!this.labelsHaveExplicitText())if(n===a)this.formatLabelText({label:a});else{let y=`${this.id}_labels`;t.animate({id:y,groupId:"label",from:{label:n},to:{label:a},phase:(u=e.phase)!=null?u:"update",ease:cpe.easeOut,onUpdate:k=>this.formatLabelText(k)})}}animateEmptyUpdateReady(){let{animationManager:e}=this.ctx,{node:t}=I9(!0,this.horizontal);a5(this.id,"node",e,[this.datumSelection],t,(n,a)=>a.itemId),a5(this.id,"label",e,[this.labelSelection],y9,()=>"primary"),this.animateLabelText({from:0,phase:"initial"})}animateWaitingUpdateReady(){let{animationManager:e}=this.ctx,{node:t}=I9(!1,this.horizontal);a5(this.id,"node",e,[this.datumSelection],t,(n,a)=>a.itemId),this.animateLabelText()}animateReadyResize(){this.resetAllAnimation()}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(){return[]}pickNode(e,t){switch(t){case"event":case"context-menu":{let n=this.scaleGroup.pickNode(e.x,e.y);return n!=null?{pickMode:X2._ModuleSupport.SeriesNodePickMode.EXACT_SHAPE_MATCH,match:n.datum,distance:0}:void 0}case"tooltip":case"highlight":case"highlight-tooltip":{let n=this.itemTargetGroup.pickNode(e.x,e.y);return n!=null?{pickMode:X2._ModuleSupport.SeriesNodePickMode.EXACT_SHAPE_MATCH,match:n.datum,distance:0}:{pickMode:X2._ModuleSupport.SeriesNodePickMode.NEAREST_NODE,match:this.nodeDatum,distance:0}}}}getTooltipContent(e){var R;let{id:t,properties:n}=this,{tooltip:a}=n;if(!n.isValid())return;let u=this.highlightDatum(e),y=(R=u==null?void 0:u.value)!=null?R:n.value,k=u==null?void 0:u.text;return a.formatTooltip({data:[{label:k!=null?k:"",value:this.formatLabel(y)}]},{seriesId:t,title:void 0,datum:void 0,value:y})}pickFocus(e){var u;let t=(u=this.contextNodeData)==null?void 0:u.targetData;if(t==null||t.length===0)return;let n=Math.min(Math.max(e.datumIndex,0),t.length-1),a=t[n];for(let y of this.targetSelection)if(y.datum===a)return{bounds:y.node,showFocusBox:!0,clipFocusBox:!0,datum:a,datumIndex:n}}getCaptionText(){let{value:e}=this.properties,t=[];return t.push(this.formatLabel(e)),t.join(". ")}};r5.className="LinearGaugeSeries",r5.type="linear-gauge";var{ThemeSymbols:{DEFAULT_FONT_FAMILY:L9,DEFAULT_HIERARCHY_FILLS:hpe,DEFAULT_LABEL_COLOUR:s5,DEFAULT_INVERTED_LABEL_COLOUR:gpe,DEFAULT_GAUGE_SERIES_COLOR_RANGE:ppe},ThemeConstants:{CARTESIAN_AXIS_TYPE:l5}}=vge._ModuleSupport,mpe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["gauge"],identifier:"linear-gauge",moduleFactory:e=>new r5(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:l5.NUMBER,line:{enabled:!1}},{type:l5.NUMBER,line:{enabled:!1}}],themeTemplate:{minWidth:200,minHeight:200,series:{thickness:50,bar:{strokeWidth:0},segmentation:{enabled:!1,interval:{},spacing:1},defaultTarget:{fill:s5,stroke:s5,size:10,shape:"triangle",placement:"after",spacing:5,label:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:L9,color:s5,spacing:5}},label:{enabled:!1,placement:"inside-start",fontWeight:"normal",fontSize:24,minimumFontSize:12,spacing:18,fontFamily:L9,color:gpe},margin:4,tooltip:{enabled:!1}},axes:{[l5.NUMBER]:{line:{enabled:!1},gridLine:{enabled:!1}}}},paletteFactory(e){let{takeColors:t,colorsCount:n,userPalette:a,themeTemplateParameters:u}=e,{fills:y}=t(n),k=u.get(ppe),R=u.get(hpe),F=a==="inbuilt"?k:[y[0],y[1]];return{scale:{defaultFill:R==null?void 0:R[1],stroke:R==null?void 0:R[2]},defaultColorRange:v9(F)}}},fpe=(mt(),T(pt)),Q2={zoom:{axes:"xy",anchorPointX:"pointer",anchorPointY:"pointer"},legend:{enabled:!1},gradientLegend:{enabled:!1},tooltip:{range:"exact"}},vpe=(mt(),T(pt)),ype=(mt(),T(pt)),bpe=1e-9;function O9(e,t,n,a){let[u,y]=e,[k,R]=t,F=k-u,_=R-y,V=F*F+_*_,K,q;if(Math.abs(V)<bpe)K=u,q=y;else{let se=((n-u)*F+(a-y)*_)/V;se=Math.max(0,Math.min(1,se)),K=u+se*(k-u),q=y+se*(R-y)}let $=n-K,te=a-q;return $*$+te*te}function F9(e,t,n){let a=1/0,u=e[e.length-1];for(let y of e)a=Math.min(a,O9(u,y,t,n)),u=y;return Math.sqrt(a)}function c5(e){let[t,n]=e[0],a=0;for(let u=1;u<e.length;u+=1){let[y,k]=e[u],R=Math.hypot(y-t,k-n);a+=R,t=y,n=k}return a}function CN(e){if(e.length===0)return;let t=c5(e)/2,[n,a]=e[0],u=0;for(let y=1;y<e.length;y+=1){let[k,R]=e[y],F=Math.hypot(k-n,R-a),_=u+F;if(_>t){let V=(t-u)/F,K=[n+(k-n)*V,a+(R-a)*V],q=Math.atan2(R-a,k-n);return{point:K,angle:q}}u=_,n=k,a=R}}var Cpe=(mt(),T(pt)),{LonLatBBox:Spe}=Cpe._ModuleSupport;function J2(e,t,n,a,u){return e==null?e=new Spe(t,n,a,u):(e.lon0=Math.min(e.lon0,t),e.lat0=Math.min(e.lat0,n),e.lon1=Math.max(e.lon1,a),e.lat1=Math.max(e.lat1,u)),e}function BE(e,t){return e.forEach(n=>{let[a,u]=n;t=J2(t,a,u,a,u)}),t}function wpe(e){if(e.length===0)return;let t=0,n=0,a=0,[u,y]=e[e.length-1];for(let[k,R]of e){let F=u*R-k*y;a+=F,t+=(u+k)*F,n+=(y+R)*F,u=k,y=R}return a*=3,[t/a,n/a]}function SN(e,t,n){let a=!1,u=1/0;for(let y of e){let k=y[y.length-1],[R,F]=k;for(let _ of y){let[V,K]=_;K>n!=F>n&&t<(R-V)*(n-K)/(F-K)+V&&(a=!a),u=Math.min(u,O9(k,_,t,n)),k=_,R=V,F=K}}return(a?-1:1)*Math.sqrt(u)}var{Path:xpe,ExtendedPath2D:Mpe,BBox:kpe,ScenePathChangeDetection:_9}=ype._ModuleSupport,cP=class extends xpe{constructor(){super(...arguments),this.projectedGeometry=void 0,this.renderMode=3,this.strokePath=new Mpe}computeBBox(){var e;return(this.dirtyPath||this.isDirtyPath())&&(this.updatePath(),this.dirtyPath=!1),(e=this.bbox)==null?void 0:e.clone()}updatePath(){let{projectedGeometry:e}=this;this.strokePath.clear(),this.path.clear(),this.bbox=e!=null?this.drawGeometry(e,void 0):void 0}drawPath(e){super.drawPath(e),this.renderStroke(e,this.strokePath.getPath2D())}containsPoint(e,t){let{projectedGeometry:n}=this;return n==null||!this.getBBox().containsPoint(e,t)?!1:this.geometryDistance(n,e,t)<=0}distanceSquared(e,t){let{projectedGeometry:n}=this;if(n==null)return 1/0;let a=this.geometryDistance(n,e,t);return a>0?a*a:0}geometryDistance(e,t,n){let{renderMode:a,strokeWidth:u}=this,y=(a&1)!==0,k=(a&2)!==0,R=Math.max(u/2,1)+1;switch(e.type){case"GeometryCollection":return e.geometries.reduce((F,_)=>Math.min(F,this.geometryDistance(_,t,n)),1/0);case"MultiPolygon":return y?e.coordinates.reduce((F,_)=>Math.min(F,Math.max(SN(_,t,n),0)),1/0):1/0;case"Polygon":return y?Math.max(SN(e.coordinates,t,n),0):1/0;case"MultiLineString":return k?e.coordinates.reduce((F,_)=>Math.min(F,Math.max(F9(_,t,n)-R,0)),1/0):1/0;case"LineString":return k?Math.max(F9(e.coordinates,t,n)-R,0):1/0;case"MultiPoint":case"Point":default:return 1/0}}drawGeometry(e,t){let{renderMode:n,path:a,strokePath:u}=this,y=(n&1)!==0,k=(n&2)!==0;switch(e.type){case"GeometryCollection":e.geometries.forEach(R=>{t=this.drawGeometry(R,t)});break;case"MultiPolygon":y&&e.coordinates.forEach(R=>{t=this.drawPolygon(a,R,t)});break;case"Polygon":y&&(t=this.drawPolygon(a,e.coordinates,t));break;case"LineString":k&&(t=this.drawLineString(u,e.coordinates,t,!1));break;case"MultiLineString":k&&e.coordinates.forEach(R=>{t=this.drawLineString(u,R,t,!1)});break;case"Point":case"MultiPoint":break}return t}drawPolygon(e,t,n){if(t.length<1)return n;n=this.drawLineString(e,t[0],n,!0);for(let a=1;a<t.length;a+=1){let u=t[a];this.drawLineString(e,u,void 0,!0)}return n}drawLineString(e,t,n,a){if(t.length<2)return n;let u=a?t.length-1:t.length;for(let y=0;y<u;y+=1){let[k,R]=t[y];if(y===0?e.moveTo(k,R):e.lineTo(k,R),n==null)n=new kpe(k,R,0,0);else{let{x:F,y:_}=n,V=F+n.width,K=_+n.height;n.x=Math.min(F,k),n.y=Math.min(_,R),n.width=Math.max(V,k)-n.x,n.height=Math.max(K,R)-n.y}}return a&&e.closePath(),n}};me([_9()],cP.prototype,"projectedGeometry",2),me([_9()],cP.prototype,"renderMode",2);function dP(e,t){if(e.bbox!=null){let[n,a,u,y]=e.bbox;return t=J2(t,n,a,u,y),t}switch(e.type){case"GeometryCollection":e.geometries.forEach(n=>{t=dP(n,t)});break;case"MultiPolygon":e.coordinates.forEach(n=>{n.length>0&&(t=BE(n[0],t))});break;case"Polygon":e.coordinates.length>0&&(t=BE(e.coordinates[0],t));break;case"MultiLineString":e.coordinates.forEach(n=>{t=BE(n,t)});break;case"LineString":t=BE(e.coordinates,t);break;case"MultiPoint":e.coordinates.forEach(n=>{let[a,u]=n;t=J2(t,a,u,a,u)});break;case"Point":{let[n,a]=e.coordinates;t=J2(t,n,a,n,a);break}}return t}function wN(e){switch(e.type){case"GeometryCollection":{let t,n;return e.geometries.forEach(a=>{let u=wN(a);if(u==null)return;let y=BE(u[0],void 0);if(y==null)return;let k=Math.abs(y.lat1-y.lat0)*Math.abs(y.lon1-y.lon0);(t==null||k>t)&&(t=k,n=u)}),n}case"MultiPolygon":{let t,n;return e.coordinates.forEach(a=>{let u=BE(a[0],void 0);if(u==null)return;let y=Math.abs(u.lat1-u.lat0)*Math.abs(u.lon1-u.lon0);(t==null||y>t)&&(t=y,n=a)}),n}case"Polygon":return e.coordinates;case"MultiLineString":case"LineString":case"MultiPoint":case"Point":return}}function xN(e){switch(e.type){case"GeometryCollection":{let t,n;return e.geometries.forEach(a=>{let u=xN(a);if(u==null)return;let y=c5(u);y!=null&&(t==null||y>t)&&(t=y,n=u)}),n}case"MultiLineString":{let t=0,n;return e.coordinates.forEach(a=>{let u=c5(a);u>t&&(t=u,n=a)}),n}case"LineString":return e.coordinates;case"MultiPolygon":case"Polygon":case"MultiPoint":case"Point":return}}function d5(e,t){if(e==null)return!1;switch(e.type){case"GeometryCollection":return e.geometries.some(n=>d5(n,t));case"MultiPolygon":case"Polygon":return(t&1)!==0;case"MultiLineString":case"LineString":return(t&2)!==0;case"MultiPoint":case"Point":return(t&4)!==0}}function SA(e,t){switch(e.type){case"GeometryCollection":return{type:"GeometryCollection",geometries:e.geometries.map(n=>SA(n,t))};case"Polygon":return{type:"Polygon",coordinates:u5(e.coordinates,t)};case"MultiPolygon":return{type:"MultiPolygon",coordinates:Ape(e.coordinates,t)};case"MultiLineString":return{type:"MultiLineString",coordinates:u5(e.coordinates,t)};case"LineString":return{type:"LineString",coordinates:h5(e.coordinates,t)};case"MultiPoint":return{type:"MultiPoint",coordinates:h5(e.coordinates,t)};case"Point":return{type:"Point",coordinates:t.convert(e.coordinates)}}}function Ape(e,t){return e.map(n=>u5(n,t))}function u5(e,t){return e.map(n=>h5(n,t))}function h5(e,t){return e.map(n=>t.convert(n))}var N9=(mt(),T(pt)),xxe=class extends N9._ModuleSupport.SeriesProperties{},eO=class extends N9._ModuleSupport.DataModelSeries{addChartEventListeners(){this.destroyFns.push(this.ctx.chartEventManager.addListener("legend-item-click",e=>{this.onLegendItemClick(e)}),this.ctx.chartEventManager.addListener("legend-item-double-click",e=>{this.onLegendItemDoubleClick(e)}))}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}},z9=(mt(),T(pt));function B9(e){return Array.isArray(e)&&e.length>=2&&e.every(z9._ModuleSupport.isFiniteNumber)}function MN(e){return Array.isArray(e)&&e.length>=2&&e.every(B9)}var G9=.001;function Dpe(e){return Math.abs(e[0][0]-e[e.length-1][0])<G9&&Math.abs(e[0][1]-e[e.length-1][1])<G9}function V9(e){return Array.isArray(e)&&e.every(MN)&&e.every(Dpe)}function j9(e){if(e===null)return!0;if(typeof e!="object"||e.type==null)return!1;let{type:t,coordinates:n}=e;switch(t){case"GeometryCollection":return Array.isArray(e.geometries)&&e.geometries.every(j9);case"MultiPolygon":return Array.isArray(n)&&n.every(V9);case"Polygon":return V9(n);case"MultiLineString":return Array.isArray(n)&&n.every(MN);case"LineString":return MN(n);case"MultiPoint":return MN(n);case"Point":return B9(n)}}function Epe(e){return e!==null&&typeof e=="object"&&e.type==="Feature"&&j9(e.geometry)}function Ipe(e){return e!==null&&typeof e=="object"&&e.type==="FeatureCollection"&&Array.isArray(e.features)&&e.features.every(Epe)}var EC=z9._ModuleSupport.predicateWithMessage(Ipe,"a GeoJSON object"),Tpe=(mt(),T(pt)),{COLOR_STRING:Rpe,LINE_DASH:Ppe,OBJECT:Lpe,POSITIVE_NUMBER:H9,RATIO:Ope,Validate:GE,SeriesProperties:Fpe,SeriesTooltip:_pe}=Tpe._ModuleSupport,wA=class extends Fpe{constructor(){super(...arguments),this.topology=void 0,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.tooltip=new _pe}};me([GE(EC,{optional:!0})],wA.prototype,"topology",2),me([GE(Rpe)],wA.prototype,"stroke",2),me([GE(Ope)],wA.prototype,"strokeOpacity",2),me([GE(H9)],wA.prototype,"strokeWidth",2),me([GE(Ppe)],wA.prototype,"lineDash",2),me([GE(H9)],wA.prototype,"lineDashOffset",2),me([GE(Lpe)],wA.prototype,"tooltip",2);var{createDatumId:Npe,SeriesNodePickMode:zpe,Validate:Bpe,Logger:Gpe,Group:Vpe,Selection:jpe,PointerEvents:Hpe}=vpe._ModuleSupport,kN=class extends eO{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[zpe.EXACT_SHAPE_MATCH]}),this.properties=new wA,this._chartTopology=void 0,this.itemGroup=this.contentGroup.appendChild(new Vpe({name:"itemGroup"})),this.datumSelection=jpe.select(this.itemGroup,()=>this.nodeFactory())}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}get topology(){var e;return(e=this.properties.topology)!=null?e:this._chartTopology}setOptionsData(){}setChartData(){}get hasData(){return!1}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[0,e,0],this.highlightGroup.zIndex=[0,e,1],!0):!1}nodeFactory(){let e=new cP;return e.renderMode=2,e.lineJoin="round",e.lineCap="round",e.pointerEvents=Hpe.None,e}processData(){let{topology:e}=this;this.topologyBounds=e==null?void 0:e.features.reduce((t,n)=>{let a=n.geometry;return a==null?t:dP(a,t)},void 0),e==null&&Gpe.warnOnce("no topology was provided for [MapShapeBackgroundSeries]; nothing will be rendered.")}createNodeData(){let{id:e,topology:t,scale:n}=this;if(t==null)return;let a=[],u=[];return t.features.forEach((y,k)=>{let{geometry:R}=y,F=R!=null&&n!=null?SA(R,n):void 0;F!=null&&a.push({series:this,itemId:k,datum:y,index:k,projectedGeometry:F})}),{itemId:e,nodeData:a,labelData:u}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){var n;let{datumSelection:e}=this;this.updateSelections(),this.contentGroup.visible=this.visible;let{nodeData:t=[]}=(n=this.contextNodeData)!=null?n:{};this.datumSelection=this.updateDatumSelection({nodeData:t,datumSelection:e}),this.updateDatumNodes({datumSelection:e})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Npe(t.index))}updateDatumNodes(e){let{properties:t}=this,{datumSelection:n}=e,{stroke:a,strokeOpacity:u,lineDash:y,lineDashOffset:k}=t,R=this.getStrokeWidth(t.strokeWidth);n.each((F,_)=>{let{projectedGeometry:V}=_;if(V==null){F.visible=!1,F.projectedGeometry=void 0;return}F.visible=!0,F.projectedGeometry=V,F.stroke=a,F.strokeWidth=R,F.strokeOpacity=u,F.lineDash=y,F.lineDashOffset=k})}resetAnimation(){}getLegendData(){return[]}getTooltipContent(e){}computeFocusBounds(e){}};kN.className="MapLineBackgroundSeries",kN.type="map-line-background",me([Bpe(EC,{optional:!0,property:"topology"})],kN.prototype,"_chartTopology",2);var{DEFAULT_HIERARCHY_STROKES:Wpe}=fpe._ModuleSupport.ThemeSymbols,Upe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-line-background",moduleFactory:e=>new kN(e),tooltipDefaults:{range:"exact"},themeTemplate:He(ge({},Q2),{series:{strokeWidth:1,lineDash:[0],lineDashOffset:0}}),paletteFactory:({themeTemplateParameters:e})=>{var t;return{stroke:(t=e.get(Wpe))==null?void 0:t[1]}}},W9=(mt(),T(pt)),U9=(mt(),T(pt));function Kpe(){return{fromFn:(n,a,u)=>u==="removed"?{scalingX:1,scalingY:1}:n.previousDatum==null?{scalingX:0,scalingY:0}:{scalingX:n.scalingX,scalingY:n.scalingY},toFn:(n,a,u)=>u==="removed"?{scalingX:0,scalingY:0}:{scalingX:1,scalingY:1}}}function K9(e,t){var a;let n=(a=e.contextNodeData)==null?void 0:a.nodeData[t.datumIndex];if(n!==void 0){for(let u of e.datumSelection.nodes())if(u.datum===n)return u}}var qpe=(mt(),T(pt)),{AND:Ype,ARRAY:Xpe,COLOR_STRING:Zpe,COLOR_STRING_ARRAY:$pe,FUNCTION:Qpe,LINE_DASH:Jpe,NUMBER_ARRAY:eme,OBJECT:q9,POSITIVE_NUMBER:g5,RATIO:tme,STRING:vy,Validate:Jr,SeriesProperties:ime,SeriesTooltip:nme,Label:ame}=qpe._ModuleSupport,Fr=class extends ime{constructor(){super(...arguments),this.topology=void 0,this.idKey="",this.topologyIdKey="name",this.idName=void 0,this.labelKey=void 0,this.labelName=void 0,this.colorRange=void 0,this.maxStrokeWidth=void 0,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.label=new ame,this.tooltip=new nme}};me([Jr(EC,{optional:!0})],Fr.prototype,"topology",2),me([Jr(vy,{optional:!0})],Fr.prototype,"title",2),me([Jr(vy,{optional:!0})],Fr.prototype,"legendItemName",2),me([Jr(vy)],Fr.prototype,"idKey",2),me([Jr(vy)],Fr.prototype,"topologyIdKey",2),me([Jr(vy,{optional:!0})],Fr.prototype,"idName",2),me([Jr(vy,{optional:!0})],Fr.prototype,"labelKey",2),me([Jr(vy,{optional:!0})],Fr.prototype,"labelName",2),me([Jr(vy,{optional:!0})],Fr.prototype,"sizeKey",2),me([Jr(vy,{optional:!0})],Fr.prototype,"sizeName",2),me([Jr(vy,{optional:!0})],Fr.prototype,"colorKey",2),me([Jr(vy,{optional:!0})],Fr.prototype,"colorName",2),me([Jr(eme,{optional:!0})],Fr.prototype,"sizeDomain",2),me([Jr(Ype($pe,Xpe.restrict({minLength:1})),{optional:!0})],Fr.prototype,"colorRange",2),me([Jr(g5,{optional:!0})],Fr.prototype,"maxStrokeWidth",2),me([Jr(Zpe)],Fr.prototype,"stroke",2),me([Jr(tme)],Fr.prototype,"strokeOpacity",2),me([Jr(g5)],Fr.prototype,"strokeWidth",2),me([Jr(Jpe)],Fr.prototype,"lineDash",2),me([Jr(g5)],Fr.prototype,"lineDashOffset",2),me([Jr(Qpe,{optional:!0})],Fr.prototype,"itemStyler",2),me([Jr(q9)],Fr.prototype,"label",2),me([Jr(q9)],Fr.prototype,"tooltip",2);var{getMissCount:ome,createDatumId:Y9,SeriesNodePickMode:X9,valueProperty:tO,CachedTextMeasurerPool:rme,Validate:sme,Logger:Z9,ColorScale:lme,LinearScale:cme,Selection:p5,Text:dme}=U9._ModuleSupport,AN=class extends eO{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[X9.EXACT_SHAPE_MATCH,X9.NEAREST_NODE],usesPlacedLabels:!0}),this.properties=new Fr,this._chartTopology=void 0,this.colorScale=new lme,this.sizeScale=new cme,this.datumSelection=p5.select(this.contentGroup,()=>this.nodeFactory()),this.labelSelection=p5.select(this.labelGroup,dme),this.highlightDatumSelection=p5.select(this.highlightNode,()=>this.nodeFactory()),this._previousDatumMidPoint=void 0}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}get topology(){var e;return(e=this.properties.topology)!=null?e:this._chartTopology}get hasData(){return super.hasData&&this.topology!=null}renderToOffscreenCanvas(){return!0}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[1,e],this.highlightGroup.zIndex=[2,e],!0):!1}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}nodeFactory(){let e=new cP;return e.renderMode=2,e.lineJoin="round",e.lineCap="round",e}async processData(e){var Se,ve;if(this.data==null||!this.properties.isValid())return;let{data:t,topology:n,sizeScale:a,colorScale:u}=this,{topologyIdKey:y,idKey:k,sizeKey:R,colorKey:F,labelKey:_,sizeDomain:V,colorRange:K}=this.properties,q=new Map;n==null||n.features.forEach(ke=>{var Te;let De=(Te=ke.properties)==null?void 0:Te[y];De==null||!d5(ke.geometry,2)||q.set(De,ke)});let $=this.sizeScale.type,te=this.colorScale.type,se=(Se=this.scale)==null?void 0:Se.type,{dataModel:de,processedData:pe}=await this.requestDataModel(e,t,{props:[tO(k,se,{id:"idValue",includeProperty:!1}),tO(k,se,{id:"featureValue",includeProperty:!1,processor:()=>ke=>q.get(ke)}),..._!=null?[tO(_,"band",{id:"labelValue"})]:[],...R!=null?[tO(R,$,{id:"sizeValue"})]:[],...F!=null?[tO(F,te,{id:"colorValue"})]:[]]}),Ce=pe.rawData.length!==0?de.resolveColumnById(this,"featureValue",pe):void 0;if(this.topologyBounds=Ce==null?void 0:Ce.reduce((ke,De)=>{let Te=De==null?void 0:De.geometry;return Te==null?ke:dP(Te,ke)},void 0),R!=null){let ke=de.resolveProcessedDataIndexById(this,"sizeValue"),De=(ve=pe.domain.values[ke])!=null?ve:[];a.domain=V!=null?V:De}if(K!=null&&this.isColorScaleValid()){let ke=de.resolveProcessedDataIndexById(this,"colorValue");u.domain=pe.domain.values[ke],u.range=K,u.update()}n==null&&Z9.warnOnce("no topology was provided for [MapLineSeries]; nothing will be rendered.")}isColorScaleValid(){let{colorKey:e}=this.properties;if(!e)return!1;let{dataModel:t,processedData:n}=this;if(!t||!n)return!1;let a=t.resolveProcessedDataIndexById(this,"colorValue"),u=n.rawData.length,y=ome(this,n.defs.values[a].missing);return!(u===0||u===y)}getLabelDatum(e,t,n,a){if(t==null||n==null)return;let u=xN(n);if(u==null)return;let{idKey:y,idName:k,sizeKey:R,sizeName:F,colorKey:_,colorName:V,labelKey:K,labelName:q,label:$}=this.properties,te=this.getLabelText($,{value:t,datum:e,idKey:y,idName:k,sizeKey:R,sizeName:F,colorKey:_,colorName:V,labelKey:K,labelName:q});if(te==null)return;let se=rme.measureText(String(te),{font:a}),de=CN(u);if(de==null)return;let[pe,Ce]=de.point,{width:Se,height:ve}=se;return{point:{x:pe,y:Ce,size:0},label:{width:Se,height:ve,text:te},marker:void 0,placement:void 0}}createNodeData(){var Te;let{id:e,dataModel:t,processedData:n,sizeScale:a,properties:u,scale:y}=this,{idKey:k,sizeKey:R,colorKey:F,labelKey:_,label:V}=u;if(t==null||n==null||n.rawData.length===0)return;let K=t.resolveColumnById(this,"idValue",n),q=t.resolveColumnById(this,"featureValue",n),$=_!=null?t.resolveColumnById(this,"labelValue",n):void 0,te=R!=null?t.resolveColumnById(this,"sizeValue",n):void 0,se=F!=null?t.resolveColumnById(this,"colorValue",n):void 0,de=(Te=u.maxStrokeWidth)!=null?Te:u.strokeWidth;a.range=[Math.min(u.strokeWidth,de),de];let pe=V.getFont(),Ce=new Map;n.rawData.forEach((ze,qe)=>{var at,ht;let et=K[qe],$e=(ht=(at=q[qe])==null?void 0:at.geometry)!=null?ht:void 0,lt=$e!=null&&y!=null?SA($e,y):void 0;et!=null&&lt!=null&&Ce.set(et,lt)});let Se=[],ve=[],ke=[];n.rawData.forEach((ze,qe)=>{let et=K[qe],$e=se==null?void 0:se[qe],lt=te==null?void 0:te[qe],at=$==null?void 0:$[qe],ht=Ce.get(et);ht==null&&ke.push(et);let vt=this.getLabelDatum(ze,at,ht,pe);vt!=null&&ve.push(vt),Se.push({series:this,itemId:k,datum:ze,datumIndex:qe,idValue:et,labelValue:at,colorValue:$e,sizeValue:lt,projectedGeometry:ht})});let De=10;if(ke.length>De){let ze=ke.length-De;ke.length=De,ke.push(`(+${ze} more)`)}return ke.length>0&&Z9.warnOnce("some data items do not have matches in the provided topology",ke),{itemId:e,nodeData:Se,labelData:ve}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){var u,y,k;let{datumSelection:e,highlightDatumSelection:t}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let n=(u=this.ctx.highlightManager)==null?void 0:u.getActiveHighlight();n!=null&&(n.series!==this||n.datum==null)&&(n=void 0);let a=(k=(y=this.contextNodeData)==null?void 0:y.nodeData)!=null?k:[];this.datumSelection=this.updateDatumSelection({nodeData:a,datumSelection:e}),this.updateDatumNodes({datumSelection:e,isHighlight:!1}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:n!=null?[n]:[],datumSelection:t}),this.updateDatumNodes({datumSelection:t,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Y9(t.idValue))}getItemBaseStyle(e){var u,y,k,R,F;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{stroke:(u=n==null?void 0:n.stroke)!=null?u:t.stroke,strokeWidth:(y=n==null?void 0:n.strokeWidth)!=null?y:a,strokeOpacity:(k=n==null?void 0:n.strokeOpacity)!=null?k:t.strokeOpacity,lineDash:(R=n==null?void 0:n.lineDash)!=null?R:t.lineDash,lineDashOffset:(F=n==null?void 0:n.lineDashOffset)!=null?F:t.lineDashOffset}}getItemStyleOverrides(e,t,n,a,u,y){var $;let{id:k,properties:R,colorScale:F,sizeScale:_}=this,{colorRange:V,itemStyler:K}=R,q;if(!y&&n!=null&&(q!=null||(q={}),q.stroke=this.isColorScaleValid()?F.convert(n):($=V==null?void 0:V[0])!=null?$:R.stroke),a!=null&&(q!=null||(q={}),q.strokeWidth=_.convert(a,!0)),K!=null){let te=this.cachedDatumCallback(Y9(e,y?"highlight":"node"),()=>K(ge(ge({seriesId:k,datum:t,highlighted:y},u),q)));q!=null||(q={}),Object.assign(q,te)}return q}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getItemBaseStyle(n);t.each((u,y)=>{var q,$,te,se,de;let{datum:k,datumIndex:R,colorValue:F,sizeValue:_,projectedGeometry:V}=y;if(V==null){u.visible=!1,u.projectedGeometry=void 0;return}let K=this.getItemStyleOverrides(String(R),k,F,_,a,n);u.visible=!0,u.projectedGeometry=V,u.stroke=(q=K==null?void 0:K.stroke)!=null?q:a.stroke,u.strokeWidth=($=K==null?void 0:K.strokeWidth)!=null?$:a.strokeWidth,u.strokeOpacity=(te=K==null?void 0:K.strokeOpacity)!=null?te:a.strokeOpacity,u.lineDash=(se=K==null?void 0:K.lineDash)!=null?se:a.lineDash,u.lineDashOffset=(de=K==null?void 0:K.lineDashOffset)!=null?de:a.lineDashOffset})}updatePlacedLabelData(e){this.labelSelection=this.labelSelection.update(e,t=>{t.pointerEvents=U9._ModuleSupport.PointerEvents.None}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){let{labelSelection:t}=e,{color:n,fontStyle:a,fontWeight:u,fontSize:y,fontFamily:k}=this.properties.label;t.each((R,{x:F,y:_,width:V,height:K,text:q})=>{R.visible=!0,R.x=F+V/2,R.y=_+K/2,R.text=q,R.fill=n,R.fontStyle=a,R.fontWeight=u,R.fontSize=y,R.fontFamily=k,R.textAlign="center",R.textBaseline="middle"})}resetAnimation(){}getLabelData(){var e,t;return this.isLabelEnabled()?(t=(e=this.contextNodeData)==null?void 0:e.labelData)!=null?t:[]:[]}pickNodeClosestDatum({x:e,y:t}){let n=1/0,a;return this.datumSelection.each((u,y)=>{let k=u.distanceSquared(e,t);k<n&&(n=k,a=y)}),a!=null?{datum:a,distance:Math.sqrt(n)}:void 0}datumMidPoint(e){var k;let{_previousDatumMidPoint:t}=this;if((t==null?void 0:t.datum)===e)return t.point;let n=e.projectedGeometry,a=n!=null?xN(n):void 0,u=a!=null?(k=CN(a))==null?void 0:k.point:void 0,y=u!=null?{x:u[0],y:u[1]}:void 0;return this._previousDatumMidPoint={datum:e,point:y},y}legendItemSymbol(e){let{dataModel:t,processedData:n,properties:a}=this,{strokeWidth:u,strokeOpacity:y,lineDash:k}=a,{stroke:R}=a;if(e!=null&&this.isColorScaleValid()){let _=t.resolveColumnById(this,"colorValue",n)[e];R=this.colorScale.convert(_)}return{marker:{fill:void 0,fillOpacity:0,stroke:void 0,strokeWidth:0,strokeOpacity:0,enabled:!1},line:{stroke:R,strokeWidth:u,strokeOpacity:y,lineDash:k}}}getLegendData(e){var $,te;let{processedData:t,dataModel:n}=this;if(t==null||n==null)return[];let{id:a,visible:u}=this,{title:y,legendItemName:k,idKey:R,idName:F,colorKey:_,colorName:V,colorRange:K,showInLegend:q}=this.properties;if(e==="gradient"&&_!=null&&K!=null){let se=t.domain.values[n.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:u,seriesId:a,colorName:V,colorRange:K,colorDomain:se}]}else return e==="category"?[{legendType:"category",id:a,itemId:a,seriesId:a,enabled:u,label:{text:(te=($=k!=null?k:y)!=null?$:F)!=null?te:R},symbol:this.legendItemSymbol(),legendItemName:k,hideInLegend:!q}]:[]}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:u}=this,{idKey:y,idName:k,colorKey:R,colorName:F,sizeKey:_,sizeName:V,labelKey:K,labelName:q,title:$,legendItemName:te,tooltip:se}=u;if(!n||!(a!=null&&a.rawData.length))return;let{datumIndex:de}=e,pe=a.rawData[de],Ce=n.resolveColumnById(this,"idValue",a),Se=[],ve=_!=null?n.resolveColumnById(this,"sizeValue",a)[de]:void 0,ke=R!=null?n.resolveColumnById(this,"colorValue",a)[de]:void 0;if(_!=null&&Se.push({label:V,fallbackLabel:_,value:String(ve)}),R!=null&&Se.push({label:F,fallbackLabel:R,value:String(ke)}),K!=null&&K!==y){let Te=n.resolveColumnById(this,"labelValue",a)[de];Se.push({label:q,fallbackLabel:K,value:Te})}let De=this.getItemBaseStyle(!1);return Object.assign(De,this.getItemStyleOverrides(String(de),de,ke,ve,De,!1)),se.formatTooltip({heading:Ce[de],title:$!=null?$:te,symbol:this.legendItemSymbol(de),data:Se},ge({seriesId:t,datum:pe,title:$,idKey:y,idName:k,colorKey:R,colorName:F,sizeKey:_,sizeName:V,labelKey:K,labelName:q},De))}computeFocusBounds(e){let t=K9(this,e);return t?t.getBBox():void 0}};AN.className="MapLineSeries",AN.type="map-line",me([sme(EC,{optional:!0,property:"topology"})],AN.prototype,"_chartTopology",2);var{DEFAULT_DIVERGING_SERIES_COLOR_RANGE:ume,DEFAULT_FONT_FAMILY:hme,DEFAULT_LABEL_COLOUR:gme}=W9._ModuleSupport.ThemeSymbols,pme={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-line",moduleFactory:e=>new AN(e),tooltipDefaults:{range:"exact"},themeTemplate:He(ge({},Q2),{series:{strokeWidth:1,maxStrokeWidth:3,lineDash:[0],lineDashOffset:0,label:{enabled:!0,fontSize:12,fontFamily:hme,color:gme}}}),paletteFactory:e=>{let{takeColors:t,colorsCount:n,userPalette:a,themeTemplateParameters:u}=e,{fill:y}=W9._ModuleSupport.singleSeriesPaletteFactory(e),k=u.get(ume),{fills:R}=t(n);return{colorRange:a==="inbuilt"?k:[R[0],R[1]],stroke:y}}},$9=(mt(),T(pt)),Q9=(mt(),T(pt)),mme=(e,t,n)=>{let a=e,u=a;for(let y of t)if(a==null||n(a.value,y)>0)a={value:y,next:a},u=a;else{for(u=u;u.next!=null&&n(u.next.value,y)<=0;)u=u.next;u.next={value:y,next:u.next}}return a};function J9(e,t,n){let a=BE(e[0],void 0);if(a==null)return;let u=(a.lon0+a.lon1)/2,y=(a.lat0+a.lat1)/2,k=Math.abs(a.lon1-a.lon0),R=Math.abs(a.lat1-a.lat0),F=wpe(e[0]),[_,V]=F,K=-SN(e,_,V),q,$=(ke,De)=>{let ze=Math.max(De-K,0);return ke-.5*ze},te=(ke,De,Te)=>{let{distance:ze,maxDistance:qe}=n(e,ke,De,Te),et=Math.hypot(_-ke,V-De),$e=Math.min(Math.max(_,ke-Te/2),ke+Te/2),lt=Math.min(Math.max(V,De-Te/2),De+Te/2),at=Math.hypot(_-$e,V-lt),ht=$(ze,et),vt=$(qe,at);return{distance:ze,maxDistance:qe,value:ht,maxValue:vt,x:ke,y:De,stride:Te}},se=(ke,De,Te,ze)=>{let qe=te(De,Te,ze);qe.maxDistance>=0&&ke.push(qe)},de=Math.min(k,R)/2,pe={value:te(u,y,de),next:null};for(;pe!=null;){let ke=pe.value,{distance:De,value:Te,maxValue:ze,x:qe,y:et,stride:$e}=ke;if(pe=pe.next,De>0&&(q==null||Te>q.value)&&(q=ke),q!=null&&ze-q.value<=t)continue;let lt=$e/2,at=[];se(at,qe-lt,et-lt,lt),se(at,qe+lt,et-lt,lt),se(at,qe-lt,et+lt,lt),se(at,qe+lt,et+lt,lt),at.sort(eK),pe=mme(pe,at,eK)}if(q==null)return;let{distance:Ce,x:Se,y:ve}=q;return{x:Se,y:ve,distance:Ce}}var eK=(e,t)=>t.maxValue-e.maxValue;function m5(e,t){let n=J9(e,t,(y,k,R,F)=>{let _=-SN(y,k,R),V=_+F*Math.SQRT2;return{distance:_,maxDistance:V}});if(n==null)return;let{x:a,y:u}=n;return[a,u]}function tK(e,t){var a,u;let n;switch(e.type){case"GeometryCollection":return e.geometries.flatMap(y=>tK(y,t));case"MultiPoint":return e.coordinates;case"Point":return[e.coordinates];case"MultiPolygon":{let y=wN(e);n=y!=null?m5(y,t):void 0;break}case"Polygon":{let y=e.coordinates;n=y!=null?m5(y,t):void 0;break}case"MultiLineString":{let y=xN(e);n=y!=null?(a=CN(y))==null?void 0:a.point:void 0;break}case"LineString":{let y=e.coordinates;n=(u=CN(y))==null?void 0:u.point;break}}return n!=null?[n]:[]}var fme=(mt(),T(pt)),{AND:vme,ARRAY:yme,COLOR_STRING:iK,COLOR_STRING_ARRAY:bme,FUNCTION:Cme,NUMBER_ARRAY:Sme,OBJECT:nK,POSITIVE_NUMBER:f5,RATIO:aK,STRING:Bu,MARKER_SHAPE:wme,Validate:Eo,SeriesProperties:xme,SeriesTooltip:Mme,Logger:kme,Label:Ame}=fme._ModuleSupport,oK=class extends Ame{constructor(){super(...arguments),this.placement="bottom"}};me([Eo(Bu)],oK.prototype,"placement",2);var Io=class extends xme{constructor(){super(...arguments),this.topology=void 0,this.idKey=void 0,this.topologyIdKey="name",this.idName=void 0,this.latitudeKey=void 0,this.latitudeName=void 0,this.longitudeKey=void 0,this.longitudeName=void 0,this.labelKey=void 0,this.labelName=void 0,this.colorRange=void 0,this.shape="circle",this.size=6,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.label=new oK,this.tooltip=new Mme}isValid(){let e=super.isValid(),t=this.idKey!=null,n=this.latitudeKey!=null&&this.longitudeKey!=null;return!t&&!n?(kme.warnOnce("Either both [topology] and [idKey] or both [latitudeKey] and [longitudeKey] must be set to render a map marker series."),!1):e}};me([Eo(EC,{optional:!0})],Io.prototype,"topology",2),me([Eo(Bu,{optional:!0})],Io.prototype,"title",2),me([Eo(Bu,{optional:!0})],Io.prototype,"legendItemName",2),me([Eo(Bu,{optional:!0})],Io.prototype,"idKey",2),me([Eo(Bu)],Io.prototype,"topologyIdKey",2),me([Eo(Bu,{optional:!0})],Io.prototype,"idName",2),me([Eo(Bu,{optional:!0})],Io.prototype,"latitudeKey",2),me([Eo(Bu,{optional:!0})],Io.prototype,"latitudeName",2),me([Eo(Bu,{optional:!0})],Io.prototype,"longitudeKey",2),me([Eo(Bu,{optional:!0})],Io.prototype,"longitudeName",2),me([Eo(Bu,{optional:!0})],Io.prototype,"labelKey",2),me([Eo(Bu,{optional:!0})],Io.prototype,"labelName",2),me([Eo(Bu,{optional:!0})],Io.prototype,"sizeKey",2),me([Eo(Bu,{optional:!0})],Io.prototype,"sizeName",2),me([Eo(Bu,{optional:!0})],Io.prototype,"colorKey",2),me([Eo(Bu,{optional:!0})],Io.prototype,"colorName",2),me([Eo(vme(bme,yme.restrict({minLength:1})),{optional:!0})],Io.prototype,"colorRange",2),me([Eo(wme)],Io.prototype,"shape",2),me([Eo(f5)],Io.prototype,"size",2),me([Eo(f5,{optional:!0})],Io.prototype,"maxSize",2),me([Eo(Sme,{optional:!0})],Io.prototype,"sizeDomain",2),me([Eo(iK)],Io.prototype,"fill",2),me([Eo(aK)],Io.prototype,"fillOpacity",2),me([Eo(iK)],Io.prototype,"stroke",2),me([Eo(f5)],Io.prototype,"strokeWidth",2),me([Eo(aK)],Io.prototype,"strokeOpacity",2),me([Eo(Cme,{optional:!0})],Io.prototype,"itemStyler",2),me([Eo(nK)],Io.prototype,"label",2),me([Eo(nK)],Io.prototype,"tooltip",2);var{CachedTextMeasurerPool:Dme,Validate:Eme,fromToMotion:Ime,StateMachine:Tme,getMissCount:Rme,createDatumId:rK,SeriesNodePickMode:sK,valueProperty:VE,computeMarkerFocusBounds:Pme,Logger:Lme,ColorScale:Ome,LinearScale:Fme,Group:_me,Selection:v5,Text:Nme,getMarker:lK}=Q9._ModuleSupport,DN=class extends eO{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[sK.EXACT_SHAPE_MATCH,sK.NEAREST_NODE],usesPlacedLabels:!0}),this.properties=new Io,this._chartTopology=void 0,this.colorScale=new Ome,this.sizeScale=new Fme,this.markerGroup=this.contentGroup.appendChild(new _me({name:"markerGroup"})),this.labelSelection=v5.select(this.labelGroup,Nme,!1),this.markerSelection=v5.select(this.markerGroup,()=>this.markerFactory(),!1),this.highlightMarkerSelection=v5.select(this.highlightNode,()=>this.markerFactory()),this.animationState=new Tme("empty",{empty:{update:{target:"ready",action:()=>this.animateMarkers()},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",resize:()=>this.resetAllAnimation(),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:()=>this.animateMarkers()},resize:{target:"ready",action:()=>this.resetAllAnimation()},reset:"empty",skip:"ready"},clearing:{update:{target:"empty",action:()=>this.resetAllAnimation()},reset:"empty",skip:"ready"}},()=>this.checkProcessedDataAnimatable())}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}get topology(){var e;return(e=this.properties.topology)!=null?e:this._chartTopology}get hasData(){let e=this.properties.latitudeKey!=null&&this.properties.longitudeKey!=null;return super.hasData&&(this.topology!=null||e)}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[3,e],this.highlightGroup.zIndex=[4,e],!0):!1}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}markerFactory(){let{shape:e}=this.properties,t=lK(e);return new t}async processData(e){var qe,et;if(this.data==null||!this.properties.isValid())return;let{data:t,topology:n,sizeScale:a,colorScale:u}=this,{topologyIdKey:y,idKey:k,latitudeKey:R,longitudeKey:F,sizeKey:_,colorKey:V,labelKey:K,sizeDomain:q,colorRange:$}=this.properties,te=new Map;n==null||n.features.forEach($e=>{var at;let lt=(at=$e.properties)==null?void 0:at[y];lt!=null&&te.set(lt,$e)});let se=this.sizeScale.type,de=this.colorScale.type,pe=(qe=this.scale)==null?void 0:qe.type,Ce=R!=null&&F!=null,{dataModel:Se,processedData:ve}=await this.requestDataModel(e,t,{props:[...k!=null?[VE(k,pe,{id:"idValue",includeProperty:!1}),VE(k,pe,{id:"featureValue",includeProperty:!1,processor:()=>$e=>te.get($e)})]:[],...Ce?[VE(R,pe,{id:"latValue"}),VE(F,pe,{id:"lonValue"})]:[],...K?[VE(K,"band",{id:"labelValue"})]:[],..._?[VE(_,se,{id:"sizeValue"})]:[],...V?[VE(V,de,{id:"colorValue"})]:[]]}),ke=ve.rawData.length!==0,De=ke&&k!=null?Se.resolveColumnById(this,"featureValue",ve):void 0,Te=ke&&Ce?Se.resolveColumnById(this,"latValue",ve):void 0,ze=ke&&Ce?Se.resolveColumnById(this,"lonValue",ve):void 0;if(this.topologyBounds=ve.rawData.reduce(($e,lt,at)=>{let ht=De==null?void 0:De[at],vt=ht==null?void 0:ht.geometry;if(vt!=null&&($e=dP(vt,$e)),Te!=null&&ze!=null){let wt=ze[at],Ct=Te[at];$e=J2($e,wt,Ct,wt,Ct)}return $e},void 0),_!=null){let $e=Se.resolveProcessedDataIndexById(this,"sizeValue"),lt=(et=ve.domain.values[$e])!=null?et:[];a.domain=q!=null?q:lt}if($!=null&&this.isColorScaleValid()){let $e=Se.resolveProcessedDataIndexById(this,"colorValue");u.domain=ve.domain.values[$e],u.range=$,u.update()}this.animationState.transition("updateData")}isColorScaleValid(){let{colorKey:e}=this.properties;if(!e)return!1;let{dataModel:t,processedData:n}=this;if(!t||!n)return!1;let a=t.resolveProcessedDataIndexById(this,"colorValue"),u=n.rawData.length,y=Rme(this,n.defs.values[a].missing);return!(u===0||u===y)}getLabelDatum(e,t,n,a,u,y){if(t==null)return;let{idKey:k,idName:R,latitudeKey:F,latitudeName:_,longitudeKey:V,longitudeName:K,sizeKey:q,sizeName:$,colorKey:te,colorName:se,labelKey:de,labelName:pe,label:Ce}=this.properties,{placement:Se}=Ce,ve=this.getLabelText(Ce,{value:t,datum:e,idKey:k,idName:R,latitudeKey:F,latitudeName:_,longitudeKey:V,longitudeName:K,sizeKey:q,sizeName:$,colorKey:te,colorName:se,labelKey:de,labelName:pe});if(ve==null)return;let{width:ke,height:De}=Dme.measureText(String(ve),{font:y});return{point:{x:n,y:a,size:u},label:{width:ke,height:De,text:ve},marker:lK(this.properties.shape),placement:Se}}createNodeData(){var lt;let{id:e,dataModel:t,processedData:n,sizeScale:a,properties:u,scale:y}=this,{idKey:k,latitudeKey:R,longitudeKey:F,sizeKey:_,colorKey:V,labelKey:K,label:q}=u;if(t==null||n==null||n.rawData.length===0||y==null)return;let $=R!=null&&F!=null,te=k!=null?t.resolveColumnById(this,"idValue",n):void 0,se=k!=null?t.resolveColumnById(this,"featureValue",n):void 0,de=$?t.resolveColumnById(this,"latValue",n):void 0,pe=$?t.resolveColumnById(this,"lonValue",n):void 0,Ce=K!=null?t.resolveColumnById(this,"labelValue",n):void 0,Se=_!=null?t.resolveColumnById(this,"sizeValue",n):void 0,ve=V!=null?t.resolveColumnById(this,"colorValue",n):void 0,ke=(lt=u.maxSize)!=null?lt:u.size;a.range=[Math.min(u.size,ke),ke];let De=q.getFont(),Te;te!=null&&se!=null&&(Te=new Map,n.rawData.forEach((at,ht)=>{var yt,Et;let vt=te[ht],wt=(Et=(yt=se[ht])==null?void 0:yt.geometry)!=null?Et:void 0,Ct=wt!=null&&y!=null?SA(wt,y):void 0;vt!=null&&Ct!=null&&Te.set(vt,Ct)}));let ze=[],qe=[],et=[];n.rawData.forEach((at,ht)=>{let vt=te==null?void 0:te[ht],wt=pe==null?void 0:pe[ht],Ct=de==null?void 0:de[ht],yt=ve==null?void 0:ve[ht],Et=Se==null?void 0:Se[ht],At=Ce==null?void 0:Ce[ht],Dt=Et!=null?a.convert(Et,!0):u.size,Ot=vt!=null?Te==null?void 0:Te.get(vt):void 0;if(vt!=null&&SA==null&&et.push(vt),wt!=null&&Ct!=null){let[It,Rt]=y.convert([wt,Ct]),Xt=this.getLabelDatum(at,At,It,Rt,Dt,De);Xt&&qe.push(Xt),ze.push({series:this,itemId:R,datum:at,datumIndex:ht,index:-1,idValue:vt,lonValue:wt,latValue:Ct,labelValue:At,sizeValue:Et,colorValue:yt,point:{x:It,y:Rt,size:Dt},midPoint:{x:It,y:Rt}})}else Ot!=null&&tK(Ot,1).forEach(([It,Rt],Xt)=>{let Yt=this.getLabelDatum(at,At,It,Rt,Dt,De);Yt&&qe.push(Yt),ze.push({series:this,itemId:R,datum:at,datumIndex:ht,index:Xt,idValue:vt,lonValue:wt,latValue:Ct,labelValue:At,sizeValue:Et,colorValue:yt,point:{x:It,y:Rt,size:Dt},midPoint:{x:It,y:Rt}})})});let $e=10;if(et.length>$e){let at=et.length-$e;et.length=$e,et.push(`(+${at} more)`)}return et.length>0&&Lme.warnOnce("some data items do not have matches in the provided topology",et),{itemId:e,nodeData:ze,labelData:qe}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}checkScaleChange(){return this.previousScale===this.scale?!1:(this.previousScale=this.scale,!0)}update({seriesRect:e}){var R,F,_;let t=this.checkResize(e),n=this.checkScaleChange(),{markerSelection:a,highlightMarkerSelection:u}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let y=(R=this.ctx.highlightManager)==null?void 0:R.getActiveHighlight();y!=null&&(y.series!==this||y.datum==null)&&(y=void 0);let k=(_=(F=this.contextNodeData)==null?void 0:F.nodeData)!=null?_:[];this.markerSelection=this.updateMarkerSelection({markerData:k,markerSelection:a}),this.updateMarkerNodes({markerSelection:a,isHighlight:!1,highlightedDatum:y}),this.highlightMarkerSelection=this.updateMarkerSelection({markerData:y!=null?[y]:[],markerSelection:u}),this.updateMarkerNodes({markerSelection:u,isHighlight:!0,highlightedDatum:y}),(n||t)&&this.animationState.transition("resize"),this.animationState.transition("update")}updatePlacedLabelData(e){this.labelSelection=this.labelSelection.update(e,t=>{t.pointerEvents=Q9._ModuleSupport.PointerEvents.None}),this.updateLabelNodes({labelSelection:this.labelSelection})}updateLabelNodes(e){let{labelSelection:t}=e,{color:n,fontStyle:a,fontWeight:u,fontSize:y,fontFamily:k}=this.properties.label;t.each((R,{x:F,y:_,width:V,height:K,text:q})=>{R.visible=!0,R.x=F+V/2,R.y=_+K/2,R.text=q,R.fill=n,R.fontStyle=a,R.fontWeight=u,R.fontSize=y,R.fontFamily=k,R.textAlign="center",R.textBaseline="middle"})}updateMarkerSelection(e){let{markerData:t,markerSelection:n}=e;return n.update(t,void 0,a=>rK([a.index,a.idValue,a.lonValue,a.latValue]))}getMarkerItemBaseStyle(e){var u,y,k,R,F;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{size:t.size,fill:(u=n==null?void 0:n.fill)!=null?u:t.fill,fillOpacity:(y=n==null?void 0:n.fillOpacity)!=null?y:t.fillOpacity,stroke:(k=n==null?void 0:n.stroke)!=null?k:t.stroke,strokeWidth:(R=n==null?void 0:n.strokeWidth)!=null?R:a,strokeOpacity:(F=n==null?void 0:n.strokeOpacity)!=null?F:t.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a,u,y){var $;let{id:k,properties:R,colorScale:F,sizeScale:_}=this,{colorRange:V,itemStyler:K}=R,q;if(!y&&n!=null&&(q!=null||(q={}),q.fill=this.isColorScaleValid()?F.convert(n):($=V==null?void 0:V[0])!=null?$:R.fill),a!=null&&(q!=null||(q={}),q.size=_.convert(a,!0)),K!=null){let te=this.cachedDatumCallback(rK(e,y?"highlight":"node"),()=>K(ge(ge({seriesId:k,datum:t,highlighted:y},u),q)));q!=null||(q={}),Object.assign(q,te)}return q}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n,highlightedDatum:a}=e,u=this.getMarkerItemBaseStyle(n);t.each((y,k)=>{var $,te,se,de,pe,Ce;let{datumIndex:R,datum:F,point:_,colorValue:V,sizeValue:K}=k,q=this.getMarkerItemStyleOverrides(String(R),F,V,K,u,n);y.size=($=q==null?void 0:q.size)!=null?$:u.size,y.fill=(te=q==null?void 0:q.fill)!=null?te:u.fill,y.fillOpacity=(se=q==null?void 0:q.fillOpacity)!=null?se:u.fillOpacity,y.stroke=(de=q==null?void 0:q.stroke)!=null?de:u.stroke,y.strokeWidth=(pe=q==null?void 0:q.strokeWidth)!=null?pe:u.strokeWidth,y.strokeOpacity=(Ce=q==null?void 0:q.strokeOpacity)!=null?Ce:u.strokeOpacity,y.translationX=_.x,y.translationY=_.y,y.zIndex=!n&&a!=null&&F===a.datum?1:0})}isProcessedDataAnimatable(){return!0}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),this.ctx.animationManager.skipCurrentBatch(),this.labelSelection.cleanup(),this.markerSelection.cleanup(),this.highlightMarkerSelection.cleanup()}animateMarkers(){let{animationManager:e}=this.ctx,t=Kpe();Ime(this.id,"markers",e,[this.markerSelection,this.highlightMarkerSelection],t)}getLabelData(){var e,t;return this.isLabelEnabled()?(t=(e=this.contextNodeData)==null?void 0:e.labelData)!=null?t:[]:[]}pickNodeClosestDatum(e){var y;let{x:t,y:n}=e,a=1/0,u;return(y=this.contextNodeData)==null||y.nodeData.forEach(k=>{let{x:R,y:F,size:_}=k.point,V=Math.max(Math.abs(R-t)-_,0),K=Math.max(Math.abs(F-n)-_,0),q=V*V+K*K;q<a&&(a=q,u=k)}),u!=null?{datum:u,distance:Math.sqrt(a)}:void 0}legendItemSymbol(e){let{dataModel:t,processedData:n,properties:a}=this,{shape:u,fillOpacity:y,stroke:k,strokeWidth:R,strokeOpacity:F}=a,{fill:_}=a;if(e!=null&&this.isColorScaleValid()){let K=t.resolveColumnById(this,"colorValue",n)[e];_=this.colorScale.convert(K)}return{marker:{shape:u,fill:_,fillOpacity:y,stroke:k,strokeWidth:R,strokeOpacity:F}}}getLegendData(e){var $,te,se;let{processedData:t,dataModel:n}=this;if(t==null||n==null)return[];let{id:a,visible:u}=this,{title:y,legendItemName:k,idName:R,idKey:F,colorKey:_,colorName:V,colorRange:K,showInLegend:q}=this.properties;if(e==="gradient"&&_!=null&&K!=null){let de=t.domain.values[n.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:u,seriesId:a,colorName:V,colorRange:K,colorDomain:de}]}else return e==="category"?[{legendType:"category",id:a,itemId:a,seriesId:a,enabled:u,label:{text:(se=(te=($=k!=null?k:y)!=null?$:R)!=null?te:F)!=null?se:a},symbol:this.legendItemSymbol(),legendItemName:k,hideInLegend:!q}]:[]}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:u}=this,{idKey:y,idName:k,latitudeKey:R,latitudeName:F,longitudeKey:_,longitudeName:V,colorKey:K,colorName:q,sizeKey:$,sizeName:te,labelKey:se,labelName:de,title:pe,legendItemName:Ce,tooltip:Se}=u;if(!n||!(a!=null&&a.rawData.length))return;let{datumIndex:ve}=e,ke=a.rawData[ve],De=$!=null?n.resolveColumnById(this,"sizeValue",a)[ve]:void 0,Te=K!=null?n.resolveColumnById(this,"colorValue",a)[ve]:void 0,ze=[];if(De!=null&&ze.push({label:te,fallbackLabel:$,value:String(De)}),Te!=null&&ze.push({label:q,fallbackLabel:K,value:String(Te)}),se!=null&&se!==y){let $e=n.resolveColumnById(this,"labelValue",a)[ve];ze.push({label:de,fallbackLabel:se,value:$e})}let qe;if(y!=null)qe=n.resolveColumnById(this,"idValue",a)[ve];else if(R!=null&&_!=null){let $e=n.resolveColumnById(this,"latValue",a)[ve],lt=n.resolveColumnById(this,"lonValue",a)[ve];qe=`${Math.abs($e).toFixed(4)}\xB0 ${$e>=0?"N":"S"}, ${Math.abs(lt).toFixed(4)}\xB0 ${lt>=0?"W":"E"}`}let et=this.getMarkerItemBaseStyle(!1);return Object.assign(et,this.getMarkerItemStyleOverrides(String(ve),ve,Te,De,et,!1)),Se.formatTooltip({heading:qe,title:pe!=null?pe:Ce,symbol:this.legendItemSymbol(ve),data:ze},ge({seriesId:t,datum:ke,title:pe,idKey:y,idName:k,latitudeKey:R,latitudeName:F,longitudeKey:_,longitudeName:V,colorKey:K,colorName:q,sizeKey:$,sizeName:te,labelKey:se,labelName:de},et))}getFormattedMarkerStyle(e){let{datumIndex:t,colorValue:n,sizeValue:a}=e,u=this.getMarkerItemBaseStyle(!1);return Object.assign(u,this.getMarkerItemStyleOverrides(String(t),t,n,a,u,!1)),{size:u.size}}computeFocusBounds(e){return Pme(this,e)}};DN.className="MapMarkerSeries",DN.type="map-marker",me([Eme(EC,{optional:!0,property:"topology"})],DN.prototype,"_chartTopology",2);var{DEFAULT_LABEL_COLOUR:zme,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:Bme}=$9._ModuleSupport.ThemeSymbols,Gme={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-marker",moduleFactory:e=>new DN(e),tooltipDefaults:{range:"exact"},themeTemplate:He(ge({},Q2),{series:{shape:"circle",maxSize:30,fillOpacity:.5,label:{color:zme}}}),paletteFactory:e=>{let{takeColors:t,colorsCount:n,userPalette:a,themeTemplateParameters:u}=e,{fill:y,stroke:k}=$9._ModuleSupport.singleSeriesPaletteFactory(e),R=u.get(Bme),{fills:F}=t(n);return{fill:y,stroke:k,colorRange:a==="inbuilt"?R:[F[0],F[1]]}}},Vme=(mt(),T(pt)),jme=(mt(),T(pt)),Hme=(mt(),T(pt)),{COLOR_STRING:cK,LINE_DASH:Wme,OBJECT:Ume,POSITIVE_NUMBER:dK,RATIO:uK,Validate:Rw,SeriesProperties:Kme,SeriesTooltip:qme}=Hme._ModuleSupport,IC=class extends Kme{constructor(){super(...arguments),this.topology=void 0,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.tooltip=new qme}};me([Rw(EC,{optional:!0})],IC.prototype,"topology",2),me([Rw(cK)],IC.prototype,"fill",2),me([Rw(uK)],IC.prototype,"fillOpacity",2),me([Rw(cK)],IC.prototype,"stroke",2),me([Rw(uK)],IC.prototype,"strokeOpacity",2),me([Rw(dK)],IC.prototype,"strokeWidth",2),me([Rw(Wme)],IC.prototype,"lineDash",2),me([Rw(dK)],IC.prototype,"lineDashOffset",2),me([Rw(Ume)],IC.prototype,"tooltip",2);var{createDatumId:Yme,SeriesNodePickMode:Xme,Validate:Zme,Logger:$me,Selection:Qme,Group:Jme,PointerEvents:efe}=jme._ModuleSupport,EN=class extends eO{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[Xme.EXACT_SHAPE_MATCH]}),this.properties=new IC,this._chartTopology=void 0,this.itemGroup=this.contentGroup.appendChild(new Jme({name:"itemGroup"})),this.datumSelection=Qme.select(this.itemGroup,()=>this.nodeFactory())}get topology(){var e;return(e=this.properties.topology)!=null?e:this._chartTopology}setOptionsData(){}setChartData(){}getNodeData(){}get hasData(){return!1}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[0,e,0],this.highlightGroup.zIndex=[0,e,1],!0):!1}nodeFactory(){let e=new cP;return e.renderMode=1,e.lineJoin="round",e.pointerEvents=efe.None,e}processData(){let{topology:e}=this;this.topologyBounds=e==null?void 0:e.features.reduce((t,n)=>{let a=n.geometry;return a==null?t:dP(a,t)},void 0),e==null&&$me.warnOnce("no topology was provided for [MapShapeBackgroundSeries]; nothing will be rendered.")}createNodeData(){let{id:e,topology:t,scale:n}=this;if(t==null)return;let a=[],u=[];return t.features.forEach((y,k)=>{let{geometry:R}=y,F=R!=null&&n!=null?SA(R,n):void 0;F!=null&&a.push({series:this,itemId:k,datum:y,index:k,projectedGeometry:F})}),{itemId:e,nodeData:a,labelData:u}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){var n;let{datumSelection:e}=this;this.updateSelections(),this.contentGroup.visible=this.visible;let{nodeData:t=[]}=(n=this.contextNodeData)!=null?n:{};this.datumSelection=this.updateDatumSelection({nodeData:t,datumSelection:e}),this.updateDatumNodes({datumSelection:e})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Yme(t.index))}updateDatumNodes(e){let{properties:t}=this,{datumSelection:n}=e,{fill:a,fillOpacity:u,stroke:y,strokeOpacity:k,lineDash:R,lineDashOffset:F}=t,_=this.getStrokeWidth(t.strokeWidth);n.each((V,K)=>{let{projectedGeometry:q}=K;if(q==null){V.visible=!1,V.projectedGeometry=void 0;return}V.visible=!0,V.projectedGeometry=q,V.fill=a,V.fillOpacity=u,V.stroke=y,V.strokeWidth=_,V.strokeOpacity=k,V.lineDash=R,V.lineDashOffset=F})}resetAnimation(){}getLegendData(){return[]}getTooltipContent(e){}pickFocus(){}computeFocusBounds(e){}};EN.className="MapShapeBackgroundSeries",EN.type="map-shape-background",me([Zme(EC,{optional:!0,property:"topology"})],EN.prototype,"_chartTopology",2);var{DEFAULT_BACKGROUND_COLOUR:tfe,DEFAULT_HIERARCHY_FILLS:ife}=Vme._ModuleSupport.ThemeSymbols,nfe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-shape-background",moduleFactory:e=>new EN(e),tooltipDefaults:{range:"exact"},themeTemplate:He(ge({},Q2),{series:{stroke:tfe,strokeWidth:1}}),paletteFactory:({themeTemplateParameters:e})=>{var t;return{fill:(t=e.get(ife))==null?void 0:t[1]}}},hK=(mt(),T(pt)),gK=(mt(),T(pt));function afe(e,{aspectRatio:t,precision:n}){let a=J9(e,n,(F,_,V,K)=>{let q=rfe(F,_,V,t),$=q+2*K*t,te=q*Math.SQRT2,se=$*Math.SQRT2;return{distance:te,maxDistance:se}});if(a==null)return;let{x:u,y,distance:k}=a,R=k/Math.SQRT2;return{x:u,y,maxWidth:R}}function ofe(e,t,n,a,u){let[y,k]=e,[R,F]=t,_=1/u,V=R-y,K=F-k,[q,$]=k<=F?e:t,[te,se]=y<=R?e:t,[de,pe]=k<=F?t:e,[Ce,Se]=y<=R?t:e,ve=1/0;if(V!==0){let et=K/V;for(let $e=0;$e<=1;$e+=1){let lt=$e===0?_:-_,at=(et*y-k-lt*n+a)/(et-lt);if(at>=te&&at<=Ce){let ht=Math.abs(n-at)*2;ve=Math.min(ve,ht)}}}else for(let et=0;et<=1;et+=1){let lt=(et===0?_:-_)*(y-n)+a;if(lt>=$&&lt<=pe){let ht=Math.abs(a-lt)*2*u;ve=Math.min(ve,ht)}}let ke=u,De=Math.abs((q-n)/($-a)),Te=Math.abs((de-n)/(pe-a));if(pe<a&&Te<ke){let $e=Math.abs(a-pe)*2*u;ve=Math.min(ve,$e)}else if($>a&&De<ke){let $e=Math.abs(a-$)*2*u;ve=Math.min(ve,$e)}let ze=Math.abs((se-a)/(te-n)),qe=Math.abs((Se-a)/(Ce-n));if(Ce<n&&qe<_){let et=Math.abs(n-Ce)*2;ve=Math.min(ve,et)}else if(te>n&&ze<_){let et=Math.abs(n-te)*2;ve=Math.min(ve,et)}return ve}function rfe(e,t,n,a){let u=!1,y=1/0;for(let k of e){let R=k[k.length-1],[F,_]=R;for(let V of k){let[K,q]=V;q>n!=_>n&&t<(F-K)*(n-q)/(_-q)+K&&(u=!u);let $=ofe(R,V,t,n,a);y=Math.min(y,$),R=V,F=K,_=q}}return(u?1:-1)*y}function IN(e,t,n){n>=t&&(e.maxX=Math.min(e.maxX,n-t)),n<=t&&(e.minX=Math.max(e.minX,n-t))}function sfe(e,t,n,a,u,y){let k=u-y/2,R=u+y/2,[F,_]=t,[V,K]=n,q=V-F,$=K-_,[te,se]=F<=V?t:n,[de,pe]=F<=V?n:t;if(q!==0){let Ce=$/q;for(let Se=0;Se<=1;Se+=1){let ke=((Se===0?k:R)-_)/Ce+F;ke>=te&&ke<=de&&IN(e,a,ke)}}else Math.max(k,Math.min(_,K))<=Math.min(R,Math.max(_,K))&&IN(e,a,F);return de<a&&pe>=k&&pe<=R?IN(e,a,de):te>a&&se>=k&&se<=R&&IN(e,a,te),e}function lfe(e,t,n,a){let u={minX:-1/0,maxX:1/0};for(let R of e){let F=R[R.length-1];for(let _ of R)sfe(u,F,_,t,n,a),F=_}let{minX:y,maxX:k}=u;return Number.isFinite(y)&&Number.isFinite(k)?{x:t+(y+k)/2,width:k-y}:{x:t,width:0}}var cfe=(mt(),T(pt)),{AND:dfe,ARRAY:ufe,COLOR_STRING:pK,COLOR_STRING_ARRAY:hfe,FUNCTION:gfe,LINE_DASH:pfe,OBJECT:mK,POSITIVE_NUMBER:y5,RATIO:fK,STRING:Pw,Validate:Es,SeriesProperties:mfe,SeriesTooltip:ffe}=cfe._ModuleSupport,es=class extends mfe{constructor(){super(...arguments),this.topology=void 0,this.idKey="",this.idName=void 0,this.topologyIdKey="name",this.labelKey=void 0,this.labelName=void 0,this.colorRange=void 0,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeOpacity=1,this.strokeWidth=0,this.lineDash=[0],this.lineDashOffset=0,this.padding=0,this.label=new Y2,this.tooltip=new ffe}};me([Es(EC,{optional:!0})],es.prototype,"topology",2),me([Es(Pw,{optional:!0})],es.prototype,"title",2),me([Es(Pw,{optional:!0})],es.prototype,"legendItemName",2),me([Es(Pw)],es.prototype,"idKey",2),me([Es(Pw,{optional:!0})],es.prototype,"idName",2),me([Es(Pw)],es.prototype,"topologyIdKey",2),me([Es(Pw,{optional:!0})],es.prototype,"labelKey",2),me([Es(Pw,{optional:!0})],es.prototype,"labelName",2),me([Es(Pw,{optional:!0})],es.prototype,"colorKey",2),me([Es(Pw,{optional:!0})],es.prototype,"colorName",2),me([Es(dfe(hfe,ufe.restrict({minLength:1})),{optional:!0})],es.prototype,"colorRange",2),me([Es(pK)],es.prototype,"fill",2),me([Es(fK)],es.prototype,"fillOpacity",2),me([Es(pK)],es.prototype,"stroke",2),me([Es(fK)],es.prototype,"strokeOpacity",2),me([Es(y5)],es.prototype,"strokeWidth",2),me([Es(pfe)],es.prototype,"lineDash",2),me([Es(y5)],es.prototype,"lineDashOffset",2),me([Es(y5)],es.prototype,"padding",2),me([Es(gfe,{optional:!0})],es.prototype,"itemStyler",2),me([Es(mK)],es.prototype,"label",2),me([Es(mK)],es.prototype,"tooltip",2);var{getMissCount:vfe,createDatumId:vK,SeriesNodePickMode:yK,valueProperty:TN,Validate:yfe,CachedTextMeasurerPool:bfe,TextUtils:bK,Logger:CK,ColorScale:Cfe,Group:SK,Selection:b5,Text:Sfe,PointerEvents:wfe}=gK._ModuleSupport,wK=gK._ModuleSupport.MercatorScale.fixedScale(),RN=class extends eO{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[yK.EXACT_SHAPE_MATCH,yK.NEAREST_NODE]}),this.properties=new es,this._chartTopology=void 0,this.colorScale=new Cfe,this.itemGroup=this.contentGroup.appendChild(new SK({name:"itemGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new SK({name:"itemLabelGroup"})),this.datumSelection=b5.select(this.itemGroup,()=>this.nodeFactory()),this.labelSelection=b5.select(this.itemLabelGroup,Sfe),this.highlightDatumSelection=b5.select(this.highlightNode,()=>this.nodeFactory()),this.previousLabelLayouts=void 0,this._previousDatumMidPoint=void 0,this.itemLabelGroup.pointerEvents=wfe.None}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}get topology(){var e;return(e=this.properties.topology)!=null?e:this._chartTopology}get hasData(){return super.hasData&&this.topology!=null}renderToOffscreenCanvas(){return!0}setChartTopology(e){this._chartTopology=e,this.topology===e&&(this.nodeDataRefresh=!0)}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[1,e],this.highlightGroup.zIndex=[2,e],!0):!1}isLabelEnabled(){return this.properties.labelKey!=null&&this.properties.label.enabled}nodeFactory(){let e=new cP;return e.renderMode=1,e.lineJoin="round",e}async processData(e){var se;if(this.data==null||!this.properties.isValid())return;let{data:t,topology:n,colorScale:a}=this,{topologyIdKey:u,idKey:y,colorKey:k,labelKey:R,colorRange:F}=this.properties,_=new Map;n==null||n.features.forEach(de=>{var Ce;let pe=(Ce=de.properties)==null?void 0:Ce[u];pe==null||!d5(de.geometry,1)||_.set(pe,de)});let V=this.colorScale.type,K=(se=this.scale)==null?void 0:se.type,{dataModel:q,processedData:$}=await this.requestDataModel(e,t,{props:[TN(y,K,{id:"idValue",includeProperty:!1}),TN(y,K,{id:"featureValue",includeProperty:!1,processor:()=>de=>_.get(de)}),...R?[TN(R,"band",{id:"labelValue"})]:[],...k?[TN(k,V,{id:"colorValue"})]:[]]}),te=$.rawData.length!==0?q.resolveColumnById(this,"featureValue",$):void 0;if(this.topologyBounds=te==null?void 0:te.reduce((de,pe)=>{let Ce=pe==null?void 0:pe.geometry;return Ce==null?de:dP(Ce,de)},void 0),F!=null&&this.isColorScaleValid()){let de=q.resolveProcessedDataIndexById(this,"colorValue");a.domain=$.domain.values[de],a.range=F,a.update()}n==null&&CK.warnOnce("no topology was provided for [MapShapeSeries]; nothing will be rendered.")}isColorScaleValid(){let{colorKey:e}=this.properties;if(!e)return!1;let{dataModel:t,processedData:n}=this;if(!t||!n)return!1;let a=t.resolveProcessedDataIndexById(this,"colorValue"),u=n.rawData.length,y=vfe(this,n.defs.values[a].missing);return!(u===0||u===y)}getLabelLayout(e,t,n,a,u){if(t==null||a==null)return;let{idKey:y,idName:k,colorKey:R,colorName:F,labelKey:_,labelName:V,padding:K,label:q}=this.properties,$=this.getLabelText(q,{value:t,datum:e,idKey:y,idName:k,colorKey:R,colorName:F,labelKey:_,labelName:V});if($==null)return;let te=bfe.measureText(String($),{font:n}),se=$.split(`
`).length,de=(te.width+2*K)/(se*bK.getLineHeight(q.fontSize)+2*K);if((u==null?void 0:u.geometry)===a&&(u==null?void 0:u.labelText)===$&&(u==null?void 0:u.aspectRatio)===de)return u;let pe=SA(a,wK),Ce=wN(pe);if(Ce==null)return;let Se=afe(Ce,{aspectRatio:de,precision:.001});if(Se==null)return;let{x:ve,y:ke,maxWidth:De}=Se;return{geometry:a,labelText:$,aspectRatio:de,x:ve,y:ke,maxWidth:De,fixedPolygon:Ce}}getLabelDatum(e,t){let{scale:n}=this;if(n==null)return;let{padding:a,label:u}=this.properties,{labelText:y,aspectRatio:k,x:R,y:F,maxWidth:_,fixedPolygon:V}=e,K={width:Math.ceil(_*t),height:Math.ceil(_*t/k),meta:R},q=K2(y,u,{padding:a},(ve,ke)=>{if(!ke)return K;let De=lfe(V,R,F,ve/t);return{width:De.width*t,height:ve,meta:De.x}});if(q==null)return;let[{text:$,fontSize:te,lineHeight:se,width:de},pe]=q;if($===bK.EllipsisChar)return;let Ce=de<K.width?R:pe,Se=this.scale.convert(wK.invert([Ce,F]));return{x:Se[0],y:Se[1],text:$,fontSize:te,lineHeight:se}}createNodeData(){let{id:e,dataModel:t,processedData:n,properties:a,scale:u,previousLabelLayouts:y}=this,{idKey:k,colorKey:R,labelKey:F,label:_}=a;if(t==null||n==null||n.rawData.length===0)return;let V=u!=null?(u.range[1][0]-u.range[0][0])/u.bounds.width:NaN,K=t.resolveColumnById(this,"idValue",n),q=t.resolveColumnById(this,"featureValue",n),$=F!=null?t.resolveColumnById(this,"labelValue",n):void 0,te=R!=null?t.resolveColumnById(this,"colorValue",n):void 0,se=_.getFont(),de=new Map;this.previousLabelLayouts=de;let pe=[],Ce=[],Se=[];n.rawData.forEach((ke,De)=>{var ht,vt;let Te=K[De],ze=te==null?void 0:te[De],qe=$==null?void 0:$[De],et=(vt=(ht=q[De])==null?void 0:ht.geometry)!=null?vt:void 0;et==null&&Se.push(Te);let $e=this.getLabelLayout(ke,qe,se,et,y==null?void 0:y.get(Te));$e!=null&&de.set(Te,$e);let lt=$e!=null&&u!=null?this.getLabelDatum($e,V):void 0;lt!=null&&Ce.push(lt);let at=et!=null&&u!=null?SA(et,u):void 0;pe.push({series:this,itemId:k,datum:ke,datumIndex:De,idValue:Te,colorValue:ze,labelValue:qe,projectedGeometry:at})});let ve=10;if(Se.length>ve){let ke=Se.length-ve;Se.length=ve,Se.push(`(+${ke} more)`)}return Se.length>0&&CK.warnOnce("some data items do not have matches in the provided topology",Se),{itemId:e,nodeData:pe,labelData:Ce}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update(){var k,R,F,_,V;let{datumSelection:e,labelSelection:t,highlightDatumSelection:n}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let a=(k=this.ctx.highlightManager)==null?void 0:k.getActiveHighlight();a!=null&&(a.series!==this||a.datum==null)&&(a=void 0);let u=(F=(R=this.contextNodeData)==null?void 0:R.nodeData)!=null?F:[],y=(V=(_=this.contextNodeData)==null?void 0:_.labelData)!=null?V:[];this.datumSelection=this.updateDatumSelection({nodeData:u,datumSelection:e}),this.updateDatumNodes({datumSelection:e,isHighlight:!1}),this.labelSelection=this.updateLabelSelection({labelData:y,labelSelection:t}),this.updateLabelNodes({labelSelection:t}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:a!=null?[a]:[],datumSelection:n}),this.updateDatumNodes({datumSelection:n,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>vK(t.idValue))}getItemBaseStyle(e){var u,y,k,R,F,_,V;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{fill:(u=n==null?void 0:n.fill)!=null?u:t.fill,fillOpacity:(y=n==null?void 0:n.fillOpacity)!=null?y:t.fillOpacity,stroke:(k=n==null?void 0:n.stroke)!=null?k:t.stroke,strokeWidth:(R=n==null?void 0:n.strokeWidth)!=null?R:a,strokeOpacity:(F=n==null?void 0:n.strokeOpacity)!=null?F:t.strokeOpacity,lineDash:(_=n==null?void 0:n.lineDash)!=null?_:t.lineDash,lineDashOffset:(V=n==null?void 0:n.lineDashOffset)!=null?V:t.lineDashOffset}}getItemStyleOverrides(e,t,n,a,u){var K;let{id:y,properties:k,colorScale:R}=this,{colorRange:F,itemStyler:_}=k,V;if(!u&&n!=null&&(V!=null||(V={}),V.fill=this.isColorScaleValid()?R.convert(n):(K=F==null?void 0:F[0])!=null?K:k.fill),_!=null){let q=this.cachedDatumCallback(vK(e,u?"highlight":"node"),()=>_(ge(ge({seriesId:y,datum:t,highlighted:u},a),V)));V!=null||(V={}),Object.assign(V,q)}return V}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getItemBaseStyle(n);t.each((u,y)=>{var K,q,$,te,se,de,pe;let{datum:k,datumIndex:R,colorValue:F,projectedGeometry:_}=y;if(_==null){u.visible=!1,u.projectedGeometry=void 0;return}let V=this.getItemStyleOverrides(String(R),k,F,a,n);u.visible=!0,u.projectedGeometry=_,u.fill=(K=V==null?void 0:V.fill)!=null?K:a.fill,u.fillOpacity=(q=V==null?void 0:V.fillOpacity)!=null?q:a.fillOpacity,u.stroke=($=V==null?void 0:V.stroke)!=null?$:a.stroke,u.strokeWidth=(te=V==null?void 0:V.strokeWidth)!=null?te:a.strokeWidth,u.strokeOpacity=(se=V==null?void 0:V.strokeOpacity)!=null?se:a.strokeOpacity,u.lineDash=(de=V==null?void 0:V.lineDash)!=null?de:a.lineDash,u.lineDashOffset=(pe=V==null?void 0:V.lineDashOffset)!=null?pe:a.lineDashOffset})}updateLabelSelection(e){let t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){let{labelSelection:t}=e,{color:n,fontStyle:a,fontWeight:u,fontFamily:y}=this.properties.label;t.each((k,{x:R,y:F,text:_,fontSize:V,lineHeight:K})=>{k.visible=!0,k.x=R,k.y=F,k.text=_,k.fill=n,k.fontStyle=a,k.fontWeight=u,k.fontSize=V,k.lineHeight=K,k.fontFamily=y,k.textAlign="center",k.textBaseline="middle"})}resetAnimation(){}pickNodeClosestDatum({x:e,y:t}){let n=1/0,a;return this.datumSelection.each((u,y)=>{let k=u.distanceSquared(e,t);k<n&&(n=k,a=y)}),a!=null?{datum:a,distance:Math.sqrt(n)}:void 0}datumMidPoint(e){let{_previousDatumMidPoint:t}=this;if((t==null?void 0:t.datum)===e)return t.point;let n=e.projectedGeometry,a=n!=null?wN(n):void 0,u=a!=null?m5(a,2):void 0,y=u!=null?{x:u[0],y:u[1]}:void 0;return this._previousDatumMidPoint={datum:e,point:y},y}legendItemSymbol(e){let{dataModel:t,processedData:n,properties:a}=this,{fillOpacity:u,stroke:y,strokeWidth:k,strokeOpacity:R}=a,{fill:F}=a;if(e!=null&&this.isColorScaleValid()){let V=t.resolveColumnById(this,"colorValue",n)[e];F=this.colorScale.convert(V)}return{marker:{fill:F,fillOpacity:u,stroke:y,strokeWidth:k,strokeOpacity:R}}}getLegendData(e){var $,te;let{processedData:t,dataModel:n}=this;if(t==null||n==null)return[];let{id:a,visible:u}=this,{title:y,legendItemName:k,idKey:R,idName:F,colorKey:_,colorName:V,colorRange:K,showInLegend:q}=this.properties;if(e==="gradient"&&_!=null&&K!=null){let se=t.domain.values[n.resolveProcessedDataIndexById(this,"colorValue")];return[{legendType:"gradient",enabled:u,seriesId:a,colorName:V,colorRange:K,colorDomain:se}]}else return e==="category"?[{legendType:"category",id:a,itemId:a,seriesId:a,enabled:u,label:{text:(te=($=k!=null?k:y)!=null?$:F)!=null?te:R},symbol:this.legendItemSymbol(),legendItemName:k,hideInLegend:!q}]:[]}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:u}=this,{idKey:y,idName:k,colorKey:R,colorName:F,labelKey:_,labelName:V,legendItemName:K,title:q,tooltip:$}=u;if(!n||!(a!=null&&a.rawData.length))return;let{datumIndex:te}=e,se=a.rawData[te],de=n.resolveColumnById(this,"idValue",a)[te],pe=R!=null?n.resolveColumnById(this,"colorValue",a)[te]:void 0,Ce=[];if(pe!=null&&Ce.push({label:F,fallbackLabel:R,value:String(pe)}),_!=null&&_!==y){let ve=n.resolveColumnById(this,"labelValue",a)[te];Ce.push({label:V,fallbackLabel:_,value:ve})}let Se=this.getItemBaseStyle(!1);return Object.assign(Se,this.getItemStyleOverrides(String(te),te,pe,Se,!1)),$.formatTooltip({heading:de,title:q!=null?q:K,symbol:this.legendItemSymbol(te),data:Ce},ge({seriesId:t,datum:se,title:q,idKey:y,idName:k,colorKey:R,colorName:F,labelKey:_,labelName:V},Se))}computeFocusBounds(e){return K9(this,e)}};RN.className="MapShapeSeries",RN.type="map-shape",me([yfe(EC,{optional:!0,property:"topology"})],RN.prototype,"_chartTopology",2);var{DEFAULT_INVERTED_LABEL_COLOUR:xfe,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:Mfe,DEFAULT_BACKGROUND_COLOUR:kfe}=hK._ModuleSupport.ThemeSymbols,Afe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["topology"],identifier:"map-shape",moduleFactory:e=>new RN(e),tooltipDefaults:{range:"exact"},themeTemplate:He(ge({},Q2),{series:{fillOpacity:1,strokeWidth:1,lineDash:[0],lineDashOffset:0,padding:2,label:{color:xfe,fontWeight:"bold",overflowStrategy:"hide"}}}),paletteFactory:e=>{let{takeColors:t,colorsCount:n,userPalette:a,themeTemplateParameters:u}=e,{fill:y}=hK._ModuleSupport.singleSeriesPaletteFactory(e),k=u.get(Mfe),{fills:R}=t(n);return{fill:y,stroke:u.get(kfe),colorRange:a==="inbuilt"?k:[R[0],R[1]]}}},Dfe=(mt(),T(pt)),Efe=(mt(),T(pt)),C5=(mt(),T(pt)),{isDefined:Ife,ChartAxisDirection:Lw,PolarAxis:Tfe,diff:Rfe,fixNumericExtent:Pfe,groupAccumulativeValueProperty:xK,keyProperty:Lfe,normaliseGroupTo:Ofe,resetLabelFn:Ffe,seriesLabelFadeInAnimation:_fe,seriesLabelFadeOutAnimation:Nfe,valueProperty:zfe,animationValidation:Bfe,createDatumId:MK,SeriesNodePickMode:kK,normalizeAngle360:AK,BandScale:Gfe,motion:DK}=C5._ModuleSupport,Vfe=class extends C5._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.angleKey=a.properties.angleKey,this.radiusKey=a.properties.radiusKey}},EK=class extends C5._ModuleSupport.PolarSeries{constructor(e,{animationResetFns:t}){super({moduleCtx:e,useLabelLayer:!0,canHaveAxes:!0,pickModes:[kK.NEAREST_NODE,kK.EXACT_SHAPE_MATCH],animationResetFns:He(ge({},t),{label:Ffe})}),this.NodeEvent=Vfe,this.groupScale=new Gfe,this.circleCache={r:0,cx:0,cy:0}}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;if(!n||!t)return[];if(e===Lw.X)return t.getDomain(this,"angleValue","key",n);{let a=t.getDomain(this,"radiusValue-end","value",n),u=[a[0]>0?0:a[0],a[1]<0?0:a[1]];return Pfe(u)}}async processData(e){var q,$;let{visible:t}=this,{angleKey:n,radiusKey:a,normalizedTo:u}=this.properties,y=!this.ctx.animationManager.isSkipped();if(!this.properties.isValid())return;let k=this.getStackId(),R=`${k}-trailing`,F=[];Ife(u)&&F.push(Ofe([k,R],Math.abs(u),"range")),y&&this.processedData&&F.push(Rfe(this.id,this.processedData)),y&&F.push(Bfe());let _=t||!y?{}:{forceValue:0},V=(q=this.axes[Lw.Y])==null?void 0:q.scale.type,K=($=this.axes[Lw.X])==null?void 0:$.scale.type;await this.requestDataModel(e,this.data,{props:[Lfe(n,K,{id:"angleValue"}),zfe(a,V,ge({id:"radiusValue-raw",invalidValue:null},_)),...xK(a,"normal","current",ge({id:"radiusValue-end",rangeId:"radiusValue-range",invalidValue:null,groupId:k,separateNegative:!0},_),V),...xK(a,"trailing","current",ge({id:"radiusValue-start",invalidValue:null,groupId:R,separateNegative:!0},_),V),...F]}),this.animationState.transition("updateData")}didCircleChange(){let e=this.radius,t=this.centerX,n=this.centerY,a=this.circleCache;return e!==a.r||t!==a.cx||n!==a.cy?(this.circleCache={r:e,cx:t,cy:n},!0):!1}isRadiusAxisReversed(){var e;return(e=this.axes[Lw.Y])==null?void 0:e.isReversed()}maybeRefreshNodeData(){var n;if(!this.didCircleChange()&&!this.nodeDataRefresh)return;let{nodeData:t=[]}=(n=this.createNodeData())!=null?n:{};this.nodeData=t,this.nodeDataRefresh=!1}getAxisInnerRadius(){let e=this.axes[Lw.Y];return e instanceof Tfe?this.radius*e.innerRadiusRatio:0}createNodeData(){var wt;let{processedData:e,dataModel:t,groupScale:n}=this;if(!t||!e||e.type!=="ungrouped"||e.rawData.length===0||!this.properties.isValid())return;let a=this.axes[Lw.X],u=this.axes[Lw.Y],y=a==null?void 0:a.scale,k=u==null?void 0:u.scale;if(!y||!k)return;let R=t.resolveKeysById(this,"angleValue",e),F=t.resolveColumnById(this,"radiusValue-start",e),_=t.resolveColumnById(this,"radiusValue-end",e),V=t.resolveColumnById(this,"radiusValue-raw",e),K=t.resolveProcessedDataIndexById(this,"radiusValue-range"),q=0,$=0;a instanceof dE&&(q=a.groupPaddingInner,$=a.paddingInner);let se=((wt=y.bandwidth)!=null?wt:0)*(1-$),{index:de,visibleGroupCount:pe}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);n.domain=Array.from({length:pe}).map((Ct,yt)=>String(yt)),n.range=[-se/2,se/2],n.paddingInner=pe>1?q:0;let Ce=this.isRadiusAxisReversed(),Se=Ce?this.radius:this.getAxisInnerRadius(),ve=Ce?this.getAxisInnerRadius():this.radius,ke=ve+Se,{angleKey:De,radiusKey:Te,angleName:ze,radiusName:qe,label:et}=this.properties,$e=(Ct,yt,Et,At)=>{let Dt=this.getLabelText(et,{value:yt,datum:Ct,angleKey:De,radiusKey:Te,angleName:ze,radiusName:qe});if(Dt)return{x:Et,y:At,text:Dt,textAlign:"center",textBaseline:"middle"}},lt=[],at={itemId:Te,nodeData:lt,labelData:lt};if(!this.visible)return at;let{rawData:ht,aggregation:vt}=e;return ht.forEach((Ct,yt)=>{var Ni;let Et=R[yt];if(Et==null)return;let At=V[yt],Dt=At>=0&&!Object.is(At,-0),Ot=F[yt],It=_[yt],Xt=(Ni=vt[yt][K][Dt?1:0])!=null?Ni:0,Yt=Dt===Ce;if(Ot===void 0||It===void 0)return;let Ut,oi;if(ht.length===1)Ut=-.5*Math.PI,oi=1.5*Math.PI;else{let nn=y.convert(Et);Ut=AK(nn+n.convert(String(de))),oi=AK(Ut+n.bandwidth)}let ti=Ut+n.bandwidth/2,ai=ke-k.convert(Ot),ui=ke-k.convert(It),qt=(ai+ui)/2,Zt=ke-k.convert(0),pi=ke-k.convert(Xt),si=Math.cos(ti)*qt,ci=Math.sin(ti)*qt,yi=this.properties.label.enabled?$e(Ct,At,si,ci):void 0,sn=this.getColumnWidth(Ut,oi);lt.push({series:this,datum:Ct,datumIndex:yt,point:{x:si,y:ci,size:0},midPoint:{x:si,y:ci},label:yi,angleValue:Et,radiusValue:At,negative:Yt,innerRadius:ai,outerRadius:ui,stackInnerRadius:Zt,stackOuterRadius:pi,startAngle:Ut,endAngle:oi,axisInnerRadius:Se,axisOuterRadius:ve,columnWidth:sn,index:yt})}),{itemId:Te,nodeData:lt,labelData:lt}}getColumnWidth(e,t){return NaN}update({seriesRect:e}){let t=this.checkResize(e);this.maybeRefreshNodeData(),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),this.updateSectorSelection(this.itemSelection,!1),this.updateSectorSelection(this.highlightSelection,!0),this.updateLabels(),t&&this.animationState.transition("resize"),this.animationState.transition("update")}getItemBaseStyle(e){var u,y,k,R,F,_,V;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{fill:(u=n==null?void 0:n.fill)!=null?u:t.fill,fillOpacity:(y=n==null?void 0:n.fillOpacity)!=null?y:t.fillOpacity,stroke:(k=n==null?void 0:n.stroke)!=null?k:t.stroke,strokeWidth:(R=n==null?void 0:n.strokeWidth)!=null?R:a,strokeOpacity:(F=n==null?void 0:n.strokeOpacity)!=null?F:t.strokeOpacity,lineDash:(_=n==null?void 0:n.lineDash)!=null?_:t.lineDash,lineDashOffset:(V=n==null?void 0:n.lineDashOffset)!=null?V:t.lineDashOffset,cornerRadius:t.cornerRadius}}getItemStyleOverrides(e,t,n,a){let{id:u,properties:y}=this,{angleKey:k,radiusKey:R,itemStyler:F}=y;if(F!=null)return this.cachedDatumCallback(MK(e,a?"highlight":"node"),()=>F(ge({seriesId:u,datum:t,highlighted:a,angleKey:k,radiusKey:R},n)))}updateSectorSelection(e,t){var u;let n=[];if(t){let y=(u=this.ctx.highlightManager)==null?void 0:u.getActiveHighlight();y!=null&&y.datum&&y.series===this&&n.push(y)}else n=this.nodeData;let a=this.getItemBaseStyle(t);e.update(n,void 0,y=>this.getDatumId(y)).each((y,k)=>{var V,K,q,$,te,se,de,pe;let{datum:R,datumIndex:F}=k,_=this.getItemStyleOverrides(String(F),R,a,t);this.updateItemPath(y,k,t,ge(ge({},_),a)),y.fill=(V=_==null?void 0:_.fill)!=null?V:a.fill,y.fillOpacity=(K=_==null?void 0:_.fillOpacity)!=null?K:a.fillOpacity,y.stroke=(q=_==null?void 0:_.stroke)!=null?q:a.stroke,y.strokeWidth=($=_==null?void 0:_.strokeWidth)!=null?$:a.strokeWidth,y.strokeOpacity=(te=_==null?void 0:_.strokeOpacity)!=null?te:a.strokeOpacity,y.lineDash=(se=_==null?void 0:_.lineDash)!=null?se:a.lineDash,y.lineDashOffset=(de=_==null?void 0:_.lineDashOffset)!=null?de:a.lineDashOffset,y.cornerRadius=(pe=_==null?void 0:_.cornerRadius)!=null?pe:a.cornerRadius,y.lineJoin="round"})}updateLabels(){let{label:e}=this.properties;this.labelSelection.update(this.nodeData).each((t,n)=>{e.enabled&&n.label?(t.x=n.label.x,t.y=n.label.y,t.fill=e.color,t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontStyle=e.fontStyle,t.fontWeight=e.fontWeight,t.text=n.label.text,t.textAlign=n.label.textAlign,t.textBaseline=n.label.textBaseline,t.visible=!0):t.visible=!1})}animateEmptyUpdateReady(){let{labelSelection:e}=this,t=this.getColumnTransitionFunctions();DK.fromToMotion(this.id,"datums",this.ctx.animationManager,[this.itemSelection],t),_fe(this,"labels",this.ctx.animationManager,e)}animateClearingUpdateEmpty(){let{itemSelection:e}=this,{animationManager:t}=this.ctx,n=this.getColumnTransitionFunctions();DK.fromToMotion(this.id,"datums",t,[e],n),Nfe(this,"labels",t,this.labelSelection)}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:u,properties:y}=this,{angleKey:k,angleName:R,radiusKey:F,radiusName:_,tooltip:V}=y,K=u[Lw.X],q=u[Lw.Y];if(!n||!a||a.rawData.length===0||!K||!q)return;let{datumIndex:$}=e,te=a.rawData[$],se=n.resolveKeysById(this,"angleValue",a)[$],de=n.resolveColumnById(this,"radiusValue-raw",a)[$];if(se==null)return;let pe=this.getItemBaseStyle(!1);return Object.assign(pe,this.getItemStyleOverrides(String($),$,pe,!1)),V.formatTooltip({heading:K.formatDatum(se),symbol:this.legendItemSymbol(),data:[{label:_,fallbackLabel:F,value:q.formatDatum(de)}]},ge({seriesId:t,datum:te,title:R,angleKey:k,angleName:R,radiusKey:F,radiusName:_},pe))}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.itemSelection.nodes())}legendItemSymbol(){let{fill:e,stroke:t,fillOpacity:n,strokeOpacity:a,strokeWidth:u}=this.properties;return{marker:{fill:e!=null?e:"rgba(0, 0, 0, 0)",stroke:t!=null?t:"rgba(0, 0, 0, 0)",fillOpacity:n!=null?n:1,strokeOpacity:a!=null?a:1,strokeWidth:u}}}getLegendData(e){if(!this.properties.isValid()||e!=="category")return[];let{id:t,visible:n}=this,{radiusKey:a,radiusName:u,showInLegend:y}=this.properties;return[{legendType:"category",id:t,itemId:a,seriesId:t,enabled:n,label:{text:u!=null?u:a},symbol:this.legendItemSymbol(),hideInLegend:!y}]}getDatumId(e){return MK(e.angleValue)}computeLabelsBBox(){return null}},jfe=(mt(),T(pt)),{SeriesProperties:Hfe,SeriesTooltip:Wfe,Validate:Jc,COLOR_STRING:IK,NUMBER:TK,FUNCTION:Ufe,LINE_DASH:Kfe,OBJECT:RK,POSITIVE_NUMBER:S5,RATIO:PK,STRING:iO,Label:qfe}=jfe._ModuleSupport,Wl=class extends Hfe{constructor(){super(...arguments),this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.label=new qfe,this.tooltip=new Wfe}};me([Jc(iO)],Wl.prototype,"angleKey",2),me([Jc(iO,{optional:!0})],Wl.prototype,"angleName",2),me([Jc(iO)],Wl.prototype,"radiusKey",2),me([Jc(iO,{optional:!0})],Wl.prototype,"radiusName",2),me([Jc(IK)],Wl.prototype,"fill",2),me([Jc(PK)],Wl.prototype,"fillOpacity",2),me([Jc(IK)],Wl.prototype,"stroke",2),me([Jc(S5)],Wl.prototype,"strokeWidth",2),me([Jc(PK)],Wl.prototype,"strokeOpacity",2),me([Jc(Kfe)],Wl.prototype,"lineDash",2),me([Jc(S5)],Wl.prototype,"lineDashOffset",2),me([Jc(S5)],Wl.prototype,"cornerRadius",2),me([Jc(Ufe,{optional:!0})],Wl.prototype,"itemStyler",2),me([Jc(TK)],Wl.prototype,"rotation",2),me([Jc(iO,{optional:!0})],Wl.prototype,"stackGroup",2),me([Jc(TK,{optional:!0})],Wl.prototype,"normalizedTo",2),me([Jc(RK)],Wl.prototype,"label",2),me([Jc(RK)],Wl.prototype,"tooltip",2);var Yfe=(mt(),T(pt)),Xfe=(mt(),T(pt)),{motion:Zfe}=Xfe._ModuleSupport;function LK(){let e={startAngle:new Map,endAngle:new Map},t=["startAngle","endAngle"],n=(k,R,F)=>{t.forEach(_=>{var te,se;let V=e[_],K=(F==="removed"||F==="updated"?k:R)[_],q=(F==="removed"?k:R)[_];isNaN(q)&&(q=(se=(te=k.previousDatum)==null?void 0:te[_])!=null?se:NaN);let $=K-q;Math.abs($)>Math.PI&&(K-=Math.sign($)*2*Math.PI),V.set(R,{from:K,to:q})})},a=(k,R)=>({startAngle:e.startAngle.get(k)[R],endAngle:e.endAngle.get(k)[R]});return{calculate:n,from:k=>a(k,"from"),to:k=>a(k,"to")}}function OK(e,t,n){if(n==="updated"){if(e.previousDatum==null||isNaN(e.previousDatum.startAngle)||isNaN(e.previousDatum.endAngle))return"added";if(isNaN(t.startAngle)||isNaN(t.endAngle))return"removed"}return n==="added"&&e.previousDatum!=null?"updated":n}function $fe(e){let t=LK();return{toFn:(u,y,k)=>{let{startAngle:R,endAngle:F}=t.to(y),_,V,K,q,$;return k==="removed"?(_=u.innerRadius,V=u.innerRadius,K=u.columnWidth,q=u.axisInnerRadius,$=u.axisOuterRadius):(_=isNaN(y.innerRadius)?e:y.innerRadius,V=isNaN(y.outerRadius)?e:y.outerRadius,K=isNaN(y.columnWidth)?u.columnWidth:y.columnWidth,q=y.axisInnerRadius,$=y.axisOuterRadius),{innerRadius:_,outerRadius:V,columnWidth:K,axisInnerRadius:q,axisOuterRadius:$,startAngle:R,endAngle:F}},fromFn:(u,y,k)=>{k=OK(u,y,k),t.calculate(u,y,k);let{startAngle:R,endAngle:F}=t.from(y),_,V,K,q,$;k==="removed"||k==="updated"?(_=u.innerRadius,V=u.outerRadius,K=u.columnWidth,q=u.axisInnerRadius,$=u.axisOuterRadius):(_=e,V=e,K=y.columnWidth,q=y.axisInnerRadius,$=y.axisOuterRadius);let te=Zfe.NODE_UPDATE_STATE_TO_PHASE_MAPPING[k];return{innerRadius:_,outerRadius:V,columnWidth:K,axisInnerRadius:q,axisOuterRadius:$,startAngle:R,endAngle:F,phase:te}}}}function Qfe(e,{innerRadius:t,outerRadius:n,columnWidth:a,axisInnerRadius:u,axisOuterRadius:y,startAngle:k,endAngle:R}){return{innerRadius:t,outerRadius:n,columnWidth:a,axisInnerRadius:u,axisOuterRadius:y,startAngle:k,endAngle:R}}var{SectorBox:PN,motion:Jfe}=Yfe._ModuleSupport;function w5(e){let{negative:t,innerRadius:n,outerRadius:a,stackInnerRadius:u,stackOuterRadius:y}=e;return{innerRadius:t?y:u,outerRadius:t?u:y,clipInnerRadius:t?a:n,clipOuterRadius:t?n:a}}function eve(e){let t=LK();return{toFn:(u,y,k)=>{let{startAngle:R,endAngle:F}=t.to(y),_,V,K;if(k==="removed")_=e,V=e,K=new PN(R,F,_,V);else{let q,$;({innerRadius:_,outerRadius:V,clipInnerRadius:q,clipOuterRadius:$}=w5(y)),isNaN(_)&&(_=e),isNaN(V)&&(V=e),isNaN(q)&&(q=e),isNaN($)&&($=e),K=new PN(R,F,q,$)}return{innerRadius:_,outerRadius:V,startAngle:R,endAngle:F,clipSector:K}},fromFn:(u,y,k)=>{k=OK(u,y,k),t.calculate(u,y,k);let{startAngle:R,endAngle:F}=t.from(y),_,V,K;k==="removed"||k==="updated"?(_=u.innerRadius,V=u.outerRadius,K=u.clipSector):(_=e,V=e),K!=null||(K=new PN(R,F,_,V));let q=Jfe.NODE_UPDATE_STATE_TO_PHASE_MAPPING[k];return{innerRadius:_,outerRadius:V,startAngle:R,endAngle:F,clipSector:K,phase:q}}}}function tve(e,t){let{startAngle:n,endAngle:a}=t,{innerRadius:u,outerRadius:y,clipInnerRadius:k,clipOuterRadius:R}=w5(t),F=new PN(n,a,k,R);return{innerRadius:u,outerRadius:y,startAngle:n,endAngle:a,clipSector:F}}var{Sector:ive,SectorBox:nve,PolarZIndexMap:x5}=Efe._ModuleSupport,M5=class extends EK{constructor(e){super(e,{animationResetFns:{item:tve}}),this.properties=new Wl}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.contentGroup.zIndex=[0,x5.FOREGROUND,e],this.highlightGroup.zIndex=[0,x5.HIGHLIGHT,e],this.labelGroup.zIndex=[0,x5.LABEL,e],!0):!1}getStackId(){var t,n;return`nightingale-stack-${(n=(t=this.seriesGrouping)==null?void 0:t.groupIndex)!=null?n:this.id}-yValues`}nodeFactory(){return new ive}updateItemPath(e,t,n,a){let{negative:u}=t;if(e.centerX=0,e.centerY=0,e.startOuterCornerRadius=u?0:this.properties.cornerRadius,e.endOuterCornerRadius=u?0:this.properties.cornerRadius,e.startInnerCornerRadius=u?this.properties.cornerRadius:0,e.endInnerCornerRadius=u?this.properties.cornerRadius:0,n){let{startAngle:y,endAngle:k}=t,{innerRadius:R,outerRadius:F,clipInnerRadius:_,clipOuterRadius:V}=w5(t);e.innerRadius=R,e.outerRadius=F,e.startAngle=y,e.endAngle=k,e.clipSector=new nve(y,k,_,V)}}getColumnTransitionFunctions(){let e=this.isRadiusAxisReversed()?this.radius:this.getAxisInnerRadius();return eve(e)}};M5.className="NightingaleSeries",M5.type="nightingale";var ave=(mt(),T(pt)),{ThemeSymbols:{DEFAULT_FONT_FAMILY:ove,DEFAULT_LABEL_COLOUR:rve},ThemeConstants:{POLAR_AXIS_TYPE:FK,POLAR_AXIS_SHAPE:_K}}=ave._ModuleSupport,sve={series:{strokeWidth:1,label:{enabled:!1,fontSize:12,fontFamily:ove,color:rve}},axes:{[FK.ANGLE_CATEGORY]:{shape:_K.CIRCLE,groupPaddingInner:0,paddingInner:0,label:{spacing:10}},[FK.RADIUS_NUMBER]:{shape:_K.CIRCLE}}},{ThemeSymbols:{DEFAULT_POLAR_SERIES_STROKE:lve},ThemeConstants:{POLAR_AXIS_TYPE:NK}}=Dfe._ModuleSupport,cve={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"nightingale",moduleFactory:e=>new M5(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:NK.ANGLE_CATEGORY},{type:NK.RADIUS_NUMBER}],themeTemplate:sve,paletteFactory({takeColors:e,userPalette:t}){let{fills:[n],strokes:[a]}=e(1);return{fill:n,stroke:t!=="inbuilt"?a:lve}},stackable:!0,groupable:!0,stackedByDefault:!0},dve=(mt(),T(pt)),zK=(mt(),T(pt)),{createDatumId:uve}=zK._ModuleSupport,k5=class extends m7{constructor(){super(...arguments),this.properties=new iN}nodeFactory(){return new Mde}updateDatumNodes({datumSelection:e,isHighlight:t}){let{id:n,properties:a}=this,{xKey:u,highKey:y,lowKey:k,openKey:R,closeKey:F,item:_,itemStyler:V}=a,{up:K,down:q}=_,{stroke:$,strokeWidth:te,strokeOpacity:se,lineDash:de,lineDashOffset:pe}=K,{stroke:Ce,strokeWidth:Se,strokeOpacity:ve,lineDash:ke,lineDashOffset:De}=q,Te=t?a.highlightStyle.item:void 0;e.each((ze,qe)=>{var Et,At,Dt,Ot,It,Rt,Xt,Yt,Ut,oi,ti;let{isRising:et,centerX:$e,width:lt,y:at,height:ht,yOpen:vt,yClose:wt,crisp:Ct}=qe,yt;if(V!=null){let{stroke:ai,strokeWidth:ui,strokeOpacity:qt,lineDash:Zt,lineDashOffset:pi}=et?K:q;yt=this.cachedDatumCallback(uve(this.getDatumId(qe),t?"highlight":"node"),()=>V({seriesId:n,itemId:qe.itemId,xKey:u,highKey:y,lowKey:k,openKey:R,closeKey:F,datum:qe.datum,strokeOpacity:qt,stroke:ai,strokeWidth:ui,lineDash:Zt,lineDashOffset:pi,highlighted:t}))}ze.centerX=$e,ze.width=lt,ze.y=at,ze.height=ht,ze.yOpen=vt,ze.yClose=wt,ze.crisp=Ct,ze.stroke=(At=(Et=Te==null?void 0:Te.stroke)!=null?Et:yt==null?void 0:yt.stroke)!=null?At:et?$:Ce,ze.strokeWidth=(Ot=(Dt=Te==null?void 0:Te.strokeWidth)!=null?Dt:yt==null?void 0:yt.strokeWidth)!=null?Ot:et?te:Se,ze.strokeOpacity=(Rt=(It=Te==null?void 0:Te.strokeOpacity)!=null?It:yt==null?void 0:yt.strokeOpacity)!=null?Rt:et?se:ve,ze.lineDash=(Yt=(Xt=Te==null?void 0:Te.lineDash)!=null?Xt:yt==null?void 0:yt.lineDash)!=null?Yt:et?de:ke,ze.lineDashOffset=(oi=(Ut=Te==null?void 0:Te.lineDashOffset)!=null?Ut:yt==null?void 0:yt.lineDashOffset)!=null?oi:et?pe:De,ze.strokeAlignment=((ti=yt==null?void 0:yt.strokeWidth)!=null?ti:et?te:Se)/2})}getLegendData(e){var q;let{id:t,data:n,ctx:{legendManager:a},visible:u}=this,{xKey:y,yName:k,item:{up:R,down:F},showInLegend:_,legendItemName:V}=this.properties;if(!(n!=null&&n.length)||!y||e!=="category")return[];let K=new zK._ModuleSupport.LinearGradient("rgb",[{color:R.stroke,offset:0},{color:R.stroke,offset:.5},{color:F.stroke,offset:.5}],90);return[{legendType:"category",id:t,itemId:t,seriesId:t,enabled:u&&a.getItemEnabled({seriesId:t,itemId:t}),label:{text:(q=V!=null?V:k)!=null?q:t},symbol:{marker:{fill:K,fillOpacity:R.strokeOpacity,stroke:void 0,strokeWidth:0,strokeOpacity:1}},legendItemName:V,hideInLegend:!_}]}};k5.className="ohlc",k5.type="ohlc";var{CARTESIAN_AXIS_TYPE:LN,CARTESIAN_POSITION:BK}=dve._ModuleSupport.ThemeConstants,hve={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"ohlc",moduleFactory:e=>new k5(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:LN.NUMBER,position:BK.LEFT},{type:LN.ORDINAL_TIME,position:BK.BOTTOM}],themeTemplate:{animation:{enabled:!1},axes:{[LN.NUMBER]:{crosshair:{snap:!1}},[LN.ORDINAL_TIME]:{groupPaddingInner:0,crosshair:{enabled:!0}}}},groupable:!1,paletteFactory:({takeColors:e,colorsCount:t,userPalette:n,palette:a})=>{if(n==="user-indexed"){let[u]=e(t).strokes;return{item:{up:{stroke:u},down:{stroke:u}}}}return{item:{up:{stroke:a.up.stroke},down:{stroke:a.down.stroke}}}}},Mxe=(mt(),T(pt)),GK=(mt(),T(pt)),gve=(mt(),T(pt)),{SeriesProperties:pve,SeriesTooltip:mve,Validate:Ul,UNION:fve,COLOR_STRING_ARRAY:VK,FUNCTION:vve,DIRECTION:yve,BOOLEAN:bve,LINE_DASH:Cve,OBJECT:ON,NUMBER:Sve,POSITIVE_NUMBER:FN,RATIO:jK,STRING:HK,Label:WK,DropShadow:wve}=gve._ModuleSupport,xve=class extends WK{},A5=class extends WK{constructor(){super(...arguments),this.spacing=0}};me([Ul(Sve)],A5.prototype,"spacing",2),me([Ul(fve(["before","after"],"a placement"))],A5.prototype,"placement",2);var Cc=class extends pve{constructor(){super(...arguments),this.fills=[],this.fillOpacity=1,this.strokes=[],this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.direction="vertical",this.reverse=void 0,this.spacing=0,this.aspectRatio=void 0,this.shadow=new wve().set({enabled:!1}),this.label=new xve,this.stageLabel=new A5,this.tooltip=new mve}};me([Ul(HK)],Cc.prototype,"stageKey",2),me([Ul(HK)],Cc.prototype,"valueKey",2),me([Ul(VK)],Cc.prototype,"fills",2),me([Ul(jK)],Cc.prototype,"fillOpacity",2),me([Ul(VK)],Cc.prototype,"strokes",2),me([Ul(FN)],Cc.prototype,"strokeWidth",2),me([Ul(jK)],Cc.prototype,"strokeOpacity",2),me([Ul(Cve)],Cc.prototype,"lineDash",2),me([Ul(FN)],Cc.prototype,"lineDashOffset",2),me([Ul(yve)],Cc.prototype,"direction",2),me([Ul(bve,{optional:!0})],Cc.prototype,"reverse",2),me([Ul(FN)],Cc.prototype,"spacing",2),me([Ul(FN,{optional:!0})],Cc.prototype,"aspectRatio",2),me([Ul(vve,{optional:!0})],Cc.prototype,"itemStyler",2),me([Ul(ON)],Cc.prototype,"shadow",2),me([Ul(ON)],Cc.prototype,"label",2),me([Ul(ON)],Cc.prototype,"stageLabel",2),me([Ul(ON)],Cc.prototype,"tooltip",2);var{valueProperty:UK,SeriesNodePickMode:KK,CachedTextMeasurerPool:Mve,TextUtils:kve,createDatumId:Ave,BBox:D5,Group:E5,Selection:_N,Text:qK,PointerEvents:YK}=GK._ModuleSupport,Dve=class extends GK._ModuleSupport.DataModelSeries{constructor(e){super({moduleCtx:e,pickModes:[KK.EXACT_SHAPE_MATCH,KK.NEAREST_NODE]}),this.properties=new Cc,this.itemGroup=this.contentGroup.appendChild(new E5({name:"itemGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new E5({name:"itemLabelGroup"})),this.stageLabelGroup=this.contentGroup.appendChild(new E5({name:"stageLabelGroup"})),this.datumSelection=_N.select(this.itemGroup,()=>this.nodeFactory()),this.labelSelection=_N.select(this.itemLabelGroup,qK),this.stageLabelSelection=_N.select(this.stageLabelGroup,qK),this.highlightDatumSelection=_N.select(this.highlightNode,()=>this.nodeFactory()),this.itemLabelGroup.pointerEvents=YK.None,this.stageLabelGroup.pointerEvents=YK.None}addChartEventListeners(){var e;this.destroyFns.push((e=this.ctx.chartEventManager)==null?void 0:e.addListener("legend-item-click",t=>this.onLegendItemClick(t)))}nodeFactory(){return new MC}getNodeData(){var e;return(e=this.contextNodeData)==null?void 0:e.nodeData}async processData(e){if(this.data==null||!this.properties.isValid())return;let{id:t,visible:n,ctx:{legendManager:a}}=this,{stageKey:u,valueKey:y}=this.properties,k="band",R="number",F=(V,K,q)=>n&&a.getItemEnabled({seriesId:t,itemId:q}),_=this.visible?{}:{forceValue:0};await this.requestDataModel(e,this.data,{props:[UK(u,k,{id:"xValue"}),UK(y,R,He(ge({id:"yValue"},_),{validation:F,invalidValue:0}))]})}createNodeData(){var Et,At,Dt,Ot;let{id:e,dataModel:t,processedData:n,properties:a,visible:u,ctx:{legendManager:y}}=this,{stageKey:k,valueKey:R,direction:F,reverse:_=F==="horizontal",spacing:V,aspectRatio:K,label:q,stageLabel:$}=a;if(t==null||n==null||n.rawData.length===0)return;let te=F==="horizontal",se=t.resolveColumnById(this,"xValue",n),de=t.resolveColumnById(this,"yValue",n),pe=Mve.getMeasurer({font:$.getFont()}),Ce,Se;te?(Ce="center",Se=$.placement==="before"?"bottom":"top"):(Ce=$.placement==="after"?"left":"right",Se="middle");let ve=$.enabled?[]:void 0,ke=0,De=0,Te=0;n.rawData.forEach((It,Rt)=>{let Xt=se[Rt],Yt=de[Rt],Ut=u&&y.getItemEnabled({seriesId:e,itemId:Rt});if(Te+=Yt,ve==null)return;let oi=this.getLabelText(this.properties.stageLabel,{datum:It,value:Xt,stageKey:k,valueKey:R}),{width:ti}=pe.measureText(oi),ai=oi.split(`
`).length*kve.getLineHeight(q.fontSize);ke=Math.max(ke,ti),De=Math.max(De,ai),ve.push({x:NaN,y:NaN,text:oi,textAlign:Ce,textBaseline:Se,visible:Ut})});let ze=(At=(Et=this._nodeDataDependencies)==null?void 0:Et.seriesRectWidth)!=null?At:0,qe=(Ot=(Dt=this._nodeDataDependencies)==null?void 0:Dt.seriesRectHeight)!=null?Ot:0,et=V*(n.rawData.length-1),$e;if(te){let It=De+$.spacing;$e=new D5(0,$.placement==="before"?It:0,ze,qe-It)}else{let It=ke+$.spacing;$e=new D5($.placement==="after"?0:It,0,ze-It,qe)}if(K!=null&&K!==0){let It=F==="horizontal"?1/K:K,Rt=Math.min($e.width,$e.height*It),Xt=Rt/It;$e=new D5($e.x+($e.width-Rt)/2,$e.y+($e.height-Xt)/2,Rt,Xt)}let lt,at;te?at=$.placement==="before"?$e.y-$.spacing:$e.y+$e.height+$.spacing:lt=$.placement==="after"?$e.x+$e.width+$.spacing:$e.x-$.spacing;let ht=$e.width-(te?et:0),vt=$e.height-(te?0:et);if(ht<0||vt<0)return;let wt=[],Ct=[],yt=0;return n.rawData.forEach((It,Rt)=>{let Xt=se[Rt],Yt=de[Rt],Ut=u&&y.getItemEnabled({seriesId:e,itemId:Rt}),oi=yt+Yt,ti=(yt+oi)/(2*Te),ai=(oi-yt)/Te,ui=te?ht*ti+V*Rt:ht*.5,qt=te?vt*.5:vt*ti+V*Rt,Zt=$e.x+ui,pi=$e.y+qt;if(ve!=null){let Gi=ve[Rt];Gi.x=lt!=null?lt:Zt,Gi.y=at!=null?at:pi}let si,ci,yi,sn;if(te){let Gi=ht*ai;si=Gi,yi=Gi;let Pn=(ui+Gi/2)*(vt/$e.width),Ln=(ui-Gi/2)*(vt/$e.width);ci=_?$e.height-Pn:Pn,sn=_?$e.height-Ln:Ln}else{let Gi=vt*ai;ci=Gi,sn=Gi;let Pn=(qt-Gi/2)*(ht/$e.height),Ln=(qt+Gi/2)*(ht/$e.height);si=_?$e.width-Pn:Pn,yi=_?$e.width-Ln:Ln}let Ni=this.getLabelText(q,{datum:It,value:Yt,stageKey:k,valueKey:R}),nn={x:Zt,y:pi,text:Ni,textAlign:"center",textBaseline:"middle",visible:Ut};Ct.push(nn),wt.push({series:this,itemId:R,datum:It,datumIndex:Rt,index:Rt,xValue:Xt,yValue:Yt,x:Zt,y:pi,top:si,right:ci,bottom:yi,left:sn,label:nn,enabled:Ut,midPoint:{x:Zt,y:pi}}),yt=oi}),{itemId:e,nodeData:wt,labelData:Ct,stageLabelData:ve}}updateSelections(){this.nodeDataRefresh&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}update({seriesRect:e}){var _,V,K,q,$,te,se;this.checkResize(e);let{datumSelection:t,labelSelection:n,stageLabelSelection:a,highlightDatumSelection:u}=this;this.updateSelections(),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let y=(_=this.ctx.highlightManager)==null?void 0:_.getActiveHighlight();y!=null&&(y.series!==this||y.datum==null)&&(y=void 0);let k=(K=(V=this.contextNodeData)==null?void 0:V.nodeData)!=null?K:[],R=($=(q=this.contextNodeData)==null?void 0:q.labelData)!=null?$:[],F=(se=(te=this.contextNodeData)==null?void 0:te.stageLabelData)!=null?se:[];this.datumSelection=this.updateDatumSelection({nodeData:k,datumSelection:t}),this.updateDatumNodes({datumSelection:t,isHighlight:!1}),this.labelSelection=this.updateLabelSelection({labelData:R,labelSelection:n}),this.updateLabelNodes({labelSelection:n,labelProperties:this.properties.label}),this.stageLabelSelection=this.updateStageLabelSelection({stageLabelData:F,stageLabelSelection:a}),this.updateLabelNodes({labelSelection:a,labelProperties:this.properties.stageLabel}),this.highlightDatumSelection=this.updateDatumSelection({nodeData:y!=null?[y]:[],datumSelection:u}),this.updateDatumNodes({datumSelection:u,isHighlight:!0})}updateDatumSelection(e){return e.datumSelection.update(e.nodeData)}getItemBaseStyle(e){var u,y,k,R,F;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{fill:n==null?void 0:n.fill,fillOpacity:(u=n==null?void 0:n.fillOpacity)!=null?u:t.fillOpacity,stroke:n==null?void 0:n.stroke,strokeWidth:(y=n==null?void 0:n.strokeWidth)!=null?y:a,strokeOpacity:(k=n==null?void 0:n.strokeOpacity)!=null?k:t.strokeOpacity,lineDash:(R=n==null?void 0:n.lineDash)!=null?R:t.lineDash,lineDashOffset:(F=n==null?void 0:n.lineDashOffset)!=null?F:t.lineDashOffset}}getItemStyleOverrides(e,t,n,a,u){var se,de;let{id:y,properties:k}=this,{fills:R,strokes:F,stageKey:_,valueKey:V,itemStyler:K}=k,q=(se=a.fill)!=null?se:R[n%R.length],$=(de=a.stroke)!=null?de:F[n%F.length],te={};if(u||(te.fill=q,te.stroke=$),K!=null){let pe=this.cachedDatumCallback(Ave(e,u?"highlight":"node"),()=>K(ge({seriesId:y,datum:t,stageKey:_,valueKey:V,highlighted:u,fill:q,stroke:$},a)));Object.assign(te,pe)}return te}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,{properties:a}=this,{shadow:u}=a,y=this.getItemBaseStyle(n);t.each((k,R)=>{var pe,Ce,Se,ve,ke,De,Te;let{datumIndex:F,datum:_,x:V,y:K,top:q,right:$,bottom:te,left:se}=R,de=this.getItemStyleOverrides(String(F),_,F,y,n);k.x0=V-q/2,k.x1=V+q/2,k.x2=V+te/2,k.x3=V-te/2,k.y0=K-se/2,k.y1=K-$/2,k.y2=K+$/2,k.y3=K+se/2,k.fill=(pe=de==null?void 0:de.fill)!=null?pe:y.fill,k.fillOpacity=(Ce=de==null?void 0:de.fillOpacity)!=null?Ce:y.fillOpacity,k.stroke=(Se=de==null?void 0:de.stroke)!=null?Se:y.stroke,k.strokeOpacity=(ve=de==null?void 0:de.strokeOpacity)!=null?ve:y.strokeOpacity,k.strokeWidth=(ke=de==null?void 0:de.strokeWidth)!=null?ke:y.strokeWidth,k.lineDash=(De=de==null?void 0:de.lineDash)!=null?De:y.lineDash,k.lineDashOffset=(Te=de==null?void 0:de.lineDashOffset)!=null?Te:y.lineDashOffset,k.fillShadow=u})}updateLabelSelection(e){return e.labelSelection.update(this.properties.label.enabled?e.labelData:[])}updateStageLabelSelection(e){return e.stageLabelSelection.update(e.stageLabelData)}updateLabelNodes(e){let{labelSelection:t,labelProperties:n}=e,{color:a,fontSize:u,fontStyle:y,fontWeight:k,fontFamily:R}=n;t.each((F,{visible:_,x:V,y:K,text:q,textAlign:$,textBaseline:te})=>{F.visible=_,F.x=V,F.y=K,F.text=q,F.fill=a,F.fontStyle=y,F.fontWeight=k,F.fontSize=u,F.fontFamily=R,F.textAlign=$,F.textBaseline=te})}resetAnimation(e){}computeFocusBounds(e){var n;let t=(n=this.getNodeData())==null?void 0:n[e.datumIndex];if(t!==void 0){for(let a of this.datumSelection)if(a.datum===t)return a.node}}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:u}=this,{stageKey:y,valueKey:k,tooltip:R}=u;if(!n||!a||a.rawData.length===0)return;let{datumIndex:F}=e,_=a.rawData[F],V=n.resolveColumnById(this,"xValue",a)[F],K=n.resolveColumnById(this,"yValue",a)[F];if(V==null)return;let q=this.getLabelText(this.properties.stageLabel,{datum:a.rawData[F],value:K,stageKey:y,valueKey:k}),$=this.getItemBaseStyle(!1);return Object.assign($,this.getItemStyleOverrides(String(F),F,F,$,!1)),R.formatTooltip({symbol:this.legendItemSymbol(F),data:[{label:String(V),value:q}]},ge({seriesId:t,datum:_,title:void 0,stageKey:y,valueKey:k},$))}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}pickNodeClosestDatum({x:e,y:t}){let n=1/0,a;return this.datumSelection.each((u,y)=>{let k=u.distanceSquared(e,t);k<n&&(n=k,a=y)}),a!=null?{datum:a,distance:Math.sqrt(n)}:void 0}legendItemSymbol(e){var F,_;let{fills:t,strokes:n,strokeWidth:a,fillOpacity:u,strokeOpacity:y}=this.properties,k=(F=t[e%t.length])!=null?F:"black",R=(_=n[e%n.length])!=null?_:"black";return{marker:{fill:k,fillOpacity:u,stroke:R,strokeWidth:a,strokeOpacity:y}}}getLegendData(e){let{processedData:t,dataModel:n,id:a,ctx:{legendManager:u},visible:y}=this;if(!n||!t||e!=="category"||!this.properties.isValid())return[];let{showInLegend:k}=this.properties,R=[],F=n.resolveColumnById(this,"xValue",t);return t.rawData.forEach((_,V)=>{let K=F[V];R.push({legendType:"category",id:a,itemId:V,seriesId:a,enabled:y&&u.getItemEnabled({seriesId:a,itemId:V}),label:{text:K},symbol:this.legendItemSymbol(V),hideInLegend:!k})}),R}},Eve=(mt(),T(pt)),{DEFAULT_FONT_FAMILY:XK,DEFAULT_LABEL_COLOUR:Ive,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:Tve}=Eve._ModuleSupport.ThemeSymbols,Rve={series:{direction:"vertical",strokeWidth:0,spacing:2,label:{enabled:!0,fontSize:12,fontFamily:XK,color:Tve},stageLabel:{enabled:!0,fontSize:12,fontFamily:XK,color:Ive,spacing:12}}},Pve={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["standalone"],identifier:"pyramid",moduleFactory:e=>new Dve(e),solo:!0,tooltipDefaults:{range:"exact"},themeTemplate:Rve,paletteFactory:({takeColors:e,colorsCount:t})=>{let{fills:n,strokes:a}=e(t);return{fills:n,strokes:a}}},Lve=(mt(),T(pt)),I5=(mt(),T(pt)),{ThemeSymbols:{DEFAULT_FONT_FAMILY:Ove,DEFAULT_LABEL_COLOUR:Fve},ThemeConstants:{POLAR_AXIS_TYPE:_ve}}=I5._ModuleSupport,ZK={series:{label:{enabled:!1,fontSize:12,fontFamily:Ove,color:Fve},marker:{enabled:!0,fillOpacity:1,shape:"circle",size:6,strokeOpacity:1,strokeWidth:0}},axes:{[_ve.ANGLE_CATEGORY]:{label:{spacing:10}}}},Nve=I5._ModuleSupport.mergeDefaults({series:{strokeWidth:2}},ZK),zve=I5._ModuleSupport.mergeDefaults({series:{fillOpacity:.8,strokeWidth:2,marker:{enabled:!1}}},ZK),$K=(mt(),T(pt)),uP=(mt(),T(pt)),Bve=(mt(),T(pt)),{Label:Gve,SeriesMarker:Vve,SeriesProperties:jve,SeriesTooltip:Hve,Validate:Bg,BOOLEAN:Wve,COLOR_STRING:Uve,NUMBER:Kve,LINE_DASH:qve,OBJECT:T5,POSITIVE_NUMBER:QK,RATIO:Yve,STRING:NN}=Bve._ModuleSupport,Gu=class extends jve{constructor(){super(...arguments),this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.rotation=0,this.marker=new Vve,this.label=new Gve,this.tooltip=new Hve,this.connectMissingData=!1}};me([Bg(NN)],Gu.prototype,"angleKey",2),me([Bg(NN)],Gu.prototype,"radiusKey",2),me([Bg(NN,{optional:!0})],Gu.prototype,"angleName",2),me([Bg(NN,{optional:!0})],Gu.prototype,"radiusName",2),me([Bg(Uve)],Gu.prototype,"stroke",2),me([Bg(QK)],Gu.prototype,"strokeWidth",2),me([Bg(Yve)],Gu.prototype,"strokeOpacity",2),me([Bg(qve)],Gu.prototype,"lineDash",2),me([Bg(QK)],Gu.prototype,"lineDashOffset",2),me([Bg(Kve)],Gu.prototype,"rotation",2),me([Bg(T5)],Gu.prototype,"marker",2),me([Bg(T5)],Gu.prototype,"label",2),me([Bg(T5)],Gu.prototype,"tooltip",2),me([Bg(Wve)],Gu.prototype,"connectMissingData",2);var{ChartAxisDirection:yy,PolarAxis:Xve,SeriesNodePickMode:JK,valueProperty:eq,fixNumericExtent:Zve,seriesLabelFadeInAnimation:$ve,markerFadeInAnimation:Qve,resetMarkerFn:Jve,animationValidation:eye,computeMarkerFocusBounds:tye,isFiniteNumber:tq,extent:iye,isNumberEqual:iq,createDatumId:nye,BBox:aye,Group:oye,Path:rye,PointerEvents:sye,Selection:nq,Text:lye,getMarker:cye}=uP._ModuleSupport,dye=class extends uP._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.angleKey=a.properties.angleKey,this.radiusKey=a.properties.radiusKey}},R5=class extends uP._ModuleSupport.PolarSeries{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[JK.NEAREST_NODE,JK.EXACT_SHAPE_MATCH],canHaveAxes:!0,animationResetFns:{item:Jve}}),this.clipFocusBox=!1,this.properties=new Gu,this.NodeEvent=dye,this.lineGroup=this.contentGroup.appendChild(new oye({name:"radar-line",zIndex:uP._ModuleSupport.SeriesZIndexMap.ANY_CONTENT})),this.lineSelection=nq.select(this.lineGroup,rye),this.resetInvalidToZero=!1,this.circleCache={r:0,cx:0,cy:0}}nodeFactory(){let{shape:e}=this.properties.marker,t=cye(e);return new t}setSeriesIndex(e){return super.setSeriesIndex(e)?(this.lineGroup.zIndex=[uP._ModuleSupport.SeriesZIndexMap.ANY_CONTENT,e,uP._ModuleSupport.SeriesContentZIndexMap.FOREGROUND,1],!0):!1}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;if(!n||!t)return[];if(e===yy.X)return t.getDomain(this,"angleValue","value",n);{let a=t.getDomain(this,"radiusValue","value",n),u=iye(a.length===0?a:[0].concat(a));return Zve(u)}}async processData(e){var k,R;if(!this.properties.isValid())return;let{angleKey:t,radiusKey:n}=this.properties,a=[];this.ctx.animationManager.isSkipped()||a.push(eye());let u=(k=this.axes[yy.Y])==null?void 0:k.scale.type,y=(R=this.axes[yy.X])==null?void 0:R.scale.type;await this.requestDataModel(e,this.data,{props:[eq(t,y,{id:"angleValue"}),eq(n,u,{id:"radiusValue",invalidValue:void 0}),...a]}),this.animationState.transition("updateData")}didCircleChange(){let e=this.radius,t=this.centerX,n=this.centerY,a=this.circleCache;return e===a.r&&t===a.cx&&n===a.cy?!1:(this.circleCache={r:e,cx:t,cy:n},!0)}getAxisInnerRadius(){let e=this.axes[yy.Y];return e instanceof Xve?this.radius*e.innerRadiusRatio:0}maybeRefreshNodeData(){var n;if(!this.didCircleChange()&&!this.nodeDataRefresh)return;let{nodeData:t=[]}=(n=this.createNodeData())!=null?n:{};this.nodeData=t,this.nodeDataRefresh=!1}createNodeData(){var te,se;let{processedData:e,dataModel:t}=this;if(!e||!t||e.rawData.length===0||!this.properties.isValid())return;let{angleKey:n,radiusKey:a,angleName:u,radiusName:y,marker:k,label:R}=this.properties,F=(te=this.axes[yy.X])==null?void 0:te.scale,_=(se=this.axes[yy.Y])==null?void 0:se.scale;if(!F||!_)return;let V=t.resolveColumnById(this,"angleValue",e),K=t.resolveColumnById(this,"radiusValue",e),q=this.getAxisInnerRadius(),$=e.rawData.map((de,pe)=>{let Ce=V[pe],Se=K[pe],ve=F.convert(Ce),ke=this.radius+q-_.convert(Se),De=Math.cos(ve),Te=Math.sin(ve),ze=De*ke,qe=Te*ke,et;if(R.enabled){let $e=this.getLabelText(R,{value:Se,datum:de,angleKey:n,radiusKey:a,angleName:u,radiusName:y});if($e){let lt="right";iq(De,0)?lt="center":De>0&&(lt="left");let at="bottom";iq(Te,0)?at="middle":Te>0&&(at="top"),et={x:ze+De*k.size,y:qe+Te*k.size,text:$e,textAlign:lt,textBaseline:at}}}return{series:this,datum:de,datumIndex:pe,index:pe,point:{x:ze,y:qe,size:k.size},midPoint:{x:ze,y:qe},label:et,angleValue:Ce,radiusValue:Se,missing:!tq(ve)||!tq(ke)}});return{itemId:a,nodeData:$,labelData:$}}update({seriesRect:e}){var u,y;let t=this.checkResize(e),n=!this.ctx.animationManager.isSkipped(),{series:a}=(y=(u=this.ctx.highlightManager)==null?void 0:u.getActiveHighlight())!=null?y:{};this.highlightGroup.visible=(n||this.visible)&&a===this,this.maybeRefreshNodeData(),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),this.updatePathSelections(),this.updateMarkerSelection(),this.updateMarkers(this.itemSelection,!1),this.updateMarkers(this.highlightSelection,!0),this.updateLabels(),t&&this.animationState.transition("resize"),this.animationState.transition("update")}updatePathSelections(){let e=this.visible?[!0]:[];this.lineSelection.update(e)}updateMarkerSelection(){this.properties.marker.isDirty()&&(this.itemSelection.clear(),this.itemSelection.cleanup(),this.itemSelection=nq.select(this.itemGroup,()=>this.nodeFactory(),!1)),this.itemSelection.update(this.properties.marker.enabled?this.nodeData:[])}getMarkerFill(e){var t;return(t=e==null?void 0:e.fill)!=null?t:this.properties.marker.fill}getMarkerItemBaseStyle(e){var y,k,R,F,_;let{properties:t}=this,{marker:n}=t,a=e?t.highlightStyle.item:void 0,u=this.getStrokeWidth(n.strokeWidth);return{size:n.size,fill:(y=a==null?void 0:a.fill)!=null?y:n.fill,fillOpacity:(k=a==null?void 0:a.fillOpacity)!=null?k:n.fillOpacity,stroke:(R=a==null?void 0:a.stroke)!=null?R:n.stroke,strokeWidth:(F=a==null?void 0:a.strokeWidth)!=null?F:u,strokeOpacity:(_=a==null?void 0:a.strokeOpacity)!=null?_:n.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a){let{id:u,properties:y}=this,{angleKey:k,radiusKey:R,marker:F}=y,{itemStyler:_}=F;if(_!=null)return this.cachedDatumCallback(nye(e,a?"highlight":"node"),()=>_(ge({seriesId:u,datum:t,angleKey:k,radiusKey:R,highlighted:a},n)))}updateMarkers(e,t){var k;let{visible:n}=this,{marker:a}=this.properties,u=[];if(n&&a.shape&&a.enabled)if(t){let R=(k=this.ctx.highlightManager)==null?void 0:k.getActiveHighlight();R!=null&&R.datum&&(u=[R])}else u=this.nodeData;let y=this.getMarkerItemBaseStyle(t);e.update(u).each((R,F)=>{var se,de,pe,Ce,Se,ve;let{datum:_,datumIndex:V,point:K}=F,q=this.getMarkerItemStyleOverrides(String(V),_,y,!1);R.fill=(se=q==null?void 0:q.fill)!=null?se:y.fill,R.stroke=(de=q==null?void 0:q.stroke)!=null?de:y.stroke,R.strokeWidth=(pe=q==null?void 0:q.strokeWidth)!=null?pe:y.strokeWidth,R.fillOpacity=(Ce=q==null?void 0:q.fillOpacity)!=null?Ce:y.fillOpacity,R.strokeOpacity=(Se=q==null?void 0:q.strokeOpacity)!=null?Se:y.strokeOpacity,R.size=(ve=q==null?void 0:q.size)!=null?ve:y.size;let{x:$,y:te}=K;R.x=$,R.y=te,R.visible=n&&R.size>0&&!isNaN($)&&!isNaN(te)})}updateLabels(){let{label:e}=this.properties;this.labelSelection.update(this.nodeData).each((t,n)=>{e.enabled&&n.label?(t.x=n.label.x,t.y=n.label.y,t.fill=e.color,t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontStyle=e.fontStyle,t.fontWeight=e.fontWeight,t.text=n.label.text,t.textAlign=n.label.textAlign,t.textBaseline=n.label.textBaseline,t.visible=!0):t.visible=!1})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:u,properties:y}=this,{angleKey:k,angleName:R,radiusKey:F,radiusName:_,tooltip:V}=y,K=u[yy.X],q=u[yy.Y];if(!n||!a||a.rawData.length===0||!K||!q)return;let{datumIndex:$}=e,te=a.rawData[$],se=n.resolveColumnById(this,"angleValue",a)[$],de=n.resolveColumnById(this,"radiusValue",a)[$];if(se==null)return;let pe=this.getMarkerItemBaseStyle(!1);return Object.assign(pe,this.getMarkerItemStyleOverrides(String($),$,pe,!1)),V.formatTooltip({heading:K.formatDatum(se),symbol:this.legendItemSymbol(),data:[{label:_,fallbackLabel:F,value:q.formatDatum(de)}]},ge({seriesId:t,datum:te,title:R,angleKey:k,radiusKey:F,angleName:R,radiusName:_},pe))}legendItemSymbol(){var y,k,R,F,_,V,K,q,$;let{stroke:e,strokeWidth:t,strokeOpacity:n,lineDash:a,marker:u}=this.properties;return{marker:{shape:u.shape,fill:(R=(k=(y=this.getMarkerFill())!=null?y:u.stroke)!=null?k:e)!=null?R:"rgba(0, 0, 0, 0)",stroke:(_=(F=u.stroke)!=null?F:e)!=null?_:"rgba(0, 0, 0, 0)",fillOpacity:(V=u.fillOpacity)!=null?V:1,strokeOpacity:(q=(K=u.strokeOpacity)!=null?K:n)!=null?q:1,strokeWidth:($=u.strokeWidth)!=null?$:0,enabled:u.enabled||t<=0},line:{stroke:e,strokeOpacity:n,strokeWidth:t,lineDash:a}}}getLegendData(e){if(!this.properties.isValid()||e!=="category")return[];let{id:t,ctx:{legendManager:n},visible:a}=this,{radiusKey:u,radiusName:y,showInLegend:k}=this.properties;return[{legendType:"category",id:t,itemId:u,seriesId:t,enabled:a&&n.getItemEnabled({seriesId:t,itemId:u}),label:{text:y!=null?y:u},symbol:this.legendItemSymbol(),hideInLegend:!k}]}pickNodeClosestDatum(e){var V,K;let{nodeData:t,centerX:n,centerY:a}=this,{x:u,y}=e,k=this.radius;if(Math.sqrt((u-n)**2+(y-a)**2)>k+this.properties.marker.size)return;let F=1/0,_;for(let q of t){let{point:{x:$=NaN,y:te=NaN}={}}=q;if(isNaN($)||isNaN(te))continue;let se=Math.sqrt((e.x-$-n)**2+(e.y-te-a)**2);se<F&&(F=se,_=q)}if(_){let q=Math.max(F-((K=(V=_.point)==null?void 0:V.size)!=null?K:0),0);return{datum:_,distance:q}}}computeLabelsBBox(){let{label:e}=this.properties;this.maybeRefreshNodeData();let t=[],n=new lye;return this.nodeData.forEach(a=>{if(!e.enabled||!a.label)return;n.text=a.label.text,n.x=a.label.x,n.y=a.label.y,n.setFont(e),n.setAlign(a.label);let u=n.getBBox();t.push(u)}),t.length===0?null:aye.merge(t)}getLineNode(){var e;return(e=this.lineSelection)==null?void 0:e.at(0)}beforePathAnimation(){let e=this.getLineNode();e&&(e.fill=void 0,e.lineJoin="round",e.lineCap="round",e.pointerEvents=sye.None,e.stroke=this.properties.stroke,e.strokeWidth=this.getStrokeWidth(this.properties.strokeWidth),e.strokeOpacity=this.properties.strokeOpacity,e.lineDash=this.properties.lineDash,e.lineDashOffset=this.properties.lineDashOffset)}getLinePoints(){let{nodeData:e,resetInvalidToZero:t}=this,{connectMissingData:n}=this.properties;if(e.length===0)return[];let a=this.axes[yy.Y],u=this.axes[yy.X],y=u==null?void 0:u.isReversed(),R=(a==null?void 0:a.isReversed())&&!y?[...e].reverse():e,F=[],_=!1,V;return R.forEach((K,q)=>{let{x:$,y:te}=K.point,se=isNaN($)||isNaN(te);se||V!=null||(V=K),se&&!n&&($=0,te=0);let de=q===0||!t&&!n&&(se||_);F.push({x:$,y:te,moveTo:de}),_=se}),V!==void 0&&F.push({x:V.point.x,y:V.point.y,moveTo:!1}),F}animateSinglePath(e,t,n){let{path:a}=e;a.clear(!0);let u=this.getAxisInnerRadius(),y=this.axes[yy.Y],R=(y==null?void 0:y.isReversed())?this.radius+u-(y==null?void 0:y.scale.convert(0)):u;t.forEach(F=>{let{x:_,y:V,arc:K,radius:q=0,startAngle:$=0,endAngle:te=0,moveTo:se}=F,de=Math.atan2(V,_),pe=R*Math.cos(de),Ce=R*Math.sin(de),Se=n,ve=pe*(1-Se)+_*Se,ke=Ce*(1-Se)+V*Se;K?a.arc(_,V,q,$,te):se?a.moveTo(ve,ke):a.lineTo(ve,ke)}),e.checkPathDirty()}animatePaths(e){let t=this.getLinePoints(),n=this.getLineNode();n&&this.animateSinglePath(n,t,e)}animateEmptyUpdateReady(){let{itemSelection:e,labelSelection:t}=this,{animationManager:n}=this.ctx;this.beforePathAnimation(),n.animate({id:`${this.id}_'path`,groupId:this.id,from:0,to:1,phase:"initial",collapsable:!1,onUpdate:a=>this.animatePaths(a),onStop:()=>this.animatePaths(1)}),Qve(this,n,"added",e),$ve(this,"labels",n,t)}animateWaitingUpdateReady(e){super.animateWaitingUpdateReady(e),this.resetPaths()}animateReadyResize(e){super.animateReadyResize(e),this.resetPaths()}resetPaths(){let e=this.getLineNode();if(e){let{path:t}=e,n=this.getLinePoints();e.fill=void 0,e.stroke=this.properties.stroke,e.strokeWidth=this.getStrokeWidth(this.properties.strokeWidth),e.strokeOpacity=this.properties.strokeOpacity,e.lineDash=this.properties.lineDash,e.lineDashOffset=this.properties.lineDashOffset,t.clear(!0);for(let{x:a,y:u,moveTo:y}of n)y?t.moveTo(a,u):t.lineTo(a,u);e.checkPathDirty()}}getFormattedMarkerStyle(e){let{angleKey:t,radiusKey:n}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:e,angleKey:t,radiusKey:n,highlighted:!0})}computeFocusBounds(e){let t=tye(this,e),{translationX:n,translationY:a}=this.contentGroup;return t==null||t.translate(n,a),t}};R5.className="RadarSeries";var uye=(mt(),T(pt)),{RATIO:hye,COLOR_STRING:gye,Validate:aq}=uye._ModuleSupport,P5=class extends Gu{constructor(){super(...arguments),this.fill="black",this.fillOpacity=1}};me([aq(gye)],P5.prototype,"fill",2),me([aq(hye)],P5.prototype,"fillOpacity",2);var{Group:pye,Path:mye,PointerEvents:fye,Selection:vye,ChartAxisDirection:oq}=$K._ModuleSupport,L5=class extends R5{constructor(e){super(e),this.properties=new P5,this.resetInvalidToZero=!0;let t=new pye;this.contentGroup.append(t),this.areaSelection=vye.select(t,mye)}updatePathSelections(){let e=this.visible?[!0]:[];this.areaSelection.update(e),super.updatePathSelections()}getAreaNode(){return this.areaSelection.at(0)}getMarkerFill(e){var t,n;return(n=(t=e==null?void 0:e.fill)!=null?t:this.properties.marker.fill)!=null?n:this.properties.fill}beforePathAnimation(){super.beforePathAnimation();let e=this.getAreaNode();e.fill=this.properties.fill,e.fillOpacity=this.properties.fillOpacity,e.pointerEvents=fye.None,e.stroke=void 0}animatePaths(e){super.animatePaths(e),this.animateSinglePath(this.getAreaNode(),this.getAreaPoints(),e)}getAreaPoints(){var k,R;let e=this.getLinePoints(),t=F=>{let _=this.axes[F];return _ instanceof $K._ModuleSupport.PolarAxis?_:void 0},n=t(oq.Y),a=t(oq.X);if(!(n==null?void 0:n.isReversed()))return e;let y=(R=(k=a==null?void 0:a.getAxisLinePoints())==null?void 0:k.points)!=null?R:[];return e.concat(...y)}resetPaths(){super.resetPaths();let e=this.getAreaNode();if(e){let{path:t}=e,n=this.getAreaPoints();e.fill=this.properties.fill,e.fillOpacity=this.properties.fillOpacity,e.stroke=void 0,e.lineDash=this.properties.lineDash,e.lineDashOffset=this.properties.lineDashOffset,e.lineJoin=e.lineCap="round",t.clear(!0),n.forEach(({x:a,y:u,moveTo:y,arc:k,radius:R=0,startAngle:F=0,endAngle:_=0})=>{k?t.arc(a,u,R,F,_):y?t.moveTo(a,u):t.lineTo(a,u)}),t.closePath(),e.checkPathDirty()}}};L5.className="RadarAreaSeries",L5.type="radar-area";var{markerPaletteFactory:yye,ThemeConstants:{POLAR_AXIS_TYPE:rq}}=Lve._ModuleSupport,bye={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radar-area",moduleFactory:e=>new L5(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:rq.ANGLE_CATEGORY},{type:rq.RADIUS_NUMBER}],themeTemplate:zve,paletteFactory:e=>{let{marker:t}=yye(e);return{stroke:t.stroke,fill:t.fill,marker:t}}},Cye=(mt(),T(pt)),O5=class extends R5{updatePathSelections(){this.lineSelection.update(this.visible?[!0]:[])}};O5.className="RadarLineSeries",O5.type="radar-line";var{POLAR_AXIS_TYPE:sq}=Cye._ModuleSupport.ThemeConstants,Sye={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radar-line",moduleFactory:e=>new O5(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:sq.ANGLE_CATEGORY},{type:sq.RADIUS_NUMBER}],themeTemplate:Nve,paletteFactory:({takeColors:e})=>{let{fills:[t],strokes:[n]}=e(1);return{stroke:t,marker:{fill:t,stroke:n}}}},wye=(mt(),T(pt)),F5=(mt(),T(pt)),xye=(mt(),T(pt)),{SeriesProperties:Mye,SeriesTooltip:kye,Validate:ed,COLOR_STRING:lq,NUMBER:cq,FUNCTION:Aye,LINE_DASH:Dye,OBJECT:dq,POSITIVE_NUMBER:_5,RATIO:uq,STRING:nO,Label:Eye}=xye._ModuleSupport,Sc=class extends Mye{constructor(){super(...arguments),this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.rotation=0,this.label=new Eye,this.tooltip=new kye}};me([ed(nO)],Sc.prototype,"angleKey",2),me([ed(nO)],Sc.prototype,"radiusKey",2),me([ed(nO,{optional:!0})],Sc.prototype,"angleName",2),me([ed(nO,{optional:!0})],Sc.prototype,"radiusName",2),me([ed(lq)],Sc.prototype,"fill",2),me([ed(uq)],Sc.prototype,"fillOpacity",2),me([ed(lq)],Sc.prototype,"stroke",2),me([ed(_5)],Sc.prototype,"strokeWidth",2),me([ed(uq)],Sc.prototype,"strokeOpacity",2),me([ed(Dye)],Sc.prototype,"lineDash",2),me([ed(_5)],Sc.prototype,"lineDashOffset",2),me([ed(_5)],Sc.prototype,"cornerRadius",2),me([ed(Aye,{optional:!0})],Sc.prototype,"itemStyler",2),me([ed(cq)],Sc.prototype,"rotation",2),me([ed(nO,{optional:!0})],Sc.prototype,"stackGroup",2),me([ed(cq,{optional:!0})],Sc.prototype,"normalizedTo",2),me([ed(dq)],Sc.prototype,"label",2),me([ed(dq)],Sc.prototype,"tooltip",2);var Iye=(mt(),T(pt)),{SectorBox:hq,motion:Tye}=Iye._ModuleSupport;function Rye(e,t,n){if(n==="updated"){if(e.previousDatum==null||isNaN(e.previousDatum.innerRadius)||isNaN(e.previousDatum.outerRadius))return"added";if(isNaN(t.innerRadius)||isNaN(t.outerRadius))return"removed"}return n==="added"&&e.previousDatum!=null?"updated":n}function gq(e){return{toFn:(a,u,y)=>{let k,R,F,_,V;return y==="removed"?(k=e,R=e,F=u.innerRadius,_=u.outerRadius,V=new hq(k,R,F,_)):(k=u.startAngle,R=u.endAngle,F=isNaN(u.innerRadius)?a.innerRadius:u.innerRadius,_=isNaN(u.outerRadius)?a.outerRadius:u.outerRadius,V=u.clipSector),{startAngle:k,endAngle:R,innerRadius:F,outerRadius:_,clipSector:V}},fromFn:(a,u,y)=>{y=Rye(a,u,y);let k,R,F,_,V;y==="removed"||y==="updated"?(k=a.startAngle,R=a.endAngle,F=a.innerRadius,_=a.outerRadius,V=a.clipSector):(k=e,R=e,F=u.innerRadius,_=u.outerRadius),V!=null||(V=new hq(k,R,F,_));let K=Tye.NODE_UPDATE_STATE_TO_PHASE_MAPPING[y];return{startAngle:k,endAngle:R,innerRadius:F,outerRadius:_,clipSector:V,phase:K}}}}function Pye(e,t){return{centerX:0,centerY:0,innerRadius:t.innerRadius,outerRadius:t.outerRadius,startAngle:t.startAngle,endAngle:t.endAngle,clipSector:t.clipSector}}var{ChartAxisDirection:Ow,PolarAxis:Lye,diff:Oye,isDefined:Fye,groupAccumulativeValueProperty:pq,keyProperty:_ye,normaliseGroupTo:Nye,valueProperty:zye,fixNumericExtent:Bye,resetLabelFn:Gye,seriesLabelFadeInAnimation:Vye,seriesLabelFadeOutAnimation:jye,animationValidation:Hye,angleBetween:Wye,createDatumId:mq,BandScale:Uye,Sector:Kye,SectorBox:qye,motion:fq}=F5._ModuleSupport,Yye=class extends F5._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.angleKey=a.properties.angleKey,this.radiusKey=a.properties.radiusKey}},N5=class extends F5._ModuleSupport.PolarSeries{constructor(e){super({moduleCtx:e,useLabelLayer:!0,canHaveAxes:!0,animationResetFns:{item:Pye,label:Gye}}),this.properties=new Sc,this.NodeEvent=Yye,this.groupScale=new Uye,this.circleCache={r:0,cx:0,cy:0}}nodeFactory(){return new Kye}getSeriesDomain(e){let{dataModel:t,processedData:n}=this;if(!n||!t)return[];if(e===Ow.X){let a=t.getDomain(this,"angleValue-end","value",n),u=[a[0]>0?0:a[0],a[1]<0?0:a[1]];return Bye(u)}else return t.getDomain(this,"radiusValue","key",n)}async processData(e){var q,$;let{visible:t}=this,{angleKey:n,radiusKey:a,normalizedTo:u}=this.properties,y=!this.ctx.animationManager.isSkipped();if(!this.properties.isValid())return;let k=this.getStackId(),R=`${k}-trailing`,F=[];Fye(u)&&F.push(Nye([k,R],Math.abs(u),"range")),y&&(this.processedData&&F.push(Oye(this.id,this.processedData)),F.push(Hye()));let _=t||!y?{}:{forceValue:0},V=(q=this.axes[Ow.Y])==null?void 0:q.scale.type,K=($=this.axes[Ow.X])==null?void 0:$.scale.type;await this.requestDataModel(e,this.data,{props:[_ye(a,V,{id:"radiusValue"}),zye(n,K,ge({id:"angleValue-raw",invalidValue:null},_)),...pq(n,"normal","current",ge({id:"angleValue-end",rangeId:"angleValue-range",invalidValue:null,groupId:k,separateNegative:!0},_),K),...pq(n,"trailing","current",ge({id:"angleValue-start",invalidValue:null,groupId:R,separateNegative:!0},_),K),...F]}),this.animationState.transition("updateData")}didCircleChange(){let e=this.radius,t=this.centerX,n=this.centerY,a=this.circleCache;return e===a.r&&t===a.cx&&n===a.cy?!1:(this.circleCache={r:e,cx:t,cy:n},!0)}maybeRefreshNodeData(){var n;if(!this.didCircleChange()&&!this.nodeDataRefresh)return;let{nodeData:t=[]}=(n=this.createNodeData())!=null?n:{};this.nodeData=t,this.nodeDataRefresh=!1}getAxisInnerRadius(){let e=this.axes[Ow.Y];return e instanceof Lye?this.radius*e.innerRadiusRatio:0}createNodeData(){var vt;let{processedData:e,dataModel:t}=this;if(!t||!e||e.type!=="ungrouped"||e.rawData.length===0||!this.properties.isValid())return;let n=this.axes[Ow.X],a=this.axes[Ow.Y],u=n==null?void 0:n.scale,y=a==null?void 0:a.scale;if(!u||!y)return;let k=t.resolveKeysById(this,"radiusValue",e),R=t.resolveColumnById(this,"angleValue-start",e),F=t.resolveColumnById(this,"angleValue-end",e),_=t.resolveColumnById(this,"angleValue-raw",e),V=t.resolveProcessedDataIndexById(this,"angleValue-range"),K=0;a instanceof uE&&(K=a.groupPaddingInner);let{groupScale:q}=this,{index:$,visibleGroupCount:te}=this.ctx.seriesStateManager.getVisiblePeerGroupIndex(this);q.domain=Array.from({length:te}).map((wt,Ct)=>String(Ct)),q.range=[0,Math.abs((vt=y.bandwidth)!=null?vt:0)],q.paddingInner=te>1?K:0;let se=q.bandwidth>=1?q.bandwidth:q.rawBandwidth,de=n.isReversed(),pe=a.isReversed(),Ce=pe?this.radius:this.getAxisInnerRadius(),ve=(pe?this.getAxisInnerRadius():this.radius)+Ce,{angleKey:ke,radiusKey:De,angleName:Te,radiusName:ze,label:qe}=this.properties,et=(wt,Ct,yt,Et)=>{let At=this.getLabelText(qe,{value:Ct,datum:wt,angleKey:ke,radiusKey:De,angleName:Te,radiusName:ze});if(At)return{x:yt,y:Et,text:At,textAlign:"center",textBaseline:"middle"}},$e=[],lt={itemId:De,nodeData:$e,labelData:$e};if(!this.visible)return lt;let{rawData:at,aggregation:ht}=e;return at.forEach((wt,Ct)=>{let yt=k[Ct];if(yt==null)return;let Et=_[Ct],At=R[Ct],Dt=F[Ct],Ot=Et>=0&&!Object.is(Et,-0),Rt=ht[Ct][V][Ot?1:0],Xt=Ot===de,Yt=u.convert(At,!0),Ut=u.convert(Dt,!0),oi=u.convert(0,!0),ti=u.convert(Rt,!0);Xt&&([oi,ti]=[ti,oi],[Yt,Ut]=[Ut,Yt]);let ui=ve-y.convert(yt)+q.convert(String($)),qt=ui+se,Zt=(ui+qt)/2,pi=Yt+Wye(Yt,Ut)/2,si=Math.cos(pi)*Zt,ci=Math.sin(pi)*Zt,yi=this.properties.label.enabled?et(wt,Et,si,ci):void 0,sn=new qye(Yt,Ut,ui,qt);$e.push({series:this,datum:wt,datumIndex:Ct,point:{x:si,y:ci,size:0},midPoint:{x:si,y:ci},label:yi,angleValue:Et,radiusValue:yt,innerRadius:ui,outerRadius:qt,startAngle:oi,endAngle:ti,clipSector:sn,reversed:Xt,index:Ct})}),lt}update({seriesRect:e}){let t=this.checkResize(e);this.maybeRefreshNodeData(),this.contentGroup.translationX=this.centerX,this.contentGroup.translationY=this.centerY,this.highlightGroup.translationX=this.centerX,this.highlightGroup.translationY=this.centerY,this.labelGroup&&(this.labelGroup.translationX=this.centerX,this.labelGroup.translationY=this.centerY),this.updateSectorSelection(this.itemSelection,!1),this.updateSectorSelection(this.highlightSelection,!0),this.updateLabels(),t&&this.animationState.transition("resize"),this.animationState.transition("update")}getItemBaseStyle(e){var u,y,k,R,F,_,V;let{properties:t}=this,n=e?t.highlightStyle.item:void 0,a=this.getStrokeWidth(t.strokeWidth);return{fill:(u=n==null?void 0:n.fill)!=null?u:t.fill,fillOpacity:(y=n==null?void 0:n.fillOpacity)!=null?y:t.fillOpacity,stroke:(k=n==null?void 0:n.stroke)!=null?k:t.stroke,strokeWidth:(R=n==null?void 0:n.strokeWidth)!=null?R:a,strokeOpacity:(F=n==null?void 0:n.strokeOpacity)!=null?F:t.strokeOpacity,lineDash:(_=n==null?void 0:n.lineDash)!=null?_:t.lineDash,lineDashOffset:(V=n==null?void 0:n.lineDashOffset)!=null?V:t.lineDashOffset,cornerRadius:t.cornerRadius}}getItemStyleOverrides(e,t,n,a){let{id:u,properties:y}=this,{angleKey:k,radiusKey:R,itemStyler:F}=y;if(F!=null)return this.cachedDatumCallback(mq(e,a?"highlight":"node"),()=>F(ge({seriesId:u,datum:t,highlighted:a,angleKey:k,radiusKey:R},n)))}updateSectorSelection(e,t){var u;let n=[];if(t){let y=(u=this.ctx.highlightManager)==null?void 0:u.getActiveHighlight();y!=null&&y.datum&&y.series===this&&n.push(y)}else n=this.nodeData;let a=this.getItemBaseStyle(t);e.update(n,void 0,y=>this.getDatumId(y)).each((y,k)=>{var $,te,se,de,pe,Ce,Se,ve;let{datum:R,datumIndex:F}=k,_=this.getItemStyleOverrides(String(F),R,a,t),V=($=_==null?void 0:_.stroke)!=null?$:a.stroke,K=(te=_==null?void 0:_.strokeWidth)!=null?te:a.strokeWidth,q=(se=_==null?void 0:_.cornerRadius)!=null?se:a.cornerRadius;y.fill=(de=_==null?void 0:_.fill)!=null?de:a.fill,y.fillOpacity=(pe=_==null?void 0:_.fillOpacity)!=null?pe:a.fillOpacity,y.stroke=V,y.strokeWidth=K,y.strokeOpacity=(Ce=_==null?void 0:_.strokeOpacity)!=null?Ce:a.strokeOpacity,y.lineDash=(Se=_==null?void 0:_.lineDash)!=null?Se:a.lineDash,y.lineDashOffset=(ve=_==null?void 0:_.lineDashOffset)!=null?ve:a.lineDashOffset,y.lineJoin="round",y.inset=V!=null?K/2:0,y.startInnerCornerRadius=R.reversed?q:0,y.startOuterCornerRadius=R.reversed?q:0,y.endInnerCornerRadius=R.reversed?0:q,y.endOuterCornerRadius=R.reversed?0:q,t&&(y.startAngle=k.startAngle,y.endAngle=k.endAngle,y.clipSector=k.clipSector,y.innerRadius=k.innerRadius,y.outerRadius=k.outerRadius)})}updateLabels(){let{label:e}=this.properties;this.labelSelection.update(this.nodeData).each((t,n)=>{e.enabled&&n.label?(t.x=n.label.x,t.y=n.label.y,t.fill=e.color,t.fontFamily=e.fontFamily,t.fontSize=e.fontSize,t.fontStyle=e.fontStyle,t.fontWeight=e.fontWeight,t.text=n.label.text,t.textAlign=n.label.textAlign,t.textBaseline=n.label.textBaseline,t.visible=!0):t.visible=!1})}getBarTransitionFunctions(){var u;let e=(u=this.axes[Ow.X])==null?void 0:u.scale,t=0;if(!e)return gq(t);let n=Math.min(e.domain[0],e.domain[1]),a=Math.max(e.domain[0],e.domain[1]);return n<=0&&a>=0&&(t=e.convert(0)),gq(t)}animateEmptyUpdateReady(){let{labelSelection:e}=this,t=this.getBarTransitionFunctions();fq.fromToMotion(this.id,"datums",this.ctx.animationManager,[this.itemSelection],t),Vye(this,"labels",this.ctx.animationManager,e)}animateClearingUpdateEmpty(){let{itemSelection:e}=this,{animationManager:t}=this.ctx,n=this.getBarTransitionFunctions();fq.fromToMotion(this.id,"datums",t,[e],n),jye(this,"labels",t,this.labelSelection)}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:u,properties:y}=this,{angleKey:k,angleName:R,radiusKey:F,radiusName:_,tooltip:V}=y,K=u[Ow.X],q=u[Ow.Y];if(!n||!a||a.rawData.length===0||!K||!q)return;let{datumIndex:$}=e,te=a.rawData[$],se=n.resolveKeysById(this,"radiusValue",a)[$],de=n.resolveColumnById(this,"angleValue-raw",a)[$];if(se==null)return;let pe=this.getItemBaseStyle(!1);return Object.assign(pe,this.getItemStyleOverrides(String($),$,pe,!1)),V.formatTooltip({heading:q.formatDatum(se),symbol:this.legendItemSymbol(),data:[{label:R,fallbackLabel:k,value:K.formatDatum(de)}]},ge({seriesId:t,datum:te,title:R,angleKey:k,angleName:R,radiusKey:F,radiusName:_},pe))}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.itemSelection.nodes())}legendItemSymbol(){let{fill:e,stroke:t,fillOpacity:n,strokeOpacity:a,strokeWidth:u}=this.properties;return{marker:{fill:e!=null?e:"rgba(0, 0, 0, 0)",stroke:t!=null?t:"rgba(0, 0, 0, 0)",fillOpacity:n!=null?n:1,strokeOpacity:a!=null?a:1,strokeWidth:u}}}getLegendData(e){if(!this.properties.isValid()||e!=="category")return[];let{id:t,visible:n}=this,{angleKey:a,angleName:u,showInLegend:y}=this.properties;return[{legendType:"category",id:t,itemId:a,seriesId:t,enabled:n,label:{text:u!=null?u:a},symbol:this.legendItemSymbol(),hideInLegend:!y}]}getDatumId(e){return mq(e.radiusValue)}computeLabelsBBox(){return null}getStackId(){var t,n;return`radialBar-stack-${(n=(t=this.seriesGrouping)==null?void 0:t.groupIndex)!=null?n:this.id}-xValues`}};N5.className="RadialBarSeries",N5.type="radial-bar";var Xye=(mt(),T(pt)),{ThemeSymbols:{DEFAULT_FONT_FAMILY:Zye,DEFAULT_INVERTED_LABEL_COLOUR:$ye},ThemeConstants:{POLAR_AXIS_TYPE:Qye}}=Xye._ModuleSupport,Jye={series:{strokeWidth:0,label:{enabled:!1,fontSize:12,fontFamily:Zye,color:$ye}},axes:{[Qye.RADIUS_CATEGORY]:{innerRadiusRatio:.2,groupPaddingInner:.2,paddingInner:.2,paddingOuter:.1}}},{POLAR_AXIS_TYPE:vq}=wye._ModuleSupport.ThemeConstants,ebe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radial-bar",moduleFactory:e=>new N5(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:vq.ANGLE_NUMBER},{type:vq.RADIUS_CATEGORY}],themeTemplate:Jye,paletteFactory:({takeColors:e})=>{let{fills:[t],strokes:[n]}=e(1);return{fill:t,stroke:n}},stackable:!0,groupable:!0},tbe=(mt(),T(pt)),ibe=(mt(),T(pt)),nbe=(mt(),T(pt)),{Validate:yq,RATIO:bq}=nbe._ModuleSupport,z5=class extends Wl{};me([yq(bq,{optional:!0})],z5.prototype,"columnWidthRatio",2),me([yq(bq,{optional:!0})],z5.prototype,"maxColumnWidthRatio",2);var{ChartAxisDirection:abe,PolarAxis:obe,RadialColumnShape:rbe,getRadialColumnWidth:sbe}=ibe._ModuleSupport,B5=class extends EK{constructor(e){super(e,{animationResetFns:{item:Qfe}}),this.properties=new z5}getStackId(){var t,n;return`radarColumn-stack-${(n=(t=this.seriesGrouping)==null?void 0:t.groupIndex)!=null?n:this.id}-yValues`}nodeFactory(){return new rbe}getColumnTransitionFunctions(){let e=this.isRadiusAxisReversed()?this.radius:this.getAxisInnerRadius();return $fe(e)}isRadiusAxisCircle(){let e=this.axes[abe.Y];return e instanceof obe?e.shape==="circle":!1}updateItemPath(e,t,n){e.isBeveled=this.isRadiusAxisCircle(),e.isRadiusAxisReversed=this.isRadiusAxisReversed(),n&&(e.innerRadius=t.innerRadius,e.outerRadius=t.outerRadius,e.startAngle=t.startAngle,e.endAngle=t.endAngle,e.columnWidth=t.columnWidth,e.axisInnerRadius=t.axisInnerRadius,e.axisOuterRadius=t.axisOuterRadius)}getColumnWidth(e,t){let{columnWidthRatio:n=.5,maxColumnWidthRatio:a=.5}=this.properties;return sbe(e,t,this.radius,n,a)}};B5.className="RadialColumnSeries",B5.type="radial-column";var lbe=(mt(),T(pt)),{ThemeSymbols:{DEFAULT_FONT_FAMILY:cbe,DEFAULT_LABEL_COLOUR:dbe},ThemeConstants:{POLAR_AXIS_TYPE:Cq,POLAR_AXIS_SHAPE:Sq}}=lbe._ModuleSupport,ube={series:{columnWidthRatio:.5,maxColumnWidthRatio:.5,strokeWidth:0,label:{enabled:!1,fontSize:12,fontFamily:cbe,color:dbe}},axes:{[Cq.ANGLE_CATEGORY]:{shape:Sq.CIRCLE,groupPaddingInner:0,paddingInner:0,label:{spacing:10}},[Cq.RADIUS_NUMBER]:{shape:Sq.CIRCLE,innerRadiusRatio:.5}}},{POLAR_AXIS_TYPE:wq}=tbe._ModuleSupport.ThemeConstants,hbe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["polar"],identifier:"radial-column",moduleFactory:e=>new B5(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:wq.ANGLE_CATEGORY},{type:wq.RADIUS_NUMBER}],themeTemplate:ube,paletteFactory:({takeColors:e})=>{let{fills:[t],strokes:[n]}=e(1);return{fill:t,stroke:n}},stackable:!0,groupable:!0},gbe=(mt(),T(pt)),aO=(mt(),T(pt)),pbe=(mt(),T(pt)),{SvgPath:mbe,Rotatable:fbe,Translatable:vbe,Scalable:ybe}=pbe._ModuleSupport,G5=class extends fbe(ybe(vbe(mbe))){constructor(){super(...arguments),this.scalingCenterX=.5,this.scalingCenterY=.5,this.rotationCenterX=.5,this.rotationCenterY=.5}};G5.defaultPathData="M0.50245 0.53745C0.481767 0.53745 0.465 0.520683 0.465 0.5C0.465 0.479317 0.481767 0.46255 0.50245 0.46255L1 0.500012L0.50245 0.53745Z";var bbe=(mt(),T(pt)),{BaseProperties:zN,SeriesTooltip:Cbe,SeriesProperties:Sbe,PropertiesArray:V5,Validate:_i,BOOLEAN:xq,COLOR_STRING:Fw,COLOR_STRING_ARRAY:wbe,FUNCTION:xbe,LINE_DASH:BN,NUMBER:jE,OBJECT_ARRAY:j5,OBJECT:_w,POSITIVE_NUMBER:_f,RATIO:by,STRING:H5,UNION:Mbe,Logger:kbe,Label:Abe}=bbe._ModuleSupport,Dbe=Mbe(["inside","outside","middle"],"a placement"),Mq=class extends Abe{};me([_i(jE,{optional:!0})],Mq.prototype,"spacing",2);var Ud=class extends zN{constructor(){super(...arguments),this.label=new Mq}};me([_i(H5,{optional:!0})],Ud.prototype,"text",2),me([_i(jE,{optional:!0})],Ud.prototype,"value",2),me([_i(x9,{optional:!0})],Ud.prototype,"shape",2),me([_i(Dbe,{optional:!0})],Ud.prototype,"placement",2),me([_i(jE,{optional:!0})],Ud.prototype,"spacing",2),me([_i(_f,{optional:!0})],Ud.prototype,"size",2),me([_i(jE,{optional:!0})],Ud.prototype,"rotation",2),me([_i(Fw,{optional:!0})],Ud.prototype,"fill",2),me([_i(by,{optional:!0})],Ud.prototype,"fillOpacity",2),me([_i(Fw,{optional:!0})],Ud.prototype,"stroke",2),me([_i(_f,{optional:!0})],Ud.prototype,"strokeWidth",2),me([_i(by,{optional:!0})],Ud.prototype,"strokeOpacity",2),me([_i(BN,{optional:!0})],Ud.prototype,"lineDash",2),me([_i(_f,{optional:!0})],Ud.prototype,"lineDashOffset",2),me([_i(_w)],Ud.prototype,"label",2);var Cy=class extends zN{constructor(){super(...arguments),this.enabled=!0,this.fills=new V5(aP),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};me([_i(xq)],Cy.prototype,"enabled",2),me([_i(j5)],Cy.prototype,"fills",2),me([_i(mN)],Cy.prototype,"fillMode",2),me([_i(Fw,{optional:!0})],Cy.prototype,"fill",2),me([_i(by)],Cy.prototype,"fillOpacity",2),me([_i(Fw,{optional:!0})],Cy.prototype,"stroke",2),me([_i(_f,{optional:!0})],Cy.prototype,"strokeWidth",2),me([_i(by)],Cy.prototype,"strokeOpacity",2),me([_i(BN)],Cy.prototype,"lineDash",2),me([_i(_f)],Cy.prototype,"lineDashOffset",2);var Sy=class extends zN{constructor(){super(...arguments),this.fills=new V5(aP),this.fillMode="continuous",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.defaultFill="black"}};me([_i(j5)],Sy.prototype,"fills",2),me([_i(mN)],Sy.prototype,"fillMode",2),me([_i(Fw,{optional:!0})],Sy.prototype,"fill",2),me([_i(by)],Sy.prototype,"fillOpacity",2),me([_i(Fw)],Sy.prototype,"stroke",2),me([_i(_f)],Sy.prototype,"strokeWidth",2),me([_i(by)],Sy.prototype,"strokeOpacity",2),me([_i(BN)],Sy.prototype,"lineDash",2),me([_i(_f)],Sy.prototype,"lineDashOffset",2),me([_i(Fw)],Sy.prototype,"defaultFill",2);var wy=class extends zN{constructor(){super(...arguments),this.enabled=!0,this.spacing=0,this.fill="black",this.fillOpacity=1,this.stroke="black",this.strokeWidth=0,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0}};me([_i(xq)],wy.prototype,"enabled",2),me([_i(by,{optional:!0})],wy.prototype,"radiusRatio",2),me([_i(jE)],wy.prototype,"spacing",2),me([_i(Fw)],wy.prototype,"fill",2),me([_i(by)],wy.prototype,"fillOpacity",2),me([_i(Fw)],wy.prototype,"stroke",2),me([_i(_f)],wy.prototype,"strokeWidth",2),me([_i(by)],wy.prototype,"strokeOpacity",2),me([_i(BN)],wy.prototype,"lineDash",2),me([_i(_f)],wy.prototype,"lineDashOffset",2);var kq=class extends kC{};me([_i(H5,{optional:!0})],kq.prototype,"text",2);var Aq=class extends Y2{};me([_i(H5,{optional:!0})],Aq.prototype,"text",2);var Kl=class extends Sbe{constructor(){super(...arguments),this.segmentation=new $2,this.defaultColorRange=[],this.targets=new V5(Ud),this.defaultTarget=new Ud,this.outerRadiusRatio=1,this.innerRadiusRatio=1,this.cornerRadius=0,this.cornerMode="container",this.spacing=0,this.scale=new Sy,this.bar=new Cy,this.needle=new wy,this.label=new kq,this.secondaryLabel=new Aq,this.tooltip=new Cbe}isValid(e){if(!super.isValid(e))return!1;let{outerRadius:t,innerRadius:n}=this;return t==null!=(n==null)?(kbe.warnOnce("Either [innerRadius] and [outerRadius] must both be set, or neither can be set."),!1):!0}};me([_i(jE)],Kl.prototype,"value",2),me([_i(_w)],Kl.prototype,"segmentation",2),me([_i(wbe)],Kl.prototype,"defaultColorRange",2),me([_i(j5)],Kl.prototype,"targets",2),me([_i(_w)],Kl.prototype,"defaultTarget",2),me([_i(by)],Kl.prototype,"outerRadiusRatio",2),me([_i(by)],Kl.prototype,"innerRadiusRatio",2),me([_i(_f,{optional:!0})],Kl.prototype,"outerRadius",2),me([_i(_f,{optional:!0})],Kl.prototype,"innerRadius",2),me([_i(_f)],Kl.prototype,"cornerRadius",2),me([_i(M9)],Kl.prototype,"cornerMode",2),me([_i(jE)],Kl.prototype,"spacing",2),me([_i(_w)],Kl.prototype,"scale",2),me([_i(_w)],Kl.prototype,"bar",2),me([_i(_w)],Kl.prototype,"needle",2),me([_i(xbe,{optional:!0})],Kl.prototype,"itemStyler",2),me([_i(_w)],Kl.prototype,"label",2),me([_i(_w)],Kl.prototype,"secondaryLabel",2),me([_i(_w)],Kl.prototype,"tooltip",2);var Ebe=(mt(),T(pt)),{SectorBox:W5}=Ebe._ModuleSupport;function Ibe(e){let{startAngle:t,endAngle:n,clipStartAngle:a,clipEndAngle:u,innerRadius:y,outerRadius:k}=e;if(!(a==null||u==null))return new W5(Math.max(a,t),Math.min(u,n),y,k)}function Dq(e,t,n){return Math.max(e,n.startAngle)<=Math.min(t,n.endAngle)}function U5(e){return e.clipStartAngle!=null&&e.clipEndAngle!=null}function K5(e,t){let{clipStartAngle:n,clipEndAngle:a,innerRadius:u,outerRadius:y}=e;return new W5(n,t?n:a,u,y)}function Eq(e,t){let n=e?"initial":"update";return{node:{fromFn(y,k){let R=y.previousDatum,{startAngle:F,endAngle:_}=R!=null?R:k,V=R!=null&&U5(R)?K5(R,e):void 0,K=U5(k)?K5(k,e):void 0,q;return V!=null&&K!=null?q=V:V==null&&K!=null?(q=K,F=k.startAngle,_=k.endAngle):V!=null&&K==null?(q=void 0,F=k.startAngle,_=k.endAngle):e&&(_=F),{startAngle:F,endAngle:_,clipSector:q,phase:n}},toFn(y,k){let{startAngle:R,endAngle:F}=k,_;return U5(k)&&(_=K5(k,!1)),{startAngle:R,endAngle:F,clipSector:_}},applyFn(y,k){let{startAngle:R,endAngle:F}=k,{clipSector:_}=k;_!=null&&(_=new W5(Math.max(R,_.startAngle),Math.min(F,_.endAngle),_.innerRadius,_.outerRadius));let V=_==null||Dq(R,F,_);y.startAngle=R,y.endAngle=F,y.clipSector=_,y.visible=V}},needle:{fromFn(y){var R;let{angle:k}=(R=y.previousDatum)!=null?R:y.datum;return e&&(k=t),{rotation:k,phase:n}},toFn(y,k){let{angle:R}=k;return{rotation:R}}}}}function q5(e,t){let{startAngle:n,endAngle:a}=t,u=Ibe(t),y=u==null||Dq(n,a,u);return{startAngle:n,endAngle:a,clipSector:u,visible:y}}function Iq(e,t){let{angle:n}=t;return{rotation:n}}var Tbe={top:0,middle:.5,bottom:1};function Rbe(e,t,n,a,u){var ve,ke;let{padding:y,textAlign:k,verticalAlign:R}=n,F,_;if(t.each((De,Te)=>{Te.label==="primary"?F=Te:Te.label==="secondary"&&(_=Te)}),F==null)return;let V=Z2(e,F,u==null?void 0:u.label);if(V==null)return;let K=_!=null?Z2(e,_,u==null?void 0:u.secondaryLabel):void 0,q={padding:y},$=k==="center"?2:1,te=R==="middle"?2:1,se=De=>({width:Math.sqrt(Math.max(a**2-(De/te)**2,0))*$,height:Math.min(De,te*a),meta:null}),de,pe,Ce;if(_!=null&&K!=null){let De=a9(V,F,K,_,q,se);de=De==null?void 0:De.label,pe=De==null?void 0:De.secondaryLabel,Ce=(ve=De==null?void 0:De.height)!=null?ve:0}else{let De=K2(V,F,q,se);de=De==null?void 0:De[0],pe=void 0,Ce=(ke=De==null?void 0:De[0].height)!=null?ke:0}let Se=Ce*Tbe[R];t.each((De,Te)=>{let ze;if(Te.label==="primary"?ze=de:Te.label==="secondary"&&(ze=pe),ze==null){De.visible=!1;return}De.visible=!0,De.text=ze.text,De.fontSize=ze.fontSize,De.lineHeight=ze.lineHeight,De.textAlign=k,De.textBaseline="middle";let qe=Te.label==="primary"?ze.height/2:Ce-ze.height/2;De.y=Te.centerY+qe-Se,De.x=Te.centerX})}var{fromToMotion:oO,resetMotion:Tq,SeriesNodePickMode:Rq,StateMachine:Pbe,createDatumId:Y5,ChartAxisDirection:xA,normalizeAngle360:Pq,normalizeAngle360Inclusive:Lq,toDegrees:Lbe,toRadians:Obe,BBox:Fbe,Group:HE,PointerEvents:X5,Selection:WE,Sector:_be,Text:Oq,ConicGradient:Nbe,getMarker:zbe}=aO._ModuleSupport,Bbe={inside:90,middle:0,outside:-90},Gbe=[{textAlign:"left",textBaseline:"top"},{textAlign:"right",textBaseline:"top"},{textAlign:"right",textBaseline:"bottom"},{textAlign:"left",textBaseline:"bottom"}],Vbe=[{textAlign:"right",textBaseline:"bottom"},{textAlign:"left",textBaseline:"bottom"},{textAlign:"left",textBaseline:"top"},{textAlign:"right",textBaseline:"top"}],Z5=class extends aO._ModuleSupport.Series{constructor(e){super({moduleCtx:e,useLabelLayer:!0,pickModes:[Rq.EXACT_SHAPE_MATCH,Rq.NEAREST_NODE]}),this.canHaveAxes=!0,this.properties=new Kl,this.centerX=0,this.centerY=0,this.radius=0,this.textAlign="center",this.verticalAlign="middle",this.scaleGroup=this.contentGroup.appendChild(new HE({name:"scaleGroup"})),this.itemGroup=this.contentGroup.appendChild(new HE({name:"itemGroup"})),this.itemNeedleGroup=this.contentGroup.appendChild(new HE({name:"itemNeedleGroup"})),this.itemTargetGroup=this.contentGroup.appendChild(new HE({name:"itemTargetGroup"})),this.itemTargetLabelGroup=this.contentGroup.appendChild(new HE({name:"itemTargetLabelGroup"})),this.itemLabelGroup=this.contentGroup.appendChild(new HE({name:"itemLabelGroup"})),this.highlightTargetGroup=this.highlightGroup.appendChild(new HE({name:"itemTargetLabelGroup"})),this.scaleSelection=WE.select(this.scaleGroup,()=>this.nodeFactory()),this.datumSelection=WE.select(this.itemGroup,()=>this.nodeFactory()),this.needleSelection=WE.select(this.itemNeedleGroup,G5),this.targetSelection=WE.select(this.itemTargetGroup,t=>this.markerFactory(t)),this.targetLabelSelection=WE.select(this.itemTargetLabelGroup,Oq),this.labelSelection=WE.select(this.itemLabelGroup,Oq),this.highlightTargetSelection=WE.select(this.highlightTargetGroup,t=>this.markerFactory(t)),this.nodeDatum={series:this,datum:{}},this.animationState=new Pbe("empty",{empty:{update:{target:"ready",action:()=>this.animateEmptyUpdateReady()},reset:"empty",skip:"ready"},ready:{updateData:"waiting",clear:"clearing",resize:()=>this.animateReadyResize(),reset:"empty",skip:"ready"},waiting:{update:{target:"ready",action:()=>this.animateWaitingUpdateReady()},reset:"empty",skip:"ready"},clearing:{update:{target:"empty"},reset:"empty",skip:"ready"}}),this.itemGroup.pointerEvents=X5.None,this.itemTargetLabelGroup.pointerEvents=X5.None,this.itemLabelGroup.pointerEvents=X5.None}get maximumRadius(){return this.properties.outerRadius}get minimumRadius(){return this.properties.outerRadius}get hasData(){return this.properties.value!=null}nodeFactory(){return new _be}markerFactory({shape:e}){let t=e!=="line"?zbe(e):YG,n=new t;return n.size=1,n}processData(){this.nodeDataRefresh=!0,this.animationState.transition("updateData")}formatLabel(e){return b9(e,this.axes[xA.X])}createConicGradient(e,t){let{centerX:n,centerY:a,radius:u}=this,{domain:y,range:k}=this.axes[xA.X].scale,[R,F]=k,{defaultColorRange:_}=this.properties,V=Pq((R+F)/2+Math.PI),K=Lq(F-R),q=w9(e,_,y,t).map(({color:$,offset:te})=>(te=Math.min(Math.max(te,0),1),te=(R+K*te-V)/(2*Math.PI),te=(te%1+1)%1,{offset:te,color:$}));return new Nbe("oklch",q,Lbe(V)-90,new Fbe(n-u,a-u,2*u,2*u))}getTargets(){let{properties:e}=this,t=e.defaultTarget;return Array.from(e.targets).map(n=>{var ze,qe,et,$e,lt,at,ht,vt,wt,Ct,yt,Et,At,Dt,Ot,It,Rt;let{text:a=t.text,value:u=(ze=t.value)!=null?ze:0,shape:y=(qe=t.shape)!=null?qe:"triangle",rotation:k=(et=t.rotation)!=null?et:0,strokeWidth:R=($e=t.strokeWidth)!=null?$e:0,placement:F=(lt=t.placement)!=null?lt:"middle",spacing:_=(at=t.spacing)!=null?at:0,size:V=(ht=t.size)!=null?ht:0,fill:K=(vt=t.fill)!=null?vt:"black",fillOpacity:q=(wt=t.fillOpacity)!=null?wt:1,stroke:$=(Ct=t.stroke)!=null?Ct:"black",strokeOpacity:te=(yt=t.strokeOpacity)!=null?yt:1,lineDash:se=(Et=t.lineDash)!=null?Et:[0],lineDashOffset:de=(At=t.lineDashOffset)!=null?At:0}=n,{enabled:pe=t.label.enabled,color:Ce=(Dt=t.label.color)!=null?Dt:"black",fontStyle:Se=(Ot=t.label.fontStyle)!=null?Ot:"normal",fontWeight:ve=(It=t.label.fontWeight)!=null?It:"normal",fontSize:ke=t.label.fontSize,fontFamily:De=t.label.fontFamily,spacing:Te=(Rt=t.label.spacing)!=null?Rt:0}=n.label;return{text:a,value:u,shape:y,placement:F,spacing:_,size:V,rotation:k,fill:K,fillOpacity:q,stroke:$,strokeWidth:R,strokeOpacity:te,lineDash:se,lineDashOffset:de,label:{enabled:pe,color:Ce,fontStyle:Se,fontWeight:ve,fontSize:ke,fontFamily:De,spacing:Te}}})}getTargetRadius(e){let{radius:t,properties:n}=this,{innerRadiusRatio:a,outerRadiusRatio:u}=n,{placement:y,spacing:k,size:R}=e,F=t*u,_=t*a;switch(y){case"inside":return Math.max(_-k-R/2,0);case"outside":return F+k+R/2;default:return(_+F)/2}}getTargetLabel(e){let n=this.axes[xA.X].scale,{value:a,size:u,placement:y,label:k}=e,{spacing:R,color:F,fontStyle:_,fontWeight:V,fontSize:K,fontFamily:q}=k,$=void 0,te=n.convert(a),se=Pq(te)/(Math.PI/2)|0,de=u/2+R,pe,Ce,Se,ve;switch(y){case"outside":({textAlign:pe,textBaseline:Ce}=Gbe[se]),Se=de*Math.cos(te),ve=de*Math.sin(te);break;case"inside":({textAlign:pe,textBaseline:Ce}=Vbe[se]),Se=-de*Math.cos(te),ve=-de*Math.sin(te);break;default:pe="center",Ce="bottom",Se=0,ve=-de;break}return{offsetX:Se,offsetY:ve,fill:F,textAlign:pe,textBaseline:Ce,fontStyle:_,fontWeight:V,fontSize:K,fontFamily:q,lineHeight:$}}createNodeData(){var At,Dt,Ot;let{id:e,properties:t,radius:n,centerX:a,centerY:u}=this;if(!t.isValid())return;let y=this.axes[xA.X];if(y==null)return;let{value:k,innerRadiusRatio:R,outerRadiusRatio:F,segmentation:_,cornerRadius:V,cornerMode:K,needle:q,bar:$,scale:te,label:se,secondaryLabel:de}=t,{outerRadius:pe=n*F,innerRadius:Ce=n*R}=t,Se=this.getTargets(),{domain:ve}=y.scale,ke=[],De=[],Te=[],ze=[],qe=[],[et,$e]=y.range,lt=y.scale,at=K==="item",ht=lt.convert(ve[0]),vt=lt.convert(k),wt=Math.ceil(Lq(vt-ht)*n),Ct=_.enabled?_.interval.getSegments(y.scale,wt):void 0,yt=(At=$.fill)!=null?At:this.createConicGradient($.fills,$.fillMode),Et=(Ot=(Dt=te.fill)!=null?Dt:$.enabled&&te.fills.length===0?te.defaultFill:void 0)!=null?Ot:this.createConicGradient(te.fills,te.fillMode);if(Ct==null&&at){let[It,Rt]=ve,Xt={value:k,segmentStart:It,segmentEnd:Rt},Ut=Math.min(V,(pe-Ce)/2)/((Ce+pe)/2);$.enabled&&ke.push({series:this,itemId:"value",datum:Xt,type:0,centerX:a,centerY:u,outerRadius:pe,innerRadius:Ce,startAngle:ht-Ut,endAngle:vt+Ut,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:V,endCornerRadius:V,fill:yt}),qe.push({series:this,itemId:"scale",datum:Xt,type:0,centerX:a,centerY:u,outerRadius:pe,innerRadius:Ce,startAngle:et-Ut,endAngle:$e+Ut,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:V,endCornerRadius:V,fill:Et})}else{Ct!=null||(Ct=ve);for(let It=0;It<Ct.length-1;It++){let Rt=Ct[It],Xt=Ct[It+1],Yt={value:k,segmentStart:Rt,segmentEnd:Xt},Ut=It===0,oi=It===Ct.length-2,ti=lt.convert(Rt),ai=lt.convert(Xt);$.enabled&&ke.push({series:this,itemId:`value-${It}`,datum:Yt,type:0,centerX:a,centerY:u,outerRadius:pe,innerRadius:Ce,startAngle:ti,endAngle:ai,clipStartAngle:ht,clipEndAngle:vt,startCornerRadius:at||Ut?V:0,endCornerRadius:at||oi?V:0,fill:yt}),qe.push({series:this,itemId:`scale-${It}`,datum:Yt,type:0,centerX:a,centerY:u,outerRadius:pe,innerRadius:Ce,startAngle:ti,endAngle:ai,clipStartAngle:void 0,clipEndAngle:void 0,startCornerRadius:at||Ut?V:0,endCornerRadius:at||oi?V:0,fill:Et})}}if(!q.enabled&&se.enabled){let{text:It,color:Rt,fontSize:Xt,minimumFontSize:Yt,fontStyle:Ut,fontWeight:oi,fontFamily:ti,lineHeight:ai,formatter:ui=qt=>this.formatLabel(qt.value)}=se;ze.push({label:"primary",centerX:a,centerY:u,text:It,value:k,fill:Rt,fontSize:Xt,minimumFontSize:Yt,fontStyle:Ut,fontWeight:oi,fontFamily:ti,lineHeight:ai,formatter:ui})}if(!q.enabled&&de.enabled){let{text:It,color:Rt,fontSize:Xt,minimumFontSize:Yt,fontStyle:Ut,fontWeight:oi,fontFamily:ti,lineHeight:ai,formatter:ui}=de;ze.push({label:"secondary",centerX:a,centerY:u,text:It,value:k,fill:Rt,fontSize:Xt,minimumFontSize:Yt,fontStyle:Ut,fontWeight:oi,fontFamily:ti,lineHeight:ai,formatter:ui})}if(q.enabled){let It=q.radiusRatio!=null?n*q.radiusRatio:Ce;It=Math.max(It-q.spacing,0);let Rt=lt.convert(k);Te.push({centerX:a,centerY:u,radius:It,angle:Rt})}for(let It=0;It<Se.length;It+=1){let Rt=Se[It],{value:Xt,text:Yt,size:Ut,shape:oi,fill:ti,fillOpacity:ai,stroke:ui,strokeWidth:qt,strokeOpacity:Zt,lineDash:pi,lineDashOffset:si}=Rt;if(Xt<Math.min(...ve)||Xt>Math.max(...ve))continue;let ci=this.getTargetRadius(Rt),yi=lt.convert(Xt),sn=Obe(Rt.rotation+Bbe[Rt.placement]);De.push({series:this,itemId:`target-${It}`,midPoint:{x:ci*Math.cos(yi)+a,y:ci*Math.sin(yi)+u},datum:{value:Xt},type:1,value:Xt,text:Yt,centerX:a,centerY:u,shape:oi,radius:ci,angle:yi,rotation:sn,size:Ut,fill:ti,fillOpacity:ai,stroke:ui,strokeOpacity:Zt,strokeWidth:qt,lineDash:pi,lineDashOffset:si,label:this.getTargetLabel(Rt)})}return{itemId:e,nodeData:ke,needleData:Te,targetData:De,labelData:ze,scaleData:qe}}updateSelections(e){(this.nodeDataRefresh||e)&&(this.contextNodeData=this.createNodeData(),this.nodeDataRefresh=!1)}highlightDatum(e){if(e!=null&&e.series===this&&e.type===1)return e}update({seriesRect:e}){var se,de,pe,Ce,Se,ve,ke,De,Te,ze;let{datumSelection:t,labelSelection:n,needleSelection:a,targetSelection:u,targetLabelSelection:y,scaleSelection:k,highlightTargetSelection:R}=this,F=this.checkResize(e);this.updateSelections(F),this.contentGroup.visible=this.visible,this.contentGroup.opacity=this.getOpacity();let _=(de=(se=this.contextNodeData)==null?void 0:se.nodeData)!=null?de:[],V=(Ce=(pe=this.contextNodeData)==null?void 0:pe.labelData)!=null?Ce:[],K=(ve=(Se=this.contextNodeData)==null?void 0:Se.needleData)!=null?ve:[],q=(De=(ke=this.contextNodeData)==null?void 0:ke.targetData)!=null?De:[],$=(ze=(Te=this.contextNodeData)==null?void 0:Te.scaleData)!=null?ze:[],te=this.highlightDatum(this.ctx.highlightManager.getActiveHighlight());this.scaleSelection=this.updateScaleSelection({scaleData:$,scaleSelection:k}),this.updateScaleNodes({scaleSelection:k}),this.needleSelection=this.updateNeedleSelection({needleData:K,needleSelection:a}),this.updateNeedleNodes({needleSelection:a}),this.targetSelection=this.updateTargetSelection({targetData:q,targetSelection:u}),this.updateTargetNodes({targetSelection:u,isHighlight:!1}),this.targetLabelSelection=this.updateTargetLabelSelection({targetData:q,targetLabelSelection:y}),this.updateTargetLabelNodes({targetLabelSelection:y}),this.datumSelection=this.updateDatumSelection({nodeData:_,datumSelection:t}),this.updateDatumNodes({datumSelection:t}),this.labelSelection=this.updateLabelSelection({labelData:V,labelSelection:n}),this.updateLabelNodes({labelSelection:n}),this.highlightTargetSelection=this.updateTargetSelection({targetData:te!=null?[te]:[],targetSelection:R}),this.updateTargetNodes({targetSelection:R,isHighlight:!0}),F&&this.animationState.transition("resize"),this.animationState.transition("update")}updateDatumSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>Y5(e.nodeData.length,t.itemId))}updateDatumNodes(e){var te;let{datumSelection:t}=e,{ctx:n,properties:a}=this,{bar:u,segmentation:y}=a,k=(te=y.spacing)!=null?te:0,{fillOpacity:R,stroke:F,strokeOpacity:_,lineDash:V,lineDashOffset:K}=u,q=this.getStrokeWidth(u.strokeWidth),$=n.animationManager.isSkipped();t.each((se,de)=>{let{centerX:pe,centerY:Ce,innerRadius:Se,outerRadius:ve,startCornerRadius:ke,endCornerRadius:De,fill:Te}=de;se.centerX=pe,se.centerY=Ce,se.innerRadius=Se,se.outerRadius=ve,se.fill=Te,se.fillOpacity=R,se.stroke=F,se.strokeOpacity=_,se.strokeWidth=q,se.lineDash=V,se.lineDashOffset=K,se.startOuterCornerRadius=ke,se.startInnerCornerRadius=ke,se.endOuterCornerRadius=De,se.endInnerCornerRadius=De,se.radialEdgeInset=(k+se.strokeWidth)/2,se.concentricEdgeInset=se.strokeWidth/2,($||se.previousDatum==null)&&se.setProperties(q5(se,de))})}updateScaleSelection(e){return e.scaleSelection.update(e.scaleData,void 0,t=>Y5(e.scaleData.length,t.itemId))}updateScaleNodes(e){var K;let{scaleSelection:t}=e,{scale:n,segmentation:a}=this.properties,u=(K=a.spacing)!=null?K:0,{fillOpacity:y,stroke:k,strokeOpacity:R,strokeWidth:F,lineDash:_,lineDashOffset:V}=n;t.each((q,$)=>{let{centerX:te,centerY:se,innerRadius:de,outerRadius:pe,startCornerRadius:Ce,endCornerRadius:Se,fill:ve}=$;q.centerX=te,q.centerY=se,q.innerRadius=de,q.outerRadius=pe,q.fill=ve,q.fillOpacity=y,q.stroke=k,q.strokeOpacity=R,q.strokeWidth=F,q.lineDash=_,q.lineDashOffset=V,q.startOuterCornerRadius=Ce,q.startInnerCornerRadius=Ce,q.endOuterCornerRadius=Se,q.endInnerCornerRadius=Se,q.radialEdgeInset=(u+q.strokeWidth)/2,q.concentricEdgeInset=q.strokeWidth/2,q.setProperties(q5(q,$))})}updateNeedleSelection(e){return e.needleSelection.update(e.needleData,void 0,()=>Y5([]))}updateNeedleNodes(e){let{needleSelection:t}=e,{fill:n,fillOpacity:a,stroke:u,strokeOpacity:y,strokeWidth:k,lineDash:R,lineDashOffset:F}=this.properties.needle,_=this.ctx.animationManager.isSkipped();t.each((V,K)=>{let{centerX:q,centerY:$,radius:te}=K,se=te*2;V.d=G5.defaultPathData,V.fill=n,V.fillOpacity=a,V.stroke=u,V.strokeOpacity=y,V.strokeWidth=k/se,V.lineDash=R.map(de=>de/se),V.lineDashOffset=F/se,V.translationX=q,V.translationY=$,V.scalingX=se,V.scalingY=se,_&&V.setProperties(Iq(V,K))})}updateTargetSelection(e){return e.targetSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetNodes(e){let{targetSelection:t,isHighlight:n}=e,a=n?this.properties.highlightStyle.item:void 0;t.each((u,y)=>{var Se,ve,ke,De,Te,ze,qe;let{centerX:k,centerY:R,angle:F,radius:_,size:V,rotation:K,fill:q,fillOpacity:$,stroke:te,strokeOpacity:se,strokeWidth:de,lineDash:pe,lineDashOffset:Ce}=y;u.size=V,u.fill=(Se=a==null?void 0:a.fill)!=null?Se:q,u.fillOpacity=(ve=a==null?void 0:a.fillOpacity)!=null?ve:$,u.stroke=(ke=a==null?void 0:a.stroke)!=null?ke:te,u.strokeOpacity=(De=a==null?void 0:a.strokeOpacity)!=null?De:se,u.strokeWidth=(Te=a==null?void 0:a.strokeWidth)!=null?Te:de,u.lineDash=(ze=a==null?void 0:a.lineDash)!=null?ze:pe,u.lineDashOffset=(qe=a==null?void 0:a.lineDashOffset)!=null?qe:Ce,u.translationX=k+_*Math.cos(F),u.translationY=R+_*Math.sin(F),u.rotation=F+K})}updateTargetLabelSelection(e){return e.targetLabelSelection.update(e.targetData,void 0,t=>t.itemId)}updateTargetLabelNodes(e){let{targetLabelSelection:t}=e;t.each((n,a)=>{let{centerX:u,centerY:y,radius:k,angle:R,text:F}=a,{offsetX:_,offsetY:V,fill:K,fontStyle:q,fontWeight:$,fontSize:te,fontFamily:se,textAlign:de,textBaseline:pe}=a.label;if(F==null){n.visible=!1;return}n.visible=!0,n.x=u+k*Math.cos(R)+_,n.y=y+k*Math.sin(R)+V,n.text=F,n.fill=K,n.fontStyle=q,n.fontWeight=$,n.fontSize=te,n.fontFamily=se,n.textAlign=de,n.textBaseline=pe})}updateLabelSelection(e){return e.labelSelection.update(e.labelData,void 0,t=>t.label)}updateLabelNodes(e){let{labelSelection:t}=e,n=this.ctx.animationManager.isSkipped();t.each((a,u)=>{a.fill=u.fill,a.fontStyle=u.fontStyle,a.fontWeight=u.fontWeight,a.fontFamily=u.fontFamily}),(n||this.labelsHaveExplicitText())&&this.formatLabelText()}labelsHaveExplicitText(){for(let{datum:e}of this.labelSelection)if(e.text==null)return!1;return!0}formatLabelText(e){if(this.axes[xA.X]==null)return;let{labelSelection:n,radius:a,textAlign:u,verticalAlign:y}=this,{spacing:k,innerRadiusRatio:R}=this.properties;Rbe(this,n,{padding:k,textAlign:u,verticalAlign:y},a*R,e)}resetAllAnimation(){this.ctx.animationManager.stopByAnimationGroupId(this.id),Tq([this.datumSelection],q5),Tq([this.needleSelection],Iq),this.formatLabelText()}resetAnimation(e){e==="initial"?this.animationState.transition("reset"):e==="ready"&&this.animationState.transition("skip")}animateLabelText(e={}){var k;let{animationManager:t}=this.ctx,n,a,u,y;if(this.labelSelection.each((R,F)=>{var _,V,K,q,$,te;R.opacity=1,F.label==="primary"?(n=(K=(V=(_=R.previousDatum)==null?void 0:_.value)!=null?V:e.from)!=null?K:F.value,a=F.value):F.label==="secondary"&&(u=(te=($=(q=R.previousDatum)==null?void 0:q.value)!=null?$:e.from)!=null?te:F.value,y=F.value)}),!this.labelsHaveExplicitText())if(a==null||y==null)this.formatLabelText();else if(n===a&&u===y)this.formatLabelText({label:a,secondaryLabel:y});else{let R=`${this.id}_labels`;t.animate({id:R,groupId:"label",from:{label:n,secondaryLabel:u},to:{label:a,secondaryLabel:y},phase:(k=e.phase)!=null?k:"update",onUpdate:F=>this.formatLabelText(F)})}}animateEmptyUpdateReady(){var a,u,y,k;let{animationManager:e}=this.ctx,{node:t,needle:n}=Eq(!0,(u=(a=this.axes[xA.X])==null?void 0:a.range[0])!=null?u:0);oO(this.id,"node",e,[this.datumSelection],t,(R,F)=>F.itemId),oO(this.id,"needle",e,[this.needleSelection],n,()=>"needle"),oO(this.id,"label",e,[this.labelSelection],y9,(R,F)=>F.label),this.animateLabelText({from:(k=(y=this.axes[xA.X])==null?void 0:y.scale.domain[0])!=null?k:0,phase:"initial"})}animateWaitingUpdateReady(){var a,u;let{animationManager:e}=this.ctx,{node:t,needle:n}=Eq(!1,(u=(a=this.axes[xA.X])==null?void 0:a.range[0])!=null?u:0);oO(this.id,"node",e,[this.datumSelection],t,(y,k)=>k.itemId),oO(this.id,"needle",e,[this.needleSelection],n,()=>"needle"),this.animateLabelText()}animateReadyResize(){this.resetAllAnimation()}getSeriesDomain(){return[NaN,NaN]}getSeriesRange(e,t){return[NaN,NaN]}getLegendData(){return[]}pickNode(e,t){switch(t){case"event":case"context-menu":{let n=this.scaleGroup.pickNode(e.x,e.y);return n!=null?{pickMode:aO._ModuleSupport.SeriesNodePickMode.EXACT_SHAPE_MATCH,match:n.datum,distance:0}:void 0}case"tooltip":case"highlight":case"highlight-tooltip":{let n=this.itemTargetGroup.pickNode(e.x,e.y);return n!=null?{pickMode:aO._ModuleSupport.SeriesNodePickMode.EXACT_SHAPE_MATCH,match:n.datum,distance:0}:{pickMode:aO._ModuleSupport.SeriesNodePickMode.NEAREST_NODE,match:this.nodeDatum,distance:0}}}}getTooltipContent(e){var R;let{id:t,properties:n}=this,{tooltip:a}=n;if(!n.isValid())return;let u=this.highlightDatum(e),y=(R=u==null?void 0:u.value)!=null?R:n.value,k=u==null?void 0:u.text;return a.formatTooltip({data:[{label:k!=null?k:"",value:this.formatLabel(y)}]},{seriesId:t,title:void 0,datum:void 0,value:y})}pickFocus(e){var u;let t=(u=this.contextNodeData)==null?void 0:u.targetData;if(t==null||t.length===0)return;let n=Math.min(Math.max(e.datumIndex,0),t.length-1),a=t[n];for(let y of this.targetSelection)if(y.datum===a)return{bounds:y.node,showFocusBox:!0,clipFocusBox:!0,datum:a,datumIndex:n}}getCaptionText(){let{value:e}=this.properties,t=[];return t.push(this.formatLabel(e)),this.labelSelection.each((n,a)=>{let u=Z2(this,a);u!=null&&t.push(u)}),t.join(". ")}};Z5.className="RadialGaugeSeries",Z5.type="radial-gauge";var{ThemeSymbols:{DEFAULT_FONT_FAMILY:$5,DEFAULT_HIERARCHY_FILLS:jbe,DEFAULT_LABEL_COLOUR:rO,DEFAULT_MUTED_LABEL_COLOUR:Hbe,DEFAULT_GAUGE_SERIES_COLOR_RANGE:Wbe},ThemeConstants:{POLAR_AXIS_TYPE:Q5}}=gbe._ModuleSupport,Ube={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["gauge"],identifier:"radial-gauge",moduleFactory:e=>new Z5(e),tooltipDefaults:{range:"exact"},defaultAxes:[{type:Q5.ANGLE_NUMBER,line:{enabled:!1}},{type:Q5.RADIUS_NUMBER,line:{enabled:!1}}],themeTemplate:{minWidth:200,minHeight:200,series:{outerRadiusRatio:1,innerRadiusRatio:.8,bar:{strokeWidth:0},segmentation:{enabled:!1,interval:{},spacing:2},defaultTarget:{fill:rO,stroke:rO,size:10,shape:"triangle",placement:"outside",spacing:5,label:{enabled:!0,fontWeight:"normal",fontSize:12,fontFamily:$5,color:rO,spacing:5}},needle:{enabled:!1,fill:rO,spacing:10},label:{enabled:!0,fontWeight:"normal",fontSize:56,minimumFontSize:18,fontFamily:$5,color:rO},secondaryLabel:{enabled:!0,fontWeight:"normal",fontSize:14,minimumFontSize:12,fontFamily:$5,color:Hbe},tooltip:{enabled:!1}},axes:{[Q5.ANGLE_NUMBER]:{startAngle:270,endAngle:270+180,nice:!1,line:{enabled:!1}}}},paletteFactory(e){let{takeColors:t,colorsCount:n,userPalette:a,themeTemplateParameters:u}=e,{fills:y}=t(n),k=u.get(Wbe),R=u.get(jbe),F=a==="inbuilt"?k:[y[0],y[1]];return{scale:{defaultFill:R==null?void 0:R[1],stroke:R==null?void 0:R[2]},defaultColorRange:v9(F)}}},Kbe=(mt(),T(pt)),GN=(mt(),T(pt)),qbe=1e3;function Fq(e,t,n,a,u,y){let k=e[y];if(k==null)return!1;let R=Z_(k,t,n),F=$_(R,u);return y===a[F+zg]}function _q(e,t,n,a,u,y){let k=e[y];if(k==null)return!1;let R=Z_(k,t,n),F=$_(R,u);return y===a[F+Ng]}function Ybe(e,t,n,a){if(e.length<qbe)return;let[u,y]=L2(a),k=P2(e),{indexData:R,valueData:F}=O2(e,t,n,u,y,k),_=[],V=[];for(let q=0;q<e.length;q+=1)Fq(e,u,y,R,k,q)&&_.push(q),_q(e,u,y,R,k,q)&&V.push(q);let K=[{maxRange:k,topIndices:_,bottomIndices:V}];for(;k>64;)({maxRange:k}=F2(R,F,k,{inPlace:!0})),_=_.filter(Fq.bind(null,e,u,y,R,k)),V=V.filter(_q.bind(null,e,u,y,R,k)),K.push({maxRange:k,topIndices:_,bottomIndices:V});return K.reverse(),K}var Xbe=(mt(),T(pt)),{CartesianSeriesProperties:Zbe,InterpolationProperties:$be,SeriesMarker:Qbe,SeriesTooltip:Jbe,Validate:Is,BOOLEAN:eCe,COLOR_STRING:Nq,LINE_DASH:tCe,OBJECT:sO,PLACEMENT:iCe,POSITIVE_NUMBER:J5,RATIO:zq,STRING:UE,DropShadow:nCe,Label:aCe}=Xbe._ModuleSupport,eV=class extends aCe{constructor(){super(...arguments),this.placement="outside",this.padding=6}};me([Is(iCe)],eV.prototype,"placement",2),me([Is(J5)],eV.prototype,"padding",2);var ll=class extends Zbe{constructor(){super(...arguments),this.fill="#99CCFF",this.fillOpacity=1,this.stroke="#99CCFF",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.interpolation=new $be,this.shadow=new nCe().set({enabled:!1}),this.marker=new Qbe,this.label=new eV,this.tooltip=new Jbe,this.connectMissingData=!1}};me([Is(UE)],ll.prototype,"xKey",2),me([Is(UE)],ll.prototype,"yLowKey",2),me([Is(UE)],ll.prototype,"yHighKey",2),me([Is(UE,{optional:!0})],ll.prototype,"xName",2),me([Is(UE,{optional:!0})],ll.prototype,"yName",2),me([Is(UE,{optional:!0})],ll.prototype,"yLowName",2),me([Is(UE,{optional:!0})],ll.prototype,"yHighName",2),me([Is(Nq)],ll.prototype,"fill",2),me([Is(zq)],ll.prototype,"fillOpacity",2),me([Is(Nq)],ll.prototype,"stroke",2),me([Is(J5)],ll.prototype,"strokeWidth",2),me([Is(zq)],ll.prototype,"strokeOpacity",2),me([Is(tCe)],ll.prototype,"lineDash",2),me([Is(J5)],ll.prototype,"lineDashOffset",2),me([Is(sO)],ll.prototype,"interpolation",2),me([Is(sO)],ll.prototype,"shadow",2),me([Is(sO)],ll.prototype,"marker",2),me([Is(sO)],ll.prototype,"label",2),me([Is(sO)],ll.prototype,"tooltip",2),me([Is(eCe)],ll.prototype,"connectMissingData",2);var oCe=(mt(),T(pt)),{CollapseMode:VN,isScaleValid:Bq,pairUpSpans:jN,prepareAreaFillAnimationFns:rCe,plotInterpolatedLinePathStroke:hP,prepareLinePathPropertyAnimation:sCe,areScalingEqual:Gq}=oCe._ModuleSupport;function lCe(e,t,n,a){let u=(F,_)=>{hP(F,_,t.removed),hP(F,_,n.removed)},y=(F,_)=>{hP(F,_,t.moved),hP(F,_,n.moved)},k=(F,_)=>{hP(F,_,t.added),hP(F,_,n.added)},R=sCe(e,a);return{status:e,path:{addPhaseFn:k,updatePhaseFn:y,removePhaseFn:u},pathProperties:R}}function cCe(e,t,n){var te,se,de;let a=((te=e.scales.x)==null?void 0:te.type)==="category",u=((se=t.scales.x)==null?void 0:se.type)==="category";if(a!==u||!Bq(e.scales.x)||!Bq(t.scales.x))return;let y="updated";t.visible&&!e.visible?y="removed":!t.visible&&e.visible&&(y="added");let k=jN({scales:e.scales,data:e.fillData.spans},{scales:t.scales,data:t.fillData.spans},VN.Split);if(k==null)return;let R=jN({scales:e.scales,data:e.fillData.phantomSpans},{scales:t.scales,data:t.fillData.phantomSpans},VN.Split);if(R==null)return;let F=jN({scales:e.scales,data:e.highStrokeData.spans},{scales:t.scales,data:t.highStrokeData.spans},VN.Split);if(F==null)return;let _=jN({scales:e.scales,data:e.lowStrokeData.spans},{scales:t.scales,data:t.lowStrokeData.spans},VN.Split);if(_==null)return;let V="fade",K=rCe(y,k,R,V),q=lCe(y,F,_,V),$=((de=n==null?void 0:n.changed)!=null?de:!0)||!Gq(e.scales.x,t.scales.x)||!Gq(e.scales.y,t.scales.y)||y!=="updated";return{status:y,fill:K,stroke:q,hasMotion:$}}var{valueProperty:Vq,keyProperty:dCe,ChartAxisDirection:nm,mergeDefaults:uCe,updateLabelNode:hCe,fixNumericExtent:jq,buildResetPathFn:gCe,resetLabelFn:pCe,resetMarkerFn:mCe,resetMarkerPositionFn:Hq,pathSwipeInAnimation:fCe,resetMotion:vCe,markerSwipeScaleInAnimation:yCe,seriesLabelFadeInAnimation:tV,animationValidation:bCe,diff:CCe,updateClipPath:Wq,computeMarkerFocusBounds:Uq,plotAreaPathFill:SCe,plotLinePathStroke:Kq,interpolatePoints:qq,pathFadeInAnimation:Yq,markerFadeInAnimation:Xq,fromToMotion:Zq,pathMotion:$q,extent:wCe,getMarker:xCe,visibleRangeIndices:MCe,createDatumId:kCe,PointerEvents:iV,Group:ACe,BBox:DCe,ContinuousScale:ECe,OrdinalTimeScale:ICe}=GN._ModuleSupport,TCe=class extends GN._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.xKey,this.yLowKey=a.properties.yLowKey,this.yHighKey=a.properties.yHighKey}},nV=class extends GN._ModuleSupport.CartesianSeries{constructor(e){super({moduleCtx:e,hasMarkers:!0,pathsPerSeries:["fill","stroke"],pickModes:[GN._ModuleSupport.SeriesNodePickMode.AXIS_ALIGNED],directionKeys:{[nm.X]:["xKey"],[nm.Y]:["yLowKey","yHighKey"]},directionNames:{[nm.X]:["xName"],[nm.Y]:["yLowName","yHighName","yName"]},animationResetFns:{path:gCe({getVisible:()=>this.visible,getOpacity:()=>this.getOpacity()}),label:pCe,marker:(t,n)=>ge(ge({},mCe(t)),Hq(t,n))}}),this.properties=new ll,this.NodeEvent=TCe,this.dataAggregationFilters=void 0}async processData(e){var q,$;if(!this.properties.isValid())return;let{xKey:t,yLowKey:n,yHighKey:a}=this.properties,u=(q=this.axes[nm.X])==null?void 0:q.scale,y=($=this.axes[nm.Y])==null?void 0:$.scale,{xScaleType:k,yScaleType:R}=this.getScaleInformation({xScale:u,yScale:y}),F=[],_=!this.ctx.animationManager.isSkipped();!this.ctx.animationManager.isSkipped()&&this.processedData&&F.push(CCe(this.id,this.processedData)),_&&F.push(bCe());let{dataModel:V,processedData:K}=await this.requestDataModel(e,this.data,{props:[dCe(t,k,{id:"xValue"}),Vq(n,R,{id:"yLowValue"}),Vq(a,R,{id:"yHighValue"}),...F]});this.dataAggregationFilters=this.aggregateData(V,K),this.animationState.transition("updateData")}aggregateData(e,t){if(t.rawData.length===0)return;let n=this.axes[nm.X];if(n==null||!(ECe.is(n.scale)||ICe.is(n.scale)))return;let a=e.resolveKeysById(this,"xValue",t),u=e.resolveColumnById(this,"yHighValue",t),y=e.resolveColumnById(this,"yLowValue",t),{index:k}=e.resolveProcessedDataDefById(this,"xValue"),R=t.domain.keys[k];return Ybe(a,u,y,R)}getSeriesDomain(e){let{processedData:t,dataModel:n}=this;if(!(t&&n))return[];let{domain:{keys:[a],values:u}}=t;if(e===nm.X){let y=n.resolveProcessedDataDefById(this,"xValue");return(y==null?void 0:y.def.type)==="key"&&y.def.valueType==="category"?a:jq(wCe(a))}else{let y=n.resolveProcessedDataIndexById(this,"yLowValue"),k=u[y],R=n.resolveProcessedDataIndexById(this,"yHighValue"),F=u[R],_=[k[0]>F[0]?F[0]:k[0],F[1]<k[1]?k[1]:F[1]];return jq(_)}}visibleRangeIndices(e,t){var k;let{dataModel:n,processedData:a}=this;if(!n||!a)return[0,0];let u=this.axes[nm.X].scale,y=n.resolveKeysById(this,"xValue",a);return MCe((k=t==null?void 0:t.length)!=null?k:y.length,e,R=>{var _;let F=u.convert(y[(_=t==null?void 0:t[R])!=null?_:R]);return[F,F]})}getSeriesRange(e,t){let{dataModel:n,processedData:a}=this;if(!n||!a)return[NaN,NaN];let[u,y]=this.visibleRangeIndices(t);return n.getDomainBetweenRange(this,["yLowValue","yHighValue"],[u,y],a)}createNodeData(){var At,Dt,Ot,It;let{data:e,dataModel:t,processedData:n,axes:a}=this,u=a[nm.X],y=a[nm.Y];if(!(e&&u&&y&&t&&n!=null&&n.rawData.length!==0))return;let k=u.scale,R=y.scale,{xKey:F,yLowKey:_,yHighKey:V,connectMissingData:K,marker:q,interpolation:$}=this.properties,{rawData:te}=n,se=((At=k.bandwidth)!=null?At:0)/2,de=t.resolveKeysById(this,"xValue",n),pe=t.resolveColumnById(this,"yHighValue",n),Ce=t.resolveColumnById(this,"yLowValue",n),Se=Rt=>k.convert(de[Rt])+se,ve=[],ke=[],De=[],Te=(Rt,Xt,Yt)=>{let Ut=te[Rt],oi=de[Rt];if(oi==null)return;let ti=De[De.length-1];if(Number.isFinite(Xt)&&Number.isFinite(Yt)){let ai=(yi,sn,Ni)=>{ke.push({index:Rt,series:this,itemId:yi,datum:Ut,datumIndex:Rt,midPoint:{x:qt,y:Ni},yHighValue:Xt,yLowValue:Yt,xValue:oi,xKey:F,yLowKey:_,yHighKey:V,point:{x:qt,y:Ni,size:si},enabled:!0});let nn=this.createLabelData({point:{x:qt,y:Ni},value:sn,yLowValue:Yt,yHighValue:Xt,itemId:yi,inverted:ui,datum:Ut,series:this});ve.push(nn)},ui=Yt>Xt,qt=Se(Rt),Zt=R.convert(Xt),pi=R.convert(Yt),{size:si}=q;ai("high",Xt,Zt),ai("low",Yt,pi);let ci={high:{point:{x:qt,y:Zt},xDatum:oi,yDatum:Xt},low:{point:{x:qt,y:pi},xDatum:oi,yDatum:Yt}};Array.isArray(ti)?ti.push(ci):ti!=null?(ti.skip+=1,De.push([ci])):De.push([ci])}else K||(Array.isArray(ti)||ti==null?De.push({skip:0}):ti.skip+=1)},{dataAggregationFilters:ze}=this,[qe,et]=k.range,$e=et-qe,lt=ze==null?void 0:ze.find(Rt=>Rt.maxRange>$e),at=lt==null?void 0:lt.topIndices,ht=lt==null?void 0:lt.bottomIndices,[vt,wt]=this.visibleRangeIndices(u.range,at);vt=Math.max(vt-1,0),wt=Math.min(wt+1,(Dt=at==null?void 0:at.length)!=null?Dt:de.length),n.rawData.length<1e3&&(vt=0,wt=n.rawData.length);for(let Rt=vt;Rt<wt;Rt+=1){let Xt=(Ot=at==null?void 0:at[Rt])!=null?Ot:Rt,Yt=(It=ht==null?void 0:ht[Rt])!=null?It:Rt;Te(Xt,pe[Xt],Ce[Yt])}let Ct=De.flatMap(Rt=>{if(!Array.isArray(Rt))return[];let Xt=Rt.map(Yt=>Yt.high);return qq(Xt,$)}),yt=De.flatMap(Rt=>{if(!Array.isArray(Rt))return[];let Xt=Rt.map(Yt=>Yt.low);return qq(Xt,$)});return{itemId:`${_}-${V}`,labelData:ve,nodeData:ke,fillData:{itemId:"high",spans:Ct,phantomSpans:yt},highStrokeData:{itemId:"high",spans:Ct},lowStrokeData:{itemId:"low",spans:yt},scales:this.calculateScaling(),visible:this.visible}}createLabelData({point:e,value:t,itemId:n,inverted:a,datum:u,series:y}){let{xKey:k,yLowKey:R,yHighKey:F,xName:_,yName:V,yLowName:K,yHighName:q,label:$}=this.properties,{placement:te,padding:se=10}=$,de=n;a&&(de=n==="low"?"high":"low");let pe=te==="outside"&&de==="high"||te==="inside"&&de==="low"?-1:1;return{x:e.x,y:e.y+se*pe,series:y,itemId:n,datum:u,text:this.getLabelText($,{value:t,datum:u,itemId:n,xKey:k,yLowKey:R,yHighKey:F,xName:_,yLowName:K,yHighName:q,yName:V}),textAlign:"center",textBaseline:pe===-1?"bottom":"top"}}isPathOrSelectionDirty(){return this.properties.marker.isDirty()}markerFactory(){let{shape:e}=this.properties.marker,t=xCe(e);return new t}updatePathNodes(e){let{opacity:t,visible:n,animationEnabled:a}=e,[u,y]=e.paths,k=this.getStrokeWidth(this.properties.strokeWidth);y.setProperties({fill:void 0,lineCap:"round",lineJoin:"round",pointerEvents:iV.None,stroke:this.properties.stroke,strokeWidth:k,strokeOpacity:this.properties.strokeOpacity,lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset,opacity:t,visible:n||a}),u.setProperties({stroke:void 0,lineJoin:"round",pointerEvents:iV.None,fill:this.properties.fill,fillOpacity:this.properties.fillOpacity,lineDash:this.properties.lineDash,lineDashOffset:this.properties.lineDashOffset,strokeOpacity:this.properties.strokeOpacity,fillShadow:this.properties.shadow,strokeWidth:k,opacity:t,visible:n||a}),Wq(this,y),Wq(this,u)}updatePaths(e){this.updateAreaPaths(e.paths,e.contextData)}updateAreaPaths(e,t){for(let n of e)n.visible=t.visible;if(t.visible)this.updateFillPath(e,t),this.updateStrokePath(e,t);else for(let n of e)n.path.clear(),n.markDirty()}updateFillPath(e,t){let[n]=e;n.path.clear(),SCe(n,t.fillData),n.markDirty()}updateStrokePath(e,t){let[,n]=e;n.path.clear(),Kq(n,t.highStrokeData.spans),Kq(n,t.lowStrokeData.spans),n.markDirty()}updateMarkerSelection(e){let{nodeData:t,markerSelection:n}=e;return this.properties.marker.isDirty()&&(n.clear(),n.cleanup()),n.update(this.properties.marker.enabled?t:[])}getMarkerItemBaseStyle(e){var y,k,R,F,_;let{properties:t}=this,{marker:n}=t,a=e?t.highlightStyle.item:void 0,u=this.getStrokeWidth(n.strokeWidth);return{size:n.size,fill:(y=a==null?void 0:a.fill)!=null?y:n.fill,fillOpacity:(k=a==null?void 0:a.fillOpacity)!=null?k:n.fillOpacity,stroke:(R=a==null?void 0:a.stroke)!=null?R:n.stroke,strokeWidth:(F=a==null?void 0:a.strokeWidth)!=null?F:u,strokeOpacity:(_=a==null?void 0:a.strokeOpacity)!=null?_:n.strokeOpacity}}getMarkerItemStyleOverrides(e,t,n,a){let{id:u,properties:y}=this,{xKey:k,yHighKey:R,yLowKey:F,marker:_}=y,{itemStyler:V}=_;if(V!=null)return this.cachedDatumCallback(kCe(e,a?"highlight":"node"),()=>V(ge({seriesId:u,datum:t,xKey:k,yHighKey:R,yLowKey:F,highlighted:a},n)))}updateMarkerNodes(e){let{markerSelection:t,isHighlight:n}=e,{xKey:a,yLowKey:u,yHighKey:y,marker:k,fill:R,stroke:F,strokeWidth:_,fillOpacity:V,strokeOpacity:K}=this.properties,q=uCe(n&&this.properties.highlightStyle.item,k.getStyle(),{fill:R,fillOpacity:V,stroke:F,strokeWidth:_,strokeOpacity:K});t.each(($,te)=>{this.updateMarkerStyle($,k,{datum:te,highlighted:n,xKey:a,yHighKey:y,yLowKey:u},q)}),n||this.properties.marker.markClean()}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;return n.update(t,a=>{a.pointerEvents=iV.None})}updateLabelNodes(e){e.labelSelection.each((t,n)=>{hCe(t,this.properties.label,n)})}getHighlightLabelData(e,t){let n=e.filter(a=>a.datum===t.datum);return n.length>0?n:void 0}getHighlightData(e,t){let n=e.filter(a=>a.datum===t.datum);return n.length>0?n:void 0}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,axes:u,properties:y}=this,{xName:k,yName:R,yLowKey:F,yLowName:_,xKey:V,yHighKey:K,yHighName:q,tooltip:$}=y,te=u[nm.X],se=u[nm.Y];if(!n||!a||a.rawData.length===0||!te||!se)return;let{datumIndex:de}=e,pe=a.rawData[de],Ce=n.resolveKeysById(this,"xValue",a)[de],Se=n.resolveColumnById(this,"yHighValue",a)[de],ve=n.resolveColumnById(this,"yLowValue",a)[de];if(Ce==null)return;let ke=this.getMarkerItemBaseStyle(!1);Object.assign(ke,this.getMarkerItemStyleOverrides(String(de),de,ke,!1));let De=`${se.formatDatum(ve)} - ${se.formatDatum(Se)}`;return $.formatTooltip({heading:te.formatDatum(Ce),symbol:this.legendItemSymbol(),data:[{label:R,fallbackLabel:`${_!=null?_:F} - ${q!=null?q:q}`,value:De}]},ge({seriesId:t,datum:pe,title:R,itemId:e.itemId,xName:k,yName:R,yLowKey:F,yLowName:_,xKey:V,yHighKey:K,yHighName:q},ke))}legendItemSymbol(){var k,R;let{fill:e,stroke:t,strokeWidth:n,strokeOpacity:a,lineDash:u,marker:y}=this.properties;return{marker:{shape:y.shape,fill:(k=y.fill)!=null?k:e,stroke:(R=y.stroke)!=null?R:t,fillOpacity:y.fillOpacity,strokeOpacity:y.strokeOpacity,strokeWidth:y.strokeWidth},line:{stroke:t,strokeOpacity:a,strokeWidth:n,lineDash:u}}}getLegendData(e){if(e!=="category")return[];let{id:t,visible:n}=this,{yLowKey:a,yHighKey:u,yName:y,yLowName:k,yHighName:R,showInLegend:F}=this.properties,_=y!=null?y:`${k!=null?k:a} - ${R!=null?R:u}`,V=`${a}-${u}`;return[{legendType:"category",id:t,itemId:V,seriesId:t,enabled:n,label:{text:`${_}`},symbol:this.legendItemSymbol(),hideInLegend:!F}]}isLabelEnabled(){return this.properties.label.enabled}onDataChange(){}nodeFactory(){return new ACe}animateEmptyUpdateReady(e){let{markerSelection:t,labelSelection:n,contextData:a,paths:u}=e,{animationManager:y}=this.ctx;this.updateAreaPaths(u,a),fCe(this,y,...u),vCe([t],Hq),yCe(this,y,t),tV(this,"labels",y,n)}animateReadyResize(e){let{contextData:t,paths:n}=e;this.updateAreaPaths(n,t),super.animateReadyResize(e)}animateWaitingUpdateReady(e){var q,$,te;let{animationManager:t}=this.ctx,{markerSelection:n,labelSelection:a,contextData:u,paths:y,previousContextData:k}=e,[R,F]=y;if(R==null&&F==null)return;this.resetMarkerAnimation(e),this.resetLabelAnimation(e);let _=()=>{this.resetPathAnimation(e),this.updateAreaPaths(y,u)},V=()=>{t.skipCurrentBatch(),_()};if(u==null||k==null){_(),Xq(this,t,"added",n),Yq(this,"fill_path_properties",t,"add",R),Yq(this,"stroke_path_properties",t,"add",F),tV(this,"labels",t,a);return}let K=cCe(u,k,(te=($=(q=this.processedData)==null?void 0:q.reduced)==null?void 0:$.diff)==null?void 0:te[this.id]);if(K===void 0){V();return}else if(K.status==="no-op")return;Zq(this.id,"fill_path_properties",t,[R],K.fill.pathProperties),Zq(this.id,"stroke_path_properties",t,[F],K.stroke.pathProperties),K.status==="added"?this.updateAreaPaths(y,u):K.status==="removed"?this.updateAreaPaths(y,k):($q(this.id,"fill_path_update",t,[R],K.fill.path),$q(this.id,"stroke_path_update",t,[F],K.stroke.path)),K.hasMotion&&(Xq(this,t,void 0,n),tV(this,"labels",t,a)),this.ctx.animationManager.animate({id:this.id,groupId:"reset_after_animation",phase:"trailing",from:{},to:{},onComplete:()=>this.updateAreaPaths(y,u)})}getFormattedMarkerStyle(e){let{xKey:t,yLowKey:n,yHighKey:a}=this.properties;return this.getMarkerStyle(this.properties.marker,{datum:e,xKey:t,yLowKey:n,yHighKey:a,highlighted:!0})}computeFocusBounds(e){let t=Uq(this,e),n=Uq(this,He(ge({},e),{datumIndex:e.datumIndex+1}));if(t&&n)return DCe.merge([t,n])}computeFocusDatumIndex(e,t){let n=He(ge({},e),{datumIndex:e.datumIndex+e.datumIndexDelta,datumIndexDelta:e.datumIndexDelta*2});return super.computeFocusDatumIndex(n,t)}};nV.className="RangeAreaSeries",nV.type="range-area";var aV=(mt(),T(pt)),RCe={series:{fillOpacity:.7,nodeClickRange:"nearest",marker:{enabled:!1,size:6,strokeWidth:2},label:{enabled:!1,placement:"outside",padding:10,fontSize:12,fontFamily:aV._ModuleSupport.ThemeSymbols.DEFAULT_FONT_FAMILY,color:aV._ModuleSupport.ThemeSymbols.DEFAULT_LABEL_COLOUR},interpolation:{type:"linear",tension:1,position:"end"}},axes:{[aV._ModuleSupport.ThemeConstants.CARTESIAN_AXIS_TYPE.NUMBER]:{crosshair:{enabled:!0}}}},{markerPaletteFactory:PCe,ThemeConstants:{CARTESIAN_AXIS_TYPE:Qq,CARTESIAN_POSITION:Jq}}=Kbe._ModuleSupport,LCe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"range-area",moduleFactory:e=>new nV(e),tooltipDefaults:{range:"nearest"},defaultAxes:[{type:Qq.NUMBER,position:Jq.LEFT},{type:Qq.CATEGORY,position:Jq.BOTTOM}],themeTemplate:RCe,paletteFactory:e=>{let{marker:t}=PCe(e);return{fill:t.fill,stroke:t.stroke,marker:t}}},eY=(mt(),T(pt)),oV=(mt(),T(pt)),OCe=1e3,FCe=5;function _Ce(e,t,n,a){if(e.length<OCe)return;let[u,y]=L2(a),k=P2(e,FCe),{indexData:R,valueData:F}=O2(e,t,n,u,y,k),_=[{maxRange:k,indexData:R}];for(;k>64;)({indexData:R,valueData:F,maxRange:k}=F2(R,F,k)),_.push({maxRange:k,indexData:R});return _.reverse(),_}var NCe=(mt(),T(pt)),{AbstractBarSeriesProperties:zCe,SeriesTooltip:BCe,Validate:Ts,COLOR_STRING:tY,FUNCTION:GCe,LINE_DASH:VCe,OBJECT:rV,PLACEMENT:jCe,POSITIVE_NUMBER:HN,RATIO:iY,STRING:KE,BOOLEAN:HCe,DropShadow:WCe,Label:UCe}=NCe._ModuleSupport,sV=class extends UCe{constructor(){super(...arguments),this.placement="inside",this.padding=6}};me([Ts(jCe)],sV.prototype,"placement",2),me([Ts(HN)],sV.prototype,"padding",2);var cl=class extends zCe{constructor(){super(...arguments),this.fill="#99CCFF",this.fillOpacity=1,this.stroke="#99CCFF",this.strokeWidth=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.cornerRadius=0,this.shadow=new WCe().set({enabled:!1}),this.label=new sV,this.tooltip=new BCe,this.fastDataProcessing=!1}};me([Ts(KE)],cl.prototype,"xKey",2),me([Ts(KE)],cl.prototype,"yLowKey",2),me([Ts(KE)],cl.prototype,"yHighKey",2),me([Ts(KE,{optional:!0})],cl.prototype,"xName",2),me([Ts(KE,{optional:!0})],cl.prototype,"yName",2),me([Ts(KE,{optional:!0})],cl.prototype,"yLowName",2),me([Ts(KE,{optional:!0})],cl.prototype,"yHighName",2),me([Ts(tY)],cl.prototype,"fill",2),me([Ts(iY)],cl.prototype,"fillOpacity",2),me([Ts(tY)],cl.prototype,"stroke",2),me([Ts(HN)],cl.prototype,"strokeWidth",2),me([Ts(iY)],cl.prototype,"strokeOpacity",2),me([Ts(VCe)],cl.prototype,"lineDash",2),me([Ts(HN)],cl.prototype,"lineDashOffset",2),me([Ts(HN)],cl.prototype,"cornerRadius",2),me([Ts(GCe,{optional:!0})],cl.prototype,"itemStyler",2),me([Ts(rV)],cl.prototype,"shadow",2),me([Ts(rV)],cl.prototype,"label",2),me([Ts(rV)],cl.prototype,"tooltip",2),me([Ts(HCe)],cl.prototype,"fastDataProcessing",2);var{SeriesNodePickMode:nY,valueProperty:aY,keyProperty:KCe,ChartAxisDirection:WN,getRectConfig:qCe,updateRect:YCe,checkCrisp:XCe,updateLabelNode:ZCe,SMALLEST_KEY_INTERVAL:$Ce,LARGEST_KEY_INTERVAL:QCe,diff:JCe,prepareBarAnimationFunctions:oY,midpointStartingBarPosition:rY,resetBarSelectionsFn:e0e,fixNumericExtent:t0e,seriesLabelFadeInAnimation:sY,resetLabelFn:i0e,animationValidation:n0e,computeBarFocusBounds:a0e,visibleRangeIndices:lV,createDatumId:o0e,ContinuousScale:lY,OrdinalTimeScale:r0e,Rect:s0e,PointerEvents:l0e,motion:cY}=oV._ModuleSupport,c0e=class extends oV._ModuleSupport.SeriesNodeEvent{constructor(e,t,n,a){super(e,t,n,a),this.xKey=a.properties.xKey,this.yLowKey=a.properties.yLowKey,this.yHighKey=a.properties.yHighKey}},cV=class extends oV._ModuleSupport.AbstractBarSeries{constructor(e){super({moduleCtx:e,pickModes:[nY.AXIS_ALIGNED,nY.EXACT_SHAPE_MATCH],hasHighlightedLabels:!0,directionKeys:{x:["xKey"],y:["yLowKey","yHighKey"]},directionNames:{x:["xName"],y:["yLowName","yHighName","yName"]},datumSelectionGarbageCollection:!1,animationResetFns:{datum:e0e,label:i0e}}),this.properties=new cl,this.dataAggregationFilters=void 0,this.NodeEvent=c0e}async processData(e){var se,de,pe,Ce;if(!this.properties.isValid())return;let{xKey:t,yLowKey:n,yHighKey:a,fastDataProcessing:u}=this.properties,y=!u,k=(se=this.getCategoryAxis())==null?void 0:se.scale,R=(de=this.getValueAxis())==null?void 0:de.scale,{isContinuousX:F,xScaleType:_,yScaleType:V}=this.getScaleInformation({xScale:k,yScale:R}),K=[];this.ctx.animationManager.isSkipped()||(this.processedData&&K.push(JCe(this.id,this.processedData)),K.push(n0e()));let q=this.visible?{}:{forceValue:0},{dataModel:$,processedData:te}=await this.requestDataModel(e,this.data,{props:[KCe(t,_,{id:"xValue"}),aY(n,V,ge({id:"yLowValue",invalidValue:null},q)),aY(a,V,ge({id:"yHighValue",invalidValue:null},q)),...F?[$Ce,QCe]:[],...K],groupByKeys:y});this.smallestDataInterval=(pe=te.reduced)==null?void 0:pe.smallestKeyInterval,this.largestDataInterval=(Ce=te.reduced)==null?void 0:Ce.largestKeyInterval,this.dataAggregationFilters=this.aggregateData($,te),this.animationState.transition("updateData")}aggregateData(e,t){if(t.type!=="grouped"||t.rawData.length===0)return;let n=this.axes[WN.X];if(n==null||!(lY.is(n.scale)||r0e.is(n.scale)))return;let a=e.resolveKeysById(this,"xValue",t),u=e.resolveColumnById(this,"yHighValue",t),y=e.resolveColumnById(this,"yLowValue",t),{index:k}=e.resolveProcessedDataDefById(this,"xValue"),R=t.domain.keys[k];return _Ce(a,u,y,R)}getSeriesDomain(e){let{processedData:t,dataModel:n}=this;if(!t||!n)return[];let{keys:[a],values:u}=t.domain;if(e===this.getCategoryDirection()){let y=n.resolveProcessedDataDefById(this,"xValue");return(y==null?void 0:y.def.type)==="key"&&(y==null?void 0:y.def.valueType)==="category"?a:this.padBandExtent(a)}else{let y=n.resolveProcessedDataIndexById(this,"yLowValue"),k=u[y],R=n.resolveProcessedDataIndexById(this,"yHighValue"),F=u[R],_=[k[0]>F[0]?F[0]:k[0],F[1]<k[1]?k[1]:F[1]];return t0e(_)}}getSeriesRange(e,t){var _;let{dataModel:n,processedData:a}=this;if(!n||!a)return[NaN,NaN];let u=this.axes[WN.X].scale,y=n.resolveKeysById(this,"xValue",a),k=(_=u.bandwidth)!=null?_:0,[R,F]=lV(y.length,t,V=>{let K=u.convert(y[V]);return[K,K+k]});return n.getDomainBetweenRange(this,["yHighValue","yLowValue"],[R,F],a)}createNodeData(){let{data:e,dataModel:t,groupScale:n,processedData:a,visible:u}=this,y=this.getCategoryAxis(),k=this.getValueAxis();if(!(e&&y&&k&&t&&(a!=null&&a.rawData.length)))return;let R=y.scale,F=k.scale,_=this.getBarDirection()===WN.X,{xKey:V,yLowKey:K,yHighKey:q,fill:$,stroke:te,strokeWidth:se}=this.properties,de=`${K}-${q}`,pe={itemId:de,nodeData:[],labelData:[],scales:this.calculateScaling(),visible:this.visible};if(!u)return pe;let{rawData:Ce}=a,Se=t.resolveKeysById(this,"xValue",a),ve=t.resolveColumnById(this,"yLowValue",a),ke=t.resolveColumnById(this,"yHighValue",a),{barWidth:De,groupIndex:Te}=this.updateGroupScale(y),ze=lY.is(R)?De*-.5:0,qe=n.convert(String(Te)),et=XCe(y==null?void 0:y.scale,y==null?void 0:y.visibleRange,this.smallestDataInterval,this.largestDataInterval),$e=yt=>Math.round(R.convert(Se[yt]))+qe+ze,lt=(yt,Et,At,Dt,Ot,It,Rt)=>{let Xt=Ce[yt],Yt=Se[yt];if(Yt==null)return;let Ut=ve[yt],oi=ke[yt];if(!Number.isFinite(Ut==null?void 0:Ut.valueOf())||!Number.isFinite(oi==null?void 0:oi.valueOf()))return;let[ti,ai]=Ut<oi?[Ut,oi]:[oi,Ut],ui=Math.round(F.convert(It)),qt=Math.round(F.convert(Ot)),Zt=Math.max(se,Math.abs(qt-ui)),pi={x:_?Math.min(ui,qt):At,y:_?At:Math.min(ui,qt),width:_?Zt:Dt,height:_?Dt:Zt},si={x:pi.x+pi.width/2,y:pi.y+pi.height/2},ci=this.createLabelData({rect:pi,barAlongX:_,yLowValue:ti,yHighValue:ai,datum:Xt,series:this}),yi={index:Et,valueIndex:yt,series:this,itemId:de,datum:Xt,datumIndex:yt,xValue:Yt,yLowValue:Ut,yHighValue:oi,yLowKey:K,yHighKey:q,xKey:V,x:pi.x,y:pi.y,width:pi.width,height:pi.height,midPoint:si,fill:$,stroke:te,strokeWidth:se,opacity:1,crisp:Rt,labels:ci};pe.nodeData.push(yi),pe.labelData.push(...ci)},{dataAggregationFilters:at}=this,[ht,vt]=R.range,wt=vt-ht,Ct=at==null?void 0:at.find(yt=>yt.maxRange>wt);if(Ct!=null){let{maxRange:yt,indexData:Et}=Ct,[At,Dt]=lV(yt,y.range,Ot=>{let It=Ot*Ff,Rt=Et[It+_u],Xt=Et[It+_g];if(Rt===-1)return;let Yt=(Rt+Xt)/2|0;return[$e(Yt),$e(Xt)+De]});for(let Ot=At;Ot<Dt;Ot+=1){let It=Ot*Ff,Rt=Et[It+_u],Xt=Et[It+_g],Yt=Et[It+Ng],Ut=Et[It+zg];if(Rt===-1)continue;let oi=(Rt+Xt)/2|0;if(Se[oi]==null)continue;let ai=$e(oi),ui=Math.abs($e(Rt)-$e(Xt))+De,qt=ve[Yt],Zt=ke[Ut];lt(oi,0,ai,ui,qt,Zt,!1)}}else if(a.type==="ungrouped"){let[yt,Et]=lV(Ce.length,y.range,At=>[$e(At),De]);a.rawData.length<1e3&&(yt=0,Et=a.rawData.length);for(let At=yt;At<Et;At+=1){let Dt=$e(At),Ot=De,It=ve[At],Rt=ke[At];lt(At,0,Dt,Ot,It,Rt,et)}}else a.groups.forEach(({datumIndices:yt},Et)=>{yt.forEach(At=>{let Dt=$e(At),Ot=De,It=ve[At],Rt=ke[At];lt(At,Et,Dt,Ot,It,Rt,et)})});return pe}createLabelData({rect:e,barAlongX:t,yLowValue:n,yHighValue:a,datum:u,series:y}){let{xKey:k,yLowKey:R,yHighKey:F,xName:_,yLowName:V,yHighName:K,yName:q,label:$}=this.properties,te={datum:u,xKey:k,yLowKey:R,yHighKey:F,xName:_,yLowName:V,yHighName:K,yName:q},{placement:se,padding:de}=$,Ce=de*(se==="outside"?1:-1),Se={x:e.x+(t?-Ce:e.width/2),y:e.y+(t?e.height/2:e.height+Ce),textAlign:t?"left":"center",textBaseline:t?"middle":"bottom",text:this.getLabelText($,ge({itemId:"low",value:n},te)),itemId:"low",datum:u,series:y},ve={x:e.x+(t?e.width+Ce:e.width/2),y:e.y+(t?e.height/2:-Ce),textAlign:t?"right":"center",textBaseline:t?"middle":"top",text:this.getLabelText($,ge({itemId:"high",value:a},te)),itemId:"high",datum:u,series:y};return se==="outside"&&(Se.textAlign=t?"right":"center",Se.textBaseline=t?"middle":"top",ve.textAlign=t?"left":"center",ve.textBaseline=t?"middle":"bottom"),[Se,ve]}nodeFactory(){return new s0e}updateDatumSelection(e){let{nodeData:t,datumSelection:n}=e,a=t!=null?t:[];return n.update(a,void 0,u=>this.getDatumId(u))}getItemBaseStyle(e){var u,y,k,R,F,_,V,K;let{properties:t}=this,{cornerRadius:n}=t,a=e?t.highlightStyle.item:void 0;return{fill:(u=a==null?void 0:a.fill)!=null?u:t.fill,fillOpacity:(y=a==null?void 0:a.fillOpacity)!=null?y:t.fillOpacity,stroke:(k=a==null?void 0:a.stroke)!=null?k:t.stroke,strokeWidth:(R=a==null?void 0:a.strokeWidth)!=null?R:t.strokeWidth,strokeOpacity:(F=a==null?void 0:a.strokeOpacity)!=null?F:t.strokeOpacity,lineDash:(V=(_=a==null?void 0:a.lineDash)!=null?_:t.lineDash)!=null?V:[],lineDashOffset:(K=a==null?void 0:a.lineDashOffset)!=null?K:t.lineDashOffset,cornerRadius:n}}getItemStyleOverrides(e,t,n,a){let{id:u,properties:y}=this,{xKey:k,yHighKey:R,yLowKey:F,itemStyler:_}=y;if(_!=null)return this.cachedDatumCallback(o0e(e,a?"highlight":"node"),()=>_(ge({seriesId:u,datum:t,xKey:k,yHighKey:R,yLowKey:F,highlighted:a},n)))}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,{id:a}=this,{yLowKey:u,yHighKey:y,highlightStyle:{item:k},fillOpacity:R,strokeOpacity:F,strokeWidth:_,lineDash:V,lineDashOffset:K,itemStyler:q,shadow:$}=this.properties,te=this.getCategoryDirection()===WN.X;t.each((se,de)=>{let pe={fill:de.fill,stroke:de.stroke,fillOpacity:R,strokeOpacity:F,lineDash:V,lineDashOffset:K,fillShadow:$,strokeWidth:this.getStrokeWidth(_),cornerRadius:this.properties.cornerRadius},Ce=te?de.width>0:de.height>0,Se=qCe(this,this.getDatumId(de),{datum:de,isHighlighted:n,style:pe,highlightStyle:k,itemStyler:q,seriesId:a,yLowKey:u,yHighKey:y});Se.crisp=de.crisp,Se.visible=Ce,YCe(se,Se)})}getHighlightLabelData(e,t){let n=e.filter(a=>a.datum===t.datum);return n.length>0?n:void 0}updateLabelSelection(e){let t=this.properties.label.enabled?e.labelData:[];return e.labelSelection.update(t,n=>{n.pointerEvents=l0e.None})}updateLabelNodes(e){e.labelSelection.each((t,n)=>{ZCe(t,this.properties.label,n)})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:u}=this,{xKey:y,xName:k,yName:R,yLowKey:F,yHighKey:_,yLowName:V,yHighName:K,tooltip:q}=u,$=this.getCategoryAxis(),te=this.getValueAxis();if(!n||!a||a.rawData.length===0||!$||!te)return;let{datumIndex:se}=e,de=a.rawData[se],pe=n.resolveKeysById(this,"xValue",a)[se],Ce=n.resolveColumnById(this,"yHighValue",a)[se],Se=n.resolveColumnById(this,"yLowValue",a)[se];if(pe==null)return;let ve=this.getItemBaseStyle(!1);Object.assign(ve,this.getItemStyleOverrides(String(se),de,ve,!1));let ke=`${te.formatDatum(Se)} - ${te.formatDatum(Ce)}`;return q.formatTooltip({heading:$.formatDatum(pe),symbol:this.legendItemSymbol(),data:[{label:R,fallbackLabel:`${V!=null?V:F} - ${K!=null?K:_}`,value:ke}]},ge({seriesId:t,datum:de,title:R,xKey:y,xName:k,yName:R,yLowKey:F,yHighKey:_,yLowName:V,yHighName:K},ve))}legendItemSymbol(){let{fill:e,stroke:t,strokeWidth:n,fillOpacity:a,strokeOpacity:u}=this.properties;return{marker:{fill:e,stroke:t,fillOpacity:a,strokeOpacity:u,strokeWidth:n}}}getLegendData(e){if(e!=="category")return[];let{id:t,visible:n}=this,{yName:a,yLowName:u,yHighName:y,yLowKey:k,yHighKey:R,showInLegend:F}=this.properties,_=a!=null?a:`${u!=null?u:k} - ${y!=null?y:R}`,V=`${k}-${R}`;return[{legendType:"category",id:t,itemId:V,seriesId:t,enabled:n,label:{text:`${_}`},symbol:this.legendItemSymbol(),hideInLegend:!F}]}animateEmptyUpdateReady({datumSelection:e,labelSelection:t}){let n=oY(rY(this.isVertical(),"normal"));cY.fromToMotion(this.id,"datums",this.ctx.animationManager,[e],n),sY(this,"labels",this.ctx.animationManager,t)}animateWaitingUpdateReady(e){var k,R;let{datumSelection:t,labelSelection:n}=e,{processedData:a}=this,u=(R=(k=a==null?void 0:a.reduced)==null?void 0:k.diff)==null?void 0:R[this.id];this.ctx.animationManager.stopByAnimationGroupId(this.id);let y=oY(rY(this.isVertical(),"fade"));cY.fromToMotion(this.id,"datums",this.ctx.animationManager,[t],y,(F,_)=>this.getDatumId(_),u),sY(this,"labels",this.ctx.animationManager,n)}getDatumId(e){return`${e.xValue}-${e.valueIndex}`}isLabelEnabled(){return this.properties.label.enabled}onDataChange(){}computeFocusBounds({datumIndex:e}){var t;return a0e((t=this.contextNodeData)==null?void 0:t.nodeData[e])}};cV.className="RangeBarSeries",cV.type="range-bar";var dV=(mt(),T(pt)),d0e={series:{direction:"vertical",strokeWidth:0,label:{enabled:!1,fontSize:12,fontFamily:dV._ModuleSupport.ThemeSymbols.DEFAULT_FONT_FAMILY,color:dV._ModuleSupport.ThemeSymbols.DEFAULT_INSIDE_SERIES_LABEL_COLOUR,placement:"inside"}},axes:{[dV._ModuleSupport.ThemeConstants.CARTESIAN_AXIS_TYPE.NUMBER]:{crosshair:{enabled:!0}}}},{CARTESIAN_AXIS_TYPE:dY,CARTESIAN_POSITION:uY}=eY._ModuleSupport.ThemeConstants,u0e={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"range-bar",moduleFactory:e=>new cV(e),tooltipDefaults:{range:"exact"},defaultAxes:eY._ModuleSupport.swapAxisCondition([{type:dY.NUMBER,position:uY.LEFT},{type:dY.CATEGORY,position:uY.BOTTOM}],e=>(e==null?void 0:e.direction)==="horizontal"),themeTemplate:d0e,paletteFactory:({takeColors:e})=>{let{fills:[t],strokes:[n]}=e(1);return{fill:t,stroke:n}},groupable:!0},h0e=(mt(),T(pt)),g0e=(mt(),T(pt));function hY(e){e.nodes.sort((t,n)=>Math.round((t.datum.y-n.datum.y)*100)/100||-(t.datum.size-n.datum.size))}function p0e({nodes:e,size:t},{seriesRectHeight:n,nodeSpacing:a,sizeScale:u}){let y=n*t*u,R=(n-(y+a*(e.length-1)))/2;e.forEach(({datum:F})=>{let _=n*F.size*u;F.y=R,F.height=_,R+=_+a})}function m0e(e,t){let{nodes:n}=e,{seriesRectHeight:a,nodeSpacing:u}=t;hY(e);let y=0,k=0;for(let{datum:_}of n){let V=Math.max(k-_.y,0);_.y+=V,y+=V,k=_.y+_.height+u}if(k-u<a)return y>0;let F=a;for(let _=n.length-1;_>=0;_-=1){let{datum:V}=n[_],K=V.y+V.height,q=Math.min(F-K,0);V.y+=q,y+=q,F=V.y-u}return!0}function uV(e,t,n,a,u,y,k,R){let F=(n-e)/(a-t),_=(k-u)/(R-y),V=((y-t)*(F*_)+e*_-u*F)/(_-F);return e<n?V>e&&V<Math.min(n,k):V<e&&V>Math.max(n,k)}function gY(e,t){let n=!1,a=e.nodes.filter(y=>t(y).length===1),u=!0;for(let y=0;u&&y<a.length;y+=1){u=!1;for(let k=0;k<a.length-1;k+=1){let{datum:R}=a[k],F=t(a[k])[0].node.datum,{datum:_}=a[k+1],V=t(a[k+1])[0].node.datum;if(!(uV(R.x,R.y,F.x,F.y,_.x,_.y,V.x,V.y)||uV(R.x,R.y+R.height/2,F.x,F.y+F.height/2,_.x,_.y+_.height/2,V.x,V.y+V.height/2)||uV(R.x,R.y+R.height,F.x,F.y+F.height,_.x,_.y+_.height,V.x,V.y+V.height)))continue;let q=a[k];a[k]=a[k+1],a[k+1]=q;let $=R.y;R.y=_.y+_.height-R.height,_.y=$,n=!0,u=!0}}return n}function f0e(e){let t=!1;return hY(e),t=gY(e,n=>n.linksBefore)||t,t=gY(e,n=>n.linksAfter)||t,t}function v0e(e){if(e.length===0)return;let t=0,n=0;for(let{node:{datum:a}}of e)t+=a.y*a.size,n+=a.size;return t/n}function pY(e,t,n,a){return e.nodes.forEach(({datum:u,linksBefore:y,linksAfter:k})=>{let R=a===1?y:k,F=a===1?k:y,_=v0e(R);if(_!=null){let V=F.length!==0?n:1;u.y=u.y+(_-u.y)*V}}),m0e(e,t)}function mY(e,t,n){let a=!1;for(let u of e)a=pY(u,t,n,1)||a;return a}function y0e(e,t,n){let a=!1;for(let u=e.length-1;u>=0;u-=1)a=pY(e[u],t,n,-1)||a;return a}function fY(e){let t=!1;for(let n=e.length-1;n>=0;n-=1)t=f0e(e[n])||t;return t}function b0e(e,t){e.forEach(a=>{p0e(a,t)});let n=!1;for(let a=0;a<6;a+=1){let u=mY(e,t,1);n=y0e(e,t,.5);let y=fY(e);if(!u&&!n&&!y)break}n&&(mY(e,t,1),fY(e))}var C0e=(mt(),T(pt)),{BBox:S0e,Path:w0e,ScenePathChangeDetection:gP,splitBezier:x0e}=C0e._ModuleSupport;function UN(e,t,n,a,u,y,k,R,F,_){let V,K;if(u!==n&&F!==k){let De=-(a-t)/(u-n),Te=-(R-y)/(F-k);V=(k-n+De*t-Te*y)/(De-Te),K=De*(V-t)+n}else if(u===n&&F!==k)V=t,K=-(R-y)/(F-k)*(V-R)+F;else if(u!==n&&F===k)V=R,K=-(a-t)/(u-n)*(V-t)+n;else throw new Error("Offsetting flat bezier curve");let q=Math.hypot(n-K,t-V),$=(q+_)/q,te=Math.hypot(F-K,R-V),se=(te+_)/te,de=V+(a-V)*$,pe=K+(u-K)*$,Ce=V+(y-V)*se,Se=K+(k-K)*se,ve=V+(R-V)*se,ke=K+(F-K)*se;e.cubicCurveTo(de,pe,Ce,Se,ve,ke)}var qE=class extends w0e{constructor(){super(...arguments),this.x1=0,this.x2=0,this.y1=0,this.y2=0,this.height=0,this.inset=0}computeBBox(){let e=Math.min(this.x1,this.x2),t=Math.max(this.x1,this.x2)-e,n=Math.min(this.y1,this.y2),a=Math.max(this.y1,this.y2)-n+this.height;return new S0e(e,n,t,a)}updatePath(){let{path:e,inset:t}=this;e.clear();let n=this.x1+t,a=this.x2-t,u=this.y1+t,y=this.y2+t,k=this.height-2*t;if(k<0||n>a)return;let R=n,F=u+k/2,_=(n+a)/2,V=u+k/2,K=(n+a)/2,q=y+k/2,$=a,te=y+k/2;if(e.moveTo(R,F-k/2),Math.abs(this.y2-this.y1)<1||this.x2-this.x1<this.height*Math.SQRT2)e.cubicCurveTo(_,V-k/2,K,q-k/2,$,te-k/2),e.lineTo($,te+k/2),e.cubicCurveTo(K,q+k/2,_,V+k/2,R,F+k/2);else{let[se,de]=x0e(R,F,_,V,K,q,$,te,.5),pe=(y>u?1:-1)*k/2;UN(e,se[0].x,se[0].y,se[1].x,se[1].y,se[2].x,se[2].y,se[3].x,se[3].y,pe),UN(e,de[0].x,de[0].y,de[1].x,de[1].y,de[2].x,de[2].y,de[3].x,de[3].y,-pe),e.lineTo($,te+k/2),UN(e,de[3].x,de[3].y,de[2].x,de[2].y,de[1].x,de[1].y,de[0].x,de[0].y,pe),UN(e,se[3].x,se[3].y,se[2].x,se[2].y,se[1].x,se[1].y,se[0].x,se[0].y,-pe)}e.closePath()}};me([gP()],qE.prototype,"x1",2),me([gP()],qE.prototype,"x2",2),me([gP()],qE.prototype,"y1",2),me([gP()],qE.prototype,"y2",2),me([gP()],qE.prototype,"height",2),me([gP()],qE.prototype,"inset",2);var M0e=(mt(),T(pt)),{BaseProperties:vY,SeriesTooltip:k0e,SeriesProperties:A0e,ARRAY:D0e,COLOR_STRING:KN,COLOR_STRING_ARRAY:yY,FUNCTION:bY,LINE_DASH:CY,OBJECT:qN,POSITIVE_NUMBER:YE,RATIO:YN,STRING:MA,UNION:E0e,Validate:Pa,Label:I0e}=M0e._ModuleSupport,T0e=E0e(["left","right","center","justify"],"a justification value"),SY=class extends I0e{constructor(){super(...arguments),this.spacing=1}};me([Pa(YE)],SY.prototype,"spacing",2);var Nw=class extends vY{constructor(){super(...arguments),this.fill=void 0,this.fillOpacity=1,this.stroke=void 0,this.strokeOpacity=1,this.strokeWidth=1,this.lineDash=[0],this.lineDashOffset=0}};me([Pa(KN,{optional:!0})],Nw.prototype,"fill",2),me([Pa(YN)],Nw.prototype,"fillOpacity",2),me([Pa(KN,{optional:!0})],Nw.prototype,"stroke",2),me([Pa(YN)],Nw.prototype,"strokeOpacity",2),me([Pa(YE)],Nw.prototype,"strokeWidth",2),me([Pa(CY)],Nw.prototype,"lineDash",2),me([Pa(YE)],Nw.prototype,"lineDashOffset",2),me([Pa(bY,{optional:!0})],Nw.prototype,"itemStyler",2);var Nf=class extends vY{constructor(){super(...arguments),this.spacing=1,this.width=1,this.alignment="justify",this.fill=void 0,this.fillOpacity=1,this.stroke=void 0,this.strokeOpacity=1,this.strokeWidth=1,this.lineDash=[0],this.lineDashOffset=0}};me([Pa(YE)],Nf.prototype,"spacing",2),me([Pa(YE)],Nf.prototype,"width",2),me([Pa(T0e)],Nf.prototype,"alignment",2),me([Pa(KN,{optional:!0})],Nf.prototype,"fill",2),me([Pa(YN)],Nf.prototype,"fillOpacity",2),me([Pa(KN,{optional:!0})],Nf.prototype,"stroke",2),me([Pa(YN)],Nf.prototype,"strokeOpacity",2),me([Pa(YE)],Nf.prototype,"strokeWidth",2),me([Pa(CY)],Nf.prototype,"lineDash",2),me([Pa(YE)],Nf.prototype,"lineDashOffset",2),me([Pa(bY,{optional:!0})],Nf.prototype,"itemStyler",2);var Vu=class extends A0e{constructor(){super(...arguments),this.nodes=void 0,this.idKey="",this.idName=void 0,this.labelKey=void 0,this.labelName=void 0,this.sizeKey=void 0,this.sizeName=void 0,this.fills=[],this.strokes=[],this.label=new SY,this.link=new Nw,this.node=new Nf,this.tooltip=new k0e}};me([Pa(D0e,{optional:!0})],Vu.prototype,"nodes",2),me([Pa(MA)],Vu.prototype,"fromKey",2),me([Pa(MA)],Vu.prototype,"toKey",2),me([Pa(MA)],Vu.prototype,"idKey",2),me([Pa(MA,{optional:!0})],Vu.prototype,"idName",2),me([Pa(MA,{optional:!0})],Vu.prototype,"labelKey",2),me([Pa(MA,{optional:!0})],Vu.prototype,"labelName",2),me([Pa(MA,{optional:!0})],Vu.prototype,"sizeKey",2),me([Pa(MA,{optional:!0})],Vu.prototype,"sizeName",2),me([Pa(yY)],Vu.prototype,"fills",2),me([Pa(yY)],Vu.prototype,"strokes",2),me([Pa(qN)],Vu.prototype,"label",2),me([Pa(qN)],Vu.prototype,"link",2),me([Pa(qN)],Vu.prototype,"node",2),me([Pa(qN)],Vu.prototype,"tooltip",2);var{SeriesNodePickMode:wY,CachedTextMeasurerPool:R0e,TextWrapper:xY,TextUtils:MY,createDatumId:XN,Logger:P0e,Rect:L0e,BBox:O0e}=g0e._ModuleSupport,hV=class extends FG{constructor(e){super({moduleCtx:e,pickModes:[wY.NEAREST_NODE,wY.EXACT_SHAPE_MATCH]}),this.properties=new Vu}isLabelEnabled(){return(this.properties.labelKey!=null||this.nodes==null)&&this.properties.label.enabled}linkFactory(){return new qE}nodeFactory(){return new L0e}createNodeData(){let{id:e,_nodeDataDependencies:{seriesRectWidth:t,seriesRectHeight:n}={seriesRectWidth:0,seriesRectHeight:0}}=this,{fromKey:a,toKey:u,sizeKey:y,label:{spacing:k},node:{spacing:R,width:F,alignment:_}}=this.properties,{nodeGraph:V,links:K,maxPathLength:q}=this.getNodeGraph(Te=>He(ge({},Te),{x:NaN,y:NaN,width:F,height:NaN}),Te=>He(ge({},Te),{x1:NaN,x2:NaN,y1:NaN,y2:NaN,height:NaN}),{includeCircularReferences:!1}),$=V,te=this.isLabelEnabled()?(t-F)*(1-q/(q+1)):0,se=(t-F-2*te)/(q-1),de=[];for(let Te=0;Te<q;Te+=1){let ze=te+Te*se;de.push({index:Te,size:0,nodes:[],x:ze})}$.forEach(Te=>{let{datum:ze,linksBefore:qe,linksAfter:et,maxPathLengthBefore:$e,maxPathLengthAfter:lt}=Te,at=Math.max(qe.reduce((wt,{link:Ct})=>wt+Ct.size,0),et.reduce((wt,{link:Ct})=>wt+Ct.size,0));if(qe.length===0&&et.length===0||at===0){Te.columnIndex=-1;return}let ht;switch(_){case"left":ht=de[$e];break;case"right":ht=de[q-1-lt];break;case"center":{if(qe.length!==0)ht=de[$e];else if(et.length!==0){let wt=et.reduce((Ct,yt)=>Math.min(Ct,yt.node.maxPathLengthBefore),q)-1;ht=de[wt]}else ht=de[0];break}case"justify":{ht=et.length===0?de[q-1]:de[$e];break}}ze.x=ht.x,ze.size=at;let vt=this.getLabelText(this.properties.label,{datum:ze.datum,value:ze.label,fromKey:a,toKey:u,sizeKey:y,size:at});ze.label=String(vt),ht.nodes.push(Te),ht.size+=at,Te.columnIndex=ht.index}),$.forEach(Te=>{let ze=1/0,qe=0;Te.linksAfter.forEach(et=>{let $e=et.node,{columnIndex:lt}=$e;lt<ze?(ze=lt,qe=$e.datum.size):lt===ze&&(qe=Math.max(qe,$e.datum.size))}),Te.closestColumnIndex=ze,Te.maxSizeOfClosestNodesAfter=qe});let pe=de.reduce((Te,{size:ze,nodes:qe})=>{let et=(1-(qe.length-1)*(R/n))/ze;return Math.min(Te,et)},1/0);for(let Te=de.length-1;Te>=0;Te-=1)de[Te].nodes.sort((qe,et)=>qe.closestColumnIndex-et.closestColumnIndex||qe.maxSizeOfClosestNodesAfter-et.maxSizeOfClosestNodesAfter||qe.datum.size-et.datum.size);b0e(de,{seriesRectHeight:n,nodeSpacing:R,sizeScale:pe});let Ce=!1;if($.forEach(({datum:Te,linksBefore:ze,linksAfter:qe})=>{Ce||(Ce=Te.height<0);let et=Te.y+Te.height,$e=ht=>ht.sort((vt,wt)=>{let Ct=vt.node.datum,yt=wt.node.datum,Et=Ct.y+Ct.height,At=yt.y+yt.height,Dt=Math.atan2(Ct.y-Te.y,Math.abs(Ct.x-Te.x))-Math.atan2(yt.y-Te.y,Math.abs(yt.x-Te.x)),Ot=Math.atan2(Et-et,Math.abs(Ct.x-Te.x))-Math.atan2(At-et,Math.abs(yt.x-Te.x));return Dt+Ot}),lt=Te.y;$e(ze).forEach(({link:ht})=>{ht.y2=lt,lt+=ht.size*n*pe});let at=Te.y;$e(qe).forEach(({link:ht})=>{ht.y1=at,at+=ht.size*n*pe})}),Ce){P0e.warnOnce("There was insufficient space to display the Sankey Series. Reduce the node spacing, or provide a larger container.");return}let Se=[],ve=[],{fontSize:ke}=this.properties.label,De=this.properties.label.getFont();return de.forEach((Te,ze)=>{let qe=ze===0,et=ze===de.length-1,$e=-1/0;Te.nodes.sort((lt,at)=>lt.datum.y-at.datum.y),Te.nodes.forEach(({datum:lt})=>{if(lt.midPoint={x:lt.x+lt.width/2,y:lt.y+lt.height/2},Se.push(lt),lt.label==null)return;let at=qe?lt.x-k:lt.x+lt.width+k,ht=lt.y+lt.height/2,vt;if(!qe&&!et){let Et=ht-MY.getLineHeight(ke),At=ht+MY.getLineHeight(ke),Dt=t;$.forEach(({datum:It})=>{It.x>lt.x&&Math.max(It.y,Et)<=Math.min(It.y+It.height,At)&&(Dt=Math.min(Dt,It.x-k))});let Ot=Dt-lt.x-2*k;vt=xY.wrapText(lt.label,{maxWidth:Ot,maxHeight:lt.height,font:this.properties.label,textWrap:"never",overflow:"hide"})}if(vt==null||vt===""){let Et=qe||et?k:k*2;vt=xY.wrapText(lt.label,{maxWidth:se-Et,maxHeight:lt.height,font:this.properties.label,textWrap:"never"})}if(vt==="")return;let{height:wt}=R0e.measureText(vt,{font:De,textAlign:"left",textBaseline:"middle"}),Ct=ht-wt/2,yt=ht+wt/2;Ct>=$e&&(ve.push({x:at,y:ht,leading:qe,text:vt}),$e=yt)})}),K.forEach(Te=>{let{fromNode:ze,toNode:qe,size:et}=Te;Te.height=n*et*pe,Te.x1=ze.x+F,Te.x2=qe.x,Te.midPoint={x:(Te.x1+Te.x2)/2,y:(Te.y1+Te.y2)/2+Te.height/2},Se.push(Te)}),{itemId:e,nodeData:Se,labelData:ve}}updateLabelSelection(e){let t=this.isLabelEnabled()?e.labelData:[];return e.labelSelection.update(t)}updateLabelNodes(e){let{labelSelection:t}=e,{color:n,fontStyle:a,fontWeight:u,fontSize:y,fontFamily:k}=this.properties.label;t.each((R,{x:F,y:_,leading:V,text:K})=>{R.visible=!0,R.x=F,R.y=_,R.text=K,R.fill=n,R.fontStyle=a,R.fontWeight=u,R.fontSize=y,R.fontFamily=k,R.textAlign=V?"right":"left",R.textBaseline="middle"})}updateNodeSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>XN([t.type,t.id]))}getBaseNodeStyle(e){var V,K,q,$,te,se,de;let{properties:t}=this,{fill:n,fillOpacity:a,stroke:u,strokeOpacity:y,lineDash:k,lineDashOffset:R}=t.node,F=this.getStrokeWidth(t.node.strokeWidth),_=e?t.highlightStyle.item:void 0;return{fill:(V=_==null?void 0:_.fill)!=null?V:n,fillOpacity:(K=_==null?void 0:_.fillOpacity)!=null?K:a,stroke:(q=_==null?void 0:_.stroke)!=null?q:u,strokeOpacity:($=_==null?void 0:_.strokeOpacity)!=null?$:y,strokeWidth:(te=_==null?void 0:_.strokeWidth)!=null?te:F,lineDash:(se=_==null?void 0:_.lineDash)!=null?se:k,lineDashOffset:(de=_==null?void 0:_.lineDashOffset)!=null?de:R}}getNodeStyleOverrides(e,t,n,a,u,y,k){var se,de;let{id:R,properties:F}=this,{fills:_,strokes:V}=F,{itemStyler:K}=F.node,q=(se=y.fill)!=null?se:_[n%_.length],$=(de=y.stroke)!=null?de:V[n%V.length],te={};if(k||(te.fill=q,te.stroke=$),K!=null){let pe=this.cachedDatumCallback(XN(e,k?"highlight":"node"),()=>{let{fillOpacity:Ce=1,strokeOpacity:Se=1,strokeWidth:ve=0,lineDash:ke=[],lineDashOffset:De=0}=y;return K({seriesId:R,datum:t,highlighted:k,label:u,size:a,fill:q,fillOpacity:Ce,stroke:$,strokeOpacity:Se,strokeWidth:ve,lineDash:ke,lineDashOffset:De})});Object.assign(te,pe)}return te}updateNodeNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getBaseNodeStyle(n);t.each((u,y)=>{var V,K,q,$,te,se,de;let{datumIndex:k,size:R,label:F}=y,_=this.getNodeStyleOverrides(String(k),y,k,R,F,a,n);u.x=y.x,u.y=y.y,u.width=Math.max(y.width,0),u.height=Math.max(y.height,0),u.fill=(V=_==null?void 0:_.fill)!=null?V:a.fill,u.fillOpacity=(K=_==null?void 0:_.fillOpacity)!=null?K:a.fillOpacity,u.stroke=(q=_==null?void 0:_.stroke)!=null?q:a.stroke,u.strokeOpacity=($=_==null?void 0:_.strokeOpacity)!=null?$:a.strokeOpacity,u.strokeWidth=(te=_==null?void 0:_.strokeWidth)!=null?te:a.strokeWidth,u.lineDash=(se=_==null?void 0:_.lineDash)!=null?se:a.lineDash,u.lineDashOffset=(de=_==null?void 0:_.lineDashOffset)!=null?de:a.lineDashOffset})}updateLinkSelection(e){return e.datumSelection.update(e.nodeData,void 0,t=>XN([t.type,t.index,t.fromNode.id,t.toNode.id]))}getBaseLinkStyle(e){var V,K,q,$,te,se,de;let{properties:t}=this,{fill:n,fillOpacity:a,stroke:u,strokeOpacity:y,lineDash:k,lineDashOffset:R}=t.link,F=this.getStrokeWidth(t.link.strokeWidth),_=e?t.highlightStyle.item:void 0;return{fill:(V=_==null?void 0:_.fill)!=null?V:n,fillOpacity:(K=_==null?void 0:_.fillOpacity)!=null?K:a,stroke:(q=_==null?void 0:_.stroke)!=null?q:u,strokeOpacity:($=_==null?void 0:_.strokeOpacity)!=null?$:y,strokeWidth:(te=_==null?void 0:_.strokeWidth)!=null?te:F,lineDash:(se=_==null?void 0:_.lineDash)!=null?se:k,lineDashOffset:(de=_==null?void 0:_.lineDashOffset)!=null?de:R}}getLinkStyleOverrides(e,t,n,a,u){var $,te;let{id:y,properties:k}=this,{fills:R,strokes:F}=k,{itemStyler:_}=k.link,V=($=a.fill)!=null?$:R[n%R.length],K=(te=a.stroke)!=null?te:F[n%F.length],q={};if(u||(q.fill=V,q.stroke=K),_!=null){let se=this.cachedDatumCallback(XN(e,u?"highlight":"node"),()=>{let{fillOpacity:de=1,strokeOpacity:pe=1,strokeWidth:Ce=0,lineDash:Se=[],lineDashOffset:ve=0}=a;return _({seriesId:y,datum:t,highlighted:u,fill:V,fillOpacity:de,stroke:K,strokeOpacity:pe,strokeWidth:Ce,lineDash:Se,lineDashOffset:ve})});Object.assign(q,se)}return q}updateLinkNodes(e){let{datumSelection:t,isHighlight:n}=e,a=this.getBaseLinkStyle(n);t.each((u,y)=>{var _,V,K,q,$,te,se;let{datumIndex:k}=y,R=y.fromNode.datumIndex,F=this.getLinkStyleOverrides(String(k),y,R,a,n);u.x1=y.x1,u.y1=y.y1,u.x2=y.x2,u.y2=y.y2,u.height=y.height,u.fill=(_=F==null?void 0:F.fill)!=null?_:a==null?void 0:a.fill,u.fillOpacity=(V=F==null?void 0:F.fillOpacity)!=null?V:a==null?void 0:a.fillOpacity,u.stroke=(K=F==null?void 0:F.stroke)!=null?K:a==null?void 0:a.stroke,u.strokeOpacity=(q=F==null?void 0:F.strokeOpacity)!=null?q:a==null?void 0:a.strokeOpacity,u.strokeWidth=Math.min(($=F==null?void 0:F.strokeWidth)!=null?$:a==null?void 0:a.strokeWidth,y.height/2),u.lineDash=(te=F==null?void 0:F.lineDash)!=null?te:a==null?void 0:a.lineDash,u.lineDashOffset=(se=F==null?void 0:F.lineDashOffset)!=null?se:a==null?void 0:a.lineDashOffset,u.inset=u.strokeWidth/2})}getTooltipContent(e){let{id:t,processedData:n,nodesProcessedData:a,properties:u}=this,{fromKey:y,toKey:k,sizeKey:R,sizeName:F,tooltip:_}=u,{datumIndex:V}=e,K=e.type===0?e.fromNode.index:e.index,q=e.type===0?`${e.fromNode.label} - ${e.toNode.label}`:e.label,$=e.type===0?n==null?void 0:n.rawData[e.datumIndex]:a==null?void 0:a.rawData[e.datumIndex],te=e.size,se;if(e.type===0){let de=e.fromNode.datumIndex,pe=this.getBaseLinkStyle(!1);Object.assign(pe,this.getLinkStyleOverrides(String(V),$,de,pe,!1)),se=pe}else{let de=e.label,pe=this.getBaseNodeStyle(!1);Object.assign(pe,this.getNodeStyleOverrides(String(V),$,V,te,de,pe,!1)),se=pe}return _.formatTooltip({title:q,symbol:this.legendItemSymbol(e.type,K,se),data:R!=null?[{label:F,fallbackLabel:R,value:String(te)}]:[]},ge({seriesId:t,datum:$,title:q,fromKey:y,toKey:k,sizeKey:R,sizeName:F,size:te},se))}computeFocusBounds({datumIndex:e}){var n;let t=(n=this.contextNodeData)==null?void 0:n.nodeData[e];if((t==null?void 0:t.type)===1){let{x:a,y:u,width:y,height:k}=t;return new O0e(a,u,y,k)}else if((t==null?void 0:t.type)===0){for(let a of this.linkSelection)if(a.datum===t)return a.node;return}}};hV.className="SankeySeries",hV.type="sankey";var{DEFAULT_FONT_FAMILY:F0e,DEFAULT_LABEL_COLOUR:_0e}=h0e._ModuleSupport.ThemeSymbols,N0e={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["flow-proportion"],solo:!0,identifier:"sankey",moduleFactory:e=>new hV(e),tooltipDefaults:{range:"exact"},themeTemplate:{seriesArea:{padding:{top:10,bottom:10}},series:{highlightStyle:{series:{dimOpacity:.2}},label:{fontFamily:F0e,color:_0e,fontSize:12,spacing:10},node:{spacing:20,width:10,strokeWidth:0},link:{fillOpacity:.5,strokeWidth:0}},legend:{enabled:!1,toggleSeries:!1}},paletteFactory({takeColors:e,colorsCount:t}){return e(t)}},z0e=(mt(),T(pt)),kY=(mt(),T(pt)),B0e=(mt(),T(pt)),{HierarchySeriesProperties:G0e,HighlightStyle:V0e,SeriesTooltip:j0e,Validate:dl,COLOR_STRING:H0e,FUNCTION:W0e,NUMBER:AY,OBJECT:pP,POSITIVE_NUMBER:gV,RATIO:ZN,STRING:$N}=B0e._ModuleSupport,kA=class extends V0e{constructor(){super(...arguments),this.label=new kC,this.secondaryLabel=new kC}};me([dl($N,{optional:!0})],kA.prototype,"fill",2),me([dl(ZN,{optional:!0})],kA.prototype,"fillOpacity",2),me([dl(H0e,{optional:!0})],kA.prototype,"stroke",2),me([dl(gV,{optional:!0})],kA.prototype,"strokeWidth",2),me([dl(ZN,{optional:!0})],kA.prototype,"strokeOpacity",2),me([dl(pP)],kA.prototype,"label",2),me([dl(pP)],kA.prototype,"secondaryLabel",2);var Rh=class extends G0e{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=0,this.strokeOpacity=1,this.cornerRadius=0,this.highlightStyle=new kA,this.label=new kC,this.secondaryLabel=new Y2,this.tooltip=new j0e}};me([dl($N,{optional:!0})],Rh.prototype,"sizeName",2),me([dl($N,{optional:!0})],Rh.prototype,"labelKey",2),me([dl($N,{optional:!0})],Rh.prototype,"secondaryLabelKey",2),me([dl(ZN)],Rh.prototype,"fillOpacity",2),me([dl(gV)],Rh.prototype,"strokeWidth",2),me([dl(ZN)],Rh.prototype,"strokeOpacity",2),me([dl(gV)],Rh.prototype,"cornerRadius",2),me([dl(AY,{optional:!0})],Rh.prototype,"sectorSpacing",2),me([dl(AY,{optional:!0})],Rh.prototype,"padding",2),me([dl(W0e,{optional:!0})],Rh.prototype,"itemStyler",2),me([dl(pP)],Rh.prototype,"highlightStyle",2),me([dl(pP)],Rh.prototype,"label",2),me([dl(pP)],Rh.prototype,"secondaryLabel",2),me([dl(pP)],Rh.prototype,"tooltip",2);var{fromToMotion:U0e,normalizeAngle360:K0e,createDatumId:q0e,Sector:lO,ScalableGroup:DY,Selection:pV,TransformableText:cO}=kY._ModuleSupport,EY=(e,t=0,n=2*Math.PI/e.sumSize,a=Array.from(e,()=>{}))=>{let u=t;for(let y of e.children){let k=u,R=u+y.sumSize*n;a[y.index]={start:k,end:R},EY(y,k,n,a),u=R}return a},mV=class extends kY._ModuleSupport.HierarchySeries{constructor(){super(...arguments),this.properties=new Rh,this.groupSelection=pV.select(this.contentGroup,DY),this.highlightSelection=pV.select(this.highlightGroup,DY),this.angleData=[]}processData(){let{childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:u,sizeKey:y,sizeName:k}=this.properties;super.processData(),this.angleData=EY(this.rootNode),this.labelData=Array.from(this.rootNode,({datum:R,depth:F})=>{let _;if(R!=null&&F!=null&&a!=null){let K=R[a];_=this.getLabelText(this.properties.label,{depth:F,datum:R,childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:u,sizeKey:y,sizeName:k,value:K})}_===""&&(_=void 0);let V;if(R!=null&&F!=null&&u!=null){let K=R[u];V=this.getLabelText(this.properties.secondaryLabel,{depth:F,datum:R,childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:u,sizeKey:y,sizeName:k,value:K})}return V===""&&(V=void 0),_!=null||V!=null?{label:_,secondaryLabel:V}:void 0})}updateSelections(){if(!this.nodeDataRefresh)return;this.nodeDataRefresh=!1;let{chart:e}=this;if(e==null||e.seriesRect==null)return;let n=Array.from(this.rootNode),a=u=>{u.append([new lO,new cO({tag:0}),new cO({tag:1})])};this.groupSelection.update(n,a,u=>this.getDatumId(u)),this.highlightSelection.update(n,a,u=>this.getDatumId(u))}getItemBaseStyle(e){var a,u,y;let{properties:t}=this,n=e?t.highlightStyle:void 0;return{fill:n==null?void 0:n.fill,fillOpacity:(a=n==null?void 0:n.fillOpacity)!=null?a:t.fillOpacity,stroke:n==null?void 0:n.stroke,strokeWidth:(u=n==null?void 0:n.strokeWidth)!=null?u:t.strokeWidth,strokeOpacity:(y=n==null?void 0:n.strokeOpacity)!=null?y:t.strokeOpacity}}getItemStyleOverrides(e,t,n,a,u,y,k){var de,pe;let{id:R,properties:F,colorScale:_}=this,{fills:V,strokes:K,itemStyler:q}=F,$=(de=y.fill)!=null?de:V[n%V.length],te=(pe=y.stroke)!=null?pe:K[n%K.length],se={};if(k||(se.fill=u!=null?_.convert(u):$,se.stroke=te),q!=null){let Ce=this.cachedDatumCallback(q0e(e,k?"highlight":"node"),()=>q(ge({seriesId:R,datum:t,depth:a,highlighted:k,fill:$,stroke:te},y)));Object.assign(se,Ce)}return se}updateNodes(){var ve;let{chart:e,data:t,maxDepth:n,labelData:a}=this;if(e==null||t==null||a==null)return;let{width:u,height:y}=e.seriesRect,{sectorSpacing:k=0,padding:R=0,cornerRadius:F}=this.properties;this.contentGroup.translationX=u/2,this.contentGroup.translationY=y/2,this.highlightGroup.translationX=u/2,this.highlightGroup.translationY=y/2;let _=k*.5,K=Math.min(u,y)/2/(n+1),q=-Math.PI/2,$=(ve=this.ctx.highlightManager)==null?void 0:ve.getActiveHighlight();new cO().setFont(this.properties.label),this.rootNode.walk(ke=>{let De=this.angleData[ke.index];if(ke.depth!=null&&De!=null){let Te=De.end-De.start,ze=(ke.depth+.5)*K;ke.midPoint.x=Math.cos(Te)*ze,ke.midPoint.y=Math.sin(Te)*ze}});let se=(ke,De,Te,ze)=>{var Ct,yt,Et,At,Dt;let{datum:qe,index:et,rootIndex:$e,depth:lt,colorValue:at}=ke,ht=this.angleData[et];if(lt==null||ht==null){De.visible=!1;return}De.visible=!0;let vt=this.getItemStyleOverrides(String(et),qe,$e,lt,at,Te,ze),wt=(Ct=vt.strokeWidth)!=null?Ct:Te.strokeWidth;De.fill=(yt=vt.fill)!=null?yt:Te.fill,De.fillOpacity=(Et=vt.fillOpacity)!=null?Et:Te.fillOpacity,De.stroke=(At=vt.stroke)!=null?At:Te.stroke,De.strokeWidth=wt,De.strokeOpacity=(Dt=vt.strokeOpacity)!=null?Dt:Te.strokeOpacity,De.centerX=0,De.centerY=0,De.innerRadius=lt*K,De.outerRadius=(lt+1)*K,De.startAngle=ht.start+q,De.endAngle=ht.end+q,De.inset=_+wt*.5,De.cornerRadius=F},de=this.getItemBaseStyle(!1);this.groupSelection.selectByClass(lO).forEach(ke=>{se(ke.datum,ke,de,!1)});let pe=this.getItemBaseStyle(!0);this.highlightSelection.selectByClass(lO).forEach(ke=>{let De=ke.datum,Te=$===De;ke.visible=Te,ke.visible&&se(ke.datum,ke,pe,!0)});let Ce=Array.from(this.rootNode,(ke,De)=>{let{depth:Te}=ke,ze=a[De],qe=this.angleData[De];if(Te==null||qe==null)return;let et=Te*K+_,$e=(Te+1)*K-_,lt=et>_?_/et:_,at=$e>_?_/$e:_,ht=qe.start+lt,wt=qe.end+lt-ht,Ct=qe.start+at,Et=qe.end+at-Ct,At=qt=>{var Gi;if(Te===0&&((Gi=ke.parent)==null?void 0:Gi.sumSize)===ke.sumSize)return{width:2*Math.sqrt($e**2-(qt*.5)**2),height:qt,meta:0};let pi=qt,si=2*Math.sqrt($e**2-(et+pi)**2),ci=wt<Math.PI?2*et*Math.tan(wt*.5):1/0,yi=Math.min(si,ci),sn=Math.PI/4,Ni,nn;return Te===0?(Ni=qt,nn=Math.sqrt($e**2-(Ni/2)**2)-qt/(2*Math.tan(Et*.5))):K0e(wt)<sn?(Ni=2*et*Math.tan(wt*.5),nn=Math.sqrt($e**2-(Ni/2)**2)-et):(nn=0,Ni=0),yi>=nn?{width:yi,height:pi,meta:1}:{width:nn,height:Ni,meta:2}},Dt=UG(ze==null?void 0:ze.label,this.properties.label,ze==null?void 0:ze.secondaryLabel,this.properties.secondaryLabel,{padding:R},At);if(Dt==null)return;let{width:Ot,height:It,meta:Rt,label:Xt,secondaryLabel:Yt}=Dt,Ut=q+(qe.start+qe.end)/2,oi=Math.sin(Ut)>=0,ti=Math.cos(Ut)>=0,ai=(oi?3:12)&(ti?6:9),ui;switch(Rt){case 0:ui=0;break;case 1:{let Zt=$e-(K-It)*.58,pi=Math.sqrt(($e-R)**2-(Ot/2)**2);ui=Math.min(Zt,pi);break}case 2:if(Te===0){let qt=It/(2*Math.tan(wt*.5))+Ot*.5,Zt=Math.sqrt($e**2-(It*.5)**2)-Ot*.5;ui=(qt+Zt)*.5}else ui=(et+$e)*.5;break}return{width:Ot,height:It,labelPlacement:Rt,circleQuarter:ai,radius:ui,theta:Ut,label:Xt,secondaryLabel:Yt}}),Se=(ke,De,Te,ze)=>{let{index:qe,depth:et}=ke,$e=Ce==null?void 0:Ce[qe],lt=Te===0?this.properties.label:this.properties.secondaryLabel,at=Te===0?$e==null?void 0:$e.label:$e==null?void 0:$e.secondaryLabel;if(et==null||$e==null||at==null){De.visible=!1;return}let{height:ht,labelPlacement:vt,circleQuarter:wt,radius:Ct,theta:yt}=$e,Et;switch(ze&&(Et=(Te===0?this.properties.highlightStyle.label:this.properties.highlightStyle.secondaryLabel).color),De.text=at.text,De.fontSize=at.fontSize,De.lineHeight=at.lineHeight,De.fontStyle=lt.fontStyle,De.fontFamily=lt.fontFamily,De.fontWeight=lt.fontWeight,De.fill=Et!=null?Et:lt.color,vt){case 0:De.textAlign="center",De.textBaseline="top",De.translationX=0,De.translationY=(Te===0?0:ht-at.height)-ht*.5,De.rotation=0;break;case 1:{let At=(wt&3)!==0,Dt=Te===0==!At?Ct:Ct-(ht-at.height);De.textAlign="center",De.textBaseline=At?"bottom":"top",De.translationX=Math.cos(yt)*Dt,De.translationY=Math.sin(yt)*Dt,De.rotation=At?yt-Math.PI*.5:yt+Math.PI*.5;break}case 2:{let At=(wt&6)!==0,Dt=Te===0==!At?(ht-at.height)*.5:(at.height-ht)*.5;De.textAlign="center",De.textBaseline="middle",De.translationX=Math.cos(yt)*Ct+Math.cos(yt+Math.PI/2)*Dt,De.translationY=Math.sin(yt)*Ct+Math.sin(yt+Math.PI/2)*Dt,De.rotation=At?yt:yt+Math.PI;break}}De.visible=!0};this.groupSelection.selectByClass(cO).forEach(ke=>{Se(ke.datum,ke,ke.tag,!1)}),this.highlightSelection.selectByClass(cO).forEach(ke=>{let De=ke.datum,Te=$===De;ke.visible=Te,ke.visible&&Se(ke.datum,ke,ke.tag,Te)})}getTooltipContent(e){let{id:t,properties:n}=this,{labelKey:a,secondaryLabelKey:u,childrenKey:y,sizeKey:k,sizeName:R,colorKey:F,colorName:_,tooltip:V}=n,{datum:K,index:q,rootIndex:$,depth:te}=e;if(K==null||te==null)return;let se=[],de=k!=null?K[k]:void 0;de!=null&&se.push({label:R,fallbackLabel:k,value:de});let pe=F!=null?K[F]:void 0;pe!=null&&se.push({label:_,fallbackLabel:F,value:pe});let Ce=this.getItemBaseStyle(!1);Object.assign(Ce,this.getItemStyleOverrides(String(q),K,$,te,pe,Ce,!1));let Se=Ce.fill;return V.formatTooltip({title:a!=null?K[a]:void 0,symbol:{marker:{shape:"square",fill:Se,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1}},data:se},ge({seriesId:t,datum:K,title:void 0,depth:te,labelKey:a,secondaryLabelKey:u,childrenKey:y,sizeKey:k,sizeName:R,colorKey:F,colorName:_},Ce))}createNodeData(){}pickNodeClosestDatum(e){return this.pickNodeNearestDistantObject(e,this.groupSelection.selectByClass(lO))}animateEmptyUpdateReady({datumSelections:e}){U0e(this.id,"nodes",this.ctx.animationManager,e,{toFn(){return{scalingX:1,scalingY:1}},fromFn(t,n,a){return a==="unknown"&&n!=null&&t.previousDatum==null?{scalingX:0,scalingY:0}:{scalingX:1,scalingY:1}}})}getAnimationData(){return{datumSelections:[this.groupSelection]}}computeFocusBounds(e){let t;for(let{node:n,datum:a}of this.groupSelection)a===e&&(t=pV.selectByClass(n,lO)[0]);return t}};mV.className="SunburstSeries",mV.type="sunburst";var{DEFAULT_INSIDE_SERIES_LABEL_COLOUR:QN,DEFAULT_DIVERGING_SERIES_COLOR_RANGE:Y0e}=z0e._ModuleSupport.ThemeSymbols,X0e={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["hierarchy"],identifier:"sunburst",moduleFactory:e=>new mV(e),tooltipDefaults:{range:"exact"},solo:!0,themeTemplate:{series:{label:{fontSize:14,minimumFontSize:9,color:QN,overflowStrategy:"ellipsis",wrapping:"never",spacing:2},secondaryLabel:{fontSize:8,minimumFontSize:7,color:QN,overflowStrategy:"ellipsis",wrapping:"never"},sectorSpacing:2,padding:3,highlightStyle:{label:{color:QN},secondaryLabel:{color:QN},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2}},gradientLegend:{enabled:!0}},paletteFactory:({takeColors:e,colorsCount:t,themeTemplateParameters:n})=>{let{fills:a,strokes:u}=e(t),y=n.get(Y0e);return{fills:a,strokes:u,colorRange:y}}},Z0e=(mt(),T(pt)),fV=(mt(),T(pt)),$0e=(mt(),T(pt)),{BaseProperties:JN,HierarchySeriesProperties:Q0e,HighlightStyle:J0e,SeriesTooltip:eSe,Validate:wn,BOOLEAN:tSe,COLOR_STRING:ez,FUNCTION:iSe,NUMBER:nSe,OBJECT:zf,POSITIVE_NUMBER:TC,RATIO:AA,STRING:XE,STRING_ARRAY:IY,TEXT_ALIGN:TY,VERTICAL_ALIGN:aSe,Label:oSe}=$0e._ModuleSupport,RY=class extends oSe{constructor(){super(...arguments),this.spacing=0}};me([wn(nSe)],RY.prototype,"spacing",2);var Bf=class extends JN{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.cornerRadius=0,this.textAlign="center",this.gap=0,this.padding=0,this.interactive=!0,this.label=new RY}};me([wn(XE,{optional:!0})],Bf.prototype,"fill",2),me([wn(AA)],Bf.prototype,"fillOpacity",2),me([wn(ez,{optional:!0})],Bf.prototype,"stroke",2),me([wn(TC)],Bf.prototype,"strokeWidth",2),me([wn(AA)],Bf.prototype,"strokeOpacity",2),me([wn(TC)],Bf.prototype,"cornerRadius",2),me([wn(TY)],Bf.prototype,"textAlign",2),me([wn(TC)],Bf.prototype,"gap",2),me([wn(TC)],Bf.prototype,"padding",2),me([wn(tSe)],Bf.prototype,"interactive",2),me([wn(zf)],Bf.prototype,"label",2);var am=class extends JN{constructor(){super(...arguments),this.fillOpacity=1,this.strokeWidth=1,this.strokeOpacity=1,this.cornerRadius=0,this.textAlign="center",this.verticalAlign="middle",this.gap=0,this.padding=0,this.label=new kC,this.secondaryLabel=new Y2}};me([wn(XE,{optional:!0})],am.prototype,"fill",2),me([wn(AA)],am.prototype,"fillOpacity",2),me([wn(ez,{optional:!0})],am.prototype,"stroke",2),me([wn(TC,{optional:!0})],am.prototype,"strokeWidth",2),me([wn(AA)],am.prototype,"strokeOpacity",2),me([wn(TC)],am.prototype,"cornerRadius",2),me([wn(TY)],am.prototype,"textAlign",2),me([wn(aSe)],am.prototype,"verticalAlign",2),me([wn(TC)],am.prototype,"gap",2),me([wn(TC)],am.prototype,"padding",2),me([wn(zf)],am.prototype,"label",2),me([wn(zf)],am.prototype,"secondaryLabel",2);var ZE=class extends JN{constructor(){super(...arguments),this.label=new kC}};me([wn(XE,{optional:!0})],ZE.prototype,"fill",2),me([wn(AA,{optional:!0})],ZE.prototype,"fillOpacity",2),me([wn(ez,{optional:!0})],ZE.prototype,"stroke",2),me([wn(TC,{optional:!0})],ZE.prototype,"strokeWidth",2),me([wn(AA,{optional:!0})],ZE.prototype,"strokeOpacity",2),me([wn(zf)],ZE.prototype,"label",2);var DA=class extends JN{constructor(){super(...arguments),this.label=new kC,this.secondaryLabel=new Y2}};me([wn(XE,{optional:!0})],DA.prototype,"fill",2),me([wn(AA,{optional:!0})],DA.prototype,"fillOpacity",2),me([wn(ez,{optional:!0})],DA.prototype,"stroke",2),me([wn(TC,{optional:!0})],DA.prototype,"strokeWidth",2),me([wn(AA,{optional:!0})],DA.prototype,"strokeOpacity",2),me([wn(zf)],DA.prototype,"label",2),me([wn(zf)],DA.prototype,"secondaryLabel",2);var vV=class extends J0e{constructor(){super(...arguments),this.group=new ZE,this.tile=new DA}};me([wn(zf)],vV.prototype,"group",2),me([wn(zf)],vV.prototype,"tile",2);var xy=class extends Q0e{constructor(){super(...arguments),this.highlightStyle=new vV,this.tooltip=new eSe,this.group=new Bf,this.tile=new am,this.undocumentedGroupFills=[],this.undocumentedGroupStrokes=[]}};me([wn(XE,{optional:!0})],xy.prototype,"sizeName",2),me([wn(XE,{optional:!0})],xy.prototype,"labelKey",2),me([wn(XE,{optional:!0})],xy.prototype,"secondaryLabelKey",2),me([wn(iSe,{optional:!0})],xy.prototype,"itemStyler",2),me([wn(zf)],xy.prototype,"highlightStyle",2),me([wn(zf)],xy.prototype,"tooltip",2),me([wn(zf)],xy.prototype,"group",2),me([wn(zf)],xy.prototype,"tile",2),me([wn(IY)],xy.prototype,"undocumentedGroupFills",2),me([wn(IY)],xy.prototype,"undocumentedGroupStrokes",2);var{TextUtils:rSe,TextWrapper:sSe,clamp:lSe,isNumberEqual:cSe,createDatumId:PY,Rect:LY,Group:OY,BBox:tz,Selection:yV,Text:iz}=fV._ModuleSupport,FY=new iz;function dSe(e,t){let{fontStyle:n,fontWeight:a,fontSize:u,fontFamily:y}=t;FY.setProperties({text:e,fontStyle:n,fontWeight:a,fontSize:u,fontFamily:y,textAlign:"left",textBaseline:"top"});let{width:k,height:R}=FY.getBBox();return{width:k,height:R}}function EA(e){return e.children.length>0?e.sumSize-e.sizeValue:e.sizeValue}var _Y={left:0,center:.5,right:1},uSe={top:0,middle:.5,bottom:1},kxe=class extends fV._ModuleSupport.Group{distanceSquared(e,t){return this.getBBox().distanceSquared(e,t)}},bV=class extends fV._ModuleSupport.HierarchySeries{constructor(){super(...arguments),this.properties=new xy,this.rectGroup=this.contentGroup.appendChild(new OY),this.rectSelection=yV.select(this.rectGroup,LY),this.labelSelection=yV.select(this.labelGroup,OY),this.highlightSelection=yV.select(this.rectGroup,LY)}groupTitleHeight(e,t){var y,k;let n=(k=(y=this.labelData)==null?void 0:y[e.index])==null?void 0:k.label,{label:a}=this.properties.group,u=3;if(n!=null){if(a.fontSize>t.width/u||a.fontSize>t.height/u)return;{let{height:R}=dSe(n,a);return Math.max(R,a.fontSize)}}}getNodePadding(e,t){if(e.index===0)return{top:0,right:0,bottom:0,left:0};if(e.children.length===0){let{padding:k}=this.properties.tile;return{top:k,right:k,bottom:k,left:k}}let{label:{spacing:n},padding:a}=this.properties.group,u=this.groupTitleHeight(e,t),y=u!=null?u+n:0;return{top:a+y,right:a,bottom:a,left:a}}processData(){var _;super.processData();let{childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:u,sizeKey:y,sizeName:k,tile:R,group:F}=this.properties;if(!((_=this.data)!=null&&_.length)){this.labelData=void 0;return}this.labelData=Array.from(this.rootNode,({datum:V,depth:K,children:q})=>{let $=q.length===0,te=$?R.label:F.label,se;if(V!=null&&K!=null&&a!=null){let pe=V[a];se=this.getLabelText(te,{depth:K,datum:V,childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:u,sizeKey:y,sizeName:k,value:pe})}se===""&&(se=void 0);let de;if($&&V!=null&&K!=null&&u!=null){let pe=V[u];de=this.getLabelText(R.secondaryLabel,{depth:K,datum:V,childrenKey:e,colorKey:t,colorName:n,labelKey:a,secondaryLabelKey:u,sizeKey:y,sizeName:k,value:pe})}return de===""&&(de=void 0),se!=null||de!=null?{label:se,secondaryLabel:de}:void 0})}sortChildren({children:e}){let t=Array.from(e,(a,u)=>u).filter(a=>EA(e[a])>0).sort((a,u)=>EA(e[u])-EA(e[a]));return{sortedChildrenIndices:t,childAt:a=>{let u=t[a];return e[u]}}}squarify(e,t,n,a){let{index:u,datum:y,children:k}=e;if(t.width<=0||t.height<=0){n[u]=void 0,a[u]=void 0;return}let R=y!=null?this.getNodePadding(e,t):{top:0,right:0,bottom:0,left:0};n[u]=u===0?void 0:t,a[u]=u===0?void 0:R;let{sortedChildrenIndices:F,childAt:_}=this.sortChildren(e),V=F.every(ze=>k[ze].children.length===0),K=1,q=t.width-R.left-R.right,$=t.height-R.top-R.bottom;if(q<=0||$<=0)return;let te=F.length,se=0,de=0,pe=1/0,Ce=F.reduce((ze,qe)=>ze+EA(k[qe]),0),Se=new tz(t.x+R.left,t.y+R.top,q,$),ve=Se.clone(),ke=0;for(;ke<te;){let ze=EA(_(ke)),qe=EA(_(de)),et=ve.width<ve.height;se+=ze;let $e=et?ve.height:ve.width,lt=et?ve.width:ve.height,at=lt*qe/se,ht=$e*se/Ce,vt=Math.max(at,ht)/Math.min(at,ht),wt=Math.abs(K-vt);if(wt<pe){pe=wt,ke++;continue}se-=ze,ht=$e*se/Ce;let Ct=et?ve.x:ve.y;for(let yt=de;yt<ke;yt++){let Et=_(yt),At=EA(Et),Dt=et?Ct:ve.x,Ot=et?ve.y:Ct,It=lt*At/se,Rt=et?It:ht,Xt=et?ht:It,Yt=new tz(Dt,Ot,Rt,Xt);this.applyGap(Se,Yt,V),this.squarify(Et,Yt,n,a),Ce-=At,Ct+=It}et?(ve.y+=ht,ve.height-=ht):(ve.x+=ht,ve.width-=ht),de=ke,se=0,pe=1/0}let De=ve.width<ve.height,Te=De?ve.x:ve.y;for(let ze=de;ze<te;ze++){let qe=_(ze),et=De?Te:ve.x,$e=De?ve.y:Te,lt=EA(qe)/Ce,at=ve.width*(De?lt:1),ht=ve.height*(De?1:lt),vt=new tz(et,$e,at,ht);this.applyGap(Se,vt,V),this.squarify(qe,vt,n,a),Te+=De?at:ht}}applyGap(e,t,n){let a=n?this.properties.tile.gap*.5:this.properties.group.gap*.5,u=F=>({left:F.x,top:F.y,right:F.x+F.width,bottom:F.y+F.height}),y=u(e),k=u(t);["top","right","bottom","left"].forEach(F=>{cSe(y[F],k[F])||t.shrink(a,F)})}createNodeData(){}getGroupBaseStyle(e){var u,y,k,R,F;let{properties:t}=this,{group:n}=t,a=e?t.highlightStyle.group:void 0;return{fill:(u=a==null?void 0:a.fill)!=null?u:n.fill,fillOpacity:(y=a==null?void 0:a.fillOpacity)!=null?y:n.fillOpacity,stroke:(k=a==null?void 0:a.stroke)!=null?k:n.stroke,strokeWidth:(R=a==null?void 0:a.strokeWidth)!=null?R:n.strokeWidth,strokeOpacity:(F=a==null?void 0:a.strokeOpacity)!=null?F:n.strokeOpacity}}getGroupStyleOverrides(e,t,n,a,u){var $,te;let{id:y,properties:k}=this,{undocumentedGroupFills:R,undocumentedGroupStrokes:F,itemStyler:_}=k,V=($=a.fill)!=null?$:R[Math.min(n!=null?n:0,R.length)],K=(te=a.stroke)!=null?te:F[Math.min(n!=null?n:0,F.length)],q={};if(u||(q.fill=V,q.stroke=K),_!=null){let se=this.cachedDatumCallback(PY(e,u?"highlight":"node"),()=>_(ge({seriesId:y,datum:t,depth:n,highlighted:u,fill:V,stroke:K},a)));Object.assign(q,se)}return q}getTileBaseStyle(e){var u,y,k,R,F;let{properties:t}=this,{tile:n}=t,a=e?t.highlightStyle.tile:void 0;return{fill:(u=a==null?void 0:a.fill)!=null?u:n.fill,fillOpacity:(y=a==null?void 0:a.fillOpacity)!=null?y:n.fillOpacity,stroke:(k=a==null?void 0:a.stroke)!=null?k:n.stroke,strokeWidth:(R=a==null?void 0:a.strokeWidth)!=null?R:n.strokeWidth,strokeOpacity:(F=a==null?void 0:a.strokeOpacity)!=null?F:n.strokeOpacity}}getTileStyleOverrides(e,t,n,a,u,y,k){var de,pe;let{id:R,properties:F,colorScale:_}=this,{fills:V,strokes:K,itemStyler:q}=F,$=(de=y.fill)!=null?de:V[a%V.length],te=(pe=y.stroke)!=null?pe:K[a%K.length],se={};if(k||(se.fill=u!=null?_.convert(u):$,se.stroke=te),q!=null){let Ce=this.cachedDatumCallback(PY(e,k?"highlight":"node"),()=>q(ge({seriesId:R,datum:t,depth:n,highlighted:k,fill:$,stroke:te},y)));Object.assign(se,Ce)}return se}updateSelections(){var u,y;let e=(u=this.ctx.highlightManager)==null?void 0:u.getActiveHighlight();if(e!=null&&!this.properties.group.interactive&&e.children.length!==0&&(e=void 0),this.highlightSelection.update(e!=null?[e]:[],void 0,k=>this.getDatumId(k)),!this.nodeDataRefresh)return;this.nodeDataRefresh=!1;let{seriesRect:t}=(y=this.chart)!=null?y:{};if(!t)return;let n=Array.from(this.rootNode),a=k=>{k.append([new iz({tag:0}),new iz({tag:1})])};this.rectSelection.update(n,void 0,k=>this.getDatumId(k)),this.labelSelection.update(n,a,k=>this.getDatumId(k))}updateNodes(){var pe;let{rootNode:e,data:t}=this,{highlightStyle:n,tile:a,group:u}=this.properties,{seriesRect:y}=(pe=this.chart)!=null?pe:{};if(!y||!t)return;let{width:k,height:R}=y,F=Array.from(this.rootNode,()=>{}),_=Array.from(this.rootNode,()=>{});this.squarify(e,new tz(0,0,k,R),F,_),this.updateNodeMidPoint(F);let V=(Ce,Se,ve,ke,De)=>{var Et,At,Dt,Ot,It,Rt;let Te=F[Ce.index];if(Te==null){Se.visible=!1;return}let{datum:ze,depth:qe=-1,index:et,rootIndex:$e,colorValue:lt}=Ce,at=Ce.children.length===0,ht=at?ke:ve,vt=at?this.getTileStyleOverrides(String(et),ze,qe,$e,lt,ht,De):this.getGroupStyleOverrides(String(et),ze,qe,ht,De);Se.crisp=!0,Se.fill=(Et=vt==null?void 0:vt.fill)!=null?Et:ht.fill,Se.fillOpacity=(At=vt==null?void 0:vt.fillOpacity)!=null?At:ht.fillOpacity,Se.stroke=(Dt=vt==null?void 0:vt.stroke)!=null?Dt:ht.stroke,Se.strokeWidth=(Ot=vt==null?void 0:vt.strokeWidth)!=null?Ot:ht.strokeWidth,Se.strokeOpacity=(It=vt==null?void 0:vt.strokeOpacity)!=null?It:ht.strokeOpacity,Se.cornerRadius=at?a.cornerRadius:u.cornerRadius,Se.zIndex=[0,qe,De?1:0];let wt=(Rt=Ce.parent)==null?void 0:Rt.children.every(Xt=>Xt.children.length===0),Ct=Ce.parent!=null?F[Ce.parent.index]:void 0,yt=Ce.parent!=null?_[Ce.parent.index]:void 0;wt===!0&&Ct!=null&&yt!=null?(Se.clipBBox=Te,Se.x=Ct.x+yt.left,Se.y=Ct.y+yt.top,Se.width=Ct.width-(yt.left+yt.right),Se.height=Ct.height-(yt.top+yt.bottom)):(Se.clipBBox=void 0,Se.x=Te.x,Se.y=Te.y,Se.width=Te.width,Se.height=Te.height),Se.visible=!0},K=this.getGroupBaseStyle(!1),q=this.getTileBaseStyle(!1);this.rectSelection.each((Ce,Se)=>V(Se,Ce,K,q,!1));let $=this.getGroupBaseStyle(!0),te=this.getTileBaseStyle(!0);this.highlightSelection.each((Ce,Se)=>{V(Se,Ce,$,te,!0)});let se=Array.from(this.rootNode,Ce=>{var Te,ze,qe,et;let{index:Se,children:ve}=Ce,ke=F[Se],De=(Te=this.labelData)==null?void 0:Te[Se];if(!(ke==null||De==null))if(ve.length===0){let $e={width:ke.width,height:ke.height,meta:null},lt=UG(De.label,this.properties.tile.label,De.secondaryLabel,this.properties.tile.secondaryLabel,{padding:a.padding},()=>$e);if(lt==null)return;let{height:at,label:ht,secondaryLabel:vt}=lt,{textAlign:wt,verticalAlign:Ct,padding:yt}=a,Et=(ze=_Y[wt])!=null?ze:.5,At=ke.x+yt+(ke.width-2*yt)*Et,Dt=(qe=uSe[Ct])!=null?qe:.5,Ot=ke.y+yt+at*.5+(ke.height-2*yt-at)*Dt;return{label:ht!=null?{text:ht.text,fontSize:ht.fontSize,lineHeight:ht.lineHeight,style:this.properties.tile.label,x:At,y:Ot-(at-ht.height)*.5}:void 0,secondaryLabel:vt!=null?{text:vt.text,fontSize:vt.fontSize,lineHeight:vt.fontSize,style:this.properties.tile.secondaryLabel,x:At,y:Ot+(at-vt.height)*.5}:void 0,verticalAlign:"middle",textAlign:wt}}else{if((De==null?void 0:De.label)==null)return;{let{padding:$e,textAlign:lt}=u,at=this.groupTitleHeight(Ce,ke);if(at==null)return;let ht=ke.width-2*$e,vt=sSe.wrapText(De.label,{maxWidth:ke.width-2*$e,font:u.label,textWrap:"never"}),wt=(et=_Y[lt])!=null?et:.5;return{label:{text:vt,fontSize:u.label.fontSize,lineHeight:rSe.getLineHeight(u.label.fontSize),style:this.properties.group.label,x:ke.x+$e+ht*wt,y:ke.y+$e+at*.5},secondaryLabel:void 0,verticalAlign:"middle",textAlign:lt}}}}),de=(Ce,Se,ve,ke)=>{let De=Ce.children.length===0,Te=se[Ce.index],ze=ve===0?Te==null?void 0:Te.label:Te==null?void 0:Te.secondaryLabel;if(Te==null||ze==null){Se.visible=!1;return}let qe;if(ke){let{tile:et,group:$e}=n;qe=et.secondaryLabel.color,De?ve===0&&(qe=et.label.color):qe=$e.label.color}Se.text=ze.text,Se.fontSize=ze.fontSize,Se.lineHeight=ze.lineHeight,Se.fontStyle=ze.style.fontStyle,Se.fontFamily=ze.style.fontFamily,Se.fontWeight=ze.style.fontWeight,Se.fill=qe!=null?qe:ze.style.color,Se.textAlign=Te.textAlign,Se.textBaseline=Te.verticalAlign,Se.x=ze.x,Se.y=ze.y,Se.visible=!0,Se.zIndex=1};this.labelSelection.selectByClass(iz).forEach(Ce=>{de(Ce.datum,Ce,Ce.tag,!1)})}updateNodeMidPoint(e){this.rootNode.walk(t=>{let n=e[t.index];n!=null&&(t.midPoint.x=n.x+n.width/2,t.midPoint.y=n.y)})}pickNodeClosestDatum(e){let t=this.pickNodeExactShape(e);return t!==void 0?t:this.pickNodeNearestDistantObject(e,this.rectSelection.nodes())}getTooltipContent(e){let{id:t,properties:n}=this,{labelKey:a,secondaryLabelKey:u,childrenKey:y,sizeKey:k,sizeName:R,colorKey:F,colorName:_,tooltip:V}=n,{datum:K,index:q,rootIndex:$,depth:te,children:se}=e;if(K==null||te==null)return;let de=se.length===0,pe=[],Ce=k!=null?K[k]:void 0;Ce!=null&&pe.push({label:R,fallbackLabel:k,value:Ce});let Se=F!=null?K[F]:void 0;Se!=null&&pe.push({label:_,fallbackLabel:F,value:Se});let ve;de?(ve=this.getTileBaseStyle(!1),Object.assign(ve,this.getTileStyleOverrides(String(q),K,te,$,Se,ve,!1))):(ve=this.getGroupBaseStyle(!1),Object.assign(ve,this.getGroupStyleOverrides(String(q),K,te,ve,!1)));let ke=ve.fill,De=de?{marker:{shape:"square",fill:ke,fillOpacity:1,stroke:void 0,strokeWidth:0,strokeOpacity:1}}:void 0;return V.formatTooltip({title:a!=null?K[a]:void 0,symbol:De,data:pe},ge({seriesId:t,datum:K,title:void 0,depth:te,labelKey:a,secondaryLabelKey:u,childrenKey:y,sizeKey:k,sizeName:R,colorKey:F,colorName:_},ve))}pickFocus(e){var k,R;let{focusPath:t}=this;(t.length<2||this.focusSorted==null)&&(t.length=1,this.focusSorted=this.sortChildren(t[0].nodeDatum),t.push({nodeDatum:this.focusSorted.childAt(0),childIndex:0}));let{datumIndexDelta:n,otherIndexDelta:a}=e,u=t[t.length-1];if(a===1){if(u.nodeDatum.children.length>0){this.focusSorted=this.sortChildren(u.nodeDatum);let F={nodeDatum:this.focusSorted.childAt(0),childIndex:0};return t.push(F),this.computeFocusOutputs(F)}}else if(n!==0){let F=u.childIndex+n,_=((R=(k=u.nodeDatum.parent)==null?void 0:k.children.length)!=null?R:1)-1;return u.childIndex=lSe(0,F,_),u.nodeDatum=this.focusSorted.childAt(u.childIndex),this.computeFocusOutputs(u)}let y=super.pickFocus(e);return a<0&&(this.focusSorted=this.sortChildren(t[t.length-1].nodeDatum.parent)),y}getAnimationData(){return{datumSelections:[]}}computeFocusBounds(e){var t;return(t=this.rectSelection.at(e.index))==null?void 0:t.getBBox()}};bV.className="TreemapSeries",bV.type="treemap";var{DEFAULT_DIVERGING_SERIES_COLOR_RANGE:hSe,DEFAULT_FONT_FAMILY:CV,DEFAULT_HIERARCHY_FILLS:gSe,DEFAULT_HIERARCHY_STROKES:pSe,DEFAULT_INSIDE_SERIES_LABEL_COLOUR:nz,DEFAULT_LABEL_COLOUR:NY}=Z0e._ModuleSupport.ThemeSymbols,mSe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["hierarchy"],identifier:"treemap",moduleFactory:e=>new bV(e),tooltipDefaults:{range:"exact"},solo:!0,themeTemplate:{series:{group:{label:{enabled:!0,color:NY,fontStyle:void 0,fontWeight:"normal",fontSize:12,fontFamily:CV,spacing:4},fill:void 0,stroke:void 0,strokeWidth:1,padding:4,gap:2,textAlign:"left"},tile:{label:{enabled:!0,color:nz,fontStyle:void 0,fontWeight:"normal",fontSize:18,minimumFontSize:10,fontFamily:CV,wrapping:"on-space",overflowStrategy:"ellipsis",spacing:2},secondaryLabel:{enabled:!0,color:nz,fontStyle:void 0,fontWeight:void 0,fontSize:12,minimumFontSize:10,fontFamily:CV,wrapping:"never",overflowStrategy:"ellipsis"},fill:void 0,stroke:void 0,strokeWidth:0,padding:3,gap:1},highlightStyle:{group:{label:{color:NY},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2},tile:{label:{color:nz},secondaryLabel:{color:nz},fill:"rgba(255,255,255, 0.33)",stroke:"rgba(0, 0, 0, 0.4)",strokeWidth:2}}},gradientLegend:{enabled:!0}},paletteFactory:({takeColors:e,colorsCount:t,themeTemplateParameters:n})=>{let{fills:a,strokes:u}=e(t),y=n.get(hSe),k=n.get(gSe),R=n.get(pSe);return{fills:a,strokes:u,colorRange:y,undocumentedGroupFills:k,undocumentedGroupStrokes:R}}},zY=(mt(),T(pt)),$E=(mt(),T(pt)),fSe=(mt(),T(pt)),{AbstractBarSeriesProperties:vSe,BaseProperties:dO,PropertiesArray:ySe,SeriesTooltip:bSe,Validate:Ta,BOOLEAN:CSe,COLOR_STRING:SV,FUNCTION:BY,LINE_DASH:GY,NUMBER:SSe,OBJECT:zw,OBJECT_ARRAY:wSe,POSITIVE_NUMBER:mP,RATIO:wV,STRING:fP,UNION:VY,DropShadow:xSe,Label:MSe}=fSe._ModuleSupport,az=class extends dO{};me([Ta(VY(["subtotal","total"],"a total type"))],az.prototype,"totalType",2),me([Ta(SSe)],az.prototype,"index",2),me([Ta(fP)],az.prototype,"axisLabel",2);var jY=class extends dO{};me([Ta(BY,{optional:!0})],jY.prototype,"renderer",2);var xV=class extends MSe{constructor(){super(...arguments),this.placement="outside-end",this.padding=6}};me([Ta(VY(["inside-center","inside-start","inside-end","outside-start","outside-end"],"a placement"))],xV.prototype,"placement",2),me([Ta(mP)],xV.prototype,"padding",2);var ju=class extends dO{constructor(){super(...arguments),this.fill="#c16068",this.stroke="#c16068",this.fillOpacity=1,this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.strokeWidth=1,this.cornerRadius=0,this.shadow=new xSe().set({enabled:!1}),this.label=new xV,this.tooltip=new jY}};me([Ta(fP,{optional:!0})],ju.prototype,"name",2),me([Ta(SV)],ju.prototype,"fill",2),me([Ta(SV)],ju.prototype,"stroke",2),me([Ta(wV)],ju.prototype,"fillOpacity",2),me([Ta(wV)],ju.prototype,"strokeOpacity",2),me([Ta(GY)],ju.prototype,"lineDash",2),me([Ta(mP)],ju.prototype,"lineDashOffset",2),me([Ta(mP)],ju.prototype,"strokeWidth",2),me([Ta(mP)],ju.prototype,"cornerRadius",2),me([Ta(BY,{optional:!0})],ju.prototype,"itemStyler",2),me([Ta(zw)],ju.prototype,"shadow",2),me([Ta(zw)],ju.prototype,"label",2),me([Ta(zw)],ju.prototype,"tooltip",2);var QE=class extends dO{constructor(){super(...arguments),this.enabled=!0,this.stroke="black",this.strokeOpacity=1,this.lineDash=[0],this.lineDashOffset=0,this.strokeWidth=2}};me([Ta(CSe)],QE.prototype,"enabled",2),me([Ta(SV)],QE.prototype,"stroke",2),me([Ta(wV)],QE.prototype,"strokeOpacity",2),me([Ta(GY)],QE.prototype,"lineDash",2),me([Ta(mP)],QE.prototype,"lineDashOffset",2),me([Ta(mP)],QE.prototype,"strokeWidth",2);var oz=class extends dO{constructor(){super(...arguments),this.positive=new ju,this.negative=new ju,this.total=new ju}};me([Ta(zw)],oz.prototype,"positive",2),me([Ta(zw)],oz.prototype,"negative",2),me([Ta(zw)],oz.prototype,"total",2);var Bw=class extends vSe{constructor(){super(...arguments),this.item=new oz,this.totals=new ySe(az),this.line=new QE,this.tooltip=new bSe}};me([Ta(fP)],Bw.prototype,"xKey",2),me([Ta(fP)],Bw.prototype,"yKey",2),me([Ta(fP,{optional:!0})],Bw.prototype,"xName",2),me([Ta(fP,{optional:!0})],Bw.prototype,"yName",2),me([Ta(zw)],Bw.prototype,"item",2),me([Ta(wSe)],Bw.prototype,"totals",2),me([Ta(zw)],Bw.prototype,"line",2),me([Ta(zw)],Bw.prototype,"tooltip",2);var{adjustLabelPlacement:kSe,SeriesNodePickMode:HY,fixNumericExtent:ASe,valueProperty:WY,keyProperty:DSe,accumulativeValueProperty:rz,trailingAccumulatedValueProperty:ESe,ChartAxisDirection:MV,getRectConfig:ISe,createDatumId:UY,updateRect:TSe,checkCrisp:RSe,updateLabelNode:PSe,prepareBarAnimationFunctions:LSe,collapsedStartingBarPosition:OSe,resetBarSelectionsFn:FSe,seriesLabelFadeInAnimation:_Se,resetLabelFn:NSe,animationValidation:zSe,DEFAULT_CARTESIAN_DIRECTION_KEYS:BSe,DEFAULT_CARTESIAN_DIRECTION_NAMES:GSe,computeBarFocusBounds:VSe,isContinuous:KY,Rect:jSe,motion:HSe}=$E._ModuleSupport,kV=class extends $E._ModuleSupport.AbstractBarSeries{constructor(e){super({moduleCtx:e,directionKeys:BSe,directionNames:GSe,pickModes:[HY.NEAREST_NODE,HY.EXACT_SHAPE_MATCH],pathsPerSeries:["connector"],hasHighlightedLabels:!0,pathsZIndexSubOrderOffset:[-1,-1],animationResetFns:{datum:FSe,label:NSe}}),this.properties=new Bw,this.seriesItemTypes=new Set(["positive","negative","total"])}async processData(e){var Ce,Se,ve,ke;let{xKey:t,yKey:n,totals:a}=this.properties,{data:u=[]}=this;if(!this.properties.isValid()||!this.visible)return;let y=De=>KY(De)&&Number(De)>=0,k=De=>KY(De)&&Number(De)>=0,R=De=>De==="total"||De==="subtotal",F={missingValue:void 0,invalidValue:void 0},_=[],V=a.reduce((De,Te)=>{let ze=De.get(Te.index);return ze?ze.push(Te):De.set(Te.index,[Te]),De},new Map);u.forEach((De,Te)=>{var ze;_.push(De),(ze=V.get(Te))==null||ze.forEach(qe=>_.push(He(ge({},qe.toJson()),{[t]:qe.axisLabel})))});let K=[];this.ctx.animationManager.isSkipped()||K.push(zSe());let q=(Ce=this.getCategoryAxis())==null?void 0:Ce.scale,$=(Se=this.getValueAxis())==null?void 0:Se.scale,{isContinuousX:te,xScaleType:se,yScaleType:de}=this.getScaleInformation({xScale:q,yScale:$}),{processedData:pe}=await this.requestDataModel(e,_,{props:[DSe(t,se,{id:"xValue"}),rz(n,de,He(ge({},F),{id:"yCurrent"})),rz(n,de,He(ge({},F),{missingValue:0,id:"yCurrentTotal"})),rz(n,de,He(ge({},F),{id:"yCurrentPositive",validation:y})),rz(n,de,He(ge({},F),{id:"yCurrentNegative",validation:k})),ESe(n,de,He(ge({},F),{id:"yPrevious"})),WY(n,de,{id:"yRaw"}),WY("totalType","band",{id:"totalTypeValue",missingValue:void 0,validation:R}),...te?[$E._ModuleSupport.SMALLEST_KEY_INTERVAL,$E._ModuleSupport.LARGEST_KEY_INTERVAL]:[],...K]});this.smallestDataInterval=(ve=pe.reduced)==null?void 0:ve.smallestKeyInterval,this.largestDataInterval=(ke=pe.reduced)==null?void 0:ke.largestKeyInterval,this.updateSeriesItemTypes(),this.animationState.transition("updateData")}getSeriesDomain(e){let{processedData:t,dataModel:n}=this;if(!t||!n)return[];let{keys:[a],values:u}=t.domain;if(e===this.getCategoryDirection()){let y=n.resolveProcessedDataDefById(this,"xValue");if((y==null?void 0:y.def.type)==="key"&&(y==null?void 0:y.def.valueType)==="category")return a;let k=e===MV.Y,R=this.getCategoryAxis().isReversed();return this.padBandExtent(a,R!==k)}else{let y=n.resolveProcessedDataIndexById(this,"yCurrent"),k=u[y],R=[Math.min(0,k[0]),Math.max(0,k[1])];return ASe(R)}}getSeriesRange(e,t){return[NaN,NaN]}createNodeData(){var lt;let{data:e,dataModel:t,processedData:n}=this,a=this.getCategoryAxis(),u=this.getValueAxis();if(!e||!a||!u||!t||n==null||n.rawData.length===0)return;let{line:y}=this.properties,k=a.scale,R=u.scale,F=this.getBarDirection()===MV.X,_=(lt=this.getBandwidth(a))!=null?lt:10,V=a.isReversed(),K=u.isReversed();if(n.type!=="ungrouped")return;let q={itemId:this.properties.yKey,nodeData:[],labelData:[],pointData:[],scales:this.calculateScaling(),visible:this.visible};if(!this.visible)return q;let $=[],te=t.resolveKeysById(this,"xValue",n),se=t.resolveColumnById(this,"yRaw",n),de=t.resolveColumnById(this,"totalTypeValue",n),pe=t.resolveColumnById(this,"yCurrent",n),Ce=t.resolveColumnById(this,"yPrevious",n),Se=t.resolveColumnById(this,"yCurrentTotal",n);function ve(at,ht,vt){return at||ht?{cumulativeValue:Se[vt],trailingValue:ht?De:0}:{cumulativeValue:pe[vt],trailingValue:Ce[vt]}}function ke(at,ht,vt,wt,Ct){return at?wt:ht?(wt!=null?wt:0)-(Ct!=null?Ct:0):vt}let De=0,{xKey:Te,yKey:ze,xName:qe,yName:et}=this.properties;n.rawData.forEach((at,ht)=>{let vt=de[ht],wt=this.isSubtotal(vt),Ct=this.isTotal(vt),yt=Ct||wt,Et=te[ht];if(Et==null)return;let At=Math.round(k.convert(Et)),Dt=se[ht],{cumulativeValue:Ot,trailingValue:It}=ve(Ct,wt,ht);yt&&(De=Ot!=null?Ot:0);let Rt=Math.round(R.convert(Ot)),Xt=Math.round(R.convert(It)),Yt=ke(Ct,wt,Dt,Ot,It),Ut=(Yt!=null?Yt:0)>=0,oi=this.getSeriesItemType(Ut,vt),{fill:ti,stroke:ai,strokeWidth:ui,label:qt}=this.getItemConfig(oi),Zt=Ut?Rt:Xt,pi=Ut?Xt:Rt,si=Math.max(ui,Math.abs(pi-Zt)),ci={x:F?Math.min(Zt,pi):At,y:F?At:Math.min(Zt,pi),width:F?si:_,height:F?_:si},yi={x:ci.x+ci.width/2,y:ci.y+ci.height/2},sn=yt?Rt:Xt,Ni=Math.floor(y.strokeWidth)%2/2,nn=V?Rt:sn,Gi=V?sn:Rt,Pn,Ln;F?(Pn={x:nn+Ni,y:ci.y},Ln={x:Gi+Ni,y:ci.y+ci.height}):(Pn={x:ci.x,y:nn+Ni},Ln={x:ci.x+ci.width,y:Gi+Ni});let _r={x:V?Ln.x:Pn.x,y:V?Ln.y:Pn.y,x2:V?Pn.x:Ln.x,y2:V?Pn.y:Ln.y,size:0};$.push(_r);let ul=oi==="subtotal"?"total":oi,Hu=this.getLabelText(qt,{itemId:ul,value:Yt,datum:at,xKey:Te,yKey:ze,xName:qe,yName:et}),ts={index:ht,series:this,itemId:oi,datum:at,datumIndex:ht,cumulativeValue:Ot!=null?Ot:0,xValue:Et,yValue:Yt,yKey:ze,xKey:Te,x:ci.x,y:ci.y,width:ci.width,height:ci.height,midPoint:yi,fill:ti,stroke:ai,strokeWidth:ui,opacity:1,label:ge({text:Hu},kSe({isUpward:(Yt!=null?Yt:-1)>=0!==K,isVertical:!F,placement:qt.placement,padding:qt.padding,rect:ci}))};q.nodeData.push(ts),q.labelData.push(ts)});let $e=this.properties.line.enabled;return pe!=null&&$e&&(q.pointData=$),q}updateSeriesItemTypes(){var _,V;let{dataModel:e,seriesItemTypes:t,processedData:n}=this;if(!e||!n)return;t.clear();let a=e.resolveProcessedDataIndexById(this,"yCurrentPositive"),u=e.resolveProcessedDataIndexById(this,"yCurrentNegative"),y=e.resolveProcessedDataIndexById(this,"totalTypeValue"),k=(_=n.domain.values[a])!=null?_:[],R=(V=n.domain.values[u])!=null?V:[];k.length>0&&t.add("positive"),R.length>0&&t.add("negative");let F=n==null?void 0:n.domain.values[y];F&&F.forEach(K=>{(K==="total"||K==="subtotal")&&t.add("total")})}isSubtotal(e){return e==="subtotal"}isTotal(e){return e==="total"}nodeFactory(){return new jSe}getSeriesItemType(e,t){return t!=null?t:e?"positive":"negative"}getItemConfig(e){switch(e){case"positive":return this.properties.item.positive;case"negative":return this.properties.item.negative;case"subtotal":case"total":return this.properties.item.total}}updateDatumSelection(e){let{nodeData:t,datumSelection:n}=e,a=t!=null?t:[];return n.update(a)}getItemStyle(e,t,n,a){var q,$,te,se,de,pe,Ce,Se;let{id:u,properties:y}=this,k=y.item[n==="subtotal"?"total":n],R=a?y.highlightStyle.item:void 0,{itemStyler:F}=k,{xKey:_,yKey:V}=y,K={fill:(q=R==null?void 0:R.fill)!=null?q:k.fill,fillOpacity:($=R==null?void 0:R.fillOpacity)!=null?$:k.fillOpacity,stroke:(te=R==null?void 0:R.stroke)!=null?te:k.stroke,strokeWidth:(se=R==null?void 0:R.strokeWidth)!=null?se:k.strokeWidth,strokeOpacity:(de=R==null?void 0:R.strokeOpacity)!=null?de:k.strokeOpacity,lineDash:(Ce=(pe=R==null?void 0:R.lineDash)!=null?pe:k.lineDash)!=null?Ce:[],lineDashOffset:(Se=R==null?void 0:R.lineDashOffset)!=null?Se:k.lineDashOffset,cornerRadius:k.cornerRadius};if(F!=null){let ve=this.cachedDatumCallback(UY(e,a?"highlight":"node"),()=>F(ge({seriesId:u,itemId:n,datum:t,xKey:_,yKey:V,highlighted:a},K)));Object.assign(K,ve)}return K}updateDatumNodes(e){let{datumSelection:t,isHighlight:n}=e,{id:a}=this,{yKey:u,highlightStyle:{item:y}}=this.properties,k=this.getCategoryAxis(),R=RSe(k==null?void 0:k.scale,k==null?void 0:k.visibleRange,this.smallestDataInterval,this.largestDataInterval),F=this.getCategoryDirection()===MV.X;t.each((_,V)=>{let K=V.itemId,{fillOpacity:q,strokeOpacity:$,strokeWidth:te,lineDash:se,lineDashOffset:de,cornerRadius:pe,itemStyler:Ce,shadow:Se}=this.getItemConfig(K),ve={fill:V.fill,stroke:V.stroke,fillOpacity:q,strokeOpacity:$,lineDash:se,lineDashOffset:de,fillShadow:Se,strokeWidth:this.getStrokeWidth(te),cornerRadius:pe},ke=F?V.width>0:V.height>0,De=ISe(this,UY(V.index,"node"),{datum:V,isHighlighted:n,style:ve,highlightStyle:y,itemStyler:Ce,seriesId:a,itemId:V.itemId,value:V.yValue,yKey:u});De.crisp=R,De.visible=ke,TSe(_,De)})}updateLabelSelection(e){let{labelData:t,labelSelection:n}=e;if(t.length===0)return n.update([]);let a=t.filter(u=>{let{label:y}=this.getItemConfig(u.itemId);return y.enabled});return n.update(a)}updateLabelNodes(e){e.labelSelection.each((t,n)=>{PSe(t,this.getItemConfig(n.itemId).label,n.label)})}getTooltipContent(e){let{id:t,dataModel:n,processedData:a,properties:u}=this,{xKey:y,xName:k,yKey:R,yName:F,tooltip:_}=u,V=this.getCategoryAxis(),K=this.getValueAxis();if(!n||!a||a.rawData.length===0||!V||!K)return;let{datumIndex:q}=e,$=a.rawData[q],te=n.resolveKeysById(this,"xValue",a)[q],se=n.resolveColumnById(this,"yRaw",a)[q],de=n.resolveColumnById(this,"yCurrentTotal",a),pe=n.resolveColumnById(this,"totalTypeValue",a);if(te==null)return;let Ce=pe[q],Se=(se!=null?se:0)>=0,ve=this.getSeriesItemType(Se,Ce),ke;if(this.isTotal(Ce))ke=de[q];else if(this.isSubtotal(Ce)){ke=de[q];for(let Te=q-1;Te>=0;Te-=1)if(this.isSubtotal(pe[Te])){ke=ke-de[Te];break}}else ke=se;let De=this.getItemStyle(String(q),$,ve,!1);return _.formatTooltip({heading:V.formatDatum(te),symbol:this.legendItemSymbol(ve),data:[{label:F,fallbackLabel:R,value:K.formatDatum(ke)}]},ge({seriesId:t,datum:$,title:F,itemId:ve,xKey:y,xName:k,yKey:R,yName:F},De))}legendItemSymbol(e){let{fill:t,stroke:n,fillOpacity:a,strokeOpacity:u,strokeWidth:y}=this.getItemConfig(e);return{marker:{fill:t,stroke:n,fillOpacity:a,strokeOpacity:u,strokeWidth:y}}}getLegendData(e){if(e!=="category")return[];let{id:t,seriesItemTypes:n}=this,a=[],u=k=>k.charAt(0).toUpperCase()+k.substring(1),{showInLegend:y}=this.properties;return n.forEach(k=>{let{name:R}=this.getItemConfig(k);a.push({legendType:"category",id:t,itemId:k,seriesId:t,enabled:!0,label:{text:R!=null?R:u(k)},symbol:this.legendItemSymbol(k),hideInLegend:!y,isFixed:!0})}),a}toggleSeriesItem(){}animateEmptyUpdateReady({datumSelection:e,labelSelection:t,contextData:n,paths:a}){let u=LSe(OSe(this.isVertical(),this.axes,"normal"));HSe.fromToMotion(this.id,"datums",this.ctx.animationManager,[e],u),_Se(this,"labels",this.ctx.animationManager,t);let{pointData:y}=n;if(!y)return;let[k]=a;this.isVertical()?this.animateConnectorLinesVertical(k,y):this.animateConnectorLinesHorizontal(k,y)}animateConnectorLinesHorizontal(e,t){let{path:n}=e;this.updateLineNode(e);let a=this.getValueAxis(),u=a==null?void 0:a.isReversed(),y=u?(_,V)=>_<V:(_,V)=>_>V,k=a==null?void 0:a.scale.convert(0),R=t.reduce((_,V)=>(y(V.x,_)&&(_=V.x),_),u?1/0:0),F=(_,V,K,q,$)=>(_-V)/(K-V)*($-q)+q;this.ctx.animationManager.animate({id:`${this.id}_connectors`,groupId:this.id,phase:"initial",from:k,to:R,ease:$E._ModuleSupport.Motion.easeOut,collapsable:!1,onUpdate(_){n.clear(!0),t.forEach((V,K)=>{let q=F(_,k,R,k,V.x),$=F(_,k,R,k,V.x2);K!==0&&n.lineTo(q,V.y),n.moveTo($,V.y2)}),e.checkPathDirty()}})}animateConnectorLinesVertical(e,t){let{path:n}=e;this.updateLineNode(e);let a=this.getValueAxis(),u=a==null?void 0:a.isReversed(),y=u?(_,V)=>_>V:(_,V)=>_<V,k=a==null?void 0:a.scale.convert(0),R=t.reduce((_,V)=>(y(V.y,_)&&(_=V.y),_),u?0:1/0),F=(_,V,K,q,$)=>(_-V)/(K-V)*($-q)+q;this.ctx.animationManager.animate({id:`${this.id}_connectors`,groupId:this.id,phase:"initial",from:k,to:R,ease:$E._ModuleSupport.Motion.easeOut,collapsable:!1,onUpdate(_){n.clear(!0),t.forEach((V,K)=>{let q=F(_,k,R,k,V.y),$=F(_,k,R,k,V.y2);K!==0&&n.lineTo(V.x,q),n.moveTo(V.x2,$)}),e.checkPathDirty()}})}animateReadyResize(e){super.animateReadyResize(e),this.resetConnectorLinesPath(e)}updatePaths(e){this.resetConnectorLinesPath({contextData:e.contextData,paths:e.paths})}resetConnectorLinesPath({contextData:e,paths:t}){if(t.length===0)return;let[n]=t;this.updateLineNode(n);let{path:a}=n;a.clear(!0);let{pointData:u}=e;u&&(u.forEach((y,k)=>{k!==0&&a.lineTo(y.x,y.y),a.moveTo(y.x2,y.y2)}),n.checkPathDirty())}updateLineNode(e){let{stroke:t,strokeWidth:n,strokeOpacity:a,lineDash:u,lineDashOffset:y}=this.properties.line;e.setProperties({fill:void 0,stroke:t,strokeWidth:this.getStrokeWidth(n),strokeOpacity:a,lineDash:u,lineDashOffset:y,lineJoin:"round",pointerEvents:$E._ModuleSupport.PointerEvents.None})}isLabelEnabled(){let{positive:e,negative:t,total:n}=this.properties.item;return e.label.enabled||t.label.enabled||n.label.enabled}onDataChange(){}computeFocusBounds({datumIndex:e}){var t;return VSe((t=this.contextNodeData)==null?void 0:t.nodeData[e])}};kV.className="WaterfallSeries",kV.type="waterfall";var AV=(mt(),T(pt)),DV={strokeWidth:0,label:{enabled:!1,fontStyle:void 0,fontWeight:"normal",fontSize:12,fontFamily:AV._ModuleSupport.ThemeSymbols.DEFAULT_FONT_FAMILY,color:AV._ModuleSupport.ThemeSymbols.DEFAULT_LABEL_COLOUR,formatter:void 0,placement:"outside-end"}},WSe={series:{item:{positive:DV,negative:DV,total:DV},line:{stroke:AV._ModuleSupport.ThemeSymbols.PALETTE_NEUTRAL_STROKE,strokeOpacity:1,lineDash:[0],lineDashOffset:0,strokeWidth:2}},legend:{enabled:!0,toggleSeries:!1}},{ThemeSymbols:EV,ThemeConstants:sz}=zY._ModuleSupport,USe={type:"series",optionsKey:"series[]",packageType:"enterprise",chartTypes:["cartesian"],identifier:"waterfall",solo:!0,moduleFactory:e=>new kV(e),tooltipDefaults:{range:"exact"},defaultAxes:zY._ModuleSupport.swapAxisCondition([{type:sz.CARTESIAN_AXIS_TYPE.NUMBER,position:sz.CARTESIAN_POSITION.LEFT},{type:sz.CARTESIAN_AXIS_TYPE.CATEGORY,position:sz.CARTESIAN_POSITION.BOTTOM}],e=>(e==null?void 0:e.direction)==="horizontal"),themeTemplate:WSe,paletteFactory:({takeColors:e,colorsCount:t,userPalette:n,palette:a})=>{if(n==="user-indexed"){let{fills:u,strokes:y}=e(t);return{line:{stroke:a.neutral.stroke},item:{positive:{fill:u[0],stroke:y[0]},negative:{fill:u[1],stroke:y[1]},total:{fill:u[2],stroke:y[2]}}}}return{line:{stroke:a.neutral.stroke},item:{positive:{fill:a.altUp.fill,stroke:a.altUp.stroke,label:{color:EV.DEFAULT_LABEL_COLOUR}},negative:{fill:a.altDown.fill,stroke:a.altDown.stroke,label:{color:EV.DEFAULT_LABEL_COLOUR}},total:{fill:a.neutral.fill,stroke:a.neutral.stroke,label:{color:EV.DEFAULT_LABEL_COLOUR}}}}}},KSe=`.ag-watermark{position:absolute;bottom:20px;right:25px;font-weight:700;font-family:Impact,sans-serif;font-size:19px;opacity:.7;animation:1s ease-out 3s ag-watermark-fadeout;color:#9b9b9b;pointer-events:none;&:before{content:"";display:block;height:40px;width:170px;background-image:url(data:image/svg+xml;base64, );background-repeat:no-repeat;background-size:170px 40px}>span{padding-left:.7rem}}@keyframes ag-watermark-fadeout{0%{opacity:.5}to{opacity:0}}.ag-charts-dialog{display:flex;flex-direction:column;font-size:14px}.ag-charts-dialog__tabs{display:flex;flex-direction:column}.ag-charts-dialog__header{border-bottom:1px solid var(--ag-charts-border-color);display:flex}.ag-charts-dialog__tab-list{display:flex;gap:var(--ag-charts-input-spacing)}.ag-charts-dialog__drag-handle{align-items:center;color:inherit;cursor:grab;display:flex;padding:1px 6px;text-align:center}.ag-charts-dialog__drag-handle--dragging{cursor:grabbing}.ag-charts-dialog__tab-button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--ag-charts-dialog-tab-color--inactive);margin-bottom:-1px;padding:var(--ag-charts-input-padding) calc(var(--ag-charts-input-padding) / 2)}.ag-charts-dialog__tab-button:hover{background:none}.ag-charts-dialog__tab-button--active{border-color:currentColor;color:inherit}.ag-charts-dialog__drag-handle+.ag-charts-dialog__tab-button{margin-left:calc(var(--ag-charts-input-spacing) * -1)}.ag-charts-button.ag-charts-dialog__close-button{background:none;border:0;margin-left:auto;padding:1px 6px}.ag-charts-dialog__close-button:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-dialog__tab-panel{display:none;flex-direction:column;gap:calc(var(--ag-charts-input-spacing) * 2);margin:0 calc(var(--ag-charts-input-spacing) * 2);padding:calc(var(--ag-charts-input-spacing) * 2) 0}.ag-charts-dialog__tab-panel--active{display:flex}.ag-charts-dialog__input-group-line{display:flex;gap:18px}.ag-charts-dialog__input-group{align-items:center;display:flex;font-size:12px}.ag-charts-dialog__input-group-label{color:var(--ag-charts-dialog-input-group-label-color);margin-right:5px}.ag-charts-dialog__input-group-label[for]{cursor:pointer}.ag-charts-dialog__button{border-radius:0;margin-right:-1px}.ag-charts-dialog__button.ag-charts-dialog__button--active{background:var(--ag-charts-input-background-color--active);border-color:var(--ag-charts-input-border-color--active);color:var(--ag-charts-input-color--active);z-index:var(--input-layer-active)}.ag-charts-dialog__button:first-child,.ag-charts-dialog__input-group-label+.ag-charts-dialog__button{border-bottom-left-radius:var(--ag-charts-input-border-radius);border-top-left-radius:var(--ag-charts-input-border-radius)}.ag-charts-dialog__button:last-child{border-bottom-right-radius:var(--ag-charts-input-border-radius);border-top-right-radius:var(--ag-charts-input-border-radius)}.ag-charts-dialog__color-picker-button{--color: #000;background:var(--color);border:none;color:transparent;height:26px;width:26px}.ag-charts-dialog__color-picker-button:hover{background:var(--color)}.ag-charts-dialog__color-picker-button--multi-color,.ag-charts-dialog__color-picker-button--multi-color:hover{background:linear-gradient(135deg,red 0%,#ff0 calc(100% * 1 / 6),#0f0 calc(100% * 2 / 6),#0ff 50%,#00f calc(100% * 4 / 6),#f0f calc(100% * 5 / 6),red 100%)}.ag-charts-color-picker{width:190px;padding:8px;--h: 0;--s: 0;--v: 0;--a: 0;--color: #000;--color-a: #000;--thumb-size: 18px;--inner-width: 172px;--track-height: 12px;--palette-height: 136px;--checker: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>');--multi-color: linear-gradient( 135deg, #f00 0% , #ff0 calc(100% * 1 / 6), #0f0 calc(100% * 2 / 6), #0ff 50% , #00f calc(100% * 4 / 6), #f0f calc(100% * 5 / 6), #f00 100% )}.ag-charts-color-picker__content{display:flex;flex-direction:column}.ag-charts-color-picker__palette{position:relative;width:100%;height:var(--palette-height);margin-bottom:8px;background:linear-gradient(to bottom,#0000,#000),linear-gradient(to right,#fff,#fff0) hsl(var(--h),100%,50%);border-radius:6px;box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__palette:after{content:"";position:absolute;display:block;top:calc(var(--thumb-size) * -.5 + (1 - var(--v)) * 100%);left:calc(var(--thumb-size) * -.5 + var(--s) * 100%);background:var(--color);width:var(--thumb-size);height:var(--thumb-size);border-radius:99px;box-shadow:var(--box-shadow);--box-shadow: inset 0 0 0 3px white, inset 0 0 1px 3px #0006, 0 0 5px #00000038}.ag-charts-color-picker__palette:focus-visible:after{outline:var(--ag-charts-focus-border);box-shadow:var(--box-shadow),0 0 0 2px #fff8,var(--ag-charts-focus-border-shadow)}.ag-charts-color-picker__color-row{display:flex;gap:8px;align-items:center;margin-bottom:4px;--inset: calc((var(--thumb-size) - var(--track-height)) / 2)}.ag-charts-color-picker__hue-input,.ag-charts-color-picker__alpha-input{-webkit-appearance:none;display:block;position:relative;padding:0;margin:0 calc(var(--inset) * -1);border:0;height:var(--thumb-size);width:auto;background:transparent;--inset: calc((var(--thumb-size) - var(--track-height)) / 2)}.ag-charts-color-picker__hue-input::-webkit-slider-thumb,.ag-charts-color-picker__alpha-input::-webkit-slider-thumb{-webkit-appearance:none;width:var(--thumb-size);height:var(--thumb-size);border-radius:99px;box-shadow:var(--box-shadow);--box-shadow: inset 0 0 0 3px white, inset 0 0 1px 3px #0006, 0 0 5px #00000038;transform:translateZ(0)}.ag-charts-color-picker__hue-input::-webkit-slider-thumb{background:hsl(var(--h),100%,50%)}.ag-charts-color-picker__alpha-input::-webkit-slider-thumb{background:transparent}.ag-charts-color-picker__alpha-input--opaque::-webkit-slider-thumb{background:var(--color)}.ag-charts-color-picker__hue-input:focus-visible::-webkit-slider-thumb,.ag-charts-color-picker__alpha-input:focus-visible::-webkit-slider-thumb{outline:var(--ag-charts-focus-border);box-shadow:var(--box-shadow),var(--ag-charts-focus-border-shadow)}.ag-charts-color-picker__hue-input:before,.ag-charts-color-picker__alpha-input:before{position:absolute;content:"";display:block;top:calc(50% - var(--track-height) / 2);left:var(--inset);right:var(--inset);height:var(--track-height);border-radius:99px;box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__multi-color-button{width:36px;margin-left:var(--inset);height:var(--track-height);border-radius:99px;border:0;background:var(--multi-color);box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__multi-color-button--hidden{display:none}.ag-charts-color-picker__multi-color-button--active{box-shadow:inset 0 0 0 1px #0003;outline-offset:1px;outline:2px solid #2196f3}.ag-charts-color-picker__hue-input{flex:1 0 0}.ag-charts-color-picker__hue-input:before{background:linear-gradient(to right,red,red calc((100% - var(--track-height)) * 0 / 6 + var(--track-height) / 2),#ff0 calc((100% - var(--track-height)) * 1 / 6 + var(--track-height) / 2),#0f0 calc((100% - var(--track-height)) * 2 / 6 + var(--track-height) / 2),#0ff calc((100% - var(--track-height)) * 3 / 6 + var(--track-height) / 2),#00f calc((100% - var(--track-height)) * 4 / 6 + var(--track-height) / 2),#f0f calc((100% - var(--track-height)) * 5 / 6 + var(--track-height) / 2),red calc((100% - var(--track-height)) * 6 / 6 + var(--track-height) / 2))}.ag-charts-color-picker__alpha-input{margin-bottom:7px}.ag-charts-color-picker__alpha-input:before{background:linear-gradient(to right,transparent,var(--color)),var(--checker) top left / 4px 4px}.ag-charts-color-picker__color-field{display:flex;border:var(--ag-charts-border);background:var(--ag-charts-background-color);border-radius:4px;overflow:hidden}.ag-charts-color-picker__color-field:has(:focus-visible){border-color:var(--ag-charts-active-color);box-shadow:var(--ag-charts-focus-border-shadow)}.ag-charts-color-picker__color-label{width:16px;height:16px;margin:7px 0 7px 7px;color:transparent;background:linear-gradient(to right,var(--color-a),var(--color-a)),var(--checker) top left / 4px 4px;border-radius:2px;box-shadow:inset 0 0 0 1px #0003}.ag-charts-color-picker__color-label--multi-color{background:var(--multi-color)}.ag-charts-color-picker__color-input{flex:1;min-width:0;padding:7px 7px 7px 8px;border:0;margin:0;color:inherit;background:transparent;font-variant:tabular-nums}.ag-charts-color-picker__color-input:focus-visible{border:none;outline:none}.ag-charts-annotations__line-stroke-width-menu,.ag-charts-annotations__line-style-type-menu,.ag-charts-annotations__text-size-menu{.ag-charts-menu__row:first-child{border-radius:0}}.ag-charts-annotations__stroke-width-button:before{--stroke-width-color: var(--ag-charts-toolbar-foreground-color);background:var(--stroke-width-color);content:"";margin-right:var(--ag-charts-toolbar-button-padding);height:min(var(--stroke-width),20px);width:12px}.ag-charts-annotations__stroke-width-button[aria-disabled=true]:before{filter:grayscale(1);opacity:.5}.ag-charts-annotations__color-picker-button{--emblem: var(--color)}.ag-charts-annotations__color-picker-button--multi-color{--emblem: linear-gradient( to right, #f00 0% , #ff0 calc(100% * 1 / 6), #0f0 calc(100% * 2 / 6), #0ff 50% , #00f calc(100% * 4 / 6), #f0f calc(100% * 5 / 6), #f00 100% )}.ag-charts-annotations__color-picker-button:after{content:"";display:block;position:absolute;bottom:3px;left:5px;right:5px;height:4px;border-radius:99px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ag-charts-foreground-color) 10%,transparent);background:var(--emblem)}.ag-charts-annotations__color-picker-button[aria-disabled=true]:after{filter:grayscale(1);opacity:.5}.ag-charts-annotations__toolbar-menu{min-width:200px}.ag-charts-annotations__text-size-menu{--item-padding: 4px 8px;border-top-left-radius:0;border-top-right-radius:0;width:34px}.ag-charts-annotations__line-stroke-width-menu{--item-padding: 6px;column-gap:6px}.ag-charts-annotations__line-style-type-menu{--item-padding: 6px;column-gap:0}.ag-charts-annotations__axis-button-wrapper{position:absolute;left:0;top:0;user-select:none;font:16px Verdana,sans-serif;overflow:hidden;white-space:nowrap;z-index:var(--ag-charts-layer-annotations);box-sizing:border-box}.ag-charts-annotations__axis-button-wrapper--hidden{display:none}.ag-charts-annotations__axis-button{cursor:pointer;border:none;border-radius:2px;padding:0;line-height:16px;background-color:var(--ag-charts-axis-label-background-color);color:var(--ag-charts-axis-label-color)}.ag-charts-annotations__axis-button:hover{opacity:.8;color:var(--ag-charts-axis-label-color)}.ag-charts-dialog--annotation-settings{min-height:233px;width:289px}.ag-charts-dialog--annotation-settings .ag-charts-textarea{height:calc(10px * 2 + var(--line-height) * 1em * 3 + 2px);overflow-y:auto;resize:vertical}.ag-charts-context-menu{background:#f8f8f8;border:1px solid #babfc7;border-radius:5px;box-shadow:0 1px 4px 1px #babfc766;color:#181d1f;font:13px Verdana,sans-serif;transition:transform .1s ease;white-space:nowrap;z-index:var(--ag-charts-layer-ui-overlay)}.ag-charts-context-menu.ag-charts-dark-context-menu{color:#fff;background:#15181c}.ag-charts-context-menu__cover{position:fixed;left:0;top:0}.ag-charts-context-menu__menu{display:flex;flex-direction:column;padding:.5em 0}.ag-charts-context-menu__menu:focus{outline:none}.ag-charts-context-menu__item{background:none;border:none;box-sizing:border-box;font:inherit;padding:.5em 1em;text-align:left;-webkit-appearance:none;-moz-appearance:none}.ag-charts-context-menu__item.ag-charts-dark-context-menu{color:#fff}.ag-charts-context-menu__item:focus{background:#2196f31a}.ag-charts-context-menu__item:focus.ag-charts-dark-context-menu{background:#2196f31a}.ag-charts-context-menu__item:active{background:#2196f333}.ag-charts-context-menu__item:active.ag-charts-dark-context-menu{background:#2196f31a}.ag-charts-context-menu__item:focus-visible{outline:var(--ag-charts-focus-border);box-shadow:var(--ag-charts-focus-border-shadow);z-index:calc(var(--ag-charts-layer-ui-overlay) + 1)}.ag-charts-context-menu__item[aria-disabled=true]{border:none;opacity:.5;text-align:left}.ag-charts-context-menu__item[aria-disabled=true]:focus{background:inherit;cursor:inherit}.ag-charts-context-menu__divider{margin:5px 0;background:#babfc7;height:1px}.ag-charts-context-menu__divider.ag-charts-dark-context-menu{background:#2196f31a}.ag-charts-crosshair-label{position:absolute;left:0;top:0;user-select:none;pointer-events:none;font:12px Verdana,sans-serif;overflow:hidden;white-space:nowrap;z-index:var(--ag-charts-layer-crosshair);box-sizing:border-box}.ag-charts-crosshair-label-content{padding:0 8px;border-radius:2px;line-height:20px;background-color:var(--ag-charts-axis-label-background-color);color:var(--ag-charts-axis-label-color)}.ag-charts-crosshair-label--hidden{visibility:hidden!important}.ag-charts-text-input{position:absolute}.ag-charts-text-input__textarea{display:block;height:100%;width:100%;border:0;background:none;line-height:1.38;outline:none;transform:translateY(.09em)}.ag-charts-text-input__textarea[placeholder]:empty:before{content:attr(placeholder);color:var(--ag-charts-input-placeholder-color);font-weight:400}.ag-charts-text-input__textarea[placeholder]:not(:empty):before{content:""}.ag-charts-chart-toolbar__menu{min-width:200px}.ag-charts-range-buttons .ag-charts-toolbar__button{padding:var(--ag-charts-toolbar-button-padding) calc(var(--ag-charts-toolbar-button-padding) * 1.5)}.ag-charts-zoom-buttons{align-items:center;display:flex;height:calc(var(--ag-charts-toolbar-size) + 10px);justify-content:center;overflow:hidden;padding-bottom:10px;pointer-events:none;width:100%;.ag-charts-toolbar{--ag-charts-toolbar-size: var(--ag-charts-toolbar-size-small);--ag-charts-toolbar-font-size: var(--ag-charts-toolbar-font-size-small);--ag-charts-toolbar-button-padding: var(--ag-charts-toolbar-button-padding-small);display:flex;height:var(--ag-charts-toolbar-size);justify-content:center;opacity:1;pointer-events:auto;transition:opacity .2s ease-in-out,transform .4s ease-in-out;.ag-charts-toolbar__button--first{border-bottom-left-radius:var(--ag-charts-button-radius);border-top-left-radius:var(--ag-charts-button-radius)}.ag-charts-toolbar__button--last{border-bottom-right-radius:var(--ag-charts-button-radius);border-top-right-radius:var(--ag-charts-button-radius)}.ag-charts-toolbar__label{padding-left:calc(var(--ag-charts-toolbar-gap) / 2);padding-right:calc(var(--ag-charts-toolbar-gap) / 2)}.ag-charts-toolbar__icon+.ag-charts-toolbar__label{padding-left:0}}.ag-charts-toolbar__button--gap{margin-left:var(--ag-charts-toolbar-gap)}.ag-charts-zoom-buttons__toolbar--hidden{opacity:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out}}.ag-charts-shared-toolbar{gap:var(--ag-charts-toolbar-gap);.ag-charts-toolbar__button{border-radius:var(--ag-charts-button-radius);margin:0}}
`;function qY(){a2._ModuleSupport.moduleRegistry.register(hee,kee,rte,qoe,nre,Oce,ase,ode,Bde,pue,nhe,whe,hve,dre,mre,Tre,Lre,Qre,mpe,fge,pme,Upe,Gme,Afe,nfe,Tse,ole,mce,sge,cve,Eee,bye,Sye,ebe,hbe,$ee,Ube,nte,u0e,LCe,Wse,Pve,N0e,Kse,X0e,mle,mSe,USe,$le),a2._ModuleSupport.enterpriseModule.isEnterprise=!0,a2._ModuleSupport.enterpriseModule.styles=KSe,a2._ModuleSupport.enterpriseModule.licenseManager=e=>{var t,n;return new YR((n=(t=e.container)==null?void 0:t.ownerDocument)!=null?n:typeof document=="undefined"?void 0:document)},a2._ModuleSupport.enterpriseModule.injectWatermark=bce}EJ(X3,(mt(),T(pt)),oe.exports);var My=(mt(),T(pt)),qSe={setLicenseKey(e){YR.setLicenseKey(e)}};function YY(){qY(),(0,My.setupCommunityModules)()}var YSe={VERSION:My.VERSION,_Scene:My._Scene,_Theme:My._Theme,_Util:My._Util,create:My.AgCharts.create.bind(My.AgCharts),createSparkline:My.AgCharts.__createSparkline.bind(My.AgCharts),setup:YY,setGridContext:YR.setGridContext.bind(YR),setLicenseKey:YR.setLicenseKey.bind(YR),isEnterprise:!0};if(qY(),typeof oe.exports=="object"&&typeof re=="object"){var XSe=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Object.getOwnPropertyNames(t))!Object.prototype.hasOwnProperty.call(e,u)&&u!==n&&Object.defineProperty(e,u,{get:()=>t[u],enumerable:!(a=Object.getOwnPropertyDescriptor(t,u))||a.enumerable});return e};oe.exports=XSe(oe.exports,re)}return oe.exports})});(function(){var re=oe();function oe(){if(typeof window.CustomEvent=="function")return window.CustomEvent;function x(p,A){A=A||{bubbles:!1,cancelable:!1,detail:void 0};var E=document.createEvent("CustomEvent");return E.initCustomEvent(p,A.bubbles,A.cancelable,A.detail),E}return x.prototype=window.Event.prototype,x}function he(x,p){var A=document.createElement("input");return A.type="hidden",A.name=x,A.value=p,A}function ae(x,p){var A=x.getAttribute("data-to"),E=he("_method",x.getAttribute("data-method")),z=he("_csrf_token",x.getAttribute("data-csrf")),T=document.createElement("form"),b=document.createElement("input"),C=x.getAttribute("target");T.method=x.getAttribute("data-method")==="get"?"get":"post",T.action=A,T.style.display="none",C?T.target=C:p&&(T.target="_blank"),T.appendChild(z),T.appendChild(E),document.body.appendChild(T),b.type="submit",T.appendChild(b),b.click()}window.addEventListener("click",function(x){var p=x.target;if(!x.defaultPrevented)for(;p&&p.getAttribute;){var A=new re("phoenix.link.click",{bubbles:!0,cancelable:!0});if(!p.dispatchEvent(A))return x.preventDefault(),x.stopImmediatePropagation(),!1;if(p.getAttribute("data-method")&&p.getAttribute("data-to"))return ae(p,x.metaKey||x.shiftKey),x.preventDefault(),!1;p=p.parentNode}},!1),window.addEventListener("phoenix.link.click",function(x){var p=x.target.getAttribute("data-confirm");p&&!window.confirm(p)&&x.preventDefault()},!1)})();var mO=re=>typeof re=="function"?re:function(){return re},dwe=typeof self!="undefined"?self:null,pO=typeof window!="undefined"?window:null,eI=dwe||pO||eI,uwe="2.0.0",PC={connecting:0,open:1,closing:2,closed:3},hwe=1e4,gwe=1e3,om={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Gw={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},RV={longpoll:"longpoll",websocket:"websocket"},pwe={complete:4},cz=class{constructor(re,oe,he,ae){this.channel=re,this.event=oe,this.payload=he||function(){return{}},this.receivedResp=null,this.timeout=ae,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(re){this.timeout=re,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(re,oe){return this.hasReceived(re)&&oe(this.receivedResp.response),this.recHooks.push({status:re,callback:oe}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:re,response:oe,_ref:he}){this.recHooks.filter(ae=>ae.status===re).forEach(ae=>ae.callback(oe))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,re=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=re,this.matchReceive(re)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(re){return this.receivedResp&&this.receivedResp.status===re}trigger(re,oe){this.channel.trigger(this.refEvent,{status:re,response:oe})}},nX=class{constructor(re,oe){this.callback=re,this.timerCalc=oe,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},mwe=class{constructor(re,oe,he){this.state=om.closed,this.topic=re,this.params=mO(oe||{}),this.socket=he,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new cz(this,Gw.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new nX(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=om.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(ae=>ae.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=om.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=om.closed,this.socket.remove(this)}),this.onError(ae=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,ae),this.isJoining()&&this.joinPush.reset(),this.state=om.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new cz(this,Gw.leave,mO({}),this.timeout).send(),this.state=om.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Gw.reply,(ae,x)=>{this.trigger(this.replyEventName(x),ae)})}join(re=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=re,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(re){this.on(Gw.close,re)}onError(re){return this.on(Gw.error,oe=>re(oe))}on(re,oe){let he=this.bindingRef++;return this.bindings.push({event:re,ref:he,callback:oe}),he}off(re,oe){this.bindings=this.bindings.filter(he=>!(he.event===re&&(typeof oe=="undefined"||oe===he.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(re,oe,he=this.timeout){if(oe=oe||{},!this.joinedOnce)throw new Error(`tried to push '${re}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let ae=new cz(this,re,function(){return oe},he);return this.canPush()?ae.send():(ae.startTimeout(),this.pushBuffer.push(ae)),ae}leave(re=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=om.leaving;let oe=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Gw.close,"leave")},he=new cz(this,Gw.leave,mO({}),re);return he.receive("ok",()=>oe()).receive("timeout",()=>oe()),he.send(),this.canPush()||he.trigger("ok",{}),he}onMessage(re,oe,he){return oe}isMember(re,oe,he,ae){return this.topic!==re?!1:ae&&ae!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:re,event:oe,payload:he,joinRef:ae}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(re=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=om.joining,this.joinPush.resend(re))}trigger(re,oe,he,ae){let x=this.onMessage(re,oe,he,ae);if(oe&&!x)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let p=this.bindings.filter(A=>A.event===re);for(let A=0;A<p.length;A++)p[A].callback(x,he,ae||this.joinRef())}replyEventName(re){return`chan_reply_${re}`}isClosed(){return this.state===om.closed}isErrored(){return this.state===om.errored}isJoined(){return this.state===om.joined}isJoining(){return this.state===om.joining}isLeaving(){return this.state===om.leaving}},uz=class{static request(re,oe,he,ae,x,p,A){if(eI.XDomainRequest){let E=new eI.XDomainRequest;return this.xdomainRequest(E,re,oe,ae,x,p,A)}else{let E=new eI.XMLHttpRequest;return this.xhrRequest(E,re,oe,he,ae,x,p,A)}}static xdomainRequest(re,oe,he,ae,x,p,A){return re.timeout=x,re.open(oe,he),re.onload=()=>{let E=this.parseJSON(re.responseText);A&&A(E)},p&&(re.ontimeout=p),re.onprogress=()=>{},re.send(ae),re}static xhrRequest(re,oe,he,ae,x,p,A,E){return re.open(oe,he,!0),re.timeout=p,re.setRequestHeader("Content-Type",ae),re.onerror=()=>E&&E(null),re.onreadystatechange=()=>{if(re.readyState===pwe.complete&&E){let z=this.parseJSON(re.responseText);E(z)}},A&&(re.ontimeout=A),re.send(x),re}static parseJSON(re){if(!re||re==="")return null;try{return JSON.parse(re)}catch(oe){return console&&console.log("failed to parse JSON response",re),null}}static serialize(re,oe){let he=[];for(var ae in re){if(!Object.prototype.hasOwnProperty.call(re,ae))continue;let x=oe?`${oe}[${ae}]`:ae,p=re[ae];typeof p=="object"?he.push(this.serialize(p,x)):he.push(encodeURIComponent(x)+"="+encodeURIComponent(p))}return he.join("&")}static appendParams(re,oe){if(Object.keys(oe).length===0)return re;let he=re.match(/\?/)?"&":"?";return`${re}${he}${this.serialize(oe)}`}},fwe=re=>{let oe="",he=new Uint8Array(re),ae=he.byteLength;for(let x=0;x<ae;x++)oe+=String.fromCharCode(he[x]);return btoa(oe)},gO=class{constructor(re){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(re),this.readyState=PC.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(re){return re.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+RV.websocket),"$1/"+RV.longpoll)}endpointURL(){return uz.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(re,oe,he){this.close(re,oe,he),this.readyState=PC.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===PC.open||this.readyState===PC.connecting}poll(){this.ajax("GET","application/json",null,()=>this.ontimeout(),re=>{if(re){var{status:oe,token:he,messages:ae}=re;this.token=he}else oe=0;switch(oe){case 200:ae.forEach(x=>{setTimeout(()=>this.onmessage({data:x}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=PC.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${oe}`)}})}send(re){typeof re!="string"&&(re=fwe(re)),this.currentBatch?this.currentBatch.push(re):this.awaitingBatchAck?this.batchBuffer.push(re):(this.currentBatch=[re],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(re){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",re.join(`
`),()=>this.onerror("timeout"),oe=>{this.awaitingBatchAck=!1,!oe||oe.status!==200?(this.onerror(oe&&oe.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(re,oe,he){for(let x of this.reqs)x.abort();this.readyState=PC.closed;let ae=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:re,reason:oe,wasClean:he});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent!="undefined"?this.onclose(new CloseEvent("close",ae)):this.onclose(ae)}ajax(re,oe,he,ae,x){let p,A=()=>{this.reqs.delete(p),ae()};p=uz.request(re,this.endpointURL(),oe,he,this.timeout,A,E=>{this.reqs.delete(p),this.isActive()&&x(E)}),this.reqs.add(p)}};var dz={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(re,oe){if(re.payload.constructor===ArrayBuffer)return oe(this.binaryEncode(re));{let he=[re.join_ref,re.ref,re.topic,re.event,re.payload];return oe(JSON.stringify(he))}},decode(re,oe){if(re.constructor===ArrayBuffer)return oe(this.binaryDecode(re));{let[he,ae,x,p,A]=JSON.parse(re);return oe({join_ref:he,ref:ae,topic:x,event:p,payload:A})}},binaryEncode(re){let{join_ref:oe,ref:he,event:ae,topic:x,payload:p}=re,A=this.META_LENGTH+oe.length+he.length+x.length+ae.length,E=new ArrayBuffer(this.HEADER_LENGTH+A),z=new DataView(E),T=0;z.setUint8(T++,this.KINDS.push),z.setUint8(T++,oe.length),z.setUint8(T++,he.length),z.setUint8(T++,x.length),z.setUint8(T++,ae.length),Array.from(oe,C=>z.setUint8(T++,C.charCodeAt(0))),Array.from(he,C=>z.setUint8(T++,C.charCodeAt(0))),Array.from(x,C=>z.setUint8(T++,C.charCodeAt(0))),Array.from(ae,C=>z.setUint8(T++,C.charCodeAt(0)));var b=new Uint8Array(E.byteLength+p.byteLength);return b.set(new Uint8Array(E),0),b.set(new Uint8Array(p),E.byteLength),b.buffer},binaryDecode(re){let oe=new DataView(re),he=oe.getUint8(0),ae=new TextDecoder;switch(he){case this.KINDS.push:return this.decodePush(re,oe,ae);case this.KINDS.reply:return this.decodeReply(re,oe,ae);case this.KINDS.broadcast:return this.decodeBroadcast(re,oe,ae)}},decodePush(re,oe,he){let ae=oe.getUint8(1),x=oe.getUint8(2),p=oe.getUint8(3),A=this.HEADER_LENGTH+this.META_LENGTH-1,E=he.decode(re.slice(A,A+ae));A=A+ae;let z=he.decode(re.slice(A,A+x));A=A+x;let T=he.decode(re.slice(A,A+p));A=A+p;let b=re.slice(A,re.byteLength);return{join_ref:E,ref:null,topic:z,event:T,payload:b}},decodeReply(re,oe,he){let ae=oe.getUint8(1),x=oe.getUint8(2),p=oe.getUint8(3),A=oe.getUint8(4),E=this.HEADER_LENGTH+this.META_LENGTH,z=he.decode(re.slice(E,E+ae));E=E+ae;let T=he.decode(re.slice(E,E+x));E=E+x;let b=he.decode(re.slice(E,E+p));E=E+p;let C=he.decode(re.slice(E,E+A));E=E+A;let d=re.slice(E,re.byteLength),s={status:C,response:d};return{join_ref:z,ref:T,topic:b,event:Gw.reply,payload:s}},decodeBroadcast(re,oe,he){let ae=oe.getUint8(1),x=oe.getUint8(2),p=this.HEADER_LENGTH+2,A=he.decode(re.slice(p,p+ae));p=p+ae;let E=he.decode(re.slice(p,p+x));p=p+x;let z=re.slice(p,re.byteLength);return{join_ref:null,ref:null,topic:A,event:E,payload:z}}},aX=class{constructor(re,oe={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=oe.timeout||hwe,this.transport=oe.transport||eI.WebSocket||gO,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=oe.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=oe.sessionStorage||eI&&eI.sessionStorage,this.establishedConnections=0,this.defaultEncoder=dz.encode.bind(dz),this.defaultDecoder=dz.decode.bind(dz),this.closeWasClean=!1,this.binaryType=oe.binaryType||"arraybuffer",this.connectClock=1,this.transport!==gO?(this.encode=oe.encode||this.defaultEncoder,this.decode=oe.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let he=null;pO&&pO.addEventListener&&(pO.addEventListener("pagehide",ae=>{this.conn&&(this.disconnect(),he=this.connectClock)}),pO.addEventListener("pageshow",ae=>{he===this.connectClock&&(he=null,this.connect())})),this.heartbeatIntervalMs=oe.heartbeatIntervalMs||3e4,this.rejoinAfterMs=ae=>oe.rejoinAfterMs?oe.rejoinAfterMs(ae):[1e3,2e3,5e3][ae-1]||1e4,this.reconnectAfterMs=ae=>oe.reconnectAfterMs?oe.reconnectAfterMs(ae):[10,50,100,150,200,250,500,1e3,2e3][ae-1]||5e3,this.logger=oe.logger||null,!this.logger&&oe.debug&&(this.logger=(ae,x,p)=>{console.log(`${ae}: ${x}`,p)}),this.longpollerTimeout=oe.longpollerTimeout||2e4,this.params=mO(oe.params||{}),this.endPoint=`${re}/${RV.websocket}`,this.vsn=oe.vsn||uwe,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new nX(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return gO}replaceTransport(re){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=re}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let re=uz.appendParams(uz.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return re.charAt(0)!=="/"?re:re.charAt(1)==="/"?`${this.protocol()}:${re}`:`${this.protocol()}://${location.host}${re}`}disconnect(re,oe,he){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(re,oe,he)}connect(re){re&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=mO(re)),!this.conn&&(this.longPollFallbackMs&&this.transport!==gO?this.connectWithFallback(gO,this.longPollFallbackMs):this.transportConnect())}log(re,oe,he){this.logger&&this.logger(re,oe,he)}hasLogger(){return this.logger!==null}onOpen(re){let oe=this.makeRef();return this.stateChangeCallbacks.open.push([oe,re]),oe}onClose(re){let oe=this.makeRef();return this.stateChangeCallbacks.close.push([oe,re]),oe}onError(re){let oe=this.makeRef();return this.stateChangeCallbacks.error.push([oe,re]),oe}onMessage(re){let oe=this.makeRef();return this.stateChangeCallbacks.message.push([oe,re]),oe}ping(re){if(!this.isConnected())return!1;let oe=this.makeRef(),he=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:oe});let ae=this.onMessage(x=>{x.ref===oe&&(this.off([ae]),re(Date.now()-he))});return!0}transportConnect(){this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=re=>this.onConnError(re),this.conn.onmessage=re=>this.onConnMessage(re),this.conn.onclose=re=>this.onConnClose(re)}getSession(re){return this.sessionStore&&this.sessionStore.getItem(re)}storeSession(re,oe){this.sessionStore&&this.sessionStore.setItem(re,oe)}connectWithFallback(re,oe=2500){clearTimeout(this.fallbackTimer);let he=!1,ae=!0,x,p,A=E=>{this.log("transport",`falling back to ${re.name}...`,E),this.off([x,p]),ae=!1,this.replaceTransport(re),this.transportConnect()};if(this.getSession(`phx:fallback:${re.name}`))return A("memorized");this.fallbackTimer=setTimeout(A,oe),p=this.onError(E=>{this.log("transport","error",E),ae&&!he&&(clearTimeout(this.fallbackTimer),A(E))}),this.onOpen(()=>{if(he=!0,!ae)return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${re.name}`,"true"),this.log("transport",`established ${re.name} fallback`);clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(A,oe),this.ping(E=>{this.log("transport","connected to primary after",E),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`${this.transport.name} connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,re])=>re())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),gwe,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(re,oe,he){if(!this.conn)return re&&re();this.waitForBufferDone(()=>{this.conn&&(oe?this.conn.close(oe,he||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),re&&re()})})}waitForBufferDone(re,oe=1){if(oe===5||!this.conn||!this.conn.bufferedAmount){re();return}setTimeout(()=>{this.waitForBufferDone(re,oe+1)},150*oe)}waitForSocketClosed(re,oe=1){if(oe===5||!this.conn||this.conn.readyState===PC.closed){re();return}setTimeout(()=>{this.waitForSocketClosed(re,oe+1)},150*oe)}onConnClose(re){let oe=re&&re.code;this.hasLogger()&&this.log("transport","close",re),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&oe!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,he])=>he(re))}onConnError(re){this.hasLogger()&&this.log("transport",re);let oe=this.transport,he=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,ae])=>{ae(re,oe,he)}),(oe===this.transport||he>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(re=>{re.isErrored()||re.isLeaving()||re.isClosed()||re.trigger(Gw.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case PC.connecting:return"connecting";case PC.open:return"open";case PC.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(re){this.off(re.stateChangeRefs),this.channels=this.channels.filter(oe=>oe!==re)}off(re){for(let oe in this.stateChangeCallbacks)this.stateChangeCallbacks[oe]=this.stateChangeCallbacks[oe].filter(([he])=>re.indexOf(he)===-1)}channel(re,oe={}){let he=new mwe(re,oe,this);return this.channels.push(he),he}push(re){if(this.hasLogger()){let{topic:oe,event:he,payload:ae,ref:x,join_ref:p}=re;this.log("push",`${oe} ${he} (${p}, ${x})`,ae)}this.isConnected()?this.encode(re,oe=>this.conn.send(oe)):this.sendBuffer.push(()=>this.encode(re,oe=>this.conn.send(oe)))}makeRef(){let re=this.ref+1;return re===this.ref?this.ref=0:this.ref=re,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(re=>re()),this.sendBuffer=[])}onConnMessage(re){this.decode(re.data,oe=>{let{topic:he,event:ae,payload:x,ref:p,join_ref:A}=oe;p&&p===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${x.status||""} ${he} ${ae} ${p&&"("+p+")"||""}`,x);for(let E=0;E<this.channels.length;E++){let z=this.channels[E];z.isMember(he,ae,x,A)&&z.trigger(ae,x,p,A)}for(let E=0;E<this.stateChangeCallbacks.message.length;E++){let[,z]=this.stateChangeCallbacks.message[E];z(oe)}})}leaveOpenTopic(re){let oe=this.channels.find(he=>he.topic===re&&(he.isJoined()||he.isJoining()));oe&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${re}"`),oe.leave())}};var OX="consecutive-reloads",vwe=10,ywe=5e3,bwe=1e4,Cwe=3e4,FX=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading","phx-hook-loading"],jw="data-phx-component",PV="data-phx-link",Swe="track-static",wwe="data-phx-link-state",CP="data-phx-ref-loading",Gf="data-phx-ref-src",td="data-phx-ref-lock",_X="track-uploads",Hw="data-phx-upload-ref",WV="data-phx-preflighted-refs",xwe="data-phx-done-refs",oX="drop-target",BV="data-phx-active-refs",bz="phx:live-file:updated",NX="data-phx-skip",zX="data-phx-id",rX="data-phx-prune",sX="phx-connected",tI="phx-loading",vP="phx-error",lX="phx-client-error",fO="phx-server-error",aI="data-phx-parent-id",UV="data-phx-main",PA="data-phx-root-id",GV="viewport-top",VV="viewport-bottom",Mwe="trigger-action",Sz="phx-has-focused",kwe=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],BX=["checkbox","radio"],AO="phx-has-submitted",_C="data-phx-session",oI=`[${_C}]`,cX="data-phx-sticky",nI="data-phx-static",jV="data-phx-readonly",bP="data-phx-disabled",dX="disable-with",wz="data-phx-disable-with-restore",vO="hook",Awe="debounce",Dwe="throttle",xz="update",LV="stream",yO="data-phx-stream",Ewe="key",LC="phxPrivate",uX="auto-recover",hz="phx:live-socket:debug",OV="phx:live-socket:profiling",FV="phx:live-socket:latency-sim",gz="phx:nav-history-position",Iwe="progress",hX="mounted",gX="__phoenix_reload_status__",Twe=1,pX=3,Rwe=200,Pwe="phx-",Lwe=3e4,bO="debounce-trigger",CO="throttled",mX="debounce-prev-key",Owe={debounce:300,throttle:300},fX=[CP,Gf,td],pz="d",OC="s",_V="r",Lh="c",vX="e",yX="r",bX="t",Fwe="p",CX="stream",_we=class{constructor(re,oe,he){let{chunk_size:ae,chunk_timeout:x}=oe;this.liveSocket=he,this.entry=re,this.offset=0,this.chunkSize=ae,this.chunkTimeout=x,this.chunkTimer=null,this.errored=!1,this.uploadChannel=he.channel(`lvu:${re.ref}`,{token:re.metadata()})}error(re){this.errored||(this.uploadChannel.leave(),this.errored=!0,clearTimeout(this.chunkTimer),this.entry.error(re))}upload(){this.uploadChannel.onError(re=>this.error(re)),this.uploadChannel.join().receive("ok",re=>this.readNextChunk()).receive("error",re=>this.error(re))}isDone(){return this.offset>=this.entry.file.size}readNextChunk(){let re=new window.FileReader,oe=this.entry.file.slice(this.offset,this.chunkSize+this.offset);re.onload=he=>{if(he.target.error===null)this.offset+=he.target.result.byteLength,this.pushChunk(he.target.result);else return Vg("Read error: "+he.target.error)},re.readAsArrayBuffer(oe)}pushChunk(re){this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",re,this.chunkTimeout).receive("ok",()=>{this.entry.progress(this.offset/this.entry.file.size*100),this.isDone()||(this.chunkTimer=setTimeout(()=>this.readNextChunk(),this.liveSocket.getLatencySim()||0))}).receive("error",({reason:oe})=>this.error(oe))}},Vg=(re,oe)=>console.error&&console.error(re,oe),Vw=re=>{let oe=typeof re;return oe==="number"||oe==="string"&&/^(0|[1-9]\d*)$/.test(re)};function Nwe(){let re=new Set,oe=document.querySelectorAll("*[id]");for(let he=0,ae=oe.length;he<ae;he++)re.has(oe[he].id)?console.error(`Multiple IDs detected: ${oe[he].id}. Ensure unique element ids.`):re.add(oe[he].id)}function zwe(re){let oe=new Set;Object.keys(re).forEach(he=>{let ae=document.getElementById(he);ae&&ae.parentElement&&ae.parentElement.getAttribute("phx-update")!=="stream"&&oe.add(`The stream container with id "${ae.parentElement.id}" is missing the phx-update="stream" attribute. Ensure it is set for streams to work properly.`)}),oe.forEach(he=>console.error(he))}var Bwe=(re,oe,he,ae)=>{re.liveSocket.isDebugEnabled()&&console.log(`${re.id} ${oe}: ${he} - `,ae)},SO=re=>typeof re=="function"?re:function(){return re},Cz=re=>JSON.parse(JSON.stringify(re)),kO=(re,oe,he)=>{do{if(re.matches(`[${oe}]`)&&!re.disabled)return re;re=re.parentElement||re.parentNode}while(re!==null&&re.nodeType===1&&!(he&&he.isSameNode(re)||re.matches(oI)));return null},yP=re=>re!==null&&typeof re=="object"&&!(re instanceof Array),Gwe=(re,oe)=>JSON.stringify(re)===JSON.stringify(oe),SX=re=>{for(let oe in re)return!1;return!0},RA=(re,oe)=>re&&oe(re),Vwe=function(re,oe,he,ae){re.forEach(x=>{new _we(x,he.config,ae).upload()})},jwe={canPushState(){return typeof history.pushState!="undefined"},dropLocal(re,oe,he){return re.removeItem(this.localKey(oe,he))},updateLocal(re,oe,he,ae,x){let p=this.getLocal(re,oe,he),A=this.localKey(oe,he),E=p===null?ae:x(p);return re.setItem(A,JSON.stringify(E)),E},getLocal(re,oe,he){return JSON.parse(re.getItem(this.localKey(oe,he)))},updateCurrentState(re){this.canPushState()&&history.replaceState(re(history.state||{}),"",window.location.href)},pushState(re,oe,he){if(this.canPushState()){if(he!==window.location.href){if(oe.type=="redirect"&&oe.scroll){let ae=history.state||{};ae.scroll=oe.scroll,history.replaceState(ae,"",window.location.href)}delete oe.scroll,history[re+"State"](oe,"",he||null),window.requestAnimationFrame(()=>{let ae=this.getHashTargetEl(window.location.hash);ae?ae.scrollIntoView():oe.type==="redirect"&&window.scroll(0,0)})}}else this.redirect(he)},setCookie(re,oe,he){let ae=typeof he=="number"?` max-age=${he};`:"";document.cookie=`${re}=${oe};${ae} path=/`},getCookie(re){return document.cookie.replace(new RegExp(`(?:(?:^|.*;s*)${re}s*=s*([^;]*).*$)|^.*$`),"$1")},deleteCookie(re){document.cookie=`${re}=; max-age=-1; path=/`},redirect(re,oe){oe&&this.setCookie("__phoenix_flash__",oe,60),window.location=re},localKey(re,oe){return`${re}-${oe}`},getHashTargetEl(re){let oe=re.toString().substring(1);if(oe!=="")return document.getElementById(oe)||document.querySelector(`a[name="${oe}"]`)}},Gg=jwe,iI={byId(re){return document.getElementById(re)||Vg(`no id found for ${re}`)},removeClass(re,oe){re.classList.remove(oe),re.classList.length===0&&re.removeAttribute("class")},all(re,oe,he){if(!re)return[];let ae=Array.from(re.querySelectorAll(oe));return he?ae.forEach(he):ae},childNodeLength(re){let oe=document.createElement("template");return oe.innerHTML=re,oe.content.childElementCount},isUploadInput(re){return re.type==="file"&&re.getAttribute(Hw)!==null},isAutoUpload(re){return re.hasAttribute("data-phx-auto-upload")},findUploadInputs(re){let oe=re.id,he=this.all(document,`input[type="file"][${Hw}][form="${oe}"]`);return this.all(re,`input[type="file"][${Hw}]`).concat(he)},findComponentNodeList(re,oe){return this.filterWithinSameLiveView(this.all(re,`[${jw}="${oe}"]`),re)},isPhxDestroyed(re){return!!(re.id&&iI.private(re,"destroyed"))},wantsNewTab(re){let oe=re.ctrlKey||re.shiftKey||re.metaKey||re.button&&re.button===1,he=re.target instanceof HTMLAnchorElement&&re.target.hasAttribute("download"),ae=re.target.hasAttribute("target")&&re.target.getAttribute("target").toLowerCase()==="_blank",x=re.target.hasAttribute("target")&&!re.target.getAttribute("target").startsWith("_");return oe||ae||he||x},isUnloadableFormSubmit(re){return re.target&&re.target.getAttribute("method")==="dialog"||re.submitter&&re.submitter.getAttribute("formmethod")==="dialog"?!1:!re.defaultPrevented&&!this.wantsNewTab(re)},isNewPageClick(re,oe){let he=re.target instanceof HTMLAnchorElement?re.target.getAttribute("href"):null,ae;if(re.defaultPrevented||he===null||this.wantsNewTab(re)||he.startsWith("mailto:")||he.startsWith("tel:")||re.target.isContentEditable)return!1;try{ae=new URL(he)}catch(x){try{ae=new URL(he,oe)}catch(p){return!0}}return ae.host===oe.host&&ae.protocol===oe.protocol&&ae.pathname===oe.pathname&&ae.search===oe.search?ae.hash===""&&!ae.href.endsWith("#"):ae.protocol.startsWith("http")},markPhxChildDestroyed(re){this.isPhxChild(re)&&re.setAttribute(_C,""),this.putPrivate(re,"destroyed",!0)},findPhxChildrenInFragment(re,oe){let he=document.createElement("template");return he.innerHTML=re,this.findPhxChildren(he.content,oe)},isIgnored(re,oe){return(re.getAttribute(oe)||re.getAttribute("data-phx-update"))==="ignore"},isPhxUpdate(re,oe,he){return re.getAttribute&&he.indexOf(re.getAttribute(oe))>=0},findPhxSticky(re){return this.all(re,`[${cX}]`)},findPhxChildren(re,oe){return this.all(re,`${oI}[${aI}="${oe}"]`)},findExistingParentCIDs(re,oe){let he=new Set,ae=new Set;return oe.forEach(x=>{this.filterWithinSameLiveView(this.all(re,`[${jw}="${x}"]`),re).forEach(p=>{he.add(x),this.filterWithinSameLiveView(this.all(p,`[${jw}]`),p).map(A=>parseInt(A.getAttribute(jw))).forEach(A=>ae.add(A))})}),ae.forEach(x=>he.delete(x)),he},filterWithinSameLiveView(re,oe){return oe.querySelector(oI)?re.filter(he=>this.withinSameLiveView(he,oe)):re},withinSameLiveView(re,oe){for(;re=re.parentNode;){if(re.isSameNode(oe))return!0;if(re.getAttribute(_C)!==null)return!1}},private(re,oe){return re[LC]&&re[LC][oe]},deletePrivate(re,oe){re[LC]&&delete re[LC][oe]},putPrivate(re,oe,he){re[LC]||(re[LC]={}),re[LC][oe]=he},updatePrivate(re,oe,he,ae){let x=this.private(re,oe);x===void 0?this.putPrivate(re,oe,ae(he)):this.putPrivate(re,oe,ae(x))},syncPendingAttrs(re,oe){re.hasAttribute(Gf)&&(FX.forEach(he=>{re.classList.contains(he)&&oe.classList.add(he)}),fX.filter(he=>re.hasAttribute(he)).forEach(he=>{oe.setAttribute(he,re.getAttribute(he))}))},copyPrivates(re,oe){oe[LC]&&(re[LC]=oe[LC])},putTitle(re){let oe=document.querySelector("title");if(oe){let{prefix:he,suffix:ae,default:x}=oe.dataset,p=typeof re!="string"||re.trim()==="";if(p&&typeof x!="string")return;let A=p?x:re;document.title=`${he||""}${A||""}${ae||""}`}else document.title=re},debounce(re,oe,he,ae,x,p,A,E){let z=re.getAttribute(he),T=re.getAttribute(x);z===""&&(z=ae),T===""&&(T=p);let b=z||T;switch(b){case null:return E();case"blur":this.once(re,"debounce-blur")&&re.addEventListener("blur",()=>{A()&&E()});return;default:let C=parseInt(b),d=()=>T?this.deletePrivate(re,CO):E(),s=this.incCycle(re,bO,d);if(isNaN(C))return Vg(`invalid throttle/debounce value: ${b}`);if(T){let h=!1;if(oe.type==="keydown"){let g=this.private(re,mX);this.putPrivate(re,mX,oe.key),h=g!==oe.key}if(!h&&this.private(re,CO))return!1;{E();let g=setTimeout(()=>{A()&&this.triggerCycle(re,bO)},C);this.putPrivate(re,CO,g)}}else setTimeout(()=>{A()&&this.triggerCycle(re,bO,s)},C);let c=re.form;c&&this.once(c,"bind-debounce")&&c.addEventListener("submit",()=>{Array.from(new FormData(c).entries(),([h])=>{let g=c.querySelector(`[name="${h}"]`);this.incCycle(g,bO),this.deletePrivate(g,CO)})}),this.once(re,"bind-debounce")&&re.addEventListener("blur",()=>{clearTimeout(this.private(re,CO)),this.triggerCycle(re,bO)})}},triggerCycle(re,oe,he){let[ae,x]=this.private(re,oe);he||(he=ae),he===ae&&(this.incCycle(re,oe),x())},once(re,oe){return this.private(re,oe)===!0?!1:(this.putPrivate(re,oe,!0),!0)},incCycle(re,oe,he=function(){}){let[ae]=this.private(re,oe)||[0,he];return ae++,this.putPrivate(re,oe,[ae,he]),ae},maintainPrivateHooks(re,oe,he,ae){re.hasAttribute&&re.hasAttribute("data-phx-hook")&&!oe.hasAttribute("data-phx-hook")&&oe.setAttribute("data-phx-hook",re.getAttribute("data-phx-hook")),oe.hasAttribute&&(oe.hasAttribute(he)||oe.hasAttribute(ae))&&oe.setAttribute("data-phx-hook","Phoenix.InfiniteScroll")},putCustomElHook(re,oe){re.isConnected?re.setAttribute("data-phx-hook",""):console.error(`
        hook attached to non-connected DOM element
        ensure you are calling createHook within your connectedCallback. ${re.outerHTML}
      `),this.putPrivate(re,"custom-el-hook",oe)},getCustomElHook(re){return this.private(re,"custom-el-hook")},isUsedInput(re){return re.nodeType===Node.ELEMENT_NODE&&(this.private(re,Sz)||this.private(re,AO))},resetForm(re){Array.from(re.elements).forEach(oe=>{this.deletePrivate(oe,Sz),this.deletePrivate(oe,AO)})},isPhxChild(re){return re.getAttribute&&re.getAttribute(aI)},isPhxSticky(re){return re.getAttribute&&re.getAttribute(cX)!==null},isChildOfAny(re,oe){return!!oe.find(he=>he.contains(re))},firstPhxChild(re){return this.isPhxChild(re)?re:this.all(re,`[${aI}]`)[0]},dispatchEvent(re,oe,he={}){let ae=!0;re.nodeName==="INPUT"&&re.type==="file"&&oe==="click"&&(ae=!1);let A={bubbles:he.bubbles===void 0?ae:!!he.bubbles,cancelable:!0,detail:he.detail||{}},E=oe==="click"?new MouseEvent("click",A):new CustomEvent(oe,A);re.dispatchEvent(E)},cloneNode(re,oe){if(typeof oe=="undefined")return re.cloneNode(!0);{let he=re.cloneNode(!1);return he.innerHTML=oe,he}},mergeAttrs(re,oe,he={}){let ae=new Set(he.exclude||[]),x=he.isIgnored,p=oe.attributes;for(let E=p.length-1;E>=0;E--){let z=p[E].name;if(ae.has(z))z==="value"&&re.value===oe.value&&re.setAttribute("value",oe.getAttribute(z));else{let T=oe.getAttribute(z);re.getAttribute(z)!==T&&(!x||x&&z.startsWith("data-"))&&re.setAttribute(z,T)}}let A=re.attributes;for(let E=A.length-1;E>=0;E--){let z=A[E].name;x?z.startsWith("data-")&&!oe.hasAttribute(z)&&!fX.includes(z)&&re.removeAttribute(z):oe.hasAttribute(z)||re.removeAttribute(z)}},mergeFocusedInput(re,oe){re instanceof HTMLSelectElement||iI.mergeAttrs(re,oe,{exclude:["value"]}),oe.readOnly?re.setAttribute("readonly",!0):re.removeAttribute("readonly")},hasSelectionRange(re){return re.setSelectionRange&&(re.type==="text"||re.type==="textarea")},restoreFocus(re,oe,he){if(re instanceof HTMLSelectElement&&re.focus(),!iI.isTextualInput(re))return;re.matches(":focus")||re.focus(),this.hasSelectionRange(re)&&re.setSelectionRange(oe,he)},isFormInput(re){return/^(?:input|select|textarea)$/i.test(re.tagName)&&re.type!=="button"},syncAttrsToProps(re){re instanceof HTMLInputElement&&BX.indexOf(re.type.toLocaleLowerCase())>=0&&(re.checked=re.getAttribute("checked")!==null)},isTextualInput(re){return kwe.indexOf(re.type)>=0},isNowTriggerFormExternal(re,oe){return re.getAttribute&&re.getAttribute(oe)!==null&&document.body.contains(re)},cleanChildNodes(re,oe){if(iI.isPhxUpdate(re,oe,["append","prepend"])){let he=[];re.childNodes.forEach(ae=>{ae.id||(!(ae.nodeType===Node.TEXT_NODE&&ae.nodeValue.trim()==="")&&ae.nodeType!==Node.COMMENT_NODE&&Vg(`only HTML element tags with an id are allowed inside containers with phx-update.

removing illegal node: "${(ae.outerHTML||ae.nodeValue).trim()}"

`),he.push(ae))}),he.forEach(ae=>ae.remove())}},replaceRootContainer(re,oe,he){let ae=new Set(["id",_C,nI,UV,PA]);if(re.tagName.toLowerCase()===oe.toLowerCase())return Array.from(re.attributes).filter(x=>!ae.has(x.name.toLowerCase())).forEach(x=>re.removeAttribute(x.name)),Object.keys(he).filter(x=>!ae.has(x.toLowerCase())).forEach(x=>re.setAttribute(x,he[x])),re;{let x=document.createElement(oe);return Object.keys(he).forEach(p=>x.setAttribute(p,he[p])),ae.forEach(p=>x.setAttribute(p,re.getAttribute(p))),x.innerHTML=re.innerHTML,re.replaceWith(x),x}},getSticky(re,oe,he){let ae=(iI.private(re,"sticky")||[]).find(([x])=>oe===x);if(ae){let[x,p,A]=ae;return A}else return typeof he=="function"?he():he},deleteSticky(re,oe){this.updatePrivate(re,"sticky",[],he=>he.filter(([ae,x])=>ae!==oe))},putSticky(re,oe,he){let ae=he(re);this.updatePrivate(re,"sticky",[],x=>{let p=x.findIndex(([A])=>oe===A);return p>=0?x[p]=[oe,he,ae]:x.push([oe,he,ae]),x})},applyStickyOperations(re){let oe=iI.private(re,"sticky");oe&&oe.forEach(([he,ae,x])=>this.putSticky(re,he,ae))},isLocked(re){return re.hasAttribute&&re.hasAttribute(td)}},zt=iI,wO=class{static isActive(re,oe){let he=oe._phxRef===void 0,x=re.getAttribute(BV).split(",").indexOf(id.genFileRef(oe))>=0;return oe.size>0&&(he||x)}static isPreflighted(re,oe){return re.getAttribute(WV).split(",").indexOf(id.genFileRef(oe))>=0&&this.isActive(re,oe)}static isPreflightInProgress(re){return re._preflightInProgress===!0}static markPreflightInProgress(re){re._preflightInProgress=!0}constructor(re,oe,he,ae){this.ref=id.genFileRef(oe),this.fileEl=re,this.file=oe,this.view=he,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(bz,this._onElUpdated),this.autoUpload=ae}metadata(){return this.meta}progress(re){this._progress=Math.floor(re),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,()=>{id.untrackFile(this.fileEl,this.file),this._onDone()})):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}isCancelled(){return this._isCancelled}cancel(){this.file._preflightInProgress=!1,this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(re="failed"){this.fileEl.removeEventListener(bz,this._onElUpdated),this.view.pushFileProgress(this.fileEl,this.ref,{error:re}),this.isAutoUpload()||id.clearFiles(this.fileEl)}isAutoUpload(){return this.autoUpload}onDone(re){this._onDone=()=>{this.fileEl.removeEventListener(bz,this._onElUpdated),re()}}onElUpdated(){this.fileEl.getAttribute(BV).split(",").indexOf(this.ref)===-1&&(id.untrackFile(this.fileEl,this.file),this.cancel())}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,relative_path:this.file.webkitRelativePath,size:this.file.size,type:this.file.type,ref:this.ref,meta:typeof this.file.meta=="function"?this.file.meta():void 0}}uploader(re){if(this.meta.uploader){let oe=re[this.meta.uploader]||Vg(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:oe}}else return{name:"channel",callback:Vwe}}zipPostFlight(re){this.meta=re.entries[this.ref],this.meta||Vg(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:re})}},Hwe=0,id=class HV{static genFileRef(oe){let he=oe._phxRef;return he!==void 0?he:(oe._phxRef=(Hwe++).toString(),oe._phxRef)}static getEntryDataURL(oe,he,ae){let x=this.activeFiles(oe).find(p=>this.genFileRef(p)===he);ae(URL.createObjectURL(x))}static hasUploadsInProgress(oe){let he=0;return zt.findUploadInputs(oe).forEach(ae=>{ae.getAttribute(WV)!==ae.getAttribute(xwe)&&he++}),he>0}static serializeUploads(oe){let he=this.activeFiles(oe),ae={};return he.forEach(x=>{let p={path:oe.name},A=oe.getAttribute(Hw);ae[A]=ae[A]||[],p.ref=this.genFileRef(x),p.last_modified=x.lastModified,p.name=x.name||p.ref,p.relative_path=x.webkitRelativePath,p.type=x.type,p.size=x.size,typeof x.meta=="function"&&(p.meta=x.meta()),ae[A].push(p)}),ae}static clearFiles(oe){oe.value=null,oe.removeAttribute(Hw),zt.putPrivate(oe,"files",[])}static untrackFile(oe,he){zt.putPrivate(oe,"files",zt.private(oe,"files").filter(ae=>!Object.is(ae,he)))}static trackFiles(oe,he,ae){if(oe.getAttribute("multiple")!==null){let x=he.filter(p=>!this.activeFiles(oe).find(A=>Object.is(A,p)));zt.updatePrivate(oe,"files",[],p=>p.concat(x)),oe.value=null}else ae&&ae.files.length>0&&(oe.files=ae.files),zt.putPrivate(oe,"files",he)}static activeFileInputs(oe){let he=zt.findUploadInputs(oe);return Array.from(he).filter(ae=>ae.files&&this.activeFiles(ae).length>0)}static activeFiles(oe){return(zt.private(oe,"files")||[]).filter(he=>wO.isActive(oe,he))}static inputsAwaitingPreflight(oe){let he=zt.findUploadInputs(oe);return Array.from(he).filter(ae=>this.filesAwaitingPreflight(ae).length>0)}static filesAwaitingPreflight(oe){return this.activeFiles(oe).filter(he=>!wO.isPreflighted(oe,he)&&!wO.isPreflightInProgress(he))}static markPreflightInProgress(oe){oe.forEach(he=>wO.markPreflightInProgress(he.file))}constructor(oe,he,ae){this.autoUpload=zt.isAutoUpload(oe),this.view=he,this.onComplete=ae,this._entries=Array.from(HV.filesAwaitingPreflight(oe)||[]).map(x=>new wO(oe,x,he,this.autoUpload)),HV.markPreflightInProgress(this._entries),this.numEntriesInProgress=this._entries.length}isAutoUpload(){return this.autoUpload}entries(){return this._entries}initAdapterUpload(oe,he,ae){this._entries=this._entries.map(p=>(p.isCancelled()?(this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()):(p.zipPostFlight(oe),p.onDone(()=>{this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()})),p));let x=this._entries.reduce((p,A)=>{if(!A.meta)return p;let{name:E,callback:z}=A.uploader(ae.uploaders);return p[E]=p[E]||{callback:z,entries:[]},p[E].entries.push(A),p},{});for(let p in x){let{callback:A,entries:E}=x[p];A(E,he,oe,ae)}}},Wwe={anyOf(re,oe){return oe.find(he=>re instanceof he)},isFocusable(re,oe){return re instanceof HTMLAnchorElement&&re.rel!=="ignore"||re instanceof HTMLAreaElement&&re.href!==void 0||!re.disabled&&this.anyOf(re,[HTMLInputElement,HTMLSelectElement,HTMLTextAreaElement,HTMLButtonElement])||re instanceof HTMLIFrameElement||re.tabIndex>0||!oe&&re.getAttribute("tabindex")!==null&&re.getAttribute("aria-hidden")!=="true"},attemptFocus(re,oe){if(this.isFocusable(re,oe))try{re.focus()}catch(he){}return!!document.activeElement&&document.activeElement.isSameNode(re)},focusFirstInteractive(re){let oe=re.firstElementChild;for(;oe;){if(this.attemptFocus(oe,!0)||this.focusFirstInteractive(oe,!0))return!0;oe=oe.nextElementSibling}},focusFirst(re){let oe=re.firstElementChild;for(;oe;){if(this.attemptFocus(oe)||this.focusFirst(oe))return!0;oe=oe.nextElementSibling}},focusLast(re){let oe=re.lastElementChild;for(;oe;){if(this.attemptFocus(oe)||this.focusLast(oe))return!0;oe=oe.previousElementSibling}}},FC=Wwe,GX={LiveFileUpload:{activeRefs(){return this.el.getAttribute(BV)},preflightedRefs(){return this.el.getAttribute(WV)},mounted(){this.preflightedWas=this.preflightedRefs()},updated(){let re=this.preflightedRefs();this.preflightedWas!==re&&(this.preflightedWas=re,re===""&&this.__view().cancelSubmit(this.el.form)),this.activeRefs()===""&&(this.el.value=null),this.el.dispatchEvent(new CustomEvent(bz))}},LiveImgPreview:{mounted(){this.ref=this.el.getAttribute("data-phx-entry-ref"),this.inputEl=document.getElementById(this.el.getAttribute(Hw)),id.getEntryDataURL(this.inputEl,this.ref,re=>{this.url=re,this.el.src=re})},destroyed(){URL.revokeObjectURL(this.url)}},FocusWrap:{mounted(){this.focusStart=this.el.firstElementChild,this.focusEnd=this.el.lastElementChild,this.focusStart.addEventListener("focus",re=>{if(!re.relatedTarget||!this.el.contains(re.relatedTarget)){let oe=re.target.nextElementSibling;FC.attemptFocus(oe)||FC.focusFirst(oe)}else FC.focusLast(this.el)}),this.focusEnd.addEventListener("focus",re=>{if(!re.relatedTarget||!this.el.contains(re.relatedTarget)){let oe=re.target.previousElementSibling;FC.attemptFocus(oe)||FC.focusLast(oe)}else FC.focusFirst(this.el)}),this.el.addEventListener("phx:show-end",()=>this.el.focus()),window.getComputedStyle(this.el).display!=="none"&&FC.focusFirst(this.el)}}},VX=re=>["HTML","BODY"].indexOf(re.nodeName.toUpperCase())>=0?null:["scroll","auto"].indexOf(getComputedStyle(re).overflowY)>=0?re:VX(re.parentElement),wX=re=>re?re.scrollTop:document.documentElement.scrollTop||document.body.scrollTop,KV=re=>re?re.getBoundingClientRect().bottom:window.innerHeight||document.documentElement.clientHeight,qV=re=>re?re.getBoundingClientRect().top:0,Uwe=(re,oe)=>{let he=re.getBoundingClientRect();return Math.ceil(he.top)>=qV(oe)&&Math.ceil(he.left)>=0&&Math.floor(he.top)<=KV(oe)},Kwe=(re,oe)=>{let he=re.getBoundingClientRect();return Math.ceil(he.bottom)>=qV(oe)&&Math.ceil(he.left)>=0&&Math.floor(he.bottom)<=KV(oe)},xX=(re,oe)=>{let he=re.getBoundingClientRect();return Math.ceil(he.top)>=qV(oe)&&Math.ceil(he.left)>=0&&Math.floor(he.top)<=KV(oe)};GX.InfiniteScroll={mounted(){this.scrollContainer=VX(this.el);let re=wX(this.scrollContainer),oe=!1,he=500,ae=null,x=this.throttle(he,(E,z)=>{ae=()=>!0,this.liveSocket.execJSHookPush(this.el,E,{id:z.id,_overran:!0},()=>{ae=null})}),p=this.throttle(he,(E,z)=>{ae=()=>z.scrollIntoView({block:"start"}),this.liveSocket.execJSHookPush(this.el,E,{id:z.id},()=>{ae=null,window.requestAnimationFrame(()=>{xX(z,this.scrollContainer)||z.scrollIntoView({block:"start"})})})}),A=this.throttle(he,(E,z)=>{ae=()=>z.scrollIntoView({block:"end"}),this.liveSocket.execJSHookPush(this.el,E,{id:z.id},()=>{ae=null,window.requestAnimationFrame(()=>{xX(z,this.scrollContainer)||z.scrollIntoView({block:"end"})})})});this.onScroll=E=>{let z=wX(this.scrollContainer);if(ae)return re=z,ae();let T=this.el.getBoundingClientRect(),b=this.el.getAttribute(this.liveSocket.binding("viewport-top")),C=this.el.getAttribute(this.liveSocket.binding("viewport-bottom")),d=this.el.lastElementChild,s=this.el.firstElementChild,c=z<re,h=z>re;c&&b&&!oe&&T.top>=0?(oe=!0,x(b,s)):h&&oe&&T.top<=0&&(oe=!1),b&&c&&Uwe(s,this.scrollContainer)?p(b,s):C&&h&&Kwe(d,this.scrollContainer)&&A(C,d),re=z},this.scrollContainer?this.scrollContainer.addEventListener("scroll",this.onScroll):window.addEventListener("scroll",this.onScroll)},destroyed(){this.scrollContainer?this.scrollContainer.removeEventListener("scroll",this.onScroll):window.removeEventListener("scroll",this.onScroll)},throttle(re,oe){let he=0,ae;return(...x)=>{let p=Date.now(),A=re-(p-he);A<=0||A>re?(ae&&(clearTimeout(ae),ae=null),he=p,oe(...x)):ae||(ae=setTimeout(()=>{he=Date.now(),ae=null,oe(...x)},A))}}};var qwe=GX,MX=class{static onUnlock(re,oe){if(!zt.isLocked(re)&&!re.closest(`[${td}]`))return oe();let he=re.closest(`[${td}]`),ae=he.closest(`[${td}]`).getAttribute(td);he.addEventListener(`phx:undo-lock:${ae}`,()=>{oe()},{once:!0})}constructor(re){this.el=re,this.loadingRef=re.hasAttribute(CP)?parseInt(re.getAttribute(CP),10):null,this.lockRef=re.hasAttribute(td)?parseInt(re.getAttribute(td),10):null}maybeUndo(re,oe,he){this.isWithin(re)&&(this.undoLocks(re,oe,he),this.undoLoading(re,oe),this.isFullyResolvedBy(re)&&this.el.removeAttribute(Gf))}isWithin(re){return!(this.loadingRef!==null&&this.loadingRef>re&&this.lockRef!==null&&this.lockRef>re)}undoLocks(re,oe,he){if(!this.isLockUndoneBy(re))return;let ae=zt.private(this.el,td);ae&&(he(ae),zt.deletePrivate(this.el,td)),this.el.removeAttribute(td);let x={detail:{ref:re,event:oe},bubbles:!0,cancelable:!1};this.el.dispatchEvent(new CustomEvent(`phx:undo-lock:${this.lockRef}`,x))}undoLoading(re,oe){if(!this.isLoadingUndoneBy(re)){this.canUndoLoading(re)&&this.el.classList.contains("phx-submit-loading")&&this.el.classList.remove("phx-change-loading");return}if(this.canUndoLoading(re)){this.el.removeAttribute(CP);let he=this.el.getAttribute(bP),ae=this.el.getAttribute(jV);ae!==null&&(this.el.readOnly=ae==="true",this.el.removeAttribute(jV)),he!==null&&(this.el.disabled=he==="true",this.el.removeAttribute(bP));let x=this.el.getAttribute(wz);x!==null&&(this.el.innerText=x,this.el.removeAttribute(wz));let p={detail:{ref:re,event:oe},bubbles:!0,cancelable:!1};this.el.dispatchEvent(new CustomEvent(`phx:undo-loading:${this.loadingRef}`,p))}FX.forEach(he=>{(he!=="phx-submit-loading"||this.canUndoLoading(re))&&zt.removeClass(this.el,he)})}isLoadingUndoneBy(re){return this.loadingRef===null?!1:this.loadingRef<=re}isLockUndoneBy(re){return this.lockRef===null?!1:this.lockRef<=re}isFullyResolvedBy(re){return(this.loadingRef===null||this.loadingRef<=re)&&(this.lockRef===null||this.lockRef<=re)}canUndoLoading(re){return this.lockRef===null||this.lockRef<=re}},Ywe=class{constructor(re,oe,he){let ae=new Set,x=new Set([...oe.children].map(A=>A.id)),p=[];Array.from(re.children).forEach(A=>{if(A.id&&(ae.add(A.id),x.has(A.id))){let E=A.previousElementSibling&&A.previousElementSibling.id;p.push({elementId:A.id,previousElementId:E})}}),this.containerId=oe.id,this.updateType=he,this.elementsToModify=p,this.elementIdsToAdd=[...x].filter(A=>!ae.has(A))}perform(){let re=zt.byId(this.containerId);this.elementsToModify.forEach(oe=>{oe.previousElementId?RA(document.getElementById(oe.previousElementId),he=>{RA(document.getElementById(oe.elementId),ae=>{ae.previousElementSibling&&ae.previousElementSibling.id==he.id||he.insertAdjacentElement("afterend",ae)})}):RA(document.getElementById(oe.elementId),he=>{he.previousElementSibling==null||re.insertAdjacentElement("afterbegin",he)})}),this.updateType=="prepend"&&this.elementIdsToAdd.reverse().forEach(oe=>{RA(document.getElementById(oe),he=>re.insertAdjacentElement("afterbegin",he))})}},kX=11;function Xwe(re,oe){var he=oe.attributes,ae,x,p,A,E;if(!(oe.nodeType===kX||re.nodeType===kX)){for(var z=he.length-1;z>=0;z--)ae=he[z],x=ae.name,p=ae.namespaceURI,A=ae.value,p?(x=ae.localName||x,E=re.getAttributeNS(p,x),E!==A&&(ae.prefix==="xmlns"&&(x=ae.name),re.setAttributeNS(p,x,A))):(E=re.getAttribute(x),E!==A&&re.setAttribute(x,A));for(var T=re.attributes,b=T.length-1;b>=0;b--)ae=T[b],x=ae.name,p=ae.namespaceURI,p?(x=ae.localName||x,oe.hasAttributeNS(p,x)||re.removeAttributeNS(p,x)):oe.hasAttribute(x)||re.removeAttribute(x)}}var mz,Zwe="http://www.w3.org/1999/xhtml",jg=typeof document=="undefined"?void 0:document,$we=!!jg&&"content"in jg.createElement("template"),Qwe=!!jg&&jg.createRange&&"createContextualFragment"in jg.createRange();function Jwe(re){var oe=jg.createElement("template");return oe.innerHTML=re,oe.content.childNodes[0]}function exe(re){mz||(mz=jg.createRange(),mz.selectNode(jg.body));var oe=mz.createContextualFragment(re);return oe.childNodes[0]}function txe(re){var oe=jg.createElement("body");return oe.innerHTML=re,oe.childNodes[0]}function ixe(re){return re=re.trim(),$we?Jwe(re):Qwe?exe(re):txe(re)}function fz(re,oe){var he=re.nodeName,ae=oe.nodeName,x,p;return he===ae?!0:(x=he.charCodeAt(0),p=ae.charCodeAt(0),x<=90&&p>=97?he===ae.toUpperCase():p<=90&&x>=97?ae===he.toUpperCase():!1)}function nxe(re,oe){return!oe||oe===Zwe?jg.createElement(re):jg.createElementNS(oe,re)}function axe(re,oe){for(var he=re.firstChild;he;){var ae=he.nextSibling;oe.appendChild(he),he=ae}return oe}function NV(re,oe,he){re[he]!==oe[he]&&(re[he]=oe[he],re[he]?re.setAttribute(he,""):re.removeAttribute(he))}var AX={OPTION:function(re,oe){var he=re.parentNode;if(he){var ae=he.nodeName.toUpperCase();ae==="OPTGROUP"&&(he=he.parentNode,ae=he&&he.nodeName.toUpperCase()),ae==="SELECT"&&!he.hasAttribute("multiple")&&(re.hasAttribute("selected")&&!oe.selected&&(re.setAttribute("selected","selected"),re.removeAttribute("selected")),he.selectedIndex=-1)}NV(re,oe,"selected")},INPUT:function(re,oe){NV(re,oe,"checked"),NV(re,oe,"disabled"),re.value!==oe.value&&(re.value=oe.value),oe.hasAttribute("value")||re.removeAttribute("value")},TEXTAREA:function(re,oe){var he=oe.value;re.value!==he&&(re.value=he);var ae=re.firstChild;if(ae){var x=ae.nodeValue;if(x==he||!he&&x==re.placeholder)return;ae.nodeValue=he}},SELECT:function(re,oe){if(!oe.hasAttribute("multiple")){for(var he=-1,ae=0,x=re.firstChild,p,A;x;)if(A=x.nodeName&&x.nodeName.toUpperCase(),A==="OPTGROUP")p=x,x=p.firstChild;else{if(A==="OPTION"){if(x.hasAttribute("selected")){he=ae;break}ae++}x=x.nextSibling,!x&&p&&(x=p.nextSibling,p=null)}re.selectedIndex=he}}},xO=1,DX=11,EX=3,IX=8;function TA(){}function oxe(re){if(re)return re.getAttribute&&re.getAttribute("id")||re.id}function rxe(re){return function(he,ae,x){if(x||(x={}),typeof ae=="string")if(he.nodeName==="#document"||he.nodeName==="HTML"||he.nodeName==="BODY"){var p=ae;ae=jg.createElement("html"),ae.innerHTML=p}else ae=ixe(ae);else ae.nodeType===DX&&(ae=ae.firstElementChild);var A=x.getNodeKey||oxe,E=x.onBeforeNodeAdded||TA,z=x.onNodeAdded||TA,T=x.onBeforeElUpdated||TA,b=x.onElUpdated||TA,C=x.onBeforeNodeDiscarded||TA,d=x.onNodeDiscarded||TA,s=x.onBeforeElChildrenUpdated||TA,c=x.skipFromChildren||TA,h=x.addChild||function(Fe,We){return Fe.appendChild(We)},g=x.childrenOnly===!0,f=Object.create(null),S=[];function w(Fe){S.push(Fe)}function M(Fe,We){if(Fe.nodeType===xO)for(var it=Fe.firstChild;it;){var tt=void 0;We&&(tt=A(it))?w(tt):(d(it),it.firstChild&&M(it,We)),it=it.nextSibling}}function P(Fe,We,it){C(Fe)!==!1&&(We&&We.removeChild(Fe),d(Fe),M(Fe,it))}function O(Fe){if(Fe.nodeType===xO||Fe.nodeType===DX)for(var We=Fe.firstChild;We;){var it=A(We);it&&(f[it]=We),O(We),We=We.nextSibling}}O(he);function G(Fe){z(Fe);for(var We=Fe.firstChild;We;){var it=We.nextSibling,tt=A(We);if(tt){var ot=f[tt];ot&&fz(We,ot)?(We.parentNode.replaceChild(ot,We),Y(ot,We)):G(We)}else G(We);We=it}}function j(Fe,We,it){for(;We;){var tt=We.nextSibling;(it=A(We))?w(it):P(We,Fe,!0),We=tt}}function Y(Fe,We,it){var tt=A(We);if(tt&&delete f[tt],!it){var ot=T(Fe,We);if(ot===!1||(ot instanceof HTMLElement&&(Fe=ot,O(Fe)),re(Fe,We),b(Fe),s(Fe,We)===!1))return}Fe.nodeName!=="TEXTAREA"?J(Fe,We):AX.TEXTAREA(Fe,We)}function J(Fe,We){var it=c(Fe,We),tt=We.firstChild,ot=Fe.firstChild,st,St,Xe,Ke,Ye;e:for(;tt;){for(Ke=tt.nextSibling,st=A(tt);!it&&ot;){if(Xe=ot.nextSibling,tt.isSameNode&&tt.isSameNode(ot)){tt=Ke,ot=Xe;continue e}St=A(ot);var Ze=ot.nodeType,Pe=void 0;if(Ze===tt.nodeType&&(Ze===xO?(st?st!==St&&((Ye=f[st])?Xe===Ye?Pe=!1:(Fe.insertBefore(Ye,ot),St?w(St):P(ot,Fe,!0),ot=Ye,St=A(ot)):Pe=!1):St&&(Pe=!1),Pe=Pe!==!1&&fz(ot,tt),Pe&&Y(ot,tt)):(Ze===EX||Ze==IX)&&(Pe=!0,ot.nodeValue!==tt.nodeValue&&(ot.nodeValue=tt.nodeValue))),Pe){tt=Ke,ot=Xe;continue e}St?w(St):P(ot,Fe,!0),ot=Xe}if(st&&(Ye=f[st])&&fz(Ye,tt))it||h(Fe,Ye),Y(Ye,tt);else{var ct=E(tt);ct!==!1&&(ct&&(tt=ct),tt.actualize&&(tt=tt.actualize(Fe.ownerDocument||jg)),h(Fe,tt),G(tt))}tt=Ke,ot=Xe}j(Fe,ot,St);var dt=AX[Fe.nodeName];dt&&dt(Fe,We)}var ne=he,ce=ne.nodeType,fe=ae.nodeType;if(!g){if(ce===xO)fe===xO?fz(he,ae)||(d(he),ne=axe(he,nxe(ae.nodeName,ae.namespaceURI))):ne=ae;else if(ce===EX||ce===IX){if(fe===ce)return ne.nodeValue!==ae.nodeValue&&(ne.nodeValue=ae.nodeValue),ne;ne=ae}}if(ne===ae)d(he);else{if(ae.isSameNode&&ae.isSameNode(ne))return;if(Y(ne,ae,g),S)for(var xe=0,Le=S.length;xe<Le;xe++){var _e=f[S[xe]];_e&&P(_e,_e.parentNode,!1)}}return!g&&ne!==he&&he.parentNode&&(ne.actualize&&(ne=ne.actualize(he.ownerDocument||jg)),he.parentNode.replaceChild(ne,he)),ne}}var sxe=rxe(Xwe),lxe=sxe,vz=class{constructor(re,oe,he,ae,x,p,A={}){this.view=re,this.liveSocket=re.liveSocket,this.container=oe,this.id=he,this.rootID=re.root.id,this.html=ae,this.streams=x,this.streamInserts={},this.streamComponentRestore={},this.targetCID=p,this.cidPatch=Vw(this.targetCID),this.pendingRemoves=[],this.phxRemove=this.liveSocket.binding("remove"),this.targetContainer=this.isCIDPatch()?this.targetCIDContainer(ae):oe,this.callbacks={beforeadded:[],beforeupdated:[],beforephxChildAdded:[],afteradded:[],afterupdated:[],afterdiscarded:[],afterphxChildAdded:[],aftertransitionsDiscarded:[]},this.withChildren=A.withChildren||A.undoRef||!1,this.undoRef=A.undoRef}before(re,oe){this.callbacks[`before${re}`].push(oe)}after(re,oe){this.callbacks[`after${re}`].push(oe)}trackBefore(re,...oe){this.callbacks[`before${re}`].forEach(he=>he(...oe))}trackAfter(re,...oe){this.callbacks[`after${re}`].forEach(he=>he(...oe))}markPrunableContentForRemoval(){let re=this.liveSocket.binding(xz);zt.all(this.container,`[${re}=append] > *, [${re}=prepend] > *`,oe=>{oe.setAttribute(rX,"")})}perform(re){let{view:oe,liveSocket:he,html:ae,container:x,targetContainer:p}=this;if(this.isCIDPatch()&&!p)return;let A=he.getActiveElement(),{selectionStart:E,selectionEnd:z}=A&&zt.hasSelectionRange(A)?A:{},T=he.binding(xz),b=he.binding(GV),C=he.binding(VV),d=he.binding(Mwe),s=[],c=[],h=[],g=null;function f(S,w,M=this.withChildren){let P={childrenOnly:S.getAttribute(jw)===null&&!M,getNodeKey:O=>zt.isPhxDestroyed(O)?null:re?O.id:O.id||O.getAttribute&&O.getAttribute(zX),skipFromChildren:O=>O.getAttribute(T)===LV,addChild:(O,G)=>{let{ref:j,streamAt:Y}=this.getStreamInsert(G);if(j===void 0)return O.appendChild(G);if(this.setStreamRef(G,j),Y===0)O.insertAdjacentElement("afterbegin",G);else if(Y===-1){let J=O.lastElementChild;if(J&&!J.hasAttribute(yO)){let ne=Array.from(O.children).find(ce=>!ce.hasAttribute(yO));O.insertBefore(G,ne)}else O.appendChild(G)}else if(Y>0){let J=Array.from(O.children)[Y];O.insertBefore(G,J)}},onBeforeNodeAdded:O=>{zt.maintainPrivateHooks(O,O,b,C),this.trackBefore("added",O);let G=O;return this.streamComponentRestore[O.id]&&(G=this.streamComponentRestore[O.id],delete this.streamComponentRestore[O.id],f.call(this,G,O,!0)),G},onNodeAdded:O=>{O.getAttribute&&this.maybeReOrderStream(O,!0),O instanceof HTMLImageElement&&O.srcset?O.srcset=O.srcset:O instanceof HTMLVideoElement&&O.autoplay&&O.play(),zt.isNowTriggerFormExternal(O,d)&&(g=O),(zt.isPhxChild(O)&&oe.ownsElement(O)||zt.isPhxSticky(O)&&oe.ownsElement(O.parentNode))&&this.trackAfter("phxChildAdded",O),s.push(O)},onNodeDiscarded:O=>this.onNodeDiscarded(O),onBeforeNodeDiscarded:O=>O.getAttribute&&O.getAttribute(rX)!==null?!0:!(O.parentElement!==null&&O.id&&zt.isPhxUpdate(O.parentElement,T,[LV,"append","prepend"])||this.maybePendingRemove(O)||this.skipCIDSibling(O)),onElUpdated:O=>{zt.isNowTriggerFormExternal(O,d)&&(g=O),c.push(O),this.maybeReOrderStream(O,!1)},onBeforeElUpdated:(O,G)=>{if(O.id&&O.isSameNode(S)&&O.id!==G.id)return P.onNodeDiscarded(O),O.replaceWith(G),P.onNodeAdded(G);if(zt.syncPendingAttrs(O,G),zt.maintainPrivateHooks(O,G,b,C),zt.cleanChildNodes(G,T),this.skipCIDSibling(G))return this.maybeReOrderStream(O),!1;if(zt.isPhxSticky(O))return[_C,nI,PA].map(J=>[J,O.getAttribute(J),G.getAttribute(J)]).forEach(([J,ne,ce])=>{ce&&ne!==ce&&O.setAttribute(J,ce)}),!1;if(zt.isIgnored(O,T)||O.form&&O.form.isSameNode(g))return this.trackBefore("updated",O,G),zt.mergeAttrs(O,G,{isIgnored:zt.isIgnored(O,T)}),c.push(O),zt.applyStickyOperations(O),!1;if(O.type==="number"&&O.validity&&O.validity.badInput)return!1;let j=A&&O.isSameNode(A)&&zt.isFormInput(O),Y=j&&this.isChangedSelect(O,G);if(O.hasAttribute(Gf)&&O.getAttribute(td)!=this.undoRef){zt.isUploadInput(O)&&(zt.mergeAttrs(O,G,{isIgnored:!0}),this.trackBefore("updated",O,G),c.push(O)),zt.applyStickyOperations(O);let ne=O.hasAttribute(td)?zt.private(O,td)||O.cloneNode(!0):null;ne&&(zt.putPrivate(O,td,ne),j||(O=ne))}if(zt.isPhxChild(G)){let J=O.getAttribute(_C);return zt.mergeAttrs(O,G,{exclude:[nI]}),J!==""&&O.setAttribute(_C,J),O.setAttribute(PA,this.rootID),zt.applyStickyOperations(O),!1}return zt.copyPrivates(G,O),j&&O.type!=="hidden"&&!Y?(this.trackBefore("updated",O,G),zt.mergeFocusedInput(O,G),zt.syncAttrsToProps(O),c.push(O),zt.applyStickyOperations(O),!1):(Y&&O.blur(),zt.isPhxUpdate(G,T,["append","prepend"])&&h.push(new Ywe(O,G,G.getAttribute(T))),zt.syncAttrsToProps(G),zt.applyStickyOperations(G),this.trackBefore("updated",O,G),O)}};lxe(S,w,P)}return this.trackBefore("added",x),this.trackBefore("updated",x,x),he.time("morphdom",()=>{this.streams.forEach(([S,w,M,P])=>{w.forEach(([O,G,j])=>{this.streamInserts[O]={ref:S,streamAt:G,limit:j,reset:P}}),P!==void 0&&zt.all(x,`[${yO}="${S}"]`,O=>{this.removeStreamChildElement(O)}),M.forEach(O=>{let G=x.querySelector(`[id="${O}"]`);G&&this.removeStreamChildElement(G)})}),re&&zt.all(this.container,`[${T}=${LV}]`,S=>{this.liveSocket.owner(S,w=>{w===this.view&&Array.from(S.children).forEach(M=>{this.removeStreamChildElement(M)})})}),f.call(this,p,ae)}),he.isDebugEnabled()&&(Nwe(),zwe(this.streamInserts),Array.from(document.querySelectorAll("input[name=id]")).forEach(S=>{S.form&&console.error(`Detected an input with name="id" inside a form! This will cause problems when patching the DOM.
`,S)})),h.length>0&&he.time("post-morph append/prepend restoration",()=>{h.forEach(S=>S.perform())}),he.silenceEvents(()=>zt.restoreFocus(A,E,z)),zt.dispatchEvent(document,"phx:update"),s.forEach(S=>this.trackAfter("added",S)),c.forEach(S=>this.trackAfter("updated",S)),this.transitionPendingRemoves(),g&&(he.unload(),Object.getPrototypeOf(g).submit.call(g)),!0}onNodeDiscarded(re){(zt.isPhxChild(re)||zt.isPhxSticky(re))&&this.liveSocket.destroyViewByEl(re),this.trackAfter("discarded",re)}maybePendingRemove(re){return re.getAttribute&&re.getAttribute(this.phxRemove)!==null?(this.pendingRemoves.push(re),!0):!1}removeStreamChildElement(re){this.streamInserts[re.id]?(this.streamComponentRestore[re.id]=re,re.remove()):this.maybePendingRemove(re)||(re.remove(),this.onNodeDiscarded(re))}getStreamInsert(re){return(re.id?this.streamInserts[re.id]:{})||{}}setStreamRef(re,oe){zt.putSticky(re,yO,he=>he.setAttribute(yO,oe))}maybeReOrderStream(re,oe){let{ref:he,streamAt:ae,reset:x}=this.getStreamInsert(re);if(ae!==void 0&&(this.setStreamRef(re,he),!(!x&&!oe)&&re.parentElement)){if(ae===0)re.parentElement.insertBefore(re,re.parentElement.firstElementChild);else if(ae>0){let p=Array.from(re.parentElement.children),A=p.indexOf(re);if(ae>=p.length-1)re.parentElement.appendChild(re);else{let E=p[ae];A>ae?re.parentElement.insertBefore(re,E):re.parentElement.insertBefore(re,E.nextElementSibling)}}this.maybeLimitStream(re)}}maybeLimitStream(re){let{limit:oe}=this.getStreamInsert(re),he=oe!==null&&Array.from(re.parentElement.children);oe&&oe<0&&he.length>oe*-1?he.slice(0,he.length+oe).forEach(ae=>this.removeStreamChildElement(ae)):oe&&oe>=0&&he.length>oe&&he.slice(oe).forEach(ae=>this.removeStreamChildElement(ae))}transitionPendingRemoves(){let{pendingRemoves:re,liveSocket:oe}=this;re.length>0&&oe.transitionRemoves(re,!1,()=>{re.forEach(he=>{let ae=zt.firstPhxChild(he);ae&&oe.destroyViewByEl(ae),he.remove()}),this.trackAfter("transitionsDiscarded",re)})}isChangedSelect(re,oe){return!(re instanceof HTMLSelectElement)||re.multiple?!1:re.options.length!==oe.options.length?!0:(oe.value=re.value,!re.isEqualNode(oe))}isCIDPatch(){return this.cidPatch}skipCIDSibling(re){return re.nodeType===Node.ELEMENT_NODE&&re.hasAttribute(NX)}targetCIDContainer(re){if(!this.isCIDPatch())return;let[oe,...he]=zt.findComponentNodeList(this.container,this.targetCID);return he.length===0&&zt.childNodeLength(re)===1?oe:oe&&oe.parentNode}indexOf(re,oe){return Array.from(re.children).indexOf(oe)}},cxe=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),dxe=new Set(["'",'"']),TX=(re,oe,he)=>{let ae=0,x=!1,p,A,E,z,T,b,C=re.match(/^(\s*(?:<!--.*?-->\s*)*)<([^\s\/>]+)/);if(C===null)throw new Error(`malformed html ${re}`);for(ae=C[0].length,p=C[1],E=C[2],z=ae,ae;ae<re.length&&re.charAt(ae)!==">";ae++)if(re.charAt(ae)==="="){let c=re.slice(ae-3,ae)===" id";ae++;let h=re.charAt(ae);if(dxe.has(h)){let g=ae;for(ae++,ae;ae<re.length&&re.charAt(ae)!==h;ae++);if(c){T=re.slice(g+1,ae);break}}}let d=re.length-1;for(x=!1;d>=p.length+E.length;){let c=re.charAt(d);if(x)c==="-"&&re.slice(d-3,d)==="<!-"?(x=!1,d-=4):d-=1;else if(c===">"&&re.slice(d-2,d)==="--")x=!0,d-=3;else{if(c===">")break;d-=1}}A=re.slice(d+1,re.length);let s=Object.keys(oe).map(c=>oe[c]===!0?c:`${c}="${oe[c]}"`).join(" ");if(he){let c=T?` id="${T}"`:"";cxe.has(E)?b=`<${E}${c}${s===""?"":" "}${s}/>`:b=`<${E}${c}${s===""?"":" "}${s}></${E}>`}else{let c=re.slice(z,d+1);b=`<${E}${s===""?"":" "}${s}${c}`}return[b,p,A]},RX=class{static extract(re){let{[yX]:oe,[vX]:he,[bX]:ae}=re;return delete re[yX],delete re[vX],delete re[bX],{diff:re,title:ae,reply:oe||null,events:he||[]}}constructor(re,oe){this.viewId=re,this.rendered={},this.magicId=0,this.mergeDiff(oe)}parentViewId(){return this.viewId}toString(re){let[oe,he]=this.recursiveToString(this.rendered,this.rendered[Lh],re,!0,{});return[oe,he]}recursiveToString(re,oe=re[Lh],he,ae,x){he=he?new Set(he):null;let p={buffer:"",components:oe,onlyCids:he,streams:new Set};return this.toOutputBuffer(re,null,p,ae,x),[p.buffer,p.streams]}componentCIDs(re){return Object.keys(re[Lh]||{}).map(oe=>parseInt(oe))}isComponentOnlyDiff(re){return re[Lh]?Object.keys(re).length===1:!1}getComponent(re,oe){return re[Lh][oe]}resetRender(re){this.rendered[Lh][re]&&(this.rendered[Lh][re].reset=!0)}mergeDiff(re){let oe=re[Lh],he={};if(delete re[Lh],this.rendered=this.mutableMerge(this.rendered,re),this.rendered[Lh]=this.rendered[Lh]||{},oe){let ae=this.rendered[Lh];for(let x in oe)oe[x]=this.cachedFindComponent(x,oe[x],ae,oe,he);for(let x in oe)ae[x]=oe[x];re[Lh]=oe}}cachedFindComponent(re,oe,he,ae,x){if(x[re])return x[re];{let p,A,E=oe[OC];if(Vw(E)){let z;E>0?z=this.cachedFindComponent(E,ae[E],he,ae,x):z=he[-E],A=z[OC],p=this.cloneMerge(z,oe,!0),p[OC]=A}else p=oe[OC]!==void 0||he[re]===void 0?oe:this.cloneMerge(he[re],oe,!1);return x[re]=p,p}}mutableMerge(re,oe){return oe[OC]!==void 0?oe:(this.doMutableMerge(re,oe),re)}doMutableMerge(re,oe){for(let he in oe){let ae=oe[he],x=re[he];yP(ae)&&ae[OC]===void 0&&yP(x)?this.doMutableMerge(x,ae):re[he]=ae}re[_V]&&(re.newRender=!0)}cloneMerge(re,oe,he){let ae=ge(ge({},re),oe);for(let x in ae){let p=oe[x],A=re[x];yP(p)&&p[OC]===void 0&&yP(A)?ae[x]=this.cloneMerge(A,p,he):p===void 0&&yP(A)&&(ae[x]=this.cloneMerge(A,{},he))}return he?(delete ae.magicId,delete ae.newRender):re[_V]&&(ae.newRender=!0),ae}componentToString(re){let[oe,he]=this.recursiveCIDToString(this.rendered[Lh],re,null),[ae,x,p]=TX(oe,{});return[ae,he]}pruneCIDs(re){re.forEach(oe=>delete this.rendered[Lh][oe])}get(){return this.rendered}isNewFingerprint(re={}){return!!re[OC]}templateStatic(re,oe){return typeof re=="number"?oe[re]:re}nextMagicID(){return this.magicId++,`m${this.magicId}-${this.parentViewId()}`}toOutputBuffer(re,oe,he,ae,x={}){if(re[pz])return this.comprehensionToBuffer(re,oe,he);let{[OC]:p}=re;p=this.templateStatic(p,oe);let A=re[_V],E=he.buffer;A&&(he.buffer=""),ae&&A&&!re.magicId&&(re.newRender=!0,re.magicId=this.nextMagicID()),he.buffer+=p[0];for(let z=1;z<p.length;z++)this.dynamicToBuffer(re[z-1],oe,he,ae),he.buffer+=p[z];if(A){let z=!1,T;ae||re.magicId?(z=ae&&!re.newRender,T=ge({[zX]:re.magicId},x)):T=x,z&&(T[NX]=!0);let[b,C,d]=TX(he.buffer,T,z);re.newRender=!1,he.buffer=E+C+b+d}}comprehensionToBuffer(re,oe,he){let{[pz]:ae,[OC]:x,[CX]:p}=re,[A,E,z,T]=p||[null,{},[],null];x=this.templateStatic(x,oe);let b=oe||re[Fwe];for(let C=0;C<ae.length;C++){let d=ae[C];he.buffer+=x[0];for(let s=1;s<x.length;s++){let c=!1;this.dynamicToBuffer(d[s-1],b,he,c),he.buffer+=x[s]}}p!==void 0&&(re[pz].length>0||z.length>0||T)&&(delete re[CX],re[pz]=[],he.streams.add(p))}dynamicToBuffer(re,oe,he,ae){if(typeof re=="number"){let[x,p]=this.recursiveCIDToString(he.components,re,he.onlyCids);he.buffer+=x,he.streams=new Set([...he.streams,...p])}else yP(re)?this.toOutputBuffer(re,oe,he,ae,{}):he.buffer+=re}recursiveCIDToString(re,oe,he){let ae=re[oe]||Vg(`no component for CID ${oe}`,re),x={[jw]:oe},p=he&&!he.has(oe);ae.newRender=!p,ae.magicId=`c${oe}-${this.parentViewId()}`;let A=!ae.reset,[E,z]=this.recursiveToString(ae,re,he,A,x);return delete ae.reset,[E,z]}},PX=[],LX=200,uxe={exec(re,oe,he,ae,x,p){let[A,E]=p||[null,{callback:p&&p.callback}];(he.charAt(0)==="["?JSON.parse(he):[[A,E]]).forEach(([T,b])=>{T===A&&(b=ge(ge({},E),b),b.callback=b.callback||E.callback),this.filterToEls(ae.liveSocket,x,b).forEach(C=>{this[`exec_${T}`](re,oe,he,ae,x,C,b)})})},isVisible(re){return!!(re.offsetWidth||re.offsetHeight||re.getClientRects().length>0)},isInViewport(re){let oe=re.getBoundingClientRect(),he=window.innerHeight||document.documentElement.clientHeight,ae=window.innerWidth||document.documentElement.clientWidth;return oe.right>0&&oe.bottom>0&&oe.left<ae&&oe.top<he},exec_exec(re,oe,he,ae,x,p,{attr:A,to:E}){(E?zt.all(document,E):[x]).forEach(T=>{let b=T.getAttribute(A);if(!b)throw new Error(`expected ${A} to contain JS command on "${E}"`);ae.liveSocket.execJS(T,b,oe)})},exec_dispatch(re,oe,he,ae,x,p,{event:A,detail:E,bubbles:z}){E=E||{},E.dispatcher=x,zt.dispatchEvent(p,A,{detail:E,bubbles:z})},exec_push(re,oe,he,ae,x,p,A){let{event:E,data:z,target:T,page_loading:b,loading:C,value:d,dispatcher:s,callback:c}=A,h={loading:C,value:d,target:T,page_loading:!!b},g=oe==="change"&&s?s:x,f=T||g.getAttribute(ae.binding("target"))||g,S=(w,M)=>{if(w.isConnected())if(oe==="change"){let{newCid:P,_target:O}=A;O=O||(zt.isFormInput(x)?x.name:void 0),O&&(h._target=O),w.pushInput(x,M,P,E||he,h,c)}else if(oe==="submit"){let{submitter:P}=A;w.submitForm(x,M,E||he,P,h,c)}else w.pushEvent(oe,x,M,E||he,z,h,c)};A.targetView&&A.targetCtx?S(A.targetView,A.targetCtx):ae.withinTargets(f,S)},exec_navigate(re,oe,he,ae,x,p,{href:A,replace:E}){ae.liveSocket.historyRedirect(re,A,E?"replace":"push",null,x)},exec_patch(re,oe,he,ae,x,p,{href:A,replace:E}){ae.liveSocket.pushHistoryPatch(re,A,E?"replace":"push",x)},exec_focus(re,oe,he,ae,x,p){window.requestAnimationFrame(()=>FC.attemptFocus(p))},exec_focus_first(re,oe,he,ae,x,p){window.requestAnimationFrame(()=>FC.focusFirstInteractive(p)||FC.focusFirst(p))},exec_push_focus(re,oe,he,ae,x,p){window.requestAnimationFrame(()=>PX.push(p||x))},exec_pop_focus(re,oe,he,ae,x,p){window.requestAnimationFrame(()=>{let A=PX.pop();A&&A.focus()})},exec_add_class(re,oe,he,ae,x,p,{names:A,transition:E,time:z,blocking:T}){this.addOrRemoveClasses(p,A,[],E,z,ae,T)},exec_remove_class(re,oe,he,ae,x,p,{names:A,transition:E,time:z,blocking:T}){this.addOrRemoveClasses(p,[],A,E,z,ae,T)},exec_toggle_class(re,oe,he,ae,x,p,{names:A,transition:E,time:z,blocking:T}){this.toggleClasses(p,A,E,z,ae,T)},exec_toggle_attr(re,oe,he,ae,x,p,{attr:[A,E,z]}){this.toggleAttr(p,A,E,z)},exec_transition(re,oe,he,ae,x,p,{time:A,transition:E,blocking:z}){this.addOrRemoveClasses(p,[],[],E,A,ae,z)},exec_toggle(re,oe,he,ae,x,p,{display:A,ins:E,outs:z,time:T,blocking:b}){this.toggle(oe,ae,p,A,E,z,T,b)},exec_show(re,oe,he,ae,x,p,{display:A,transition:E,time:z,blocking:T}){this.show(oe,ae,p,A,E,z,T)},exec_hide(re,oe,he,ae,x,p,{display:A,transition:E,time:z,blocking:T}){this.hide(oe,ae,p,A,E,z,T)},exec_set_attr(re,oe,he,ae,x,p,{attr:[A,E]}){this.setOrRemoveAttrs(p,[[A,E]],[])},exec_remove_attr(re,oe,he,ae,x,p,{attr:A}){this.setOrRemoveAttrs(p,[],[A])},show(re,oe,he,ae,x,p,A){this.isVisible(he)||this.toggle(re,oe,he,ae,x,null,p,A)},hide(re,oe,he,ae,x,p,A){this.isVisible(he)&&this.toggle(re,oe,he,ae,null,x,p,A)},toggle(re,oe,he,ae,x,p,A,E){A=A||LX;let[z,T,b]=x||[[],[],[]],[C,d,s]=p||[[],[],[]];if(z.length>0||C.length>0)if(this.isVisible(he)){let c=()=>{this.addOrRemoveClasses(he,d,z.concat(T).concat(b)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(he,C,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(he,s,d))})},h=()=>{this.addOrRemoveClasses(he,[],C.concat(s)),zt.putSticky(he,"toggle",g=>g.style.display="none"),he.dispatchEvent(new Event("phx:hide-end"))};he.dispatchEvent(new Event("phx:hide-start")),E===!1?(c(),setTimeout(h,A)):oe.transition(A,c,h)}else{if(re==="remove")return;let c=()=>{this.addOrRemoveClasses(he,T,C.concat(d).concat(s));let g=ae||this.defaultDisplay(he);zt.putSticky(he,"toggle",f=>f.style.display=g),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(he,z,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(he,b,T))})},h=()=>{this.addOrRemoveClasses(he,[],z.concat(b)),he.dispatchEvent(new Event("phx:show-end"))};he.dispatchEvent(new Event("phx:show-start")),E===!1?(c(),setTimeout(h,A)):oe.transition(A,c,h)}else this.isVisible(he)?window.requestAnimationFrame(()=>{he.dispatchEvent(new Event("phx:hide-start")),zt.putSticky(he,"toggle",c=>c.style.display="none"),he.dispatchEvent(new Event("phx:hide-end"))}):window.requestAnimationFrame(()=>{he.dispatchEvent(new Event("phx:show-start"));let c=ae||this.defaultDisplay(he);zt.putSticky(he,"toggle",h=>h.style.display=c),he.dispatchEvent(new Event("phx:show-end"))})},toggleClasses(re,oe,he,ae,x,p){window.requestAnimationFrame(()=>{let[A,E]=zt.getSticky(re,"classes",[[],[]]),z=oe.filter(b=>A.indexOf(b)<0&&!re.classList.contains(b)),T=oe.filter(b=>E.indexOf(b)<0&&re.classList.contains(b));this.addOrRemoveClasses(re,z,T,he,ae,x,p)})},toggleAttr(re,oe,he,ae){re.hasAttribute(oe)?ae!==void 0?re.getAttribute(oe)===he?this.setOrRemoveAttrs(re,[[oe,ae]],[]):this.setOrRemoveAttrs(re,[[oe,he]],[]):this.setOrRemoveAttrs(re,[],[oe]):this.setOrRemoveAttrs(re,[[oe,he]],[])},addOrRemoveClasses(re,oe,he,ae,x,p,A){x=x||LX;let[E,z,T]=ae||[[],[],[]];if(E.length>0){let b=()=>{this.addOrRemoveClasses(re,z,[].concat(E).concat(T)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(re,E,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(re,T,z))})},C=()=>this.addOrRemoveClasses(re,oe.concat(T),he.concat(E).concat(z));A===!1?(b(),setTimeout(C,x)):p.transition(x,b,C);return}window.requestAnimationFrame(()=>{let[b,C]=zt.getSticky(re,"classes",[[],[]]),d=oe.filter(g=>b.indexOf(g)<0&&!re.classList.contains(g)),s=he.filter(g=>C.indexOf(g)<0&&re.classList.contains(g)),c=b.filter(g=>he.indexOf(g)<0).concat(d),h=C.filter(g=>oe.indexOf(g)<0).concat(s);zt.putSticky(re,"classes",g=>(g.classList.remove(...h),g.classList.add(...c),[c,h]))})},setOrRemoveAttrs(re,oe,he){let[ae,x]=zt.getSticky(re,"attrs",[[],[]]),p=oe.map(([z,T])=>z).concat(he),A=ae.filter(([z,T])=>!p.includes(z)).concat(oe),E=x.filter(z=>!p.includes(z)).concat(he);zt.putSticky(re,"attrs",z=>(E.forEach(T=>z.removeAttribute(T)),A.forEach(([T,b])=>z.setAttribute(T,b)),[A,E]))},hasAllClasses(re,oe){return oe.every(he=>re.classList.contains(he))},isToggledOut(re,oe){return!this.isVisible(re)||this.hasAllClasses(re,oe)},filterToEls(re,oe,{to:he}){let ae=()=>{if(typeof he=="string")return document.querySelectorAll(he);if(he.closest){let x=oe.closest(he.closest);return x?[x]:[]}else if(he.inner)return oe.querySelectorAll(he.inner)};return he?re.jsQuerySelectorAll(oe,he,ae):[oe]},defaultDisplay(re){return{tr:"table-row",td:"table-cell"}[re.tagName.toLowerCase()]||"block"},transitionClasses(re){if(!re)return null;let[oe,he,ae]=Array.isArray(re)?re:[re.split(" "),[],[]];return oe=Array.isArray(oe)?oe:oe.split(" "),he=Array.isArray(he)?he:he.split(" "),ae=Array.isArray(ae)?ae:ae.split(" "),[oe,he,ae]}},Zo=uxe,zV="hookId",hxe=1,MO=class{static makeID(){return hxe++}static elementID(re){return zt.private(re,zV)}constructor(re,oe,he){this.el=oe,this.__attachView(re),this.__callbacks=he,this.__listeners=new Set,this.__isDisconnected=!1,zt.putPrivate(this.el,zV,this.constructor.makeID());for(let ae in this.__callbacks)this[ae]=this.__callbacks[ae]}__attachView(re){re?(this.__view=()=>re,this.liveSocket=re.liveSocket):(this.__view=()=>{throw new Error(`hook not yet attached to a live view: ${this.el.outerHTML}`)},this.liveSocket=null)}__mounted(){this.mounted&&this.mounted()}__updated(){this.updated&&this.updated()}__beforeUpdate(){this.beforeUpdate&&this.beforeUpdate()}__destroyed(){this.destroyed&&this.destroyed(),zt.deletePrivate(this.el,zV)}__reconnected(){this.__isDisconnected&&(this.__isDisconnected=!1,this.reconnected&&this.reconnected())}__disconnected(){this.__isDisconnected=!0,this.disconnected&&this.disconnected()}js(){let re=this;return{exec(oe){re.__view().liveSocket.execJS(re.el,oe,"hook")},show(oe,he={}){let ae=re.__view().liveSocket.owner(oe);Zo.show("hook",ae,oe,he.display,he.transition,he.time,he.blocking)},hide(oe,he={}){let ae=re.__view().liveSocket.owner(oe);Zo.hide("hook",ae,oe,null,he.transition,he.time,he.blocking)},toggle(oe,he={}){let ae=re.__view().liveSocket.owner(oe);he.in=Zo.transitionClasses(he.in),he.out=Zo.transitionClasses(he.out),Zo.toggle("hook",ae,oe,he.display,he.in,he.out,he.time,he.blocking)},addClass(oe,he,ae={}){he=Array.isArray(he)?he:he.split(" ");let x=re.__view().liveSocket.owner(oe);Zo.addOrRemoveClasses(oe,he,[],ae.transition,ae.time,x,ae.blocking)},removeClass(oe,he,ae={}){ae.transition=Zo.transitionClasses(ae.transition),he=Array.isArray(he)?he:he.split(" ");let x=re.__view().liveSocket.owner(oe);Zo.addOrRemoveClasses(oe,[],he,ae.transition,ae.time,x,ae.blocking)},toggleClass(oe,he,ae={}){ae.transition=Zo.transitionClasses(ae.transition),he=Array.isArray(he)?he:he.split(" ");let x=re.__view().liveSocket.owner(oe);Zo.toggleClasses(oe,he,ae.transition,ae.time,x,ae.blocking)},transition(oe,he,ae={}){let x=re.__view().liveSocket.owner(oe);Zo.addOrRemoveClasses(oe,[],[],Zo.transitionClasses(he),ae.time,x,ae.blocking)},setAttribute(oe,he,ae){Zo.setOrRemoveAttrs(oe,[[he,ae]],[])},removeAttribute(oe,he){Zo.setOrRemoveAttrs(oe,[],[he])},toggleAttribute(oe,he,ae,x){Zo.toggleAttr(oe,he,ae,x)}}}pushEvent(re,oe={},he){return he===void 0?new Promise((ae,x)=>{try{this.__view().pushHookEvent(this.el,null,re,oe,(A,E)=>ae(A))===!1&&x(new Error("unable to push hook event. LiveView not connected"))}catch(p){x(p)}}):this.__view().pushHookEvent(this.el,null,re,oe,he)}pushEventTo(re,oe,he={},ae){return ae===void 0?new Promise((x,p)=>{try{this.__view().withinTargets(re,(A,E)=>{A.pushHookEvent(this.el,E,oe,he,(T,b)=>x(T))===!1&&p(new Error("unable to push hook event. LiveView not connected"))})}catch(A){p(A)}}):this.__view().withinTargets(re,(x,p)=>x.pushHookEvent(this.el,p,oe,he,ae))}handleEvent(re,oe){let he=(ae,x)=>x?re:oe(ae.detail);return window.addEventListener(`phx:${re}`,he),this.__listeners.add(he),he}removeHandleEvent(re){let oe=re(null,!0);window.removeEventListener(`phx:${oe}`,re),this.__listeners.delete(re)}upload(re,oe){return this.__view().dispatchUploads(null,re,oe)}uploadTo(re,oe,he){return this.__view().withinTargets(re,(ae,x)=>{ae.dispatchUploads(x,oe,he)})}__cleanup__(){this.__listeners.forEach(re=>this.removeHandleEvent(re))}},gxe=(re,oe)=>{let he=re.endsWith("[]"),ae=he?re.slice(0,-2):re;return ae=ae.replace(/([^\[\]]+)(\]?$)/,`${oe}$1$2`),he&&(ae+="[]"),ae},yz=(re,oe,he=[])=>{let b=oe,{submitter:ae}=b,x=wi(b,["submitter"]),p;if(ae&&ae.name){let C=document.createElement("input");C.type="hidden";let d=ae.getAttribute("form");d&&C.setAttribute("form",d),C.name=ae.name,C.value=ae.value,ae.parentElement.insertBefore(C,ae),p=C}let A=new FormData(re),E=[];A.forEach((C,d,s)=>{C instanceof File&&E.push(d)}),E.forEach(C=>A.delete(C));let z=new URLSearchParams,T=Array.from(re.elements);for(let[C,d]of A.entries())if(he.length===0||he.indexOf(C)>=0){let s=T.filter(g=>g.name===C),c=!s.some(g=>zt.private(g,Sz)||zt.private(g,AO)),h=s.every(g=>g.type==="hidden");c&&!(ae&&ae.name==C)&&!h&&z.append(gxe(C,"_unused_"),""),z.append(C,d)}ae&&p&&ae.parentElement.removeChild(p);for(let C in x)z.append(C,x[C]);return z.toString()},pxe=class jX{static closestView(oe){let he=oe.closest(oI);return he?zt.private(he,"view"):null}constructor(oe,he,ae,x,p){this.isDead=!1,this.liveSocket=he,this.flash=x,this.parent=ae,this.root=ae?ae.root:this,this.el=oe,zt.putPrivate(this.el,"view",this),this.id=this.el.id,this.ref=0,this.lastAckRef=null,this.childJoins=0,this.loaderTimer=null,this.pendingDiffs=[],this.pendingForms=new Set,this.redirect=!1,this.href=null,this.joinCount=this.parent?this.parent.joinCount-1:0,this.joinAttempts=0,this.joinPending=!0,this.destroyed=!1,this.joinCallback=function(A){A&&A()},this.stopCallback=function(){},this.pendingJoinOps=this.parent?null:[],this.viewHooks={},this.formSubmits=[],this.children=this.parent?null:{},this.root.children[this.id]={},this.formsForRecovery={},this.channel=this.liveSocket.channel(`lv:${this.id}`,()=>{let A=this.href&&this.expandURL(this.href);return{redirect:this.redirect?A:void 0,url:this.redirect?void 0:A||void 0,params:this.connectParams(p),session:this.getSession(),static:this.getStatic(),flash:this.flash}})}setHref(oe){this.href=oe}setRedirect(oe){this.redirect=!0,this.href=oe}isMain(){return this.el.hasAttribute(UV)}connectParams(oe){let he=this.liveSocket.params(this.el),ae=zt.all(document,`[${this.binding(Swe)}]`).map(x=>x.src||x.href).filter(x=>typeof x=="string");return ae.length>0&&(he._track_static=ae),he._mounts=this.joinCount,he._mount_attempts=this.joinAttempts,he._live_referer=oe,this.joinAttempts++,he}isConnected(){return this.channel.canPush()}getSession(){return this.el.getAttribute(_C)}getStatic(){let oe=this.el.getAttribute(nI);return oe===""?null:oe}destroy(oe=function(){}){this.destroyAllChildren(),this.destroyed=!0,delete this.root.children[this.id],this.parent&&delete this.root.children[this.parent.id][this.id],clearTimeout(this.loaderTimer);let he=()=>{oe();for(let ae in this.viewHooks)this.destroyHook(this.viewHooks[ae])};zt.markPhxChildDestroyed(this.el),this.log("destroyed",()=>["the child has been removed from the parent"]),this.channel.leave().receive("ok",he).receive("error",he).receive("timeout",he)}setContainerClasses(...oe){this.el.classList.remove(sX,tI,vP,lX,fO),this.el.classList.add(...oe)}showLoader(oe){if(clearTimeout(this.loaderTimer),oe)this.loaderTimer=setTimeout(()=>this.showLoader(),oe);else{for(let he in this.viewHooks)this.viewHooks[he].__disconnected();this.setContainerClasses(tI)}}execAll(oe){zt.all(this.el,`[${oe}]`,he=>this.liveSocket.execJS(he,he.getAttribute(oe)))}hideLoader(){clearTimeout(this.loaderTimer),this.setContainerClasses(sX),this.execAll(this.binding("connected"))}triggerReconnected(){for(let oe in this.viewHooks)this.viewHooks[oe].__reconnected()}log(oe,he){this.liveSocket.log(this,oe,he)}transition(oe,he,ae=function(){}){this.liveSocket.transition(oe,he,ae)}withinTargets(oe,he,ae=document,x){if(oe instanceof HTMLElement||oe instanceof SVGElement)return this.liveSocket.owner(oe,p=>he(p,oe));if(Vw(oe))zt.findComponentNodeList(x||this.el,oe).length===0?Vg(`no component found matching phx-target of ${oe}`):he(this,parseInt(oe));else{let p=Array.from(ae.querySelectorAll(oe));p.length===0&&Vg(`nothing found matching the phx-target selector "${oe}"`),p.forEach(A=>this.liveSocket.owner(A,E=>he(E,A)))}}applyDiff(oe,he,ae){this.log(oe,()=>["",Cz(he)]);let{diff:x,reply:p,events:A,title:E}=RX.extract(he);ae({diff:x,reply:p,events:A}),(typeof E=="string"||oe=="mount")&&window.requestAnimationFrame(()=>zt.putTitle(E))}onJoin(oe){let{rendered:he,container:ae,liveview_version:x}=oe;if(ae){let[p,A]=ae;this.el=zt.replaceRootContainer(this.el,p,A)}this.childJoins=0,this.joinPending=!0,this.flash=null,this.root===this&&(this.formsForRecovery=this.getFormsForRecovery()),this.isMain()&&window.history.state===null&&Gg.pushState("replace",{type:"patch",id:this.id,position:this.liveSocket.currentHistoryPosition}),x!==this.liveSocket.version()&&console.error(`LiveView asset version mismatch. JavaScript version ${this.liveSocket.version()} vs. server ${x}. To avoid issues, please ensure that your assets use the same version as the server.`),Gg.dropLocal(this.liveSocket.localStorage,window.location.pathname,OX),this.applyDiff("mount",he,({diff:p,events:A})=>{this.rendered=new RX(this.id,p);let[E,z]=this.renderContainer(null,"join");this.dropPendingRefs(),this.joinCount++,this.joinAttempts=0,this.maybeRecoverForms(E,()=>{this.onJoinComplete(oe,E,z,A)})})}dropPendingRefs(){zt.all(document,`[${Gf}="${this.refSrc()}"]`,oe=>{oe.removeAttribute(CP),oe.removeAttribute(Gf),oe.removeAttribute(td)})}onJoinComplete({live_patch:oe},he,ae,x){if(this.joinCount>1||this.parent&&!this.parent.isJoinPending())return this.applyJoinPatch(oe,he,ae,x);zt.findPhxChildrenInFragment(he,this.id).filter(A=>{let E=A.id&&this.el.querySelector(`[id="${A.id}"]`),z=E&&E.getAttribute(nI);return z&&A.setAttribute(nI,z),E&&E.setAttribute(PA,this.root.id),this.joinChild(A)}).length===0?this.parent?(this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(oe,he,ae,x)]),this.parent.ackJoin(this)):(this.onAllChildJoinsComplete(),this.applyJoinPatch(oe,he,ae,x)):this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(oe,he,ae,x)])}attachTrueDocEl(){this.el=zt.byId(this.id),this.el.setAttribute(PA,this.root.id)}execNewMounted(oe=this.el){let he=this.binding(GV),ae=this.binding(VV);zt.all(oe,`[${he}], [${ae}]`,x=>{this.ownsElement(x)&&(zt.maintainPrivateHooks(x,x,he,ae),this.maybeAddNewHook(x))}),zt.all(oe,`[${this.binding(vO)}], [data-phx-${vO}]`,x=>{this.ownsElement(x)&&this.maybeAddNewHook(x)}),zt.all(oe,`[${this.binding(hX)}]`,x=>{this.ownsElement(x)&&this.maybeMounted(x)})}applyJoinPatch(oe,he,ae,x){this.attachTrueDocEl();let p=new vz(this,this.el,this.id,he,ae,null);if(p.markPrunableContentForRemoval(),this.performPatch(p,!1,!0),this.joinNewChildren(),this.execNewMounted(),this.joinPending=!1,this.liveSocket.dispatchEvents(x),this.applyPendingUpdates(),oe){let{kind:A,to:E}=oe;this.liveSocket.historyPatch(E,A)}this.hideLoader(),this.joinCount>1&&this.triggerReconnected(),this.stopCallback()}triggerBeforeUpdateHook(oe,he){this.liveSocket.triggerDOM("onBeforeElUpdated",[oe,he]);let ae=this.getHook(oe),x=ae&&zt.isIgnored(oe,this.binding(xz));if(ae&&!oe.isEqualNode(he)&&!(x&&Gwe(oe.dataset,he.dataset)))return ae.__beforeUpdate(),ae}maybeMounted(oe){let he=oe.getAttribute(this.binding(hX)),ae=he&&zt.private(oe,"mounted");he&&!ae&&(this.liveSocket.execJS(oe,he),zt.putPrivate(oe,"mounted",!0))}maybeAddNewHook(oe){let he=this.addHook(oe);he&&he.__mounted()}performPatch(oe,he,ae=!1){let x=[],p=!1,A=new Set;return this.liveSocket.triggerDOM("onPatchStart",[oe.targetContainer]),oe.after("added",E=>{this.liveSocket.triggerDOM("onNodeAdded",[E]);let z=this.binding(GV),T=this.binding(VV);zt.maintainPrivateHooks(E,E,z,T),this.maybeAddNewHook(E),E.getAttribute&&this.maybeMounted(E)}),oe.after("phxChildAdded",E=>{zt.isPhxSticky(E)?this.liveSocket.joinRootViews():p=!0}),oe.before("updated",(E,z)=>{this.triggerBeforeUpdateHook(E,z)&&A.add(E.id)}),oe.after("updated",E=>{A.has(E.id)&&this.getHook(E).__updated()}),oe.after("discarded",E=>{E.nodeType===Node.ELEMENT_NODE&&x.push(E)}),oe.after("transitionsDiscarded",E=>this.afterElementsRemoved(E,he)),oe.perform(ae),this.afterElementsRemoved(x,he),this.liveSocket.triggerDOM("onPatchEnd",[oe.targetContainer]),p}afterElementsRemoved(oe,he){let ae=[];oe.forEach(x=>{let p=zt.all(x,`[${jw}]`),A=zt.all(x,`[${this.binding(vO)}], [data-phx-hook]`);p.concat(x).forEach(E=>{let z=this.componentID(E);Vw(z)&&ae.indexOf(z)===-1&&ae.push(z)}),A.concat(x).forEach(E=>{let z=this.getHook(E);z&&this.destroyHook(z)})}),he&&this.maybePushComponentsDestroyed(ae)}joinNewChildren(){zt.findPhxChildren(this.el,this.id).forEach(oe=>this.joinChild(oe))}maybeRecoverForms(oe,he){let ae=this.binding("change"),x=this.root.formsForRecovery,p=document.createElement("template");p.innerHTML=oe;let A=p.content.firstElementChild;A.id=this.id,A.setAttribute(PA,this.root.id),A.setAttribute(_C,this.getSession()),A.setAttribute(nI,this.getStatic()),A.setAttribute(aI,this.parent?this.parent.id:null);let E=zt.all(p.content,"form").filter(z=>z.id&&x[z.id]).filter(z=>!this.pendingForms.has(z.id)).filter(z=>x[z.id].getAttribute(ae)===z.getAttribute(ae)).map(z=>[x[z.id],z]);if(E.length===0)return he();E.forEach(([z,T],b)=>{this.pendingForms.add(T.id),this.pushFormRecovery(z,T,p.content.firstElementChild,()=>{this.pendingForms.delete(T.id),b===E.length-1&&he()})})}getChildById(oe){return this.root.children[this.id][oe]}getDescendentByEl(oe){var he;return oe.id===this.id?this:(he=this.children[oe.getAttribute(aI)])==null?void 0:he[oe.id]}destroyDescendent(oe){for(let he in this.root.children)for(let ae in this.root.children[he])if(ae===oe)return this.root.children[he][ae].destroy()}joinChild(oe){if(!this.getChildById(oe.id)){let ae=new jX(oe,this.liveSocket,this);return this.root.children[this.id][ae.id]=ae,ae.join(),this.childJoins++,!0}}isJoinPending(){return this.joinPending}ackJoin(oe){this.childJoins--,this.childJoins===0&&(this.parent?this.parent.ackJoin(this):this.onAllChildJoinsComplete())}onAllChildJoinsComplete(){this.pendingForms.clear(),this.formsForRecovery={},this.joinCallback(()=>{this.pendingJoinOps.forEach(([oe,he])=>{oe.isDestroyed()||he()}),this.pendingJoinOps=[]})}update(oe,he){if(this.isJoinPending()||this.liveSocket.hasPendingLink()&&this.root.isMain())return this.pendingDiffs.push({diff:oe,events:he});this.rendered.mergeDiff(oe);let ae=!1;this.rendered.isComponentOnlyDiff(oe)?this.liveSocket.time("component patch complete",()=>{zt.findExistingParentCIDs(this.el,this.rendered.componentCIDs(oe)).forEach(p=>{this.componentPatch(this.rendered.getComponent(oe,p),p)&&(ae=!0)})}):SX(oe)||this.liveSocket.time("full patch complete",()=>{let[x,p]=this.renderContainer(oe,"update"),A=new vz(this,this.el,this.id,x,p,null);ae=this.performPatch(A,!0)}),this.liveSocket.dispatchEvents(he),ae&&this.joinNewChildren()}renderContainer(oe,he){return this.liveSocket.time(`toString diff (${he})`,()=>{let ae=this.el.tagName,x=oe?this.rendered.componentCIDs(oe):null,[p,A]=this.rendered.toString(x);return[`<${ae}>${p}</${ae}>`,A]})}componentPatch(oe,he){if(SX(oe))return!1;let[ae,x]=this.rendered.componentToString(he),p=new vz(this,this.el,this.id,ae,x,he);return this.performPatch(p,!0)}getHook(oe){return this.viewHooks[MO.elementID(oe)]}addHook(oe){let he=MO.elementID(oe);if(!(oe.getAttribute&&!this.ownsElement(oe)))if(he&&!this.viewHooks[he]){let ae=zt.getCustomElHook(oe)||Vg(`no hook found for custom element: ${oe.id}`);return this.viewHooks[he]=ae,ae.__attachView(this),ae}else{if(he||!oe.getAttribute)return;{let ae=oe.getAttribute(`data-phx-${vO}`)||oe.getAttribute(this.binding(vO)),x=this.liveSocket.getHookCallbacks(ae);if(x){oe.id||Vg(`no DOM ID for hook "${ae}". Hooks require a unique ID on each element.`,oe);let p=new MO(this,oe,x);return this.viewHooks[MO.elementID(p.el)]=p,p}else ae!==null&&Vg(`unknown hook found for "${ae}"`,oe)}}}destroyHook(oe){let he=MO.elementID(oe.el);oe.__destroyed(),oe.__cleanup__(),delete this.viewHooks[he]}applyPendingUpdates(){this.pendingDiffs.forEach(({diff:oe,events:he})=>this.update(oe,he)),this.pendingDiffs=[],this.eachChild(oe=>oe.applyPendingUpdates())}eachChild(oe){let he=this.root.children[this.id]||{};for(let ae in he)oe(this.getChildById(ae))}onChannel(oe,he){this.liveSocket.onChannel(this.channel,oe,ae=>{this.isJoinPending()?this.root.pendingJoinOps.push([this,()=>he(ae)]):this.liveSocket.requestDOMUpdate(()=>he(ae))})}bindChannel(){this.liveSocket.onChannel(this.channel,"diff",oe=>{this.liveSocket.requestDOMUpdate(()=>{this.applyDiff("update",oe,({diff:he,events:ae})=>this.update(he,ae))})}),this.onChannel("redirect",({to:oe,flash:he})=>this.onRedirect({to:oe,flash:he})),this.onChannel("live_patch",oe=>this.onLivePatch(oe)),this.onChannel("live_redirect",oe=>this.onLiveRedirect(oe)),this.channel.onError(oe=>this.onError(oe)),this.channel.onClose(oe=>this.onClose(oe))}destroyAllChildren(){this.eachChild(oe=>oe.destroy())}onLiveRedirect(oe){let{to:he,kind:ae,flash:x}=oe,p=this.expandURL(he),A=new CustomEvent("phx:server-navigate",{detail:{to:he,kind:ae,flash:x}});this.liveSocket.historyRedirect(A,p,ae,x)}onLivePatch(oe){let{to:he,kind:ae}=oe;this.href=this.expandURL(he),this.liveSocket.historyPatch(he,ae)}expandURL(oe){return oe.startsWith("/")?`${window.location.protocol}//${window.location.host}${oe}`:oe}onRedirect({to:oe,flash:he,reloadToken:ae}){this.liveSocket.redirect(oe,he,ae)}isDestroyed(){return this.destroyed}joinDead(){this.isDead=!0}joinPush(){return this.joinPush=this.joinPush||this.channel.join(),this.joinPush}join(oe){this.showLoader(this.liveSocket.loaderTimeout),this.bindChannel(),this.isMain()&&(this.stopCallback=this.liveSocket.withPageLoading({to:this.href,kind:"initial"})),this.joinCallback=he=>{he=he||function(){},oe?oe(this.joinCount,he):he()},this.wrapPush(()=>this.channel.join(),{ok:he=>this.liveSocket.requestDOMUpdate(()=>this.onJoin(he)),error:he=>this.onJoinError(he),timeout:()=>this.onJoinError({reason:"timeout"})})}onJoinError(oe){if(oe.reason==="reload"){this.log("error",()=>[`failed mount with ${oe.status}. Falling back to page reload`,oe]),this.onRedirect({to:this.root.href,reloadToken:oe.token});return}else if(oe.reason==="unauthorized"||oe.reason==="stale"){this.log("error",()=>["unauthorized live_redirect. Falling back to page request",oe]),this.onRedirect({to:this.root.href});return}if((oe.redirect||oe.live_redirect)&&(this.joinPending=!1,this.channel.leave()),oe.redirect)return this.onRedirect(oe.redirect);if(oe.live_redirect)return this.onLiveRedirect(oe.live_redirect);if(this.log("error",()=>["unable to join",oe]),this.isMain())this.displayError([tI,vP,fO]),this.liveSocket.isConnected()&&this.liveSocket.reloadWithJitter(this);else{this.joinAttempts>=pX&&(this.root.displayError([tI,vP,fO]),this.log("error",()=>[`giving up trying to mount after ${pX} tries`,oe]),this.destroy());let he=zt.byId(this.el.id);he?(zt.mergeAttrs(he,this.el),this.displayError([tI,vP,fO]),this.el=he):this.destroy()}}onClose(oe){if(!this.isDestroyed()){if(this.isMain()&&this.liveSocket.hasPendingLink()&&oe!=="leave")return this.liveSocket.reloadWithJitter(this);this.destroyAllChildren(),this.liveSocket.dropActiveElement(this),document.activeElement&&document.activeElement.blur(),this.liveSocket.isUnloaded()&&this.showLoader(Rwe)}}onError(oe){this.onClose(oe),this.liveSocket.isConnected()&&this.log("error",()=>["view crashed",oe]),this.liveSocket.isUnloaded()||(this.liveSocket.isConnected()?this.displayError([tI,vP,fO]):this.displayError([tI,vP,lX]))}displayError(oe){this.isMain()&&zt.dispatchEvent(window,"phx:page-loading-start",{detail:{to:this.href,kind:"error"}}),this.showLoader(),this.setContainerClasses(...oe),this.execAll(this.binding("disconnected"))}wrapPush(oe,he){let ae=this.liveSocket.getLatencySim(),x=ae?p=>setTimeout(()=>!this.isDestroyed()&&p(),ae):p=>!this.isDestroyed()&&p();x(()=>{oe().receive("ok",p=>x(()=>he.ok&&he.ok(p))).receive("error",p=>x(()=>he.error&&he.error(p))).receive("timeout",()=>x(()=>he.timeout&&he.timeout()))})}pushWithReply(oe,he,ae){if(!this.isConnected())return Promise.reject({error:"noconnection"});let[x,[p],A]=oe?oe():[null,[],{}],E=this.joinCount,z=function(){};return A.page_loading&&(z=this.liveSocket.withPageLoading({kind:"element",target:p})),typeof ae.cid!="number"&&delete ae.cid,new Promise((T,b)=>{this.wrapPush(()=>this.channel.push(he,ae,Lwe),{ok:C=>{x!==null&&(this.lastAckRef=x);let d=s=>{C.redirect&&this.onRedirect(C.redirect),C.live_patch&&this.onLivePatch(C.live_patch),C.live_redirect&&this.onLiveRedirect(C.live_redirect),z(),T({resp:C,reply:s})};C.diff?this.liveSocket.requestDOMUpdate(()=>{this.applyDiff("update",C.diff,({diff:s,reply:c,events:h})=>{x!==null&&this.undoRefs(x,ae.event),this.update(s,h),d(c)})}):(x!==null&&this.undoRefs(x,ae.event),d(null))},error:C=>b({error:C}),timeout:()=>{b({timeout:!0}),this.joinCount===E&&this.liveSocket.reloadWithJitter(this,()=>{this.log("timeout",()=>["received timeout while communicating with server. Falling back to hard refresh for recovery"])})}})})}undoRefs(oe,he,ae){if(!this.isConnected())return;let x=`[${Gf}="${this.refSrc()}"]`;ae?(ae=new Set(ae),zt.all(document,x,p=>{ae&&!ae.has(p)||(zt.all(p,x,A=>this.undoElRef(A,oe,he)),this.undoElRef(p,oe,he))})):zt.all(document,x,p=>this.undoElRef(p,oe,he))}undoElRef(oe,he,ae){new MX(oe).maybeUndo(he,ae,p=>{let A=new vz(this,oe,this.id,p,[],null,{undoRef:he}),E=this.performPatch(A,!0);zt.all(oe,`[${Gf}="${this.refSrc()}"]`,z=>this.undoElRef(z,he,ae)),E&&this.joinNewChildren()})}refSrc(){return this.el.id}putRef(oe,he,ae,x={}){let p=this.ref++,A=this.binding(dX);if(x.loading){let E=zt.all(document,x.loading).map(z=>({el:z,lock:!0,loading:!0}));oe=oe.concat(E)}for(let{el:E,lock:z,loading:T}of oe){if(!z&&!T)throw new Error("putRef requires lock or loading");if(E.setAttribute(Gf,this.refSrc()),T&&E.setAttribute(CP,p),z&&E.setAttribute(td,p),!T||x.submitter&&!(E===x.submitter||E===x.form))continue;let b=new Promise(c=>{E.addEventListener(`phx:undo-lock:${p}`,()=>c(s),{once:!0})}),C=new Promise(c=>{E.addEventListener(`phx:undo-loading:${p}`,()=>c(s),{once:!0})});E.classList.add(`phx-${ae}-loading`);let d=E.getAttribute(A);d!==null&&(E.getAttribute(wz)||E.setAttribute(wz,E.innerText),d!==""&&(E.innerText=d),E.setAttribute(bP,E.getAttribute(bP)||E.disabled),E.setAttribute("disabled",""));let s={event:he,eventType:ae,ref:p,isLoading:T,isLocked:z,lockElements:oe.filter(({lock:c})=>c).map(({el:c})=>c),loadingElements:oe.filter(({loading:c})=>c).map(({el:c})=>c),unlock:c=>{c=Array.isArray(c)?c:[c],this.undoRefs(p,he,c)},lockComplete:b,loadingComplete:C,lock:c=>new Promise(h=>{if(this.isAcked(p))return h(s);c.setAttribute(td,p),c.setAttribute(Gf,this.refSrc()),c.addEventListener(`phx:lock-stop:${p}`,()=>h(s),{once:!0})})};E.dispatchEvent(new CustomEvent("phx:push",{detail:s,bubbles:!0,cancelable:!1})),he&&E.dispatchEvent(new CustomEvent(`phx:push:${he}`,{detail:s,bubbles:!0,cancelable:!1}))}return[p,oe.map(({el:E})=>E),x]}isAcked(oe){return this.lastAckRef!==null&&this.lastAckRef>=oe}componentID(oe){let he=oe.getAttribute&&oe.getAttribute(jw);return he?parseInt(he):null}targetComponentID(oe,he,ae={}){if(Vw(he))return he;let x=ae.target||oe.getAttribute(this.binding("target"));return Vw(x)?parseInt(x):he&&(x!==null||ae.target)?this.closestComponentID(he):null}closestComponentID(oe){return Vw(oe)?oe:oe?RA(oe.closest(`[${jw}]`),he=>this.ownsElement(he)&&this.componentID(he)):null}pushHookEvent(oe,he,ae,x,p){if(!this.isConnected())return this.log("hook",()=>["unable to push hook event. LiveView not connected",ae,x]),!1;let[A,E,z]=this.putRef([{el:oe,loading:!0,lock:!0}],ae,"hook");return this.pushWithReply(()=>[A,E,z],"event",{type:"hook",event:ae,value:x,cid:this.closestComponentID(he)}).then(({resp:T,reply:b})=>p(b,A)),A}extractMeta(oe,he,ae){let x=this.binding("value-");for(let p=0;p<oe.attributes.length;p++){he||(he={});let A=oe.attributes[p].name;A.startsWith(x)&&(he[A.replace(x,"")]=oe.getAttribute(A))}if(oe.value!==void 0&&!(oe instanceof HTMLFormElement)&&(he||(he={}),he.value=oe.value,oe.tagName==="INPUT"&&BX.indexOf(oe.type)>=0&&!oe.checked&&delete he.value),ae){he||(he={});for(let p in ae)he[p]=ae[p]}return he}pushEvent(oe,he,ae,x,p,A={},E){this.pushWithReply(()=>this.putRef([{el:he,loading:!0,lock:!0}],x,oe,A),"event",{type:oe,event:x,value:this.extractMeta(he,p,A.value),cid:this.targetComponentID(he,ae,A)}).then(({reply:z})=>E&&E(z))}pushFileProgress(oe,he,ae,x=function(){}){this.liveSocket.withinOwners(oe.form,(p,A)=>{p.pushWithReply(null,"progress",{event:oe.getAttribute(p.binding(Iwe)),ref:oe.getAttribute(Hw),entry_ref:he,progress:ae,cid:p.targetComponentID(oe.form,A)}).then(({resp:E})=>x(E))})}pushInput(oe,he,ae,x,p,A){if(!oe.form)throw new Error("form events require the input to be inside a form");let E,z=Vw(ae)?ae:this.targetComponentID(oe.form,he,p),T=()=>this.putRef([{el:oe,loading:!0,lock:!0},{el:oe.form,loading:!0,lock:!0}],x,"change",p),b,C=this.extractMeta(oe.form);oe instanceof HTMLButtonElement&&(C.submitter=oe),oe.getAttribute(this.binding("change"))?b=yz(oe.form,ge({_target:p._target},C),[oe.name]):b=yz(oe.form,ge({_target:p._target},C)),zt.isUploadInput(oe)&&oe.files&&oe.files.length>0&&id.trackFiles(oe,Array.from(oe.files)),E=id.serializeUploads(oe);let d={type:"form",event:x,value:b,uploads:E,cid:z};this.pushWithReply(T,"event",d).then(({resp:s})=>{zt.isUploadInput(oe)&&zt.isAutoUpload(oe)?MX.onUnlock(oe,()=>{if(id.filesAwaitingPreflight(oe).length>0){let[c,h]=T();this.undoRefs(c,x,[oe.form]),this.uploadFiles(oe.form,x,he,c,z,g=>{A&&A(s),this.triggerAwaitingSubmit(oe.form,x),this.undoRefs(c,x)})}}):A&&A(s)})}triggerAwaitingSubmit(oe,he){let ae=this.getScheduledSubmit(oe);if(ae){let[x,p,A,E]=ae;this.cancelSubmit(oe,he),E()}}getScheduledSubmit(oe){return this.formSubmits.find(([he,ae,x,p])=>he.isSameNode(oe))}scheduleSubmit(oe,he,ae,x){if(this.getScheduledSubmit(oe))return!0;this.formSubmits.push([oe,he,ae,x])}cancelSubmit(oe,he){this.formSubmits=this.formSubmits.filter(([ae,x,p,A])=>ae.isSameNode(oe)?(this.undoRefs(x,he),!1):!0)}disableForm(oe,he,ae={}){let x=c=>!(kO(c,`${this.binding(xz)}=ignore`,c.form)||kO(c,"data-phx-update=ignore",c.form)),p=c=>c.hasAttribute(this.binding(dX)),A=c=>c.tagName=="BUTTON",E=c=>["INPUT","TEXTAREA","SELECT"].includes(c.tagName),z=Array.from(oe.elements),T=z.filter(p),b=z.filter(A).filter(x),C=z.filter(E).filter(x);b.forEach(c=>{c.setAttribute(bP,c.disabled),c.disabled=!0}),C.forEach(c=>{c.setAttribute(jV,c.readOnly),c.readOnly=!0,c.files&&(c.setAttribute(bP,c.disabled),c.disabled=!0)});let d=T.concat(b).concat(C).map(c=>({el:c,loading:!0,lock:!0})),s=[{el:oe,loading:!0,lock:!1}].concat(d).reverse();return this.putRef(s,he,"submit",ae)}pushFormSubmit(oe,he,ae,x,p,A){let E=()=>this.disableForm(oe,ae,He(ge({},p),{form:oe,submitter:x})),z=this.targetComponentID(oe,he);if(id.hasUploadsInProgress(oe)){let[T,b]=E(),C=()=>this.pushFormSubmit(oe,he,ae,x,p,A);return this.scheduleSubmit(oe,T,p,C)}else if(id.inputsAwaitingPreflight(oe).length>0){let[T,b]=E(),C=()=>[T,b,p];this.uploadFiles(oe,ae,he,T,z,d=>{if(id.inputsAwaitingPreflight(oe).length>0)return this.undoRefs(T,ae);let s=this.extractMeta(oe),c=yz(oe,ge({submitter:x},s));this.pushWithReply(C,"event",{type:"form",event:ae,value:c,cid:z}).then(({resp:h})=>A(h))})}else if(!(oe.hasAttribute(Gf)&&oe.classList.contains("phx-submit-loading"))){let T=this.extractMeta(oe),b=yz(oe,ge({submitter:x},T));this.pushWithReply(E,"event",{type:"form",event:ae,value:b,cid:z}).then(({resp:C})=>A(C))}}uploadFiles(oe,he,ae,x,p,A){let E=this.joinCount,z=id.activeFileInputs(oe),T=z.length;z.forEach(b=>{let C=new id(b,this,()=>{T--,T===0&&A()}),d=C.entries().map(c=>c.toPreflightPayload());if(d.length===0){T--;return}let s={ref:b.getAttribute(Hw),entries:d,cid:this.targetComponentID(b.form,ae)};this.log("upload",()=>["sending preflight request",s]),this.pushWithReply(null,"allow_upload",s).then(({resp:c})=>{if(this.log("upload",()=>["got preflight response",c]),C.entries().forEach(h=>{c.entries&&!c.entries[h.ref]&&this.handleFailedEntryPreflight(h.ref,"failed preflight",C)}),c.error||Object.keys(c.entries).length===0)this.undoRefs(x,he),(c.error||[]).map(([g,f])=>{this.handleFailedEntryPreflight(g,f,C)});else{let h=g=>{this.channel.onError(()=>{this.joinCount===E&&g()})};C.initAdapterUpload(c,h,this.liveSocket)}})})}handleFailedEntryPreflight(oe,he,ae){if(ae.isAutoUpload()){let x=ae.entries().find(p=>p.ref===oe.toString());x&&x.cancel()}else ae.entries().map(x=>x.cancel());this.log("upload",()=>[`error for entry ${oe}`,he])}dispatchUploads(oe,he,ae){let x=this.targetCtxElement(oe)||this.el,p=zt.findUploadInputs(x).filter(A=>A.name===he);p.length===0?Vg(`no live file inputs found matching the name "${he}"`):p.length>1?Vg(`duplicate live file inputs found matching the name "${he}"`):zt.dispatchEvent(p[0],_X,{detail:{files:ae}})}targetCtxElement(oe){if(Vw(oe)){let[he]=zt.findComponentNodeList(this.el,oe);return he}else return oe||null}pushFormRecovery(oe,he,ae,x){let p=this.binding("change"),A=he.getAttribute(this.binding("target"))||he,E=he.getAttribute(this.binding(uX))||he.getAttribute(this.binding("change")),z=Array.from(oe.elements).filter(C=>zt.isFormInput(C)&&C.name&&!C.hasAttribute(p));if(z.length===0)return;z.forEach(C=>C.hasAttribute(Hw)&&id.clearFiles(C));let T=z.find(C=>C.type!=="hidden")||z[0],b=0;this.withinTargets(A,(C,d)=>{let s=this.targetComponentID(he,d);b++;let c=new CustomEvent("phx:form-recovery",{detail:{sourceElement:oe}});Zo.exec(c,"change",E,this,T,["push",{_target:T.name,targetView:C,targetCtx:d,newCid:s,callback:()=>{b--,b===0&&x()}}])},ae,ae)}pushLinkPatch(oe,he,ae,x){let p=this.liveSocket.setPendingLink(he),A=oe.isTrusted&&oe.type!=="popstate",E=ae?()=>this.putRef([{el:ae,loading:A,lock:!0}],null,"click"):null,z=()=>this.liveSocket.redirect(window.location.href),T=he.startsWith("/")?`${location.protocol}//${location.host}${he}`:he;this.pushWithReply(E,"live_patch",{url:T}).then(({resp:b})=>{this.liveSocket.requestDOMUpdate(()=>{b.link_redirect?this.liveSocket.replaceMain(he,null,x,p):(this.liveSocket.commitPendingLink(p)&&(this.href=he),this.applyPendingUpdates(),x&&x(p))})},({error:b,timeout:C})=>z())}getFormsForRecovery(){if(this.joinCount===0)return{};let oe=this.binding("change");return zt.all(this.el,`form[${oe}]`).filter(he=>he.id).filter(he=>he.elements.length>0).filter(he=>he.getAttribute(this.binding(uX))!=="ignore").map(he=>he.cloneNode(!0)).reduce((he,ae)=>(he[ae.id]=ae,he),{})}maybePushComponentsDestroyed(oe){let he=oe.filter(ae=>zt.findComponentNodeList(this.el,ae).length===0);he.length>0&&(he.forEach(ae=>this.rendered.resetRender(ae)),this.pushWithReply(null,"cids_will_destroy",{cids:he}).then(()=>{this.liveSocket.requestDOMUpdate(()=>{let ae=he.filter(x=>zt.findComponentNodeList(this.el,x).length===0);ae.length>0&&this.pushWithReply(null,"cids_destroyed",{cids:ae}).then(({resp:x})=>{this.rendered.pruneCIDs(x.cids)})})}))}ownsElement(oe){let he=oe.closest(oI);return oe.getAttribute(aI)===this.id||he&&he.id===this.id||!he&&this.isDead}submitForm(oe,he,ae,x,p={}){zt.putPrivate(oe,AO,!0),Array.from(oe.elements).forEach(E=>zt.putPrivate(E,AO,!0)),this.liveSocket.blurActiveElement(this),this.pushFormSubmit(oe,he,ae,x,p,()=>{this.liveSocket.restorePreviouslyActiveFocus()})}binding(oe){return this.liveSocket.binding(oe)}};var HX=class{constructor(re,oe,he={}){if(this.unloaded=!1,!oe||oe.constructor.name==="Object")throw new Error(`
      a phoenix Socket must be provided as the second argument to the LiveSocket constructor. For example:

          import {Socket} from "phoenix"
          import {LiveSocket} from "phoenix_live_view"
          let liveSocket = new LiveSocket("/live", Socket, {...})
      `);this.socket=new oe(re,he),this.bindingPrefix=he.bindingPrefix||Pwe,this.opts=he,this.params=SO(he.params||{}),this.viewLogger=he.viewLogger,this.metadataCallbacks=he.metadata||{},this.defaults=Object.assign(Cz(Owe),he.defaults||{}),this.activeElement=null,this.prevActive=null,this.silenced=!1,this.main=null,this.outgoingMainEl=null,this.clickStartedAtTarget=null,this.linkRef=1,this.roots={},this.href=window.location.href,this.pendingLink=null,this.currentLocation=Cz(window.location),this.hooks=he.hooks||{},this.uploaders=he.uploaders||{},this.loaderTimeout=he.loaderTimeout||Twe,this.reloadWithJitterTimer=null,this.maxReloads=he.maxReloads||vwe,this.reloadJitterMin=he.reloadJitterMin||ywe,this.reloadJitterMax=he.reloadJitterMax||bwe,this.failsafeJitter=he.failsafeJitter||Cwe,this.localStorage=he.localStorage||window.localStorage,this.sessionStorage=he.sessionStorage||window.sessionStorage,this.boundTopLevelEvents=!1,this.boundEventNames=new Set,this.serverCloseRef=null,this.domCallbacks=Object.assign({jsQuerySelectorAll:null,onPatchStart:SO(),onPatchEnd:SO(),onNodeAdded:SO(),onBeforeElUpdated:SO()},he.dom||{}),this.transitions=new mxe,this.currentHistoryPosition=parseInt(this.sessionStorage.getItem(gz))||0,window.addEventListener("pagehide",ae=>{this.unloaded=!0}),this.socket.onOpen(()=>{this.isUnloaded()&&window.location.reload()})}version(){return"1.0.3"}isProfileEnabled(){return this.sessionStorage.getItem(OV)==="true"}isDebugEnabled(){return this.sessionStorage.getItem(hz)==="true"}isDebugDisabled(){return this.sessionStorage.getItem(hz)==="false"}enableDebug(){this.sessionStorage.setItem(hz,"true")}enableProfiling(){this.sessionStorage.setItem(OV,"true")}disableDebug(){this.sessionStorage.setItem(hz,"false")}disableProfiling(){this.sessionStorage.removeItem(OV)}enableLatencySim(re){this.enableDebug(),console.log("latency simulator enabled for the duration of this browser session. Call disableLatencySim() to disable"),this.sessionStorage.setItem(FV,re)}disableLatencySim(){this.sessionStorage.removeItem(FV)}getLatencySim(){let re=this.sessionStorage.getItem(FV);return re?parseInt(re):null}getSocket(){return this.socket}connect(){window.location.hostname==="localhost"&&!this.isDebugDisabled()&&this.enableDebug();let re=()=>{this.resetReloadStatus(),this.joinRootViews()?(this.bindTopLevelEvents(),this.socket.connect()):this.main?this.socket.connect():this.bindTopLevelEvents({dead:!0}),this.joinDeadView()};["complete","loaded","interactive"].indexOf(document.readyState)>=0?re():document.addEventListener("DOMContentLoaded",()=>re())}disconnect(re){clearTimeout(this.reloadWithJitterTimer),this.serverCloseRef&&(this.socket.off(this.serverCloseRef),this.serverCloseRef=null),this.socket.disconnect(re)}replaceTransport(re){clearTimeout(this.reloadWithJitterTimer),this.socket.replaceTransport(re),this.connect()}execJS(re,oe,he=null){let ae=new CustomEvent("phx:exec",{detail:{sourceElement:re}});this.owner(re,x=>Zo.exec(ae,he,oe,x,re))}execJSHookPush(re,oe,he,ae){this.withinOwners(re,x=>{let p=new CustomEvent("phx:exec",{detail:{sourceElement:re}});Zo.exec(p,"hook",oe,x,re,["push",{data:he,callback:ae}])})}unload(){this.unloaded||(this.main&&this.isConnected()&&this.log(this.main,"socket",()=>["disconnect for page nav"]),this.unloaded=!0,this.destroyAllViews(),this.disconnect())}triggerDOM(re,oe){this.domCallbacks[re](...oe)}time(re,oe){if(!this.isProfileEnabled()||!console.time)return oe();console.time(re);let he=oe();return console.timeEnd(re),he}log(re,oe,he){if(this.viewLogger){let[ae,x]=he();this.viewLogger(re,oe,ae,x)}else if(this.isDebugEnabled()){let[ae,x]=he();Bwe(re,oe,ae,x)}}requestDOMUpdate(re){this.transitions.after(re)}transition(re,oe,he=function(){}){this.transitions.addTransition(re,oe,he)}onChannel(re,oe,he){re.on(oe,ae=>{let x=this.getLatencySim();x?setTimeout(()=>he(ae),x):he(ae)})}reloadWithJitter(re,oe){clearTimeout(this.reloadWithJitterTimer),this.disconnect();let he=this.reloadJitterMin,ae=this.reloadJitterMax,x=Math.floor(Math.random()*(ae-he+1))+he,p=Gg.updateLocal(this.localStorage,window.location.pathname,OX,0,A=>A+1);p>=this.maxReloads&&(x=this.failsafeJitter),this.reloadWithJitterTimer=setTimeout(()=>{re.isDestroyed()||re.isConnected()||(re.destroy(),oe?oe():this.log(re,"join",()=>[`encountered ${p} consecutive reloads`]),p>=this.maxReloads&&this.log(re,"join",()=>[`exceeded ${this.maxReloads} consecutive reloads. Entering failsafe mode`]),this.hasPendingLink()?window.location=this.pendingLink:window.location.reload())},x)}getHookCallbacks(re){return re&&re.startsWith("Phoenix.")?qwe[re.split(".")[1]]:this.hooks[re]}isUnloaded(){return this.unloaded}isConnected(){return this.socket.isConnected()}getBindingPrefix(){return this.bindingPrefix}binding(re){return`${this.getBindingPrefix()}${re}`}channel(re,oe){return this.socket.channel(re,oe)}joinDeadView(){let re=document.body;if(re&&!this.isPhxView(re)&&!this.isPhxView(document.firstElementChild)){let oe=this.newRootView(re);oe.setHref(this.getHref()),oe.joinDead(),this.main||(this.main=oe),window.requestAnimationFrame(()=>{var he;oe.execNewMounted(),this.maybeScroll((he=history.state)==null?void 0:he.scroll)})}}joinRootViews(){let re=!1;return zt.all(document,`${oI}:not([${aI}])`,oe=>{if(!this.getRootById(oe.id)){let he=this.newRootView(oe);zt.isPhxSticky(oe)||he.setHref(this.getHref()),he.join(),oe.hasAttribute(UV)&&(this.main=he)}re=!0}),re}redirect(re,oe,he){he&&Gg.setCookie(gX,he,60),this.unload(),Gg.redirect(re,oe)}replaceMain(re,oe,he=null,ae=this.setPendingLink(re)){let x=this.currentLocation.href;this.outgoingMainEl=this.outgoingMainEl||this.main.el;let p=zt.all(this.outgoingMainEl,`[${this.binding("remove")}]`),A=zt.cloneNode(this.outgoingMainEl,"");this.main.showLoader(this.loaderTimeout),this.main.destroy(),this.main=this.newRootView(A,oe,x),this.main.setRedirect(re),this.transitionRemoves(p,!0),this.main.join((E,z)=>{E===1&&this.commitPendingLink(ae)&&this.requestDOMUpdate(()=>{p.forEach(T=>T.remove()),zt.findPhxSticky(document).forEach(T=>A.appendChild(T)),this.outgoingMainEl.replaceWith(A),this.outgoingMainEl=null,he&&he(ae),z()})})}transitionRemoves(re,oe,he){let ae=this.binding("remove");if(oe){let p=zt.findPhxSticky(document)||[];re=re.filter(A=>!zt.isChildOfAny(A,p))}let x=p=>{p.preventDefault(),p.stopImmediatePropagation()};re.forEach(p=>{for(let A of this.boundEventNames)p.addEventListener(A,x,!0);this.execJS(p,p.getAttribute(ae),"remove")}),this.requestDOMUpdate(()=>{re.forEach(p=>{for(let A of this.boundEventNames)p.removeEventListener(A,x,!0)}),he&&he()})}isPhxView(re){return re.getAttribute&&re.getAttribute(_C)!==null}newRootView(re,oe,he){let ae=new pxe(re,this,null,oe,he);return this.roots[ae.id]=ae,ae}owner(re,oe){let he=RA(re.closest(oI),ae=>this.getViewByEl(ae))||this.main;return he&&oe?oe(he):he}withinOwners(re,oe){this.owner(re,he=>oe(he,re))}getViewByEl(re){let oe=re.getAttribute(PA);return RA(this.getRootById(oe),he=>he.getDescendentByEl(re))}getRootById(re){return this.roots[re]}destroyAllViews(){for(let re in this.roots)this.roots[re].destroy(),delete this.roots[re];this.main=null}destroyViewByEl(re){let oe=this.getRootById(re.getAttribute(PA));oe&&oe.id===re.id?(oe.destroy(),delete this.roots[oe.id]):oe&&oe.destroyDescendent(re.id)}getActiveElement(){return document.activeElement}dropActiveElement(re){this.prevActive&&re.ownsElement(this.prevActive)&&(this.prevActive=null)}restorePreviouslyActiveFocus(){this.prevActive&&this.prevActive!==document.body&&this.prevActive.focus()}blurActiveElement(){this.prevActive=this.getActiveElement(),this.prevActive!==document.body&&this.prevActive.blur()}bindTopLevelEvents({dead:re}={}){this.boundTopLevelEvents||(this.boundTopLevelEvents=!0,this.serverCloseRef=this.socket.onClose(oe=>{if(oe&&oe.code===1e3&&this.main)return this.reloadWithJitter(this.main)}),document.body.addEventListener("click",function(){}),window.addEventListener("pageshow",oe=>{oe.persisted&&(this.getSocket().disconnect(),this.withPageLoading({to:window.location.href,kind:"redirect"}),window.location.reload())},!0),re||this.bindNav(),this.bindClicks(),re||this.bindForms(),this.bind({keyup:"keyup",keydown:"keydown"},(oe,he,ae,x,p,A)=>{let E=x.getAttribute(this.binding(Ewe)),z=oe.key&&oe.key.toLowerCase();if(E&&E.toLowerCase()!==z)return;let T=ge({key:oe.key},this.eventMeta(he,oe,x));Zo.exec(oe,he,p,ae,x,["push",{data:T}])}),this.bind({blur:"focusout",focus:"focusin"},(oe,he,ae,x,p,A)=>{if(!A){let E=ge({key:oe.key},this.eventMeta(he,oe,x));Zo.exec(oe,he,p,ae,x,["push",{data:E}])}}),this.bind({blur:"blur",focus:"focus"},(oe,he,ae,x,p,A)=>{if(A==="window"){let E=this.eventMeta(he,oe,x);Zo.exec(oe,he,p,ae,x,["push",{data:E}])}}),this.on("dragover",oe=>oe.preventDefault()),this.on("drop",oe=>{oe.preventDefault();let he=RA(kO(oe.target,this.binding(oX)),p=>p.getAttribute(this.binding(oX))),ae=he&&document.getElementById(he),x=Array.from(oe.dataTransfer.files||[]);!ae||ae.disabled||x.length===0||!(ae.files instanceof FileList)||(id.trackFiles(ae,x,oe.dataTransfer),ae.dispatchEvent(new Event("input",{bubbles:!0})))}),this.on(_X,oe=>{let he=oe.target;if(!zt.isUploadInput(he))return;let ae=Array.from(oe.detail.files||[]).filter(x=>x instanceof File||x instanceof Blob);id.trackFiles(he,ae),he.dispatchEvent(new Event("input",{bubbles:!0}))}))}eventMeta(re,oe,he){let ae=this.metadataCallbacks[re];return ae?ae(oe,he):{}}setPendingLink(re){return this.linkRef++,this.pendingLink=re,this.resetReloadStatus(),this.linkRef}resetReloadStatus(){Gg.deleteCookie(gX)}commitPendingLink(re){return this.linkRef!==re?!1:(this.href=this.pendingLink,this.pendingLink=null,!0)}getHref(){return this.href}hasPendingLink(){return!!this.pendingLink}bind(re,oe){for(let he in re){let ae=re[he];this.on(ae,x=>{let p=this.binding(he),A=this.binding(`window-${he}`),E=x.target.getAttribute&&x.target.getAttribute(p);E?this.debounce(x.target,x,ae,()=>{this.withinOwners(x.target,z=>{oe(x,he,z,x.target,E,null)})}):zt.all(document,`[${A}]`,z=>{let T=z.getAttribute(A);this.debounce(z,x,ae,()=>{this.withinOwners(z,b=>{oe(x,he,b,z,T,"window")})})})})}}bindClicks(){this.on("mousedown",re=>this.clickStartedAtTarget=re.target),this.bindClick("click","click")}bindClick(re,oe){let he=this.binding(oe);window.addEventListener(re,ae=>{let x=null;ae.detail===0&&(this.clickStartedAtTarget=ae.target);let p=this.clickStartedAtTarget||ae.target;x=kO(ae.target,he),this.dispatchClickAway(ae,p),this.clickStartedAtTarget=null;let A=x&&x.getAttribute(he);if(!A){zt.isNewPageClick(ae,window.location)&&this.unload();return}x.getAttribute("href")==="#"&&ae.preventDefault(),!x.hasAttribute(Gf)&&this.debounce(x,ae,"click",()=>{this.withinOwners(x,E=>{Zo.exec(ae,"click",A,E,x,["push",{data:this.eventMeta("click",ae,x)}])})})},!1)}dispatchClickAway(re,oe){let he=this.binding("click-away");zt.all(document,`[${he}]`,ae=>{ae.isSameNode(oe)||ae.contains(oe)||this.withinOwners(ae,x=>{let p=ae.getAttribute(he);Zo.isVisible(ae)&&Zo.isInViewport(ae)&&Zo.exec(re,"click",p,x,ae,["push",{data:this.eventMeta("click",re,re.target)}])})})}bindNav(){if(!Gg.canPushState())return;history.scrollRestoration&&(history.scrollRestoration="manual");let re=null;window.addEventListener("scroll",oe=>{clearTimeout(re),re=setTimeout(()=>{Gg.updateCurrentState(he=>Object.assign(he,{scroll:window.scrollY}))},100)}),window.addEventListener("popstate",oe=>{if(!this.registerNewLocation(window.location))return;let{type:he,backType:ae,id:x,scroll:p,position:A}=oe.state||{},E=window.location.href,z=A>this.currentHistoryPosition;he=z?he:ae||he,this.currentHistoryPosition=A||0,this.sessionStorage.setItem(gz,this.currentHistoryPosition.toString()),zt.dispatchEvent(window,"phx:navigate",{detail:{href:E,patch:he==="patch",pop:!0,direction:z?"forward":"backward"}}),this.requestDOMUpdate(()=>{let T=()=>{this.maybeScroll(p)};this.main.isConnected()&&he==="patch"&&x===this.main.id?this.main.pushLinkPatch(oe,E,null,T):this.replaceMain(E,null,T)})},!1),window.addEventListener("click",oe=>{let he=kO(oe.target,PV),ae=he&&he.getAttribute(PV);if(!ae||!this.isConnected()||!this.main||zt.wantsNewTab(oe))return;let x=he.href instanceof SVGAnimatedString?he.href.baseVal:he.href,p=he.getAttribute(wwe);oe.preventDefault(),oe.stopImmediatePropagation(),this.pendingLink!==x&&this.requestDOMUpdate(()=>{if(ae==="patch")this.pushHistoryPatch(oe,x,p,he);else if(ae==="redirect")this.historyRedirect(oe,x,p,null,he);else throw new Error(`expected ${PV} to be "patch" or "redirect", got: ${ae}`);let A=he.getAttribute(this.binding("click"));A&&this.requestDOMUpdate(()=>this.execJS(he,A,"click"))})},!1)}maybeScroll(re){typeof re=="number"&&requestAnimationFrame(()=>{window.scrollTo(0,re)})}dispatchEvent(re,oe={}){zt.dispatchEvent(window,`phx:${re}`,{detail:oe})}dispatchEvents(re){re.forEach(([oe,he])=>this.dispatchEvent(oe,he))}withPageLoading(re,oe){zt.dispatchEvent(window,"phx:page-loading-start",{detail:re});let he=()=>zt.dispatchEvent(window,"phx:page-loading-stop",{detail:re});return oe?oe(he):he}pushHistoryPatch(re,oe,he,ae){if(!this.isConnected()||!this.main.isMain())return Gg.redirect(oe);this.withPageLoading({to:oe,kind:"patch"},x=>{this.main.pushLinkPatch(re,oe,ae,p=>{this.historyPatch(oe,he,p),x()})})}historyPatch(re,oe,he=this.setPendingLink(re)){this.commitPendingLink(he)&&(this.currentHistoryPosition++,this.sessionStorage.setItem(gz,this.currentHistoryPosition.toString()),Gg.updateCurrentState(ae=>He(ge({},ae),{backType:"patch"})),Gg.pushState(oe,{type:"patch",id:this.main.id,position:this.currentHistoryPosition},re),zt.dispatchEvent(window,"phx:navigate",{detail:{patch:!0,href:re,pop:!1,direction:"forward"}}),this.registerNewLocation(window.location))}historyRedirect(re,oe,he,ae,x){if(x&&re.isTrusted&&re.type!=="popstate"&&x.classList.add("phx-click-loading"),!this.isConnected()||!this.main.isMain())return Gg.redirect(oe,ae);if(/^\/$|^\/[^\/]+.*$/.test(oe)){let{protocol:A,host:E}=window.location;oe=`${A}//${E}${oe}`}let p=window.scrollY;this.withPageLoading({to:oe,kind:"redirect"},A=>{this.replaceMain(oe,ae,E=>{E===this.linkRef&&(this.currentHistoryPosition++,this.sessionStorage.setItem(gz,this.currentHistoryPosition.toString()),Gg.updateCurrentState(z=>He(ge({},z),{backType:"redirect"})),Gg.pushState(he,{type:"redirect",id:this.main.id,scroll:p,position:this.currentHistoryPosition},oe),zt.dispatchEvent(window,"phx:navigate",{detail:{href:oe,patch:!1,pop:!1,direction:"forward"}}),this.registerNewLocation(window.location)),A()})})}registerNewLocation(re){let{pathname:oe,search:he}=this.currentLocation;return oe+he===re.pathname+re.search?!1:(this.currentLocation=Cz(re),!0)}bindForms(){let re=0,oe=!1;this.on("submit",he=>{let ae=he.target.getAttribute(this.binding("submit")),x=he.target.getAttribute(this.binding("change"));!oe&&x&&!ae&&(oe=!0,he.preventDefault(),this.withinOwners(he.target,p=>{p.disableForm(he.target),window.requestAnimationFrame(()=>{zt.isUnloadableFormSubmit(he)&&this.unload(),he.target.submit()})}))}),this.on("submit",he=>{let ae=he.target.getAttribute(this.binding("submit"));if(!ae){zt.isUnloadableFormSubmit(he)&&this.unload();return}he.preventDefault(),he.target.disabled=!0,this.withinOwners(he.target,x=>{Zo.exec(he,"submit",ae,x,he.target,["push",{submitter:he.submitter}])})});for(let he of["change","input"])this.on(he,ae=>{if(ae instanceof CustomEvent&&ae.target.form===void 0){if(ae.detail&&ae.detail.dispatcher)throw new Error(`dispatching a custom ${he} event is only supported on input elements inside a form`);return}let x=this.binding("change"),p=ae.target;if(ae.isComposing){let s=`composition-listener-${he}`;zt.private(p,s)||(zt.putPrivate(p,s,!0),p.addEventListener("compositionend",()=>{p.dispatchEvent(new Event(he,{bubbles:!0})),zt.deletePrivate(p,s)},{once:!0}));return}let A=p.getAttribute(x),E=p.form&&p.form.getAttribute(x),z=A||E;if(!z||p.type==="number"&&p.validity&&p.validity.badInput)return;let T=A?p:p.form,b=re;re++;let{at:C,type:d}=zt.private(p,"prev-iteration")||{};C===b-1&&he==="change"&&d==="input"||(zt.putPrivate(p,"prev-iteration",{at:b,type:he}),this.debounce(p,ae,he,()=>{this.withinOwners(T,s=>{zt.putPrivate(p,Sz,!0),Zo.exec(ae,"change",z,s,p,["push",{_target:ae.target.name,dispatcher:T}])})}))});this.on("reset",he=>{let ae=he.target;zt.resetForm(ae);let x=Array.from(ae.elements).find(p=>p.type==="reset");x&&window.requestAnimationFrame(()=>{x.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!1}))})})}debounce(re,oe,he,ae){if(he==="blur"||he==="focusout")return ae();let x=this.binding(Awe),p=this.binding(Dwe),A=this.defaults.debounce.toString(),E=this.defaults.throttle.toString();this.withinOwners(re,z=>{let T=()=>!z.isDestroyed()&&document.body.contains(re);zt.debounce(re,oe,x,A,p,E,T,()=>{ae()})})}silenceEvents(re){this.silenced=!0,re(),this.silenced=!1}on(re,oe){this.boundEventNames.add(re),window.addEventListener(re,he=>{this.silenced||oe(he)})}jsQuerySelectorAll(re,oe,he){let ae=this.domCallbacks.jsQuerySelectorAll;return ae?ae(re,oe,he):he()}},mxe=class{constructor(){this.transitions=new Set,this.pendingOps=[]}reset(){this.transitions.forEach(re=>{clearTimeout(re),this.transitions.delete(re)}),this.flushPendingOps()}after(re){this.size()===0?re():this.pushPendingOp(re)}addTransition(re,oe,he){oe();let ae=setTimeout(()=>{this.transitions.delete(ae),he(),this.flushPendingOps()},re);this.transitions.add(ae)}pushPendingOp(re){this.pendingOps.push(re)}size(){return this.transitions.size}flushPendingOps(){if(this.size()>0)return;let re=this.pendingOps.shift();re&&(re(),this.flushPendingOps())}};var YV={};YV.Focus={mounted(){this.el.focus()}};var Vz=hO(UX()),fxe=hO(KX()),q4e=hO(YX()),vxe=hO(fZ()),Y4e=hO(jZ());window.agGrid=fxe;window.agCharts=vxe;var yxe=document.querySelector("meta[name='csrf-token']").getAttribute("content"),HZ=new HX("/live",aX,{hooks:YV,dom:{onBeforeElUpdated(re,oe){re._x_dataStack&&window.Alpine.clone(re,oe)}},longPollFallbackMs:2500,params:{_csrf_token:yxe}});Vz.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",re=>Vz.default.show(300));window.addEventListener("phx:page-loading-stop",re=>Vz.default.hide());HZ.connect();window.liveSocket=HZ;})();
/**
 * @license MIT
 * topbar 2.0.0, 2023-02-04
 * https://buunguyen.github.io/topbar
 * Copyright (c) 2021 Buu Nguyen
 */
